]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
[Ada] Two typo fixes
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="tree.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 CET_HOST_FLAGS
635 NO_PIE_FLAG
636 NO_PIE_CFLAGS
637 enable_default_pie
638 PICFLAG
639 enable_host_shared
640 enable_plugin
641 pluginlibs
642 ISLINC
643 ISLLIBS
644 GMPINC
645 GMPLIBS
646 target_cpu_default
647 d_target_objs
648 fortran_target_objs
649 cxx_target_objs
650 c_target_objs
651 use_gcc_stdint
652 xm_defines
653 xm_include_list
654 xm_file_list
655 tm_d_include_list
656 tm_d_file_list
657 tm_p_include_list
658 tm_p_file_list
659 tm_defines
660 tm_include_list
661 tm_file_list
662 common_out_object_file
663 common_out_file
664 out_object_file
665 out_file
666 objc_boehm_gc
667 md_file
668 local_prefix
669 lang_tree_files
670 lang_specs_files
671 lang_opt_files
672 install
673 out_host_hook_obj
674 host_xm_defines
675 host_xm_include_list
676 host_xm_file_list
677 host_exeext
678 gcc_gxx_include_dir_add_sysroot
679 gcc_gxx_include_dir
680 gcc_config_arguments
681 float_h_file
682 extra_programs
683 extra_objs
684 extra_headers_list
685 user_headers_inc_next_post
686 user_headers_inc_next_pre
687 extra_gcc_objs
688 TM_MULTILIB_EXCEPTIONS_CONFIG
689 TM_MULTILIB_CONFIG
690 TM_ENDIAN_CONFIG
691 tmake_file
692 xmake_file
693 cpp_install_dir
694 selftest_languages
695 check_languages
696 build_file_translate
697 build_xm_defines
698 build_xm_include_list
699 build_xm_file_list
700 build_install_headers_dir
701 build_exeext
702 all_selected_languages
703 all_languages
704 all_lang_makefrags
705 all_lang_configurefrags
706 all_gtfiles
707 all_compilers
708 srcdir
709 subdirs
710 dollar
711 gcc_tooldir
712 enable_lto
713 DO_LINK_MUTEX
714 MAINT
715 zlibinc
716 zlibdir
717 HOST_LIBS
718 enable_default_ssp
719 thin_archive_support
720 ld_soname_option
721 ld_version_script_option
722 libgcc_visibility
723 gcc_cv_otool
724 gcc_cv_readelf
725 gcc_cv_objdump
726 ORIGINAL_NM_FOR_TARGET
727 gcc_cv_nm
728 ORIGINAL_LD_GOLD_FOR_TARGET
729 ORIGINAL_LD_BFD_FOR_TARGET
730 ORIGINAL_LD_FOR_TARGET
731 ORIGINAL_PLUGIN_LD_FOR_TARGET
732 gcc_cv_ld
733 ORIGINAL_AS_FOR_TARGET
734 gcc_cv_as
735 enable_fast_install
736 objdir
737 OTOOL64
738 OTOOL
739 LIPO
740 NMEDIT
741 DSYMUTIL
742 STRIP
743 OBJDUMP
744 ac_ct_DUMPBIN
745 DUMPBIN
746 LD
747 FGREP
748 SED
749 LIBTOOL
750 collect2
751 NO_PIE_FLAG_FOR_BUILD
752 NO_PIE_CFLAGS_FOR_BUILD
753 BUILD_NO_PIE_FLAG
754 BUILD_NO_PIE_CFLAGS
755 STMP_FIXINC
756 BUILD_LDFLAGS
757 BUILD_CXXFLAGS
758 BUILD_CFLAGS
759 CXX_FOR_BUILD
760 CC_FOR_BUILD
761 inhibit_libc
762 BUILD_SYSTEM_HEADER_DIR
763 SYSTEM_HEADER_DIR
764 ALL
765 CROSS
766 CATOBJEXT
767 GENCAT
768 INSTOBJEXT
769 DATADIRNAME
770 CATALOGS
771 POSUB
772 GMSGFMT
773 XGETTEXT
774 INCINTL
775 LIBINTL_DEP
776 LIBINTL
777 USE_NLS
778 get_gcc_base_ver
779 HAVE_AUTO_BUILD
780 extra_opt_files
781 extra_modes_file
782 NATIVE_SYSTEM_HEADER_DIR
783 objext
784 manext
785 LIBICONV_DEP
786 LTLIBICONV
787 LIBICONV
788 ZSTD_LIB
789 ZSTD_INCLUDE
790 DL_LIB
791 LDEXP_LIB
792 EXTRA_GCC_LIBS
793 GNAT_LIBEXC
794 COLLECT2_LIBS
795 CXXDEPMODE
796 DEPDIR
797 am__leading_dot
798 doc_build_sys
799 AR
800 NM
801 BISON
802 FLEX
803 GENERATED_MANPAGES
804 BUILD_INFO
805 MAKEINFO
806 have_mktemp_command
807 make_compare_target
808 INSTALL_DATA
809 INSTALL_PROGRAM
810 INSTALL
811 ranlib_flags
812 RANLIB
813 LN
814 LN_S
815 AWK
816 SET_MAKE
817 omp_device_property_deps
818 omp_device_properties
819 accel_dir_suffix
820 real_target_noncanonical
821 enable_as_accelerator
822 gnat_install_lib
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 HAVE_CXX11
851 EGREP
852 GREP
853 CXXCPP
854 PICFLAG_FOR_TARGET
855 GNATMAKE
856 GNATBIND
857 ac_ct_CXX
858 CXXFLAGS
859 CXX
860 OBJEXT
861 EXEEXT
862 ac_ct_CC
863 CPPFLAGS
864 LDFLAGS
865 CFLAGS
866 CC
867 GENINSRC
868 CROSS_SYSTEM_HEADER_DIR
869 TARGET_SYSTEM_ROOT_DEFINE
870 TARGET_SYSTEM_ROOT
871 SYSROOT_CFLAGS_FOR_TARGET
872 target_subdir
873 host_subdir
874 build_subdir
875 build_libsubdir
876 target_noncanonical
877 host_noncanonical
878 target_os
879 target_vendor
880 target_cpu
881 target
882 host_os
883 host_vendor
884 host_cpu
885 host
886 build_os
887 build_vendor
888 build_cpu
889 build
890 target_alias
891 host_alias
892 build_alias
893 LIBS
894 ECHO_T
895 ECHO_N
896 ECHO_C
897 DEFS
898 mandir
899 localedir
900 libdir
901 psdir
902 pdfdir
903 dvidir
904 htmldir
905 infodir
906 docdir
907 oldincludedir
908 includedir
909 localstatedir
910 sharedstatedir
911 sysconfdir
912 datadir
913 datarootdir
914 libexecdir
915 sbindir
916 bindir
917 program_transform_name
918 prefix
919 exec_prefix
920 PACKAGE_URL
921 PACKAGE_BUGREPORT
922 PACKAGE_STRING
923 PACKAGE_VERSION
924 PACKAGE_TARNAME
925 PACKAGE_NAME
926 PATH_SEPARATOR
927 SHELL'
928 ac_subst_files='option_includes
929 language_hooks'
930 ac_user_opts='
931 enable_option_checking
932 with_build_libsubdir
933 with_local_prefix
934 with_native_system_header_dir
935 with_build_sysroot
936 with_sysroot
937 with_gxx_include_dir
938 with_cpp_install_dir
939 enable_generated_files_in_srcdir
940 with_gnu_ld
941 with_ld
942 with_demangler_in_ld
943 with_gnu_as
944 with_as
945 enable_largefile
946 enable_build_format_warnings
947 enable_werror_always
948 enable_checking
949 enable_coverage
950 enable_gather_detailed_mem_stats
951 enable_valgrind_annotations
952 with_stabs
953 enable_multilib
954 enable_multiarch
955 with_stack_clash_protection_guard_size
956 enable___cxa_atexit
957 enable_decimal_float
958 enable_fixed_point
959 enable_threads
960 enable_tls
961 enable_vtable_verify
962 enable_analyzer
963 enable_objc_gc
964 with_dwarf2
965 enable_shared
966 enable_gcov
967 with_specs
968 with_pkgversion
969 with_bugurl
970 with_documentation_root_url
971 with_changes_root_url
972 enable_languages
973 with_multilib_list
974 with_zstd
975 with_zstd_include
976 with_zstd_lib
977 enable_rpath
978 with_libiconv_prefix
979 with_libiconv_type
980 enable_sjlj_exceptions
981 with_gcc_major_version_only
982 enable_secureplt
983 enable_mingw_wildcard
984 enable_large_address_aware
985 enable_leading_mingw64_underscores
986 enable_cld
987 enable_frame_pointer
988 enable_win32_registry
989 enable_static
990 with_pic
991 enable_fast_install
992 enable_libtool_lock
993 enable_ld
994 enable_gold
995 with_plugin_ld
996 enable_gnu_indirect_function
997 enable_initfini_array
998 enable_comdat
999 enable_newlib_nano_formatted_io
1000 enable_standard_branch_protection
1001 enable_fix_cortex_a53_835769
1002 enable_fix_cortex_a53_843419
1003 with_glibc_version
1004 enable_gnu_unique_object
1005 enable_linker_build_id
1006 enable_libssp
1007 enable_default_ssp
1008 with_long_double_128
1009 with_long_double_format
1010 with_gc
1011 with_system_zlib
1012 enable_maintainer_mode
1013 enable_link_mutex
1014 enable_version_specific_runtime_libs
1015 enable_plugin
1016 enable_host_shared
1017 enable_libquadmath_support
1018 with_linker_hash_style
1019 with_diagnostics_color
1020 with_diagnostics_urls
1021 enable_default_pie
1022 enable_cet
1023 '
1024 ac_precious_vars='build_alias
1025 host_alias
1026 target_alias
1027 CC
1028 CFLAGS
1029 LDFLAGS
1030 LIBS
1031 CPPFLAGS
1032 CXX
1033 CXXFLAGS
1034 CCC
1035 CXXCPP
1036 CPP
1037 GMPLIBS
1038 GMPINC
1039 ISLLIBS
1040 ISLINC'
1041
1042
1043 # Initialize some variables set by options.
1044 ac_init_help=
1045 ac_init_version=false
1046 ac_unrecognized_opts=
1047 ac_unrecognized_sep=
1048 # The variables have the same names as the options, with
1049 # dashes changed to underlines.
1050 cache_file=/dev/null
1051 exec_prefix=NONE
1052 no_create=
1053 no_recursion=
1054 prefix=NONE
1055 program_prefix=NONE
1056 program_suffix=NONE
1057 program_transform_name=s,x,x,
1058 silent=
1059 site=
1060 srcdir=
1061 verbose=
1062 x_includes=NONE
1063 x_libraries=NONE
1064
1065 # Installation directory options.
1066 # These are left unexpanded so users can "make install exec_prefix=/foo"
1067 # and all the variables that are supposed to be based on exec_prefix
1068 # by default will actually change.
1069 # Use braces instead of parens because sh, perl, etc. also accept them.
1070 # (The list follows the same order as the GNU Coding Standards.)
1071 bindir='${exec_prefix}/bin'
1072 sbindir='${exec_prefix}/sbin'
1073 libexecdir='${exec_prefix}/libexec'
1074 datarootdir='${prefix}/share'
1075 datadir='${datarootdir}'
1076 sysconfdir='${prefix}/etc'
1077 sharedstatedir='${prefix}/com'
1078 localstatedir='${prefix}/var'
1079 includedir='${prefix}/include'
1080 oldincludedir='/usr/include'
1081 docdir='${datarootdir}/doc/${PACKAGE}'
1082 infodir='${datarootdir}/info'
1083 htmldir='${docdir}'
1084 dvidir='${docdir}'
1085 pdfdir='${docdir}'
1086 psdir='${docdir}'
1087 libdir='${exec_prefix}/lib'
1088 localedir='${datarootdir}/locale'
1089 mandir='${datarootdir}/man'
1090
1091 ac_prev=
1092 ac_dashdash=
1093 for ac_option
1094 do
1095 # If the previous option needs an argument, assign it.
1096 if test -n "$ac_prev"; then
1097 eval $ac_prev=\$ac_option
1098 ac_prev=
1099 continue
1100 fi
1101
1102 case $ac_option in
1103 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1104 *=) ac_optarg= ;;
1105 *) ac_optarg=yes ;;
1106 esac
1107
1108 # Accept the important Cygnus configure options, so we can diagnose typos.
1109
1110 case $ac_dashdash$ac_option in
1111 --)
1112 ac_dashdash=yes ;;
1113
1114 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1115 ac_prev=bindir ;;
1116 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1117 bindir=$ac_optarg ;;
1118
1119 -build | --build | --buil | --bui | --bu)
1120 ac_prev=build_alias ;;
1121 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1122 build_alias=$ac_optarg ;;
1123
1124 -cache-file | --cache-file | --cache-fil | --cache-fi \
1125 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1126 ac_prev=cache_file ;;
1127 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1128 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1129 cache_file=$ac_optarg ;;
1130
1131 --config-cache | -C)
1132 cache_file=config.cache ;;
1133
1134 -datadir | --datadir | --datadi | --datad)
1135 ac_prev=datadir ;;
1136 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1137 datadir=$ac_optarg ;;
1138
1139 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1140 | --dataroo | --dataro | --datar)
1141 ac_prev=datarootdir ;;
1142 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1143 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1144 datarootdir=$ac_optarg ;;
1145
1146 -disable-* | --disable-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error $? "invalid feature name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1154 *"
1155 "enable_$ac_useropt"
1156 "*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval enable_$ac_useropt=no ;;
1161
1162 -docdir | --docdir | --docdi | --doc | --do)
1163 ac_prev=docdir ;;
1164 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1165 docdir=$ac_optarg ;;
1166
1167 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1168 ac_prev=dvidir ;;
1169 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1170 dvidir=$ac_optarg ;;
1171
1172 -enable-* | --enable-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid feature name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181 "enable_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval enable_$ac_useropt=\$ac_optarg ;;
1187
1188 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1189 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1190 | --exec | --exe | --ex)
1191 ac_prev=exec_prefix ;;
1192 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1193 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1194 | --exec=* | --exe=* | --ex=*)
1195 exec_prefix=$ac_optarg ;;
1196
1197 -gas | --gas | --ga | --g)
1198 # Obsolete; use --with-gas.
1199 with_gas=yes ;;
1200
1201 -help | --help | --hel | --he | -h)
1202 ac_init_help=long ;;
1203 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1204 ac_init_help=recursive ;;
1205 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1206 ac_init_help=short ;;
1207
1208 -host | --host | --hos | --ho)
1209 ac_prev=host_alias ;;
1210 -host=* | --host=* | --hos=* | --ho=*)
1211 host_alias=$ac_optarg ;;
1212
1213 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1214 ac_prev=htmldir ;;
1215 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1216 | --ht=*)
1217 htmldir=$ac_optarg ;;
1218
1219 -includedir | --includedir | --includedi | --included | --include \
1220 | --includ | --inclu | --incl | --inc)
1221 ac_prev=includedir ;;
1222 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1223 | --includ=* | --inclu=* | --incl=* | --inc=*)
1224 includedir=$ac_optarg ;;
1225
1226 -infodir | --infodir | --infodi | --infod | --info | --inf)
1227 ac_prev=infodir ;;
1228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1229 infodir=$ac_optarg ;;
1230
1231 -libdir | --libdir | --libdi | --libd)
1232 ac_prev=libdir ;;
1233 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1234 libdir=$ac_optarg ;;
1235
1236 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1237 | --libexe | --libex | --libe)
1238 ac_prev=libexecdir ;;
1239 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1240 | --libexe=* | --libex=* | --libe=*)
1241 libexecdir=$ac_optarg ;;
1242
1243 -localedir | --localedir | --localedi | --localed | --locale)
1244 ac_prev=localedir ;;
1245 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1246 localedir=$ac_optarg ;;
1247
1248 -localstatedir | --localstatedir | --localstatedi | --localstated \
1249 | --localstate | --localstat | --localsta | --localst | --locals)
1250 ac_prev=localstatedir ;;
1251 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1252 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1253 localstatedir=$ac_optarg ;;
1254
1255 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1256 ac_prev=mandir ;;
1257 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1258 mandir=$ac_optarg ;;
1259
1260 -nfp | --nfp | --nf)
1261 # Obsolete; use --without-fp.
1262 with_fp=no ;;
1263
1264 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1265 | --no-cr | --no-c | -n)
1266 no_create=yes ;;
1267
1268 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1269 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1270 no_recursion=yes ;;
1271
1272 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1273 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1274 | --oldin | --oldi | --old | --ol | --o)
1275 ac_prev=oldincludedir ;;
1276 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1277 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1278 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1279 oldincludedir=$ac_optarg ;;
1280
1281 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1282 ac_prev=prefix ;;
1283 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1284 prefix=$ac_optarg ;;
1285
1286 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1287 | --program-pre | --program-pr | --program-p)
1288 ac_prev=program_prefix ;;
1289 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1290 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1291 program_prefix=$ac_optarg ;;
1292
1293 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1294 | --program-suf | --program-su | --program-s)
1295 ac_prev=program_suffix ;;
1296 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1297 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1298 program_suffix=$ac_optarg ;;
1299
1300 -program-transform-name | --program-transform-name \
1301 | --program-transform-nam | --program-transform-na \
1302 | --program-transform-n | --program-transform- \
1303 | --program-transform | --program-transfor \
1304 | --program-transfo | --program-transf \
1305 | --program-trans | --program-tran \
1306 | --progr-tra | --program-tr | --program-t)
1307 ac_prev=program_transform_name ;;
1308 -program-transform-name=* | --program-transform-name=* \
1309 | --program-transform-nam=* | --program-transform-na=* \
1310 | --program-transform-n=* | --program-transform-=* \
1311 | --program-transform=* | --program-transfor=* \
1312 | --program-transfo=* | --program-transf=* \
1313 | --program-trans=* | --program-tran=* \
1314 | --progr-tra=* | --program-tr=* | --program-t=*)
1315 program_transform_name=$ac_optarg ;;
1316
1317 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1318 ac_prev=pdfdir ;;
1319 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1320 pdfdir=$ac_optarg ;;
1321
1322 -psdir | --psdir | --psdi | --psd | --ps)
1323 ac_prev=psdir ;;
1324 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1325 psdir=$ac_optarg ;;
1326
1327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1328 | -silent | --silent | --silen | --sile | --sil)
1329 silent=yes ;;
1330
1331 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1332 ac_prev=sbindir ;;
1333 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1334 | --sbi=* | --sb=*)
1335 sbindir=$ac_optarg ;;
1336
1337 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1338 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1339 | --sharedst | --shareds | --shared | --share | --shar \
1340 | --sha | --sh)
1341 ac_prev=sharedstatedir ;;
1342 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1343 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1344 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1345 | --sha=* | --sh=*)
1346 sharedstatedir=$ac_optarg ;;
1347
1348 -site | --site | --sit)
1349 ac_prev=site ;;
1350 -site=* | --site=* | --sit=*)
1351 site=$ac_optarg ;;
1352
1353 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1354 ac_prev=srcdir ;;
1355 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1356 srcdir=$ac_optarg ;;
1357
1358 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1359 | --syscon | --sysco | --sysc | --sys | --sy)
1360 ac_prev=sysconfdir ;;
1361 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1362 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1363 sysconfdir=$ac_optarg ;;
1364
1365 -target | --target | --targe | --targ | --tar | --ta | --t)
1366 ac_prev=target_alias ;;
1367 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1368 target_alias=$ac_optarg ;;
1369
1370 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1371 verbose=yes ;;
1372
1373 -version | --version | --versio | --versi | --vers | -V)
1374 ac_init_version=: ;;
1375
1376 -with-* | --with-*)
1377 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1378 # Reject names that are not valid shell variable names.
1379 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1380 as_fn_error $? "invalid package name: $ac_useropt"
1381 ac_useropt_orig=$ac_useropt
1382 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1383 case $ac_user_opts in
1384 *"
1385 "with_$ac_useropt"
1386 "*) ;;
1387 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1388 ac_unrecognized_sep=', ';;
1389 esac
1390 eval with_$ac_useropt=\$ac_optarg ;;
1391
1392 -without-* | --without-*)
1393 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1394 # Reject names that are not valid shell variable names.
1395 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1396 as_fn_error $? "invalid package name: $ac_useropt"
1397 ac_useropt_orig=$ac_useropt
1398 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1399 case $ac_user_opts in
1400 *"
1401 "with_$ac_useropt"
1402 "*) ;;
1403 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1404 ac_unrecognized_sep=', ';;
1405 esac
1406 eval with_$ac_useropt=no ;;
1407
1408 --x)
1409 # Obsolete; use --with-x.
1410 with_x=yes ;;
1411
1412 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1413 | --x-incl | --x-inc | --x-in | --x-i)
1414 ac_prev=x_includes ;;
1415 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1416 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1417 x_includes=$ac_optarg ;;
1418
1419 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1420 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1421 ac_prev=x_libraries ;;
1422 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1423 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1424 x_libraries=$ac_optarg ;;
1425
1426 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1427 Try \`$0 --help' for more information"
1428 ;;
1429
1430 *=*)
1431 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1432 # Reject names that are not valid shell variable names.
1433 case $ac_envvar in #(
1434 '' | [0-9]* | *[!_$as_cr_alnum]* )
1435 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1436 esac
1437 eval $ac_envvar=\$ac_optarg
1438 export $ac_envvar ;;
1439
1440 *)
1441 # FIXME: should be removed in autoconf 3.0.
1442 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1443 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1444 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1445 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1446 ;;
1447
1448 esac
1449 done
1450
1451 if test -n "$ac_prev"; then
1452 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1453 as_fn_error $? "missing argument to $ac_option"
1454 fi
1455
1456 if test -n "$ac_unrecognized_opts"; then
1457 case $enable_option_checking in
1458 no) ;;
1459 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1460 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1461 esac
1462 fi
1463
1464 # Check all directory arguments for consistency.
1465 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1466 datadir sysconfdir sharedstatedir localstatedir includedir \
1467 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1468 libdir localedir mandir
1469 do
1470 eval ac_val=\$$ac_var
1471 # Remove trailing slashes.
1472 case $ac_val in
1473 */ )
1474 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1475 eval $ac_var=\$ac_val;;
1476 esac
1477 # Be sure to have absolute directory names.
1478 case $ac_val in
1479 [\\/$]* | ?:[\\/]* ) continue;;
1480 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1481 esac
1482 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1483 done
1484
1485 # There might be people who depend on the old broken behavior: `$host'
1486 # used to hold the argument of --host etc.
1487 # FIXME: To remove some day.
1488 build=$build_alias
1489 host=$host_alias
1490 target=$target_alias
1491
1492 # FIXME: To remove some day.
1493 if test "x$host_alias" != x; then
1494 if test "x$build_alias" = x; then
1495 cross_compiling=maybe
1496 elif test "x$build_alias" != "x$host_alias"; then
1497 cross_compiling=yes
1498 fi
1499 fi
1500
1501 ac_tool_prefix=
1502 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1503
1504 test "$silent" = yes && exec 6>/dev/null
1505
1506
1507 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1508 ac_ls_di=`ls -di .` &&
1509 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1510 as_fn_error $? "working directory cannot be determined"
1511 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1512 as_fn_error $? "pwd does not report name of working directory"
1513
1514
1515 # Find the source files, if location was not specified.
1516 if test -z "$srcdir"; then
1517 ac_srcdir_defaulted=yes
1518 # Try the directory containing this script, then the parent directory.
1519 ac_confdir=`$as_dirname -- "$as_myself" ||
1520 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1521 X"$as_myself" : 'X\(//\)[^/]' \| \
1522 X"$as_myself" : 'X\(//\)$' \| \
1523 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1524 $as_echo X"$as_myself" |
1525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1526 s//\1/
1527 q
1528 }
1529 /^X\(\/\/\)[^/].*/{
1530 s//\1/
1531 q
1532 }
1533 /^X\(\/\/\)$/{
1534 s//\1/
1535 q
1536 }
1537 /^X\(\/\).*/{
1538 s//\1/
1539 q
1540 }
1541 s/.*/./; q'`
1542 srcdir=$ac_confdir
1543 if test ! -r "$srcdir/$ac_unique_file"; then
1544 srcdir=..
1545 fi
1546 else
1547 ac_srcdir_defaulted=no
1548 fi
1549 if test ! -r "$srcdir/$ac_unique_file"; then
1550 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1551 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1552 fi
1553 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1554 ac_abs_confdir=`(
1555 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1556 pwd)`
1557 # When building in place, set srcdir=.
1558 if test "$ac_abs_confdir" = "$ac_pwd"; then
1559 srcdir=.
1560 fi
1561 # Remove unnecessary trailing slashes from srcdir.
1562 # Double slashes in file names in object file debugging info
1563 # mess up M-x gdb in Emacs.
1564 case $srcdir in
1565 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1566 esac
1567 for ac_var in $ac_precious_vars; do
1568 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1569 eval ac_env_${ac_var}_value=\$${ac_var}
1570 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1571 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1572 done
1573
1574 #
1575 # Report the --help message.
1576 #
1577 if test "$ac_init_help" = "long"; then
1578 # Omit some internal or obsolete options to make the list less imposing.
1579 # This message is too long to be a string in the A/UX 3.1 sh.
1580 cat <<_ACEOF
1581 \`configure' configures this package to adapt to many kinds of systems.
1582
1583 Usage: $0 [OPTION]... [VAR=VALUE]...
1584
1585 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1586 VAR=VALUE. See below for descriptions of some of the useful variables.
1587
1588 Defaults for the options are specified in brackets.
1589
1590 Configuration:
1591 -h, --help display this help and exit
1592 --help=short display options specific to this package
1593 --help=recursive display the short help of all the included packages
1594 -V, --version display version information and exit
1595 -q, --quiet, --silent do not print \`checking ...' messages
1596 --cache-file=FILE cache test results in FILE [disabled]
1597 -C, --config-cache alias for \`--cache-file=config.cache'
1598 -n, --no-create do not create output files
1599 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1600
1601 Installation directories:
1602 --prefix=PREFIX install architecture-independent files in PREFIX
1603 [$ac_default_prefix]
1604 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1605 [PREFIX]
1606
1607 By default, \`make install' will install all the files in
1608 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1609 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1610 for instance \`--prefix=\$HOME'.
1611
1612 For better control, use the options below.
1613
1614 Fine tuning of the installation directories:
1615 --bindir=DIR user executables [EPREFIX/bin]
1616 --sbindir=DIR system admin executables [EPREFIX/sbin]
1617 --libexecdir=DIR program executables [EPREFIX/libexec]
1618 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1619 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1620 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1621 --libdir=DIR object code libraries [EPREFIX/lib]
1622 --includedir=DIR C header files [PREFIX/include]
1623 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1624 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1625 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1626 --infodir=DIR info documentation [DATAROOTDIR/info]
1627 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1628 --mandir=DIR man documentation [DATAROOTDIR/man]
1629 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1630 --htmldir=DIR html documentation [DOCDIR]
1631 --dvidir=DIR dvi documentation [DOCDIR]
1632 --pdfdir=DIR pdf documentation [DOCDIR]
1633 --psdir=DIR ps documentation [DOCDIR]
1634 _ACEOF
1635
1636 cat <<\_ACEOF
1637
1638 Program names:
1639 --program-prefix=PREFIX prepend PREFIX to installed program names
1640 --program-suffix=SUFFIX append SUFFIX to installed program names
1641 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1642
1643 System types:
1644 --build=BUILD configure for building on BUILD [guessed]
1645 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1646 --target=TARGET configure for building compilers for TARGET [HOST]
1647 _ACEOF
1648 fi
1649
1650 if test -n "$ac_init_help"; then
1651
1652 cat <<\_ACEOF
1653
1654 Optional Features:
1655 --disable-option-checking ignore unrecognized --enable/--with options
1656 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1657 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1658 --enable-generated-files-in-srcdir
1659 put copies of generated files in source dir intended
1660 for creating source tarballs for users without
1661 texinfo bison or flex
1662 --disable-largefile omit support for large files
1663 --disable-build-format-warnings
1664 don't use -Wformat while building GCC
1665 --enable-werror-always enable -Werror despite compiler version
1666 --enable-checking[=LIST]
1667 enable expensive run-time checks. With LIST, enable
1668 only specific categories of checks. Categories are:
1669 yes,no,all,none,release. Flags are:
1670 assert,df,extra,fold,gc,gcac,gimple,misc,
1671 rtlflag,rtl,runtime,tree,valgrind,types
1672 --enable-coverage[=LEVEL]
1673 enable compiler's code coverage collection. Use to
1674 measure compiler performance and locate unused parts
1675 of the compiler. With LEVEL, specify optimization.
1676 Values are opt, noopt, default is noopt
1677 --enable-gather-detailed-mem-stats
1678 enable detailed memory allocation stats gathering
1679 --enable-valgrind-annotations
1680 enable valgrind runtime interaction
1681 --enable-multilib enable library support for multiple ABIs
1682 --enable-multiarch enable support for multiarch paths
1683 --enable-__cxa_atexit enable __cxa_atexit for C++
1684 --enable-decimal-float={no,yes,bid,dpd}
1685 enable decimal float extension to C. Selecting 'bid'
1686 or 'dpd' choses which decimal floating point format
1687 to use
1688 --enable-fixed-point enable fixed-point arithmetic extension to C
1689 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1690 package
1691 --enable-tls enable or disable generation of tls code overriding
1692 the assembler check for tls support
1693 --enable-vtable-verify enable vtable verification feature
1694 --disable-analyzer disable -fanalyzer static analyzer
1695 --enable-objc-gc enable the use of Boehm's garbage collector with the
1696 GNU Objective-C runtime
1697 --disable-shared don't provide a shared libgcc
1698 --disable-gcov don't provide libgcov and related host tools
1699 --enable-languages=LIST specify which front-ends to build
1700 --disable-rpath do not hardcode runtime library paths
1701 --enable-sjlj-exceptions
1702 arrange to use setjmp/longjmp exception handling
1703 --enable-secureplt enable -msecure-plt by default for PowerPC
1704 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1705 Default to platform configuration
1706 --enable-large-address-aware
1707 Link mingw executables with --large-address-aware
1708 --enable-leading-mingw64-underscores
1709 enable leading underscores on 64 bit mingw targets
1710 --enable-cld enable -mcld by default for 32bit x86
1711 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1712 --disable-win32-registry
1713 disable lookup of installation paths in the Registry
1714 on Windows hosts
1715 --enable-win32-registry enable registry lookup (default)
1716 --enable-win32-registry=KEY
1717 use KEY instead of GCC version as the last portion
1718 of the registry key
1719 --enable-shared[=PKGS] build shared libraries [default=yes]
1720 --enable-static[=PKGS] build static libraries [default=yes]
1721 --enable-fast-install[=PKGS]
1722 optimize for fast installation [default=yes]
1723 --disable-libtool-lock avoid locking (might break parallel builds)
1724 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1725 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1726 --enable-gnu-indirect-function
1727 enable the use of the @gnu_indirect_function to
1728 glibc systems
1729 --enable-initfini-array use .init_array/.fini_array sections
1730 --enable-comdat enable COMDAT group support
1731 --enable-newlib-nano-formatted-io
1732 Use nano version formatted IO
1733
1734 --enable-standard-branch-protection
1735 enable Branch Target Identification Mechanism and
1736 Return Address Signing by default for AArch64
1737 --disable-standard-branch-protection
1738 disable Branch Target Identification Mechanism and
1739 Return Address Signing by default for AArch64
1740
1741
1742 --enable-fix-cortex-a53-835769
1743 enable workaround for AArch64 Cortex-A53 erratum
1744 835769 by default
1745 --disable-fix-cortex-a53-835769
1746 disable workaround for AArch64 Cortex-A53 erratum
1747 835769 by default
1748
1749
1750 --enable-fix-cortex-a53-843419
1751 enable workaround for AArch64 Cortex-A53 erratum
1752 843419 by default
1753 --disable-fix-cortex-a53-843419
1754 disable workaround for AArch64 Cortex-A53 erratum
1755 843419 by default
1756
1757 --enable-gnu-unique-object
1758 enable the use of the @gnu_unique_object ELF
1759 extension on glibc systems
1760 --enable-linker-build-id
1761 compiler will always pass --build-id to linker
1762 --enable-libssp enable linking against libssp
1763 --enable-default-ssp enable Stack Smashing Protection as default
1764 --enable-maintainer-mode
1765 enable make rules and dependencies not useful (and
1766 sometimes confusing) to the casual installer
1767 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1768 thrashing on the build machine
1769 --enable-version-specific-runtime-libs
1770 specify that runtime libraries should be installed
1771 in a compiler-specific directory
1772 --enable-plugin enable plugin support
1773 --enable-host-shared build host code as shared libraries
1774 --disable-libquadmath-support
1775 disable libquadmath support for Fortran
1776 --enable-default-pie enable Position Independent Executable as default
1777 --enable-cet enable Intel CET in host libraries [default=auto]
1778
1779 Optional Packages:
1780 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1781 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1782 --with-build-libsubdir=DIR Directory where to find libraries for build system
1783 --with-local-prefix=DIR specifies directory to put local include
1784 --with-native-system-header-dir=dir
1785 use dir as the directory to look for standard
1786 system header files in. Defaults to /usr/include.
1787 --with-build-sysroot=sysroot
1788 use sysroot as the system root during the build
1789 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1790 --with-gxx-include-dir=DIR
1791 specifies directory to put g++ header files
1792 --with-cpp-install-dir=DIR
1793 install the user visible C preprocessor in DIR
1794 (relative to PREFIX) as well as PREFIX/bin
1795 --with-gnu-ld arrange to work with GNU ld
1796 --with-ld arrange to use the specified ld (full pathname)
1797 --with-demangler-in-ld try to use demangler in GNU ld
1798 --with-gnu-as arrange to work with GNU as
1799 --with-as arrange to use the specified as (full pathname)
1800 --with-stabs arrange to use stabs instead of host debug format
1801 --with-stack-clash-protection-guard-size=size
1802 Set the default stack clash protection guard size
1803 for specific targets as a power of two in bytes.
1804 --with-dwarf2 force the default debug format to be DWARF 2
1805 --with-specs=SPECS add SPECS to driver command-line processing
1806 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1807 --with-bugurl=URL Direct users to URL to report a bug
1808 --with-documentation-root-url=URL
1809 Root for documentation URLs
1810 --with-changes-root-url=URL
1811 Root for GCC changes URLs
1812 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1813 --with-zstd=PATH specify prefix directory for installed zstd library.
1814 Equivalent to --with-zstd-include=PATH/include plus
1815 --with-zstd-lib=PATH/lib
1816 --with-zstd-include=PATH
1817 specify directory for installed zstd include files
1818 --with-zstd-lib=PATH specify directory for the installed zstd library
1819 --with-gnu-ld assume the C compiler uses GNU ld default=no
1820 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1821 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1822 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1823 --with-gcc-major-version-only
1824 use only GCC major number in filesystem paths
1825 --with-pic try to use only PIC/non-PIC objects [default=use
1826 both]
1827 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1828 --with-plugin-ld=[ARG] specify the plugin linker
1829 --with-glibc-version=M.N
1830 assume GCC used with glibc version M.N or later
1831 --with-long-double-128 use 128-bit long double by default
1832 --with-long-double-format={ieee,ibm}
1833 Specify whether PowerPC long double uses IEEE or IBM format
1834
1835 --with-gc={page,zone} this option is not supported anymore. It used to
1836 choose the garbage collection mechanism to use with
1837 the compiler
1838 --with-system-zlib use installed libz
1839 --with-linker-hash-style={sysv,gnu,both}
1840 specify the linker hash style
1841 --with-diagnostics-color={never,auto,auto-if-env,always}
1842 specify the default of -fdiagnostics-color option
1843 auto-if-env stands for -fdiagnostics-color=auto if
1844 GCC_COLOR environment variable is present and
1845 -fdiagnostics-color=never otherwise
1846 --with-diagnostics-urls={never,auto,auto-if-env,always}
1847 specify the default of -fdiagnostics-urls option
1848 auto-if-env stands for -fdiagnostics-urls=auto if
1849 GCC_URLS or TERM_URLS environment variable is
1850 present and -fdiagnostics-urls=never otherwise
1851
1852 Some influential environment variables:
1853 CC C compiler command
1854 CFLAGS C compiler flags
1855 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1856 nonstandard directory <lib dir>
1857 LIBS libraries to pass to the linker, e.g. -l<library>
1858 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1859 you have headers in a nonstandard directory <include dir>
1860 CXX C++ compiler command
1861 CXXFLAGS C++ compiler flags
1862 CXXCPP C++ preprocessor
1863 CPP C preprocessor
1864 GMPLIBS How to link GMP
1865 GMPINC How to find GMP include files
1866 ISLLIBS How to link isl
1867 ISLINC How to find isl include files
1868
1869 Use these variables to override the choices made by `configure' or to help
1870 it to find libraries and programs with nonstandard names/locations.
1871
1872 Report bugs to the package provider.
1873 _ACEOF
1874 ac_status=$?
1875 fi
1876
1877 if test "$ac_init_help" = "recursive"; then
1878 # If there are subdirs, report their specific --help.
1879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1880 test -d "$ac_dir" ||
1881 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1882 continue
1883 ac_builddir=.
1884
1885 case "$ac_dir" in
1886 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1887 *)
1888 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1889 # A ".." for each directory in $ac_dir_suffix.
1890 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1891 case $ac_top_builddir_sub in
1892 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1893 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1894 esac ;;
1895 esac
1896 ac_abs_top_builddir=$ac_pwd
1897 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1898 # for backward compatibility:
1899 ac_top_builddir=$ac_top_build_prefix
1900
1901 case $srcdir in
1902 .) # We are building in place.
1903 ac_srcdir=.
1904 ac_top_srcdir=$ac_top_builddir_sub
1905 ac_abs_top_srcdir=$ac_pwd ;;
1906 [\\/]* | ?:[\\/]* ) # Absolute name.
1907 ac_srcdir=$srcdir$ac_dir_suffix;
1908 ac_top_srcdir=$srcdir
1909 ac_abs_top_srcdir=$srcdir ;;
1910 *) # Relative name.
1911 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1912 ac_top_srcdir=$ac_top_build_prefix$srcdir
1913 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1914 esac
1915 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1916
1917 cd "$ac_dir" || { ac_status=$?; continue; }
1918 # Check for guested configure.
1919 if test -f "$ac_srcdir/configure.gnu"; then
1920 echo &&
1921 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1922 elif test -f "$ac_srcdir/configure"; then
1923 echo &&
1924 $SHELL "$ac_srcdir/configure" --help=recursive
1925 else
1926 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1927 fi || ac_status=$?
1928 cd "$ac_pwd" || { ac_status=$?; break; }
1929 done
1930 fi
1931
1932 test -n "$ac_init_help" && exit $ac_status
1933 if $ac_init_version; then
1934 cat <<\_ACEOF
1935 configure
1936 generated by GNU Autoconf 2.69
1937
1938 Copyright (C) 2012 Free Software Foundation, Inc.
1939 This configure script is free software; the Free Software Foundation
1940 gives unlimited permission to copy, distribute and modify it.
1941 _ACEOF
1942 exit
1943 fi
1944
1945 ## ------------------------ ##
1946 ## Autoconf initialization. ##
1947 ## ------------------------ ##
1948
1949 # ac_fn_c_try_compile LINENO
1950 # --------------------------
1951 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1952 ac_fn_c_try_compile ()
1953 {
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 rm -f conftest.$ac_objext
1956 if { { ac_try="$ac_compile"
1957 case "(($ac_try" in
1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963 (eval "$ac_compile") 2>conftest.err
1964 ac_status=$?
1965 if test -s conftest.err; then
1966 grep -v '^ *+' conftest.err >conftest.er1
1967 cat conftest.er1 >&5
1968 mv -f conftest.er1 conftest.err
1969 fi
1970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; } && {
1972 test -z "$ac_c_werror_flag" ||
1973 test ! -s conftest.err
1974 } && test -s conftest.$ac_objext; then :
1975 ac_retval=0
1976 else
1977 $as_echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1979
1980 ac_retval=1
1981 fi
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 as_fn_set_status $ac_retval
1984
1985 } # ac_fn_c_try_compile
1986
1987 # ac_fn_cxx_try_compile LINENO
1988 # ----------------------------
1989 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1990 ac_fn_cxx_try_compile ()
1991 {
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 rm -f conftest.$ac_objext
1994 if { { ac_try="$ac_compile"
1995 case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998 esac
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_compile") 2>conftest.err
2002 ac_status=$?
2003 if test -s conftest.err; then
2004 grep -v '^ *+' conftest.err >conftest.er1
2005 cat conftest.er1 >&5
2006 mv -f conftest.er1 conftest.err
2007 fi
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && {
2010 test -z "$ac_cxx_werror_flag" ||
2011 test ! -s conftest.err
2012 } && test -s conftest.$ac_objext; then :
2013 ac_retval=0
2014 else
2015 $as_echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2017
2018 ac_retval=1
2019 fi
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021 as_fn_set_status $ac_retval
2022
2023 } # ac_fn_cxx_try_compile
2024
2025 # ac_fn_cxx_try_cpp LINENO
2026 # ------------------------
2027 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2028 ac_fn_cxx_try_cpp ()
2029 {
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if { { ac_try="$ac_cpp conftest.$ac_ext"
2032 case "(($ac_try" in
2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2035 esac
2036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037 $as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2039 ac_status=$?
2040 if test -s conftest.err; then
2041 grep -v '^ *+' conftest.err >conftest.er1
2042 cat conftest.er1 >&5
2043 mv -f conftest.er1 conftest.err
2044 fi
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } > conftest.i && {
2047 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2048 test ! -s conftest.err
2049 }; then :
2050 ac_retval=0
2051 else
2052 $as_echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2054
2055 ac_retval=1
2056 fi
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058 as_fn_set_status $ac_retval
2059
2060 } # ac_fn_cxx_try_cpp
2061
2062 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2063 # ---------------------------------------------------------
2064 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2065 # the include files in INCLUDES and setting the cache variable VAR
2066 # accordingly.
2067 ac_fn_cxx_check_header_mongrel ()
2068 {
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if eval \${$3+:} false; then :
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075 fi
2076 eval ac_res=\$$3
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079 else
2080 # Is the header compilable?
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2082 $as_echo_n "checking $2 usability... " >&6; }
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 $4
2086 #include <$2>
2087 _ACEOF
2088 if ac_fn_cxx_try_compile "$LINENO"; then :
2089 ac_header_compiler=yes
2090 else
2091 ac_header_compiler=no
2092 fi
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2095 $as_echo "$ac_header_compiler" >&6; }
2096
2097 # Is the header present?
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2099 $as_echo_n "checking $2 presence... " >&6; }
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2102 #include <$2>
2103 _ACEOF
2104 if ac_fn_cxx_try_cpp "$LINENO"; then :
2105 ac_header_preproc=yes
2106 else
2107 ac_header_preproc=no
2108 fi
2109 rm -f conftest.err conftest.i conftest.$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2111 $as_echo "$ac_header_preproc" >&6; }
2112
2113 # So? What about this header?
2114 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2115 yes:no: )
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2117 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2119 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2120 ;;
2121 no:yes:* )
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2123 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2125 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2127 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2129 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2131 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2132 ;;
2133 esac
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2135 $as_echo_n "checking for $2... " >&6; }
2136 if eval \${$3+:} false; then :
2137 $as_echo_n "(cached) " >&6
2138 else
2139 eval "$3=\$ac_header_compiler"
2140 fi
2141 eval ac_res=\$$3
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2143 $as_echo "$ac_res" >&6; }
2144 fi
2145 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146
2147 } # ac_fn_cxx_check_header_mongrel
2148
2149 # ac_fn_cxx_try_run LINENO
2150 # ------------------------
2151 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2152 # that executables *can* be run.
2153 ac_fn_cxx_try_run ()
2154 {
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 if { { ac_try="$ac_link"
2157 case "(($ac_try" in
2158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159 *) ac_try_echo=$ac_try;;
2160 esac
2161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2162 $as_echo "$ac_try_echo"; } >&5
2163 (eval "$ac_link") 2>&5
2164 ac_status=$?
2165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2166 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2167 { { case "(($ac_try" in
2168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169 *) ac_try_echo=$ac_try;;
2170 esac
2171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2172 $as_echo "$ac_try_echo"; } >&5
2173 (eval "$ac_try") 2>&5
2174 ac_status=$?
2175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2176 test $ac_status = 0; }; }; then :
2177 ac_retval=0
2178 else
2179 $as_echo "$as_me: program exited with status $ac_status" >&5
2180 $as_echo "$as_me: failed program was:" >&5
2181 sed 's/^/| /' conftest.$ac_ext >&5
2182
2183 ac_retval=$ac_status
2184 fi
2185 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187 as_fn_set_status $ac_retval
2188
2189 } # ac_fn_cxx_try_run
2190
2191 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2192 # ---------------------------------------------------------
2193 # Tests whether HEADER exists and can be compiled using the include files in
2194 # INCLUDES, setting the cache variable VAR accordingly.
2195 ac_fn_cxx_check_header_compile ()
2196 {
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2199 $as_echo_n "checking for $2... " >&6; }
2200 if eval \${$3+:} false; then :
2201 $as_echo_n "(cached) " >&6
2202 else
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2205 $4
2206 #include <$2>
2207 _ACEOF
2208 if ac_fn_cxx_try_compile "$LINENO"; then :
2209 eval "$3=yes"
2210 else
2211 eval "$3=no"
2212 fi
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 fi
2215 eval ac_res=\$$3
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 $as_echo "$ac_res" >&6; }
2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2219
2220 } # ac_fn_cxx_check_header_compile
2221
2222 # ac_fn_c_try_cpp LINENO
2223 # ----------------------
2224 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2225 ac_fn_c_try_cpp ()
2226 {
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 if { { ac_try="$ac_cpp conftest.$ac_ext"
2229 case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232 esac
2233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234 $as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2236 ac_status=$?
2237 if test -s conftest.err; then
2238 grep -v '^ *+' conftest.err >conftest.er1
2239 cat conftest.er1 >&5
2240 mv -f conftest.er1 conftest.err
2241 fi
2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243 test $ac_status = 0; } > conftest.i && {
2244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2245 test ! -s conftest.err
2246 }; then :
2247 ac_retval=0
2248 else
2249 $as_echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2251
2252 ac_retval=1
2253 fi
2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255 as_fn_set_status $ac_retval
2256
2257 } # ac_fn_c_try_cpp
2258
2259 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2260 # ----------------------------------------------
2261 # Tries to find the compile-time value of EXPR in a program that includes
2262 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2263 # computed
2264 ac_fn_cxx_compute_int ()
2265 {
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 if test "$cross_compiling" = yes; then
2268 # Depending upon the size, compute the lo and hi bounds.
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2271 $4
2272 int
2273 main ()
2274 {
2275 static int test_array [1 - 2 * !(($2) >= 0)];
2276 test_array [0] = 0;
2277 return test_array [0];
2278
2279 ;
2280 return 0;
2281 }
2282 _ACEOF
2283 if ac_fn_cxx_try_compile "$LINENO"; then :
2284 ac_lo=0 ac_mid=0
2285 while :; do
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2288 $4
2289 int
2290 main ()
2291 {
2292 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2293 test_array [0] = 0;
2294 return test_array [0];
2295
2296 ;
2297 return 0;
2298 }
2299 _ACEOF
2300 if ac_fn_cxx_try_compile "$LINENO"; then :
2301 ac_hi=$ac_mid; break
2302 else
2303 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2304 if test $ac_lo -le $ac_mid; then
2305 ac_lo= ac_hi=
2306 break
2307 fi
2308 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2309 fi
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 done
2312 else
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2315 $4
2316 int
2317 main ()
2318 {
2319 static int test_array [1 - 2 * !(($2) < 0)];
2320 test_array [0] = 0;
2321 return test_array [0];
2322
2323 ;
2324 return 0;
2325 }
2326 _ACEOF
2327 if ac_fn_cxx_try_compile "$LINENO"; then :
2328 ac_hi=-1 ac_mid=-1
2329 while :; do
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2332 $4
2333 int
2334 main ()
2335 {
2336 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2337 test_array [0] = 0;
2338 return test_array [0];
2339
2340 ;
2341 return 0;
2342 }
2343 _ACEOF
2344 if ac_fn_cxx_try_compile "$LINENO"; then :
2345 ac_lo=$ac_mid; break
2346 else
2347 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2348 if test $ac_mid -le $ac_hi; then
2349 ac_lo= ac_hi=
2350 break
2351 fi
2352 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2353 fi
2354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355 done
2356 else
2357 ac_lo= ac_hi=
2358 fi
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 fi
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 # Binary search between lo and hi bounds.
2363 while test "x$ac_lo" != "x$ac_hi"; do
2364 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h. */
2367 $4
2368 int
2369 main ()
2370 {
2371 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2372 test_array [0] = 0;
2373 return test_array [0];
2374
2375 ;
2376 return 0;
2377 }
2378 _ACEOF
2379 if ac_fn_cxx_try_compile "$LINENO"; then :
2380 ac_hi=$ac_mid
2381 else
2382 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2383 fi
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 done
2386 case $ac_lo in #((
2387 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2388 '') ac_retval=1 ;;
2389 esac
2390 else
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2393 $4
2394 static long int longval () { return $2; }
2395 static unsigned long int ulongval () { return $2; }
2396 #include <stdio.h>
2397 #include <stdlib.h>
2398 int
2399 main ()
2400 {
2401
2402 FILE *f = fopen ("conftest.val", "w");
2403 if (! f)
2404 return 1;
2405 if (($2) < 0)
2406 {
2407 long int i = longval ();
2408 if (i != ($2))
2409 return 1;
2410 fprintf (f, "%ld", i);
2411 }
2412 else
2413 {
2414 unsigned long int i = ulongval ();
2415 if (i != ($2))
2416 return 1;
2417 fprintf (f, "%lu", i);
2418 }
2419 /* Do not output a trailing newline, as this causes \r\n confusion
2420 on some platforms. */
2421 return ferror (f) || fclose (f) != 0;
2422
2423 ;
2424 return 0;
2425 }
2426 _ACEOF
2427 if ac_fn_cxx_try_run "$LINENO"; then :
2428 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2429 else
2430 ac_retval=1
2431 fi
2432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2433 conftest.$ac_objext conftest.beam conftest.$ac_ext
2434 rm -f conftest.val
2435
2436 fi
2437 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2438 as_fn_set_status $ac_retval
2439
2440 } # ac_fn_cxx_compute_int
2441
2442 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2443 # ---------------------------------------------
2444 # Tests whether TYPE exists after having included INCLUDES, setting cache
2445 # variable VAR accordingly.
2446 ac_fn_cxx_check_type ()
2447 {
2448 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2450 $as_echo_n "checking for $2... " >&6; }
2451 if eval \${$3+:} false; then :
2452 $as_echo_n "(cached) " >&6
2453 else
2454 eval "$3=no"
2455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456 /* end confdefs.h. */
2457 $4
2458 int
2459 main ()
2460 {
2461 if (sizeof ($2))
2462 return 0;
2463 ;
2464 return 0;
2465 }
2466 _ACEOF
2467 if ac_fn_cxx_try_compile "$LINENO"; then :
2468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h. */
2470 $4
2471 int
2472 main ()
2473 {
2474 if (sizeof (($2)))
2475 return 0;
2476 ;
2477 return 0;
2478 }
2479 _ACEOF
2480 if ac_fn_cxx_try_compile "$LINENO"; then :
2481
2482 else
2483 eval "$3=yes"
2484 fi
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486 fi
2487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 fi
2489 eval ac_res=\$$3
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2491 $as_echo "$ac_res" >&6; }
2492 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2493
2494 } # ac_fn_cxx_check_type
2495
2496 # ac_fn_c_find_intX_t LINENO BITS VAR
2497 # -----------------------------------
2498 # Finds a signed integer type with width BITS, setting cache variable VAR
2499 # accordingly.
2500 ac_fn_c_find_intX_t ()
2501 {
2502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2504 $as_echo_n "checking for int$2_t... " >&6; }
2505 if eval \${$3+:} false; then :
2506 $as_echo_n "(cached) " >&6
2507 else
2508 eval "$3=no"
2509 # Order is important - never check a type that is potentially smaller
2510 # than half of the expected target width.
2511 for ac_type in int$2_t 'int' 'long int' \
2512 'long long int' 'short int' 'signed char'; do
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2515 $ac_includes_default
2516 enum { N = $2 / 2 - 1 };
2517 int
2518 main ()
2519 {
2520 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2521 test_array [0] = 0;
2522 return test_array [0];
2523
2524 ;
2525 return 0;
2526 }
2527 _ACEOF
2528 if ac_fn_cxx_try_compile "$LINENO"; then :
2529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2530 /* end confdefs.h. */
2531 $ac_includes_default
2532 enum { N = $2 / 2 - 1 };
2533 int
2534 main ()
2535 {
2536 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2537 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2538 test_array [0] = 0;
2539 return test_array [0];
2540
2541 ;
2542 return 0;
2543 }
2544 _ACEOF
2545 if ac_fn_cxx_try_compile "$LINENO"; then :
2546
2547 else
2548 case $ac_type in #(
2549 int$2_t) :
2550 eval "$3=yes" ;; #(
2551 *) :
2552 eval "$3=\$ac_type" ;;
2553 esac
2554 fi
2555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556 fi
2557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 if eval test \"x\$"$3"\" = x"no"; then :
2559
2560 else
2561 break
2562 fi
2563 done
2564 fi
2565 eval ac_res=\$$3
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2567 $as_echo "$ac_res" >&6; }
2568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2569
2570 } # ac_fn_c_find_intX_t
2571
2572 # ac_fn_cxx_try_link LINENO
2573 # -------------------------
2574 # Try to link conftest.$ac_ext, and return whether this succeeded.
2575 ac_fn_cxx_try_link ()
2576 {
2577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2578 rm -f conftest.$ac_objext conftest$ac_exeext
2579 if { { ac_try="$ac_link"
2580 case "(($ac_try" in
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2583 esac
2584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2585 $as_echo "$ac_try_echo"; } >&5
2586 (eval "$ac_link") 2>conftest.err
2587 ac_status=$?
2588 if test -s conftest.err; then
2589 grep -v '^ *+' conftest.err >conftest.er1
2590 cat conftest.er1 >&5
2591 mv -f conftest.er1 conftest.err
2592 fi
2593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2594 test $ac_status = 0; } && {
2595 test -z "$ac_cxx_werror_flag" ||
2596 test ! -s conftest.err
2597 } && test -s conftest$ac_exeext && {
2598 test "$cross_compiling" = yes ||
2599 test -x conftest$ac_exeext
2600 }; then :
2601 ac_retval=0
2602 else
2603 $as_echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2605
2606 ac_retval=1
2607 fi
2608 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2609 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2610 # interfere with the next link command; also delete a directory that is
2611 # left behind by Apple's compiler. We do this before executing the actions.
2612 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2614 as_fn_set_status $ac_retval
2615
2616 } # ac_fn_cxx_try_link
2617
2618 # ac_fn_c_find_uintX_t LINENO BITS VAR
2619 # ------------------------------------
2620 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2621 # accordingly.
2622 ac_fn_c_find_uintX_t ()
2623 {
2624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2626 $as_echo_n "checking for uint$2_t... " >&6; }
2627 if eval \${$3+:} false; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 eval "$3=no"
2631 # Order is important - never check a type that is potentially smaller
2632 # than half of the expected target width.
2633 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2634 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636 /* end confdefs.h. */
2637 $ac_includes_default
2638 int
2639 main ()
2640 {
2641 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2642 test_array [0] = 0;
2643 return test_array [0];
2644
2645 ;
2646 return 0;
2647 }
2648 _ACEOF
2649 if ac_fn_cxx_try_compile "$LINENO"; then :
2650 case $ac_type in #(
2651 uint$2_t) :
2652 eval "$3=yes" ;; #(
2653 *) :
2654 eval "$3=\$ac_type" ;;
2655 esac
2656 fi
2657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2658 if eval test \"x\$"$3"\" = x"no"; then :
2659
2660 else
2661 break
2662 fi
2663 done
2664 fi
2665 eval ac_res=\$$3
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2667 $as_echo "$ac_res" >&6; }
2668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2669
2670 } # ac_fn_c_find_uintX_t
2671
2672 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2673 # ------------------------------------------------
2674 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2675 ac_fn_cxx_check_header_preproc ()
2676 {
2677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2679 $as_echo_n "checking for $2... " >&6; }
2680 if eval \${$3+:} false; then :
2681 $as_echo_n "(cached) " >&6
2682 else
2683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2684 /* end confdefs.h. */
2685 #include <$2>
2686 _ACEOF
2687 if ac_fn_cxx_try_cpp "$LINENO"; then :
2688 eval "$3=yes"
2689 else
2690 eval "$3=no"
2691 fi
2692 rm -f conftest.err conftest.i conftest.$ac_ext
2693 fi
2694 eval ac_res=\$$3
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2696 $as_echo "$ac_res" >&6; }
2697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2698
2699 } # ac_fn_cxx_check_header_preproc
2700
2701 # ac_fn_cxx_check_func LINENO FUNC VAR
2702 # ------------------------------------
2703 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2704 ac_fn_cxx_check_func ()
2705 {
2706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2708 $as_echo_n "checking for $2... " >&6; }
2709 if eval \${$3+:} false; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2713 /* end confdefs.h. */
2714 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2716 #define $2 innocuous_$2
2717
2718 /* System header to define __stub macros and hopefully few prototypes,
2719 which can conflict with char $2 (); below.
2720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2721 <limits.h> exists even on freestanding compilers. */
2722
2723 #ifdef __STDC__
2724 # include <limits.h>
2725 #else
2726 # include <assert.h>
2727 #endif
2728
2729 #undef $2
2730
2731 /* Override any GCC internal prototype to avoid an error.
2732 Use char because int might match the return type of a GCC
2733 builtin and then its argument prototype would still apply. */
2734 #ifdef __cplusplus
2735 extern "C"
2736 #endif
2737 char $2 ();
2738 /* The GNU C library defines this for functions which it implements
2739 to always fail with ENOSYS. Some functions are actually named
2740 something starting with __ and the normal name is an alias. */
2741 #if defined __stub_$2 || defined __stub___$2
2742 choke me
2743 #endif
2744
2745 int
2746 main ()
2747 {
2748 return $2 ();
2749 ;
2750 return 0;
2751 }
2752 _ACEOF
2753 if ac_fn_cxx_try_link "$LINENO"; then :
2754 eval "$3=yes"
2755 else
2756 eval "$3=no"
2757 fi
2758 rm -f core conftest.err conftest.$ac_objext \
2759 conftest$ac_exeext conftest.$ac_ext
2760 fi
2761 eval ac_res=\$$3
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2763 $as_echo "$ac_res" >&6; }
2764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2765
2766 } # ac_fn_cxx_check_func
2767
2768 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2769 # -----------------------------------------------
2770 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2771 # accordingly.
2772 ac_fn_cxx_check_decl ()
2773 {
2774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2775 as_decl_name=`echo $2|sed 's/ *(.*//'`
2776 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2778 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2779 if eval \${$3+:} false; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h. */
2784 $4
2785 int
2786 main ()
2787 {
2788 #ifndef $as_decl_name
2789 #ifdef __cplusplus
2790 (void) $as_decl_use;
2791 #else
2792 (void) $as_decl_name;
2793 #endif
2794 #endif
2795
2796 ;
2797 return 0;
2798 }
2799 _ACEOF
2800 if ac_fn_cxx_try_compile "$LINENO"; then :
2801 eval "$3=yes"
2802 else
2803 eval "$3=no"
2804 fi
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806 fi
2807 eval ac_res=\$$3
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2809 $as_echo "$ac_res" >&6; }
2810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2811
2812 } # ac_fn_cxx_check_decl
2813
2814 # ac_fn_c_try_link LINENO
2815 # -----------------------
2816 # Try to link conftest.$ac_ext, and return whether this succeeded.
2817 ac_fn_c_try_link ()
2818 {
2819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2820 rm -f conftest.$ac_objext conftest$ac_exeext
2821 if { { ac_try="$ac_link"
2822 case "(($ac_try" in
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2825 esac
2826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2827 $as_echo "$ac_try_echo"; } >&5
2828 (eval "$ac_link") 2>conftest.err
2829 ac_status=$?
2830 if test -s conftest.err; then
2831 grep -v '^ *+' conftest.err >conftest.er1
2832 cat conftest.er1 >&5
2833 mv -f conftest.er1 conftest.err
2834 fi
2835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2836 test $ac_status = 0; } && {
2837 test -z "$ac_c_werror_flag" ||
2838 test ! -s conftest.err
2839 } && test -s conftest$ac_exeext && {
2840 test "$cross_compiling" = yes ||
2841 test -x conftest$ac_exeext
2842 }; then :
2843 ac_retval=0
2844 else
2845 $as_echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2847
2848 ac_retval=1
2849 fi
2850 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2851 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2852 # interfere with the next link command; also delete a directory that is
2853 # left behind by Apple's compiler. We do this before executing the actions.
2854 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2856 as_fn_set_status $ac_retval
2857
2858 } # ac_fn_c_try_link
2859
2860 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2861 # ----------------------------------------------
2862 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2863 ac_fn_c_check_header_preproc ()
2864 {
2865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2867 $as_echo_n "checking for $2... " >&6; }
2868 if eval \${$3+:} false; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2872 /* end confdefs.h. */
2873 #include <$2>
2874 _ACEOF
2875 if ac_fn_c_try_cpp "$LINENO"; then :
2876 eval "$3=yes"
2877 else
2878 eval "$3=no"
2879 fi
2880 rm -f conftest.err conftest.i conftest.$ac_ext
2881 fi
2882 eval ac_res=\$$3
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2884 $as_echo "$ac_res" >&6; }
2885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2886
2887 } # ac_fn_c_check_header_preproc
2888
2889 # ac_fn_c_check_func LINENO FUNC VAR
2890 # ----------------------------------
2891 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2892 ac_fn_c_check_func ()
2893 {
2894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2896 $as_echo_n "checking for $2... " >&6; }
2897 if eval \${$3+:} false; then :
2898 $as_echo_n "(cached) " >&6
2899 else
2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h. */
2902 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2904 #define $2 innocuous_$2
2905
2906 /* System header to define __stub macros and hopefully few prototypes,
2907 which can conflict with char $2 (); below.
2908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2909 <limits.h> exists even on freestanding compilers. */
2910
2911 #ifdef __STDC__
2912 # include <limits.h>
2913 #else
2914 # include <assert.h>
2915 #endif
2916
2917 #undef $2
2918
2919 /* Override any GCC internal prototype to avoid an error.
2920 Use char because int might match the return type of a GCC
2921 builtin and then its argument prototype would still apply. */
2922 #ifdef __cplusplus
2923 extern "C"
2924 #endif
2925 char $2 ();
2926 /* The GNU C library defines this for functions which it implements
2927 to always fail with ENOSYS. Some functions are actually named
2928 something starting with __ and the normal name is an alias. */
2929 #if defined __stub_$2 || defined __stub___$2
2930 choke me
2931 #endif
2932
2933 int
2934 main ()
2935 {
2936 return $2 ();
2937 ;
2938 return 0;
2939 }
2940 _ACEOF
2941 if ac_fn_c_try_link "$LINENO"; then :
2942 eval "$3=yes"
2943 else
2944 eval "$3=no"
2945 fi
2946 rm -f core conftest.err conftest.$ac_objext \
2947 conftest$ac_exeext conftest.$ac_ext
2948 fi
2949 eval ac_res=\$$3
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2951 $as_echo "$ac_res" >&6; }
2952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2953
2954 } # ac_fn_c_check_func
2955 cat >config.log <<_ACEOF
2956 This file contains any messages produced by compilers while
2957 running configure, to aid debugging if configure makes a mistake.
2958
2959 It was created by $as_me, which was
2960 generated by GNU Autoconf 2.69. Invocation command line was
2961
2962 $ $0 $@
2963
2964 _ACEOF
2965 exec 5>>config.log
2966 {
2967 cat <<_ASUNAME
2968 ## --------- ##
2969 ## Platform. ##
2970 ## --------- ##
2971
2972 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2973 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2974 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2975 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2976 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2977
2978 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2979 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2980
2981 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2982 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2983 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2984 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2985 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2986 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2987 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2988
2989 _ASUNAME
2990
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2993 do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 $as_echo "PATH: $as_dir"
2997 done
2998 IFS=$as_save_IFS
2999
3000 } >&5
3001
3002 cat >&5 <<_ACEOF
3003
3004
3005 ## ----------- ##
3006 ## Core tests. ##
3007 ## ----------- ##
3008
3009 _ACEOF
3010
3011
3012 # Keep a trace of the command line.
3013 # Strip out --no-create and --no-recursion so they do not pile up.
3014 # Strip out --silent because we don't want to record it for future runs.
3015 # Also quote any args containing shell meta-characters.
3016 # Make two passes to allow for proper duplicate-argument suppression.
3017 ac_configure_args=
3018 ac_configure_args0=
3019 ac_configure_args1=
3020 ac_must_keep_next=false
3021 for ac_pass in 1 2
3022 do
3023 for ac_arg
3024 do
3025 case $ac_arg in
3026 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3028 | -silent | --silent | --silen | --sile | --sil)
3029 continue ;;
3030 *\'*)
3031 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3032 esac
3033 case $ac_pass in
3034 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3035 2)
3036 as_fn_append ac_configure_args1 " '$ac_arg'"
3037 if test $ac_must_keep_next = true; then
3038 ac_must_keep_next=false # Got value, back to normal.
3039 else
3040 case $ac_arg in
3041 *=* | --config-cache | -C | -disable-* | --disable-* \
3042 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3043 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3044 | -with-* | --with-* | -without-* | --without-* | --x)
3045 case "$ac_configure_args0 " in
3046 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3047 esac
3048 ;;
3049 -* ) ac_must_keep_next=true ;;
3050 esac
3051 fi
3052 as_fn_append ac_configure_args " '$ac_arg'"
3053 ;;
3054 esac
3055 done
3056 done
3057 { ac_configure_args0=; unset ac_configure_args0;}
3058 { ac_configure_args1=; unset ac_configure_args1;}
3059
3060 # When interrupted or exit'd, cleanup temporary files, and complete
3061 # config.log. We remove comments because anyway the quotes in there
3062 # would cause problems or look ugly.
3063 # WARNING: Use '\'' to represent an apostrophe within the trap.
3064 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3065 trap 'exit_status=$?
3066 # Save into config.log some information that might help in debugging.
3067 {
3068 echo
3069
3070 $as_echo "## ---------------- ##
3071 ## Cache variables. ##
3072 ## ---------------- ##"
3073 echo
3074 # The following way of writing the cache mishandles newlines in values,
3075 (
3076 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3077 eval ac_val=\$$ac_var
3078 case $ac_val in #(
3079 *${as_nl}*)
3080 case $ac_var in #(
3081 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3082 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3083 esac
3084 case $ac_var in #(
3085 _ | IFS | as_nl) ;; #(
3086 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3087 *) { eval $ac_var=; unset $ac_var;} ;;
3088 esac ;;
3089 esac
3090 done
3091 (set) 2>&1 |
3092 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3093 *${as_nl}ac_space=\ *)
3094 sed -n \
3095 "s/'\''/'\''\\\\'\'''\''/g;
3096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3097 ;; #(
3098 *)
3099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3100 ;;
3101 esac |
3102 sort
3103 )
3104 echo
3105
3106 $as_echo "## ----------------- ##
3107 ## Output variables. ##
3108 ## ----------------- ##"
3109 echo
3110 for ac_var in $ac_subst_vars
3111 do
3112 eval ac_val=\$$ac_var
3113 case $ac_val in
3114 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3115 esac
3116 $as_echo "$ac_var='\''$ac_val'\''"
3117 done | sort
3118 echo
3119
3120 if test -n "$ac_subst_files"; then
3121 $as_echo "## ------------------- ##
3122 ## File substitutions. ##
3123 ## ------------------- ##"
3124 echo
3125 for ac_var in $ac_subst_files
3126 do
3127 eval ac_val=\$$ac_var
3128 case $ac_val in
3129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3130 esac
3131 $as_echo "$ac_var='\''$ac_val'\''"
3132 done | sort
3133 echo
3134 fi
3135
3136 if test -s confdefs.h; then
3137 $as_echo "## ----------- ##
3138 ## confdefs.h. ##
3139 ## ----------- ##"
3140 echo
3141 cat confdefs.h
3142 echo
3143 fi
3144 test "$ac_signal" != 0 &&
3145 $as_echo "$as_me: caught signal $ac_signal"
3146 $as_echo "$as_me: exit $exit_status"
3147 } >&5
3148 rm -f core *.core core.conftest.* &&
3149 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3150 exit $exit_status
3151 ' 0
3152 for ac_signal in 1 2 13 15; do
3153 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3154 done
3155 ac_signal=0
3156
3157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3158 rm -f -r conftest* confdefs.h
3159
3160 $as_echo "/* confdefs.h */" > confdefs.h
3161
3162 # Predefined preprocessor variables.
3163
3164 cat >>confdefs.h <<_ACEOF
3165 #define PACKAGE_NAME "$PACKAGE_NAME"
3166 _ACEOF
3167
3168 cat >>confdefs.h <<_ACEOF
3169 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3170 _ACEOF
3171
3172 cat >>confdefs.h <<_ACEOF
3173 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3174 _ACEOF
3175
3176 cat >>confdefs.h <<_ACEOF
3177 #define PACKAGE_STRING "$PACKAGE_STRING"
3178 _ACEOF
3179
3180 cat >>confdefs.h <<_ACEOF
3181 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3182 _ACEOF
3183
3184 cat >>confdefs.h <<_ACEOF
3185 #define PACKAGE_URL "$PACKAGE_URL"
3186 _ACEOF
3187
3188
3189 # Let the site file select an alternate cache file if it wants to.
3190 # Prefer an explicitly selected file to automatically selected ones.
3191 ac_site_file1=NONE
3192 ac_site_file2=NONE
3193 if test -n "$CONFIG_SITE"; then
3194 # We do not want a PATH search for config.site.
3195 case $CONFIG_SITE in #((
3196 -*) ac_site_file1=./$CONFIG_SITE;;
3197 */*) ac_site_file1=$CONFIG_SITE;;
3198 *) ac_site_file1=./$CONFIG_SITE;;
3199 esac
3200 elif test "x$prefix" != xNONE; then
3201 ac_site_file1=$prefix/share/config.site
3202 ac_site_file2=$prefix/etc/config.site
3203 else
3204 ac_site_file1=$ac_default_prefix/share/config.site
3205 ac_site_file2=$ac_default_prefix/etc/config.site
3206 fi
3207 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3208 do
3209 test "x$ac_site_file" = xNONE && continue
3210 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3212 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3213 sed 's/^/| /' "$ac_site_file" >&5
3214 . "$ac_site_file" \
3215 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217 as_fn_error $? "failed to load site script $ac_site_file
3218 See \`config.log' for more details" "$LINENO" 5; }
3219 fi
3220 done
3221
3222 if test -r "$cache_file"; then
3223 # Some versions of bash will fail to source /dev/null (special files
3224 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3225 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3227 $as_echo "$as_me: loading cache $cache_file" >&6;}
3228 case $cache_file in
3229 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3230 *) . "./$cache_file";;
3231 esac
3232 fi
3233 else
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3235 $as_echo "$as_me: creating cache $cache_file" >&6;}
3236 >$cache_file
3237 fi
3238
3239 # Check that the precious variables saved in the cache have kept the same
3240 # value.
3241 ac_cache_corrupted=false
3242 for ac_var in $ac_precious_vars; do
3243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3244 eval ac_new_set=\$ac_env_${ac_var}_set
3245 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3246 eval ac_new_val=\$ac_env_${ac_var}_value
3247 case $ac_old_set,$ac_new_set in
3248 set,)
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3250 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3251 ac_cache_corrupted=: ;;
3252 ,set)
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3254 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3255 ac_cache_corrupted=: ;;
3256 ,);;
3257 *)
3258 if test "x$ac_old_val" != "x$ac_new_val"; then
3259 # differences in whitespace do not lead to failure.
3260 ac_old_val_w=`echo x $ac_old_val`
3261 ac_new_val_w=`echo x $ac_new_val`
3262 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3264 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3265 ac_cache_corrupted=:
3266 else
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3268 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3269 eval $ac_var=\$ac_old_val
3270 fi
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3272 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3274 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3275 fi;;
3276 esac
3277 # Pass precious variables to config.status.
3278 if test "$ac_new_set" = set; then
3279 case $ac_new_val in
3280 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3281 *) ac_arg=$ac_var=$ac_new_val ;;
3282 esac
3283 case " $ac_configure_args " in
3284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3285 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3286 esac
3287 fi
3288 done
3289 if $ac_cache_corrupted; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3293 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3294 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3295 fi
3296 ## -------------------- ##
3297 ## Main body of script. ##
3298 ## -------------------- ##
3299
3300 ac_ext=c
3301 ac_cpp='$CPP $CPPFLAGS'
3302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3305
3306
3307
3308
3309
3310
3311 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3312
3313
3314 gcc_version=`cat $srcdir/BASE-VER`
3315
3316 # Determine the host, build, and target systems
3317 ac_aux_dir=
3318 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3319 if test -f "$ac_dir/install-sh"; then
3320 ac_aux_dir=$ac_dir
3321 ac_install_sh="$ac_aux_dir/install-sh -c"
3322 break
3323 elif test -f "$ac_dir/install.sh"; then
3324 ac_aux_dir=$ac_dir
3325 ac_install_sh="$ac_aux_dir/install.sh -c"
3326 break
3327 elif test -f "$ac_dir/shtool"; then
3328 ac_aux_dir=$ac_dir
3329 ac_install_sh="$ac_aux_dir/shtool install -c"
3330 break
3331 fi
3332 done
3333 if test -z "$ac_aux_dir"; then
3334 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3335 fi
3336
3337 # These three variables are undocumented and unsupported,
3338 # and are intended to be withdrawn in a future Autoconf release.
3339 # They can cause serious problems if a builder's source tree is in a directory
3340 # whose full name contains unusual characters.
3341 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3342 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3343 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3344
3345
3346 # Make sure we can run config.sub.
3347 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3348 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3349
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3351 $as_echo_n "checking build system type... " >&6; }
3352 if ${ac_cv_build+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 ac_build_alias=$build_alias
3356 test "x$ac_build_alias" = x &&
3357 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3358 test "x$ac_build_alias" = x &&
3359 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3360 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3361 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3362
3363 fi
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3365 $as_echo "$ac_cv_build" >&6; }
3366 case $ac_cv_build in
3367 *-*-*) ;;
3368 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3369 esac
3370 build=$ac_cv_build
3371 ac_save_IFS=$IFS; IFS='-'
3372 set x $ac_cv_build
3373 shift
3374 build_cpu=$1
3375 build_vendor=$2
3376 shift; shift
3377 # Remember, the first character of IFS is used to create $*,
3378 # except with old shells:
3379 build_os=$*
3380 IFS=$ac_save_IFS
3381 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3382
3383
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3385 $as_echo_n "checking host system type... " >&6; }
3386 if ${ac_cv_host+:} false; then :
3387 $as_echo_n "(cached) " >&6
3388 else
3389 if test "x$host_alias" = x; then
3390 ac_cv_host=$ac_cv_build
3391 else
3392 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3393 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3394 fi
3395
3396 fi
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3398 $as_echo "$ac_cv_host" >&6; }
3399 case $ac_cv_host in
3400 *-*-*) ;;
3401 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3402 esac
3403 host=$ac_cv_host
3404 ac_save_IFS=$IFS; IFS='-'
3405 set x $ac_cv_host
3406 shift
3407 host_cpu=$1
3408 host_vendor=$2
3409 shift; shift
3410 # Remember, the first character of IFS is used to create $*,
3411 # except with old shells:
3412 host_os=$*
3413 IFS=$ac_save_IFS
3414 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3415
3416
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3418 $as_echo_n "checking target system type... " >&6; }
3419 if ${ac_cv_target+:} false; then :
3420 $as_echo_n "(cached) " >&6
3421 else
3422 if test "x$target_alias" = x; then
3423 ac_cv_target=$ac_cv_host
3424 else
3425 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3426 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3427 fi
3428
3429 fi
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3431 $as_echo "$ac_cv_target" >&6; }
3432 case $ac_cv_target in
3433 *-*-*) ;;
3434 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3435 esac
3436 target=$ac_cv_target
3437 ac_save_IFS=$IFS; IFS='-'
3438 set x $ac_cv_target
3439 shift
3440 target_cpu=$1
3441 target_vendor=$2
3442 shift; shift
3443 # Remember, the first character of IFS is used to create $*,
3444 # except with old shells:
3445 target_os=$*
3446 IFS=$ac_save_IFS
3447 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3448
3449
3450 # The aliases save the names the user supplied, while $host etc.
3451 # will get canonicalized.
3452 test -n "$target_alias" &&
3453 test "$program_prefix$program_suffix$program_transform_name" = \
3454 NONENONEs,x,x, &&
3455 program_prefix=${target_alias}-
3456
3457 # Determine the noncanonical host name, for Ada.
3458 case ${build_alias} in
3459 "") build_noncanonical=${build} ;;
3460 *) build_noncanonical=${build_alias} ;;
3461 esac
3462
3463 case ${host_alias} in
3464 "") host_noncanonical=${build_noncanonical} ;;
3465 *) host_noncanonical=${host_alias} ;;
3466 esac
3467
3468
3469
3470
3471 # Determine the noncanonical target name, for directory use.
3472 case ${target_alias} in
3473 "") target_noncanonical=${host_noncanonical} ;;
3474 *) target_noncanonical=${target_alias} ;;
3475 esac
3476
3477
3478
3479
3480 # Used for constructing correct paths for offload compilers.
3481 real_target_noncanonical=${target_noncanonical}
3482 accel_dir_suffix=
3483
3484 # Determine the target- and build-specific subdirectories
3485
3486 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3487 # have matching libraries, they should use host libraries: Makefile.tpl
3488 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3489 # However, they still use the build modules, because the corresponding
3490 # host modules (e.g. bison) are only built for the host when bootstrap
3491 # finishes. So:
3492 # - build_subdir is where we find build modules, and never changes.
3493 # - build_libsubdir is where we find build libraries, and can be overridden.
3494
3495 # Prefix 'build-' so this never conflicts with target_subdir.
3496 build_subdir="build-${build_noncanonical}"
3497
3498 # Check whether --with-build-libsubdir was given.
3499 if test "${with_build_libsubdir+set}" = set; then :
3500 withval=$with_build_libsubdir; build_libsubdir="$withval"
3501 else
3502 build_libsubdir="$build_subdir"
3503 fi
3504
3505 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3506 if ( test $srcdir = . && test -d gcc ) \
3507 || test -d $srcdir/../host-${host_noncanonical}; then
3508 host_subdir="host-${host_noncanonical}"
3509 else
3510 host_subdir=.
3511 fi
3512 # No prefix.
3513 target_subdir=${target_noncanonical}
3514
3515
3516 # Set program_transform_name
3517 test "$program_prefix" != NONE &&
3518 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3519 # Use a double $ so make ignores it.
3520 test "$program_suffix" != NONE &&
3521 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3522 # Double any \ or $.
3523 # By default was `s,x,x', remove it if useless.
3524 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3525 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3526
3527
3528 # Check for bogus environment variables.
3529 # Test if LIBRARY_PATH contains the notation for the current directory
3530 # since this would lead to problems installing/building glibc.
3531 # LIBRARY_PATH contains the current directory if one of the following
3532 # is true:
3533 # - one of the terminals (":" and ";") is the first or last sign
3534 # - two terminals occur directly after each other
3535 # - the path contains an element with a dot in it
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3537 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3538 case ${LIBRARY_PATH} in
3539 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3540 library_path_setting="contains current directory"
3541 ;;
3542 *)
3543 library_path_setting="ok"
3544 ;;
3545 esac
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3547 $as_echo "$library_path_setting" >&6; }
3548 if test "$library_path_setting" != "ok"; then
3549 as_fn_error $? "
3550 *** LIBRARY_PATH shouldn't contain the current directory when
3551 *** building gcc. Please change the environment variable
3552 *** and run configure again." "$LINENO" 5
3553 fi
3554
3555 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3556 # since this would lead to problems installing/building glibc.
3557 # GCC_EXEC_PREFIX contains the current directory if one of the following
3558 # is true:
3559 # - one of the terminals (":" and ";") is the first or last sign
3560 # - two terminals occur directly after each other
3561 # - the path contains an element with a dot in it
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3563 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3564 case ${GCC_EXEC_PREFIX} in
3565 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3566 gcc_exec_prefix_setting="contains current directory"
3567 ;;
3568 *)
3569 gcc_exec_prefix_setting="ok"
3570 ;;
3571 esac
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3573 $as_echo "$gcc_exec_prefix_setting" >&6; }
3574 if test "$gcc_exec_prefix_setting" != "ok"; then
3575 as_fn_error $? "
3576 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3577 *** building gcc. Please change the environment variable
3578 *** and run configure again." "$LINENO" 5
3579 fi
3580
3581 # -----------
3582 # Directories
3583 # -----------
3584
3585 # Specify the local prefix
3586 local_prefix=
3587
3588 # Check whether --with-local-prefix was given.
3589 if test "${with_local_prefix+set}" = set; then :
3590 withval=$with_local_prefix; case "${withval}" in
3591 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3592 no) ;;
3593 *) local_prefix=$with_local_prefix ;;
3594 esac
3595 fi
3596
3597
3598 # Default local prefix if it is empty
3599 if test x$local_prefix = x; then
3600 local_prefix=/usr/local
3601 fi
3602
3603
3604 # Check whether --with-native-system-header-dir was given.
3605 if test "${with_native_system_header_dir+set}" = set; then :
3606 withval=$with_native_system_header_dir;
3607 case ${with_native_system_header_dir} in
3608 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3609 /* | [A-Za-z]:[\\/]*) ;;
3610 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3611 esac
3612 configured_native_system_header_dir="${withval}"
3613
3614 else
3615 configured_native_system_header_dir=
3616 fi
3617
3618
3619
3620 # Check whether --with-build-sysroot was given.
3621 if test "${with_build_sysroot+set}" = set; then :
3622 withval=$with_build_sysroot; if test x"$withval" != x ; then
3623 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3624 fi
3625 else
3626 SYSROOT_CFLAGS_FOR_TARGET=
3627 fi
3628
3629
3630
3631 if test "x$prefix" = xNONE; then
3632 test_prefix=/usr/local
3633 else
3634 test_prefix=$prefix
3635 fi
3636 if test "x$exec_prefix" = xNONE; then
3637 test_exec_prefix=$test_prefix
3638 else
3639 test_exec_prefix=$exec_prefix
3640 fi
3641
3642
3643 # Check whether --with-sysroot was given.
3644 if test "${with_sysroot+set}" = set; then :
3645 withval=$with_sysroot;
3646 case ${with_sysroot} in
3647 /) ;;
3648 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3649 esac
3650 case ${with_sysroot} in
3651 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3652 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3653 esac
3654
3655 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3656 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3657
3658 case ${TARGET_SYSTEM_ROOT} in
3659 "${test_prefix}"|"${test_prefix}/"*|\
3660 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3661 '${prefix}'|'${prefix}/'*|\
3662 '${exec_prefix}'|'${exec_prefix}/'*)
3663 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3664 TARGET_SYSTEM_ROOT_DEFINE="$t"
3665 ;;
3666 esac
3667
3668 else
3669
3670 TARGET_SYSTEM_ROOT=
3671 TARGET_SYSTEM_ROOT_DEFINE=
3672 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3673
3674 fi
3675
3676
3677
3678
3679
3680 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3681 # passed in by the toplevel make and thus we'd get different behavior
3682 # depending on where we built the sources.
3683 gcc_gxx_include_dir=
3684 # Specify the g++ header file directory
3685
3686 # Check whether --with-gxx-include-dir was given.
3687 if test "${with_gxx_include_dir+set}" = set; then :
3688 withval=$with_gxx_include_dir; case "${withval}" in
3689 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3690 no) ;;
3691 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3692 esac
3693 fi
3694
3695
3696 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3697 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3698 # relative to the sysroot.
3699 gcc_gxx_include_dir_add_sysroot=0
3700
3701 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3702 if test x${gcc_gxx_include_dir} = x; then
3703 if test x${enable_version_specific_runtime_libs} = xyes; then
3704 gcc_gxx_include_dir='${libsubdir}/include/c++'
3705 else
3706 libstdcxx_incdir='include/c++/$(version)'
3707 if test x$host != x$target; then
3708 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3709 fi
3710 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3711 fi
3712 elif test "${with_sysroot+set}" = set; then
3713 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3714 if test "${gcc_gxx_without_sysroot}"; then
3715 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3716 gcc_gxx_include_dir_add_sysroot=1
3717 fi
3718 fi
3719
3720
3721 # Check whether --with-cpp_install_dir was given.
3722 if test "${with_cpp_install_dir+set}" = set; then :
3723 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3724 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3725 elif test x$withval != xno; then
3726 cpp_install_dir=$withval
3727 fi
3728 fi
3729
3730
3731 # We would like to our source tree to be readonly. However when releases or
3732 # pre-releases are generated, the flex/bison generated files as well as the
3733 # various formats of manuals need to be included along with the rest of the
3734 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3735 # just that.
3736
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3738 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3739 # Check whether --enable-generated-files-in-srcdir was given.
3740 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3741 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3742 else
3743 generated_files_in_srcdir=no
3744 fi
3745
3746
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3748 $as_echo "$generated_files_in_srcdir" >&6; }
3749
3750 if test "$generated_files_in_srcdir" = "yes"; then
3751 GENINSRC=''
3752 else
3753 GENINSRC='#'
3754 fi
3755
3756
3757 # -------------------
3758 # Find default linker
3759 # -------------------
3760
3761 # With GNU ld
3762
3763 # Check whether --with-gnu-ld was given.
3764 if test "${with_gnu_ld+set}" = set; then :
3765 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3766 else
3767 gnu_ld_flag=no
3768 fi
3769
3770
3771 case $target in
3772 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3773 *) ld64_flag=no;;
3774 esac
3775
3776 # With pre-defined ld
3777
3778 # Check whether --with-ld was given.
3779 if test "${with_ld+set}" = set; then :
3780 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3781 fi
3782
3783 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3784 if test ! -x "$DEFAULT_LINKER"; then
3785 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3786 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3787 gnu_ld_flag=yes
3788 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3789 ld64_flag=yes
3790 fi
3791
3792 cat >>confdefs.h <<_ACEOF
3793 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3794 _ACEOF
3795
3796 fi
3797
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3799 $as_echo_n "checking whether a default linker was specified... " >&6; }
3800 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3801 if test x"$gnu_ld_flag" = x"no"; then
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3803 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3804 else
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3806 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3807 fi
3808 else
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 $as_echo "no" >&6; }
3811 fi
3812
3813 # With demangler in GNU ld
3814
3815 # Check whether --with-demangler-in-ld was given.
3816 if test "${with_demangler_in_ld+set}" = set; then :
3817 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3818 else
3819 demangler_in_ld=yes
3820 fi
3821
3822
3823 # ----------------------
3824 # Find default assembler
3825 # ----------------------
3826
3827 # With GNU as
3828
3829 # Check whether --with-gnu-as was given.
3830 if test "${with_gnu_as+set}" = set; then :
3831 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3832 else
3833 gas_flag=no
3834 fi
3835
3836
3837
3838 # Check whether --with-as was given.
3839 if test "${with_as+set}" = set; then :
3840 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3841 fi
3842
3843 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3844 if test ! -x "$DEFAULT_ASSEMBLER"; then
3845 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3846 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3847 gas_flag=yes
3848 fi
3849
3850 cat >>confdefs.h <<_ACEOF
3851 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3852 _ACEOF
3853
3854 fi
3855
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3857 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3858 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3859 if test x"$gas_flag" = x"no"; then
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3861 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3862 else
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3864 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3865 fi
3866 else
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 $as_echo "no" >&6; }
3869 fi
3870
3871 # ---------------
3872 # Find C compiler
3873 # ---------------
3874
3875 # If a non-executable a.out is present (e.g. created by GNU as above even if
3876 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3877 # file, even when creating an executable, so an execution test fails.
3878 # Remove possible default executable files to avoid this.
3879 #
3880 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3881 # Autoconf includes it.
3882 rm -f a.out a.exe b.out
3883
3884 # Find the native compiler
3885 ac_ext=c
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890 if test -n "$ac_tool_prefix"; then
3891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3892 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if ${ac_cv_prog_CC+:} false; then :
3896 $as_echo_n "(cached) " >&6
3897 else
3898 if test -n "$CC"; then
3899 ac_cv_prog_CC="$CC" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3903 do
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
3911 fi
3912 done
3913 done
3914 IFS=$as_save_IFS
3915
3916 fi
3917 fi
3918 CC=$ac_cv_prog_CC
3919 if test -n "$CC"; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3921 $as_echo "$CC" >&6; }
3922 else
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3925 fi
3926
3927
3928 fi
3929 if test -z "$ac_cv_prog_CC"; then
3930 ac_ct_CC=$CC
3931 # Extract the first word of "gcc", so it can be a program name with args.
3932 set dummy gcc; ac_word=$2
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934 $as_echo_n "checking for $ac_word... " >&6; }
3935 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 if test -n "$ac_ct_CC"; then
3939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3940 else
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH
3943 do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3948 ac_cv_prog_ac_ct_CC="gcc"
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 break 2
3951 fi
3952 done
3953 done
3954 IFS=$as_save_IFS
3955
3956 fi
3957 fi
3958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3959 if test -n "$ac_ct_CC"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3961 $as_echo "$ac_ct_CC" >&6; }
3962 else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3965 fi
3966
3967 if test "x$ac_ct_CC" = x; then
3968 CC=""
3969 else
3970 case $cross_compiling:$ac_tool_warned in
3971 yes:)
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3974 ac_tool_warned=yes ;;
3975 esac
3976 CC=$ac_ct_CC
3977 fi
3978 else
3979 CC="$ac_cv_prog_CC"
3980 fi
3981
3982 if test -z "$CC"; then
3983 if test -n "$ac_tool_prefix"; then
3984 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3985 set dummy ${ac_tool_prefix}cc; ac_word=$2
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if ${ac_cv_prog_CC+:} false; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 if test -n "$CC"; then
3992 ac_cv_prog_CC="$CC" # Let the user override the test.
3993 else
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3996 do
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4001 ac_cv_prog_CC="${ac_tool_prefix}cc"
4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 break 2
4004 fi
4005 done
4006 done
4007 IFS=$as_save_IFS
4008
4009 fi
4010 fi
4011 CC=$ac_cv_prog_CC
4012 if test -n "$CC"; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4014 $as_echo "$CC" >&6; }
4015 else
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4018 fi
4019
4020
4021 fi
4022 fi
4023 if test -z "$CC"; then
4024 # Extract the first word of "cc", so it can be a program name with args.
4025 set dummy cc; ac_word=$2
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 $as_echo_n "checking for $ac_word... " >&6; }
4028 if ${ac_cv_prog_CC+:} false; then :
4029 $as_echo_n "(cached) " >&6
4030 else
4031 if test -n "$CC"; then
4032 ac_cv_prog_CC="$CC" # Let the user override the test.
4033 else
4034 ac_prog_rejected=no
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4043 ac_prog_rejected=yes
4044 continue
4045 fi
4046 ac_cv_prog_CC="cc"
4047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 break 2
4049 fi
4050 done
4051 done
4052 IFS=$as_save_IFS
4053
4054 if test $ac_prog_rejected = yes; then
4055 # We found a bogon in the path, so make sure we never use it.
4056 set dummy $ac_cv_prog_CC
4057 shift
4058 if test $# != 0; then
4059 # We chose a different compiler from the bogus one.
4060 # However, it has the same basename, so the bogon will be chosen
4061 # first if we set CC to just the basename; use the full file name.
4062 shift
4063 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4064 fi
4065 fi
4066 fi
4067 fi
4068 CC=$ac_cv_prog_CC
4069 if test -n "$CC"; then
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4071 $as_echo "$CC" >&6; }
4072 else
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074 $as_echo "no" >&6; }
4075 fi
4076
4077
4078 fi
4079 if test -z "$CC"; then
4080 if test -n "$ac_tool_prefix"; then
4081 for ac_prog in cl.exe
4082 do
4083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086 $as_echo_n "checking for $ac_word... " >&6; }
4087 if ${ac_cv_prog_CC+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 if test -n "$CC"; then
4091 ac_cv_prog_CC="$CC" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4095 do
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 break 2
4103 fi
4104 done
4105 done
4106 IFS=$as_save_IFS
4107
4108 fi
4109 fi
4110 CC=$ac_cv_prog_CC
4111 if test -n "$CC"; then
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4113 $as_echo "$CC" >&6; }
4114 else
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4117 fi
4118
4119
4120 test -n "$CC" && break
4121 done
4122 fi
4123 if test -z "$CC"; then
4124 ac_ct_CC=$CC
4125 for ac_prog in cl.exe
4126 do
4127 # Extract the first word of "$ac_prog", so it can be a program name with args.
4128 set dummy $ac_prog; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 if test -n "$ac_ct_CC"; then
4135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4139 do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144 ac_cv_prog_ac_ct_CC="$ac_prog"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4147 fi
4148 done
4149 done
4150 IFS=$as_save_IFS
4151
4152 fi
4153 fi
4154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4155 if test -n "$ac_ct_CC"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4157 $as_echo "$ac_ct_CC" >&6; }
4158 else
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4161 fi
4162
4163
4164 test -n "$ac_ct_CC" && break
4165 done
4166
4167 if test "x$ac_ct_CC" = x; then
4168 CC=""
4169 else
4170 case $cross_compiling:$ac_tool_warned in
4171 yes:)
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4174 ac_tool_warned=yes ;;
4175 esac
4176 CC=$ac_ct_CC
4177 fi
4178 fi
4179
4180 fi
4181
4182
4183 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4185 as_fn_error $? "no acceptable C compiler found in \$PATH
4186 See \`config.log' for more details" "$LINENO" 5; }
4187
4188 # Provide some information about the compiler.
4189 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4190 set X $ac_compile
4191 ac_compiler=$2
4192 for ac_option in --version -v -V -qversion; do
4193 { { ac_try="$ac_compiler $ac_option >&5"
4194 case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197 esac
4198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4199 $as_echo "$ac_try_echo"; } >&5
4200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4201 ac_status=$?
4202 if test -s conftest.err; then
4203 sed '10a\
4204 ... rest of stderr output deleted ...
4205 10q' conftest.err >conftest.er1
4206 cat conftest.er1 >&5
4207 fi
4208 rm -f conftest.er1 conftest.err
4209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4210 test $ac_status = 0; }
4211 done
4212
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4215
4216 int
4217 main ()
4218 {
4219
4220 ;
4221 return 0;
4222 }
4223 _ACEOF
4224 ac_clean_files_save=$ac_clean_files
4225 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4226 # Try to create an executable without -o first, disregard a.out.
4227 # It will help us diagnose broken compilers, and finding out an intuition
4228 # of exeext.
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4230 $as_echo_n "checking whether the C compiler works... " >&6; }
4231 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4232
4233 # The possible output files:
4234 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4235
4236 ac_rmfiles=
4237 for ac_file in $ac_files
4238 do
4239 case $ac_file in
4240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4241 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4242 esac
4243 done
4244 rm -f $ac_rmfiles
4245
4246 if { { ac_try="$ac_link_default"
4247 case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4250 esac
4251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4252 $as_echo "$ac_try_echo"; } >&5
4253 (eval "$ac_link_default") 2>&5
4254 ac_status=$?
4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256 test $ac_status = 0; }; then :
4257 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4258 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4259 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4260 # so that the user can short-circuit this test for compilers unknown to
4261 # Autoconf.
4262 for ac_file in $ac_files ''
4263 do
4264 test -f "$ac_file" || continue
4265 case $ac_file in
4266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4267 ;;
4268 [ab].out )
4269 # We found the default executable, but exeext='' is most
4270 # certainly right.
4271 break;;
4272 *.* )
4273 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4274 then :; else
4275 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4276 fi
4277 # We set ac_cv_exeext here because the later test for it is not
4278 # safe: cross compilers may not add the suffix if given an `-o'
4279 # argument, so we may need to know it at that point already.
4280 # Even if this section looks crufty: it has the advantage of
4281 # actually working.
4282 break;;
4283 * )
4284 break;;
4285 esac
4286 done
4287 test "$ac_cv_exeext" = no && ac_cv_exeext=
4288
4289 else
4290 ac_file=''
4291 fi
4292 if test -z "$ac_file"; then :
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294 $as_echo "no" >&6; }
4295 $as_echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4297
4298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4300 as_fn_error 77 "C compiler cannot create executables
4301 See \`config.log' for more details" "$LINENO" 5; }
4302 else
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4304 $as_echo "yes" >&6; }
4305 fi
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4307 $as_echo_n "checking for C compiler default output file name... " >&6; }
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4309 $as_echo "$ac_file" >&6; }
4310 ac_exeext=$ac_cv_exeext
4311
4312 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4313 ac_clean_files=$ac_clean_files_save
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4315 $as_echo_n "checking for suffix of executables... " >&6; }
4316 if { { ac_try="$ac_link"
4317 case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320 esac
4321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4322 $as_echo "$ac_try_echo"; } >&5
4323 (eval "$ac_link") 2>&5
4324 ac_status=$?
4325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326 test $ac_status = 0; }; then :
4327 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4328 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4329 # work properly (i.e., refer to `conftest.exe'), while it won't with
4330 # `rm'.
4331 for ac_file in conftest.exe conftest conftest.*; do
4332 test -f "$ac_file" || continue
4333 case $ac_file in
4334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4335 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4336 break;;
4337 * ) break;;
4338 esac
4339 done
4340 else
4341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4343 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4344 See \`config.log' for more details" "$LINENO" 5; }
4345 fi
4346 rm -f conftest conftest$ac_cv_exeext
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4348 $as_echo "$ac_cv_exeext" >&6; }
4349
4350 rm -f conftest.$ac_ext
4351 EXEEXT=$ac_cv_exeext
4352 ac_exeext=$EXEEXT
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4355 #include <stdio.h>
4356 int
4357 main ()
4358 {
4359 FILE *f = fopen ("conftest.out", "w");
4360 return ferror (f) || fclose (f) != 0;
4361
4362 ;
4363 return 0;
4364 }
4365 _ACEOF
4366 ac_clean_files="$ac_clean_files conftest.out"
4367 # Check that the compiler produces executables we can run. If not, either
4368 # the compiler is broken, or we cross compile.
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4370 $as_echo_n "checking whether we are cross compiling... " >&6; }
4371 if test "$cross_compiling" != yes; then
4372 { { ac_try="$ac_link"
4373 case "(($ac_try" in
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4376 esac
4377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378 $as_echo "$ac_try_echo"; } >&5
4379 (eval "$ac_link") 2>&5
4380 ac_status=$?
4381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4382 test $ac_status = 0; }
4383 if { ac_try='./conftest$ac_cv_exeext'
4384 { { case "(($ac_try" in
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4387 esac
4388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4389 $as_echo "$ac_try_echo"; } >&5
4390 (eval "$ac_try") 2>&5
4391 ac_status=$?
4392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4393 test $ac_status = 0; }; }; then
4394 cross_compiling=no
4395 else
4396 if test "$cross_compiling" = maybe; then
4397 cross_compiling=yes
4398 else
4399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4401 as_fn_error $? "cannot run C compiled programs.
4402 If you meant to cross compile, use \`--host'.
4403 See \`config.log' for more details" "$LINENO" 5; }
4404 fi
4405 fi
4406 fi
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4408 $as_echo "$cross_compiling" >&6; }
4409
4410 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4411 ac_clean_files=$ac_clean_files_save
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4413 $as_echo_n "checking for suffix of object files... " >&6; }
4414 if ${ac_cv_objext+:} false; then :
4415 $as_echo_n "(cached) " >&6
4416 else
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4419
4420 int
4421 main ()
4422 {
4423
4424 ;
4425 return 0;
4426 }
4427 _ACEOF
4428 rm -f conftest.o conftest.obj
4429 if { { ac_try="$ac_compile"
4430 case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433 esac
4434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435 $as_echo "$ac_try_echo"; } >&5
4436 (eval "$ac_compile") 2>&5
4437 ac_status=$?
4438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439 test $ac_status = 0; }; then :
4440 for ac_file in conftest.o conftest.obj conftest.*; do
4441 test -f "$ac_file" || continue;
4442 case $ac_file in
4443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4444 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4445 break;;
4446 esac
4447 done
4448 else
4449 $as_echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4451
4452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4454 as_fn_error $? "cannot compute suffix of object files: cannot compile
4455 See \`config.log' for more details" "$LINENO" 5; }
4456 fi
4457 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4458 fi
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4460 $as_echo "$ac_cv_objext" >&6; }
4461 OBJEXT=$ac_cv_objext
4462 ac_objext=$OBJEXT
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4464 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4465 if ${ac_cv_c_compiler_gnu+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470
4471 int
4472 main ()
4473 {
4474 #ifndef __GNUC__
4475 choke me
4476 #endif
4477
4478 ;
4479 return 0;
4480 }
4481 _ACEOF
4482 if ac_fn_c_try_compile "$LINENO"; then :
4483 ac_compiler_gnu=yes
4484 else
4485 ac_compiler_gnu=no
4486 fi
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4489
4490 fi
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4492 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4493 if test $ac_compiler_gnu = yes; then
4494 GCC=yes
4495 else
4496 GCC=
4497 fi
4498 ac_test_CFLAGS=${CFLAGS+set}
4499 ac_save_CFLAGS=$CFLAGS
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4501 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4502 if ${ac_cv_prog_cc_g+:} false; then :
4503 $as_echo_n "(cached) " >&6
4504 else
4505 ac_save_c_werror_flag=$ac_c_werror_flag
4506 ac_c_werror_flag=yes
4507 ac_cv_prog_cc_g=no
4508 CFLAGS="-g"
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4511
4512 int
4513 main ()
4514 {
4515
4516 ;
4517 return 0;
4518 }
4519 _ACEOF
4520 if ac_fn_c_try_compile "$LINENO"; then :
4521 ac_cv_prog_cc_g=yes
4522 else
4523 CFLAGS=""
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526
4527 int
4528 main ()
4529 {
4530
4531 ;
4532 return 0;
4533 }
4534 _ACEOF
4535 if ac_fn_c_try_compile "$LINENO"; then :
4536
4537 else
4538 ac_c_werror_flag=$ac_save_c_werror_flag
4539 CFLAGS="-g"
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4542
4543 int
4544 main ()
4545 {
4546
4547 ;
4548 return 0;
4549 }
4550 _ACEOF
4551 if ac_fn_c_try_compile "$LINENO"; then :
4552 ac_cv_prog_cc_g=yes
4553 fi
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555 fi
4556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4557 fi
4558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4559 ac_c_werror_flag=$ac_save_c_werror_flag
4560 fi
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4562 $as_echo "$ac_cv_prog_cc_g" >&6; }
4563 if test "$ac_test_CFLAGS" = set; then
4564 CFLAGS=$ac_save_CFLAGS
4565 elif test $ac_cv_prog_cc_g = yes; then
4566 if test "$GCC" = yes; then
4567 CFLAGS="-g -O2"
4568 else
4569 CFLAGS="-g"
4570 fi
4571 else
4572 if test "$GCC" = yes; then
4573 CFLAGS="-O2"
4574 else
4575 CFLAGS=
4576 fi
4577 fi
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4579 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4580 if ${ac_cv_prog_cc_c89+:} false; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 ac_cv_prog_cc_c89=no
4584 ac_save_CC=$CC
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4587 #include <stdarg.h>
4588 #include <stdio.h>
4589 struct stat;
4590 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4591 struct buf { int x; };
4592 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4593 static char *e (p, i)
4594 char **p;
4595 int i;
4596 {
4597 return p[i];
4598 }
4599 static char *f (char * (*g) (char **, int), char **p, ...)
4600 {
4601 char *s;
4602 va_list v;
4603 va_start (v,p);
4604 s = g (p, va_arg (v,int));
4605 va_end (v);
4606 return s;
4607 }
4608
4609 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4610 function prototypes and stuff, but not '\xHH' hex character constants.
4611 These don't provoke an error unfortunately, instead are silently treated
4612 as 'x'. The following induces an error, until -std is added to get
4613 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4614 array size at least. It's necessary to write '\x00'==0 to get something
4615 that's true only with -std. */
4616 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4617
4618 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4619 inside strings and character constants. */
4620 #define FOO(x) 'x'
4621 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4622
4623 int test (int i, double x);
4624 struct s1 {int (*f) (int a);};
4625 struct s2 {int (*f) (double a);};
4626 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4627 int argc;
4628 char **argv;
4629 int
4630 main ()
4631 {
4632 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4633 ;
4634 return 0;
4635 }
4636 _ACEOF
4637 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4638 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4639 do
4640 CC="$ac_save_CC $ac_arg"
4641 if ac_fn_c_try_compile "$LINENO"; then :
4642 ac_cv_prog_cc_c89=$ac_arg
4643 fi
4644 rm -f core conftest.err conftest.$ac_objext
4645 test "x$ac_cv_prog_cc_c89" != "xno" && break
4646 done
4647 rm -f conftest.$ac_ext
4648 CC=$ac_save_CC
4649
4650 fi
4651 # AC_CACHE_VAL
4652 case "x$ac_cv_prog_cc_c89" in
4653 x)
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4655 $as_echo "none needed" >&6; } ;;
4656 xno)
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4658 $as_echo "unsupported" >&6; } ;;
4659 *)
4660 CC="$CC $ac_cv_prog_cc_c89"
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4662 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4663 esac
4664 if test "x$ac_cv_prog_cc_c89" != xno; then :
4665
4666 fi
4667
4668 ac_ext=c
4669 ac_cpp='$CPP $CPPFLAGS'
4670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4673
4674 ac_ext=cpp
4675 ac_cpp='$CXXCPP $CPPFLAGS'
4676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4679 if test -z "$CXX"; then
4680 if test -n "$CCC"; then
4681 CXX=$CCC
4682 else
4683 if test -n "$ac_tool_prefix"; then
4684 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4685 do
4686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4687 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if ${ac_cv_prog_CXX+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 if test -n "$CXX"; then
4694 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4695 else
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4698 do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4703 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 break 2
4706 fi
4707 done
4708 done
4709 IFS=$as_save_IFS
4710
4711 fi
4712 fi
4713 CXX=$ac_cv_prog_CXX
4714 if test -n "$CXX"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4716 $as_echo "$CXX" >&6; }
4717 else
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4720 fi
4721
4722
4723 test -n "$CXX" && break
4724 done
4725 fi
4726 if test -z "$CXX"; then
4727 ac_ct_CXX=$CXX
4728 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4729 do
4730 # Extract the first word of "$ac_prog", so it can be a program name with args.
4731 set dummy $ac_prog; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4737 if test -n "$ac_ct_CXX"; then
4738 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4739 else
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 for as_dir in $PATH
4742 do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747 ac_cv_prog_ac_ct_CXX="$ac_prog"
4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 break 2
4750 fi
4751 done
4752 done
4753 IFS=$as_save_IFS
4754
4755 fi
4756 fi
4757 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4758 if test -n "$ac_ct_CXX"; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4760 $as_echo "$ac_ct_CXX" >&6; }
4761 else
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4764 fi
4765
4766
4767 test -n "$ac_ct_CXX" && break
4768 done
4769
4770 if test "x$ac_ct_CXX" = x; then
4771 CXX="g++"
4772 else
4773 case $cross_compiling:$ac_tool_warned in
4774 yes:)
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4777 ac_tool_warned=yes ;;
4778 esac
4779 CXX=$ac_ct_CXX
4780 fi
4781 fi
4782
4783 fi
4784 fi
4785 # Provide some information about the compiler.
4786 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4787 set X $ac_compile
4788 ac_compiler=$2
4789 for ac_option in --version -v -V -qversion; do
4790 { { ac_try="$ac_compiler $ac_option >&5"
4791 case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794 esac
4795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4796 $as_echo "$ac_try_echo"; } >&5
4797 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4798 ac_status=$?
4799 if test -s conftest.err; then
4800 sed '10a\
4801 ... rest of stderr output deleted ...
4802 10q' conftest.err >conftest.er1
4803 cat conftest.er1 >&5
4804 fi
4805 rm -f conftest.er1 conftest.err
4806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4807 test $ac_status = 0; }
4808 done
4809
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4811 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4812 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4817
4818 int
4819 main ()
4820 {
4821 #ifndef __GNUC__
4822 choke me
4823 #endif
4824
4825 ;
4826 return 0;
4827 }
4828 _ACEOF
4829 if ac_fn_cxx_try_compile "$LINENO"; then :
4830 ac_compiler_gnu=yes
4831 else
4832 ac_compiler_gnu=no
4833 fi
4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4836
4837 fi
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4839 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4840 if test $ac_compiler_gnu = yes; then
4841 GXX=yes
4842 else
4843 GXX=
4844 fi
4845 ac_test_CXXFLAGS=${CXXFLAGS+set}
4846 ac_save_CXXFLAGS=$CXXFLAGS
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4848 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4849 if ${ac_cv_prog_cxx_g+:} false; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4853 ac_cxx_werror_flag=yes
4854 ac_cv_prog_cxx_g=no
4855 CXXFLAGS="-g"
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4858
4859 int
4860 main ()
4861 {
4862
4863 ;
4864 return 0;
4865 }
4866 _ACEOF
4867 if ac_fn_cxx_try_compile "$LINENO"; then :
4868 ac_cv_prog_cxx_g=yes
4869 else
4870 CXXFLAGS=""
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873
4874 int
4875 main ()
4876 {
4877
4878 ;
4879 return 0;
4880 }
4881 _ACEOF
4882 if ac_fn_cxx_try_compile "$LINENO"; then :
4883
4884 else
4885 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4886 CXXFLAGS="-g"
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889
4890 int
4891 main ()
4892 {
4893
4894 ;
4895 return 0;
4896 }
4897 _ACEOF
4898 if ac_fn_cxx_try_compile "$LINENO"; then :
4899 ac_cv_prog_cxx_g=yes
4900 fi
4901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 fi
4903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904 fi
4905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4907 fi
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4909 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4910 if test "$ac_test_CXXFLAGS" = set; then
4911 CXXFLAGS=$ac_save_CXXFLAGS
4912 elif test $ac_cv_prog_cxx_g = yes; then
4913 if test "$GXX" = yes; then
4914 CXXFLAGS="-g -O2"
4915 else
4916 CXXFLAGS="-g"
4917 fi
4918 else
4919 if test "$GXX" = yes; then
4920 CXXFLAGS="-O2"
4921 else
4922 CXXFLAGS=
4923 fi
4924 fi
4925 ac_ext=c
4926 ac_cpp='$CPP $CPPFLAGS'
4927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930
4931
4932
4933
4934 if test -n "$ac_tool_prefix"; then
4935 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4936 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938 $as_echo_n "checking for $ac_word... " >&6; }
4939 if ${ac_cv_prog_GNATBIND+:} false; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 if test -n "$GNATBIND"; then
4943 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4944 else
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4947 do
4948 IFS=$as_save_IFS
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4952 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 break 2
4955 fi
4956 done
4957 done
4958 IFS=$as_save_IFS
4959
4960 fi
4961 fi
4962 GNATBIND=$ac_cv_prog_GNATBIND
4963 if test -n "$GNATBIND"; then
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4965 $as_echo "$GNATBIND" >&6; }
4966 else
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 $as_echo "no" >&6; }
4969 fi
4970
4971
4972 fi
4973 if test -z "$ac_cv_prog_GNATBIND"; then
4974 ac_ct_GNATBIND=$GNATBIND
4975 # Extract the first word of "gnatbind", so it can be a program name with args.
4976 set dummy gnatbind; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 if test -n "$ac_ct_GNATBIND"; then
4983 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4995 fi
4996 done
4997 done
4998 IFS=$as_save_IFS
4999
5000 fi
5001 fi
5002 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5003 if test -n "$ac_ct_GNATBIND"; then
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5005 $as_echo "$ac_ct_GNATBIND" >&6; }
5006 else
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5009 fi
5010
5011 if test "x$ac_ct_GNATBIND" = x; then
5012 GNATBIND="no"
5013 else
5014 case $cross_compiling:$ac_tool_warned in
5015 yes:)
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5018 ac_tool_warned=yes ;;
5019 esac
5020 GNATBIND=$ac_ct_GNATBIND
5021 fi
5022 else
5023 GNATBIND="$ac_cv_prog_GNATBIND"
5024 fi
5025
5026 if test -n "$ac_tool_prefix"; then
5027 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5028 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_prog_GNATMAKE+:} false; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 if test -n "$GNATMAKE"; then
5035 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5036 else
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5039 do
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5044 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 break 2
5047 fi
5048 done
5049 done
5050 IFS=$as_save_IFS
5051
5052 fi
5053 fi
5054 GNATMAKE=$ac_cv_prog_GNATMAKE
5055 if test -n "$GNATMAKE"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5057 $as_echo "$GNATMAKE" >&6; }
5058 else
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5061 fi
5062
5063
5064 fi
5065 if test -z "$ac_cv_prog_GNATMAKE"; then
5066 ac_ct_GNATMAKE=$GNATMAKE
5067 # Extract the first word of "gnatmake", so it can be a program name with args.
5068 set dummy gnatmake; ac_word=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 if test -n "$ac_ct_GNATMAKE"; then
5075 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5076 else
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5079 do
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 break 2
5087 fi
5088 done
5089 done
5090 IFS=$as_save_IFS
5091
5092 fi
5093 fi
5094 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5095 if test -n "$ac_ct_GNATMAKE"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5097 $as_echo "$ac_ct_GNATMAKE" >&6; }
5098 else
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5101 fi
5102
5103 if test "x$ac_ct_GNATMAKE" = x; then
5104 GNATMAKE="no"
5105 else
5106 case $cross_compiling:$ac_tool_warned in
5107 yes:)
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5110 ac_tool_warned=yes ;;
5111 esac
5112 GNATMAKE=$ac_ct_GNATMAKE
5113 fi
5114 else
5115 GNATMAKE="$ac_cv_prog_GNATMAKE"
5116 fi
5117
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5119 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5120 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 cat >conftest.adb <<EOF
5124 procedure conftest is begin null; end conftest;
5125 EOF
5126 acx_cv_cc_gcc_supports_ada=no
5127 # There is a bug in old released versions of GCC which causes the
5128 # driver to exit successfully when the appropriate language module
5129 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5130 # Therefore we must check for the error message as well as an
5131 # unsuccessful exit.
5132 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5133 # given a .adb file, but produce no object file. So we must check
5134 # if an object file was really produced to guard against this.
5135 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5136 if test x"$errors" = x && test -f conftest.$ac_objext; then
5137 acx_cv_cc_gcc_supports_ada=yes
5138 fi
5139 rm -f conftest.*
5140 fi
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5142 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5143
5144 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5145 have_gnat=yes
5146 else
5147 have_gnat=no
5148 fi
5149
5150
5151 # Do configure tests with the C++ compiler, since that's what we build with.
5152 ac_ext=cpp
5153 ac_cpp='$CXXCPP $CPPFLAGS'
5154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5157
5158
5159 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5160 # optimizations to be activated explicitly by the toplevel.
5161 case "$CC" in
5162 */prev-gcc/xgcc*) ;;
5163 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5164 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5165 esac
5166
5167
5168
5169 # Determine PICFLAG for target gnatlib.
5170
5171
5172
5173
5174 case "${target}" in
5175 # PIC is the default on some targets or must not be used.
5176 *-*-darwin*)
5177 # For darwin, common symbols are not allowed in MH_DYLIB files
5178 case "${CFLAGS}" in
5179 # If we are using a compiler supporting mdynamic-no-pic
5180 # and the option has been tested as safe to add, then cancel
5181 # it here, since the code generated is incompatible with shared
5182 # libs.
5183 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5184 *) PICFLAG_FOR_TARGET=-fno-common ;;
5185 esac
5186 ;;
5187 alpha*-dec-osf5*)
5188 # PIC is the default.
5189 ;;
5190 hppa*64*-*-hpux*)
5191 # PIC is the default for 64-bit PA HP-UX.
5192 ;;
5193 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5194 ;;
5195 i[34567]86-*-mingw* | x86_64-*-mingw*)
5196 ;;
5197 i[34567]86-*-interix[3-9]*)
5198 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5199 # Instead, we relocate shared libraries at runtime.
5200 ;;
5201 i[34567]86-*-nto-qnx*)
5202 # QNX uses GNU C++, but need to define -shared option too, otherwise
5203 # it will coredump.
5204 PICFLAG_FOR_TARGET='-fPIC -shared'
5205 ;;
5206 i[34567]86-pc-msdosdjgpp*)
5207 # DJGPP does not support shared libraries at all.
5208 ;;
5209 ia64*-*-hpux*)
5210 # On IA64 HP-UX, PIC is the default but the pic flag
5211 # sets the default TLS model and affects inlining.
5212 PICFLAG_FOR_TARGET=-fPIC
5213 ;;
5214 mips-sgi-irix6*)
5215 # PIC is the default.
5216 ;;
5217 rs6000-ibm-aix* | powerpc-ibm-aix*)
5218 # All AIX code is PIC.
5219 ;;
5220
5221 # Some targets support both -fPIC and -fpic, but prefer the latter.
5222 # FIXME: Why?
5223 i[34567]86-*-* | x86_64-*-*)
5224 PICFLAG_FOR_TARGET=-fpic
5225 ;;
5226 # FIXME: Override -fPIC default in libgcc only?
5227 sh-*-linux* | sh[2346lbe]*-*-linux*)
5228 PICFLAG_FOR_TARGET=-fpic
5229 ;;
5230 # FIXME: Simplify to sh*-*-netbsd*?
5231 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5232 sh64-*-netbsd* | sh64l*-*-netbsd*)
5233 PICFLAG_FOR_TARGET=-fpic
5234 ;;
5235 # Default to -fPIC unless specified otherwise.
5236 *)
5237 PICFLAG_FOR_TARGET=-fPIC
5238 ;;
5239 esac
5240
5241 # If the user explicitly uses -fpic/-fPIC, keep that.
5242 case "${CFLAGS_FOR_TARGET}" in
5243 *-fpic*)
5244 PICFLAG_FOR_TARGET=-fpic
5245 ;;
5246 *-fPIC*)
5247 PICFLAG_FOR_TARGET=-fPIC
5248 ;;
5249 esac
5250
5251
5252
5253 # -------------------------
5254 # Check C compiler features
5255 # -------------------------
5256
5257
5258 ac_ext=cpp
5259 ac_cpp='$CXXCPP $CPPFLAGS'
5260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5264 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5265 if test -z "$CXXCPP"; then
5266 if ${ac_cv_prog_CXXCPP+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 # Double quotes because CXXCPP needs to be expanded
5270 for CXXCPP in "$CXX -E" "/lib/cpp"
5271 do
5272 ac_preproc_ok=false
5273 for ac_cxx_preproc_warn_flag in '' yes
5274 do
5275 # Use a header file that comes with gcc, so configuring glibc
5276 # with a fresh cross-compiler works.
5277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5278 # <limits.h> exists even on freestanding compilers.
5279 # On the NeXT, cc -E runs the code through the compiler's parser,
5280 # not just through cpp. "Syntax error" is here to catch this case.
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h. */
5283 #ifdef __STDC__
5284 # include <limits.h>
5285 #else
5286 # include <assert.h>
5287 #endif
5288 Syntax error
5289 _ACEOF
5290 if ac_fn_cxx_try_cpp "$LINENO"; then :
5291
5292 else
5293 # Broken: fails on valid input.
5294 continue
5295 fi
5296 rm -f conftest.err conftest.i conftest.$ac_ext
5297
5298 # OK, works on sane cases. Now check whether nonexistent headers
5299 # can be detected and how.
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5302 #include <ac_nonexistent.h>
5303 _ACEOF
5304 if ac_fn_cxx_try_cpp "$LINENO"; then :
5305 # Broken: success on invalid input.
5306 continue
5307 else
5308 # Passes both tests.
5309 ac_preproc_ok=:
5310 break
5311 fi
5312 rm -f conftest.err conftest.i conftest.$ac_ext
5313
5314 done
5315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5316 rm -f conftest.i conftest.err conftest.$ac_ext
5317 if $ac_preproc_ok; then :
5318 break
5319 fi
5320
5321 done
5322 ac_cv_prog_CXXCPP=$CXXCPP
5323
5324 fi
5325 CXXCPP=$ac_cv_prog_CXXCPP
5326 else
5327 ac_cv_prog_CXXCPP=$CXXCPP
5328 fi
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5330 $as_echo "$CXXCPP" >&6; }
5331 ac_preproc_ok=false
5332 for ac_cxx_preproc_warn_flag in '' yes
5333 do
5334 # Use a header file that comes with gcc, so configuring glibc
5335 # with a fresh cross-compiler works.
5336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5337 # <limits.h> exists even on freestanding compilers.
5338 # On the NeXT, cc -E runs the code through the compiler's parser,
5339 # not just through cpp. "Syntax error" is here to catch this case.
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5342 #ifdef __STDC__
5343 # include <limits.h>
5344 #else
5345 # include <assert.h>
5346 #endif
5347 Syntax error
5348 _ACEOF
5349 if ac_fn_cxx_try_cpp "$LINENO"; then :
5350
5351 else
5352 # Broken: fails on valid input.
5353 continue
5354 fi
5355 rm -f conftest.err conftest.i conftest.$ac_ext
5356
5357 # OK, works on sane cases. Now check whether nonexistent headers
5358 # can be detected and how.
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5361 #include <ac_nonexistent.h>
5362 _ACEOF
5363 if ac_fn_cxx_try_cpp "$LINENO"; then :
5364 # Broken: success on invalid input.
5365 continue
5366 else
5367 # Passes both tests.
5368 ac_preproc_ok=:
5369 break
5370 fi
5371 rm -f conftest.err conftest.i conftest.$ac_ext
5372
5373 done
5374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5375 rm -f conftest.i conftest.err conftest.$ac_ext
5376 if $ac_preproc_ok; then :
5377
5378 else
5379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5381 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5382 See \`config.log' for more details" "$LINENO" 5; }
5383 fi
5384
5385 ac_ext=cpp
5386 ac_cpp='$CXXCPP $CPPFLAGS'
5387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5390
5391
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5393 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5394 if ${ac_cv_path_GREP+:} false; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 if test -z "$GREP"; then
5398 ac_path_GREP_found=false
5399 # Loop through the user's path and test for each of PROGNAME-LIST
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5402 do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_prog in grep ggrep; do
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5408 as_fn_executable_p "$ac_path_GREP" || continue
5409 # Check for GNU ac_path_GREP and select it if it is found.
5410 # Check for GNU $ac_path_GREP
5411 case `"$ac_path_GREP" --version 2>&1` in
5412 *GNU*)
5413 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5414 *)
5415 ac_count=0
5416 $as_echo_n 0123456789 >"conftest.in"
5417 while :
5418 do
5419 cat "conftest.in" "conftest.in" >"conftest.tmp"
5420 mv "conftest.tmp" "conftest.in"
5421 cp "conftest.in" "conftest.nl"
5422 $as_echo 'GREP' >> "conftest.nl"
5423 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5425 as_fn_arith $ac_count + 1 && ac_count=$as_val
5426 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5427 # Best one so far, save it but keep looking for a better one
5428 ac_cv_path_GREP="$ac_path_GREP"
5429 ac_path_GREP_max=$ac_count
5430 fi
5431 # 10*(2^10) chars as input seems more than enough
5432 test $ac_count -gt 10 && break
5433 done
5434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5435 esac
5436
5437 $ac_path_GREP_found && break 3
5438 done
5439 done
5440 done
5441 IFS=$as_save_IFS
5442 if test -z "$ac_cv_path_GREP"; then
5443 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5444 fi
5445 else
5446 ac_cv_path_GREP=$GREP
5447 fi
5448
5449 fi
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5451 $as_echo "$ac_cv_path_GREP" >&6; }
5452 GREP="$ac_cv_path_GREP"
5453
5454
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5456 $as_echo_n "checking for egrep... " >&6; }
5457 if ${ac_cv_path_EGREP+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5461 then ac_cv_path_EGREP="$GREP -E"
5462 else
5463 if test -z "$EGREP"; then
5464 ac_path_EGREP_found=false
5465 # Loop through the user's path and test for each of PROGNAME-LIST
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5468 do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_prog in egrep; do
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5474 as_fn_executable_p "$ac_path_EGREP" || continue
5475 # Check for GNU ac_path_EGREP and select it if it is found.
5476 # Check for GNU $ac_path_EGREP
5477 case `"$ac_path_EGREP" --version 2>&1` in
5478 *GNU*)
5479 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5480 *)
5481 ac_count=0
5482 $as_echo_n 0123456789 >"conftest.in"
5483 while :
5484 do
5485 cat "conftest.in" "conftest.in" >"conftest.tmp"
5486 mv "conftest.tmp" "conftest.in"
5487 cp "conftest.in" "conftest.nl"
5488 $as_echo 'EGREP' >> "conftest.nl"
5489 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5490 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5491 as_fn_arith $ac_count + 1 && ac_count=$as_val
5492 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5493 # Best one so far, save it but keep looking for a better one
5494 ac_cv_path_EGREP="$ac_path_EGREP"
5495 ac_path_EGREP_max=$ac_count
5496 fi
5497 # 10*(2^10) chars as input seems more than enough
5498 test $ac_count -gt 10 && break
5499 done
5500 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5501 esac
5502
5503 $ac_path_EGREP_found && break 3
5504 done
5505 done
5506 done
5507 IFS=$as_save_IFS
5508 if test -z "$ac_cv_path_EGREP"; then
5509 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5510 fi
5511 else
5512 ac_cv_path_EGREP=$EGREP
5513 fi
5514
5515 fi
5516 fi
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5518 $as_echo "$ac_cv_path_EGREP" >&6; }
5519 EGREP="$ac_cv_path_EGREP"
5520
5521
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5523 $as_echo_n "checking for ANSI C header files... " >&6; }
5524 if ${ac_cv_header_stdc+:} false; then :
5525 $as_echo_n "(cached) " >&6
5526 else
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 #include <stdlib.h>
5530 #include <stdarg.h>
5531 #include <string.h>
5532 #include <float.h>
5533
5534 int
5535 main ()
5536 {
5537
5538 ;
5539 return 0;
5540 }
5541 _ACEOF
5542 if ac_fn_cxx_try_compile "$LINENO"; then :
5543 ac_cv_header_stdc=yes
5544 else
5545 ac_cv_header_stdc=no
5546 fi
5547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548
5549 if test $ac_cv_header_stdc = yes; then
5550 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 #include <string.h>
5554
5555 _ACEOF
5556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5557 $EGREP "memchr" >/dev/null 2>&1; then :
5558
5559 else
5560 ac_cv_header_stdc=no
5561 fi
5562 rm -f conftest*
5563
5564 fi
5565
5566 if test $ac_cv_header_stdc = yes; then
5567 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 #include <stdlib.h>
5571
5572 _ACEOF
5573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5574 $EGREP "free" >/dev/null 2>&1; then :
5575
5576 else
5577 ac_cv_header_stdc=no
5578 fi
5579 rm -f conftest*
5580
5581 fi
5582
5583 if test $ac_cv_header_stdc = yes; then
5584 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5585 if test "$cross_compiling" = yes; then :
5586 :
5587 else
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 #include <ctype.h>
5591 #include <stdlib.h>
5592 #if ((' ' & 0x0FF) == 0x020)
5593 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5594 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5595 #else
5596 # define ISLOWER(c) \
5597 (('a' <= (c) && (c) <= 'i') \
5598 || ('j' <= (c) && (c) <= 'r') \
5599 || ('s' <= (c) && (c) <= 'z'))
5600 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5601 #endif
5602
5603 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5604 int
5605 main ()
5606 {
5607 int i;
5608 for (i = 0; i < 256; i++)
5609 if (XOR (islower (i), ISLOWER (i))
5610 || toupper (i) != TOUPPER (i))
5611 return 2;
5612 return 0;
5613 }
5614 _ACEOF
5615 if ac_fn_cxx_try_run "$LINENO"; then :
5616
5617 else
5618 ac_cv_header_stdc=no
5619 fi
5620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5621 conftest.$ac_objext conftest.beam conftest.$ac_ext
5622 fi
5623
5624 fi
5625 fi
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5627 $as_echo "$ac_cv_header_stdc" >&6; }
5628 if test $ac_cv_header_stdc = yes; then
5629
5630 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5631
5632 fi
5633
5634 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5635 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5636 inttypes.h stdint.h unistd.h
5637 do :
5638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5639 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5640 "
5641 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5642 cat >>confdefs.h <<_ACEOF
5643 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5644 _ACEOF
5645
5646 fi
5647
5648 done
5649
5650
5651
5652 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5653 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5654 MINIX=yes
5655 else
5656 MINIX=
5657 fi
5658
5659
5660 if test "$MINIX" = yes; then
5661
5662 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5663
5664
5665 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5666
5667
5668 $as_echo "#define _MINIX 1" >>confdefs.h
5669
5670 fi
5671
5672
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5674 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5675 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5680
5681 # define __EXTENSIONS__ 1
5682 $ac_includes_default
5683 int
5684 main ()
5685 {
5686
5687 ;
5688 return 0;
5689 }
5690 _ACEOF
5691 if ac_fn_cxx_try_compile "$LINENO"; then :
5692 ac_cv_safe_to_define___extensions__=yes
5693 else
5694 ac_cv_safe_to_define___extensions__=no
5695 fi
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 fi
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5699 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5700 test $ac_cv_safe_to_define___extensions__ = yes &&
5701 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5702
5703 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5704
5705 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5706
5707 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5708
5709 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5710
5711
5712
5713 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5714 ac_ext=cpp
5715 ac_cpp='$CXXCPP $CPPFLAGS'
5716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5719 ac_success=no
5720
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5722 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5723 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5724 $as_echo_n "(cached) " >&6
5725 else
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5728
5729
5730 // If the compiler admits that it is not ready for C++11, why torture it?
5731 // Hopefully, this will speed up the test.
5732
5733 #ifndef __cplusplus
5734
5735 #error "This is not a C++ compiler"
5736
5737 #elif __cplusplus < 201103L
5738
5739 #error "This is not a C++11 compiler"
5740
5741 #else
5742
5743 namespace cxx11
5744 {
5745
5746 namespace test_static_assert
5747 {
5748
5749 template <typename T>
5750 struct check
5751 {
5752 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5753 };
5754
5755 }
5756
5757 namespace test_final_override
5758 {
5759
5760 struct Base
5761 {
5762 virtual ~Base() {}
5763 virtual void f() {}
5764 };
5765
5766 struct Derived : public Base
5767 {
5768 virtual ~Derived() override {}
5769 virtual void f() override {}
5770 };
5771
5772 }
5773
5774 namespace test_double_right_angle_brackets
5775 {
5776
5777 template < typename T >
5778 struct check {};
5779
5780 typedef check<void> single_type;
5781 typedef check<check<void>> double_type;
5782 typedef check<check<check<void>>> triple_type;
5783 typedef check<check<check<check<void>>>> quadruple_type;
5784
5785 }
5786
5787 namespace test_decltype
5788 {
5789
5790 int
5791 f()
5792 {
5793 int a = 1;
5794 decltype(a) b = 2;
5795 return a + b;
5796 }
5797
5798 }
5799
5800 namespace test_type_deduction
5801 {
5802
5803 template < typename T1, typename T2 >
5804 struct is_same
5805 {
5806 static const bool value = false;
5807 };
5808
5809 template < typename T >
5810 struct is_same<T, T>
5811 {
5812 static const bool value = true;
5813 };
5814
5815 template < typename T1, typename T2 >
5816 auto
5817 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5818 {
5819 return a1 + a2;
5820 }
5821
5822 int
5823 test(const int c, volatile int v)
5824 {
5825 static_assert(is_same<int, decltype(0)>::value == true, "");
5826 static_assert(is_same<int, decltype(c)>::value == false, "");
5827 static_assert(is_same<int, decltype(v)>::value == false, "");
5828 auto ac = c;
5829 auto av = v;
5830 auto sumi = ac + av + 'x';
5831 auto sumf = ac + av + 1.0;
5832 static_assert(is_same<int, decltype(ac)>::value == true, "");
5833 static_assert(is_same<int, decltype(av)>::value == true, "");
5834 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5835 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5836 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5837 return (sumf > 0.0) ? sumi : add(c, v);
5838 }
5839
5840 }
5841
5842 namespace test_noexcept
5843 {
5844
5845 int f() { return 0; }
5846 int g() noexcept { return 0; }
5847
5848 static_assert(noexcept(f()) == false, "");
5849 static_assert(noexcept(g()) == true, "");
5850
5851 }
5852
5853 namespace test_constexpr
5854 {
5855
5856 template < typename CharT >
5857 unsigned long constexpr
5858 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5859 {
5860 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5861 }
5862
5863 template < typename CharT >
5864 unsigned long constexpr
5865 strlen_c(const CharT *const s) noexcept
5866 {
5867 return strlen_c_r(s, 0UL);
5868 }
5869
5870 static_assert(strlen_c("") == 0UL, "");
5871 static_assert(strlen_c("1") == 1UL, "");
5872 static_assert(strlen_c("example") == 7UL, "");
5873 static_assert(strlen_c("another\0example") == 7UL, "");
5874
5875 }
5876
5877 namespace test_rvalue_references
5878 {
5879
5880 template < int N >
5881 struct answer
5882 {
5883 static constexpr int value = N;
5884 };
5885
5886 answer<1> f(int&) { return answer<1>(); }
5887 answer<2> f(const int&) { return answer<2>(); }
5888 answer<3> f(int&&) { return answer<3>(); }
5889
5890 void
5891 test()
5892 {
5893 int i = 0;
5894 const int c = 0;
5895 static_assert(decltype(f(i))::value == 1, "");
5896 static_assert(decltype(f(c))::value == 2, "");
5897 static_assert(decltype(f(0))::value == 3, "");
5898 }
5899
5900 }
5901
5902 namespace test_uniform_initialization
5903 {
5904
5905 struct test
5906 {
5907 static const int zero {};
5908 static const int one {1};
5909 };
5910
5911 static_assert(test::zero == 0, "");
5912 static_assert(test::one == 1, "");
5913
5914 }
5915
5916 namespace test_lambdas
5917 {
5918
5919 void
5920 test1()
5921 {
5922 auto lambda1 = [](){};
5923 auto lambda2 = lambda1;
5924 lambda1();
5925 lambda2();
5926 }
5927
5928 int
5929 test2()
5930 {
5931 auto a = [](int i, int j){ return i + j; }(1, 2);
5932 auto b = []() -> int { return '0'; }();
5933 auto c = [=](){ return a + b; }();
5934 auto d = [&](){ return c; }();
5935 auto e = [a, &b](int x) mutable {
5936 const auto identity = [](int y){ return y; };
5937 for (auto i = 0; i < a; ++i)
5938 a += b--;
5939 return x + identity(a + b);
5940 }(0);
5941 return a + b + c + d + e;
5942 }
5943
5944 int
5945 test3()
5946 {
5947 const auto nullary = [](){ return 0; };
5948 const auto unary = [](int x){ return x; };
5949 using nullary_t = decltype(nullary);
5950 using unary_t = decltype(unary);
5951 const auto higher1st = [](nullary_t f){ return f(); };
5952 const auto higher2nd = [unary](nullary_t f1){
5953 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5954 };
5955 return higher1st(nullary) + higher2nd(nullary)(unary);
5956 }
5957
5958 }
5959
5960 namespace test_variadic_templates
5961 {
5962
5963 template <int...>
5964 struct sum;
5965
5966 template <int N0, int... N1toN>
5967 struct sum<N0, N1toN...>
5968 {
5969 static constexpr auto value = N0 + sum<N1toN...>::value;
5970 };
5971
5972 template <>
5973 struct sum<>
5974 {
5975 static constexpr auto value = 0;
5976 };
5977
5978 static_assert(sum<>::value == 0, "");
5979 static_assert(sum<1>::value == 1, "");
5980 static_assert(sum<23>::value == 23, "");
5981 static_assert(sum<1, 2>::value == 3, "");
5982 static_assert(sum<5, 5, 11>::value == 21, "");
5983 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5984
5985 }
5986
5987 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5988 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5989 // because of this.
5990 namespace test_template_alias_sfinae
5991 {
5992
5993 struct foo {};
5994
5995 template<typename T>
5996 using member = typename T::member_type;
5997
5998 template<typename T>
5999 void func(...) {}
6000
6001 template<typename T>
6002 void func(member<T>*) {}
6003
6004 void test();
6005
6006 void test() { func<foo>(0); }
6007
6008 }
6009
6010 } // namespace cxx11
6011
6012 #endif // __cplusplus >= 201103L
6013
6014
6015
6016 _ACEOF
6017 if ac_fn_cxx_try_compile "$LINENO"; then :
6018 ax_cv_cxx_compile_cxx11=yes
6019 else
6020 ax_cv_cxx_compile_cxx11=no
6021 fi
6022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 fi
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6025 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6026 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6027 ac_success=yes
6028 fi
6029
6030 if test x$ac_success = xno; then
6031 for alternative in ${ax_cxx_compile_alternatives}; do
6032 switch="-std=gnu++${alternative}"
6033 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6035 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6036 if eval \${$cachevar+:} false; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 ac_save_CXX="$CXX"
6040 CXX="$CXX $switch"
6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6043
6044
6045 // If the compiler admits that it is not ready for C++11, why torture it?
6046 // Hopefully, this will speed up the test.
6047
6048 #ifndef __cplusplus
6049
6050 #error "This is not a C++ compiler"
6051
6052 #elif __cplusplus < 201103L
6053
6054 #error "This is not a C++11 compiler"
6055
6056 #else
6057
6058 namespace cxx11
6059 {
6060
6061 namespace test_static_assert
6062 {
6063
6064 template <typename T>
6065 struct check
6066 {
6067 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6068 };
6069
6070 }
6071
6072 namespace test_final_override
6073 {
6074
6075 struct Base
6076 {
6077 virtual ~Base() {}
6078 virtual void f() {}
6079 };
6080
6081 struct Derived : public Base
6082 {
6083 virtual ~Derived() override {}
6084 virtual void f() override {}
6085 };
6086
6087 }
6088
6089 namespace test_double_right_angle_brackets
6090 {
6091
6092 template < typename T >
6093 struct check {};
6094
6095 typedef check<void> single_type;
6096 typedef check<check<void>> double_type;
6097 typedef check<check<check<void>>> triple_type;
6098 typedef check<check<check<check<void>>>> quadruple_type;
6099
6100 }
6101
6102 namespace test_decltype
6103 {
6104
6105 int
6106 f()
6107 {
6108 int a = 1;
6109 decltype(a) b = 2;
6110 return a + b;
6111 }
6112
6113 }
6114
6115 namespace test_type_deduction
6116 {
6117
6118 template < typename T1, typename T2 >
6119 struct is_same
6120 {
6121 static const bool value = false;
6122 };
6123
6124 template < typename T >
6125 struct is_same<T, T>
6126 {
6127 static const bool value = true;
6128 };
6129
6130 template < typename T1, typename T2 >
6131 auto
6132 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6133 {
6134 return a1 + a2;
6135 }
6136
6137 int
6138 test(const int c, volatile int v)
6139 {
6140 static_assert(is_same<int, decltype(0)>::value == true, "");
6141 static_assert(is_same<int, decltype(c)>::value == false, "");
6142 static_assert(is_same<int, decltype(v)>::value == false, "");
6143 auto ac = c;
6144 auto av = v;
6145 auto sumi = ac + av + 'x';
6146 auto sumf = ac + av + 1.0;
6147 static_assert(is_same<int, decltype(ac)>::value == true, "");
6148 static_assert(is_same<int, decltype(av)>::value == true, "");
6149 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6150 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6151 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6152 return (sumf > 0.0) ? sumi : add(c, v);
6153 }
6154
6155 }
6156
6157 namespace test_noexcept
6158 {
6159
6160 int f() { return 0; }
6161 int g() noexcept { return 0; }
6162
6163 static_assert(noexcept(f()) == false, "");
6164 static_assert(noexcept(g()) == true, "");
6165
6166 }
6167
6168 namespace test_constexpr
6169 {
6170
6171 template < typename CharT >
6172 unsigned long constexpr
6173 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6174 {
6175 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6176 }
6177
6178 template < typename CharT >
6179 unsigned long constexpr
6180 strlen_c(const CharT *const s) noexcept
6181 {
6182 return strlen_c_r(s, 0UL);
6183 }
6184
6185 static_assert(strlen_c("") == 0UL, "");
6186 static_assert(strlen_c("1") == 1UL, "");
6187 static_assert(strlen_c("example") == 7UL, "");
6188 static_assert(strlen_c("another\0example") == 7UL, "");
6189
6190 }
6191
6192 namespace test_rvalue_references
6193 {
6194
6195 template < int N >
6196 struct answer
6197 {
6198 static constexpr int value = N;
6199 };
6200
6201 answer<1> f(int&) { return answer<1>(); }
6202 answer<2> f(const int&) { return answer<2>(); }
6203 answer<3> f(int&&) { return answer<3>(); }
6204
6205 void
6206 test()
6207 {
6208 int i = 0;
6209 const int c = 0;
6210 static_assert(decltype(f(i))::value == 1, "");
6211 static_assert(decltype(f(c))::value == 2, "");
6212 static_assert(decltype(f(0))::value == 3, "");
6213 }
6214
6215 }
6216
6217 namespace test_uniform_initialization
6218 {
6219
6220 struct test
6221 {
6222 static const int zero {};
6223 static const int one {1};
6224 };
6225
6226 static_assert(test::zero == 0, "");
6227 static_assert(test::one == 1, "");
6228
6229 }
6230
6231 namespace test_lambdas
6232 {
6233
6234 void
6235 test1()
6236 {
6237 auto lambda1 = [](){};
6238 auto lambda2 = lambda1;
6239 lambda1();
6240 lambda2();
6241 }
6242
6243 int
6244 test2()
6245 {
6246 auto a = [](int i, int j){ return i + j; }(1, 2);
6247 auto b = []() -> int { return '0'; }();
6248 auto c = [=](){ return a + b; }();
6249 auto d = [&](){ return c; }();
6250 auto e = [a, &b](int x) mutable {
6251 const auto identity = [](int y){ return y; };
6252 for (auto i = 0; i < a; ++i)
6253 a += b--;
6254 return x + identity(a + b);
6255 }(0);
6256 return a + b + c + d + e;
6257 }
6258
6259 int
6260 test3()
6261 {
6262 const auto nullary = [](){ return 0; };
6263 const auto unary = [](int x){ return x; };
6264 using nullary_t = decltype(nullary);
6265 using unary_t = decltype(unary);
6266 const auto higher1st = [](nullary_t f){ return f(); };
6267 const auto higher2nd = [unary](nullary_t f1){
6268 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6269 };
6270 return higher1st(nullary) + higher2nd(nullary)(unary);
6271 }
6272
6273 }
6274
6275 namespace test_variadic_templates
6276 {
6277
6278 template <int...>
6279 struct sum;
6280
6281 template <int N0, int... N1toN>
6282 struct sum<N0, N1toN...>
6283 {
6284 static constexpr auto value = N0 + sum<N1toN...>::value;
6285 };
6286
6287 template <>
6288 struct sum<>
6289 {
6290 static constexpr auto value = 0;
6291 };
6292
6293 static_assert(sum<>::value == 0, "");
6294 static_assert(sum<1>::value == 1, "");
6295 static_assert(sum<23>::value == 23, "");
6296 static_assert(sum<1, 2>::value == 3, "");
6297 static_assert(sum<5, 5, 11>::value == 21, "");
6298 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6299
6300 }
6301
6302 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6303 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6304 // because of this.
6305 namespace test_template_alias_sfinae
6306 {
6307
6308 struct foo {};
6309
6310 template<typename T>
6311 using member = typename T::member_type;
6312
6313 template<typename T>
6314 void func(...) {}
6315
6316 template<typename T>
6317 void func(member<T>*) {}
6318
6319 void test();
6320
6321 void test() { func<foo>(0); }
6322
6323 }
6324
6325 } // namespace cxx11
6326
6327 #endif // __cplusplus >= 201103L
6328
6329
6330
6331 _ACEOF
6332 if ac_fn_cxx_try_compile "$LINENO"; then :
6333 eval $cachevar=yes
6334 else
6335 eval $cachevar=no
6336 fi
6337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6338 CXX="$ac_save_CXX"
6339 fi
6340 eval ac_res=\$$cachevar
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6342 $as_echo "$ac_res" >&6; }
6343 if eval test x\$$cachevar = xyes; then
6344 CXX="$CXX $switch"
6345 if test -n "$CXXCPP" ; then
6346 CXXCPP="$CXXCPP $switch"
6347 fi
6348 ac_success=yes
6349 break
6350 fi
6351 done
6352 fi
6353
6354 if test x$ac_success = xno; then
6355 for alternative in ${ax_cxx_compile_alternatives}; do
6356 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6357 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6359 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6360 if eval \${$cachevar+:} false; then :
6361 $as_echo_n "(cached) " >&6
6362 else
6363 ac_save_CXX="$CXX"
6364 CXX="$CXX $switch"
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6367
6368
6369 // If the compiler admits that it is not ready for C++11, why torture it?
6370 // Hopefully, this will speed up the test.
6371
6372 #ifndef __cplusplus
6373
6374 #error "This is not a C++ compiler"
6375
6376 #elif __cplusplus < 201103L
6377
6378 #error "This is not a C++11 compiler"
6379
6380 #else
6381
6382 namespace cxx11
6383 {
6384
6385 namespace test_static_assert
6386 {
6387
6388 template <typename T>
6389 struct check
6390 {
6391 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6392 };
6393
6394 }
6395
6396 namespace test_final_override
6397 {
6398
6399 struct Base
6400 {
6401 virtual ~Base() {}
6402 virtual void f() {}
6403 };
6404
6405 struct Derived : public Base
6406 {
6407 virtual ~Derived() override {}
6408 virtual void f() override {}
6409 };
6410
6411 }
6412
6413 namespace test_double_right_angle_brackets
6414 {
6415
6416 template < typename T >
6417 struct check {};
6418
6419 typedef check<void> single_type;
6420 typedef check<check<void>> double_type;
6421 typedef check<check<check<void>>> triple_type;
6422 typedef check<check<check<check<void>>>> quadruple_type;
6423
6424 }
6425
6426 namespace test_decltype
6427 {
6428
6429 int
6430 f()
6431 {
6432 int a = 1;
6433 decltype(a) b = 2;
6434 return a + b;
6435 }
6436
6437 }
6438
6439 namespace test_type_deduction
6440 {
6441
6442 template < typename T1, typename T2 >
6443 struct is_same
6444 {
6445 static const bool value = false;
6446 };
6447
6448 template < typename T >
6449 struct is_same<T, T>
6450 {
6451 static const bool value = true;
6452 };
6453
6454 template < typename T1, typename T2 >
6455 auto
6456 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6457 {
6458 return a1 + a2;
6459 }
6460
6461 int
6462 test(const int c, volatile int v)
6463 {
6464 static_assert(is_same<int, decltype(0)>::value == true, "");
6465 static_assert(is_same<int, decltype(c)>::value == false, "");
6466 static_assert(is_same<int, decltype(v)>::value == false, "");
6467 auto ac = c;
6468 auto av = v;
6469 auto sumi = ac + av + 'x';
6470 auto sumf = ac + av + 1.0;
6471 static_assert(is_same<int, decltype(ac)>::value == true, "");
6472 static_assert(is_same<int, decltype(av)>::value == true, "");
6473 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6474 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6475 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6476 return (sumf > 0.0) ? sumi : add(c, v);
6477 }
6478
6479 }
6480
6481 namespace test_noexcept
6482 {
6483
6484 int f() { return 0; }
6485 int g() noexcept { return 0; }
6486
6487 static_assert(noexcept(f()) == false, "");
6488 static_assert(noexcept(g()) == true, "");
6489
6490 }
6491
6492 namespace test_constexpr
6493 {
6494
6495 template < typename CharT >
6496 unsigned long constexpr
6497 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6498 {
6499 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6500 }
6501
6502 template < typename CharT >
6503 unsigned long constexpr
6504 strlen_c(const CharT *const s) noexcept
6505 {
6506 return strlen_c_r(s, 0UL);
6507 }
6508
6509 static_assert(strlen_c("") == 0UL, "");
6510 static_assert(strlen_c("1") == 1UL, "");
6511 static_assert(strlen_c("example") == 7UL, "");
6512 static_assert(strlen_c("another\0example") == 7UL, "");
6513
6514 }
6515
6516 namespace test_rvalue_references
6517 {
6518
6519 template < int N >
6520 struct answer
6521 {
6522 static constexpr int value = N;
6523 };
6524
6525 answer<1> f(int&) { return answer<1>(); }
6526 answer<2> f(const int&) { return answer<2>(); }
6527 answer<3> f(int&&) { return answer<3>(); }
6528
6529 void
6530 test()
6531 {
6532 int i = 0;
6533 const int c = 0;
6534 static_assert(decltype(f(i))::value == 1, "");
6535 static_assert(decltype(f(c))::value == 2, "");
6536 static_assert(decltype(f(0))::value == 3, "");
6537 }
6538
6539 }
6540
6541 namespace test_uniform_initialization
6542 {
6543
6544 struct test
6545 {
6546 static const int zero {};
6547 static const int one {1};
6548 };
6549
6550 static_assert(test::zero == 0, "");
6551 static_assert(test::one == 1, "");
6552
6553 }
6554
6555 namespace test_lambdas
6556 {
6557
6558 void
6559 test1()
6560 {
6561 auto lambda1 = [](){};
6562 auto lambda2 = lambda1;
6563 lambda1();
6564 lambda2();
6565 }
6566
6567 int
6568 test2()
6569 {
6570 auto a = [](int i, int j){ return i + j; }(1, 2);
6571 auto b = []() -> int { return '0'; }();
6572 auto c = [=](){ return a + b; }();
6573 auto d = [&](){ return c; }();
6574 auto e = [a, &b](int x) mutable {
6575 const auto identity = [](int y){ return y; };
6576 for (auto i = 0; i < a; ++i)
6577 a += b--;
6578 return x + identity(a + b);
6579 }(0);
6580 return a + b + c + d + e;
6581 }
6582
6583 int
6584 test3()
6585 {
6586 const auto nullary = [](){ return 0; };
6587 const auto unary = [](int x){ return x; };
6588 using nullary_t = decltype(nullary);
6589 using unary_t = decltype(unary);
6590 const auto higher1st = [](nullary_t f){ return f(); };
6591 const auto higher2nd = [unary](nullary_t f1){
6592 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6593 };
6594 return higher1st(nullary) + higher2nd(nullary)(unary);
6595 }
6596
6597 }
6598
6599 namespace test_variadic_templates
6600 {
6601
6602 template <int...>
6603 struct sum;
6604
6605 template <int N0, int... N1toN>
6606 struct sum<N0, N1toN...>
6607 {
6608 static constexpr auto value = N0 + sum<N1toN...>::value;
6609 };
6610
6611 template <>
6612 struct sum<>
6613 {
6614 static constexpr auto value = 0;
6615 };
6616
6617 static_assert(sum<>::value == 0, "");
6618 static_assert(sum<1>::value == 1, "");
6619 static_assert(sum<23>::value == 23, "");
6620 static_assert(sum<1, 2>::value == 3, "");
6621 static_assert(sum<5, 5, 11>::value == 21, "");
6622 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6623
6624 }
6625
6626 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6627 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6628 // because of this.
6629 namespace test_template_alias_sfinae
6630 {
6631
6632 struct foo {};
6633
6634 template<typename T>
6635 using member = typename T::member_type;
6636
6637 template<typename T>
6638 void func(...) {}
6639
6640 template<typename T>
6641 void func(member<T>*) {}
6642
6643 void test();
6644
6645 void test() { func<foo>(0); }
6646
6647 }
6648
6649 } // namespace cxx11
6650
6651 #endif // __cplusplus >= 201103L
6652
6653
6654
6655 _ACEOF
6656 if ac_fn_cxx_try_compile "$LINENO"; then :
6657 eval $cachevar=yes
6658 else
6659 eval $cachevar=no
6660 fi
6661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 CXX="$ac_save_CXX"
6663 fi
6664 eval ac_res=\$$cachevar
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6666 $as_echo "$ac_res" >&6; }
6667 if eval test x\$$cachevar = xyes; then
6668 CXX="$CXX $switch"
6669 if test -n "$CXXCPP" ; then
6670 CXXCPP="$CXXCPP $switch"
6671 fi
6672 ac_success=yes
6673 break
6674 fi
6675 done
6676 if test x$ac_success = xyes; then
6677 break
6678 fi
6679 done
6680 fi
6681 ac_ext=cpp
6682 ac_cpp='$CXXCPP $CPPFLAGS'
6683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6686
6687 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6688 if test x$ac_success = xno; then
6689 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6690 fi
6691 fi
6692 if test x$ac_success = xno; then
6693 HAVE_CXX11=0
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6695 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6696 else
6697 HAVE_CXX11=1
6698
6699 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6700
6701 fi
6702
6703
6704
6705 ac_ext=c
6706 ac_cpp='$CPP $CPPFLAGS'
6707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6711 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6712 # On Suns, sometimes $CPP names a directory.
6713 if test -n "$CPP" && test -d "$CPP"; then
6714 CPP=
6715 fi
6716 if test -z "$CPP"; then
6717 if ${ac_cv_prog_CPP+:} false; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720 # Double quotes because CPP needs to be expanded
6721 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6722 do
6723 ac_preproc_ok=false
6724 for ac_c_preproc_warn_flag in '' yes
6725 do
6726 # Use a header file that comes with gcc, so configuring glibc
6727 # with a fresh cross-compiler works.
6728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6729 # <limits.h> exists even on freestanding compilers.
6730 # On the NeXT, cc -E runs the code through the compiler's parser,
6731 # not just through cpp. "Syntax error" is here to catch this case.
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6734 #ifdef __STDC__
6735 # include <limits.h>
6736 #else
6737 # include <assert.h>
6738 #endif
6739 Syntax error
6740 _ACEOF
6741 if ac_fn_c_try_cpp "$LINENO"; then :
6742
6743 else
6744 # Broken: fails on valid input.
6745 continue
6746 fi
6747 rm -f conftest.err conftest.i conftest.$ac_ext
6748
6749 # OK, works on sane cases. Now check whether nonexistent headers
6750 # can be detected and how.
6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6753 #include <ac_nonexistent.h>
6754 _ACEOF
6755 if ac_fn_c_try_cpp "$LINENO"; then :
6756 # Broken: success on invalid input.
6757 continue
6758 else
6759 # Passes both tests.
6760 ac_preproc_ok=:
6761 break
6762 fi
6763 rm -f conftest.err conftest.i conftest.$ac_ext
6764
6765 done
6766 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6767 rm -f conftest.i conftest.err conftest.$ac_ext
6768 if $ac_preproc_ok; then :
6769 break
6770 fi
6771
6772 done
6773 ac_cv_prog_CPP=$CPP
6774
6775 fi
6776 CPP=$ac_cv_prog_CPP
6777 else
6778 ac_cv_prog_CPP=$CPP
6779 fi
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6781 $as_echo "$CPP" >&6; }
6782 ac_preproc_ok=false
6783 for ac_c_preproc_warn_flag in '' yes
6784 do
6785 # Use a header file that comes with gcc, so configuring glibc
6786 # with a fresh cross-compiler works.
6787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6788 # <limits.h> exists even on freestanding compilers.
6789 # On the NeXT, cc -E runs the code through the compiler's parser,
6790 # not just through cpp. "Syntax error" is here to catch this case.
6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6793 #ifdef __STDC__
6794 # include <limits.h>
6795 #else
6796 # include <assert.h>
6797 #endif
6798 Syntax error
6799 _ACEOF
6800 if ac_fn_c_try_cpp "$LINENO"; then :
6801
6802 else
6803 # Broken: fails on valid input.
6804 continue
6805 fi
6806 rm -f conftest.err conftest.i conftest.$ac_ext
6807
6808 # OK, works on sane cases. Now check whether nonexistent headers
6809 # can be detected and how.
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 #include <ac_nonexistent.h>
6813 _ACEOF
6814 if ac_fn_c_try_cpp "$LINENO"; then :
6815 # Broken: success on invalid input.
6816 continue
6817 else
6818 # Passes both tests.
6819 ac_preproc_ok=:
6820 break
6821 fi
6822 rm -f conftest.err conftest.i conftest.$ac_ext
6823
6824 done
6825 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6826 rm -f conftest.i conftest.err conftest.$ac_ext
6827 if $ac_preproc_ok; then :
6828
6829 else
6830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6832 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6833 See \`config.log' for more details" "$LINENO" 5; }
6834 fi
6835
6836 ac_ext=cpp
6837 ac_cpp='$CXXCPP $CPPFLAGS'
6838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6841
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6843 $as_echo_n "checking for inline... " >&6; }
6844 if ${ac_cv_c_inline+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 ac_cv_c_inline=no
6848 for ac_kw in inline __inline__ __inline; do
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851 #ifndef __cplusplus
6852 typedef int foo_t;
6853 static $ac_kw foo_t static_foo () {return 0; }
6854 $ac_kw foo_t foo () {return 0; }
6855 #endif
6856
6857 _ACEOF
6858 if ac_fn_cxx_try_compile "$LINENO"; then :
6859 ac_cv_c_inline=$ac_kw
6860 fi
6861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6862 test "$ac_cv_c_inline" != no && break
6863 done
6864
6865 fi
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6867 $as_echo "$ac_cv_c_inline" >&6; }
6868
6869 case $ac_cv_c_inline in
6870 inline | yes) ;;
6871 *)
6872 case $ac_cv_c_inline in
6873 no) ac_val=;;
6874 *) ac_val=$ac_cv_c_inline;;
6875 esac
6876 cat >>confdefs.h <<_ACEOF
6877 #ifndef __cplusplus
6878 #define inline $ac_val
6879 #endif
6880 _ACEOF
6881 ;;
6882 esac
6883
6884
6885 # Check whether --enable-largefile was given.
6886 if test "${enable_largefile+set}" = set; then :
6887 enableval=$enable_largefile;
6888 fi
6889
6890 if test "$enable_largefile" != no; then
6891
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6893 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6894 if ${ac_cv_sys_largefile_CC+:} false; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 ac_cv_sys_largefile_CC=no
6898 if test "$GCC" != yes; then
6899 ac_save_CC=$CC
6900 while :; do
6901 # IRIX 6.2 and later do not support large files by default,
6902 # so use the C compiler's -n32 option if that helps.
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6905 #include <sys/types.h>
6906 /* Check that off_t can represent 2**63 - 1 correctly.
6907 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6908 since some C++ compilers masquerading as C compilers
6909 incorrectly reject 9223372036854775807. */
6910 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6911 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6912 && LARGE_OFF_T % 2147483647 == 1)
6913 ? 1 : -1];
6914 int
6915 main ()
6916 {
6917
6918 ;
6919 return 0;
6920 }
6921 _ACEOF
6922 if ac_fn_cxx_try_compile "$LINENO"; then :
6923 break
6924 fi
6925 rm -f core conftest.err conftest.$ac_objext
6926 CC="$CC -n32"
6927 if ac_fn_cxx_try_compile "$LINENO"; then :
6928 ac_cv_sys_largefile_CC=' -n32'; break
6929 fi
6930 rm -f core conftest.err conftest.$ac_objext
6931 break
6932 done
6933 CC=$ac_save_CC
6934 rm -f conftest.$ac_ext
6935 fi
6936 fi
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6938 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6939 if test "$ac_cv_sys_largefile_CC" != no; then
6940 CC=$CC$ac_cv_sys_largefile_CC
6941 fi
6942
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6944 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6945 if ${ac_cv_sys_file_offset_bits+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 while :; do
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6951 #include <sys/types.h>
6952 /* Check that off_t can represent 2**63 - 1 correctly.
6953 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6954 since some C++ compilers masquerading as C compilers
6955 incorrectly reject 9223372036854775807. */
6956 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6957 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6958 && LARGE_OFF_T % 2147483647 == 1)
6959 ? 1 : -1];
6960 int
6961 main ()
6962 {
6963
6964 ;
6965 return 0;
6966 }
6967 _ACEOF
6968 if ac_fn_cxx_try_compile "$LINENO"; then :
6969 ac_cv_sys_file_offset_bits=no; break
6970 fi
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6974 #define _FILE_OFFSET_BITS 64
6975 #include <sys/types.h>
6976 /* Check that off_t can represent 2**63 - 1 correctly.
6977 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6978 since some C++ compilers masquerading as C compilers
6979 incorrectly reject 9223372036854775807. */
6980 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6981 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6982 && LARGE_OFF_T % 2147483647 == 1)
6983 ? 1 : -1];
6984 int
6985 main ()
6986 {
6987
6988 ;
6989 return 0;
6990 }
6991 _ACEOF
6992 if ac_fn_cxx_try_compile "$LINENO"; then :
6993 ac_cv_sys_file_offset_bits=64; break
6994 fi
6995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996 ac_cv_sys_file_offset_bits=unknown
6997 break
6998 done
6999 fi
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7001 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7002 case $ac_cv_sys_file_offset_bits in #(
7003 no | unknown) ;;
7004 *)
7005 cat >>confdefs.h <<_ACEOF
7006 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7007 _ACEOF
7008 ;;
7009 esac
7010 rm -rf conftest*
7011 if test $ac_cv_sys_file_offset_bits = unknown; then
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7013 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7014 if ${ac_cv_sys_large_files+:} false; then :
7015 $as_echo_n "(cached) " >&6
7016 else
7017 while :; do
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7020 #include <sys/types.h>
7021 /* Check that off_t can represent 2**63 - 1 correctly.
7022 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7023 since some C++ compilers masquerading as C compilers
7024 incorrectly reject 9223372036854775807. */
7025 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7026 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7027 && LARGE_OFF_T % 2147483647 == 1)
7028 ? 1 : -1];
7029 int
7030 main ()
7031 {
7032
7033 ;
7034 return 0;
7035 }
7036 _ACEOF
7037 if ac_fn_cxx_try_compile "$LINENO"; then :
7038 ac_cv_sys_large_files=no; break
7039 fi
7040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7043 #define _LARGE_FILES 1
7044 #include <sys/types.h>
7045 /* Check that off_t can represent 2**63 - 1 correctly.
7046 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7047 since some C++ compilers masquerading as C compilers
7048 incorrectly reject 9223372036854775807. */
7049 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7050 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7051 && LARGE_OFF_T % 2147483647 == 1)
7052 ? 1 : -1];
7053 int
7054 main ()
7055 {
7056
7057 ;
7058 return 0;
7059 }
7060 _ACEOF
7061 if ac_fn_cxx_try_compile "$LINENO"; then :
7062 ac_cv_sys_large_files=1; break
7063 fi
7064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065 ac_cv_sys_large_files=unknown
7066 break
7067 done
7068 fi
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7070 $as_echo "$ac_cv_sys_large_files" >&6; }
7071 case $ac_cv_sys_large_files in #(
7072 no | unknown) ;;
7073 *)
7074 cat >>confdefs.h <<_ACEOF
7075 #define _LARGE_FILES $ac_cv_sys_large_files
7076 _ACEOF
7077 ;;
7078 esac
7079 rm -rf conftest*
7080 fi
7081
7082
7083 fi
7084
7085
7086 # sizeof(char) is 1 by definition.
7087 # The cast to long int works around a bug in the HP C Compiler
7088 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7089 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7090 # This bug is HP SR number 8606223364.
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
7092 $as_echo_n "checking size of void *... " >&6; }
7093 if ${ac_cv_sizeof_void_p+:} false; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
7097
7098 else
7099 if test "$ac_cv_type_void_p" = yes; then
7100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7102 as_fn_error 77 "cannot compute sizeof (void *)
7103 See \`config.log' for more details" "$LINENO" 5; }
7104 else
7105 ac_cv_sizeof_void_p=0
7106 fi
7107 fi
7108
7109 fi
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
7111 $as_echo "$ac_cv_sizeof_void_p" >&6; }
7112
7113
7114
7115 cat >>confdefs.h <<_ACEOF
7116 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7117 _ACEOF
7118
7119
7120 # The cast to long int works around a bug in the HP C Compiler
7121 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7122 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7123 # This bug is HP SR number 8606223364.
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7125 $as_echo_n "checking size of short... " >&6; }
7126 if ${ac_cv_sizeof_short+:} false; then :
7127 $as_echo_n "(cached) " >&6
7128 else
7129 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
7130
7131 else
7132 if test "$ac_cv_type_short" = yes; then
7133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7135 as_fn_error 77 "cannot compute sizeof (short)
7136 See \`config.log' for more details" "$LINENO" 5; }
7137 else
7138 ac_cv_sizeof_short=0
7139 fi
7140 fi
7141
7142 fi
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7144 $as_echo "$ac_cv_sizeof_short" >&6; }
7145
7146
7147
7148 cat >>confdefs.h <<_ACEOF
7149 #define SIZEOF_SHORT $ac_cv_sizeof_short
7150 _ACEOF
7151
7152
7153 # The cast to long int works around a bug in the HP C Compiler
7154 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7155 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7156 # This bug is HP SR number 8606223364.
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7158 $as_echo_n "checking size of int... " >&6; }
7159 if ${ac_cv_sizeof_int+:} false; then :
7160 $as_echo_n "(cached) " >&6
7161 else
7162 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
7163
7164 else
7165 if test "$ac_cv_type_int" = yes; then
7166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7168 as_fn_error 77 "cannot compute sizeof (int)
7169 See \`config.log' for more details" "$LINENO" 5; }
7170 else
7171 ac_cv_sizeof_int=0
7172 fi
7173 fi
7174
7175 fi
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7177 $as_echo "$ac_cv_sizeof_int" >&6; }
7178
7179
7180
7181 cat >>confdefs.h <<_ACEOF
7182 #define SIZEOF_INT $ac_cv_sizeof_int
7183 _ACEOF
7184
7185
7186 # The cast to long int works around a bug in the HP C Compiler
7187 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7188 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7189 # This bug is HP SR number 8606223364.
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7191 $as_echo_n "checking size of long... " >&6; }
7192 if ${ac_cv_sizeof_long+:} false; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7196
7197 else
7198 if test "$ac_cv_type_long" = yes; then
7199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7201 as_fn_error 77 "cannot compute sizeof (long)
7202 See \`config.log' for more details" "$LINENO" 5; }
7203 else
7204 ac_cv_sizeof_long=0
7205 fi
7206 fi
7207
7208 fi
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7210 $as_echo "$ac_cv_sizeof_long" >&6; }
7211
7212
7213
7214 cat >>confdefs.h <<_ACEOF
7215 #define SIZEOF_LONG $ac_cv_sizeof_long
7216 _ACEOF
7217
7218
7219 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7220 if test "x$ac_cv_type_long_long" = xyes; then :
7221
7222 cat >>confdefs.h <<_ACEOF
7223 #define HAVE_LONG_LONG 1
7224 _ACEOF
7225
7226 # The cast to long int works around a bug in the HP C Compiler
7227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7229 # This bug is HP SR number 8606223364.
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7231 $as_echo_n "checking size of long long... " >&6; }
7232 if ${ac_cv_sizeof_long_long+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7236
7237 else
7238 if test "$ac_cv_type_long_long" = yes; then
7239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7241 as_fn_error 77 "cannot compute sizeof (long long)
7242 See \`config.log' for more details" "$LINENO" 5; }
7243 else
7244 ac_cv_sizeof_long_long=0
7245 fi
7246 fi
7247
7248 fi
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7250 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7251
7252
7253
7254 cat >>confdefs.h <<_ACEOF
7255 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7256 _ACEOF
7257
7258
7259 fi
7260
7261 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
7262 case $ac_cv_c_int8_t in #(
7263 no|yes) ;; #(
7264 *)
7265
7266 cat >>confdefs.h <<_ACEOF
7267 #define int8_t $ac_cv_c_int8_t
7268 _ACEOF
7269 ;;
7270 esac
7271
7272 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
7273 case $ac_cv_c_int16_t in #(
7274 no|yes) ;; #(
7275 *)
7276
7277 cat >>confdefs.h <<_ACEOF
7278 #define int16_t $ac_cv_c_int16_t
7279 _ACEOF
7280 ;;
7281 esac
7282
7283 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
7284 case $ac_cv_c_int32_t in #(
7285 no|yes) ;; #(
7286 *)
7287
7288 cat >>confdefs.h <<_ACEOF
7289 #define int32_t $ac_cv_c_int32_t
7290 _ACEOF
7291 ;;
7292 esac
7293
7294 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
7295 case $ac_cv_c_int64_t in #(
7296 no|yes) ;; #(
7297 *)
7298
7299 cat >>confdefs.h <<_ACEOF
7300 #define int64_t $ac_cv_c_int64_t
7301 _ACEOF
7302 ;;
7303 esac
7304
7305
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7307 $as_echo_n "checking for unsigned long long int... " >&6; }
7308 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311 ac_cv_type_unsigned_long_long_int=yes
7312 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315
7316 /* For now, do not test the preprocessor; as of 2007 there are too many
7317 implementations with broken preprocessors. Perhaps this can
7318 be revisited in 2012. In the meantime, code should not expect
7319 #if to work with literals wider than 32 bits. */
7320 /* Test literals. */
7321 long long int ll = 9223372036854775807ll;
7322 long long int nll = -9223372036854775807LL;
7323 unsigned long long int ull = 18446744073709551615ULL;
7324 /* Test constant expressions. */
7325 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7326 ? 1 : -1)];
7327 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7328 ? 1 : -1)];
7329 int i = 63;
7330 int
7331 main ()
7332 {
7333 /* Test availability of runtime routines for shift and division. */
7334 long long int llmax = 9223372036854775807ll;
7335 unsigned long long int ullmax = 18446744073709551615ull;
7336 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7337 | (llmax / ll) | (llmax % ll)
7338 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7339 | (ullmax / ull) | (ullmax % ull));
7340 ;
7341 return 0;
7342 }
7343
7344 _ACEOF
7345 if ac_fn_cxx_try_link "$LINENO"; then :
7346
7347 else
7348 ac_cv_type_unsigned_long_long_int=no
7349 fi
7350 rm -f core conftest.err conftest.$ac_objext \
7351 conftest$ac_exeext conftest.$ac_ext
7352 fi
7353 fi
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7355 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7356 if test $ac_cv_type_unsigned_long_long_int = yes; then
7357
7358 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7359
7360 fi
7361
7362
7363
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7365 $as_echo_n "checking for long long int... " >&6; }
7366 if ${ac_cv_type_long_long_int+:} false; then :
7367 $as_echo_n "(cached) " >&6
7368 else
7369 ac_cv_type_long_long_int=yes
7370 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7371 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7372 if test $ac_cv_type_long_long_int = yes; then
7373 if test "$cross_compiling" = yes; then :
7374 :
7375 else
7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h. */
7378 #include <limits.h>
7379 #ifndef LLONG_MAX
7380 # define HALF \
7381 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7382 # define LLONG_MAX (HALF - 1 + HALF)
7383 #endif
7384 int
7385 main ()
7386 {
7387 long long int n = 1;
7388 int i;
7389 for (i = 0; ; i++)
7390 {
7391 long long int m = n << i;
7392 if (m >> i != n)
7393 return 1;
7394 if (LLONG_MAX / 2 < m)
7395 break;
7396 }
7397 return 0;
7398 ;
7399 return 0;
7400 }
7401 _ACEOF
7402 if ac_fn_cxx_try_run "$LINENO"; then :
7403
7404 else
7405 ac_cv_type_long_long_int=no
7406 fi
7407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7408 conftest.$ac_objext conftest.beam conftest.$ac_ext
7409 fi
7410
7411 fi
7412 fi
7413 fi
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7415 $as_echo "$ac_cv_type_long_long_int" >&6; }
7416 if test $ac_cv_type_long_long_int = yes; then
7417
7418 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7419
7420 fi
7421
7422
7423
7424 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
7425 if test "x$ac_cv_type_intmax_t" = xyes; then :
7426
7427 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
7428
7429 else
7430 test $ac_cv_type_long_long_int = yes \
7431 && ac_type='long long int' \
7432 || ac_type='long int'
7433
7434 cat >>confdefs.h <<_ACEOF
7435 #define intmax_t $ac_type
7436 _ACEOF
7437
7438 fi
7439
7440
7441
7442 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
7443 if test "x$ac_cv_type_intptr_t" = xyes; then :
7444
7445 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
7446
7447 else
7448 for ac_type in 'int' 'long int' 'long long int'; do
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7451 $ac_includes_default
7452 int
7453 main ()
7454 {
7455 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
7456 test_array [0] = 0;
7457 return test_array [0];
7458
7459 ;
7460 return 0;
7461 }
7462 _ACEOF
7463 if ac_fn_cxx_try_compile "$LINENO"; then :
7464
7465 cat >>confdefs.h <<_ACEOF
7466 #define intptr_t $ac_type
7467 _ACEOF
7468
7469 ac_type=
7470 fi
7471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472 test -z "$ac_type" && break
7473 done
7474 fi
7475
7476
7477 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
7478 case $ac_cv_c_uint8_t in #(
7479 no|yes) ;; #(
7480 *)
7481
7482 $as_echo "#define _UINT8_T 1" >>confdefs.h
7483
7484
7485 cat >>confdefs.h <<_ACEOF
7486 #define uint8_t $ac_cv_c_uint8_t
7487 _ACEOF
7488 ;;
7489 esac
7490
7491 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
7492 case $ac_cv_c_uint16_t in #(
7493 no|yes) ;; #(
7494 *)
7495
7496
7497 cat >>confdefs.h <<_ACEOF
7498 #define uint16_t $ac_cv_c_uint16_t
7499 _ACEOF
7500 ;;
7501 esac
7502
7503 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
7504 case $ac_cv_c_uint32_t in #(
7505 no|yes) ;; #(
7506 *)
7507
7508 $as_echo "#define _UINT32_T 1" >>confdefs.h
7509
7510
7511 cat >>confdefs.h <<_ACEOF
7512 #define uint32_t $ac_cv_c_uint32_t
7513 _ACEOF
7514 ;;
7515 esac
7516
7517 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
7518 case $ac_cv_c_uint64_t in #(
7519 no|yes) ;; #(
7520 *)
7521
7522 $as_echo "#define _UINT64_T 1" >>confdefs.h
7523
7524
7525 cat >>confdefs.h <<_ACEOF
7526 #define uint64_t $ac_cv_c_uint64_t
7527 _ACEOF
7528 ;;
7529 esac
7530
7531
7532
7533 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
7534 if test "x$ac_cv_type_uintmax_t" = xyes; then :
7535
7536 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7537
7538 else
7539 test $ac_cv_type_unsigned_long_long_int = yes \
7540 && ac_type='unsigned long long int' \
7541 || ac_type='unsigned long int'
7542
7543 cat >>confdefs.h <<_ACEOF
7544 #define uintmax_t $ac_type
7545 _ACEOF
7546
7547 fi
7548
7549
7550
7551 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
7552 if test "x$ac_cv_type_uintptr_t" = xyes; then :
7553
7554 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
7555
7556 else
7557 for ac_type in 'unsigned int' 'unsigned long int' \
7558 'unsigned long long int'; do
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7561 $ac_includes_default
7562 int
7563 main ()
7564 {
7565 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
7566 test_array [0] = 0;
7567 return test_array [0];
7568
7569 ;
7570 return 0;
7571 }
7572 _ACEOF
7573 if ac_fn_cxx_try_compile "$LINENO"; then :
7574
7575 cat >>confdefs.h <<_ACEOF
7576 #define uintptr_t $ac_type
7577 _ACEOF
7578
7579 ac_type=
7580 fi
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582 test -z "$ac_type" && break
7583 done
7584 fi
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
7600 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
7601 fi
7602
7603 # check what underlying integer type int64_t uses
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
7605 $as_echo_n "checking for int64_t underlying type... " >&6; }
7606 if ${ac_cv_int64_t_type+:} false; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609
7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7612
7613 #ifdef HAVE_STDINT_H
7614 #include <stdint.h>
7615 #endif
7616 template <typename T> struct X { };
7617 template <>
7618 struct X<long> { typedef long t; };
7619
7620 int
7621 main ()
7622 {
7623 X<int64_t>::t x;
7624 ;
7625 return 0;
7626 }
7627 _ACEOF
7628 if ac_fn_cxx_try_compile "$LINENO"; then :
7629 ac_cv_int64_t_type=long
7630 else
7631 ac_cv_int64_t_type="long long"
7632 fi
7633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634 fi
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
7636 $as_echo "$ac_cv_int64_t_type" >&6; }
7637 if test "$ac_cv_int64_t_type" = "long"; then
7638
7639 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
7640
7641 else
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7644
7645 #ifdef HAVE_STDINT_H
7646 #include <stdint.h>
7647 #endif
7648 template <typename T> struct X { };
7649 template <>
7650 struct X<long long> { typedef long long t; };
7651
7652 int
7653 main ()
7654 {
7655 X<int64_t>::t x;
7656 ;
7657 return 0;
7658 }
7659 _ACEOF
7660 if ac_fn_cxx_try_compile "$LINENO"; then :
7661
7662 else
7663 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
7664 fi
7665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7666 fi
7667
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7669 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7670 if ${ac_cv_std_swap_in_utility+:} false; then :
7671 $as_echo_n "(cached) " >&6
7672 else
7673
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7676
7677 #include <utility>
7678
7679 int
7680 main ()
7681 {
7682 int a, b; std::swap(a,b);
7683 ;
7684 return 0;
7685 }
7686 _ACEOF
7687 if ac_fn_cxx_try_compile "$LINENO"; then :
7688 ac_cv_std_swap_in_utility=yes
7689 else
7690 ac_cv_std_swap_in_utility=no
7691 fi
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693 fi
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7695 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7696 if test $ac_cv_std_swap_in_utility = yes; then
7697
7698 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7699
7700 fi
7701
7702 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7703 # If the host compiler is affected by the bug, and we build with optimization
7704 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7705 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7706 # Since there is no reliable feature check for the presence of this bug,
7707 # we simply use a GCC version number check. (This should never trigger for
7708 # stages 2 or 3 of a native bootstrap.)
7709 aliasing_flags=
7710 if test "$GCC" = yes; then
7711 saved_CXXFLAGS="$CXXFLAGS"
7712
7713 # The following test compilation will succeed if and only if $CXX accepts
7714 # -fno-strict-aliasing *and* is older than GCC 4.3.
7715 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7717 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7720
7721 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7722 #error compiler not affected by placement new aliasing bug
7723 #endif
7724
7725 _ACEOF
7726 if ac_fn_cxx_try_compile "$LINENO"; then :
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7728 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7729 else
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7732 fi
7733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734
7735 CXXFLAGS="$saved_CXXFLAGS"
7736 fi
7737
7738
7739
7740
7741 # ---------------------
7742 # Warnings and checking
7743 # ---------------------
7744
7745 # Check $CC warning features (if it's GCC).
7746 # We want to use -pedantic, but we don't want warnings about
7747 # * 'long long'
7748 # * variadic macros
7749 # * overlong strings
7750 # * C++11 narrowing conversions in { }
7751 # So, we only use -pedantic if we can disable those warnings.
7752
7753 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7754 # Check whether --enable-build-format-warnings was given.
7755 if test "${enable_build_format_warnings+set}" = set; then :
7756 enableval=$enable_build_format_warnings;
7757 else
7758 enable_build_format_warnings=yes
7759 fi
7760
7761 if test $enable_build_format_warnings = no; then :
7762 wf_opt=-Wno-format
7763 else
7764 wf_opt=
7765 fi
7766 ac_ext=cpp
7767 ac_cpp='$CXXCPP $CPPFLAGS'
7768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7771
7772 loose_warn=
7773 save_CXXFLAGS="$CXXFLAGS"
7774 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
7775 # Do the check with the no- prefix removed since gcc silently
7776 # accepts any -Wno-* option on purpose
7777 case $real_option in
7778 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7779 *) option=$real_option ;;
7780 esac
7781 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7782
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7784 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7785 if eval \${$as_acx_Woption+:} false; then :
7786 $as_echo_n "(cached) " >&6
7787 else
7788 CXXFLAGS="$option"
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7791
7792 int
7793 main ()
7794 {
7795
7796 ;
7797 return 0;
7798 }
7799 _ACEOF
7800 if ac_fn_cxx_try_compile "$LINENO"; then :
7801 eval "$as_acx_Woption=yes"
7802 else
7803 eval "$as_acx_Woption=no"
7804 fi
7805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7806
7807 fi
7808 eval ac_res=\$$as_acx_Woption
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7810 $as_echo "$ac_res" >&6; }
7811 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7812 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7813 fi
7814 done
7815 CXXFLAGS="$save_CXXFLAGS"
7816 ac_ext=cpp
7817 ac_cpp='$CXXCPP $CPPFLAGS'
7818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7821
7822
7823
7824 ac_ext=c
7825 ac_cpp='$CPP $CPPFLAGS'
7826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7829
7830 c_loose_warn=
7831 save_CFLAGS="$CFLAGS"
7832 for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
7833 # Do the check with the no- prefix removed since gcc silently
7834 # accepts any -Wno-* option on purpose
7835 case $real_option in
7836 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7837 *) option=$real_option ;;
7838 esac
7839 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7840
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7842 $as_echo_n "checking whether $CC supports $option... " >&6; }
7843 if eval \${$as_acx_Woption+:} false; then :
7844 $as_echo_n "(cached) " >&6
7845 else
7846 CFLAGS="$option"
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7849
7850 int
7851 main ()
7852 {
7853
7854 ;
7855 return 0;
7856 }
7857 _ACEOF
7858 if ac_fn_c_try_compile "$LINENO"; then :
7859 eval "$as_acx_Woption=yes"
7860 else
7861 eval "$as_acx_Woption=no"
7862 fi
7863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7864
7865 fi
7866 eval ac_res=\$$as_acx_Woption
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7868 $as_echo "$ac_res" >&6; }
7869 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7870 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7871 fi
7872 done
7873 CFLAGS="$save_CFLAGS"
7874 ac_ext=cpp
7875 ac_cpp='$CXXCPP $CPPFLAGS'
7876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7879
7880
7881 ac_ext=cpp
7882 ac_cpp='$CXXCPP $CPPFLAGS'
7883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7886
7887 strict_warn=
7888 save_CXXFLAGS="$CXXFLAGS"
7889 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
7890 # Do the check with the no- prefix removed since gcc silently
7891 # accepts any -Wno-* option on purpose
7892 case $real_option in
7893 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7894 *) option=$real_option ;;
7895 esac
7896 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7897
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7899 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7900 if eval \${$as_acx_Woption+:} false; then :
7901 $as_echo_n "(cached) " >&6
7902 else
7903 CXXFLAGS="$option"
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7906
7907 int
7908 main ()
7909 {
7910
7911 ;
7912 return 0;
7913 }
7914 _ACEOF
7915 if ac_fn_cxx_try_compile "$LINENO"; then :
7916 eval "$as_acx_Woption=yes"
7917 else
7918 eval "$as_acx_Woption=no"
7919 fi
7920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7921
7922 fi
7923 eval ac_res=\$$as_acx_Woption
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7925 $as_echo "$ac_res" >&6; }
7926 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7927 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7928 fi
7929 done
7930 CXXFLAGS="$save_CXXFLAGS"
7931 ac_ext=cpp
7932 ac_cpp='$CXXCPP $CPPFLAGS'
7933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7936
7937
7938 ac_ext=c
7939 ac_cpp='$CPP $CPPFLAGS'
7940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7943
7944 c_strict_warn=
7945 save_CFLAGS="$CFLAGS"
7946 for real_option in -Wold-style-definition -Wc++-compat; do
7947 # Do the check with the no- prefix removed since gcc silently
7948 # accepts any -Wno-* option on purpose
7949 case $real_option in
7950 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7951 *) option=$real_option ;;
7952 esac
7953 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7954
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7956 $as_echo_n "checking whether $CC supports $option... " >&6; }
7957 if eval \${$as_acx_Woption+:} false; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 CFLAGS="$option"
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7963
7964 int
7965 main ()
7966 {
7967
7968 ;
7969 return 0;
7970 }
7971 _ACEOF
7972 if ac_fn_c_try_compile "$LINENO"; then :
7973 eval "$as_acx_Woption=yes"
7974 else
7975 eval "$as_acx_Woption=no"
7976 fi
7977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978
7979 fi
7980 eval ac_res=\$$as_acx_Woption
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7982 $as_echo "$ac_res" >&6; }
7983 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7984 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7985 fi
7986 done
7987 CFLAGS="$save_CFLAGS"
7988 ac_ext=cpp
7989 ac_cpp='$CXXCPP $CPPFLAGS'
7990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7993
7994
7995 ac_ext=cpp
7996 ac_cpp='$CXXCPP $CPPFLAGS'
7997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8000
8001 # Do the check with the no- prefix removed from the warning options
8002 # since gcc silently accepts any -Wno-* option on purpose
8003 if test "$GXX" = yes; then :
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
8005 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
8006 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
8007 $as_echo_n "(cached) " >&6
8008 else
8009 save_CXXFLAGS="$CXXFLAGS"
8010 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8013
8014 int
8015 main ()
8016 {
8017
8018 ;
8019 return 0;
8020 }
8021 _ACEOF
8022 if ac_fn_cxx_try_compile "$LINENO"; then :
8023 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
8024 else
8025 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
8026 fi
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028 CXXFLAGS="$save_CXXFLAGS"
8029 fi
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
8031 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
8032 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
8033 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
8034 fi
8035
8036 fi
8037 ac_ext=cpp
8038 ac_cpp='$CXXCPP $CPPFLAGS'
8039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8042
8043
8044 ac_ext=cpp
8045 ac_cpp='$CXXCPP $CPPFLAGS'
8046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8049
8050 # Check whether --enable-werror-always was given.
8051 if test "${enable_werror_always+set}" = set; then :
8052 enableval=$enable_werror_always;
8053 else
8054 enable_werror_always=no
8055 fi
8056
8057 if test $enable_werror_always = yes; then :
8058 strict_warn="$strict_warn${strict_warn:+ }-Werror"
8059 fi
8060
8061 ac_ext=cpp
8062 ac_cpp='$CXXCPP $CPPFLAGS'
8063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8066
8067
8068
8069 # The above macros do nothing if the compiler is not GCC. However, the
8070 # Makefile has more goo to add other flags, so these variables are used
8071 # to enable warnings only for GCC.
8072 warn_cflags=
8073 warn_cxxflags=
8074 if test "x$GCC" = "xyes"; then
8075 warn_cflags='$(GCC_WARN_CFLAGS)'
8076 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
8077 fi
8078
8079
8080
8081 # Disable exceptions and RTTI if building with g++
8082 ac_ext=c
8083 ac_cpp='$CPP $CPPFLAGS'
8084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8087
8088 noexception_flags=
8089 save_CFLAGS="$CFLAGS"
8090 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
8091 # Do the check with the no- prefix removed since gcc silently
8092 # accepts any -Wno-* option on purpose
8093 case $real_option in
8094 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
8095 *) option=$real_option ;;
8096 esac
8097 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
8098
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
8100 $as_echo_n "checking whether $CC supports $option... " >&6; }
8101 if eval \${$as_acx_Woption+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 CFLAGS="$option"
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8107
8108 int
8109 main ()
8110 {
8111
8112 ;
8113 return 0;
8114 }
8115 _ACEOF
8116 if ac_fn_c_try_compile "$LINENO"; then :
8117 eval "$as_acx_Woption=yes"
8118 else
8119 eval "$as_acx_Woption=no"
8120 fi
8121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122
8123 fi
8124 eval ac_res=\$$as_acx_Woption
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8126 $as_echo "$ac_res" >&6; }
8127 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
8128 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
8129 fi
8130 done
8131 CFLAGS="$save_CFLAGS"
8132 ac_ext=cpp
8133 ac_cpp='$CXXCPP $CPPFLAGS'
8134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8137
8138
8139
8140 # Enable expensive internal checks
8141 is_release=
8142 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
8143 is_release=yes
8144 fi
8145
8146 # Check whether --enable-checking was given.
8147 if test "${enable_checking+set}" = set; then :
8148 enableval=$enable_checking; ac_checking_flags="${enableval}"
8149 else
8150
8151 # Determine the default checks.
8152 if test x$is_release = x ; then
8153 ac_checking_flags=yes,extra
8154 else
8155 ac_checking_flags=release
8156 fi
8157 fi
8158
8159 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
8160 for check in release $ac_checking_flags
8161 do
8162 case $check in
8163 # these set all the flags to specific states
8164 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
8165 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
8166 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
8167 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
8168 ac_tree_checking=1 ; ac_valgrind_checking= ;
8169 ac_types_checking=1 ;;
8170 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
8171 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
8172 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
8173 ac_rtlflag_checking= ; ac_runtime_checking= ;
8174 ac_tree_checking= ; ac_valgrind_checking= ;
8175 ac_types_checking= ;;
8176 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
8177 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
8178 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
8179 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
8180 ac_tree_checking=1 ; ac_valgrind_checking= ;
8181 ac_types_checking=1 ;;
8182 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
8183 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
8184 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
8185 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
8186 ac_tree_checking= ; ac_valgrind_checking= ;
8187 ac_types_checking= ;;
8188 # these enable particular checks
8189 assert) ac_assert_checking=1 ;;
8190 df) ac_df_checking=1 ;;
8191 extra) ac_extra_checking=1 ;;
8192 fold) ac_fold_checking=1 ;;
8193 gc) ac_gc_checking=1 ;;
8194 gcac) ac_gc_always_collect=1 ;;
8195 gimple) ac_gimple_checking=1 ;;
8196 misc) ac_checking=1 ;;
8197 rtl) ac_rtl_checking=1 ;;
8198 rtlflag) ac_rtlflag_checking=1 ;;
8199 runtime) ac_runtime_checking=1 ;;
8200 tree) ac_tree_checking=1 ;;
8201 types) ac_types_checking=1 ;;
8202 valgrind) ac_valgrind_checking=1 ;;
8203 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
8204 esac
8205 done
8206 IFS="$ac_save_IFS"
8207
8208 nocommon_flag=""
8209 if test x$ac_checking != x ; then
8210
8211 $as_echo "#define CHECKING_P 1" >>confdefs.h
8212
8213 nocommon_flag=-fno-common
8214 else
8215 $as_echo "#define CHECKING_P 0" >>confdefs.h
8216
8217 fi
8218
8219 if test x$ac_extra_checking != x ; then
8220
8221 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
8222
8223 else
8224 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
8225
8226 fi
8227 if test x$ac_df_checking != x ; then
8228
8229 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
8230
8231 fi
8232 if test x$ac_assert_checking != x ; then
8233
8234 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
8235
8236 fi
8237 if test x$ac_gimple_checking != x ; then
8238
8239 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
8240
8241 fi
8242
8243 if test x$ac_runtime_checking != x ; then
8244
8245 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
8246
8247 fi
8248 if test x$ac_tree_checking != x ; then
8249
8250 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
8251
8252 TREECHECKING=yes
8253 fi
8254 if test x$ac_types_checking != x ; then
8255
8256 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
8257
8258 fi
8259
8260 if test x$ac_rtl_checking != x ; then
8261
8262 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
8263
8264 fi
8265 if test x$ac_rtlflag_checking != x ; then
8266
8267 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
8268
8269 fi
8270 if test x$ac_gc_checking != x ; then
8271
8272 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
8273
8274 fi
8275 if test x$ac_gc_always_collect != x ; then
8276
8277 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
8278
8279 fi
8280 if test x$ac_fold_checking != x ; then
8281
8282 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
8283
8284 fi
8285 valgrind_path_defines=
8286 valgrind_command=
8287
8288 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
8289 if test "x$ac_cv_header_valgrind_h" = xyes; then :
8290 have_valgrind_h=yes
8291 else
8292 have_valgrind_h=no
8293 fi
8294
8295
8296
8297 # It is certainly possible that there's valgrind but no valgrind.h.
8298 # GCC relies on making annotations so we must have both.
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
8300 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8303 #include <valgrind/memcheck.h>
8304 #ifndef VALGRIND_DISCARD
8305 #error VALGRIND_DISCARD not defined
8306 #endif
8307 _ACEOF
8308 if ac_fn_cxx_try_cpp "$LINENO"; then :
8309 gcc_cv_header_valgrind_memcheck_h=yes
8310 else
8311 gcc_cv_header_valgrind_memcheck_h=no
8312 fi
8313 rm -f conftest.err conftest.i conftest.$ac_ext
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
8315 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
8317 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8320 #include <memcheck.h>
8321 #ifndef VALGRIND_DISCARD
8322 #error VALGRIND_DISCARD not defined
8323 #endif
8324 _ACEOF
8325 if ac_fn_cxx_try_cpp "$LINENO"; then :
8326 gcc_cv_header_memcheck_h=yes
8327 else
8328 gcc_cv_header_memcheck_h=no
8329 fi
8330 rm -f conftest.err conftest.i conftest.$ac_ext
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
8332 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
8333 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
8334
8335 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
8336
8337 fi
8338 if test $gcc_cv_header_memcheck_h = yes; then
8339
8340 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
8341
8342 fi
8343
8344 if test x$ac_valgrind_checking != x ; then
8345
8346 # Prepare PATH_SEPARATOR.
8347 # The user is always right.
8348 if test "${PATH_SEPARATOR+set}" != set; then
8349 echo "#! /bin/sh" >conf$$.sh
8350 echo "exit 0" >>conf$$.sh
8351 chmod +x conf$$.sh
8352 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8353 PATH_SEPARATOR=';'
8354 else
8355 PATH_SEPARATOR=:
8356 fi
8357 rm -f conf$$.sh
8358 fi
8359
8360 # Find out how to test for executable files. Don't use a zero-byte file,
8361 # as systems may use methods other than mode bits to determine executability.
8362 cat >conf$$.file <<_ASEOF
8363 #! /bin/sh
8364 exit 0
8365 _ASEOF
8366 chmod +x conf$$.file
8367 if test -x conf$$.file >/dev/null 2>&1; then
8368 ac_executable_p="test -x"
8369 else
8370 ac_executable_p="test -f"
8371 fi
8372 rm -f conf$$.file
8373
8374 # Extract the first word of "valgrind", so it can be a program name with args.
8375 set dummy valgrind; ac_word=$2
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8377 $as_echo_n "checking for $ac_word... " >&6; }
8378 if ${ac_cv_path_valgrind_path+:} false; then :
8379 $as_echo_n "(cached) " >&6
8380 else
8381 case "$valgrind_path" in
8382 [\\/]* | ?:[\\/]*)
8383 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
8384 ;;
8385 *)
8386 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8387 for ac_dir in $PATH; do
8388 IFS="$ac_save_IFS"
8389 test -z "$ac_dir" && ac_dir=.
8390 for ac_exec_ext in '' $ac_executable_extensions; do
8391 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8392 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
8393 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
8394 break 2
8395 fi
8396 fi
8397 done
8398 done
8399 IFS="$ac_save_IFS"
8400 ;;
8401 esac
8402 fi
8403 valgrind_path="$ac_cv_path_valgrind_path"
8404 if test -n "$valgrind_path"; then
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
8406 $as_echo "$valgrind_path" >&6; }
8407 else
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8410 fi
8411
8412 if test "x$valgrind_path" = "x" \
8413 || (test $have_valgrind_h = no \
8414 && test $gcc_cv_header_memcheck_h = no \
8415 && test $gcc_cv_header_valgrind_memcheck_h = no); then
8416 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
8417 fi
8418 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
8419 valgrind_command="$valgrind_path -q"
8420
8421 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
8422
8423 fi
8424
8425
8426
8427 # Enable code coverage collection
8428 # Check whether --enable-coverage was given.
8429 if test "${enable_coverage+set}" = set; then :
8430 enableval=$enable_coverage; case "${enableval}" in
8431 yes|noopt)
8432 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
8433 ;;
8434 opt)
8435 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
8436 ;;
8437 no)
8438 # a.k.a. --disable-coverage
8439 coverage_flags=""
8440 ;;
8441 *)
8442 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
8443 ;;
8444 esac
8445 else
8446 coverage_flags=""
8447 fi
8448
8449
8450
8451 # Check whether --enable-gather-detailed-mem-stats was given.
8452 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
8453 enableval=$enable_gather_detailed_mem_stats;
8454 else
8455 enable_gather_detailed_mem_stats=no
8456 fi
8457
8458 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
8459
8460 cat >>confdefs.h <<_ACEOF
8461 #define GATHER_STATISTICS $gather_stats
8462 _ACEOF
8463
8464
8465 # Check whether --enable-valgrind-annotations was given.
8466 if test "${enable_valgrind_annotations+set}" = set; then :
8467 enableval=$enable_valgrind_annotations;
8468 else
8469 enable_valgrind_annotations=no
8470 fi
8471
8472 if test x$enable_valgrind_annotations != xno \
8473 || test x$ac_valgrind_checking != x; then
8474 if (test $have_valgrind_h = no \
8475 && test $gcc_cv_header_memcheck_h = no \
8476 && test $gcc_cv_header_valgrind_memcheck_h = no); then
8477 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
8478 fi
8479
8480 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
8481
8482 fi
8483
8484 # -------------------------------
8485 # Miscenalleous configure options
8486 # -------------------------------
8487
8488 # With stabs
8489
8490 # Check whether --with-stabs was given.
8491 if test "${with_stabs+set}" = set; then :
8492 withval=$with_stabs; stabs="$with_stabs"
8493 else
8494 stabs=no
8495 fi
8496
8497
8498 # Determine whether or not multilibs are enabled.
8499 # Check whether --enable-multilib was given.
8500 if test "${enable_multilib+set}" = set; then :
8501 enableval=$enable_multilib;
8502 else
8503 enable_multilib=yes
8504 fi
8505
8506
8507
8508 # Determine whether or not multiarch is enabled.
8509 # Check whether --enable-multiarch was given.
8510 if test "${enable_multiarch+set}" = set; then :
8511 enableval=$enable_multiarch; case "${enableval}" in
8512 yes|no|auto) enable_multiarch=$enableval;;
8513 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
8514 esac
8515 else
8516 enable_multiarch=auto
8517 fi
8518
8519 if test x${enable_multiarch} = xauto; then
8520 if test x${with_native_system_header_dir} != x; then
8521 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
8522 enable_multiarch=no
8523 fi
8524 if test x$host != x$target && test "x$with_sysroot" = x; then
8525 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
8526 enable_multiarch=no
8527 fi
8528 fi
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
8530 $as_echo_n "checking for multiarch configuration... " >&6; }
8531
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
8533 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
8534
8535 # needed for setting the multiarch name for soft-float/hard-float ABIs
8536
8537
8538
8539 # default stack clash protection guard size as power of twos in bytes.
8540 # Please keep these in sync with params.def.
8541 stk_clash_min=12
8542 stk_clash_max=30
8543
8544 # Keep the default value when the option is not used to 0, this allows us to
8545 # distinguish between the cases where the user specifially set a value via
8546 # configure and when the normal default value is used.
8547
8548 # Check whether --with-stack-clash-protection-guard-size was given.
8549 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
8550 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
8551 else
8552 DEFAULT_STK_CLASH_GUARD_SIZE=0
8553 fi
8554
8555 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
8556 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
8557 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
8558 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
8559 fi
8560
8561
8562 cat >>confdefs.h <<_ACEOF
8563 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
8564 _ACEOF
8565
8566
8567 # Enable __cxa_atexit for C++.
8568 # Check whether --enable-__cxa_atexit was given.
8569 if test "${enable___cxa_atexit+set}" = set; then :
8570 enableval=$enable___cxa_atexit;
8571 fi
8572
8573
8574 # Enable C extension for decimal float if target supports it.
8575
8576 # Check whether --enable-decimal-float was given.
8577 if test "${enable_decimal_float+set}" = set; then :
8578 enableval=$enable_decimal_float;
8579 case $enable_decimal_float in
8580 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
8581 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
8582 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
8583 esac
8584
8585 else
8586
8587 case $target in
8588 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
8589 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
8590 i?86*-*-mingw* | x86_64*-*-mingw* | \
8591 i?86*-*-cygwin* | x86_64*-*-cygwin*)
8592 enable_decimal_float=yes
8593 ;;
8594 *)
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
8596 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
8597 enable_decimal_float=no
8598 ;;
8599 esac
8600
8601 fi
8602
8603
8604 # x86's use BID format instead of DPD
8605 case x$enable_decimal_float in
8606 xyes)
8607 case $target in
8608 i?86*-*-* | x86_64*-*-*)
8609 enable_decimal_float=bid
8610 ;;
8611 *)
8612 enable_decimal_float=dpd
8613 ;;
8614 esac
8615 default_decimal_float=$enable_decimal_float
8616 ;;
8617 xno)
8618 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
8619 # dependency on libdecnumber.
8620 default_decimal_float=dpd
8621 ;;
8622 esac
8623
8624
8625
8626
8627 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
8628
8629 cat >>confdefs.h <<_ACEOF
8630 #define ENABLE_DECIMAL_FLOAT $dfp
8631 _ACEOF
8632
8633
8634 # Use default_decimal_float for dependency.
8635 enable_decimal_float=$default_decimal_float
8636
8637 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8638
8639 cat >>confdefs.h <<_ACEOF
8640 #define ENABLE_DECIMAL_BID_FORMAT $bid
8641 _ACEOF
8642
8643
8644 # Enable C extension for fixed-point arithmetic.
8645 # Check whether --enable-fixed-point was given.
8646 if test "${enable_fixed_point+set}" = set; then :
8647 enableval=$enable_fixed_point;
8648 else
8649
8650 case $target in
8651 arm*)
8652 enable_fixed_point=yes
8653 ;;
8654
8655 mips*-*-*)
8656 enable_fixed_point=yes
8657 ;;
8658 *)
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8660 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8661 enable_fixed_point=no
8662 ;;
8663 esac
8664
8665 fi
8666
8667
8668
8669 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8670
8671 cat >>confdefs.h <<_ACEOF
8672 #define ENABLE_FIXED_POINT $fixedpoint
8673 _ACEOF
8674
8675
8676 # Enable threads
8677 # Pass with no value to take the default
8678 # Pass with a value to specify a thread package
8679 # Check whether --enable-threads was given.
8680 if test "${enable_threads+set}" = set; then :
8681 enableval=$enable_threads;
8682 else
8683 enable_threads=''
8684 fi
8685
8686
8687 # Check whether --enable-tls was given.
8688 if test "${enable_tls+set}" = set; then :
8689 enableval=$enable_tls;
8690 case $enable_tls in
8691 yes | no) ;;
8692 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8693 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8694 esac
8695
8696 else
8697 enable_tls=''
8698 fi
8699
8700
8701 # Check whether --enable-vtable-verify was given.
8702 if test "${enable_vtable_verify+set}" = set; then :
8703 enableval=$enable_vtable_verify;
8704 else
8705 enable_vtable_verify=no
8706 fi
8707
8708 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8709
8710 cat >>confdefs.h <<_ACEOF
8711 #define ENABLE_VTABLE_VERIFY $vtable_verify
8712 _ACEOF
8713
8714
8715 # Check whether --enable-analyzer was given.
8716 if test "${enable_analyzer+set}" = set; then :
8717 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8718 analyzer=0
8719 else
8720 analyzer=1
8721 fi
8722 else
8723 analyzer=1
8724 fi
8725
8726
8727 cat >>confdefs.h <<_ACEOF
8728 #define ENABLE_ANALYZER $analyzer
8729 _ACEOF
8730
8731
8732 # Check whether --enable-objc-gc was given.
8733 if test "${enable_objc_gc+set}" = set; then :
8734 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8735 objc_boehm_gc=''
8736 else
8737 objc_boehm_gc=1
8738 fi
8739 else
8740 objc_boehm_gc=''
8741 fi
8742
8743
8744
8745 # Check whether --with-dwarf2 was given.
8746 if test "${with_dwarf2+set}" = set; then :
8747 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8748 else
8749 dwarf2=no
8750 fi
8751
8752
8753 # Check whether --enable-shared was given.
8754 if test "${enable_shared+set}" = set; then :
8755 enableval=$enable_shared;
8756 case $enable_shared in
8757 yes | no) ;;
8758 *)
8759 enable_shared=no
8760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8761 for pkg in $enableval; do
8762 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8763 enable_shared=yes
8764 fi
8765 done
8766 IFS="$ac_save_ifs"
8767 ;;
8768 esac
8769
8770 else
8771 enable_shared=yes
8772 fi
8773
8774
8775
8776 # Check whether --enable-gcov was given.
8777 if test "${enable_gcov+set}" = set; then :
8778 enableval=$enable_gcov;
8779 else
8780 enable_gcov=yes
8781 fi
8782
8783
8784
8785
8786 # Check whether --with-specs was given.
8787 if test "${with_specs+set}" = set; then :
8788 withval=$with_specs; CONFIGURE_SPECS=$withval
8789 else
8790 CONFIGURE_SPECS=
8791
8792 fi
8793
8794
8795
8796
8797
8798 # Check whether --with-pkgversion was given.
8799 if test "${with_pkgversion+set}" = set; then :
8800 withval=$with_pkgversion; case "$withval" in
8801 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8802 no) PKGVERSION= ;;
8803 *) PKGVERSION="($withval) " ;;
8804 esac
8805 else
8806 PKGVERSION="(GCC) "
8807
8808 fi
8809
8810
8811
8812
8813
8814 # Check whether --with-bugurl was given.
8815 if test "${with_bugurl+set}" = set; then :
8816 withval=$with_bugurl; case "$withval" in
8817 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8818 no) BUGURL=
8819 ;;
8820 *) BUGURL="$withval"
8821 ;;
8822 esac
8823 else
8824 BUGURL="https://gcc.gnu.org/bugs/"
8825
8826 fi
8827
8828 case ${BUGURL} in
8829 "")
8830 REPORT_BUGS_TO=
8831 REPORT_BUGS_TEXI=
8832 ;;
8833 *)
8834 REPORT_BUGS_TO="<$BUGURL>"
8835 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8836 ;;
8837 esac;
8838
8839
8840
8841
8842 # Allow overriding the default URL for documentation
8843
8844 # Check whether --with-documentation-root-url was given.
8845 if test "${with_documentation_root_url+set}" = set; then :
8846 withval=$with_documentation_root_url; case "$withval" in
8847 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8848 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8849 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8850 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8851 esac
8852 else
8853 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
8854
8855 fi
8856
8857
8858 cat >>confdefs.h <<_ACEOF
8859 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8860 _ACEOF
8861
8862
8863 # Allow overriding the default URL for GCC changes
8864
8865 # Check whether --with-changes-root-url was given.
8866 if test "${with_changes_root_url+set}" = set; then :
8867 withval=$with_changes_root_url; case "$withval" in
8868 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8869 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8870 */) CHANGES_ROOT_URL="$withval" ;;
8871 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8872 esac
8873 else
8874 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8875
8876 fi
8877
8878
8879 cat >>confdefs.h <<_ACEOF
8880 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8881 _ACEOF
8882
8883
8884 # Sanity check enable_languages in case someone does not run the toplevel
8885 # configure # script.
8886 # Check whether --enable-languages was given.
8887 if test "${enable_languages+set}" = set; then :
8888 enableval=$enable_languages; case ,${enable_languages}, in
8889 ,,|,yes,)
8890 # go safe -- we cannot be much sure without the toplevel
8891 # configure's
8892 # analysis of which target libs are present and usable
8893 enable_languages=c
8894 ;;
8895 *,all,*)
8896 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8897 ;;
8898 *,c,*)
8899 ;;
8900 *)
8901 enable_languages=c,${enable_languages}
8902 ;;
8903 esac
8904 else
8905 enable_languages=c
8906 fi
8907
8908
8909 # If top-level libada has been disabled, then wire in install-gnatlib
8910 # invocation with `make install', so that one can build and install
8911 # the library manually with `make -C gcc all gnatlib gnattools install'.
8912 if test x"$enable_libada" = xno; then
8913 gnat_install_lib=gnat-install-lib
8914 else
8915 gnat_install_lib=
8916 fi
8917
8918
8919 if test x"$enable_as_accelerator_for" != x; then
8920
8921 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8922
8923 enable_as_accelerator=yes
8924 case "${target}" in
8925 *-intelmicemul-*)
8926 # In this case we expect offload compiler to be built as native, so we
8927 # need to rename the driver to avoid clashes with host's drivers.
8928 program_transform_name="s&^&${target}-&" ;;
8929 esac
8930 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8931 program_transform_name=`echo $program_transform_name | sed $sedscript`
8932 accel_dir_suffix=/accel/${target_noncanonical}
8933 real_target_noncanonical=${enable_as_accelerator_for}
8934 fi
8935
8936
8937
8938
8939 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8940 tgt=`echo $tgt | sed 's/=.*//'`
8941
8942 if echo "$tgt" | grep "^hsa" > /dev/null ; then
8943 enable_hsa=1
8944 else
8945 enable_offloading=1
8946 case "$tgt" in
8947 *-intelmic-* | *-intelmicemul-*)
8948 omp_device_property=omp-device-properties-i386
8949 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
8950 ;;
8951 amdgcn*)
8952 omp_device_property=omp-device-properties-gcn
8953 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8954 ;;
8955 nvptx*)
8956 omp_device_property=omp-device-properties-nvptx
8957 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8958 ;;
8959 *)
8960 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8961 ;;
8962 esac
8963 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8964 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8965 fi
8966
8967 if test x"$offload_targets" = x; then
8968 offload_targets=$tgt
8969 else
8970 offload_targets="$offload_targets,$tgt"
8971 fi
8972 done
8973
8974
8975
8976
8977 cat >>confdefs.h <<_ACEOF
8978 #define OFFLOAD_TARGETS "$offload_targets"
8979 _ACEOF
8980
8981 if test x"$enable_offloading" != x; then
8982
8983 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8984
8985 else
8986
8987 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8988
8989 fi
8990
8991 if test x"$enable_hsa" = x1 ; then
8992
8993 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
8994
8995 fi
8996
8997
8998 # Check whether --with-multilib-list was given.
8999 if test "${with_multilib_list+set}" = set; then :
9000 withval=$with_multilib_list; :
9001 else
9002 with_multilib_list=default
9003 fi
9004
9005
9006 # -------------------------
9007 # Checks for other programs
9008 # -------------------------
9009
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9011 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9012 set x ${MAKE-make}
9013 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9014 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9015 $as_echo_n "(cached) " >&6
9016 else
9017 cat >conftest.make <<\_ACEOF
9018 SHELL = /bin/sh
9019 all:
9020 @echo '@@@%%%=$(MAKE)=@@@%%%'
9021 _ACEOF
9022 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9023 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9024 *@@@%%%=?*=@@@%%%*)
9025 eval ac_cv_prog_make_${ac_make}_set=yes;;
9026 *)
9027 eval ac_cv_prog_make_${ac_make}_set=no;;
9028 esac
9029 rm -f conftest.make
9030 fi
9031 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9033 $as_echo "yes" >&6; }
9034 SET_MAKE=
9035 else
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037 $as_echo "no" >&6; }
9038 SET_MAKE="MAKE=${MAKE-make}"
9039 fi
9040
9041
9042 # Find some useful tools
9043 for ac_prog in gawk mawk nawk awk
9044 do
9045 # Extract the first word of "$ac_prog", so it can be a program name with args.
9046 set dummy $ac_prog; ac_word=$2
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9048 $as_echo_n "checking for $ac_word... " >&6; }
9049 if ${ac_cv_prog_AWK+:} false; then :
9050 $as_echo_n "(cached) " >&6
9051 else
9052 if test -n "$AWK"; then
9053 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9054 else
9055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056 for as_dir in $PATH
9057 do
9058 IFS=$as_save_IFS
9059 test -z "$as_dir" && as_dir=.
9060 for ac_exec_ext in '' $ac_executable_extensions; do
9061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9062 ac_cv_prog_AWK="$ac_prog"
9063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9064 break 2
9065 fi
9066 done
9067 done
9068 IFS=$as_save_IFS
9069
9070 fi
9071 fi
9072 AWK=$ac_cv_prog_AWK
9073 if test -n "$AWK"; then
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9075 $as_echo "$AWK" >&6; }
9076 else
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078 $as_echo "no" >&6; }
9079 fi
9080
9081
9082 test -n "$AWK" && break
9083 done
9084
9085 # We need awk to create options.c and options.h.
9086 # Bail out if it's missing.
9087 case ${AWK} in
9088 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
9089 esac
9090
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9092 $as_echo_n "checking whether ln -s works... " >&6; }
9093 if ${gcc_cv_prog_LN_S+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 rm -f conftestdata_t
9097 echo >conftestdata_f
9098 if ln -s conftestdata_f conftestdata_t 2>/dev/null
9099 then
9100 gcc_cv_prog_LN_S="ln -s"
9101 else
9102 if ln conftestdata_f conftestdata_t 2>/dev/null
9103 then
9104 gcc_cv_prog_LN_S=ln
9105 else
9106 if cp -p conftestdata_f conftestdata_t 2>/dev/null
9107 then
9108 gcc_cv_prog_LN_S="cp -p"
9109 else
9110 gcc_cv_prog_LN_S=cp
9111 fi
9112 fi
9113 fi
9114 rm -f conftestdata_f conftestdata_t
9115
9116 fi
9117 LN_S="$gcc_cv_prog_LN_S"
9118 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9120 $as_echo "yes" >&6; }
9121 else
9122 if test "$gcc_cv_prog_LN_S" = "ln"; then
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
9124 $as_echo "no, using ln" >&6; }
9125 else
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
9127 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
9128 fi
9129 fi
9130
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
9132 $as_echo_n "checking whether ln works... " >&6; }
9133 if ${acx_cv_prog_LN+:} false; then :
9134 $as_echo_n "(cached) " >&6
9135 else
9136 rm -f conftestdata_t
9137 echo >conftestdata_f
9138 if ln conftestdata_f conftestdata_t 2>/dev/null
9139 then
9140 acx_cv_prog_LN=ln
9141 else
9142 acx_cv_prog_LN=no
9143 fi
9144 rm -f conftestdata_f conftestdata_t
9145
9146 fi
9147 if test $acx_cv_prog_LN = no; then
9148 LN="$LN_S"
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
9150 $as_echo "no, using $LN" >&6; }
9151 else
9152 LN="$acx_cv_prog_LN"
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9154 $as_echo "yes" >&6; }
9155 fi
9156
9157 if test -n "$ac_tool_prefix"; then
9158 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9159 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9161 $as_echo_n "checking for $ac_word... " >&6; }
9162 if ${ac_cv_prog_RANLIB+:} false; then :
9163 $as_echo_n "(cached) " >&6
9164 else
9165 if test -n "$RANLIB"; then
9166 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9167 else
9168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9169 for as_dir in $PATH
9170 do
9171 IFS=$as_save_IFS
9172 test -z "$as_dir" && as_dir=.
9173 for ac_exec_ext in '' $ac_executable_extensions; do
9174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9175 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9177 break 2
9178 fi
9179 done
9180 done
9181 IFS=$as_save_IFS
9182
9183 fi
9184 fi
9185 RANLIB=$ac_cv_prog_RANLIB
9186 if test -n "$RANLIB"; then
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9188 $as_echo "$RANLIB" >&6; }
9189 else
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9191 $as_echo "no" >&6; }
9192 fi
9193
9194
9195 fi
9196 if test -z "$ac_cv_prog_RANLIB"; then
9197 ac_ct_RANLIB=$RANLIB
9198 # Extract the first word of "ranlib", so it can be a program name with args.
9199 set dummy ranlib; ac_word=$2
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201 $as_echo_n "checking for $ac_word... " >&6; }
9202 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9203 $as_echo_n "(cached) " >&6
9204 else
9205 if test -n "$ac_ct_RANLIB"; then
9206 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9207 else
9208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9209 for as_dir in $PATH
9210 do
9211 IFS=$as_save_IFS
9212 test -z "$as_dir" && as_dir=.
9213 for ac_exec_ext in '' $ac_executable_extensions; do
9214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9215 ac_cv_prog_ac_ct_RANLIB="ranlib"
9216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9217 break 2
9218 fi
9219 done
9220 done
9221 IFS=$as_save_IFS
9222
9223 fi
9224 fi
9225 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9226 if test -n "$ac_ct_RANLIB"; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9228 $as_echo "$ac_ct_RANLIB" >&6; }
9229 else
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9232 fi
9233
9234 if test "x$ac_ct_RANLIB" = x; then
9235 RANLIB=":"
9236 else
9237 case $cross_compiling:$ac_tool_warned in
9238 yes:)
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9241 ac_tool_warned=yes ;;
9242 esac
9243 RANLIB=$ac_ct_RANLIB
9244 fi
9245 else
9246 RANLIB="$ac_cv_prog_RANLIB"
9247 fi
9248
9249 ranlib_flags=""
9250
9251
9252 # Find a good install program. We prefer a C program (faster),
9253 # so one script is as good as another. But avoid the broken or
9254 # incompatible versions:
9255 # SysV /etc/install, /usr/sbin/install
9256 # SunOS /usr/etc/install
9257 # IRIX /sbin/install
9258 # AIX /bin/install
9259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9261 # ./install, which can be erroneously created by make from ./install.sh.
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
9263 $as_echo_n "checking for a BSD compatible install... " >&6; }
9264 if test -z "$INSTALL"; then
9265 if ${ac_cv_path_install+:} false; then :
9266 $as_echo_n "(cached) " >&6
9267 else
9268 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
9269 for ac_dir in $PATH; do
9270 # Account for people who put trailing slashes in PATH elements.
9271 case "$ac_dir/" in
9272 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9273 *)
9274 # OSF1 and SCO ODT 3.0 have their own names for install.
9275 for ac_prog in ginstall scoinst install; do
9276 if test -f $ac_dir/$ac_prog; then
9277 if test $ac_prog = install &&
9278 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9279 # AIX install. It has an incompatible calling convention.
9280 # OSF/1 installbsd also uses dspmsg, but is usable.
9281 :
9282 else
9283 ac_cv_path_install="$ac_dir/$ac_prog -c"
9284 break 2
9285 fi
9286 fi
9287 done
9288 ;;
9289 esac
9290 done
9291 IFS="$ac_save_IFS"
9292
9293 fi
9294 if test "${ac_cv_path_install+set}" = set; then
9295 INSTALL="$ac_cv_path_install"
9296 else
9297 # As a last resort, use the slow shell script. We don't cache a
9298 # path for INSTALL within a source directory, because that will
9299 # break other packages using the cache if that directory is
9300 # removed, or if the path is relative.
9301 INSTALL="$ac_install_sh"
9302 fi
9303 fi
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9305 $as_echo "$INSTALL" >&6; }
9306
9307 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9308 # It thinks the first close brace ends the variable substitution.
9309 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9310
9311 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9312
9313
9314 # See if cmp has --ignore-initial.
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
9316 $as_echo_n "checking for cmp's capabilities... " >&6; }
9317 if ${gcc_cv_prog_cmp_skip+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 echo abfoo >t1
9321 echo cdfoo >t2
9322 gcc_cv_prog_cmp_skip=slowcompare
9323 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
9324 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
9325 :
9326 else
9327 gcc_cv_prog_cmp_skip=gnucompare
9328 fi
9329 fi
9330 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
9331 if cmp t1 t2 2 2 > /dev/null 2>&1; then
9332 if cmp t1 t2 1 1 > /dev/null 2>&1; then
9333 :
9334 else
9335 gcc_cv_prog_cmp_skip=fastcompare
9336 fi
9337 fi
9338 fi
9339 rm t1 t2
9340
9341 fi
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
9343 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
9344 make_compare_target=$gcc_cv_prog_cmp_skip
9345
9346
9347
9348 # See if we have the mktemp command.
9349 # Extract the first word of "mktemp", so it can be a program name with args.
9350 set dummy mktemp; ac_word=$2
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9352 $as_echo_n "checking for $ac_word... " >&6; }
9353 if ${ac_cv_prog_have_mktemp_command+:} false; then :
9354 $as_echo_n "(cached) " >&6
9355 else
9356 if test -n "$have_mktemp_command"; then
9357 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
9358 else
9359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9360 for as_dir in $PATH
9361 do
9362 IFS=$as_save_IFS
9363 test -z "$as_dir" && as_dir=.
9364 for ac_exec_ext in '' $ac_executable_extensions; do
9365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9366 ac_cv_prog_have_mktemp_command="yes"
9367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9368 break 2
9369 fi
9370 done
9371 done
9372 IFS=$as_save_IFS
9373
9374 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
9375 fi
9376 fi
9377 have_mktemp_command=$ac_cv_prog_have_mktemp_command
9378 if test -n "$have_mktemp_command"; then
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
9380 $as_echo "$have_mktemp_command" >&6; }
9381 else
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9383 $as_echo "no" >&6; }
9384 fi
9385
9386
9387
9388 # See if makeinfo has been installed and is modern enough
9389 # that we can use it.
9390
9391 # Extract the first word of "makeinfo", so it can be a program name with args.
9392 set dummy makeinfo; ac_word=$2
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9394 $as_echo_n "checking for $ac_word... " >&6; }
9395 if ${ac_cv_prog_MAKEINFO+:} false; then :
9396 $as_echo_n "(cached) " >&6
9397 else
9398 if test -n "$MAKEINFO"; then
9399 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
9400 else
9401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9402 for as_dir in $PATH
9403 do
9404 IFS=$as_save_IFS
9405 test -z "$as_dir" && as_dir=.
9406 for ac_exec_ext in '' $ac_executable_extensions; do
9407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9408 ac_cv_prog_MAKEINFO="makeinfo"
9409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9410 break 2
9411 fi
9412 done
9413 done
9414 IFS=$as_save_IFS
9415
9416 fi
9417 fi
9418 MAKEINFO=$ac_cv_prog_MAKEINFO
9419 if test -n "$MAKEINFO"; then
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
9421 $as_echo "$MAKEINFO" >&6; }
9422 else
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9424 $as_echo "no" >&6; }
9425 fi
9426
9427
9428 if test -n "$MAKEINFO"; then
9429 # Found it, now check the version.
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
9431 $as_echo_n "checking for modern makeinfo... " >&6; }
9432 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
9436 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
9437
9438 case $ac_prog_version in
9439 '') gcc_cv_prog_makeinfo_modern=no;;
9440 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
9441 *) gcc_cv_prog_makeinfo_modern=no;;
9442 esac
9443
9444 fi
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
9446 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
9447 else
9448 gcc_cv_prog_makeinfo_modern=no
9449 fi
9450 if test $gcc_cv_prog_makeinfo_modern = no; then
9451 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
9452 fi
9453
9454 if test $gcc_cv_prog_makeinfo_modern = no; then
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9456 *** Makeinfo is missing or too old.
9457 *** Info documentation will not be built." >&5
9458 $as_echo "$as_me: WARNING:
9459 *** Makeinfo is missing or too old.
9460 *** Info documentation will not be built." >&2;}
9461 BUILD_INFO=
9462 else
9463 BUILD_INFO=info
9464 fi
9465
9466
9467 # Is pod2man recent enough to regenerate manpages?
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
9469 $as_echo_n "checking for recent Pod::Man... " >&6; }
9470 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9472 $as_echo "yes" >&6; }
9473 GENERATED_MANPAGES=generated-manpages
9474 else
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9476 $as_echo "no" >&6; }
9477 GENERATED_MANPAGES=
9478 fi
9479
9480
9481 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
9482
9483 # How about lex?
9484 for ac_prog in flex
9485 do
9486 # Extract the first word of "$ac_prog", so it can be a program name with args.
9487 set dummy $ac_prog; ac_word=$2
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9489 $as_echo_n "checking for $ac_word... " >&6; }
9490 if ${ac_cv_prog_FLEX+:} false; then :
9491 $as_echo_n "(cached) " >&6
9492 else
9493 if test -n "$FLEX"; then
9494 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
9495 else
9496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9497 for as_dir in $PATH
9498 do
9499 IFS=$as_save_IFS
9500 test -z "$as_dir" && as_dir=.
9501 for ac_exec_ext in '' $ac_executable_extensions; do
9502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9503 ac_cv_prog_FLEX="$ac_prog"
9504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9505 break 2
9506 fi
9507 done
9508 done
9509 IFS=$as_save_IFS
9510
9511 fi
9512 fi
9513 FLEX=$ac_cv_prog_FLEX
9514 if test -n "$FLEX"; then
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
9516 $as_echo "$FLEX" >&6; }
9517 else
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9519 $as_echo "no" >&6; }
9520 fi
9521
9522
9523 test -n "$FLEX" && break
9524 done
9525 test -n "$FLEX" || FLEX="$MISSING flex"
9526
9527
9528 # Bison?
9529 for ac_prog in bison
9530 do
9531 # Extract the first word of "$ac_prog", so it can be a program name with args.
9532 set dummy $ac_prog; ac_word=$2
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9534 $as_echo_n "checking for $ac_word... " >&6; }
9535 if ${ac_cv_prog_BISON+:} false; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 if test -n "$BISON"; then
9539 ac_cv_prog_BISON="$BISON" # Let the user override the test.
9540 else
9541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9542 for as_dir in $PATH
9543 do
9544 IFS=$as_save_IFS
9545 test -z "$as_dir" && as_dir=.
9546 for ac_exec_ext in '' $ac_executable_extensions; do
9547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9548 ac_cv_prog_BISON="$ac_prog"
9549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9550 break 2
9551 fi
9552 done
9553 done
9554 IFS=$as_save_IFS
9555
9556 fi
9557 fi
9558 BISON=$ac_cv_prog_BISON
9559 if test -n "$BISON"; then
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9561 $as_echo "$BISON" >&6; }
9562 else
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 $as_echo "no" >&6; }
9565 fi
9566
9567
9568 test -n "$BISON" && break
9569 done
9570 test -n "$BISON" || BISON="$MISSING bison"
9571
9572
9573 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9574 # check for build == host before using them.
9575
9576 # NM
9577 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
9578 && test -d ../binutils ; then
9579 NM='${objdir}/../binutils/nm-new'
9580 else
9581 # Extract the first word of "nm", so it can be a program name with args.
9582 set dummy nm; ac_word=$2
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9584 $as_echo_n "checking for $ac_word... " >&6; }
9585 if ${ac_cv_prog_NM+:} false; then :
9586 $as_echo_n "(cached) " >&6
9587 else
9588 if test -n "$NM"; then
9589 ac_cv_prog_NM="$NM" # Let the user override the test.
9590 else
9591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9592 for as_dir in $PATH
9593 do
9594 IFS=$as_save_IFS
9595 test -z "$as_dir" && as_dir=.
9596 for ac_exec_ext in '' $ac_executable_extensions; do
9597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9598 ac_cv_prog_NM="nm"
9599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9600 break 2
9601 fi
9602 done
9603 done
9604 IFS=$as_save_IFS
9605
9606 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9607 fi
9608 fi
9609 NM=$ac_cv_prog_NM
9610 if test -n "$NM"; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9612 $as_echo "$NM" >&6; }
9613 else
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615 $as_echo "no" >&6; }
9616 fi
9617
9618
9619 fi
9620
9621 # AR
9622 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
9623 && test -d ../binutils ; then
9624 AR='${objdir}/../binutils/ar'
9625 else
9626 # Extract the first word of "ar", so it can be a program name with args.
9627 set dummy ar; ac_word=$2
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629 $as_echo_n "checking for $ac_word... " >&6; }
9630 if ${ac_cv_prog_AR+:} false; then :
9631 $as_echo_n "(cached) " >&6
9632 else
9633 if test -n "$AR"; then
9634 ac_cv_prog_AR="$AR" # Let the user override the test.
9635 else
9636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637 for as_dir in $PATH
9638 do
9639 IFS=$as_save_IFS
9640 test -z "$as_dir" && as_dir=.
9641 for ac_exec_ext in '' $ac_executable_extensions; do
9642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9643 ac_cv_prog_AR="ar"
9644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9645 break 2
9646 fi
9647 done
9648 done
9649 IFS=$as_save_IFS
9650
9651 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9652 fi
9653 fi
9654 AR=$ac_cv_prog_AR
9655 if test -n "$AR"; then
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9657 $as_echo "$AR" >&6; }
9658 else
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660 $as_echo "no" >&6; }
9661 fi
9662
9663
9664 fi
9665
9666 # The jit documentation looks better if built with sphinx, but can be
9667 # built with texinfo if sphinx is not available.
9668 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9669 # Extract the first word of "sphinx-build", so it can be a program name with args.
9670 set dummy sphinx-build; ac_word=$2
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9672 $as_echo_n "checking for $ac_word... " >&6; }
9673 if ${ac_cv_prog_doc_build_sys+:} false; then :
9674 $as_echo_n "(cached) " >&6
9675 else
9676 if test -n "$doc_build_sys"; then
9677 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9678 else
9679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9680 for as_dir in $PATH
9681 do
9682 IFS=$as_save_IFS
9683 test -z "$as_dir" && as_dir=.
9684 for ac_exec_ext in '' $ac_executable_extensions; do
9685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9686 ac_cv_prog_doc_build_sys="sphinx"
9687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9688 break 2
9689 fi
9690 done
9691 done
9692 IFS=$as_save_IFS
9693
9694 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9695 fi
9696 fi
9697 doc_build_sys=$ac_cv_prog_doc_build_sys
9698 if test -n "$doc_build_sys"; then
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9700 $as_echo "$doc_build_sys" >&6; }
9701 else
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9703 $as_echo "no" >&6; }
9704 fi
9705
9706
9707
9708 # --------------------
9709 # Checks for C headers
9710 # --------------------
9711
9712 # Need to reject headers which give warnings, so that the -Werror bootstrap
9713 # works later. *sigh* This needs to come before all header checks.
9714
9715 ac_c_preproc_warn_flag=yes
9716
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9718 $as_echo_n "checking for ANSI C header files... " >&6; }
9719 if ${ac_cv_header_stdc+:} false; then :
9720 $as_echo_n "(cached) " >&6
9721 else
9722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9723 /* end confdefs.h. */
9724 #include <stdlib.h>
9725 #include <stdarg.h>
9726 #include <string.h>
9727 #include <float.h>
9728
9729 int
9730 main ()
9731 {
9732
9733 ;
9734 return 0;
9735 }
9736 _ACEOF
9737 if ac_fn_cxx_try_compile "$LINENO"; then :
9738 ac_cv_header_stdc=yes
9739 else
9740 ac_cv_header_stdc=no
9741 fi
9742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9743
9744 if test $ac_cv_header_stdc = yes; then
9745 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747 /* end confdefs.h. */
9748 #include <string.h>
9749
9750 _ACEOF
9751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9752 $EGREP "memchr" >/dev/null 2>&1; then :
9753
9754 else
9755 ac_cv_header_stdc=no
9756 fi
9757 rm -f conftest*
9758
9759 fi
9760
9761 if test $ac_cv_header_stdc = yes; then
9762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h. */
9765 #include <stdlib.h>
9766
9767 _ACEOF
9768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9769 $EGREP "free" >/dev/null 2>&1; then :
9770
9771 else
9772 ac_cv_header_stdc=no
9773 fi
9774 rm -f conftest*
9775
9776 fi
9777
9778 if test $ac_cv_header_stdc = yes; then
9779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9780 if test "$cross_compiling" = yes; then :
9781 :
9782 else
9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9785 #include <ctype.h>
9786 #include <stdlib.h>
9787 #if ((' ' & 0x0FF) == 0x020)
9788 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9789 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9790 #else
9791 # define ISLOWER(c) \
9792 (('a' <= (c) && (c) <= 'i') \
9793 || ('j' <= (c) && (c) <= 'r') \
9794 || ('s' <= (c) && (c) <= 'z'))
9795 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9796 #endif
9797
9798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9799 int
9800 main ()
9801 {
9802 int i;
9803 for (i = 0; i < 256; i++)
9804 if (XOR (islower (i), ISLOWER (i))
9805 || toupper (i) != TOUPPER (i))
9806 return 2;
9807 return 0;
9808 }
9809 _ACEOF
9810 if ac_fn_cxx_try_run "$LINENO"; then :
9811
9812 else
9813 ac_cv_header_stdc=no
9814 fi
9815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9816 conftest.$ac_objext conftest.beam conftest.$ac_ext
9817 fi
9818
9819 fi
9820 fi
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9822 $as_echo "$ac_cv_header_stdc" >&6; }
9823 if test $ac_cv_header_stdc = yes; then
9824
9825 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9826
9827 fi
9828
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9830 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9831 if ${ac_cv_header_time+:} false; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9836 #include <sys/types.h>
9837 #include <sys/time.h>
9838 #include <time.h>
9839
9840 int
9841 main ()
9842 {
9843 if ((struct tm *) 0)
9844 return 0;
9845 ;
9846 return 0;
9847 }
9848 _ACEOF
9849 if ac_fn_cxx_try_compile "$LINENO"; then :
9850 ac_cv_header_time=yes
9851 else
9852 ac_cv_header_time=no
9853 fi
9854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9855 fi
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9857 $as_echo "$ac_cv_header_time" >&6; }
9858 if test $ac_cv_header_time = yes; then
9859
9860 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9861
9862 fi
9863
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9865 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9866 if ${gcc_cv_header_string+:} false; then :
9867 $as_echo_n "(cached) " >&6
9868 else
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9871 #include <string.h>
9872 #include <strings.h>
9873 int
9874 main ()
9875 {
9876
9877 ;
9878 return 0;
9879 }
9880 _ACEOF
9881 if ac_fn_cxx_try_compile "$LINENO"; then :
9882 gcc_cv_header_string=yes
9883 else
9884 gcc_cv_header_string=no
9885 fi
9886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9887 fi
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9889 $as_echo "$gcc_cv_header_string" >&6; }
9890 if test $gcc_cv_header_string = yes; then
9891
9892 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9893
9894 fi
9895
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9897 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9898 if ${ac_cv_header_sys_wait_h+:} false; then :
9899 $as_echo_n "(cached) " >&6
9900 else
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h. */
9903 #include <sys/types.h>
9904 #include <sys/wait.h>
9905 #ifndef WEXITSTATUS
9906 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9907 #endif
9908 #ifndef WIFEXITED
9909 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9910 #endif
9911
9912 int
9913 main ()
9914 {
9915 int s;
9916 wait (&s);
9917 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9918 ;
9919 return 0;
9920 }
9921 _ACEOF
9922 if ac_fn_cxx_try_compile "$LINENO"; then :
9923 ac_cv_header_sys_wait_h=yes
9924 else
9925 ac_cv_header_sys_wait_h=no
9926 fi
9927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9928 fi
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9930 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9931 if test $ac_cv_header_sys_wait_h = yes; then
9932
9933 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9934
9935 fi
9936
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9938 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9939 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9940 $as_echo_n "(cached) " >&6
9941 else
9942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h. */
9944 #include <sys/types.h>
9945 #include <termios.h>
9946 #ifdef TIOCGWINSZ
9947 yes
9948 #endif
9949
9950 _ACEOF
9951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9952 $EGREP "yes" >/dev/null 2>&1; then :
9953 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9954 else
9955 ac_cv_sys_tiocgwinsz_in_termios_h=no
9956 fi
9957 rm -f conftest*
9958
9959 fi
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9961 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9962
9963 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9965 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9966 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9967 $as_echo_n "(cached) " >&6
9968 else
9969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9970 /* end confdefs.h. */
9971 #include <sys/types.h>
9972 #include <sys/ioctl.h>
9973 #ifdef TIOCGWINSZ
9974 yes
9975 #endif
9976
9977 _ACEOF
9978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9979 $EGREP "yes" >/dev/null 2>&1; then :
9980 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9981 else
9982 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9983 fi
9984 rm -f conftest*
9985
9986 fi
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9988 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9989
9990 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9991
9992 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9993
9994 fi
9995 fi
9996
9997 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9998 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
9999 sys/resource.h sys/param.h sys/times.h sys/stat.h \
10000 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
10001 do :
10002 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10003 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
10004 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10005 cat >>confdefs.h <<_ACEOF
10006 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10007 _ACEOF
10008
10009 fi
10010 done
10011
10012
10013 # Check for thread headers.
10014 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
10015 if test "x$ac_cv_header_thread_h" = xyes; then :
10016 have_thread_h=yes
10017 else
10018 have_thread_h=
10019 fi
10020
10021 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
10022 if test "x$ac_cv_header_pthread_h" = xyes; then :
10023 have_pthread_h=yes
10024 else
10025 have_pthread_h=
10026 fi
10027
10028
10029 # These tests can't be done till we know if we have limits.h.
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
10031 $as_echo_n "checking for CHAR_BIT... " >&6; }
10032 if ${gcc_cv_decl_char_bit+:} false; then :
10033 $as_echo_n "(cached) " >&6
10034 else
10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h. */
10037 #ifdef HAVE_LIMITS_H
10038 #include <limits.h>
10039 #endif
10040 #ifdef CHAR_BIT
10041 found
10042 #endif
10043 _ACEOF
10044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10045 $EGREP "found" >/dev/null 2>&1; then :
10046 gcc_cv_decl_char_bit=yes
10047 else
10048 gcc_cv_decl_char_bit=no
10049 fi
10050 rm -f conftest*
10051
10052
10053 fi
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
10055 $as_echo "$gcc_cv_decl_char_bit" >&6; }
10056 if test $gcc_cv_decl_char_bit = no; then
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
10058 $as_echo_n "checking number of bits in a byte... " >&6; }
10059 if ${gcc_cv_c_nbby+:} false; then :
10060 $as_echo_n "(cached) " >&6
10061 else
10062 i=8
10063 gcc_cv_c_nbby=
10064 while test $i -lt 65; do
10065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10066 /* end confdefs.h. */
10067
10068 int
10069 main ()
10070 {
10071 switch(0) {
10072 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
10073 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
10074 ; }
10075 ;
10076 return 0;
10077 }
10078 _ACEOF
10079 if ac_fn_cxx_try_compile "$LINENO"; then :
10080 gcc_cv_c_nbby=$i; break
10081 fi
10082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10083 i=`expr $i + 1`
10084 done
10085 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
10086
10087 fi
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
10089 $as_echo "$gcc_cv_c_nbby" >&6; }
10090 if test $gcc_cv_c_nbby = failed; then
10091 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
10092 else
10093
10094 cat >>confdefs.h <<_ACEOF
10095 #define CHAR_BIT $gcc_cv_c_nbby
10096 _ACEOF
10097
10098 fi
10099 fi
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10101 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10102 if ${ac_cv_c_bigendian+:} false; then :
10103 $as_echo_n "(cached) " >&6
10104 else
10105 ac_cv_c_bigendian=unknown
10106 # See if we're dealing with a universal compiler.
10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10109 #ifndef __APPLE_CC__
10110 not a universal capable compiler
10111 #endif
10112 typedef int dummy;
10113
10114 _ACEOF
10115 if ac_fn_cxx_try_compile "$LINENO"; then :
10116
10117 # Check for potential -arch flags. It is not universal unless
10118 # there are at least two -arch flags with different values.
10119 ac_arch=
10120 ac_prev=
10121 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10122 if test -n "$ac_prev"; then
10123 case $ac_word in
10124 i?86 | x86_64 | ppc | ppc64)
10125 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10126 ac_arch=$ac_word
10127 else
10128 ac_cv_c_bigendian=universal
10129 break
10130 fi
10131 ;;
10132 esac
10133 ac_prev=
10134 elif test "x$ac_word" = "x-arch"; then
10135 ac_prev=arch
10136 fi
10137 done
10138 fi
10139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10140 if test $ac_cv_c_bigendian = unknown; then
10141 # See if sys/param.h defines the BYTE_ORDER macro.
10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143 /* end confdefs.h. */
10144 #include <sys/types.h>
10145 #include <sys/param.h>
10146
10147 int
10148 main ()
10149 {
10150 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10151 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10152 && LITTLE_ENDIAN)
10153 bogus endian macros
10154 #endif
10155
10156 ;
10157 return 0;
10158 }
10159 _ACEOF
10160 if ac_fn_cxx_try_compile "$LINENO"; then :
10161 # It does; now see whether it defined to BIG_ENDIAN or not.
10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10164 #include <sys/types.h>
10165 #include <sys/param.h>
10166
10167 int
10168 main ()
10169 {
10170 #if BYTE_ORDER != BIG_ENDIAN
10171 not big endian
10172 #endif
10173
10174 ;
10175 return 0;
10176 }
10177 _ACEOF
10178 if ac_fn_cxx_try_compile "$LINENO"; then :
10179 ac_cv_c_bigendian=yes
10180 else
10181 ac_cv_c_bigendian=no
10182 fi
10183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10184 fi
10185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10186 fi
10187 if test $ac_cv_c_bigendian = unknown; then
10188 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h. */
10191 #include <limits.h>
10192
10193 int
10194 main ()
10195 {
10196 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10197 bogus endian macros
10198 #endif
10199
10200 ;
10201 return 0;
10202 }
10203 _ACEOF
10204 if ac_fn_cxx_try_compile "$LINENO"; then :
10205 # It does; now see whether it defined to _BIG_ENDIAN or not.
10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10208 #include <limits.h>
10209
10210 int
10211 main ()
10212 {
10213 #ifndef _BIG_ENDIAN
10214 not big endian
10215 #endif
10216
10217 ;
10218 return 0;
10219 }
10220 _ACEOF
10221 if ac_fn_cxx_try_compile "$LINENO"; then :
10222 ac_cv_c_bigendian=yes
10223 else
10224 ac_cv_c_bigendian=no
10225 fi
10226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10227 fi
10228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229 fi
10230 if test $ac_cv_c_bigendian = unknown; then
10231 # Compile a test program.
10232 if test "$cross_compiling" = yes; then :
10233 # Try to guess by grepping values from an object file.
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10236 short int ascii_mm[] =
10237 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10238 short int ascii_ii[] =
10239 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10240 int use_ascii (int i) {
10241 return ascii_mm[i] + ascii_ii[i];
10242 }
10243 short int ebcdic_ii[] =
10244 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10245 short int ebcdic_mm[] =
10246 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10247 int use_ebcdic (int i) {
10248 return ebcdic_mm[i] + ebcdic_ii[i];
10249 }
10250 extern int foo;
10251
10252 int
10253 main ()
10254 {
10255 return use_ascii (foo) == use_ebcdic (foo);
10256 ;
10257 return 0;
10258 }
10259 _ACEOF
10260 if ac_fn_cxx_try_compile "$LINENO"; then :
10261 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10262 ac_cv_c_bigendian=yes
10263 fi
10264 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10265 if test "$ac_cv_c_bigendian" = unknown; then
10266 ac_cv_c_bigendian=no
10267 else
10268 # finding both strings is unlikely to happen, but who knows?
10269 ac_cv_c_bigendian=unknown
10270 fi
10271 fi
10272 fi
10273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10274 else
10275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276 /* end confdefs.h. */
10277 $ac_includes_default
10278 int
10279 main ()
10280 {
10281
10282 /* Are we little or big endian? From Harbison&Steele. */
10283 union
10284 {
10285 long int l;
10286 char c[sizeof (long int)];
10287 } u;
10288 u.l = 1;
10289 return u.c[sizeof (long int) - 1] == 1;
10290
10291 ;
10292 return 0;
10293 }
10294 _ACEOF
10295 if ac_fn_cxx_try_run "$LINENO"; then :
10296 ac_cv_c_bigendian=no
10297 else
10298 ac_cv_c_bigendian=yes
10299 fi
10300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10301 conftest.$ac_objext conftest.beam conftest.$ac_ext
10302 fi
10303
10304 fi
10305 fi
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10307 $as_echo "$ac_cv_c_bigendian" >&6; }
10308 case $ac_cv_c_bigendian in #(
10309 yes)
10310 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10311 ;; #(
10312 no)
10313 ;; #(
10314 universal)
10315
10316 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10317
10318 ;; #(
10319 *)
10320 as_fn_error $? "unknown endianness
10321 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10322 esac
10323
10324
10325 # ----------------------
10326 # Checks for C++ headers
10327 # ----------------------
10328
10329 ac_ext=cpp
10330 ac_cpp='$CXXCPP $CPPFLAGS'
10331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10335 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10336 if test -z "$CXXCPP"; then
10337 if ${ac_cv_prog_CXXCPP+:} false; then :
10338 $as_echo_n "(cached) " >&6
10339 else
10340 # Double quotes because CXXCPP needs to be expanded
10341 for CXXCPP in "$CXX -E" "/lib/cpp"
10342 do
10343 ac_preproc_ok=false
10344 for ac_cxx_preproc_warn_flag in '' yes
10345 do
10346 # Use a header file that comes with gcc, so configuring glibc
10347 # with a fresh cross-compiler works.
10348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10349 # <limits.h> exists even on freestanding compilers.
10350 # On the NeXT, cc -E runs the code through the compiler's parser,
10351 # not just through cpp. "Syntax error" is here to catch this case.
10352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353 /* end confdefs.h. */
10354 #ifdef __STDC__
10355 # include <limits.h>
10356 #else
10357 # include <assert.h>
10358 #endif
10359 Syntax error
10360 _ACEOF
10361 if ac_fn_cxx_try_cpp "$LINENO"; then :
10362
10363 else
10364 # Broken: fails on valid input.
10365 continue
10366 fi
10367 rm -f conftest.err conftest.i conftest.$ac_ext
10368
10369 # OK, works on sane cases. Now check whether nonexistent headers
10370 # can be detected and how.
10371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10372 /* end confdefs.h. */
10373 #include <ac_nonexistent.h>
10374 _ACEOF
10375 if ac_fn_cxx_try_cpp "$LINENO"; then :
10376 # Broken: success on invalid input.
10377 continue
10378 else
10379 # Passes both tests.
10380 ac_preproc_ok=:
10381 break
10382 fi
10383 rm -f conftest.err conftest.i conftest.$ac_ext
10384
10385 done
10386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10387 rm -f conftest.i conftest.err conftest.$ac_ext
10388 if $ac_preproc_ok; then :
10389 break
10390 fi
10391
10392 done
10393 ac_cv_prog_CXXCPP=$CXXCPP
10394
10395 fi
10396 CXXCPP=$ac_cv_prog_CXXCPP
10397 else
10398 ac_cv_prog_CXXCPP=$CXXCPP
10399 fi
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10401 $as_echo "$CXXCPP" >&6; }
10402 ac_preproc_ok=false
10403 for ac_cxx_preproc_warn_flag in '' yes
10404 do
10405 # Use a header file that comes with gcc, so configuring glibc
10406 # with a fresh cross-compiler works.
10407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10408 # <limits.h> exists even on freestanding compilers.
10409 # On the NeXT, cc -E runs the code through the compiler's parser,
10410 # not just through cpp. "Syntax error" is here to catch this case.
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10413 #ifdef __STDC__
10414 # include <limits.h>
10415 #else
10416 # include <assert.h>
10417 #endif
10418 Syntax error
10419 _ACEOF
10420 if ac_fn_cxx_try_cpp "$LINENO"; then :
10421
10422 else
10423 # Broken: fails on valid input.
10424 continue
10425 fi
10426 rm -f conftest.err conftest.i conftest.$ac_ext
10427
10428 # OK, works on sane cases. Now check whether nonexistent headers
10429 # can be detected and how.
10430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10431 /* end confdefs.h. */
10432 #include <ac_nonexistent.h>
10433 _ACEOF
10434 if ac_fn_cxx_try_cpp "$LINENO"; then :
10435 # Broken: success on invalid input.
10436 continue
10437 else
10438 # Passes both tests.
10439 ac_preproc_ok=:
10440 break
10441 fi
10442 rm -f conftest.err conftest.i conftest.$ac_ext
10443
10444 done
10445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10446 rm -f conftest.i conftest.err conftest.$ac_ext
10447 if $ac_preproc_ok; then :
10448
10449 else
10450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
10453 See \`config.log' for more details" >&5
10454 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
10455 See \`config.log' for more details" >&2;}; }
10456 fi
10457
10458 ac_ext=cpp
10459 ac_cpp='$CXXCPP $CPPFLAGS'
10460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10463
10464
10465 for ac_header in unordered_map
10466 do :
10467 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
10468 if test "x$ac_cv_header_unordered_map" = xyes; then :
10469 cat >>confdefs.h <<_ACEOF
10470 #define HAVE_UNORDERED_MAP 1
10471 _ACEOF
10472
10473 fi
10474 done
10475
10476 for ac_header in tr1/unordered_map
10477 do :
10478 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
10479 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
10480 cat >>confdefs.h <<_ACEOF
10481 #define HAVE_TR1_UNORDERED_MAP 1
10482 _ACEOF
10483
10484 fi
10485 done
10486
10487 for ac_header in ext/hash_map
10488 do :
10489 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
10490 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
10491 cat >>confdefs.h <<_ACEOF
10492 #define HAVE_EXT_HASH_MAP 1
10493 _ACEOF
10494
10495 fi
10496 done
10497
10498
10499 # --------
10500 # Dependency checking.
10501 # --------
10502
10503 rm -rf .tst 2>/dev/null
10504 mkdir .tst 2>/dev/null
10505 if test -d .tst; then
10506 am__leading_dot=.
10507 else
10508 am__leading_dot=_
10509 fi
10510 rmdir .tst 2>/dev/null
10511
10512 DEPDIR="${am__leading_dot}deps"
10513
10514 ac_config_commands="$ac_config_commands depdir"
10515
10516
10517 ac_config_commands="$ac_config_commands gccdepdir"
10518
10519
10520 depcc="$CXX" am_compiler_list=
10521
10522 am_depcomp=$ac_aux_dir/depcomp
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10524 $as_echo_n "checking dependency style of $depcc... " >&6; }
10525 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 if test -f "$am_depcomp"; then
10529 # We make a subdir and do the tests there. Otherwise we can end up
10530 # making bogus files that we don't know about and never remove. For
10531 # instance it was reported that on HP-UX the gcc test will end up
10532 # making a dummy file named `D' -- because `-MD' means `put the output
10533 # in D'.
10534 mkdir conftest.dir
10535 # Copy depcomp to subdir because otherwise we won't find it if we're
10536 # using a relative directory.
10537 cp "$am_depcomp" conftest.dir
10538 cd conftest.dir
10539 # We will build objects and dependencies in a subdirectory because
10540 # it helps to detect inapplicable dependency modes. For instance
10541 # both Tru64's cc and ICC support -MD to output dependencies as a
10542 # side effect of compilation, but ICC will put the dependencies in
10543 # the current directory while Tru64 will put them in the object
10544 # directory.
10545 mkdir sub
10546
10547 am_cv_CXX_dependencies_compiler_type=none
10548 if test "$am_compiler_list" = ""; then
10549 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10550 fi
10551 for depmode in $am_compiler_list; do
10552 if test $depmode = none; then break; fi
10553
10554 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10555 # Setup a source with many dependencies, because some compilers
10556 # like to wrap large dependency lists on column 80 (with \), and
10557 # we should not choose a depcomp mode which is confused by this.
10558 #
10559 # We need to recreate these files for each test, as the compiler may
10560 # overwrite some of them when testing with obscure command lines.
10561 # This happens at least with the AIX C compiler.
10562 : > sub/conftest.c
10563 for i in 1 2 3 4 5 6; do
10564 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10565 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10566 # Solaris 8's {/usr,}/bin/sh.
10567 touch sub/conftst$i.h
10568 done
10569 echo "include sub/conftest.Po" > confmf
10570
10571 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10572 # mode. It turns out that the SunPro C++ compiler does not properly
10573 # handle `-M -o', and we need to detect this.
10574 depcmd="depmode=$depmode \
10575 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10576 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10577 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10578 echo "| $depcmd" | sed -e 's/ */ /g' >&5
10579 if env $depcmd > conftest.err 2>&1 &&
10580 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
10581 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
10582 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
10583 # icc doesn't choke on unknown options, it will just issue warnings
10584 # or remarks (even with -Werror). So we grep stderr for any message
10585 # that says an option was ignored or not supported.
10586 # When given -MP, icc 7.0 and 7.1 complain thusly:
10587 # icc: Command line warning: ignoring option '-M'; no argument required
10588 # The diagnosis changed in icc 8.0:
10589 # icc: Command line remark: option '-MP' not supported
10590 if (grep 'ignoring option' conftest.err ||
10591 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10592 am_cv_CXX_dependencies_compiler_type=$depmode
10593 $as_echo "$as_me:$LINENO: success" >&5
10594 break
10595 fi
10596 fi
10597 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10598 sed -e 's/^/| /' < conftest.err >&5
10599 done
10600
10601 cd ..
10602 rm -rf conftest.dir
10603 else
10604 am_cv_CXX_dependencies_compiler_type=none
10605 fi
10606
10607 fi
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10609 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10610 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
10611 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
10612 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10613
10614 fi
10615
10616
10617 # --------
10618 # UNSORTED
10619 # --------
10620
10621
10622 # These libraries may be used by collect2.
10623 # We may need a special search path to get them linked.
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10625 $as_echo_n "checking for collect2 libraries... " >&6; }
10626 if ${gcc_cv_collect2_libs+:} false; then :
10627 $as_echo_n "(cached) " >&6
10628 else
10629 save_LIBS="$LIBS"
10630 for libs in '' -lld -lmld \
10631 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10632 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10633 do
10634 LIBS="$libs"
10635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10636 /* end confdefs.h. */
10637
10638 /* Override any GCC internal prototype to avoid an error.
10639 Use char because int might match the return type of a GCC
10640 builtin and then its argument prototype would still apply. */
10641 #ifdef __cplusplus
10642 extern "C"
10643 #endif
10644 char ldopen ();
10645 int
10646 main ()
10647 {
10648 return ldopen ();
10649 ;
10650 return 0;
10651 }
10652 _ACEOF
10653 if ac_fn_cxx_try_link "$LINENO"; then :
10654 gcc_cv_collect2_libs="$libs"; break
10655 fi
10656 rm -f core conftest.err conftest.$ac_objext \
10657 conftest$ac_exeext conftest.$ac_ext
10658 done
10659 LIBS="$save_LIBS"
10660 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10661 fi
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10663 $as_echo "$gcc_cv_collect2_libs" >&6; }
10664 case $gcc_cv_collect2_libs in
10665 "none required") ;;
10666 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10667 esac
10668
10669
10670 # When building Ada code on Alpha, we need exc_resume which is usually in
10671 # -lexc. So test for it.
10672 save_LIBS="$LIBS"
10673 LIBS=
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10675 $as_echo_n "checking for library containing exc_resume... " >&6; }
10676 if ${ac_cv_search_exc_resume+:} false; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 ac_func_search_save_LIBS=$LIBS
10680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681 /* end confdefs.h. */
10682
10683 /* Override any GCC internal prototype to avoid an error.
10684 Use char because int might match the return type of a GCC
10685 builtin and then its argument prototype would still apply. */
10686 #ifdef __cplusplus
10687 extern "C"
10688 #endif
10689 char exc_resume ();
10690 int
10691 main ()
10692 {
10693 return exc_resume ();
10694 ;
10695 return 0;
10696 }
10697 _ACEOF
10698 for ac_lib in '' exc; do
10699 if test -z "$ac_lib"; then
10700 ac_res="none required"
10701 else
10702 ac_res=-l$ac_lib
10703 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10704 fi
10705 if ac_fn_cxx_try_link "$LINENO"; then :
10706 ac_cv_search_exc_resume=$ac_res
10707 fi
10708 rm -f core conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext
10710 if ${ac_cv_search_exc_resume+:} false; then :
10711 break
10712 fi
10713 done
10714 if ${ac_cv_search_exc_resume+:} false; then :
10715
10716 else
10717 ac_cv_search_exc_resume=no
10718 fi
10719 rm conftest.$ac_ext
10720 LIBS=$ac_func_search_save_LIBS
10721 fi
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10723 $as_echo "$ac_cv_search_exc_resume" >&6; }
10724 ac_res=$ac_cv_search_exc_resume
10725 if test "$ac_res" != no; then :
10726 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10727
10728 fi
10729
10730 GNAT_LIBEXC="$LIBS"
10731 LIBS="$save_LIBS"
10732
10733
10734 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10735 save_LIBS="$LIBS"
10736 LIBS=
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10738 $as_echo_n "checking for library containing kstat_open... " >&6; }
10739 if ${ac_cv_search_kstat_open+:} false; then :
10740 $as_echo_n "(cached) " >&6
10741 else
10742 ac_func_search_save_LIBS=$LIBS
10743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10745
10746 /* Override any GCC internal prototype to avoid an error.
10747 Use char because int might match the return type of a GCC
10748 builtin and then its argument prototype would still apply. */
10749 #ifdef __cplusplus
10750 extern "C"
10751 #endif
10752 char kstat_open ();
10753 int
10754 main ()
10755 {
10756 return kstat_open ();
10757 ;
10758 return 0;
10759 }
10760 _ACEOF
10761 for ac_lib in '' kstat; do
10762 if test -z "$ac_lib"; then
10763 ac_res="none required"
10764 else
10765 ac_res=-l$ac_lib
10766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10767 fi
10768 if ac_fn_cxx_try_link "$LINENO"; then :
10769 ac_cv_search_kstat_open=$ac_res
10770 fi
10771 rm -f core conftest.err conftest.$ac_objext \
10772 conftest$ac_exeext
10773 if ${ac_cv_search_kstat_open+:} false; then :
10774 break
10775 fi
10776 done
10777 if ${ac_cv_search_kstat_open+:} false; then :
10778
10779 else
10780 ac_cv_search_kstat_open=no
10781 fi
10782 rm conftest.$ac_ext
10783 LIBS=$ac_func_search_save_LIBS
10784 fi
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10786 $as_echo "$ac_cv_search_kstat_open" >&6; }
10787 ac_res=$ac_cv_search_kstat_open
10788 if test "$ac_res" != no; then :
10789 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10790
10791 fi
10792
10793 EXTRA_GCC_LIBS="$LIBS"
10794 LIBS="$save_LIBS"
10795
10796
10797 # Some systems put ldexp and frexp in libm instead of libc; assume
10798 # they're both in the same place. jcf-dump needs them.
10799 save_LIBS="$LIBS"
10800 LIBS=
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10802 $as_echo_n "checking for library containing ldexp... " >&6; }
10803 if ${ac_cv_search_ldexp+:} false; then :
10804 $as_echo_n "(cached) " >&6
10805 else
10806 ac_func_search_save_LIBS=$LIBS
10807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10808 /* end confdefs.h. */
10809
10810 /* Override any GCC internal prototype to avoid an error.
10811 Use char because int might match the return type of a GCC
10812 builtin and then its argument prototype would still apply. */
10813 #ifdef __cplusplus
10814 extern "C"
10815 #endif
10816 char ldexp ();
10817 int
10818 main ()
10819 {
10820 return ldexp ();
10821 ;
10822 return 0;
10823 }
10824 _ACEOF
10825 for ac_lib in '' m; do
10826 if test -z "$ac_lib"; then
10827 ac_res="none required"
10828 else
10829 ac_res=-l$ac_lib
10830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10831 fi
10832 if ac_fn_cxx_try_link "$LINENO"; then :
10833 ac_cv_search_ldexp=$ac_res
10834 fi
10835 rm -f core conftest.err conftest.$ac_objext \
10836 conftest$ac_exeext
10837 if ${ac_cv_search_ldexp+:} false; then :
10838 break
10839 fi
10840 done
10841 if ${ac_cv_search_ldexp+:} false; then :
10842
10843 else
10844 ac_cv_search_ldexp=no
10845 fi
10846 rm conftest.$ac_ext
10847 LIBS=$ac_func_search_save_LIBS
10848 fi
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10850 $as_echo "$ac_cv_search_ldexp" >&6; }
10851 ac_res=$ac_cv_search_ldexp
10852 if test "$ac_res" != no; then :
10853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10854
10855 fi
10856
10857 LDEXP_LIB="$LIBS"
10858 LIBS="$save_LIBS"
10859
10860
10861 # Some systems need dlopen
10862 save_LIBS="$LIBS"
10863 LIBS=
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10865 $as_echo_n "checking for library containing dlopen... " >&6; }
10866 if ${ac_cv_search_dlopen+:} false; then :
10867 $as_echo_n "(cached) " >&6
10868 else
10869 ac_func_search_save_LIBS=$LIBS
10870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h. */
10872
10873 /* Override any GCC internal prototype to avoid an error.
10874 Use char because int might match the return type of a GCC
10875 builtin and then its argument prototype would still apply. */
10876 #ifdef __cplusplus
10877 extern "C"
10878 #endif
10879 char dlopen ();
10880 int
10881 main ()
10882 {
10883 return dlopen ();
10884 ;
10885 return 0;
10886 }
10887 _ACEOF
10888 for ac_lib in '' dl; do
10889 if test -z "$ac_lib"; then
10890 ac_res="none required"
10891 else
10892 ac_res=-l$ac_lib
10893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10894 fi
10895 if ac_fn_cxx_try_link "$LINENO"; then :
10896 ac_cv_search_dlopen=$ac_res
10897 fi
10898 rm -f core conftest.err conftest.$ac_objext \
10899 conftest$ac_exeext
10900 if ${ac_cv_search_dlopen+:} false; then :
10901 break
10902 fi
10903 done
10904 if ${ac_cv_search_dlopen+:} false; then :
10905
10906 else
10907 ac_cv_search_dlopen=no
10908 fi
10909 rm conftest.$ac_ext
10910 LIBS=$ac_func_search_save_LIBS
10911 fi
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10913 $as_echo "$ac_cv_search_dlopen" >&6; }
10914 ac_res=$ac_cv_search_dlopen
10915 if test "$ac_res" != no; then :
10916 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10917
10918 fi
10919
10920 DL_LIB="$LIBS"
10921 LIBS="$save_LIBS"
10922
10923
10924 # Use <inttypes.h> only if it exists,
10925 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10926 # PRId64
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10928 $as_echo_n "checking for inttypes.h... " >&6; }
10929 if ${gcc_cv_header_inttypes_h+:} false; then :
10930 $as_echo_n "(cached) " >&6
10931 else
10932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10933 /* end confdefs.h. */
10934 #define __STDC_FORMAT_MACROS
10935 #include <sys/types.h>
10936 #include <inttypes.h>
10937 int
10938 main ()
10939 {
10940 intmax_t i = -1;
10941 #ifndef PRId64
10942 choke me
10943 #endif
10944 ;
10945 return 0;
10946 }
10947 _ACEOF
10948 if ac_fn_cxx_try_compile "$LINENO"; then :
10949 gcc_cv_header_inttypes_h=yes
10950 else
10951 gcc_cv_header_inttypes_h=no
10952 fi
10953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10954 fi
10955
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10957 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10958 if test $gcc_cv_header_inttypes_h = yes; then
10959
10960 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10961
10962 fi
10963
10964 # Look for the ZSTD package.
10965 ZSTD_INCLUDE=
10966 ZSTD_LIB=
10967
10968
10969 ZSTD_CPPFLAGS=
10970 ZSTD_LDFLAGS=
10971
10972 # Check whether --with-zstd was given.
10973 if test "${with_zstd+set}" = set; then :
10974 withval=$with_zstd;
10975 fi
10976
10977
10978 # Check whether --with-zstd-include was given.
10979 if test "${with_zstd_include+set}" = set; then :
10980 withval=$with_zstd_include;
10981 fi
10982
10983
10984 # Check whether --with-zstd-lib was given.
10985 if test "${with_zstd_lib+set}" = set; then :
10986 withval=$with_zstd_lib;
10987 fi
10988
10989 case "x$with_zstd" in
10990 x) ;;
10991 xno)
10992 ZSTD_INCLUDE=
10993 ZSTD_LIB=
10994 ;;
10995 *) ZSTD_INCLUDE=$with_zstd/include
10996 ZSTD_LIB=$with_zstd/lib
10997 ;;
10998 esac
10999
11000 if test "x$with_zstd" != xno; then
11001 if test "x$with_zstd_include" != x; then
11002 ZSTD_INCLUDE=$with_zstd_include
11003 fi
11004 if test "x$with_zstd_lib" != x; then
11005 ZSTD_LIB=$with_zstd_lib
11006 fi
11007 if test "x$ZSTD_INCLUDE" != x \
11008 && test "x$ZSTD_INCLUDE" != xno; then
11009 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
11010 fi
11011 if test "x$ZSTD_LIB" != x \
11012 && test "x$ZSTD_LIB" != xno; then
11013 ZSTD_LDFLAGS=-L$ZSTD_LIB
11014 fi
11015
11016 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
11017 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
11018
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
11020 $as_echo_n "checking for zstd.h... " >&6; }
11021 if ${gcc_cv_header_zstd_h+:} false; then :
11022 $as_echo_n "(cached) " >&6
11023 else
11024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025 /* end confdefs.h. */
11026 #include <zstd.h>
11027 int
11028 main ()
11029 {
11030
11031 ;
11032 return 0;
11033 }
11034 _ACEOF
11035 if ac_fn_cxx_try_compile "$LINENO"; then :
11036 gcc_cv_header_zstd_h=yes
11037 else
11038 gcc_cv_header_zstd_h=no
11039 fi
11040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11041 fi
11042
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
11044 $as_echo "$gcc_cv_header_zstd_h" >&6; }
11045 if test $gcc_cv_header_zstd_h = yes; then
11046
11047 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
11048
11049 elif test "x$with_zstd" != x; then
11050 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
11051 fi
11052
11053 # LTO can use zstd compression algorithm
11054 save_LIBS="$LIBS"
11055 LIBS=
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
11057 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
11058 if ${ac_cv_search_ZSTD_compress+:} false; then :
11059 $as_echo_n "(cached) " >&6
11060 else
11061 ac_func_search_save_LIBS=$LIBS
11062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063 /* end confdefs.h. */
11064
11065 /* Override any GCC internal prototype to avoid an error.
11066 Use char because int might match the return type of a GCC
11067 builtin and then its argument prototype would still apply. */
11068 #ifdef __cplusplus
11069 extern "C"
11070 #endif
11071 char ZSTD_compress ();
11072 int
11073 main ()
11074 {
11075 return ZSTD_compress ();
11076 ;
11077 return 0;
11078 }
11079 _ACEOF
11080 for ac_lib in '' zstd; do
11081 if test -z "$ac_lib"; then
11082 ac_res="none required"
11083 else
11084 ac_res=-l$ac_lib
11085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11086 fi
11087 if ac_fn_cxx_try_link "$LINENO"; then :
11088 ac_cv_search_ZSTD_compress=$ac_res
11089 fi
11090 rm -f core conftest.err conftest.$ac_objext \
11091 conftest$ac_exeext
11092 if ${ac_cv_search_ZSTD_compress+:} false; then :
11093 break
11094 fi
11095 done
11096 if ${ac_cv_search_ZSTD_compress+:} false; then :
11097
11098 else
11099 ac_cv_search_ZSTD_compress=no
11100 fi
11101 rm conftest.$ac_ext
11102 LIBS=$ac_func_search_save_LIBS
11103 fi
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
11105 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
11106 ac_res=$ac_cv_search_ZSTD_compress
11107 if test "$ac_res" != no; then :
11108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11109
11110 fi
11111
11112 ZSTD_LIB="$LIBS"
11113 LIBS="$save_LIBS"
11114
11115 fi
11116
11117
11118
11119 for ac_func in times clock kill getrlimit setrlimit atoq \
11120 popen sysconf strsignal getrusage nl_langinfo \
11121 gettimeofday mbstowcs wcswidth mmap setlocale \
11122 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
11123 do :
11124 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11125 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11126 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11127 cat >>confdefs.h <<_ACEOF
11128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11129 _ACEOF
11130
11131 fi
11132 done
11133
11134
11135 if test x$ac_cv_func_mbstowcs = xyes; then
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
11137 $as_echo_n "checking whether mbstowcs works... " >&6; }
11138 if ${gcc_cv_func_mbstowcs_works+:} false; then :
11139 $as_echo_n "(cached) " >&6
11140 else
11141 if test "$cross_compiling" = yes; then :
11142 gcc_cv_func_mbstowcs_works=yes
11143 else
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11146 #include <stdlib.h>
11147 int main()
11148 {
11149 mbstowcs(0, "", 0);
11150 return 0;
11151 }
11152 _ACEOF
11153 if ac_fn_cxx_try_run "$LINENO"; then :
11154 gcc_cv_func_mbstowcs_works=yes
11155 else
11156 gcc_cv_func_mbstowcs_works=no
11157 fi
11158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11159 conftest.$ac_objext conftest.beam conftest.$ac_ext
11160 fi
11161
11162 fi
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
11164 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
11165 if test x$gcc_cv_func_mbstowcs_works = xyes; then
11166
11167 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
11168
11169 fi
11170 fi
11171
11172 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
11173 if test "x$ac_cv_type_ssize_t" = xyes; then :
11174
11175 else
11176
11177 cat >>confdefs.h <<_ACEOF
11178 #define ssize_t int
11179 _ACEOF
11180
11181 fi
11182
11183 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
11184 if test "x$ac_cv_type_caddr_t" = xyes; then :
11185
11186 else
11187
11188 cat >>confdefs.h <<_ACEOF
11189 #define caddr_t char *
11190 _ACEOF
11191
11192 fi
11193
11194
11195
11196 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
11197 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
11198 gcc_header_sys_mman_h=yes
11199 else
11200 gcc_header_sys_mman_h=no
11201 fi
11202
11203 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11204 if test "x$ac_cv_func_mmap" = xyes; then :
11205 gcc_func_mmap=yes
11206 else
11207 gcc_func_mmap=no
11208 fi
11209
11210 if test "$gcc_header_sys_mman_h" != yes \
11211 || test "$gcc_func_mmap" != yes; then
11212 gcc_cv_func_mmap_file=no
11213 gcc_cv_func_mmap_dev_zero=no
11214 gcc_cv_func_mmap_anon=no
11215 else
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11217 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11218 if ${gcc_cv_func_mmap_file+:} false; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 # Add a system to this blacklist if
11222 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11223 # memory area containing the same data that you'd get if you applied
11224 # read() to the same fd. The only system known to have a problem here
11225 # is VMS, where text files have record structure.
11226 case "$host_os" in
11227 *vms* | ultrix*)
11228 gcc_cv_func_mmap_file=no ;;
11229 *)
11230 gcc_cv_func_mmap_file=yes;;
11231 esac
11232 fi
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
11234 $as_echo "$gcc_cv_func_mmap_file" >&6; }
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11236 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
11237 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
11238 $as_echo_n "(cached) " >&6
11239 else
11240 # Add a system to this blacklist if it has mmap() but /dev/zero
11241 # does not exist, or if mmapping /dev/zero does not give anonymous
11242 # zeroed pages with both the following properties:
11243 # 1. If you map N consecutive pages in with one call, and then
11244 # unmap any subset of those pages, the pages that were not
11245 # explicitly unmapped remain accessible.
11246 # 2. If you map two adjacent blocks of memory and then unmap them
11247 # both at once, they must both go away.
11248 # Systems known to be in this category are Windows (all variants),
11249 # VMS, and Darwin.
11250 case "$host_os" in
11251 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
11252 gcc_cv_func_mmap_dev_zero=no ;;
11253 *)
11254 gcc_cv_func_mmap_dev_zero=yes;;
11255 esac
11256 fi
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
11258 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
11259
11260 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
11262 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
11263 if ${gcc_cv_decl_map_anon+:} false; then :
11264 $as_echo_n "(cached) " >&6
11265 else
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11268 #include <sys/types.h>
11269 #include <sys/mman.h>
11270 #include <unistd.h>
11271
11272 #ifndef MAP_ANONYMOUS
11273 #define MAP_ANONYMOUS MAP_ANON
11274 #endif
11275
11276 int
11277 main ()
11278 {
11279 int n = MAP_ANONYMOUS;
11280 ;
11281 return 0;
11282 }
11283 _ACEOF
11284 if ac_fn_cxx_try_compile "$LINENO"; then :
11285 gcc_cv_decl_map_anon=yes
11286 else
11287 gcc_cv_decl_map_anon=no
11288 fi
11289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11290 fi
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
11292 $as_echo "$gcc_cv_decl_map_anon" >&6; }
11293
11294 if test $gcc_cv_decl_map_anon = no; then
11295 gcc_cv_func_mmap_anon=no
11296 else
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11298 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
11299 if ${gcc_cv_func_mmap_anon+:} false; then :
11300 $as_echo_n "(cached) " >&6
11301 else
11302 # Add a system to this blacklist if it has mmap() and MAP_ANON or
11303 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11304 # doesn't give anonymous zeroed pages with the same properties listed
11305 # above for use of /dev/zero.
11306 # Systems known to be in this category are Windows, VMS, and SCO Unix.
11307 case "$host_os" in
11308 *vms* | cygwin* | pe | mingw* | sco* | udk* )
11309 gcc_cv_func_mmap_anon=no ;;
11310 *)
11311 gcc_cv_func_mmap_anon=yes;;
11312 esac
11313 fi
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
11315 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
11316 fi
11317 fi
11318
11319 if test $gcc_cv_func_mmap_file = yes; then
11320
11321 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
11322
11323 fi
11324 if test $gcc_cv_func_mmap_dev_zero = yes; then
11325
11326 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
11327
11328 fi
11329 if test $gcc_cv_func_mmap_anon = yes; then
11330
11331 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11332
11333 fi
11334
11335
11336 case "${host}" in
11337 *-*-*vms*)
11338 # Under VMS, vfork works very differently than on Unix. The standard test
11339 # won't work, and it isn't easily adaptable. It makes more sense to
11340 # just force it.
11341 ac_cv_func_vfork_works=yes
11342 ;;
11343 esac
11344 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11345 if test "x$ac_cv_type_pid_t" = xyes; then :
11346
11347 else
11348
11349 cat >>confdefs.h <<_ACEOF
11350 #define pid_t int
11351 _ACEOF
11352
11353 fi
11354
11355 for ac_header in vfork.h
11356 do :
11357 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
11358 if test "x$ac_cv_header_vfork_h" = xyes; then :
11359 cat >>confdefs.h <<_ACEOF
11360 #define HAVE_VFORK_H 1
11361 _ACEOF
11362
11363 fi
11364 done
11365
11366 for ac_func in fork vfork
11367 do :
11368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11369 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11370 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11371 cat >>confdefs.h <<_ACEOF
11372 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11373 _ACEOF
11374
11375 fi
11376 done
11377
11378 if test "x$ac_cv_func_fork" = xyes; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11380 $as_echo_n "checking for working fork... " >&6; }
11381 if ${ac_cv_func_fork_works+:} false; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 if test "$cross_compiling" = yes; then :
11385 ac_cv_func_fork_works=cross
11386 else
11387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11388 /* end confdefs.h. */
11389 $ac_includes_default
11390 int
11391 main ()
11392 {
11393
11394 /* By Ruediger Kuhlmann. */
11395 return fork () < 0;
11396
11397 ;
11398 return 0;
11399 }
11400 _ACEOF
11401 if ac_fn_cxx_try_run "$LINENO"; then :
11402 ac_cv_func_fork_works=yes
11403 else
11404 ac_cv_func_fork_works=no
11405 fi
11406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11407 conftest.$ac_objext conftest.beam conftest.$ac_ext
11408 fi
11409
11410 fi
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11412 $as_echo "$ac_cv_func_fork_works" >&6; }
11413
11414 else
11415 ac_cv_func_fork_works=$ac_cv_func_fork
11416 fi
11417 if test "x$ac_cv_func_fork_works" = xcross; then
11418 case $host in
11419 *-*-amigaos* | *-*-msdosdjgpp*)
11420 # Override, as these systems have only a dummy fork() stub
11421 ac_cv_func_fork_works=no
11422 ;;
11423 *)
11424 ac_cv_func_fork_works=yes
11425 ;;
11426 esac
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11428 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11429 fi
11430 ac_cv_func_vfork_works=$ac_cv_func_vfork
11431 if test "x$ac_cv_func_vfork" = xyes; then
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11433 $as_echo_n "checking for working vfork... " >&6; }
11434 if ${ac_cv_func_vfork_works+:} false; then :
11435 $as_echo_n "(cached) " >&6
11436 else
11437 if test "$cross_compiling" = yes; then :
11438 ac_cv_func_vfork_works=cross
11439 else
11440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11441 /* end confdefs.h. */
11442 /* Thanks to Paul Eggert for this test. */
11443 $ac_includes_default
11444 #include <sys/wait.h>
11445 #ifdef HAVE_VFORK_H
11446 # include <vfork.h>
11447 #endif
11448 /* On some sparc systems, changes by the child to local and incoming
11449 argument registers are propagated back to the parent. The compiler
11450 is told about this with #include <vfork.h>, but some compilers
11451 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11452 static variable whose address is put into a register that is
11453 clobbered by the vfork. */
11454 static void
11455 #ifdef __cplusplus
11456 sparc_address_test (int arg)
11457 # else
11458 sparc_address_test (arg) int arg;
11459 #endif
11460 {
11461 static pid_t child;
11462 if (!child) {
11463 child = vfork ();
11464 if (child < 0) {
11465 perror ("vfork");
11466 _exit(2);
11467 }
11468 if (!child) {
11469 arg = getpid();
11470 write(-1, "", 0);
11471 _exit (arg);
11472 }
11473 }
11474 }
11475
11476 int
11477 main ()
11478 {
11479 pid_t parent = getpid ();
11480 pid_t child;
11481
11482 sparc_address_test (0);
11483
11484 child = vfork ();
11485
11486 if (child == 0) {
11487 /* Here is another test for sparc vfork register problems. This
11488 test uses lots of local variables, at least as many local
11489 variables as main has allocated so far including compiler
11490 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11491 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11492 reuse the register of parent for one of the local variables,
11493 since it will think that parent can't possibly be used any more
11494 in this routine. Assigning to the local variable will thus
11495 munge parent in the parent process. */
11496 pid_t
11497 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11498 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11499 /* Convince the compiler that p..p7 are live; otherwise, it might
11500 use the same hardware register for all 8 local variables. */
11501 if (p != p1 || p != p2 || p != p3 || p != p4
11502 || p != p5 || p != p6 || p != p7)
11503 _exit(1);
11504
11505 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11506 from child file descriptors. If the child closes a descriptor
11507 before it execs or exits, this munges the parent's descriptor
11508 as well. Test for this by closing stdout in the child. */
11509 _exit(close(fileno(stdout)) != 0);
11510 } else {
11511 int status;
11512 struct stat st;
11513
11514 while (wait(&status) != child)
11515 ;
11516 return (
11517 /* Was there some problem with vforking? */
11518 child < 0
11519
11520 /* Did the child fail? (This shouldn't happen.) */
11521 || status
11522
11523 /* Did the vfork/compiler bug occur? */
11524 || parent != getpid()
11525
11526 /* Did the file descriptor bug occur? */
11527 || fstat(fileno(stdout), &st) != 0
11528 );
11529 }
11530 }
11531 _ACEOF
11532 if ac_fn_cxx_try_run "$LINENO"; then :
11533 ac_cv_func_vfork_works=yes
11534 else
11535 ac_cv_func_vfork_works=no
11536 fi
11537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11538 conftest.$ac_objext conftest.beam conftest.$ac_ext
11539 fi
11540
11541 fi
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11543 $as_echo "$ac_cv_func_vfork_works" >&6; }
11544
11545 fi;
11546 if test "x$ac_cv_func_fork_works" = xcross; then
11547 ac_cv_func_vfork_works=$ac_cv_func_vfork
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11549 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11550 fi
11551
11552 if test "x$ac_cv_func_vfork_works" = xyes; then
11553
11554 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11555
11556 else
11557
11558 $as_echo "#define vfork fork" >>confdefs.h
11559
11560 fi
11561 if test "x$ac_cv_func_fork_works" = xyes; then
11562
11563 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11564
11565 fi
11566
11567
11568
11569 if test "X$prefix" = "XNONE"; then
11570 acl_final_prefix="$ac_default_prefix"
11571 else
11572 acl_final_prefix="$prefix"
11573 fi
11574 if test "X$exec_prefix" = "XNONE"; then
11575 acl_final_exec_prefix='${prefix}'
11576 else
11577 acl_final_exec_prefix="$exec_prefix"
11578 fi
11579 acl_save_prefix="$prefix"
11580 prefix="$acl_final_prefix"
11581 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11582 prefix="$acl_save_prefix"
11583
11584
11585 # Check whether --with-gnu-ld was given.
11586 if test "${with_gnu_ld+set}" = set; then :
11587 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11588 else
11589 with_gnu_ld=no
11590 fi
11591
11592 # Prepare PATH_SEPARATOR.
11593 # The user is always right.
11594 if test "${PATH_SEPARATOR+set}" != set; then
11595 echo "#! /bin/sh" >conf$$.sh
11596 echo "exit 0" >>conf$$.sh
11597 chmod +x conf$$.sh
11598 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11599 PATH_SEPARATOR=';'
11600 else
11601 PATH_SEPARATOR=:
11602 fi
11603 rm -f conf$$.sh
11604 fi
11605 ac_prog=ld
11606 if test "$GCC" = yes; then
11607 # Check if gcc -print-prog-name=ld gives a path.
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11609 $as_echo_n "checking for ld used by GCC... " >&6; }
11610 case $host in
11611 *-*-mingw*)
11612 # gcc leaves a trailing carriage return which upsets mingw
11613 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11614 *)
11615 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11616 esac
11617 case $ac_prog in
11618 # Accept absolute paths.
11619 [\\/]* | [A-Za-z]:[\\/]*)
11620 re_direlt='/[^/][^/]*/\.\./'
11621 # Canonicalize the path of ld
11622 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11623 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11624 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11625 done
11626 test -z "$LD" && LD="$ac_prog"
11627 ;;
11628 "")
11629 # If it fails, then pretend we aren't using GCC.
11630 ac_prog=ld
11631 ;;
11632 *)
11633 # If it is relative, then search for the first ld in PATH.
11634 with_gnu_ld=unknown
11635 ;;
11636 esac
11637 elif test "$with_gnu_ld" = yes; then
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11639 $as_echo_n "checking for GNU ld... " >&6; }
11640 else
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11642 $as_echo_n "checking for non-GNU ld... " >&6; }
11643 fi
11644 if ${acl_cv_path_LD+:} false; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647 if test -z "$LD"; then
11648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11649 for ac_dir in $PATH; do
11650 test -z "$ac_dir" && ac_dir=.
11651 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11652 acl_cv_path_LD="$ac_dir/$ac_prog"
11653 # Check to see if the program is GNU ld. I'd rather use --version,
11654 # but apparently some GNU ld's only accept -v.
11655 # Break only if it was the GNU/non-GNU ld that we prefer.
11656 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11657 test "$with_gnu_ld" != no && break
11658 else
11659 test "$with_gnu_ld" != yes && break
11660 fi
11661 fi
11662 done
11663 IFS="$ac_save_ifs"
11664 else
11665 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11666 fi
11667 fi
11668
11669 LD="$acl_cv_path_LD"
11670 if test -n "$LD"; then
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11672 $as_echo "$LD" >&6; }
11673 else
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675 $as_echo "no" >&6; }
11676 fi
11677 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11679 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11680 if ${acl_cv_prog_gnu_ld+:} false; then :
11681 $as_echo_n "(cached) " >&6
11682 else
11683 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11684 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11685 acl_cv_prog_gnu_ld=yes
11686 else
11687 acl_cv_prog_gnu_ld=no
11688 fi
11689 fi
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11691 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11692 with_gnu_ld=$acl_cv_prog_gnu_ld
11693
11694
11695
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11697 $as_echo_n "checking for shared library run path origin... " >&6; }
11698 if ${acl_cv_rpath+:} false; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701
11702 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11703 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11704 . ./conftest.sh
11705 rm -f ./conftest.sh
11706 acl_cv_rpath=done
11707
11708 fi
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11710 $as_echo "$acl_cv_rpath" >&6; }
11711 wl="$acl_cv_wl"
11712 libext="$acl_cv_libext"
11713 shlibext="$acl_cv_shlibext"
11714 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11715 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11716 hardcode_direct="$acl_cv_hardcode_direct"
11717 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11718 # Check whether --enable-rpath was given.
11719 if test "${enable_rpath+set}" = set; then :
11720 enableval=$enable_rpath; :
11721 else
11722 enable_rpath=yes
11723 fi
11724
11725
11726
11727
11728
11729
11730
11731
11732 use_additional=yes
11733
11734 acl_save_prefix="$prefix"
11735 prefix="$acl_final_prefix"
11736 acl_save_exec_prefix="$exec_prefix"
11737 exec_prefix="$acl_final_exec_prefix"
11738
11739 eval additional_includedir=\"$includedir\"
11740 eval additional_libdir=\"$libdir\"
11741
11742 exec_prefix="$acl_save_exec_prefix"
11743 prefix="$acl_save_prefix"
11744
11745
11746 # Check whether --with-libiconv-prefix was given.
11747 if test "${with_libiconv_prefix+set}" = set; then :
11748 withval=$with_libiconv_prefix;
11749 if test "X$withval" = "Xno"; then
11750 use_additional=no
11751 else
11752 if test "X$withval" = "X"; then
11753
11754 acl_save_prefix="$prefix"
11755 prefix="$acl_final_prefix"
11756 acl_save_exec_prefix="$exec_prefix"
11757 exec_prefix="$acl_final_exec_prefix"
11758
11759 eval additional_includedir=\"$includedir\"
11760 eval additional_libdir=\"$libdir\"
11761
11762 exec_prefix="$acl_save_exec_prefix"
11763 prefix="$acl_save_prefix"
11764
11765 else
11766 additional_includedir="$withval/include"
11767 additional_libdir="$withval/lib"
11768 fi
11769 fi
11770
11771 fi
11772
11773
11774 # Check whether --with-libiconv-type was given.
11775 if test "${with_libiconv_type+set}" = set; then :
11776 withval=$with_libiconv_type; with_libiconv_type=$withval
11777 else
11778 with_libiconv_type=auto
11779 fi
11780
11781 lib_type=`eval echo \$with_libiconv_type`
11782
11783 LIBICONV=
11784 LTLIBICONV=
11785 INCICONV=
11786 rpathdirs=
11787 ltrpathdirs=
11788 names_already_handled=
11789 names_next_round='iconv '
11790 while test -n "$names_next_round"; do
11791 names_this_round="$names_next_round"
11792 names_next_round=
11793 for name in $names_this_round; do
11794 already_handled=
11795 for n in $names_already_handled; do
11796 if test "$n" = "$name"; then
11797 already_handled=yes
11798 break
11799 fi
11800 done
11801 if test -z "$already_handled"; then
11802 names_already_handled="$names_already_handled $name"
11803 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11804 eval value=\"\$HAVE_LIB$uppername\"
11805 if test -n "$value"; then
11806 if test "$value" = yes; then
11807 eval value=\"\$LIB$uppername\"
11808 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11809 eval value=\"\$LTLIB$uppername\"
11810 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11811 else
11812 :
11813 fi
11814 else
11815 found_dir=
11816 found_la=
11817 found_so=
11818 found_a=
11819 if test $use_additional = yes; then
11820 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11821 found_dir="$additional_libdir"
11822 found_so="$additional_libdir/lib$name.$shlibext"
11823 if test -f "$additional_libdir/lib$name.la"; then
11824 found_la="$additional_libdir/lib$name.la"
11825 fi
11826 elif test x$lib_type != xshared; then
11827 if test -f "$additional_libdir/lib$name.$libext"; then
11828 found_dir="$additional_libdir"
11829 found_a="$additional_libdir/lib$name.$libext"
11830 if test -f "$additional_libdir/lib$name.la"; then
11831 found_la="$additional_libdir/lib$name.la"
11832 fi
11833 fi
11834 fi
11835 fi
11836 if test "X$found_dir" = "X"; then
11837 for x in $LDFLAGS $LTLIBICONV; do
11838
11839 acl_save_prefix="$prefix"
11840 prefix="$acl_final_prefix"
11841 acl_save_exec_prefix="$exec_prefix"
11842 exec_prefix="$acl_final_exec_prefix"
11843 eval x=\"$x\"
11844 exec_prefix="$acl_save_exec_prefix"
11845 prefix="$acl_save_prefix"
11846
11847 case "$x" in
11848 -L*)
11849 dir=`echo "X$x" | sed -e 's/^X-L//'`
11850 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11851 found_dir="$dir"
11852 found_so="$dir/lib$name.$shlibext"
11853 if test -f "$dir/lib$name.la"; then
11854 found_la="$dir/lib$name.la"
11855 fi
11856 elif test x$lib_type != xshared; then
11857 if test -f "$dir/lib$name.$libext"; then
11858 found_dir="$dir"
11859 found_a="$dir/lib$name.$libext"
11860 if test -f "$dir/lib$name.la"; then
11861 found_la="$dir/lib$name.la"
11862 fi
11863 fi
11864 fi
11865 ;;
11866 esac
11867 if test "X$found_dir" != "X"; then
11868 break
11869 fi
11870 done
11871 fi
11872 if test "X$found_dir" != "X"; then
11873 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11874 if test "X$found_so" != "X"; then
11875 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11876 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11877 else
11878 haveit=
11879 for x in $ltrpathdirs; do
11880 if test "X$x" = "X$found_dir"; then
11881 haveit=yes
11882 break
11883 fi
11884 done
11885 if test -z "$haveit"; then
11886 ltrpathdirs="$ltrpathdirs $found_dir"
11887 fi
11888 if test "$hardcode_direct" = yes; then
11889 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11890 else
11891 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11892 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11893 haveit=
11894 for x in $rpathdirs; do
11895 if test "X$x" = "X$found_dir"; then
11896 haveit=yes
11897 break
11898 fi
11899 done
11900 if test -z "$haveit"; then
11901 rpathdirs="$rpathdirs $found_dir"
11902 fi
11903 else
11904 haveit=
11905 for x in $LDFLAGS $LIBICONV; do
11906
11907 acl_save_prefix="$prefix"
11908 prefix="$acl_final_prefix"
11909 acl_save_exec_prefix="$exec_prefix"
11910 exec_prefix="$acl_final_exec_prefix"
11911 eval x=\"$x\"
11912 exec_prefix="$acl_save_exec_prefix"
11913 prefix="$acl_save_prefix"
11914
11915 if test "X$x" = "X-L$found_dir"; then
11916 haveit=yes
11917 break
11918 fi
11919 done
11920 if test -z "$haveit"; then
11921 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11922 fi
11923 if test "$hardcode_minus_L" != no; then
11924 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11925 else
11926 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11927 fi
11928 fi
11929 fi
11930 fi
11931 else
11932 if test "X$found_a" != "X"; then
11933 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11934 else
11935 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11936 fi
11937 fi
11938 additional_includedir=
11939 case "$found_dir" in
11940 */lib | */lib/)
11941 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11942 additional_includedir="$basedir/include"
11943 ;;
11944 esac
11945 if test "X$additional_includedir" != "X"; then
11946 if test "X$additional_includedir" != "X/usr/include"; then
11947 haveit=
11948 if test "X$additional_includedir" = "X/usr/local/include"; then
11949 if test -n "$GCC"; then
11950 case $host_os in
11951 linux*) haveit=yes;;
11952 esac
11953 fi
11954 fi
11955 if test -z "$haveit"; then
11956 for x in $CPPFLAGS $INCICONV; do
11957
11958 acl_save_prefix="$prefix"
11959 prefix="$acl_final_prefix"
11960 acl_save_exec_prefix="$exec_prefix"
11961 exec_prefix="$acl_final_exec_prefix"
11962 eval x=\"$x\"
11963 exec_prefix="$acl_save_exec_prefix"
11964 prefix="$acl_save_prefix"
11965
11966 if test "X$x" = "X-I$additional_includedir"; then
11967 haveit=yes
11968 break
11969 fi
11970 done
11971 if test -z "$haveit"; then
11972 if test -d "$additional_includedir"; then
11973 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11974 fi
11975 fi
11976 fi
11977 fi
11978 fi
11979 if test -n "$found_la"; then
11980 save_libdir="$libdir"
11981 case "$found_la" in
11982 */* | *\\*) . "$found_la" ;;
11983 *) . "./$found_la" ;;
11984 esac
11985 libdir="$save_libdir"
11986 for dep in $dependency_libs; do
11987 case "$dep" in
11988 -L*)
11989 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11990 if test "X$additional_libdir" != "X/usr/lib"; then
11991 haveit=
11992 if test "X$additional_libdir" = "X/usr/local/lib"; then
11993 if test -n "$GCC"; then
11994 case $host_os in
11995 linux*) haveit=yes;;
11996 esac
11997 fi
11998 fi
11999 if test -z "$haveit"; then
12000 haveit=
12001 for x in $LDFLAGS $LIBICONV; do
12002
12003 acl_save_prefix="$prefix"
12004 prefix="$acl_final_prefix"
12005 acl_save_exec_prefix="$exec_prefix"
12006 exec_prefix="$acl_final_exec_prefix"
12007 eval x=\"$x\"
12008 exec_prefix="$acl_save_exec_prefix"
12009 prefix="$acl_save_prefix"
12010
12011 if test "X$x" = "X-L$additional_libdir"; then
12012 haveit=yes
12013 break
12014 fi
12015 done
12016 if test -z "$haveit"; then
12017 if test -d "$additional_libdir"; then
12018 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12019 fi
12020 fi
12021 haveit=
12022 for x in $LDFLAGS $LTLIBICONV; do
12023
12024 acl_save_prefix="$prefix"
12025 prefix="$acl_final_prefix"
12026 acl_save_exec_prefix="$exec_prefix"
12027 exec_prefix="$acl_final_exec_prefix"
12028 eval x=\"$x\"
12029 exec_prefix="$acl_save_exec_prefix"
12030 prefix="$acl_save_prefix"
12031
12032 if test "X$x" = "X-L$additional_libdir"; then
12033 haveit=yes
12034 break
12035 fi
12036 done
12037 if test -z "$haveit"; then
12038 if test -d "$additional_libdir"; then
12039 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12040 fi
12041 fi
12042 fi
12043 fi
12044 ;;
12045 -R*)
12046 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12047 if test "$enable_rpath" != no; then
12048 haveit=
12049 for x in $rpathdirs; do
12050 if test "X$x" = "X$dir"; then
12051 haveit=yes
12052 break
12053 fi
12054 done
12055 if test -z "$haveit"; then
12056 rpathdirs="$rpathdirs $dir"
12057 fi
12058 haveit=
12059 for x in $ltrpathdirs; do
12060 if test "X$x" = "X$dir"; then
12061 haveit=yes
12062 break
12063 fi
12064 done
12065 if test -z "$haveit"; then
12066 ltrpathdirs="$ltrpathdirs $dir"
12067 fi
12068 fi
12069 ;;
12070 -l*)
12071 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12072 ;;
12073 *.la)
12074 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12075 ;;
12076 *)
12077 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12078 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12079 ;;
12080 esac
12081 done
12082 fi
12083 else
12084 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
12085 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12086 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12087 else
12088 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
12089 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
12090 fi
12091 fi
12092 fi
12093 fi
12094 done
12095 done
12096 if test "X$rpathdirs" != "X"; then
12097 if test -n "$hardcode_libdir_separator"; then
12098 alldirs=
12099 for found_dir in $rpathdirs; do
12100 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12101 done
12102 acl_save_libdir="$libdir"
12103 libdir="$alldirs"
12104 eval flag=\"$hardcode_libdir_flag_spec\"
12105 libdir="$acl_save_libdir"
12106 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12107 else
12108 for found_dir in $rpathdirs; do
12109 acl_save_libdir="$libdir"
12110 libdir="$found_dir"
12111 eval flag=\"$hardcode_libdir_flag_spec\"
12112 libdir="$acl_save_libdir"
12113 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12114 done
12115 fi
12116 fi
12117 if test "X$ltrpathdirs" != "X"; then
12118 for found_dir in $ltrpathdirs; do
12119 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12120 done
12121 fi
12122
12123
12124
12125
12126
12127
12128
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12130 $as_echo_n "checking for iconv... " >&6; }
12131 if ${am_cv_func_iconv+:} false; then :
12132 $as_echo_n "(cached) " >&6
12133 else
12134
12135 am_cv_func_iconv="no, consider installing GNU libiconv"
12136 am_cv_lib_iconv=no
12137 am_save_CPPFLAGS="$CPPFLAGS"
12138 CPPFLAGS="$CPPFLAGS $INCICONV"
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12141 #include <stdlib.h>
12142 #include <iconv.h>
12143 int
12144 main ()
12145 {
12146 iconv_t cd = iconv_open("","");
12147 iconv(cd,NULL,NULL,NULL,NULL);
12148 iconv_close(cd);
12149 ;
12150 return 0;
12151 }
12152 _ACEOF
12153 if ac_fn_cxx_try_link "$LINENO"; then :
12154 am_cv_func_iconv=yes
12155 fi
12156 rm -f core conftest.err conftest.$ac_objext \
12157 conftest$ac_exeext conftest.$ac_ext
12158 CPPFLAGS="$am_save_CPPFLAGS"
12159
12160 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
12161 for _libs in .libs _libs; do
12162 am_save_CPPFLAGS="$CPPFLAGS"
12163 am_save_LIBS="$LIBS"
12164 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
12165 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
12166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h. */
12168 #include <stdlib.h>
12169 #include <iconv.h>
12170 int
12171 main ()
12172 {
12173 iconv_t cd = iconv_open("","");
12174 iconv(cd,NULL,NULL,NULL,NULL);
12175 iconv_close(cd);
12176 ;
12177 return 0;
12178 }
12179 _ACEOF
12180 if ac_fn_cxx_try_link "$LINENO"; then :
12181 INCICONV="-I../libiconv/include"
12182 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
12183 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
12184 am_cv_lib_iconv=yes
12185 am_cv_func_iconv=yes
12186 fi
12187 rm -f core conftest.err conftest.$ac_objext \
12188 conftest$ac_exeext conftest.$ac_ext
12189 CPPFLAGS="$am_save_CPPFLAGS"
12190 LIBS="$am_save_LIBS"
12191 if test "$am_cv_func_iconv" = "yes"; then
12192 break
12193 fi
12194 done
12195 fi
12196
12197 if test "$am_cv_func_iconv" != yes; then
12198 am_save_CPPFLAGS="$CPPFLAGS"
12199 am_save_LIBS="$LIBS"
12200 CPPFLAGS="$CPPFLAGS $INCICONV"
12201 LIBS="$LIBS $LIBICONV"
12202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h. */
12204 #include <stdlib.h>
12205 #include <iconv.h>
12206 int
12207 main ()
12208 {
12209 iconv_t cd = iconv_open("","");
12210 iconv(cd,NULL,NULL,NULL,NULL);
12211 iconv_close(cd);
12212 ;
12213 return 0;
12214 }
12215 _ACEOF
12216 if ac_fn_cxx_try_link "$LINENO"; then :
12217 am_cv_lib_iconv=yes
12218 am_cv_func_iconv=yes
12219 fi
12220 rm -f core conftest.err conftest.$ac_objext \
12221 conftest$ac_exeext conftest.$ac_ext
12222 CPPFLAGS="$am_save_CPPFLAGS"
12223 LIBS="$am_save_LIBS"
12224 fi
12225
12226 fi
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12228 $as_echo "$am_cv_func_iconv" >&6; }
12229 if test "$am_cv_func_iconv" = yes; then
12230
12231 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12232
12233 fi
12234 if test "$am_cv_lib_iconv" = yes; then
12235
12236 for element in $INCICONV; do
12237 haveit=
12238 for x in $CPPFLAGS; do
12239
12240 acl_save_prefix="$prefix"
12241 prefix="$acl_final_prefix"
12242 acl_save_exec_prefix="$exec_prefix"
12243 exec_prefix="$acl_final_exec_prefix"
12244 eval x=\"$x\"
12245 exec_prefix="$acl_save_exec_prefix"
12246 prefix="$acl_save_prefix"
12247
12248 if test "X$x" = "X$element"; then
12249 haveit=yes
12250 break
12251 fi
12252 done
12253 if test -z "$haveit"; then
12254 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12255 fi
12256 done
12257
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12259 $as_echo_n "checking how to link with libiconv... " >&6; }
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12261 $as_echo "$LIBICONV" >&6; }
12262 else
12263 LIBICONV=
12264 LTLIBICONV=
12265 fi
12266
12267
12268
12269 if test "$am_cv_func_iconv" = yes; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12271 $as_echo_n "checking for iconv declaration... " >&6; }
12272 if ${am_cv_proto_iconv+:} false; then :
12273 $as_echo_n "(cached) " >&6
12274 else
12275
12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h. */
12278
12279 #include <stdlib.h>
12280 #include <iconv.h>
12281 extern
12282 #ifdef __cplusplus
12283 "C"
12284 #endif
12285 #if defined(__STDC__) || defined(__cplusplus)
12286 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12287 #else
12288 size_t iconv();
12289 #endif
12290
12291 int
12292 main ()
12293 {
12294
12295 ;
12296 return 0;
12297 }
12298 _ACEOF
12299 if ac_fn_cxx_try_compile "$LINENO"; then :
12300 am_cv_proto_iconv_arg1=""
12301 else
12302 am_cv_proto_iconv_arg1="const"
12303 fi
12304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12305 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);"
12306 fi
12307
12308 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
12310 }$am_cv_proto_iconv" >&5
12311 $as_echo "${ac_t:-
12312 }$am_cv_proto_iconv" >&6; }
12313
12314 cat >>confdefs.h <<_ACEOF
12315 #define ICONV_CONST $am_cv_proto_iconv_arg1
12316 _ACEOF
12317
12318 fi
12319
12320
12321 # Until we have in-tree GNU iconv:
12322 LIBICONV_DEP=
12323 if test -f "$LTLIBICONV"; then
12324 LIBICONV_DEP=$LTLIBICONV
12325 fi
12326
12327
12328
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12330 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12331 if ${am_cv_val_LC_MESSAGES+:} false; then :
12332 $as_echo_n "(cached) " >&6
12333 else
12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12336 #include <locale.h>
12337 int
12338 main ()
12339 {
12340 return LC_MESSAGES
12341 ;
12342 return 0;
12343 }
12344 _ACEOF
12345 if ac_fn_cxx_try_link "$LINENO"; then :
12346 am_cv_val_LC_MESSAGES=yes
12347 else
12348 am_cv_val_LC_MESSAGES=no
12349 fi
12350 rm -f core conftest.err conftest.$ac_objext \
12351 conftest$ac_exeext conftest.$ac_ext
12352 fi
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12354 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12355 if test $am_cv_val_LC_MESSAGES = yes; then
12356
12357 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12358
12359 fi
12360
12361
12362
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12364 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12365 if ${am_cv_langinfo_codeset+:} false; then :
12366 $as_echo_n "(cached) " >&6
12367 else
12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12369 /* end confdefs.h. */
12370 #include <langinfo.h>
12371 int
12372 main ()
12373 {
12374 char* cs = nl_langinfo(CODESET);
12375 ;
12376 return 0;
12377 }
12378 _ACEOF
12379 if ac_fn_cxx_try_link "$LINENO"; then :
12380 am_cv_langinfo_codeset=yes
12381 else
12382 am_cv_langinfo_codeset=no
12383 fi
12384 rm -f core conftest.err conftest.$ac_objext \
12385 conftest$ac_exeext conftest.$ac_ext
12386
12387 fi
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12389 $as_echo "$am_cv_langinfo_codeset" >&6; }
12390 if test $am_cv_langinfo_codeset = yes; then
12391
12392 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12393
12394 fi
12395
12396
12397 # We will need to find libiberty.h and ansidecl.h
12398 saved_CFLAGS="$CFLAGS"
12399 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12400 saved_CXXFLAGS="$CXXFLAGS"
12401 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12402
12403 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12404 # normal autoconf function for these. But force definition of
12405 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12406 # basename handling in libiberty.h.
12407 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12408 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12409 #undef HAVE_DECL_BASENAME
12410 #define HAVE_DECL_BASENAME 1
12411 #include \"ansidecl.h\"
12412 #include \"system.h\"
12413 "
12414 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12415 ac_have_decl=1
12416 else
12417 ac_have_decl=0
12418 fi
12419
12420 cat >>confdefs.h <<_ACEOF
12421 #define HAVE_DECL_BASENAME $ac_have_decl
12422 _ACEOF
12423 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12424 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12425 #undef HAVE_DECL_BASENAME
12426 #define HAVE_DECL_BASENAME 1
12427 #include \"ansidecl.h\"
12428 #include \"system.h\"
12429 "
12430 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12431 ac_have_decl=1
12432 else
12433 ac_have_decl=0
12434 fi
12435
12436 cat >>confdefs.h <<_ACEOF
12437 #define HAVE_DECL_STRSTR $ac_have_decl
12438 _ACEOF
12439
12440
12441 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12442 madvise stpcpy strnlen strsignal strverscmp \
12443 strtol strtoul strtoll strtoull setenv unsetenv \
12444 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12445 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
12446 do
12447 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12449 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12450 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12451 $as_echo_n "(cached) " >&6
12452 else
12453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12454 /* end confdefs.h. */
12455 #undef $ac_tr_decl
12456 #define $ac_tr_decl 1
12457
12458 #include "ansidecl.h"
12459 #include "system.h"
12460
12461 int
12462 main ()
12463 {
12464 #ifndef $ac_func
12465 char *(*pfn) = (char *(*)) $ac_func ;
12466 #endif
12467 ;
12468 return 0;
12469 }
12470 _ACEOF
12471 if ac_fn_cxx_try_compile "$LINENO"; then :
12472 eval "gcc_cv_have_decl_$ac_func=yes"
12473 else
12474 eval "gcc_cv_have_decl_$ac_func=no"
12475 fi
12476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12477 fi
12478
12479 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12481 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12482 #define $ac_tr_decl 1
12483 _ACEOF
12484
12485 else
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12488 #define $ac_tr_decl 0
12489 _ACEOF
12490
12491 fi
12492
12493 done
12494
12495
12496 for ac_func in getrlimit setrlimit getrusage
12497 do
12498 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12500 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12501 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12502 $as_echo_n "(cached) " >&6
12503 else
12504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505 /* end confdefs.h. */
12506 #undef $ac_tr_decl
12507 #define $ac_tr_decl 1
12508
12509 #include "ansidecl.h"
12510 #include "system.h"
12511 #ifdef HAVE_SYS_RESOURCE_H
12512 #include <sys/resource.h>
12513 #endif
12514
12515
12516 int
12517 main ()
12518 {
12519 #ifndef $ac_func
12520 char *(*pfn) = (char *(*)) $ac_func ;
12521 #endif
12522 ;
12523 return 0;
12524 }
12525 _ACEOF
12526 if ac_fn_cxx_try_compile "$LINENO"; then :
12527 eval "gcc_cv_have_decl_$ac_func=yes"
12528 else
12529 eval "gcc_cv_have_decl_$ac_func=no"
12530 fi
12531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12532 fi
12533
12534 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12536 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12537 #define $ac_tr_decl 1
12538 _ACEOF
12539
12540 else
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12543 #define $ac_tr_decl 0
12544 _ACEOF
12545
12546 fi
12547
12548 done
12549
12550
12551 for ac_func in mallinfo
12552 do
12553 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12555 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12556 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12557 $as_echo_n "(cached) " >&6
12558 else
12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12561 #undef $ac_tr_decl
12562 #define $ac_tr_decl 1
12563
12564 #include "ansidecl.h"
12565 #include "system.h"
12566 #ifdef HAVE_MALLOC_H
12567 #include <malloc.h>
12568 #endif
12569
12570
12571 int
12572 main ()
12573 {
12574 #ifndef $ac_func
12575 char *(*pfn) = (char *(*)) $ac_func ;
12576 #endif
12577 ;
12578 return 0;
12579 }
12580 _ACEOF
12581 if ac_fn_cxx_try_compile "$LINENO"; then :
12582 eval "gcc_cv_have_decl_$ac_func=yes"
12583 else
12584 eval "gcc_cv_have_decl_$ac_func=no"
12585 fi
12586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12587 fi
12588
12589 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12591 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12592 #define $ac_tr_decl 1
12593 _ACEOF
12594
12595 else
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12597 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12598 #define $ac_tr_decl 0
12599 _ACEOF
12600
12601 fi
12602
12603 done
12604
12605
12606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h. */
12608
12609 #include "ansidecl.h"
12610 #include "system.h"
12611 #ifdef HAVE_SYS_RESOURCE_H
12612 #include <sys/resource.h>
12613 #endif
12614
12615 int
12616 main ()
12617 {
12618 rlim_t l = 0;
12619 ;
12620 return 0;
12621 }
12622 _ACEOF
12623 if ac_fn_cxx_try_compile "$LINENO"; then :
12624
12625 else
12626
12627 $as_echo "#define rlim_t long" >>confdefs.h
12628
12629 fi
12630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12631
12632 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12633 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12634 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12635 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12636 for ac_func in ldgetname
12637 do
12638 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12640 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12641 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12642 $as_echo_n "(cached) " >&6
12643 else
12644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645 /* end confdefs.h. */
12646 #undef $ac_tr_decl
12647 #define $ac_tr_decl 1
12648
12649 #include "ansidecl.h"
12650 #include "system.h"
12651 #ifdef HAVE_LDFCN_H
12652 #undef FREAD
12653 #undef FWRITE
12654 #include <ldfcn.h>
12655 #endif
12656
12657
12658 int
12659 main ()
12660 {
12661 #ifndef $ac_func
12662 char *(*pfn) = (char *(*)) $ac_func ;
12663 #endif
12664 ;
12665 return 0;
12666 }
12667 _ACEOF
12668 if ac_fn_cxx_try_compile "$LINENO"; then :
12669 eval "gcc_cv_have_decl_$ac_func=yes"
12670 else
12671 eval "gcc_cv_have_decl_$ac_func=no"
12672 fi
12673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12674 fi
12675
12676 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12678 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12679 #define $ac_tr_decl 1
12680 _ACEOF
12681
12682 else
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12684 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12685 #define $ac_tr_decl 0
12686 _ACEOF
12687
12688 fi
12689
12690 done
12691
12692
12693 for ac_func in times
12694 do
12695 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12697 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12698 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12699 $as_echo_n "(cached) " >&6
12700 else
12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12703 #undef $ac_tr_decl
12704 #define $ac_tr_decl 1
12705
12706 #include "ansidecl.h"
12707 #include "system.h"
12708 #ifdef HAVE_SYS_TIMES_H
12709 #include <sys/times.h>
12710 #endif
12711
12712
12713 int
12714 main ()
12715 {
12716 #ifndef $ac_func
12717 char *(*pfn) = (char *(*)) $ac_func ;
12718 #endif
12719 ;
12720 return 0;
12721 }
12722 _ACEOF
12723 if ac_fn_cxx_try_compile "$LINENO"; then :
12724 eval "gcc_cv_have_decl_$ac_func=yes"
12725 else
12726 eval "gcc_cv_have_decl_$ac_func=no"
12727 fi
12728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12729 fi
12730
12731 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12733 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12734 #define $ac_tr_decl 1
12735 _ACEOF
12736
12737 else
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12740 #define $ac_tr_decl 0
12741 _ACEOF
12742
12743 fi
12744
12745 done
12746
12747
12748 for ac_func in sigaltstack
12749 do
12750 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12752 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12753 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12754 $as_echo_n "(cached) " >&6
12755 else
12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12758 #undef $ac_tr_decl
12759 #define $ac_tr_decl 1
12760
12761 #include "ansidecl.h"
12762 #include "system.h"
12763 #include <signal.h>
12764
12765
12766 int
12767 main ()
12768 {
12769 #ifndef $ac_func
12770 char *(*pfn) = (char *(*)) $ac_func ;
12771 #endif
12772 ;
12773 return 0;
12774 }
12775 _ACEOF
12776 if ac_fn_cxx_try_compile "$LINENO"; then :
12777 eval "gcc_cv_have_decl_$ac_func=yes"
12778 else
12779 eval "gcc_cv_have_decl_$ac_func=no"
12780 fi
12781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12782 fi
12783
12784 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12786 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12787 #define $ac_tr_decl 1
12788 _ACEOF
12789
12790 else
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12793 #define $ac_tr_decl 0
12794 _ACEOF
12795
12796 fi
12797
12798 done
12799
12800
12801 # More time-related stuff.
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12803 $as_echo_n "checking for struct tms... " >&6; }
12804 if ${ac_cv_struct_tms+:} false; then :
12805 $as_echo_n "(cached) " >&6
12806 else
12807
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12810
12811 #include "ansidecl.h"
12812 #include "system.h"
12813 #ifdef HAVE_SYS_TIMES_H
12814 #include <sys/times.h>
12815 #endif
12816
12817 int
12818 main ()
12819 {
12820 struct tms tms;
12821 ;
12822 return 0;
12823 }
12824 _ACEOF
12825 if ac_fn_cxx_try_compile "$LINENO"; then :
12826 ac_cv_struct_tms=yes
12827 else
12828 ac_cv_struct_tms=no
12829 fi
12830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12831 fi
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12833 $as_echo "$ac_cv_struct_tms" >&6; }
12834 if test $ac_cv_struct_tms = yes; then
12835
12836 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12837
12838 fi
12839
12840 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12841 # revisit after autoconf 2.50.
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12843 $as_echo_n "checking for clock_t... " >&6; }
12844 if ${gcc_cv_type_clock_t+:} false; then :
12845 $as_echo_n "(cached) " >&6
12846 else
12847
12848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12849 /* end confdefs.h. */
12850
12851 #include "ansidecl.h"
12852 #include "system.h"
12853
12854 int
12855 main ()
12856 {
12857 clock_t x;
12858 ;
12859 return 0;
12860 }
12861 _ACEOF
12862 if ac_fn_cxx_try_compile "$LINENO"; then :
12863 gcc_cv_type_clock_t=yes
12864 else
12865 gcc_cv_type_clock_t=no
12866 fi
12867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12868 fi
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12870 $as_echo "$gcc_cv_type_clock_t" >&6; }
12871 if test $gcc_cv_type_clock_t = yes; then
12872
12873 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12874
12875 fi
12876
12877 # Check if F_SETLKW is supported by fcntl.
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12879 $as_echo_n "checking for F_SETLKW... " >&6; }
12880 if ${ac_cv_f_setlkw+:} false; then :
12881 $as_echo_n "(cached) " >&6
12882 else
12883
12884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12885 /* end confdefs.h. */
12886
12887 #include <fcntl.h>
12888 int
12889 main ()
12890 {
12891
12892 struct flock fl;
12893 fl.l_whence = 0;
12894 fl.l_start = 0;
12895 fl.l_len = 0;
12896 fl.l_pid = 0;
12897 return fcntl (1, F_SETLKW, &fl);
12898 ;
12899 return 0;
12900 }
12901 _ACEOF
12902 if ac_fn_cxx_try_compile "$LINENO"; then :
12903 ac_cv_f_setlkw=yes
12904 else
12905 ac_cv_f_setlkw=no
12906 fi
12907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12908 fi
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12910 $as_echo "$ac_cv_f_setlkw" >&6; }
12911 if test $ac_cv_f_setlkw = yes; then
12912
12913 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12914
12915 fi
12916
12917 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12918 CFLAGS="$saved_CFLAGS"
12919 CXXFLAGS="$saved_CXXFLAGS"
12920
12921 # mkdir takes a single argument on some systems.
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12923 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12924 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12925 $as_echo_n "(cached) " >&6
12926 else
12927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12928 /* end confdefs.h. */
12929
12930 #include <sys/types.h>
12931 #ifdef HAVE_SYS_STAT_H
12932 # include <sys/stat.h>
12933 #endif
12934 #ifdef HAVE_UNISTD_H
12935 # include <unistd.h>
12936 #endif
12937 #ifdef HAVE_DIRECT_H
12938 # include <direct.h>
12939 #endif
12940 int
12941 main ()
12942 {
12943 mkdir ("foo", 0);
12944 ;
12945 return 0;
12946 }
12947 _ACEOF
12948 if ac_fn_cxx_try_compile "$LINENO"; then :
12949 gcc_cv_mkdir_takes_one_arg=no
12950 else
12951 gcc_cv_mkdir_takes_one_arg=yes
12952 fi
12953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12954 fi
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12956 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12957 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12958
12959 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12960
12961 fi
12962
12963
12964 # File extensions
12965 manext='.1'
12966 objext='.o'
12967
12968
12969
12970 # With Setjmp/Longjmp based exception handling.
12971 # Check whether --enable-sjlj-exceptions was given.
12972 if test "${enable_sjlj_exceptions+set}" = set; then :
12973 enableval=$enable_sjlj_exceptions; case $target in
12974 *-*-hpux10*)
12975 if test $enableval != yes; then
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12977 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12978 enableval=yes
12979 fi
12980 ;;
12981 esac
12982 force_sjlj_exceptions=yes
12983 else
12984 case $target in
12985 *-*-hpux10*)
12986 force_sjlj_exceptions=yes
12987 enableval=yes
12988 ;;
12989 lm32*-*-*)
12990 force_sjlj_exceptions=yes
12991 enableval=yes
12992 ;;
12993 *)
12994 force_sjlj_exceptions=no
12995 ;;
12996 esac
12997 fi
12998
12999 if test $force_sjlj_exceptions = yes; then
13000 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
13001
13002 cat >>confdefs.h <<_ACEOF
13003 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
13004 _ACEOF
13005
13006 fi
13007
13008 # --------------------------------------------------------
13009 # Build, host, and target specific configuration fragments
13010 # --------------------------------------------------------
13011
13012 # Collect build-machine-specific information.
13013 . ${srcdir}/config.build || exit 1
13014
13015 # Collect host-machine-specific information.
13016 . ${srcdir}/config.host || exit 1
13017
13018 target_gtfiles=
13019
13020 # Collect target-machine-specific information.
13021 . ${srcdir}/config.gcc || exit 1
13022
13023 extra_objs="${host_extra_objs} ${extra_objs}"
13024 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
13025
13026 # Default the target-machine variables that were not explicitly set.
13027 if test x"$tm_file" = x
13028 then tm_file=$cpu_type/$cpu_type.h; fi
13029
13030 if test x"$extra_headers" = x
13031 then extra_headers=; fi
13032
13033 if test x$md_file = x
13034 then md_file=$cpu_type/$cpu_type.md; fi
13035
13036 if test x$out_file = x
13037 then out_file=$cpu_type/$cpu_type.c; fi
13038
13039 if test x"$tmake_file" = x
13040 then tmake_file=$cpu_type/t-$cpu_type
13041 fi
13042
13043 # Support --enable-initfini-array.
13044 if test x$enable_initfini_array != xno; then
13045 tm_file="${tm_file} initfini-array.h"
13046 fi
13047
13048 if test x"$dwarf2" = xyes
13049 then tm_file="$tm_file tm-dwarf2.h"
13050 fi
13051
13052 # Say what files are being used for the output code and MD file.
13053 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13054 echo "Using \`$srcdir/config/$md_file' as machine description file."
13055
13056 # If any of the xm_file variables contain nonexistent files, warn
13057 # about them and drop them.
13058
13059 bx=
13060 for x in $build_xm_file; do
13061 if test -f $srcdir/config/$x
13062 then bx="$bx $x"
13063 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13064 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13065 fi
13066 done
13067 build_xm_file="$bx"
13068
13069 hx=
13070 for x in $host_xm_file; do
13071 if test -f $srcdir/config/$x
13072 then hx="$hx $x"
13073 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13074 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13075 fi
13076 done
13077 host_xm_file="$hx"
13078
13079 tx=
13080 for x in $xm_file; do
13081 if test -f $srcdir/config/$x
13082 then tx="$tx $x"
13083 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13084 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13085 fi
13086 done
13087 xm_file="$tx"
13088
13089 count=a
13090 for f in $tm_file; do
13091 count=${count}x
13092 done
13093 if test $count = ax; then
13094 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13095 else
13096 echo "Using the following target machine macro files:"
13097 for f in $tm_file; do
13098 echo " $srcdir/config/$f"
13099 done
13100 fi
13101
13102 if test x$use_long_long_for_widest_fast_int = xyes; then
13103
13104 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
13105
13106 fi
13107
13108 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
13109
13110 cat >>confdefs.h <<_ACEOF
13111 #define HAVE_GNU_LD $gnu_ld_bool
13112 _ACEOF
13113
13114
13115 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
13116
13117 cat >>confdefs.h <<_ACEOF
13118 #define HAVE_GNU_AS $gnu_as_bool
13119 _ACEOF
13120
13121
13122 count=a
13123 for f in $host_xm_file; do
13124 count=${count}x
13125 done
13126 if test $count = a; then
13127 :
13128 elif test $count = ax; then
13129 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13130 else
13131 echo "Using the following host machine macro files:"
13132 for f in $host_xm_file; do
13133 echo " $srcdir/config/$f"
13134 done
13135 fi
13136 echo "Using ${out_host_hook_obj} for host machine hooks."
13137
13138 if test "$host_xm_file" != "$build_xm_file"; then
13139 count=a
13140 for f in $build_xm_file; do
13141 count=${count}x
13142 done
13143 if test $count = a; then
13144 :
13145 elif test $count = ax; then
13146 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13147 else
13148 echo "Using the following build machine macro files:"
13149 for f in $build_xm_file; do
13150 echo " $srcdir/config/$f"
13151 done
13152 fi
13153 fi
13154
13155 if test -n "$configured_native_system_header_dir"; then
13156 native_system_header_dir=$configured_native_system_header_dir
13157 fi
13158 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
13159
13160
13161 case ${host} in
13162 powerpc*-*-darwin*)
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
13164 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
13165 if ${gcc_cv_mcontext_underscores+:} false; then :
13166 $as_echo_n "(cached) " >&6
13167 else
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13170
13171 #include <sys/cdefs.h>
13172 #include <sys/signal.h>
13173 #include <ucontext.h>
13174 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13175
13176 _ACEOF
13177 if ac_fn_cxx_try_compile "$LINENO"; then :
13178 gcc_cv_mcontext_underscores=no
13179 else
13180 gcc_cv_mcontext_underscores=yes
13181 fi
13182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13183 fi
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13185 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13186 if test $gcc_cv_mcontext_underscores = yes; then
13187
13188 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13189
13190 fi
13191 ;;
13192 esac
13193
13194 # ---------
13195 # Threading
13196 # ---------
13197
13198 # Check if a valid thread package
13199 case ${enable_threads} in
13200 "" | no)
13201 # No threads
13202 target_thread_file='single'
13203 ;;
13204 yes)
13205 # default
13206 target_thread_file='single'
13207 ;;
13208 aix | dce | lynx | mipssde | posix | rtems | \
13209 single | tpf | vxworks | win32)
13210 target_thread_file=${enable_threads}
13211 ;;
13212 *)
13213 echo "${enable_threads} is an unknown thread package" 1>&2
13214 exit 1
13215 ;;
13216 esac
13217
13218 if test x${thread_file} = x; then
13219 # No thread file set by target-specific clauses in config.gcc,
13220 # so use file chosen by default logic above
13221 thread_file=${target_thread_file}
13222 fi
13223
13224 # --------
13225 # UNSORTED
13226 # --------
13227
13228 use_cxa_atexit=no
13229 if test x$enable___cxa_atexit = xyes || \
13230 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13231 if test x$host = x$target; then
13232 case $host in
13233 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13234 # keyed to flag_use_cxa_atexit
13235 *-*-mingw32*)
13236 use_cxa_atexit=yes
13237 ;;
13238 powerpc-ibm-aix*)
13239 use_cxa_atexit=yes
13240 ;;
13241 *)
13242 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13243 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
13244 use_cxa_atexit=yes
13245 else
13246 echo "__cxa_atexit can't be enabled on this target"
13247 fi
13248
13249 ;;
13250 esac
13251 else
13252 # We can't check for __cxa_atexit when building a cross, so assume
13253 # it is available
13254 use_cxa_atexit=yes
13255 fi
13256 if test x$use_cxa_atexit = xyes; then
13257
13258 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13259
13260 fi
13261 fi
13262
13263 # Look for a file containing extra machine modes.
13264 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13265 extra_modes_file='$(srcdir)'/config/${extra_modes}
13266
13267
13268 cat >>confdefs.h <<_ACEOF
13269 #define EXTRA_MODES_FILE "config/$extra_modes"
13270 _ACEOF
13271
13272 fi
13273
13274 # Convert extra_options into a form suitable for Makefile use.
13275 extra_opt_files=
13276 all_opt_files=
13277 for f in $extra_options; do
13278 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13279 all_opt_files="$all_opt_files $srcdir/config/$f"
13280 done
13281
13282
13283 # auto-host.h is the file containing items generated by autoconf and is
13284 # the first file included by config.h.
13285 # If host=build, it is correct to have bconfig include auto-host.h
13286 # as well. If host!=build, we are in error and need to do more
13287 # work to find out the build config parameters.
13288 if test x$host = x$build
13289 then
13290 build_auto=auto-host.h
13291 HAVE_AUTO_BUILD='# '
13292 else
13293 # We create a subdir, then run autoconf in the subdir.
13294 # To prevent recursion we set host and build for the new
13295 # invocation of configure to the build for this invocation
13296 # of configure.
13297 tempdir=build.$$
13298 rm -rf $tempdir
13299 mkdir $tempdir
13300 cd $tempdir
13301 case ${srcdir} in
13302 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13303 *) realsrcdir=../${srcdir};;
13304 esac
13305 # Clearing GMPINC is necessary to prevent host headers being
13306 # used by the build compiler. Defining GENERATOR_FILE stops
13307 # system.h from including gmp.h.
13308 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13309 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13310 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13311 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
13312 ${realsrcdir}/configure \
13313 --enable-languages=${enable_languages-all} \
13314 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13315 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13316 --target=$target_alias --host=$build_alias \
13317 --build=$build_alias || exit # retaining $tempdir
13318
13319 # We just finished tests for the build machine, so rename
13320 # the file auto-build.h in the gcc directory.
13321 mv auto-host.h ../auto-build.h
13322 cd ..
13323 rm -rf $tempdir
13324 build_auto=auto-build.h
13325 HAVE_AUTO_BUILD=
13326 fi
13327
13328
13329
13330 tm_file="${tm_file} defaults.h"
13331 tm_p_file="${tm_p_file} tm-preds.h"
13332 tm_d_file="${tm_d_file} defaults.h"
13333 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13334 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13335 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13336 # put this back in temporarily.
13337 xm_file="auto-host.h ansidecl.h ${xm_file}"
13338
13339 # --------
13340 # UNSORTED
13341 # --------
13342
13343 # Compile in configure arguments.
13344 if test -f configargs.h ; then
13345 # Being re-configured.
13346 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13347 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13348 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13349 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13350 fi
13351 else
13352 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13353 fi
13354
13355 # Double all backslashes and backslash all quotes to turn
13356 # gcc_config_arguments into a C string.
13357 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13358 $gcc_config_arguments
13359 EOF
13360 gcc_config_arguments_str=`cat conftest.out`
13361 rm -f conftest.out
13362
13363 cat > configargs.h <<EOF
13364 /* Generated automatically. */
13365 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13366 static const char thread_model[] = "$thread_file";
13367
13368 static const struct {
13369 const char *name, *value;
13370 } configure_default_options[] = $configure_default_options;
13371 EOF
13372
13373 gcc_BASEVER=`cat $srcdir/BASE-VER`
13374 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13375 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13376 if test -f $srcdir/REVISION ; then
13377 gcc_REVISION=`cat $srcdir/REVISION`
13378 else
13379 gcc_REVISION=""
13380 fi
13381 cat > plugin-version.h <<EOF
13382 #include "configargs.h"
13383
13384 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13385 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13386 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13387 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13388
13389 static char basever[] = "$gcc_BASEVER";
13390 static char datestamp[] = "$gcc_DATESTAMP";
13391 static char devphase[] = "$gcc_DEVPHASE";
13392 static char revision[] = "$gcc_REVISION";
13393
13394 /* FIXME plugins: We should make the version information more precise.
13395 One way to do is to add a checksum. */
13396
13397 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13398 devphase, revision,
13399 configuration_arguments};
13400 EOF
13401
13402 # Determine what GCC version number to use in filesystem paths.
13403
13404 get_gcc_base_ver="cat"
13405
13406 # Check whether --with-gcc-major-version-only was given.
13407 if test "${with_gcc_major_version_only+set}" = set; then :
13408 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13409 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13410 fi
13411
13412 fi
13413
13414
13415
13416
13417 # Internationalization
13418 # If we haven't got the data from the intl directory,
13419 # assume NLS is disabled.
13420 USE_NLS=no
13421 LIBINTL=
13422 LIBINTL_DEP=
13423 INCINTL=
13424 XGETTEXT=
13425 GMSGFMT=
13426 POSUB=
13427
13428 if test -f ../intl/config.intl; then
13429 . ../intl/config.intl
13430 fi
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13432 $as_echo_n "checking whether NLS is requested... " >&6; }
13433 if test x"$USE_NLS" != xyes; then
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13435 $as_echo "no" >&6; }
13436 else
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13438 $as_echo "yes" >&6; }
13439
13440 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13441
13442
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13444 $as_echo_n "checking for catalogs to be installed... " >&6; }
13445 # Look for .po and .gmo files in the source directory.
13446 CATALOGS=
13447 XLINGUAS=
13448 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13449 # If there aren't any .gmo files the shell will give us the
13450 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13451 # weeded out.
13452 case "$cat" in *\**)
13453 continue;;
13454 esac
13455 # The quadruple backslash is collapsed to a double backslash
13456 # by the backticks, then collapsed again by the double quotes,
13457 # leaving us with one backslash in the sed expression (right
13458 # before the dot that mustn't act as a wildcard).
13459 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13460 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13461 # The user is allowed to set LINGUAS to a list of languages to
13462 # install catalogs for. If it's empty that means "all of them."
13463 if test "x$LINGUAS" = x; then
13464 CATALOGS="$CATALOGS $cat"
13465 XLINGUAS="$XLINGUAS $lang"
13466 else
13467 case "$LINGUAS" in *$lang*)
13468 CATALOGS="$CATALOGS $cat"
13469 XLINGUAS="$XLINGUAS $lang"
13470 ;;
13471 esac
13472 fi
13473 done
13474 LINGUAS="$XLINGUAS"
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13476 $as_echo "$LINGUAS" >&6; }
13477
13478
13479 DATADIRNAME=share
13480
13481 INSTOBJEXT=.mo
13482
13483 GENCAT=gencat
13484
13485 CATOBJEXT=.gmo
13486
13487 fi
13488
13489 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13490 # -liconv on the link line twice.
13491 case "$LIBINTL" in *$LIBICONV*)
13492 LIBICONV= ;;
13493 esac
13494
13495 # Check whether --enable-secureplt was given.
13496 if test "${enable_secureplt+set}" = set; then :
13497 enableval=$enable_secureplt;
13498 fi
13499
13500
13501 # Check whether --enable-mingw-wildcard was given.
13502 if test "${enable_mingw_wildcard+set}" = set; then :
13503 enableval=$enable_mingw_wildcard;
13504 else
13505 enable_mingw_wildcard=platform
13506 fi
13507
13508 if test x"$enable_mingw_wildcard" != xplatform ; then :
13509
13510 cat >>confdefs.h <<_ACEOF
13511 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13512 _ACEOF
13513
13514 fi
13515
13516 # Check whether --enable-large-address-aware was given.
13517 if test "${enable_large_address_aware+set}" = set; then :
13518 enableval=$enable_large_address_aware;
13519 fi
13520
13521 if test x"$enable_large_address_aware" = xyes; then :
13522
13523 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13524
13525 fi
13526
13527 # Check whether --enable-leading-mingw64-underscores was given.
13528 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13529 enableval=$enable_leading_mingw64_underscores;
13530 fi
13531
13532 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
13533
13534 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13535
13536 fi
13537
13538 # Check whether --enable-cld was given.
13539 if test "${enable_cld+set}" = set; then :
13540 enableval=$enable_cld;
13541 else
13542 enable_cld=no
13543 fi
13544
13545
13546 # Check whether --enable-frame-pointer was given.
13547 if test "${enable_frame_pointer+set}" = set; then :
13548 enableval=$enable_frame_pointer;
13549 else
13550
13551 case $target_os in
13552 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
13553 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13554 enable_frame_pointer=no
13555 ;;
13556 *)
13557 enable_frame_pointer=yes
13558 ;;
13559 esac
13560
13561 fi
13562
13563
13564 case $target in
13565 i[34567]86-*-* | x86_64-*-*)
13566 if test "x$enable_cld" = xyes; then
13567 tm_defines="${tm_defines} USE_IX86_CLD=1"
13568 fi
13569 if test "x$enable_frame_pointer" = xyes; then
13570 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
13571 fi
13572 ;;
13573 esac
13574
13575 # Windows32 Registry support for specifying GCC installation paths.
13576 # Check whether --enable-win32-registry was given.
13577 if test "${enable_win32_registry+set}" = set; then :
13578 enableval=$enable_win32_registry;
13579 fi
13580
13581
13582 case $host_os in
13583 win32 | pe | cygwin* | mingw32*)
13584 if test "x$enable_win32_registry" != xno; then
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13586 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13587 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13588 $as_echo_n "(cached) " >&6
13589 else
13590 ac_func_search_save_LIBS=$LIBS
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13593
13594 /* Override any GCC internal prototype to avoid an error.
13595 Use char because int might match the return type of a GCC
13596 builtin and then its argument prototype would still apply. */
13597 #ifdef __cplusplus
13598 extern "C"
13599 #endif
13600 char RegOpenKeyExA ();
13601 int
13602 main ()
13603 {
13604 return RegOpenKeyExA ();
13605 ;
13606 return 0;
13607 }
13608 _ACEOF
13609 for ac_lib in '' advapi32; do
13610 if test -z "$ac_lib"; then
13611 ac_res="none required"
13612 else
13613 ac_res=-l$ac_lib
13614 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13615 fi
13616 if ac_fn_cxx_try_link "$LINENO"; then :
13617 ac_cv_search_RegOpenKeyExA=$ac_res
13618 fi
13619 rm -f core conftest.err conftest.$ac_objext \
13620 conftest$ac_exeext
13621 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13622 break
13623 fi
13624 done
13625 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13626
13627 else
13628 ac_cv_search_RegOpenKeyExA=no
13629 fi
13630 rm conftest.$ac_ext
13631 LIBS=$ac_func_search_save_LIBS
13632 fi
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13634 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13635 ac_res=$ac_cv_search_RegOpenKeyExA
13636 if test "$ac_res" != no; then :
13637 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13638
13639 else
13640 enable_win32_registry=no
13641 fi
13642
13643 fi
13644
13645 if test "x$enable_win32_registry" != xno; then
13646
13647 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13648
13649
13650 if test "x$enable_win32_registry" != xyes \
13651 && test "x$enable_win32_registry" != x; then
13652
13653 cat >>confdefs.h <<_ACEOF
13654 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13655 _ACEOF
13656
13657 fi
13658 fi
13659 ;;
13660 esac
13661
13662 # Get an absolute path to the GCC top-level source directory
13663 holddir=`${PWDCMD-pwd}`
13664 cd $srcdir
13665 topdir=`${PWDCMD-pwd}`
13666 cd $holddir
13667
13668 # Conditionalize the makefile for this host machine.
13669 xmake_file=
13670 for f in ${host_xmake_file}
13671 do
13672 if test -f ${srcdir}/config/$f
13673 then
13674 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13675 fi
13676 done
13677
13678 # Conditionalize the makefile for this target machine.
13679 tmake_file_=
13680 for f in ${tmake_file}
13681 do
13682 if test -f ${srcdir}/config/$f
13683 then
13684 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13685 fi
13686 done
13687 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13688
13689 out_object_file=`basename $out_file .c`.o
13690 common_out_object_file=`basename $common_out_file .c`.o
13691
13692 tm_file_list="options.h"
13693 tm_include_list="options.h insn-constants.h"
13694 for f in $tm_file; do
13695 case $f in
13696 ./* )
13697 f=`echo $f | sed 's/^..//'`
13698 tm_file_list="${tm_file_list} $f"
13699 tm_include_list="${tm_include_list} $f"
13700 ;;
13701 defaults.h )
13702 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13703 tm_include_list="${tm_include_list} $f"
13704 ;;
13705 * )
13706 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13707 tm_include_list="${tm_include_list} config/$f"
13708 ;;
13709 esac
13710 done
13711
13712 tm_p_file_list=
13713 tm_p_include_list=
13714 for f in $tm_p_file; do
13715 case $f in
13716 tm-preds.h )
13717 tm_p_file_list="${tm_p_file_list} $f"
13718 tm_p_include_list="${tm_p_include_list} $f"
13719 ;;
13720 * )
13721 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13722 tm_p_include_list="${tm_p_include_list} config/$f"
13723 esac
13724 done
13725
13726 tm_d_file_list=
13727 tm_d_include_list="options.h insn-constants.h"
13728 for f in $tm_d_file; do
13729 case $f in
13730 defaults.h )
13731 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
13732 tm_d_include_list="${tm_d_include_list} $f"
13733 ;;
13734 * )
13735 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13736 tm_d_include_list="${tm_d_include_list} config/$f"
13737 ;;
13738 esac
13739 done
13740
13741 xm_file_list=
13742 xm_include_list=
13743 for f in $xm_file; do
13744 case $f in
13745 ansidecl.h )
13746 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13747 xm_include_list="${xm_include_list} $f"
13748 ;;
13749 auto-host.h )
13750 xm_file_list="${xm_file_list} $f"
13751 xm_include_list="${xm_include_list} $f"
13752 ;;
13753 * )
13754 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13755 xm_include_list="${xm_include_list} config/$f"
13756 ;;
13757 esac
13758 done
13759
13760 host_xm_file_list=
13761 host_xm_include_list=
13762 for f in $host_xm_file; do
13763 case $f in
13764 ansidecl.h )
13765 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13766 host_xm_include_list="${host_xm_include_list} $f"
13767 ;;
13768 auto-host.h )
13769 host_xm_file_list="${host_xm_file_list} $f"
13770 host_xm_include_list="${host_xm_include_list} $f"
13771 ;;
13772 * )
13773 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13774 host_xm_include_list="${host_xm_include_list} config/$f"
13775 ;;
13776 esac
13777 done
13778
13779 build_xm_file_list=
13780 for f in $build_xm_file; do
13781 case $f in
13782 ansidecl.h )
13783 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13784 build_xm_include_list="${build_xm_include_list} $f"
13785 ;;
13786 auto-build.h | auto-host.h )
13787 build_xm_file_list="${build_xm_file_list} $f"
13788 build_xm_include_list="${build_xm_include_list} $f"
13789 ;;
13790 * )
13791 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13792 build_xm_include_list="${build_xm_include_list} config/$f"
13793 ;;
13794 esac
13795 done
13796
13797 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13798 # cross-compiler which does not use the native headers and libraries.
13799 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13800 CROSS=
13801 ALL=all.internal
13802 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13803 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13804
13805 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13806 test x$build != x$host || test "x$with_build_sysroot" != x; then
13807 if test "x$with_build_sysroot" != x; then
13808 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13809 else
13810 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13811 fi
13812
13813 if test x$host != x$target
13814 then
13815 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13816 ALL=all.cross
13817 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13818 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13819 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13820 fi
13821
13822 if test "x$with_build_sysroot" != "x"; then
13823 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13824 elif test "x$with_sysroot" = x; then
13825 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13826 elif test "x$with_sysroot" = xyes; then
13827 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13828 else
13829 target_header_dir="${with_sysroot}${native_system_header_dir}"
13830 fi
13831 else
13832 target_header_dir=${native_system_header_dir}
13833 fi
13834
13835 # If this is a cross-compiler that does not
13836 # have its own set of headers then define
13837 # inhibit_libc
13838
13839 # If this is using newlib, without having the headers available now,
13840 # then define inhibit_libc in LIBGCC2_CFLAGS.
13841 # This prevents libgcc2 from containing any code which requires libc
13842 # support.
13843 : ${inhibit_libc=false}
13844 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13845 test x$with_newlib = xyes ; } &&
13846 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13847 inhibit_libc=true
13848 fi
13849
13850
13851 # When building gcc with a cross-compiler, we need to adjust things so
13852 # that the generator programs are still built with the native compiler.
13853 # Also, we cannot run fixincludes.
13854
13855 # These are the normal (build=host) settings:
13856 CC_FOR_BUILD='$(CC)'
13857 CXX_FOR_BUILD='$(CXX)'
13858 BUILD_CFLAGS='$(ALL_CFLAGS)'
13859 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13860 BUILD_LDFLAGS='$(LDFLAGS)'
13861 STMP_FIXINC=stmp-fixinc
13862
13863 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
13864 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
13865
13866 # And these apply if build != host, or we are generating coverage data
13867 if test x$build != x$host || test "x$coverage_flags" != x
13868 then
13869 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13870 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
13871 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13872
13873 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
13874 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
13875 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
13876 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
13877 fi
13878
13879
13880
13881 # Expand extra_headers to include complete path.
13882 # This substitutes for lots of t-* files.
13883 extra_headers_list=
13884 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13885 for file in ${extra_headers} ; do
13886 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13887 done
13888
13889 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13890 if test x"$use_gcc_tgmath" = xyes
13891 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13892 fi
13893
13894 # Define collect2 in Makefile.
13895 case $host_can_use_collect2 in
13896 no) collect2= ;;
13897 *) collect2='collect2$(exeext)' ;;
13898 esac
13899
13900
13901 # Add a definition of USE_COLLECT2 if system wants one.
13902 case $use_collect2 in
13903 no) use_collect2= ;;
13904 "") ;;
13905 *)
13906 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13907 xm_defines="${xm_defines} USE_COLLECT2"
13908 case $host_can_use_collect2 in
13909 no)
13910 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13911 ;;
13912 esac
13913 ;;
13914 esac
13915
13916
13917 cat >>confdefs.h <<_ACEOF
13918 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13919 _ACEOF
13920
13921
13922 # ---------------------------
13923 # Assembler & linker features
13924 # ---------------------------
13925
13926 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13927 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13928 # However when ld-new is first executed from the build tree, libtool will
13929 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13930 # to the build tree. While doing this we need to use the previous-stage
13931 # linker, or we have an infinite loop. The presence of a shell script as
13932 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13933 # the gcc/collect-ld script. So we need to know how libtool works, or
13934 # exec-tool will fail.
13935
13936
13937 case `pwd` in
13938 *\ * | *\ *)
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13940 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13941 esac
13942
13943
13944
13945 macro_version='2.2.7a'
13946 macro_revision='1.3134'
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960 ltmain="$ac_aux_dir/ltmain.sh"
13961
13962 # Backslashify metacharacters that are still active within
13963 # double-quoted strings.
13964 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13965
13966 # Same as above, but do not quote variable references.
13967 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13968
13969 # Sed substitution to delay expansion of an escaped shell variable in a
13970 # double_quote_subst'ed string.
13971 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13972
13973 # Sed substitution to delay expansion of an escaped single quote.
13974 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13975
13976 # Sed substitution to avoid accidental globbing in evaled expressions
13977 no_glob_subst='s/\*/\\\*/g'
13978
13979 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13980 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13981 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13982
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13984 $as_echo_n "checking how to print strings... " >&6; }
13985 # Test print first, because it will be a builtin if present.
13986 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13987 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13988 ECHO='print -r --'
13989 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13990 ECHO='printf %s\n'
13991 else
13992 # Use this function as a fallback that always works.
13993 func_fallback_echo ()
13994 {
13995 eval 'cat <<_LTECHO_EOF
13996 $1
13997 _LTECHO_EOF'
13998 }
13999 ECHO='func_fallback_echo'
14000 fi
14001
14002 # func_echo_all arg...
14003 # Invoke $ECHO with all args, space-separated.
14004 func_echo_all ()
14005 {
14006 $ECHO ""
14007 }
14008
14009 case "$ECHO" in
14010 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
14011 $as_echo "printf" >&6; } ;;
14012 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
14013 $as_echo "print -r" >&6; } ;;
14014 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
14015 $as_echo "cat" >&6; } ;;
14016 esac
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14032 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14033 if ${ac_cv_path_SED+:} false; then :
14034 $as_echo_n "(cached) " >&6
14035 else
14036 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14037 for ac_i in 1 2 3 4 5 6 7; do
14038 ac_script="$ac_script$as_nl$ac_script"
14039 done
14040 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14041 { ac_script=; unset ac_script;}
14042 if test -z "$SED"; then
14043 ac_path_SED_found=false
14044 # Loop through the user's path and test for each of PROGNAME-LIST
14045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14046 for as_dir in $PATH
14047 do
14048 IFS=$as_save_IFS
14049 test -z "$as_dir" && as_dir=.
14050 for ac_prog in sed gsed; do
14051 for ac_exec_ext in '' $ac_executable_extensions; do
14052 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14053 as_fn_executable_p "$ac_path_SED" || continue
14054 # Check for GNU ac_path_SED and select it if it is found.
14055 # Check for GNU $ac_path_SED
14056 case `"$ac_path_SED" --version 2>&1` in
14057 *GNU*)
14058 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14059 *)
14060 ac_count=0
14061 $as_echo_n 0123456789 >"conftest.in"
14062 while :
14063 do
14064 cat "conftest.in" "conftest.in" >"conftest.tmp"
14065 mv "conftest.tmp" "conftest.in"
14066 cp "conftest.in" "conftest.nl"
14067 $as_echo '' >> "conftest.nl"
14068 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14069 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14070 as_fn_arith $ac_count + 1 && ac_count=$as_val
14071 if test $ac_count -gt ${ac_path_SED_max-0}; then
14072 # Best one so far, save it but keep looking for a better one
14073 ac_cv_path_SED="$ac_path_SED"
14074 ac_path_SED_max=$ac_count
14075 fi
14076 # 10*(2^10) chars as input seems more than enough
14077 test $ac_count -gt 10 && break
14078 done
14079 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14080 esac
14081
14082 $ac_path_SED_found && break 3
14083 done
14084 done
14085 done
14086 IFS=$as_save_IFS
14087 if test -z "$ac_cv_path_SED"; then
14088 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14089 fi
14090 else
14091 ac_cv_path_SED=$SED
14092 fi
14093
14094 fi
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14096 $as_echo "$ac_cv_path_SED" >&6; }
14097 SED="$ac_cv_path_SED"
14098 rm -f conftest.sed
14099
14100 test -z "$SED" && SED=sed
14101 Xsed="$SED -e 1s/^X//"
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
14114 $as_echo_n "checking for fgrep... " >&6; }
14115 if ${ac_cv_path_FGREP+:} false; then :
14116 $as_echo_n "(cached) " >&6
14117 else
14118 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
14119 then ac_cv_path_FGREP="$GREP -F"
14120 else
14121 if test -z "$FGREP"; then
14122 ac_path_FGREP_found=false
14123 # Loop through the user's path and test for each of PROGNAME-LIST
14124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14125 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
14126 do
14127 IFS=$as_save_IFS
14128 test -z "$as_dir" && as_dir=.
14129 for ac_prog in fgrep; do
14130 for ac_exec_ext in '' $ac_executable_extensions; do
14131 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
14132 as_fn_executable_p "$ac_path_FGREP" || continue
14133 # Check for GNU ac_path_FGREP and select it if it is found.
14134 # Check for GNU $ac_path_FGREP
14135 case `"$ac_path_FGREP" --version 2>&1` in
14136 *GNU*)
14137 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
14138 *)
14139 ac_count=0
14140 $as_echo_n 0123456789 >"conftest.in"
14141 while :
14142 do
14143 cat "conftest.in" "conftest.in" >"conftest.tmp"
14144 mv "conftest.tmp" "conftest.in"
14145 cp "conftest.in" "conftest.nl"
14146 $as_echo 'FGREP' >> "conftest.nl"
14147 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
14148 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14149 as_fn_arith $ac_count + 1 && ac_count=$as_val
14150 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
14151 # Best one so far, save it but keep looking for a better one
14152 ac_cv_path_FGREP="$ac_path_FGREP"
14153 ac_path_FGREP_max=$ac_count
14154 fi
14155 # 10*(2^10) chars as input seems more than enough
14156 test $ac_count -gt 10 && break
14157 done
14158 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14159 esac
14160
14161 $ac_path_FGREP_found && break 3
14162 done
14163 done
14164 done
14165 IFS=$as_save_IFS
14166 if test -z "$ac_cv_path_FGREP"; then
14167 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14168 fi
14169 else
14170 ac_cv_path_FGREP=$FGREP
14171 fi
14172
14173 fi
14174 fi
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14176 $as_echo "$ac_cv_path_FGREP" >&6; }
14177 FGREP="$ac_cv_path_FGREP"
14178
14179
14180 test -z "$GREP" && GREP=grep
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200 # Check whether --with-gnu-ld was given.
14201 if test "${with_gnu_ld+set}" = set; then :
14202 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14203 else
14204 with_gnu_ld=no
14205 fi
14206
14207 ac_prog=ld
14208 if test "$GCC" = yes; then
14209 # Check if gcc -print-prog-name=ld gives a path.
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14211 $as_echo_n "checking for ld used by $CC... " >&6; }
14212 case $host in
14213 *-*-mingw*)
14214 # gcc leaves a trailing carriage return which upsets mingw
14215 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14216 *)
14217 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14218 esac
14219 case $ac_prog in
14220 # Accept absolute paths.
14221 [\\/]* | ?:[\\/]*)
14222 re_direlt='/[^/][^/]*/\.\./'
14223 # Canonicalize the pathname of ld
14224 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14225 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14226 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14227 done
14228 test -z "$LD" && LD="$ac_prog"
14229 ;;
14230 "")
14231 # If it fails, then pretend we aren't using GCC.
14232 ac_prog=ld
14233 ;;
14234 *)
14235 # If it is relative, then search for the first ld in PATH.
14236 with_gnu_ld=unknown
14237 ;;
14238 esac
14239 elif test "$with_gnu_ld" = yes; then
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14241 $as_echo_n "checking for GNU ld... " >&6; }
14242 else
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14244 $as_echo_n "checking for non-GNU ld... " >&6; }
14245 fi
14246 if ${lt_cv_path_LD+:} false; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14249 if test -z "$LD"; then
14250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14251 for ac_dir in $PATH; do
14252 IFS="$lt_save_ifs"
14253 test -z "$ac_dir" && ac_dir=.
14254 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14255 lt_cv_path_LD="$ac_dir/$ac_prog"
14256 # Check to see if the program is GNU ld. I'd rather use --version,
14257 # but apparently some variants of GNU ld only accept -v.
14258 # Break only if it was the GNU/non-GNU ld that we prefer.
14259 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14260 *GNU* | *'with BFD'*)
14261 test "$with_gnu_ld" != no && break
14262 ;;
14263 *)
14264 test "$with_gnu_ld" != yes && break
14265 ;;
14266 esac
14267 fi
14268 done
14269 IFS="$lt_save_ifs"
14270 else
14271 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14272 fi
14273 fi
14274
14275 LD="$lt_cv_path_LD"
14276 if test -n "$LD"; then
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14278 $as_echo "$LD" >&6; }
14279 else
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14281 $as_echo "no" >&6; }
14282 fi
14283 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14285 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14286 if ${lt_cv_prog_gnu_ld+:} false; then :
14287 $as_echo_n "(cached) " >&6
14288 else
14289 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14290 case `$LD -v 2>&1 </dev/null` in
14291 *GNU* | *'with BFD'*)
14292 lt_cv_prog_gnu_ld=yes
14293 ;;
14294 *)
14295 lt_cv_prog_gnu_ld=no
14296 ;;
14297 esac
14298 fi
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14300 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14301 with_gnu_ld=$lt_cv_prog_gnu_ld
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
14312 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
14313 if ${lt_cv_path_NM+:} false; then :
14314 $as_echo_n "(cached) " >&6
14315 else
14316 if test -n "$NM"; then
14317 # Let the user override the test.
14318 lt_cv_path_NM="$NM"
14319 else
14320 lt_nm_to_check="${ac_tool_prefix}nm"
14321 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14322 lt_nm_to_check="$lt_nm_to_check nm"
14323 fi
14324 for lt_tmp_nm in $lt_nm_to_check; do
14325 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14326 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14327 IFS="$lt_save_ifs"
14328 test -z "$ac_dir" && ac_dir=.
14329 tmp_nm="$ac_dir/$lt_tmp_nm"
14330 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14331 # Check to see if the nm accepts a BSD-compat flag.
14332 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14333 # nm: unknown option "B" ignored
14334 # Tru64's nm complains that /dev/null is an invalid object file
14335 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14336 */dev/null* | *'Invalid file or object type'*)
14337 lt_cv_path_NM="$tmp_nm -B"
14338 break
14339 ;;
14340 *)
14341 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14342 */dev/null*)
14343 lt_cv_path_NM="$tmp_nm -p"
14344 break
14345 ;;
14346 *)
14347 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14348 continue # so that we can try to find one that supports BSD flags
14349 ;;
14350 esac
14351 ;;
14352 esac
14353 fi
14354 done
14355 IFS="$lt_save_ifs"
14356 done
14357 : ${lt_cv_path_NM=no}
14358 fi
14359 fi
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14361 $as_echo "$lt_cv_path_NM" >&6; }
14362 if test "$lt_cv_path_NM" != "no"; then
14363 NM="$lt_cv_path_NM"
14364 else
14365 # Didn't find any BSD compatible name lister, look for dumpbin.
14366 if test -n "$DUMPBIN"; then :
14367 # Let the user override the test.
14368 else
14369 if test -n "$ac_tool_prefix"; then
14370 for ac_prog in dumpbin "link -dump"
14371 do
14372 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14373 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14375 $as_echo_n "checking for $ac_word... " >&6; }
14376 if ${ac_cv_prog_DUMPBIN+:} false; then :
14377 $as_echo_n "(cached) " >&6
14378 else
14379 if test -n "$DUMPBIN"; then
14380 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14381 else
14382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14383 for as_dir in $PATH
14384 do
14385 IFS=$as_save_IFS
14386 test -z "$as_dir" && as_dir=.
14387 for ac_exec_ext in '' $ac_executable_extensions; do
14388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14389 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14391 break 2
14392 fi
14393 done
14394 done
14395 IFS=$as_save_IFS
14396
14397 fi
14398 fi
14399 DUMPBIN=$ac_cv_prog_DUMPBIN
14400 if test -n "$DUMPBIN"; then
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14402 $as_echo "$DUMPBIN" >&6; }
14403 else
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14405 $as_echo "no" >&6; }
14406 fi
14407
14408
14409 test -n "$DUMPBIN" && break
14410 done
14411 fi
14412 if test -z "$DUMPBIN"; then
14413 ac_ct_DUMPBIN=$DUMPBIN
14414 for ac_prog in dumpbin "link -dump"
14415 do
14416 # Extract the first word of "$ac_prog", so it can be a program name with args.
14417 set dummy $ac_prog; ac_word=$2
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14419 $as_echo_n "checking for $ac_word... " >&6; }
14420 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
14421 $as_echo_n "(cached) " >&6
14422 else
14423 if test -n "$ac_ct_DUMPBIN"; then
14424 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14425 else
14426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14427 for as_dir in $PATH
14428 do
14429 IFS=$as_save_IFS
14430 test -z "$as_dir" && as_dir=.
14431 for ac_exec_ext in '' $ac_executable_extensions; do
14432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14433 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14435 break 2
14436 fi
14437 done
14438 done
14439 IFS=$as_save_IFS
14440
14441 fi
14442 fi
14443 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14444 if test -n "$ac_ct_DUMPBIN"; then
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14446 $as_echo "$ac_ct_DUMPBIN" >&6; }
14447 else
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14449 $as_echo "no" >&6; }
14450 fi
14451
14452
14453 test -n "$ac_ct_DUMPBIN" && break
14454 done
14455
14456 if test "x$ac_ct_DUMPBIN" = x; then
14457 DUMPBIN=":"
14458 else
14459 case $cross_compiling:$ac_tool_warned in
14460 yes:)
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14463 ac_tool_warned=yes ;;
14464 esac
14465 DUMPBIN=$ac_ct_DUMPBIN
14466 fi
14467 fi
14468
14469 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14470 *COFF*)
14471 DUMPBIN="$DUMPBIN -symbols"
14472 ;;
14473 *)
14474 DUMPBIN=:
14475 ;;
14476 esac
14477 fi
14478
14479 if test "$DUMPBIN" != ":"; then
14480 NM="$DUMPBIN"
14481 fi
14482 fi
14483 test -z "$NM" && NM=nm
14484
14485
14486
14487
14488
14489
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14491 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14492 if ${lt_cv_nm_interface+:} false; then :
14493 $as_echo_n "(cached) " >&6
14494 else
14495 lt_cv_nm_interface="BSD nm"
14496 echo "int some_variable = 0;" > conftest.$ac_ext
14497 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14498 (eval "$ac_compile" 2>conftest.err)
14499 cat conftest.err >&5
14500 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14501 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14502 cat conftest.err >&5
14503 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14504 cat conftest.out >&5
14505 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14506 lt_cv_nm_interface="MS dumpbin"
14507 fi
14508 rm -f conftest*
14509 fi
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14511 $as_echo "$lt_cv_nm_interface" >&6; }
14512
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14514 $as_echo_n "checking whether ln -s works... " >&6; }
14515 LN_S=$as_ln_s
14516 if test "$LN_S" = "ln -s"; then
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14518 $as_echo "yes" >&6; }
14519 else
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14521 $as_echo "no, using $LN_S" >&6; }
14522 fi
14523
14524 # find the maximum length of command line arguments
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14526 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14527 if ${lt_cv_sys_max_cmd_len+:} false; then :
14528 $as_echo_n "(cached) " >&6
14529 else
14530 i=0
14531 teststring="ABCD"
14532
14533 case $build_os in
14534 msdosdjgpp*)
14535 # On DJGPP, this test can blow up pretty badly due to problems in libc
14536 # (any single argument exceeding 2000 bytes causes a buffer overrun
14537 # during glob expansion). Even if it were fixed, the result of this
14538 # check would be larger than it should be.
14539 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14540 ;;
14541
14542 gnu*)
14543 # Under GNU Hurd, this test is not required because there is
14544 # no limit to the length of command line arguments.
14545 # Libtool will interpret -1 as no limit whatsoever
14546 lt_cv_sys_max_cmd_len=-1;
14547 ;;
14548
14549 cygwin* | mingw* | cegcc*)
14550 # On Win9x/ME, this test blows up -- it succeeds, but takes
14551 # about 5 minutes as the teststring grows exponentially.
14552 # Worse, since 9x/ME are not pre-emptively multitasking,
14553 # you end up with a "frozen" computer, even though with patience
14554 # the test eventually succeeds (with a max line length of 256k).
14555 # Instead, let's just punt: use the minimum linelength reported by
14556 # all of the supported platforms: 8192 (on NT/2K/XP).
14557 lt_cv_sys_max_cmd_len=8192;
14558 ;;
14559
14560 mint*)
14561 # On MiNT this can take a long time and run out of memory.
14562 lt_cv_sys_max_cmd_len=8192;
14563 ;;
14564
14565 amigaos*)
14566 # On AmigaOS with pdksh, this test takes hours, literally.
14567 # So we just punt and use a minimum line length of 8192.
14568 lt_cv_sys_max_cmd_len=8192;
14569 ;;
14570
14571 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14572 # This has been around since 386BSD, at least. Likely further.
14573 if test -x /sbin/sysctl; then
14574 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14575 elif test -x /usr/sbin/sysctl; then
14576 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14577 else
14578 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14579 fi
14580 # And add a safety zone
14581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14583 ;;
14584
14585 interix*)
14586 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14587 lt_cv_sys_max_cmd_len=196608
14588 ;;
14589
14590 osf*)
14591 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14592 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14593 # nice to cause kernel panics so lets avoid the loop below.
14594 # First set a reasonable default.
14595 lt_cv_sys_max_cmd_len=16384
14596 #
14597 if test -x /sbin/sysconfig; then
14598 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14599 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14600 esac
14601 fi
14602 ;;
14603 sco3.2v5*)
14604 lt_cv_sys_max_cmd_len=102400
14605 ;;
14606 sysv5* | sco5v6* | sysv4.2uw2*)
14607 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14608 if test -n "$kargmax"; then
14609 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14610 else
14611 lt_cv_sys_max_cmd_len=32768
14612 fi
14613 ;;
14614 *)
14615 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14616 if test -n "$lt_cv_sys_max_cmd_len"; then
14617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14619 else
14620 # Make teststring a little bigger before we do anything with it.
14621 # a 1K string should be a reasonable start.
14622 for i in 1 2 3 4 5 6 7 8 ; do
14623 teststring=$teststring$teststring
14624 done
14625 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14626 # If test is not a shell built-in, we'll probably end up computing a
14627 # maximum length that is only half of the actual maximum length, but
14628 # we can't tell.
14629 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14630 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14631 test $i != 17 # 1/2 MB should be enough
14632 do
14633 i=`expr $i + 1`
14634 teststring=$teststring$teststring
14635 done
14636 # Only check the string length outside the loop.
14637 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14638 teststring=
14639 # Add a significant safety factor because C++ compilers can tack on
14640 # massive amounts of additional arguments before passing them to the
14641 # linker. It appears as though 1/2 is a usable value.
14642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14643 fi
14644 ;;
14645 esac
14646
14647 fi
14648
14649 if test -n $lt_cv_sys_max_cmd_len ; then
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14651 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14652 else
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14654 $as_echo "none" >&6; }
14655 fi
14656 max_cmd_len=$lt_cv_sys_max_cmd_len
14657
14658
14659
14660
14661
14662
14663 : ${CP="cp -f"}
14664 : ${MV="mv -f"}
14665 : ${RM="rm -f"}
14666
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14668 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14669 # Try some XSI features
14670 xsi_shell=no
14671 ( _lt_dummy="a/b/c"
14672 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14673 = c,a/b,, \
14674 && eval 'test $(( 1 + 1 )) -eq 2 \
14675 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14676 && xsi_shell=yes
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14678 $as_echo "$xsi_shell" >&6; }
14679
14680
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14682 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14683 lt_shell_append=no
14684 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14685 >/dev/null 2>&1 \
14686 && lt_shell_append=yes
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14688 $as_echo "$lt_shell_append" >&6; }
14689
14690
14691 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14692 lt_unset=unset
14693 else
14694 lt_unset=false
14695 fi
14696
14697
14698
14699
14700
14701 # test EBCDIC or ASCII
14702 case `echo X|tr X '\101'` in
14703 A) # ASCII based system
14704 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14705 lt_SP2NL='tr \040 \012'
14706 lt_NL2SP='tr \015\012 \040\040'
14707 ;;
14708 *) # EBCDIC based system
14709 lt_SP2NL='tr \100 \n'
14710 lt_NL2SP='tr \r\n \100\100'
14711 ;;
14712 esac
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14723 $as_echo_n "checking for $LD option to reload object files... " >&6; }
14724 if ${lt_cv_ld_reload_flag+:} false; then :
14725 $as_echo_n "(cached) " >&6
14726 else
14727 lt_cv_ld_reload_flag='-r'
14728 fi
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14730 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14731 reload_flag=$lt_cv_ld_reload_flag
14732 case $reload_flag in
14733 "" | " "*) ;;
14734 *) reload_flag=" $reload_flag" ;;
14735 esac
14736 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14737 case $host_os in
14738 darwin*)
14739 if test "$GCC" = yes; then
14740 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14741 else
14742 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14743 fi
14744 ;;
14745 esac
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755 if test -n "$ac_tool_prefix"; then
14756 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14757 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14759 $as_echo_n "checking for $ac_word... " >&6; }
14760 if ${ac_cv_prog_OBJDUMP+:} false; then :
14761 $as_echo_n "(cached) " >&6
14762 else
14763 if test -n "$OBJDUMP"; then
14764 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14765 else
14766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14767 for as_dir in $PATH
14768 do
14769 IFS=$as_save_IFS
14770 test -z "$as_dir" && as_dir=.
14771 for ac_exec_ext in '' $ac_executable_extensions; do
14772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14773 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14775 break 2
14776 fi
14777 done
14778 done
14779 IFS=$as_save_IFS
14780
14781 fi
14782 fi
14783 OBJDUMP=$ac_cv_prog_OBJDUMP
14784 if test -n "$OBJDUMP"; then
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14786 $as_echo "$OBJDUMP" >&6; }
14787 else
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14789 $as_echo "no" >&6; }
14790 fi
14791
14792
14793 fi
14794 if test -z "$ac_cv_prog_OBJDUMP"; then
14795 ac_ct_OBJDUMP=$OBJDUMP
14796 # Extract the first word of "objdump", so it can be a program name with args.
14797 set dummy objdump; ac_word=$2
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14799 $as_echo_n "checking for $ac_word... " >&6; }
14800 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14801 $as_echo_n "(cached) " >&6
14802 else
14803 if test -n "$ac_ct_OBJDUMP"; then
14804 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14805 else
14806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14807 for as_dir in $PATH
14808 do
14809 IFS=$as_save_IFS
14810 test -z "$as_dir" && as_dir=.
14811 for ac_exec_ext in '' $ac_executable_extensions; do
14812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14813 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14815 break 2
14816 fi
14817 done
14818 done
14819 IFS=$as_save_IFS
14820
14821 fi
14822 fi
14823 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14824 if test -n "$ac_ct_OBJDUMP"; then
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14826 $as_echo "$ac_ct_OBJDUMP" >&6; }
14827 else
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14829 $as_echo "no" >&6; }
14830 fi
14831
14832 if test "x$ac_ct_OBJDUMP" = x; then
14833 OBJDUMP="false"
14834 else
14835 case $cross_compiling:$ac_tool_warned in
14836 yes:)
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14839 ac_tool_warned=yes ;;
14840 esac
14841 OBJDUMP=$ac_ct_OBJDUMP
14842 fi
14843 else
14844 OBJDUMP="$ac_cv_prog_OBJDUMP"
14845 fi
14846
14847 test -z "$OBJDUMP" && OBJDUMP=objdump
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14858 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
14859 if ${lt_cv_deplibs_check_method+:} false; then :
14860 $as_echo_n "(cached) " >&6
14861 else
14862 lt_cv_file_magic_cmd='$MAGIC_CMD'
14863 lt_cv_file_magic_test_file=
14864 lt_cv_deplibs_check_method='unknown'
14865 # Need to set the preceding variable on all platforms that support
14866 # interlibrary dependencies.
14867 # 'none' -- dependencies not supported.
14868 # `unknown' -- same as none, but documents that we really don't know.
14869 # 'pass_all' -- all dependencies passed with no checks.
14870 # 'test_compile' -- check by making test program.
14871 # 'file_magic [[regex]]' -- check by looking for files in library path
14872 # which responds to the $file_magic_cmd with a given extended regex.
14873 # If you have `file' or equivalent on your system and you're not sure
14874 # whether `pass_all' will *always* work, you probably want this one.
14875
14876 case $host_os in
14877 aix[4-9]*)
14878 lt_cv_deplibs_check_method=pass_all
14879 ;;
14880
14881 beos*)
14882 lt_cv_deplibs_check_method=pass_all
14883 ;;
14884
14885 bsdi[45]*)
14886 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14887 lt_cv_file_magic_cmd='/usr/bin/file -L'
14888 lt_cv_file_magic_test_file=/shlib/libc.so
14889 ;;
14890
14891 cygwin*)
14892 # func_win32_libid is a shell function defined in ltmain.sh
14893 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14894 lt_cv_file_magic_cmd='func_win32_libid'
14895 ;;
14896
14897 mingw* | pw32*)
14898 # Base MSYS/MinGW do not provide the 'file' command needed by
14899 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14900 # unless we find 'file', for example because we are cross-compiling.
14901 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14902 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14903 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14904 lt_cv_file_magic_cmd='func_win32_libid'
14905 else
14906 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14907 lt_cv_file_magic_cmd='$OBJDUMP -f'
14908 fi
14909 ;;
14910
14911 cegcc*)
14912 # use the weaker test based on 'objdump'. See mingw*.
14913 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14914 lt_cv_file_magic_cmd='$OBJDUMP -f'
14915 ;;
14916
14917 darwin* | rhapsody*)
14918 lt_cv_deplibs_check_method=pass_all
14919 ;;
14920
14921 freebsd* | dragonfly*)
14922 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14923 case $host_cpu in
14924 i*86 )
14925 # Not sure whether the presence of OpenBSD here was a mistake.
14926 # Let's accept both of them until this is cleared up.
14927 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14928 lt_cv_file_magic_cmd=/usr/bin/file
14929 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14930 ;;
14931 esac
14932 else
14933 lt_cv_deplibs_check_method=pass_all
14934 fi
14935 ;;
14936
14937 gnu*)
14938 lt_cv_deplibs_check_method=pass_all
14939 ;;
14940
14941 haiku*)
14942 lt_cv_deplibs_check_method=pass_all
14943 ;;
14944
14945 hpux10.20* | hpux11*)
14946 lt_cv_file_magic_cmd=/usr/bin/file
14947 case $host_cpu in
14948 ia64*)
14949 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14950 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14951 ;;
14952 hppa*64*)
14953 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]'
14954 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14955 ;;
14956 *)
14957 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14958 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14959 ;;
14960 esac
14961 ;;
14962
14963 interix[3-9]*)
14964 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14966 ;;
14967
14968 irix5* | irix6* | nonstopux*)
14969 case $LD in
14970 *-32|*"-32 ") libmagic=32-bit;;
14971 *-n32|*"-n32 ") libmagic=N32;;
14972 *-64|*"-64 ") libmagic=64-bit;;
14973 *) libmagic=never-match;;
14974 esac
14975 lt_cv_deplibs_check_method=pass_all
14976 ;;
14977
14978 # This must be Linux ELF.
14979 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14980 lt_cv_deplibs_check_method=pass_all
14981 ;;
14982
14983 netbsd*)
14984 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14985 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14986 else
14987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14988 fi
14989 ;;
14990
14991 newos6*)
14992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14993 lt_cv_file_magic_cmd=/usr/bin/file
14994 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14995 ;;
14996
14997 *nto* | *qnx*)
14998 lt_cv_deplibs_check_method=pass_all
14999 ;;
15000
15001 openbsd*)
15002 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15004 else
15005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15006 fi
15007 ;;
15008
15009 osf3* | osf4* | osf5*)
15010 lt_cv_deplibs_check_method=pass_all
15011 ;;
15012
15013 rdos*)
15014 lt_cv_deplibs_check_method=pass_all
15015 ;;
15016
15017 solaris*)
15018 lt_cv_deplibs_check_method=pass_all
15019 ;;
15020
15021 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15022 lt_cv_deplibs_check_method=pass_all
15023 ;;
15024
15025 sysv4 | sysv4.3*)
15026 case $host_vendor in
15027 motorola)
15028 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]'
15029 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15030 ;;
15031 ncr)
15032 lt_cv_deplibs_check_method=pass_all
15033 ;;
15034 sequent)
15035 lt_cv_file_magic_cmd='/bin/file'
15036 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15037 ;;
15038 sni)
15039 lt_cv_file_magic_cmd='/bin/file'
15040 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15041 lt_cv_file_magic_test_file=/lib/libc.so
15042 ;;
15043 siemens)
15044 lt_cv_deplibs_check_method=pass_all
15045 ;;
15046 pc)
15047 lt_cv_deplibs_check_method=pass_all
15048 ;;
15049 esac
15050 ;;
15051
15052 tpf*)
15053 lt_cv_deplibs_check_method=pass_all
15054 ;;
15055 esac
15056
15057 fi
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
15059 $as_echo "$lt_cv_deplibs_check_method" >&6; }
15060 file_magic_cmd=$lt_cv_file_magic_cmd
15061 deplibs_check_method=$lt_cv_deplibs_check_method
15062 test -z "$deplibs_check_method" && deplibs_check_method=unknown
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075 if test -n "$ac_tool_prefix"; then
15076 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15077 set dummy ${ac_tool_prefix}ar; ac_word=$2
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15079 $as_echo_n "checking for $ac_word... " >&6; }
15080 if ${ac_cv_prog_AR+:} false; then :
15081 $as_echo_n "(cached) " >&6
15082 else
15083 if test -n "$AR"; then
15084 ac_cv_prog_AR="$AR" # Let the user override the test.
15085 else
15086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15087 for as_dir in $PATH
15088 do
15089 IFS=$as_save_IFS
15090 test -z "$as_dir" && as_dir=.
15091 for ac_exec_ext in '' $ac_executable_extensions; do
15092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15093 ac_cv_prog_AR="${ac_tool_prefix}ar"
15094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15095 break 2
15096 fi
15097 done
15098 done
15099 IFS=$as_save_IFS
15100
15101 fi
15102 fi
15103 AR=$ac_cv_prog_AR
15104 if test -n "$AR"; then
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15106 $as_echo "$AR" >&6; }
15107 else
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15109 $as_echo "no" >&6; }
15110 fi
15111
15112
15113 fi
15114 if test -z "$ac_cv_prog_AR"; then
15115 ac_ct_AR=$AR
15116 # Extract the first word of "ar", so it can be a program name with args.
15117 set dummy ar; ac_word=$2
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15119 $as_echo_n "checking for $ac_word... " >&6; }
15120 if ${ac_cv_prog_ac_ct_AR+:} false; then :
15121 $as_echo_n "(cached) " >&6
15122 else
15123 if test -n "$ac_ct_AR"; then
15124 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15125 else
15126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15127 for as_dir in $PATH
15128 do
15129 IFS=$as_save_IFS
15130 test -z "$as_dir" && as_dir=.
15131 for ac_exec_ext in '' $ac_executable_extensions; do
15132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15133 ac_cv_prog_ac_ct_AR="ar"
15134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15135 break 2
15136 fi
15137 done
15138 done
15139 IFS=$as_save_IFS
15140
15141 fi
15142 fi
15143 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15144 if test -n "$ac_ct_AR"; then
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
15146 $as_echo "$ac_ct_AR" >&6; }
15147 else
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15149 $as_echo "no" >&6; }
15150 fi
15151
15152 if test "x$ac_ct_AR" = x; then
15153 AR="false"
15154 else
15155 case $cross_compiling:$ac_tool_warned in
15156 yes:)
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15159 ac_tool_warned=yes ;;
15160 esac
15161 AR=$ac_ct_AR
15162 fi
15163 else
15164 AR="$ac_cv_prog_AR"
15165 fi
15166
15167 test -z "$AR" && AR=ar
15168 test -z "$AR_FLAGS" && AR_FLAGS=cru
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180 if test -n "$ac_tool_prefix"; then
15181 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15182 set dummy ${ac_tool_prefix}strip; ac_word=$2
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15184 $as_echo_n "checking for $ac_word... " >&6; }
15185 if ${ac_cv_prog_STRIP+:} false; then :
15186 $as_echo_n "(cached) " >&6
15187 else
15188 if test -n "$STRIP"; then
15189 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15190 else
15191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15192 for as_dir in $PATH
15193 do
15194 IFS=$as_save_IFS
15195 test -z "$as_dir" && as_dir=.
15196 for ac_exec_ext in '' $ac_executable_extensions; do
15197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15198 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15200 break 2
15201 fi
15202 done
15203 done
15204 IFS=$as_save_IFS
15205
15206 fi
15207 fi
15208 STRIP=$ac_cv_prog_STRIP
15209 if test -n "$STRIP"; then
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15211 $as_echo "$STRIP" >&6; }
15212 else
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15214 $as_echo "no" >&6; }
15215 fi
15216
15217
15218 fi
15219 if test -z "$ac_cv_prog_STRIP"; then
15220 ac_ct_STRIP=$STRIP
15221 # Extract the first word of "strip", so it can be a program name with args.
15222 set dummy strip; ac_word=$2
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15224 $as_echo_n "checking for $ac_word... " >&6; }
15225 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15226 $as_echo_n "(cached) " >&6
15227 else
15228 if test -n "$ac_ct_STRIP"; then
15229 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15230 else
15231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15232 for as_dir in $PATH
15233 do
15234 IFS=$as_save_IFS
15235 test -z "$as_dir" && as_dir=.
15236 for ac_exec_ext in '' $ac_executable_extensions; do
15237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15238 ac_cv_prog_ac_ct_STRIP="strip"
15239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15240 break 2
15241 fi
15242 done
15243 done
15244 IFS=$as_save_IFS
15245
15246 fi
15247 fi
15248 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15249 if test -n "$ac_ct_STRIP"; then
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15251 $as_echo "$ac_ct_STRIP" >&6; }
15252 else
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15254 $as_echo "no" >&6; }
15255 fi
15256
15257 if test "x$ac_ct_STRIP" = x; then
15258 STRIP=":"
15259 else
15260 case $cross_compiling:$ac_tool_warned in
15261 yes:)
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15264 ac_tool_warned=yes ;;
15265 esac
15266 STRIP=$ac_ct_STRIP
15267 fi
15268 else
15269 STRIP="$ac_cv_prog_STRIP"
15270 fi
15271
15272 test -z "$STRIP" && STRIP=:
15273
15274
15275
15276
15277
15278
15279 if test -n "$ac_tool_prefix"; then
15280 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15281 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15283 $as_echo_n "checking for $ac_word... " >&6; }
15284 if ${ac_cv_prog_RANLIB+:} false; then :
15285 $as_echo_n "(cached) " >&6
15286 else
15287 if test -n "$RANLIB"; then
15288 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15289 else
15290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15291 for as_dir in $PATH
15292 do
15293 IFS=$as_save_IFS
15294 test -z "$as_dir" && as_dir=.
15295 for ac_exec_ext in '' $ac_executable_extensions; do
15296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15297 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15299 break 2
15300 fi
15301 done
15302 done
15303 IFS=$as_save_IFS
15304
15305 fi
15306 fi
15307 RANLIB=$ac_cv_prog_RANLIB
15308 if test -n "$RANLIB"; then
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15310 $as_echo "$RANLIB" >&6; }
15311 else
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15313 $as_echo "no" >&6; }
15314 fi
15315
15316
15317 fi
15318 if test -z "$ac_cv_prog_RANLIB"; then
15319 ac_ct_RANLIB=$RANLIB
15320 # Extract the first word of "ranlib", so it can be a program name with args.
15321 set dummy ranlib; ac_word=$2
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15323 $as_echo_n "checking for $ac_word... " >&6; }
15324 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15325 $as_echo_n "(cached) " >&6
15326 else
15327 if test -n "$ac_ct_RANLIB"; then
15328 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15329 else
15330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15331 for as_dir in $PATH
15332 do
15333 IFS=$as_save_IFS
15334 test -z "$as_dir" && as_dir=.
15335 for ac_exec_ext in '' $ac_executable_extensions; do
15336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15337 ac_cv_prog_ac_ct_RANLIB="ranlib"
15338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15339 break 2
15340 fi
15341 done
15342 done
15343 IFS=$as_save_IFS
15344
15345 fi
15346 fi
15347 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15348 if test -n "$ac_ct_RANLIB"; then
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15350 $as_echo "$ac_ct_RANLIB" >&6; }
15351 else
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15353 $as_echo "no" >&6; }
15354 fi
15355
15356 if test "x$ac_ct_RANLIB" = x; then
15357 RANLIB=":"
15358 else
15359 case $cross_compiling:$ac_tool_warned in
15360 yes:)
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15363 ac_tool_warned=yes ;;
15364 esac
15365 RANLIB=$ac_ct_RANLIB
15366 fi
15367 else
15368 RANLIB="$ac_cv_prog_RANLIB"
15369 fi
15370
15371 test -z "$RANLIB" && RANLIB=:
15372
15373
15374
15375
15376
15377
15378 # Determine commands to create old-style static archives.
15379 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15380 old_postinstall_cmds='chmod 644 $oldlib'
15381 old_postuninstall_cmds=
15382
15383 if test -n "$RANLIB"; then
15384 case $host_os in
15385 openbsd*)
15386 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15387 ;;
15388 *)
15389 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15390 ;;
15391 esac
15392 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15393 fi
15394
15395 case $host_os in
15396 darwin*)
15397 lock_old_archive_extraction=yes ;;
15398 *)
15399 lock_old_archive_extraction=no ;;
15400 esac
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440 # If no C compiler was specified, use CC.
15441 LTCC=${LTCC-"$CC"}
15442
15443 # If no C compiler flags were specified, use CFLAGS.
15444 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15445
15446 # Allow CC to be a program name with arguments.
15447 compiler=$CC
15448
15449
15450 # Check for command to grab the raw symbol name followed by C symbol from nm.
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15452 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15453 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15454 $as_echo_n "(cached) " >&6
15455 else
15456
15457 # These are sane defaults that work on at least a few old systems.
15458 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15459
15460 # Character class describing NM global symbol codes.
15461 symcode='[BCDEGRST]'
15462
15463 # Regexp to match symbols that can be accessed directly from C.
15464 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15465
15466 # Define system-specific variables.
15467 case $host_os in
15468 aix*)
15469 symcode='[BCDT]'
15470 ;;
15471 cygwin* | mingw* | pw32* | cegcc*)
15472 symcode='[ABCDGISTW]'
15473 ;;
15474 hpux*)
15475 if test "$host_cpu" = ia64; then
15476 symcode='[ABCDEGRST]'
15477 fi
15478 ;;
15479 irix* | nonstopux*)
15480 symcode='[BCDEGRST]'
15481 ;;
15482 osf*)
15483 symcode='[BCDEGQRST]'
15484 ;;
15485 solaris*)
15486 symcode='[BDRT]'
15487 ;;
15488 sco3.2v5*)
15489 symcode='[DT]'
15490 ;;
15491 sysv4.2uw2*)
15492 symcode='[DT]'
15493 ;;
15494 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15495 symcode='[ABDT]'
15496 ;;
15497 sysv4)
15498 symcode='[DFNSTU]'
15499 ;;
15500 esac
15501
15502 # If we're using GNU nm, then use its standard symbol codes.
15503 case `$NM -V 2>&1` in
15504 *GNU* | *'with BFD'*)
15505 symcode='[ABCDGIRSTW]' ;;
15506 esac
15507
15508 # Transform an extracted symbol line into a proper C declaration.
15509 # Some systems (esp. on ia64) link data and code symbols differently,
15510 # so use this general approach.
15511 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15512
15513 # Transform an extracted symbol line into symbol name and symbol address
15514 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15515 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'"
15516
15517 # Handle CRLF in mingw tool chain
15518 opt_cr=
15519 case $build_os in
15520 mingw*)
15521 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15522 ;;
15523 esac
15524
15525 # Try without a prefix underscore, then with it.
15526 for ac_symprfx in "" "_"; do
15527
15528 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15529 symxfrm="\\1 $ac_symprfx\\2 \\2"
15530
15531 # Write the raw and C identifiers.
15532 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15533 # Fake it for dumpbin and say T for any non-static function
15534 # and D for any global variable.
15535 # Also find C++ and __fastcall symbols from MSVC++,
15536 # which start with @ or ?.
15537 lt_cv_sys_global_symbol_pipe="$AWK '"\
15538 " {last_section=section; section=\$ 3};"\
15539 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15540 " \$ 0!~/External *\|/{next};"\
15541 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15542 " {if(hide[section]) next};"\
15543 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15544 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15545 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15546 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15547 " ' prfx=^$ac_symprfx"
15548 else
15549 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15550 fi
15551
15552 # Check to see that the pipe works correctly.
15553 pipe_works=no
15554
15555 rm -f conftest*
15556 cat > conftest.$ac_ext <<_LT_EOF
15557 #ifdef __cplusplus
15558 extern "C" {
15559 #endif
15560 char nm_test_var;
15561 void nm_test_func(void);
15562 void nm_test_func(void){}
15563 #ifdef __cplusplus
15564 }
15565 #endif
15566 int main(){nm_test_var='a';nm_test_func();return(0);}
15567 _LT_EOF
15568
15569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15570 (eval $ac_compile) 2>&5
15571 ac_status=$?
15572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15573 test $ac_status = 0; }; then
15574 # Now try to grab the symbols.
15575 nlist=conftest.nm
15576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15577 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15578 ac_status=$?
15579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15580 test $ac_status = 0; } && test -s "$nlist"; then
15581 # Try sorting and uniquifying the output.
15582 if sort "$nlist" | uniq > "$nlist"T; then
15583 mv -f "$nlist"T "$nlist"
15584 else
15585 rm -f "$nlist"T
15586 fi
15587
15588 # Make sure that we snagged all the symbols we need.
15589 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15590 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15591 cat <<_LT_EOF > conftest.$ac_ext
15592 #ifdef __cplusplus
15593 extern "C" {
15594 #endif
15595
15596 _LT_EOF
15597 # Now generate the symbol file.
15598 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15599
15600 cat <<_LT_EOF >> conftest.$ac_ext
15601
15602 /* The mapping between symbol names and symbols. */
15603 const struct {
15604 const char *name;
15605 void *address;
15606 }
15607 lt__PROGRAM__LTX_preloaded_symbols[] =
15608 {
15609 { "@PROGRAM@", (void *) 0 },
15610 _LT_EOF
15611 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15612 cat <<\_LT_EOF >> conftest.$ac_ext
15613 {0, (void *) 0}
15614 };
15615
15616 /* This works around a problem in FreeBSD linker */
15617 #ifdef FREEBSD_WORKAROUND
15618 static const void *lt_preloaded_setup() {
15619 return lt__PROGRAM__LTX_preloaded_symbols;
15620 }
15621 #endif
15622
15623 #ifdef __cplusplus
15624 }
15625 #endif
15626 _LT_EOF
15627 # Now try linking the two files.
15628 mv conftest.$ac_objext conftstm.$ac_objext
15629 lt_save_LIBS="$LIBS"
15630 lt_save_CFLAGS="$CFLAGS"
15631 LIBS="conftstm.$ac_objext"
15632 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15634 (eval $ac_link) 2>&5
15635 ac_status=$?
15636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15637 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15638 pipe_works=yes
15639 fi
15640 LIBS="$lt_save_LIBS"
15641 CFLAGS="$lt_save_CFLAGS"
15642 else
15643 echo "cannot find nm_test_func in $nlist" >&5
15644 fi
15645 else
15646 echo "cannot find nm_test_var in $nlist" >&5
15647 fi
15648 else
15649 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15650 fi
15651 else
15652 echo "$progname: failed program was:" >&5
15653 cat conftest.$ac_ext >&5
15654 fi
15655 rm -rf conftest* conftst*
15656
15657 # Do not use the global_symbol_pipe unless it works.
15658 if test "$pipe_works" = yes; then
15659 break
15660 else
15661 lt_cv_sys_global_symbol_pipe=
15662 fi
15663 done
15664
15665 fi
15666
15667 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15668 lt_cv_sys_global_symbol_to_cdecl=
15669 fi
15670 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15672 $as_echo "failed" >&6; }
15673 else
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15675 $as_echo "ok" >&6; }
15676 fi
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699 # Check whether --enable-libtool-lock was given.
15700 if test "${enable_libtool_lock+set}" = set; then :
15701 enableval=$enable_libtool_lock;
15702 fi
15703
15704 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15705
15706 # Some flags need to be propagated to the compiler or linker for good
15707 # libtool support.
15708 case $host in
15709 ia64-*-hpux*)
15710 # Find out which ABI we are using.
15711 echo 'int i;' > conftest.$ac_ext
15712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15713 (eval $ac_compile) 2>&5
15714 ac_status=$?
15715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15716 test $ac_status = 0; }; then
15717 case `/usr/bin/file conftest.$ac_objext` in
15718 *ELF-32*)
15719 HPUX_IA64_MODE="32"
15720 ;;
15721 *ELF-64*)
15722 HPUX_IA64_MODE="64"
15723 ;;
15724 esac
15725 fi
15726 rm -rf conftest*
15727 ;;
15728 *-*-irix6*)
15729 # Find out which ABI we are using.
15730 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15732 (eval $ac_compile) 2>&5
15733 ac_status=$?
15734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15735 test $ac_status = 0; }; then
15736 if test "$lt_cv_prog_gnu_ld" = yes; then
15737 case `/usr/bin/file conftest.$ac_objext` in
15738 *32-bit*)
15739 LD="${LD-ld} -melf32bsmip"
15740 ;;
15741 *N32*)
15742 LD="${LD-ld} -melf32bmipn32"
15743 ;;
15744 *64-bit*)
15745 LD="${LD-ld} -melf64bmip"
15746 ;;
15747 esac
15748 else
15749 case `/usr/bin/file conftest.$ac_objext` in
15750 *32-bit*)
15751 LD="${LD-ld} -32"
15752 ;;
15753 *N32*)
15754 LD="${LD-ld} -n32"
15755 ;;
15756 *64-bit*)
15757 LD="${LD-ld} -64"
15758 ;;
15759 esac
15760 fi
15761 fi
15762 rm -rf conftest*
15763 ;;
15764
15765 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15766 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15767 # Find out which ABI we are using.
15768 echo 'int i;' > conftest.$ac_ext
15769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15770 (eval $ac_compile) 2>&5
15771 ac_status=$?
15772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15773 test $ac_status = 0; }; then
15774 case `/usr/bin/file conftest.o` in
15775 *32-bit*)
15776 case $host in
15777 x86_64-*kfreebsd*-gnu)
15778 LD="${LD-ld} -m elf_i386_fbsd"
15779 ;;
15780 x86_64-*linux*)
15781 case `/usr/bin/file conftest.o` in
15782 *x86-64*)
15783 LD="${LD-ld} -m elf32_x86_64"
15784 ;;
15785 *)
15786 LD="${LD-ld} -m elf_i386"
15787 ;;
15788 esac
15789 ;;
15790 powerpc64le-*linux*)
15791 LD="${LD-ld} -m elf32lppclinux"
15792 ;;
15793 powerpc64-*linux*)
15794 LD="${LD-ld} -m elf32ppclinux"
15795 ;;
15796 s390x-*linux*)
15797 LD="${LD-ld} -m elf_s390"
15798 ;;
15799 sparc64-*linux*)
15800 LD="${LD-ld} -m elf32_sparc"
15801 ;;
15802 esac
15803 ;;
15804 *64-bit*)
15805 case $host in
15806 x86_64-*kfreebsd*-gnu)
15807 LD="${LD-ld} -m elf_x86_64_fbsd"
15808 ;;
15809 x86_64-*linux*)
15810 LD="${LD-ld} -m elf_x86_64"
15811 ;;
15812 powerpcle-*linux*)
15813 LD="${LD-ld} -m elf64lppc"
15814 ;;
15815 powerpc-*linux*)
15816 LD="${LD-ld} -m elf64ppc"
15817 ;;
15818 s390*-*linux*|s390*-*tpf*)
15819 LD="${LD-ld} -m elf64_s390"
15820 ;;
15821 sparc*-*linux*)
15822 LD="${LD-ld} -m elf64_sparc"
15823 ;;
15824 esac
15825 ;;
15826 esac
15827 fi
15828 rm -rf conftest*
15829 ;;
15830
15831 *-*-sco3.2v5*)
15832 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15833 SAVE_CFLAGS="$CFLAGS"
15834 CFLAGS="$CFLAGS -belf"
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15836 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15837 if ${lt_cv_cc_needs_belf+:} false; then :
15838 $as_echo_n "(cached) " >&6
15839 else
15840 ac_ext=c
15841 ac_cpp='$CPP $CPPFLAGS'
15842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15845
15846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15847 /* end confdefs.h. */
15848
15849 int
15850 main ()
15851 {
15852
15853 ;
15854 return 0;
15855 }
15856 _ACEOF
15857 if ac_fn_c_try_link "$LINENO"; then :
15858 lt_cv_cc_needs_belf=yes
15859 else
15860 lt_cv_cc_needs_belf=no
15861 fi
15862 rm -f core conftest.err conftest.$ac_objext \
15863 conftest$ac_exeext conftest.$ac_ext
15864 ac_ext=c
15865 ac_cpp='$CPP $CPPFLAGS'
15866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15869
15870 fi
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15872 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15873 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15874 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15875 CFLAGS="$SAVE_CFLAGS"
15876 fi
15877 ;;
15878 sparc*-*solaris*)
15879 # Find out which ABI we are using.
15880 echo 'int i;' > conftest.$ac_ext
15881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15882 (eval $ac_compile) 2>&5
15883 ac_status=$?
15884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15885 test $ac_status = 0; }; then
15886 case `/usr/bin/file conftest.o` in
15887 *64-bit*)
15888 case $lt_cv_prog_gnu_ld in
15889 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15890 *)
15891 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15892 LD="${LD-ld} -64"
15893 fi
15894 ;;
15895 esac
15896 ;;
15897 esac
15898 fi
15899 rm -rf conftest*
15900 ;;
15901 esac
15902
15903 need_locks="$enable_libtool_lock"
15904
15905
15906 case $host_os in
15907 rhapsody* | darwin*)
15908 if test -n "$ac_tool_prefix"; then
15909 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15910 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15912 $as_echo_n "checking for $ac_word... " >&6; }
15913 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15914 $as_echo_n "(cached) " >&6
15915 else
15916 if test -n "$DSYMUTIL"; then
15917 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15918 else
15919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15920 for as_dir in $PATH
15921 do
15922 IFS=$as_save_IFS
15923 test -z "$as_dir" && as_dir=.
15924 for ac_exec_ext in '' $ac_executable_extensions; do
15925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15926 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15928 break 2
15929 fi
15930 done
15931 done
15932 IFS=$as_save_IFS
15933
15934 fi
15935 fi
15936 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15937 if test -n "$DSYMUTIL"; then
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15939 $as_echo "$DSYMUTIL" >&6; }
15940 else
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15942 $as_echo "no" >&6; }
15943 fi
15944
15945
15946 fi
15947 if test -z "$ac_cv_prog_DSYMUTIL"; then
15948 ac_ct_DSYMUTIL=$DSYMUTIL
15949 # Extract the first word of "dsymutil", so it can be a program name with args.
15950 set dummy dsymutil; ac_word=$2
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15952 $as_echo_n "checking for $ac_word... " >&6; }
15953 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15954 $as_echo_n "(cached) " >&6
15955 else
15956 if test -n "$ac_ct_DSYMUTIL"; then
15957 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15958 else
15959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15960 for as_dir in $PATH
15961 do
15962 IFS=$as_save_IFS
15963 test -z "$as_dir" && as_dir=.
15964 for ac_exec_ext in '' $ac_executable_extensions; do
15965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15966 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15968 break 2
15969 fi
15970 done
15971 done
15972 IFS=$as_save_IFS
15973
15974 fi
15975 fi
15976 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15977 if test -n "$ac_ct_DSYMUTIL"; then
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15979 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15980 else
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15982 $as_echo "no" >&6; }
15983 fi
15984
15985 if test "x$ac_ct_DSYMUTIL" = x; then
15986 DSYMUTIL=":"
15987 else
15988 case $cross_compiling:$ac_tool_warned in
15989 yes:)
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15992 ac_tool_warned=yes ;;
15993 esac
15994 DSYMUTIL=$ac_ct_DSYMUTIL
15995 fi
15996 else
15997 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15998 fi
15999
16000 if test -n "$ac_tool_prefix"; then
16001 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
16002 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16004 $as_echo_n "checking for $ac_word... " >&6; }
16005 if ${ac_cv_prog_NMEDIT+:} false; then :
16006 $as_echo_n "(cached) " >&6
16007 else
16008 if test -n "$NMEDIT"; then
16009 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
16010 else
16011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16012 for as_dir in $PATH
16013 do
16014 IFS=$as_save_IFS
16015 test -z "$as_dir" && as_dir=.
16016 for ac_exec_ext in '' $ac_executable_extensions; do
16017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16018 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
16019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16020 break 2
16021 fi
16022 done
16023 done
16024 IFS=$as_save_IFS
16025
16026 fi
16027 fi
16028 NMEDIT=$ac_cv_prog_NMEDIT
16029 if test -n "$NMEDIT"; then
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
16031 $as_echo "$NMEDIT" >&6; }
16032 else
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16034 $as_echo "no" >&6; }
16035 fi
16036
16037
16038 fi
16039 if test -z "$ac_cv_prog_NMEDIT"; then
16040 ac_ct_NMEDIT=$NMEDIT
16041 # Extract the first word of "nmedit", so it can be a program name with args.
16042 set dummy nmedit; ac_word=$2
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16044 $as_echo_n "checking for $ac_word... " >&6; }
16045 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
16046 $as_echo_n "(cached) " >&6
16047 else
16048 if test -n "$ac_ct_NMEDIT"; then
16049 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
16050 else
16051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16052 for as_dir in $PATH
16053 do
16054 IFS=$as_save_IFS
16055 test -z "$as_dir" && as_dir=.
16056 for ac_exec_ext in '' $ac_executable_extensions; do
16057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16058 ac_cv_prog_ac_ct_NMEDIT="nmedit"
16059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16060 break 2
16061 fi
16062 done
16063 done
16064 IFS=$as_save_IFS
16065
16066 fi
16067 fi
16068 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
16069 if test -n "$ac_ct_NMEDIT"; then
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
16071 $as_echo "$ac_ct_NMEDIT" >&6; }
16072 else
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16074 $as_echo "no" >&6; }
16075 fi
16076
16077 if test "x$ac_ct_NMEDIT" = x; then
16078 NMEDIT=":"
16079 else
16080 case $cross_compiling:$ac_tool_warned in
16081 yes:)
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16084 ac_tool_warned=yes ;;
16085 esac
16086 NMEDIT=$ac_ct_NMEDIT
16087 fi
16088 else
16089 NMEDIT="$ac_cv_prog_NMEDIT"
16090 fi
16091
16092 if test -n "$ac_tool_prefix"; then
16093 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
16094 set dummy ${ac_tool_prefix}lipo; ac_word=$2
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16096 $as_echo_n "checking for $ac_word... " >&6; }
16097 if ${ac_cv_prog_LIPO+:} false; then :
16098 $as_echo_n "(cached) " >&6
16099 else
16100 if test -n "$LIPO"; then
16101 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
16102 else
16103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16104 for as_dir in $PATH
16105 do
16106 IFS=$as_save_IFS
16107 test -z "$as_dir" && as_dir=.
16108 for ac_exec_ext in '' $ac_executable_extensions; do
16109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16110 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
16111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16112 break 2
16113 fi
16114 done
16115 done
16116 IFS=$as_save_IFS
16117
16118 fi
16119 fi
16120 LIPO=$ac_cv_prog_LIPO
16121 if test -n "$LIPO"; then
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
16123 $as_echo "$LIPO" >&6; }
16124 else
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16126 $as_echo "no" >&6; }
16127 fi
16128
16129
16130 fi
16131 if test -z "$ac_cv_prog_LIPO"; then
16132 ac_ct_LIPO=$LIPO
16133 # Extract the first word of "lipo", so it can be a program name with args.
16134 set dummy lipo; ac_word=$2
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16136 $as_echo_n "checking for $ac_word... " >&6; }
16137 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
16138 $as_echo_n "(cached) " >&6
16139 else
16140 if test -n "$ac_ct_LIPO"; then
16141 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
16142 else
16143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16144 for as_dir in $PATH
16145 do
16146 IFS=$as_save_IFS
16147 test -z "$as_dir" && as_dir=.
16148 for ac_exec_ext in '' $ac_executable_extensions; do
16149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16150 ac_cv_prog_ac_ct_LIPO="lipo"
16151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16152 break 2
16153 fi
16154 done
16155 done
16156 IFS=$as_save_IFS
16157
16158 fi
16159 fi
16160 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
16161 if test -n "$ac_ct_LIPO"; then
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
16163 $as_echo "$ac_ct_LIPO" >&6; }
16164 else
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16166 $as_echo "no" >&6; }
16167 fi
16168
16169 if test "x$ac_ct_LIPO" = x; then
16170 LIPO=":"
16171 else
16172 case $cross_compiling:$ac_tool_warned in
16173 yes:)
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16176 ac_tool_warned=yes ;;
16177 esac
16178 LIPO=$ac_ct_LIPO
16179 fi
16180 else
16181 LIPO="$ac_cv_prog_LIPO"
16182 fi
16183
16184 if test -n "$ac_tool_prefix"; then
16185 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
16186 set dummy ${ac_tool_prefix}otool; ac_word=$2
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16188 $as_echo_n "checking for $ac_word... " >&6; }
16189 if ${ac_cv_prog_OTOOL+:} false; then :
16190 $as_echo_n "(cached) " >&6
16191 else
16192 if test -n "$OTOOL"; then
16193 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16194 else
16195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16196 for as_dir in $PATH
16197 do
16198 IFS=$as_save_IFS
16199 test -z "$as_dir" && as_dir=.
16200 for ac_exec_ext in '' $ac_executable_extensions; do
16201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16202 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
16203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16204 break 2
16205 fi
16206 done
16207 done
16208 IFS=$as_save_IFS
16209
16210 fi
16211 fi
16212 OTOOL=$ac_cv_prog_OTOOL
16213 if test -n "$OTOOL"; then
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
16215 $as_echo "$OTOOL" >&6; }
16216 else
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16218 $as_echo "no" >&6; }
16219 fi
16220
16221
16222 fi
16223 if test -z "$ac_cv_prog_OTOOL"; then
16224 ac_ct_OTOOL=$OTOOL
16225 # Extract the first word of "otool", so it can be a program name with args.
16226 set dummy otool; ac_word=$2
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16228 $as_echo_n "checking for $ac_word... " >&6; }
16229 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
16230 $as_echo_n "(cached) " >&6
16231 else
16232 if test -n "$ac_ct_OTOOL"; then
16233 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16234 else
16235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16236 for as_dir in $PATH
16237 do
16238 IFS=$as_save_IFS
16239 test -z "$as_dir" && as_dir=.
16240 for ac_exec_ext in '' $ac_executable_extensions; do
16241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16242 ac_cv_prog_ac_ct_OTOOL="otool"
16243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16244 break 2
16245 fi
16246 done
16247 done
16248 IFS=$as_save_IFS
16249
16250 fi
16251 fi
16252 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16253 if test -n "$ac_ct_OTOOL"; then
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
16255 $as_echo "$ac_ct_OTOOL" >&6; }
16256 else
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16258 $as_echo "no" >&6; }
16259 fi
16260
16261 if test "x$ac_ct_OTOOL" = x; then
16262 OTOOL=":"
16263 else
16264 case $cross_compiling:$ac_tool_warned in
16265 yes:)
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16268 ac_tool_warned=yes ;;
16269 esac
16270 OTOOL=$ac_ct_OTOOL
16271 fi
16272 else
16273 OTOOL="$ac_cv_prog_OTOOL"
16274 fi
16275
16276 if test -n "$ac_tool_prefix"; then
16277 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16278 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16280 $as_echo_n "checking for $ac_word... " >&6; }
16281 if ${ac_cv_prog_OTOOL64+:} false; then :
16282 $as_echo_n "(cached) " >&6
16283 else
16284 if test -n "$OTOOL64"; then
16285 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16286 else
16287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16288 for as_dir in $PATH
16289 do
16290 IFS=$as_save_IFS
16291 test -z "$as_dir" && as_dir=.
16292 for ac_exec_ext in '' $ac_executable_extensions; do
16293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16294 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16296 break 2
16297 fi
16298 done
16299 done
16300 IFS=$as_save_IFS
16301
16302 fi
16303 fi
16304 OTOOL64=$ac_cv_prog_OTOOL64
16305 if test -n "$OTOOL64"; then
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
16307 $as_echo "$OTOOL64" >&6; }
16308 else
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16310 $as_echo "no" >&6; }
16311 fi
16312
16313
16314 fi
16315 if test -z "$ac_cv_prog_OTOOL64"; then
16316 ac_ct_OTOOL64=$OTOOL64
16317 # Extract the first word of "otool64", so it can be a program name with args.
16318 set dummy otool64; ac_word=$2
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16320 $as_echo_n "checking for $ac_word... " >&6; }
16321 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16322 $as_echo_n "(cached) " >&6
16323 else
16324 if test -n "$ac_ct_OTOOL64"; then
16325 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16326 else
16327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16328 for as_dir in $PATH
16329 do
16330 IFS=$as_save_IFS
16331 test -z "$as_dir" && as_dir=.
16332 for ac_exec_ext in '' $ac_executable_extensions; do
16333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16334 ac_cv_prog_ac_ct_OTOOL64="otool64"
16335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16336 break 2
16337 fi
16338 done
16339 done
16340 IFS=$as_save_IFS
16341
16342 fi
16343 fi
16344 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16345 if test -n "$ac_ct_OTOOL64"; then
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
16347 $as_echo "$ac_ct_OTOOL64" >&6; }
16348 else
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16350 $as_echo "no" >&6; }
16351 fi
16352
16353 if test "x$ac_ct_OTOOL64" = x; then
16354 OTOOL64=":"
16355 else
16356 case $cross_compiling:$ac_tool_warned in
16357 yes:)
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16360 ac_tool_warned=yes ;;
16361 esac
16362 OTOOL64=$ac_ct_OTOOL64
16363 fi
16364 else
16365 OTOOL64="$ac_cv_prog_OTOOL64"
16366 fi
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
16395 $as_echo_n "checking for -single_module linker flag... " >&6; }
16396 if ${lt_cv_apple_cc_single_mod+:} false; then :
16397 $as_echo_n "(cached) " >&6
16398 else
16399 lt_cv_apple_cc_single_mod=no
16400 if test -z "${LT_MULTI_MODULE}"; then
16401 # By default we will add the -single_module flag. You can override
16402 # by either setting the environment variable LT_MULTI_MODULE
16403 # non-empty at configure time, or by adding -multi_module to the
16404 # link flags.
16405 rm -rf libconftest.dylib*
16406 echo "int foo(void){return 1;}" > conftest.c
16407 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16408 -dynamiclib -Wl,-single_module conftest.c" >&5
16409 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16410 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16411 _lt_result=$?
16412 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16413 lt_cv_apple_cc_single_mod=yes
16414 else
16415 cat conftest.err >&5
16416 fi
16417 rm -rf libconftest.dylib*
16418 rm -f conftest.*
16419 fi
16420 fi
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
16422 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
16424 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16425 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16426 $as_echo_n "(cached) " >&6
16427 else
16428 lt_cv_ld_exported_symbols_list=no
16429 save_LDFLAGS=$LDFLAGS
16430 echo "_main" > conftest.sym
16431 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433 /* end confdefs.h. */
16434
16435 int
16436 main ()
16437 {
16438
16439 ;
16440 return 0;
16441 }
16442 _ACEOF
16443 if ac_fn_c_try_link "$LINENO"; then :
16444 lt_cv_ld_exported_symbols_list=yes
16445 else
16446 lt_cv_ld_exported_symbols_list=no
16447 fi
16448 rm -f core conftest.err conftest.$ac_objext \
16449 conftest$ac_exeext conftest.$ac_ext
16450 LDFLAGS="$save_LDFLAGS"
16451
16452 fi
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16454 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16456 $as_echo_n "checking for -force_load linker flag... " >&6; }
16457 if ${lt_cv_ld_force_load+:} false; then :
16458 $as_echo_n "(cached) " >&6
16459 else
16460 lt_cv_ld_force_load=no
16461 cat > conftest.c << _LT_EOF
16462 int forced_loaded() { return 2;}
16463 _LT_EOF
16464 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16465 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16466 echo "$AR cru libconftest.a conftest.o" >&5
16467 $AR cru libconftest.a conftest.o 2>&5
16468 cat > conftest.c << _LT_EOF
16469 int main() { return 0;}
16470 _LT_EOF
16471 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16472 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16473 _lt_result=$?
16474 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16475 lt_cv_ld_force_load=yes
16476 else
16477 cat conftest.err >&5
16478 fi
16479 rm -f conftest.err libconftest.a conftest conftest.c
16480 rm -rf conftest.dSYM
16481
16482 fi
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16484 $as_echo "$lt_cv_ld_force_load" >&6; }
16485 case $host_os in
16486 rhapsody* | darwin1.[012])
16487 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16488 darwin1.*)
16489 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16490 darwin*) # darwin 5.x on
16491 # if running on 10.5 or later, the deployment target defaults
16492 # to the OS version, if on x86, and 10.4, the deployment
16493 # target defaults to 10.4. Don't you love it?
16494 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
16495 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
16496 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16497 10.[012][,.]*)
16498 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16499 10.*)
16500 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16501 esac
16502 ;;
16503 esac
16504 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16505 _lt_dar_single_mod='$single_module'
16506 fi
16507 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16508 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16509 else
16510 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16511 fi
16512 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
16513 _lt_dsymutil='~$DSYMUTIL $lib || :'
16514 else
16515 _lt_dsymutil=
16516 fi
16517 ;;
16518 esac
16519
16520
16521 for ac_header in dlfcn.h
16522 do :
16523 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
16524 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16525 cat >>confdefs.h <<_ACEOF
16526 #define HAVE_DLFCN_H 1
16527 _ACEOF
16528
16529 fi
16530 done
16531
16532
16533
16534
16535
16536 # Set options
16537
16538
16539
16540 enable_dlopen=no
16541
16542
16543 enable_win32_dll=no
16544
16545
16546 # Check whether --enable-shared was given.
16547 if test "${enable_shared+set}" = set; then :
16548 enableval=$enable_shared; p=${PACKAGE-default}
16549 case $enableval in
16550 yes) enable_shared=yes ;;
16551 no) enable_shared=no ;;
16552 *)
16553 enable_shared=no
16554 # Look at the argument we got. We use all the common list separators.
16555 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16556 for pkg in $enableval; do
16557 IFS="$lt_save_ifs"
16558 if test "X$pkg" = "X$p"; then
16559 enable_shared=yes
16560 fi
16561 done
16562 IFS="$lt_save_ifs"
16563 ;;
16564 esac
16565 else
16566 enable_shared=yes
16567 fi
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577 # Check whether --enable-static was given.
16578 if test "${enable_static+set}" = set; then :
16579 enableval=$enable_static; p=${PACKAGE-default}
16580 case $enableval in
16581 yes) enable_static=yes ;;
16582 no) enable_static=no ;;
16583 *)
16584 enable_static=no
16585 # Look at the argument we got. We use all the common list separators.
16586 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16587 for pkg in $enableval; do
16588 IFS="$lt_save_ifs"
16589 if test "X$pkg" = "X$p"; then
16590 enable_static=yes
16591 fi
16592 done
16593 IFS="$lt_save_ifs"
16594 ;;
16595 esac
16596 else
16597 enable_static=yes
16598 fi
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609 # Check whether --with-pic was given.
16610 if test "${with_pic+set}" = set; then :
16611 withval=$with_pic; pic_mode="$withval"
16612 else
16613 pic_mode=default
16614 fi
16615
16616
16617 test -z "$pic_mode" && pic_mode=default
16618
16619
16620
16621
16622
16623
16624
16625 # Check whether --enable-fast-install was given.
16626 if test "${enable_fast_install+set}" = set; then :
16627 enableval=$enable_fast_install; p=${PACKAGE-default}
16628 case $enableval in
16629 yes) enable_fast_install=yes ;;
16630 no) enable_fast_install=no ;;
16631 *)
16632 enable_fast_install=no
16633 # Look at the argument we got. We use all the common list separators.
16634 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16635 for pkg in $enableval; do
16636 IFS="$lt_save_ifs"
16637 if test "X$pkg" = "X$p"; then
16638 enable_fast_install=yes
16639 fi
16640 done
16641 IFS="$lt_save_ifs"
16642 ;;
16643 esac
16644 else
16645 enable_fast_install=yes
16646 fi
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658 # This can be used to rebuild libtool when needed
16659 LIBTOOL_DEPS="$ltmain"
16660
16661 # Always use our own libtool.
16662 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689 test -z "$LN_S" && LN_S="ln -s"
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704 if test -n "${ZSH_VERSION+set}" ; then
16705 setopt NO_GLOB_SUBST
16706 fi
16707
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16709 $as_echo_n "checking for objdir... " >&6; }
16710 if ${lt_cv_objdir+:} false; then :
16711 $as_echo_n "(cached) " >&6
16712 else
16713 rm -f .libs 2>/dev/null
16714 mkdir .libs 2>/dev/null
16715 if test -d .libs; then
16716 lt_cv_objdir=.libs
16717 else
16718 # MS-DOS does not allow filenames that begin with a dot.
16719 lt_cv_objdir=_libs
16720 fi
16721 rmdir .libs 2>/dev/null
16722 fi
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16724 $as_echo "$lt_cv_objdir" >&6; }
16725 objdir=$lt_cv_objdir
16726
16727
16728
16729
16730
16731 cat >>confdefs.h <<_ACEOF
16732 #define LT_OBJDIR "$lt_cv_objdir/"
16733 _ACEOF
16734
16735
16736
16737
16738 case $host_os in
16739 aix3*)
16740 # AIX sometimes has problems with the GCC collect2 program. For some
16741 # reason, if we set the COLLECT_NAMES environment variable, the problems
16742 # vanish in a puff of smoke.
16743 if test "X${COLLECT_NAMES+set}" != Xset; then
16744 COLLECT_NAMES=
16745 export COLLECT_NAMES
16746 fi
16747 ;;
16748 esac
16749
16750 # Global variables:
16751 ofile=libtool
16752 can_build_shared=yes
16753
16754 # All known linkers require a `.a' archive for static linking (except MSVC,
16755 # which needs '.lib').
16756 libext=a
16757
16758 with_gnu_ld="$lt_cv_prog_gnu_ld"
16759
16760 old_CC="$CC"
16761 old_CFLAGS="$CFLAGS"
16762
16763 # Set sane defaults for various variables
16764 test -z "$CC" && CC=cc
16765 test -z "$LTCC" && LTCC=$CC
16766 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16767 test -z "$LD" && LD=ld
16768 test -z "$ac_objext" && ac_objext=o
16769
16770 for cc_temp in $compiler""; do
16771 case $cc_temp in
16772 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16773 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16774 \-*) ;;
16775 *) break;;
16776 esac
16777 done
16778 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16779
16780
16781 # Only perform the check for file, if the check method requires it
16782 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16783 case $deplibs_check_method in
16784 file_magic*)
16785 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16787 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16788 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16789 $as_echo_n "(cached) " >&6
16790 else
16791 case $MAGIC_CMD in
16792 [\\/*] | ?:[\\/]*)
16793 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16794 ;;
16795 *)
16796 lt_save_MAGIC_CMD="$MAGIC_CMD"
16797 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16798 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16799 for ac_dir in $ac_dummy; do
16800 IFS="$lt_save_ifs"
16801 test -z "$ac_dir" && ac_dir=.
16802 if test -f $ac_dir/${ac_tool_prefix}file; then
16803 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16804 if test -n "$file_magic_test_file"; then
16805 case $deplibs_check_method in
16806 "file_magic "*)
16807 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16809 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16810 $EGREP "$file_magic_regex" > /dev/null; then
16811 :
16812 else
16813 cat <<_LT_EOF 1>&2
16814
16815 *** Warning: the command libtool uses to detect shared libraries,
16816 *** $file_magic_cmd, produces output that libtool cannot recognize.
16817 *** The result is that libtool may fail to recognize shared libraries
16818 *** as such. This will affect the creation of libtool libraries that
16819 *** depend on shared libraries, but programs linked with such libtool
16820 *** libraries will work regardless of this problem. Nevertheless, you
16821 *** may want to report the problem to your system manager and/or to
16822 *** bug-libtool@gnu.org
16823
16824 _LT_EOF
16825 fi ;;
16826 esac
16827 fi
16828 break
16829 fi
16830 done
16831 IFS="$lt_save_ifs"
16832 MAGIC_CMD="$lt_save_MAGIC_CMD"
16833 ;;
16834 esac
16835 fi
16836
16837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16838 if test -n "$MAGIC_CMD"; then
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16840 $as_echo "$MAGIC_CMD" >&6; }
16841 else
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16843 $as_echo "no" >&6; }
16844 fi
16845
16846
16847
16848
16849
16850 if test -z "$lt_cv_path_MAGIC_CMD"; then
16851 if test -n "$ac_tool_prefix"; then
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16853 $as_echo_n "checking for file... " >&6; }
16854 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16855 $as_echo_n "(cached) " >&6
16856 else
16857 case $MAGIC_CMD in
16858 [\\/*] | ?:[\\/]*)
16859 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16860 ;;
16861 *)
16862 lt_save_MAGIC_CMD="$MAGIC_CMD"
16863 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16864 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16865 for ac_dir in $ac_dummy; do
16866 IFS="$lt_save_ifs"
16867 test -z "$ac_dir" && ac_dir=.
16868 if test -f $ac_dir/file; then
16869 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16870 if test -n "$file_magic_test_file"; then
16871 case $deplibs_check_method in
16872 "file_magic "*)
16873 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16874 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16875 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16876 $EGREP "$file_magic_regex" > /dev/null; then
16877 :
16878 else
16879 cat <<_LT_EOF 1>&2
16880
16881 *** Warning: the command libtool uses to detect shared libraries,
16882 *** $file_magic_cmd, produces output that libtool cannot recognize.
16883 *** The result is that libtool may fail to recognize shared libraries
16884 *** as such. This will affect the creation of libtool libraries that
16885 *** depend on shared libraries, but programs linked with such libtool
16886 *** libraries will work regardless of this problem. Nevertheless, you
16887 *** may want to report the problem to your system manager and/or to
16888 *** bug-libtool@gnu.org
16889
16890 _LT_EOF
16891 fi ;;
16892 esac
16893 fi
16894 break
16895 fi
16896 done
16897 IFS="$lt_save_ifs"
16898 MAGIC_CMD="$lt_save_MAGIC_CMD"
16899 ;;
16900 esac
16901 fi
16902
16903 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16904 if test -n "$MAGIC_CMD"; then
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16906 $as_echo "$MAGIC_CMD" >&6; }
16907 else
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16909 $as_echo "no" >&6; }
16910 fi
16911
16912
16913 else
16914 MAGIC_CMD=:
16915 fi
16916 fi
16917
16918 fi
16919 ;;
16920 esac
16921
16922 # Use C for the default configuration in the libtool script
16923
16924 lt_save_CC="$CC"
16925 ac_ext=c
16926 ac_cpp='$CPP $CPPFLAGS'
16927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16930
16931
16932 # Source file extension for C test sources.
16933 ac_ext=c
16934
16935 # Object file extension for compiled C test sources.
16936 objext=o
16937 objext=$objext
16938
16939 # Code to be used in simple compile tests
16940 lt_simple_compile_test_code="int some_variable = 0;"
16941
16942 # Code to be used in simple link tests
16943 lt_simple_link_test_code='int main(){return(0);}'
16944
16945
16946
16947
16948
16949
16950
16951 # If no C compiler was specified, use CC.
16952 LTCC=${LTCC-"$CC"}
16953
16954 # If no C compiler flags were specified, use CFLAGS.
16955 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16956
16957 # Allow CC to be a program name with arguments.
16958 compiler=$CC
16959
16960 # Save the default compiler, since it gets overwritten when the other
16961 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16962 compiler_DEFAULT=$CC
16963
16964 # save warnings/boilerplate of simple test code
16965 ac_outfile=conftest.$ac_objext
16966 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16967 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16968 _lt_compiler_boilerplate=`cat conftest.err`
16969 $RM conftest*
16970
16971 ac_outfile=conftest.$ac_objext
16972 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16973 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16974 _lt_linker_boilerplate=`cat conftest.err`
16975 $RM -r conftest*
16976
16977
16978 ## CAVEAT EMPTOR:
16979 ## There is no encapsulation within the following macros, do not change
16980 ## the running order or otherwise move them around unless you know exactly
16981 ## what you are doing...
16982 if test -n "$compiler"; then
16983
16984 lt_prog_compiler_no_builtin_flag=
16985
16986 if test "$GCC" = yes; then
16987 case $cc_basename in
16988 nvcc*)
16989 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16990 *)
16991 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16992 esac
16993
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16995 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16996 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16997 $as_echo_n "(cached) " >&6
16998 else
16999 lt_cv_prog_compiler_rtti_exceptions=no
17000 ac_outfile=conftest.$ac_objext
17001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17002 lt_compiler_flag="-fno-rtti -fno-exceptions"
17003 # Insert the option either (1) after the last *FLAGS variable, or
17004 # (2) before a word containing "conftest.", or (3) at the end.
17005 # Note that $ac_compile itself does not contain backslashes and begins
17006 # with a dollar sign (not a hyphen), so the echo should work correctly.
17007 # The option is referenced via a variable to avoid confusing sed.
17008 lt_compile=`echo "$ac_compile" | $SED \
17009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17011 -e 's:$: $lt_compiler_flag:'`
17012 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17013 (eval "$lt_compile" 2>conftest.err)
17014 ac_status=$?
17015 cat conftest.err >&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 if (exit $ac_status) && test -s "$ac_outfile"; then
17018 # The compiler can only warn and ignore the option if not recognized
17019 # So say no if there are warnings other than the usual output.
17020 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17021 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17022 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17023 lt_cv_prog_compiler_rtti_exceptions=yes
17024 fi
17025 fi
17026 $RM conftest*
17027
17028 fi
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17030 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17031
17032 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17033 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
17034 else
17035 :
17036 fi
17037
17038 fi
17039
17040
17041
17042
17043
17044
17045 lt_prog_compiler_wl=
17046 lt_prog_compiler_pic=
17047 lt_prog_compiler_static=
17048
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17050 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17051
17052 if test "$GCC" = yes; then
17053 lt_prog_compiler_wl='-Wl,'
17054 lt_prog_compiler_static='-static'
17055
17056 case $host_os in
17057 aix*)
17058 # All AIX code is PIC.
17059 if test "$host_cpu" = ia64; then
17060 # AIX 5 now supports IA64 processor
17061 lt_prog_compiler_static='-Bstatic'
17062 fi
17063 lt_prog_compiler_pic='-fPIC'
17064 ;;
17065
17066 amigaos*)
17067 case $host_cpu in
17068 powerpc)
17069 # see comment about AmigaOS4 .so support
17070 lt_prog_compiler_pic='-fPIC'
17071 ;;
17072 m68k)
17073 # FIXME: we need at least 68020 code to build shared libraries, but
17074 # adding the `-m68020' flag to GCC prevents building anything better,
17075 # like `-m68040'.
17076 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
17077 ;;
17078 esac
17079 ;;
17080
17081 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17082 # PIC is the default for these OSes.
17083 ;;
17084
17085 mingw* | cygwin* | pw32* | os2* | cegcc*)
17086 # This hack is so that the source file can tell whether it is being
17087 # built for inclusion in a dll (and should export symbols for example).
17088 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17089 # (--disable-auto-import) libraries
17090 lt_prog_compiler_pic='-DDLL_EXPORT'
17091 ;;
17092
17093 darwin* | rhapsody*)
17094 # PIC is the default on this platform
17095 # Common symbols not allowed in MH_DYLIB files
17096 lt_prog_compiler_pic='-fno-common'
17097 ;;
17098
17099 haiku*)
17100 # PIC is the default for Haiku.
17101 # The "-static" flag exists, but is broken.
17102 lt_prog_compiler_static=
17103 ;;
17104
17105 hpux*)
17106 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17107 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17108 # sets the default TLS model and affects inlining.
17109 case $host_cpu in
17110 hppa*64*)
17111 # +Z the default
17112 ;;
17113 *)
17114 lt_prog_compiler_pic='-fPIC'
17115 ;;
17116 esac
17117 ;;
17118
17119 interix[3-9]*)
17120 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17121 # Instead, we relocate shared libraries at runtime.
17122 ;;
17123
17124 msdosdjgpp*)
17125 # Just because we use GCC doesn't mean we suddenly get shared libraries
17126 # on systems that don't support them.
17127 lt_prog_compiler_can_build_shared=no
17128 enable_shared=no
17129 ;;
17130
17131 *nto* | *qnx*)
17132 # QNX uses GNU C++, but need to define -shared option too, otherwise
17133 # it will coredump.
17134 lt_prog_compiler_pic='-fPIC -shared'
17135 ;;
17136
17137 sysv4*MP*)
17138 if test -d /usr/nec; then
17139 lt_prog_compiler_pic=-Kconform_pic
17140 fi
17141 ;;
17142
17143 *)
17144 lt_prog_compiler_pic='-fPIC'
17145 ;;
17146 esac
17147
17148 case $cc_basename in
17149 nvcc*) # Cuda Compiler Driver 2.2
17150 lt_prog_compiler_wl='-Xlinker '
17151 lt_prog_compiler_pic='-Xcompiler -fPIC'
17152 ;;
17153 esac
17154 else
17155 # PORTME Check for flag to pass linker flags through the system compiler.
17156 case $host_os in
17157 aix*)
17158 lt_prog_compiler_wl='-Wl,'
17159 if test "$host_cpu" = ia64; then
17160 # AIX 5 now supports IA64 processor
17161 lt_prog_compiler_static='-Bstatic'
17162 else
17163 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17164 fi
17165 ;;
17166
17167 mingw* | cygwin* | pw32* | os2* | cegcc*)
17168 # This hack is so that the source file can tell whether it is being
17169 # built for inclusion in a dll (and should export symbols for example).
17170 lt_prog_compiler_pic='-DDLL_EXPORT'
17171 ;;
17172
17173 hpux9* | hpux10* | hpux11*)
17174 lt_prog_compiler_wl='-Wl,'
17175 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17176 # not for PA HP-UX.
17177 case $host_cpu in
17178 hppa*64*|ia64*)
17179 # +Z the default
17180 ;;
17181 *)
17182 lt_prog_compiler_pic='+Z'
17183 ;;
17184 esac
17185 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17186 lt_prog_compiler_static='${wl}-a ${wl}archive'
17187 ;;
17188
17189 irix5* | irix6* | nonstopux*)
17190 lt_prog_compiler_wl='-Wl,'
17191 # PIC (with -KPIC) is the default.
17192 lt_prog_compiler_static='-non_shared'
17193 ;;
17194
17195 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17196 case $cc_basename in
17197 # old Intel for x86_64 which still supported -KPIC.
17198 ecc*)
17199 lt_prog_compiler_wl='-Wl,'
17200 lt_prog_compiler_pic='-KPIC'
17201 lt_prog_compiler_static='-static'
17202 ;;
17203 # icc used to be incompatible with GCC.
17204 # ICC 10 doesn't accept -KPIC any more.
17205 icc* | ifort*)
17206 lt_prog_compiler_wl='-Wl,'
17207 lt_prog_compiler_pic='-fPIC'
17208 lt_prog_compiler_static='-static'
17209 ;;
17210 # Lahey Fortran 8.1.
17211 lf95*)
17212 lt_prog_compiler_wl='-Wl,'
17213 lt_prog_compiler_pic='--shared'
17214 lt_prog_compiler_static='--static'
17215 ;;
17216 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17217 # Portland Group compilers (*not* the Pentium gcc compiler,
17218 # which looks to be a dead project)
17219 lt_prog_compiler_wl='-Wl,'
17220 lt_prog_compiler_pic='-fpic'
17221 lt_prog_compiler_static='-Bstatic'
17222 ;;
17223 ccc*)
17224 lt_prog_compiler_wl='-Wl,'
17225 # All Alpha code is PIC.
17226 lt_prog_compiler_static='-non_shared'
17227 ;;
17228 xl* | bgxl* | bgf* | mpixl*)
17229 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17230 lt_prog_compiler_wl='-Wl,'
17231 lt_prog_compiler_pic='-qpic'
17232 lt_prog_compiler_static='-qstaticlink'
17233 ;;
17234 *)
17235 case `$CC -V 2>&1 | sed 5q` in
17236 *Sun\ F* | *Sun*Fortran*)
17237 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17238 lt_prog_compiler_pic='-KPIC'
17239 lt_prog_compiler_static='-Bstatic'
17240 lt_prog_compiler_wl=''
17241 ;;
17242 *Sun\ C*)
17243 # Sun C 5.9
17244 lt_prog_compiler_pic='-KPIC'
17245 lt_prog_compiler_static='-Bstatic'
17246 lt_prog_compiler_wl='-Wl,'
17247 ;;
17248 esac
17249 ;;
17250 esac
17251 ;;
17252
17253 newsos6)
17254 lt_prog_compiler_pic='-KPIC'
17255 lt_prog_compiler_static='-Bstatic'
17256 ;;
17257
17258 *nto* | *qnx*)
17259 # QNX uses GNU C++, but need to define -shared option too, otherwise
17260 # it will coredump.
17261 lt_prog_compiler_pic='-fPIC -shared'
17262 ;;
17263
17264 osf3* | osf4* | osf5*)
17265 lt_prog_compiler_wl='-Wl,'
17266 # All OSF/1 code is PIC.
17267 lt_prog_compiler_static='-non_shared'
17268 ;;
17269
17270 rdos*)
17271 lt_prog_compiler_static='-non_shared'
17272 ;;
17273
17274 solaris*)
17275 lt_prog_compiler_pic='-KPIC'
17276 lt_prog_compiler_static='-Bstatic'
17277 case $cc_basename in
17278 f77* | f90* | f95*)
17279 lt_prog_compiler_wl='-Qoption ld ';;
17280 *)
17281 lt_prog_compiler_wl='-Wl,';;
17282 esac
17283 ;;
17284
17285 sunos4*)
17286 lt_prog_compiler_wl='-Qoption ld '
17287 lt_prog_compiler_pic='-PIC'
17288 lt_prog_compiler_static='-Bstatic'
17289 ;;
17290
17291 sysv4 | sysv4.2uw2* | sysv4.3*)
17292 lt_prog_compiler_wl='-Wl,'
17293 lt_prog_compiler_pic='-KPIC'
17294 lt_prog_compiler_static='-Bstatic'
17295 ;;
17296
17297 sysv4*MP*)
17298 if test -d /usr/nec ;then
17299 lt_prog_compiler_pic='-Kconform_pic'
17300 lt_prog_compiler_static='-Bstatic'
17301 fi
17302 ;;
17303
17304 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17305 lt_prog_compiler_wl='-Wl,'
17306 lt_prog_compiler_pic='-KPIC'
17307 lt_prog_compiler_static='-Bstatic'
17308 ;;
17309
17310 unicos*)
17311 lt_prog_compiler_wl='-Wl,'
17312 lt_prog_compiler_can_build_shared=no
17313 ;;
17314
17315 uts4*)
17316 lt_prog_compiler_pic='-pic'
17317 lt_prog_compiler_static='-Bstatic'
17318 ;;
17319
17320 *)
17321 lt_prog_compiler_can_build_shared=no
17322 ;;
17323 esac
17324 fi
17325
17326 case $host_os in
17327 # For platforms which do not support PIC, -DPIC is meaningless:
17328 *djgpp*)
17329 lt_prog_compiler_pic=
17330 ;;
17331 *)
17332 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17333 ;;
17334 esac
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
17336 $as_echo "$lt_prog_compiler_pic" >&6; }
17337
17338
17339
17340
17341
17342
17343 #
17344 # Check to make sure the PIC flag actually works.
17345 #
17346 if test -n "$lt_prog_compiler_pic"; then
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17348 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17349 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17350 $as_echo_n "(cached) " >&6
17351 else
17352 lt_cv_prog_compiler_pic_works=no
17353 ac_outfile=conftest.$ac_objext
17354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17355 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17356 # Insert the option either (1) after the last *FLAGS variable, or
17357 # (2) before a word containing "conftest.", or (3) at the end.
17358 # Note that $ac_compile itself does not contain backslashes and begins
17359 # with a dollar sign (not a hyphen), so the echo should work correctly.
17360 # The option is referenced via a variable to avoid confusing sed.
17361 lt_compile=`echo "$ac_compile" | $SED \
17362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17364 -e 's:$: $lt_compiler_flag:'`
17365 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17366 (eval "$lt_compile" 2>conftest.err)
17367 ac_status=$?
17368 cat conftest.err >&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 if (exit $ac_status) && test -s "$ac_outfile"; then
17371 # The compiler can only warn and ignore the option if not recognized
17372 # So say no if there are warnings other than the usual output.
17373 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17374 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17375 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17376 lt_cv_prog_compiler_pic_works=yes
17377 fi
17378 fi
17379 $RM conftest*
17380
17381 fi
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17383 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17384
17385 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17386 case $lt_prog_compiler_pic in
17387 "" | " "*) ;;
17388 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17389 esac
17390 else
17391 lt_prog_compiler_pic=
17392 lt_prog_compiler_can_build_shared=no
17393 fi
17394
17395 fi
17396
17397
17398
17399
17400
17401
17402 #
17403 # Check to make sure the static flag actually works.
17404 #
17405 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17407 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17408 if ${lt_cv_prog_compiler_static_works+:} false; then :
17409 $as_echo_n "(cached) " >&6
17410 else
17411 lt_cv_prog_compiler_static_works=no
17412 save_LDFLAGS="$LDFLAGS"
17413 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17414 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17415 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17416 # The linker can only warn and ignore the option if not recognized
17417 # So say no if there are warnings
17418 if test -s conftest.err; then
17419 # Append any errors to the config.log.
17420 cat conftest.err 1>&5
17421 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17423 if diff conftest.exp conftest.er2 >/dev/null; then
17424 lt_cv_prog_compiler_static_works=yes
17425 fi
17426 else
17427 lt_cv_prog_compiler_static_works=yes
17428 fi
17429 fi
17430 $RM -r conftest*
17431 LDFLAGS="$save_LDFLAGS"
17432
17433 fi
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17435 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17436
17437 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17438 :
17439 else
17440 lt_prog_compiler_static=
17441 fi
17442
17443
17444
17445
17446
17447
17448
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17450 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17451 if ${lt_cv_prog_compiler_c_o+:} false; then :
17452 $as_echo_n "(cached) " >&6
17453 else
17454 lt_cv_prog_compiler_c_o=no
17455 $RM -r conftest 2>/dev/null
17456 mkdir conftest
17457 cd conftest
17458 mkdir out
17459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17460
17461 lt_compiler_flag="-o out/conftest2.$ac_objext"
17462 # Insert the option either (1) after the last *FLAGS variable, or
17463 # (2) before a word containing "conftest.", or (3) at the end.
17464 # Note that $ac_compile itself does not contain backslashes and begins
17465 # with a dollar sign (not a hyphen), so the echo should work correctly.
17466 lt_compile=`echo "$ac_compile" | $SED \
17467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17469 -e 's:$: $lt_compiler_flag:'`
17470 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17471 (eval "$lt_compile" 2>out/conftest.err)
17472 ac_status=$?
17473 cat out/conftest.err >&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17476 then
17477 # The compiler can only warn and ignore the option if not recognized
17478 # So say no if there are warnings
17479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17480 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17481 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17482 lt_cv_prog_compiler_c_o=yes
17483 fi
17484 fi
17485 chmod u+w . 2>&5
17486 $RM conftest*
17487 # SGI C++ compiler will create directory out/ii_files/ for
17488 # template instantiation
17489 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17490 $RM out/* && rmdir out
17491 cd ..
17492 $RM -r conftest
17493 $RM conftest*
17494
17495 fi
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17497 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17498
17499
17500
17501
17502
17503
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17505 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17506 if ${lt_cv_prog_compiler_c_o+:} false; then :
17507 $as_echo_n "(cached) " >&6
17508 else
17509 lt_cv_prog_compiler_c_o=no
17510 $RM -r conftest 2>/dev/null
17511 mkdir conftest
17512 cd conftest
17513 mkdir out
17514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17515
17516 lt_compiler_flag="-o out/conftest2.$ac_objext"
17517 # Insert the option either (1) after the last *FLAGS variable, or
17518 # (2) before a word containing "conftest.", or (3) at the end.
17519 # Note that $ac_compile itself does not contain backslashes and begins
17520 # with a dollar sign (not a hyphen), so the echo should work correctly.
17521 lt_compile=`echo "$ac_compile" | $SED \
17522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17524 -e 's:$: $lt_compiler_flag:'`
17525 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17526 (eval "$lt_compile" 2>out/conftest.err)
17527 ac_status=$?
17528 cat out/conftest.err >&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17531 then
17532 # The compiler can only warn and ignore the option if not recognized
17533 # So say no if there are warnings
17534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17535 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17536 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17537 lt_cv_prog_compiler_c_o=yes
17538 fi
17539 fi
17540 chmod u+w . 2>&5
17541 $RM conftest*
17542 # SGI C++ compiler will create directory out/ii_files/ for
17543 # template instantiation
17544 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17545 $RM out/* && rmdir out
17546 cd ..
17547 $RM -r conftest
17548 $RM conftest*
17549
17550 fi
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17552 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17553
17554
17555
17556
17557 hard_links="nottested"
17558 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17559 # do not overwrite the value of need_locks provided by the user
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17561 $as_echo_n "checking if we can lock with hard links... " >&6; }
17562 hard_links=yes
17563 $RM conftest*
17564 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17565 touch conftest.a
17566 ln conftest.a conftest.b 2>&5 || hard_links=no
17567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17569 $as_echo "$hard_links" >&6; }
17570 if test "$hard_links" = no; then
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17572 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17573 need_locks=warn
17574 fi
17575 else
17576 need_locks=no
17577 fi
17578
17579
17580
17581
17582
17583
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17585 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17586
17587 runpath_var=
17588 allow_undefined_flag=
17589 always_export_symbols=no
17590 archive_cmds=
17591 archive_expsym_cmds=
17592 compiler_needs_object=no
17593 enable_shared_with_static_runtimes=no
17594 export_dynamic_flag_spec=
17595 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17596 hardcode_automatic=no
17597 hardcode_direct=no
17598 hardcode_direct_absolute=no
17599 hardcode_libdir_flag_spec=
17600 hardcode_libdir_flag_spec_ld=
17601 hardcode_libdir_separator=
17602 hardcode_minus_L=no
17603 hardcode_shlibpath_var=unsupported
17604 inherit_rpath=no
17605 link_all_deplibs=unknown
17606 module_cmds=
17607 module_expsym_cmds=
17608 old_archive_from_new_cmds=
17609 old_archive_from_expsyms_cmds=
17610 thread_safe_flag_spec=
17611 whole_archive_flag_spec=
17612 # include_expsyms should be a list of space-separated symbols to be *always*
17613 # included in the symbol list
17614 include_expsyms=
17615 # exclude_expsyms can be an extended regexp of symbols to exclude
17616 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17617 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17618 # as well as any symbol that contains `d'.
17619 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17620 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17621 # platforms (ab)use it in PIC code, but their linkers get confused if
17622 # the symbol is explicitly referenced. Since portable code cannot
17623 # rely on this symbol name, it's probably fine to never include it in
17624 # preloaded symbol tables.
17625 # Exclude shared library initialization/finalization symbols.
17626 extract_expsyms_cmds=
17627
17628 case $host_os in
17629 cygwin* | mingw* | pw32* | cegcc*)
17630 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17631 # When not using gcc, we currently assume that we are using
17632 # Microsoft Visual C++.
17633 if test "$GCC" != yes; then
17634 with_gnu_ld=no
17635 fi
17636 ;;
17637 interix*)
17638 # we just hope/assume this is gcc and not c89 (= MSVC++)
17639 with_gnu_ld=yes
17640 ;;
17641 openbsd*)
17642 with_gnu_ld=no
17643 ;;
17644 esac
17645
17646 ld_shlibs=yes
17647
17648 # On some targets, GNU ld is compatible enough with the native linker
17649 # that we're better off using the native interface for both.
17650 lt_use_gnu_ld_interface=no
17651 if test "$with_gnu_ld" = yes; then
17652 case $host_os in
17653 aix*)
17654 # The AIX port of GNU ld has always aspired to compatibility
17655 # with the native linker. However, as the warning in the GNU ld
17656 # block says, versions before 2.19.5* couldn't really create working
17657 # shared libraries, regardless of the interface used.
17658 case `$LD -v 2>&1` in
17659 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17660 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17661 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17662 *)
17663 lt_use_gnu_ld_interface=yes
17664 ;;
17665 esac
17666 ;;
17667 *)
17668 lt_use_gnu_ld_interface=yes
17669 ;;
17670 esac
17671 fi
17672
17673 if test "$lt_use_gnu_ld_interface" = yes; then
17674 # If archive_cmds runs LD, not CC, wlarc should be empty
17675 wlarc='${wl}'
17676
17677 # Set some defaults for GNU ld with shared library support. These
17678 # are reset later if shared libraries are not supported. Putting them
17679 # here allows them to be overridden if necessary.
17680 runpath_var=LD_RUN_PATH
17681 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17682 export_dynamic_flag_spec='${wl}--export-dynamic'
17683 # ancient GNU ld didn't support --whole-archive et. al.
17684 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17685 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17686 else
17687 whole_archive_flag_spec=
17688 fi
17689 supports_anon_versioning=no
17690 case `$LD -v 2>&1` in
17691 *GNU\ gold*) supports_anon_versioning=yes ;;
17692 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17693 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17694 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17695 *\ 2.11.*) ;; # other 2.11 versions
17696 *) supports_anon_versioning=yes ;;
17697 esac
17698
17699 # See if GNU ld supports shared libraries.
17700 case $host_os in
17701 aix[3-9]*)
17702 # On AIX/PPC, the GNU linker is very broken
17703 if test "$host_cpu" != ia64; then
17704 ld_shlibs=no
17705 cat <<_LT_EOF 1>&2
17706
17707 *** Warning: the GNU linker, at least up to release 2.19, is reported
17708 *** to be unable to reliably create shared libraries on AIX.
17709 *** Therefore, libtool is disabling shared libraries support. If you
17710 *** really care for shared libraries, you may want to install binutils
17711 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17712 *** You will then need to restart the configuration process.
17713
17714 _LT_EOF
17715 fi
17716 ;;
17717
17718 amigaos*)
17719 case $host_cpu in
17720 powerpc)
17721 # see comment about AmigaOS4 .so support
17722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17723 archive_expsym_cmds=''
17724 ;;
17725 m68k)
17726 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)'
17727 hardcode_libdir_flag_spec='-L$libdir'
17728 hardcode_minus_L=yes
17729 ;;
17730 esac
17731 ;;
17732
17733 beos*)
17734 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17735 allow_undefined_flag=unsupported
17736 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17737 # support --undefined. This deserves some investigation. FIXME
17738 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17739 else
17740 ld_shlibs=no
17741 fi
17742 ;;
17743
17744 cygwin* | mingw* | pw32* | cegcc*)
17745 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17746 # as there is no search path for DLLs.
17747 hardcode_libdir_flag_spec='-L$libdir'
17748 export_dynamic_flag_spec='${wl}--export-all-symbols'
17749 allow_undefined_flag=unsupported
17750 always_export_symbols=no
17751 enable_shared_with_static_runtimes=yes
17752 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17753
17754 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17755 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17756 # If the export-symbols file already is a .def file (1st line
17757 # is EXPORTS), use it as is; otherwise, prepend...
17758 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17759 cp $export_symbols $output_objdir/$soname.def;
17760 else
17761 echo EXPORTS > $output_objdir/$soname.def;
17762 cat $export_symbols >> $output_objdir/$soname.def;
17763 fi~
17764 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17765 else
17766 ld_shlibs=no
17767 fi
17768 ;;
17769
17770 haiku*)
17771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17772 link_all_deplibs=yes
17773 ;;
17774
17775 interix[3-9]*)
17776 hardcode_direct=no
17777 hardcode_shlibpath_var=no
17778 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17779 export_dynamic_flag_spec='${wl}-E'
17780 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17781 # Instead, shared libraries are loaded at an image base (0x10000000 by
17782 # default) and relocated if they conflict, which is a slow very memory
17783 # consuming and fragmenting process. To avoid this, we pick a random,
17784 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17785 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17786 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17787 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'
17788 ;;
17789
17790 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17791 tmp_diet=no
17792 if test "$host_os" = linux-dietlibc; then
17793 case $cc_basename in
17794 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17795 esac
17796 fi
17797 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17798 && test "$tmp_diet" = no
17799 then
17800 tmp_addflag=' $pic_flag'
17801 tmp_sharedflag='-shared'
17802 case $cc_basename,$host_cpu in
17803 pgcc*) # Portland Group C compiler
17804 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'
17805 tmp_addflag=' $pic_flag'
17806 ;;
17807 pgf77* | pgf90* | pgf95* | pgfortran*)
17808 # Portland Group f77 and f90 compilers
17809 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'
17810 tmp_addflag=' $pic_flag -Mnomain' ;;
17811 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17812 tmp_addflag=' -i_dynamic' ;;
17813 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17814 tmp_addflag=' -i_dynamic -nofor_main' ;;
17815 ifc* | ifort*) # Intel Fortran compiler
17816 tmp_addflag=' -nofor_main' ;;
17817 lf95*) # Lahey Fortran 8.1
17818 whole_archive_flag_spec=
17819 tmp_sharedflag='--shared' ;;
17820 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17821 tmp_sharedflag='-qmkshrobj'
17822 tmp_addflag= ;;
17823 nvcc*) # Cuda Compiler Driver 2.2
17824 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'
17825 compiler_needs_object=yes
17826 ;;
17827 esac
17828 case `$CC -V 2>&1 | sed 5q` in
17829 *Sun\ C*) # Sun C 5.9
17830 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'
17831 compiler_needs_object=yes
17832 tmp_sharedflag='-G' ;;
17833 *Sun\ F*) # Sun Fortran 8.3
17834 tmp_sharedflag='-G' ;;
17835 esac
17836 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17837
17838 if test "x$supports_anon_versioning" = xyes; then
17839 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17840 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17841 echo "local: *; };" >> $output_objdir/$libname.ver~
17842 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17843 fi
17844
17845 case $cc_basename in
17846 xlf* | bgf* | bgxlf* | mpixlf*)
17847 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17848 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17849 hardcode_libdir_flag_spec=
17850 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17851 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17852 if test "x$supports_anon_versioning" = xyes; then
17853 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17854 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17855 echo "local: *; };" >> $output_objdir/$libname.ver~
17856 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17857 fi
17858 ;;
17859 esac
17860 else
17861 ld_shlibs=no
17862 fi
17863 ;;
17864
17865 netbsd*)
17866 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17867 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17868 wlarc=
17869 else
17870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17871 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17872 fi
17873 ;;
17874
17875 solaris*)
17876 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17877 ld_shlibs=no
17878 cat <<_LT_EOF 1>&2
17879
17880 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17881 *** create shared libraries on Solaris systems. Therefore, libtool
17882 *** is disabling shared libraries support. We urge you to upgrade GNU
17883 *** binutils to release 2.9.1 or newer. Another option is to modify
17884 *** your PATH or compiler configuration so that the native linker is
17885 *** used, and then restart.
17886
17887 _LT_EOF
17888 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17890 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17891 else
17892 ld_shlibs=no
17893 fi
17894 ;;
17895
17896 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17897 case `$LD -v 2>&1` in
17898 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17899 ld_shlibs=no
17900 cat <<_LT_EOF 1>&2
17901
17902 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17903 *** reliably create shared libraries on SCO systems. Therefore, libtool
17904 *** is disabling shared libraries support. We urge you to upgrade GNU
17905 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17906 *** your PATH or compiler configuration so that the native linker is
17907 *** used, and then restart.
17908
17909 _LT_EOF
17910 ;;
17911 *)
17912 # For security reasons, it is highly recommended that you always
17913 # use absolute paths for naming shared libraries, and exclude the
17914 # DT_RUNPATH tag from executables and libraries. But doing so
17915 # requires that you compile everything twice, which is a pain.
17916 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17918 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17919 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17920 else
17921 ld_shlibs=no
17922 fi
17923 ;;
17924 esac
17925 ;;
17926
17927 sunos4*)
17928 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17929 wlarc=
17930 hardcode_direct=yes
17931 hardcode_shlibpath_var=no
17932 ;;
17933
17934 *)
17935 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17937 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17938 else
17939 ld_shlibs=no
17940 fi
17941 ;;
17942 esac
17943
17944 if test "$ld_shlibs" = no; then
17945 runpath_var=
17946 hardcode_libdir_flag_spec=
17947 export_dynamic_flag_spec=
17948 whole_archive_flag_spec=
17949 fi
17950 else
17951 # PORTME fill in a description of your system's linker (not GNU ld)
17952 case $host_os in
17953 aix3*)
17954 allow_undefined_flag=unsupported
17955 always_export_symbols=yes
17956 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'
17957 # Note: this linker hardcodes the directories in LIBPATH if there
17958 # are no directories specified by -L.
17959 hardcode_minus_L=yes
17960 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17961 # Neither direct hardcoding nor static linking is supported with a
17962 # broken collect2.
17963 hardcode_direct=unsupported
17964 fi
17965 ;;
17966
17967 aix[4-9]*)
17968 if test "$host_cpu" = ia64; then
17969 # On IA64, the linker does run time linking by default, so we don't
17970 # have to do anything special.
17971 aix_use_runtimelinking=no
17972 exp_sym_flag='-Bexport'
17973 no_entry_flag=""
17974 else
17975 # If we're using GNU nm, then we don't want the "-C" option.
17976 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17977 # Also, AIX nm treats weak defined symbols like other global
17978 # defined symbols, whereas GNU nm marks them as "W".
17979 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17980 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'
17981 else
17982 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'
17983 fi
17984 aix_use_runtimelinking=no
17985
17986 # Test if we are trying to use run time linking or normal
17987 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17988 # need to do runtime linking.
17989 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17990 for ld_flag in $LDFLAGS; do
17991 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17992 aix_use_runtimelinking=yes
17993 break
17994 fi
17995 done
17996 ;;
17997 esac
17998
17999 exp_sym_flag='-bexport'
18000 no_entry_flag='-bnoentry'
18001 fi
18002
18003 # When large executables or shared objects are built, AIX ld can
18004 # have problems creating the table of contents. If linking a library
18005 # or program results in "error TOC overflow" add -mminimal-toc to
18006 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18007 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18008
18009 archive_cmds=''
18010 hardcode_direct=yes
18011 hardcode_direct_absolute=yes
18012 hardcode_libdir_separator=':'
18013 link_all_deplibs=yes
18014 file_list_spec='${wl}-f,'
18015
18016 if test "$GCC" = yes; then
18017 case $host_os in aix4.[012]|aix4.[012].*)
18018 # We only want to do this on AIX 4.2 and lower, the check
18019 # below for broken collect2 doesn't work under 4.3+
18020 collect2name=`${CC} -print-prog-name=collect2`
18021 if test -f "$collect2name" &&
18022 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18023 then
18024 # We have reworked collect2
18025 :
18026 else
18027 # We have old collect2
18028 hardcode_direct=unsupported
18029 # It fails to find uninstalled libraries when the uninstalled
18030 # path is not listed in the libpath. Setting hardcode_minus_L
18031 # to unsupported forces relinking
18032 hardcode_minus_L=yes
18033 hardcode_libdir_flag_spec='-L$libdir'
18034 hardcode_libdir_separator=
18035 fi
18036 ;;
18037 esac
18038 shared_flag='-shared'
18039 if test "$aix_use_runtimelinking" = yes; then
18040 shared_flag="$shared_flag "'${wl}-G'
18041 fi
18042 else
18043 # not using gcc
18044 if test "$host_cpu" = ia64; then
18045 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18046 # chokes on -Wl,-G. The following line is correct:
18047 shared_flag='-G'
18048 else
18049 if test "$aix_use_runtimelinking" = yes; then
18050 shared_flag='${wl}-G'
18051 else
18052 shared_flag='${wl}-bM:SRE'
18053 fi
18054 fi
18055 fi
18056
18057 export_dynamic_flag_spec='${wl}-bexpall'
18058 # It seems that -bexpall does not export symbols beginning with
18059 # underscore (_), so it is better to generate a list of symbols to export.
18060 always_export_symbols=yes
18061 if test "$aix_use_runtimelinking" = yes; then
18062 # Warning - without using the other runtime loading flags (-brtl),
18063 # -berok will link without error, but may produce a broken library.
18064 allow_undefined_flag='-berok'
18065 # Determine the default libpath from the value encoded in an
18066 # empty executable.
18067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18068 /* end confdefs.h. */
18069
18070 int
18071 main ()
18072 {
18073
18074 ;
18075 return 0;
18076 }
18077 _ACEOF
18078 if ac_fn_c_try_link "$LINENO"; then :
18079
18080 lt_aix_libpath_sed='
18081 /Import File Strings/,/^$/ {
18082 /^0/ {
18083 s/^0 *\(.*\)$/\1/
18084 p
18085 }
18086 }'
18087 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18088 # Check for a 64-bit object if we didn't find anything.
18089 if test -z "$aix_libpath"; then
18090 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18091 fi
18092 fi
18093 rm -f core conftest.err conftest.$ac_objext \
18094 conftest$ac_exeext conftest.$ac_ext
18095 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18096
18097 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18098 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"
18099 else
18100 if test "$host_cpu" = ia64; then
18101 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
18102 allow_undefined_flag="-z nodefs"
18103 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"
18104 else
18105 # Determine the default libpath from the value encoded in an
18106 # empty executable.
18107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108 /* end confdefs.h. */
18109
18110 int
18111 main ()
18112 {
18113
18114 ;
18115 return 0;
18116 }
18117 _ACEOF
18118 if ac_fn_c_try_link "$LINENO"; then :
18119
18120 lt_aix_libpath_sed='
18121 /Import File Strings/,/^$/ {
18122 /^0/ {
18123 s/^0 *\(.*\)$/\1/
18124 p
18125 }
18126 }'
18127 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18128 # Check for a 64-bit object if we didn't find anything.
18129 if test -z "$aix_libpath"; then
18130 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18131 fi
18132 fi
18133 rm -f core conftest.err conftest.$ac_objext \
18134 conftest$ac_exeext conftest.$ac_ext
18135 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18136
18137 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18138 # Warning - without using the other run time loading flags,
18139 # -berok will link without error, but may produce a broken library.
18140 no_undefined_flag=' ${wl}-bernotok'
18141 allow_undefined_flag=' ${wl}-berok'
18142 if test "$with_gnu_ld" = yes; then
18143 # We only use this code for GNU lds that support --whole-archive.
18144 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18145 else
18146 # Exported symbols can be pulled into shared objects from archives
18147 whole_archive_flag_spec='$convenience'
18148 fi
18149 archive_cmds_need_lc=yes
18150 # This is similar to how AIX traditionally builds its shared libraries.
18151 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'
18152 fi
18153 fi
18154 ;;
18155
18156 amigaos*)
18157 case $host_cpu in
18158 powerpc)
18159 # see comment about AmigaOS4 .so support
18160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18161 archive_expsym_cmds=''
18162 ;;
18163 m68k)
18164 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)'
18165 hardcode_libdir_flag_spec='-L$libdir'
18166 hardcode_minus_L=yes
18167 ;;
18168 esac
18169 ;;
18170
18171 bsdi[45]*)
18172 export_dynamic_flag_spec=-rdynamic
18173 ;;
18174
18175 cygwin* | mingw* | pw32* | cegcc*)
18176 # When not using gcc, we currently assume that we are using
18177 # Microsoft Visual C++.
18178 # hardcode_libdir_flag_spec is actually meaningless, as there is
18179 # no search path for DLLs.
18180 hardcode_libdir_flag_spec=' '
18181 allow_undefined_flag=unsupported
18182 # Tell ltmain to make .lib files, not .a files.
18183 libext=lib
18184 # Tell ltmain to make .dll files, not .so files.
18185 shrext_cmds=".dll"
18186 # FIXME: Setting linknames here is a bad hack.
18187 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18188 # The linker will automatically build a .lib file if we build a DLL.
18189 old_archive_from_new_cmds='true'
18190 # FIXME: Should let the user specify the lib program.
18191 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18192 fix_srcfile_path='`cygpath -w "$srcfile"`'
18193 enable_shared_with_static_runtimes=yes
18194 ;;
18195
18196 darwin* | rhapsody*)
18197
18198
18199 archive_cmds_need_lc=no
18200 hardcode_direct=no
18201 hardcode_automatic=yes
18202 hardcode_shlibpath_var=unsupported
18203 if test "$lt_cv_ld_force_load" = "yes"; then
18204 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\"`'
18205 else
18206 whole_archive_flag_spec=''
18207 fi
18208 link_all_deplibs=yes
18209 allow_undefined_flag="$_lt_dar_allow_undefined"
18210 case $cc_basename in
18211 ifort*) _lt_dar_can_shared=yes ;;
18212 *) _lt_dar_can_shared=$GCC ;;
18213 esac
18214 if test "$_lt_dar_can_shared" = "yes"; then
18215 output_verbose_link_cmd=func_echo_all
18216 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18217 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18218 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}"
18219 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}"
18220
18221 else
18222 ld_shlibs=no
18223 fi
18224
18225 ;;
18226
18227 dgux*)
18228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18229 hardcode_libdir_flag_spec='-L$libdir'
18230 hardcode_shlibpath_var=no
18231 ;;
18232
18233 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18234 # support. Future versions do this automatically, but an explicit c++rt0.o
18235 # does not break anything, and helps significantly (at the cost of a little
18236 # extra space).
18237 freebsd2.2*)
18238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18239 hardcode_libdir_flag_spec='-R$libdir'
18240 hardcode_direct=yes
18241 hardcode_shlibpath_var=no
18242 ;;
18243
18244 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18245 freebsd2.*)
18246 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18247 hardcode_direct=yes
18248 hardcode_minus_L=yes
18249 hardcode_shlibpath_var=no
18250 ;;
18251
18252 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18253 freebsd* | dragonfly*)
18254 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18255 hardcode_libdir_flag_spec='-R$libdir'
18256 hardcode_direct=yes
18257 hardcode_shlibpath_var=no
18258 ;;
18259
18260 hpux9*)
18261 if test "$GCC" = yes; then
18262 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'
18263 else
18264 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'
18265 fi
18266 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18267 hardcode_libdir_separator=:
18268 hardcode_direct=yes
18269
18270 # hardcode_minus_L: Not really in the search PATH,
18271 # but as the default location of the library.
18272 hardcode_minus_L=yes
18273 export_dynamic_flag_spec='${wl}-E'
18274 ;;
18275
18276 hpux10*)
18277 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18278 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18279 else
18280 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18281 fi
18282 if test "$with_gnu_ld" = no; then
18283 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18284 hardcode_libdir_flag_spec_ld='+b $libdir'
18285 hardcode_libdir_separator=:
18286 hardcode_direct=yes
18287 hardcode_direct_absolute=yes
18288 export_dynamic_flag_spec='${wl}-E'
18289 # hardcode_minus_L: Not really in the search PATH,
18290 # but as the default location of the library.
18291 hardcode_minus_L=yes
18292 fi
18293 ;;
18294
18295 hpux11*)
18296 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18297 case $host_cpu in
18298 hppa*64*)
18299 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18300 ;;
18301 ia64*)
18302 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18303 ;;
18304 *)
18305 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18306 ;;
18307 esac
18308 else
18309 case $host_cpu in
18310 hppa*64*)
18311 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18312 ;;
18313 ia64*)
18314 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18315 ;;
18316 *)
18317
18318 # Older versions of the 11.00 compiler do not understand -b yet
18319 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18321 $as_echo_n "checking if $CC understands -b... " >&6; }
18322 if ${lt_cv_prog_compiler__b+:} false; then :
18323 $as_echo_n "(cached) " >&6
18324 else
18325 lt_cv_prog_compiler__b=no
18326 save_LDFLAGS="$LDFLAGS"
18327 LDFLAGS="$LDFLAGS -b"
18328 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18329 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18330 # The linker can only warn and ignore the option if not recognized
18331 # So say no if there are warnings
18332 if test -s conftest.err; then
18333 # Append any errors to the config.log.
18334 cat conftest.err 1>&5
18335 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18337 if diff conftest.exp conftest.er2 >/dev/null; then
18338 lt_cv_prog_compiler__b=yes
18339 fi
18340 else
18341 lt_cv_prog_compiler__b=yes
18342 fi
18343 fi
18344 $RM -r conftest*
18345 LDFLAGS="$save_LDFLAGS"
18346
18347 fi
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18349 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18350
18351 if test x"$lt_cv_prog_compiler__b" = xyes; then
18352 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18353 else
18354 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18355 fi
18356
18357 ;;
18358 esac
18359 fi
18360 if test "$with_gnu_ld" = no; then
18361 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18362 hardcode_libdir_separator=:
18363
18364 case $host_cpu in
18365 hppa*64*|ia64*)
18366 hardcode_direct=no
18367 hardcode_shlibpath_var=no
18368 ;;
18369 *)
18370 hardcode_direct=yes
18371 hardcode_direct_absolute=yes
18372 export_dynamic_flag_spec='${wl}-E'
18373
18374 # hardcode_minus_L: Not really in the search PATH,
18375 # but as the default location of the library.
18376 hardcode_minus_L=yes
18377 ;;
18378 esac
18379 fi
18380 ;;
18381
18382 irix5* | irix6* | nonstopux*)
18383 if test "$GCC" = yes; then
18384 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'
18385 # Try to use the -exported_symbol ld option, if it does not
18386 # work, assume that -exports_file does not work either and
18387 # implicitly export all symbols.
18388 save_LDFLAGS="$LDFLAGS"
18389 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18391 /* end confdefs.h. */
18392 int foo(void) {}
18393 _ACEOF
18394 if ac_fn_c_try_link "$LINENO"; then :
18395 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'
18396
18397 fi
18398 rm -f core conftest.err conftest.$ac_objext \
18399 conftest$ac_exeext conftest.$ac_ext
18400 LDFLAGS="$save_LDFLAGS"
18401 else
18402 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'
18403 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'
18404 fi
18405 archive_cmds_need_lc='no'
18406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18407 hardcode_libdir_separator=:
18408 inherit_rpath=yes
18409 link_all_deplibs=yes
18410 ;;
18411
18412 netbsd*)
18413 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18414 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18415 else
18416 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18417 fi
18418 hardcode_libdir_flag_spec='-R$libdir'
18419 hardcode_direct=yes
18420 hardcode_shlibpath_var=no
18421 ;;
18422
18423 newsos6)
18424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18425 hardcode_direct=yes
18426 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18427 hardcode_libdir_separator=:
18428 hardcode_shlibpath_var=no
18429 ;;
18430
18431 *nto* | *qnx*)
18432 ;;
18433
18434 openbsd*)
18435 if test -f /usr/libexec/ld.so; then
18436 hardcode_direct=yes
18437 hardcode_shlibpath_var=no
18438 hardcode_direct_absolute=yes
18439 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18440 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18441 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18442 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18443 export_dynamic_flag_spec='${wl}-E'
18444 else
18445 case $host_os in
18446 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18447 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18448 hardcode_libdir_flag_spec='-R$libdir'
18449 ;;
18450 *)
18451 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18452 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18453 ;;
18454 esac
18455 fi
18456 else
18457 ld_shlibs=no
18458 fi
18459 ;;
18460
18461 os2*)
18462 hardcode_libdir_flag_spec='-L$libdir'
18463 hardcode_minus_L=yes
18464 allow_undefined_flag=unsupported
18465 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'
18466 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18467 ;;
18468
18469 osf3*)
18470 if test "$GCC" = yes; then
18471 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18472 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'
18473 else
18474 allow_undefined_flag=' -expect_unresolved \*'
18475 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'
18476 fi
18477 archive_cmds_need_lc='no'
18478 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18479 hardcode_libdir_separator=:
18480 ;;
18481
18482 osf4* | osf5*) # as osf3* with the addition of -msym flag
18483 if test "$GCC" = yes; then
18484 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18485 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'
18486 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18487 else
18488 allow_undefined_flag=' -expect_unresolved \*'
18489 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'
18490 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~
18491 $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'
18492
18493 # Both c and cxx compiler support -rpath directly
18494 hardcode_libdir_flag_spec='-rpath $libdir'
18495 fi
18496 archive_cmds_need_lc='no'
18497 hardcode_libdir_separator=:
18498 ;;
18499
18500 solaris*)
18501 no_undefined_flag=' -z defs'
18502 if test "$GCC" = yes; then
18503 wlarc='${wl}'
18504 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18505 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18506 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18507 else
18508 case `$CC -V 2>&1` in
18509 *"Compilers 5.0"*)
18510 wlarc=''
18511 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18512 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18513 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18514 ;;
18515 *)
18516 wlarc='${wl}'
18517 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18518 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18519 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18520 ;;
18521 esac
18522 fi
18523 hardcode_libdir_flag_spec='-R$libdir'
18524 hardcode_shlibpath_var=no
18525 case $host_os in
18526 solaris2.[0-5] | solaris2.[0-5].*) ;;
18527 *)
18528 # The compiler driver will combine and reorder linker options,
18529 # but understands `-z linker_flag'. GCC discards it without `$wl',
18530 # but is careful enough not to reorder.
18531 # Supported since Solaris 2.6 (maybe 2.5.1?)
18532 if test "$GCC" = yes; then
18533 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18534 else
18535 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18536 fi
18537 ;;
18538 esac
18539 link_all_deplibs=yes
18540 ;;
18541
18542 sunos4*)
18543 if test "x$host_vendor" = xsequent; then
18544 # Use $CC to link under sequent, because it throws in some extra .o
18545 # files that make .init and .fini sections work.
18546 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18547 else
18548 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18549 fi
18550 hardcode_libdir_flag_spec='-L$libdir'
18551 hardcode_direct=yes
18552 hardcode_minus_L=yes
18553 hardcode_shlibpath_var=no
18554 ;;
18555
18556 sysv4)
18557 case $host_vendor in
18558 sni)
18559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18560 hardcode_direct=yes # is this really true???
18561 ;;
18562 siemens)
18563 ## LD is ld it makes a PLAMLIB
18564 ## CC just makes a GrossModule.
18565 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18566 reload_cmds='$CC -r -o $output$reload_objs'
18567 hardcode_direct=no
18568 ;;
18569 motorola)
18570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18571 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18572 ;;
18573 esac
18574 runpath_var='LD_RUN_PATH'
18575 hardcode_shlibpath_var=no
18576 ;;
18577
18578 sysv4.3*)
18579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18580 hardcode_shlibpath_var=no
18581 export_dynamic_flag_spec='-Bexport'
18582 ;;
18583
18584 sysv4*MP*)
18585 if test -d /usr/nec; then
18586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18587 hardcode_shlibpath_var=no
18588 runpath_var=LD_RUN_PATH
18589 hardcode_runpath_var=yes
18590 ld_shlibs=yes
18591 fi
18592 ;;
18593
18594 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18595 no_undefined_flag='${wl}-z,text'
18596 archive_cmds_need_lc=no
18597 hardcode_shlibpath_var=no
18598 runpath_var='LD_RUN_PATH'
18599
18600 if test "$GCC" = yes; then
18601 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18602 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18603 else
18604 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18605 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18606 fi
18607 ;;
18608
18609 sysv5* | sco3.2v5* | sco5v6*)
18610 # Note: We can NOT use -z defs as we might desire, because we do not
18611 # link with -lc, and that would cause any symbols used from libc to
18612 # always be unresolved, which means just about no library would
18613 # ever link correctly. If we're not using GNU ld we use -z text
18614 # though, which does catch some bad symbols but isn't as heavy-handed
18615 # as -z defs.
18616 no_undefined_flag='${wl}-z,text'
18617 allow_undefined_flag='${wl}-z,nodefs'
18618 archive_cmds_need_lc=no
18619 hardcode_shlibpath_var=no
18620 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18621 hardcode_libdir_separator=':'
18622 link_all_deplibs=yes
18623 export_dynamic_flag_spec='${wl}-Bexport'
18624 runpath_var='LD_RUN_PATH'
18625
18626 if test "$GCC" = yes; then
18627 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18628 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18629 else
18630 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18631 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18632 fi
18633 ;;
18634
18635 uts4*)
18636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18637 hardcode_libdir_flag_spec='-L$libdir'
18638 hardcode_shlibpath_var=no
18639 ;;
18640
18641 *)
18642 ld_shlibs=no
18643 ;;
18644 esac
18645
18646 if test x$host_vendor = xsni; then
18647 case $host in
18648 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18649 export_dynamic_flag_spec='${wl}-Blargedynsym'
18650 ;;
18651 esac
18652 fi
18653 fi
18654
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18656 $as_echo "$ld_shlibs" >&6; }
18657 test "$ld_shlibs" = no && can_build_shared=no
18658
18659 with_gnu_ld=$with_gnu_ld
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675 #
18676 # Do we need to explicitly link libc?
18677 #
18678 case "x$archive_cmds_need_lc" in
18679 x|xyes)
18680 # Assume -lc should be added
18681 archive_cmds_need_lc=yes
18682
18683 if test "$enable_shared" = yes && test "$GCC" = yes; then
18684 case $archive_cmds in
18685 *'~'*)
18686 # FIXME: we may have to deal with multi-command sequences.
18687 ;;
18688 '$CC '*)
18689 # Test whether the compiler implicitly links with -lc since on some
18690 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18691 # to ld, don't add -lc before -lgcc.
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18693 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18694 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18695 $as_echo_n "(cached) " >&6
18696 else
18697 $RM conftest*
18698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18699
18700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18701 (eval $ac_compile) 2>&5
18702 ac_status=$?
18703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18704 test $ac_status = 0; } 2>conftest.err; then
18705 soname=conftest
18706 lib=conftest
18707 libobjs=conftest.$ac_objext
18708 deplibs=
18709 wl=$lt_prog_compiler_wl
18710 pic_flag=$lt_prog_compiler_pic
18711 compiler_flags=-v
18712 linker_flags=-v
18713 verstring=
18714 output_objdir=.
18715 libname=conftest
18716 lt_save_allow_undefined_flag=$allow_undefined_flag
18717 allow_undefined_flag=
18718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18719 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18720 ac_status=$?
18721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18722 test $ac_status = 0; }
18723 then
18724 lt_cv_archive_cmds_need_lc=no
18725 else
18726 lt_cv_archive_cmds_need_lc=yes
18727 fi
18728 allow_undefined_flag=$lt_save_allow_undefined_flag
18729 else
18730 cat conftest.err 1>&5
18731 fi
18732 $RM conftest*
18733
18734 fi
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18736 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18737 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18738 ;;
18739 esac
18740 fi
18741 ;;
18742 esac
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18901 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18902
18903 if test "$GCC" = yes; then
18904 case $host_os in
18905 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18906 *) lt_awk_arg="/^libraries:/" ;;
18907 esac
18908 case $host_os in
18909 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18910 *) lt_sed_strip_eq="s,=/,/,g" ;;
18911 esac
18912 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18913 case $lt_search_path_spec in
18914 *\;*)
18915 # if the path contains ";" then we assume it to be the separator
18916 # otherwise default to the standard path separator (i.e. ":") - it is
18917 # assumed that no part of a normal pathname contains ";" but that should
18918 # okay in the real world where ";" in dirpaths is itself problematic.
18919 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18920 ;;
18921 *)
18922 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18923 ;;
18924 esac
18925 # Ok, now we have the path, separated by spaces, we can step through it
18926 # and add multilib dir if necessary.
18927 lt_tmp_lt_search_path_spec=
18928 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18929 for lt_sys_path in $lt_search_path_spec; do
18930 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18931 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18932 else
18933 test -d "$lt_sys_path" && \
18934 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18935 fi
18936 done
18937 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18938 BEGIN {RS=" "; FS="/|\n";} {
18939 lt_foo="";
18940 lt_count=0;
18941 for (lt_i = NF; lt_i > 0; lt_i--) {
18942 if ($lt_i != "" && $lt_i != ".") {
18943 if ($lt_i == "..") {
18944 lt_count++;
18945 } else {
18946 if (lt_count == 0) {
18947 lt_foo="/" $lt_i lt_foo;
18948 } else {
18949 lt_count--;
18950 }
18951 }
18952 }
18953 }
18954 if (lt_foo != "") { lt_freq[lt_foo]++; }
18955 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18956 }'`
18957 # AWK program above erroneously prepends '/' to C:/dos/paths
18958 # for these hosts.
18959 case $host_os in
18960 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18961 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18962 esac
18963 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18964 else
18965 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18966 fi
18967 library_names_spec=
18968 libname_spec='lib$name'
18969 soname_spec=
18970 shrext_cmds=".so"
18971 postinstall_cmds=
18972 postuninstall_cmds=
18973 finish_cmds=
18974 finish_eval=
18975 shlibpath_var=
18976 shlibpath_overrides_runpath=unknown
18977 version_type=none
18978 dynamic_linker="$host_os ld.so"
18979 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18980 need_lib_prefix=unknown
18981 hardcode_into_libs=no
18982
18983 # when you set need_version to no, make sure it does not cause -set_version
18984 # flags to be left without arguments
18985 need_version=unknown
18986
18987 case $host_os in
18988 aix3*)
18989 version_type=linux
18990 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18991 shlibpath_var=LIBPATH
18992
18993 # AIX 3 has no versioning support, so we append a major version to the name.
18994 soname_spec='${libname}${release}${shared_ext}$major'
18995 ;;
18996
18997 aix[4-9]*)
18998 version_type=linux
18999 need_lib_prefix=no
19000 need_version=no
19001 hardcode_into_libs=yes
19002 if test "$host_cpu" = ia64; then
19003 # AIX 5 supports IA64
19004 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19005 shlibpath_var=LD_LIBRARY_PATH
19006 else
19007 # With GCC up to 2.95.x, collect2 would create an import file
19008 # for dependence libraries. The import file would start with
19009 # the line `#! .'. This would cause the generated library to
19010 # depend on `.', always an invalid library. This was fixed in
19011 # development snapshots of GCC prior to 3.0.
19012 case $host_os in
19013 aix4 | aix4.[01] | aix4.[01].*)
19014 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19015 echo ' yes '
19016 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19017 :
19018 else
19019 can_build_shared=no
19020 fi
19021 ;;
19022 esac
19023 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19024 # soname into executable. Probably we can add versioning support to
19025 # collect2, so additional links can be useful in future.
19026 if test "$aix_use_runtimelinking" = yes; then
19027 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19028 # instead of lib<name>.a to let people know that these are not
19029 # typical AIX shared libraries.
19030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19031 else
19032 # We preserve .a as extension for shared libraries through AIX4.2
19033 # and later when we are not doing run time linking.
19034 library_names_spec='${libname}${release}.a $libname.a'
19035 soname_spec='${libname}${release}${shared_ext}$major'
19036 fi
19037 shlibpath_var=LIBPATH
19038 fi
19039 ;;
19040
19041 amigaos*)
19042 case $host_cpu in
19043 powerpc)
19044 # Since July 2007 AmigaOS4 officially supports .so libraries.
19045 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19047 ;;
19048 m68k)
19049 library_names_spec='$libname.ixlibrary $libname.a'
19050 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19051 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'
19052 ;;
19053 esac
19054 ;;
19055
19056 beos*)
19057 library_names_spec='${libname}${shared_ext}'
19058 dynamic_linker="$host_os ld.so"
19059 shlibpath_var=LIBRARY_PATH
19060 ;;
19061
19062 bsdi[45]*)
19063 version_type=linux
19064 need_version=no
19065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19066 soname_spec='${libname}${release}${shared_ext}$major'
19067 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19068 shlibpath_var=LD_LIBRARY_PATH
19069 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19070 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19071 # the default ld.so.conf also contains /usr/contrib/lib and
19072 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19073 # libtool to hard-code these into programs
19074 ;;
19075
19076 cygwin* | mingw* | pw32* | cegcc*)
19077 version_type=windows
19078 shrext_cmds=".dll"
19079 need_version=no
19080 need_lib_prefix=no
19081
19082 case $GCC,$host_os in
19083 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19084 library_names_spec='$libname.dll.a'
19085 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19086 postinstall_cmds='base_file=`basename \${file}`~
19087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19088 dldir=$destdir/`dirname \$dlpath`~
19089 test -d \$dldir || mkdir -p \$dldir~
19090 $install_prog $dir/$dlname \$dldir/$dlname~
19091 chmod a+x \$dldir/$dlname~
19092 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19093 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19094 fi'
19095 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19096 dlpath=$dir/\$dldll~
19097 $RM \$dlpath'
19098 shlibpath_overrides_runpath=yes
19099
19100 case $host_os in
19101 cygwin*)
19102 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19103 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19104
19105 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
19106 ;;
19107 mingw* | cegcc*)
19108 # MinGW DLLs use traditional 'lib' prefix
19109 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19110 ;;
19111 pw32*)
19112 # pw32 DLLs use 'pw' prefix rather than 'lib'
19113 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19114 ;;
19115 esac
19116 ;;
19117
19118 *)
19119 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19120 ;;
19121 esac
19122 dynamic_linker='Win32 ld.exe'
19123 # FIXME: first we should search . and the directory the executable is in
19124 shlibpath_var=PATH
19125 ;;
19126
19127 darwin* | rhapsody*)
19128 dynamic_linker="$host_os dyld"
19129 version_type=darwin
19130 need_lib_prefix=no
19131 need_version=no
19132 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19133 soname_spec='${libname}${release}${major}$shared_ext'
19134 shlibpath_overrides_runpath=yes
19135 shlibpath_var=DYLD_LIBRARY_PATH
19136 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19137
19138 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
19139 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19140 ;;
19141
19142 dgux*)
19143 version_type=linux
19144 need_lib_prefix=no
19145 need_version=no
19146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19147 soname_spec='${libname}${release}${shared_ext}$major'
19148 shlibpath_var=LD_LIBRARY_PATH
19149 ;;
19150
19151 freebsd* | dragonfly*)
19152 # DragonFly does not have aout. When/if they implement a new
19153 # versioning mechanism, adjust this.
19154 if test -x /usr/bin/objformat; then
19155 objformat=`/usr/bin/objformat`
19156 else
19157 case $host_os in
19158 freebsd[23].*) objformat=aout ;;
19159 *) objformat=elf ;;
19160 esac
19161 fi
19162 version_type=freebsd-$objformat
19163 case $version_type in
19164 freebsd-elf*)
19165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19166 need_version=no
19167 need_lib_prefix=no
19168 ;;
19169 freebsd-*)
19170 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19171 need_version=yes
19172 ;;
19173 esac
19174 shlibpath_var=LD_LIBRARY_PATH
19175 case $host_os in
19176 freebsd2.*)
19177 shlibpath_overrides_runpath=yes
19178 ;;
19179 freebsd3.[01]* | freebsdelf3.[01]*)
19180 shlibpath_overrides_runpath=yes
19181 hardcode_into_libs=yes
19182 ;;
19183 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19184 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19185 shlibpath_overrides_runpath=no
19186 hardcode_into_libs=yes
19187 ;;
19188 *) # from 4.6 on, and DragonFly
19189 shlibpath_overrides_runpath=yes
19190 hardcode_into_libs=yes
19191 ;;
19192 esac
19193 ;;
19194
19195 gnu*)
19196 version_type=linux
19197 need_lib_prefix=no
19198 need_version=no
19199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19200 soname_spec='${libname}${release}${shared_ext}$major'
19201 shlibpath_var=LD_LIBRARY_PATH
19202 hardcode_into_libs=yes
19203 ;;
19204
19205 haiku*)
19206 version_type=linux
19207 need_lib_prefix=no
19208 need_version=no
19209 dynamic_linker="$host_os runtime_loader"
19210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19211 soname_spec='${libname}${release}${shared_ext}$major'
19212 shlibpath_var=LIBRARY_PATH
19213 shlibpath_overrides_runpath=yes
19214 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19215 hardcode_into_libs=yes
19216 ;;
19217
19218 hpux9* | hpux10* | hpux11*)
19219 # Give a soname corresponding to the major version so that dld.sl refuses to
19220 # link against other versions.
19221 version_type=sunos
19222 need_lib_prefix=no
19223 need_version=no
19224 case $host_cpu in
19225 ia64*)
19226 shrext_cmds='.so'
19227 hardcode_into_libs=yes
19228 dynamic_linker="$host_os dld.so"
19229 shlibpath_var=LD_LIBRARY_PATH
19230 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19232 soname_spec='${libname}${release}${shared_ext}$major'
19233 if test "X$HPUX_IA64_MODE" = X32; then
19234 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19235 else
19236 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19237 fi
19238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19239 ;;
19240 hppa*64*)
19241 shrext_cmds='.sl'
19242 hardcode_into_libs=yes
19243 dynamic_linker="$host_os dld.sl"
19244 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19245 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19247 soname_spec='${libname}${release}${shared_ext}$major'
19248 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19250 ;;
19251 *)
19252 shrext_cmds='.sl'
19253 dynamic_linker="$host_os dld.sl"
19254 shlibpath_var=SHLIB_PATH
19255 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19257 soname_spec='${libname}${release}${shared_ext}$major'
19258 ;;
19259 esac
19260 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19261 postinstall_cmds='chmod 555 $lib'
19262 # or fails outright, so override atomically:
19263 install_override_mode=555
19264 ;;
19265
19266 interix[3-9]*)
19267 version_type=linux
19268 need_lib_prefix=no
19269 need_version=no
19270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19271 soname_spec='${libname}${release}${shared_ext}$major'
19272 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19273 shlibpath_var=LD_LIBRARY_PATH
19274 shlibpath_overrides_runpath=no
19275 hardcode_into_libs=yes
19276 ;;
19277
19278 irix5* | irix6* | nonstopux*)
19279 case $host_os in
19280 nonstopux*) version_type=nonstopux ;;
19281 *)
19282 if test "$lt_cv_prog_gnu_ld" = yes; then
19283 version_type=linux
19284 else
19285 version_type=irix
19286 fi ;;
19287 esac
19288 need_lib_prefix=no
19289 need_version=no
19290 soname_spec='${libname}${release}${shared_ext}$major'
19291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19292 case $host_os in
19293 irix5* | nonstopux*)
19294 libsuff= shlibsuff=
19295 ;;
19296 *)
19297 case $LD in # libtool.m4 will add one of these switches to LD
19298 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19299 libsuff= shlibsuff= libmagic=32-bit;;
19300 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19301 libsuff=32 shlibsuff=N32 libmagic=N32;;
19302 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19303 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19304 *) libsuff= shlibsuff= libmagic=never-match;;
19305 esac
19306 ;;
19307 esac
19308 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19309 shlibpath_overrides_runpath=no
19310 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19311 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19312 hardcode_into_libs=yes
19313 ;;
19314
19315 # No shared lib support for Linux oldld, aout, or coff.
19316 linux*oldld* | linux*aout* | linux*coff*)
19317 dynamic_linker=no
19318 ;;
19319
19320 # This must be Linux ELF.
19321
19322 # uclinux* changes (here and below) have been submitted to the libtool
19323 # project, but have not yet been accepted: they are GCC-local changes
19324 # for the time being. (See
19325 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19326 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
19327 version_type=linux
19328 need_lib_prefix=no
19329 need_version=no
19330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19331 soname_spec='${libname}${release}${shared_ext}$major'
19332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19333 shlibpath_var=LD_LIBRARY_PATH
19334 shlibpath_overrides_runpath=no
19335
19336 # Some binutils ld are patched to set DT_RUNPATH
19337 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19338 $as_echo_n "(cached) " >&6
19339 else
19340 lt_cv_shlibpath_overrides_runpath=no
19341 save_LDFLAGS=$LDFLAGS
19342 save_libdir=$libdir
19343 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19344 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19346 /* end confdefs.h. */
19347
19348 int
19349 main ()
19350 {
19351
19352 ;
19353 return 0;
19354 }
19355 _ACEOF
19356 if ac_fn_c_try_link "$LINENO"; then :
19357 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19358 lt_cv_shlibpath_overrides_runpath=yes
19359 fi
19360 fi
19361 rm -f core conftest.err conftest.$ac_objext \
19362 conftest$ac_exeext conftest.$ac_ext
19363 LDFLAGS=$save_LDFLAGS
19364 libdir=$save_libdir
19365
19366 fi
19367
19368 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19369
19370 # This implies no fast_install, which is unacceptable.
19371 # Some rework will be needed to allow for fast_install
19372 # before this can be enabled.
19373 hardcode_into_libs=yes
19374
19375 # Append ld.so.conf contents to the search path
19376 if test -f /etc/ld.so.conf; then
19377 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' ' '`
19378 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19379 fi
19380
19381 # We used to test for /lib/ld.so.1 and disable shared libraries on
19382 # powerpc, because MkLinux only supported shared libraries with the
19383 # GNU dynamic linker. Since this was broken with cross compilers,
19384 # most powerpc-linux boxes support dynamic linking these days and
19385 # people can always --disable-shared, the test was removed, and we
19386 # assume the GNU/Linux dynamic linker is in use.
19387 dynamic_linker='GNU/Linux ld.so'
19388 ;;
19389
19390 netbsd*)
19391 version_type=sunos
19392 need_lib_prefix=no
19393 need_version=no
19394 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19397 dynamic_linker='NetBSD (a.out) ld.so'
19398 else
19399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19400 soname_spec='${libname}${release}${shared_ext}$major'
19401 dynamic_linker='NetBSD ld.elf_so'
19402 fi
19403 shlibpath_var=LD_LIBRARY_PATH
19404 shlibpath_overrides_runpath=yes
19405 hardcode_into_libs=yes
19406 ;;
19407
19408 newsos6)
19409 version_type=linux
19410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19411 shlibpath_var=LD_LIBRARY_PATH
19412 shlibpath_overrides_runpath=yes
19413 ;;
19414
19415 *nto* | *qnx*)
19416 version_type=qnx
19417 need_lib_prefix=no
19418 need_version=no
19419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19420 soname_spec='${libname}${release}${shared_ext}$major'
19421 shlibpath_var=LD_LIBRARY_PATH
19422 shlibpath_overrides_runpath=no
19423 hardcode_into_libs=yes
19424 dynamic_linker='ldqnx.so'
19425 ;;
19426
19427 openbsd*)
19428 version_type=sunos
19429 sys_lib_dlsearch_path_spec="/usr/lib"
19430 need_lib_prefix=no
19431 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19432 case $host_os in
19433 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19434 *) need_version=no ;;
19435 esac
19436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19438 shlibpath_var=LD_LIBRARY_PATH
19439 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19440 case $host_os in
19441 openbsd2.[89] | openbsd2.[89].*)
19442 shlibpath_overrides_runpath=no
19443 ;;
19444 *)
19445 shlibpath_overrides_runpath=yes
19446 ;;
19447 esac
19448 else
19449 shlibpath_overrides_runpath=yes
19450 fi
19451 ;;
19452
19453 os2*)
19454 libname_spec='$name'
19455 shrext_cmds=".dll"
19456 need_lib_prefix=no
19457 library_names_spec='$libname${shared_ext} $libname.a'
19458 dynamic_linker='OS/2 ld.exe'
19459 shlibpath_var=LIBPATH
19460 ;;
19461
19462 osf3* | osf4* | osf5*)
19463 version_type=osf
19464 need_lib_prefix=no
19465 need_version=no
19466 soname_spec='${libname}${release}${shared_ext}$major'
19467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19468 shlibpath_var=LD_LIBRARY_PATH
19469 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19470 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19471 ;;
19472
19473 rdos*)
19474 dynamic_linker=no
19475 ;;
19476
19477 solaris*)
19478 version_type=linux
19479 need_lib_prefix=no
19480 need_version=no
19481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19482 soname_spec='${libname}${release}${shared_ext}$major'
19483 shlibpath_var=LD_LIBRARY_PATH
19484 shlibpath_overrides_runpath=yes
19485 hardcode_into_libs=yes
19486 # ldd complains unless libraries are executable
19487 postinstall_cmds='chmod +x $lib'
19488 ;;
19489
19490 sunos4*)
19491 version_type=sunos
19492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19493 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19494 shlibpath_var=LD_LIBRARY_PATH
19495 shlibpath_overrides_runpath=yes
19496 if test "$with_gnu_ld" = yes; then
19497 need_lib_prefix=no
19498 fi
19499 need_version=yes
19500 ;;
19501
19502 sysv4 | sysv4.3*)
19503 version_type=linux
19504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19505 soname_spec='${libname}${release}${shared_ext}$major'
19506 shlibpath_var=LD_LIBRARY_PATH
19507 case $host_vendor in
19508 sni)
19509 shlibpath_overrides_runpath=no
19510 need_lib_prefix=no
19511 runpath_var=LD_RUN_PATH
19512 ;;
19513 siemens)
19514 need_lib_prefix=no
19515 ;;
19516 motorola)
19517 need_lib_prefix=no
19518 need_version=no
19519 shlibpath_overrides_runpath=no
19520 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19521 ;;
19522 esac
19523 ;;
19524
19525 sysv4*MP*)
19526 if test -d /usr/nec ;then
19527 version_type=linux
19528 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19529 soname_spec='$libname${shared_ext}.$major'
19530 shlibpath_var=LD_LIBRARY_PATH
19531 fi
19532 ;;
19533
19534 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19535 version_type=freebsd-elf
19536 need_lib_prefix=no
19537 need_version=no
19538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19539 soname_spec='${libname}${release}${shared_ext}$major'
19540 shlibpath_var=LD_LIBRARY_PATH
19541 shlibpath_overrides_runpath=yes
19542 hardcode_into_libs=yes
19543 if test "$with_gnu_ld" = yes; then
19544 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19545 else
19546 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19547 case $host_os in
19548 sco3.2v5*)
19549 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19550 ;;
19551 esac
19552 fi
19553 sys_lib_dlsearch_path_spec='/usr/lib'
19554 ;;
19555
19556 tpf*)
19557 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19558 version_type=linux
19559 need_lib_prefix=no
19560 need_version=no
19561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19562 shlibpath_var=LD_LIBRARY_PATH
19563 shlibpath_overrides_runpath=no
19564 hardcode_into_libs=yes
19565 ;;
19566
19567 uts4*)
19568 version_type=linux
19569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19570 soname_spec='${libname}${release}${shared_ext}$major'
19571 shlibpath_var=LD_LIBRARY_PATH
19572 ;;
19573
19574 *)
19575 dynamic_linker=no
19576 ;;
19577 esac
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19579 $as_echo "$dynamic_linker" >&6; }
19580 test "$dynamic_linker" = no && can_build_shared=no
19581
19582 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19583 if test "$GCC" = yes; then
19584 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19585 fi
19586
19587 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19588 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19589 fi
19590 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19591 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19592 fi
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19686 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19687 hardcode_action=
19688 if test -n "$hardcode_libdir_flag_spec" ||
19689 test -n "$runpath_var" ||
19690 test "X$hardcode_automatic" = "Xyes" ; then
19691
19692 # We can hardcode non-existent directories.
19693 if test "$hardcode_direct" != no &&
19694 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19695 # have to relink, otherwise we might link with an installed library
19696 # when we should be linking with a yet-to-be-installed one
19697 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19698 test "$hardcode_minus_L" != no; then
19699 # Linking always hardcodes the temporary library directory.
19700 hardcode_action=relink
19701 else
19702 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19703 hardcode_action=immediate
19704 fi
19705 else
19706 # We cannot hardcode anything, or else we can only hardcode existing
19707 # directories.
19708 hardcode_action=unsupported
19709 fi
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19711 $as_echo "$hardcode_action" >&6; }
19712
19713 if test "$hardcode_action" = relink ||
19714 test "$inherit_rpath" = yes; then
19715 # Fast installation is not supported
19716 enable_fast_install=no
19717 elif test "$shlibpath_overrides_runpath" = yes ||
19718 test "$enable_shared" = no; then
19719 # Fast installation is not necessary
19720 enable_fast_install=needless
19721 fi
19722
19723
19724
19725
19726
19727
19728 if test "x$enable_dlopen" != xyes; then
19729 enable_dlopen=unknown
19730 enable_dlopen_self=unknown
19731 enable_dlopen_self_static=unknown
19732 else
19733 lt_cv_dlopen=no
19734 lt_cv_dlopen_libs=
19735
19736 case $host_os in
19737 beos*)
19738 lt_cv_dlopen="load_add_on"
19739 lt_cv_dlopen_libs=
19740 lt_cv_dlopen_self=yes
19741 ;;
19742
19743 mingw* | pw32* | cegcc*)
19744 lt_cv_dlopen="LoadLibrary"
19745 lt_cv_dlopen_libs=
19746 ;;
19747
19748 cygwin*)
19749 lt_cv_dlopen="dlopen"
19750 lt_cv_dlopen_libs=
19751 ;;
19752
19753 darwin*)
19754 # if libdl is installed we need to link against it
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19756 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19757 if ${ac_cv_lib_dl_dlopen+:} false; then :
19758 $as_echo_n "(cached) " >&6
19759 else
19760 ac_check_lib_save_LIBS=$LIBS
19761 LIBS="-ldl $LIBS"
19762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19763 /* end confdefs.h. */
19764
19765 /* Override any GCC internal prototype to avoid an error.
19766 Use char because int might match the return type of a GCC
19767 builtin and then its argument prototype would still apply. */
19768 #ifdef __cplusplus
19769 extern "C"
19770 #endif
19771 char dlopen ();
19772 int
19773 main ()
19774 {
19775 return dlopen ();
19776 ;
19777 return 0;
19778 }
19779 _ACEOF
19780 if ac_fn_c_try_link "$LINENO"; then :
19781 ac_cv_lib_dl_dlopen=yes
19782 else
19783 ac_cv_lib_dl_dlopen=no
19784 fi
19785 rm -f core conftest.err conftest.$ac_objext \
19786 conftest$ac_exeext conftest.$ac_ext
19787 LIBS=$ac_check_lib_save_LIBS
19788 fi
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19790 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19791 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19792 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19793 else
19794
19795 lt_cv_dlopen="dyld"
19796 lt_cv_dlopen_libs=
19797 lt_cv_dlopen_self=yes
19798
19799 fi
19800
19801 ;;
19802
19803 *)
19804 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19805 if test "x$ac_cv_func_shl_load" = xyes; then :
19806 lt_cv_dlopen="shl_load"
19807 else
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19809 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19810 if ${ac_cv_lib_dld_shl_load+:} false; then :
19811 $as_echo_n "(cached) " >&6
19812 else
19813 ac_check_lib_save_LIBS=$LIBS
19814 LIBS="-ldld $LIBS"
19815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19816 /* end confdefs.h. */
19817
19818 /* Override any GCC internal prototype to avoid an error.
19819 Use char because int might match the return type of a GCC
19820 builtin and then its argument prototype would still apply. */
19821 #ifdef __cplusplus
19822 extern "C"
19823 #endif
19824 char shl_load ();
19825 int
19826 main ()
19827 {
19828 return shl_load ();
19829 ;
19830 return 0;
19831 }
19832 _ACEOF
19833 if ac_fn_c_try_link "$LINENO"; then :
19834 ac_cv_lib_dld_shl_load=yes
19835 else
19836 ac_cv_lib_dld_shl_load=no
19837 fi
19838 rm -f core conftest.err conftest.$ac_objext \
19839 conftest$ac_exeext conftest.$ac_ext
19840 LIBS=$ac_check_lib_save_LIBS
19841 fi
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19843 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19844 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19845 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19846 else
19847 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19848 if test "x$ac_cv_func_dlopen" = xyes; then :
19849 lt_cv_dlopen="dlopen"
19850 else
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19852 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19853 if ${ac_cv_lib_dl_dlopen+:} false; then :
19854 $as_echo_n "(cached) " >&6
19855 else
19856 ac_check_lib_save_LIBS=$LIBS
19857 LIBS="-ldl $LIBS"
19858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19859 /* end confdefs.h. */
19860
19861 /* Override any GCC internal prototype to avoid an error.
19862 Use char because int might match the return type of a GCC
19863 builtin and then its argument prototype would still apply. */
19864 #ifdef __cplusplus
19865 extern "C"
19866 #endif
19867 char dlopen ();
19868 int
19869 main ()
19870 {
19871 return dlopen ();
19872 ;
19873 return 0;
19874 }
19875 _ACEOF
19876 if ac_fn_c_try_link "$LINENO"; then :
19877 ac_cv_lib_dl_dlopen=yes
19878 else
19879 ac_cv_lib_dl_dlopen=no
19880 fi
19881 rm -f core conftest.err conftest.$ac_objext \
19882 conftest$ac_exeext conftest.$ac_ext
19883 LIBS=$ac_check_lib_save_LIBS
19884 fi
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19886 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19887 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19888 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19889 else
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19891 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19892 if ${ac_cv_lib_svld_dlopen+:} false; then :
19893 $as_echo_n "(cached) " >&6
19894 else
19895 ac_check_lib_save_LIBS=$LIBS
19896 LIBS="-lsvld $LIBS"
19897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19898 /* end confdefs.h. */
19899
19900 /* Override any GCC internal prototype to avoid an error.
19901 Use char because int might match the return type of a GCC
19902 builtin and then its argument prototype would still apply. */
19903 #ifdef __cplusplus
19904 extern "C"
19905 #endif
19906 char dlopen ();
19907 int
19908 main ()
19909 {
19910 return dlopen ();
19911 ;
19912 return 0;
19913 }
19914 _ACEOF
19915 if ac_fn_c_try_link "$LINENO"; then :
19916 ac_cv_lib_svld_dlopen=yes
19917 else
19918 ac_cv_lib_svld_dlopen=no
19919 fi
19920 rm -f core conftest.err conftest.$ac_objext \
19921 conftest$ac_exeext conftest.$ac_ext
19922 LIBS=$ac_check_lib_save_LIBS
19923 fi
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19925 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19926 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19927 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19928 else
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19930 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19931 if ${ac_cv_lib_dld_dld_link+:} false; then :
19932 $as_echo_n "(cached) " >&6
19933 else
19934 ac_check_lib_save_LIBS=$LIBS
19935 LIBS="-ldld $LIBS"
19936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19937 /* end confdefs.h. */
19938
19939 /* Override any GCC internal prototype to avoid an error.
19940 Use char because int might match the return type of a GCC
19941 builtin and then its argument prototype would still apply. */
19942 #ifdef __cplusplus
19943 extern "C"
19944 #endif
19945 char dld_link ();
19946 int
19947 main ()
19948 {
19949 return dld_link ();
19950 ;
19951 return 0;
19952 }
19953 _ACEOF
19954 if ac_fn_c_try_link "$LINENO"; then :
19955 ac_cv_lib_dld_dld_link=yes
19956 else
19957 ac_cv_lib_dld_dld_link=no
19958 fi
19959 rm -f core conftest.err conftest.$ac_objext \
19960 conftest$ac_exeext conftest.$ac_ext
19961 LIBS=$ac_check_lib_save_LIBS
19962 fi
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19964 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19965 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19966 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19967 fi
19968
19969
19970 fi
19971
19972
19973 fi
19974
19975
19976 fi
19977
19978
19979 fi
19980
19981
19982 fi
19983
19984 ;;
19985 esac
19986
19987 if test "x$lt_cv_dlopen" != xno; then
19988 enable_dlopen=yes
19989 else
19990 enable_dlopen=no
19991 fi
19992
19993 case $lt_cv_dlopen in
19994 dlopen)
19995 save_CPPFLAGS="$CPPFLAGS"
19996 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19997
19998 save_LDFLAGS="$LDFLAGS"
19999 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20000
20001 save_LIBS="$LIBS"
20002 LIBS="$lt_cv_dlopen_libs $LIBS"
20003
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
20005 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
20006 if ${lt_cv_dlopen_self+:} false; then :
20007 $as_echo_n "(cached) " >&6
20008 else
20009 if test "$cross_compiling" = yes; then :
20010 lt_cv_dlopen_self=cross
20011 else
20012 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20013 lt_status=$lt_dlunknown
20014 cat > conftest.$ac_ext <<_LT_EOF
20015 #line 20015 "configure"
20016 #include "confdefs.h"
20017
20018 #if HAVE_DLFCN_H
20019 #include <dlfcn.h>
20020 #endif
20021
20022 #include <stdio.h>
20023
20024 #ifdef RTLD_GLOBAL
20025 # define LT_DLGLOBAL RTLD_GLOBAL
20026 #else
20027 # ifdef DL_GLOBAL
20028 # define LT_DLGLOBAL DL_GLOBAL
20029 # else
20030 # define LT_DLGLOBAL 0
20031 # endif
20032 #endif
20033
20034 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20035 find out it does not work in some platform. */
20036 #ifndef LT_DLLAZY_OR_NOW
20037 # ifdef RTLD_LAZY
20038 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20039 # else
20040 # ifdef DL_LAZY
20041 # define LT_DLLAZY_OR_NOW DL_LAZY
20042 # else
20043 # ifdef RTLD_NOW
20044 # define LT_DLLAZY_OR_NOW RTLD_NOW
20045 # else
20046 # ifdef DL_NOW
20047 # define LT_DLLAZY_OR_NOW DL_NOW
20048 # else
20049 # define LT_DLLAZY_OR_NOW 0
20050 # endif
20051 # endif
20052 # endif
20053 # endif
20054 #endif
20055
20056 /* When -fvisbility=hidden is used, assume the code has been annotated
20057 correspondingly for the symbols needed. */
20058 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20059 void fnord () __attribute__((visibility("default")));
20060 #endif
20061
20062 void fnord () { int i=42; }
20063 int main ()
20064 {
20065 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20066 int status = $lt_dlunknown;
20067
20068 if (self)
20069 {
20070 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20071 else
20072 {
20073 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20074 else puts (dlerror ());
20075 }
20076 /* dlclose (self); */
20077 }
20078 else
20079 puts (dlerror ());
20080
20081 return status;
20082 }
20083 _LT_EOF
20084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20085 (eval $ac_link) 2>&5
20086 ac_status=$?
20087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20088 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20089 (./conftest; exit; ) >&5 2>/dev/null
20090 lt_status=$?
20091 case x$lt_status in
20092 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20093 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20094 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
20095 esac
20096 else :
20097 # compilation failed
20098 lt_cv_dlopen_self=no
20099 fi
20100 fi
20101 rm -fr conftest*
20102
20103
20104 fi
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
20106 $as_echo "$lt_cv_dlopen_self" >&6; }
20107
20108 if test "x$lt_cv_dlopen_self" = xyes; then
20109 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
20111 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
20112 if ${lt_cv_dlopen_self_static+:} false; then :
20113 $as_echo_n "(cached) " >&6
20114 else
20115 if test "$cross_compiling" = yes; then :
20116 lt_cv_dlopen_self_static=cross
20117 else
20118 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20119 lt_status=$lt_dlunknown
20120 cat > conftest.$ac_ext <<_LT_EOF
20121 #line 20121 "configure"
20122 #include "confdefs.h"
20123
20124 #if HAVE_DLFCN_H
20125 #include <dlfcn.h>
20126 #endif
20127
20128 #include <stdio.h>
20129
20130 #ifdef RTLD_GLOBAL
20131 # define LT_DLGLOBAL RTLD_GLOBAL
20132 #else
20133 # ifdef DL_GLOBAL
20134 # define LT_DLGLOBAL DL_GLOBAL
20135 # else
20136 # define LT_DLGLOBAL 0
20137 # endif
20138 #endif
20139
20140 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20141 find out it does not work in some platform. */
20142 #ifndef LT_DLLAZY_OR_NOW
20143 # ifdef RTLD_LAZY
20144 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20145 # else
20146 # ifdef DL_LAZY
20147 # define LT_DLLAZY_OR_NOW DL_LAZY
20148 # else
20149 # ifdef RTLD_NOW
20150 # define LT_DLLAZY_OR_NOW RTLD_NOW
20151 # else
20152 # ifdef DL_NOW
20153 # define LT_DLLAZY_OR_NOW DL_NOW
20154 # else
20155 # define LT_DLLAZY_OR_NOW 0
20156 # endif
20157 # endif
20158 # endif
20159 # endif
20160 #endif
20161
20162 /* When -fvisbility=hidden is used, assume the code has been annotated
20163 correspondingly for the symbols needed. */
20164 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20165 void fnord () __attribute__((visibility("default")));
20166 #endif
20167
20168 void fnord () { int i=42; }
20169 int main ()
20170 {
20171 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20172 int status = $lt_dlunknown;
20173
20174 if (self)
20175 {
20176 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20177 else
20178 {
20179 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20180 else puts (dlerror ());
20181 }
20182 /* dlclose (self); */
20183 }
20184 else
20185 puts (dlerror ());
20186
20187 return status;
20188 }
20189 _LT_EOF
20190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20191 (eval $ac_link) 2>&5
20192 ac_status=$?
20193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20194 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20195 (./conftest; exit; ) >&5 2>/dev/null
20196 lt_status=$?
20197 case x$lt_status in
20198 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20199 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20200 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20201 esac
20202 else :
20203 # compilation failed
20204 lt_cv_dlopen_self_static=no
20205 fi
20206 fi
20207 rm -fr conftest*
20208
20209
20210 fi
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20212 $as_echo "$lt_cv_dlopen_self_static" >&6; }
20213 fi
20214
20215 CPPFLAGS="$save_CPPFLAGS"
20216 LDFLAGS="$save_LDFLAGS"
20217 LIBS="$save_LIBS"
20218 ;;
20219 esac
20220
20221 case $lt_cv_dlopen_self in
20222 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20223 *) enable_dlopen_self=unknown ;;
20224 esac
20225
20226 case $lt_cv_dlopen_self_static in
20227 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20228 *) enable_dlopen_self_static=unknown ;;
20229 esac
20230 fi
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248 striplib=
20249 old_striplib=
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20251 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
20252 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20253 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20254 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20256 $as_echo "yes" >&6; }
20257 else
20258 # FIXME - insert some real tests, host_os isn't really good enough
20259 case $host_os in
20260 darwin*)
20261 if test -n "$STRIP" ; then
20262 striplib="$STRIP -x"
20263 old_striplib="$STRIP -S"
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20265 $as_echo "yes" >&6; }
20266 else
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20268 $as_echo "no" >&6; }
20269 fi
20270 ;;
20271 *)
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20273 $as_echo "no" >&6; }
20274 ;;
20275 esac
20276 fi
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289 # Report which library types will actually be built
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20291 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20293 $as_echo "$can_build_shared" >&6; }
20294
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20296 $as_echo_n "checking whether to build shared libraries... " >&6; }
20297 test "$can_build_shared" = "no" && enable_shared=no
20298
20299 # On AIX, shared libraries and static libraries use the same namespace, and
20300 # are all built from PIC.
20301 case $host_os in
20302 aix3*)
20303 test "$enable_shared" = yes && enable_static=no
20304 if test -n "$RANLIB"; then
20305 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20306 postinstall_cmds='$RANLIB $lib'
20307 fi
20308 ;;
20309
20310 aix[4-9]*)
20311 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20312 test "$enable_shared" = yes && enable_static=no
20313 fi
20314 ;;
20315 esac
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20317 $as_echo "$enable_shared" >&6; }
20318
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20320 $as_echo_n "checking whether to build static libraries... " >&6; }
20321 # Make sure either enable_shared or enable_static is yes.
20322 test "$enable_shared" = yes || enable_static=yes
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20324 $as_echo "$enable_static" >&6; }
20325
20326
20327
20328
20329 fi
20330 ac_ext=cpp
20331 ac_cpp='$CXXCPP $CPPFLAGS'
20332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20335
20336 CC="$lt_save_CC"
20337
20338 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20339 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20340 (test "X$CXX" != "Xg++"))) ; then
20341 ac_ext=cpp
20342 ac_cpp='$CXXCPP $CPPFLAGS'
20343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20347 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20348 if test -z "$CXXCPP"; then
20349 if ${ac_cv_prog_CXXCPP+:} false; then :
20350 $as_echo_n "(cached) " >&6
20351 else
20352 # Double quotes because CXXCPP needs to be expanded
20353 for CXXCPP in "$CXX -E" "/lib/cpp"
20354 do
20355 ac_preproc_ok=false
20356 for ac_cxx_preproc_warn_flag in '' yes
20357 do
20358 # Use a header file that comes with gcc, so configuring glibc
20359 # with a fresh cross-compiler works.
20360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20361 # <limits.h> exists even on freestanding compilers.
20362 # On the NeXT, cc -E runs the code through the compiler's parser,
20363 # not just through cpp. "Syntax error" is here to catch this case.
20364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20365 /* end confdefs.h. */
20366 #ifdef __STDC__
20367 # include <limits.h>
20368 #else
20369 # include <assert.h>
20370 #endif
20371 Syntax error
20372 _ACEOF
20373 if ac_fn_cxx_try_cpp "$LINENO"; then :
20374
20375 else
20376 # Broken: fails on valid input.
20377 continue
20378 fi
20379 rm -f conftest.err conftest.i conftest.$ac_ext
20380
20381 # OK, works on sane cases. Now check whether nonexistent headers
20382 # can be detected and how.
20383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20384 /* end confdefs.h. */
20385 #include <ac_nonexistent.h>
20386 _ACEOF
20387 if ac_fn_cxx_try_cpp "$LINENO"; then :
20388 # Broken: success on invalid input.
20389 continue
20390 else
20391 # Passes both tests.
20392 ac_preproc_ok=:
20393 break
20394 fi
20395 rm -f conftest.err conftest.i conftest.$ac_ext
20396
20397 done
20398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20399 rm -f conftest.i conftest.err conftest.$ac_ext
20400 if $ac_preproc_ok; then :
20401 break
20402 fi
20403
20404 done
20405 ac_cv_prog_CXXCPP=$CXXCPP
20406
20407 fi
20408 CXXCPP=$ac_cv_prog_CXXCPP
20409 else
20410 ac_cv_prog_CXXCPP=$CXXCPP
20411 fi
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20413 $as_echo "$CXXCPP" >&6; }
20414 ac_preproc_ok=false
20415 for ac_cxx_preproc_warn_flag in '' yes
20416 do
20417 # Use a header file that comes with gcc, so configuring glibc
20418 # with a fresh cross-compiler works.
20419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20420 # <limits.h> exists even on freestanding compilers.
20421 # On the NeXT, cc -E runs the code through the compiler's parser,
20422 # not just through cpp. "Syntax error" is here to catch this case.
20423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20424 /* end confdefs.h. */
20425 #ifdef __STDC__
20426 # include <limits.h>
20427 #else
20428 # include <assert.h>
20429 #endif
20430 Syntax error
20431 _ACEOF
20432 if ac_fn_cxx_try_cpp "$LINENO"; then :
20433
20434 else
20435 # Broken: fails on valid input.
20436 continue
20437 fi
20438 rm -f conftest.err conftest.i conftest.$ac_ext
20439
20440 # OK, works on sane cases. Now check whether nonexistent headers
20441 # can be detected and how.
20442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20443 /* end confdefs.h. */
20444 #include <ac_nonexistent.h>
20445 _ACEOF
20446 if ac_fn_cxx_try_cpp "$LINENO"; then :
20447 # Broken: success on invalid input.
20448 continue
20449 else
20450 # Passes both tests.
20451 ac_preproc_ok=:
20452 break
20453 fi
20454 rm -f conftest.err conftest.i conftest.$ac_ext
20455
20456 done
20457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20458 rm -f conftest.i conftest.err conftest.$ac_ext
20459 if $ac_preproc_ok; then :
20460
20461 else
20462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20464 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20465 See \`config.log' for more details" "$LINENO" 5; }
20466 fi
20467
20468 ac_ext=cpp
20469 ac_cpp='$CXXCPP $CPPFLAGS'
20470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20473
20474 else
20475 _lt_caught_CXX_error=yes
20476 fi
20477
20478 ac_ext=cpp
20479 ac_cpp='$CXXCPP $CPPFLAGS'
20480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20483
20484 archive_cmds_need_lc_CXX=no
20485 allow_undefined_flag_CXX=
20486 always_export_symbols_CXX=no
20487 archive_expsym_cmds_CXX=
20488 compiler_needs_object_CXX=no
20489 export_dynamic_flag_spec_CXX=
20490 hardcode_direct_CXX=no
20491 hardcode_direct_absolute_CXX=no
20492 hardcode_libdir_flag_spec_CXX=
20493 hardcode_libdir_flag_spec_ld_CXX=
20494 hardcode_libdir_separator_CXX=
20495 hardcode_minus_L_CXX=no
20496 hardcode_shlibpath_var_CXX=unsupported
20497 hardcode_automatic_CXX=no
20498 inherit_rpath_CXX=no
20499 module_cmds_CXX=
20500 module_expsym_cmds_CXX=
20501 link_all_deplibs_CXX=unknown
20502 old_archive_cmds_CXX=$old_archive_cmds
20503 reload_flag_CXX=$reload_flag
20504 reload_cmds_CXX=$reload_cmds
20505 no_undefined_flag_CXX=
20506 whole_archive_flag_spec_CXX=
20507 enable_shared_with_static_runtimes_CXX=no
20508
20509 # Source file extension for C++ test sources.
20510 ac_ext=cpp
20511
20512 # Object file extension for compiled C++ test sources.
20513 objext=o
20514 objext_CXX=$objext
20515
20516 # No sense in running all these tests if we already determined that
20517 # the CXX compiler isn't working. Some variables (like enable_shared)
20518 # are currently assumed to apply to all compilers on this platform,
20519 # and will be corrupted by setting them based on a non-working compiler.
20520 if test "$_lt_caught_CXX_error" != yes; then
20521 # Code to be used in simple compile tests
20522 lt_simple_compile_test_code="int some_variable = 0;"
20523
20524 # Code to be used in simple link tests
20525 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20526
20527 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20528
20529
20530
20531
20532
20533
20534 # If no C compiler was specified, use CC.
20535 LTCC=${LTCC-"$CC"}
20536
20537 # If no C compiler flags were specified, use CFLAGS.
20538 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20539
20540 # Allow CC to be a program name with arguments.
20541 compiler=$CC
20542
20543
20544 # save warnings/boilerplate of simple test code
20545 ac_outfile=conftest.$ac_objext
20546 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20547 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20548 _lt_compiler_boilerplate=`cat conftest.err`
20549 $RM conftest*
20550
20551 ac_outfile=conftest.$ac_objext
20552 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20553 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20554 _lt_linker_boilerplate=`cat conftest.err`
20555 $RM -r conftest*
20556
20557
20558 # Allow CC to be a program name with arguments.
20559 lt_save_CC=$CC
20560 lt_save_LD=$LD
20561 lt_save_GCC=$GCC
20562 GCC=$GXX
20563 lt_save_with_gnu_ld=$with_gnu_ld
20564 lt_save_path_LD=$lt_cv_path_LD
20565 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20566 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20567 else
20568 $as_unset lt_cv_prog_gnu_ld
20569 fi
20570 if test -n "${lt_cv_path_LDCXX+set}"; then
20571 lt_cv_path_LD=$lt_cv_path_LDCXX
20572 else
20573 $as_unset lt_cv_path_LD
20574 fi
20575 test -z "${LDCXX+set}" || LD=$LDCXX
20576 CC=${CXX-"c++"}
20577 compiler=$CC
20578 compiler_CXX=$CC
20579 for cc_temp in $compiler""; do
20580 case $cc_temp in
20581 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20582 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20583 \-*) ;;
20584 *) break;;
20585 esac
20586 done
20587 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20588
20589
20590 if test -n "$compiler"; then
20591 # We don't want -fno-exception when compiling C++ code, so set the
20592 # no_builtin_flag separately
20593 if test "$GXX" = yes; then
20594 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20595 else
20596 lt_prog_compiler_no_builtin_flag_CXX=
20597 fi
20598
20599 if test "$GXX" = yes; then
20600 # Set up default GNU C++ configuration
20601
20602
20603
20604 # Check whether --with-gnu-ld was given.
20605 if test "${with_gnu_ld+set}" = set; then :
20606 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20607 else
20608 with_gnu_ld=no
20609 fi
20610
20611 ac_prog=ld
20612 if test "$GCC" = yes; then
20613 # Check if gcc -print-prog-name=ld gives a path.
20614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20615 $as_echo_n "checking for ld used by $CC... " >&6; }
20616 case $host in
20617 *-*-mingw*)
20618 # gcc leaves a trailing carriage return which upsets mingw
20619 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20620 *)
20621 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20622 esac
20623 case $ac_prog in
20624 # Accept absolute paths.
20625 [\\/]* | ?:[\\/]*)
20626 re_direlt='/[^/][^/]*/\.\./'
20627 # Canonicalize the pathname of ld
20628 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20629 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20630 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20631 done
20632 test -z "$LD" && LD="$ac_prog"
20633 ;;
20634 "")
20635 # If it fails, then pretend we aren't using GCC.
20636 ac_prog=ld
20637 ;;
20638 *)
20639 # If it is relative, then search for the first ld in PATH.
20640 with_gnu_ld=unknown
20641 ;;
20642 esac
20643 elif test "$with_gnu_ld" = yes; then
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20645 $as_echo_n "checking for GNU ld... " >&6; }
20646 else
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20648 $as_echo_n "checking for non-GNU ld... " >&6; }
20649 fi
20650 if ${lt_cv_path_LD+:} false; then :
20651 $as_echo_n "(cached) " >&6
20652 else
20653 if test -z "$LD"; then
20654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20655 for ac_dir in $PATH; do
20656 IFS="$lt_save_ifs"
20657 test -z "$ac_dir" && ac_dir=.
20658 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20659 lt_cv_path_LD="$ac_dir/$ac_prog"
20660 # Check to see if the program is GNU ld. I'd rather use --version,
20661 # but apparently some variants of GNU ld only accept -v.
20662 # Break only if it was the GNU/non-GNU ld that we prefer.
20663 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20664 *GNU* | *'with BFD'*)
20665 test "$with_gnu_ld" != no && break
20666 ;;
20667 *)
20668 test "$with_gnu_ld" != yes && break
20669 ;;
20670 esac
20671 fi
20672 done
20673 IFS="$lt_save_ifs"
20674 else
20675 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20676 fi
20677 fi
20678
20679 LD="$lt_cv_path_LD"
20680 if test -n "$LD"; then
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20682 $as_echo "$LD" >&6; }
20683 else
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20685 $as_echo "no" >&6; }
20686 fi
20687 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20689 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20690 if ${lt_cv_prog_gnu_ld+:} false; then :
20691 $as_echo_n "(cached) " >&6
20692 else
20693 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20694 case `$LD -v 2>&1 </dev/null` in
20695 *GNU* | *'with BFD'*)
20696 lt_cv_prog_gnu_ld=yes
20697 ;;
20698 *)
20699 lt_cv_prog_gnu_ld=no
20700 ;;
20701 esac
20702 fi
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20704 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20705 with_gnu_ld=$lt_cv_prog_gnu_ld
20706
20707
20708
20709
20710
20711
20712
20713 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20714 # archiving commands below assume that GNU ld is being used.
20715 if test "$with_gnu_ld" = yes; then
20716 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20717 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'
20718
20719 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20720 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20721
20722 # If archive_cmds runs LD, not CC, wlarc should be empty
20723 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20724 # investigate it a little bit more. (MM)
20725 wlarc='${wl}'
20726
20727 # ancient GNU ld didn't support --whole-archive et. al.
20728 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20729 $GREP 'no-whole-archive' > /dev/null; then
20730 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20731 else
20732 whole_archive_flag_spec_CXX=
20733 fi
20734 else
20735 with_gnu_ld=no
20736 wlarc=
20737
20738 # A generic and very simple default shared library creation
20739 # command for GNU C++ for the case where it uses the native
20740 # linker, instead of GNU ld. If possible, this setting should
20741 # overridden to take advantage of the native linker features on
20742 # the platform it is being used on.
20743 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20744 fi
20745
20746 # Commands to make compiler produce verbose output that lists
20747 # what "hidden" libraries, object files and flags are used when
20748 # linking a shared library.
20749 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20750
20751 else
20752 GXX=no
20753 with_gnu_ld=no
20754 wlarc=
20755 fi
20756
20757 # PORTME: fill in a description of your system's C++ link characteristics
20758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20759 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20760 ld_shlibs_CXX=yes
20761 case $host_os in
20762 aix3*)
20763 # FIXME: insert proper C++ library support
20764 ld_shlibs_CXX=no
20765 ;;
20766 aix[4-9]*)
20767 if test "$host_cpu" = ia64; then
20768 # On IA64, the linker does run time linking by default, so we don't
20769 # have to do anything special.
20770 aix_use_runtimelinking=no
20771 exp_sym_flag='-Bexport'
20772 no_entry_flag=""
20773 else
20774 aix_use_runtimelinking=no
20775
20776 # Test if we are trying to use run time linking or normal
20777 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20778 # need to do runtime linking.
20779 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20780 for ld_flag in $LDFLAGS; do
20781 case $ld_flag in
20782 *-brtl*)
20783 aix_use_runtimelinking=yes
20784 break
20785 ;;
20786 esac
20787 done
20788 ;;
20789 esac
20790
20791 exp_sym_flag='-bexport'
20792 no_entry_flag='-bnoentry'
20793 fi
20794
20795 # When large executables or shared objects are built, AIX ld can
20796 # have problems creating the table of contents. If linking a library
20797 # or program results in "error TOC overflow" add -mminimal-toc to
20798 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20799 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20800
20801 archive_cmds_CXX=''
20802 hardcode_direct_CXX=yes
20803 hardcode_direct_absolute_CXX=yes
20804 hardcode_libdir_separator_CXX=':'
20805 link_all_deplibs_CXX=yes
20806 file_list_spec_CXX='${wl}-f,'
20807
20808 if test "$GXX" = yes; then
20809 case $host_os in aix4.[012]|aix4.[012].*)
20810 # We only want to do this on AIX 4.2 and lower, the check
20811 # below for broken collect2 doesn't work under 4.3+
20812 collect2name=`${CC} -print-prog-name=collect2`
20813 if test -f "$collect2name" &&
20814 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20815 then
20816 # We have reworked collect2
20817 :
20818 else
20819 # We have old collect2
20820 hardcode_direct_CXX=unsupported
20821 # It fails to find uninstalled libraries when the uninstalled
20822 # path is not listed in the libpath. Setting hardcode_minus_L
20823 # to unsupported forces relinking
20824 hardcode_minus_L_CXX=yes
20825 hardcode_libdir_flag_spec_CXX='-L$libdir'
20826 hardcode_libdir_separator_CXX=
20827 fi
20828 esac
20829 shared_flag='-shared'
20830 if test "$aix_use_runtimelinking" = yes; then
20831 shared_flag="$shared_flag "'${wl}-G'
20832 fi
20833 else
20834 # not using gcc
20835 if test "$host_cpu" = ia64; then
20836 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20837 # chokes on -Wl,-G. The following line is correct:
20838 shared_flag='-G'
20839 else
20840 if test "$aix_use_runtimelinking" = yes; then
20841 shared_flag='${wl}-G'
20842 else
20843 shared_flag='${wl}-bM:SRE'
20844 fi
20845 fi
20846 fi
20847
20848 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20849 # It seems that -bexpall does not export symbols beginning with
20850 # underscore (_), so it is better to generate a list of symbols to
20851 # export.
20852 always_export_symbols_CXX=yes
20853 if test "$aix_use_runtimelinking" = yes; then
20854 # Warning - without using the other runtime loading flags (-brtl),
20855 # -berok will link without error, but may produce a broken library.
20856 allow_undefined_flag_CXX='-berok'
20857 # Determine the default libpath from the value encoded in an empty
20858 # executable.
20859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20860 /* end confdefs.h. */
20861
20862 int
20863 main ()
20864 {
20865
20866 ;
20867 return 0;
20868 }
20869 _ACEOF
20870 if ac_fn_cxx_try_link "$LINENO"; then :
20871
20872 lt_aix_libpath_sed='
20873 /Import File Strings/,/^$/ {
20874 /^0/ {
20875 s/^0 *\(.*\)$/\1/
20876 p
20877 }
20878 }'
20879 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20880 # Check for a 64-bit object if we didn't find anything.
20881 if test -z "$aix_libpath"; then
20882 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20883 fi
20884 fi
20885 rm -f core conftest.err conftest.$ac_objext \
20886 conftest$ac_exeext conftest.$ac_ext
20887 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20888
20889 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20890
20891 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"
20892 else
20893 if test "$host_cpu" = ia64; then
20894 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20895 allow_undefined_flag_CXX="-z nodefs"
20896 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"
20897 else
20898 # Determine the default libpath from the value encoded in an
20899 # empty executable.
20900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20901 /* end confdefs.h. */
20902
20903 int
20904 main ()
20905 {
20906
20907 ;
20908 return 0;
20909 }
20910 _ACEOF
20911 if ac_fn_cxx_try_link "$LINENO"; then :
20912
20913 lt_aix_libpath_sed='
20914 /Import File Strings/,/^$/ {
20915 /^0/ {
20916 s/^0 *\(.*\)$/\1/
20917 p
20918 }
20919 }'
20920 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20921 # Check for a 64-bit object if we didn't find anything.
20922 if test -z "$aix_libpath"; then
20923 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20924 fi
20925 fi
20926 rm -f core conftest.err conftest.$ac_objext \
20927 conftest$ac_exeext conftest.$ac_ext
20928 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20929
20930 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20931 # Warning - without using the other run time loading flags,
20932 # -berok will link without error, but may produce a broken library.
20933 no_undefined_flag_CXX=' ${wl}-bernotok'
20934 allow_undefined_flag_CXX=' ${wl}-berok'
20935 if test "$with_gnu_ld" = yes; then
20936 # We only use this code for GNU lds that support --whole-archive.
20937 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20938 else
20939 # Exported symbols can be pulled into shared objects from archives
20940 whole_archive_flag_spec_CXX='$convenience'
20941 fi
20942 archive_cmds_need_lc_CXX=yes
20943 # This is similar to how AIX traditionally builds its shared
20944 # libraries.
20945 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'
20946 fi
20947 fi
20948 ;;
20949
20950 beos*)
20951 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20952 allow_undefined_flag_CXX=unsupported
20953 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20954 # support --undefined. This deserves some investigation. FIXME
20955 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20956 else
20957 ld_shlibs_CXX=no
20958 fi
20959 ;;
20960
20961 chorus*)
20962 case $cc_basename in
20963 *)
20964 # FIXME: insert proper C++ library support
20965 ld_shlibs_CXX=no
20966 ;;
20967 esac
20968 ;;
20969
20970 cygwin* | mingw* | pw32* | cegcc*)
20971 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20972 # as there is no search path for DLLs.
20973 hardcode_libdir_flag_spec_CXX='-L$libdir'
20974 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20975 allow_undefined_flag_CXX=unsupported
20976 always_export_symbols_CXX=no
20977 enable_shared_with_static_runtimes_CXX=yes
20978
20979 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20980 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'
20981 # If the export-symbols file already is a .def file (1st line
20982 # is EXPORTS), use it as is; otherwise, prepend...
20983 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20984 cp $export_symbols $output_objdir/$soname.def;
20985 else
20986 echo EXPORTS > $output_objdir/$soname.def;
20987 cat $export_symbols >> $output_objdir/$soname.def;
20988 fi~
20989 $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'
20990 else
20991 ld_shlibs_CXX=no
20992 fi
20993 ;;
20994 darwin* | rhapsody*)
20995
20996
20997 archive_cmds_need_lc_CXX=no
20998 hardcode_direct_CXX=no
20999 hardcode_automatic_CXX=yes
21000 hardcode_shlibpath_var_CXX=unsupported
21001 if test "$lt_cv_ld_force_load" = "yes"; then
21002 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\"`'
21003 else
21004 whole_archive_flag_spec_CXX=''
21005 fi
21006 link_all_deplibs_CXX=yes
21007 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
21008 case $cc_basename in
21009 ifort*) _lt_dar_can_shared=yes ;;
21010 *) _lt_dar_can_shared=$GCC ;;
21011 esac
21012 if test "$_lt_dar_can_shared" = "yes"; then
21013 output_verbose_link_cmd=func_echo_all
21014 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}"
21015 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
21016 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}"
21017 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}"
21018 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
21019 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}"
21020 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}"
21021 fi
21022
21023 else
21024 ld_shlibs_CXX=no
21025 fi
21026
21027 ;;
21028
21029 dgux*)
21030 case $cc_basename in
21031 ec++*)
21032 # FIXME: insert proper C++ library support
21033 ld_shlibs_CXX=no
21034 ;;
21035 ghcx*)
21036 # Green Hills C++ Compiler
21037 # FIXME: insert proper C++ library support
21038 ld_shlibs_CXX=no
21039 ;;
21040 *)
21041 # FIXME: insert proper C++ library support
21042 ld_shlibs_CXX=no
21043 ;;
21044 esac
21045 ;;
21046
21047 freebsd2.*)
21048 # C++ shared libraries reported to be fairly broken before
21049 # switch to ELF
21050 ld_shlibs_CXX=no
21051 ;;
21052
21053 freebsd-elf*)
21054 archive_cmds_need_lc_CXX=no
21055 ;;
21056
21057 freebsd* | dragonfly*)
21058 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
21059 # conventions
21060 ld_shlibs_CXX=yes
21061 ;;
21062
21063 gnu*)
21064 ;;
21065
21066 haiku*)
21067 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21068 link_all_deplibs_CXX=yes
21069 ;;
21070
21071 hpux9*)
21072 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21073 hardcode_libdir_separator_CXX=:
21074 export_dynamic_flag_spec_CXX='${wl}-E'
21075 hardcode_direct_CXX=yes
21076 hardcode_minus_L_CXX=yes # Not in the search PATH,
21077 # but as the default
21078 # location of the library.
21079
21080 case $cc_basename in
21081 CC*)
21082 # FIXME: insert proper C++ library support
21083 ld_shlibs_CXX=no
21084 ;;
21085 aCC*)
21086 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'
21087 # Commands to make compiler produce verbose output that lists
21088 # what "hidden" libraries, object files and flags are used when
21089 # linking a shared library.
21090 #
21091 # There doesn't appear to be a way to prevent this compiler from
21092 # explicitly linking system object files so we need to strip them
21093 # from the output so that they don't get included in the library
21094 # dependencies.
21095 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"'
21096 ;;
21097 *)
21098 if test "$GXX" = yes; then
21099 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'
21100 else
21101 # FIXME: insert proper C++ library support
21102 ld_shlibs_CXX=no
21103 fi
21104 ;;
21105 esac
21106 ;;
21107
21108 hpux10*|hpux11*)
21109 if test $with_gnu_ld = no; then
21110 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21111 hardcode_libdir_separator_CXX=:
21112
21113 case $host_cpu in
21114 hppa*64*|ia64*)
21115 ;;
21116 *)
21117 export_dynamic_flag_spec_CXX='${wl}-E'
21118 ;;
21119 esac
21120 fi
21121 case $host_cpu in
21122 hppa*64*|ia64*)
21123 hardcode_direct_CXX=no
21124 hardcode_shlibpath_var_CXX=no
21125 ;;
21126 *)
21127 hardcode_direct_CXX=yes
21128 hardcode_direct_absolute_CXX=yes
21129 hardcode_minus_L_CXX=yes # Not in the search PATH,
21130 # but as the default
21131 # location of the library.
21132 ;;
21133 esac
21134
21135 case $cc_basename in
21136 CC*)
21137 # FIXME: insert proper C++ library support
21138 ld_shlibs_CXX=no
21139 ;;
21140 aCC*)
21141 case $host_cpu in
21142 hppa*64*)
21143 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21144 ;;
21145 ia64*)
21146 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21147 ;;
21148 *)
21149 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21150 ;;
21151 esac
21152 # Commands to make compiler produce verbose output that lists
21153 # what "hidden" libraries, object files and flags are used when
21154 # linking a shared library.
21155 #
21156 # There doesn't appear to be a way to prevent this compiler from
21157 # explicitly linking system object files so we need to strip them
21158 # from the output so that they don't get included in the library
21159 # dependencies.
21160 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"'
21161 ;;
21162 *)
21163 if test "$GXX" = yes; then
21164 if test $with_gnu_ld = no; then
21165 case $host_cpu in
21166 hppa*64*)
21167 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21168 ;;
21169 ia64*)
21170 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21171 ;;
21172 *)
21173 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'
21174 ;;
21175 esac
21176 fi
21177 else
21178 # FIXME: insert proper C++ library support
21179 ld_shlibs_CXX=no
21180 fi
21181 ;;
21182 esac
21183 ;;
21184
21185 interix[3-9]*)
21186 hardcode_direct_CXX=no
21187 hardcode_shlibpath_var_CXX=no
21188 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21189 export_dynamic_flag_spec_CXX='${wl}-E'
21190 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21191 # Instead, shared libraries are loaded at an image base (0x10000000 by
21192 # default) and relocated if they conflict, which is a slow very memory
21193 # consuming and fragmenting process. To avoid this, we pick a random,
21194 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21195 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21196 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'
21197 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'
21198 ;;
21199 irix5* | irix6*)
21200 case $cc_basename in
21201 CC*)
21202 # SGI C++
21203 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'
21204
21205 # Archives containing C++ object files must be created using
21206 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21207 # necessary to make sure instantiated templates are included
21208 # in the archive.
21209 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
21210 ;;
21211 *)
21212 if test "$GXX" = yes; then
21213 if test "$with_gnu_ld" = no; then
21214 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'
21215 else
21216 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'
21217 fi
21218 fi
21219 link_all_deplibs_CXX=yes
21220 ;;
21221 esac
21222 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21223 hardcode_libdir_separator_CXX=:
21224 inherit_rpath_CXX=yes
21225 ;;
21226
21227 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21228 case $cc_basename in
21229 KCC*)
21230 # Kuck and Associates, Inc. (KAI) C++ Compiler
21231
21232 # KCC will only create a shared library if the output file
21233 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21234 # to its proper name (with version) after linking.
21235 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'
21236 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'
21237 # Commands to make compiler produce verbose output that lists
21238 # what "hidden" libraries, object files and flags are used when
21239 # linking a shared library.
21240 #
21241 # There doesn't appear to be a way to prevent this compiler from
21242 # explicitly linking system object files so we need to strip them
21243 # from the output so that they don't get included in the library
21244 # dependencies.
21245 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"'
21246
21247 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21248 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21249
21250 # Archives containing C++ object files must be created using
21251 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21252 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21253 ;;
21254 icpc* | ecpc* )
21255 # Intel C++
21256 with_gnu_ld=yes
21257 # version 8.0 and above of icpc choke on multiply defined symbols
21258 # if we add $predep_objects and $postdep_objects, however 7.1 and
21259 # earlier do not add the objects themselves.
21260 case `$CC -V 2>&1` in
21261 *"Version 7."*)
21262 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21263 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'
21264 ;;
21265 *) # Version 8.0 or newer
21266 tmp_idyn=
21267 case $host_cpu in
21268 ia64*) tmp_idyn=' -i_dynamic';;
21269 esac
21270 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21271 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'
21272 ;;
21273 esac
21274 archive_cmds_need_lc_CXX=no
21275 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21276 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21277 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21278 ;;
21279 pgCC* | pgcpp*)
21280 # Portland Group C++ compiler
21281 case `$CC -V` in
21282 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
21283 prelink_cmds_CXX='tpldir=Template.dir~
21284 rm -rf $tpldir~
21285 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21286 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
21287 old_archive_cmds_CXX='tpldir=Template.dir~
21288 rm -rf $tpldir~
21289 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21290 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21291 $RANLIB $oldlib'
21292 archive_cmds_CXX='tpldir=Template.dir~
21293 rm -rf $tpldir~
21294 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21295 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21296 archive_expsym_cmds_CXX='tpldir=Template.dir~
21297 rm -rf $tpldir~
21298 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21299 $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'
21300 ;;
21301 *) # Version 6 and above use weak symbols
21302 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21303 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'
21304 ;;
21305 esac
21306
21307 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21308 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21309 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'
21310 ;;
21311 cxx*)
21312 # Compaq C++
21313 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21314 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'
21315
21316 runpath_var=LD_RUN_PATH
21317 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21318 hardcode_libdir_separator_CXX=:
21319
21320 # Commands to make compiler produce verbose output that lists
21321 # what "hidden" libraries, object files and flags are used when
21322 # linking a shared library.
21323 #
21324 # There doesn't appear to be a way to prevent this compiler from
21325 # explicitly linking system object files so we need to strip them
21326 # from the output so that they don't get included in the library
21327 # dependencies.
21328 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'
21329 ;;
21330 xl* | mpixl* | bgxl*)
21331 # IBM XL 8.0 on PPC, with GNU ld
21332 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21333 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21334 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21335 if test "x$supports_anon_versioning" = xyes; then
21336 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
21337 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21338 echo "local: *; };" >> $output_objdir/$libname.ver~
21339 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21340 fi
21341 ;;
21342 *)
21343 case `$CC -V 2>&1 | sed 5q` in
21344 *Sun\ C*)
21345 # Sun C++ 5.9
21346 no_undefined_flag_CXX=' -zdefs'
21347 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21348 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'
21349 hardcode_libdir_flag_spec_CXX='-R$libdir'
21350 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'
21351 compiler_needs_object_CXX=yes
21352
21353 # Not sure whether something based on
21354 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21355 # would be better.
21356 output_verbose_link_cmd='func_echo_all'
21357
21358 # Archives containing C++ object files must be created using
21359 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21360 # necessary to make sure instantiated templates are included
21361 # in the archive.
21362 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21363 ;;
21364 esac
21365 ;;
21366 esac
21367 ;;
21368
21369 lynxos*)
21370 # FIXME: insert proper C++ library support
21371 ld_shlibs_CXX=no
21372 ;;
21373
21374 m88k*)
21375 # FIXME: insert proper C++ library support
21376 ld_shlibs_CXX=no
21377 ;;
21378
21379 mvs*)
21380 case $cc_basename in
21381 cxx*)
21382 # FIXME: insert proper C++ library support
21383 ld_shlibs_CXX=no
21384 ;;
21385 *)
21386 # FIXME: insert proper C++ library support
21387 ld_shlibs_CXX=no
21388 ;;
21389 esac
21390 ;;
21391
21392 netbsd*)
21393 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21394 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21395 wlarc=
21396 hardcode_libdir_flag_spec_CXX='-R$libdir'
21397 hardcode_direct_CXX=yes
21398 hardcode_shlibpath_var_CXX=no
21399 fi
21400 # Workaround some broken pre-1.5 toolchains
21401 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21402 ;;
21403
21404 *nto* | *qnx*)
21405 ld_shlibs_CXX=yes
21406 ;;
21407
21408 openbsd2*)
21409 # C++ shared libraries are fairly broken
21410 ld_shlibs_CXX=no
21411 ;;
21412
21413 openbsd*)
21414 if test -f /usr/libexec/ld.so; then
21415 hardcode_direct_CXX=yes
21416 hardcode_shlibpath_var_CXX=no
21417 hardcode_direct_absolute_CXX=yes
21418 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21419 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21420 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21421 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21422 export_dynamic_flag_spec_CXX='${wl}-E'
21423 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21424 fi
21425 output_verbose_link_cmd=func_echo_all
21426 else
21427 ld_shlibs_CXX=no
21428 fi
21429 ;;
21430
21431 osf3* | osf4* | osf5*)
21432 case $cc_basename in
21433 KCC*)
21434 # Kuck and Associates, Inc. (KAI) C++ Compiler
21435
21436 # KCC will only create a shared library if the output file
21437 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21438 # to its proper name (with version) after linking.
21439 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'
21440
21441 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21442 hardcode_libdir_separator_CXX=:
21443
21444 # Archives containing C++ object files must be created using
21445 # the KAI C++ compiler.
21446 case $host in
21447 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
21448 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
21449 esac
21450 ;;
21451 RCC*)
21452 # Rational C++ 2.4.1
21453 # FIXME: insert proper C++ library support
21454 ld_shlibs_CXX=no
21455 ;;
21456 cxx*)
21457 case $host in
21458 osf3*)
21459 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21460 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'
21461 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21462 ;;
21463 *)
21464 allow_undefined_flag_CXX=' -expect_unresolved \*'
21465 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'
21466 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21467 echo "-hidden">> $lib.exp~
21468 $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~
21469 $RM $lib.exp'
21470 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21471 ;;
21472 esac
21473
21474 hardcode_libdir_separator_CXX=:
21475
21476 # Commands to make compiler produce verbose output that lists
21477 # what "hidden" libraries, object files and flags are used when
21478 # linking a shared library.
21479 #
21480 # There doesn't appear to be a way to prevent this compiler from
21481 # explicitly linking system object files so we need to strip them
21482 # from the output so that they don't get included in the library
21483 # dependencies.
21484 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"'
21485 ;;
21486 *)
21487 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21488 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21489 case $host in
21490 osf3*)
21491 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'
21492 ;;
21493 *)
21494 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'
21495 ;;
21496 esac
21497
21498 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21499 hardcode_libdir_separator_CXX=:
21500
21501 # Commands to make compiler produce verbose output that lists
21502 # what "hidden" libraries, object files and flags are used when
21503 # linking a shared library.
21504 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21505
21506 else
21507 # FIXME: insert proper C++ library support
21508 ld_shlibs_CXX=no
21509 fi
21510 ;;
21511 esac
21512 ;;
21513
21514 psos*)
21515 # FIXME: insert proper C++ library support
21516 ld_shlibs_CXX=no
21517 ;;
21518
21519 sunos4*)
21520 case $cc_basename in
21521 CC*)
21522 # Sun C++ 4.x
21523 # FIXME: insert proper C++ library support
21524 ld_shlibs_CXX=no
21525 ;;
21526 lcc*)
21527 # Lucid
21528 # FIXME: insert proper C++ library support
21529 ld_shlibs_CXX=no
21530 ;;
21531 *)
21532 # FIXME: insert proper C++ library support
21533 ld_shlibs_CXX=no
21534 ;;
21535 esac
21536 ;;
21537
21538 solaris*)
21539 case $cc_basename in
21540 CC*)
21541 # Sun C++ 4.2, 5.x and Centerline C++
21542 archive_cmds_need_lc_CXX=yes
21543 no_undefined_flag_CXX=' -zdefs'
21544 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21545 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21546 $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'
21547
21548 hardcode_libdir_flag_spec_CXX='-R$libdir'
21549 hardcode_shlibpath_var_CXX=no
21550 case $host_os in
21551 solaris2.[0-5] | solaris2.[0-5].*) ;;
21552 *)
21553 # The compiler driver will combine and reorder linker options,
21554 # but understands `-z linker_flag'.
21555 # Supported since Solaris 2.6 (maybe 2.5.1?)
21556 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21557 ;;
21558 esac
21559 link_all_deplibs_CXX=yes
21560
21561 output_verbose_link_cmd='func_echo_all'
21562
21563 # Archives containing C++ object files must be created using
21564 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21565 # necessary to make sure instantiated templates are included
21566 # in the archive.
21567 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21568 ;;
21569 gcx*)
21570 # Green Hills C++ Compiler
21571 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21572
21573 # The C++ compiler must be used to create the archive.
21574 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21575 ;;
21576 *)
21577 # GNU C++ compiler with Solaris linker
21578 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21579 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21580 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21581 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21582 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21583 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21584
21585 # Commands to make compiler produce verbose output that lists
21586 # what "hidden" libraries, object files and flags are used when
21587 # linking a shared library.
21588 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21589 else
21590 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21591 # platform.
21592 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21593 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21594 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21595
21596 # Commands to make compiler produce verbose output that lists
21597 # what "hidden" libraries, object files and flags are used when
21598 # linking a shared library.
21599 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21600 fi
21601
21602 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21603 case $host_os in
21604 solaris2.[0-5] | solaris2.[0-5].*) ;;
21605 *)
21606 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21607 ;;
21608 esac
21609 fi
21610 ;;
21611 esac
21612 ;;
21613
21614 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21615 no_undefined_flag_CXX='${wl}-z,text'
21616 archive_cmds_need_lc_CXX=no
21617 hardcode_shlibpath_var_CXX=no
21618 runpath_var='LD_RUN_PATH'
21619
21620 case $cc_basename in
21621 CC*)
21622 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21623 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21624 ;;
21625 *)
21626 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21627 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21628 ;;
21629 esac
21630 ;;
21631
21632 sysv5* | sco3.2v5* | sco5v6*)
21633 # Note: We can NOT use -z defs as we might desire, because we do not
21634 # link with -lc, and that would cause any symbols used from libc to
21635 # always be unresolved, which means just about no library would
21636 # ever link correctly. If we're not using GNU ld we use -z text
21637 # though, which does catch some bad symbols but isn't as heavy-handed
21638 # as -z defs.
21639 no_undefined_flag_CXX='${wl}-z,text'
21640 allow_undefined_flag_CXX='${wl}-z,nodefs'
21641 archive_cmds_need_lc_CXX=no
21642 hardcode_shlibpath_var_CXX=no
21643 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21644 hardcode_libdir_separator_CXX=':'
21645 link_all_deplibs_CXX=yes
21646 export_dynamic_flag_spec_CXX='${wl}-Bexport'
21647 runpath_var='LD_RUN_PATH'
21648
21649 case $cc_basename in
21650 CC*)
21651 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21652 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21653 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21654 '"$old_archive_cmds_CXX"
21655 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21656 '"$reload_cmds_CXX"
21657 ;;
21658 *)
21659 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21660 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21661 ;;
21662 esac
21663 ;;
21664
21665 tandem*)
21666 case $cc_basename in
21667 NCC*)
21668 # NonStop-UX NCC 3.20
21669 # FIXME: insert proper C++ library support
21670 ld_shlibs_CXX=no
21671 ;;
21672 *)
21673 # FIXME: insert proper C++ library support
21674 ld_shlibs_CXX=no
21675 ;;
21676 esac
21677 ;;
21678
21679 vxworks*)
21680 # FIXME: insert proper C++ library support
21681 ld_shlibs_CXX=no
21682 ;;
21683
21684 *)
21685 # FIXME: insert proper C++ library support
21686 ld_shlibs_CXX=no
21687 ;;
21688 esac
21689
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21691 $as_echo "$ld_shlibs_CXX" >&6; }
21692 test "$ld_shlibs_CXX" = no && can_build_shared=no
21693
21694 GCC_CXX="$GXX"
21695 LD_CXX="$LD"
21696
21697 ## CAVEAT EMPTOR:
21698 ## There is no encapsulation within the following macros, do not change
21699 ## the running order or otherwise move them around unless you know exactly
21700 ## what you are doing...
21701 # Dependencies to place before and after the object being linked:
21702 predep_objects_CXX=
21703 postdep_objects_CXX=
21704 predeps_CXX=
21705 postdeps_CXX=
21706 compiler_lib_search_path_CXX=
21707
21708 cat > conftest.$ac_ext <<_LT_EOF
21709 class Foo
21710 {
21711 public:
21712 Foo (void) { a = 0; }
21713 private:
21714 int a;
21715 };
21716 _LT_EOF
21717
21718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21719 (eval $ac_compile) 2>&5
21720 ac_status=$?
21721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21722 test $ac_status = 0; }; then
21723 # Parse the compiler output and extract the necessary
21724 # objects, libraries and library flags.
21725
21726 # Sentinel used to keep track of whether or not we are before
21727 # the conftest object file.
21728 pre_test_object_deps_done=no
21729
21730 for p in `eval "$output_verbose_link_cmd"`; do
21731 case $p in
21732
21733 -L* | -R* | -l*)
21734 # Some compilers place space between "-{L,R}" and the path.
21735 # Remove the space.
21736 if test $p = "-L" ||
21737 test $p = "-R"; then
21738 prev=$p
21739 continue
21740 else
21741 prev=
21742 fi
21743
21744 if test "$pre_test_object_deps_done" = no; then
21745 case $p in
21746 -L* | -R*)
21747 # Internal compiler library paths should come after those
21748 # provided the user. The postdeps already come after the
21749 # user supplied libs so there is no need to process them.
21750 if test -z "$compiler_lib_search_path_CXX"; then
21751 compiler_lib_search_path_CXX="${prev}${p}"
21752 else
21753 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21754 fi
21755 ;;
21756 # The "-l" case would never come before the object being
21757 # linked, so don't bother handling this case.
21758 esac
21759 else
21760 if test -z "$postdeps_CXX"; then
21761 postdeps_CXX="${prev}${p}"
21762 else
21763 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21764 fi
21765 fi
21766 ;;
21767
21768 *.$objext)
21769 # This assumes that the test object file only shows up
21770 # once in the compiler output.
21771 if test "$p" = "conftest.$objext"; then
21772 pre_test_object_deps_done=yes
21773 continue
21774 fi
21775
21776 if test "$pre_test_object_deps_done" = no; then
21777 if test -z "$predep_objects_CXX"; then
21778 predep_objects_CXX="$p"
21779 else
21780 predep_objects_CXX="$predep_objects_CXX $p"
21781 fi
21782 else
21783 if test -z "$postdep_objects_CXX"; then
21784 postdep_objects_CXX="$p"
21785 else
21786 postdep_objects_CXX="$postdep_objects_CXX $p"
21787 fi
21788 fi
21789 ;;
21790
21791 *) ;; # Ignore the rest.
21792
21793 esac
21794 done
21795
21796 # Clean up.
21797 rm -f a.out a.exe
21798 else
21799 echo "libtool.m4: error: problem compiling CXX test program"
21800 fi
21801
21802 $RM -f confest.$objext
21803
21804 # PORTME: override above test on systems where it is broken
21805 case $host_os in
21806 interix[3-9]*)
21807 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21808 # hack all around it, let's just trust "g++" to DTRT.
21809 predep_objects_CXX=
21810 postdep_objects_CXX=
21811 postdeps_CXX=
21812 ;;
21813
21814 linux*)
21815 case `$CC -V 2>&1 | sed 5q` in
21816 *Sun\ C*)
21817 # Sun C++ 5.9
21818
21819 # The more standards-conforming stlport4 library is
21820 # incompatible with the Cstd library. Avoid specifying
21821 # it if it's in CXXFLAGS. Ignore libCrun as
21822 # -library=stlport4 depends on it.
21823 case " $CXX $CXXFLAGS " in
21824 *" -library=stlport4 "*)
21825 solaris_use_stlport4=yes
21826 ;;
21827 esac
21828
21829 if test "$solaris_use_stlport4" != yes; then
21830 postdeps_CXX='-library=Cstd -library=Crun'
21831 fi
21832 ;;
21833 esac
21834 ;;
21835
21836 solaris*)
21837 case $cc_basename in
21838 CC*)
21839 # The more standards-conforming stlport4 library is
21840 # incompatible with the Cstd library. Avoid specifying
21841 # it if it's in CXXFLAGS. Ignore libCrun as
21842 # -library=stlport4 depends on it.
21843 case " $CXX $CXXFLAGS " in
21844 *" -library=stlport4 "*)
21845 solaris_use_stlport4=yes
21846 ;;
21847 esac
21848
21849 # Adding this requires a known-good setup of shared libraries for
21850 # Sun compiler versions before 5.6, else PIC objects from an old
21851 # archive will be linked into the output, leading to subtle bugs.
21852 if test "$solaris_use_stlport4" != yes; then
21853 postdeps_CXX='-library=Cstd -library=Crun'
21854 fi
21855 ;;
21856 esac
21857 ;;
21858 esac
21859
21860
21861 case " $postdeps_CXX " in
21862 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21863 esac
21864 compiler_lib_search_dirs_CXX=
21865 if test -n "${compiler_lib_search_path_CXX}"; then
21866 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21867 fi
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884
21885
21886
21887
21888
21889
21890
21891
21892
21893
21894
21895
21896
21897
21898
21899 lt_prog_compiler_wl_CXX=
21900 lt_prog_compiler_pic_CXX=
21901 lt_prog_compiler_static_CXX=
21902
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21904 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21905
21906 # C++ specific cases for pic, static, wl, etc.
21907 if test "$GXX" = yes; then
21908 lt_prog_compiler_wl_CXX='-Wl,'
21909 lt_prog_compiler_static_CXX='-static'
21910
21911 case $host_os in
21912 aix*)
21913 # All AIX code is PIC.
21914 if test "$host_cpu" = ia64; then
21915 # AIX 5 now supports IA64 processor
21916 lt_prog_compiler_static_CXX='-Bstatic'
21917 fi
21918 lt_prog_compiler_pic_CXX='-fPIC'
21919 ;;
21920
21921 amigaos*)
21922 case $host_cpu in
21923 powerpc)
21924 # see comment about AmigaOS4 .so support
21925 lt_prog_compiler_pic_CXX='-fPIC'
21926 ;;
21927 m68k)
21928 # FIXME: we need at least 68020 code to build shared libraries, but
21929 # adding the `-m68020' flag to GCC prevents building anything better,
21930 # like `-m68040'.
21931 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21932 ;;
21933 esac
21934 ;;
21935
21936 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21937 # PIC is the default for these OSes.
21938 ;;
21939 mingw* | cygwin* | os2* | pw32* | cegcc*)
21940 # This hack is so that the source file can tell whether it is being
21941 # built for inclusion in a dll (and should export symbols for example).
21942 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21943 # (--disable-auto-import) libraries
21944 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21945 ;;
21946 darwin* | rhapsody*)
21947 # PIC is the default on this platform
21948 # Common symbols not allowed in MH_DYLIB files
21949 lt_prog_compiler_pic_CXX='-fno-common'
21950 ;;
21951 *djgpp*)
21952 # DJGPP does not support shared libraries at all
21953 lt_prog_compiler_pic_CXX=
21954 ;;
21955 haiku*)
21956 # PIC is the default for Haiku.
21957 # The "-static" flag exists, but is broken.
21958 lt_prog_compiler_static_CXX=
21959 ;;
21960 interix[3-9]*)
21961 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21962 # Instead, we relocate shared libraries at runtime.
21963 ;;
21964 sysv4*MP*)
21965 if test -d /usr/nec; then
21966 lt_prog_compiler_pic_CXX=-Kconform_pic
21967 fi
21968 ;;
21969 hpux*)
21970 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21971 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21972 # sets the default TLS model and affects inlining.
21973 case $host_cpu in
21974 hppa*64*)
21975 ;;
21976 *)
21977 lt_prog_compiler_pic_CXX='-fPIC'
21978 ;;
21979 esac
21980 ;;
21981 *qnx* | *nto*)
21982 # QNX uses GNU C++, but need to define -shared option too, otherwise
21983 # it will coredump.
21984 lt_prog_compiler_pic_CXX='-fPIC -shared'
21985 ;;
21986 *)
21987 lt_prog_compiler_pic_CXX='-fPIC'
21988 ;;
21989 esac
21990 else
21991 case $host_os in
21992 aix[4-9]*)
21993 # All AIX code is PIC.
21994 if test "$host_cpu" = ia64; then
21995 # AIX 5 now supports IA64 processor
21996 lt_prog_compiler_static_CXX='-Bstatic'
21997 else
21998 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21999 fi
22000 ;;
22001 chorus*)
22002 case $cc_basename in
22003 cxch68*)
22004 # Green Hills C++ Compiler
22005 # _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"
22006 ;;
22007 esac
22008 ;;
22009 dgux*)
22010 case $cc_basename in
22011 ec++*)
22012 lt_prog_compiler_pic_CXX='-KPIC'
22013 ;;
22014 ghcx*)
22015 # Green Hills C++ Compiler
22016 lt_prog_compiler_pic_CXX='-pic'
22017 ;;
22018 *)
22019 ;;
22020 esac
22021 ;;
22022 freebsd* | dragonfly*)
22023 # FreeBSD uses GNU C++
22024 ;;
22025 hpux9* | hpux10* | hpux11*)
22026 case $cc_basename in
22027 CC*)
22028 lt_prog_compiler_wl_CXX='-Wl,'
22029 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
22030 if test "$host_cpu" != ia64; then
22031 lt_prog_compiler_pic_CXX='+Z'
22032 fi
22033 ;;
22034 aCC*)
22035 lt_prog_compiler_wl_CXX='-Wl,'
22036 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
22037 case $host_cpu in
22038 hppa*64*|ia64*)
22039 # +Z the default
22040 ;;
22041 *)
22042 lt_prog_compiler_pic_CXX='+Z'
22043 ;;
22044 esac
22045 ;;
22046 *)
22047 ;;
22048 esac
22049 ;;
22050 interix*)
22051 # This is c89, which is MS Visual C++ (no shared libs)
22052 # Anyone wants to do a port?
22053 ;;
22054 irix5* | irix6* | nonstopux*)
22055 case $cc_basename in
22056 CC*)
22057 lt_prog_compiler_wl_CXX='-Wl,'
22058 lt_prog_compiler_static_CXX='-non_shared'
22059 # CC pic flag -KPIC is the default.
22060 ;;
22061 *)
22062 ;;
22063 esac
22064 ;;
22065 linux* | k*bsd*-gnu | kopensolaris*-gnu)
22066 case $cc_basename in
22067 KCC*)
22068 # KAI C++ Compiler
22069 lt_prog_compiler_wl_CXX='--backend -Wl,'
22070 lt_prog_compiler_pic_CXX='-fPIC'
22071 ;;
22072 ecpc* )
22073 # old Intel C++ for x86_64 which still supported -KPIC.
22074 lt_prog_compiler_wl_CXX='-Wl,'
22075 lt_prog_compiler_pic_CXX='-KPIC'
22076 lt_prog_compiler_static_CXX='-static'
22077 ;;
22078 icpc* )
22079 # Intel C++, used to be incompatible with GCC.
22080 # ICC 10 doesn't accept -KPIC any more.
22081 lt_prog_compiler_wl_CXX='-Wl,'
22082 lt_prog_compiler_pic_CXX='-fPIC'
22083 lt_prog_compiler_static_CXX='-static'
22084 ;;
22085 pgCC* | pgcpp*)
22086 # Portland Group C++ compiler
22087 lt_prog_compiler_wl_CXX='-Wl,'
22088 lt_prog_compiler_pic_CXX='-fpic'
22089 lt_prog_compiler_static_CXX='-Bstatic'
22090 ;;
22091 cxx*)
22092 # Compaq C++
22093 # Make sure the PIC flag is empty. It appears that all Alpha
22094 # Linux and Compaq Tru64 Unix objects are PIC.
22095 lt_prog_compiler_pic_CXX=
22096 lt_prog_compiler_static_CXX='-non_shared'
22097 ;;
22098 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
22099 # IBM XL 8.0, 9.0 on PPC and BlueGene
22100 lt_prog_compiler_wl_CXX='-Wl,'
22101 lt_prog_compiler_pic_CXX='-qpic'
22102 lt_prog_compiler_static_CXX='-qstaticlink'
22103 ;;
22104 *)
22105 case `$CC -V 2>&1 | sed 5q` in
22106 *Sun\ C*)
22107 # Sun C++ 5.9
22108 lt_prog_compiler_pic_CXX='-KPIC'
22109 lt_prog_compiler_static_CXX='-Bstatic'
22110 lt_prog_compiler_wl_CXX='-Qoption ld '
22111 ;;
22112 esac
22113 ;;
22114 esac
22115 ;;
22116 lynxos*)
22117 ;;
22118 m88k*)
22119 ;;
22120 mvs*)
22121 case $cc_basename in
22122 cxx*)
22123 lt_prog_compiler_pic_CXX='-W c,exportall'
22124 ;;
22125 *)
22126 ;;
22127 esac
22128 ;;
22129 netbsd*)
22130 ;;
22131 *qnx* | *nto*)
22132 # QNX uses GNU C++, but need to define -shared option too, otherwise
22133 # it will coredump.
22134 lt_prog_compiler_pic_CXX='-fPIC -shared'
22135 ;;
22136 osf3* | osf4* | osf5*)
22137 case $cc_basename in
22138 KCC*)
22139 lt_prog_compiler_wl_CXX='--backend -Wl,'
22140 ;;
22141 RCC*)
22142 # Rational C++ 2.4.1
22143 lt_prog_compiler_pic_CXX='-pic'
22144 ;;
22145 cxx*)
22146 # Digital/Compaq C++
22147 lt_prog_compiler_wl_CXX='-Wl,'
22148 # Make sure the PIC flag is empty. It appears that all Alpha
22149 # Linux and Compaq Tru64 Unix objects are PIC.
22150 lt_prog_compiler_pic_CXX=
22151 lt_prog_compiler_static_CXX='-non_shared'
22152 ;;
22153 *)
22154 ;;
22155 esac
22156 ;;
22157 psos*)
22158 ;;
22159 solaris*)
22160 case $cc_basename in
22161 CC*)
22162 # Sun C++ 4.2, 5.x and Centerline C++
22163 lt_prog_compiler_pic_CXX='-KPIC'
22164 lt_prog_compiler_static_CXX='-Bstatic'
22165 lt_prog_compiler_wl_CXX='-Qoption ld '
22166 ;;
22167 gcx*)
22168 # Green Hills C++ Compiler
22169 lt_prog_compiler_pic_CXX='-PIC'
22170 ;;
22171 *)
22172 ;;
22173 esac
22174 ;;
22175 sunos4*)
22176 case $cc_basename in
22177 CC*)
22178 # Sun C++ 4.x
22179 lt_prog_compiler_pic_CXX='-pic'
22180 lt_prog_compiler_static_CXX='-Bstatic'
22181 ;;
22182 lcc*)
22183 # Lucid
22184 lt_prog_compiler_pic_CXX='-pic'
22185 ;;
22186 *)
22187 ;;
22188 esac
22189 ;;
22190 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22191 case $cc_basename in
22192 CC*)
22193 lt_prog_compiler_wl_CXX='-Wl,'
22194 lt_prog_compiler_pic_CXX='-KPIC'
22195 lt_prog_compiler_static_CXX='-Bstatic'
22196 ;;
22197 esac
22198 ;;
22199 tandem*)
22200 case $cc_basename in
22201 NCC*)
22202 # NonStop-UX NCC 3.20
22203 lt_prog_compiler_pic_CXX='-KPIC'
22204 ;;
22205 *)
22206 ;;
22207 esac
22208 ;;
22209 vxworks*)
22210 ;;
22211 *)
22212 lt_prog_compiler_can_build_shared_CXX=no
22213 ;;
22214 esac
22215 fi
22216
22217 case $host_os in
22218 # For platforms which do not support PIC, -DPIC is meaningless:
22219 *djgpp*)
22220 lt_prog_compiler_pic_CXX=
22221 ;;
22222 *)
22223 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
22224 ;;
22225 esac
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
22227 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
22228
22229
22230
22231 #
22232 # Check to make sure the PIC flag actually works.
22233 #
22234 if test -n "$lt_prog_compiler_pic_CXX"; then
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22236 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22237 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
22238 $as_echo_n "(cached) " >&6
22239 else
22240 lt_cv_prog_compiler_pic_works_CXX=no
22241 ac_outfile=conftest.$ac_objext
22242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22243 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
22244 # Insert the option either (1) after the last *FLAGS variable, or
22245 # (2) before a word containing "conftest.", or (3) at the end.
22246 # Note that $ac_compile itself does not contain backslashes and begins
22247 # with a dollar sign (not a hyphen), so the echo should work correctly.
22248 # The option is referenced via a variable to avoid confusing sed.
22249 lt_compile=`echo "$ac_compile" | $SED \
22250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22252 -e 's:$: $lt_compiler_flag:'`
22253 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22254 (eval "$lt_compile" 2>conftest.err)
22255 ac_status=$?
22256 cat conftest.err >&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 if (exit $ac_status) && test -s "$ac_outfile"; then
22259 # The compiler can only warn and ignore the option if not recognized
22260 # So say no if there are warnings other than the usual output.
22261 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
22262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22263 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22264 lt_cv_prog_compiler_pic_works_CXX=yes
22265 fi
22266 fi
22267 $RM conftest*
22268
22269 fi
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22271 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22272
22273 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
22274 case $lt_prog_compiler_pic_CXX in
22275 "" | " "*) ;;
22276 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
22277 esac
22278 else
22279 lt_prog_compiler_pic_CXX=
22280 lt_prog_compiler_can_build_shared_CXX=no
22281 fi
22282
22283 fi
22284
22285
22286
22287 #
22288 # Check to make sure the static flag actually works.
22289 #
22290 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22292 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22293 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
22294 $as_echo_n "(cached) " >&6
22295 else
22296 lt_cv_prog_compiler_static_works_CXX=no
22297 save_LDFLAGS="$LDFLAGS"
22298 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22299 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22300 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22301 # The linker can only warn and ignore the option if not recognized
22302 # So say no if there are warnings
22303 if test -s conftest.err; then
22304 # Append any errors to the config.log.
22305 cat conftest.err 1>&5
22306 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22307 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22308 if diff conftest.exp conftest.er2 >/dev/null; then
22309 lt_cv_prog_compiler_static_works_CXX=yes
22310 fi
22311 else
22312 lt_cv_prog_compiler_static_works_CXX=yes
22313 fi
22314 fi
22315 $RM -r conftest*
22316 LDFLAGS="$save_LDFLAGS"
22317
22318 fi
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22320 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22321
22322 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
22323 :
22324 else
22325 lt_prog_compiler_static_CXX=
22326 fi
22327
22328
22329
22330
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22332 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22333 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22334 $as_echo_n "(cached) " >&6
22335 else
22336 lt_cv_prog_compiler_c_o_CXX=no
22337 $RM -r conftest 2>/dev/null
22338 mkdir conftest
22339 cd conftest
22340 mkdir out
22341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22342
22343 lt_compiler_flag="-o out/conftest2.$ac_objext"
22344 # Insert the option either (1) after the last *FLAGS variable, or
22345 # (2) before a word containing "conftest.", or (3) at the end.
22346 # Note that $ac_compile itself does not contain backslashes and begins
22347 # with a dollar sign (not a hyphen), so the echo should work correctly.
22348 lt_compile=`echo "$ac_compile" | $SED \
22349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22351 -e 's:$: $lt_compiler_flag:'`
22352 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22353 (eval "$lt_compile" 2>out/conftest.err)
22354 ac_status=$?
22355 cat out/conftest.err >&5
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22358 then
22359 # The compiler can only warn and ignore the option if not recognized
22360 # So say no if there are warnings
22361 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22362 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22363 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22364 lt_cv_prog_compiler_c_o_CXX=yes
22365 fi
22366 fi
22367 chmod u+w . 2>&5
22368 $RM conftest*
22369 # SGI C++ compiler will create directory out/ii_files/ for
22370 # template instantiation
22371 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22372 $RM out/* && rmdir out
22373 cd ..
22374 $RM -r conftest
22375 $RM conftest*
22376
22377 fi
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22379 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22380
22381
22382
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22384 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22385 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22386 $as_echo_n "(cached) " >&6
22387 else
22388 lt_cv_prog_compiler_c_o_CXX=no
22389 $RM -r conftest 2>/dev/null
22390 mkdir conftest
22391 cd conftest
22392 mkdir out
22393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22394
22395 lt_compiler_flag="-o out/conftest2.$ac_objext"
22396 # Insert the option either (1) after the last *FLAGS variable, or
22397 # (2) before a word containing "conftest.", or (3) at the end.
22398 # Note that $ac_compile itself does not contain backslashes and begins
22399 # with a dollar sign (not a hyphen), so the echo should work correctly.
22400 lt_compile=`echo "$ac_compile" | $SED \
22401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22403 -e 's:$: $lt_compiler_flag:'`
22404 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22405 (eval "$lt_compile" 2>out/conftest.err)
22406 ac_status=$?
22407 cat out/conftest.err >&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22410 then
22411 # The compiler can only warn and ignore the option if not recognized
22412 # So say no if there are warnings
22413 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22414 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22415 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22416 lt_cv_prog_compiler_c_o_CXX=yes
22417 fi
22418 fi
22419 chmod u+w . 2>&5
22420 $RM conftest*
22421 # SGI C++ compiler will create directory out/ii_files/ for
22422 # template instantiation
22423 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22424 $RM out/* && rmdir out
22425 cd ..
22426 $RM -r conftest
22427 $RM conftest*
22428
22429 fi
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22431 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22432
22433
22434
22435
22436 hard_links="nottested"
22437 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22438 # do not overwrite the value of need_locks provided by the user
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22440 $as_echo_n "checking if we can lock with hard links... " >&6; }
22441 hard_links=yes
22442 $RM conftest*
22443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22444 touch conftest.a
22445 ln conftest.a conftest.b 2>&5 || hard_links=no
22446 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22448 $as_echo "$hard_links" >&6; }
22449 if test "$hard_links" = no; then
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22451 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22452 need_locks=warn
22453 fi
22454 else
22455 need_locks=no
22456 fi
22457
22458
22459
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22461 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22462
22463 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22464 case $host_os in
22465 aix[4-9]*)
22466 # If we're using GNU nm, then we don't want the "-C" option.
22467 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22468 # Also, AIX nm treats weak defined symbols like other global defined
22469 # symbols, whereas GNU nm marks them as "W".
22470 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22471 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'
22472 else
22473 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'
22474 fi
22475 ;;
22476 pw32*)
22477 export_symbols_cmds_CXX="$ltdll_cmds"
22478 ;;
22479 cygwin* | mingw* | cegcc*)
22480 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'
22481 ;;
22482 *)
22483 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22484 ;;
22485 esac
22486 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22487
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22489 $as_echo "$ld_shlibs_CXX" >&6; }
22490 test "$ld_shlibs_CXX" = no && can_build_shared=no
22491
22492 with_gnu_ld_CXX=$with_gnu_ld
22493
22494
22495
22496
22497
22498
22499 #
22500 # Do we need to explicitly link libc?
22501 #
22502 case "x$archive_cmds_need_lc_CXX" in
22503 x|xyes)
22504 # Assume -lc should be added
22505 archive_cmds_need_lc_CXX=yes
22506
22507 if test "$enable_shared" = yes && test "$GCC" = yes; then
22508 case $archive_cmds_CXX in
22509 *'~'*)
22510 # FIXME: we may have to deal with multi-command sequences.
22511 ;;
22512 '$CC '*)
22513 # Test whether the compiler implicitly links with -lc since on some
22514 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22515 # to ld, don't add -lc before -lgcc.
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22517 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22518 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22519 $as_echo_n "(cached) " >&6
22520 else
22521 $RM conftest*
22522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22523
22524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22525 (eval $ac_compile) 2>&5
22526 ac_status=$?
22527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22528 test $ac_status = 0; } 2>conftest.err; then
22529 soname=conftest
22530 lib=conftest
22531 libobjs=conftest.$ac_objext
22532 deplibs=
22533 wl=$lt_prog_compiler_wl_CXX
22534 pic_flag=$lt_prog_compiler_pic_CXX
22535 compiler_flags=-v
22536 linker_flags=-v
22537 verstring=
22538 output_objdir=.
22539 libname=conftest
22540 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22541 allow_undefined_flag_CXX=
22542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22543 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22544 ac_status=$?
22545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22546 test $ac_status = 0; }
22547 then
22548 lt_cv_archive_cmds_need_lc_CXX=no
22549 else
22550 lt_cv_archive_cmds_need_lc_CXX=yes
22551 fi
22552 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22553 else
22554 cat conftest.err 1>&5
22555 fi
22556 $RM conftest*
22557
22558 fi
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22560 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22561 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22562 ;;
22563 esac
22564 fi
22565 ;;
22566 esac
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622
22623
22624
22625
22626
22627
22628
22629
22630
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22632 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22633
22634 library_names_spec=
22635 libname_spec='lib$name'
22636 soname_spec=
22637 shrext_cmds=".so"
22638 postinstall_cmds=
22639 postuninstall_cmds=
22640 finish_cmds=
22641 finish_eval=
22642 shlibpath_var=
22643 shlibpath_overrides_runpath=unknown
22644 version_type=none
22645 dynamic_linker="$host_os ld.so"
22646 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22647 need_lib_prefix=unknown
22648 hardcode_into_libs=no
22649
22650 # when you set need_version to no, make sure it does not cause -set_version
22651 # flags to be left without arguments
22652 need_version=unknown
22653
22654 case $host_os in
22655 aix3*)
22656 version_type=linux
22657 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22658 shlibpath_var=LIBPATH
22659
22660 # AIX 3 has no versioning support, so we append a major version to the name.
22661 soname_spec='${libname}${release}${shared_ext}$major'
22662 ;;
22663
22664 aix[4-9]*)
22665 version_type=linux
22666 need_lib_prefix=no
22667 need_version=no
22668 hardcode_into_libs=yes
22669 if test "$host_cpu" = ia64; then
22670 # AIX 5 supports IA64
22671 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22672 shlibpath_var=LD_LIBRARY_PATH
22673 else
22674 # With GCC up to 2.95.x, collect2 would create an import file
22675 # for dependence libraries. The import file would start with
22676 # the line `#! .'. This would cause the generated library to
22677 # depend on `.', always an invalid library. This was fixed in
22678 # development snapshots of GCC prior to 3.0.
22679 case $host_os in
22680 aix4 | aix4.[01] | aix4.[01].*)
22681 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22682 echo ' yes '
22683 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22684 :
22685 else
22686 can_build_shared=no
22687 fi
22688 ;;
22689 esac
22690 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22691 # soname into executable. Probably we can add versioning support to
22692 # collect2, so additional links can be useful in future.
22693 if test "$aix_use_runtimelinking" = yes; then
22694 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22695 # instead of lib<name>.a to let people know that these are not
22696 # typical AIX shared libraries.
22697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22698 else
22699 # We preserve .a as extension for shared libraries through AIX4.2
22700 # and later when we are not doing run time linking.
22701 library_names_spec='${libname}${release}.a $libname.a'
22702 soname_spec='${libname}${release}${shared_ext}$major'
22703 fi
22704 shlibpath_var=LIBPATH
22705 fi
22706 ;;
22707
22708 amigaos*)
22709 case $host_cpu in
22710 powerpc)
22711 # Since July 2007 AmigaOS4 officially supports .so libraries.
22712 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22714 ;;
22715 m68k)
22716 library_names_spec='$libname.ixlibrary $libname.a'
22717 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22718 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'
22719 ;;
22720 esac
22721 ;;
22722
22723 beos*)
22724 library_names_spec='${libname}${shared_ext}'
22725 dynamic_linker="$host_os ld.so"
22726 shlibpath_var=LIBRARY_PATH
22727 ;;
22728
22729 bsdi[45]*)
22730 version_type=linux
22731 need_version=no
22732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22733 soname_spec='${libname}${release}${shared_ext}$major'
22734 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22735 shlibpath_var=LD_LIBRARY_PATH
22736 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22737 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22738 # the default ld.so.conf also contains /usr/contrib/lib and
22739 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22740 # libtool to hard-code these into programs
22741 ;;
22742
22743 cygwin* | mingw* | pw32* | cegcc*)
22744 version_type=windows
22745 shrext_cmds=".dll"
22746 need_version=no
22747 need_lib_prefix=no
22748
22749 case $GCC,$host_os in
22750 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22751 library_names_spec='$libname.dll.a'
22752 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22753 postinstall_cmds='base_file=`basename \${file}`~
22754 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22755 dldir=$destdir/`dirname \$dlpath`~
22756 test -d \$dldir || mkdir -p \$dldir~
22757 $install_prog $dir/$dlname \$dldir/$dlname~
22758 chmod a+x \$dldir/$dlname~
22759 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22760 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22761 fi'
22762 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22763 dlpath=$dir/\$dldll~
22764 $RM \$dlpath'
22765 shlibpath_overrides_runpath=yes
22766
22767 case $host_os in
22768 cygwin*)
22769 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22770 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22771
22772 ;;
22773 mingw* | cegcc*)
22774 # MinGW DLLs use traditional 'lib' prefix
22775 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22776 ;;
22777 pw32*)
22778 # pw32 DLLs use 'pw' prefix rather than 'lib'
22779 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22780 ;;
22781 esac
22782 ;;
22783
22784 *)
22785 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22786 ;;
22787 esac
22788 dynamic_linker='Win32 ld.exe'
22789 # FIXME: first we should search . and the directory the executable is in
22790 shlibpath_var=PATH
22791 ;;
22792
22793 darwin* | rhapsody*)
22794 dynamic_linker="$host_os dyld"
22795 version_type=darwin
22796 need_lib_prefix=no
22797 need_version=no
22798 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22799 soname_spec='${libname}${release}${major}$shared_ext'
22800 shlibpath_overrides_runpath=yes
22801 shlibpath_var=DYLD_LIBRARY_PATH
22802 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22803
22804 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22805 ;;
22806
22807 dgux*)
22808 version_type=linux
22809 need_lib_prefix=no
22810 need_version=no
22811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22812 soname_spec='${libname}${release}${shared_ext}$major'
22813 shlibpath_var=LD_LIBRARY_PATH
22814 ;;
22815
22816 freebsd* | dragonfly*)
22817 # DragonFly does not have aout. When/if they implement a new
22818 # versioning mechanism, adjust this.
22819 if test -x /usr/bin/objformat; then
22820 objformat=`/usr/bin/objformat`
22821 else
22822 case $host_os in
22823 freebsd[23].*) objformat=aout ;;
22824 *) objformat=elf ;;
22825 esac
22826 fi
22827 version_type=freebsd-$objformat
22828 case $version_type in
22829 freebsd-elf*)
22830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22831 need_version=no
22832 need_lib_prefix=no
22833 ;;
22834 freebsd-*)
22835 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22836 need_version=yes
22837 ;;
22838 esac
22839 shlibpath_var=LD_LIBRARY_PATH
22840 case $host_os in
22841 freebsd2.*)
22842 shlibpath_overrides_runpath=yes
22843 ;;
22844 freebsd3.[01]* | freebsdelf3.[01]*)
22845 shlibpath_overrides_runpath=yes
22846 hardcode_into_libs=yes
22847 ;;
22848 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22849 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22850 shlibpath_overrides_runpath=no
22851 hardcode_into_libs=yes
22852 ;;
22853 *) # from 4.6 on, and DragonFly
22854 shlibpath_overrides_runpath=yes
22855 hardcode_into_libs=yes
22856 ;;
22857 esac
22858 ;;
22859
22860 gnu*)
22861 version_type=linux
22862 need_lib_prefix=no
22863 need_version=no
22864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22865 soname_spec='${libname}${release}${shared_ext}$major'
22866 shlibpath_var=LD_LIBRARY_PATH
22867 hardcode_into_libs=yes
22868 ;;
22869
22870 haiku*)
22871 version_type=linux
22872 need_lib_prefix=no
22873 need_version=no
22874 dynamic_linker="$host_os runtime_loader"
22875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22876 soname_spec='${libname}${release}${shared_ext}$major'
22877 shlibpath_var=LIBRARY_PATH
22878 shlibpath_overrides_runpath=yes
22879 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22880 hardcode_into_libs=yes
22881 ;;
22882
22883 hpux9* | hpux10* | hpux11*)
22884 # Give a soname corresponding to the major version so that dld.sl refuses to
22885 # link against other versions.
22886 version_type=sunos
22887 need_lib_prefix=no
22888 need_version=no
22889 case $host_cpu in
22890 ia64*)
22891 shrext_cmds='.so'
22892 hardcode_into_libs=yes
22893 dynamic_linker="$host_os dld.so"
22894 shlibpath_var=LD_LIBRARY_PATH
22895 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22897 soname_spec='${libname}${release}${shared_ext}$major'
22898 if test "X$HPUX_IA64_MODE" = X32; then
22899 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22900 else
22901 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22902 fi
22903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22904 ;;
22905 hppa*64*)
22906 shrext_cmds='.sl'
22907 hardcode_into_libs=yes
22908 dynamic_linker="$host_os dld.sl"
22909 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22910 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22912 soname_spec='${libname}${release}${shared_ext}$major'
22913 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22914 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22915 ;;
22916 *)
22917 shrext_cmds='.sl'
22918 dynamic_linker="$host_os dld.sl"
22919 shlibpath_var=SHLIB_PATH
22920 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22922 soname_spec='${libname}${release}${shared_ext}$major'
22923 ;;
22924 esac
22925 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22926 postinstall_cmds='chmod 555 $lib'
22927 # or fails outright, so override atomically:
22928 install_override_mode=555
22929 ;;
22930
22931 interix[3-9]*)
22932 version_type=linux
22933 need_lib_prefix=no
22934 need_version=no
22935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22936 soname_spec='${libname}${release}${shared_ext}$major'
22937 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22938 shlibpath_var=LD_LIBRARY_PATH
22939 shlibpath_overrides_runpath=no
22940 hardcode_into_libs=yes
22941 ;;
22942
22943 irix5* | irix6* | nonstopux*)
22944 case $host_os in
22945 nonstopux*) version_type=nonstopux ;;
22946 *)
22947 if test "$lt_cv_prog_gnu_ld" = yes; then
22948 version_type=linux
22949 else
22950 version_type=irix
22951 fi ;;
22952 esac
22953 need_lib_prefix=no
22954 need_version=no
22955 soname_spec='${libname}${release}${shared_ext}$major'
22956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22957 case $host_os in
22958 irix5* | nonstopux*)
22959 libsuff= shlibsuff=
22960 ;;
22961 *)
22962 case $LD in # libtool.m4 will add one of these switches to LD
22963 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22964 libsuff= shlibsuff= libmagic=32-bit;;
22965 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22966 libsuff=32 shlibsuff=N32 libmagic=N32;;
22967 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22968 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22969 *) libsuff= shlibsuff= libmagic=never-match;;
22970 esac
22971 ;;
22972 esac
22973 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22974 shlibpath_overrides_runpath=no
22975 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22976 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22977 hardcode_into_libs=yes
22978 ;;
22979
22980 # No shared lib support for Linux oldld, aout, or coff.
22981 linux*oldld* | linux*aout* | linux*coff*)
22982 dynamic_linker=no
22983 ;;
22984
22985 # This must be Linux ELF.
22986
22987 # uclinux* changes (here and below) have been submitted to the libtool
22988 # project, but have not yet been accepted: they are GCC-local changes
22989 # for the time being. (See
22990 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22991 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
22992 version_type=linux
22993 need_lib_prefix=no
22994 need_version=no
22995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22996 soname_spec='${libname}${release}${shared_ext}$major'
22997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22998 shlibpath_var=LD_LIBRARY_PATH
22999 shlibpath_overrides_runpath=no
23000
23001 # Some binutils ld are patched to set DT_RUNPATH
23002 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
23003 $as_echo_n "(cached) " >&6
23004 else
23005 lt_cv_shlibpath_overrides_runpath=no
23006 save_LDFLAGS=$LDFLAGS
23007 save_libdir=$libdir
23008 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
23009 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
23010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23011 /* end confdefs.h. */
23012
23013 int
23014 main ()
23015 {
23016
23017 ;
23018 return 0;
23019 }
23020 _ACEOF
23021 if ac_fn_cxx_try_link "$LINENO"; then :
23022 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
23023 lt_cv_shlibpath_overrides_runpath=yes
23024 fi
23025 fi
23026 rm -f core conftest.err conftest.$ac_objext \
23027 conftest$ac_exeext conftest.$ac_ext
23028 LDFLAGS=$save_LDFLAGS
23029 libdir=$save_libdir
23030
23031 fi
23032
23033 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
23034
23035 # This implies no fast_install, which is unacceptable.
23036 # Some rework will be needed to allow for fast_install
23037 # before this can be enabled.
23038 hardcode_into_libs=yes
23039
23040 # Append ld.so.conf contents to the search path
23041 if test -f /etc/ld.so.conf; then
23042 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' ' '`
23043 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23044 fi
23045
23046 # We used to test for /lib/ld.so.1 and disable shared libraries on
23047 # powerpc, because MkLinux only supported shared libraries with the
23048 # GNU dynamic linker. Since this was broken with cross compilers,
23049 # most powerpc-linux boxes support dynamic linking these days and
23050 # people can always --disable-shared, the test was removed, and we
23051 # assume the GNU/Linux dynamic linker is in use.
23052 dynamic_linker='GNU/Linux ld.so'
23053 ;;
23054
23055 netbsd*)
23056 version_type=sunos
23057 need_lib_prefix=no
23058 need_version=no
23059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23062 dynamic_linker='NetBSD (a.out) ld.so'
23063 else
23064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23065 soname_spec='${libname}${release}${shared_ext}$major'
23066 dynamic_linker='NetBSD ld.elf_so'
23067 fi
23068 shlibpath_var=LD_LIBRARY_PATH
23069 shlibpath_overrides_runpath=yes
23070 hardcode_into_libs=yes
23071 ;;
23072
23073 newsos6)
23074 version_type=linux
23075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23076 shlibpath_var=LD_LIBRARY_PATH
23077 shlibpath_overrides_runpath=yes
23078 ;;
23079
23080 *nto* | *qnx*)
23081 version_type=qnx
23082 need_lib_prefix=no
23083 need_version=no
23084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23085 soname_spec='${libname}${release}${shared_ext}$major'
23086 shlibpath_var=LD_LIBRARY_PATH
23087 shlibpath_overrides_runpath=no
23088 hardcode_into_libs=yes
23089 dynamic_linker='ldqnx.so'
23090 ;;
23091
23092 openbsd*)
23093 version_type=sunos
23094 sys_lib_dlsearch_path_spec="/usr/lib"
23095 need_lib_prefix=no
23096 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23097 case $host_os in
23098 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23099 *) need_version=no ;;
23100 esac
23101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23103 shlibpath_var=LD_LIBRARY_PATH
23104 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23105 case $host_os in
23106 openbsd2.[89] | openbsd2.[89].*)
23107 shlibpath_overrides_runpath=no
23108 ;;
23109 *)
23110 shlibpath_overrides_runpath=yes
23111 ;;
23112 esac
23113 else
23114 shlibpath_overrides_runpath=yes
23115 fi
23116 ;;
23117
23118 os2*)
23119 libname_spec='$name'
23120 shrext_cmds=".dll"
23121 need_lib_prefix=no
23122 library_names_spec='$libname${shared_ext} $libname.a'
23123 dynamic_linker='OS/2 ld.exe'
23124 shlibpath_var=LIBPATH
23125 ;;
23126
23127 osf3* | osf4* | osf5*)
23128 version_type=osf
23129 need_lib_prefix=no
23130 need_version=no
23131 soname_spec='${libname}${release}${shared_ext}$major'
23132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23133 shlibpath_var=LD_LIBRARY_PATH
23134 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23135 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23136 ;;
23137
23138 rdos*)
23139 dynamic_linker=no
23140 ;;
23141
23142 solaris*)
23143 version_type=linux
23144 need_lib_prefix=no
23145 need_version=no
23146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23147 soname_spec='${libname}${release}${shared_ext}$major'
23148 shlibpath_var=LD_LIBRARY_PATH
23149 shlibpath_overrides_runpath=yes
23150 hardcode_into_libs=yes
23151 # ldd complains unless libraries are executable
23152 postinstall_cmds='chmod +x $lib'
23153 ;;
23154
23155 sunos4*)
23156 version_type=sunos
23157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23158 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23159 shlibpath_var=LD_LIBRARY_PATH
23160 shlibpath_overrides_runpath=yes
23161 if test "$with_gnu_ld" = yes; then
23162 need_lib_prefix=no
23163 fi
23164 need_version=yes
23165 ;;
23166
23167 sysv4 | sysv4.3*)
23168 version_type=linux
23169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23170 soname_spec='${libname}${release}${shared_ext}$major'
23171 shlibpath_var=LD_LIBRARY_PATH
23172 case $host_vendor in
23173 sni)
23174 shlibpath_overrides_runpath=no
23175 need_lib_prefix=no
23176 runpath_var=LD_RUN_PATH
23177 ;;
23178 siemens)
23179 need_lib_prefix=no
23180 ;;
23181 motorola)
23182 need_lib_prefix=no
23183 need_version=no
23184 shlibpath_overrides_runpath=no
23185 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23186 ;;
23187 esac
23188 ;;
23189
23190 sysv4*MP*)
23191 if test -d /usr/nec ;then
23192 version_type=linux
23193 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23194 soname_spec='$libname${shared_ext}.$major'
23195 shlibpath_var=LD_LIBRARY_PATH
23196 fi
23197 ;;
23198
23199 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23200 version_type=freebsd-elf
23201 need_lib_prefix=no
23202 need_version=no
23203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23204 soname_spec='${libname}${release}${shared_ext}$major'
23205 shlibpath_var=LD_LIBRARY_PATH
23206 shlibpath_overrides_runpath=yes
23207 hardcode_into_libs=yes
23208 if test "$with_gnu_ld" = yes; then
23209 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23210 else
23211 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23212 case $host_os in
23213 sco3.2v5*)
23214 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23215 ;;
23216 esac
23217 fi
23218 sys_lib_dlsearch_path_spec='/usr/lib'
23219 ;;
23220
23221 tpf*)
23222 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
23223 version_type=linux
23224 need_lib_prefix=no
23225 need_version=no
23226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23227 shlibpath_var=LD_LIBRARY_PATH
23228 shlibpath_overrides_runpath=no
23229 hardcode_into_libs=yes
23230 ;;
23231
23232 uts4*)
23233 version_type=linux
23234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23235 soname_spec='${libname}${release}${shared_ext}$major'
23236 shlibpath_var=LD_LIBRARY_PATH
23237 ;;
23238
23239 *)
23240 dynamic_linker=no
23241 ;;
23242 esac
23243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23244 $as_echo "$dynamic_linker" >&6; }
23245 test "$dynamic_linker" = no && can_build_shared=no
23246
23247 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23248 if test "$GCC" = yes; then
23249 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23250 fi
23251
23252 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23253 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23254 fi
23255 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23256 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23257 fi
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293
23294
23295
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23297 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23298 hardcode_action_CXX=
23299 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23300 test -n "$runpath_var_CXX" ||
23301 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23302
23303 # We can hardcode non-existent directories.
23304 if test "$hardcode_direct_CXX" != no &&
23305 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23306 # have to relink, otherwise we might link with an installed library
23307 # when we should be linking with a yet-to-be-installed one
23308 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23309 test "$hardcode_minus_L_CXX" != no; then
23310 # Linking always hardcodes the temporary library directory.
23311 hardcode_action_CXX=relink
23312 else
23313 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23314 hardcode_action_CXX=immediate
23315 fi
23316 else
23317 # We cannot hardcode anything, or else we can only hardcode existing
23318 # directories.
23319 hardcode_action_CXX=unsupported
23320 fi
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23322 $as_echo "$hardcode_action_CXX" >&6; }
23323
23324 if test "$hardcode_action_CXX" = relink ||
23325 test "$inherit_rpath_CXX" = yes; then
23326 # Fast installation is not supported
23327 enable_fast_install=no
23328 elif test "$shlibpath_overrides_runpath" = yes ||
23329 test "$enable_shared" = no; then
23330 # Fast installation is not necessary
23331 enable_fast_install=needless
23332 fi
23333
23334
23335
23336
23337
23338
23339
23340 fi # test -n "$compiler"
23341
23342 CC=$lt_save_CC
23343 LDCXX=$LD
23344 LD=$lt_save_LD
23345 GCC=$lt_save_GCC
23346 with_gnu_ld=$lt_save_with_gnu_ld
23347 lt_cv_path_LDCXX=$lt_cv_path_LD
23348 lt_cv_path_LD=$lt_save_path_LD
23349 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23350 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23351 fi # test "$_lt_caught_CXX_error" != yes
23352
23353 ac_ext=cpp
23354 ac_cpp='$CXXCPP $CPPFLAGS'
23355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23358
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372
23373
23374 # Only expand once:
23375
23376
23377
23378
23379
23380 # Identify the assembler which will work hand-in-glove with the newly
23381 # built GCC, so that we can examine its features. This is the assembler
23382 # which will be driven by the driver program.
23383 #
23384 # If build != host, and we aren't building gas in-tree, we identify a
23385 # build->target assembler and hope that it will have the same features
23386 # as the host->target assembler we'll be using.
23387 gcc_cv_gas_major_version=
23388 gcc_cv_gas_minor_version=
23389 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23390
23391 if ${gcc_cv_as+:} false; then :
23392
23393 else
23394
23395 if test -x "$DEFAULT_ASSEMBLER"; then
23396 gcc_cv_as="$DEFAULT_ASSEMBLER"
23397 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23398 && test -f ../gas/Makefile \
23399 && test x$build = x$host; then
23400 gcc_cv_as=../gas/as-new$build_exeext
23401 elif test -x as$build_exeext; then
23402 # Build using assembler in the current directory.
23403 gcc_cv_as=./as$build_exeext
23404 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
23405 gcc_cv_as="$AS_FOR_TARGET"
23406 else
23407 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23408 set dummy $AS_FOR_TARGET; ac_word=$2
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23410 $as_echo_n "checking for $ac_word... " >&6; }
23411 if ${ac_cv_path_gcc_cv_as+:} false; then :
23412 $as_echo_n "(cached) " >&6
23413 else
23414 case $gcc_cv_as in
23415 [\\/]* | ?:[\\/]*)
23416 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
23417 ;;
23418 *)
23419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23420 for as_dir in $PATH
23421 do
23422 IFS=$as_save_IFS
23423 test -z "$as_dir" && as_dir=.
23424 for ac_exec_ext in '' $ac_executable_extensions; do
23425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23426 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
23427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23428 break 2
23429 fi
23430 done
23431 done
23432 IFS=$as_save_IFS
23433
23434 ;;
23435 esac
23436 fi
23437 gcc_cv_as=$ac_cv_path_gcc_cv_as
23438 if test -n "$gcc_cv_as"; then
23439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23440 $as_echo "$gcc_cv_as" >&6; }
23441 else
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23443 $as_echo "no" >&6; }
23444 fi
23445
23446
23447 fi
23448 fi
23449
23450 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
23451
23452 case "$ORIGINAL_AS_FOR_TARGET" in
23453 ./as | ./as$build_exeext) ;;
23454 *) ac_config_files="$ac_config_files as:exec-tool.in"
23455 ;;
23456 esac
23457
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
23459 $as_echo_n "checking what assembler to use... " >&6; }
23460 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
23461 # Single tree build which includes gas. We want to prefer it
23462 # over whatever linker top-level may have detected, since
23463 # we'll use what we're building after installation anyway.
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
23465 $as_echo "newly built gas" >&6; }
23466 in_tree_gas=yes
23467 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23468 for f in $gcc_cv_as_bfd_srcdir/configure \
23469 $gcc_cv_as_gas_srcdir/configure \
23470 $gcc_cv_as_gas_srcdir/configure.ac \
23471 $gcc_cv_as_gas_srcdir/Makefile.in ; do
23472 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23473 if test x$gcc_cv_gas_version != x; then
23474 break
23475 fi
23476 done
23477 case $gcc_cv_gas_version in
23478 VERSION=[0-9]*) ;;
23479 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
23480 esac
23481 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
23482 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23483 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
23484 case $gcc_cv_gas_patch_version in
23485 "") gcc_cv_gas_patch_version="0" ;;
23486 esac
23487 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
23488 + $gcc_cv_gas_minor_version \) \* 1000 \
23489 + $gcc_cv_gas_patch_version`
23490
23491 in_tree_gas_is_elf=no
23492 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
23493 || (grep 'obj_format = multi' ../gas/Makefile \
23494 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
23495 then
23496 in_tree_gas_is_elf=yes
23497 fi
23498 else
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23500 $as_echo "$gcc_cv_as" >&6; }
23501 in_tree_gas=no
23502 fi
23503
23504 default_ld=
23505 # Check whether --enable-ld was given.
23506 if test "${enable_ld+set}" = set; then :
23507 enableval=$enable_ld; case "${enableval}" in
23508 no)
23509 default_ld=ld.gold
23510 ;;
23511 esac
23512 fi
23513
23514
23515 install_gold_as_default=no
23516 # Check whether --enable-gold was given.
23517 if test "${enable_gold+set}" = set; then :
23518 enableval=$enable_gold; case "${enableval}" in
23519 default)
23520 install_gold_as_default=yes
23521 ;;
23522 yes)
23523 if test x${default_ld} != x; then
23524 install_gold_as_default=yes
23525 fi
23526 ;;
23527 no)
23528 ;;
23529 *)
23530 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
23531 ;;
23532 esac
23533 fi
23534
23535
23536 # Identify the linker which will work hand-in-glove with the newly
23537 # built GCC, so that we can examine its features. This is the linker
23538 # which will be driven by the driver program.
23539 #
23540 # If build != host, and we aren't building gas in-tree, we identify a
23541 # build->target linker and hope that it will have the same features
23542 # as the host->target linker we'll be using.
23543 gcc_cv_gld_major_version=
23544 gcc_cv_gld_minor_version=
23545 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23546 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23547 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23548
23549 if ${gcc_cv_ld+:} false; then :
23550
23551 else
23552
23553 if test -x "$DEFAULT_LINKER"; then
23554 gcc_cv_ld="$DEFAULT_LINKER"
23555 elif test $install_gold_as_default = yes \
23556 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23557 && test -f ../gold/Makefile \
23558 && test x$build = x$host; then
23559 gcc_cv_ld=../gold/ld-new$build_exeext
23560 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23561 && test -f ../ld/Makefile \
23562 && test x$build = x$host; then
23563 gcc_cv_ld=../ld/ld-new$build_exeext
23564 elif test -x collect-ld$build_exeext; then
23565 # Build using linker in the current directory.
23566 gcc_cv_ld=./collect-ld$build_exeext
23567 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
23568 gcc_cv_ld="$LD_FOR_TARGET"
23569 else
23570 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23571 set dummy $LD_FOR_TARGET; ac_word=$2
23572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23573 $as_echo_n "checking for $ac_word... " >&6; }
23574 if ${ac_cv_path_gcc_cv_ld+:} false; then :
23575 $as_echo_n "(cached) " >&6
23576 else
23577 case $gcc_cv_ld in
23578 [\\/]* | ?:[\\/]*)
23579 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
23580 ;;
23581 *)
23582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23583 for as_dir in $PATH
23584 do
23585 IFS=$as_save_IFS
23586 test -z "$as_dir" && as_dir=.
23587 for ac_exec_ext in '' $ac_executable_extensions; do
23588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23589 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
23590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23591 break 2
23592 fi
23593 done
23594 done
23595 IFS=$as_save_IFS
23596
23597 ;;
23598 esac
23599 fi
23600 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
23601 if test -n "$gcc_cv_ld"; then
23602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23603 $as_echo "$gcc_cv_ld" >&6; }
23604 else
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23606 $as_echo "no" >&6; }
23607 fi
23608
23609
23610 fi
23611 fi
23612
23613 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
23614 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23615 # if the PLUGIN_LD is set ld-new, just have it as ld
23616 # as that is the installed named.
23617 if test x$PLUGIN_LD_SUFFIX = xld-new \
23618 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
23619 PLUGIN_LD_SUFFIX=ld
23620 fi
23621
23622 # Check whether --with-plugin-ld was given.
23623 if test "${with_plugin_ld+set}" = set; then :
23624 withval=$with_plugin_ld; if test x"$withval" != x; then
23625 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23626 PLUGIN_LD_SUFFIX="$withval"
23627 fi
23628 fi
23629
23630
23631
23632 cat >>confdefs.h <<_ACEOF
23633 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23634 _ACEOF
23635
23636
23637 # Check to see if we are using gold instead of ld
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23639 $as_echo_n "checking whether we are using gold... " >&6; }
23640 ld_is_gold=no
23641 if test x$gcc_cv_ld != x; then
23642 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23643 | grep "GNU gold" > /dev/null; then
23644 ld_is_gold=yes
23645 fi
23646 fi
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23648 $as_echo "$ld_is_gold" >&6; }
23649
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23651 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23652 # Check to see if default ld is not gold, but gold is
23653 # available and has support for split stack. If gcc was configured
23654 # with gold then no checking is done.
23655 #
23656 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23657
23658 # For platforms other than powerpc64*, enable as appropriate.
23659
23660 gold_non_default=no
23661 ld_gold=`which ${gcc_cv_ld}.gold`
23662 # Make sure this gold has minimal split stack support
23663 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23664 ld_vers=`$ld_gold --version | sed 1q`
23665 gold_vers=`echo $ld_vers | sed -n \
23666 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23667 case $target in
23668 # check that the gold version contains the complete split stack support
23669 # on powerpc64 big and little endian
23670 powerpc64*-*-*)
23671 case "$gold_vers" in
23672 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23673 ;;
23674 *) gold_non_default=no
23675 ;;
23676 esac
23677 ;;
23678 esac
23679 fi
23680 if test $gold_non_default = yes; then
23681
23682 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23683
23684 fi
23685 fi
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23687 $as_echo "$gold_non_default" >&6; }
23688
23689 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23690
23691 case "$ORIGINAL_LD_FOR_TARGET" in
23692 ./collect-ld | ./collect-ld$build_exeext) ;;
23693 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23694 ;;
23695 esac
23696
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23698 $as_echo_n "checking what linker to use... " >&6; }
23699 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23700 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23701 # Single tree build which includes ld. We want to prefer it
23702 # over whatever linker top-level may have detected, since
23703 # we'll use what we're building after installation anyway.
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23705 $as_echo "newly built ld" >&6; }
23706 in_tree_ld=yes
23707 in_tree_ld_is_elf=no
23708 if (grep 'EMUL = .*elf' ../ld/Makefile \
23709 || grep 'EMUL = .*linux' ../ld/Makefile \
23710 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23711 in_tree_ld_is_elf=yes
23712 elif test "$ld_is_gold" = yes; then
23713 in_tree_ld_is_elf=yes
23714 fi
23715 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
23716 do
23717 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23718 if test x$gcc_cv_gld_version != x; then
23719 break
23720 fi
23721 done
23722 case $gcc_cv_gld_version in
23723 VERSION=[0-9]*) ;;
23724 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23725 esac
23726 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23727 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23728 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23729 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23730 else
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23732 $as_echo "$gcc_cv_ld" >&6; }
23733 in_tree_ld=no
23734 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23735 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23736 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23737 fi
23738
23739
23740
23741
23742 # Figure out what nm we will be using.
23743 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23744 if ${gcc_cv_nm+:} false; then :
23745
23746 else
23747
23748 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23749 && test -f ../binutils/Makefile \
23750 && test x$build = x$host; then
23751 gcc_cv_nm=../binutils/nm-new$build_exeext
23752 elif test -x nm$build_exeext; then
23753 gcc_cv_nm=./nm$build_exeext
23754 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23755 gcc_cv_nm="$NM_FOR_TARGET"
23756 else
23757 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23758 set dummy $NM_FOR_TARGET; ac_word=$2
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23760 $as_echo_n "checking for $ac_word... " >&6; }
23761 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23762 $as_echo_n "(cached) " >&6
23763 else
23764 case $gcc_cv_nm in
23765 [\\/]* | ?:[\\/]*)
23766 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23767 ;;
23768 *)
23769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23770 for as_dir in $PATH
23771 do
23772 IFS=$as_save_IFS
23773 test -z "$as_dir" && as_dir=.
23774 for ac_exec_ext in '' $ac_executable_extensions; do
23775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23776 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23778 break 2
23779 fi
23780 done
23781 done
23782 IFS=$as_save_IFS
23783
23784 ;;
23785 esac
23786 fi
23787 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23788 if test -n "$gcc_cv_nm"; then
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23790 $as_echo "$gcc_cv_nm" >&6; }
23791 else
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23793 $as_echo "no" >&6; }
23794 fi
23795
23796
23797 fi
23798 fi
23799
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23801 $as_echo_n "checking what nm to use... " >&6; }
23802 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23803 # Single tree build which includes binutils.
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23805 $as_echo "newly built nm" >&6; }
23806 in_tree_nm=yes
23807 else
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23809 $as_echo "$gcc_cv_nm" >&6; }
23810 in_tree_nm=no
23811 fi
23812
23813 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23814
23815 case "$ORIGINAL_NM_FOR_TARGET" in
23816 ./nm | ./nm$build_exeext) ;;
23817 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23818 ;;
23819 esac
23820
23821
23822 # Figure out what objdump we will be using.
23823 if ${gcc_cv_objdump+:} false; then :
23824
23825 else
23826
23827 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23828 && test -f ../binutils/Makefile \
23829 && test x$build = x$host; then
23830 # Single tree build which includes binutils.
23831 gcc_cv_objdump=../binutils/objdump$build_exeext
23832 elif test -x objdump$build_exeext; then
23833 gcc_cv_objdump=./objdump$build_exeext
23834 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23835 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23836 else
23837 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23838 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23840 $as_echo_n "checking for $ac_word... " >&6; }
23841 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23842 $as_echo_n "(cached) " >&6
23843 else
23844 case $gcc_cv_objdump in
23845 [\\/]* | ?:[\\/]*)
23846 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23847 ;;
23848 *)
23849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23850 for as_dir in $PATH
23851 do
23852 IFS=$as_save_IFS
23853 test -z "$as_dir" && as_dir=.
23854 for ac_exec_ext in '' $ac_executable_extensions; do
23855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23856 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23858 break 2
23859 fi
23860 done
23861 done
23862 IFS=$as_save_IFS
23863
23864 ;;
23865 esac
23866 fi
23867 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23868 if test -n "$gcc_cv_objdump"; then
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23870 $as_echo "$gcc_cv_objdump" >&6; }
23871 else
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23873 $as_echo "no" >&6; }
23874 fi
23875
23876
23877 fi
23878 fi
23879
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23881 $as_echo_n "checking what objdump to use... " >&6; }
23882 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23883 # Single tree build which includes binutils.
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23885 $as_echo "newly built objdump" >&6; }
23886 elif test x$gcc_cv_objdump = x; then
23887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23888 $as_echo "not found" >&6; }
23889 else
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23891 $as_echo "$gcc_cv_objdump" >&6; }
23892 fi
23893
23894 # Figure out what readelf we will be using.
23895 if ${gcc_cv_readelf+:} false; then :
23896
23897 else
23898
23899 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23900 && test -f ../binutils/Makefile \
23901 && test x$build = x$host; then
23902 # Single tree build which includes binutils.
23903 gcc_cv_readelf=../binutils/readelf$build_exeext
23904 elif test -x readelf$build_exeext; then
23905 gcc_cv_readelf=./readelf$build_exeext
23906 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23907 gcc_cv_readelf="$READELF_FOR_TARGET"
23908 else
23909 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23910 set dummy $READELF_FOR_TARGET; ac_word=$2
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23912 $as_echo_n "checking for $ac_word... " >&6; }
23913 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23914 $as_echo_n "(cached) " >&6
23915 else
23916 case $gcc_cv_readelf in
23917 [\\/]* | ?:[\\/]*)
23918 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23919 ;;
23920 *)
23921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23922 for as_dir in $PATH
23923 do
23924 IFS=$as_save_IFS
23925 test -z "$as_dir" && as_dir=.
23926 for ac_exec_ext in '' $ac_executable_extensions; do
23927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23928 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23930 break 2
23931 fi
23932 done
23933 done
23934 IFS=$as_save_IFS
23935
23936 ;;
23937 esac
23938 fi
23939 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23940 if test -n "$gcc_cv_readelf"; then
23941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23942 $as_echo "$gcc_cv_readelf" >&6; }
23943 else
23944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23945 $as_echo "no" >&6; }
23946 fi
23947
23948
23949 fi
23950 fi
23951
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23953 $as_echo_n "checking what readelf to use... " >&6; }
23954 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23955 # Single tree build which includes binutils.
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23957 $as_echo "newly built readelf" >&6; }
23958 elif test x$gcc_cv_readelf = x; then
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23960 $as_echo "not found" >&6; }
23961 else
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23963 $as_echo "$gcc_cv_readelf" >&6; }
23964 fi
23965
23966 # Figure out what otool we will be using.
23967 if ${gcc_cv_otool+:} false; then :
23968
23969 else
23970
23971 if test -x otool$build_exeext; then
23972 gcc_cv_otool=./otool$build_exeext
23973 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23974 gcc_cv_otool="$OTOOL_FOR_TARGET"
23975 else
23976 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23977 set dummy $OTOOL_FOR_TARGET; ac_word=$2
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23979 $as_echo_n "checking for $ac_word... " >&6; }
23980 if ${ac_cv_path_gcc_cv_otool+:} false; then :
23981 $as_echo_n "(cached) " >&6
23982 else
23983 case $gcc_cv_otool in
23984 [\\/]* | ?:[\\/]*)
23985 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23986 ;;
23987 *)
23988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23989 for as_dir in $PATH
23990 do
23991 IFS=$as_save_IFS
23992 test -z "$as_dir" && as_dir=.
23993 for ac_exec_ext in '' $ac_executable_extensions; do
23994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23995 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23997 break 2
23998 fi
23999 done
24000 done
24001 IFS=$as_save_IFS
24002
24003 ;;
24004 esac
24005 fi
24006 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
24007 if test -n "$gcc_cv_otool"; then
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
24009 $as_echo "$gcc_cv_otool" >&6; }
24010 else
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24012 $as_echo "no" >&6; }
24013 fi
24014
24015
24016 fi
24017 fi
24018
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
24020 $as_echo_n "checking what otool to use... " >&6; }
24021 if test x$gcc_cv_otool = x; then
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24023 $as_echo "not found" >&6; }
24024 else
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
24026 $as_echo "$gcc_cv_otool" >&6; }
24027 fi
24028
24029 # Figure out what assembler alignment features are present.
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
24031 $as_echo_n "checking assembler flags... " >&6; }
24032 if ${gcc_cv_as_flags+:} false; then :
24033 $as_echo_n "(cached) " >&6
24034 else
24035 case "$target" in
24036 i[34567]86-*-linux*)
24037 gcc_cv_as_flags=--32
24038 ;;
24039 x86_64-*-linux-gnux32)
24040 gcc_cv_as_flags=--x32
24041 ;;
24042 x86_64-*-linux*)
24043 gcc_cv_as_flags=--64
24044 ;;
24045 powerpc*-*-darwin*)
24046 gcc_cv_as_flags="-arch ppc"
24047 ;;
24048 *)
24049 gcc_cv_as_flags=" "
24050 ;;
24051 esac
24052 fi
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
24054 $as_echo "$gcc_cv_as_flags" >&6; }
24055
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
24057 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
24058 if ${gcc_cv_as_balign_and_p2align+:} false; then :
24059 $as_echo_n "(cached) " >&6
24060 else
24061 gcc_cv_as_balign_and_p2align=no
24062 if test $in_tree_gas = yes; then
24063 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
24064 then gcc_cv_as_balign_and_p2align=yes
24065 fi
24066 elif test x$gcc_cv_as != x; then
24067 $as_echo '.balign 4
24068 .p2align 2' > conftest.s
24069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24071 (eval $ac_try) 2>&5
24072 ac_status=$?
24073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24074 test $ac_status = 0; }; }
24075 then
24076 gcc_cv_as_balign_and_p2align=yes
24077 else
24078 echo "configure: failed program was" >&5
24079 cat conftest.s >&5
24080 fi
24081 rm -f conftest.o conftest.s
24082 fi
24083 fi
24084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
24085 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
24086 if test $gcc_cv_as_balign_and_p2align = yes; then
24087
24088 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
24089
24090 fi
24091
24092
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
24094 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
24095 if ${gcc_cv_as_max_skip_p2align+:} false; then :
24096 $as_echo_n "(cached) " >&6
24097 else
24098 gcc_cv_as_max_skip_p2align=no
24099 if test $in_tree_gas = yes; then
24100 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
24101 then gcc_cv_as_max_skip_p2align=yes
24102 fi
24103 elif test x$gcc_cv_as != x; then
24104 $as_echo '.p2align 4,,7' > conftest.s
24105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24107 (eval $ac_try) 2>&5
24108 ac_status=$?
24109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24110 test $ac_status = 0; }; }
24111 then
24112 gcc_cv_as_max_skip_p2align=yes
24113 else
24114 echo "configure: failed program was" >&5
24115 cat conftest.s >&5
24116 fi
24117 rm -f conftest.o conftest.s
24118 fi
24119 fi
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
24121 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
24122 if test $gcc_cv_as_max_skip_p2align = yes; then
24123
24124 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
24125
24126 fi
24127
24128
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
24130 $as_echo_n "checking assembler for .literal16... " >&6; }
24131 if ${gcc_cv_as_literal16+:} false; then :
24132 $as_echo_n "(cached) " >&6
24133 else
24134 gcc_cv_as_literal16=no
24135 if test $in_tree_gas = yes; then
24136 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
24137 then gcc_cv_as_literal16=yes
24138 fi
24139 elif test x$gcc_cv_as != x; then
24140 $as_echo '.literal16' > conftest.s
24141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24143 (eval $ac_try) 2>&5
24144 ac_status=$?
24145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24146 test $ac_status = 0; }; }
24147 then
24148 gcc_cv_as_literal16=yes
24149 else
24150 echo "configure: failed program was" >&5
24151 cat conftest.s >&5
24152 fi
24153 rm -f conftest.o conftest.s
24154 fi
24155 fi
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
24157 $as_echo "$gcc_cv_as_literal16" >&6; }
24158 if test $gcc_cv_as_literal16 = yes; then
24159
24160 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
24161
24162 fi
24163
24164
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
24166 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
24167 if ${gcc_cv_as_subsection_m1+:} false; then :
24168 $as_echo_n "(cached) " >&6
24169 else
24170 gcc_cv_as_subsection_m1=no
24171 if test $in_tree_gas = yes; then
24172 if test $in_tree_gas_is_elf = yes \
24173 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
24174 then gcc_cv_as_subsection_m1=yes
24175 fi
24176 elif test x$gcc_cv_as != x; then
24177 $as_echo 'conftest_label1: .word 0
24178 .subsection -1
24179 conftest_label2: .word 0
24180 .previous' > conftest.s
24181 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24183 (eval $ac_try) 2>&5
24184 ac_status=$?
24185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24186 test $ac_status = 0; }; }
24187 then
24188 if test x$gcc_cv_nm != x; then
24189 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
24190 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
24191 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
24192 then :
24193 else gcc_cv_as_subsection_m1=yes
24194 fi
24195 rm -f conftest.nm1 conftest.nm2
24196 fi
24197 else
24198 echo "configure: failed program was" >&5
24199 cat conftest.s >&5
24200 fi
24201 rm -f conftest.o conftest.s
24202 fi
24203 fi
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
24205 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
24206 if test $gcc_cv_as_subsection_m1 = yes; then
24207
24208 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
24209
24210 fi
24211
24212
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
24214 $as_echo_n "checking assembler for .weak... " >&6; }
24215 if ${gcc_cv_as_weak+:} false; then :
24216 $as_echo_n "(cached) " >&6
24217 else
24218 gcc_cv_as_weak=no
24219 if test $in_tree_gas = yes; then
24220 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
24221 then gcc_cv_as_weak=yes
24222 fi
24223 elif test x$gcc_cv_as != x; then
24224 $as_echo ' .weak foobar' > conftest.s
24225 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24227 (eval $ac_try) 2>&5
24228 ac_status=$?
24229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24230 test $ac_status = 0; }; }
24231 then
24232 gcc_cv_as_weak=yes
24233 else
24234 echo "configure: failed program was" >&5
24235 cat conftest.s >&5
24236 fi
24237 rm -f conftest.o conftest.s
24238 fi
24239 fi
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
24241 $as_echo "$gcc_cv_as_weak" >&6; }
24242 if test $gcc_cv_as_weak = yes; then
24243
24244 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
24245
24246 fi
24247
24248
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
24250 $as_echo_n "checking assembler for .weakref... " >&6; }
24251 if ${gcc_cv_as_weakref+:} false; then :
24252 $as_echo_n "(cached) " >&6
24253 else
24254 gcc_cv_as_weakref=no
24255 if test $in_tree_gas = yes; then
24256 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24257 then gcc_cv_as_weakref=yes
24258 fi
24259 elif test x$gcc_cv_as != x; then
24260 $as_echo ' .weakref foobar, barfnot' > conftest.s
24261 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24263 (eval $ac_try) 2>&5
24264 ac_status=$?
24265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24266 test $ac_status = 0; }; }
24267 then
24268 gcc_cv_as_weakref=yes
24269 else
24270 echo "configure: failed program was" >&5
24271 cat conftest.s >&5
24272 fi
24273 rm -f conftest.o conftest.s
24274 fi
24275 fi
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
24277 $as_echo "$gcc_cv_as_weakref" >&6; }
24278 if test $gcc_cv_as_weakref = yes; then
24279
24280 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24281
24282 fi
24283
24284
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24286 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24287 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
24288 $as_echo_n "(cached) " >&6
24289 else
24290 gcc_cv_as_nsubspa_comdat=no
24291 if test $in_tree_gas = yes; then
24292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24293 then gcc_cv_as_nsubspa_comdat=yes
24294 fi
24295 elif test x$gcc_cv_as != x; then
24296 $as_echo ' .SPACE $TEXT$
24297 .NSUBSPA $CODE$,COMDAT' > conftest.s
24298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24300 (eval $ac_try) 2>&5
24301 ac_status=$?
24302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24303 test $ac_status = 0; }; }
24304 then
24305 gcc_cv_as_nsubspa_comdat=yes
24306 else
24307 echo "configure: failed program was" >&5
24308 cat conftest.s >&5
24309 fi
24310 rm -f conftest.o conftest.s
24311 fi
24312 fi
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24314 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24315 if test $gcc_cv_as_nsubspa_comdat = yes; then
24316
24317 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24318
24319 fi
24320
24321
24322 # .hidden needs to be supported in both the assembler and the linker,
24323 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24324 # This is irritatingly difficult to feature test for; we have to check the
24325 # date string after the version number. If we've got an in-tree
24326 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24327 # to be safe.
24328 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24329 case "${target}" in
24330 *-*-aix*)
24331 conftest_s=' .globl foobar,hidden'
24332 ;;
24333 *)
24334 conftest_s=' .hidden foobar
24335 foobar:'
24336 ;;
24337 esac
24338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24339 $as_echo_n "checking assembler for .hidden... " >&6; }
24340 if ${gcc_cv_as_hidden+:} false; then :
24341 $as_echo_n "(cached) " >&6
24342 else
24343 gcc_cv_as_hidden=no
24344 if test $in_tree_gas = yes; then
24345 if test $in_tree_gas_is_elf = yes \
24346 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
24347 then gcc_cv_as_hidden=yes
24348 fi
24349 elif test x$gcc_cv_as != x; then
24350 $as_echo "$conftest_s" > conftest.s
24351 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24353 (eval $ac_try) 2>&5
24354 ac_status=$?
24355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24356 test $ac_status = 0; }; }
24357 then
24358 gcc_cv_as_hidden=yes
24359 else
24360 echo "configure: failed program was" >&5
24361 cat conftest.s >&5
24362 fi
24363 rm -f conftest.o conftest.s
24364 fi
24365 fi
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24367 $as_echo "$gcc_cv_as_hidden" >&6; }
24368
24369
24370 case "${target}" in
24371 *-*-darwin*)
24372 # Darwin as has some visibility support, though with a different syntax.
24373 gcc_cv_as_hidden=yes
24374 ;;
24375 esac
24376
24377 # gnu_indirect_function type is an extension proposed at
24378 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24379 # selection of function implementation
24380 # Check whether --enable-gnu-indirect-function was given.
24381 if test "${enable_gnu_indirect_function+set}" = set; then :
24382 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24383 yes | no) ;;
24384 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24385 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24386 esac
24387 else
24388 enable_gnu_indirect_function="$default_gnu_indirect_function"
24389 fi
24390
24391
24392 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24393
24394 cat >>confdefs.h <<_ACEOF
24395 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24396 _ACEOF
24397
24398
24399
24400 if test $in_tree_ld != yes ; then
24401 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24402 if echo "$ld_ver" | grep GNU > /dev/null; then
24403 if test x"$ld_is_gold" = xyes; then
24404 # GNU gold --version looks like this:
24405 #
24406 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24407 #
24408 # We extract the binutils version which is more familiar and specific
24409 # than the gold version.
24410 ld_vers=`echo $ld_ver | sed -n \
24411 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24412 else
24413 # GNU ld --version looks like this:
24414 #
24415 # GNU ld (GNU Binutils) 2.21.51.20110225
24416 ld_vers=`echo $ld_ver | sed -n \
24417 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24418 fi
24419 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)\(-*\)\([01][0-9]\)\2\([0-3][0-9]\).*$,\1\3\4,p'`
24420 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24421 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24422 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24423 else
24424 case "${target}" in
24425 *-*-solaris2*)
24426 # Solaris 2 ld -V output looks like this for a regular version:
24427 #
24428 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24429 #
24430 # but test versions add stuff at the end:
24431 #
24432 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24433 #
24434 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24435 # numbers can be used in ld.so.1 feature checks even if a different
24436 # linker is configured.
24437 ld_ver=`$gcc_cv_ld -V 2>&1`
24438 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
24439 ld_vers=`echo $ld_ver | sed -n \
24440 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24441 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24442 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24443 fi
24444 ;;
24445 esac
24446 fi
24447 fi
24448
24449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24450 $as_echo_n "checking linker for .hidden support... " >&6; }
24451 if ${gcc_cv_ld_hidden+:} false; then :
24452 $as_echo_n "(cached) " >&6
24453 else
24454 if test $in_tree_ld = yes ; then
24455 gcc_cv_ld_hidden=no
24456 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 \
24457 && test $in_tree_ld_is_elf = yes; then
24458 gcc_cv_ld_hidden=yes
24459 fi
24460 else
24461 gcc_cv_ld_hidden=yes
24462 if test x"$ld_is_gold" = xyes; then
24463 :
24464 elif echo "$ld_ver" | grep GNU > /dev/null; then
24465 case "${target}" in
24466 mmix-knuth-mmixware)
24467 # The linker emits by default mmo, not ELF, so "no" is appropriate.
24468 gcc_cv_ld_hidden=no
24469 ;;
24470 esac
24471 if test 0"$ld_date" -lt 20020404; then
24472 if test -n "$ld_date"; then
24473 # If there was date string, but was earlier than 2002-04-04, fail
24474 gcc_cv_ld_hidden=no
24475 elif test -z "$ld_vers"; then
24476 # If there was no date string nor ld version number, something is wrong
24477 gcc_cv_ld_hidden=no
24478 else
24479 test -z "$ld_vers_patch" && ld_vers_patch=0
24480 if test "$ld_vers_major" -lt 2; then
24481 gcc_cv_ld_hidden=no
24482 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24483 gcc_cv_ld_hidden="no"
24484 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24485 gcc_cv_ld_hidden=no
24486 fi
24487 fi
24488 fi
24489 else
24490 case "${target}" in
24491 *-*-aix[789]*)
24492 gcc_cv_ld_hidden=yes
24493 ;;
24494 *-*-darwin*)
24495 # Darwin ld has some visibility support.
24496 gcc_cv_ld_hidden=yes
24497 ;;
24498 hppa64*-*-hpux* | ia64*-*-hpux*)
24499 gcc_cv_ld_hidden=yes
24500 ;;
24501 *-*-solaris2*)
24502 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24503 # .symbolic was only added in Solaris 9 12/02.
24504 gcc_cv_ld_hidden=yes
24505 ;;
24506 *)
24507 gcc_cv_ld_hidden=no
24508 ;;
24509 esac
24510 fi
24511 fi
24512 fi
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24514 $as_echo "$gcc_cv_ld_hidden" >&6; }
24515 libgcc_visibility=no
24516
24517
24518 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24519 libgcc_visibility=yes
24520
24521 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24522
24523 fi
24524
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24526 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24527 gcc_cv_ld_ro_rw_mix=unknown
24528 if test $in_tree_ld = yes ; then
24529 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 \
24530 && test $in_tree_ld_is_elf = yes; then
24531 gcc_cv_ld_ro_rw_mix=read-write
24532 fi
24533 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24534 echo '.section myfoosect, "a"' > conftest1.s
24535 echo '.section myfoosect, "aw"' > conftest2.s
24536 echo '.byte 1' >> conftest2.s
24537 echo '.section myfoosect, "a"' > conftest3.s
24538 echo '.byte 0' >> conftest3.s
24539 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
24540 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
24541 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
24542 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24543 conftest2.o conftest3.o > /dev/null 2>&1; then
24544 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
24545 | sed -e '/myfoosect/!d' -e N`
24546 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
24547 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
24548 gcc_cv_ld_ro_rw_mix=read-only
24549 else
24550 gcc_cv_ld_ro_rw_mix=read-write
24551 fi
24552 fi
24553 fi
24554 rm -f conftest.* conftest[123].*
24555 fi
24556 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
24557
24558 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24559
24560 fi
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24562 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24563
24564 # Check whether --enable-initfini-array was given.
24565 if test "${enable_initfini_array+set}" = set; then :
24566 enableval=$enable_initfini_array;
24567 else
24568
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24570 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24571 if ${gcc_cv_initfini_array+:} false; then :
24572 $as_echo_n "(cached) " >&6
24573 else
24574 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24575 case "${target}" in
24576 ia64-*)
24577 if test "$cross_compiling" = yes; then :
24578 gcc_cv_initfini_array=no
24579 else
24580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24581 /* end confdefs.h. */
24582
24583 #ifndef __ELF__
24584 #error Not an ELF OS
24585 #endif
24586 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24587 if it can be used. */
24588 static int x = -1;
24589 int main (void) { return x; }
24590 int foo (void) { x = 0; }
24591 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24592
24593 _ACEOF
24594 if ac_fn_cxx_try_run "$LINENO"; then :
24595 gcc_cv_initfini_array=yes
24596 else
24597 gcc_cv_initfini_array=no
24598 fi
24599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24600 conftest.$ac_objext conftest.beam conftest.$ac_ext
24601 fi
24602 ;;
24603 *)
24604 gcc_cv_initfini_array=no
24605 if test $in_tree_ld = yes ; then
24606 if test "$gcc_cv_gld_major_version" -eq 2 \
24607 -a "$gcc_cv_gld_minor_version" -ge 22 \
24608 -o "$gcc_cv_gld_major_version" -gt 2 \
24609 && test $in_tree_ld_is_elf = yes; then
24610 gcc_cv_initfini_array=yes
24611 fi
24612 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24613 case $target:$gas in
24614 *:yes)
24615 sh_flags='"a"'
24616 sh_type='%progbits'
24617 ;;
24618 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24619 sh_flags='"a"'
24620 sh_type='@progbits'
24621 ;;
24622 sparc*-*-solaris2*:no)
24623 sh_flags='#alloc'
24624 sh_type='#progbits'
24625 sh_quote='"'
24626 ;;
24627 esac
24628 case "$target:$gnu_ld" in
24629 *:yes)
24630 cat > conftest.s <<EOF
24631 .section .dtors,$sh_flags,$sh_type
24632 .balign 4
24633 .byte 'A', 'A', 'A', 'A'
24634 .section .ctors,$sh_flags,$sh_type
24635 .balign 4
24636 .byte 'B', 'B', 'B', 'B'
24637 .section .fini_array.65530,$sh_flags,$sh_type
24638 .balign 4
24639 .byte 'C', 'C', 'C', 'C'
24640 .section .init_array.65530,$sh_flags,$sh_type
24641 .balign 4
24642 .byte 'D', 'D', 'D', 'D'
24643 .section .dtors.64528,$sh_flags,$sh_type
24644 .balign 4
24645 .byte 'E', 'E', 'E', 'E'
24646 .section .ctors.64528,$sh_flags,$sh_type
24647 .balign 4
24648 .byte 'F', 'F', 'F', 'F'
24649 .section .fini_array.01005,$sh_flags,$sh_type
24650 .balign 4
24651 .byte 'G', 'G', 'G', 'G'
24652 .section .init_array.01005,$sh_flags,$sh_type
24653 .balign 4
24654 .byte 'H', 'H', 'H', 'H'
24655 .text
24656 .globl _start
24657 _start:
24658 EOF
24659 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24660 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24661 && $gcc_cv_objdump -s -j .init_array conftest \
24662 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24663 && $gcc_cv_objdump -s -j .fini_array conftest \
24664 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24665 gcc_cv_initfini_array=yes
24666 fi
24667 ;;
24668 *-*-solaris2*:no)
24669 # When Solaris ld added constructor priority support, it was
24670 # decided to only handle .init_array.N/.fini_array.N since
24671 # there was no need for backwards compatibility with
24672 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24673 # sections with correct execution order resp. to
24674 # .init_array/.fini_array, while gld merges them into
24675 # .init_array/.fini_array.
24676 cat > conftest.s <<EOF
24677 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24678 .align 4
24679 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24680 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24681 .align 4
24682 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24683 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24684 .align 4
24685 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24686 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24687 .align 4
24688 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24689 .text
24690 .globl _start
24691 _start:
24692 EOF
24693 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24694 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24695 && $gcc_cv_objdump -s -j .init_array conftest \
24696 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24697 && $gcc_cv_objdump -s -j .fini_array conftest \
24698 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24699 gcc_cv_initfini_array=yes
24700 fi
24701 ;;
24702 esac
24703 rm -f conftest conftest.*
24704 fi
24705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24706 /* end confdefs.h. */
24707
24708 #ifndef __ELF__
24709 # error Not an ELF OS
24710 #endif
24711 #include <stdlib.h>
24712 #if defined __GLIBC_PREREQ
24713 # if __GLIBC_PREREQ (2, 4)
24714 # else
24715 # error GLIBC 2.4 required
24716 # endif
24717 #else
24718 # if defined __sun__ && defined __svr4__
24719 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24720 # else
24721 # error The C library not known to support .init_array/.fini_array
24722 # endif
24723 #endif
24724
24725 _ACEOF
24726 if ac_fn_cxx_try_cpp "$LINENO"; then :
24727
24728 else
24729 gcc_cv_initfini_array=no
24730 fi
24731 rm -f conftest.err conftest.i conftest.$ac_ext;;
24732 esac
24733 else
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24735 $as_echo_n "checking cross compile... guessing... " >&6; }
24736 gcc_cv_initfini_array=no
24737 fi
24738 fi
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24740 $as_echo "$gcc_cv_initfini_array" >&6; }
24741 enable_initfini_array=$gcc_cv_initfini_array
24742
24743 fi
24744
24745
24746 cat >>confdefs.h <<_ACEOF
24747 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24748 _ACEOF
24749
24750
24751
24752 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24754 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24755 if ${gcc_cv_as_leb128+:} false; then :
24756 $as_echo_n "(cached) " >&6
24757 else
24758 gcc_cv_as_leb128=no
24759 if test $in_tree_gas = yes; then
24760 if test $in_tree_gas_is_elf = yes \
24761 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24762 then gcc_cv_as_leb128=yes
24763 fi
24764 elif test x$gcc_cv_as != x; then
24765 $as_echo ' .data
24766 .uleb128 L2 - L1
24767 L1:
24768 .uleb128 1280
24769 .sleb128 -1010
24770 L2:' > conftest.s
24771 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24773 (eval $ac_try) 2>&5
24774 ac_status=$?
24775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24776 test $ac_status = 0; }; }
24777 then
24778 # GAS versions before 2.11 do not support uleb128,
24779 # despite appearing to.
24780 # ??? There exists an elf-specific test that will crash
24781 # the assembler. Perhaps it's better to figure out whether
24782 # arbitrary sections are supported and try the test.
24783 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
24784 if echo "$as_ver" | grep GNU > /dev/null; then
24785 as_vers=`echo $as_ver | sed -n \
24786 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24787 as_major=`expr "$as_vers" : '\([0-9]*\)'`
24788 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
24789 if test $as_major -eq 2 && test $as_minor -lt 11
24790 then :
24791 else gcc_cv_as_leb128=yes
24792 fi
24793 fi
24794 else
24795 echo "configure: failed program was" >&5
24796 cat conftest.s >&5
24797 fi
24798 rm -f conftest.o conftest.s
24799 fi
24800 fi
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24802 $as_echo "$gcc_cv_as_leb128" >&6; }
24803 if test $gcc_cv_as_leb128 = yes; then
24804
24805 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24806
24807 fi
24808 if test $gcc_cv_as_leb128 != yes; then
24809
24810 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24811
24812 fi
24813
24814 # Determine if an .eh_frame section is read-only.
24815 gcc_fn_eh_frame_ro () {
24816 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24817 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24818 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24819 }
24820
24821 # Check if we have assembler support for unwind directives.
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24823 $as_echo_n "checking assembler for cfi directives... " >&6; }
24824 if ${gcc_cv_as_cfi_directive+:} false; then :
24825 $as_echo_n "(cached) " >&6
24826 else
24827 gcc_cv_as_cfi_directive=no
24828 if test x$gcc_cv_as != x; then
24829 $as_echo ' .text
24830 .cfi_startproc
24831 .cfi_offset 0, 0
24832 .cfi_same_value 1
24833 .cfi_def_cfa 1, 2
24834 .cfi_escape 1, 2, 3, 4, 5
24835 .cfi_endproc' > conftest.s
24836 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24838 (eval $ac_try) 2>&5
24839 ac_status=$?
24840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24841 test $ac_status = 0; }; }
24842 then
24843 case "$target" in
24844 *-*-solaris*)
24845 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24846 # read-only and read-write sections, we need to make sure that the
24847 # assembler used emits read-write .eh_frame sections.
24848 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24849 gcc_cv_as_cfi_directive=yes
24850 elif test "x$gcc_cv_objdump" = x; then
24851 # No objdump, err on the side of caution.
24852 gcc_cv_as_cfi_directive=no
24853 else
24854 if test x$gas = xyes; then
24855 as_32_opt="--32"
24856 as_64_opt="--64"
24857 else
24858 as_32_opt="-m32"
24859 as_64_opt="-m64"
24860 fi
24861 case "$target" in
24862 sparc*-*-solaris2.*)
24863 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24864 if gcc_fn_eh_frame_ro $as_32_opt \
24865 || gcc_fn_eh_frame_ro $as_64_opt; then
24866 gcc_cv_as_cfi_directive=no
24867 else
24868 gcc_cv_as_cfi_directive=yes
24869 fi
24870 ;;
24871 i?86-*-solaris2.* | x86_64-*-solaris2.*)
24872 # On Solaris/x86, make sure that GCC and assembler agree on using
24873 # read-only .eh_frame sections for 64-bit.
24874 if gcc_fn_eh_frame_ro $as_32_opt; then
24875 gcc_cv_as_cfi_directive=no
24876 elif gcc_fn_eh_frame_ro $as_64_opt; then
24877 gcc_cv_as_cfi_directive=yes
24878 else
24879 gcc_cv_as_cfi_directive=no
24880 fi
24881 ;;
24882 esac
24883 fi
24884 ;;
24885 *-*-*)
24886 gcc_cv_as_cfi_directive=yes
24887 ;;
24888 esac
24889 else
24890 echo "configure: failed program was" >&5
24891 cat conftest.s >&5
24892 fi
24893 rm -f conftest.o conftest.s
24894 fi
24895 fi
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24897 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24898
24899
24900 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24902 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24903 if ${gcc_cv_as_cfi_advance_working+:} false; then :
24904 $as_echo_n "(cached) " >&6
24905 else
24906 gcc_cv_as_cfi_advance_working=no
24907 if test x$gcc_cv_as != x; then
24908 $as_echo ' .text
24909 .cfi_startproc
24910 .cfi_adjust_cfa_offset 64
24911 .skip 75040, 0
24912 .cfi_adjust_cfa_offset 128
24913 .cfi_endproc' > conftest.s
24914 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24916 (eval $ac_try) 2>&5
24917 ac_status=$?
24918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24919 test $ac_status = 0; }; }
24920 then
24921
24922 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24923 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
24924 gcc_cv_as_cfi_advance_working=yes
24925 fi
24926
24927 else
24928 echo "configure: failed program was" >&5
24929 cat conftest.s >&5
24930 fi
24931 rm -f conftest.o conftest.s
24932 fi
24933 fi
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24935 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24936
24937
24938 else
24939 # no objdump, err on the side of caution
24940 gcc_cv_as_cfi_advance_working=no
24941 fi
24942
24943
24944 cat >>confdefs.h <<_ACEOF
24945 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24946 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24947 _ACEOF
24948
24949
24950
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24952 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24953 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24954 $as_echo_n "(cached) " >&6
24955 else
24956 gcc_cv_as_cfi_personality_directive=no
24957 if test x$gcc_cv_as != x; then
24958 $as_echo ' .text
24959 .cfi_startproc
24960 .cfi_personality 0, symbol
24961 .cfi_endproc' > conftest.s
24962 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24964 (eval $ac_try) 2>&5
24965 ac_status=$?
24966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24967 test $ac_status = 0; }; }
24968 then
24969 gcc_cv_as_cfi_personality_directive=yes
24970 else
24971 echo "configure: failed program was" >&5
24972 cat conftest.s >&5
24973 fi
24974 rm -f conftest.o conftest.s
24975 fi
24976 fi
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24978 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24979
24980
24981
24982 cat >>confdefs.h <<_ACEOF
24983 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24984 _ACEOF
24985
24986
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24988 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24989 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24990 $as_echo_n "(cached) " >&6
24991 else
24992 gcc_cv_as_cfi_sections_directive=no
24993 if test x$gcc_cv_as != x; then
24994 $as_echo ' .text
24995 .cfi_sections .debug_frame, .eh_frame
24996 .cfi_startproc
24997 .cfi_endproc' > conftest.s
24998 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25000 (eval $ac_try) 2>&5
25001 ac_status=$?
25002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25003 test $ac_status = 0; }; }
25004 then
25005 case $target_os in
25006 win32 | pe | cygwin* | mingw32*)
25007 # Need to check that we generated the correct relocation for the
25008 # .debug_frame section. This was fixed for binutils 2.21.
25009 gcc_cv_as_cfi_sections_directive=no
25010 if test "x$gcc_cv_objdump" != x; then
25011 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
25012 grep secrel > /dev/null; then
25013 gcc_cv_as_cfi_sections_directive=yes
25014 fi
25015 fi
25016 ;;
25017 *)
25018 gcc_cv_as_cfi_sections_directive=yes
25019 ;;
25020 esac
25021 else
25022 echo "configure: failed program was" >&5
25023 cat conftest.s >&5
25024 fi
25025 rm -f conftest.o conftest.s
25026 fi
25027 fi
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
25029 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
25030
25031
25032
25033
25034 cat >>confdefs.h <<_ACEOF
25035 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
25036 _ACEOF
25037
25038
25039 # GAS versions up to and including 2.11.0 may mis-optimize
25040 # .eh_frame data.
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
25042 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
25043 if ${gcc_cv_as_eh_frame+:} false; then :
25044 $as_echo_n "(cached) " >&6
25045 else
25046 gcc_cv_as_eh_frame=no
25047 if test $in_tree_gas = yes; then
25048 if test $in_tree_gas_is_elf = yes \
25049 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25050 then gcc_cv_as_eh_frame=yes
25051 fi
25052 elif test x$gcc_cv_as != x; then
25053 $as_echo ' .text
25054 .LFB1:
25055 .4byte 0
25056 .L1:
25057 .4byte 0
25058 .LFE1:
25059 .section .eh_frame,"aw",@progbits
25060 __FRAME_BEGIN__:
25061 .4byte .LECIE1-.LSCIE1
25062 .LSCIE1:
25063 .4byte 0x0
25064 .byte 0x1
25065 .ascii "z\0"
25066 .byte 0x1
25067 .byte 0x78
25068 .byte 0x1a
25069 .byte 0x0
25070 .byte 0x4
25071 .4byte 1
25072 .p2align 1
25073 .LECIE1:
25074 .LSFDE1:
25075 .4byte .LEFDE1-.LASFDE1
25076 .LASFDE1:
25077 .4byte .LASFDE1-__FRAME_BEGIN__
25078 .4byte .LFB1
25079 .4byte .LFE1-.LFB1
25080 .byte 0x4
25081 .4byte .LFE1-.LFB1
25082 .byte 0x4
25083 .4byte .L1-.LFB1
25084 .LEFDE1:' > conftest.s
25085 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25087 (eval $ac_try) 2>&5
25088 ac_status=$?
25089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25090 test $ac_status = 0; }; }
25091 then
25092 cat > conftest.lit <<EOF
25093 0000 10000000 00000000 017a0001 781a0004 .........z..x...
25094 0010 01000000 12000000 18000000 00000000 ................
25095 0020 08000000 04080000 0044 .........D
25096 EOF
25097 cat > conftest.big <<EOF
25098 0000 00000010 00000000 017a0001 781a0004 .........z..x...
25099 0010 00000001 00000012 00000018 00000000 ................
25100 0020 00000008 04000000 0844 .........D
25101 EOF
25102 # If the assembler didn't choke, and we can objdump,
25103 # and we got the correct data, then succeed.
25104 # The text in the here-document typically retains its unix-style line
25105 # endings, while the output of objdump will use host line endings.
25106 # Therefore, use diff -b for the comparisons.
25107 if test x$gcc_cv_objdump != x \
25108 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
25109 | tail -3 > conftest.got \
25110 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
25111 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
25112 then
25113 gcc_cv_as_eh_frame=yes
25114 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
25115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25116 (eval $ac_try) 2>&5
25117 ac_status=$?
25118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25119 test $ac_status = 0; }; }; then
25120 gcc_cv_as_eh_frame=buggy
25121 else
25122 # Uh oh, what do we do now?
25123 gcc_cv_as_eh_frame=no
25124 fi
25125 else
25126 echo "configure: failed program was" >&5
25127 cat conftest.s >&5
25128 fi
25129 rm -f conftest.o conftest.s
25130 fi
25131 fi
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
25133 $as_echo "$gcc_cv_as_eh_frame" >&6; }
25134
25135
25136
25137 if test $gcc_cv_as_eh_frame = buggy; then
25138
25139 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
25140
25141 fi
25142
25143 # Test if the assembler supports the section flag 'e' or #exclude for
25144 # specifying an excluded section.
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25146 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25147 if ${gcc_cv_as_section_exclude_e+:} false; then :
25148 $as_echo_n "(cached) " >&6
25149 else
25150 gcc_cv_as_section_exclude_e=no
25151 if test $in_tree_gas = yes; then
25152 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25153 then gcc_cv_as_section_exclude_e=yes
25154 fi
25155 elif test x$gcc_cv_as != x; then
25156 $as_echo '.section foo1,"e"
25157 .byte 0,0,0,0' > conftest.s
25158 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25160 (eval $ac_try) 2>&5
25161 ac_status=$?
25162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25163 test $ac_status = 0; }; }
25164 then
25165 gcc_cv_as_section_exclude_e=yes
25166 else
25167 echo "configure: failed program was" >&5
25168 cat conftest.s >&5
25169 fi
25170 rm -f conftest.o conftest.s
25171 fi
25172 fi
25173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
25174 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
25175
25176
25177 if test $gcc_cv_as_section_exclude_e = no; then
25178 case "${target}" in
25179 # Solaris as uses #exclude instead.
25180 *-*-solaris2*)
25181 case "${target}" in
25182 sparc*-*-solaris2*)
25183 conftest_s='.section "foo1", #exclude'
25184 ;;
25185 i?86-*-solaris2* | x86_64-*-solaris2*)
25186 conftest_s='.section foo1, #exclude'
25187 ;;
25188 esac
25189 ;;
25190 esac
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25192 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25193 if ${gcc_cv_as_section_exclude_hash+:} false; then :
25194 $as_echo_n "(cached) " >&6
25195 else
25196 gcc_cv_as_section_exclude_hash=no
25197 if test x$gcc_cv_as != x; then
25198 $as_echo "$conftest_s
25199 .byte 0,0,0,0" > conftest.s
25200 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25202 (eval $ac_try) 2>&5
25203 ac_status=$?
25204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25205 test $ac_status = 0; }; }
25206 then
25207 gcc_cv_as_section_exclude_hash=yes
25208 else
25209 echo "configure: failed program was" >&5
25210 cat conftest.s >&5
25211 fi
25212 rm -f conftest.o conftest.s
25213 fi
25214 fi
25215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
25216 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
25217
25218
25219 fi
25220
25221 cat >>confdefs.h <<_ACEOF
25222 #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`
25223 _ACEOF
25224
25225
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25227 $as_echo_n "checking assembler for section merging support... " >&6; }
25228 if ${gcc_cv_as_shf_merge+:} false; then :
25229 $as_echo_n "(cached) " >&6
25230 else
25231 gcc_cv_as_shf_merge=no
25232 if test $in_tree_gas = yes; then
25233 if test $in_tree_gas_is_elf = yes \
25234 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25235 then gcc_cv_as_shf_merge=yes
25236 fi
25237 elif test x$gcc_cv_as != x; then
25238 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25239 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25241 (eval $ac_try) 2>&5
25242 ac_status=$?
25243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25244 test $ac_status = 0; }; }
25245 then
25246 gcc_cv_as_shf_merge=yes
25247 else
25248 echo "configure: failed program was" >&5
25249 cat conftest.s >&5
25250 fi
25251 rm -f conftest.o conftest.s
25252 fi
25253 fi
25254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25255 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25256
25257
25258 if test $gcc_cv_as_shf_merge = no; then
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25260 $as_echo_n "checking assembler for section merging support... " >&6; }
25261 if ${gcc_cv_as_shf_merge+:} false; then :
25262 $as_echo_n "(cached) " >&6
25263 else
25264 gcc_cv_as_shf_merge=no
25265 if test $in_tree_gas = yes; then
25266 if test $in_tree_gas_is_elf = yes \
25267 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25268 then gcc_cv_as_shf_merge=yes
25269 fi
25270 elif test x$gcc_cv_as != x; then
25271 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25272 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25274 (eval $ac_try) 2>&5
25275 ac_status=$?
25276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25277 test $ac_status = 0; }; }
25278 then
25279 gcc_cv_as_shf_merge=yes
25280 else
25281 echo "configure: failed program was" >&5
25282 cat conftest.s >&5
25283 fi
25284 rm -f conftest.o conftest.s
25285 fi
25286 fi
25287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25288 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25289
25290
25291 fi
25292
25293 cat >>confdefs.h <<_ACEOF
25294 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25295 _ACEOF
25296
25297
25298 gcc_cv_ld_aligned_shf_merge=yes
25299 case "$target" in
25300 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25301 # alignment > 1.
25302 sparc*-*-solaris2.11*)
25303 if test x"$gnu_ld" = xno \
25304 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25305 gcc_cv_ld_aligned_shf_merge=no
25306 fi
25307 ;;
25308 esac
25309
25310 cat >>confdefs.h <<_ACEOF
25311 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25312 _ACEOF
25313
25314
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
25316 $as_echo_n "checking assembler for stabs directive... " >&6; }
25317 if ${gcc_cv_as_stabs_directive+:} false; then :
25318 $as_echo_n "(cached) " >&6
25319 else
25320 gcc_cv_as_stabs_directive=no
25321 if test x$gcc_cv_as != x; then
25322 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
25323 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25325 (eval $ac_try) 2>&5
25326 ac_status=$?
25327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25328 test $ac_status = 0; }; }
25329 then
25330 gcc_cv_as_stabs_directive=yes
25331 else
25332 echo "configure: failed program was" >&5
25333 cat conftest.s >&5
25334 fi
25335 rm -f conftest.o conftest.s
25336 fi
25337 fi
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
25339 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
25340 if test $gcc_cv_as_stabs_directive = yes; then
25341
25342 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
25343
25344 fi
25345
25346
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25348 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25349 if ${gcc_cv_as_comdat_group+:} false; then :
25350 $as_echo_n "(cached) " >&6
25351 else
25352 gcc_cv_as_comdat_group=no
25353 if test $in_tree_gas = yes; then
25354 if test $in_tree_gas_is_elf = yes \
25355 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25356 then gcc_cv_as_comdat_group=yes
25357 fi
25358 elif test x$gcc_cv_as != x; then
25359 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25360 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25362 (eval $ac_try) 2>&5
25363 ac_status=$?
25364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25365 test $ac_status = 0; }; }
25366 then
25367 gcc_cv_as_comdat_group=yes
25368 else
25369 echo "configure: failed program was" >&5
25370 cat conftest.s >&5
25371 fi
25372 rm -f conftest.o conftest.s
25373 fi
25374 fi
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25376 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25377
25378
25379 if test $gcc_cv_as_comdat_group = yes; then
25380 gcc_cv_as_comdat_group_percent=no
25381 gcc_cv_as_comdat_group_group=no
25382 else
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25384 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25385 if ${gcc_cv_as_comdat_group_percent+:} false; then :
25386 $as_echo_n "(cached) " >&6
25387 else
25388 gcc_cv_as_comdat_group_percent=no
25389 if test $in_tree_gas = yes; then
25390 if test $in_tree_gas_is_elf = yes \
25391 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25392 then gcc_cv_as_comdat_group_percent=yes
25393 fi
25394 elif test x$gcc_cv_as != x; then
25395 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25396 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25398 (eval $ac_try) 2>&5
25399 ac_status=$?
25400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25401 test $ac_status = 0; }; }
25402 then
25403 gcc_cv_as_comdat_group_percent=yes
25404 else
25405 echo "configure: failed program was" >&5
25406 cat conftest.s >&5
25407 fi
25408 rm -f conftest.o conftest.s
25409 fi
25410 fi
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25412 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25413
25414
25415 if test $gcc_cv_as_comdat_group_percent = yes; then
25416 gcc_cv_as_comdat_group_group=no
25417 else
25418 case "${target}" in
25419 # Sun as uses a completely different syntax.
25420 *-*-solaris2*)
25421 case "${target}" in
25422 sparc*-*-solaris2*)
25423 conftest_s='
25424 .group foo,".text%foo",#comdat
25425 .section ".text%foo", #alloc,#execinstr,#progbits
25426 .globl foo
25427 foo:
25428 '
25429 ;;
25430 i?86-*-solaris2* | x86_64-*-solaris2*)
25431 conftest_s='
25432 .group foo,.text%foo,#comdat
25433 .section .text%foo, "ax", @progbits
25434 .globl foo
25435 foo:
25436 '
25437 ;;
25438 esac
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25440 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25441 if ${gcc_cv_as_comdat_group_group+:} false; then :
25442 $as_echo_n "(cached) " >&6
25443 else
25444 gcc_cv_as_comdat_group_group=no
25445 if test x$gcc_cv_as != x; then
25446 $as_echo "$conftest_s" > conftest.s
25447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25449 (eval $ac_try) 2>&5
25450 ac_status=$?
25451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25452 test $ac_status = 0; }; }
25453 then
25454 gcc_cv_as_comdat_group_group=yes
25455 else
25456 echo "configure: failed program was" >&5
25457 cat conftest.s >&5
25458 fi
25459 rm -f conftest.o conftest.s
25460 fi
25461 fi
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25463 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25464
25465
25466 ;;
25467 esac
25468 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25469 gcc_cv_as_comdat_group_group=no
25470 fi
25471 fi
25472 fi
25473 if test x"$ld_is_gold" = xyes; then
25474 comdat_group=yes
25475 elif test $in_tree_ld = yes ; then
25476 comdat_group=no
25477 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 \
25478 && test $in_tree_ld_is_elf = yes; then
25479 comdat_group=yes
25480 fi
25481 elif echo "$ld_ver" | grep GNU > /dev/null; then
25482 comdat_group=yes
25483 if test 0"$ld_date" -lt 20050308; then
25484 if test -n "$ld_date"; then
25485 # If there was date string, but was earlier than 2005-03-08, fail
25486 comdat_group=no
25487 elif test "$ld_vers_major" -lt 2; then
25488 comdat_group=no
25489 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25490 comdat_group=no
25491 fi
25492 fi
25493 else
25494 case "${target}" in
25495 *-*-solaris2.1[1-9]*)
25496 comdat_group=no
25497 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25498 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25499 # version 1.688.
25500 #
25501 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25502 # least ld version 1.2267.
25503 if test "$ld_vers_major" -gt 1; then
25504 comdat_group=yes
25505 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25506 comdat_group=yes
25507 elif test "$ld_vers_minor" -ge 2267; then
25508 comdat_group=yes
25509 fi
25510 ;;
25511 *)
25512 # Assume linkers other than GNU ld don't support COMDAT group.
25513 comdat_group=no
25514 ;;
25515 esac
25516 fi
25517 # Allow overriding the automatic COMDAT group tests above.
25518 # Check whether --enable-comdat was given.
25519 if test "${enable_comdat+set}" = set; then :
25520 enableval=$enable_comdat; comdat_group="$enable_comdat"
25521 fi
25522
25523 if test $comdat_group = no; then
25524 gcc_cv_as_comdat_group=no
25525 gcc_cv_as_comdat_group_percent=no
25526 gcc_cv_as_comdat_group_group=no
25527 fi
25528
25529 cat >>confdefs.h <<_ACEOF
25530 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25531 || test $gcc_cv_as_comdat_group_percent = yes \
25532 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25533 _ACEOF
25534
25535
25536 # Restrict this test to Solaris/x86: other targets define this statically.
25537 case "${target}" in
25538 i?86-*-solaris2* | x86_64-*-solaris2*)
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25540 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25541 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25542 hidden_linkonce=yes
25543 else
25544 case "${target}" in
25545 # Full support for hidden thunks in linkonce sections only appeared in
25546 # Solaris 11/OpenSolaris.
25547 *-*-solaris2.1[1-9]*)
25548 hidden_linkonce=yes
25549 ;;
25550 *)
25551 hidden_linkonce=no
25552 ;;
25553 esac
25554 fi
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25556 $as_echo "$hidden_linkonce" >&6; }
25557
25558 cat >>confdefs.h <<_ACEOF
25559 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25560 _ACEOF
25561
25562 ;;
25563 esac
25564
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25566 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25567 if ${gcc_cv_as_is_stmt+:} false; then :
25568 $as_echo_n "(cached) " >&6
25569 else
25570 gcc_cv_as_is_stmt=no
25571 if test $in_tree_gas = yes; then
25572 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
25573 then gcc_cv_as_is_stmt=yes
25574 fi
25575 elif test x$gcc_cv_as != x; then
25576 $as_echo ' .text
25577 .file 1 "conf.c"
25578 .loc 1 1 0 is_stmt 1' > conftest.s
25579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25581 (eval $ac_try) 2>&5
25582 ac_status=$?
25583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25584 test $ac_status = 0; }; }
25585 then
25586 gcc_cv_as_is_stmt=yes
25587 else
25588 echo "configure: failed program was" >&5
25589 cat conftest.s >&5
25590 fi
25591 rm -f conftest.o conftest.s
25592 fi
25593 fi
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25595 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25596 if test $gcc_cv_as_is_stmt = yes; then
25597
25598 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25599
25600 fi
25601
25602
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25604 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25605 if ${gcc_cv_as_discriminator+:} false; then :
25606 $as_echo_n "(cached) " >&6
25607 else
25608 gcc_cv_as_discriminator=no
25609 if test $in_tree_gas = yes; then
25610 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
25611 then gcc_cv_as_discriminator=yes
25612 fi
25613 elif test x$gcc_cv_as != x; then
25614 $as_echo ' .text
25615 .file 1 "conf.c"
25616 .loc 1 1 0 discriminator 1' > conftest.s
25617 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25619 (eval $ac_try) 2>&5
25620 ac_status=$?
25621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25622 test $ac_status = 0; }; }
25623 then
25624 gcc_cv_as_discriminator=yes
25625 else
25626 echo "configure: failed program was" >&5
25627 cat conftest.s >&5
25628 fi
25629 rm -f conftest.o conftest.s
25630 fi
25631 fi
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25633 $as_echo "$gcc_cv_as_discriminator" >&6; }
25634 if test $gcc_cv_as_discriminator = yes; then
25635
25636 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25637
25638 fi
25639
25640
25641 # Catch the newlib flag of the same name so we can gate GCC features on it.
25642 # Check whether --enable-newlib-nano-formatted-io was given.
25643 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25644 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25645 yes|no)
25646 ;;
25647 *)
25648 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25649 ;;
25650 esac
25651 fi
25652
25653
25654 # Thread-local storage - the check is heavily parameterized.
25655 conftest_s=
25656 tls_first_major=
25657 tls_first_minor=
25658 tls_as_opt=
25659 case "$target" in
25660 alpha*-*-*)
25661 conftest_s='
25662 .section ".tdata","awT",@progbits
25663 foo: .long 25
25664 .text
25665 ldq $27,__tls_get_addr($29) !literal!1
25666 lda $16,foo($29) !tlsgd!1
25667 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25668 ldq $27,__tls_get_addr($29) !literal!2
25669 lda $16,foo($29) !tlsldm!2
25670 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25671 ldq $1,foo($29) !gotdtprel
25672 ldah $2,foo($29) !dtprelhi
25673 lda $3,foo($2) !dtprello
25674 lda $4,foo($29) !dtprel
25675 ldq $1,foo($29) !gottprel
25676 ldah $2,foo($29) !tprelhi
25677 lda $3,foo($2) !tprello
25678 lda $4,foo($29) !tprel'
25679 tls_first_major=2
25680 tls_first_minor=13
25681 tls_as_opt=--fatal-warnings
25682 ;;
25683 arc*-*-*)
25684 conftest_s='
25685 add_s r0,r0, @foo@tpoff'
25686 tls_first_major=2
25687 tls_first_minor=23
25688 ;;
25689 cris-*-*|crisv32-*-*)
25690 conftest_s='
25691 .section ".tdata","awT",@progbits
25692 x: .long 25
25693 .text
25694 move.d x:IE,$r10
25695 nop'
25696 tls_first_major=2
25697 tls_first_minor=20
25698 tls_as_opt=--fatal-warnings
25699 ;;
25700 frv*-*-*)
25701 conftest_s='
25702 .section ".tdata","awT",@progbits
25703 x: .long 25
25704 .text
25705 call #gettlsoff(x)'
25706 tls_first_major=2
25707 tls_first_minor=14
25708 ;;
25709 hppa*-*-linux*)
25710 conftest_s='
25711 t1: .reg %r20
25712 t2: .reg %r21
25713 gp: .reg %r19
25714 .section ".tdata","awT",@progbits
25715 foo: .long 25
25716 .text
25717 .align 4
25718 addil LT%foo-$tls_gdidx$,gp
25719 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25720 b __tls_get_addr
25721 nop
25722 addil LT%foo-$tls_ldidx$,gp
25723 b __tls_get_addr
25724 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25725 addil LR%foo-$tls_dtpoff$,%ret0
25726 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25727 mfctl %cr27,%t1
25728 addil LT%foo-$tls_ieoff$,gp
25729 ldw RT%foo-$tls_ieoff$(%r1),%t2
25730 add %t1,%t2,%t3
25731 mfctl %cr27,%t1
25732 addil LR%foo-$tls_leoff$,%t1
25733 ldo RR%foo-$tls_leoff$(%r1),%t2'
25734 tls_first_major=2
25735 tls_first_minor=15
25736 tls_as_opt=--fatal-warnings
25737 ;;
25738 arm*-*-*)
25739 conftest_s='
25740 .section ".tdata","awT",%progbits
25741 foo: .long 25
25742 .text
25743 .word foo(gottpoff)
25744 .word foo(tpoff)
25745 .word foo(tlsgd)
25746 .word foo(tlsldm)
25747 .word foo(tlsldo)'
25748 tls_first_major=2
25749 tls_first_minor=17
25750 ;;
25751 i[34567]86-*-* | x86_64-*-*)
25752 case "$target" in
25753 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25754 on_solaris=yes
25755 ;;
25756 *)
25757 on_solaris=no
25758 ;;
25759 esac
25760 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25761 conftest_s='
25762 .section .tdata,"awt",@progbits'
25763 tls_first_major=0
25764 tls_first_minor=0
25765 tls_section_flag=t
25766
25767 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25768
25769 else
25770 conftest_s='
25771 .section ".tdata","awT",@progbits'
25772 tls_first_major=2
25773 tls_first_minor=14
25774 tls_section_flag=T
25775 tls_as_opt="--fatal-warnings"
25776 fi
25777 case "$target" in
25778 i[34567]86-*-*)
25779 if test x$on_solaris = xyes; then
25780 case $gas_flag in
25781 yes) tls_as_opt="$tls_as_opt --32" ;;
25782 esac
25783 fi
25784 conftest_s="$conftest_s
25785 foo: .long 25
25786 .text
25787 movl %gs:0, %eax
25788 leal foo@tlsgd(,%ebx,1), %eax
25789 leal foo@tlsldm(%ebx), %eax
25790 leal foo@dtpoff(%eax), %edx
25791 movl foo@gottpoff(%ebx), %eax
25792 subl foo@gottpoff(%ebx), %eax
25793 addl foo@gotntpoff(%ebx), %eax
25794 movl foo@indntpoff, %eax
25795 movl \$foo@tpoff, %eax
25796 subl \$foo@tpoff, %eax
25797 leal foo@ntpoff(%ecx), %eax"
25798 ;;
25799 x86_64-*-*)
25800 if test x$on_solaris = xyes; then
25801 case $gas_flag in
25802 yes) tls_as_opt="$tls_as_opt --64" ;;
25803 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25804 esac
25805 fi
25806 conftest_s="$conftest_s
25807 foo: .long 25
25808 .text
25809 movq %fs:0, %rax
25810 leaq foo@tlsgd(%rip), %rdi
25811 leaq foo@tlsld(%rip), %rdi
25812 leaq foo@dtpoff(%rax), %rdx
25813 movq foo@gottpoff(%rip), %rax
25814 movq \$foo@tpoff, %rax"
25815 ;;
25816 esac
25817 ;;
25818 ia64-*-*)
25819 conftest_s='
25820 .section ".tdata","awT",@progbits
25821 foo: data8 25
25822 .text
25823 addl r16 = @ltoff(@dtpmod(foo#)), gp
25824 addl r17 = @ltoff(@dtprel(foo#)), gp
25825 addl r18 = @ltoff(@tprel(foo#)), gp
25826 addl r19 = @dtprel(foo#), gp
25827 adds r21 = @dtprel(foo#), r13
25828 movl r23 = @dtprel(foo#)
25829 addl r20 = @tprel(foo#), gp
25830 adds r22 = @tprel(foo#), r13
25831 movl r24 = @tprel(foo#)'
25832 tls_first_major=2
25833 tls_first_minor=13
25834 tls_as_opt=--fatal-warnings
25835 ;;
25836 microblaze*-*-*)
25837 conftest_s='
25838 .section .tdata,"awT",@progbits
25839 x:
25840 .word 2
25841 .text
25842 addik r5,r20,x@TLSGD
25843 addik r5,r20,x@TLSLDM'
25844 tls_first_major=2
25845 tls_first_minor=20
25846 tls_as_opt='--fatal-warnings'
25847 ;;
25848 mips*-*-*)
25849 conftest_s='
25850 .section .tdata,"awT",@progbits
25851 x:
25852 .word 2
25853 .text
25854 addiu $4, $28, %tlsgd(x)
25855 addiu $4, $28, %tlsldm(x)
25856 lui $4, %dtprel_hi(x)
25857 addiu $4, $4, %dtprel_lo(x)
25858 lw $4, %gottprel(x)($28)
25859 lui $4, %tprel_hi(x)
25860 addiu $4, $4, %tprel_lo(x)'
25861 tls_first_major=2
25862 tls_first_minor=16
25863 tls_as_opt='-32 --fatal-warnings'
25864 ;;
25865 m68k-*-*)
25866 conftest_s='
25867 .section .tdata,"awT",@progbits
25868 x:
25869 .word 2
25870 .text
25871 foo:
25872 move.l x@TLSGD(%a5),%a0
25873 move.l x@TLSLDM(%a5),%a0
25874 move.l x@TLSLDO(%a5),%a0
25875 move.l x@TLSIE(%a5),%a0
25876 move.l x@TLSLE(%a5),%a0'
25877 tls_first_major=2
25878 tls_first_minor=19
25879 tls_as_opt='--fatal-warnings'
25880 ;;
25881 nios2-*-*)
25882 conftest_s='
25883 .section ".tdata","awT",@progbits'
25884 tls_first_major=2
25885 tls_first_minor=23
25886 tls_as_opt="--fatal-warnings"
25887 ;;
25888 aarch64*-*-*)
25889 conftest_s='
25890 .section ".tdata","awT",%progbits
25891 foo: .long 25
25892 .text
25893 adrp x0, :tlsgd:x
25894 add x0, x0, #:tlsgd_lo12:x
25895 bl __tls_get_addr
25896 nop'
25897 tls_first_major=2
25898 tls_first_minor=20
25899 tls_as_opt='--fatal-warnings'
25900 ;;
25901 or1k*-*-*)
25902 conftest_s='
25903 .section ".tdata","awT",@progbits
25904 foo: .long 25
25905 .text
25906 l.movhi r3, tpoffha(foo)
25907 l.add r3, r3, r10
25908 l.lwz r4, tpofflo(foo)(r3)'
25909 tls_first_major=2
25910 tls_first_minor=30
25911 tls_as_opt=--fatal-warnings
25912 ;;
25913 powerpc-ibm-aix*)
25914 conftest_s='
25915 .extern __get_tpointer
25916 .toc
25917 LC..1:
25918 .tc a[TC],a[TL]@le
25919 .csect .text[PR]
25920 .tlstest:
25921 lwz 9,LC..1(2)
25922 bla __get_tpointer
25923 lwzx 3,9,3
25924 .globl a
25925 .csect a[TL],4
25926 a:
25927 .space 4'
25928 tls_first_major=0
25929 tls_first_minor=0
25930 ;;
25931 powerpc64*-*-*)
25932 conftest_s='
25933 .section ".tdata","awT",@progbits
25934 .align 3
25935 ld0: .space 8
25936 ld1: .space 8
25937 x1: .space 8
25938 x2: .space 8
25939 x3: .space 8
25940 .text
25941 addi 3,2,ld0@got@tlsgd
25942 bl .__tls_get_addr
25943 nop
25944 addi 3,2,ld1@toc
25945 bl .__tls_get_addr
25946 nop
25947 addi 3,2,x1@got@tlsld
25948 bl .__tls_get_addr
25949 nop
25950 addi 9,3,x1@dtprel
25951 bl .__tls_get_addr
25952 nop
25953 addis 9,3,x2@dtprel@ha
25954 addi 9,9,x2@dtprel@l
25955 bl .__tls_get_addr
25956 nop
25957 ld 9,x3@got@dtprel(2)
25958 add 9,9,3
25959 bl .__tls_get_addr
25960 nop'
25961 tls_first_major=2
25962 tls_first_minor=14
25963 tls_as_opt="-a64 --fatal-warnings"
25964 ;;
25965 powerpc*-*-*)
25966 conftest_s='
25967 .section ".tdata","awT",@progbits
25968 .align 2
25969 ld0: .space 4
25970 ld1: .space 4
25971 x1: .space 4
25972 x2: .space 4
25973 x3: .space 4
25974 .text
25975 addi 3,31,ld0@got@tlsgd
25976 bl __tls_get_addr
25977 addi 3,31,x1@got@tlsld
25978 bl __tls_get_addr
25979 addi 9,3,x1@dtprel
25980 addis 9,3,x2@dtprel@ha
25981 addi 9,9,x2@dtprel@l
25982 lwz 9,x3@got@tprel(31)
25983 add 9,9,x@tls
25984 addi 9,2,x1@tprel
25985 addis 9,2,x2@tprel@ha
25986 addi 9,9,x2@tprel@l'
25987 tls_first_major=2
25988 tls_first_minor=14
25989 tls_as_opt="-a32 --fatal-warnings"
25990 ;;
25991 riscv*-*-*)
25992 conftest_s='
25993 .section .tdata,"awT",@progbits
25994 x: .word 2
25995 .text
25996 la.tls.gd a0,x
25997 call __tls_get_addr'
25998 tls_first_major=2
25999 tls_first_minor=21
26000 tls_as_opt='--fatal-warnings'
26001 ;;
26002 s390-*-*)
26003 conftest_s='
26004 .section ".tdata","awT",@progbits
26005 foo: .long 25
26006 .text
26007 .long foo@TLSGD
26008 .long foo@TLSLDM
26009 .long foo@DTPOFF
26010 .long foo@NTPOFF
26011 .long foo@GOTNTPOFF
26012 .long foo@INDNTPOFF
26013 l %r1,foo@GOTNTPOFF(%r12)
26014 l %r1,0(%r1):tls_load:foo
26015 bas %r14,0(%r1,%r13):tls_gdcall:foo
26016 bas %r14,0(%r1,%r13):tls_ldcall:foo'
26017 tls_first_major=2
26018 tls_first_minor=14
26019 tls_as_opt="-m31 --fatal-warnings"
26020 ;;
26021 s390x-*-*)
26022 conftest_s='
26023 .section ".tdata","awT",@progbits
26024 foo: .long 25
26025 .text
26026 .quad foo@TLSGD
26027 .quad foo@TLSLDM
26028 .quad foo@DTPOFF
26029 .quad foo@NTPOFF
26030 .quad foo@GOTNTPOFF
26031 lg %r1,foo@GOTNTPOFF(%r12)
26032 larl %r1,foo@INDNTPOFF
26033 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
26034 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
26035 tls_first_major=2
26036 tls_first_minor=14
26037 tls_as_opt="-m64 -Aesame --fatal-warnings"
26038 ;;
26039 sh-*-* | sh[123456789lbe]*-*-*)
26040 conftest_s='
26041 .section ".tdata","awT",@progbits
26042 foo: .long 25
26043 .text
26044 .long foo@TLSGD
26045 .long foo@TLSLDM
26046 .long foo@DTPOFF
26047 .long foo@GOTTPOFF
26048 .long foo@TPOFF'
26049 tls_first_major=2
26050 tls_first_minor=13
26051 tls_as_opt=--fatal-warnings
26052 ;;
26053 sparc*-*-*)
26054 case "$target" in
26055 sparc*-sun-solaris2.*)
26056 on_solaris=yes
26057 ;;
26058 *)
26059 on_solaris=no
26060 ;;
26061 esac
26062 if test x$on_solaris = xyes && test x$gas_flag = xno; then
26063 conftest_s='
26064 .section ".tdata",#alloc,#write,#tls'
26065 tls_first_major=0
26066 tls_first_minor=0
26067 else
26068 conftest_s='
26069 .section ".tdata","awT",@progbits'
26070 tls_first_major=2
26071 tls_first_minor=14
26072 tls_as_opt="-32 --fatal-warnings"
26073 fi
26074 conftest_s="$conftest_s
26075 foo: .long 25
26076 .text
26077 sethi %tgd_hi22(foo), %o0
26078 add %o0, %tgd_lo10(foo), %o1
26079 add %l7, %o1, %o0, %tgd_add(foo)
26080 call __tls_get_addr, %tgd_call(foo)
26081 sethi %tldm_hi22(foo), %l1
26082 add %l1, %tldm_lo10(foo), %l2
26083 add %l7, %l2, %o0, %tldm_add(foo)
26084 call __tls_get_addr, %tldm_call(foo)
26085 sethi %tldo_hix22(foo), %l3
26086 xor %l3, %tldo_lox10(foo), %l4
26087 add %o0, %l4, %l5, %tldo_add(foo)
26088 sethi %tie_hi22(foo), %o3
26089 add %o3, %tie_lo10(foo), %o3
26090 ld [%l7 + %o3], %o2, %tie_ld(foo)
26091 add %g7, %o2, %o4, %tie_add(foo)
26092 sethi %tle_hix22(foo), %l1
26093 xor %l1, %tle_lox10(foo), %o5
26094 ld [%g7 + %o5], %o1"
26095 ;;
26096 tilepro*-*-*)
26097 conftest_s='
26098 .section ".tdata","awT",@progbits
26099 foo: .long 25
26100 .text
26101 addli r0, zero, tls_gd(foo)
26102 auli r0, zero, tls_gd_ha16(foo)
26103 addli r0, r0, tls_gd_lo16(foo)
26104 jal __tls_get_addr
26105 addli r0, zero, tls_ie(foo)
26106 auli r0, r0, tls_ie_ha16(foo)
26107 addli r0, r0, tls_ie_lo16(foo)'
26108 tls_first_major=2
26109 tls_first_minor=22
26110 tls_as_opt="--fatal-warnings"
26111 ;;
26112 tilegx*-*-*)
26113 conftest_s='
26114 .section ".tdata","awT",@progbits
26115 foo: .long 25
26116 .text
26117 shl16insli r0, zero, hw0_last_tls_gd(foo)
26118 shl16insli r0, zero, hw1_last_tls_gd(foo)
26119 shl16insli r0, r0, hw0_tls_gd(foo)
26120 jal __tls_get_addr
26121 shl16insli r0, zero, hw1_last_tls_ie(foo)
26122 shl16insli r0, r0, hw0_tls_ie(foo)'
26123 tls_first_major=2
26124 tls_first_minor=22
26125 tls_as_opt="--fatal-warnings"
26126 ;;
26127 xtensa*-*-*)
26128 conftest_s='
26129 .section ".tdata","awT",@progbits
26130 foo: .long 25
26131 .text
26132 movi a8, foo@TLSFUNC
26133 movi a10, foo@TLSARG
26134 callx8.tls a8, foo@TLSCALL'
26135 tls_first_major=2
26136 tls_first_minor=19
26137 ;;
26138 esac
26139 set_have_as_tls=no
26140 if test "x$enable_tls" = xno ; then
26141 : # TLS explicitly disabled.
26142 elif test "x$enable_tls" = xyes ; then
26143 set_have_as_tls=yes # TLS explicitly enabled.
26144 elif test -z "$tls_first_major"; then
26145 : # If we don't have a check, assume no support.
26146 else
26147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
26148 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
26149 if ${gcc_cv_as_tls+:} false; then :
26150 $as_echo_n "(cached) " >&6
26151 else
26152 gcc_cv_as_tls=no
26153 if test $in_tree_gas = yes; then
26154 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
26155 then gcc_cv_as_tls=yes
26156 fi
26157 elif test x$gcc_cv_as != x; then
26158 $as_echo "$conftest_s" > conftest.s
26159 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
26160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26161 (eval $ac_try) 2>&5
26162 ac_status=$?
26163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26164 test $ac_status = 0; }; }
26165 then
26166 gcc_cv_as_tls=yes
26167 else
26168 echo "configure: failed program was" >&5
26169 cat conftest.s >&5
26170 fi
26171 rm -f conftest.o conftest.s
26172 fi
26173 fi
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
26175 $as_echo "$gcc_cv_as_tls" >&6; }
26176 if test $gcc_cv_as_tls = yes; then
26177 set_have_as_tls=yes
26178 fi
26179
26180 fi
26181 if test $set_have_as_tls = yes ; then
26182
26183 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
26184
26185 fi
26186
26187 # Target-specific assembler checks.
26188
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
26190 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
26191 gcc_cv_ld_static_dynamic=no
26192 gcc_cv_ld_static_option='-Bstatic'
26193 gcc_cv_ld_dynamic_option='-Bdynamic'
26194 if test $in_tree_ld = yes ; then
26195 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
26196 gcc_cv_ld_static_dynamic=yes
26197 fi
26198 elif test x$gcc_cv_ld != x; then
26199 # Check if linker supports -Bstatic/-Bdynamic option
26200 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
26201 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
26202 gcc_cv_ld_static_dynamic=yes
26203 else
26204 case "$target" in
26205 # AIX ld uses -b flags
26206 *-*-aix4.[23]* | *-*-aix[5-9]*)
26207 gcc_cv_ld_static_dynamic=yes
26208 gcc_cv_ld_static_option="-bstatic"
26209 gcc_cv_ld_dynamic_option="-bdynamic"
26210 ;;
26211 # HP-UX ld uses -a flags to select between shared and archive.
26212 *-*-hpux*)
26213 if test x"$gnu_ld" = xno; then
26214 gcc_cv_ld_static_dynamic=yes
26215 gcc_cv_ld_static_option="-aarchive_shared"
26216 gcc_cv_ld_dynamic_option="-adefault"
26217 fi
26218 ;;
26219 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
26220 *-*-solaris2*)
26221 gcc_cv_ld_static_dynamic=yes
26222 ;;
26223 esac
26224 fi
26225 fi
26226 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
26227
26228 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
26229
26230
26231 cat >>confdefs.h <<_ACEOF
26232 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
26233 _ACEOF
26234
26235
26236 cat >>confdefs.h <<_ACEOF
26237 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
26238 _ACEOF
26239
26240 fi
26241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
26242 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
26243
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
26245 $as_echo_n "checking linker --version-script option... " >&6; }
26246 gcc_cv_ld_version_script=no
26247 ld_version_script_option=''
26248 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
26249 gcc_cv_ld_version_script=yes
26250 ld_version_script_option='--version-script'
26251 elif test x$gcc_cv_ld != x; then
26252 case "$target" in
26253 # Solaris 2 ld always supports -M. It also supports a subset of
26254 # --version-script since Solaris 11.4, but requires
26255 # -z gnu-version-script-compat to activate.
26256 *-*-solaris2*)
26257 gcc_cv_ld_version_script=yes
26258 ld_version_script_option='-M'
26259 ;;
26260 esac
26261 fi
26262 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
26264 $as_echo "$gcc_cv_ld_version_script" >&6; }
26265
26266
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
26268 $as_echo_n "checking linker soname option... " >&6; }
26269 gcc_cv_ld_soname=no
26270 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
26271 gcc_cv_ld_soname=yes
26272 ld_soname_option='-soname'
26273 elif test x$gcc_cv_ld != x; then
26274 case "$target" in
26275 *-*-darwin*)
26276 gcc_cv_ld_soname=yes
26277 ld_soname_option='-install_name'
26278 ;;
26279 # Solaris 2 ld always supports -h. It also supports --soname for GNU
26280 # ld compatiblity since some Solaris 10 update.
26281 *-*-solaris2*)
26282 gcc_cv_ld_soname=yes
26283 ld_soname_option='-h'
26284 ;;
26285 esac
26286 fi
26287 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
26289 $as_echo "$gcc_cv_ld_soname" >&6; }
26290
26291
26292 if test x"$demangler_in_ld" = xyes; then
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
26294 $as_echo_n "checking linker --demangle support... " >&6; }
26295 gcc_cv_ld_demangle=no
26296 if test $in_tree_ld = yes; then
26297 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 \
26298 gcc_cv_ld_demangle=yes
26299 fi
26300 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
26301 # Check if the GNU linker supports --demangle option
26302 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
26303 gcc_cv_ld_demangle=yes
26304 fi
26305 fi
26306 if test x"$gcc_cv_ld_demangle" = xyes; then
26307
26308 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26309
26310 fi
26311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26312 $as_echo "$gcc_cv_ld_demangle" >&6; }
26313 fi
26314
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26316 $as_echo_n "checking linker plugin support... " >&6; }
26317 gcc_cv_lto_plugin=0
26318 if test -f liblto_plugin.la; then
26319 save_ld_ver="$ld_ver"
26320 save_ld_vers_major="$ld_vers_major"
26321 save_ld_vers_minor="$ld_vers_minor"
26322 save_ld_is_gold="$ld_is_gold"
26323
26324 ld_is_gold=no
26325
26326 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
26327 ld_ver="GNU ld"
26328 # FIXME: ld_is_gold?
26329 ld_vers_major="$gcc_cv_gld_major_version"
26330 ld_vers_minor="$gcc_cv_gld_minor_version"
26331 else
26332 # Determine plugin linker version.
26333 # FIXME: Partial duplicate from above, generalize.
26334 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26335 if echo "$ld_ver" | grep GNU > /dev/null; then
26336 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
26337 ld_is_gold=yes
26338 ld_vers=`echo $ld_ver | sed -n \
26339 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26340 else
26341 ld_vers=`echo $ld_ver | sed -n \
26342 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26343 fi
26344 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26345 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26346 fi
26347 fi
26348
26349 # Determine plugin support.
26350 if echo "$ld_ver" | grep GNU > /dev/null; then
26351 # Require GNU ld or gold 2.21+ for plugin support by default.
26352 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26353 gcc_cv_lto_plugin=2
26354 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26355 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26356 gcc_cv_lto_plugin=1
26357 fi
26358 fi
26359
26360 ld_ver="$save_ld_ver"
26361 ld_vers_major="$save_ld_vers_major"
26362 ld_vers_minor="$save_ld_vers_minor"
26363 ld_is_gold="$save_ld_is_gold"
26364 fi
26365
26366 cat >>confdefs.h <<_ACEOF
26367 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26368 _ACEOF
26369
26370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26371 $as_echo "$gcc_cv_lto_plugin" >&6; }
26372
26373 # Target OS-specific assembler checks.
26374
26375 case "$target_os" in
26376 darwin*)
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26378 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26379 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
26380 $as_echo_n "(cached) " >&6
26381 else
26382 gcc_cv_as_mmacosx_version_min=no
26383 if test x$gcc_cv_as != x; then
26384 $as_echo '.text' > conftest.s
26385 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26387 (eval $ac_try) 2>&5
26388 ac_status=$?
26389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26390 test $ac_status = 0; }; }
26391 then
26392 gcc_cv_as_mmacosx_version_min=yes
26393 else
26394 echo "configure: failed program was" >&5
26395 cat conftest.s >&5
26396 fi
26397 rm -f conftest.o conftest.s
26398 fi
26399 fi
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26401 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26402 if test $gcc_cv_as_mmacosx_version_min = yes; then
26403
26404 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26405
26406 fi
26407
26408 ;;
26409 esac
26410
26411 # Target CPU-specific assembler checks.
26412
26413 case "$target" in
26414 aarch64*-*-*)
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26416 $as_echo_n "checking assembler for -mabi option... " >&6; }
26417 if ${gcc_cv_as_aarch64_mabi+:} false; then :
26418 $as_echo_n "(cached) " >&6
26419 else
26420 gcc_cv_as_aarch64_mabi=no
26421 if test x$gcc_cv_as != x; then
26422 $as_echo '.text' > conftest.s
26423 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26425 (eval $ac_try) 2>&5
26426 ac_status=$?
26427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26428 test $ac_status = 0; }; }
26429 then
26430 gcc_cv_as_aarch64_mabi=yes
26431 else
26432 echo "configure: failed program was" >&5
26433 cat conftest.s >&5
26434 fi
26435 rm -f conftest.o conftest.s
26436 fi
26437 fi
26438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26439 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26440
26441
26442 if test x$gcc_cv_as_aarch64_mabi = xyes; then
26443
26444 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26445
26446 else
26447 if test x$with_abi = xilp32; then
26448 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26449 Upgrade the Assembler." "$LINENO" 5
26450 fi
26451 if test x"$with_multilib_list" = xdefault; then
26452 TM_MULTILIB_CONFIG=lp64
26453 else
26454 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
26455 for aarch64_multilib in ${aarch64_multilibs}; do
26456 case ${aarch64_multilib} in
26457 ilp32)
26458 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26459 Upgrade the Assembler." "$LINENO" 5
26460 ;;
26461 *)
26462 ;;
26463 esac
26464 done
26465 fi
26466 fi
26467 # Check if we have binutils support for relocations types needed by -fpic
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26469 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26470 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
26471 $as_echo_n "(cached) " >&6
26472 else
26473 gcc_cv_as_aarch64_picreloc=no
26474 if test x$gcc_cv_as != x; then
26475 $as_echo '
26476 .text
26477 ldr x0, [x2, #:gotpage_lo15:globalsym]
26478 ' > conftest.s
26479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26481 (eval $ac_try) 2>&5
26482 ac_status=$?
26483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26484 test $ac_status = 0; }; }
26485 then
26486 gcc_cv_as_aarch64_picreloc=yes
26487 else
26488 echo "configure: failed program was" >&5
26489 cat conftest.s >&5
26490 fi
26491 rm -f conftest.o conftest.s
26492 fi
26493 fi
26494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26495 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26496 if test $gcc_cv_as_aarch64_picreloc = yes; then
26497
26498 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26499
26500 fi
26501
26502 # Enable Branch Target Identification Mechanism and Return Address
26503 # Signing by default.
26504 # Check whether --enable-standard-branch-protection was given.
26505 if test "${enable_standard_branch_protection+set}" = set; then :
26506 enableval=$enable_standard_branch_protection;
26507 case $enableval in
26508 yes)
26509 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26510 ;;
26511 no)
26512 ;;
26513 *)
26514 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
26515 Valid choices are 'yes' and 'no'." "$LINENO" 5
26516 ;;
26517 esac
26518
26519 fi
26520
26521 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26522 # Check whether --enable-fix-cortex-a53-835769 was given.
26523 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26524 enableval=$enable_fix_cortex_a53_835769;
26525 case $enableval in
26526 yes)
26527 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26528 ;;
26529 no)
26530 ;;
26531 *)
26532 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26533 Valid choices are 'yes' and 'no'." "$LINENO" 5
26534 ;;
26535
26536 esac
26537
26538 fi
26539
26540 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26541 # Check whether --enable-fix-cortex-a53-843419 was given.
26542 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26543 enableval=$enable_fix_cortex_a53_843419;
26544 case $enableval in
26545 yes)
26546 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26547 ;;
26548 no)
26549 ;;
26550 *)
26551 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26552 Valid choices are 'yes' and 'no'." "$LINENO" 5
26553 ;;
26554
26555 esac
26556
26557 fi
26558
26559 ;;
26560
26561 # All TARGET_ABI_OSF targets.
26562 alpha*-*-linux* | alpha*-*-*bsd*)
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26564 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26565 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26566 $as_echo_n "(cached) " >&6
26567 else
26568 gcc_cv_as_alpha_explicit_relocs=no
26569 if test $in_tree_gas = yes; then
26570 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
26571 then gcc_cv_as_alpha_explicit_relocs=yes
26572 fi
26573 elif test x$gcc_cv_as != x; then
26574 $as_echo ' .set nomacro
26575 .text
26576 extbl $3, $2, $3 !lituse_bytoff!1
26577 ldq $2, a($29) !literal!1
26578 ldq $4, b($29) !literal!2
26579 ldq_u $3, 0($2) !lituse_base!1
26580 ldq $27, f($29) !literal!5
26581 jsr $26, ($27), f !lituse_jsr!5
26582 ldah $29, 0($26) !gpdisp!3
26583 lda $0, c($29) !gprel
26584 ldah $1, d($29) !gprelhigh
26585 lda $1, d($1) !gprellow
26586 lda $29, 0($29) !gpdisp!3' > conftest.s
26587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26589 (eval $ac_try) 2>&5
26590 ac_status=$?
26591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26592 test $ac_status = 0; }; }
26593 then
26594 gcc_cv_as_alpha_explicit_relocs=yes
26595 else
26596 echo "configure: failed program was" >&5
26597 cat conftest.s >&5
26598 fi
26599 rm -f conftest.o conftest.s
26600 fi
26601 fi
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26603 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26604 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26605
26606 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26607
26608 fi
26609
26610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26611 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26612 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26613 $as_echo_n "(cached) " >&6
26614 else
26615 gcc_cv_as_alpha_jsrdirect_relocs=no
26616 if test $in_tree_gas = yes; then
26617 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
26618 then gcc_cv_as_alpha_jsrdirect_relocs=yes
26619 fi
26620 elif test x$gcc_cv_as != x; then
26621 $as_echo ' .set nomacro
26622 .text
26623 ldq $27, a($29) !literal!1
26624 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26627 (eval $ac_try) 2>&5
26628 ac_status=$?
26629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26630 test $ac_status = 0; }; }
26631 then
26632 gcc_cv_as_alpha_jsrdirect_relocs=yes
26633 else
26634 echo "configure: failed program was" >&5
26635 cat conftest.s >&5
26636 fi
26637 rm -f conftest.o conftest.s
26638 fi
26639 fi
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26641 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26642 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26643
26644 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26645
26646 fi
26647
26648 ;;
26649
26650 avr-*-*)
26651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26652 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26653 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26654 $as_echo_n "(cached) " >&6
26655 else
26656 gcc_cv_as_avr_mlink_relax=no
26657 if test x$gcc_cv_as != x; then
26658 $as_echo '.text' > conftest.s
26659 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26661 (eval $ac_try) 2>&5
26662 ac_status=$?
26663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26664 test $ac_status = 0; }; }
26665 then
26666 gcc_cv_as_avr_mlink_relax=yes
26667 else
26668 echo "configure: failed program was" >&5
26669 cat conftest.s >&5
26670 fi
26671 rm -f conftest.o conftest.s
26672 fi
26673 fi
26674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26675 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26676 if test $gcc_cv_as_avr_mlink_relax = yes; then
26677
26678 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26679
26680 fi
26681
26682
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26684 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26685 if ${gcc_cv_as_avr_mrmw+:} false; then :
26686 $as_echo_n "(cached) " >&6
26687 else
26688 gcc_cv_as_avr_mrmw=no
26689 if test x$gcc_cv_as != x; then
26690 $as_echo '.text' > conftest.s
26691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26693 (eval $ac_try) 2>&5
26694 ac_status=$?
26695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26696 test $ac_status = 0; }; }
26697 then
26698 gcc_cv_as_avr_mrmw=yes
26699 else
26700 echo "configure: failed program was" >&5
26701 cat conftest.s >&5
26702 fi
26703 rm -f conftest.o conftest.s
26704 fi
26705 fi
26706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26707 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26708 if test $gcc_cv_as_avr_mrmw = yes; then
26709
26710 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26711
26712 fi
26713
26714
26715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26716 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26717 if ${gcc_cv_as_avr_mgccisr+:} false; then :
26718 $as_echo_n "(cached) " >&6
26719 else
26720 gcc_cv_as_avr_mgccisr=no
26721 if test x$gcc_cv_as != x; then
26722 $as_echo '.text
26723 __gcc_isr 1
26724 __gcc_isr 2
26725 __gcc_isr 0,r24
26726 ' > conftest.s
26727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26729 (eval $ac_try) 2>&5
26730 ac_status=$?
26731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26732 test $ac_status = 0; }; }
26733 then
26734 gcc_cv_as_avr_mgccisr=yes
26735 else
26736 echo "configure: failed program was" >&5
26737 cat conftest.s >&5
26738 fi
26739 rm -f conftest.o conftest.s
26740 fi
26741 fi
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26743 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26744 if test $gcc_cv_as_avr_mgccisr = yes; then
26745
26746 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26747
26748 fi
26749
26750
26751 # Check how default linker description file implements .rodata for
26752 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26753 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26755 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26756 cat > conftest.s <<EOF
26757 .section .rodata,"a",@progbits
26758 .global xxvaryy
26759 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26760 xxvaryy:
26761 .word 1
26762 EOF
26763 rm -f conftest.nm
26764 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26766 (eval $ac_try) 2>&5
26767 ac_status=$?
26768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26769 test $ac_status = 0; }; }
26770 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26772 (eval $ac_try) 2>&5
26773 ac_status=$?
26774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26775 test $ac_status = 0; }; }
26776 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26778 (eval $ac_try) 2>&5
26779 ac_status=$?
26780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26781 test $ac_status = 0; }; }
26782 if test -s conftest.nm
26783 then
26784 if grep ' R xxvaryy' conftest.nm > /dev/null; then
26785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26786 $as_echo "yes" >&6; }
26787
26788 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26789
26790 else
26791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26792 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26793 echo "$as_me: nm output was" >&5
26794 cat conftest.nm >&5
26795 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26796 { $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
26797 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26798 fi
26799 else
26800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26801 $as_echo "test failed" >&6; }
26802 echo "$as_me: failed program was" >&5
26803 cat conftest.s >&5
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26805 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26806 fi
26807 rm -f conftest.s conftest.o conftest.elf conftest.nm
26808 ;;
26809
26810 cris-*-*)
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26812 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26813 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26814 $as_echo_n "(cached) " >&6
26815 else
26816 gcc_cv_as_cris_no_mul_bug=no
26817 if test $in_tree_gas = yes; then
26818 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26819 then gcc_cv_as_cris_no_mul_bug=yes
26820 fi
26821 elif test x$gcc_cv_as != x; then
26822 $as_echo '.text' > conftest.s
26823 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26825 (eval $ac_try) 2>&5
26826 ac_status=$?
26827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26828 test $ac_status = 0; }; }
26829 then
26830 gcc_cv_as_cris_no_mul_bug=yes
26831 else
26832 echo "configure: failed program was" >&5
26833 cat conftest.s >&5
26834 fi
26835 rm -f conftest.o conftest.s
26836 fi
26837 fi
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26839 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26840 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26841
26842 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26843
26844 fi
26845
26846 ;;
26847
26848 sparc*-*-*)
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26850 $as_echo_n "checking assembler for -relax option... " >&6; }
26851 if ${gcc_cv_as_sparc_relax+:} false; then :
26852 $as_echo_n "(cached) " >&6
26853 else
26854 gcc_cv_as_sparc_relax=no
26855 if test x$gcc_cv_as != x; then
26856 $as_echo '.text' > conftest.s
26857 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26859 (eval $ac_try) 2>&5
26860 ac_status=$?
26861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26862 test $ac_status = 0; }; }
26863 then
26864 gcc_cv_as_sparc_relax=yes
26865 else
26866 echo "configure: failed program was" >&5
26867 cat conftest.s >&5
26868 fi
26869 rm -f conftest.o conftest.s
26870 fi
26871 fi
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26873 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26874 if test $gcc_cv_as_sparc_relax = yes; then
26875
26876 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26877
26878 fi
26879
26880
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26882 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26883 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26884 $as_echo_n "(cached) " >&6
26885 else
26886 gcc_cv_as_sparc_gotdata_op=no
26887 if test x$gcc_cv_as != x; then
26888 $as_echo '.text
26889 .align 4
26890 foo:
26891 nop
26892 bar:
26893 sethi %gdop_hix22(foo), %g1
26894 xor %g1, %gdop_lox10(foo), %g1
26895 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26896 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26898 (eval $ac_try) 2>&5
26899 ac_status=$?
26900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26901 test $ac_status = 0; }; }
26902 then
26903 if test x$gcc_cv_ld != x \
26904 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26905 if test x$gcc_cv_objdump != x; then
26906 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26907 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26908 gcc_cv_as_sparc_gotdata_op=no
26909 else
26910 gcc_cv_as_sparc_gotdata_op=yes
26911 fi
26912 fi
26913 fi
26914 rm -f conftest
26915 else
26916 echo "configure: failed program was" >&5
26917 cat conftest.s >&5
26918 fi
26919 rm -f conftest.o conftest.s
26920 fi
26921 fi
26922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26923 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26924 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26925
26926 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26927
26928 fi
26929
26930
26931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26932 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26933 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26934 $as_echo_n "(cached) " >&6
26935 else
26936 gcc_cv_as_sparc_ua_pcrel=no
26937 if test x$gcc_cv_as != x; then
26938 $as_echo '.text
26939 foo:
26940 nop
26941 .data
26942 .align 4
26943 .byte 0
26944 .uaword %r_disp32(foo)' > conftest.s
26945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26947 (eval $ac_try) 2>&5
26948 ac_status=$?
26949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26950 test $ac_status = 0; }; }
26951 then
26952 if test x$gcc_cv_ld != x \
26953 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26954 gcc_cv_as_sparc_ua_pcrel=yes
26955 fi
26956 rm -f conftest
26957 else
26958 echo "configure: failed program was" >&5
26959 cat conftest.s >&5
26960 fi
26961 rm -f conftest.o conftest.s
26962 fi
26963 fi
26964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26965 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26966 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26967
26968 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26969
26970
26971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26972 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26973 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26974 $as_echo_n "(cached) " >&6
26975 else
26976 gcc_cv_as_sparc_ua_pcrel_hidden=no
26977 if test x$gcc_cv_as != x; then
26978 $as_echo '.data
26979 .align 4
26980 .byte 0x31
26981 .uaword %r_disp32(foo)
26982 .byte 0x32, 0x33, 0x34
26983 .global foo
26984 .hidden foo
26985 foo:
26986 .skip 4' > conftest.s
26987 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26989 (eval $ac_try) 2>&5
26990 ac_status=$?
26991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26992 test $ac_status = 0; }; }
26993 then
26994 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26995 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26996 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26997 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26998 if $gcc_cv_objdump -R conftest 2> /dev/null \
26999 | grep 'DISP32' > /dev/null 2>&1; then
27000 :
27001 else
27002 gcc_cv_as_sparc_ua_pcrel_hidden=yes
27003 fi
27004 fi
27005 rm -f conftest
27006 else
27007 echo "configure: failed program was" >&5
27008 cat conftest.s >&5
27009 fi
27010 rm -f conftest.o conftest.s
27011 fi
27012 fi
27013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
27014 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
27015 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
27016
27017 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
27018
27019 fi
27020
27021
27022 fi
27023 # unaligned pcrel relocs
27024
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
27026 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
27027 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
27028 $as_echo_n "(cached) " >&6
27029 else
27030 gcc_cv_as_sparc_offsetable_lo10=no
27031 if test x$gcc_cv_as != x; then
27032 $as_echo '.text
27033 or %g1, %lo(ab) + 12, %g1
27034 or %g1, %lo(ab + 12), %g1' > conftest.s
27035 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
27036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27037 (eval $ac_try) 2>&5
27038 ac_status=$?
27039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27040 test $ac_status = 0; }; }
27041 then
27042 if test x$gcc_cv_objdump != x \
27043 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
27044 | grep ' 82106000 82106000' > /dev/null 2>&1; then
27045 gcc_cv_as_sparc_offsetable_lo10=yes
27046 fi
27047 else
27048 echo "configure: failed program was" >&5
27049 cat conftest.s >&5
27050 fi
27051 rm -f conftest.o conftest.s
27052 fi
27053 fi
27054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
27055 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
27056 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
27057
27058 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
27059
27060 fi
27061
27062
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
27064 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
27065 if ${gcc_cv_as_sparc_fmaf+:} false; then :
27066 $as_echo_n "(cached) " >&6
27067 else
27068 gcc_cv_as_sparc_fmaf=no
27069 if test x$gcc_cv_as != x; then
27070 $as_echo '.text
27071 .register %g2, #scratch
27072 .register %g3, #scratch
27073 .align 4
27074 fmaddd %f0, %f2, %f4, %f6
27075 addxccc %g1, %g2, %g3
27076 fsrl32 %f2, %f4, %f8
27077 fnaddd %f10, %f12, %f14' > conftest.s
27078 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
27079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27080 (eval $ac_try) 2>&5
27081 ac_status=$?
27082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27083 test $ac_status = 0; }; }
27084 then
27085 gcc_cv_as_sparc_fmaf=yes
27086 else
27087 echo "configure: failed program was" >&5
27088 cat conftest.s >&5
27089 fi
27090 rm -f conftest.o conftest.s
27091 fi
27092 fi
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
27094 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
27095 if test $gcc_cv_as_sparc_fmaf = yes; then
27096
27097 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
27098
27099 fi
27100
27101
27102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
27103 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
27104 if ${gcc_cv_as_sparc_sparc4+:} false; then :
27105 $as_echo_n "(cached) " >&6
27106 else
27107 gcc_cv_as_sparc_sparc4=no
27108 if test x$gcc_cv_as != x; then
27109 $as_echo '.text
27110 .register %g2, #scratch
27111 .register %g3, #scratch
27112 .align 4
27113 cxbe %g2, %g3, 1f
27114 1: cwbneg %g2, %g3, 1f
27115 1: sha1
27116 md5
27117 aes_kexpand0 %f4, %f6, %f8
27118 des_round %f38, %f40, %f42, %f44
27119 camellia_f %f54, %f56, %f58, %f60
27120 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
27121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
27122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27123 (eval $ac_try) 2>&5
27124 ac_status=$?
27125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27126 test $ac_status = 0; }; }
27127 then
27128 gcc_cv_as_sparc_sparc4=yes
27129 else
27130 echo "configure: failed program was" >&5
27131 cat conftest.s >&5
27132 fi
27133 rm -f conftest.o conftest.s
27134 fi
27135 fi
27136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
27137 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
27138 if test $gcc_cv_as_sparc_sparc4 = yes; then
27139
27140 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
27141
27142 fi
27143
27144
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
27146 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
27147 if ${gcc_cv_as_sparc_sparc5+:} false; then :
27148 $as_echo_n "(cached) " >&6
27149 else
27150 gcc_cv_as_sparc_sparc5=no
27151 if test x$gcc_cv_as != x; then
27152 $as_echo '.text
27153 .register %g2, #scratch
27154 .register %g3, #scratch
27155 .align 4
27156 subxc %g1, %g2, %g3
27157 fpadd8 %f0, %f2, %f4' > conftest.s
27158 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -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_sparc_sparc5=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_sparc_sparc5" >&5
27174 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
27175 if test $gcc_cv_as_sparc_sparc5 = yes; then
27176
27177 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
27178
27179 fi
27180
27181
27182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
27183 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
27184 if ${gcc_cv_as_sparc_sparc6+:} false; then :
27185 $as_echo_n "(cached) " >&6
27186 else
27187 gcc_cv_as_sparc_sparc6=no
27188 if test x$gcc_cv_as != x; then
27189 $as_echo '.text
27190 .register %g2, #scratch
27191 .register %g3, #scratch
27192 .align 4
27193 rd %entropy, %g1
27194 fpsll64x %f0, %f2, %f4' > conftest.s
27195 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
27196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27197 (eval $ac_try) 2>&5
27198 ac_status=$?
27199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27200 test $ac_status = 0; }; }
27201 then
27202 gcc_cv_as_sparc_sparc6=yes
27203 else
27204 echo "configure: failed program was" >&5
27205 cat conftest.s >&5
27206 fi
27207 rm -f conftest.o conftest.s
27208 fi
27209 fi
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
27211 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
27212 if test $gcc_cv_as_sparc_sparc6 = yes; then
27213
27214 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
27215
27216 fi
27217
27218
27219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
27220 $as_echo_n "checking assembler for LEON instructions... " >&6; }
27221 if ${gcc_cv_as_sparc_leon+:} false; then :
27222 $as_echo_n "(cached) " >&6
27223 else
27224 gcc_cv_as_sparc_leon=no
27225 if test x$gcc_cv_as != x; then
27226 $as_echo '.text
27227 .register %g2, #scratch
27228 .register %g3, #scratch
27229 .align 4
27230 smac %g2, %g3, %g1
27231 umac %g2, %g3, %g1
27232 casa [%g2] 0xb, %g3, %g1' > conftest.s
27233 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
27234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27235 (eval $ac_try) 2>&5
27236 ac_status=$?
27237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27238 test $ac_status = 0; }; }
27239 then
27240 gcc_cv_as_sparc_leon=yes
27241 else
27242 echo "configure: failed program was" >&5
27243 cat conftest.s >&5
27244 fi
27245 rm -f conftest.o conftest.s
27246 fi
27247 fi
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
27249 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
27250 if test $gcc_cv_as_sparc_leon = yes; then
27251
27252 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
27253
27254 fi
27255
27256 ;;
27257
27258 i[34567]86-*-* | x86_64-*-*)
27259 case $target_os in
27260 cygwin*)
27261 # Full C++ conformance when using a shared libstdc++-v3 requires some
27262 # support from the Cygwin DLL, which in more recent versions exports
27263 # wrappers to aid in interposing and redirecting operators new, delete,
27264 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
27265 # are configuring for a version of Cygwin that exports the wrappers.
27266 if test x$host = x$target && test x$host_cpu = xi686; then
27267 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
27268 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
27269 gcc_ac_cygwin_dll_wrappers=yes
27270 else
27271 gcc_ac_cygwin_dll_wrappers=no
27272 fi
27273
27274 else
27275 # Can't check presence of libc functions during cross-compile, so
27276 # we just have to assume we're building for an up-to-date target.
27277 gcc_ac_cygwin_dll_wrappers=yes
27278 fi
27279
27280 cat >>confdefs.h <<_ACEOF
27281 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
27282 _ACEOF
27283
27284 esac
27285 case $target_os in
27286 cygwin* | pe | mingw32*)
27287 # Recent binutils allows the three-operand form of ".comm" on PE. This
27288 # definition is used unconditionally to initialise the default state of
27289 # the target option variable that governs usage of the feature.
27290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
27291 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
27292 if ${gcc_cv_as_comm_has_align+:} false; then :
27293 $as_echo_n "(cached) " >&6
27294 else
27295 gcc_cv_as_comm_has_align=no
27296 if test $in_tree_gas = yes; then
27297 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27298 then gcc_cv_as_comm_has_align=yes
27299 fi
27300 elif test x$gcc_cv_as != x; then
27301 $as_echo '.comm foo,1,32' > conftest.s
27302 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_comm_has_align=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_comm_has_align" >&5
27318 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27319
27320
27321
27322 cat >>confdefs.h <<_ACEOF
27323 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27324 _ACEOF
27325
27326 # Used for DWARF 2 in PE
27327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27328 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27329 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
27330 $as_echo_n "(cached) " >&6
27331 else
27332 gcc_cv_as_ix86_pe_secrel32=no
27333 if test $in_tree_gas = yes; then
27334 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
27335 then gcc_cv_as_ix86_pe_secrel32=yes
27336 fi
27337 elif test x$gcc_cv_as != x; then
27338 $as_echo '.text
27339 foo: nop
27340 .data
27341 .secrel32 foo' > conftest.s
27342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27344 (eval $ac_try) 2>&5
27345 ac_status=$?
27346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27347 test $ac_status = 0; }; }
27348 then
27349 if test x$gcc_cv_ld != x \
27350 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
27351 gcc_cv_as_ix86_pe_secrel32=yes
27352 fi
27353 rm -f conftest
27354 else
27355 echo "configure: failed program was" >&5
27356 cat conftest.s >&5
27357 fi
27358 rm -f conftest.o conftest.s
27359 fi
27360 fi
27361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27362 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27363 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27364
27365 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27366
27367 fi
27368
27369 # Test if the assembler supports the extended form of the .section
27370 # directive that specifies section alignment. LTO support uses this,
27371 # but normally only after installation, so we warn but don't fail the
27372 # configure if LTO is enabled but the assembler does not support it.
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27374 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27375 if ${gcc_cv_as_section_has_align+:} false; then :
27376 $as_echo_n "(cached) " >&6
27377 else
27378 gcc_cv_as_section_has_align=no
27379 if test $in_tree_gas = yes; then
27380 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
27381 then gcc_cv_as_section_has_align=yes
27382 fi
27383 elif test x$gcc_cv_as != x; then
27384 $as_echo '.section lto_test,"dr0"' > conftest.s
27385 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27387 (eval $ac_try) 2>&5
27388 ac_status=$?
27389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27390 test $ac_status = 0; }; }
27391 then
27392 gcc_cv_as_section_has_align=yes
27393 else
27394 echo "configure: failed program was" >&5
27395 cat conftest.s >&5
27396 fi
27397 rm -f conftest.o conftest.s
27398 fi
27399 fi
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27401 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27402
27403
27404 if test x$gcc_cv_as_section_has_align != xyes; then
27405 case ",$enable_languages," in
27406 *,lto,*)
27407 { $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
27408 $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;}
27409 ;;
27410 esac
27411 fi
27412 ;;
27413 esac
27414
27415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27416 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27417 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
27418 $as_echo_n "(cached) " >&6
27419 else
27420 gcc_cv_as_ix86_xbrace_comment=no
27421 if test x$gcc_cv_as != x; then
27422 $as_echo '.text' > conftest.s
27423 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27425 (eval $ac_try) 2>&5
27426 ac_status=$?
27427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27428 test $ac_status = 0; }; }
27429 then
27430 gcc_cv_as_ix86_xbrace_comment=yes
27431 else
27432 echo "configure: failed program was" >&5
27433 cat conftest.s >&5
27434 fi
27435 rm -f conftest.o conftest.s
27436 fi
27437 fi
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27439 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27440 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27441
27442 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27443
27444 fi
27445
27446
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27448 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27449 if ${gcc_cv_as_ix86_filds+:} false; then :
27450 $as_echo_n "(cached) " >&6
27451 else
27452 gcc_cv_as_ix86_filds=no
27453 if test x$gcc_cv_as != x; then
27454 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27455 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27457 (eval $ac_try) 2>&5
27458 ac_status=$?
27459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27460 test $ac_status = 0; }; }
27461 then
27462 gcc_cv_as_ix86_filds=yes
27463 else
27464 echo "configure: failed program was" >&5
27465 cat conftest.s >&5
27466 fi
27467 rm -f conftest.o conftest.s
27468 fi
27469 fi
27470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27471 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27472 if test $gcc_cv_as_ix86_filds = yes; then
27473
27474 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27475
27476 fi
27477
27478
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27480 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27481 if ${gcc_cv_as_ix86_fildq+:} false; then :
27482 $as_echo_n "(cached) " >&6
27483 else
27484 gcc_cv_as_ix86_fildq=no
27485 if test x$gcc_cv_as != x; then
27486 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27487 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27489 (eval $ac_try) 2>&5
27490 ac_status=$?
27491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27492 test $ac_status = 0; }; }
27493 then
27494 gcc_cv_as_ix86_fildq=yes
27495 else
27496 echo "configure: failed program was" >&5
27497 cat conftest.s >&5
27498 fi
27499 rm -f conftest.o conftest.s
27500 fi
27501 fi
27502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27503 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27504 if test $gcc_cv_as_ix86_fildq = yes; then
27505
27506 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27507
27508 fi
27509
27510
27511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27512 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27513 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27514 $as_echo_n "(cached) " >&6
27515 else
27516 gcc_cv_as_ix86_cmov_sun_syntax=no
27517 if test x$gcc_cv_as != x; then
27518 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27521 (eval $ac_try) 2>&5
27522 ac_status=$?
27523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27524 test $ac_status = 0; }; }
27525 then
27526 gcc_cv_as_ix86_cmov_sun_syntax=yes
27527 else
27528 echo "configure: failed program was" >&5
27529 cat conftest.s >&5
27530 fi
27531 rm -f conftest.o conftest.s
27532 fi
27533 fi
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27535 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27536 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27537
27538 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27539
27540 fi
27541
27542
27543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27544 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27545 if ${gcc_cv_as_ix86_ffreep+:} false; then :
27546 $as_echo_n "(cached) " >&6
27547 else
27548 gcc_cv_as_ix86_ffreep=no
27549 if test x$gcc_cv_as != x; then
27550 $as_echo 'ffreep %st(1)' > conftest.s
27551 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27553 (eval $ac_try) 2>&5
27554 ac_status=$?
27555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27556 test $ac_status = 0; }; }
27557 then
27558 gcc_cv_as_ix86_ffreep=yes
27559 else
27560 echo "configure: failed program was" >&5
27561 cat conftest.s >&5
27562 fi
27563 rm -f conftest.o conftest.s
27564 fi
27565 fi
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27567 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27568 if test $gcc_cv_as_ix86_ffreep = yes; then
27569
27570 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27571
27572 fi
27573
27574
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27576 $as_echo_n "checking assembler for .quad directive... " >&6; }
27577 if ${gcc_cv_as_ix86_quad+:} false; then :
27578 $as_echo_n "(cached) " >&6
27579 else
27580 gcc_cv_as_ix86_quad=no
27581 if test x$gcc_cv_as != x; then
27582 $as_echo '.quad 0' > conftest.s
27583 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27585 (eval $ac_try) 2>&5
27586 ac_status=$?
27587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27588 test $ac_status = 0; }; }
27589 then
27590 gcc_cv_as_ix86_quad=yes
27591 else
27592 echo "configure: failed program was" >&5
27593 cat conftest.s >&5
27594 fi
27595 rm -f conftest.o conftest.s
27596 fi
27597 fi
27598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27599 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27600 if test $gcc_cv_as_ix86_quad = yes; then
27601
27602 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27603
27604 fi
27605
27606
27607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27608 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27609 if ${gcc_cv_as_ix86_sahf+:} false; then :
27610 $as_echo_n "(cached) " >&6
27611 else
27612 gcc_cv_as_ix86_sahf=no
27613 if test x$gcc_cv_as != x; then
27614 $as_echo '.code64
27615 sahf' > conftest.s
27616 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27618 (eval $ac_try) 2>&5
27619 ac_status=$?
27620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27621 test $ac_status = 0; }; }
27622 then
27623 gcc_cv_as_ix86_sahf=yes
27624 else
27625 echo "configure: failed program was" >&5
27626 cat conftest.s >&5
27627 fi
27628 rm -f conftest.o conftest.s
27629 fi
27630 fi
27631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27632 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27633 if test $gcc_cv_as_ix86_sahf = yes; then
27634
27635 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27636
27637 fi
27638
27639
27640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27641 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27642 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27643 $as_echo_n "(cached) " >&6
27644 else
27645 gcc_cv_as_ix86_interunit_movq=no
27646 if test x$gcc_cv_as != x; then
27647 $as_echo '.code64
27648 movq %mm0, %rax
27649 movq %rax, %xmm0' > conftest.s
27650 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27652 (eval $ac_try) 2>&5
27653 ac_status=$?
27654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27655 test $ac_status = 0; }; }
27656 then
27657 gcc_cv_as_ix86_interunit_movq=yes
27658 else
27659 echo "configure: failed program was" >&5
27660 cat conftest.s >&5
27661 fi
27662 rm -f conftest.o conftest.s
27663 fi
27664 fi
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27666 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27667
27668
27669
27670 cat >>confdefs.h <<_ACEOF
27671 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27672 _ACEOF
27673
27674
27675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27676 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27677 if ${gcc_cv_as_ix86_hle+:} false; then :
27678 $as_echo_n "(cached) " >&6
27679 else
27680 gcc_cv_as_ix86_hle=no
27681 if test x$gcc_cv_as != x; then
27682 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27683 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27685 (eval $ac_try) 2>&5
27686 ac_status=$?
27687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27688 test $ac_status = 0; }; }
27689 then
27690 gcc_cv_as_ix86_hle=yes
27691 else
27692 echo "configure: failed program was" >&5
27693 cat conftest.s >&5
27694 fi
27695 rm -f conftest.o conftest.s
27696 fi
27697 fi
27698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27699 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27700 if test $gcc_cv_as_ix86_hle = yes; then
27701
27702 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27703
27704 fi
27705
27706
27707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27708 $as_echo_n "checking assembler for swap suffix... " >&6; }
27709 if ${gcc_cv_as_ix86_swap+:} false; then :
27710 $as_echo_n "(cached) " >&6
27711 else
27712 gcc_cv_as_ix86_swap=no
27713 if test x$gcc_cv_as != x; then
27714 $as_echo 'movl.s %esp, %ebp' > conftest.s
27715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27717 (eval $ac_try) 2>&5
27718 ac_status=$?
27719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27720 test $ac_status = 0; }; }
27721 then
27722 gcc_cv_as_ix86_swap=yes
27723 else
27724 echo "configure: failed program was" >&5
27725 cat conftest.s >&5
27726 fi
27727 rm -f conftest.o conftest.s
27728 fi
27729 fi
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27731 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27732 if test $gcc_cv_as_ix86_swap = yes; then
27733
27734 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27735
27736 fi
27737
27738
27739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27740 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27741 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27742 $as_echo_n "(cached) " >&6
27743 else
27744 gcc_cv_as_ix86_diff_sect_delta=no
27745 if test x$gcc_cv_as != x; then
27746 $as_echo '.section .rodata
27747 .L1:
27748 .long .L2-.L1
27749 .long .L3-.L1
27750 .text
27751 .L3: nop
27752 .L2: nop' > conftest.s
27753 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27755 (eval $ac_try) 2>&5
27756 ac_status=$?
27757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27758 test $ac_status = 0; }; }
27759 then
27760 gcc_cv_as_ix86_diff_sect_delta=yes
27761 else
27762 echo "configure: failed program was" >&5
27763 cat conftest.s >&5
27764 fi
27765 rm -f conftest.o conftest.s
27766 fi
27767 fi
27768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27769 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27770 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27771
27772 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27773
27774 fi
27775
27776
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27778 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27779 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27780 $as_echo_n "(cached) " >&6
27781 else
27782 gcc_cv_as_ix86_rep_lock_prefix=no
27783 if test x$gcc_cv_as != x; then
27784 $as_echo 'rep movsl
27785 rep ret
27786 rep nop
27787 rep bsf %ecx, %eax
27788 rep bsr %ecx, %eax
27789 lock addl %edi, (%eax,%esi)
27790 lock orl $0, (%esp)' > conftest.s
27791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27793 (eval $ac_try) 2>&5
27794 ac_status=$?
27795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27796 test $ac_status = 0; }; }
27797 then
27798 gcc_cv_as_ix86_rep_lock_prefix=yes
27799 else
27800 echo "configure: failed program was" >&5
27801 cat conftest.s >&5
27802 fi
27803 rm -f conftest.o conftest.s
27804 fi
27805 fi
27806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27807 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27808 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27809
27810 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27811
27812 fi
27813
27814
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27816 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27817 if ${gcc_cv_as_ix86_ud2+:} false; then :
27818 $as_echo_n "(cached) " >&6
27819 else
27820 gcc_cv_as_ix86_ud2=no
27821 if test x$gcc_cv_as != x; then
27822 $as_echo 'ud2' > conftest.s
27823 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27825 (eval $ac_try) 2>&5
27826 ac_status=$?
27827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27828 test $ac_status = 0; }; }
27829 then
27830 gcc_cv_as_ix86_ud2=yes
27831 else
27832 echo "configure: failed program was" >&5
27833 cat conftest.s >&5
27834 fi
27835 rm -f conftest.o conftest.s
27836 fi
27837 fi
27838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27839 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27840 if test $gcc_cv_as_ix86_ud2 = yes; then
27841
27842 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27843
27844 fi
27845
27846
27847 # Enforce 32-bit output with gas and gld.
27848 if test x$gas = xyes; then
27849 as_ix86_gas_32_opt="--32"
27850 fi
27851 if echo "$ld_ver" | grep GNU > /dev/null; then
27852 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27853 ld_ix86_gld_32_opt="-melf_i386_sol2"
27854 else
27855 ld_ix86_gld_32_opt="-melf_i386"
27856 fi
27857 fi
27858
27859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27860 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27861 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27862 $as_echo_n "(cached) " >&6
27863 else
27864 gcc_cv_as_ix86_tlsgdplt=no
27865 if test x$gcc_cv_as != x; then
27866 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27869 (eval $ac_try) 2>&5
27870 ac_status=$?
27871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27872 test $ac_status = 0; }; }
27873 then
27874 if test x$gcc_cv_ld != x \
27875 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27876 gcc_cv_as_ix86_tlsgdplt=yes
27877 fi
27878 rm -f conftest
27879 else
27880 echo "configure: failed program was" >&5
27881 cat conftest.s >&5
27882 fi
27883 rm -f conftest.o conftest.s
27884 fi
27885 fi
27886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27887 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27888 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27889
27890 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27891
27892 fi
27893
27894
27895 conftest_s='
27896 .section .tdata,"aw'$tls_section_flag'",@progbits
27897 tls_ld:
27898 .section .text,"ax",@progbits
27899 call tls_ld@tlsldmplt'
27900
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27902 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27903 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27904 $as_echo_n "(cached) " >&6
27905 else
27906 gcc_cv_as_ix86_tlsldmplt=no
27907 if test x$gcc_cv_as != x; then
27908 $as_echo "$conftest_s" > conftest.s
27909 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27911 (eval $ac_try) 2>&5
27912 ac_status=$?
27913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27914 test $ac_status = 0; }; }
27915 then
27916 if test x$gcc_cv_ld != x \
27917 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27918 gcc_cv_as_ix86_tlsldmplt=yes
27919 fi
27920 rm -f conftest
27921 else
27922 echo "configure: failed program was" >&5
27923 cat conftest.s >&5
27924 fi
27925 rm -f conftest.o conftest.s
27926 fi
27927 fi
27928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27929 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27930
27931
27932
27933 cat >>confdefs.h <<_ACEOF
27934 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27935 _ACEOF
27936
27937
27938 conftest_s='
27939 .section .text,"ax",@progbits
27940 .globl _start
27941 .type _start, @function
27942 _start:
27943 leal value@tlsldm(%ebx), %eax
27944 call ___tls_get_addr@plt
27945
27946 .section .tdata,"aw'$tls_section_flag'",@progbits
27947 .type value, @object
27948 value:'
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27950 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27951 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27952 $as_echo_n "(cached) " >&6
27953 else
27954 gcc_cv_as_ix86_tlsldm=no
27955 if test x$gcc_cv_as != x; then
27956 $as_echo "$conftest_s" > conftest.s
27957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27959 (eval $ac_try) 2>&5
27960 ac_status=$?
27961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27962 test $ac_status = 0; }; }
27963 then
27964 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27965 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27966 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27967 || dis conftest 2>/dev/null | grep nop > /dev/null; then
27968 gcc_cv_as_ix86_tlsldm=yes
27969 fi
27970 fi
27971 rm -f conftest
27972 else
27973 echo "configure: failed program was" >&5
27974 cat conftest.s >&5
27975 fi
27976 rm -f conftest.o conftest.s
27977 fi
27978 fi
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27980 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27981
27982
27983
27984 cat >>confdefs.h <<_ACEOF
27985 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27986 _ACEOF
27987
27988
27989 conftest_s='
27990 .data
27991 bar:
27992 .byte 1
27993 .text
27994 .global _start
27995 _start:
27996 cmpl $0, bar@GOT
27997 jmp *_start@GOT'
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27999 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
28000 if ${gcc_cv_as_ix86_got32x+:} false; then :
28001 $as_echo_n "(cached) " >&6
28002 else
28003 gcc_cv_as_ix86_got32x=no
28004 if test x$gcc_cv_as != x; then
28005 $as_echo "$conftest_s" > conftest.s
28006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28008 (eval $ac_try) 2>&5
28009 ac_status=$?
28010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28011 test $ac_status = 0; }; }
28012 then
28013 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
28014 && test x$gcc_cv_readelf != x \
28015 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
28016 | grep R_386_GOT32X > /dev/null 2>&1 \
28017 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
28018 if $gcc_cv_objdump -dw conftest 2>&1 \
28019 | grep 0xffffff > /dev/null 2>&1; then
28020 gcc_cv_as_ix86_got32x=no
28021 else
28022 gcc_cv_as_ix86_got32x=yes
28023 fi
28024 fi
28025 rm -f conftest
28026 else
28027 echo "configure: failed program was" >&5
28028 cat conftest.s >&5
28029 fi
28030 rm -f conftest.o conftest.s
28031 fi
28032 fi
28033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
28034 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
28035
28036
28037
28038 cat >>confdefs.h <<_ACEOF
28039 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
28040 _ACEOF
28041
28042
28043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
28044 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
28045 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
28046 $as_echo_n "(cached) " >&6
28047 else
28048 gcc_cv_as_ix86_gotoff_in_data=no
28049 if test $in_tree_gas = yes; then
28050 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28051 then gcc_cv_as_ix86_gotoff_in_data=yes
28052 fi
28053 elif test x$gcc_cv_as != x; then
28054 $as_echo ' .text
28055 .L0:
28056 nop
28057 .data
28058 .long .L0@GOTOFF' > conftest.s
28059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28061 (eval $ac_try) 2>&5
28062 ac_status=$?
28063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28064 test $ac_status = 0; }; }
28065 then
28066 gcc_cv_as_ix86_gotoff_in_data=yes
28067 else
28068 echo "configure: failed program was" >&5
28069 cat conftest.s >&5
28070 fi
28071 rm -f conftest.o conftest.s
28072 fi
28073 fi
28074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
28075 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
28076
28077
28078
28079 cat >>confdefs.h <<_ACEOF
28080 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
28081 _ACEOF
28082
28083
28084 conftest_s='
28085 .section .text,"ax",@progbits
28086 .globl _start
28087 .type _start, @function
28088 _start:
28089 leal ld@tlsldm(%ecx), %eax
28090 call *___tls_get_addr@GOT(%ecx)
28091 leal gd@tlsgd(%ecx), %eax
28092 call *___tls_get_addr@GOT(%ecx)
28093
28094 .section .tdata,"aw'$tls_section_flag'",@progbits
28095 .type ld, @object
28096 ld:
28097 .byte 0
28098 .globl gd
28099 .type gd, @object
28100 gd:
28101 .byte 0'
28102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
28103 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
28104 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
28105 $as_echo_n "(cached) " >&6
28106 else
28107 gcc_cv_as_ix86_tls_get_addr_via_got=no
28108 if test x$gcc_cv_as != x; then
28109 $as_echo "$conftest_s" > conftest.s
28110 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
28111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28112 (eval $ac_try) 2>&5
28113 ac_status=$?
28114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28115 test $ac_status = 0; }; }
28116 then
28117 if test x$gcc_cv_ld != x \
28118 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
28119 gcc_cv_as_ix86_tls_get_addr_via_got=yes
28120 fi
28121 rm -f conftest
28122 else
28123 echo "configure: failed program was" >&5
28124 cat conftest.s >&5
28125 fi
28126 rm -f conftest.o conftest.s
28127 fi
28128 fi
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
28130 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
28131
28132
28133
28134 cat >>confdefs.h <<_ACEOF
28135 #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`
28136 _ACEOF
28137
28138 ;;
28139
28140 ia64*-*-*)
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
28142 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
28143 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
28144 $as_echo_n "(cached) " >&6
28145 else
28146 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
28147 if test $in_tree_gas = yes; then
28148 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
28149 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
28150 fi
28151 elif test x$gcc_cv_as != x; then
28152 $as_echo ' .text
28153 addl r15 = @ltoffx(x#), gp
28154 ;;
28155 ld8.mov r16 = [r15], x#
28156 ' > conftest.s
28157 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28159 (eval $ac_try) 2>&5
28160 ac_status=$?
28161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28162 test $ac_status = 0; }; }
28163 then
28164 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
28165 else
28166 echo "configure: failed program was" >&5
28167 cat conftest.s >&5
28168 fi
28169 rm -f conftest.o conftest.s
28170 fi
28171 fi
28172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
28173 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
28174 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
28175
28176 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
28177
28178 fi
28179
28180
28181 ;;
28182
28183 powerpc*-*-*)
28184
28185 case $target in
28186 *-*-darwin*)
28187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
28188 $as_echo_n "checking assembler for .machine directive support... " >&6; }
28189 if ${gcc_cv_as_machine_directive+:} false; then :
28190 $as_echo_n "(cached) " >&6
28191 else
28192 gcc_cv_as_machine_directive=no
28193 if test x$gcc_cv_as != x; then
28194 $as_echo ' .machine ppc7400' > conftest.s
28195 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28197 (eval $ac_try) 2>&5
28198 ac_status=$?
28199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28200 test $ac_status = 0; }; }
28201 then
28202 gcc_cv_as_machine_directive=yes
28203 else
28204 echo "configure: failed program was" >&5
28205 cat conftest.s >&5
28206 fi
28207 rm -f conftest.o conftest.s
28208 fi
28209 fi
28210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
28211 $as_echo "$gcc_cv_as_machine_directive" >&6; }
28212
28213
28214 if test x$gcc_cv_as_machine_directive != xyes; then
28215 echo "*** This target requires an assembler supporting \".machine\"" >&2
28216 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
28217 test x$build = x$target && exit 1
28218 fi
28219 ;;
28220 esac
28221
28222 case $target in
28223 *-*-aix*) conftest_s=' .machine "pwr5"
28224 .csect .text[PR]
28225 mfcr 3,128';;
28226 *-*-darwin*) conftest_s=' .text
28227 mfcr r3,128';;
28228 *) conftest_s=' .machine power4
28229 .text
28230 mfcr 3,128';;
28231 esac
28232
28233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
28234 $as_echo_n "checking assembler for mfcr field support... " >&6; }
28235 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
28236 $as_echo_n "(cached) " >&6
28237 else
28238 gcc_cv_as_powerpc_mfcrf=no
28239 if test $in_tree_gas = yes; then
28240 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
28241 then gcc_cv_as_powerpc_mfcrf=yes
28242 fi
28243 elif test x$gcc_cv_as != x; then
28244 $as_echo "$conftest_s" > conftest.s
28245 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28247 (eval $ac_try) 2>&5
28248 ac_status=$?
28249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28250 test $ac_status = 0; }; }
28251 then
28252 gcc_cv_as_powerpc_mfcrf=yes
28253 else
28254 echo "configure: failed program was" >&5
28255 cat conftest.s >&5
28256 fi
28257 rm -f conftest.o conftest.s
28258 fi
28259 fi
28260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
28261 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
28262 if test $gcc_cv_as_powerpc_mfcrf = yes; then
28263
28264 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
28265
28266 fi
28267
28268
28269 case $target in
28270 *-*-aix*) conftest_s=' .csect .text[PR]
28271 LCF..0:
28272 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
28273 *-*-darwin*)
28274 conftest_s=' .text
28275 LCF0:
28276 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
28277 *) conftest_s=' .text
28278 .LCF0:
28279 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
28280 esac
28281
28282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
28283 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
28284 if ${gcc_cv_as_powerpc_rel16+:} false; then :
28285 $as_echo_n "(cached) " >&6
28286 else
28287 gcc_cv_as_powerpc_rel16=no
28288 if test $in_tree_gas = yes; then
28289 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
28290 then gcc_cv_as_powerpc_rel16=yes
28291 fi
28292 elif test x$gcc_cv_as != x; then
28293 $as_echo "$conftest_s" > conftest.s
28294 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28296 (eval $ac_try) 2>&5
28297 ac_status=$?
28298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28299 test $ac_status = 0; }; }
28300 then
28301 gcc_cv_as_powerpc_rel16=yes
28302 else
28303 echo "configure: failed program was" >&5
28304 cat conftest.s >&5
28305 fi
28306 rm -f conftest.o conftest.s
28307 fi
28308 fi
28309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28310 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28311 if test $gcc_cv_as_powerpc_rel16 = yes; then
28312
28313 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28314
28315 fi
28316
28317
28318 case $target in
28319 *-*-aix*) conftest_s=' .machine "pwr7"
28320 .csect .text[PR]
28321 lxvd2x 1,2,3';;
28322 *) conftest_s=' .machine power7
28323 .text
28324 lxvd2x 1,2,3';;
28325 esac
28326
28327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28328 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28329 if ${gcc_cv_as_powerpc_vsx+:} false; then :
28330 $as_echo_n "(cached) " >&6
28331 else
28332 gcc_cv_as_powerpc_vsx=no
28333 if test $in_tree_gas = yes; then
28334 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
28335 then gcc_cv_as_powerpc_vsx=yes
28336 fi
28337 elif test x$gcc_cv_as != x; then
28338 $as_echo "$conftest_s" > conftest.s
28339 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28341 (eval $ac_try) 2>&5
28342 ac_status=$?
28343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28344 test $ac_status = 0; }; }
28345 then
28346 gcc_cv_as_powerpc_vsx=yes
28347 else
28348 echo "configure: failed program was" >&5
28349 cat conftest.s >&5
28350 fi
28351 rm -f conftest.o conftest.s
28352 fi
28353 fi
28354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28355 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28356 if test $gcc_cv_as_powerpc_vsx = yes; then
28357
28358 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28359
28360 fi
28361
28362
28363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28364 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28365 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
28366 $as_echo_n "(cached) " >&6
28367 else
28368 gcc_cv_as_powerpc_gnu_attribute=no
28369 if test $in_tree_gas = yes; then
28370 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28371 then gcc_cv_as_powerpc_gnu_attribute=yes
28372 fi
28373 elif test x$gcc_cv_as != x; then
28374 $as_echo '.gnu_attribute 4,1' > conftest.s
28375 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28377 (eval $ac_try) 2>&5
28378 ac_status=$?
28379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28380 test $ac_status = 0; }; }
28381 then
28382 gcc_cv_as_powerpc_gnu_attribute=yes
28383 else
28384 echo "configure: failed program was" >&5
28385 cat conftest.s >&5
28386 fi
28387 rm -f conftest.o conftest.s
28388 fi
28389 fi
28390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28391 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28392 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28393
28394 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28395
28396 fi
28397
28398
28399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28400 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28401 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
28402 $as_echo_n "(cached) " >&6
28403 else
28404 gcc_cv_as_powerpc_entry_markers=no
28405 if test $in_tree_gas = yes; then
28406 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28407 then gcc_cv_as_powerpc_entry_markers=yes
28408 fi
28409 elif test x$gcc_cv_as != x; then
28410 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28411 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28413 (eval $ac_try) 2>&5
28414 ac_status=$?
28415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28416 test $ac_status = 0; }; }
28417 then
28418 gcc_cv_as_powerpc_entry_markers=yes
28419 else
28420 echo "configure: failed program was" >&5
28421 cat conftest.s >&5
28422 fi
28423 rm -f conftest.o conftest.s
28424 fi
28425 fi
28426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28427 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28428 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28429
28430 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28431
28432 fi
28433
28434
28435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28436 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28437 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
28438 $as_echo_n "(cached) " >&6
28439 else
28440 gcc_cv_as_powerpc_pltseq_markers=no
28441 if test $in_tree_gas = yes; then
28442 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28443 then gcc_cv_as_powerpc_pltseq_markers=yes
28444 fi
28445 elif test x$gcc_cv_as != x; then
28446 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28449 (eval $ac_try) 2>&5
28450 ac_status=$?
28451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28452 test $ac_status = 0; }; }
28453 then
28454 gcc_cv_as_powerpc_pltseq_markers=yes
28455 else
28456 echo "configure: failed program was" >&5
28457 cat conftest.s >&5
28458 fi
28459 rm -f conftest.o conftest.s
28460 fi
28461 fi
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28463 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28464 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28465
28466 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28467
28468 fi
28469
28470
28471 case $target in
28472 *-*-aix*)
28473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28474 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28475 if ${gcc_cv_as_aix_ref+:} false; then :
28476 $as_echo_n "(cached) " >&6
28477 else
28478 gcc_cv_as_aix_ref=no
28479 if test $in_tree_gas = yes; then
28480 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
28481 then gcc_cv_as_aix_ref=yes
28482 fi
28483 elif test x$gcc_cv_as != x; then
28484 $as_echo ' .csect stuff[rw]
28485 stuff:
28486 .long 1
28487 .extern sym
28488 .ref sym
28489 ' > conftest.s
28490 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28492 (eval $ac_try) 2>&5
28493 ac_status=$?
28494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28495 test $ac_status = 0; }; }
28496 then
28497 gcc_cv_as_aix_ref=yes
28498 else
28499 echo "configure: failed program was" >&5
28500 cat conftest.s >&5
28501 fi
28502 rm -f conftest.o conftest.s
28503 fi
28504 fi
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28506 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28507 if test $gcc_cv_as_aix_ref = yes; then
28508
28509 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28510
28511 fi
28512
28513
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28515 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28516 if ${gcc_cv_as_aix_dwloc+:} false; then :
28517 $as_echo_n "(cached) " >&6
28518 else
28519 gcc_cv_as_aix_dwloc=no
28520 if test $in_tree_gas = yes; then
28521 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
28522 then gcc_cv_as_aix_dwloc=yes
28523 fi
28524 elif test x$gcc_cv_as != x; then
28525 $as_echo ' .dwsect 0xA0000
28526 Lframe..0:
28527 .vbyte 4,Lframe..0
28528 ' > conftest.s
28529 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28531 (eval $ac_try) 2>&5
28532 ac_status=$?
28533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28534 test $ac_status = 0; }; }
28535 then
28536 gcc_cv_as_aix_dwloc=yes
28537 else
28538 echo "configure: failed program was" >&5
28539 cat conftest.s >&5
28540 fi
28541 rm -f conftest.o conftest.s
28542 fi
28543 fi
28544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28545 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28546 if test $gcc_cv_as_aix_dwloc = yes; then
28547
28548 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28549
28550 fi
28551
28552 ;;
28553 esac
28554 ;;
28555
28556 mips*-*-*)
28557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28558 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28559 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28560 $as_echo_n "(cached) " >&6
28561 else
28562 gcc_cv_as_mips_explicit_relocs=no
28563 if test $in_tree_gas = yes; then
28564 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
28565 then gcc_cv_as_mips_explicit_relocs=yes
28566 fi
28567 elif test x$gcc_cv_as != x; then
28568 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28569 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28571 (eval $ac_try) 2>&5
28572 ac_status=$?
28573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28574 test $ac_status = 0; }; }
28575 then
28576 gcc_cv_as_mips_explicit_relocs=yes
28577 else
28578 echo "configure: failed program was" >&5
28579 cat conftest.s >&5
28580 fi
28581 rm -f conftest.o conftest.s
28582 fi
28583 fi
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28585 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28586 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28587 if test x$target_cpu_default = x
28588 then target_cpu_default=MASK_EXPLICIT_RELOCS
28589 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28590 fi
28591 fi
28592
28593
28594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28595 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28596 if ${gcc_cv_as_mips_no_shared+:} false; then :
28597 $as_echo_n "(cached) " >&6
28598 else
28599 gcc_cv_as_mips_no_shared=no
28600 if test $in_tree_gas = yes; then
28601 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
28602 then gcc_cv_as_mips_no_shared=yes
28603 fi
28604 elif test x$gcc_cv_as != x; then
28605 $as_echo 'nop' > conftest.s
28606 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28608 (eval $ac_try) 2>&5
28609 ac_status=$?
28610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28611 test $ac_status = 0; }; }
28612 then
28613 gcc_cv_as_mips_no_shared=yes
28614 else
28615 echo "configure: failed program was" >&5
28616 cat conftest.s >&5
28617 fi
28618 rm -f conftest.o conftest.s
28619 fi
28620 fi
28621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28622 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28623 if test $gcc_cv_as_mips_no_shared = yes; then
28624
28625 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28626
28627 fi
28628
28629
28630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28631 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28632 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28633 $as_echo_n "(cached) " >&6
28634 else
28635 gcc_cv_as_mips_gnu_attribute=no
28636 if test $in_tree_gas = yes; then
28637 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28638 then gcc_cv_as_mips_gnu_attribute=yes
28639 fi
28640 elif test x$gcc_cv_as != x; then
28641 $as_echo '.gnu_attribute 4,1' > conftest.s
28642 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28644 (eval $ac_try) 2>&5
28645 ac_status=$?
28646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28647 test $ac_status = 0; }; }
28648 then
28649 gcc_cv_as_mips_gnu_attribute=yes
28650 else
28651 echo "configure: failed program was" >&5
28652 cat conftest.s >&5
28653 fi
28654 rm -f conftest.o conftest.s
28655 fi
28656 fi
28657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28658 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28659 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28660
28661 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28662
28663 fi
28664
28665
28666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28667 $as_echo_n "checking assembler for .module support... " >&6; }
28668 if ${gcc_cv_as_mips_dot_module+:} false; then :
28669 $as_echo_n "(cached) " >&6
28670 else
28671 gcc_cv_as_mips_dot_module=no
28672 if test x$gcc_cv_as != x; then
28673 $as_echo '.module mips2
28674 .module fp=xx' > conftest.s
28675 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28677 (eval $ac_try) 2>&5
28678 ac_status=$?
28679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28680 test $ac_status = 0; }; }
28681 then
28682 gcc_cv_as_mips_dot_module=yes
28683 else
28684 echo "configure: failed program was" >&5
28685 cat conftest.s >&5
28686 fi
28687 rm -f conftest.o conftest.s
28688 fi
28689 fi
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28691 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28692 if test $gcc_cv_as_mips_dot_module = yes; then
28693
28694 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28695
28696 fi
28697
28698 if test x$gcc_cv_as_mips_dot_module = xno \
28699 && test x$with_fp_32 != x; then
28700 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28701 fi
28702
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28704 $as_echo_n "checking assembler for .micromips support... " >&6; }
28705 if ${gcc_cv_as_micromips_support+:} false; then :
28706 $as_echo_n "(cached) " >&6
28707 else
28708 gcc_cv_as_micromips_support=no
28709 if test x$gcc_cv_as != x; then
28710 $as_echo '.set micromips' > conftest.s
28711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28713 (eval $ac_try) 2>&5
28714 ac_status=$?
28715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28716 test $ac_status = 0; }; }
28717 then
28718 gcc_cv_as_micromips_support=yes
28719 else
28720 echo "configure: failed program was" >&5
28721 cat conftest.s >&5
28722 fi
28723 rm -f conftest.o conftest.s
28724 fi
28725 fi
28726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28727 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28728 if test $gcc_cv_as_micromips_support = yes; then
28729
28730 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28731
28732 fi
28733
28734
28735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28736 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28737 if ${gcc_cv_as_mips_dtprelword+:} false; then :
28738 $as_echo_n "(cached) " >&6
28739 else
28740 gcc_cv_as_mips_dtprelword=no
28741 if test $in_tree_gas = yes; then
28742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28743 then gcc_cv_as_mips_dtprelword=yes
28744 fi
28745 elif test x$gcc_cv_as != x; then
28746 $as_echo '.section .tdata,"awT",@progbits
28747 x:
28748 .word 2
28749 .text
28750 .dtprelword x+0x8000' > conftest.s
28751 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28753 (eval $ac_try) 2>&5
28754 ac_status=$?
28755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28756 test $ac_status = 0; }; }
28757 then
28758 gcc_cv_as_mips_dtprelword=yes
28759 else
28760 echo "configure: failed program was" >&5
28761 cat conftest.s >&5
28762 fi
28763 rm -f conftest.o conftest.s
28764 fi
28765 fi
28766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28767 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28768 if test $gcc_cv_as_mips_dtprelword = yes; then
28769
28770 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28771
28772 fi
28773
28774
28775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28776 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28777 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28778 $as_echo_n "(cached) " >&6
28779 else
28780 gcc_cv_as_mips_dspr1_mult=no
28781 if test x$gcc_cv_as != x; then
28782 $as_echo ' .set mips32r2
28783 .set nodspr2
28784 .set dsp
28785 madd $ac3,$4,$5
28786 maddu $ac3,$4,$5
28787 msub $ac3,$4,$5
28788 msubu $ac3,$4,$5
28789 mult $ac3,$4,$5
28790 multu $ac3,$4,$5' > conftest.s
28791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28793 (eval $ac_try) 2>&5
28794 ac_status=$?
28795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28796 test $ac_status = 0; }; }
28797 then
28798 gcc_cv_as_mips_dspr1_mult=yes
28799 else
28800 echo "configure: failed program was" >&5
28801 cat conftest.s >&5
28802 fi
28803 rm -f conftest.o conftest.s
28804 fi
28805 fi
28806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28807 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28808 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28809
28810 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28811
28812 fi
28813
28814
28815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28816 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28817 gcc_cv_as_ld_jalr_reloc=no
28818 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28819 if test $in_tree_ld = yes ; then
28820 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 \
28821 && test $in_tree_ld_is_elf = yes; then
28822 gcc_cv_as_ld_jalr_reloc=yes
28823 fi
28824 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28825 echo ' .ent x' > conftest.s
28826 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28827 echo ' lw $25,%call16(y)($28)' >> conftest.s
28828 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28829 echo '1: jalr $25' >> conftest.s
28830 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28831 echo '1: jalr $25' >> conftest.s
28832 echo ' .end x' >> conftest.s
28833 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28834 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28835 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28836 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28837 gcc_cv_as_ld_jalr_reloc=yes
28838 fi
28839 fi
28840 rm -f conftest.*
28841 fi
28842 fi
28843 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28844 if test x$target_cpu_default = x; then
28845 target_cpu_default=MASK_RELAX_PIC_CALLS
28846 else
28847 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28848 fi
28849 fi
28850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28851 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28852
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28854 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28855 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28856 $as_echo_n "(cached) " >&6
28857 else
28858 gcc_cv_ld_mips_personality_relaxation=no
28859 if test $in_tree_ld = yes ; then
28860 if test "$gcc_cv_gld_major_version" -eq 2 \
28861 -a "$gcc_cv_gld_minor_version" -ge 21 \
28862 -o "$gcc_cv_gld_major_version" -gt 2; then
28863 gcc_cv_ld_mips_personality_relaxation=yes
28864 fi
28865 elif test x$gcc_cv_as != x \
28866 -a x$gcc_cv_ld != x \
28867 -a x$gcc_cv_readelf != x ; then
28868 cat > conftest.s <<EOF
28869 .cfi_startproc
28870 .cfi_personality 0x80,indirect_ptr
28871 .ent test
28872 test:
28873 nop
28874 .end test
28875 .cfi_endproc
28876
28877 .section .data,"aw",@progbits
28878 indirect_ptr:
28879 .dc.a personality
28880 EOF
28881 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28882 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28883 if $gcc_cv_readelf -d conftest 2>&1 \
28884 | grep TEXTREL > /dev/null 2>&1; then
28885 :
28886 elif $gcc_cv_readelf --relocs conftest 2>&1 \
28887 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28888 :
28889 else
28890 gcc_cv_ld_mips_personality_relaxation=yes
28891 fi
28892 fi
28893 fi
28894 rm -f conftest.s conftest.o conftest
28895 fi
28896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28897 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28898 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28899
28900 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28901
28902 fi
28903
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28905 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28906 if ${gcc_cv_as_mips_nan+:} false; then :
28907 $as_echo_n "(cached) " >&6
28908 else
28909 gcc_cv_as_mips_nan=no
28910 if test x$gcc_cv_as != x; then
28911 $as_echo '' > conftest.s
28912 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28914 (eval $ac_try) 2>&5
28915 ac_status=$?
28916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28917 test $ac_status = 0; }; }
28918 then
28919 gcc_cv_as_mips_nan=yes
28920 else
28921 echo "configure: failed program was" >&5
28922 cat conftest.s >&5
28923 fi
28924 rm -f conftest.o conftest.s
28925 fi
28926 fi
28927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28928 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28929 if test $gcc_cv_as_mips_nan = yes; then
28930
28931 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28932
28933 fi
28934
28935 if test x$gcc_cv_as_mips_nan = xno \
28936 && test x$with_nan != x; then
28937 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28938 fi
28939 ;;
28940 msp430-*-*)
28941 # Earlier GAS versions generically support .gnu_attribute, but the
28942 # msp430 assembler will not do anything with it.
28943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28944 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28945 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28946 $as_echo_n "(cached) " >&6
28947 else
28948 gcc_cv_as_msp430_gnu_attribute=no
28949 if test $in_tree_gas = yes; then
28950 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
28951 then gcc_cv_as_msp430_gnu_attribute=yes
28952 fi
28953 elif test x$gcc_cv_as != x; then
28954 $as_echo '.gnu_attribute 4,1' > conftest.s
28955 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28957 (eval $ac_try) 2>&5
28958 ac_status=$?
28959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28960 test $ac_status = 0; }; }
28961 then
28962 gcc_cv_as_msp430_gnu_attribute=yes
28963 else
28964 echo "configure: failed program was" >&5
28965 cat conftest.s >&5
28966 fi
28967 rm -f conftest.o conftest.s
28968 fi
28969 fi
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28971 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28972 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28973
28974 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28975
28976 fi
28977
28978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28979 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28980 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28981 $as_echo_n "(cached) " >&6
28982 else
28983 gcc_cv_as_msp430_mspabi_attribute=no
28984 if test $in_tree_gas = yes; then
28985 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
28986 then gcc_cv_as_msp430_mspabi_attribute=yes
28987 fi
28988 elif test x$gcc_cv_as != x; then
28989 $as_echo '.mspabi_attribute 4,1' > conftest.s
28990 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28992 (eval $ac_try) 2>&5
28993 ac_status=$?
28994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28995 test $ac_status = 0; }; }
28996 then
28997 gcc_cv_as_msp430_mspabi_attribute=yes
28998 else
28999 echo "configure: failed program was" >&5
29000 cat conftest.s >&5
29001 fi
29002 rm -f conftest.o conftest.s
29003 fi
29004 fi
29005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
29006 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
29007 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
29008
29009 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
29010
29011 fi
29012
29013 if test x$enable_newlib_nano_formatted_io = xyes; then
29014
29015 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
29016
29017 fi
29018 ;;
29019 nios2-*-*)
29020 # Versions 2.33 and earlier lacked support for the %gotoff relocation
29021 # syntax that is documented in the ABI specification.
29022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
29023 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
29024 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
29025 $as_echo_n "(cached) " >&6
29026 else
29027 gcc_cv_as_nios2_gotoff_relocation=no
29028 if test x$gcc_cv_as != x; then
29029 $as_echo ' .extern foo
29030 .data
29031 .long %gotoff(foo)' > conftest.s
29032 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29034 (eval $ac_try) 2>&5
29035 ac_status=$?
29036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29037 test $ac_status = 0; }; }
29038 then
29039 gcc_cv_as_nios2_gotoff_relocation=yes
29040 else
29041 echo "configure: failed program was" >&5
29042 cat conftest.s >&5
29043 fi
29044 rm -f conftest.o conftest.s
29045 fi
29046 fi
29047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
29048 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
29049 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
29050
29051 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
29052
29053 fi
29054
29055 ;;
29056 riscv*-*-*)
29057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
29058 $as_echo_n "checking assembler for .attribute support... " >&6; }
29059 if ${gcc_cv_as_riscv_attribute+:} false; then :
29060 $as_echo_n "(cached) " >&6
29061 else
29062 gcc_cv_as_riscv_attribute=no
29063 if test $in_tree_gas = yes; then
29064 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
29065 then gcc_cv_as_riscv_attribute=yes
29066 fi
29067 elif test x$gcc_cv_as != x; then
29068 $as_echo '.attribute stack_align,4' > conftest.s
29069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29071 (eval $ac_try) 2>&5
29072 ac_status=$?
29073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29074 test $ac_status = 0; }; }
29075 then
29076 gcc_cv_as_riscv_attribute=yes
29077 else
29078 echo "configure: failed program was" >&5
29079 cat conftest.s >&5
29080 fi
29081 rm -f conftest.o conftest.s
29082 fi
29083 fi
29084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
29085 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
29086 if test $gcc_cv_as_riscv_attribute = yes; then
29087
29088 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
29089
29090 fi
29091
29092 ;;
29093 s390*-*-*)
29094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
29095 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
29096 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
29097 $as_echo_n "(cached) " >&6
29098 else
29099 gcc_cv_as_s390_gnu_attribute=no
29100 if test $in_tree_gas = yes; then
29101 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
29102 then gcc_cv_as_s390_gnu_attribute=yes
29103 fi
29104 elif test x$gcc_cv_as != x; then
29105 $as_echo '.gnu_attribute 8,1' > conftest.s
29106 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29108 (eval $ac_try) 2>&5
29109 ac_status=$?
29110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29111 test $ac_status = 0; }; }
29112 then
29113 gcc_cv_as_s390_gnu_attribute=yes
29114 else
29115 echo "configure: failed program was" >&5
29116 cat conftest.s >&5
29117 fi
29118 rm -f conftest.o conftest.s
29119 fi
29120 fi
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
29122 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
29123 if test $gcc_cv_as_s390_gnu_attribute = yes; then
29124
29125 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
29126
29127 fi
29128
29129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
29130 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
29131 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
29132 $as_echo_n "(cached) " >&6
29133 else
29134 gcc_cv_as_s390_machine_machinemode=no
29135 if test $in_tree_gas = yes; then
29136 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
29137 then gcc_cv_as_s390_machine_machinemode=yes
29138 fi
29139 elif test x$gcc_cv_as != x; then
29140 $as_echo ' .machinemode push
29141 .machinemode pop
29142 .machine push
29143 .machine pop' > conftest.s
29144 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29146 (eval $ac_try) 2>&5
29147 ac_status=$?
29148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29149 test $ac_status = 0; }; }
29150 then
29151 gcc_cv_as_s390_machine_machinemode=yes
29152 else
29153 echo "configure: failed program was" >&5
29154 cat conftest.s >&5
29155 fi
29156 rm -f conftest.o conftest.s
29157 fi
29158 fi
29159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
29160 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
29161 if test $gcc_cv_as_s390_machine_machinemode = yes; then
29162
29163 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
29164
29165 fi
29166
29167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
29168 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
29169 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
29170 $as_echo_n "(cached) " >&6
29171 else
29172 gcc_cv_as_s390_architecture_modifiers=no
29173 if test $in_tree_gas = yes; then
29174 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
29175 then gcc_cv_as_s390_architecture_modifiers=yes
29176 fi
29177 elif test x$gcc_cv_as != x; then
29178 $as_echo ' .machine z13+vx ' > conftest.s
29179 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29181 (eval $ac_try) 2>&5
29182 ac_status=$?
29183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29184 test $ac_status = 0; }; }
29185 then
29186 gcc_cv_as_s390_architecture_modifiers=yes
29187 else
29188 echo "configure: failed program was" >&5
29189 cat conftest.s >&5
29190 fi
29191 rm -f conftest.o conftest.s
29192 fi
29193 fi
29194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
29195 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
29196 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
29197
29198 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
29199
29200 fi
29201
29202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29203 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29204 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
29205 $as_echo_n "(cached) " >&6
29206 else
29207 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
29208 if test $in_tree_gas = yes; then
29209 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
29210 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
29211 fi
29212 elif test x$gcc_cv_as != x; then
29213 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29214 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29216 (eval $ac_try) 2>&5
29217 ac_status=$?
29218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29219 test $ac_status = 0; }; }
29220 then
29221 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
29222 else
29223 echo "configure: failed program was" >&5
29224 cat conftest.s >&5
29225 fi
29226 rm -f conftest.o conftest.s
29227 fi
29228 fi
29229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29230 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29231 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29232
29233 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29234
29235 fi
29236
29237
29238 ;;
29239 esac
29240
29241 # Mips and HP-UX need the GNU assembler.
29242 # Linux on IA64 might be able to use the Intel assembler.
29243
29244 case "$target" in
29245 mips*-*-* | *-*-hpux* )
29246 if test x$gas_flag = xyes \
29247 || test x"$host" != x"$build" \
29248 || test ! -x "$gcc_cv_as" \
29249 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
29250 :
29251 else
29252 echo "*** This configuration requires the GNU assembler" >&2
29253 exit 1
29254 fi
29255 ;;
29256 esac
29257
29258 # ??? Not all targets support dwarf2 debug_line, even within a version
29259 # of gas. Moreover, we need to emit a valid instruction to trigger any
29260 # info to the output file. So, as supported targets are added to gas 2.11,
29261 # add some instruction here to (also) show we expect this might work.
29262 # ??? Once 2.11 is released, probably need to add first known working
29263 # version to the per-target configury.
29264 case "$cpu_type" in
29265 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
29266 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29267 | tilegx | tilepro | visium | xstormy16 | xtensa)
29268 insn="nop"
29269 ;;
29270 ia64 | s390)
29271 insn="nop 0"
29272 ;;
29273 mmix)
29274 insn="swym 0"
29275 ;;
29276 esac
29277 if test x"$insn" != x; then
29278 conftest_s="\
29279 .file 1 \"conftest.s\"
29280 .loc 1 3 0
29281 $insn"
29282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29283 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29284 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
29285 $as_echo_n "(cached) " >&6
29286 else
29287 gcc_cv_as_dwarf2_debug_line=no
29288 if test $in_tree_gas = yes; then
29289 if test $in_tree_gas_is_elf = yes \
29290 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
29291 then gcc_cv_as_dwarf2_debug_line=yes
29292 fi
29293 elif test x$gcc_cv_as != x; then
29294 $as_echo "$conftest_s" > conftest.s
29295 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29297 (eval $ac_try) 2>&5
29298 ac_status=$?
29299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29300 test $ac_status = 0; }; }
29301 then
29302 if test x$gcc_cv_objdump != x \
29303 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
29304 | grep debug_line > /dev/null 2>&1; then
29305 gcc_cv_as_dwarf2_debug_line=yes
29306 elif test x$gcc_cv_otool != x \
29307 && $gcc_cv_otool -l conftest.o 2> /dev/null \
29308 | grep debug_line > /dev/null 2>&1; then
29309 gcc_cv_as_dwarf2_debug_line=yes
29310 fi
29311 else
29312 echo "configure: failed program was" >&5
29313 cat conftest.s >&5
29314 fi
29315 rm -f conftest.o conftest.s
29316 fi
29317 fi
29318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29319 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29320
29321
29322
29323 # The .debug_line file table must be in the exact order that
29324 # we specified the files, since these indices are also used
29325 # by DW_AT_decl_file. Approximate this test by testing if
29326 # the assembler bitches if the same index is assigned twice.
29327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29328 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29329 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
29330 $as_echo_n "(cached) " >&6
29331 else
29332 gcc_cv_as_dwarf2_file_buggy=no
29333 if test x$gcc_cv_as != x; then
29334 $as_echo ' .file 1 "foo.s"
29335 .file 1 "bar.s"' > conftest.s
29336 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29338 (eval $ac_try) 2>&5
29339 ac_status=$?
29340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29341 test $ac_status = 0; }; }
29342 then
29343 gcc_cv_as_dwarf2_file_buggy=yes
29344 else
29345 echo "configure: failed program was" >&5
29346 cat conftest.s >&5
29347 fi
29348 rm -f conftest.o conftest.s
29349 fi
29350 fi
29351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29352 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29353
29354
29355
29356 if test $gcc_cv_as_dwarf2_debug_line = yes \
29357 && test $gcc_cv_as_dwarf2_file_buggy = no; then
29358
29359 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29360
29361
29362 if test $gcc_cv_as_leb128 = yes; then
29363 conftest_s="\
29364 .file 1 \"conftest.s\"
29365 .loc 1 3 0 view .LVU1
29366 $insn
29367 .data
29368 .uleb128 .LVU1
29369 .uleb128 .LVU1
29370 "
29371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29372 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29373 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
29374 $as_echo_n "(cached) " >&6
29375 else
29376 gcc_cv_as_dwarf2_debug_view=no
29377 if test $in_tree_gas = yes; then
29378 if test $in_tree_gas_is_elf = yes \
29379 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
29380 then gcc_cv_as_dwarf2_debug_view=yes
29381 fi
29382 elif test x$gcc_cv_as != x; then
29383 $as_echo "$conftest_s" > conftest.s
29384 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29386 (eval $ac_try) 2>&5
29387 ac_status=$?
29388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29389 test $ac_status = 0; }; }
29390 then
29391 gcc_cv_as_dwarf2_debug_view=yes
29392 else
29393 echo "configure: failed program was" >&5
29394 cat conftest.s >&5
29395 fi
29396 rm -f conftest.o conftest.s
29397 fi
29398 fi
29399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29400 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29401 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29402
29403 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29404
29405 fi
29406
29407 fi
29408 fi
29409
29410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29411 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29412 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29413 $as_echo_n "(cached) " >&6
29414 else
29415 gcc_cv_as_gdwarf2_flag=no
29416 if test $in_tree_gas = yes; then
29417 if test $in_tree_gas_is_elf = yes \
29418 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
29419 then gcc_cv_as_gdwarf2_flag=yes
29420 fi
29421 elif test x$gcc_cv_as != x; then
29422 $as_echo "$insn" > conftest.s
29423 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29425 (eval $ac_try) 2>&5
29426 ac_status=$?
29427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29428 test $ac_status = 0; }; }
29429 then
29430 gcc_cv_as_gdwarf2_flag=yes
29431 else
29432 echo "configure: failed program was" >&5
29433 cat conftest.s >&5
29434 fi
29435 rm -f conftest.o conftest.s
29436 fi
29437 fi
29438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29439 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29440 if test $gcc_cv_as_gdwarf2_flag = yes; then
29441
29442 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29443
29444 fi
29445
29446
29447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
29448 $as_echo_n "checking assembler for --gstabs option... " >&6; }
29449 if ${gcc_cv_as_gstabs_flag+:} false; then :
29450 $as_echo_n "(cached) " >&6
29451 else
29452 gcc_cv_as_gstabs_flag=no
29453 if test $in_tree_gas = yes; then
29454 if test $in_tree_gas_is_elf = yes \
29455 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
29456 then gcc_cv_as_gstabs_flag=yes
29457 fi
29458 elif test x$gcc_cv_as != x; then
29459 $as_echo "$insn" > conftest.s
29460 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
29461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29462 (eval $ac_try) 2>&5
29463 ac_status=$?
29464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29465 test $ac_status = 0; }; }
29466 then
29467 gcc_cv_as_gstabs_flag=yes
29468 else
29469 echo "configure: failed program was" >&5
29470 cat conftest.s >&5
29471 fi
29472 rm -f conftest.o conftest.s
29473 fi
29474 fi
29475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
29476 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
29477 if test $gcc_cv_as_gstabs_flag = yes; then
29478
29479 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
29480
29481 fi
29482
29483
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29485 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29486 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
29487 $as_echo_n "(cached) " >&6
29488 else
29489 gcc_cv_as_debug_prefix_map_flag=no
29490 if test $in_tree_gas = yes; then
29491 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
29492 then gcc_cv_as_debug_prefix_map_flag=yes
29493 fi
29494 elif test x$gcc_cv_as != x; then
29495 $as_echo "$insn" > conftest.s
29496 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29498 (eval $ac_try) 2>&5
29499 ac_status=$?
29500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29501 test $ac_status = 0; }; }
29502 then
29503 gcc_cv_as_debug_prefix_map_flag=yes
29504 else
29505 echo "configure: failed program was" >&5
29506 cat conftest.s >&5
29507 fi
29508 rm -f conftest.o conftest.s
29509 fi
29510 fi
29511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29512 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29513 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29514
29515 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29516
29517 fi
29518
29519 fi
29520
29521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29522 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29523 if ${gcc_cv_as_compress_debug+:} false; then :
29524 $as_echo_n "(cached) " >&6
29525 else
29526 gcc_cv_as_compress_debug=no
29527 if test x$gcc_cv_as != x; then
29528 $as_echo '' > conftest.s
29529 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29531 (eval $ac_try) 2>&5
29532 ac_status=$?
29533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29534 test $ac_status = 0; }; }
29535 then
29536 # gas compiled without zlib cannot compress debug sections and warns
29537 # about it, but still exits successfully. So check for this, too.
29538 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29539 then
29540 gcc_cv_as_compress_debug=0
29541 # Since binutils 2.26, gas supports --compress-debug-sections=type,
29542 # defaulting to the ELF gABI format.
29543 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
29544 then
29545 gcc_cv_as_compress_debug=2
29546 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29547 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29548 # Before binutils 2.26, gas only supported --compress-debug-options and
29549 # emitted the traditional GNU format.
29550 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
29551 then
29552 gcc_cv_as_compress_debug=1
29553 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29554 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29555 else
29556 gcc_cv_as_compress_debug=0
29557 fi
29558 else
29559 echo "configure: failed program was" >&5
29560 cat conftest.s >&5
29561 fi
29562 rm -f conftest.o conftest.s
29563 fi
29564 fi
29565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29566 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29567
29568
29569
29570 cat >>confdefs.h <<_ACEOF
29571 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29572 _ACEOF
29573
29574
29575 cat >>confdefs.h <<_ACEOF
29576 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29577 _ACEOF
29578
29579
29580 cat >>confdefs.h <<_ACEOF
29581 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29582 _ACEOF
29583
29584
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29586 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29587 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29588 $as_echo_n "(cached) " >&6
29589 else
29590 gcc_cv_as_lcomm_with_alignment=no
29591 if test x$gcc_cv_as != x; then
29592 $as_echo '.lcomm bar,4,16' > conftest.s
29593 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29595 (eval $ac_try) 2>&5
29596 ac_status=$?
29597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29598 test $ac_status = 0; }; }
29599 then
29600 gcc_cv_as_lcomm_with_alignment=yes
29601 else
29602 echo "configure: failed program was" >&5
29603 cat conftest.s >&5
29604 fi
29605 rm -f conftest.o conftest.s
29606 fi
29607 fi
29608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29609 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29610 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29611
29612 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29613
29614 fi
29615
29616
29617 if test x$with_sysroot = x && test x$host = x$target \
29618 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29619 && test "$prefix" != "NONE"; then
29620
29621 cat >>confdefs.h <<_ACEOF
29622 #define PREFIX_INCLUDE_DIR "$prefix/include"
29623 _ACEOF
29624
29625 fi
29626
29627 # Determine the version of glibc, if any, used on the target.
29628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29629 $as_echo_n "checking for target glibc version... " >&6; }
29630
29631 # Check whether --with-glibc-version was given.
29632 if test "${with_glibc_version+set}" = set; then :
29633 withval=$with_glibc_version;
29634 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29635 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29636 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29637 else
29638 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
29639 fi
29640 else
29641
29642 glibc_version_major=0
29643 glibc_version_minor=0
29644 if test -f $target_header_dir/features.h \
29645 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29646 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29647 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29648 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29649 fi
29650 fi
29651
29652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29653 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29654
29655 cat >>confdefs.h <<_ACEOF
29656 #define TARGET_GLIBC_MAJOR $glibc_version_major
29657 _ACEOF
29658
29659
29660 cat >>confdefs.h <<_ACEOF
29661 #define TARGET_GLIBC_MINOR $glibc_version_minor
29662 _ACEOF
29663
29664
29665 # Check whether --enable-gnu-unique-object was given.
29666 if test "${enable_gnu_unique_object+set}" = set; then :
29667 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29668 yes | no) ;;
29669 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29670 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29671 esac
29672 else
29673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29674 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29675 if ${gcc_cv_as_gnu_unique_object+:} false; then :
29676 $as_echo_n "(cached) " >&6
29677 else
29678 gcc_cv_as_gnu_unique_object=no
29679 if test $in_tree_gas = yes; then
29680 if test $in_tree_gas_is_elf = yes \
29681 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
29682 then gcc_cv_as_gnu_unique_object=yes
29683 fi
29684 elif test x$gcc_cv_as != x; then
29685 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29686 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29688 (eval $ac_try) 2>&5
29689 ac_status=$?
29690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29691 test $ac_status = 0; }; }
29692 then
29693 gcc_cv_as_gnu_unique_object=yes
29694 else
29695 echo "configure: failed program was" >&5
29696 cat conftest.s >&5
29697 fi
29698 rm -f conftest.o conftest.s
29699 fi
29700 fi
29701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
29702 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
29703 if test $gcc_cv_as_gnu_unique_object = yes; then
29704 # We need to unquote above to to use the definition from config.gcc.
29705 # Also check for ld.so support, i.e. glibc 2.11 or higher.
29706
29707 if test $glibc_version_major -gt 2 \
29708 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
29709 enable_gnu_unique_object=yes
29710 fi
29711
29712 fi
29713
29714 fi
29715
29716 if test x$enable_gnu_unique_object = xyes; then
29717
29718 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
29719
29720 fi
29721
29722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
29723 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
29724 if ${gcc_cv_as_line_zero+:} false; then :
29725 $as_echo_n "(cached) " >&6
29726 else
29727 gcc_cv_as_line_zero=no
29728 if test $in_tree_gas = yes; then
29729 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
29730 then gcc_cv_as_line_zero=yes
29731 fi
29732 elif test "x$gcc_cv_as" != x; then
29733 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
29734 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
29735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29736 (eval $ac_try) 2>&5
29737 ac_status=$?
29738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29739 test $ac_status = 0; }; } &&
29740 test "x`cat conftest.out`" = x
29741 then
29742 gcc_cv_as_line_zero=yes
29743 else
29744 echo "configure: failed program was" >&5
29745 cat conftest.s >&5
29746 echo "configure: error output was" >&5
29747 cat conftest.out >&5
29748 fi
29749 rm -f conftest.o conftest.s conftest.out
29750 fi
29751 fi
29752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
29753 $as_echo "$gcc_cv_as_line_zero" >&6; }
29754 if test "x$gcc_cv_as_line_zero" = xyes; then
29755
29756 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
29757
29758 fi
29759
29760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
29761 $as_echo_n "checking support for thin archives... " >&6; }
29762 thin_archive_support=no
29763 echo 'int main (void) { return 0; }' > conftest.c
29764 if ($AR --version | sed 1q | grep "GNU ar" \
29765 && $CC $CFLAGS -c conftest.c \
29766 && $AR rcT conftest.a conftest.o \
29767 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
29768 thin_archive_support=yes
29769 fi
29770 rm -f conftest.c conftest.o conftest.a conftest
29771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
29772 $as_echo "$thin_archive_support" >&6; }
29773
29774
29775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
29776 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
29777 gcc_cv_ld_eh_frame_hdr=no
29778 if test $in_tree_ld = yes ; then
29779 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 \
29780 && test $in_tree_ld_is_elf = yes; then
29781 gcc_cv_ld_eh_frame_hdr=yes
29782 fi
29783 elif test x$gcc_cv_ld != x; then
29784 if echo "$ld_ver" | grep GNU > /dev/null; then
29785 # Check if linker supports --eh-frame-hdr option
29786 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
29787 gcc_cv_ld_eh_frame_hdr=yes
29788 fi
29789 else
29790 case "$target" in
29791 *-*-solaris2*)
29792 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
29793 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
29794 gcc_cv_ld_eh_frame_hdr=yes
29795 fi
29796 ;;
29797 esac
29798 fi
29799 fi
29800
29801 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
29802
29803 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
29804
29805 fi
29806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
29807 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
29808
29809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
29810 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
29811 gcc_cv_ld_eh_frame_ciev3=no
29812 if test $in_tree_ld = yes ; then
29813 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 \
29814 && test $in_tree_ld_is_elf = yes; then
29815 gcc_cv_ld_eh_frame_ciev3=yes
29816 fi
29817 elif test x$gcc_cv_ld != x; then
29818 if echo "$ld_ver" | grep GNU > /dev/null; then
29819 gcc_cv_ld_eh_frame_ciev3=yes
29820 if test 0"$ld_date" -lt 20040513; then
29821 if test -n "$ld_date"; then
29822 # If there was date string, but was earlier than 2004-05-13, fail
29823 gcc_cv_ld_eh_frame_ciev3=no
29824 elif test "$ld_vers_major" -lt 2; then
29825 gcc_cv_ld_eh_frame_ciev3=no
29826 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
29827 gcc_cv_ld_eh_frame_ciev3=no
29828 fi
29829 fi
29830 else
29831 case "$target" in
29832 *-*-solaris2*)
29833 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
29834 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
29835 gcc_cv_ld_eh_frame_ciev3=yes
29836 fi
29837 ;;
29838 esac
29839 fi
29840 fi
29841
29842 cat >>confdefs.h <<_ACEOF
29843 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
29844 _ACEOF
29845
29846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
29847 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
29848
29849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
29850 $as_echo_n "checking linker position independent executable support... " >&6; }
29851 gcc_cv_ld_pie=no
29852 if test $in_tree_ld = yes ; then
29853 case "$target" in
29854 # Full PIE support on Solaris was only introduced in gld 2.26.
29855 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
29856 *) gcc_gld_pie_min_version=15 ;;
29857 esac
29858 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 \
29859 && test $in_tree_ld_is_elf = yes; then
29860 gcc_cv_ld_pie=yes
29861 fi
29862 elif test x$gcc_cv_ld != x; then
29863 # Check if linker supports -pie option
29864 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
29865 gcc_cv_ld_pie=yes
29866 case "$target" in
29867 *-*-solaris2*)
29868 if echo "$ld_ver" | grep GNU > /dev/null \
29869 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29870 gcc_cv_ld_pie=no
29871 fi
29872 ;;
29873 esac
29874 else
29875 case "$target" in
29876 *-*-solaris2.1[1-9]*)
29877 # Solaris 11.3 added PIE support.
29878 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
29879 gcc_cv_ld_pie=yes
29880 fi
29881 ;;
29882 esac
29883 fi
29884 fi
29885 if test x"$gcc_cv_ld_pie" = xyes; then
29886
29887 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
29888
29889 fi
29890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
29891 $as_echo "$gcc_cv_ld_pie" >&6; }
29892
29893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
29894 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
29895 gcc_cv_ld_pie_copyreloc=no
29896 if test $gcc_cv_ld_pie = yes ; then
29897 if test $in_tree_ld = yes ; then
29898 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
29899 gcc_cv_ld_pie_copyreloc=yes
29900 fi
29901 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29902 # Check if linker supports -pie option with copy reloc
29903 case "$target" in
29904 i?86-*-linux* | x86_64-*-linux*)
29905 cat > conftest1.s <<EOF
29906 .globl a_glob
29907 .data
29908 .type a_glob, @object
29909 .size a_glob, 4
29910 a_glob:
29911 .long 2
29912 EOF
29913 cat > conftest2.s <<EOF
29914 .text
29915 .globl main
29916 .type main, @function
29917 main:
29918 movl %eax, a_glob(%rip)
29919 .size main, .-main
29920 .globl ptr
29921 .section .data.rel,"aw",@progbits
29922 .type ptr, @object
29923 ptr:
29924 .quad a_glob
29925 EOF
29926 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29927 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
29928 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29929 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
29930 gcc_cv_ld_pie_copyreloc=yes
29931 fi
29932 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
29933 ;;
29934 esac
29935 fi
29936 fi
29937
29938 cat >>confdefs.h <<_ACEOF
29939 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
29940 _ACEOF
29941
29942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
29943 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
29944
29945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
29946 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
29947 gcc_cv_ld_eh_gc_sections=no
29948 if test $in_tree_ld = yes ; then
29949 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 \
29950 && test $in_tree_ld_is_elf = yes; then
29951 gcc_cv_ld_eh_gc_sections=yes
29952 fi
29953 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
29954 cat > conftest.s <<EOF
29955 .section .text
29956 .globl _start
29957 .type _start, @function
29958 _start:
29959 .long foo
29960 .size _start, .-_start
29961 .section .text.foo,"ax",@progbits
29962 .type foo, @function
29963 foo:
29964 .long 0
29965 .size foo, .-foo
29966 .section .gcc_except_table.foo,"a",@progbits
29967 .L0:
29968 .long 0
29969 .section .eh_frame,"a",@progbits
29970 .long .L0
29971 EOF
29972 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29973 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29974 | grep "gc-sections option ignored" > /dev/null; then
29975 gcc_cv_ld_eh_gc_sections=no
29976 elif $gcc_cv_objdump -h conftest 2> /dev/null \
29977 | grep gcc_except_table > /dev/null; then
29978 gcc_cv_ld_eh_gc_sections=yes
29979 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
29980 if test x$gcc_cv_as_comdat_group != xyes; then
29981 gcc_cv_ld_eh_gc_sections=no
29982 cat > conftest.s <<EOF
29983 .section .text
29984 .globl _start
29985 .type _start, @function
29986 _start:
29987 .long foo
29988 .size _start, .-_start
29989 .section .gnu.linkonce.t.foo,"ax",@progbits
29990 .type foo, @function
29991 foo:
29992 .long 0
29993 .size foo, .-foo
29994 .section .gcc_except_table.foo,"a",@progbits
29995 .L0:
29996 .long 0
29997 .section .eh_frame,"a",@progbits
29998 .long .L0
29999 EOF
30000 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30001 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30002 | grep "gc-sections option ignored" > /dev/null; then
30003 gcc_cv_ld_eh_gc_sections=no
30004 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30005 | grep gcc_except_table > /dev/null; then
30006 gcc_cv_ld_eh_gc_sections=yes
30007 fi
30008 fi
30009 fi
30010 fi
30011 fi
30012 rm -f conftest.s conftest.o conftest
30013 fi
30014 case "$target" in
30015 hppa*-*-linux*)
30016 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30017 gcc_cv_ld_eh_gc_sections=no
30018 ;;
30019 esac
30020 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30021
30022 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30023
30024 fi
30025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30026 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30027
30028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30029 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30030 gcc_cv_ld_eh_gc_sections_bug=no
30031 if test $in_tree_ld = yes ; then
30032 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 \
30033 && test $in_tree_ld_is_elf = yes; then
30034 gcc_cv_ld_eh_gc_sections_bug=yes
30035 fi
30036 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
30037 gcc_cv_ld_eh_gc_sections_bug=yes
30038 cat > conftest.s <<EOF
30039 .section .text
30040 .globl _start
30041 .type _start, @function
30042 _start:
30043 .long foo
30044 .size _start, .-_start
30045 .section .text.startup.foo,"ax",@progbits
30046 .type foo, @function
30047 foo:
30048 .long 0
30049 .size foo, .-foo
30050 .section .gcc_except_table.foo,"a",@progbits
30051 .L0:
30052 .long 0
30053 .section .eh_frame,"a",@progbits
30054 .long .L0
30055 EOF
30056 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30057 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30058 | grep "gc-sections option ignored" > /dev/null; then
30059 :
30060 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30061 | grep gcc_except_table > /dev/null; then
30062 gcc_cv_ld_eh_gc_sections_bug=no
30063 fi
30064 fi
30065 rm -f conftest.s conftest.o conftest
30066 fi
30067 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30068
30069 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30070
30071 fi
30072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30073 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30074
30075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30076 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30077 # gold/gld support compressed debug sections since binutils 2.19/2.21
30078 # In binutils 2.26, gld gained support for the ELF gABI format.
30079 if test $in_tree_ld = yes ; then
30080 gcc_cv_ld_compress_debug=0
30081 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 \
30082 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
30083 gcc_cv_ld_compress_debug=2
30084 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30085 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 \
30086 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
30087 gcc_cv_ld_compress_debug=3
30088 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30089 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 \
30090 && test $in_tree_ld_is_elf = yes; then
30091 gcc_cv_ld_compress_debug=1
30092 fi
30093 elif echo "$ld_ver" | grep GNU > /dev/null; then
30094 if test "$ld_vers_major" -lt 2 \
30095 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
30096 gcc_cv_ld_compress_debug=0
30097 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30098 gcc_cv_ld_compress_debug=1
30099 else
30100 gcc_cv_ld_compress_debug=3
30101 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30102 fi
30103 if test $ld_is_gold = yes; then
30104 gcc_cv_ld_compress_debug=2
30105 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30106 fi
30107 else
30108 case "${target}" in
30109 *-*-solaris2*)
30110 # Introduced in Solaris 11.2.
30111 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30112 gcc_cv_ld_compress_debug=3
30113 gcc_cv_ld_compress_debug_option="-z compress-sections"
30114 else
30115 gcc_cv_ld_compress_debug=0
30116 fi
30117 ;;
30118 *)
30119 # Assume linkers other than GNU ld don't support compessed debug
30120 # sections.
30121 gcc_cv_ld_compress_debug=0
30122 ;;
30123 esac
30124 fi
30125
30126 cat >>confdefs.h <<_ACEOF
30127 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30128 _ACEOF
30129
30130
30131 cat >>confdefs.h <<_ACEOF
30132 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30133 _ACEOF
30134
30135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30136 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30137
30138 if test x"$ld64_flag" = x"yes"; then
30139
30140 # Set defaults for possibly untestable items.
30141 gcc_cv_ld64_export_dynamic=0
30142
30143 if test "$build" = "$host"; then
30144 darwin_try_test=1
30145 else
30146 darwin_try_test=0
30147 fi
30148
30149 # On Darwin, because of FAT library support, it is often possible to execute
30150 # exes from compatible archs even when the host differs from the build system.
30151 case "$build","$host" in
30152 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30153 darwin_try_test=1;;
30154 *) ;;
30155 esac
30156
30157 # If the configurer specified a minimum ld64 version to be supported, then use
30158 # that to determine feature support.
30159 if test x"${gcc_cv_ld64_version}" != x; then
30160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30161 $as_echo_n "checking ld64 specified version... " >&6; }
30162 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30164 $as_echo "$gcc_cv_ld64_major" >&6; }
30165 if test "$gcc_cv_ld64_major" -ge 236; then
30166 gcc_cv_ld64_export_dynamic=1
30167 fi
30168 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30169 # If the version was not specified, try to find it.
30170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30171 $as_echo_n "checking linker version... " >&6; }
30172 if test x"${gcc_cv_ld64_version}" = x; then
30173 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30174 fi
30175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30176 $as_echo "$gcc_cv_ld64_version" >&6; }
30177
30178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30179 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30180 gcc_cv_ld64_export_dynamic=1
30181 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30182 gcc_cv_ld64_export_dynamic=0
30183 fi
30184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30185 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30186 fi
30187
30188 if test x"${gcc_cv_ld64_version}" != x; then
30189
30190 cat >>confdefs.h <<_ACEOF
30191 #define LD64_VERSION "${gcc_cv_ld64_version}"
30192 _ACEOF
30193
30194 fi
30195
30196
30197 cat >>confdefs.h <<_ACEOF
30198 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30199 _ACEOF
30200
30201 fi
30202
30203 # --------
30204 # UNSORTED
30205 # --------
30206
30207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30208 $as_echo_n "checking linker --as-needed support... " >&6; }
30209 if ${gcc_cv_ld_as_needed+:} false; then :
30210 $as_echo_n "(cached) " >&6
30211 else
30212 gcc_cv_ld_as_needed=no
30213 gcc_cv_ld_as_needed_option='--as-needed'
30214 gcc_cv_ld_no_as_needed_option='--no-as-needed'
30215 if test $in_tree_ld = yes ; then
30216 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 \
30217 && test $in_tree_ld_is_elf = yes; then
30218 gcc_cv_ld_as_needed=yes
30219 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30220 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30221 gcc_cv_ld_no_as_needed_option='--pop-state'
30222 fi
30223 fi
30224 elif test x$gcc_cv_ld != x; then
30225 # Check if linker supports --as-needed and --no-as-needed options
30226 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30227 gcc_cv_ld_as_needed=yes
30228 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30229 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30230 && echo "$ld_ver" | grep GNU > /dev/null \
30231 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30232 # Use these options only when both ld.bfd and ld.gold support
30233 # --push-state/--pop-state, which unfortunately wasn't added
30234 # at the same time.
30235 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30236 gcc_cv_ld_no_as_needed_option='--pop-state'
30237 fi
30238 fi
30239 case "$target:$gnu_ld" in
30240 *-*-solaris2*:no)
30241 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30242 # forms.
30243 gcc_cv_ld_as_needed=yes
30244 gcc_cv_ld_as_needed_option="-z ignore"
30245 gcc_cv_ld_no_as_needed_option="-z record"
30246 ;;
30247 esac
30248 fi
30249 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30250 # dl_iterate_phdr, i.e. since Solaris 11.
30251 case "$target" in
30252 *-*-solaris2.1[1-9]*)
30253 case "$target" in
30254 i?86-*-* | x86_64-*-*)
30255 if echo "$ld_ver" | grep GNU > /dev/null; then
30256 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30257 gcc_cv_ld_as_needed=no
30258 fi
30259 ;;
30260 esac
30261 ;;
30262 *-*-solaris2*)
30263 gcc_cv_ld_as_needed=no
30264 ;;
30265 esac
30266
30267 fi
30268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30269 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30270 if test x"$gcc_cv_ld_as_needed" = xyes; then
30271
30272 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30273
30274
30275 cat >>confdefs.h <<_ACEOF
30276 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30277 _ACEOF
30278
30279
30280 cat >>confdefs.h <<_ACEOF
30281 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30282 _ACEOF
30283
30284 fi
30285
30286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30287 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30288 saved_LDFLAGS="$LDFLAGS"
30289 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30290 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30292 /* end confdefs.h. */
30293 int main(void) {return 0;}
30294 _ACEOF
30295 if ac_fn_cxx_try_link "$LINENO"; then :
30296 gcc_cv_ld_clearcap=yes; break
30297 else
30298 gcc_cv_ld_clearcap=no
30299 fi
30300 rm -f core conftest.err conftest.$ac_objext \
30301 conftest$ac_exeext conftest.$ac_ext
30302 done
30303 LDFLAGS="$saved_LDFLAGS"
30304 if test "x$gcc_cv_ld_clearcap" = xyes; then
30305
30306 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30307
30308 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30309
30310 fi
30311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30312 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30313
30314 case "$target" in
30315 powerpc*-*-*)
30316 case "$target" in
30317 *le-*-linux*)
30318 emul_name="-melf32lppc"
30319 ;;
30320 *)
30321 emul_name="-melf32ppc"
30322 ;;
30323 esac
30324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30325 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30326 if ${gcc_cv_ld_ppc_attr+:} false; then :
30327 $as_echo_n "(cached) " >&6
30328 else
30329 gcc_cv_ld_ppc_attr=no
30330 if test x"$ld_is_gold" = xyes; then
30331 gcc_cv_ld_ppc_attr=yes
30332 elif test $in_tree_ld = yes ; then
30333 if test "$gcc_cv_gld_major_version" -eq 2 \
30334 -a "$gcc_cv_gld_minor_version" -ge 28 \
30335 -o "$gcc_cv_gld_major_version" -gt 2; then
30336 gcc_cv_ld_ppc_attr=yes
30337 fi
30338 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30339 # check that merging the long double .gnu_attribute doesn't warn
30340 cat > conftest1.s <<EOF
30341 .gnu_attribute 4,1
30342 EOF
30343 cat > conftest2.s <<EOF
30344 .gnu_attribute 4,9
30345 EOF
30346 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30347 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30348 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30349 && test ! -s conftest.err; then
30350 gcc_cv_ld_ppc_attr=yes
30351 fi
30352 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30353 fi
30354
30355 fi
30356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30357 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30358 if test x$gcc_cv_ld_ppc_attr = xyes; then
30359
30360 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30361
30362 fi
30363 ;;
30364 esac
30365
30366 case "$target:$tm_file" in
30367 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30368 case "$target" in
30369 *le-*-linux*)
30370 emul_name="-melf64lppc"
30371 ;;
30372 *-*-linux*)
30373 emul_name="-melf64ppc"
30374 ;;
30375 *-*-freebsd*)
30376 emul_name="-melf64ppc_fbsd"
30377 ;;
30378 esac
30379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30380 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30381 if ${gcc_cv_ld_no_dot_syms+:} false; then :
30382 $as_echo_n "(cached) " >&6
30383 else
30384 gcc_cv_ld_no_dot_syms=no
30385 if test x"$ld_is_gold" = xyes; then
30386 gcc_cv_ld_no_dot_syms=yes
30387 elif test $in_tree_ld = yes ; then
30388 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
30389 gcc_cv_ld_no_dot_syms=yes
30390 fi
30391 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30392 cat > conftest1.s <<EOF
30393 .text
30394 bl .foo
30395 EOF
30396 cat > conftest2.s <<EOF
30397 .section ".opd","aw"
30398 .align 3
30399 .globl foo
30400 .type foo,@function
30401 foo:
30402 .quad .LEfoo,.TOC.@tocbase,0
30403 .text
30404 .LEfoo:
30405 blr
30406 .size foo,.-.LEfoo
30407 EOF
30408 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30409 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30410 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
30411 gcc_cv_ld_no_dot_syms=yes
30412 fi
30413 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30414 fi
30415
30416 fi
30417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30418 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30419 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
30420
30421 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30422
30423 fi
30424
30425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30426 $as_echo_n "checking linker large toc support... " >&6; }
30427 if ${gcc_cv_ld_large_toc+:} false; then :
30428 $as_echo_n "(cached) " >&6
30429 else
30430 gcc_cv_ld_large_toc=no
30431 if test x"$ld_is_gold" = xyes; then
30432 gcc_cv_ld_large_toc=yes
30433 elif test $in_tree_ld = yes ; then
30434 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
30435 gcc_cv_ld_large_toc=yes
30436 fi
30437 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30438 cat > conftest.s <<EOF
30439 .section ".tbss","awT",@nobits
30440 .align 3
30441 ie0: .space 8
30442 .global _start
30443 .text
30444 _start:
30445 addis 9,13,ie0@got@tprel@ha
30446 ld 9,ie0@got@tprel@l(9)
30447 EOF
30448 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30449 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
30450 gcc_cv_ld_large_toc=yes
30451 fi
30452 rm -f conftest conftest.o conftest.s
30453 fi
30454
30455 fi
30456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30457 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30458 if test x"$gcc_cv_ld_large_toc" = xyes; then
30459
30460 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30461
30462 fi
30463
30464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30465 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30466 if ${gcc_cv_ld_toc_align+:} false; then :
30467 $as_echo_n "(cached) " >&6
30468 else
30469 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
30470 cat > conftest.s <<EOF
30471 .global _start
30472 .text
30473 _start:
30474 addis 9,2,x@got@ha
30475 .section .data.rel.ro,"aw",@progbits
30476 .p2align 16
30477 .space 32768
30478 x: .quad .TOC.
30479 EOF
30480 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30481 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
30482 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)) }'`
30483 fi
30484 rm -f conftest conftest.o conftest.s
30485 fi
30486
30487 fi
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30489 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30490 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30491
30492 cat >>confdefs.h <<_ACEOF
30493 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30494 _ACEOF
30495
30496 fi
30497 ;;
30498 esac
30499
30500 case "$target" in
30501 *-*-aix*)
30502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30503 $as_echo_n "checking linker large toc support... " >&6; }
30504 if ${gcc_cv_ld_large_toc+:} false; then :
30505 $as_echo_n "(cached) " >&6
30506 else
30507 gcc_cv_ld_large_toc=no
30508 if test x$gcc_cv_as != x ; then
30509 cat > conftest.s <<EOF
30510 .toc
30511 LC..1:
30512 .tc a[TC],a[RW]
30513 .extern a[RW]
30514 .csect .text[PR]
30515 .largetoctest:
30516 addis 9,LC..1@u(2)
30517 ld 3,LC..1@l(9)
30518 EOF
30519 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
30520 gcc_cv_ld_large_toc=yes
30521 fi
30522 rm -f conftest conftest.o conftest.s
30523 fi
30524
30525 fi
30526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30527 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30528 if test x"$gcc_cv_ld_large_toc" = xyes; then
30529
30530 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30531
30532 fi
30533 ;;
30534 esac
30535
30536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30537 $as_echo_n "checking linker --build-id support... " >&6; }
30538 if ${gcc_cv_ld_buildid+:} false; then :
30539 $as_echo_n "(cached) " >&6
30540 else
30541 gcc_cv_ld_buildid=no
30542 if test $in_tree_ld = yes ; then
30543 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30544 "$gcc_cv_gld_minor_version" -ge 18 -o \
30545 "$gcc_cv_gld_major_version" -gt 2 \
30546 && test $in_tree_ld_is_elf = yes; then
30547 gcc_cv_ld_buildid=yes
30548 fi
30549 elif test x$gcc_cv_ld != x; then
30550 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
30551 gcc_cv_ld_buildid=yes
30552 fi
30553 fi
30554 fi
30555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30556 $as_echo "$gcc_cv_ld_buildid" >&6; }
30557 if test x"$gcc_cv_ld_buildid" = xyes; then
30558
30559 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30560
30561 fi
30562
30563 # Check whether --enable-linker-build-id was given.
30564 if test "${enable_linker_build_id+set}" = set; then :
30565 enableval=$enable_linker_build_id;
30566 else
30567 enable_linker_build_id=no
30568 fi
30569
30570
30571 if test x"$enable_linker_build_id" = xyes; then
30572 if test x"$gcc_cv_ld_buildid" = xyes; then
30573
30574 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30575
30576 else
30577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30578 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30579 fi
30580 fi
30581
30582 # In binutils 2.21, GNU ld gained support for new emulations fully
30583 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
30584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30585 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30586 if ${gcc_cv_ld_sol2_emulation+:} false; then :
30587 $as_echo_n "(cached) " >&6
30588 else
30589 gcc_cv_ld_sol2_emulation=no
30590 if test $in_tree_ld = yes ; then
30591 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30592 "$gcc_cv_gld_minor_version" -ge 21 -o \
30593 "$gcc_cv_gld_major_version" -gt 2 \
30594 && test $in_tree_ld_is_elf = yes; then
30595 gcc_cv_ld_sol2_emulation=yes
30596 fi
30597 elif test x$gcc_cv_ld != x; then
30598 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
30599 grep _sol2 > /dev/null; then
30600 gcc_cv_ld_sol2_emulation=yes
30601 fi
30602 fi
30603 fi
30604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30605 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30606 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
30607
30608 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
30609
30610 fi
30611
30612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
30613 $as_echo_n "checking linker --sysroot support... " >&6; }
30614 if ${gcc_cv_ld_sysroot+:} false; then :
30615 $as_echo_n "(cached) " >&6
30616 else
30617 gcc_cv_ld_sysroot=no
30618 if test $in_tree_ld = yes ; then
30619 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
30620 gcc_cv_ld_sysroot=yes
30621 fi
30622 elif test x$gcc_cv_ld != x; then
30623 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
30624 gcc_cv_ld_sysroot=yes
30625 fi
30626 fi
30627 fi
30628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
30629 $as_echo "$gcc_cv_ld_sysroot" >&6; }
30630 if test x"$gcc_cv_ld_sysroot" = xyes; then
30631
30632 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
30633
30634 fi
30635
30636 case $target in
30637 *-*-solaris2*)
30638 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
30639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
30640 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
30641 if ${gcc_cv_solaris_crts+:} false; then :
30642 $as_echo_n "(cached) " >&6
30643 else
30644 gcc_cv_solaris_crts=no
30645 if test x$host != x$target; then
30646 if test "x$with_sysroot" = xyes; then
30647 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
30648 else
30649 target_sysroot="${with_sysroot}"
30650 fi
30651 fi
30652 target_libdir="$target_sysroot/usr/lib"
30653 # At the time they were added, gcrt1.o became a symlink for backwards
30654 # compatibility on x86, while crt1.o was added on sparc, so check for that.
30655 case $target in
30656 i?86-*-solaris2* | x86_64-*-solaris2*)
30657 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
30658 ;;
30659 sparc*-*-solaris2*)
30660 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
30661 ;;
30662 esac
30663 fi
30664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
30665 $as_echo "$gcc_cv_solaris_crts" >&6; }
30666 ;;
30667 esac
30668 if test x$gcc_cv_solaris_crts = xyes; then
30669
30670 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
30671
30672 fi
30673
30674 # Check whether --enable-libssp was given.
30675 if test "${enable_libssp+set}" = set; then :
30676 enableval=$enable_libssp; case "${enableval}" in
30677 yes|no)
30678 ;;
30679 *)
30680 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
30681 ;;
30682 esac
30683 fi
30684
30685
30686 # Test for stack protector support in target C library.
30687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
30688 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
30689 if ${gcc_cv_libc_provides_ssp+:} false; then :
30690 $as_echo_n "(cached) " >&6
30691 else
30692 gcc_cv_libc_provides_ssp=no
30693 if test "x$enable_libssp" = "xno"; then
30694 gcc_cv_libc_provides_ssp=yes
30695 elif test "x$enable_libssp" = "xyes"; then
30696 gcc_cv_libc_provides_ssp=no
30697 else
30698 case "$target" in
30699 *-*-musl*)
30700 # All versions of musl provide stack protector
30701 gcc_cv_libc_provides_ssp=yes;;
30702 *-*-linux* | *-*-kfreebsd*-gnu)
30703 # glibc 2.4 and later provides __stack_chk_fail and
30704 # either __stack_chk_guard, or TLS access to stack guard canary.
30705
30706 if test $glibc_version_major -gt 2 \
30707 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30708 gcc_cv_libc_provides_ssp=yes
30709 else
30710
30711 if test -f $target_header_dir/features.h \
30712 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
30713 $target_header_dir/features.h > /dev/null; then
30714 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
30715 $target_header_dir/features.h > /dev/null && \
30716 test -f $target_header_dir/bits/uClibc_config.h && \
30717 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
30718 $target_header_dir/bits/uClibc_config.h > /dev/null; then
30719 gcc_cv_libc_provides_ssp=yes
30720 fi
30721 # all versions of Bionic support stack protector
30722 elif test -f $target_header_dir/sys/cdefs.h \
30723 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
30724 $target_header_dir/sys/cdefs.h > /dev/null; then
30725 gcc_cv_libc_provides_ssp=yes
30726 fi
30727 fi
30728 ;;
30729 *-*-gnu*)
30730 # Avoid complicated tests (see
30731 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
30732 # simply assert that glibc does provide this, which is true for all
30733 # realistically usable GNU/Hurd configurations.
30734 # All supported versions of musl provide it as well
30735 gcc_cv_libc_provides_ssp=yes;;
30736 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
30737 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
30738 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
30739 gcc_cv_libc_provides_ssp=yes
30740 else
30741 echo "no __stack_chk_fail on this target"
30742 fi
30743
30744 ;;
30745 *) gcc_cv_libc_provides_ssp=no ;;
30746 esac
30747 fi
30748 fi
30749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
30750 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
30751
30752 if test x$gcc_cv_libc_provides_ssp = xyes; then
30753
30754 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
30755
30756 fi
30757
30758 # Check whether --enable-default-ssp was given.
30759 # Check whether --enable-default-ssp was given.
30760 if test "${enable_default_ssp+set}" = set; then :
30761 enableval=$enable_default_ssp;
30762 if test x$gcc_cv_libc_provides_ssp = xyes; then
30763 case "$target" in
30764 ia64*-*-*) enable_default_ssp=no ;;
30765 *) enable_default_ssp=$enableval ;;
30766 esac
30767 else
30768 enable_default_ssp=no
30769 fi
30770 else
30771 enable_default_ssp=no
30772 fi
30773
30774 if test x$enable_default_ssp = xyes ; then
30775
30776 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
30777
30778 fi
30779
30780
30781 # Test for <sys/sdt.h> on the target.
30782
30783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
30784 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
30785 have_sys_sdt_h=no
30786 if test -f $target_header_dir/sys/sdt.h; then
30787 have_sys_sdt_h=yes
30788
30789 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
30790
30791 fi
30792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
30793 $as_echo "$have_sys_sdt_h" >&6; }
30794
30795 # Check if TFmode long double should be used by default or not.
30796 # Some glibc targets used DFmode long double, but with glibc 2.4
30797 # and later they can use TFmode.
30798 case "$target" in
30799 powerpc*-*-linux* | \
30800 sparc*-*-linux* | \
30801 s390*-*-linux* | \
30802 alpha*-*-linux*)
30803
30804 # Check whether --with-long-double-128 was given.
30805 if test "${with_long_double_128+set}" = set; then :
30806 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
30807 else
30808
30809 case "$target" in
30810 s390*-*-linux-musl*)
30811 gcc_cv_target_ldbl128=yes
30812 ;;
30813 powerpc*-*-linux-musl*)
30814 gcc_cv_target_ldbl128=no
30815 ;;
30816 *)
30817
30818 if test $glibc_version_major -gt 2 \
30819 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30820 gcc_cv_target_ldbl128=yes
30821 else
30822
30823 gcc_cv_target_ldbl128=no
30824 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
30825 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
30826 && gcc_cv_target_ldbl128=yes
30827
30828 fi
30829
30830 ;;
30831 esac
30832
30833 fi
30834
30835 ;;
30836 esac
30837 if test x$gcc_cv_target_ldbl128 = xyes; then
30838
30839 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
30840
30841 fi
30842
30843 # Check if TFmode long double target should use the IBM extended double or IEEE
30844 # 128-bit floating point formats if long doubles are 128-bits long. The long
30845 # double type can only be switched on powerpc64 bit Linux systems where VSX is
30846 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
30847 # libgcc.
30848
30849 # Check whether --with-long-double-format was given.
30850 if test "${with_long_double_format+set}" = set; then :
30851 withval=$with_long_double_format;
30852 case "$target:$with_long_double_format" in
30853 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
30854 :
30855 ;;
30856 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
30857 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
30858 case "$with_cpu" in
30859 power7 | power8 | power9 | power1*)
30860 :
30861 ;;
30862 *)
30863 as_fn_error $? "Configuration option --with-long-double-format is only \
30864 supported if the default cpu is power7 or newer" "$LINENO" 5
30865 with_long_double_format=""
30866 ;;
30867 esac
30868 ;;
30869 xpowerpc64*-*-linux*:*)
30870 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
30871 with_long_double_format=""
30872 ;;
30873 *)
30874 as_fn_error $? "Configure option --with-long-double-format is only supported \
30875 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
30876 with_long_double_format=""
30877 ;;
30878 esac
30879 fi
30880
30881
30882 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
30883 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
30884 gcc_cv_libc_provides_hwcap_in_tcb=no
30885 case "$target" in
30886 powerpc*-*-linux*)
30887
30888 if test $glibc_version_major -gt 2 \
30889 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
30890 gcc_cv_libc_provides_hwcap_in_tcb=yes
30891 fi
30892 ;;
30893 esac
30894 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
30895
30896 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
30897
30898 fi
30899
30900 # Check if the target LIBC handles PT_GNU_STACK.
30901 gcc_cv_libc_gnustack=unknown
30902 case "$target" in
30903 mips*-*-linux*)
30904
30905 if test $glibc_version_major -gt 2 \
30906 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
30907 gcc_cv_libc_gnustack=yes
30908 fi
30909 ;;
30910 esac
30911 if test x$gcc_cv_libc_gnustack = xyes; then
30912
30913 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
30914
30915 fi
30916
30917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
30918 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
30919 gcc_cv_target_dl_iterate_phdr=unknown
30920 case "$target" in
30921 *-*-solaris2*)
30922 # <link.h> needs both a dl_iterate_phdr declaration and support for
30923 # compilation with largefile support.
30924 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
30925 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
30926 gcc_cv_target_dl_iterate_phdr=yes
30927 else
30928 gcc_cv_target_dl_iterate_phdr=no
30929 fi
30930 ;;
30931 *-*-dragonfly* | *-*-freebsd*)
30932 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
30933 gcc_cv_target_dl_iterate_phdr=yes
30934 else
30935 gcc_cv_target_dl_iterate_phdr=no
30936 fi
30937 ;;
30938 *-linux-musl*)
30939 gcc_cv_target_dl_iterate_phdr=yes
30940 ;;
30941 esac
30942
30943 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
30944
30945 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
30946
30947 fi
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
30949 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
30950
30951 # We no longer support different GC mechanisms. Emit an error if
30952 # the user configures with --with-gc.
30953
30954 # Check whether --with-gc was given.
30955 if test "${with_gc+set}" = set; then :
30956 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
30957 fi
30958
30959
30960 # Libraries to use on the host. This will normally be set by the top
30961 # level Makefile. Here we simply capture the value for our Makefile.
30962 if test -z "${HOST_LIBS+set}"; then
30963 HOST_LIBS=
30964 fi
30965
30966
30967 # Use the system's zlib library.
30968
30969 # Use the system's zlib library.
30970 zlibdir="-L\$(top_builddir)/../zlib"
30971 zlibinc="-I\$(top_srcdir)/../zlib"
30972
30973 # Check whether --with-system-zlib was given.
30974 if test "${with_system_zlib+set}" = set; then :
30975 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
30976 zlibdir=
30977 zlibinc=
30978 fi
30979
30980 fi
30981
30982
30983
30984
30985
30986
30987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
30988 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
30989 # Check whether --enable-maintainer-mode was given.
30990 if test "${enable_maintainer_mode+set}" = set; then :
30991 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
30992 else
30993 maintainer_mode=no
30994 fi
30995
30996
30997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
30998 $as_echo "$maintainer_mode" >&6; }
30999
31000 if test "$maintainer_mode" = "yes"; then
31001 MAINT=''
31002 else
31003 MAINT='#'
31004 fi
31005
31006
31007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31008 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31009 # Check whether --enable-link-mutex was given.
31010 if test "${enable_link_mutex+set}" = set; then :
31011 enableval=$enable_link_mutex; do_link_mutex=$enableval
31012 else
31013 do_link_mutex=no
31014 fi
31015
31016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31017 $as_echo "$do_link_mutex" >&6; }
31018
31019 if test "$do_link_mutex" = "yes"; then
31020 DO_LINK_MUTEX=true
31021 else
31022 DO_LINK_MUTEX=false
31023 fi
31024
31025
31026 # --------------
31027 # Language hooks
31028 # --------------
31029
31030 # Make empty files to contain the specs and options for each language.
31031 # Then add #include lines to for a compiler that has specs and/or options.
31032
31033 subdirs=
31034 lang_opt_files=
31035 lang_specs_files=
31036 lang_tree_files=
31037 # These (without "all_") are set in each config-lang.in.
31038 # `language' must be a single word so is spelled singularly.
31039 all_languages=
31040 all_compilers=
31041 all_outputs='Makefile'
31042 # List of language configure and makefile fragments.
31043 all_lang_configurefrags=
31044 all_lang_makefrags=
31045 # Additional files for gengtype
31046 all_gtfiles="$target_gtfiles"
31047
31048 # These are the languages that are set in --enable-languages,
31049 # and are available in the GCC tree.
31050 all_selected_languages=
31051
31052 # Add the language fragments.
31053 # Languages are added via two mechanisms. Some information must be
31054 # recorded in makefile variables, these are defined in config-lang.in.
31055 # We accumulate them and plug them into the main Makefile.
31056 # The other mechanism is a set of hooks for each of the main targets
31057 # like `clean', `install', etc.
31058
31059 language_hooks="Make-hooks"
31060
31061 for lang in ${srcdir}/*/config-lang.in
31062 do
31063 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31064
31065 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31066 if test "x$lang_alias" = x
31067 then
31068 echo "$lang doesn't set \$language." 1>&2
31069 exit 1
31070 fi
31071 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31072 subdirs="$subdirs $subdir"
31073
31074 # $gcc_subdir is where the gcc integration files are to be found
31075 # for a language, both for internal compiler purposes (compiler
31076 # sources implementing front-end to GCC tree converters), and for
31077 # build infrastructure purposes (Make-lang.in, etc.)
31078 #
31079 # This will be <subdir> (relative to $srcdir) if a line like
31080 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31081 # is found in <langdir>/config-lang.in, and will remain <langdir>
31082 # otherwise.
31083 #
31084 # Except for the language alias (fetched above), the regular
31085 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31086 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31087 # only this and the language alias.
31088
31089 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31090 if [ "$gcc_subdir" = "" ]; then
31091 gcc_subdir="$subdir"
31092 fi
31093
31094 case ",$enable_languages," in
31095 *,$lang_alias,*)
31096 all_selected_languages="$all_selected_languages $lang_alias"
31097 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31098 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31099 fi
31100 ;;
31101 esac
31102
31103 language=
31104 boot_language=
31105 compilers=
31106 outputs=
31107 gtfiles=
31108 subdir_requires=
31109 . ${srcdir}/$gcc_subdir/config-lang.in
31110 if test "x$language" = x
31111 then
31112 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31113 exit 1
31114 fi
31115
31116 ok=:
31117 case ",$enable_languages," in
31118 *,$lang_alias,*) ;;
31119 *)
31120 for i in $subdir_requires; do
31121 test -f "${srcdir}/$i/config-lang.in" && continue
31122 ok=false
31123 break
31124 done
31125 ;;
31126 esac
31127 $ok || continue
31128
31129 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31130 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31131 if test -f $srcdir/$gcc_subdir/lang.opt; then
31132 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31133 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31134 fi
31135 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31136 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31137 fi
31138 all_languages="$all_languages $language"
31139 all_compilers="$all_compilers $compilers"
31140 all_outputs="$all_outputs $outputs"
31141 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31142 case ",$enable_languages," in
31143 *,lto,*)
31144
31145 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31146
31147 enable_lto=yes
31148
31149 ;;
31150 *) ;;
31151 esac
31152 done
31153
31154 check_languages=
31155 for language in $all_selected_languages
31156 do
31157 check_languages="$check_languages check-$language"
31158 done
31159
31160 selftest_languages=
31161 for language in $all_selected_languages
31162 do
31163 selftest_languages="$selftest_languages selftest-$language"
31164 done
31165
31166 # We link each language in with a set of hooks, reached indirectly via
31167 # lang.${target}. Only do so for selected languages.
31168
31169 rm -f Make-hooks
31170 touch Make-hooks
31171 target_list="all.cross start.encap rest.encap tags \
31172 install-common install-man install-info install-pdf install-html dvi \
31173 pdf html uninstall info man srcextra srcman srcinfo \
31174 mostlyclean clean distclean maintainer-clean install-plugin"
31175
31176 for t in $target_list
31177 do
31178 x=
31179 for lang in $all_selected_languages
31180 do
31181 x="$x $lang.$t"
31182 done
31183 echo "lang.$t: $x" >> Make-hooks
31184 done
31185
31186 # --------
31187 # Option include files
31188 # --------
31189
31190 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31191 option_includes="option-includes.mk"
31192
31193
31194 # --------
31195 # UNSORTED
31196 # --------
31197
31198 # Create .gdbinit.
31199
31200 echo "dir ." > .gdbinit
31201 echo "dir ${srcdir}" >> .gdbinit
31202 if test x$gdb_needs_out_file_path = xyes
31203 then
31204 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31205 fi
31206 if test "x$subdirs" != x; then
31207 for s in $subdirs
31208 do
31209 echo "dir ${srcdir}/$s" >> .gdbinit
31210 done
31211 fi
31212 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31213 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31214
31215 # Put a breakpoint on __asan_report_error to help with debugging buffer
31216 # overflow.
31217 case "$CFLAGS" in
31218 *-fsanitize=address*)
31219 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31220 ;;
31221 esac
31222
31223 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31224
31225
31226
31227 # Find a directory in which to install a shared libgcc.
31228
31229 # Check whether --enable-version-specific-runtime-libs was given.
31230 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31231 enableval=$enable_version_specific_runtime_libs;
31232 fi
31233
31234
31235 # Substitute configuration variables
31236
31237
31238
31239
31240
31241
31242
31243
31244
31245
31246
31247
31248
31249
31250
31251
31252
31253
31254
31255
31256
31257
31258
31259
31260
31261
31262
31263
31264
31265
31266
31267
31268
31269
31270
31271
31272
31273
31274
31275
31276
31277
31278
31279
31280
31281
31282
31283
31284
31285
31286
31287
31288
31289
31290
31291
31292
31293
31294
31295
31296
31297
31298
31299
31300
31301
31302
31303 # Echo link setup.
31304 if test x${build} = x${host} ; then
31305 if test x${host} = x${target} ; then
31306 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31307 else
31308 echo "Links are now set up to build a cross-compiler" 1>&2
31309 echo " from ${host} to ${target}." 1>&2
31310 fi
31311 else
31312 if test x${host} = x${target} ; then
31313 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31314 echo " for ${target}." 1>&2
31315 else
31316 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31317 echo " from ${host} to ${target}." 1>&2
31318 fi
31319 fi
31320
31321
31322
31323
31324
31325
31326 if test "x${ISLLIBS}" != "x" ; then
31327
31328 $as_echo "#define HAVE_isl 1" >>confdefs.h
31329
31330 fi
31331
31332 # Check for plugin support
31333 # Check whether --enable-plugin was given.
31334 if test "${enable_plugin+set}" = set; then :
31335 enableval=$enable_plugin; enable_plugin=$enableval
31336 else
31337 enable_plugin=yes; default_plugin=yes
31338 fi
31339
31340
31341 pluginlibs=
31342 plugin_check=yes
31343
31344 case "${host}" in
31345 *-*-mingw*)
31346 # Since plugin support under MinGW is not as straightforward as on
31347 # other platforms (e.g., we have to link import library, etc), we
31348 # only enable it if explicitly requested.
31349 if test x"$default_plugin" = x"yes"; then
31350 enable_plugin=no
31351 elif test x"$enable_plugin" = x"yes"; then
31352 # Use make's target variable to derive import library name.
31353 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31354 plugin_check=no
31355 fi
31356 ;;
31357 *-*-darwin*)
31358 if test x$build = x$host; then
31359 export_sym_check="nm${exeext} -g"
31360 elif test x$host = x$target; then
31361 export_sym_check="$gcc_cv_nm -g"
31362 else
31363 export_sym_check=
31364 fi
31365 ;;
31366 *)
31367 if test x$build = x$host; then
31368 export_sym_check="objdump${exeext} -T"
31369 elif test x$host = x$target; then
31370 export_sym_check="$gcc_cv_objdump -T"
31371 else
31372 export_sym_check=
31373 fi
31374 ;;
31375 esac
31376
31377 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
31378
31379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31380 $as_echo_n "checking for exported symbols... " >&6; }
31381 if test "x$export_sym_check" != x; then
31382 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31383 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31384 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31385 : # No need to use a flag
31386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31387 $as_echo "yes" >&6; }
31388 else
31389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31390 $as_echo "yes" >&6; }
31391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31392 $as_echo_n "checking for -rdynamic... " >&6; }
31393 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31394 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31395 plugin_rdynamic=yes
31396 pluginlibs="-rdynamic"
31397 else
31398 plugin_rdynamic=no
31399 enable_plugin=no
31400 fi
31401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31402 $as_echo "$plugin_rdynamic" >&6; }
31403 fi
31404 else
31405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31406 $as_echo "unable to check" >&6; }
31407 fi
31408
31409 # Check -ldl
31410 saved_LIBS="$LIBS"
31411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31412 $as_echo_n "checking for library containing dlopen... " >&6; }
31413 if ${ac_cv_search_dlopen+:} false; then :
31414 $as_echo_n "(cached) " >&6
31415 else
31416 ac_func_search_save_LIBS=$LIBS
31417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31418 /* end confdefs.h. */
31419
31420 /* Override any GCC internal prototype to avoid an error.
31421 Use char because int might match the return type of a GCC
31422 builtin and then its argument prototype would still apply. */
31423 #ifdef __cplusplus
31424 extern "C"
31425 #endif
31426 char dlopen ();
31427 int
31428 main ()
31429 {
31430 return dlopen ();
31431 ;
31432 return 0;
31433 }
31434 _ACEOF
31435 for ac_lib in '' dl; do
31436 if test -z "$ac_lib"; then
31437 ac_res="none required"
31438 else
31439 ac_res=-l$ac_lib
31440 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31441 fi
31442 if ac_fn_cxx_try_link "$LINENO"; then :
31443 ac_cv_search_dlopen=$ac_res
31444 fi
31445 rm -f core conftest.err conftest.$ac_objext \
31446 conftest$ac_exeext
31447 if ${ac_cv_search_dlopen+:} false; then :
31448 break
31449 fi
31450 done
31451 if ${ac_cv_search_dlopen+:} false; then :
31452
31453 else
31454 ac_cv_search_dlopen=no
31455 fi
31456 rm conftest.$ac_ext
31457 LIBS=$ac_func_search_save_LIBS
31458 fi
31459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31460 $as_echo "$ac_cv_search_dlopen" >&6; }
31461 ac_res=$ac_cv_search_dlopen
31462 if test "$ac_res" != no; then :
31463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31464
31465 fi
31466
31467 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
31468 pluginlibs="$pluginlibs -ldl"
31469 fi
31470 LIBS="$saved_LIBS"
31471
31472 # Check that we can build shared objects with -fPIC -shared
31473 saved_LDFLAGS="$LDFLAGS"
31474 saved_CFLAGS="$CFLAGS"
31475 case "${host}" in
31476 *-*-darwin*)
31477 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
31478 CFLAGS="$CFLAGS -fPIC"
31479 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
31480 ;;
31481 *)
31482 CFLAGS="$CFLAGS -fPIC"
31483 LDFLAGS="$LDFLAGS -fPIC -shared"
31484 ;;
31485 esac
31486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
31487 $as_echo_n "checking for -fPIC -shared... " >&6; }
31488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31489 /* end confdefs.h. */
31490 extern int X;
31491 int
31492 main ()
31493 {
31494 return X == 0;
31495 ;
31496 return 0;
31497 }
31498 _ACEOF
31499 if ac_fn_cxx_try_link "$LINENO"; then :
31500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31501 $as_echo "yes" >&6; }; have_pic_shared=yes
31502 else
31503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31504 $as_echo "no" >&6; }; have_pic_shared=no
31505 fi
31506 rm -f core conftest.err conftest.$ac_objext \
31507 conftest$ac_exeext conftest.$ac_ext
31508 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
31509 pluginlibs=
31510 enable_plugin=no
31511 fi
31512 LDFLAGS="$saved_LDFLAGS"
31513 CFLAGS="$saved_CFLAGS"
31514
31515 # If plugin support had been requested but not available, fail.
31516 if test x"$enable_plugin" = x"no" ; then
31517 if test x"$default_plugin" != x"yes"; then
31518 as_fn_error $? "
31519 Building GCC with plugin support requires a host that supports
31520 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
31521 fi
31522 fi
31523 fi
31524
31525
31526
31527 if test x"$enable_plugin" = x"yes"; then
31528
31529 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
31530
31531 fi
31532
31533
31534 # Enable --enable-host-shared
31535 # Check whether --enable-host-shared was given.
31536 if test "${enable_host_shared+set}" = set; then :
31537 enableval=$enable_host_shared; PICFLAG=-fPIC
31538 else
31539 PICFLAG=
31540 fi
31541
31542
31543
31544
31545
31546 # Check whether --enable-libquadmath-support was given.
31547 if test "${enable_libquadmath_support+set}" = set; then :
31548 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
31549 else
31550 ENABLE_LIBQUADMATH_SUPPORT=yes
31551 fi
31552
31553 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
31554
31555 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
31556
31557 fi
31558
31559
31560 # Specify what hash style to use by default.
31561
31562 # Check whether --with-linker-hash-style was given.
31563 if test "${with_linker_hash_style+set}" = set; then :
31564 withval=$with_linker_hash_style; case x"$withval" in
31565 xsysv)
31566 LINKER_HASH_STYLE=sysv
31567 ;;
31568 xgnu)
31569 LINKER_HASH_STYLE=gnu
31570 ;;
31571 xboth)
31572 LINKER_HASH_STYLE=both
31573 ;;
31574 *)
31575 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
31576 ;;
31577 esac
31578 else
31579 LINKER_HASH_STYLE=''
31580 fi
31581
31582 if test x"${LINKER_HASH_STYLE}" != x; then
31583
31584 cat >>confdefs.h <<_ACEOF
31585 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
31586 _ACEOF
31587
31588 fi
31589
31590 # Specify what should be the default of -fdiagnostics-color option.
31591
31592 # Check whether --with-diagnostics-color was given.
31593 if test "${with_diagnostics_color+set}" = set; then :
31594 withval=$with_diagnostics_color; case x"$withval" in
31595 xnever)
31596 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
31597 ;;
31598 xauto)
31599 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
31600 ;;
31601 xauto-if-env)
31602 DIAGNOSTICS_COLOR_DEFAULT=-1
31603 ;;
31604 xalways)
31605 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
31606 ;;
31607 *)
31608 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
31609 ;;
31610 esac
31611 else
31612 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
31613 fi
31614
31615
31616 cat >>confdefs.h <<_ACEOF
31617 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
31618 _ACEOF
31619
31620
31621 # Specify what should be the default of -fdiagnostics-urls option.
31622
31623 # Check whether --with-diagnostics-urls was given.
31624 if test "${with_diagnostics_urls+set}" = set; then :
31625 withval=$with_diagnostics_urls; case x"$withval" in
31626 xnever)
31627 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
31628 ;;
31629 xauto)
31630 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
31631 ;;
31632 xauto-if-env)
31633 DIAGNOSTICS_URLS_DEFAULT=-1
31634 ;;
31635 xalways)
31636 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
31637 ;;
31638 *)
31639 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
31640 ;;
31641 esac
31642 else
31643 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
31644 fi
31645
31646
31647 cat >>confdefs.h <<_ACEOF
31648 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
31649 _ACEOF
31650
31651
31652 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
31653 # of jit/jit-playback.c.
31654 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
31655 echo "gcc_driver_version: ${gcc_driver_version}"
31656 cat > gcc-driver-name.h <<EOF
31657 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
31658 EOF
31659
31660 # Check whether --enable-default-pie was given.
31661 # Check whether --enable-default-pie was given.
31662 if test "${enable_default_pie+set}" = set; then :
31663 enableval=$enable_default_pie; enable_default_pie=$enableval
31664 else
31665 enable_default_pie=no
31666 fi
31667
31668 if test x$enable_default_pie = xyes ; then
31669
31670 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
31671
31672 fi
31673
31674
31675 # Check if -fno-PIE works.
31676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
31677 $as_echo_n "checking for -fno-PIE option... " >&6; }
31678 if ${gcc_cv_c_no_fpie+:} false; then :
31679 $as_echo_n "(cached) " >&6
31680 else
31681 saved_CXXFLAGS="$CXXFLAGS"
31682 CXXFLAGS="$CXXFLAGS -fno-PIE"
31683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31684 /* end confdefs.h. */
31685 int main(void) {return 0;}
31686 _ACEOF
31687 if ac_fn_cxx_try_compile "$LINENO"; then :
31688 gcc_cv_c_no_fpie=yes
31689 else
31690 gcc_cv_c_no_fpie=no
31691 fi
31692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31693 CXXFLAGS="$saved_CXXFLAGS"
31694 fi
31695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
31696 $as_echo "$gcc_cv_c_no_fpie" >&6; }
31697 if test "$gcc_cv_c_no_fpie" = "yes"; then
31698 NO_PIE_CFLAGS="-fno-PIE"
31699 fi
31700
31701
31702 # Check if -no-pie works.
31703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
31704 $as_echo_n "checking for -no-pie option... " >&6; }
31705 if ${gcc_cv_no_pie+:} false; then :
31706 $as_echo_n "(cached) " >&6
31707 else
31708 saved_LDFLAGS="$LDFLAGS"
31709 LDFLAGS="$LDFLAGS -no-pie"
31710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31711 /* end confdefs.h. */
31712 int main(void) {return 0;}
31713 _ACEOF
31714 if ac_fn_cxx_try_link "$LINENO"; then :
31715 gcc_cv_no_pie=yes
31716 else
31717 gcc_cv_no_pie=no
31718 fi
31719 rm -f core conftest.err conftest.$ac_objext \
31720 conftest$ac_exeext conftest.$ac_ext
31721 LDFLAGS="$saved_LDFLAGS"
31722 fi
31723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
31724 $as_echo "$gcc_cv_no_pie" >&6; }
31725 if test "$gcc_cv_no_pie" = "yes"; then
31726 NO_PIE_FLAG="-no-pie"
31727 fi
31728
31729
31730 # Enable Intel CET on Intel CET enabled host if jit is enabled.
31731 # Check whether --enable-cet was given.
31732 if test "${enable_cet+set}" = set; then :
31733 enableval=$enable_cet;
31734 case "$enableval" in
31735 yes|no|auto) ;;
31736 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
31737 esac
31738
31739 else
31740 enable_cet=auto
31741 fi
31742
31743
31744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
31745 $as_echo_n "checking for CET support... " >&6; }
31746
31747 case "$host" in
31748 i[34567]86-*-linux* | x86_64-*-linux*)
31749 may_have_cet=yes
31750 cet_save_CFLAGS="$CFLAGS"
31751 CFLAGS="$CFLAGS -fcf-protection"
31752 case "$enable_cet" in
31753 auto)
31754 # Check if target supports multi-byte NOPs
31755 # and if assembler supports CET insn.
31756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31757 /* end confdefs.h. */
31758
31759 int
31760 main ()
31761 {
31762
31763 #if !defined(__SSE2__)
31764 #error target does not support multi-byte NOPs
31765 #else
31766 asm ("setssbsy");
31767 #endif
31768
31769 ;
31770 return 0;
31771 }
31772 _ACEOF
31773 if ac_fn_cxx_try_compile "$LINENO"; then :
31774 enable_cet=yes
31775 else
31776 enable_cet=no
31777 fi
31778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31779 ;;
31780 yes)
31781 # Check if assembler supports CET.
31782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31783 /* end confdefs.h. */
31784
31785 int
31786 main ()
31787 {
31788 asm ("setssbsy");
31789 ;
31790 return 0;
31791 }
31792 _ACEOF
31793 if ac_fn_cxx_try_compile "$LINENO"; then :
31794
31795 else
31796 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
31797 fi
31798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31799 ;;
31800 esac
31801 CFLAGS="$cet_save_CFLAGS"
31802 ;;
31803 *)
31804 may_have_cet=no
31805 enable_cet=no
31806 ;;
31807 esac
31808
31809 cet_save_CFLAGS="$CFLAGS"
31810 CFLAGS="$CFLAGS -fcf-protection=none"
31811 cet_save_LDFLAGS="$LDFLAGS"
31812 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
31813 if test x$may_have_cet = xyes; then
31814 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
31815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31816 /* end confdefs.h. */
31817
31818 int
31819 main ()
31820 {
31821 return 0;
31822 ;
31823 return 0;
31824 }
31825 _ACEOF
31826 if ac_fn_cxx_try_link "$LINENO"; then :
31827 may_have_cet=yes
31828 else
31829 may_have_cet=no
31830 fi
31831 rm -f core conftest.err conftest.$ac_objext \
31832 conftest$ac_exeext conftest.$ac_ext
31833 fi
31834
31835 if test x$may_have_cet = xyes; then
31836 if test x$cross_compiling = xno; then
31837 if test "$cross_compiling" = yes; then :
31838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31840 as_fn_error $? "cannot run test program while cross compiling
31841 See \`config.log' for more details" "$LINENO" 5; }
31842 else
31843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31844 /* end confdefs.h. */
31845
31846 static void
31847 foo (void)
31848 {
31849 }
31850
31851 static void
31852 __attribute__ ((noinline, noclone))
31853 xxx (void (*f) (void))
31854 {
31855 f ();
31856 }
31857
31858 static void
31859 __attribute__ ((noinline, noclone))
31860 bar (void)
31861 {
31862 xxx (foo);
31863 }
31864
31865 int
31866 main ()
31867 {
31868 bar ();
31869 return 0;
31870 }
31871
31872 _ACEOF
31873 if ac_fn_cxx_try_run "$LINENO"; then :
31874 have_cet=no
31875 else
31876 have_cet=yes
31877 fi
31878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31879 conftest.$ac_objext conftest.beam conftest.$ac_ext
31880 fi
31881
31882 if test x$enable_cet = xno -a x$have_cet = xyes; then
31883 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
31884 fi
31885 fi
31886 else
31887 # Enable CET in cross compiler if possible so that it will run on both
31888 # CET and non-CET hosts.
31889 have_cet=yes
31890 fi
31891 if test x$enable_cet = xyes; then
31892 CET_HOST_FLAGS="-fcf-protection"
31893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31894 $as_echo "yes" >&6; }
31895 else
31896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31897 $as_echo "no" >&6; }
31898 fi
31899 CFLAGS="$cet_save_CFLAGS"
31900 LDFLAGS="$cet_save_LDFLAGS"
31901
31902 case x$enable_languages in
31903 *jit*)
31904 ;;
31905 *)
31906 CET_HOST_FLAGS=
31907 ;;
31908 esac
31909
31910
31911 # Check linker supports '-z bndplt'
31912 ld_bndplt_support=no
31913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
31914 $as_echo_n "checking linker -z bndplt option... " >&6; }
31915 if test x"$ld_is_gold" = xno; then
31916 if test $in_tree_ld = yes ; then
31917 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
31918 ld_bndplt_support=yes
31919 fi
31920 elif test x$gcc_cv_ld != x; then
31921 # Check if linker supports -a bndplt option
31922 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
31923 ld_bndplt_support=yes
31924 fi
31925 fi
31926 fi
31927 if test x"$ld_bndplt_support" = xyes; then
31928
31929 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
31930
31931 fi
31932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
31933 $as_echo "$ld_bndplt_support" >&6; }
31934
31935 # Check linker supports '--push-state'/'--pop-state'
31936 ld_pushpopstate_support=no
31937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
31938 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
31939 if test x"$ld_is_gold" = xno; then
31940 if test $in_tree_ld = yes ; then
31941 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
31942 ld_pushpopstate_support=yes
31943 fi
31944 elif test x$gcc_cv_ld != x; then
31945 # Check if linker supports --push-state/--pop-state options
31946 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
31947 ld_pushpopstate_support=yes
31948 fi
31949 fi
31950 fi
31951 if test x"$ld_pushpopstate_support" = xyes; then
31952
31953 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
31954
31955 fi
31956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
31957 $as_echo "$ld_pushpopstate_support" >&6; }
31958
31959 # Configure the subdirectories
31960 # AC_CONFIG_SUBDIRS($subdirs)
31961
31962 # Create the Makefile
31963 # and configure language subdirectories
31964 ac_config_files="$ac_config_files $all_outputs"
31965
31966
31967 ac_config_commands="$ac_config_commands default"
31968
31969 cat >confcache <<\_ACEOF
31970 # This file is a shell script that caches the results of configure
31971 # tests run on this system so they can be shared between configure
31972 # scripts and configure runs, see configure's option --config-cache.
31973 # It is not useful on other systems. If it contains results you don't
31974 # want to keep, you may remove or edit it.
31975 #
31976 # config.status only pays attention to the cache file if you give it
31977 # the --recheck option to rerun configure.
31978 #
31979 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31980 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31981 # following values.
31982
31983 _ACEOF
31984
31985 # The following way of writing the cache mishandles newlines in values,
31986 # but we know of no workaround that is simple, portable, and efficient.
31987 # So, we kill variables containing newlines.
31988 # Ultrix sh set writes to stderr and can't be redirected directly,
31989 # and sets the high bit in the cache file unless we assign to the vars.
31990 (
31991 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31992 eval ac_val=\$$ac_var
31993 case $ac_val in #(
31994 *${as_nl}*)
31995 case $ac_var in #(
31996 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31997 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31998 esac
31999 case $ac_var in #(
32000 _ | IFS | as_nl) ;; #(
32001 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32002 *) { eval $ac_var=; unset $ac_var;} ;;
32003 esac ;;
32004 esac
32005 done
32006
32007 (set) 2>&1 |
32008 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32009 *${as_nl}ac_space=\ *)
32010 # `set' does not quote correctly, so add quotes: double-quote
32011 # substitution turns \\\\ into \\, and sed turns \\ into \.
32012 sed -n \
32013 "s/'/'\\\\''/g;
32014 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32015 ;; #(
32016 *)
32017 # `set' quotes correctly as required by POSIX, so do not add quotes.
32018 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32019 ;;
32020 esac |
32021 sort
32022 ) |
32023 sed '
32024 /^ac_cv_env_/b end
32025 t clear
32026 :clear
32027 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32028 t end
32029 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32030 :end' >>confcache
32031 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32032 if test -w "$cache_file"; then
32033 if test "x$cache_file" != "x/dev/null"; then
32034 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32035 $as_echo "$as_me: updating cache $cache_file" >&6;}
32036 if test ! -f "$cache_file" || test -h "$cache_file"; then
32037 cat confcache >"$cache_file"
32038 else
32039 case $cache_file in #(
32040 */* | ?:*)
32041 mv -f confcache "$cache_file"$$ &&
32042 mv -f "$cache_file"$$ "$cache_file" ;; #(
32043 *)
32044 mv -f confcache "$cache_file" ;;
32045 esac
32046 fi
32047 fi
32048 else
32049 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32050 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32051 fi
32052 fi
32053 rm -f confcache
32054
32055 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32056 # Let make expand exec_prefix.
32057 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32058
32059 DEFS=-DHAVE_CONFIG_H
32060
32061 ac_libobjs=
32062 ac_ltlibobjs=
32063 U=
32064 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32065 # 1. Remove the extension, and $U if already installed.
32066 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32067 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32068 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32069 # will be set to the directory where LIBOBJS objects are built.
32070 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32071 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32072 done
32073 LIBOBJS=$ac_libobjs
32074
32075 LTLIBOBJS=$ac_ltlibobjs
32076
32077
32078
32079
32080 : "${CONFIG_STATUS=./config.status}"
32081 ac_write_fail=0
32082 ac_clean_files_save=$ac_clean_files
32083 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32085 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32086 as_write_fail=0
32087 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32088 #! $SHELL
32089 # Generated by $as_me.
32090 # Run this file to recreate the current configuration.
32091 # Compiler output produced by configure, useful for debugging
32092 # configure, is in config.log if it exists.
32093
32094 debug=false
32095 ac_cs_recheck=false
32096 ac_cs_silent=false
32097
32098 SHELL=\${CONFIG_SHELL-$SHELL}
32099 export SHELL
32100 _ASEOF
32101 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32102 ## -------------------- ##
32103 ## M4sh Initialization. ##
32104 ## -------------------- ##
32105
32106 # Be more Bourne compatible
32107 DUALCASE=1; export DUALCASE # for MKS sh
32108 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32109 emulate sh
32110 NULLCMD=:
32111 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32112 # is contrary to our usage. Disable this feature.
32113 alias -g '${1+"$@"}'='"$@"'
32114 setopt NO_GLOB_SUBST
32115 else
32116 case `(set -o) 2>/dev/null` in #(
32117 *posix*) :
32118 set -o posix ;; #(
32119 *) :
32120 ;;
32121 esac
32122 fi
32123
32124
32125 as_nl='
32126 '
32127 export as_nl
32128 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32129 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32130 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32131 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32132 # Prefer a ksh shell builtin over an external printf program on Solaris,
32133 # but without wasting forks for bash or zsh.
32134 if test -z "$BASH_VERSION$ZSH_VERSION" \
32135 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32136 as_echo='print -r --'
32137 as_echo_n='print -rn --'
32138 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32139 as_echo='printf %s\n'
32140 as_echo_n='printf %s'
32141 else
32142 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32143 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32144 as_echo_n='/usr/ucb/echo -n'
32145 else
32146 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32147 as_echo_n_body='eval
32148 arg=$1;
32149 case $arg in #(
32150 *"$as_nl"*)
32151 expr "X$arg" : "X\\(.*\\)$as_nl";
32152 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32153 esac;
32154 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32155 '
32156 export as_echo_n_body
32157 as_echo_n='sh -c $as_echo_n_body as_echo'
32158 fi
32159 export as_echo_body
32160 as_echo='sh -c $as_echo_body as_echo'
32161 fi
32162
32163 # The user is always right.
32164 if test "${PATH_SEPARATOR+set}" != set; then
32165 PATH_SEPARATOR=:
32166 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32167 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32168 PATH_SEPARATOR=';'
32169 }
32170 fi
32171
32172
32173 # IFS
32174 # We need space, tab and new line, in precisely that order. Quoting is
32175 # there to prevent editors from complaining about space-tab.
32176 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32177 # splitting by setting IFS to empty value.)
32178 IFS=" "" $as_nl"
32179
32180 # Find who we are. Look in the path if we contain no directory separator.
32181 as_myself=
32182 case $0 in #((
32183 *[\\/]* ) as_myself=$0 ;;
32184 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32185 for as_dir in $PATH
32186 do
32187 IFS=$as_save_IFS
32188 test -z "$as_dir" && as_dir=.
32189 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32190 done
32191 IFS=$as_save_IFS
32192
32193 ;;
32194 esac
32195 # We did not find ourselves, most probably we were run as `sh COMMAND'
32196 # in which case we are not to be found in the path.
32197 if test "x$as_myself" = x; then
32198 as_myself=$0
32199 fi
32200 if test ! -f "$as_myself"; then
32201 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32202 exit 1
32203 fi
32204
32205 # Unset variables that we do not need and which cause bugs (e.g. in
32206 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32207 # suppresses any "Segmentation fault" message there. '((' could
32208 # trigger a bug in pdksh 5.2.14.
32209 for as_var in BASH_ENV ENV MAIL MAILPATH
32210 do eval test x\${$as_var+set} = xset \
32211 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32212 done
32213 PS1='$ '
32214 PS2='> '
32215 PS4='+ '
32216
32217 # NLS nuisances.
32218 LC_ALL=C
32219 export LC_ALL
32220 LANGUAGE=C
32221 export LANGUAGE
32222
32223 # CDPATH.
32224 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32225
32226
32227 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32228 # ----------------------------------------
32229 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32230 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32231 # script with STATUS, using 1 if that was 0.
32232 as_fn_error ()
32233 {
32234 as_status=$1; test $as_status -eq 0 && as_status=1
32235 if test "$4"; then
32236 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32237 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32238 fi
32239 $as_echo "$as_me: error: $2" >&2
32240 as_fn_exit $as_status
32241 } # as_fn_error
32242
32243
32244 # as_fn_set_status STATUS
32245 # -----------------------
32246 # Set $? to STATUS, without forking.
32247 as_fn_set_status ()
32248 {
32249 return $1
32250 } # as_fn_set_status
32251
32252 # as_fn_exit STATUS
32253 # -----------------
32254 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32255 as_fn_exit ()
32256 {
32257 set +e
32258 as_fn_set_status $1
32259 exit $1
32260 } # as_fn_exit
32261
32262 # as_fn_unset VAR
32263 # ---------------
32264 # Portably unset VAR.
32265 as_fn_unset ()
32266 {
32267 { eval $1=; unset $1;}
32268 }
32269 as_unset=as_fn_unset
32270 # as_fn_append VAR VALUE
32271 # ----------------------
32272 # Append the text in VALUE to the end of the definition contained in VAR. Take
32273 # advantage of any shell optimizations that allow amortized linear growth over
32274 # repeated appends, instead of the typical quadratic growth present in naive
32275 # implementations.
32276 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32277 eval 'as_fn_append ()
32278 {
32279 eval $1+=\$2
32280 }'
32281 else
32282 as_fn_append ()
32283 {
32284 eval $1=\$$1\$2
32285 }
32286 fi # as_fn_append
32287
32288 # as_fn_arith ARG...
32289 # ------------------
32290 # Perform arithmetic evaluation on the ARGs, and store the result in the
32291 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32292 # must be portable across $(()) and expr.
32293 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32294 eval 'as_fn_arith ()
32295 {
32296 as_val=$(( $* ))
32297 }'
32298 else
32299 as_fn_arith ()
32300 {
32301 as_val=`expr "$@" || test $? -eq 1`
32302 }
32303 fi # as_fn_arith
32304
32305
32306 if expr a : '\(a\)' >/dev/null 2>&1 &&
32307 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32308 as_expr=expr
32309 else
32310 as_expr=false
32311 fi
32312
32313 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32314 as_basename=basename
32315 else
32316 as_basename=false
32317 fi
32318
32319 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32320 as_dirname=dirname
32321 else
32322 as_dirname=false
32323 fi
32324
32325 as_me=`$as_basename -- "$0" ||
32326 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32327 X"$0" : 'X\(//\)$' \| \
32328 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32329 $as_echo X/"$0" |
32330 sed '/^.*\/\([^/][^/]*\)\/*$/{
32331 s//\1/
32332 q
32333 }
32334 /^X\/\(\/\/\)$/{
32335 s//\1/
32336 q
32337 }
32338 /^X\/\(\/\).*/{
32339 s//\1/
32340 q
32341 }
32342 s/.*/./; q'`
32343
32344 # Avoid depending upon Character Ranges.
32345 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32346 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32347 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32348 as_cr_digits='0123456789'
32349 as_cr_alnum=$as_cr_Letters$as_cr_digits
32350
32351 ECHO_C= ECHO_N= ECHO_T=
32352 case `echo -n x` in #(((((
32353 -n*)
32354 case `echo 'xy\c'` in
32355 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32356 xy) ECHO_C='\c';;
32357 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32358 ECHO_T=' ';;
32359 esac;;
32360 *)
32361 ECHO_N='-n';;
32362 esac
32363
32364 rm -f conf$$ conf$$.exe conf$$.file
32365 if test -d conf$$.dir; then
32366 rm -f conf$$.dir/conf$$.file
32367 else
32368 rm -f conf$$.dir
32369 mkdir conf$$.dir 2>/dev/null
32370 fi
32371 if (echo >conf$$.file) 2>/dev/null; then
32372 if ln -s conf$$.file conf$$ 2>/dev/null; then
32373 as_ln_s='ln -s'
32374 # ... but there are two gotchas:
32375 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32376 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32377 # In both cases, we have to default to `cp -pR'.
32378 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32379 as_ln_s='cp -pR'
32380 elif ln conf$$.file conf$$ 2>/dev/null; then
32381 as_ln_s=ln
32382 else
32383 as_ln_s='cp -pR'
32384 fi
32385 else
32386 as_ln_s='cp -pR'
32387 fi
32388 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32389 rmdir conf$$.dir 2>/dev/null
32390
32391
32392 # as_fn_mkdir_p
32393 # -------------
32394 # Create "$as_dir" as a directory, including parents if necessary.
32395 as_fn_mkdir_p ()
32396 {
32397
32398 case $as_dir in #(
32399 -*) as_dir=./$as_dir;;
32400 esac
32401 test -d "$as_dir" || eval $as_mkdir_p || {
32402 as_dirs=
32403 while :; do
32404 case $as_dir in #(
32405 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32406 *) as_qdir=$as_dir;;
32407 esac
32408 as_dirs="'$as_qdir' $as_dirs"
32409 as_dir=`$as_dirname -- "$as_dir" ||
32410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32411 X"$as_dir" : 'X\(//\)[^/]' \| \
32412 X"$as_dir" : 'X\(//\)$' \| \
32413 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32414 $as_echo X"$as_dir" |
32415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32416 s//\1/
32417 q
32418 }
32419 /^X\(\/\/\)[^/].*/{
32420 s//\1/
32421 q
32422 }
32423 /^X\(\/\/\)$/{
32424 s//\1/
32425 q
32426 }
32427 /^X\(\/\).*/{
32428 s//\1/
32429 q
32430 }
32431 s/.*/./; q'`
32432 test -d "$as_dir" && break
32433 done
32434 test -z "$as_dirs" || eval "mkdir $as_dirs"
32435 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32436
32437
32438 } # as_fn_mkdir_p
32439 if mkdir -p . 2>/dev/null; then
32440 as_mkdir_p='mkdir -p "$as_dir"'
32441 else
32442 test -d ./-p && rmdir ./-p
32443 as_mkdir_p=false
32444 fi
32445
32446
32447 # as_fn_executable_p FILE
32448 # -----------------------
32449 # Test if FILE is an executable regular file.
32450 as_fn_executable_p ()
32451 {
32452 test -f "$1" && test -x "$1"
32453 } # as_fn_executable_p
32454 as_test_x='test -x'
32455 as_executable_p=as_fn_executable_p
32456
32457 # Sed expression to map a string onto a valid CPP name.
32458 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32459
32460 # Sed expression to map a string onto a valid variable name.
32461 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32462
32463
32464 exec 6>&1
32465 ## ----------------------------------- ##
32466 ## Main body of $CONFIG_STATUS script. ##
32467 ## ----------------------------------- ##
32468 _ASEOF
32469 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32470
32471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32472 # Save the log message, to keep $0 and so on meaningful, and to
32473 # report actual input values of CONFIG_FILES etc. instead of their
32474 # values after options handling.
32475 ac_log="
32476 This file was extended by $as_me, which was
32477 generated by GNU Autoconf 2.69. Invocation command line was
32478
32479 CONFIG_FILES = $CONFIG_FILES
32480 CONFIG_HEADERS = $CONFIG_HEADERS
32481 CONFIG_LINKS = $CONFIG_LINKS
32482 CONFIG_COMMANDS = $CONFIG_COMMANDS
32483 $ $0 $@
32484
32485 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32486 "
32487
32488 _ACEOF
32489
32490 case $ac_config_files in *"
32491 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32492 esac
32493
32494 case $ac_config_headers in *"
32495 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32496 esac
32497
32498
32499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32500 # Files that config.status was made for.
32501 config_files="$ac_config_files"
32502 config_headers="$ac_config_headers"
32503 config_links="$ac_config_links"
32504 config_commands="$ac_config_commands"
32505
32506 _ACEOF
32507
32508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32509 ac_cs_usage="\
32510 \`$as_me' instantiates files and other configuration actions
32511 from templates according to the current configuration. Unless the files
32512 and actions are specified as TAGs, all are instantiated by default.
32513
32514 Usage: $0 [OPTION]... [TAG]...
32515
32516 -h, --help print this help, then exit
32517 -V, --version print version number and configuration settings, then exit
32518 --config print configuration, then exit
32519 -q, --quiet, --silent
32520 do not print progress messages
32521 -d, --debug don't remove temporary files
32522 --recheck update $as_me by reconfiguring in the same conditions
32523 --file=FILE[:TEMPLATE]
32524 instantiate the configuration file FILE
32525 --header=FILE[:TEMPLATE]
32526 instantiate the configuration header FILE
32527
32528 Configuration files:
32529 $config_files
32530
32531 Configuration headers:
32532 $config_headers
32533
32534 Configuration links:
32535 $config_links
32536
32537 Configuration commands:
32538 $config_commands
32539
32540 Report bugs to the package provider."
32541
32542 _ACEOF
32543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32544 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32545 ac_cs_version="\\
32546 config.status
32547 configured by $0, generated by GNU Autoconf 2.69,
32548 with options \\"\$ac_cs_config\\"
32549
32550 Copyright (C) 2012 Free Software Foundation, Inc.
32551 This config.status script is free software; the Free Software Foundation
32552 gives unlimited permission to copy, distribute and modify it."
32553
32554 ac_pwd='$ac_pwd'
32555 srcdir='$srcdir'
32556 AWK='$AWK'
32557 test -n "\$AWK" || AWK=awk
32558 _ACEOF
32559
32560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32561 # The default lists apply if the user does not specify any file.
32562 ac_need_defaults=:
32563 while test $# != 0
32564 do
32565 case $1 in
32566 --*=?*)
32567 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32568 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32569 ac_shift=:
32570 ;;
32571 --*=)
32572 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32573 ac_optarg=
32574 ac_shift=:
32575 ;;
32576 *)
32577 ac_option=$1
32578 ac_optarg=$2
32579 ac_shift=shift
32580 ;;
32581 esac
32582
32583 case $ac_option in
32584 # Handling of the options.
32585 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32586 ac_cs_recheck=: ;;
32587 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32588 $as_echo "$ac_cs_version"; exit ;;
32589 --config | --confi | --conf | --con | --co | --c )
32590 $as_echo "$ac_cs_config"; exit ;;
32591 --debug | --debu | --deb | --de | --d | -d )
32592 debug=: ;;
32593 --file | --fil | --fi | --f )
32594 $ac_shift
32595 case $ac_optarg in
32596 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32597 '') as_fn_error $? "missing file argument" ;;
32598 esac
32599 as_fn_append CONFIG_FILES " '$ac_optarg'"
32600 ac_need_defaults=false;;
32601 --header | --heade | --head | --hea )
32602 $ac_shift
32603 case $ac_optarg in
32604 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32605 esac
32606 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
32607 ac_need_defaults=false;;
32608 --he | --h)
32609 # Conflict between --help and --header
32610 as_fn_error $? "ambiguous option: \`$1'
32611 Try \`$0 --help' for more information.";;
32612 --help | --hel | -h )
32613 $as_echo "$ac_cs_usage"; exit ;;
32614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32615 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32616 ac_cs_silent=: ;;
32617
32618 # This is an error.
32619 -*) as_fn_error $? "unrecognized option: \`$1'
32620 Try \`$0 --help' for more information." ;;
32621
32622 *) as_fn_append ac_config_targets " $1"
32623 ac_need_defaults=false ;;
32624
32625 esac
32626 shift
32627 done
32628
32629 ac_configure_extra_args=
32630
32631 if $ac_cs_silent; then
32632 exec 6>/dev/null
32633 ac_configure_extra_args="$ac_configure_extra_args --silent"
32634 fi
32635
32636 _ACEOF
32637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32638 if \$ac_cs_recheck; then
32639 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32640 shift
32641 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32642 CONFIG_SHELL='$SHELL'
32643 export CONFIG_SHELL
32644 exec "\$@"
32645 fi
32646
32647 _ACEOF
32648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32649 exec 5>>config.log
32650 {
32651 echo
32652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32653 ## Running $as_me. ##
32654 _ASBOX
32655 $as_echo "$ac_log"
32656 } >&5
32657
32658 _ACEOF
32659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32660 #
32661 # INIT-COMMANDS
32662 #
32663 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32664 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32665 subdirs='$subdirs'
32666
32667 _ACEOF
32668
32669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32670
32671 # Handling of arguments.
32672 for ac_config_target in $ac_config_targets
32673 do
32674 case $ac_config_target in
32675 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
32676 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
32677 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
32678 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
32679 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
32680 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
32681 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
32682 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
32683 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32684
32685 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32686 esac
32687 done
32688
32689
32690 # If the user did not use the arguments to specify the items to instantiate,
32691 # then the envvar interface is used. Set only those that are not.
32692 # We use the long form for the default assignment because of an extremely
32693 # bizarre bug on SunOS 4.1.3.
32694 if $ac_need_defaults; then
32695 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32696 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32697 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
32698 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32699 fi
32700
32701 # Have a temporary directory for convenience. Make it in the build tree
32702 # simply because there is no reason against having it here, and in addition,
32703 # creating and moving files from /tmp can sometimes cause problems.
32704 # Hook for its removal unless debugging.
32705 # Note that there is a small window in which the directory will not be cleaned:
32706 # after its creation but before its name has been assigned to `$tmp'.
32707 $debug ||
32708 {
32709 tmp= ac_tmp=
32710 trap 'exit_status=$?
32711 : "${ac_tmp:=$tmp}"
32712 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32713 ' 0
32714 trap 'as_fn_exit 1' 1 2 13 15
32715 }
32716 # Create a (secure) tmp directory for tmp files.
32717
32718 {
32719 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32720 test -d "$tmp"
32721 } ||
32722 {
32723 tmp=./conf$$-$RANDOM
32724 (umask 077 && mkdir "$tmp")
32725 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32726 ac_tmp=$tmp
32727
32728 # Set up the scripts for CONFIG_FILES section.
32729 # No need to generate them if there are no CONFIG_FILES.
32730 # This happens for instance with `./config.status config.h'.
32731 if test -n "$CONFIG_FILES"; then
32732
32733 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32734 ac_cs_awk_getline=:
32735 ac_cs_awk_pipe_init=
32736 ac_cs_awk_read_file='
32737 while ((getline aline < (F[key])) > 0)
32738 print(aline)
32739 close(F[key])'
32740 ac_cs_awk_pipe_fini=
32741 else
32742 ac_cs_awk_getline=false
32743 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32744 ac_cs_awk_read_file='
32745 print "|#_!!_#|"
32746 print "cat " F[key] " &&"
32747 '$ac_cs_awk_pipe_init
32748 # The final `:' finishes the AND list.
32749 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32750 fi
32751 ac_cr=`echo X | tr X '\015'`
32752 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32753 # But we know of no other shell where ac_cr would be empty at this
32754 # point, so we can use a bashism as a fallback.
32755 if test "x$ac_cr" = x; then
32756 eval ac_cr=\$\'\\r\'
32757 fi
32758 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32759 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32760 ac_cs_awk_cr='\\r'
32761 else
32762 ac_cs_awk_cr=$ac_cr
32763 fi
32764
32765 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32766 _ACEOF
32767
32768 # Create commands to substitute file output variables.
32769 {
32770 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32771 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32772 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32773 echo "_ACAWK" &&
32774 echo "_ACEOF"
32775 } >conf$$files.sh &&
32776 . ./conf$$files.sh ||
32777 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32778 rm -f conf$$files.sh
32779
32780 {
32781 echo "cat >conf$$subs.awk <<_ACEOF" &&
32782 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32783 echo "_ACEOF"
32784 } >conf$$subs.sh ||
32785 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32786 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32787 ac_delim='%!_!# '
32788 for ac_last_try in false false false false false :; do
32789 . ./conf$$subs.sh ||
32790 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32791
32792 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32793 if test $ac_delim_n = $ac_delim_num; then
32794 break
32795 elif $ac_last_try; then
32796 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32797 else
32798 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32799 fi
32800 done
32801 rm -f conf$$subs.sh
32802
32803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32804 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32805 _ACEOF
32806 sed -n '
32807 h
32808 s/^/S["/; s/!.*/"]=/
32809 p
32810 g
32811 s/^[^!]*!//
32812 :repl
32813 t repl
32814 s/'"$ac_delim"'$//
32815 t delim
32816 :nl
32817 h
32818 s/\(.\{148\}\)..*/\1/
32819 t more1
32820 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32821 p
32822 n
32823 b repl
32824 :more1
32825 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32826 p
32827 g
32828 s/.\{148\}//
32829 t nl
32830 :delim
32831 h
32832 s/\(.\{148\}\)..*/\1/
32833 t more2
32834 s/["\\]/\\&/g; s/^/"/; s/$/"/
32835 p
32836 b
32837 :more2
32838 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32839 p
32840 g
32841 s/.\{148\}//
32842 t delim
32843 ' <conf$$subs.awk | sed '
32844 /^[^""]/{
32845 N
32846 s/\n//
32847 }
32848 ' >>$CONFIG_STATUS || ac_write_fail=1
32849 rm -f conf$$subs.awk
32850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32851 _ACAWK
32852 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32853 for (key in S) S_is_set[key] = 1
32854 FS = "\a"
32855 \$ac_cs_awk_pipe_init
32856 }
32857 {
32858 line = $ 0
32859 nfields = split(line, field, "@")
32860 substed = 0
32861 len = length(field[1])
32862 for (i = 2; i < nfields; i++) {
32863 key = field[i]
32864 keylen = length(key)
32865 if (S_is_set[key]) {
32866 value = S[key]
32867 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32868 len += length(value) + length(field[++i])
32869 substed = 1
32870 } else
32871 len += 1 + keylen
32872 }
32873 if (nfields == 3 && !substed) {
32874 key = field[2]
32875 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32876 \$ac_cs_awk_read_file
32877 next
32878 }
32879 }
32880 print line
32881 }
32882 \$ac_cs_awk_pipe_fini
32883 _ACAWK
32884 _ACEOF
32885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32886 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32887 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32888 else
32889 cat
32890 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32891 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32892 _ACEOF
32893
32894 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32895 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32896 # trailing colons and then remove the whole line if VPATH becomes empty
32897 # (actually we leave an empty line to preserve line numbers).
32898 if test "x$srcdir" = x.; then
32899 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32900 h
32901 s///
32902 s/^/:/
32903 s/[ ]*$/:/
32904 s/:\$(srcdir):/:/g
32905 s/:\${srcdir}:/:/g
32906 s/:@srcdir@:/:/g
32907 s/^:*//
32908 s/:*$//
32909 x
32910 s/\(=[ ]*\).*/\1/
32911 G
32912 s/\n//
32913 s/^[^=]*=[ ]*$//
32914 }'
32915 fi
32916
32917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32918 fi # test -n "$CONFIG_FILES"
32919
32920 # Set up the scripts for CONFIG_HEADERS section.
32921 # No need to generate them if there are no CONFIG_HEADERS.
32922 # This happens for instance with `./config.status Makefile'.
32923 if test -n "$CONFIG_HEADERS"; then
32924 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32925 BEGIN {
32926 _ACEOF
32927
32928 # Transform confdefs.h into an awk script `defines.awk', embedded as
32929 # here-document in config.status, that substitutes the proper values into
32930 # config.h.in to produce config.h.
32931
32932 # Create a delimiter string that does not exist in confdefs.h, to ease
32933 # handling of long lines.
32934 ac_delim='%!_!# '
32935 for ac_last_try in false false :; do
32936 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32937 if test -z "$ac_tt"; then
32938 break
32939 elif $ac_last_try; then
32940 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32941 else
32942 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32943 fi
32944 done
32945
32946 # For the awk script, D is an array of macro values keyed by name,
32947 # likewise P contains macro parameters if any. Preserve backslash
32948 # newline sequences.
32949
32950 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32951 sed -n '
32952 s/.\{148\}/&'"$ac_delim"'/g
32953 t rset
32954 :rset
32955 s/^[ ]*#[ ]*define[ ][ ]*/ /
32956 t def
32957 d
32958 :def
32959 s/\\$//
32960 t bsnl
32961 s/["\\]/\\&/g
32962 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32963 D["\1"]=" \3"/p
32964 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32965 d
32966 :bsnl
32967 s/["\\]/\\&/g
32968 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32969 D["\1"]=" \3\\\\\\n"\\/p
32970 t cont
32971 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32972 t cont
32973 d
32974 :cont
32975 n
32976 s/.\{148\}/&'"$ac_delim"'/g
32977 t clear
32978 :clear
32979 s/\\$//
32980 t bsnlc
32981 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32982 d
32983 :bsnlc
32984 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32985 b cont
32986 ' <confdefs.h | sed '
32987 s/'"$ac_delim"'/"\\\
32988 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32989
32990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32991 for (key in D) D_is_set[key] = 1
32992 FS = "\a"
32993 }
32994 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32995 line = \$ 0
32996 split(line, arg, " ")
32997 if (arg[1] == "#") {
32998 defundef = arg[2]
32999 mac1 = arg[3]
33000 } else {
33001 defundef = substr(arg[1], 2)
33002 mac1 = arg[2]
33003 }
33004 split(mac1, mac2, "(") #)
33005 macro = mac2[1]
33006 prefix = substr(line, 1, index(line, defundef) - 1)
33007 if (D_is_set[macro]) {
33008 # Preserve the white space surrounding the "#".
33009 print prefix "define", macro P[macro] D[macro]
33010 next
33011 } else {
33012 # Replace #undef with comments. This is necessary, for example,
33013 # in the case of _POSIX_SOURCE, which is predefined and required
33014 # on some systems where configure will not decide to define it.
33015 if (defundef == "undef") {
33016 print "/*", prefix defundef, macro, "*/"
33017 next
33018 }
33019 }
33020 }
33021 { print }
33022 _ACAWK
33023 _ACEOF
33024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33025 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33026 fi # test -n "$CONFIG_HEADERS"
33027
33028
33029 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33030 shift
33031 for ac_tag
33032 do
33033 case $ac_tag in
33034 :[FHLC]) ac_mode=$ac_tag; continue;;
33035 esac
33036 case $ac_mode$ac_tag in
33037 :[FHL]*:*);;
33038 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33039 :[FH]-) ac_tag=-:-;;
33040 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33041 esac
33042 ac_save_IFS=$IFS
33043 IFS=:
33044 set x $ac_tag
33045 IFS=$ac_save_IFS
33046 shift
33047 ac_file=$1
33048 shift
33049
33050 case $ac_mode in
33051 :L) ac_source=$1;;
33052 :[FH])
33053 ac_file_inputs=
33054 for ac_f
33055 do
33056 case $ac_f in
33057 -) ac_f="$ac_tmp/stdin";;
33058 *) # Look for the file first in the build tree, then in the source tree
33059 # (if the path is not absolute). The absolute path cannot be DOS-style,
33060 # because $ac_f cannot contain `:'.
33061 test -f "$ac_f" ||
33062 case $ac_f in
33063 [\\/$]*) false;;
33064 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33065 esac ||
33066 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33067 esac
33068 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33069 as_fn_append ac_file_inputs " '$ac_f'"
33070 done
33071
33072 # Let's still pretend it is `configure' which instantiates (i.e., don't
33073 # use $as_me), people would be surprised to read:
33074 # /* config.h. Generated by config.status. */
33075 configure_input='Generated from '`
33076 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33077 `' by configure.'
33078 if test x"$ac_file" != x-; then
33079 configure_input="$ac_file. $configure_input"
33080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33081 $as_echo "$as_me: creating $ac_file" >&6;}
33082 fi
33083 # Neutralize special characters interpreted by sed in replacement strings.
33084 case $configure_input in #(
33085 *\&* | *\|* | *\\* )
33086 ac_sed_conf_input=`$as_echo "$configure_input" |
33087 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33088 *) ac_sed_conf_input=$configure_input;;
33089 esac
33090
33091 case $ac_tag in
33092 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33094 esac
33095 ;;
33096 esac
33097
33098 ac_dir=`$as_dirname -- "$ac_file" ||
33099 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33100 X"$ac_file" : 'X\(//\)[^/]' \| \
33101 X"$ac_file" : 'X\(//\)$' \| \
33102 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33103 $as_echo X"$ac_file" |
33104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33105 s//\1/
33106 q
33107 }
33108 /^X\(\/\/\)[^/].*/{
33109 s//\1/
33110 q
33111 }
33112 /^X\(\/\/\)$/{
33113 s//\1/
33114 q
33115 }
33116 /^X\(\/\).*/{
33117 s//\1/
33118 q
33119 }
33120 s/.*/./; q'`
33121 as_dir="$ac_dir"; as_fn_mkdir_p
33122 ac_builddir=.
33123
33124 case "$ac_dir" in
33125 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33126 *)
33127 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33128 # A ".." for each directory in $ac_dir_suffix.
33129 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33130 case $ac_top_builddir_sub in
33131 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33132 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33133 esac ;;
33134 esac
33135 ac_abs_top_builddir=$ac_pwd
33136 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33137 # for backward compatibility:
33138 ac_top_builddir=$ac_top_build_prefix
33139
33140 case $srcdir in
33141 .) # We are building in place.
33142 ac_srcdir=.
33143 ac_top_srcdir=$ac_top_builddir_sub
33144 ac_abs_top_srcdir=$ac_pwd ;;
33145 [\\/]* | ?:[\\/]* ) # Absolute name.
33146 ac_srcdir=$srcdir$ac_dir_suffix;
33147 ac_top_srcdir=$srcdir
33148 ac_abs_top_srcdir=$srcdir ;;
33149 *) # Relative name.
33150 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33151 ac_top_srcdir=$ac_top_build_prefix$srcdir
33152 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33153 esac
33154 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33155
33156
33157 case $ac_mode in
33158 :F)
33159 #
33160 # CONFIG_FILE
33161 #
33162
33163 _ACEOF
33164
33165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33166 # If the template does not know about datarootdir, expand it.
33167 # FIXME: This hack should be removed a few years after 2.60.
33168 ac_datarootdir_hack=; ac_datarootdir_seen=
33169 ac_sed_dataroot='
33170 /datarootdir/ {
33171 p
33172 q
33173 }
33174 /@datadir@/p
33175 /@docdir@/p
33176 /@infodir@/p
33177 /@localedir@/p
33178 /@mandir@/p'
33179 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33180 *datarootdir*) ac_datarootdir_seen=yes;;
33181 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33183 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33184 _ACEOF
33185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33186 ac_datarootdir_hack='
33187 s&@datadir@&$datadir&g
33188 s&@docdir@&$docdir&g
33189 s&@infodir@&$infodir&g
33190 s&@localedir@&$localedir&g
33191 s&@mandir@&$mandir&g
33192 s&\\\${datarootdir}&$datarootdir&g' ;;
33193 esac
33194 _ACEOF
33195
33196 # Neutralize VPATH when `$srcdir' = `.'.
33197 # Shell code in configure.ac might set extrasub.
33198 # FIXME: do we really want to maintain this feature?
33199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33200 ac_sed_extra="$ac_vpsub
33201 $extrasub
33202 _ACEOF
33203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33204 :t
33205 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33206 s|@configure_input@|$ac_sed_conf_input|;t t
33207 s&@top_builddir@&$ac_top_builddir_sub&;t t
33208 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33209 s&@srcdir@&$ac_srcdir&;t t
33210 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33211 s&@top_srcdir@&$ac_top_srcdir&;t t
33212 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33213 s&@builddir@&$ac_builddir&;t t
33214 s&@abs_builddir@&$ac_abs_builddir&;t t
33215 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33216 $ac_datarootdir_hack
33217 "
33218 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33219 if $ac_cs_awk_getline; then
33220 $AWK -f "$ac_tmp/subs.awk"
33221 else
33222 $AWK -f "$ac_tmp/subs.awk" | $SHELL
33223 fi \
33224 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33225
33226 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33227 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33228 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33229 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33231 which seems to be undefined. Please make sure it is defined" >&5
33232 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33233 which seems to be undefined. Please make sure it is defined" >&2;}
33234
33235 rm -f "$ac_tmp/stdin"
33236 case $ac_file in
33237 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33238 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33239 esac \
33240 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33241 ;;
33242 :H)
33243 #
33244 # CONFIG_HEADER
33245 #
33246 if test x"$ac_file" != x-; then
33247 {
33248 $as_echo "/* $configure_input */" \
33249 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33250 } >"$ac_tmp/config.h" \
33251 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33252 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33253 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33254 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33255 else
33256 rm -f "$ac_file"
33257 mv "$ac_tmp/config.h" "$ac_file" \
33258 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33259 fi
33260 else
33261 $as_echo "/* $configure_input */" \
33262 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33263 || as_fn_error $? "could not create -" "$LINENO" 5
33264 fi
33265 ;;
33266 :L)
33267 #
33268 # CONFIG_LINK
33269 #
33270
33271 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
33272 :
33273 else
33274 # Prefer the file from the source tree if names are identical.
33275 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33276 ac_source=$srcdir/$ac_source
33277 fi
33278
33279 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33280 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33281
33282 if test ! -r "$ac_source"; then
33283 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33284 fi
33285 rm -f "$ac_file"
33286
33287 # Try a relative symlink, then a hard link, then a copy.
33288 case $ac_source in
33289 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33290 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33291 esac
33292 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33293 ln "$ac_source" "$ac_file" 2>/dev/null ||
33294 cp -p "$ac_source" "$ac_file" ||
33295 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33296 fi
33297 ;;
33298 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33299 $as_echo "$as_me: executing $ac_file commands" >&6;}
33300 ;;
33301 esac
33302
33303
33304 case $ac_file$ac_mode in
33305 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33306 "gccdepdir":C)
33307 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33308 for lang in $subdirs c-family common analyzer
33309 do
33310 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33311 done ;;
33312 "as":F) chmod +x as ;;
33313 "collect-ld":F) chmod +x collect-ld ;;
33314 "nm":F) chmod +x nm ;;
33315 "default":C)
33316 case ${CONFIG_HEADERS} in
33317 *auto-host.h:config.in*)
33318 echo > cstamp-h ;;
33319 esac
33320 # Make sure all the subdirs exist.
33321 for d in $subdirs doc build common c-family
33322 do
33323 test -d $d || mkdir $d
33324 done
33325 ;;
33326
33327 esac
33328 done # for ac_tag
33329
33330
33331 as_fn_exit 0
33332 _ACEOF
33333 ac_clean_files=$ac_clean_files_save
33334
33335 test $ac_write_fail = 0 ||
33336 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33337
33338
33339 # configure is writing to config.log, and then calls config.status.
33340 # config.status does its own redirection, appending to config.log.
33341 # Unfortunately, on DOS this fails, as config.log is still kept open
33342 # by configure, so config.status won't be able to write to it; its
33343 # output is simply discarded. So we exec the FD to /dev/null,
33344 # effectively closing config.log, so it can be properly (re)opened and
33345 # appended to by config.status. When coming back to configure, we
33346 # need to make the FD available again.
33347 if test "$no_create" != yes; then
33348 ac_cs_success=:
33349 ac_config_status_args=
33350 test "$silent" = yes &&
33351 ac_config_status_args="$ac_config_status_args --quiet"
33352 exec 5>/dev/null
33353 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33354 exec 5>>config.log
33355 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33356 # would make configure fail if this is the last instruction.
33357 $ac_cs_success || as_fn_exit 1
33358 fi
33359 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33361 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33362 fi
33363
33364