]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
Harden and adjust 'gcc/configure' parsing of '--enable-offload-targets'
[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 NO_PIE_FLAG
635 NO_PIE_CFLAGS
636 enable_default_pie
637 PICFLAG
638 enable_host_shared
639 enable_plugin
640 pluginlibs
641 ISLINC
642 ISLLIBS
643 GMPINC
644 GMPLIBS
645 target_cpu_default
646 d_target_objs
647 fortran_target_objs
648 cxx_target_objs
649 c_target_objs
650 use_gcc_stdint
651 xm_defines
652 xm_include_list
653 xm_file_list
654 tm_d_include_list
655 tm_d_file_list
656 tm_p_include_list
657 tm_p_file_list
658 tm_defines
659 tm_include_list
660 tm_file_list
661 common_out_object_file
662 common_out_file
663 out_object_file
664 out_file
665 objc_boehm_gc
666 md_file
667 local_prefix
668 lang_tree_files
669 lang_specs_files
670 lang_opt_files
671 install
672 out_host_hook_obj
673 host_xm_defines
674 host_xm_include_list
675 host_xm_file_list
676 host_exeext
677 gcc_gxx_include_dir_add_sysroot
678 gcc_gxx_include_dir
679 gcc_config_arguments
680 float_h_file
681 extra_programs
682 extra_objs
683 extra_headers_list
684 user_headers_inc_next_post
685 user_headers_inc_next_pre
686 extra_gcc_objs
687 TM_MULTILIB_EXCEPTIONS_CONFIG
688 TM_MULTILIB_CONFIG
689 TM_ENDIAN_CONFIG
690 tmake_file
691 xmake_file
692 cpp_install_dir
693 selftest_languages
694 check_languages
695 build_file_translate
696 build_xm_defines
697 build_xm_include_list
698 build_xm_file_list
699 build_install_headers_dir
700 build_exeext
701 all_selected_languages
702 all_languages
703 all_lang_makefrags
704 all_lang_configurefrags
705 all_gtfiles
706 all_compilers
707 srcdir
708 subdirs
709 dollar
710 gcc_tooldir
711 enable_lto
712 DO_LINK_MUTEX
713 MAINT
714 zlibinc
715 zlibdir
716 HOST_LIBS
717 enable_default_ssp
718 thin_archive_support
719 ld_soname_option
720 ld_version_script_option
721 libgcc_visibility
722 gcc_cv_otool
723 gcc_cv_readelf
724 gcc_cv_objdump
725 ORIGINAL_NM_FOR_TARGET
726 gcc_cv_nm
727 ORIGINAL_LD_GOLD_FOR_TARGET
728 ORIGINAL_LD_BFD_FOR_TARGET
729 ORIGINAL_LD_FOR_TARGET
730 ORIGINAL_PLUGIN_LD_FOR_TARGET
731 gcc_cv_ld
732 ORIGINAL_AS_FOR_TARGET
733 gcc_cv_as
734 enable_fast_install
735 objdir
736 OTOOL64
737 OTOOL
738 LIPO
739 NMEDIT
740 DSYMUTIL
741 STRIP
742 OBJDUMP
743 ac_ct_DUMPBIN
744 DUMPBIN
745 LD
746 FGREP
747 SED
748 LIBTOOL
749 collect2
750 NO_PIE_FLAG_FOR_BUILD
751 NO_PIE_CFLAGS_FOR_BUILD
752 BUILD_NO_PIE_FLAG
753 BUILD_NO_PIE_CFLAGS
754 STMP_FIXINC
755 BUILD_LDFLAGS
756 BUILD_CXXFLAGS
757 BUILD_CFLAGS
758 CXX_FOR_BUILD
759 CC_FOR_BUILD
760 inhibit_libc
761 BUILD_SYSTEM_HEADER_DIR
762 SYSTEM_HEADER_DIR
763 ALL
764 CROSS
765 CATOBJEXT
766 GENCAT
767 INSTOBJEXT
768 DATADIRNAME
769 CATALOGS
770 POSUB
771 GMSGFMT
772 XGETTEXT
773 INCINTL
774 LIBINTL_DEP
775 LIBINTL
776 USE_NLS
777 get_gcc_base_ver
778 HAVE_AUTO_BUILD
779 extra_opt_files
780 extra_modes_file
781 NATIVE_SYSTEM_HEADER_DIR
782 objext
783 manext
784 LIBICONV_DEP
785 LTLIBICONV
786 LIBICONV
787 ZSTD_LIB
788 ZSTD_INCLUDE
789 DL_LIB
790 LDEXP_LIB
791 EXTRA_GCC_LIBS
792 GNAT_LIBEXC
793 COLLECT2_LIBS
794 CXXDEPMODE
795 DEPDIR
796 am__leading_dot
797 doc_build_sys
798 AR
799 NM
800 BISON
801 FLEX
802 GENERATED_MANPAGES
803 BUILD_INFO
804 MAKEINFO
805 have_mktemp_command
806 make_compare_target
807 INSTALL_DATA
808 INSTALL_PROGRAM
809 INSTALL
810 ranlib_flags
811 RANLIB
812 LN
813 LN_S
814 AWK
815 SET_MAKE
816 omp_device_property_deps
817 omp_device_properties
818 accel_dir_suffix
819 real_target_noncanonical
820 enable_as_accelerator
821 gnat_install_lib
822 DOCUMENTATION_ROOT_URL
823 REPORT_BUGS_TEXI
824 REPORT_BUGS_TO
825 PKGVERSION
826 CONFIGURE_SPECS
827 enable_gcov
828 enable_shared
829 enable_fixed_point
830 enable_decimal_float
831 with_float
832 with_cpu
833 enable_multiarch
834 enable_multilib
835 coverage_flags
836 valgrind_command
837 valgrind_path_defines
838 valgrind_path
839 TREECHECKING
840 nocommon_flag
841 noexception_flags
842 warn_cxxflags
843 warn_cflags
844 c_strict_warn
845 strict_warn
846 c_loose_warn
847 loose_warn
848 aliasing_flags
849 CPP
850 EGREP
851 GREP
852 CXXCPP
853 PICFLAG_FOR_TARGET
854 GNATMAKE
855 GNATBIND
856 ac_ct_CXX
857 CXXFLAGS
858 CXX
859 OBJEXT
860 EXEEXT
861 ac_ct_CC
862 CPPFLAGS
863 LDFLAGS
864 CFLAGS
865 CC
866 GENINSRC
867 CROSS_SYSTEM_HEADER_DIR
868 TARGET_SYSTEM_ROOT_DEFINE
869 TARGET_SYSTEM_ROOT
870 SYSROOT_CFLAGS_FOR_TARGET
871 target_subdir
872 host_subdir
873 build_subdir
874 build_libsubdir
875 target_noncanonical
876 host_noncanonical
877 target_os
878 target_vendor
879 target_cpu
880 target
881 host_os
882 host_vendor
883 host_cpu
884 host
885 build_os
886 build_vendor
887 build_cpu
888 build
889 target_alias
890 host_alias
891 build_alias
892 LIBS
893 ECHO_T
894 ECHO_N
895 ECHO_C
896 DEFS
897 mandir
898 localedir
899 libdir
900 psdir
901 pdfdir
902 dvidir
903 htmldir
904 infodir
905 docdir
906 oldincludedir
907 includedir
908 localstatedir
909 sharedstatedir
910 sysconfdir
911 datadir
912 datarootdir
913 libexecdir
914 sbindir
915 bindir
916 program_transform_name
917 prefix
918 exec_prefix
919 PACKAGE_URL
920 PACKAGE_BUGREPORT
921 PACKAGE_STRING
922 PACKAGE_VERSION
923 PACKAGE_TARNAME
924 PACKAGE_NAME
925 PATH_SEPARATOR
926 SHELL'
927 ac_subst_files='option_includes
928 language_hooks'
929 ac_user_opts='
930 enable_option_checking
931 with_build_libsubdir
932 with_local_prefix
933 with_native_system_header_dir
934 with_build_sysroot
935 with_sysroot
936 with_gxx_include_dir
937 with_cpp_install_dir
938 enable_generated_files_in_srcdir
939 with_gnu_ld
940 with_ld
941 with_demangler_in_ld
942 with_gnu_as
943 with_as
944 enable_largefile
945 enable_build_format_warnings
946 enable_werror_always
947 enable_checking
948 enable_coverage
949 enable_gather_detailed_mem_stats
950 enable_valgrind_annotations
951 with_stabs
952 enable_multilib
953 enable_multiarch
954 with_stack_clash_protection_guard_size
955 enable___cxa_atexit
956 enable_decimal_float
957 enable_fixed_point
958 enable_threads
959 enable_tls
960 enable_vtable_verify
961 enable_analyzer
962 enable_objc_gc
963 with_dwarf2
964 enable_shared
965 enable_gcov
966 with_specs
967 with_pkgversion
968 with_bugurl
969 with_documentation_root_url
970 enable_languages
971 with_multilib_list
972 with_zstd
973 with_zstd_include
974 with_zstd_lib
975 enable_rpath
976 with_libiconv_prefix
977 with_libiconv_type
978 enable_sjlj_exceptions
979 with_gcc_major_version_only
980 enable_secureplt
981 enable_mingw_wildcard
982 enable_large_address_aware
983 enable_leading_mingw64_underscores
984 enable_cld
985 enable_frame_pointer
986 enable_win32_registry
987 enable_static
988 with_pic
989 enable_fast_install
990 enable_libtool_lock
991 enable_ld
992 enable_gold
993 with_plugin_ld
994 enable_gnu_indirect_function
995 enable_initfini_array
996 enable_comdat
997 enable_newlib_nano_formatted_io
998 enable_standard_branch_protection
999 enable_fix_cortex_a53_835769
1000 enable_fix_cortex_a53_843419
1001 with_glibc_version
1002 enable_gnu_unique_object
1003 enable_linker_build_id
1004 enable_libssp
1005 enable_default_ssp
1006 with_long_double_128
1007 with_long_double_format
1008 with_gc
1009 with_system_zlib
1010 enable_maintainer_mode
1011 enable_link_mutex
1012 enable_version_specific_runtime_libs
1013 enable_plugin
1014 enable_host_shared
1015 enable_libquadmath_support
1016 with_linker_hash_style
1017 with_diagnostics_color
1018 with_diagnostics_urls
1019 enable_default_pie
1020 '
1021 ac_precious_vars='build_alias
1022 host_alias
1023 target_alias
1024 CC
1025 CFLAGS
1026 LDFLAGS
1027 LIBS
1028 CPPFLAGS
1029 CXX
1030 CXXFLAGS
1031 CCC
1032 CXXCPP
1033 CPP
1034 GMPLIBS
1035 GMPINC
1036 ISLLIBS
1037 ISLINC'
1038
1039
1040 # Initialize some variables set by options.
1041 ac_init_help=
1042 ac_init_version=false
1043 ac_unrecognized_opts=
1044 ac_unrecognized_sep=
1045 # The variables have the same names as the options, with
1046 # dashes changed to underlines.
1047 cache_file=/dev/null
1048 exec_prefix=NONE
1049 no_create=
1050 no_recursion=
1051 prefix=NONE
1052 program_prefix=NONE
1053 program_suffix=NONE
1054 program_transform_name=s,x,x,
1055 silent=
1056 site=
1057 srcdir=
1058 verbose=
1059 x_includes=NONE
1060 x_libraries=NONE
1061
1062 # Installation directory options.
1063 # These are left unexpanded so users can "make install exec_prefix=/foo"
1064 # and all the variables that are supposed to be based on exec_prefix
1065 # by default will actually change.
1066 # Use braces instead of parens because sh, perl, etc. also accept them.
1067 # (The list follows the same order as the GNU Coding Standards.)
1068 bindir='${exec_prefix}/bin'
1069 sbindir='${exec_prefix}/sbin'
1070 libexecdir='${exec_prefix}/libexec'
1071 datarootdir='${prefix}/share'
1072 datadir='${datarootdir}'
1073 sysconfdir='${prefix}/etc'
1074 sharedstatedir='${prefix}/com'
1075 localstatedir='${prefix}/var'
1076 includedir='${prefix}/include'
1077 oldincludedir='/usr/include'
1078 docdir='${datarootdir}/doc/${PACKAGE}'
1079 infodir='${datarootdir}/info'
1080 htmldir='${docdir}'
1081 dvidir='${docdir}'
1082 pdfdir='${docdir}'
1083 psdir='${docdir}'
1084 libdir='${exec_prefix}/lib'
1085 localedir='${datarootdir}/locale'
1086 mandir='${datarootdir}/man'
1087
1088 ac_prev=
1089 ac_dashdash=
1090 for ac_option
1091 do
1092 # If the previous option needs an argument, assign it.
1093 if test -n "$ac_prev"; then
1094 eval $ac_prev=\$ac_option
1095 ac_prev=
1096 continue
1097 fi
1098
1099 case $ac_option in
1100 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1101 *=) ac_optarg= ;;
1102 *) ac_optarg=yes ;;
1103 esac
1104
1105 # Accept the important Cygnus configure options, so we can diagnose typos.
1106
1107 case $ac_dashdash$ac_option in
1108 --)
1109 ac_dashdash=yes ;;
1110
1111 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1112 ac_prev=bindir ;;
1113 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1114 bindir=$ac_optarg ;;
1115
1116 -build | --build | --buil | --bui | --bu)
1117 ac_prev=build_alias ;;
1118 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1119 build_alias=$ac_optarg ;;
1120
1121 -cache-file | --cache-file | --cache-fil | --cache-fi \
1122 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1123 ac_prev=cache_file ;;
1124 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1125 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1126 cache_file=$ac_optarg ;;
1127
1128 --config-cache | -C)
1129 cache_file=config.cache ;;
1130
1131 -datadir | --datadir | --datadi | --datad)
1132 ac_prev=datadir ;;
1133 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1134 datadir=$ac_optarg ;;
1135
1136 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1137 | --dataroo | --dataro | --datar)
1138 ac_prev=datarootdir ;;
1139 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1140 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1141 datarootdir=$ac_optarg ;;
1142
1143 -disable-* | --disable-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid feature name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1151 *"
1152 "enable_$ac_useropt"
1153 "*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval enable_$ac_useropt=no ;;
1158
1159 -docdir | --docdir | --docdi | --doc | --do)
1160 ac_prev=docdir ;;
1161 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1162 docdir=$ac_optarg ;;
1163
1164 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1165 ac_prev=dvidir ;;
1166 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1167 dvidir=$ac_optarg ;;
1168
1169 -enable-* | --enable-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid feature name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178 "enable_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval enable_$ac_useropt=\$ac_optarg ;;
1184
1185 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1186 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1187 | --exec | --exe | --ex)
1188 ac_prev=exec_prefix ;;
1189 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1190 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1191 | --exec=* | --exe=* | --ex=*)
1192 exec_prefix=$ac_optarg ;;
1193
1194 -gas | --gas | --ga | --g)
1195 # Obsolete; use --with-gas.
1196 with_gas=yes ;;
1197
1198 -help | --help | --hel | --he | -h)
1199 ac_init_help=long ;;
1200 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1201 ac_init_help=recursive ;;
1202 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1203 ac_init_help=short ;;
1204
1205 -host | --host | --hos | --ho)
1206 ac_prev=host_alias ;;
1207 -host=* | --host=* | --hos=* | --ho=*)
1208 host_alias=$ac_optarg ;;
1209
1210 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1211 ac_prev=htmldir ;;
1212 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1213 | --ht=*)
1214 htmldir=$ac_optarg ;;
1215
1216 -includedir | --includedir | --includedi | --included | --include \
1217 | --includ | --inclu | --incl | --inc)
1218 ac_prev=includedir ;;
1219 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1220 | --includ=* | --inclu=* | --incl=* | --inc=*)
1221 includedir=$ac_optarg ;;
1222
1223 -infodir | --infodir | --infodi | --infod | --info | --inf)
1224 ac_prev=infodir ;;
1225 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1226 infodir=$ac_optarg ;;
1227
1228 -libdir | --libdir | --libdi | --libd)
1229 ac_prev=libdir ;;
1230 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1231 libdir=$ac_optarg ;;
1232
1233 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1234 | --libexe | --libex | --libe)
1235 ac_prev=libexecdir ;;
1236 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1237 | --libexe=* | --libex=* | --libe=*)
1238 libexecdir=$ac_optarg ;;
1239
1240 -localedir | --localedir | --localedi | --localed | --locale)
1241 ac_prev=localedir ;;
1242 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1243 localedir=$ac_optarg ;;
1244
1245 -localstatedir | --localstatedir | --localstatedi | --localstated \
1246 | --localstate | --localstat | --localsta | --localst | --locals)
1247 ac_prev=localstatedir ;;
1248 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1249 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1250 localstatedir=$ac_optarg ;;
1251
1252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1253 ac_prev=mandir ;;
1254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1255 mandir=$ac_optarg ;;
1256
1257 -nfp | --nfp | --nf)
1258 # Obsolete; use --without-fp.
1259 with_fp=no ;;
1260
1261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1262 | --no-cr | --no-c | -n)
1263 no_create=yes ;;
1264
1265 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1266 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1267 no_recursion=yes ;;
1268
1269 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1270 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1271 | --oldin | --oldi | --old | --ol | --o)
1272 ac_prev=oldincludedir ;;
1273 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1274 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1275 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1276 oldincludedir=$ac_optarg ;;
1277
1278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1279 ac_prev=prefix ;;
1280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1281 prefix=$ac_optarg ;;
1282
1283 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1284 | --program-pre | --program-pr | --program-p)
1285 ac_prev=program_prefix ;;
1286 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1287 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1288 program_prefix=$ac_optarg ;;
1289
1290 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1291 | --program-suf | --program-su | --program-s)
1292 ac_prev=program_suffix ;;
1293 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1294 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1295 program_suffix=$ac_optarg ;;
1296
1297 -program-transform-name | --program-transform-name \
1298 | --program-transform-nam | --program-transform-na \
1299 | --program-transform-n | --program-transform- \
1300 | --program-transform | --program-transfor \
1301 | --program-transfo | --program-transf \
1302 | --program-trans | --program-tran \
1303 | --progr-tra | --program-tr | --program-t)
1304 ac_prev=program_transform_name ;;
1305 -program-transform-name=* | --program-transform-name=* \
1306 | --program-transform-nam=* | --program-transform-na=* \
1307 | --program-transform-n=* | --program-transform-=* \
1308 | --program-transform=* | --program-transfor=* \
1309 | --program-transfo=* | --program-transf=* \
1310 | --program-trans=* | --program-tran=* \
1311 | --progr-tra=* | --program-tr=* | --program-t=*)
1312 program_transform_name=$ac_optarg ;;
1313
1314 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1315 ac_prev=pdfdir ;;
1316 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1317 pdfdir=$ac_optarg ;;
1318
1319 -psdir | --psdir | --psdi | --psd | --ps)
1320 ac_prev=psdir ;;
1321 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1322 psdir=$ac_optarg ;;
1323
1324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1325 | -silent | --silent | --silen | --sile | --sil)
1326 silent=yes ;;
1327
1328 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1329 ac_prev=sbindir ;;
1330 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1331 | --sbi=* | --sb=*)
1332 sbindir=$ac_optarg ;;
1333
1334 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1335 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1336 | --sharedst | --shareds | --shared | --share | --shar \
1337 | --sha | --sh)
1338 ac_prev=sharedstatedir ;;
1339 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1340 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1341 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1342 | --sha=* | --sh=*)
1343 sharedstatedir=$ac_optarg ;;
1344
1345 -site | --site | --sit)
1346 ac_prev=site ;;
1347 -site=* | --site=* | --sit=*)
1348 site=$ac_optarg ;;
1349
1350 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1351 ac_prev=srcdir ;;
1352 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1353 srcdir=$ac_optarg ;;
1354
1355 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1356 | --syscon | --sysco | --sysc | --sys | --sy)
1357 ac_prev=sysconfdir ;;
1358 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1359 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1360 sysconfdir=$ac_optarg ;;
1361
1362 -target | --target | --targe | --targ | --tar | --ta | --t)
1363 ac_prev=target_alias ;;
1364 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1365 target_alias=$ac_optarg ;;
1366
1367 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1368 verbose=yes ;;
1369
1370 -version | --version | --versio | --versi | --vers | -V)
1371 ac_init_version=: ;;
1372
1373 -with-* | --with-*)
1374 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1375 # Reject names that are not valid shell variable names.
1376 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1377 as_fn_error $? "invalid package name: $ac_useropt"
1378 ac_useropt_orig=$ac_useropt
1379 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1380 case $ac_user_opts in
1381 *"
1382 "with_$ac_useropt"
1383 "*) ;;
1384 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1385 ac_unrecognized_sep=', ';;
1386 esac
1387 eval with_$ac_useropt=\$ac_optarg ;;
1388
1389 -without-* | --without-*)
1390 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391 # Reject names that are not valid shell variable names.
1392 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1393 as_fn_error $? "invalid package name: $ac_useropt"
1394 ac_useropt_orig=$ac_useropt
1395 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1396 case $ac_user_opts in
1397 *"
1398 "with_$ac_useropt"
1399 "*) ;;
1400 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1401 ac_unrecognized_sep=', ';;
1402 esac
1403 eval with_$ac_useropt=no ;;
1404
1405 --x)
1406 # Obsolete; use --with-x.
1407 with_x=yes ;;
1408
1409 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1410 | --x-incl | --x-inc | --x-in | --x-i)
1411 ac_prev=x_includes ;;
1412 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1413 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1414 x_includes=$ac_optarg ;;
1415
1416 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1417 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1418 ac_prev=x_libraries ;;
1419 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1420 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1421 x_libraries=$ac_optarg ;;
1422
1423 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1424 Try \`$0 --help' for more information"
1425 ;;
1426
1427 *=*)
1428 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1429 # Reject names that are not valid shell variable names.
1430 case $ac_envvar in #(
1431 '' | [0-9]* | *[!_$as_cr_alnum]* )
1432 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1433 esac
1434 eval $ac_envvar=\$ac_optarg
1435 export $ac_envvar ;;
1436
1437 *)
1438 # FIXME: should be removed in autoconf 3.0.
1439 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1440 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1441 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1442 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1443 ;;
1444
1445 esac
1446 done
1447
1448 if test -n "$ac_prev"; then
1449 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1450 as_fn_error $? "missing argument to $ac_option"
1451 fi
1452
1453 if test -n "$ac_unrecognized_opts"; then
1454 case $enable_option_checking in
1455 no) ;;
1456 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1457 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1458 esac
1459 fi
1460
1461 # Check all directory arguments for consistency.
1462 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1463 datadir sysconfdir sharedstatedir localstatedir includedir \
1464 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1465 libdir localedir mandir
1466 do
1467 eval ac_val=\$$ac_var
1468 # Remove trailing slashes.
1469 case $ac_val in
1470 */ )
1471 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1472 eval $ac_var=\$ac_val;;
1473 esac
1474 # Be sure to have absolute directory names.
1475 case $ac_val in
1476 [\\/$]* | ?:[\\/]* ) continue;;
1477 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1478 esac
1479 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1480 done
1481
1482 # There might be people who depend on the old broken behavior: `$host'
1483 # used to hold the argument of --host etc.
1484 # FIXME: To remove some day.
1485 build=$build_alias
1486 host=$host_alias
1487 target=$target_alias
1488
1489 # FIXME: To remove some day.
1490 if test "x$host_alias" != x; then
1491 if test "x$build_alias" = x; then
1492 cross_compiling=maybe
1493 elif test "x$build_alias" != "x$host_alias"; then
1494 cross_compiling=yes
1495 fi
1496 fi
1497
1498 ac_tool_prefix=
1499 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1500
1501 test "$silent" = yes && exec 6>/dev/null
1502
1503
1504 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1505 ac_ls_di=`ls -di .` &&
1506 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1507 as_fn_error $? "working directory cannot be determined"
1508 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1509 as_fn_error $? "pwd does not report name of working directory"
1510
1511
1512 # Find the source files, if location was not specified.
1513 if test -z "$srcdir"; then
1514 ac_srcdir_defaulted=yes
1515 # Try the directory containing this script, then the parent directory.
1516 ac_confdir=`$as_dirname -- "$as_myself" ||
1517 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1518 X"$as_myself" : 'X\(//\)[^/]' \| \
1519 X"$as_myself" : 'X\(//\)$' \| \
1520 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1521 $as_echo X"$as_myself" |
1522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1523 s//\1/
1524 q
1525 }
1526 /^X\(\/\/\)[^/].*/{
1527 s//\1/
1528 q
1529 }
1530 /^X\(\/\/\)$/{
1531 s//\1/
1532 q
1533 }
1534 /^X\(\/\).*/{
1535 s//\1/
1536 q
1537 }
1538 s/.*/./; q'`
1539 srcdir=$ac_confdir
1540 if test ! -r "$srcdir/$ac_unique_file"; then
1541 srcdir=..
1542 fi
1543 else
1544 ac_srcdir_defaulted=no
1545 fi
1546 if test ! -r "$srcdir/$ac_unique_file"; then
1547 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1548 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1549 fi
1550 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1551 ac_abs_confdir=`(
1552 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1553 pwd)`
1554 # When building in place, set srcdir=.
1555 if test "$ac_abs_confdir" = "$ac_pwd"; then
1556 srcdir=.
1557 fi
1558 # Remove unnecessary trailing slashes from srcdir.
1559 # Double slashes in file names in object file debugging info
1560 # mess up M-x gdb in Emacs.
1561 case $srcdir in
1562 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1563 esac
1564 for ac_var in $ac_precious_vars; do
1565 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1566 eval ac_env_${ac_var}_value=\$${ac_var}
1567 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1568 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1569 done
1570
1571 #
1572 # Report the --help message.
1573 #
1574 if test "$ac_init_help" = "long"; then
1575 # Omit some internal or obsolete options to make the list less imposing.
1576 # This message is too long to be a string in the A/UX 3.1 sh.
1577 cat <<_ACEOF
1578 \`configure' configures this package to adapt to many kinds of systems.
1579
1580 Usage: $0 [OPTION]... [VAR=VALUE]...
1581
1582 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1583 VAR=VALUE. See below for descriptions of some of the useful variables.
1584
1585 Defaults for the options are specified in brackets.
1586
1587 Configuration:
1588 -h, --help display this help and exit
1589 --help=short display options specific to this package
1590 --help=recursive display the short help of all the included packages
1591 -V, --version display version information and exit
1592 -q, --quiet, --silent do not print \`checking ...' messages
1593 --cache-file=FILE cache test results in FILE [disabled]
1594 -C, --config-cache alias for \`--cache-file=config.cache'
1595 -n, --no-create do not create output files
1596 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1597
1598 Installation directories:
1599 --prefix=PREFIX install architecture-independent files in PREFIX
1600 [$ac_default_prefix]
1601 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1602 [PREFIX]
1603
1604 By default, \`make install' will install all the files in
1605 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1606 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1607 for instance \`--prefix=\$HOME'.
1608
1609 For better control, use the options below.
1610
1611 Fine tuning of the installation directories:
1612 --bindir=DIR user executables [EPREFIX/bin]
1613 --sbindir=DIR system admin executables [EPREFIX/sbin]
1614 --libexecdir=DIR program executables [EPREFIX/libexec]
1615 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1616 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1617 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1618 --libdir=DIR object code libraries [EPREFIX/lib]
1619 --includedir=DIR C header files [PREFIX/include]
1620 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1621 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1622 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1623 --infodir=DIR info documentation [DATAROOTDIR/info]
1624 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1625 --mandir=DIR man documentation [DATAROOTDIR/man]
1626 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1627 --htmldir=DIR html documentation [DOCDIR]
1628 --dvidir=DIR dvi documentation [DOCDIR]
1629 --pdfdir=DIR pdf documentation [DOCDIR]
1630 --psdir=DIR ps documentation [DOCDIR]
1631 _ACEOF
1632
1633 cat <<\_ACEOF
1634
1635 Program names:
1636 --program-prefix=PREFIX prepend PREFIX to installed program names
1637 --program-suffix=SUFFIX append SUFFIX to installed program names
1638 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1639
1640 System types:
1641 --build=BUILD configure for building on BUILD [guessed]
1642 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1643 --target=TARGET configure for building compilers for TARGET [HOST]
1644 _ACEOF
1645 fi
1646
1647 if test -n "$ac_init_help"; then
1648
1649 cat <<\_ACEOF
1650
1651 Optional Features:
1652 --disable-option-checking ignore unrecognized --enable/--with options
1653 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1654 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1655 --enable-generated-files-in-srcdir
1656 put copies of generated files in source dir intended
1657 for creating source tarballs for users without
1658 texinfo bison or flex
1659 --disable-largefile omit support for large files
1660 --disable-build-format-warnings
1661 don't use -Wformat while building GCC
1662 --enable-werror-always enable -Werror despite compiler version
1663 --enable-checking[=LIST]
1664 enable expensive run-time checks. With LIST, enable
1665 only specific categories of checks. Categories are:
1666 yes,no,all,none,release. Flags are:
1667 assert,df,extra,fold,gc,gcac,gimple,misc,
1668 rtlflag,rtl,runtime,tree,valgrind,types
1669 --enable-coverage[=LEVEL]
1670 enable compiler's code coverage collection. Use to
1671 measure compiler performance and locate unused parts
1672 of the compiler. With LEVEL, specify optimization.
1673 Values are opt, noopt, default is noopt
1674 --enable-gather-detailed-mem-stats
1675 enable detailed memory allocation stats gathering
1676 --enable-valgrind-annotations
1677 enable valgrind runtime interaction
1678 --enable-multilib enable library support for multiple ABIs
1679 --enable-multiarch enable support for multiarch paths
1680 --enable-__cxa_atexit enable __cxa_atexit for C++
1681 --enable-decimal-float={no,yes,bid,dpd}
1682 enable decimal float extension to C. Selecting 'bid'
1683 or 'dpd' choses which decimal floating point format
1684 to use
1685 --enable-fixed-point enable fixed-point arithmetic extension to C
1686 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1687 package
1688 --enable-tls enable or disable generation of tls code overriding
1689 the assembler check for tls support
1690 --enable-vtable-verify enable vtable verification feature
1691 --disable-analyzer disable -fanalyzer static analyzer
1692 --enable-objc-gc enable the use of Boehm's garbage collector with the
1693 GNU Objective-C runtime
1694 --disable-shared don't provide a shared libgcc
1695 --disable-gcov don't provide libgcov and related host tools
1696 --enable-languages=LIST specify which front-ends to build
1697 --disable-rpath do not hardcode runtime library paths
1698 --enable-sjlj-exceptions
1699 arrange to use setjmp/longjmp exception handling
1700 --enable-secureplt enable -msecure-plt by default for PowerPC
1701 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1702 Default to platform configuration
1703 --enable-large-address-aware
1704 Link mingw executables with --large-address-aware
1705 --enable-leading-mingw64-underscores
1706 enable leading underscores on 64 bit mingw targets
1707 --enable-cld enable -mcld by default for 32bit x86
1708 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1709 --disable-win32-registry
1710 disable lookup of installation paths in the Registry
1711 on Windows hosts
1712 --enable-win32-registry enable registry lookup (default)
1713 --enable-win32-registry=KEY
1714 use KEY instead of GCC version as the last portion
1715 of the registry key
1716 --enable-shared[=PKGS] build shared libraries [default=yes]
1717 --enable-static[=PKGS] build static libraries [default=yes]
1718 --enable-fast-install[=PKGS]
1719 optimize for fast installation [default=yes]
1720 --disable-libtool-lock avoid locking (might break parallel builds)
1721 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1722 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1723 --enable-gnu-indirect-function
1724 enable the use of the @gnu_indirect_function to
1725 glibc systems
1726 --enable-initfini-array use .init_array/.fini_array sections
1727 --enable-comdat enable COMDAT group support
1728 --enable-newlib-nano-formatted-io
1729 Use nano version formatted IO
1730
1731 --enable-standard-branch-protection
1732 enable Branch Target Identification Mechanism and
1733 Return Address Signing by default for AArch64
1734 --disable-standard-branch-protection
1735 disable Branch Target Identification Mechanism and
1736 Return Address Signing by default for AArch64
1737
1738
1739 --enable-fix-cortex-a53-835769
1740 enable workaround for AArch64 Cortex-A53 erratum
1741 835769 by default
1742 --disable-fix-cortex-a53-835769
1743 disable workaround for AArch64 Cortex-A53 erratum
1744 835769 by default
1745
1746
1747 --enable-fix-cortex-a53-843419
1748 enable workaround for AArch64 Cortex-A53 erratum
1749 843419 by default
1750 --disable-fix-cortex-a53-843419
1751 disable workaround for AArch64 Cortex-A53 erratum
1752 843419 by default
1753
1754 --enable-gnu-unique-object
1755 enable the use of the @gnu_unique_object ELF
1756 extension on glibc systems
1757 --enable-linker-build-id
1758 compiler will always pass --build-id to linker
1759 --enable-libssp enable linking against libssp
1760 --enable-default-ssp enable Stack Smashing Protection as default
1761 --enable-maintainer-mode
1762 enable make rules and dependencies not useful (and
1763 sometimes confusing) to the casual installer
1764 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1765 thrashing on the build machine
1766 --enable-version-specific-runtime-libs
1767 specify that runtime libraries should be installed
1768 in a compiler-specific directory
1769 --enable-plugin enable plugin support
1770 --enable-host-shared build host code as shared libraries
1771 --disable-libquadmath-support
1772 disable libquadmath support for Fortran
1773 --enable-default-pie enable Position Independent Executable as default
1774
1775 Optional Packages:
1776 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1777 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1778 --with-build-libsubdir=DIR Directory where to find libraries for build system
1779 --with-local-prefix=DIR specifies directory to put local include
1780 --with-native-system-header-dir=dir
1781 use dir as the directory to look for standard
1782 system header files in. Defaults to /usr/include.
1783 --with-build-sysroot=sysroot
1784 use sysroot as the system root during the build
1785 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1786 --with-gxx-include-dir=DIR
1787 specifies directory to put g++ header files
1788 --with-cpp-install-dir=DIR
1789 install the user visible C preprocessor in DIR
1790 (relative to PREFIX) as well as PREFIX/bin
1791 --with-gnu-ld arrange to work with GNU ld
1792 --with-ld arrange to use the specified ld (full pathname)
1793 --with-demangler-in-ld try to use demangler in GNU ld
1794 --with-gnu-as arrange to work with GNU as
1795 --with-as arrange to use the specified as (full pathname)
1796 --with-stabs arrange to use stabs instead of host debug format
1797 --with-stack-clash-protection-guard-size=size
1798 Set the default stack clash protection guard size
1799 for specific targets as a power of two in bytes.
1800 --with-dwarf2 force the default debug format to be DWARF 2
1801 --with-specs=SPECS add SPECS to driver command-line processing
1802 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1803 --with-bugurl=URL Direct users to URL to report a bug
1804 --with-documentation-root-url=URL
1805 Root for documentation URLs
1806 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1807 --with-zstd=PATH specify prefix directory for installed zstd library.
1808 Equivalent to --with-zstd-include=PATH/include plus
1809 --with-zstd-lib=PATH/lib
1810 --with-zstd-include=PATH
1811 specify directory for installed zstd include files
1812 --with-zstd-lib=PATH specify directory for the installed zstd library
1813 --with-gnu-ld assume the C compiler uses GNU ld default=no
1814 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1815 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1816 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1817 --with-gcc-major-version-only
1818 use only GCC major number in filesystem paths
1819 --with-pic try to use only PIC/non-PIC objects [default=use
1820 both]
1821 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1822 --with-plugin-ld=[ARG] specify the plugin linker
1823 --with-glibc-version=M.N
1824 assume GCC used with glibc version M.N or later
1825 --with-long-double-128 use 128-bit long double by default
1826 --with-long-double-format={ieee,ibm}
1827 Specify whether PowerPC long double uses IEEE or IBM format
1828
1829 --with-gc={page,zone} this option is not supported anymore. It used to
1830 choose the garbage collection mechanism to use with
1831 the compiler
1832 --with-system-zlib use installed libz
1833 --with-linker-hash-style={sysv,gnu,both}
1834 specify the linker hash style
1835 --with-diagnostics-color={never,auto,auto-if-env,always}
1836 specify the default of -fdiagnostics-color option
1837 auto-if-env stands for -fdiagnostics-color=auto if
1838 GCC_COLOR environment variable is present and
1839 -fdiagnostics-color=never otherwise
1840 --with-diagnostics-urls={never,auto,auto-if-env,always}
1841 specify the default of -fdiagnostics-urls option
1842 auto-if-env stands for -fdiagnostics-urls=auto if
1843 GCC_URLS or TERM_URLS environment variable is
1844 present and -fdiagnostics-urls=never otherwise
1845
1846 Some influential environment variables:
1847 CC C compiler command
1848 CFLAGS C compiler flags
1849 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1850 nonstandard directory <lib dir>
1851 LIBS libraries to pass to the linker, e.g. -l<library>
1852 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1853 you have headers in a nonstandard directory <include dir>
1854 CXX C++ compiler command
1855 CXXFLAGS C++ compiler flags
1856 CXXCPP C++ preprocessor
1857 CPP C preprocessor
1858 GMPLIBS How to link GMP
1859 GMPINC How to find GMP include files
1860 ISLLIBS How to link isl
1861 ISLINC How to find isl include files
1862
1863 Use these variables to override the choices made by `configure' or to help
1864 it to find libraries and programs with nonstandard names/locations.
1865
1866 Report bugs to the package provider.
1867 _ACEOF
1868 ac_status=$?
1869 fi
1870
1871 if test "$ac_init_help" = "recursive"; then
1872 # If there are subdirs, report their specific --help.
1873 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1874 test -d "$ac_dir" ||
1875 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1876 continue
1877 ac_builddir=.
1878
1879 case "$ac_dir" in
1880 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1881 *)
1882 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1883 # A ".." for each directory in $ac_dir_suffix.
1884 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1885 case $ac_top_builddir_sub in
1886 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1887 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1888 esac ;;
1889 esac
1890 ac_abs_top_builddir=$ac_pwd
1891 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1892 # for backward compatibility:
1893 ac_top_builddir=$ac_top_build_prefix
1894
1895 case $srcdir in
1896 .) # We are building in place.
1897 ac_srcdir=.
1898 ac_top_srcdir=$ac_top_builddir_sub
1899 ac_abs_top_srcdir=$ac_pwd ;;
1900 [\\/]* | ?:[\\/]* ) # Absolute name.
1901 ac_srcdir=$srcdir$ac_dir_suffix;
1902 ac_top_srcdir=$srcdir
1903 ac_abs_top_srcdir=$srcdir ;;
1904 *) # Relative name.
1905 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1906 ac_top_srcdir=$ac_top_build_prefix$srcdir
1907 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1908 esac
1909 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1910
1911 cd "$ac_dir" || { ac_status=$?; continue; }
1912 # Check for guested configure.
1913 if test -f "$ac_srcdir/configure.gnu"; then
1914 echo &&
1915 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1916 elif test -f "$ac_srcdir/configure"; then
1917 echo &&
1918 $SHELL "$ac_srcdir/configure" --help=recursive
1919 else
1920 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1921 fi || ac_status=$?
1922 cd "$ac_pwd" || { ac_status=$?; break; }
1923 done
1924 fi
1925
1926 test -n "$ac_init_help" && exit $ac_status
1927 if $ac_init_version; then
1928 cat <<\_ACEOF
1929 configure
1930 generated by GNU Autoconf 2.69
1931
1932 Copyright (C) 2012 Free Software Foundation, Inc.
1933 This configure script is free software; the Free Software Foundation
1934 gives unlimited permission to copy, distribute and modify it.
1935 _ACEOF
1936 exit
1937 fi
1938
1939 ## ------------------------ ##
1940 ## Autoconf initialization. ##
1941 ## ------------------------ ##
1942
1943 # ac_fn_c_try_compile LINENO
1944 # --------------------------
1945 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1946 ac_fn_c_try_compile ()
1947 {
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 rm -f conftest.$ac_objext
1950 if { { ac_try="$ac_compile"
1951 case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954 esac
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_compile") 2>conftest.err
1958 ac_status=$?
1959 if test -s conftest.err; then
1960 grep -v '^ *+' conftest.err >conftest.er1
1961 cat conftest.er1 >&5
1962 mv -f conftest.er1 conftest.err
1963 fi
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } && {
1966 test -z "$ac_c_werror_flag" ||
1967 test ! -s conftest.err
1968 } && test -s conftest.$ac_objext; then :
1969 ac_retval=0
1970 else
1971 $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1973
1974 ac_retval=1
1975 fi
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status $ac_retval
1978
1979 } # ac_fn_c_try_compile
1980
1981 # ac_fn_cxx_try_compile LINENO
1982 # ----------------------------
1983 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1984 ac_fn_cxx_try_compile ()
1985 {
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 rm -f conftest.$ac_objext
1988 if { { ac_try="$ac_compile"
1989 case "(($ac_try" in
1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1992 esac
1993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_compile") 2>conftest.err
1996 ac_status=$?
1997 if test -s conftest.err; then
1998 grep -v '^ *+' conftest.err >conftest.er1
1999 cat conftest.er1 >&5
2000 mv -f conftest.er1 conftest.err
2001 fi
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; } && {
2004 test -z "$ac_cxx_werror_flag" ||
2005 test ! -s conftest.err
2006 } && test -s conftest.$ac_objext; then :
2007 ac_retval=0
2008 else
2009 $as_echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2011
2012 ac_retval=1
2013 fi
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015 as_fn_set_status $ac_retval
2016
2017 } # ac_fn_cxx_try_compile
2018
2019 # ac_fn_cxx_try_cpp LINENO
2020 # ------------------------
2021 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2022 ac_fn_cxx_try_cpp ()
2023 {
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 if { { ac_try="$ac_cpp conftest.$ac_ext"
2026 case "(($ac_try" in
2027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028 *) ac_try_echo=$ac_try;;
2029 esac
2030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031 $as_echo "$ac_try_echo"; } >&5
2032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2033 ac_status=$?
2034 if test -s conftest.err; then
2035 grep -v '^ *+' conftest.err >conftest.er1
2036 cat conftest.er1 >&5
2037 mv -f conftest.er1 conftest.err
2038 fi
2039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2040 test $ac_status = 0; } > conftest.i && {
2041 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2042 test ! -s conftest.err
2043 }; then :
2044 ac_retval=0
2045 else
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2048
2049 ac_retval=1
2050 fi
2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052 as_fn_set_status $ac_retval
2053
2054 } # ac_fn_cxx_try_cpp
2055
2056 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2057 # ---------------------------------------------------------
2058 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2059 # the include files in INCLUDES and setting the cache variable VAR
2060 # accordingly.
2061 ac_fn_cxx_check_header_mongrel ()
2062 {
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 if eval \${$3+:} false; then :
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066 $as_echo_n "checking for $2... " >&6; }
2067 if eval \${$3+:} false; then :
2068 $as_echo_n "(cached) " >&6
2069 fi
2070 eval ac_res=\$$3
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 else
2074 # Is the header compilable?
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2076 $as_echo_n "checking $2 usability... " >&6; }
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2079 $4
2080 #include <$2>
2081 _ACEOF
2082 if ac_fn_cxx_try_compile "$LINENO"; then :
2083 ac_header_compiler=yes
2084 else
2085 ac_header_compiler=no
2086 fi
2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2089 $as_echo "$ac_header_compiler" >&6; }
2090
2091 # Is the header present?
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2093 $as_echo_n "checking $2 presence... " >&6; }
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2096 #include <$2>
2097 _ACEOF
2098 if ac_fn_cxx_try_cpp "$LINENO"; then :
2099 ac_header_preproc=yes
2100 else
2101 ac_header_preproc=no
2102 fi
2103 rm -f conftest.err conftest.i conftest.$ac_ext
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2105 $as_echo "$ac_header_preproc" >&6; }
2106
2107 # So? What about this header?
2108 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2109 yes:no: )
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2111 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2113 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2114 ;;
2115 no:yes:* )
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2117 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2119 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2121 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2123 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2125 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2126 ;;
2127 esac
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if eval \${$3+:} false; then :
2131 $as_echo_n "(cached) " >&6
2132 else
2133 eval "$3=\$ac_header_compiler"
2134 fi
2135 eval ac_res=\$$3
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2138 fi
2139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140
2141 } # ac_fn_cxx_check_header_mongrel
2142
2143 # ac_fn_cxx_try_run LINENO
2144 # ------------------------
2145 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2146 # that executables *can* be run.
2147 ac_fn_cxx_try_run ()
2148 {
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 if { { ac_try="$ac_link"
2151 case "(($ac_try" in
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2154 esac
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157 (eval "$ac_link") 2>&5
2158 ac_status=$?
2159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2160 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2161 { { case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2164 esac
2165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166 $as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_try") 2>&5
2168 ac_status=$?
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; }; }; then :
2171 ac_retval=0
2172 else
2173 $as_echo "$as_me: program exited with status $ac_status" >&5
2174 $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2176
2177 ac_retval=$ac_status
2178 fi
2179 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181 as_fn_set_status $ac_retval
2182
2183 } # ac_fn_cxx_try_run
2184
2185 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2186 # ---------------------------------------------------------
2187 # Tests whether HEADER exists and can be compiled using the include files in
2188 # INCLUDES, setting the cache variable VAR accordingly.
2189 ac_fn_cxx_check_header_compile ()
2190 {
2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2193 $as_echo_n "checking for $2... " >&6; }
2194 if eval \${$3+:} false; then :
2195 $as_echo_n "(cached) " >&6
2196 else
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h. */
2199 $4
2200 #include <$2>
2201 _ACEOF
2202 if ac_fn_cxx_try_compile "$LINENO"; then :
2203 eval "$3=yes"
2204 else
2205 eval "$3=no"
2206 fi
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 fi
2209 eval ac_res=\$$3
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2211 $as_echo "$ac_res" >&6; }
2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2213
2214 } # ac_fn_cxx_check_header_compile
2215
2216 # ac_fn_c_try_cpp LINENO
2217 # ----------------------
2218 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2219 ac_fn_c_try_cpp ()
2220 {
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 if { { ac_try="$ac_cpp conftest.$ac_ext"
2223 case "(($ac_try" in
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2226 esac
2227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2228 $as_echo "$ac_try_echo"; } >&5
2229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2230 ac_status=$?
2231 if test -s conftest.err; then
2232 grep -v '^ *+' conftest.err >conftest.er1
2233 cat conftest.er1 >&5
2234 mv -f conftest.er1 conftest.err
2235 fi
2236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2237 test $ac_status = 0; } > conftest.i && {
2238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2239 test ! -s conftest.err
2240 }; then :
2241 ac_retval=0
2242 else
2243 $as_echo "$as_me: failed program was:" >&5
2244 sed 's/^/| /' conftest.$ac_ext >&5
2245
2246 ac_retval=1
2247 fi
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249 as_fn_set_status $ac_retval
2250
2251 } # ac_fn_c_try_cpp
2252
2253 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2254 # ----------------------------------------------
2255 # Tries to find the compile-time value of EXPR in a program that includes
2256 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2257 # computed
2258 ac_fn_cxx_compute_int ()
2259 {
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 if test "$cross_compiling" = yes; then
2262 # Depending upon the size, compute the lo and hi bounds.
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2265 $4
2266 int
2267 main ()
2268 {
2269 static int test_array [1 - 2 * !(($2) >= 0)];
2270 test_array [0] = 0;
2271 return test_array [0];
2272
2273 ;
2274 return 0;
2275 }
2276 _ACEOF
2277 if ac_fn_cxx_try_compile "$LINENO"; then :
2278 ac_lo=0 ac_mid=0
2279 while :; do
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2282 $4
2283 int
2284 main ()
2285 {
2286 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2287 test_array [0] = 0;
2288 return test_array [0];
2289
2290 ;
2291 return 0;
2292 }
2293 _ACEOF
2294 if ac_fn_cxx_try_compile "$LINENO"; then :
2295 ac_hi=$ac_mid; break
2296 else
2297 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2298 if test $ac_lo -le $ac_mid; then
2299 ac_lo= ac_hi=
2300 break
2301 fi
2302 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2303 fi
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 done
2306 else
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 $4
2310 int
2311 main ()
2312 {
2313 static int test_array [1 - 2 * !(($2) < 0)];
2314 test_array [0] = 0;
2315 return test_array [0];
2316
2317 ;
2318 return 0;
2319 }
2320 _ACEOF
2321 if ac_fn_cxx_try_compile "$LINENO"; then :
2322 ac_hi=-1 ac_mid=-1
2323 while :; do
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2326 $4
2327 int
2328 main ()
2329 {
2330 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2331 test_array [0] = 0;
2332 return test_array [0];
2333
2334 ;
2335 return 0;
2336 }
2337 _ACEOF
2338 if ac_fn_cxx_try_compile "$LINENO"; then :
2339 ac_lo=$ac_mid; break
2340 else
2341 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2342 if test $ac_mid -le $ac_hi; then
2343 ac_lo= ac_hi=
2344 break
2345 fi
2346 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2347 fi
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 done
2350 else
2351 ac_lo= ac_hi=
2352 fi
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354 fi
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 # Binary search between lo and hi bounds.
2357 while test "x$ac_lo" != "x$ac_hi"; do
2358 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2361 $4
2362 int
2363 main ()
2364 {
2365 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2366 test_array [0] = 0;
2367 return test_array [0];
2368
2369 ;
2370 return 0;
2371 }
2372 _ACEOF
2373 if ac_fn_cxx_try_compile "$LINENO"; then :
2374 ac_hi=$ac_mid
2375 else
2376 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2377 fi
2378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2379 done
2380 case $ac_lo in #((
2381 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2382 '') ac_retval=1 ;;
2383 esac
2384 else
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2387 $4
2388 static long int longval () { return $2; }
2389 static unsigned long int ulongval () { return $2; }
2390 #include <stdio.h>
2391 #include <stdlib.h>
2392 int
2393 main ()
2394 {
2395
2396 FILE *f = fopen ("conftest.val", "w");
2397 if (! f)
2398 return 1;
2399 if (($2) < 0)
2400 {
2401 long int i = longval ();
2402 if (i != ($2))
2403 return 1;
2404 fprintf (f, "%ld", i);
2405 }
2406 else
2407 {
2408 unsigned long int i = ulongval ();
2409 if (i != ($2))
2410 return 1;
2411 fprintf (f, "%lu", i);
2412 }
2413 /* Do not output a trailing newline, as this causes \r\n confusion
2414 on some platforms. */
2415 return ferror (f) || fclose (f) != 0;
2416
2417 ;
2418 return 0;
2419 }
2420 _ACEOF
2421 if ac_fn_cxx_try_run "$LINENO"; then :
2422 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2423 else
2424 ac_retval=1
2425 fi
2426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2427 conftest.$ac_objext conftest.beam conftest.$ac_ext
2428 rm -f conftest.val
2429
2430 fi
2431 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2432 as_fn_set_status $ac_retval
2433
2434 } # ac_fn_cxx_compute_int
2435
2436 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2437 # ---------------------------------------------
2438 # Tests whether TYPE exists after having included INCLUDES, setting cache
2439 # variable VAR accordingly.
2440 ac_fn_cxx_check_type ()
2441 {
2442 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2444 $as_echo_n "checking for $2... " >&6; }
2445 if eval \${$3+:} false; then :
2446 $as_echo_n "(cached) " >&6
2447 else
2448 eval "$3=no"
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h. */
2451 $4
2452 int
2453 main ()
2454 {
2455 if (sizeof ($2))
2456 return 0;
2457 ;
2458 return 0;
2459 }
2460 _ACEOF
2461 if ac_fn_cxx_try_compile "$LINENO"; then :
2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h. */
2464 $4
2465 int
2466 main ()
2467 {
2468 if (sizeof (($2)))
2469 return 0;
2470 ;
2471 return 0;
2472 }
2473 _ACEOF
2474 if ac_fn_cxx_try_compile "$LINENO"; then :
2475
2476 else
2477 eval "$3=yes"
2478 fi
2479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480 fi
2481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2482 fi
2483 eval ac_res=\$$3
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2485 $as_echo "$ac_res" >&6; }
2486 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2487
2488 } # ac_fn_cxx_check_type
2489
2490 # ac_fn_c_find_intX_t LINENO BITS VAR
2491 # -----------------------------------
2492 # Finds a signed integer type with width BITS, setting cache variable VAR
2493 # accordingly.
2494 ac_fn_c_find_intX_t ()
2495 {
2496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2498 $as_echo_n "checking for int$2_t... " >&6; }
2499 if eval \${$3+:} false; then :
2500 $as_echo_n "(cached) " >&6
2501 else
2502 eval "$3=no"
2503 # Order is important - never check a type that is potentially smaller
2504 # than half of the expected target width.
2505 for ac_type in int$2_t 'int' 'long int' \
2506 'long long int' 'short int' 'signed char'; do
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2509 $ac_includes_default
2510 enum { N = $2 / 2 - 1 };
2511 int
2512 main ()
2513 {
2514 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2515 test_array [0] = 0;
2516 return test_array [0];
2517
2518 ;
2519 return 0;
2520 }
2521 _ACEOF
2522 if ac_fn_cxx_try_compile "$LINENO"; then :
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2525 $ac_includes_default
2526 enum { N = $2 / 2 - 1 };
2527 int
2528 main ()
2529 {
2530 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2531 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2532 test_array [0] = 0;
2533 return test_array [0];
2534
2535 ;
2536 return 0;
2537 }
2538 _ACEOF
2539 if ac_fn_cxx_try_compile "$LINENO"; then :
2540
2541 else
2542 case $ac_type in #(
2543 int$2_t) :
2544 eval "$3=yes" ;; #(
2545 *) :
2546 eval "$3=\$ac_type" ;;
2547 esac
2548 fi
2549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550 fi
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552 if eval test \"x\$"$3"\" = x"no"; then :
2553
2554 else
2555 break
2556 fi
2557 done
2558 fi
2559 eval ac_res=\$$3
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2561 $as_echo "$ac_res" >&6; }
2562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2563
2564 } # ac_fn_c_find_intX_t
2565
2566 # ac_fn_cxx_try_link LINENO
2567 # -------------------------
2568 # Try to link conftest.$ac_ext, and return whether this succeeded.
2569 ac_fn_cxx_try_link ()
2570 {
2571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2572 rm -f conftest.$ac_objext conftest$ac_exeext
2573 if { { ac_try="$ac_link"
2574 case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577 esac
2578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2579 $as_echo "$ac_try_echo"; } >&5
2580 (eval "$ac_link") 2>conftest.err
2581 ac_status=$?
2582 if test -s conftest.err; then
2583 grep -v '^ *+' conftest.err >conftest.er1
2584 cat conftest.er1 >&5
2585 mv -f conftest.er1 conftest.err
2586 fi
2587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2588 test $ac_status = 0; } && {
2589 test -z "$ac_cxx_werror_flag" ||
2590 test ! -s conftest.err
2591 } && test -s conftest$ac_exeext && {
2592 test "$cross_compiling" = yes ||
2593 test -x conftest$ac_exeext
2594 }; then :
2595 ac_retval=0
2596 else
2597 $as_echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2599
2600 ac_retval=1
2601 fi
2602 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2603 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2604 # interfere with the next link command; also delete a directory that is
2605 # left behind by Apple's compiler. We do this before executing the actions.
2606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2608 as_fn_set_status $ac_retval
2609
2610 } # ac_fn_cxx_try_link
2611
2612 # ac_fn_c_find_uintX_t LINENO BITS VAR
2613 # ------------------------------------
2614 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2615 # accordingly.
2616 ac_fn_c_find_uintX_t ()
2617 {
2618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2620 $as_echo_n "checking for uint$2_t... " >&6; }
2621 if eval \${$3+:} false; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 eval "$3=no"
2625 # Order is important - never check a type that is potentially smaller
2626 # than half of the expected target width.
2627 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2628 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630 /* end confdefs.h. */
2631 $ac_includes_default
2632 int
2633 main ()
2634 {
2635 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2636 test_array [0] = 0;
2637 return test_array [0];
2638
2639 ;
2640 return 0;
2641 }
2642 _ACEOF
2643 if ac_fn_cxx_try_compile "$LINENO"; then :
2644 case $ac_type in #(
2645 uint$2_t) :
2646 eval "$3=yes" ;; #(
2647 *) :
2648 eval "$3=\$ac_type" ;;
2649 esac
2650 fi
2651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2652 if eval test \"x\$"$3"\" = x"no"; then :
2653
2654 else
2655 break
2656 fi
2657 done
2658 fi
2659 eval ac_res=\$$3
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2661 $as_echo "$ac_res" >&6; }
2662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2663
2664 } # ac_fn_c_find_uintX_t
2665
2666 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2667 # ------------------------------------------------
2668 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2669 ac_fn_cxx_check_header_preproc ()
2670 {
2671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2673 $as_echo_n "checking for $2... " >&6; }
2674 if eval \${$3+:} false; then :
2675 $as_echo_n "(cached) " >&6
2676 else
2677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h. */
2679 #include <$2>
2680 _ACEOF
2681 if ac_fn_cxx_try_cpp "$LINENO"; then :
2682 eval "$3=yes"
2683 else
2684 eval "$3=no"
2685 fi
2686 rm -f conftest.err conftest.i conftest.$ac_ext
2687 fi
2688 eval ac_res=\$$3
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2690 $as_echo "$ac_res" >&6; }
2691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2692
2693 } # ac_fn_cxx_check_header_preproc
2694
2695 # ac_fn_cxx_check_func LINENO FUNC VAR
2696 # ------------------------------------
2697 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2698 ac_fn_cxx_check_func ()
2699 {
2700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2702 $as_echo_n "checking for $2... " >&6; }
2703 if eval \${$3+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h. */
2708 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2710 #define $2 innocuous_$2
2711
2712 /* System header to define __stub macros and hopefully few prototypes,
2713 which can conflict with char $2 (); below.
2714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2715 <limits.h> exists even on freestanding compilers. */
2716
2717 #ifdef __STDC__
2718 # include <limits.h>
2719 #else
2720 # include <assert.h>
2721 #endif
2722
2723 #undef $2
2724
2725 /* Override any GCC internal prototype to avoid an error.
2726 Use char because int might match the return type of a GCC
2727 builtin and then its argument prototype would still apply. */
2728 #ifdef __cplusplus
2729 extern "C"
2730 #endif
2731 char $2 ();
2732 /* The GNU C library defines this for functions which it implements
2733 to always fail with ENOSYS. Some functions are actually named
2734 something starting with __ and the normal name is an alias. */
2735 #if defined __stub_$2 || defined __stub___$2
2736 choke me
2737 #endif
2738
2739 int
2740 main ()
2741 {
2742 return $2 ();
2743 ;
2744 return 0;
2745 }
2746 _ACEOF
2747 if ac_fn_cxx_try_link "$LINENO"; then :
2748 eval "$3=yes"
2749 else
2750 eval "$3=no"
2751 fi
2752 rm -f core conftest.err conftest.$ac_objext \
2753 conftest$ac_exeext conftest.$ac_ext
2754 fi
2755 eval ac_res=\$$3
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2757 $as_echo "$ac_res" >&6; }
2758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2759
2760 } # ac_fn_cxx_check_func
2761
2762 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2763 # -----------------------------------------------
2764 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2765 # accordingly.
2766 ac_fn_cxx_check_decl ()
2767 {
2768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2769 as_decl_name=`echo $2|sed 's/ *(.*//'`
2770 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2772 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2773 if eval \${$3+:} false; then :
2774 $as_echo_n "(cached) " >&6
2775 else
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h. */
2778 $4
2779 int
2780 main ()
2781 {
2782 #ifndef $as_decl_name
2783 #ifdef __cplusplus
2784 (void) $as_decl_use;
2785 #else
2786 (void) $as_decl_name;
2787 #endif
2788 #endif
2789
2790 ;
2791 return 0;
2792 }
2793 _ACEOF
2794 if ac_fn_cxx_try_compile "$LINENO"; then :
2795 eval "$3=yes"
2796 else
2797 eval "$3=no"
2798 fi
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800 fi
2801 eval ac_res=\$$3
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2803 $as_echo "$ac_res" >&6; }
2804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2805
2806 } # ac_fn_cxx_check_decl
2807
2808 # ac_fn_c_try_link LINENO
2809 # -----------------------
2810 # Try to link conftest.$ac_ext, and return whether this succeeded.
2811 ac_fn_c_try_link ()
2812 {
2813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2814 rm -f conftest.$ac_objext conftest$ac_exeext
2815 if { { ac_try="$ac_link"
2816 case "(($ac_try" in
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2819 esac
2820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2821 $as_echo "$ac_try_echo"; } >&5
2822 (eval "$ac_link") 2>conftest.err
2823 ac_status=$?
2824 if test -s conftest.err; then
2825 grep -v '^ *+' conftest.err >conftest.er1
2826 cat conftest.er1 >&5
2827 mv -f conftest.er1 conftest.err
2828 fi
2829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2830 test $ac_status = 0; } && {
2831 test -z "$ac_c_werror_flag" ||
2832 test ! -s conftest.err
2833 } && test -s conftest$ac_exeext && {
2834 test "$cross_compiling" = yes ||
2835 test -x conftest$ac_exeext
2836 }; then :
2837 ac_retval=0
2838 else
2839 $as_echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2841
2842 ac_retval=1
2843 fi
2844 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2845 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2846 # interfere with the next link command; also delete a directory that is
2847 # left behind by Apple's compiler. We do this before executing the actions.
2848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2850 as_fn_set_status $ac_retval
2851
2852 } # ac_fn_c_try_link
2853
2854 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2855 # ----------------------------------------------
2856 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2857 ac_fn_c_check_header_preproc ()
2858 {
2859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2861 $as_echo_n "checking for $2... " >&6; }
2862 if eval \${$3+:} false; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h. */
2867 #include <$2>
2868 _ACEOF
2869 if ac_fn_c_try_cpp "$LINENO"; then :
2870 eval "$3=yes"
2871 else
2872 eval "$3=no"
2873 fi
2874 rm -f conftest.err conftest.i conftest.$ac_ext
2875 fi
2876 eval ac_res=\$$3
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2878 $as_echo "$ac_res" >&6; }
2879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2880
2881 } # ac_fn_c_check_header_preproc
2882
2883 # ac_fn_c_check_func LINENO FUNC VAR
2884 # ----------------------------------
2885 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2886 ac_fn_c_check_func ()
2887 {
2888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2890 $as_echo_n "checking for $2... " >&6; }
2891 if eval \${$3+:} false; then :
2892 $as_echo_n "(cached) " >&6
2893 else
2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895 /* end confdefs.h. */
2896 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2898 #define $2 innocuous_$2
2899
2900 /* System header to define __stub macros and hopefully few prototypes,
2901 which can conflict with char $2 (); below.
2902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2903 <limits.h> exists even on freestanding compilers. */
2904
2905 #ifdef __STDC__
2906 # include <limits.h>
2907 #else
2908 # include <assert.h>
2909 #endif
2910
2911 #undef $2
2912
2913 /* Override any GCC internal prototype to avoid an error.
2914 Use char because int might match the return type of a GCC
2915 builtin and then its argument prototype would still apply. */
2916 #ifdef __cplusplus
2917 extern "C"
2918 #endif
2919 char $2 ();
2920 /* The GNU C library defines this for functions which it implements
2921 to always fail with ENOSYS. Some functions are actually named
2922 something starting with __ and the normal name is an alias. */
2923 #if defined __stub_$2 || defined __stub___$2
2924 choke me
2925 #endif
2926
2927 int
2928 main ()
2929 {
2930 return $2 ();
2931 ;
2932 return 0;
2933 }
2934 _ACEOF
2935 if ac_fn_c_try_link "$LINENO"; then :
2936 eval "$3=yes"
2937 else
2938 eval "$3=no"
2939 fi
2940 rm -f core conftest.err conftest.$ac_objext \
2941 conftest$ac_exeext conftest.$ac_ext
2942 fi
2943 eval ac_res=\$$3
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2945 $as_echo "$ac_res" >&6; }
2946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2947
2948 } # ac_fn_c_check_func
2949 cat >config.log <<_ACEOF
2950 This file contains any messages produced by compilers while
2951 running configure, to aid debugging if configure makes a mistake.
2952
2953 It was created by $as_me, which was
2954 generated by GNU Autoconf 2.69. Invocation command line was
2955
2956 $ $0 $@
2957
2958 _ACEOF
2959 exec 5>>config.log
2960 {
2961 cat <<_ASUNAME
2962 ## --------- ##
2963 ## Platform. ##
2964 ## --------- ##
2965
2966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2971
2972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2973 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2974
2975 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2976 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2978 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2979 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2980 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2981 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2982
2983 _ASUNAME
2984
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2987 do
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 $as_echo "PATH: $as_dir"
2991 done
2992 IFS=$as_save_IFS
2993
2994 } >&5
2995
2996 cat >&5 <<_ACEOF
2997
2998
2999 ## ----------- ##
3000 ## Core tests. ##
3001 ## ----------- ##
3002
3003 _ACEOF
3004
3005
3006 # Keep a trace of the command line.
3007 # Strip out --no-create and --no-recursion so they do not pile up.
3008 # Strip out --silent because we don't want to record it for future runs.
3009 # Also quote any args containing shell meta-characters.
3010 # Make two passes to allow for proper duplicate-argument suppression.
3011 ac_configure_args=
3012 ac_configure_args0=
3013 ac_configure_args1=
3014 ac_must_keep_next=false
3015 for ac_pass in 1 2
3016 do
3017 for ac_arg
3018 do
3019 case $ac_arg in
3020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3022 | -silent | --silent | --silen | --sile | --sil)
3023 continue ;;
3024 *\'*)
3025 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3026 esac
3027 case $ac_pass in
3028 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3029 2)
3030 as_fn_append ac_configure_args1 " '$ac_arg'"
3031 if test $ac_must_keep_next = true; then
3032 ac_must_keep_next=false # Got value, back to normal.
3033 else
3034 case $ac_arg in
3035 *=* | --config-cache | -C | -disable-* | --disable-* \
3036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3038 | -with-* | --with-* | -without-* | --without-* | --x)
3039 case "$ac_configure_args0 " in
3040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3041 esac
3042 ;;
3043 -* ) ac_must_keep_next=true ;;
3044 esac
3045 fi
3046 as_fn_append ac_configure_args " '$ac_arg'"
3047 ;;
3048 esac
3049 done
3050 done
3051 { ac_configure_args0=; unset ac_configure_args0;}
3052 { ac_configure_args1=; unset ac_configure_args1;}
3053
3054 # When interrupted or exit'd, cleanup temporary files, and complete
3055 # config.log. We remove comments because anyway the quotes in there
3056 # would cause problems or look ugly.
3057 # WARNING: Use '\'' to represent an apostrophe within the trap.
3058 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3059 trap 'exit_status=$?
3060 # Save into config.log some information that might help in debugging.
3061 {
3062 echo
3063
3064 $as_echo "## ---------------- ##
3065 ## Cache variables. ##
3066 ## ---------------- ##"
3067 echo
3068 # The following way of writing the cache mishandles newlines in values,
3069 (
3070 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3071 eval ac_val=\$$ac_var
3072 case $ac_val in #(
3073 *${as_nl}*)
3074 case $ac_var in #(
3075 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3076 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3077 esac
3078 case $ac_var in #(
3079 _ | IFS | as_nl) ;; #(
3080 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3081 *) { eval $ac_var=; unset $ac_var;} ;;
3082 esac ;;
3083 esac
3084 done
3085 (set) 2>&1 |
3086 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3087 *${as_nl}ac_space=\ *)
3088 sed -n \
3089 "s/'\''/'\''\\\\'\'''\''/g;
3090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3091 ;; #(
3092 *)
3093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3094 ;;
3095 esac |
3096 sort
3097 )
3098 echo
3099
3100 $as_echo "## ----------------- ##
3101 ## Output variables. ##
3102 ## ----------------- ##"
3103 echo
3104 for ac_var in $ac_subst_vars
3105 do
3106 eval ac_val=\$$ac_var
3107 case $ac_val in
3108 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3109 esac
3110 $as_echo "$ac_var='\''$ac_val'\''"
3111 done | sort
3112 echo
3113
3114 if test -n "$ac_subst_files"; then
3115 $as_echo "## ------------------- ##
3116 ## File substitutions. ##
3117 ## ------------------- ##"
3118 echo
3119 for ac_var in $ac_subst_files
3120 do
3121 eval ac_val=\$$ac_var
3122 case $ac_val in
3123 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3124 esac
3125 $as_echo "$ac_var='\''$ac_val'\''"
3126 done | sort
3127 echo
3128 fi
3129
3130 if test -s confdefs.h; then
3131 $as_echo "## ----------- ##
3132 ## confdefs.h. ##
3133 ## ----------- ##"
3134 echo
3135 cat confdefs.h
3136 echo
3137 fi
3138 test "$ac_signal" != 0 &&
3139 $as_echo "$as_me: caught signal $ac_signal"
3140 $as_echo "$as_me: exit $exit_status"
3141 } >&5
3142 rm -f core *.core core.conftest.* &&
3143 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3144 exit $exit_status
3145 ' 0
3146 for ac_signal in 1 2 13 15; do
3147 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3148 done
3149 ac_signal=0
3150
3151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3152 rm -f -r conftest* confdefs.h
3153
3154 $as_echo "/* confdefs.h */" > confdefs.h
3155
3156 # Predefined preprocessor variables.
3157
3158 cat >>confdefs.h <<_ACEOF
3159 #define PACKAGE_NAME "$PACKAGE_NAME"
3160 _ACEOF
3161
3162 cat >>confdefs.h <<_ACEOF
3163 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3164 _ACEOF
3165
3166 cat >>confdefs.h <<_ACEOF
3167 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3168 _ACEOF
3169
3170 cat >>confdefs.h <<_ACEOF
3171 #define PACKAGE_STRING "$PACKAGE_STRING"
3172 _ACEOF
3173
3174 cat >>confdefs.h <<_ACEOF
3175 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3176 _ACEOF
3177
3178 cat >>confdefs.h <<_ACEOF
3179 #define PACKAGE_URL "$PACKAGE_URL"
3180 _ACEOF
3181
3182
3183 # Let the site file select an alternate cache file if it wants to.
3184 # Prefer an explicitly selected file to automatically selected ones.
3185 ac_site_file1=NONE
3186 ac_site_file2=NONE
3187 if test -n "$CONFIG_SITE"; then
3188 # We do not want a PATH search for config.site.
3189 case $CONFIG_SITE in #((
3190 -*) ac_site_file1=./$CONFIG_SITE;;
3191 */*) ac_site_file1=$CONFIG_SITE;;
3192 *) ac_site_file1=./$CONFIG_SITE;;
3193 esac
3194 elif test "x$prefix" != xNONE; then
3195 ac_site_file1=$prefix/share/config.site
3196 ac_site_file2=$prefix/etc/config.site
3197 else
3198 ac_site_file1=$ac_default_prefix/share/config.site
3199 ac_site_file2=$ac_default_prefix/etc/config.site
3200 fi
3201 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3202 do
3203 test "x$ac_site_file" = xNONE && continue
3204 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3206 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3207 sed 's/^/| /' "$ac_site_file" >&5
3208 . "$ac_site_file" \
3209 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3211 as_fn_error $? "failed to load site script $ac_site_file
3212 See \`config.log' for more details" "$LINENO" 5; }
3213 fi
3214 done
3215
3216 if test -r "$cache_file"; then
3217 # Some versions of bash will fail to source /dev/null (special files
3218 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3219 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3221 $as_echo "$as_me: loading cache $cache_file" >&6;}
3222 case $cache_file in
3223 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3224 *) . "./$cache_file";;
3225 esac
3226 fi
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3229 $as_echo "$as_me: creating cache $cache_file" >&6;}
3230 >$cache_file
3231 fi
3232
3233 # Check that the precious variables saved in the cache have kept the same
3234 # value.
3235 ac_cache_corrupted=false
3236 for ac_var in $ac_precious_vars; do
3237 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3238 eval ac_new_set=\$ac_env_${ac_var}_set
3239 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3240 eval ac_new_val=\$ac_env_${ac_var}_value
3241 case $ac_old_set,$ac_new_set in
3242 set,)
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3244 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3245 ac_cache_corrupted=: ;;
3246 ,set)
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3248 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3249 ac_cache_corrupted=: ;;
3250 ,);;
3251 *)
3252 if test "x$ac_old_val" != "x$ac_new_val"; then
3253 # differences in whitespace do not lead to failure.
3254 ac_old_val_w=`echo x $ac_old_val`
3255 ac_new_val_w=`echo x $ac_new_val`
3256 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3258 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3259 ac_cache_corrupted=:
3260 else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3262 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3263 eval $ac_var=\$ac_old_val
3264 fi
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3266 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3268 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3269 fi;;
3270 esac
3271 # Pass precious variables to config.status.
3272 if test "$ac_new_set" = set; then
3273 case $ac_new_val in
3274 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3275 *) ac_arg=$ac_var=$ac_new_val ;;
3276 esac
3277 case " $ac_configure_args " in
3278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3279 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3280 esac
3281 fi
3282 done
3283 if $ac_cache_corrupted; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3287 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3288 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3289 fi
3290 ## -------------------- ##
3291 ## Main body of script. ##
3292 ## -------------------- ##
3293
3294 ac_ext=c
3295 ac_cpp='$CPP $CPPFLAGS'
3296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3299
3300
3301
3302
3303
3304
3305 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3306
3307
3308 gcc_version=`cat $srcdir/BASE-VER`
3309
3310 # Determine the host, build, and target systems
3311 ac_aux_dir=
3312 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3313 if test -f "$ac_dir/install-sh"; then
3314 ac_aux_dir=$ac_dir
3315 ac_install_sh="$ac_aux_dir/install-sh -c"
3316 break
3317 elif test -f "$ac_dir/install.sh"; then
3318 ac_aux_dir=$ac_dir
3319 ac_install_sh="$ac_aux_dir/install.sh -c"
3320 break
3321 elif test -f "$ac_dir/shtool"; then
3322 ac_aux_dir=$ac_dir
3323 ac_install_sh="$ac_aux_dir/shtool install -c"
3324 break
3325 fi
3326 done
3327 if test -z "$ac_aux_dir"; then
3328 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3329 fi
3330
3331 # These three variables are undocumented and unsupported,
3332 # and are intended to be withdrawn in a future Autoconf release.
3333 # They can cause serious problems if a builder's source tree is in a directory
3334 # whose full name contains unusual characters.
3335 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3336 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3337 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3338
3339
3340 # Make sure we can run config.sub.
3341 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3342 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3343
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3345 $as_echo_n "checking build system type... " >&6; }
3346 if ${ac_cv_build+:} false; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 ac_build_alias=$build_alias
3350 test "x$ac_build_alias" = x &&
3351 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3352 test "x$ac_build_alias" = x &&
3353 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3354 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3355 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3356
3357 fi
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3359 $as_echo "$ac_cv_build" >&6; }
3360 case $ac_cv_build in
3361 *-*-*) ;;
3362 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3363 esac
3364 build=$ac_cv_build
3365 ac_save_IFS=$IFS; IFS='-'
3366 set x $ac_cv_build
3367 shift
3368 build_cpu=$1
3369 build_vendor=$2
3370 shift; shift
3371 # Remember, the first character of IFS is used to create $*,
3372 # except with old shells:
3373 build_os=$*
3374 IFS=$ac_save_IFS
3375 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3376
3377
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3379 $as_echo_n "checking host system type... " >&6; }
3380 if ${ac_cv_host+:} false; then :
3381 $as_echo_n "(cached) " >&6
3382 else
3383 if test "x$host_alias" = x; then
3384 ac_cv_host=$ac_cv_build
3385 else
3386 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3388 fi
3389
3390 fi
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3392 $as_echo "$ac_cv_host" >&6; }
3393 case $ac_cv_host in
3394 *-*-*) ;;
3395 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3396 esac
3397 host=$ac_cv_host
3398 ac_save_IFS=$IFS; IFS='-'
3399 set x $ac_cv_host
3400 shift
3401 host_cpu=$1
3402 host_vendor=$2
3403 shift; shift
3404 # Remember, the first character of IFS is used to create $*,
3405 # except with old shells:
3406 host_os=$*
3407 IFS=$ac_save_IFS
3408 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3409
3410
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3412 $as_echo_n "checking target system type... " >&6; }
3413 if ${ac_cv_target+:} false; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3416 if test "x$target_alias" = x; then
3417 ac_cv_target=$ac_cv_host
3418 else
3419 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3420 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3421 fi
3422
3423 fi
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3425 $as_echo "$ac_cv_target" >&6; }
3426 case $ac_cv_target in
3427 *-*-*) ;;
3428 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3429 esac
3430 target=$ac_cv_target
3431 ac_save_IFS=$IFS; IFS='-'
3432 set x $ac_cv_target
3433 shift
3434 target_cpu=$1
3435 target_vendor=$2
3436 shift; shift
3437 # Remember, the first character of IFS is used to create $*,
3438 # except with old shells:
3439 target_os=$*
3440 IFS=$ac_save_IFS
3441 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3442
3443
3444 # The aliases save the names the user supplied, while $host etc.
3445 # will get canonicalized.
3446 test -n "$target_alias" &&
3447 test "$program_prefix$program_suffix$program_transform_name" = \
3448 NONENONEs,x,x, &&
3449 program_prefix=${target_alias}-
3450
3451 # Determine the noncanonical host name, for Ada.
3452 case ${build_alias} in
3453 "") build_noncanonical=${build} ;;
3454 *) build_noncanonical=${build_alias} ;;
3455 esac
3456
3457 case ${host_alias} in
3458 "") host_noncanonical=${build_noncanonical} ;;
3459 *) host_noncanonical=${host_alias} ;;
3460 esac
3461
3462
3463
3464
3465 # Determine the noncanonical target name, for directory use.
3466 case ${target_alias} in
3467 "") target_noncanonical=${host_noncanonical} ;;
3468 *) target_noncanonical=${target_alias} ;;
3469 esac
3470
3471
3472
3473
3474 # Used for constructing correct paths for offload compilers.
3475 real_target_noncanonical=${target_noncanonical}
3476 accel_dir_suffix=
3477
3478 # Determine the target- and build-specific subdirectories
3479
3480 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3481 # have matching libraries, they should use host libraries: Makefile.tpl
3482 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3483 # However, they still use the build modules, because the corresponding
3484 # host modules (e.g. bison) are only built for the host when bootstrap
3485 # finishes. So:
3486 # - build_subdir is where we find build modules, and never changes.
3487 # - build_libsubdir is where we find build libraries, and can be overridden.
3488
3489 # Prefix 'build-' so this never conflicts with target_subdir.
3490 build_subdir="build-${build_noncanonical}"
3491
3492 # Check whether --with-build-libsubdir was given.
3493 if test "${with_build_libsubdir+set}" = set; then :
3494 withval=$with_build_libsubdir; build_libsubdir="$withval"
3495 else
3496 build_libsubdir="$build_subdir"
3497 fi
3498
3499 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3500 if ( test $srcdir = . && test -d gcc ) \
3501 || test -d $srcdir/../host-${host_noncanonical}; then
3502 host_subdir="host-${host_noncanonical}"
3503 else
3504 host_subdir=.
3505 fi
3506 # No prefix.
3507 target_subdir=${target_noncanonical}
3508
3509
3510 # Set program_transform_name
3511 test "$program_prefix" != NONE &&
3512 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3513 # Use a double $ so make ignores it.
3514 test "$program_suffix" != NONE &&
3515 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3516 # Double any \ or $.
3517 # By default was `s,x,x', remove it if useless.
3518 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3519 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3520
3521
3522 # Check for bogus environment variables.
3523 # Test if LIBRARY_PATH contains the notation for the current directory
3524 # since this would lead to problems installing/building glibc.
3525 # LIBRARY_PATH contains the current directory if one of the following
3526 # is true:
3527 # - one of the terminals (":" and ";") is the first or last sign
3528 # - two terminals occur directly after each other
3529 # - the path contains an element with a dot in it
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3531 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3532 case ${LIBRARY_PATH} in
3533 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3534 library_path_setting="contains current directory"
3535 ;;
3536 *)
3537 library_path_setting="ok"
3538 ;;
3539 esac
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3541 $as_echo "$library_path_setting" >&6; }
3542 if test "$library_path_setting" != "ok"; then
3543 as_fn_error $? "
3544 *** LIBRARY_PATH shouldn't contain the current directory when
3545 *** building gcc. Please change the environment variable
3546 *** and run configure again." "$LINENO" 5
3547 fi
3548
3549 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3550 # since this would lead to problems installing/building glibc.
3551 # GCC_EXEC_PREFIX contains the current directory if one of the following
3552 # is true:
3553 # - one of the terminals (":" and ";") is the first or last sign
3554 # - two terminals occur directly after each other
3555 # - the path contains an element with a dot in it
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3557 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3558 case ${GCC_EXEC_PREFIX} in
3559 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3560 gcc_exec_prefix_setting="contains current directory"
3561 ;;
3562 *)
3563 gcc_exec_prefix_setting="ok"
3564 ;;
3565 esac
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3567 $as_echo "$gcc_exec_prefix_setting" >&6; }
3568 if test "$gcc_exec_prefix_setting" != "ok"; then
3569 as_fn_error $? "
3570 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3571 *** building gcc. Please change the environment variable
3572 *** and run configure again." "$LINENO" 5
3573 fi
3574
3575 # -----------
3576 # Directories
3577 # -----------
3578
3579 # Specify the local prefix
3580 local_prefix=
3581
3582 # Check whether --with-local-prefix was given.
3583 if test "${with_local_prefix+set}" = set; then :
3584 withval=$with_local_prefix; case "${withval}" in
3585 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3586 no) ;;
3587 *) local_prefix=$with_local_prefix ;;
3588 esac
3589 fi
3590
3591
3592 # Default local prefix if it is empty
3593 if test x$local_prefix = x; then
3594 local_prefix=/usr/local
3595 fi
3596
3597
3598 # Check whether --with-native-system-header-dir was given.
3599 if test "${with_native_system_header_dir+set}" = set; then :
3600 withval=$with_native_system_header_dir;
3601 case ${with_native_system_header_dir} in
3602 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3603 /* | [A-Za-z]:[\\/]*) ;;
3604 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3605 esac
3606 configured_native_system_header_dir="${withval}"
3607
3608 else
3609 configured_native_system_header_dir=
3610 fi
3611
3612
3613
3614 # Check whether --with-build-sysroot was given.
3615 if test "${with_build_sysroot+set}" = set; then :
3616 withval=$with_build_sysroot; if test x"$withval" != x ; then
3617 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3618 fi
3619 else
3620 SYSROOT_CFLAGS_FOR_TARGET=
3621 fi
3622
3623
3624
3625 if test "x$prefix" = xNONE; then
3626 test_prefix=/usr/local
3627 else
3628 test_prefix=$prefix
3629 fi
3630 if test "x$exec_prefix" = xNONE; then
3631 test_exec_prefix=$test_prefix
3632 else
3633 test_exec_prefix=$exec_prefix
3634 fi
3635
3636
3637 # Check whether --with-sysroot was given.
3638 if test "${with_sysroot+set}" = set; then :
3639 withval=$with_sysroot;
3640 case ${with_sysroot} in
3641 /) ;;
3642 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3643 esac
3644 case ${with_sysroot} in
3645 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3646 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3647 esac
3648
3649 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3650 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3651
3652 case ${TARGET_SYSTEM_ROOT} in
3653 "${test_prefix}"|"${test_prefix}/"*|\
3654 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3655 '${prefix}'|'${prefix}/'*|\
3656 '${exec_prefix}'|'${exec_prefix}/'*)
3657 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3658 TARGET_SYSTEM_ROOT_DEFINE="$t"
3659 ;;
3660 esac
3661
3662 else
3663
3664 TARGET_SYSTEM_ROOT=
3665 TARGET_SYSTEM_ROOT_DEFINE=
3666 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3667
3668 fi
3669
3670
3671
3672
3673
3674 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3675 # passed in by the toplevel make and thus we'd get different behavior
3676 # depending on where we built the sources.
3677 gcc_gxx_include_dir=
3678 # Specify the g++ header file directory
3679
3680 # Check whether --with-gxx-include-dir was given.
3681 if test "${with_gxx_include_dir+set}" = set; then :
3682 withval=$with_gxx_include_dir; case "${withval}" in
3683 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3684 no) ;;
3685 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3686 esac
3687 fi
3688
3689
3690 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3691 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3692 # relative to the sysroot.
3693 gcc_gxx_include_dir_add_sysroot=0
3694
3695 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3696 if test x${gcc_gxx_include_dir} = x; then
3697 if test x${enable_version_specific_runtime_libs} = xyes; then
3698 gcc_gxx_include_dir='${libsubdir}/include/c++'
3699 else
3700 libstdcxx_incdir='include/c++/$(version)'
3701 if test x$host != x$target; then
3702 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3703 fi
3704 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3705 fi
3706 elif test "${with_sysroot+set}" = set; then
3707 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3708 if test "${gcc_gxx_without_sysroot}"; then
3709 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3710 gcc_gxx_include_dir_add_sysroot=1
3711 fi
3712 fi
3713
3714
3715 # Check whether --with-cpp_install_dir was given.
3716 if test "${with_cpp_install_dir+set}" = set; then :
3717 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3718 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3719 elif test x$withval != xno; then
3720 cpp_install_dir=$withval
3721 fi
3722 fi
3723
3724
3725 # We would like to our source tree to be readonly. However when releases or
3726 # pre-releases are generated, the flex/bison generated files as well as the
3727 # various formats of manuals need to be included along with the rest of the
3728 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3729 # just that.
3730
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3732 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3733 # Check whether --enable-generated-files-in-srcdir was given.
3734 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3735 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3736 else
3737 generated_files_in_srcdir=no
3738 fi
3739
3740
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3742 $as_echo "$generated_files_in_srcdir" >&6; }
3743
3744 if test "$generated_files_in_srcdir" = "yes"; then
3745 GENINSRC=''
3746 else
3747 GENINSRC='#'
3748 fi
3749
3750
3751 # -------------------
3752 # Find default linker
3753 # -------------------
3754
3755 # With GNU ld
3756
3757 # Check whether --with-gnu-ld was given.
3758 if test "${with_gnu_ld+set}" = set; then :
3759 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3760 else
3761 gnu_ld_flag=no
3762 fi
3763
3764
3765 case $target in
3766 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3767 *) ld64_flag=no;;
3768 esac
3769
3770 # With pre-defined ld
3771
3772 # Check whether --with-ld was given.
3773 if test "${with_ld+set}" = set; then :
3774 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3775 fi
3776
3777 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3778 if test ! -x "$DEFAULT_LINKER"; then
3779 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3780 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3781 gnu_ld_flag=yes
3782 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3783 ld64_flag=yes
3784 fi
3785
3786 cat >>confdefs.h <<_ACEOF
3787 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3788 _ACEOF
3789
3790 fi
3791
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3793 $as_echo_n "checking whether a default linker was specified... " >&6; }
3794 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3795 if test x"$gnu_ld_flag" = x"no"; then
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3797 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3798 else
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3800 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3801 fi
3802 else
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 $as_echo "no" >&6; }
3805 fi
3806
3807 # With demangler in GNU ld
3808
3809 # Check whether --with-demangler-in-ld was given.
3810 if test "${with_demangler_in_ld+set}" = set; then :
3811 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3812 else
3813 demangler_in_ld=yes
3814 fi
3815
3816
3817 # ----------------------
3818 # Find default assembler
3819 # ----------------------
3820
3821 # With GNU as
3822
3823 # Check whether --with-gnu-as was given.
3824 if test "${with_gnu_as+set}" = set; then :
3825 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3826 else
3827 gas_flag=no
3828 fi
3829
3830
3831
3832 # Check whether --with-as was given.
3833 if test "${with_as+set}" = set; then :
3834 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3835 fi
3836
3837 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3838 if test ! -x "$DEFAULT_ASSEMBLER"; then
3839 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3840 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3841 gas_flag=yes
3842 fi
3843
3844 cat >>confdefs.h <<_ACEOF
3845 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3846 _ACEOF
3847
3848 fi
3849
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3851 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3852 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3853 if test x"$gas_flag" = x"no"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3855 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3856 else
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3858 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3859 fi
3860 else
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3863 fi
3864
3865 # ---------------
3866 # Find C compiler
3867 # ---------------
3868
3869 # If a non-executable a.out is present (e.g. created by GNU as above even if
3870 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3871 # file, even when creating an executable, so an execution test fails.
3872 # Remove possible default executable files to avoid this.
3873 #
3874 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3875 # Autoconf includes it.
3876 rm -f a.out a.exe b.out
3877
3878 # Find the native compiler
3879 ac_ext=c
3880 ac_cpp='$CPP $CPPFLAGS'
3881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3884 if test -n "$ac_tool_prefix"; then
3885 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3886 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3888 $as_echo_n "checking for $ac_word... " >&6; }
3889 if ${ac_cv_prog_CC+:} false; then :
3890 $as_echo_n "(cached) " >&6
3891 else
3892 if test -n "$CC"; then
3893 ac_cv_prog_CC="$CC" # Let the user override the test.
3894 else
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3897 do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906 done
3907 done
3908 IFS=$as_save_IFS
3909
3910 fi
3911 fi
3912 CC=$ac_cv_prog_CC
3913 if test -n "$CC"; then
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3915 $as_echo "$CC" >&6; }
3916 else
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918 $as_echo "no" >&6; }
3919 fi
3920
3921
3922 fi
3923 if test -z "$ac_cv_prog_CC"; then
3924 ac_ct_CC=$CC
3925 # Extract the first word of "gcc", so it can be a program name with args.
3926 set dummy gcc; ac_word=$2
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928 $as_echo_n "checking for $ac_word... " >&6; }
3929 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3930 $as_echo_n "(cached) " >&6
3931 else
3932 if test -n "$ac_ct_CC"; then
3933 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3934 else
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3937 do
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942 ac_cv_prog_ac_ct_CC="gcc"
3943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3945 fi
3946 done
3947 done
3948 IFS=$as_save_IFS
3949
3950 fi
3951 fi
3952 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3953 if test -n "$ac_ct_CC"; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3955 $as_echo "$ac_ct_CC" >&6; }
3956 else
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 $as_echo "no" >&6; }
3959 fi
3960
3961 if test "x$ac_ct_CC" = x; then
3962 CC=""
3963 else
3964 case $cross_compiling:$ac_tool_warned in
3965 yes:)
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3968 ac_tool_warned=yes ;;
3969 esac
3970 CC=$ac_ct_CC
3971 fi
3972 else
3973 CC="$ac_cv_prog_CC"
3974 fi
3975
3976 if test -z "$CC"; then
3977 if test -n "$ac_tool_prefix"; then
3978 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3979 set dummy ${ac_tool_prefix}cc; ac_word=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if ${ac_cv_prog_CC+:} false; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 if test -n "$CC"; then
3986 ac_cv_prog_CC="$CC" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_prog_CC="${ac_tool_prefix}cc"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3998 fi
3999 done
4000 done
4001 IFS=$as_save_IFS
4002
4003 fi
4004 fi
4005 CC=$ac_cv_prog_CC
4006 if test -n "$CC"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4008 $as_echo "$CC" >&6; }
4009 else
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4012 fi
4013
4014
4015 fi
4016 fi
4017 if test -z "$CC"; then
4018 # Extract the first word of "cc", so it can be a program name with args.
4019 set dummy cc; ac_word=$2
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021 $as_echo_n "checking for $ac_word... " >&6; }
4022 if ${ac_cv_prog_CC+:} false; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 if test -n "$CC"; then
4026 ac_cv_prog_CC="$CC" # Let the user override the test.
4027 else
4028 ac_prog_rejected=no
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4031 do
4032 IFS=$as_save_IFS
4033 test -z "$as_dir" && as_dir=.
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4036 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4037 ac_prog_rejected=yes
4038 continue
4039 fi
4040 ac_cv_prog_CC="cc"
4041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4043 fi
4044 done
4045 done
4046 IFS=$as_save_IFS
4047
4048 if test $ac_prog_rejected = yes; then
4049 # We found a bogon in the path, so make sure we never use it.
4050 set dummy $ac_cv_prog_CC
4051 shift
4052 if test $# != 0; then
4053 # We chose a different compiler from the bogus one.
4054 # However, it has the same basename, so the bogon will be chosen
4055 # first if we set CC to just the basename; use the full file name.
4056 shift
4057 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4058 fi
4059 fi
4060 fi
4061 fi
4062 CC=$ac_cv_prog_CC
4063 if test -n "$CC"; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4065 $as_echo "$CC" >&6; }
4066 else
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068 $as_echo "no" >&6; }
4069 fi
4070
4071
4072 fi
4073 if test -z "$CC"; then
4074 if test -n "$ac_tool_prefix"; then
4075 for ac_prog in cl.exe
4076 do
4077 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4078 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4080 $as_echo_n "checking for $ac_word... " >&6; }
4081 if ${ac_cv_prog_CC+:} false; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 if test -n "$CC"; then
4085 ac_cv_prog_CC="$CC" # Let the user override the test.
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4089 do
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4094 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 break 2
4097 fi
4098 done
4099 done
4100 IFS=$as_save_IFS
4101
4102 fi
4103 fi
4104 CC=$ac_cv_prog_CC
4105 if test -n "$CC"; then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4107 $as_echo "$CC" >&6; }
4108 else
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110 $as_echo "no" >&6; }
4111 fi
4112
4113
4114 test -n "$CC" && break
4115 done
4116 fi
4117 if test -z "$CC"; then
4118 ac_ct_CC=$CC
4119 for ac_prog in cl.exe
4120 do
4121 # Extract the first word of "$ac_prog", so it can be a program name with args.
4122 set dummy $ac_prog; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 if test -n "$ac_ct_CC"; then
4129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4130 else
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134 IFS=$as_save_IFS
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138 ac_cv_prog_ac_ct_CC="$ac_prog"
4139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 break 2
4141 fi
4142 done
4143 done
4144 IFS=$as_save_IFS
4145
4146 fi
4147 fi
4148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4149 if test -n "$ac_ct_CC"; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4151 $as_echo "$ac_ct_CC" >&6; }
4152 else
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4155 fi
4156
4157
4158 test -n "$ac_ct_CC" && break
4159 done
4160
4161 if test "x$ac_ct_CC" = x; then
4162 CC=""
4163 else
4164 case $cross_compiling:$ac_tool_warned in
4165 yes:)
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4168 ac_tool_warned=yes ;;
4169 esac
4170 CC=$ac_ct_CC
4171 fi
4172 fi
4173
4174 fi
4175
4176
4177 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4179 as_fn_error $? "no acceptable C compiler found in \$PATH
4180 See \`config.log' for more details" "$LINENO" 5; }
4181
4182 # Provide some information about the compiler.
4183 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4184 set X $ac_compile
4185 ac_compiler=$2
4186 for ac_option in --version -v -V -qversion; do
4187 { { ac_try="$ac_compiler $ac_option >&5"
4188 case "(($ac_try" in
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4191 esac
4192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4193 $as_echo "$ac_try_echo"; } >&5
4194 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4195 ac_status=$?
4196 if test -s conftest.err; then
4197 sed '10a\
4198 ... rest of stderr output deleted ...
4199 10q' conftest.err >conftest.er1
4200 cat conftest.er1 >&5
4201 fi
4202 rm -f conftest.er1 conftest.err
4203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4204 test $ac_status = 0; }
4205 done
4206
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209
4210 int
4211 main ()
4212 {
4213
4214 ;
4215 return 0;
4216 }
4217 _ACEOF
4218 ac_clean_files_save=$ac_clean_files
4219 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4220 # Try to create an executable without -o first, disregard a.out.
4221 # It will help us diagnose broken compilers, and finding out an intuition
4222 # of exeext.
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4224 $as_echo_n "checking whether the C compiler works... " >&6; }
4225 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4226
4227 # The possible output files:
4228 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4229
4230 ac_rmfiles=
4231 for ac_file in $ac_files
4232 do
4233 case $ac_file in
4234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4235 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4236 esac
4237 done
4238 rm -f $ac_rmfiles
4239
4240 if { { ac_try="$ac_link_default"
4241 case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244 esac
4245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246 $as_echo "$ac_try_echo"; } >&5
4247 (eval "$ac_link_default") 2>&5
4248 ac_status=$?
4249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4250 test $ac_status = 0; }; then :
4251 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4252 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4253 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4254 # so that the user can short-circuit this test for compilers unknown to
4255 # Autoconf.
4256 for ac_file in $ac_files ''
4257 do
4258 test -f "$ac_file" || continue
4259 case $ac_file in
4260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4261 ;;
4262 [ab].out )
4263 # We found the default executable, but exeext='' is most
4264 # certainly right.
4265 break;;
4266 *.* )
4267 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4268 then :; else
4269 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4270 fi
4271 # We set ac_cv_exeext here because the later test for it is not
4272 # safe: cross compilers may not add the suffix if given an `-o'
4273 # argument, so we may need to know it at that point already.
4274 # Even if this section looks crufty: it has the advantage of
4275 # actually working.
4276 break;;
4277 * )
4278 break;;
4279 esac
4280 done
4281 test "$ac_cv_exeext" = no && ac_cv_exeext=
4282
4283 else
4284 ac_file=''
4285 fi
4286 if test -z "$ac_file"; then :
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4289 $as_echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4291
4292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4294 as_fn_error 77 "C compiler cannot create executables
4295 See \`config.log' for more details" "$LINENO" 5; }
4296 else
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4298 $as_echo "yes" >&6; }
4299 fi
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4301 $as_echo_n "checking for C compiler default output file name... " >&6; }
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4303 $as_echo "$ac_file" >&6; }
4304 ac_exeext=$ac_cv_exeext
4305
4306 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4307 ac_clean_files=$ac_clean_files_save
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4309 $as_echo_n "checking for suffix of executables... " >&6; }
4310 if { { ac_try="$ac_link"
4311 case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314 esac
4315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4316 $as_echo "$ac_try_echo"; } >&5
4317 (eval "$ac_link") 2>&5
4318 ac_status=$?
4319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320 test $ac_status = 0; }; then :
4321 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4322 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4323 # work properly (i.e., refer to `conftest.exe'), while it won't with
4324 # `rm'.
4325 for ac_file in conftest.exe conftest conftest.*; do
4326 test -f "$ac_file" || continue
4327 case $ac_file in
4328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4329 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4330 break;;
4331 * ) break;;
4332 esac
4333 done
4334 else
4335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4337 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4338 See \`config.log' for more details" "$LINENO" 5; }
4339 fi
4340 rm -f conftest conftest$ac_cv_exeext
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4342 $as_echo "$ac_cv_exeext" >&6; }
4343
4344 rm -f conftest.$ac_ext
4345 EXEEXT=$ac_cv_exeext
4346 ac_exeext=$EXEEXT
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4349 #include <stdio.h>
4350 int
4351 main ()
4352 {
4353 FILE *f = fopen ("conftest.out", "w");
4354 return ferror (f) || fclose (f) != 0;
4355
4356 ;
4357 return 0;
4358 }
4359 _ACEOF
4360 ac_clean_files="$ac_clean_files conftest.out"
4361 # Check that the compiler produces executables we can run. If not, either
4362 # the compiler is broken, or we cross compile.
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4364 $as_echo_n "checking whether we are cross compiling... " >&6; }
4365 if test "$cross_compiling" != yes; then
4366 { { ac_try="$ac_link"
4367 case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370 esac
4371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4372 $as_echo "$ac_try_echo"; } >&5
4373 (eval "$ac_link") 2>&5
4374 ac_status=$?
4375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376 test $ac_status = 0; }
4377 if { ac_try='./conftest$ac_cv_exeext'
4378 { { case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381 esac
4382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383 $as_echo "$ac_try_echo"; } >&5
4384 (eval "$ac_try") 2>&5
4385 ac_status=$?
4386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387 test $ac_status = 0; }; }; then
4388 cross_compiling=no
4389 else
4390 if test "$cross_compiling" = maybe; then
4391 cross_compiling=yes
4392 else
4393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4395 as_fn_error $? "cannot run C compiled programs.
4396 If you meant to cross compile, use \`--host'.
4397 See \`config.log' for more details" "$LINENO" 5; }
4398 fi
4399 fi
4400 fi
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4402 $as_echo "$cross_compiling" >&6; }
4403
4404 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4405 ac_clean_files=$ac_clean_files_save
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4407 $as_echo_n "checking for suffix of object files... " >&6; }
4408 if ${ac_cv_objext+:} false; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4413
4414 int
4415 main ()
4416 {
4417
4418 ;
4419 return 0;
4420 }
4421 _ACEOF
4422 rm -f conftest.o conftest.obj
4423 if { { ac_try="$ac_compile"
4424 case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4427 esac
4428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4429 $as_echo "$ac_try_echo"; } >&5
4430 (eval "$ac_compile") 2>&5
4431 ac_status=$?
4432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4433 test $ac_status = 0; }; then :
4434 for ac_file in conftest.o conftest.obj conftest.*; do
4435 test -f "$ac_file" || continue;
4436 case $ac_file in
4437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4438 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4439 break;;
4440 esac
4441 done
4442 else
4443 $as_echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4445
4446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4448 as_fn_error $? "cannot compute suffix of object files: cannot compile
4449 See \`config.log' for more details" "$LINENO" 5; }
4450 fi
4451 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4452 fi
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4454 $as_echo "$ac_cv_objext" >&6; }
4455 OBJEXT=$ac_cv_objext
4456 ac_objext=$OBJEXT
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4458 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4459 if ${ac_cv_c_compiler_gnu+:} false; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4464
4465 int
4466 main ()
4467 {
4468 #ifndef __GNUC__
4469 choke me
4470 #endif
4471
4472 ;
4473 return 0;
4474 }
4475 _ACEOF
4476 if ac_fn_c_try_compile "$LINENO"; then :
4477 ac_compiler_gnu=yes
4478 else
4479 ac_compiler_gnu=no
4480 fi
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4483
4484 fi
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4486 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4487 if test $ac_compiler_gnu = yes; then
4488 GCC=yes
4489 else
4490 GCC=
4491 fi
4492 ac_test_CFLAGS=${CFLAGS+set}
4493 ac_save_CFLAGS=$CFLAGS
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4495 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4496 if ${ac_cv_prog_cc_g+:} false; then :
4497 $as_echo_n "(cached) " >&6
4498 else
4499 ac_save_c_werror_flag=$ac_c_werror_flag
4500 ac_c_werror_flag=yes
4501 ac_cv_prog_cc_g=no
4502 CFLAGS="-g"
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4505
4506 int
4507 main ()
4508 {
4509
4510 ;
4511 return 0;
4512 }
4513 _ACEOF
4514 if ac_fn_c_try_compile "$LINENO"; then :
4515 ac_cv_prog_cc_g=yes
4516 else
4517 CFLAGS=""
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520
4521 int
4522 main ()
4523 {
4524
4525 ;
4526 return 0;
4527 }
4528 _ACEOF
4529 if ac_fn_c_try_compile "$LINENO"; then :
4530
4531 else
4532 ac_c_werror_flag=$ac_save_c_werror_flag
4533 CFLAGS="-g"
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4536
4537 int
4538 main ()
4539 {
4540
4541 ;
4542 return 0;
4543 }
4544 _ACEOF
4545 if ac_fn_c_try_compile "$LINENO"; then :
4546 ac_cv_prog_cc_g=yes
4547 fi
4548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549 fi
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 fi
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 ac_c_werror_flag=$ac_save_c_werror_flag
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4556 $as_echo "$ac_cv_prog_cc_g" >&6; }
4557 if test "$ac_test_CFLAGS" = set; then
4558 CFLAGS=$ac_save_CFLAGS
4559 elif test $ac_cv_prog_cc_g = yes; then
4560 if test "$GCC" = yes; then
4561 CFLAGS="-g -O2"
4562 else
4563 CFLAGS="-g"
4564 fi
4565 else
4566 if test "$GCC" = yes; then
4567 CFLAGS="-O2"
4568 else
4569 CFLAGS=
4570 fi
4571 fi
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4573 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4574 if ${ac_cv_prog_cc_c89+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 ac_cv_prog_cc_c89=no
4578 ac_save_CC=$CC
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4581 #include <stdarg.h>
4582 #include <stdio.h>
4583 struct stat;
4584 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4585 struct buf { int x; };
4586 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4587 static char *e (p, i)
4588 char **p;
4589 int i;
4590 {
4591 return p[i];
4592 }
4593 static char *f (char * (*g) (char **, int), char **p, ...)
4594 {
4595 char *s;
4596 va_list v;
4597 va_start (v,p);
4598 s = g (p, va_arg (v,int));
4599 va_end (v);
4600 return s;
4601 }
4602
4603 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4604 function prototypes and stuff, but not '\xHH' hex character constants.
4605 These don't provoke an error unfortunately, instead are silently treated
4606 as 'x'. The following induces an error, until -std is added to get
4607 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4608 array size at least. It's necessary to write '\x00'==0 to get something
4609 that's true only with -std. */
4610 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4611
4612 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4613 inside strings and character constants. */
4614 #define FOO(x) 'x'
4615 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4616
4617 int test (int i, double x);
4618 struct s1 {int (*f) (int a);};
4619 struct s2 {int (*f) (double a);};
4620 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4621 int argc;
4622 char **argv;
4623 int
4624 main ()
4625 {
4626 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4627 ;
4628 return 0;
4629 }
4630 _ACEOF
4631 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4632 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4633 do
4634 CC="$ac_save_CC $ac_arg"
4635 if ac_fn_c_try_compile "$LINENO"; then :
4636 ac_cv_prog_cc_c89=$ac_arg
4637 fi
4638 rm -f core conftest.err conftest.$ac_objext
4639 test "x$ac_cv_prog_cc_c89" != "xno" && break
4640 done
4641 rm -f conftest.$ac_ext
4642 CC=$ac_save_CC
4643
4644 fi
4645 # AC_CACHE_VAL
4646 case "x$ac_cv_prog_cc_c89" in
4647 x)
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4649 $as_echo "none needed" >&6; } ;;
4650 xno)
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4652 $as_echo "unsupported" >&6; } ;;
4653 *)
4654 CC="$CC $ac_cv_prog_cc_c89"
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4656 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4657 esac
4658 if test "x$ac_cv_prog_cc_c89" != xno; then :
4659
4660 fi
4661
4662 ac_ext=c
4663 ac_cpp='$CPP $CPPFLAGS'
4664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4667
4668 ac_ext=cpp
4669 ac_cpp='$CXXCPP $CPPFLAGS'
4670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4673 if test -z "$CXX"; then
4674 if test -n "$CCC"; then
4675 CXX=$CCC
4676 else
4677 if test -n "$ac_tool_prefix"; then
4678 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4679 do
4680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683 $as_echo_n "checking for $ac_word... " >&6; }
4684 if ${ac_cv_prog_CXX+:} false; then :
4685 $as_echo_n "(cached) " >&6
4686 else
4687 if test -n "$CXX"; then
4688 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4689 else
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4692 do
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4697 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 break 2
4700 fi
4701 done
4702 done
4703 IFS=$as_save_IFS
4704
4705 fi
4706 fi
4707 CXX=$ac_cv_prog_CXX
4708 if test -n "$CXX"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4710 $as_echo "$CXX" >&6; }
4711 else
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 $as_echo "no" >&6; }
4714 fi
4715
4716
4717 test -n "$CXX" && break
4718 done
4719 fi
4720 if test -z "$CXX"; then
4721 ac_ct_CXX=$CXX
4722 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4723 do
4724 # Extract the first word of "$ac_prog", so it can be a program name with args.
4725 set dummy $ac_prog; ac_word=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4731 if test -n "$ac_ct_CXX"; then
4732 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4733 else
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737 IFS=$as_save_IFS
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4741 ac_cv_prog_ac_ct_CXX="$ac_prog"
4742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 break 2
4744 fi
4745 done
4746 done
4747 IFS=$as_save_IFS
4748
4749 fi
4750 fi
4751 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4752 if test -n "$ac_ct_CXX"; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4754 $as_echo "$ac_ct_CXX" >&6; }
4755 else
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4758 fi
4759
4760
4761 test -n "$ac_ct_CXX" && break
4762 done
4763
4764 if test "x$ac_ct_CXX" = x; then
4765 CXX="g++"
4766 else
4767 case $cross_compiling:$ac_tool_warned in
4768 yes:)
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4771 ac_tool_warned=yes ;;
4772 esac
4773 CXX=$ac_ct_CXX
4774 fi
4775 fi
4776
4777 fi
4778 fi
4779 # Provide some information about the compiler.
4780 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4781 set X $ac_compile
4782 ac_compiler=$2
4783 for ac_option in --version -v -V -qversion; do
4784 { { ac_try="$ac_compiler $ac_option >&5"
4785 case "(($ac_try" in
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4788 esac
4789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4790 $as_echo "$ac_try_echo"; } >&5
4791 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4792 ac_status=$?
4793 if test -s conftest.err; then
4794 sed '10a\
4795 ... rest of stderr output deleted ...
4796 10q' conftest.err >conftest.er1
4797 cat conftest.er1 >&5
4798 fi
4799 rm -f conftest.er1 conftest.err
4800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4801 test $ac_status = 0; }
4802 done
4803
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4805 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4806 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4811
4812 int
4813 main ()
4814 {
4815 #ifndef __GNUC__
4816 choke me
4817 #endif
4818
4819 ;
4820 return 0;
4821 }
4822 _ACEOF
4823 if ac_fn_cxx_try_compile "$LINENO"; then :
4824 ac_compiler_gnu=yes
4825 else
4826 ac_compiler_gnu=no
4827 fi
4828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4830
4831 fi
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4833 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4834 if test $ac_compiler_gnu = yes; then
4835 GXX=yes
4836 else
4837 GXX=
4838 fi
4839 ac_test_CXXFLAGS=${CXXFLAGS+set}
4840 ac_save_CXXFLAGS=$CXXFLAGS
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4842 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4843 if ${ac_cv_prog_cxx_g+:} false; then :
4844 $as_echo_n "(cached) " >&6
4845 else
4846 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4847 ac_cxx_werror_flag=yes
4848 ac_cv_prog_cxx_g=no
4849 CXXFLAGS="-g"
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4852
4853 int
4854 main ()
4855 {
4856
4857 ;
4858 return 0;
4859 }
4860 _ACEOF
4861 if ac_fn_cxx_try_compile "$LINENO"; then :
4862 ac_cv_prog_cxx_g=yes
4863 else
4864 CXXFLAGS=""
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4867
4868 int
4869 main ()
4870 {
4871
4872 ;
4873 return 0;
4874 }
4875 _ACEOF
4876 if ac_fn_cxx_try_compile "$LINENO"; then :
4877
4878 else
4879 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4880 CXXFLAGS="-g"
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4883
4884 int
4885 main ()
4886 {
4887
4888 ;
4889 return 0;
4890 }
4891 _ACEOF
4892 if ac_fn_cxx_try_compile "$LINENO"; then :
4893 ac_cv_prog_cxx_g=yes
4894 fi
4895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896 fi
4897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898 fi
4899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4901 fi
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4903 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4904 if test "$ac_test_CXXFLAGS" = set; then
4905 CXXFLAGS=$ac_save_CXXFLAGS
4906 elif test $ac_cv_prog_cxx_g = yes; then
4907 if test "$GXX" = yes; then
4908 CXXFLAGS="-g -O2"
4909 else
4910 CXXFLAGS="-g"
4911 fi
4912 else
4913 if test "$GXX" = yes; then
4914 CXXFLAGS="-O2"
4915 else
4916 CXXFLAGS=
4917 fi
4918 fi
4919 ac_ext=c
4920 ac_cpp='$CPP $CPPFLAGS'
4921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924
4925
4926
4927
4928 if test -n "$ac_tool_prefix"; then
4929 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4930 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if ${ac_cv_prog_GNATBIND+:} false; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 if test -n "$GNATBIND"; then
4937 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4938 else
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4941 do
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4946 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 break 2
4949 fi
4950 done
4951 done
4952 IFS=$as_save_IFS
4953
4954 fi
4955 fi
4956 GNATBIND=$ac_cv_prog_GNATBIND
4957 if test -n "$GNATBIND"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4959 $as_echo "$GNATBIND" >&6; }
4960 else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4963 fi
4964
4965
4966 fi
4967 if test -z "$ac_cv_prog_GNATBIND"; then
4968 ac_ct_GNATBIND=$GNATBIND
4969 # Extract the first word of "gnatbind", so it can be a program name with args.
4970 set dummy gnatbind; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 if test -n "$ac_ct_GNATBIND"; then
4977 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4981 do
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4989 fi
4990 done
4991 done
4992 IFS=$as_save_IFS
4993
4994 fi
4995 fi
4996 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4997 if test -n "$ac_ct_GNATBIND"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4999 $as_echo "$ac_ct_GNATBIND" >&6; }
5000 else
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5003 fi
5004
5005 if test "x$ac_ct_GNATBIND" = x; then
5006 GNATBIND="no"
5007 else
5008 case $cross_compiling:$ac_tool_warned in
5009 yes:)
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5012 ac_tool_warned=yes ;;
5013 esac
5014 GNATBIND=$ac_ct_GNATBIND
5015 fi
5016 else
5017 GNATBIND="$ac_cv_prog_GNATBIND"
5018 fi
5019
5020 if test -n "$ac_tool_prefix"; then
5021 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5022 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if ${ac_cv_prog_GNATMAKE+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 if test -n "$GNATMAKE"; then
5029 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5030 else
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5041 fi
5042 done
5043 done
5044 IFS=$as_save_IFS
5045
5046 fi
5047 fi
5048 GNATMAKE=$ac_cv_prog_GNATMAKE
5049 if test -n "$GNATMAKE"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5051 $as_echo "$GNATMAKE" >&6; }
5052 else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5055 fi
5056
5057
5058 fi
5059 if test -z "$ac_cv_prog_GNATMAKE"; then
5060 ac_ct_GNATMAKE=$GNATMAKE
5061 # Extract the first word of "gnatmake", so it can be a program name with args.
5062 set dummy gnatmake; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 if test -n "$ac_ct_GNATMAKE"; then
5069 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5081 fi
5082 done
5083 done
5084 IFS=$as_save_IFS
5085
5086 fi
5087 fi
5088 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5089 if test -n "$ac_ct_GNATMAKE"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5091 $as_echo "$ac_ct_GNATMAKE" >&6; }
5092 else
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095 fi
5096
5097 if test "x$ac_ct_GNATMAKE" = x; then
5098 GNATMAKE="no"
5099 else
5100 case $cross_compiling:$ac_tool_warned in
5101 yes:)
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104 ac_tool_warned=yes ;;
5105 esac
5106 GNATMAKE=$ac_ct_GNATMAKE
5107 fi
5108 else
5109 GNATMAKE="$ac_cv_prog_GNATMAKE"
5110 fi
5111
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5113 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5114 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 cat >conftest.adb <<EOF
5118 procedure conftest is begin null; end conftest;
5119 EOF
5120 acx_cv_cc_gcc_supports_ada=no
5121 # There is a bug in old released versions of GCC which causes the
5122 # driver to exit successfully when the appropriate language module
5123 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5124 # Therefore we must check for the error message as well as an
5125 # unsuccessful exit.
5126 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5127 # given a .adb file, but produce no object file. So we must check
5128 # if an object file was really produced to guard against this.
5129 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5130 if test x"$errors" = x && test -f conftest.$ac_objext; then
5131 acx_cv_cc_gcc_supports_ada=yes
5132 fi
5133 rm -f conftest.*
5134 fi
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5136 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5137
5138 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5139 have_gnat=yes
5140 else
5141 have_gnat=no
5142 fi
5143
5144
5145 # Do configure tests with the C++ compiler, since that's what we build with.
5146 ac_ext=cpp
5147 ac_cpp='$CXXCPP $CPPFLAGS'
5148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5151
5152
5153 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5154 # optimizations to be activated explicitly by the toplevel.
5155 case "$CC" in
5156 */prev-gcc/xgcc*) ;;
5157 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5158 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5159 esac
5160
5161
5162
5163 # Determine PICFLAG for target gnatlib.
5164
5165
5166
5167
5168 case "${target}" in
5169 # PIC is the default on some targets or must not be used.
5170 *-*-darwin*)
5171 # For darwin, common symbols are not allowed in MH_DYLIB files
5172 case "${CFLAGS}" in
5173 # If we are using a compiler supporting mdynamic-no-pic
5174 # and the option has been tested as safe to add, then cancel
5175 # it here, since the code generated is incompatible with shared
5176 # libs.
5177 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5178 *) PICFLAG_FOR_TARGET=-fno-common ;;
5179 esac
5180 ;;
5181 alpha*-dec-osf5*)
5182 # PIC is the default.
5183 ;;
5184 hppa*64*-*-hpux*)
5185 # PIC is the default for 64-bit PA HP-UX.
5186 ;;
5187 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5188 ;;
5189 i[34567]86-*-mingw* | x86_64-*-mingw*)
5190 ;;
5191 i[34567]86-*-interix[3-9]*)
5192 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5193 # Instead, we relocate shared libraries at runtime.
5194 ;;
5195 i[34567]86-*-nto-qnx*)
5196 # QNX uses GNU C++, but need to define -shared option too, otherwise
5197 # it will coredump.
5198 PICFLAG_FOR_TARGET='-fPIC -shared'
5199 ;;
5200 i[34567]86-pc-msdosdjgpp*)
5201 # DJGPP does not support shared libraries at all.
5202 ;;
5203 ia64*-*-hpux*)
5204 # On IA64 HP-UX, PIC is the default but the pic flag
5205 # sets the default TLS model and affects inlining.
5206 PICFLAG_FOR_TARGET=-fPIC
5207 ;;
5208 mips-sgi-irix6*)
5209 # PIC is the default.
5210 ;;
5211 rs6000-ibm-aix* | powerpc-ibm-aix*)
5212 # All AIX code is PIC.
5213 ;;
5214
5215 # Some targets support both -fPIC and -fpic, but prefer the latter.
5216 # FIXME: Why?
5217 i[34567]86-*-* | x86_64-*-*)
5218 PICFLAG_FOR_TARGET=-fpic
5219 ;;
5220 # FIXME: Override -fPIC default in libgcc only?
5221 sh-*-linux* | sh[2346lbe]*-*-linux*)
5222 PICFLAG_FOR_TARGET=-fpic
5223 ;;
5224 # FIXME: Simplify to sh*-*-netbsd*?
5225 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5226 sh64-*-netbsd* | sh64l*-*-netbsd*)
5227 PICFLAG_FOR_TARGET=-fpic
5228 ;;
5229 # Default to -fPIC unless specified otherwise.
5230 *)
5231 PICFLAG_FOR_TARGET=-fPIC
5232 ;;
5233 esac
5234
5235 # If the user explicitly uses -fpic/-fPIC, keep that.
5236 case "${CFLAGS_FOR_TARGET}" in
5237 *-fpic*)
5238 PICFLAG_FOR_TARGET=-fpic
5239 ;;
5240 *-fPIC*)
5241 PICFLAG_FOR_TARGET=-fPIC
5242 ;;
5243 esac
5244
5245
5246
5247 # -------------------------
5248 # Check C compiler features
5249 # -------------------------
5250
5251
5252 ac_ext=cpp
5253 ac_cpp='$CXXCPP $CPPFLAGS'
5254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5258 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5259 if test -z "$CXXCPP"; then
5260 if ${ac_cv_prog_CXXCPP+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 # Double quotes because CXXCPP needs to be expanded
5264 for CXXCPP in "$CXX -E" "/lib/cpp"
5265 do
5266 ac_preproc_ok=false
5267 for ac_cxx_preproc_warn_flag in '' yes
5268 do
5269 # Use a header file that comes with gcc, so configuring glibc
5270 # with a fresh cross-compiler works.
5271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5272 # <limits.h> exists even on freestanding compilers.
5273 # On the NeXT, cc -E runs the code through the compiler's parser,
5274 # not just through cpp. "Syntax error" is here to catch this case.
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277 #ifdef __STDC__
5278 # include <limits.h>
5279 #else
5280 # include <assert.h>
5281 #endif
5282 Syntax error
5283 _ACEOF
5284 if ac_fn_cxx_try_cpp "$LINENO"; then :
5285
5286 else
5287 # Broken: fails on valid input.
5288 continue
5289 fi
5290 rm -f conftest.err conftest.i conftest.$ac_ext
5291
5292 # OK, works on sane cases. Now check whether nonexistent headers
5293 # can be detected and how.
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5296 #include <ac_nonexistent.h>
5297 _ACEOF
5298 if ac_fn_cxx_try_cpp "$LINENO"; then :
5299 # Broken: success on invalid input.
5300 continue
5301 else
5302 # Passes both tests.
5303 ac_preproc_ok=:
5304 break
5305 fi
5306 rm -f conftest.err conftest.i conftest.$ac_ext
5307
5308 done
5309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5310 rm -f conftest.i conftest.err conftest.$ac_ext
5311 if $ac_preproc_ok; then :
5312 break
5313 fi
5314
5315 done
5316 ac_cv_prog_CXXCPP=$CXXCPP
5317
5318 fi
5319 CXXCPP=$ac_cv_prog_CXXCPP
5320 else
5321 ac_cv_prog_CXXCPP=$CXXCPP
5322 fi
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5324 $as_echo "$CXXCPP" >&6; }
5325 ac_preproc_ok=false
5326 for ac_cxx_preproc_warn_flag in '' yes
5327 do
5328 # Use a header file that comes with gcc, so configuring glibc
5329 # with a fresh cross-compiler works.
5330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5331 # <limits.h> exists even on freestanding compilers.
5332 # On the NeXT, cc -E runs the code through the compiler's parser,
5333 # not just through cpp. "Syntax error" is here to catch this case.
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5336 #ifdef __STDC__
5337 # include <limits.h>
5338 #else
5339 # include <assert.h>
5340 #endif
5341 Syntax error
5342 _ACEOF
5343 if ac_fn_cxx_try_cpp "$LINENO"; then :
5344
5345 else
5346 # Broken: fails on valid input.
5347 continue
5348 fi
5349 rm -f conftest.err conftest.i conftest.$ac_ext
5350
5351 # OK, works on sane cases. Now check whether nonexistent headers
5352 # can be detected and how.
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5355 #include <ac_nonexistent.h>
5356 _ACEOF
5357 if ac_fn_cxx_try_cpp "$LINENO"; then :
5358 # Broken: success on invalid input.
5359 continue
5360 else
5361 # Passes both tests.
5362 ac_preproc_ok=:
5363 break
5364 fi
5365 rm -f conftest.err conftest.i conftest.$ac_ext
5366
5367 done
5368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5369 rm -f conftest.i conftest.err conftest.$ac_ext
5370 if $ac_preproc_ok; then :
5371
5372 else
5373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5375 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5376 See \`config.log' for more details" "$LINENO" 5; }
5377 fi
5378
5379 ac_ext=cpp
5380 ac_cpp='$CXXCPP $CPPFLAGS'
5381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5384
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5387 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5388 if ${ac_cv_path_GREP+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 if test -z "$GREP"; then
5392 ac_path_GREP_found=false
5393 # Loop through the user's path and test for each of PROGNAME-LIST
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5396 do
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
5399 for ac_prog in grep ggrep; do
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5402 as_fn_executable_p "$ac_path_GREP" || continue
5403 # Check for GNU ac_path_GREP and select it if it is found.
5404 # Check for GNU $ac_path_GREP
5405 case `"$ac_path_GREP" --version 2>&1` in
5406 *GNU*)
5407 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5408 *)
5409 ac_count=0
5410 $as_echo_n 0123456789 >"conftest.in"
5411 while :
5412 do
5413 cat "conftest.in" "conftest.in" >"conftest.tmp"
5414 mv "conftest.tmp" "conftest.in"
5415 cp "conftest.in" "conftest.nl"
5416 $as_echo 'GREP' >> "conftest.nl"
5417 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5419 as_fn_arith $ac_count + 1 && ac_count=$as_val
5420 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5421 # Best one so far, save it but keep looking for a better one
5422 ac_cv_path_GREP="$ac_path_GREP"
5423 ac_path_GREP_max=$ac_count
5424 fi
5425 # 10*(2^10) chars as input seems more than enough
5426 test $ac_count -gt 10 && break
5427 done
5428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5429 esac
5430
5431 $ac_path_GREP_found && break 3
5432 done
5433 done
5434 done
5435 IFS=$as_save_IFS
5436 if test -z "$ac_cv_path_GREP"; then
5437 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5438 fi
5439 else
5440 ac_cv_path_GREP=$GREP
5441 fi
5442
5443 fi
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5445 $as_echo "$ac_cv_path_GREP" >&6; }
5446 GREP="$ac_cv_path_GREP"
5447
5448
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5450 $as_echo_n "checking for egrep... " >&6; }
5451 if ${ac_cv_path_EGREP+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5455 then ac_cv_path_EGREP="$GREP -E"
5456 else
5457 if test -z "$EGREP"; then
5458 ac_path_EGREP_found=false
5459 # Loop through the user's path and test for each of PROGNAME-LIST
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5462 do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_prog in egrep; do
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5468 as_fn_executable_p "$ac_path_EGREP" || continue
5469 # Check for GNU ac_path_EGREP and select it if it is found.
5470 # Check for GNU $ac_path_EGREP
5471 case `"$ac_path_EGREP" --version 2>&1` in
5472 *GNU*)
5473 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5474 *)
5475 ac_count=0
5476 $as_echo_n 0123456789 >"conftest.in"
5477 while :
5478 do
5479 cat "conftest.in" "conftest.in" >"conftest.tmp"
5480 mv "conftest.tmp" "conftest.in"
5481 cp "conftest.in" "conftest.nl"
5482 $as_echo 'EGREP' >> "conftest.nl"
5483 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5485 as_fn_arith $ac_count + 1 && ac_count=$as_val
5486 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5487 # Best one so far, save it but keep looking for a better one
5488 ac_cv_path_EGREP="$ac_path_EGREP"
5489 ac_path_EGREP_max=$ac_count
5490 fi
5491 # 10*(2^10) chars as input seems more than enough
5492 test $ac_count -gt 10 && break
5493 done
5494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5495 esac
5496
5497 $ac_path_EGREP_found && break 3
5498 done
5499 done
5500 done
5501 IFS=$as_save_IFS
5502 if test -z "$ac_cv_path_EGREP"; then
5503 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5504 fi
5505 else
5506 ac_cv_path_EGREP=$EGREP
5507 fi
5508
5509 fi
5510 fi
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5512 $as_echo "$ac_cv_path_EGREP" >&6; }
5513 EGREP="$ac_cv_path_EGREP"
5514
5515
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5517 $as_echo_n "checking for ANSI C header files... " >&6; }
5518 if ${ac_cv_header_stdc+:} false; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523 #include <stdlib.h>
5524 #include <stdarg.h>
5525 #include <string.h>
5526 #include <float.h>
5527
5528 int
5529 main ()
5530 {
5531
5532 ;
5533 return 0;
5534 }
5535 _ACEOF
5536 if ac_fn_cxx_try_compile "$LINENO"; then :
5537 ac_cv_header_stdc=yes
5538 else
5539 ac_cv_header_stdc=no
5540 fi
5541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542
5543 if test $ac_cv_header_stdc = yes; then
5544 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5547 #include <string.h>
5548
5549 _ACEOF
5550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5551 $EGREP "memchr" >/dev/null 2>&1; then :
5552
5553 else
5554 ac_cv_header_stdc=no
5555 fi
5556 rm -f conftest*
5557
5558 fi
5559
5560 if test $ac_cv_header_stdc = yes; then
5561 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5564 #include <stdlib.h>
5565
5566 _ACEOF
5567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5568 $EGREP "free" >/dev/null 2>&1; then :
5569
5570 else
5571 ac_cv_header_stdc=no
5572 fi
5573 rm -f conftest*
5574
5575 fi
5576
5577 if test $ac_cv_header_stdc = yes; then
5578 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5579 if test "$cross_compiling" = yes; then :
5580 :
5581 else
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 #include <ctype.h>
5585 #include <stdlib.h>
5586 #if ((' ' & 0x0FF) == 0x020)
5587 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5588 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5589 #else
5590 # define ISLOWER(c) \
5591 (('a' <= (c) && (c) <= 'i') \
5592 || ('j' <= (c) && (c) <= 'r') \
5593 || ('s' <= (c) && (c) <= 'z'))
5594 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5595 #endif
5596
5597 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5598 int
5599 main ()
5600 {
5601 int i;
5602 for (i = 0; i < 256; i++)
5603 if (XOR (islower (i), ISLOWER (i))
5604 || toupper (i) != TOUPPER (i))
5605 return 2;
5606 return 0;
5607 }
5608 _ACEOF
5609 if ac_fn_cxx_try_run "$LINENO"; then :
5610
5611 else
5612 ac_cv_header_stdc=no
5613 fi
5614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5615 conftest.$ac_objext conftest.beam conftest.$ac_ext
5616 fi
5617
5618 fi
5619 fi
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5621 $as_echo "$ac_cv_header_stdc" >&6; }
5622 if test $ac_cv_header_stdc = yes; then
5623
5624 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5625
5626 fi
5627
5628 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5629 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5630 inttypes.h stdint.h unistd.h
5631 do :
5632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5633 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5634 "
5635 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5636 cat >>confdefs.h <<_ACEOF
5637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5638 _ACEOF
5639
5640 fi
5641
5642 done
5643
5644
5645
5646 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5647 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5648 MINIX=yes
5649 else
5650 MINIX=
5651 fi
5652
5653
5654 if test "$MINIX" = yes; then
5655
5656 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5657
5658
5659 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5660
5661
5662 $as_echo "#define _MINIX 1" >>confdefs.h
5663
5664 fi
5665
5666
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5668 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5669 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674
5675 # define __EXTENSIONS__ 1
5676 $ac_includes_default
5677 int
5678 main ()
5679 {
5680
5681 ;
5682 return 0;
5683 }
5684 _ACEOF
5685 if ac_fn_cxx_try_compile "$LINENO"; then :
5686 ac_cv_safe_to_define___extensions__=yes
5687 else
5688 ac_cv_safe_to_define___extensions__=no
5689 fi
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 fi
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5693 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5694 test $ac_cv_safe_to_define___extensions__ = yes &&
5695 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5696
5697 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5698
5699 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5700
5701 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5702
5703 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5704
5705
5706 ac_ext=c
5707 ac_cpp='$CPP $CPPFLAGS'
5708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5712 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5713 # On Suns, sometimes $CPP names a directory.
5714 if test -n "$CPP" && test -d "$CPP"; then
5715 CPP=
5716 fi
5717 if test -z "$CPP"; then
5718 if ${ac_cv_prog_CPP+:} false; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5721 # Double quotes because CPP needs to be expanded
5722 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5723 do
5724 ac_preproc_ok=false
5725 for ac_c_preproc_warn_flag in '' yes
5726 do
5727 # Use a header file that comes with gcc, so configuring glibc
5728 # with a fresh cross-compiler works.
5729 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5730 # <limits.h> exists even on freestanding compilers.
5731 # On the NeXT, cc -E runs the code through the compiler's parser,
5732 # not just through cpp. "Syntax error" is here to catch this case.
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5735 #ifdef __STDC__
5736 # include <limits.h>
5737 #else
5738 # include <assert.h>
5739 #endif
5740 Syntax error
5741 _ACEOF
5742 if ac_fn_c_try_cpp "$LINENO"; then :
5743
5744 else
5745 # Broken: fails on valid input.
5746 continue
5747 fi
5748 rm -f conftest.err conftest.i conftest.$ac_ext
5749
5750 # OK, works on sane cases. Now check whether nonexistent headers
5751 # can be detected and how.
5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h. */
5754 #include <ac_nonexistent.h>
5755 _ACEOF
5756 if ac_fn_c_try_cpp "$LINENO"; then :
5757 # Broken: success on invalid input.
5758 continue
5759 else
5760 # Passes both tests.
5761 ac_preproc_ok=:
5762 break
5763 fi
5764 rm -f conftest.err conftest.i conftest.$ac_ext
5765
5766 done
5767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5768 rm -f conftest.i conftest.err conftest.$ac_ext
5769 if $ac_preproc_ok; then :
5770 break
5771 fi
5772
5773 done
5774 ac_cv_prog_CPP=$CPP
5775
5776 fi
5777 CPP=$ac_cv_prog_CPP
5778 else
5779 ac_cv_prog_CPP=$CPP
5780 fi
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5782 $as_echo "$CPP" >&6; }
5783 ac_preproc_ok=false
5784 for ac_c_preproc_warn_flag in '' yes
5785 do
5786 # Use a header file that comes with gcc, so configuring glibc
5787 # with a fresh cross-compiler works.
5788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5789 # <limits.h> exists even on freestanding compilers.
5790 # On the NeXT, cc -E runs the code through the compiler's parser,
5791 # not just through cpp. "Syntax error" is here to catch this case.
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5794 #ifdef __STDC__
5795 # include <limits.h>
5796 #else
5797 # include <assert.h>
5798 #endif
5799 Syntax error
5800 _ACEOF
5801 if ac_fn_c_try_cpp "$LINENO"; then :
5802
5803 else
5804 # Broken: fails on valid input.
5805 continue
5806 fi
5807 rm -f conftest.err conftest.i conftest.$ac_ext
5808
5809 # OK, works on sane cases. Now check whether nonexistent headers
5810 # can be detected and how.
5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5813 #include <ac_nonexistent.h>
5814 _ACEOF
5815 if ac_fn_c_try_cpp "$LINENO"; then :
5816 # Broken: success on invalid input.
5817 continue
5818 else
5819 # Passes both tests.
5820 ac_preproc_ok=:
5821 break
5822 fi
5823 rm -f conftest.err conftest.i conftest.$ac_ext
5824
5825 done
5826 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5827 rm -f conftest.i conftest.err conftest.$ac_ext
5828 if $ac_preproc_ok; then :
5829
5830 else
5831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5833 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5834 See \`config.log' for more details" "$LINENO" 5; }
5835 fi
5836
5837 ac_ext=cpp
5838 ac_cpp='$CXXCPP $CPPFLAGS'
5839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5842
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5844 $as_echo_n "checking for inline... " >&6; }
5845 if ${ac_cv_c_inline+:} false; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 ac_cv_c_inline=no
5849 for ac_kw in inline __inline__ __inline; do
5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h. */
5852 #ifndef __cplusplus
5853 typedef int foo_t;
5854 static $ac_kw foo_t static_foo () {return 0; }
5855 $ac_kw foo_t foo () {return 0; }
5856 #endif
5857
5858 _ACEOF
5859 if ac_fn_cxx_try_compile "$LINENO"; then :
5860 ac_cv_c_inline=$ac_kw
5861 fi
5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 test "$ac_cv_c_inline" != no && break
5864 done
5865
5866 fi
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5868 $as_echo "$ac_cv_c_inline" >&6; }
5869
5870 case $ac_cv_c_inline in
5871 inline | yes) ;;
5872 *)
5873 case $ac_cv_c_inline in
5874 no) ac_val=;;
5875 *) ac_val=$ac_cv_c_inline;;
5876 esac
5877 cat >>confdefs.h <<_ACEOF
5878 #ifndef __cplusplus
5879 #define inline $ac_val
5880 #endif
5881 _ACEOF
5882 ;;
5883 esac
5884
5885
5886 # Check whether --enable-largefile was given.
5887 if test "${enable_largefile+set}" = set; then :
5888 enableval=$enable_largefile;
5889 fi
5890
5891 if test "$enable_largefile" != no; then
5892
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5894 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5895 if ${ac_cv_sys_largefile_CC+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 ac_cv_sys_largefile_CC=no
5899 if test "$GCC" != yes; then
5900 ac_save_CC=$CC
5901 while :; do
5902 # IRIX 6.2 and later do not support large files by default,
5903 # so use the C compiler's -n32 option if that helps.
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h. */
5906 #include <sys/types.h>
5907 /* Check that off_t can represent 2**63 - 1 correctly.
5908 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5909 since some C++ compilers masquerading as C compilers
5910 incorrectly reject 9223372036854775807. */
5911 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5913 && LARGE_OFF_T % 2147483647 == 1)
5914 ? 1 : -1];
5915 int
5916 main ()
5917 {
5918
5919 ;
5920 return 0;
5921 }
5922 _ACEOF
5923 if ac_fn_cxx_try_compile "$LINENO"; then :
5924 break
5925 fi
5926 rm -f core conftest.err conftest.$ac_objext
5927 CC="$CC -n32"
5928 if ac_fn_cxx_try_compile "$LINENO"; then :
5929 ac_cv_sys_largefile_CC=' -n32'; break
5930 fi
5931 rm -f core conftest.err conftest.$ac_objext
5932 break
5933 done
5934 CC=$ac_save_CC
5935 rm -f conftest.$ac_ext
5936 fi
5937 fi
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5939 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5940 if test "$ac_cv_sys_largefile_CC" != no; then
5941 CC=$CC$ac_cv_sys_largefile_CC
5942 fi
5943
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5945 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5946 if ${ac_cv_sys_file_offset_bits+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 while :; do
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 #include <sys/types.h>
5953 /* Check that off_t can represent 2**63 - 1 correctly.
5954 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5955 since some C++ compilers masquerading as C compilers
5956 incorrectly reject 9223372036854775807. */
5957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5958 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5959 && LARGE_OFF_T % 2147483647 == 1)
5960 ? 1 : -1];
5961 int
5962 main ()
5963 {
5964
5965 ;
5966 return 0;
5967 }
5968 _ACEOF
5969 if ac_fn_cxx_try_compile "$LINENO"; then :
5970 ac_cv_sys_file_offset_bits=no; break
5971 fi
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5975 #define _FILE_OFFSET_BITS 64
5976 #include <sys/types.h>
5977 /* Check that off_t can represent 2**63 - 1 correctly.
5978 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5979 since some C++ compilers masquerading as C compilers
5980 incorrectly reject 9223372036854775807. */
5981 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5982 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5983 && LARGE_OFF_T % 2147483647 == 1)
5984 ? 1 : -1];
5985 int
5986 main ()
5987 {
5988
5989 ;
5990 return 0;
5991 }
5992 _ACEOF
5993 if ac_fn_cxx_try_compile "$LINENO"; then :
5994 ac_cv_sys_file_offset_bits=64; break
5995 fi
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 ac_cv_sys_file_offset_bits=unknown
5998 break
5999 done
6000 fi
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6002 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6003 case $ac_cv_sys_file_offset_bits in #(
6004 no | unknown) ;;
6005 *)
6006 cat >>confdefs.h <<_ACEOF
6007 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6008 _ACEOF
6009 ;;
6010 esac
6011 rm -rf conftest*
6012 if test $ac_cv_sys_file_offset_bits = unknown; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6014 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6015 if ${ac_cv_sys_large_files+:} false; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6018 while :; do
6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6021 #include <sys/types.h>
6022 /* Check that off_t can represent 2**63 - 1 correctly.
6023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6024 since some C++ compilers masquerading as C compilers
6025 incorrectly reject 9223372036854775807. */
6026 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6028 && LARGE_OFF_T % 2147483647 == 1)
6029 ? 1 : -1];
6030 int
6031 main ()
6032 {
6033
6034 ;
6035 return 0;
6036 }
6037 _ACEOF
6038 if ac_fn_cxx_try_compile "$LINENO"; then :
6039 ac_cv_sys_large_files=no; break
6040 fi
6041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6044 #define _LARGE_FILES 1
6045 #include <sys/types.h>
6046 /* Check that off_t can represent 2**63 - 1 correctly.
6047 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6048 since some C++ compilers masquerading as C compilers
6049 incorrectly reject 9223372036854775807. */
6050 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6051 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6052 && LARGE_OFF_T % 2147483647 == 1)
6053 ? 1 : -1];
6054 int
6055 main ()
6056 {
6057
6058 ;
6059 return 0;
6060 }
6061 _ACEOF
6062 if ac_fn_cxx_try_compile "$LINENO"; then :
6063 ac_cv_sys_large_files=1; break
6064 fi
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 ac_cv_sys_large_files=unknown
6067 break
6068 done
6069 fi
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6071 $as_echo "$ac_cv_sys_large_files" >&6; }
6072 case $ac_cv_sys_large_files in #(
6073 no | unknown) ;;
6074 *)
6075 cat >>confdefs.h <<_ACEOF
6076 #define _LARGE_FILES $ac_cv_sys_large_files
6077 _ACEOF
6078 ;;
6079 esac
6080 rm -rf conftest*
6081 fi
6082
6083
6084 fi
6085
6086
6087 # sizeof(char) is 1 by definition.
6088 # The cast to long int works around a bug in the HP C Compiler
6089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6091 # This bug is HP SR number 8606223364.
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6093 $as_echo_n "checking size of void *... " >&6; }
6094 if ${ac_cv_sizeof_void_p+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6098
6099 else
6100 if test "$ac_cv_type_void_p" = yes; then
6101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6103 as_fn_error 77 "cannot compute sizeof (void *)
6104 See \`config.log' for more details" "$LINENO" 5; }
6105 else
6106 ac_cv_sizeof_void_p=0
6107 fi
6108 fi
6109
6110 fi
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6112 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6113
6114
6115
6116 cat >>confdefs.h <<_ACEOF
6117 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6118 _ACEOF
6119
6120
6121 # The cast to long int works around a bug in the HP C Compiler
6122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6124 # This bug is HP SR number 8606223364.
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6126 $as_echo_n "checking size of short... " >&6; }
6127 if ${ac_cv_sizeof_short+:} false; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6131
6132 else
6133 if test "$ac_cv_type_short" = yes; then
6134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6136 as_fn_error 77 "cannot compute sizeof (short)
6137 See \`config.log' for more details" "$LINENO" 5; }
6138 else
6139 ac_cv_sizeof_short=0
6140 fi
6141 fi
6142
6143 fi
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6145 $as_echo "$ac_cv_sizeof_short" >&6; }
6146
6147
6148
6149 cat >>confdefs.h <<_ACEOF
6150 #define SIZEOF_SHORT $ac_cv_sizeof_short
6151 _ACEOF
6152
6153
6154 # The cast to long int works around a bug in the HP C Compiler
6155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6157 # This bug is HP SR number 8606223364.
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6159 $as_echo_n "checking size of int... " >&6; }
6160 if ${ac_cv_sizeof_int+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6164
6165 else
6166 if test "$ac_cv_type_int" = yes; then
6167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6169 as_fn_error 77 "cannot compute sizeof (int)
6170 See \`config.log' for more details" "$LINENO" 5; }
6171 else
6172 ac_cv_sizeof_int=0
6173 fi
6174 fi
6175
6176 fi
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6178 $as_echo "$ac_cv_sizeof_int" >&6; }
6179
6180
6181
6182 cat >>confdefs.h <<_ACEOF
6183 #define SIZEOF_INT $ac_cv_sizeof_int
6184 _ACEOF
6185
6186
6187 # The cast to long int works around a bug in the HP C Compiler
6188 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6189 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6190 # This bug is HP SR number 8606223364.
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6192 $as_echo_n "checking size of long... " >&6; }
6193 if ${ac_cv_sizeof_long+:} false; then :
6194 $as_echo_n "(cached) " >&6
6195 else
6196 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6197
6198 else
6199 if test "$ac_cv_type_long" = yes; then
6200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6202 as_fn_error 77 "cannot compute sizeof (long)
6203 See \`config.log' for more details" "$LINENO" 5; }
6204 else
6205 ac_cv_sizeof_long=0
6206 fi
6207 fi
6208
6209 fi
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6211 $as_echo "$ac_cv_sizeof_long" >&6; }
6212
6213
6214
6215 cat >>confdefs.h <<_ACEOF
6216 #define SIZEOF_LONG $ac_cv_sizeof_long
6217 _ACEOF
6218
6219
6220 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6221 if test "x$ac_cv_type_long_long" = xyes; then :
6222
6223 cat >>confdefs.h <<_ACEOF
6224 #define HAVE_LONG_LONG 1
6225 _ACEOF
6226
6227 # The cast to long int works around a bug in the HP C Compiler
6228 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6229 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6230 # This bug is HP SR number 8606223364.
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6232 $as_echo_n "checking size of long long... " >&6; }
6233 if ${ac_cv_sizeof_long_long+:} false; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6237
6238 else
6239 if test "$ac_cv_type_long_long" = yes; then
6240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6242 as_fn_error 77 "cannot compute sizeof (long long)
6243 See \`config.log' for more details" "$LINENO" 5; }
6244 else
6245 ac_cv_sizeof_long_long=0
6246 fi
6247 fi
6248
6249 fi
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6251 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6252
6253
6254
6255 cat >>confdefs.h <<_ACEOF
6256 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6257 _ACEOF
6258
6259
6260 fi
6261
6262 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6263 case $ac_cv_c_int8_t in #(
6264 no|yes) ;; #(
6265 *)
6266
6267 cat >>confdefs.h <<_ACEOF
6268 #define int8_t $ac_cv_c_int8_t
6269 _ACEOF
6270 ;;
6271 esac
6272
6273 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6274 case $ac_cv_c_int16_t in #(
6275 no|yes) ;; #(
6276 *)
6277
6278 cat >>confdefs.h <<_ACEOF
6279 #define int16_t $ac_cv_c_int16_t
6280 _ACEOF
6281 ;;
6282 esac
6283
6284 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6285 case $ac_cv_c_int32_t in #(
6286 no|yes) ;; #(
6287 *)
6288
6289 cat >>confdefs.h <<_ACEOF
6290 #define int32_t $ac_cv_c_int32_t
6291 _ACEOF
6292 ;;
6293 esac
6294
6295 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6296 case $ac_cv_c_int64_t in #(
6297 no|yes) ;; #(
6298 *)
6299
6300 cat >>confdefs.h <<_ACEOF
6301 #define int64_t $ac_cv_c_int64_t
6302 _ACEOF
6303 ;;
6304 esac
6305
6306
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6308 $as_echo_n "checking for unsigned long long int... " >&6; }
6309 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 ac_cv_type_unsigned_long_long_int=yes
6313 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6316
6317 /* For now, do not test the preprocessor; as of 2007 there are too many
6318 implementations with broken preprocessors. Perhaps this can
6319 be revisited in 2012. In the meantime, code should not expect
6320 #if to work with literals wider than 32 bits. */
6321 /* Test literals. */
6322 long long int ll = 9223372036854775807ll;
6323 long long int nll = -9223372036854775807LL;
6324 unsigned long long int ull = 18446744073709551615ULL;
6325 /* Test constant expressions. */
6326 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6327 ? 1 : -1)];
6328 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6329 ? 1 : -1)];
6330 int i = 63;
6331 int
6332 main ()
6333 {
6334 /* Test availability of runtime routines for shift and division. */
6335 long long int llmax = 9223372036854775807ll;
6336 unsigned long long int ullmax = 18446744073709551615ull;
6337 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6338 | (llmax / ll) | (llmax % ll)
6339 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6340 | (ullmax / ull) | (ullmax % ull));
6341 ;
6342 return 0;
6343 }
6344
6345 _ACEOF
6346 if ac_fn_cxx_try_link "$LINENO"; then :
6347
6348 else
6349 ac_cv_type_unsigned_long_long_int=no
6350 fi
6351 rm -f core conftest.err conftest.$ac_objext \
6352 conftest$ac_exeext conftest.$ac_ext
6353 fi
6354 fi
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6356 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6357 if test $ac_cv_type_unsigned_long_long_int = yes; then
6358
6359 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6360
6361 fi
6362
6363
6364
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6366 $as_echo_n "checking for long long int... " >&6; }
6367 if ${ac_cv_type_long_long_int+:} false; then :
6368 $as_echo_n "(cached) " >&6
6369 else
6370 ac_cv_type_long_long_int=yes
6371 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6372 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6373 if test $ac_cv_type_long_long_int = yes; then
6374 if test "$cross_compiling" = yes; then :
6375 :
6376 else
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h. */
6379 #include <limits.h>
6380 #ifndef LLONG_MAX
6381 # define HALF \
6382 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6383 # define LLONG_MAX (HALF - 1 + HALF)
6384 #endif
6385 int
6386 main ()
6387 {
6388 long long int n = 1;
6389 int i;
6390 for (i = 0; ; i++)
6391 {
6392 long long int m = n << i;
6393 if (m >> i != n)
6394 return 1;
6395 if (LLONG_MAX / 2 < m)
6396 break;
6397 }
6398 return 0;
6399 ;
6400 return 0;
6401 }
6402 _ACEOF
6403 if ac_fn_cxx_try_run "$LINENO"; then :
6404
6405 else
6406 ac_cv_type_long_long_int=no
6407 fi
6408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6409 conftest.$ac_objext conftest.beam conftest.$ac_ext
6410 fi
6411
6412 fi
6413 fi
6414 fi
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6416 $as_echo "$ac_cv_type_long_long_int" >&6; }
6417 if test $ac_cv_type_long_long_int = yes; then
6418
6419 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6420
6421 fi
6422
6423
6424
6425 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6426 if test "x$ac_cv_type_intmax_t" = xyes; then :
6427
6428 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6429
6430 else
6431 test $ac_cv_type_long_long_int = yes \
6432 && ac_type='long long int' \
6433 || ac_type='long int'
6434
6435 cat >>confdefs.h <<_ACEOF
6436 #define intmax_t $ac_type
6437 _ACEOF
6438
6439 fi
6440
6441
6442
6443 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6444 if test "x$ac_cv_type_intptr_t" = xyes; then :
6445
6446 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6447
6448 else
6449 for ac_type in 'int' 'long int' 'long long int'; do
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452 $ac_includes_default
6453 int
6454 main ()
6455 {
6456 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6457 test_array [0] = 0;
6458 return test_array [0];
6459
6460 ;
6461 return 0;
6462 }
6463 _ACEOF
6464 if ac_fn_cxx_try_compile "$LINENO"; then :
6465
6466 cat >>confdefs.h <<_ACEOF
6467 #define intptr_t $ac_type
6468 _ACEOF
6469
6470 ac_type=
6471 fi
6472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473 test -z "$ac_type" && break
6474 done
6475 fi
6476
6477
6478 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6479 case $ac_cv_c_uint8_t in #(
6480 no|yes) ;; #(
6481 *)
6482
6483 $as_echo "#define _UINT8_T 1" >>confdefs.h
6484
6485
6486 cat >>confdefs.h <<_ACEOF
6487 #define uint8_t $ac_cv_c_uint8_t
6488 _ACEOF
6489 ;;
6490 esac
6491
6492 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6493 case $ac_cv_c_uint16_t in #(
6494 no|yes) ;; #(
6495 *)
6496
6497
6498 cat >>confdefs.h <<_ACEOF
6499 #define uint16_t $ac_cv_c_uint16_t
6500 _ACEOF
6501 ;;
6502 esac
6503
6504 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6505 case $ac_cv_c_uint32_t in #(
6506 no|yes) ;; #(
6507 *)
6508
6509 $as_echo "#define _UINT32_T 1" >>confdefs.h
6510
6511
6512 cat >>confdefs.h <<_ACEOF
6513 #define uint32_t $ac_cv_c_uint32_t
6514 _ACEOF
6515 ;;
6516 esac
6517
6518 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6519 case $ac_cv_c_uint64_t in #(
6520 no|yes) ;; #(
6521 *)
6522
6523 $as_echo "#define _UINT64_T 1" >>confdefs.h
6524
6525
6526 cat >>confdefs.h <<_ACEOF
6527 #define uint64_t $ac_cv_c_uint64_t
6528 _ACEOF
6529 ;;
6530 esac
6531
6532
6533
6534 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6535 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6536
6537 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6538
6539 else
6540 test $ac_cv_type_unsigned_long_long_int = yes \
6541 && ac_type='unsigned long long int' \
6542 || ac_type='unsigned long int'
6543
6544 cat >>confdefs.h <<_ACEOF
6545 #define uintmax_t $ac_type
6546 _ACEOF
6547
6548 fi
6549
6550
6551
6552 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6553 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6554
6555 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6556
6557 else
6558 for ac_type in 'unsigned int' 'unsigned long int' \
6559 'unsigned long long int'; do
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6562 $ac_includes_default
6563 int
6564 main ()
6565 {
6566 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6567 test_array [0] = 0;
6568 return test_array [0];
6569
6570 ;
6571 return 0;
6572 }
6573 _ACEOF
6574 if ac_fn_cxx_try_compile "$LINENO"; then :
6575
6576 cat >>confdefs.h <<_ACEOF
6577 #define uintptr_t $ac_type
6578 _ACEOF
6579
6580 ac_type=
6581 fi
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 test -z "$ac_type" && break
6584 done
6585 fi
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6601 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6602 fi
6603
6604 # check what underlying integer type int64_t uses
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6606 $as_echo_n "checking for int64_t underlying type... " >&6; }
6607 if ${ac_cv_int64_t_type+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6613
6614 #ifdef HAVE_STDINT_H
6615 #include <stdint.h>
6616 #endif
6617 template <typename T> struct X { };
6618 template <>
6619 struct X<long> { typedef long t; };
6620
6621 int
6622 main ()
6623 {
6624 X<int64_t>::t x;
6625 ;
6626 return 0;
6627 }
6628 _ACEOF
6629 if ac_fn_cxx_try_compile "$LINENO"; then :
6630 ac_cv_int64_t_type=long
6631 else
6632 ac_cv_int64_t_type="long long"
6633 fi
6634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635 fi
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6637 $as_echo "$ac_cv_int64_t_type" >&6; }
6638 if test "$ac_cv_int64_t_type" = "long"; then
6639
6640 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6641
6642 else
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6645
6646 #ifdef HAVE_STDINT_H
6647 #include <stdint.h>
6648 #endif
6649 template <typename T> struct X { };
6650 template <>
6651 struct X<long long> { typedef long long t; };
6652
6653 int
6654 main ()
6655 {
6656 X<int64_t>::t x;
6657 ;
6658 return 0;
6659 }
6660 _ACEOF
6661 if ac_fn_cxx_try_compile "$LINENO"; then :
6662
6663 else
6664 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6665 fi
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 fi
6668
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6670 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6671 if ${ac_cv_std_swap_in_utility+:} false; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6677
6678 #include <utility>
6679
6680 int
6681 main ()
6682 {
6683 int a, b; std::swap(a,b);
6684 ;
6685 return 0;
6686 }
6687 _ACEOF
6688 if ac_fn_cxx_try_compile "$LINENO"; then :
6689 ac_cv_std_swap_in_utility=yes
6690 else
6691 ac_cv_std_swap_in_utility=no
6692 fi
6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694 fi
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6696 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6697 if test $ac_cv_std_swap_in_utility = yes; then
6698
6699 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6700
6701 fi
6702
6703 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6704 # If the host compiler is affected by the bug, and we build with optimization
6705 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6706 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6707 # Since there is no reliable feature check for the presence of this bug,
6708 # we simply use a GCC version number check. (This should never trigger for
6709 # stages 2 or 3 of a native bootstrap.)
6710 aliasing_flags=
6711 if test "$GCC" = yes; then
6712 saved_CXXFLAGS="$CXXFLAGS"
6713
6714 # The following test compilation will succeed if and only if $CXX accepts
6715 # -fno-strict-aliasing *and* is older than GCC 4.3.
6716 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6718 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721
6722 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6723 #error compiler not affected by placement new aliasing bug
6724 #endif
6725
6726 _ACEOF
6727 if ac_fn_cxx_try_compile "$LINENO"; then :
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6729 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6730 else
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6733 fi
6734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735
6736 CXXFLAGS="$saved_CXXFLAGS"
6737 fi
6738
6739
6740
6741
6742 # ---------------------
6743 # Warnings and checking
6744 # ---------------------
6745
6746 # Check $CC warning features (if it's GCC).
6747 # We want to use -pedantic, but we don't want warnings about
6748 # * 'long long'
6749 # * variadic macros
6750 # * overlong strings
6751 # * C++11 narrowing conversions in { }
6752 # So, we only use -pedantic if we can disable those warnings.
6753
6754 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6755 # Check whether --enable-build-format-warnings was given.
6756 if test "${enable_build_format_warnings+set}" = set; then :
6757 enableval=$enable_build_format_warnings;
6758 else
6759 enable_build_format_warnings=yes
6760 fi
6761
6762 if test $enable_build_format_warnings = no; then :
6763 wf_opt=-Wno-format
6764 else
6765 wf_opt=
6766 fi
6767 ac_ext=cpp
6768 ac_cpp='$CXXCPP $CPPFLAGS'
6769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6772
6773 loose_warn=
6774 save_CXXFLAGS="$CXXFLAGS"
6775 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6776 # Do the check with the no- prefix removed since gcc silently
6777 # accepts any -Wno-* option on purpose
6778 case $real_option in
6779 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6780 *) option=$real_option ;;
6781 esac
6782 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6783
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6785 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6786 if eval \${$as_acx_Woption+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 CXXFLAGS="$option"
6790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791 /* end confdefs.h. */
6792
6793 int
6794 main ()
6795 {
6796
6797 ;
6798 return 0;
6799 }
6800 _ACEOF
6801 if ac_fn_cxx_try_compile "$LINENO"; then :
6802 eval "$as_acx_Woption=yes"
6803 else
6804 eval "$as_acx_Woption=no"
6805 fi
6806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807
6808 fi
6809 eval ac_res=\$$as_acx_Woption
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6811 $as_echo "$ac_res" >&6; }
6812 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6813 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6814 fi
6815 done
6816 CXXFLAGS="$save_CXXFLAGS"
6817 ac_ext=cpp
6818 ac_cpp='$CXXCPP $CPPFLAGS'
6819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6822
6823
6824
6825 ac_ext=c
6826 ac_cpp='$CPP $CPPFLAGS'
6827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6830
6831 c_loose_warn=
6832 save_CFLAGS="$CFLAGS"
6833 for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
6834 # Do the check with the no- prefix removed since gcc silently
6835 # accepts any -Wno-* option on purpose
6836 case $real_option in
6837 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6838 *) option=$real_option ;;
6839 esac
6840 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6841
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6843 $as_echo_n "checking whether $CC supports $option... " >&6; }
6844 if eval \${$as_acx_Woption+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 CFLAGS="$option"
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850
6851 int
6852 main ()
6853 {
6854
6855 ;
6856 return 0;
6857 }
6858 _ACEOF
6859 if ac_fn_c_try_compile "$LINENO"; then :
6860 eval "$as_acx_Woption=yes"
6861 else
6862 eval "$as_acx_Woption=no"
6863 fi
6864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865
6866 fi
6867 eval ac_res=\$$as_acx_Woption
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6869 $as_echo "$ac_res" >&6; }
6870 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6871 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6872 fi
6873 done
6874 CFLAGS="$save_CFLAGS"
6875 ac_ext=cpp
6876 ac_cpp='$CXXCPP $CPPFLAGS'
6877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6880
6881
6882 ac_ext=cpp
6883 ac_cpp='$CXXCPP $CPPFLAGS'
6884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6887
6888 strict_warn=
6889 save_CXXFLAGS="$CXXFLAGS"
6890 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6891 # Do the check with the no- prefix removed since gcc silently
6892 # accepts any -Wno-* option on purpose
6893 case $real_option in
6894 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6895 *) option=$real_option ;;
6896 esac
6897 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6898
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6900 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6901 if eval \${$as_acx_Woption+:} false; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904 CXXFLAGS="$option"
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6907
6908 int
6909 main ()
6910 {
6911
6912 ;
6913 return 0;
6914 }
6915 _ACEOF
6916 if ac_fn_cxx_try_compile "$LINENO"; then :
6917 eval "$as_acx_Woption=yes"
6918 else
6919 eval "$as_acx_Woption=no"
6920 fi
6921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922
6923 fi
6924 eval ac_res=\$$as_acx_Woption
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6926 $as_echo "$ac_res" >&6; }
6927 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6928 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6929 fi
6930 done
6931 CXXFLAGS="$save_CXXFLAGS"
6932 ac_ext=cpp
6933 ac_cpp='$CXXCPP $CPPFLAGS'
6934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6937
6938
6939 ac_ext=c
6940 ac_cpp='$CPP $CPPFLAGS'
6941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6944
6945 c_strict_warn=
6946 save_CFLAGS="$CFLAGS"
6947 for real_option in -Wold-style-definition -Wc++-compat; do
6948 # Do the check with the no- prefix removed since gcc silently
6949 # accepts any -Wno-* option on purpose
6950 case $real_option in
6951 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6952 *) option=$real_option ;;
6953 esac
6954 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6955
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6957 $as_echo_n "checking whether $CC supports $option... " >&6; }
6958 if eval \${$as_acx_Woption+:} false; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 CFLAGS="$option"
6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6964
6965 int
6966 main ()
6967 {
6968
6969 ;
6970 return 0;
6971 }
6972 _ACEOF
6973 if ac_fn_c_try_compile "$LINENO"; then :
6974 eval "$as_acx_Woption=yes"
6975 else
6976 eval "$as_acx_Woption=no"
6977 fi
6978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6979
6980 fi
6981 eval ac_res=\$$as_acx_Woption
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6983 $as_echo "$ac_res" >&6; }
6984 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6985 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6986 fi
6987 done
6988 CFLAGS="$save_CFLAGS"
6989 ac_ext=cpp
6990 ac_cpp='$CXXCPP $CPPFLAGS'
6991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6994
6995
6996 ac_ext=cpp
6997 ac_cpp='$CXXCPP $CPPFLAGS'
6998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7001
7002 # Do the check with the no- prefix removed from the warning options
7003 # since gcc silently accepts any -Wno-* option on purpose
7004 if test "$GXX" = yes; then :
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7006 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7007 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7008 $as_echo_n "(cached) " >&6
7009 else
7010 save_CXXFLAGS="$CXXFLAGS"
7011 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7014
7015 int
7016 main ()
7017 {
7018
7019 ;
7020 return 0;
7021 }
7022 _ACEOF
7023 if ac_fn_cxx_try_compile "$LINENO"; then :
7024 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7025 else
7026 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7027 fi
7028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7029 CXXFLAGS="$save_CXXFLAGS"
7030 fi
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7032 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7033 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7034 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7035 fi
7036
7037 fi
7038 ac_ext=cpp
7039 ac_cpp='$CXXCPP $CPPFLAGS'
7040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7043
7044
7045 ac_ext=cpp
7046 ac_cpp='$CXXCPP $CPPFLAGS'
7047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7050
7051 # Check whether --enable-werror-always was given.
7052 if test "${enable_werror_always+set}" = set; then :
7053 enableval=$enable_werror_always;
7054 else
7055 enable_werror_always=no
7056 fi
7057
7058 if test $enable_werror_always = yes; then :
7059 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7060 fi
7061
7062 ac_ext=cpp
7063 ac_cpp='$CXXCPP $CPPFLAGS'
7064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7067
7068
7069
7070 # The above macros do nothing if the compiler is not GCC. However, the
7071 # Makefile has more goo to add other flags, so these variables are used
7072 # to enable warnings only for GCC.
7073 warn_cflags=
7074 warn_cxxflags=
7075 if test "x$GCC" = "xyes"; then
7076 warn_cflags='$(GCC_WARN_CFLAGS)'
7077 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7078 fi
7079
7080
7081
7082 # Disable exceptions and RTTI if building with g++
7083 ac_ext=c
7084 ac_cpp='$CPP $CPPFLAGS'
7085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7088
7089 noexception_flags=
7090 save_CFLAGS="$CFLAGS"
7091 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7092 # Do the check with the no- prefix removed since gcc silently
7093 # accepts any -Wno-* option on purpose
7094 case $real_option in
7095 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7096 *) option=$real_option ;;
7097 esac
7098 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7099
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7101 $as_echo_n "checking whether $CC supports $option... " >&6; }
7102 if eval \${$as_acx_Woption+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 CFLAGS="$option"
7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7108
7109 int
7110 main ()
7111 {
7112
7113 ;
7114 return 0;
7115 }
7116 _ACEOF
7117 if ac_fn_c_try_compile "$LINENO"; then :
7118 eval "$as_acx_Woption=yes"
7119 else
7120 eval "$as_acx_Woption=no"
7121 fi
7122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123
7124 fi
7125 eval ac_res=\$$as_acx_Woption
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7127 $as_echo "$ac_res" >&6; }
7128 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7129 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7130 fi
7131 done
7132 CFLAGS="$save_CFLAGS"
7133 ac_ext=cpp
7134 ac_cpp='$CXXCPP $CPPFLAGS'
7135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7138
7139
7140
7141 # Enable expensive internal checks
7142 is_release=
7143 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7144 is_release=yes
7145 fi
7146
7147 # Check whether --enable-checking was given.
7148 if test "${enable_checking+set}" = set; then :
7149 enableval=$enable_checking; ac_checking_flags="${enableval}"
7150 else
7151
7152 # Determine the default checks.
7153 if test x$is_release = x ; then
7154 ac_checking_flags=yes,extra
7155 else
7156 ac_checking_flags=release
7157 fi
7158 fi
7159
7160 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7161 for check in release $ac_checking_flags
7162 do
7163 case $check in
7164 # these set all the flags to specific states
7165 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7166 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7167 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7168 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7169 ac_tree_checking=1 ; ac_valgrind_checking= ;
7170 ac_types_checking=1 ;;
7171 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7172 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7173 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7174 ac_rtlflag_checking= ; ac_runtime_checking= ;
7175 ac_tree_checking= ; ac_valgrind_checking= ;
7176 ac_types_checking= ;;
7177 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7178 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7179 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7180 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7181 ac_tree_checking=1 ; ac_valgrind_checking= ;
7182 ac_types_checking=1 ;;
7183 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7184 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7185 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7186 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7187 ac_tree_checking= ; ac_valgrind_checking= ;
7188 ac_types_checking= ;;
7189 # these enable particular checks
7190 assert) ac_assert_checking=1 ;;
7191 df) ac_df_checking=1 ;;
7192 extra) ac_extra_checking=1 ;;
7193 fold) ac_fold_checking=1 ;;
7194 gc) ac_gc_checking=1 ;;
7195 gcac) ac_gc_always_collect=1 ;;
7196 gimple) ac_gimple_checking=1 ;;
7197 misc) ac_checking=1 ;;
7198 rtl) ac_rtl_checking=1 ;;
7199 rtlflag) ac_rtlflag_checking=1 ;;
7200 runtime) ac_runtime_checking=1 ;;
7201 tree) ac_tree_checking=1 ;;
7202 types) ac_types_checking=1 ;;
7203 valgrind) ac_valgrind_checking=1 ;;
7204 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7205 esac
7206 done
7207 IFS="$ac_save_IFS"
7208
7209 nocommon_flag=""
7210 if test x$ac_checking != x ; then
7211
7212 $as_echo "#define CHECKING_P 1" >>confdefs.h
7213
7214 nocommon_flag=-fno-common
7215 else
7216 $as_echo "#define CHECKING_P 0" >>confdefs.h
7217
7218 fi
7219
7220 if test x$ac_extra_checking != x ; then
7221
7222 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7223
7224 else
7225 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7226
7227 fi
7228 if test x$ac_df_checking != x ; then
7229
7230 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7231
7232 fi
7233 if test x$ac_assert_checking != x ; then
7234
7235 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7236
7237 fi
7238 if test x$ac_gimple_checking != x ; then
7239
7240 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7241
7242 fi
7243
7244 if test x$ac_runtime_checking != x ; then
7245
7246 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7247
7248 fi
7249 if test x$ac_tree_checking != x ; then
7250
7251 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7252
7253 TREECHECKING=yes
7254 fi
7255 if test x$ac_types_checking != x ; then
7256
7257 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7258
7259 fi
7260
7261 if test x$ac_rtl_checking != x ; then
7262
7263 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7264
7265 fi
7266 if test x$ac_rtlflag_checking != x ; then
7267
7268 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7269
7270 fi
7271 if test x$ac_gc_checking != x ; then
7272
7273 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7274
7275 fi
7276 if test x$ac_gc_always_collect != x ; then
7277
7278 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7279
7280 fi
7281 if test x$ac_fold_checking != x ; then
7282
7283 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7284
7285 fi
7286 valgrind_path_defines=
7287 valgrind_command=
7288
7289 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7290 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7291 have_valgrind_h=yes
7292 else
7293 have_valgrind_h=no
7294 fi
7295
7296
7297
7298 # It is certainly possible that there's valgrind but no valgrind.h.
7299 # GCC relies on making annotations so we must have both.
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7301 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7304 #include <valgrind/memcheck.h>
7305 #ifndef VALGRIND_DISCARD
7306 #error VALGRIND_DISCARD not defined
7307 #endif
7308 _ACEOF
7309 if ac_fn_cxx_try_cpp "$LINENO"; then :
7310 gcc_cv_header_valgrind_memcheck_h=yes
7311 else
7312 gcc_cv_header_valgrind_memcheck_h=no
7313 fi
7314 rm -f conftest.err conftest.i conftest.$ac_ext
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7316 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7318 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7321 #include <memcheck.h>
7322 #ifndef VALGRIND_DISCARD
7323 #error VALGRIND_DISCARD not defined
7324 #endif
7325 _ACEOF
7326 if ac_fn_cxx_try_cpp "$LINENO"; then :
7327 gcc_cv_header_memcheck_h=yes
7328 else
7329 gcc_cv_header_memcheck_h=no
7330 fi
7331 rm -f conftest.err conftest.i conftest.$ac_ext
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7333 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7334 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7335
7336 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7337
7338 fi
7339 if test $gcc_cv_header_memcheck_h = yes; then
7340
7341 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7342
7343 fi
7344
7345 if test x$ac_valgrind_checking != x ; then
7346
7347 # Prepare PATH_SEPARATOR.
7348 # The user is always right.
7349 if test "${PATH_SEPARATOR+set}" != set; then
7350 echo "#! /bin/sh" >conf$$.sh
7351 echo "exit 0" >>conf$$.sh
7352 chmod +x conf$$.sh
7353 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7354 PATH_SEPARATOR=';'
7355 else
7356 PATH_SEPARATOR=:
7357 fi
7358 rm -f conf$$.sh
7359 fi
7360
7361 # Find out how to test for executable files. Don't use a zero-byte file,
7362 # as systems may use methods other than mode bits to determine executability.
7363 cat >conf$$.file <<_ASEOF
7364 #! /bin/sh
7365 exit 0
7366 _ASEOF
7367 chmod +x conf$$.file
7368 if test -x conf$$.file >/dev/null 2>&1; then
7369 ac_executable_p="test -x"
7370 else
7371 ac_executable_p="test -f"
7372 fi
7373 rm -f conf$$.file
7374
7375 # Extract the first word of "valgrind", so it can be a program name with args.
7376 set dummy valgrind; ac_word=$2
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 $as_echo_n "checking for $ac_word... " >&6; }
7379 if ${ac_cv_path_valgrind_path+:} false; then :
7380 $as_echo_n "(cached) " >&6
7381 else
7382 case "$valgrind_path" in
7383 [\\/]* | ?:[\\/]*)
7384 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7385 ;;
7386 *)
7387 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7388 for ac_dir in $PATH; do
7389 IFS="$ac_save_IFS"
7390 test -z "$ac_dir" && ac_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7393 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7394 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7395 break 2
7396 fi
7397 fi
7398 done
7399 done
7400 IFS="$ac_save_IFS"
7401 ;;
7402 esac
7403 fi
7404 valgrind_path="$ac_cv_path_valgrind_path"
7405 if test -n "$valgrind_path"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7407 $as_echo "$valgrind_path" >&6; }
7408 else
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7411 fi
7412
7413 if test "x$valgrind_path" = "x" \
7414 || (test $have_valgrind_h = no \
7415 && test $gcc_cv_header_memcheck_h = no \
7416 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7417 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7418 fi
7419 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7420 valgrind_command="$valgrind_path -q"
7421
7422 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7423
7424 fi
7425
7426
7427
7428 # Enable code coverage collection
7429 # Check whether --enable-coverage was given.
7430 if test "${enable_coverage+set}" = set; then :
7431 enableval=$enable_coverage; case "${enableval}" in
7432 yes|noopt)
7433 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7434 ;;
7435 opt)
7436 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7437 ;;
7438 no)
7439 # a.k.a. --disable-coverage
7440 coverage_flags=""
7441 ;;
7442 *)
7443 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7444 ;;
7445 esac
7446 else
7447 coverage_flags=""
7448 fi
7449
7450
7451
7452 # Check whether --enable-gather-detailed-mem-stats was given.
7453 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7454 enableval=$enable_gather_detailed_mem_stats;
7455 else
7456 enable_gather_detailed_mem_stats=no
7457 fi
7458
7459 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7460
7461 cat >>confdefs.h <<_ACEOF
7462 #define GATHER_STATISTICS $gather_stats
7463 _ACEOF
7464
7465
7466 # Check whether --enable-valgrind-annotations was given.
7467 if test "${enable_valgrind_annotations+set}" = set; then :
7468 enableval=$enable_valgrind_annotations;
7469 else
7470 enable_valgrind_annotations=no
7471 fi
7472
7473 if test x$enable_valgrind_annotations != xno \
7474 || test x$ac_valgrind_checking != x; then
7475 if (test $have_valgrind_h = no \
7476 && test $gcc_cv_header_memcheck_h = no \
7477 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7478 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7479 fi
7480
7481 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7482
7483 fi
7484
7485 # -------------------------------
7486 # Miscenalleous configure options
7487 # -------------------------------
7488
7489 # With stabs
7490
7491 # Check whether --with-stabs was given.
7492 if test "${with_stabs+set}" = set; then :
7493 withval=$with_stabs; stabs="$with_stabs"
7494 else
7495 stabs=no
7496 fi
7497
7498
7499 # Determine whether or not multilibs are enabled.
7500 # Check whether --enable-multilib was given.
7501 if test "${enable_multilib+set}" = set; then :
7502 enableval=$enable_multilib;
7503 else
7504 enable_multilib=yes
7505 fi
7506
7507
7508
7509 # Determine whether or not multiarch is enabled.
7510 # Check whether --enable-multiarch was given.
7511 if test "${enable_multiarch+set}" = set; then :
7512 enableval=$enable_multiarch; case "${enableval}" in
7513 yes|no|auto) enable_multiarch=$enableval;;
7514 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7515 esac
7516 else
7517 enable_multiarch=auto
7518 fi
7519
7520 if test x${enable_multiarch} = xauto; then
7521 if test x${with_native_system_header_dir} != x; then
7522 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7523 enable_multiarch=no
7524 fi
7525 if test x$host != x$target && test "x$with_sysroot" = x; then
7526 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7527 enable_multiarch=no
7528 fi
7529 fi
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7531 $as_echo_n "checking for multiarch configuration... " >&6; }
7532
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7534 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7535
7536 # needed for setting the multiarch name for soft-float/hard-float ABIs
7537
7538
7539
7540 # default stack clash protection guard size as power of twos in bytes.
7541 # Please keep these in sync with params.def.
7542 stk_clash_min=12
7543 stk_clash_max=30
7544
7545 # Keep the default value when the option is not used to 0, this allows us to
7546 # distinguish between the cases where the user specifially set a value via
7547 # configure and when the normal default value is used.
7548
7549 # Check whether --with-stack-clash-protection-guard-size was given.
7550 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7551 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7552 else
7553 DEFAULT_STK_CLASH_GUARD_SIZE=0
7554 fi
7555
7556 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7557 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7558 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7559 as_fn_error $? "Invalid value $DEFAULT_STK_CLASH_GUARD_SIZE for --with-stack-clash-protection-guard-size. Must be between $stk_clash_min and $stk_clash_max." "$LINENO" 5
7560 fi
7561
7562
7563 cat >>confdefs.h <<_ACEOF
7564 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7565 _ACEOF
7566
7567
7568 # Enable __cxa_atexit for C++.
7569 # Check whether --enable-__cxa_atexit was given.
7570 if test "${enable___cxa_atexit+set}" = set; then :
7571 enableval=$enable___cxa_atexit;
7572 fi
7573
7574
7575 # Enable C extension for decimal float if target supports it.
7576
7577 # Check whether --enable-decimal-float was given.
7578 if test "${enable_decimal_float+set}" = set; then :
7579 enableval=$enable_decimal_float;
7580 case $enable_decimal_float in
7581 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7582 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7583 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7584 esac
7585
7586 else
7587
7588 case $target in
7589 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7590 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7591 i?86*-*-mingw* | x86_64*-*-mingw* | \
7592 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7593 enable_decimal_float=yes
7594 ;;
7595 *)
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7597 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7598 enable_decimal_float=no
7599 ;;
7600 esac
7601
7602 fi
7603
7604
7605 # x86's use BID format instead of DPD
7606 case x$enable_decimal_float in
7607 xyes)
7608 case $target in
7609 i?86*-*-* | x86_64*-*-*)
7610 enable_decimal_float=bid
7611 ;;
7612 *)
7613 enable_decimal_float=dpd
7614 ;;
7615 esac
7616 default_decimal_float=$enable_decimal_float
7617 ;;
7618 xno)
7619 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7620 # dependency on libdecnumber.
7621 default_decimal_float=dpd
7622 ;;
7623 esac
7624
7625
7626
7627
7628 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7629
7630 cat >>confdefs.h <<_ACEOF
7631 #define ENABLE_DECIMAL_FLOAT $dfp
7632 _ACEOF
7633
7634
7635 # Use default_decimal_float for dependency.
7636 enable_decimal_float=$default_decimal_float
7637
7638 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7639
7640 cat >>confdefs.h <<_ACEOF
7641 #define ENABLE_DECIMAL_BID_FORMAT $bid
7642 _ACEOF
7643
7644
7645 # Enable C extension for fixed-point arithmetic.
7646 # Check whether --enable-fixed-point was given.
7647 if test "${enable_fixed_point+set}" = set; then :
7648 enableval=$enable_fixed_point;
7649 else
7650
7651 case $target in
7652 arm*)
7653 enable_fixed_point=yes
7654 ;;
7655
7656 mips*-*-*)
7657 enable_fixed_point=yes
7658 ;;
7659 *)
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7661 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7662 enable_fixed_point=no
7663 ;;
7664 esac
7665
7666 fi
7667
7668
7669
7670 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7671
7672 cat >>confdefs.h <<_ACEOF
7673 #define ENABLE_FIXED_POINT $fixedpoint
7674 _ACEOF
7675
7676
7677 # Enable threads
7678 # Pass with no value to take the default
7679 # Pass with a value to specify a thread package
7680 # Check whether --enable-threads was given.
7681 if test "${enable_threads+set}" = set; then :
7682 enableval=$enable_threads;
7683 else
7684 enable_threads=''
7685 fi
7686
7687
7688 # Check whether --enable-tls was given.
7689 if test "${enable_tls+set}" = set; then :
7690 enableval=$enable_tls;
7691 case $enable_tls in
7692 yes | no) ;;
7693 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7694 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7695 esac
7696
7697 else
7698 enable_tls=''
7699 fi
7700
7701
7702 # Check whether --enable-vtable-verify was given.
7703 if test "${enable_vtable_verify+set}" = set; then :
7704 enableval=$enable_vtable_verify;
7705 else
7706 enable_vtable_verify=no
7707 fi
7708
7709 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7710
7711 cat >>confdefs.h <<_ACEOF
7712 #define ENABLE_VTABLE_VERIFY $vtable_verify
7713 _ACEOF
7714
7715
7716 # Check whether --enable-analyzer was given.
7717 if test "${enable_analyzer+set}" = set; then :
7718 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
7719 analyzer=0
7720 else
7721 analyzer=1
7722 fi
7723 else
7724 analyzer=1
7725 fi
7726
7727
7728 cat >>confdefs.h <<_ACEOF
7729 #define ENABLE_ANALYZER $analyzer
7730 _ACEOF
7731
7732
7733 # Check whether --enable-objc-gc was given.
7734 if test "${enable_objc_gc+set}" = set; then :
7735 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7736 objc_boehm_gc=''
7737 else
7738 objc_boehm_gc=1
7739 fi
7740 else
7741 objc_boehm_gc=''
7742 fi
7743
7744
7745
7746 # Check whether --with-dwarf2 was given.
7747 if test "${with_dwarf2+set}" = set; then :
7748 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7749 else
7750 dwarf2=no
7751 fi
7752
7753
7754 # Check whether --enable-shared was given.
7755 if test "${enable_shared+set}" = set; then :
7756 enableval=$enable_shared;
7757 case $enable_shared in
7758 yes | no) ;;
7759 *)
7760 enable_shared=no
7761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7762 for pkg in $enableval; do
7763 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7764 enable_shared=yes
7765 fi
7766 done
7767 IFS="$ac_save_ifs"
7768 ;;
7769 esac
7770
7771 else
7772 enable_shared=yes
7773 fi
7774
7775
7776
7777 # Check whether --enable-gcov was given.
7778 if test "${enable_gcov+set}" = set; then :
7779 enableval=$enable_gcov;
7780 else
7781 enable_gcov=yes
7782 fi
7783
7784
7785
7786
7787 # Check whether --with-specs was given.
7788 if test "${with_specs+set}" = set; then :
7789 withval=$with_specs; CONFIGURE_SPECS=$withval
7790 else
7791 CONFIGURE_SPECS=
7792
7793 fi
7794
7795
7796
7797
7798
7799 # Check whether --with-pkgversion was given.
7800 if test "${with_pkgversion+set}" = set; then :
7801 withval=$with_pkgversion; case "$withval" in
7802 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7803 no) PKGVERSION= ;;
7804 *) PKGVERSION="($withval) " ;;
7805 esac
7806 else
7807 PKGVERSION="(GCC) "
7808
7809 fi
7810
7811
7812
7813
7814
7815 # Check whether --with-bugurl was given.
7816 if test "${with_bugurl+set}" = set; then :
7817 withval=$with_bugurl; case "$withval" in
7818 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7819 no) BUGURL=
7820 ;;
7821 *) BUGURL="$withval"
7822 ;;
7823 esac
7824 else
7825 BUGURL="https://gcc.gnu.org/bugs/"
7826
7827 fi
7828
7829 case ${BUGURL} in
7830 "")
7831 REPORT_BUGS_TO=
7832 REPORT_BUGS_TEXI=
7833 ;;
7834 *)
7835 REPORT_BUGS_TO="<$BUGURL>"
7836 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7837 ;;
7838 esac;
7839
7840
7841
7842
7843 # Allow overriding the default URL for documentation
7844
7845 # Check whether --with-documentation-root-url was given.
7846 if test "${with_documentation_root_url+set}" = set; then :
7847 withval=$with_documentation_root_url; case "$withval" in
7848 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7849 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7850 *) DOCUMENTATION_ROOT_URL="$withval"
7851 ;;
7852 esac
7853 else
7854 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
7855
7856 fi
7857
7858
7859
7860 # Sanity check enable_languages in case someone does not run the toplevel
7861 # configure # script.
7862 # Check whether --enable-languages was given.
7863 if test "${enable_languages+set}" = set; then :
7864 enableval=$enable_languages; case ,${enable_languages}, in
7865 ,,|,yes,)
7866 # go safe -- we cannot be much sure without the toplevel
7867 # configure's
7868 # analysis of which target libs are present and usable
7869 enable_languages=c
7870 ;;
7871 *,all,*)
7872 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7873 ;;
7874 *,c,*)
7875 ;;
7876 *)
7877 enable_languages=c,${enable_languages}
7878 ;;
7879 esac
7880 else
7881 enable_languages=c
7882 fi
7883
7884
7885 # If top-level libada has been disabled, then wire in install-gnatlib
7886 # invocation with `make install', so that one can build and install
7887 # the library manually with `make -C gcc all gnatlib gnattools install'.
7888 if test x"$enable_libada" = xno; then
7889 gnat_install_lib=gnat-install-lib
7890 else
7891 gnat_install_lib=
7892 fi
7893
7894
7895 if test x"$enable_as_accelerator_for" != x; then
7896
7897 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7898
7899 enable_as_accelerator=yes
7900 case "${target}" in
7901 *-intelmicemul-*)
7902 # In this case we expect offload compiler to be built as native, so we
7903 # need to rename the driver to avoid clashes with host's drivers.
7904 program_transform_name="s&^&${target}-&" ;;
7905 esac
7906 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7907 program_transform_name=`echo $program_transform_name | sed $sedscript`
7908 accel_dir_suffix=/accel/${target_noncanonical}
7909 real_target_noncanonical=${enable_as_accelerator_for}
7910 fi
7911
7912
7913
7914
7915 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7916 tgt=`echo $tgt | sed 's/=.*//'`
7917
7918 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7919 enable_hsa=1
7920 else
7921 enable_offloading=1
7922 case "$tgt" in
7923 *-intelmic-* | *-intelmicemul-*)
7924 omp_device_property=omp-device-properties-i386
7925 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
7926 ;;
7927 amdgcn*)
7928 omp_device_property=omp-device-properties-gcn
7929 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
7930 ;;
7931 nvptx*)
7932 omp_device_property=omp-device-properties-nvptx
7933 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
7934 ;;
7935 *)
7936 as_fn_error $? "unknown offload target specified" "$LINENO" 5
7937 ;;
7938 esac
7939 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
7940 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
7941 fi
7942
7943 if test x"$offload_targets" = x; then
7944 offload_targets=$tgt
7945 else
7946 offload_targets="$offload_targets,$tgt"
7947 fi
7948 done
7949
7950
7951
7952
7953 cat >>confdefs.h <<_ACEOF
7954 #define OFFLOAD_TARGETS "$offload_targets"
7955 _ACEOF
7956
7957 if test x"$enable_offloading" != x; then
7958
7959 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7960
7961 else
7962
7963 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7964
7965 fi
7966
7967 if test x"$enable_hsa" = x1 ; then
7968
7969 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7970
7971 fi
7972
7973
7974 # Check whether --with-multilib-list was given.
7975 if test "${with_multilib_list+set}" = set; then :
7976 withval=$with_multilib_list; :
7977 else
7978 with_multilib_list=default
7979 fi
7980
7981
7982 # -------------------------
7983 # Checks for other programs
7984 # -------------------------
7985
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7987 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7988 set x ${MAKE-make}
7989 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7990 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993 cat >conftest.make <<\_ACEOF
7994 SHELL = /bin/sh
7995 all:
7996 @echo '@@@%%%=$(MAKE)=@@@%%%'
7997 _ACEOF
7998 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7999 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8000 *@@@%%%=?*=@@@%%%*)
8001 eval ac_cv_prog_make_${ac_make}_set=yes;;
8002 *)
8003 eval ac_cv_prog_make_${ac_make}_set=no;;
8004 esac
8005 rm -f conftest.make
8006 fi
8007 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8009 $as_echo "yes" >&6; }
8010 SET_MAKE=
8011 else
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8014 SET_MAKE="MAKE=${MAKE-make}"
8015 fi
8016
8017
8018 # Find some useful tools
8019 for ac_prog in gawk mawk nawk awk
8020 do
8021 # Extract the first word of "$ac_prog", so it can be a program name with args.
8022 set dummy $ac_prog; ac_word=$2
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 $as_echo_n "checking for $ac_word... " >&6; }
8025 if ${ac_cv_prog_AWK+:} false; then :
8026 $as_echo_n "(cached) " >&6
8027 else
8028 if test -n "$AWK"; then
8029 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8030 else
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH
8033 do
8034 IFS=$as_save_IFS
8035 test -z "$as_dir" && as_dir=.
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8038 ac_cv_prog_AWK="$ac_prog"
8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 break 2
8041 fi
8042 done
8043 done
8044 IFS=$as_save_IFS
8045
8046 fi
8047 fi
8048 AWK=$ac_cv_prog_AWK
8049 if test -n "$AWK"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8051 $as_echo "$AWK" >&6; }
8052 else
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8055 fi
8056
8057
8058 test -n "$AWK" && break
8059 done
8060
8061 # We need awk to create options.c and options.h.
8062 # Bail out if it's missing.
8063 case ${AWK} in
8064 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8065 esac
8066
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8068 $as_echo_n "checking whether ln -s works... " >&6; }
8069 if ${gcc_cv_prog_LN_S+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 rm -f conftestdata_t
8073 echo >conftestdata_f
8074 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8075 then
8076 gcc_cv_prog_LN_S="ln -s"
8077 else
8078 if ln conftestdata_f conftestdata_t 2>/dev/null
8079 then
8080 gcc_cv_prog_LN_S=ln
8081 else
8082 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8083 then
8084 gcc_cv_prog_LN_S="cp -p"
8085 else
8086 gcc_cv_prog_LN_S=cp
8087 fi
8088 fi
8089 fi
8090 rm -f conftestdata_f conftestdata_t
8091
8092 fi
8093 LN_S="$gcc_cv_prog_LN_S"
8094 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8096 $as_echo "yes" >&6; }
8097 else
8098 if test "$gcc_cv_prog_LN_S" = "ln"; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8100 $as_echo "no, using ln" >&6; }
8101 else
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8103 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8104 fi
8105 fi
8106
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8108 $as_echo_n "checking whether ln works... " >&6; }
8109 if ${acx_cv_prog_LN+:} false; then :
8110 $as_echo_n "(cached) " >&6
8111 else
8112 rm -f conftestdata_t
8113 echo >conftestdata_f
8114 if ln conftestdata_f conftestdata_t 2>/dev/null
8115 then
8116 acx_cv_prog_LN=ln
8117 else
8118 acx_cv_prog_LN=no
8119 fi
8120 rm -f conftestdata_f conftestdata_t
8121
8122 fi
8123 if test $acx_cv_prog_LN = no; then
8124 LN="$LN_S"
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8126 $as_echo "no, using $LN" >&6; }
8127 else
8128 LN="$acx_cv_prog_LN"
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8130 $as_echo "yes" >&6; }
8131 fi
8132
8133 if test -n "$ac_tool_prefix"; then
8134 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8135 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8137 $as_echo_n "checking for $ac_word... " >&6; }
8138 if ${ac_cv_prog_RANLIB+:} false; then :
8139 $as_echo_n "(cached) " >&6
8140 else
8141 if test -n "$RANLIB"; then
8142 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8143 else
8144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145 for as_dir in $PATH
8146 do
8147 IFS=$as_save_IFS
8148 test -z "$as_dir" && as_dir=.
8149 for ac_exec_ext in '' $ac_executable_extensions; do
8150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8151 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8153 break 2
8154 fi
8155 done
8156 done
8157 IFS=$as_save_IFS
8158
8159 fi
8160 fi
8161 RANLIB=$ac_cv_prog_RANLIB
8162 if test -n "$RANLIB"; then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8164 $as_echo "$RANLIB" >&6; }
8165 else
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8167 $as_echo "no" >&6; }
8168 fi
8169
8170
8171 fi
8172 if test -z "$ac_cv_prog_RANLIB"; then
8173 ac_ct_RANLIB=$RANLIB
8174 # Extract the first word of "ranlib", so it can be a program name with args.
8175 set dummy ranlib; ac_word=$2
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8177 $as_echo_n "checking for $ac_word... " >&6; }
8178 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8179 $as_echo_n "(cached) " >&6
8180 else
8181 if test -n "$ac_ct_RANLIB"; then
8182 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8183 else
8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 for as_dir in $PATH
8186 do
8187 IFS=$as_save_IFS
8188 test -z "$as_dir" && as_dir=.
8189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8191 ac_cv_prog_ac_ct_RANLIB="ranlib"
8192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 break 2
8194 fi
8195 done
8196 done
8197 IFS=$as_save_IFS
8198
8199 fi
8200 fi
8201 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8202 if test -n "$ac_ct_RANLIB"; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8204 $as_echo "$ac_ct_RANLIB" >&6; }
8205 else
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207 $as_echo "no" >&6; }
8208 fi
8209
8210 if test "x$ac_ct_RANLIB" = x; then
8211 RANLIB=":"
8212 else
8213 case $cross_compiling:$ac_tool_warned in
8214 yes:)
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8217 ac_tool_warned=yes ;;
8218 esac
8219 RANLIB=$ac_ct_RANLIB
8220 fi
8221 else
8222 RANLIB="$ac_cv_prog_RANLIB"
8223 fi
8224
8225 ranlib_flags=""
8226
8227
8228 # Find a good install program. We prefer a C program (faster),
8229 # so one script is as good as another. But avoid the broken or
8230 # incompatible versions:
8231 # SysV /etc/install, /usr/sbin/install
8232 # SunOS /usr/etc/install
8233 # IRIX /sbin/install
8234 # AIX /bin/install
8235 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8236 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8237 # ./install, which can be erroneously created by make from ./install.sh.
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8239 $as_echo_n "checking for a BSD compatible install... " >&6; }
8240 if test -z "$INSTALL"; then
8241 if ${ac_cv_path_install+:} false; then :
8242 $as_echo_n "(cached) " >&6
8243 else
8244 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8245 for ac_dir in $PATH; do
8246 # Account for people who put trailing slashes in PATH elements.
8247 case "$ac_dir/" in
8248 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8249 *)
8250 # OSF1 and SCO ODT 3.0 have their own names for install.
8251 for ac_prog in ginstall scoinst install; do
8252 if test -f $ac_dir/$ac_prog; then
8253 if test $ac_prog = install &&
8254 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8255 # AIX install. It has an incompatible calling convention.
8256 # OSF/1 installbsd also uses dspmsg, but is usable.
8257 :
8258 else
8259 ac_cv_path_install="$ac_dir/$ac_prog -c"
8260 break 2
8261 fi
8262 fi
8263 done
8264 ;;
8265 esac
8266 done
8267 IFS="$ac_save_IFS"
8268
8269 fi
8270 if test "${ac_cv_path_install+set}" = set; then
8271 INSTALL="$ac_cv_path_install"
8272 else
8273 # As a last resort, use the slow shell script. We don't cache a
8274 # path for INSTALL within a source directory, because that will
8275 # break other packages using the cache if that directory is
8276 # removed, or if the path is relative.
8277 INSTALL="$ac_install_sh"
8278 fi
8279 fi
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8281 $as_echo "$INSTALL" >&6; }
8282
8283 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8284 # It thinks the first close brace ends the variable substitution.
8285 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8286
8287 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8288
8289
8290 # See if cmp has --ignore-initial.
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8292 $as_echo_n "checking for cmp's capabilities... " >&6; }
8293 if ${gcc_cv_prog_cmp_skip+:} false; then :
8294 $as_echo_n "(cached) " >&6
8295 else
8296 echo abfoo >t1
8297 echo cdfoo >t2
8298 gcc_cv_prog_cmp_skip=slowcompare
8299 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8300 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8301 :
8302 else
8303 gcc_cv_prog_cmp_skip=gnucompare
8304 fi
8305 fi
8306 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8307 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8308 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8309 :
8310 else
8311 gcc_cv_prog_cmp_skip=fastcompare
8312 fi
8313 fi
8314 fi
8315 rm t1 t2
8316
8317 fi
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8319 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8320 make_compare_target=$gcc_cv_prog_cmp_skip
8321
8322
8323
8324 # See if we have the mktemp command.
8325 # Extract the first word of "mktemp", so it can be a program name with args.
8326 set dummy mktemp; ac_word=$2
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328 $as_echo_n "checking for $ac_word... " >&6; }
8329 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8330 $as_echo_n "(cached) " >&6
8331 else
8332 if test -n "$have_mktemp_command"; then
8333 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8334 else
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 for as_dir in $PATH
8337 do
8338 IFS=$as_save_IFS
8339 test -z "$as_dir" && as_dir=.
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8342 ac_cv_prog_have_mktemp_command="yes"
8343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344 break 2
8345 fi
8346 done
8347 done
8348 IFS=$as_save_IFS
8349
8350 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8351 fi
8352 fi
8353 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8354 if test -n "$have_mktemp_command"; then
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8356 $as_echo "$have_mktemp_command" >&6; }
8357 else
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 $as_echo "no" >&6; }
8360 fi
8361
8362
8363
8364 # See if makeinfo has been installed and is modern enough
8365 # that we can use it.
8366
8367 # Extract the first word of "makeinfo", so it can be a program name with args.
8368 set dummy makeinfo; ac_word=$2
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370 $as_echo_n "checking for $ac_word... " >&6; }
8371 if ${ac_cv_prog_MAKEINFO+:} false; then :
8372 $as_echo_n "(cached) " >&6
8373 else
8374 if test -n "$MAKEINFO"; then
8375 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8376 else
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 for as_dir in $PATH
8379 do
8380 IFS=$as_save_IFS
8381 test -z "$as_dir" && as_dir=.
8382 for ac_exec_ext in '' $ac_executable_extensions; do
8383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8384 ac_cv_prog_MAKEINFO="makeinfo"
8385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8386 break 2
8387 fi
8388 done
8389 done
8390 IFS=$as_save_IFS
8391
8392 fi
8393 fi
8394 MAKEINFO=$ac_cv_prog_MAKEINFO
8395 if test -n "$MAKEINFO"; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8397 $as_echo "$MAKEINFO" >&6; }
8398 else
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 $as_echo "no" >&6; }
8401 fi
8402
8403
8404 if test -n "$MAKEINFO"; then
8405 # Found it, now check the version.
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8407 $as_echo_n "checking for modern makeinfo... " >&6; }
8408 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8412 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8413
8414 case $ac_prog_version in
8415 '') gcc_cv_prog_makeinfo_modern=no;;
8416 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8417 *) gcc_cv_prog_makeinfo_modern=no;;
8418 esac
8419
8420 fi
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8422 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8423 else
8424 gcc_cv_prog_makeinfo_modern=no
8425 fi
8426 if test $gcc_cv_prog_makeinfo_modern = no; then
8427 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8428 fi
8429
8430 if test $gcc_cv_prog_makeinfo_modern = no; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8432 *** Makeinfo is missing or too old.
8433 *** Info documentation will not be built." >&5
8434 $as_echo "$as_me: WARNING:
8435 *** Makeinfo is missing or too old.
8436 *** Info documentation will not be built." >&2;}
8437 BUILD_INFO=
8438 else
8439 BUILD_INFO=info
8440 fi
8441
8442
8443 # Is pod2man recent enough to regenerate manpages?
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8445 $as_echo_n "checking for recent Pod::Man... " >&6; }
8446 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8448 $as_echo "yes" >&6; }
8449 GENERATED_MANPAGES=generated-manpages
8450 else
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452 $as_echo "no" >&6; }
8453 GENERATED_MANPAGES=
8454 fi
8455
8456
8457 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8458
8459 # How about lex?
8460 for ac_prog in flex
8461 do
8462 # Extract the first word of "$ac_prog", so it can be a program name with args.
8463 set dummy $ac_prog; ac_word=$2
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465 $as_echo_n "checking for $ac_word... " >&6; }
8466 if ${ac_cv_prog_FLEX+:} false; then :
8467 $as_echo_n "(cached) " >&6
8468 else
8469 if test -n "$FLEX"; then
8470 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8471 else
8472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8473 for as_dir in $PATH
8474 do
8475 IFS=$as_save_IFS
8476 test -z "$as_dir" && as_dir=.
8477 for ac_exec_ext in '' $ac_executable_extensions; do
8478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8479 ac_cv_prog_FLEX="$ac_prog"
8480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8481 break 2
8482 fi
8483 done
8484 done
8485 IFS=$as_save_IFS
8486
8487 fi
8488 fi
8489 FLEX=$ac_cv_prog_FLEX
8490 if test -n "$FLEX"; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8492 $as_echo "$FLEX" >&6; }
8493 else
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495 $as_echo "no" >&6; }
8496 fi
8497
8498
8499 test -n "$FLEX" && break
8500 done
8501 test -n "$FLEX" || FLEX="$MISSING flex"
8502
8503
8504 # Bison?
8505 for ac_prog in bison
8506 do
8507 # Extract the first word of "$ac_prog", so it can be a program name with args.
8508 set dummy $ac_prog; ac_word=$2
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510 $as_echo_n "checking for $ac_word... " >&6; }
8511 if ${ac_cv_prog_BISON+:} false; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 if test -n "$BISON"; then
8515 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8516 else
8517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518 for as_dir in $PATH
8519 do
8520 IFS=$as_save_IFS
8521 test -z "$as_dir" && as_dir=.
8522 for ac_exec_ext in '' $ac_executable_extensions; do
8523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8524 ac_cv_prog_BISON="$ac_prog"
8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8526 break 2
8527 fi
8528 done
8529 done
8530 IFS=$as_save_IFS
8531
8532 fi
8533 fi
8534 BISON=$ac_cv_prog_BISON
8535 if test -n "$BISON"; then
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8537 $as_echo "$BISON" >&6; }
8538 else
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540 $as_echo "no" >&6; }
8541 fi
8542
8543
8544 test -n "$BISON" && break
8545 done
8546 test -n "$BISON" || BISON="$MISSING bison"
8547
8548
8549 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8550 # check for build == host before using them.
8551
8552 # NM
8553 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8554 && test -d ../binutils ; then
8555 NM='${objdir}/../binutils/nm-new'
8556 else
8557 # Extract the first word of "nm", so it can be a program name with args.
8558 set dummy nm; ac_word=$2
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560 $as_echo_n "checking for $ac_word... " >&6; }
8561 if ${ac_cv_prog_NM+:} false; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 if test -n "$NM"; then
8565 ac_cv_prog_NM="$NM" # Let the user override the test.
8566 else
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8569 do
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8574 ac_cv_prog_NM="nm"
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 break 2
8577 fi
8578 done
8579 done
8580 IFS=$as_save_IFS
8581
8582 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8583 fi
8584 fi
8585 NM=$ac_cv_prog_NM
8586 if test -n "$NM"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8588 $as_echo "$NM" >&6; }
8589 else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8592 fi
8593
8594
8595 fi
8596
8597 # AR
8598 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8599 && test -d ../binutils ; then
8600 AR='${objdir}/../binutils/ar'
8601 else
8602 # Extract the first word of "ar", so it can be a program name with args.
8603 set dummy ar; ac_word=$2
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8605 $as_echo_n "checking for $ac_word... " >&6; }
8606 if ${ac_cv_prog_AR+:} false; then :
8607 $as_echo_n "(cached) " >&6
8608 else
8609 if test -n "$AR"; then
8610 ac_cv_prog_AR="$AR" # Let the user override the test.
8611 else
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613 for as_dir in $PATH
8614 do
8615 IFS=$as_save_IFS
8616 test -z "$as_dir" && as_dir=.
8617 for ac_exec_ext in '' $ac_executable_extensions; do
8618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8619 ac_cv_prog_AR="ar"
8620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8621 break 2
8622 fi
8623 done
8624 done
8625 IFS=$as_save_IFS
8626
8627 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8628 fi
8629 fi
8630 AR=$ac_cv_prog_AR
8631 if test -n "$AR"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8633 $as_echo "$AR" >&6; }
8634 else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8637 fi
8638
8639
8640 fi
8641
8642 # The jit documentation looks better if built with sphinx, but can be
8643 # built with texinfo if sphinx is not available.
8644 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8645 # Extract the first word of "sphinx-build", so it can be a program name with args.
8646 set dummy sphinx-build; ac_word=$2
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648 $as_echo_n "checking for $ac_word... " >&6; }
8649 if ${ac_cv_prog_doc_build_sys+:} false; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 if test -n "$doc_build_sys"; then
8653 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8654 else
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656 for as_dir in $PATH
8657 do
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8662 ac_cv_prog_doc_build_sys="sphinx"
8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 break 2
8665 fi
8666 done
8667 done
8668 IFS=$as_save_IFS
8669
8670 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8671 fi
8672 fi
8673 doc_build_sys=$ac_cv_prog_doc_build_sys
8674 if test -n "$doc_build_sys"; then
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8676 $as_echo "$doc_build_sys" >&6; }
8677 else
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8679 $as_echo "no" >&6; }
8680 fi
8681
8682
8683
8684 # --------------------
8685 # Checks for C headers
8686 # --------------------
8687
8688 # Need to reject headers which give warnings, so that the -Werror bootstrap
8689 # works later. *sigh* This needs to come before all header checks.
8690
8691 ac_c_preproc_warn_flag=yes
8692
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8694 $as_echo_n "checking for ANSI C header files... " >&6; }
8695 if ${ac_cv_header_stdc+:} false; then :
8696 $as_echo_n "(cached) " >&6
8697 else
8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8700 #include <stdlib.h>
8701 #include <stdarg.h>
8702 #include <string.h>
8703 #include <float.h>
8704
8705 int
8706 main ()
8707 {
8708
8709 ;
8710 return 0;
8711 }
8712 _ACEOF
8713 if ac_fn_cxx_try_compile "$LINENO"; then :
8714 ac_cv_header_stdc=yes
8715 else
8716 ac_cv_header_stdc=no
8717 fi
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8719
8720 if test $ac_cv_header_stdc = yes; then
8721 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8724 #include <string.h>
8725
8726 _ACEOF
8727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8728 $EGREP "memchr" >/dev/null 2>&1; then :
8729
8730 else
8731 ac_cv_header_stdc=no
8732 fi
8733 rm -f conftest*
8734
8735 fi
8736
8737 if test $ac_cv_header_stdc = yes; then
8738 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8741 #include <stdlib.h>
8742
8743 _ACEOF
8744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8745 $EGREP "free" >/dev/null 2>&1; then :
8746
8747 else
8748 ac_cv_header_stdc=no
8749 fi
8750 rm -f conftest*
8751
8752 fi
8753
8754 if test $ac_cv_header_stdc = yes; then
8755 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8756 if test "$cross_compiling" = yes; then :
8757 :
8758 else
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8761 #include <ctype.h>
8762 #include <stdlib.h>
8763 #if ((' ' & 0x0FF) == 0x020)
8764 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8765 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8766 #else
8767 # define ISLOWER(c) \
8768 (('a' <= (c) && (c) <= 'i') \
8769 || ('j' <= (c) && (c) <= 'r') \
8770 || ('s' <= (c) && (c) <= 'z'))
8771 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8772 #endif
8773
8774 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8775 int
8776 main ()
8777 {
8778 int i;
8779 for (i = 0; i < 256; i++)
8780 if (XOR (islower (i), ISLOWER (i))
8781 || toupper (i) != TOUPPER (i))
8782 return 2;
8783 return 0;
8784 }
8785 _ACEOF
8786 if ac_fn_cxx_try_run "$LINENO"; then :
8787
8788 else
8789 ac_cv_header_stdc=no
8790 fi
8791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8792 conftest.$ac_objext conftest.beam conftest.$ac_ext
8793 fi
8794
8795 fi
8796 fi
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8798 $as_echo "$ac_cv_header_stdc" >&6; }
8799 if test $ac_cv_header_stdc = yes; then
8800
8801 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8802
8803 fi
8804
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8806 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8807 if ${ac_cv_header_time+:} false; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h. */
8812 #include <sys/types.h>
8813 #include <sys/time.h>
8814 #include <time.h>
8815
8816 int
8817 main ()
8818 {
8819 if ((struct tm *) 0)
8820 return 0;
8821 ;
8822 return 0;
8823 }
8824 _ACEOF
8825 if ac_fn_cxx_try_compile "$LINENO"; then :
8826 ac_cv_header_time=yes
8827 else
8828 ac_cv_header_time=no
8829 fi
8830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8831 fi
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8833 $as_echo "$ac_cv_header_time" >&6; }
8834 if test $ac_cv_header_time = yes; then
8835
8836 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8837
8838 fi
8839
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8841 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8842 if ${gcc_cv_header_string+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8847 #include <string.h>
8848 #include <strings.h>
8849 int
8850 main ()
8851 {
8852
8853 ;
8854 return 0;
8855 }
8856 _ACEOF
8857 if ac_fn_cxx_try_compile "$LINENO"; then :
8858 gcc_cv_header_string=yes
8859 else
8860 gcc_cv_header_string=no
8861 fi
8862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8863 fi
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8865 $as_echo "$gcc_cv_header_string" >&6; }
8866 if test $gcc_cv_header_string = yes; then
8867
8868 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8869
8870 fi
8871
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8873 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8874 if ${ac_cv_header_sys_wait_h+:} false; then :
8875 $as_echo_n "(cached) " >&6
8876 else
8877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878 /* end confdefs.h. */
8879 #include <sys/types.h>
8880 #include <sys/wait.h>
8881 #ifndef WEXITSTATUS
8882 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8883 #endif
8884 #ifndef WIFEXITED
8885 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8886 #endif
8887
8888 int
8889 main ()
8890 {
8891 int s;
8892 wait (&s);
8893 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8894 ;
8895 return 0;
8896 }
8897 _ACEOF
8898 if ac_fn_cxx_try_compile "$LINENO"; then :
8899 ac_cv_header_sys_wait_h=yes
8900 else
8901 ac_cv_header_sys_wait_h=no
8902 fi
8903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904 fi
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8906 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8907 if test $ac_cv_header_sys_wait_h = yes; then
8908
8909 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8910
8911 fi
8912
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8914 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8915 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8916 $as_echo_n "(cached) " >&6
8917 else
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h. */
8920 #include <sys/types.h>
8921 #include <termios.h>
8922 #ifdef TIOCGWINSZ
8923 yes
8924 #endif
8925
8926 _ACEOF
8927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8928 $EGREP "yes" >/dev/null 2>&1; then :
8929 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8930 else
8931 ac_cv_sys_tiocgwinsz_in_termios_h=no
8932 fi
8933 rm -f conftest*
8934
8935 fi
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8937 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8938
8939 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8941 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8942 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8943 $as_echo_n "(cached) " >&6
8944 else
8945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946 /* end confdefs.h. */
8947 #include <sys/types.h>
8948 #include <sys/ioctl.h>
8949 #ifdef TIOCGWINSZ
8950 yes
8951 #endif
8952
8953 _ACEOF
8954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8955 $EGREP "yes" >/dev/null 2>&1; then :
8956 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8957 else
8958 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8959 fi
8960 rm -f conftest*
8961
8962 fi
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8964 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8965
8966 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8967
8968 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8969
8970 fi
8971 fi
8972
8973 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8974 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8975 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8976 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8977 do :
8978 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8979 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8980 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8981 cat >>confdefs.h <<_ACEOF
8982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8983 _ACEOF
8984
8985 fi
8986 done
8987
8988
8989 # Check for thread headers.
8990 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8991 if test "x$ac_cv_header_thread_h" = xyes; then :
8992 have_thread_h=yes
8993 else
8994 have_thread_h=
8995 fi
8996
8997 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8998 if test "x$ac_cv_header_pthread_h" = xyes; then :
8999 have_pthread_h=yes
9000 else
9001 have_pthread_h=
9002 fi
9003
9004
9005 # These tests can't be done till we know if we have limits.h.
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9007 $as_echo_n "checking for CHAR_BIT... " >&6; }
9008 if ${gcc_cv_decl_char_bit+:} false; then :
9009 $as_echo_n "(cached) " >&6
9010 else
9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012 /* end confdefs.h. */
9013 #ifdef HAVE_LIMITS_H
9014 #include <limits.h>
9015 #endif
9016 #ifdef CHAR_BIT
9017 found
9018 #endif
9019 _ACEOF
9020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9021 $EGREP "found" >/dev/null 2>&1; then :
9022 gcc_cv_decl_char_bit=yes
9023 else
9024 gcc_cv_decl_char_bit=no
9025 fi
9026 rm -f conftest*
9027
9028
9029 fi
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9031 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9032 if test $gcc_cv_decl_char_bit = no; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9034 $as_echo_n "checking number of bits in a byte... " >&6; }
9035 if ${gcc_cv_c_nbby+:} false; then :
9036 $as_echo_n "(cached) " >&6
9037 else
9038 i=8
9039 gcc_cv_c_nbby=
9040 while test $i -lt 65; do
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h. */
9043
9044 int
9045 main ()
9046 {
9047 switch(0) {
9048 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9049 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9050 ; }
9051 ;
9052 return 0;
9053 }
9054 _ACEOF
9055 if ac_fn_cxx_try_compile "$LINENO"; then :
9056 gcc_cv_c_nbby=$i; break
9057 fi
9058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059 i=`expr $i + 1`
9060 done
9061 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9062
9063 fi
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9065 $as_echo "$gcc_cv_c_nbby" >&6; }
9066 if test $gcc_cv_c_nbby = failed; then
9067 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9068 else
9069
9070 cat >>confdefs.h <<_ACEOF
9071 #define CHAR_BIT $gcc_cv_c_nbby
9072 _ACEOF
9073
9074 fi
9075 fi
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9077 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9078 if ${ac_cv_c_bigendian+:} false; then :
9079 $as_echo_n "(cached) " >&6
9080 else
9081 ac_cv_c_bigendian=unknown
9082 # See if we're dealing with a universal compiler.
9083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084 /* end confdefs.h. */
9085 #ifndef __APPLE_CC__
9086 not a universal capable compiler
9087 #endif
9088 typedef int dummy;
9089
9090 _ACEOF
9091 if ac_fn_cxx_try_compile "$LINENO"; then :
9092
9093 # Check for potential -arch flags. It is not universal unless
9094 # there are at least two -arch flags with different values.
9095 ac_arch=
9096 ac_prev=
9097 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9098 if test -n "$ac_prev"; then
9099 case $ac_word in
9100 i?86 | x86_64 | ppc | ppc64)
9101 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9102 ac_arch=$ac_word
9103 else
9104 ac_cv_c_bigendian=universal
9105 break
9106 fi
9107 ;;
9108 esac
9109 ac_prev=
9110 elif test "x$ac_word" = "x-arch"; then
9111 ac_prev=arch
9112 fi
9113 done
9114 fi
9115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9116 if test $ac_cv_c_bigendian = unknown; then
9117 # See if sys/param.h defines the BYTE_ORDER macro.
9118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h. */
9120 #include <sys/types.h>
9121 #include <sys/param.h>
9122
9123 int
9124 main ()
9125 {
9126 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9127 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9128 && LITTLE_ENDIAN)
9129 bogus endian macros
9130 #endif
9131
9132 ;
9133 return 0;
9134 }
9135 _ACEOF
9136 if ac_fn_cxx_try_compile "$LINENO"; then :
9137 # It does; now see whether it defined to BIG_ENDIAN or not.
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9140 #include <sys/types.h>
9141 #include <sys/param.h>
9142
9143 int
9144 main ()
9145 {
9146 #if BYTE_ORDER != BIG_ENDIAN
9147 not big endian
9148 #endif
9149
9150 ;
9151 return 0;
9152 }
9153 _ACEOF
9154 if ac_fn_cxx_try_compile "$LINENO"; then :
9155 ac_cv_c_bigendian=yes
9156 else
9157 ac_cv_c_bigendian=no
9158 fi
9159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9160 fi
9161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9162 fi
9163 if test $ac_cv_c_bigendian = unknown; then
9164 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h. */
9167 #include <limits.h>
9168
9169 int
9170 main ()
9171 {
9172 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9173 bogus endian macros
9174 #endif
9175
9176 ;
9177 return 0;
9178 }
9179 _ACEOF
9180 if ac_fn_cxx_try_compile "$LINENO"; then :
9181 # It does; now see whether it defined to _BIG_ENDIAN or not.
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9184 #include <limits.h>
9185
9186 int
9187 main ()
9188 {
9189 #ifndef _BIG_ENDIAN
9190 not big endian
9191 #endif
9192
9193 ;
9194 return 0;
9195 }
9196 _ACEOF
9197 if ac_fn_cxx_try_compile "$LINENO"; then :
9198 ac_cv_c_bigendian=yes
9199 else
9200 ac_cv_c_bigendian=no
9201 fi
9202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9203 fi
9204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9205 fi
9206 if test $ac_cv_c_bigendian = unknown; then
9207 # Compile a test program.
9208 if test "$cross_compiling" = yes; then :
9209 # Try to guess by grepping values from an object file.
9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9212 short int ascii_mm[] =
9213 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9214 short int ascii_ii[] =
9215 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9216 int use_ascii (int i) {
9217 return ascii_mm[i] + ascii_ii[i];
9218 }
9219 short int ebcdic_ii[] =
9220 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9221 short int ebcdic_mm[] =
9222 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9223 int use_ebcdic (int i) {
9224 return ebcdic_mm[i] + ebcdic_ii[i];
9225 }
9226 extern int foo;
9227
9228 int
9229 main ()
9230 {
9231 return use_ascii (foo) == use_ebcdic (foo);
9232 ;
9233 return 0;
9234 }
9235 _ACEOF
9236 if ac_fn_cxx_try_compile "$LINENO"; then :
9237 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9238 ac_cv_c_bigendian=yes
9239 fi
9240 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9241 if test "$ac_cv_c_bigendian" = unknown; then
9242 ac_cv_c_bigendian=no
9243 else
9244 # finding both strings is unlikely to happen, but who knows?
9245 ac_cv_c_bigendian=unknown
9246 fi
9247 fi
9248 fi
9249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9250 else
9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9253 $ac_includes_default
9254 int
9255 main ()
9256 {
9257
9258 /* Are we little or big endian? From Harbison&Steele. */
9259 union
9260 {
9261 long int l;
9262 char c[sizeof (long int)];
9263 } u;
9264 u.l = 1;
9265 return u.c[sizeof (long int) - 1] == 1;
9266
9267 ;
9268 return 0;
9269 }
9270 _ACEOF
9271 if ac_fn_cxx_try_run "$LINENO"; then :
9272 ac_cv_c_bigendian=no
9273 else
9274 ac_cv_c_bigendian=yes
9275 fi
9276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9277 conftest.$ac_objext conftest.beam conftest.$ac_ext
9278 fi
9279
9280 fi
9281 fi
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9283 $as_echo "$ac_cv_c_bigendian" >&6; }
9284 case $ac_cv_c_bigendian in #(
9285 yes)
9286 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9287 ;; #(
9288 no)
9289 ;; #(
9290 universal)
9291
9292 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9293
9294 ;; #(
9295 *)
9296 as_fn_error $? "unknown endianness
9297 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9298 esac
9299
9300
9301 # ----------------------
9302 # Checks for C++ headers
9303 # ----------------------
9304
9305 ac_ext=cpp
9306 ac_cpp='$CXXCPP $CPPFLAGS'
9307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9311 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9312 if test -z "$CXXCPP"; then
9313 if ${ac_cv_prog_CXXCPP+:} false; then :
9314 $as_echo_n "(cached) " >&6
9315 else
9316 # Double quotes because CXXCPP needs to be expanded
9317 for CXXCPP in "$CXX -E" "/lib/cpp"
9318 do
9319 ac_preproc_ok=false
9320 for ac_cxx_preproc_warn_flag in '' yes
9321 do
9322 # Use a header file that comes with gcc, so configuring glibc
9323 # with a fresh cross-compiler works.
9324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9325 # <limits.h> exists even on freestanding compilers.
9326 # On the NeXT, cc -E runs the code through the compiler's parser,
9327 # not just through cpp. "Syntax error" is here to catch this case.
9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329 /* end confdefs.h. */
9330 #ifdef __STDC__
9331 # include <limits.h>
9332 #else
9333 # include <assert.h>
9334 #endif
9335 Syntax error
9336 _ACEOF
9337 if ac_fn_cxx_try_cpp "$LINENO"; then :
9338
9339 else
9340 # Broken: fails on valid input.
9341 continue
9342 fi
9343 rm -f conftest.err conftest.i conftest.$ac_ext
9344
9345 # OK, works on sane cases. Now check whether nonexistent headers
9346 # can be detected and how.
9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h. */
9349 #include <ac_nonexistent.h>
9350 _ACEOF
9351 if ac_fn_cxx_try_cpp "$LINENO"; then :
9352 # Broken: success on invalid input.
9353 continue
9354 else
9355 # Passes both tests.
9356 ac_preproc_ok=:
9357 break
9358 fi
9359 rm -f conftest.err conftest.i conftest.$ac_ext
9360
9361 done
9362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9363 rm -f conftest.i conftest.err conftest.$ac_ext
9364 if $ac_preproc_ok; then :
9365 break
9366 fi
9367
9368 done
9369 ac_cv_prog_CXXCPP=$CXXCPP
9370
9371 fi
9372 CXXCPP=$ac_cv_prog_CXXCPP
9373 else
9374 ac_cv_prog_CXXCPP=$CXXCPP
9375 fi
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9377 $as_echo "$CXXCPP" >&6; }
9378 ac_preproc_ok=false
9379 for ac_cxx_preproc_warn_flag in '' yes
9380 do
9381 # Use a header file that comes with gcc, so configuring glibc
9382 # with a fresh cross-compiler works.
9383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9384 # <limits.h> exists even on freestanding compilers.
9385 # On the NeXT, cc -E runs the code through the compiler's parser,
9386 # not just through cpp. "Syntax error" is here to catch this case.
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9389 #ifdef __STDC__
9390 # include <limits.h>
9391 #else
9392 # include <assert.h>
9393 #endif
9394 Syntax error
9395 _ACEOF
9396 if ac_fn_cxx_try_cpp "$LINENO"; then :
9397
9398 else
9399 # Broken: fails on valid input.
9400 continue
9401 fi
9402 rm -f conftest.err conftest.i conftest.$ac_ext
9403
9404 # OK, works on sane cases. Now check whether nonexistent headers
9405 # can be detected and how.
9406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9407 /* end confdefs.h. */
9408 #include <ac_nonexistent.h>
9409 _ACEOF
9410 if ac_fn_cxx_try_cpp "$LINENO"; then :
9411 # Broken: success on invalid input.
9412 continue
9413 else
9414 # Passes both tests.
9415 ac_preproc_ok=:
9416 break
9417 fi
9418 rm -f conftest.err conftest.i conftest.$ac_ext
9419
9420 done
9421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9422 rm -f conftest.i conftest.err conftest.$ac_ext
9423 if $ac_preproc_ok; then :
9424
9425 else
9426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9429 See \`config.log' for more details" >&5
9430 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9431 See \`config.log' for more details" >&2;}; }
9432 fi
9433
9434 ac_ext=cpp
9435 ac_cpp='$CXXCPP $CPPFLAGS'
9436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9439
9440
9441 for ac_header in unordered_map
9442 do :
9443 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9444 if test "x$ac_cv_header_unordered_map" = xyes; then :
9445 cat >>confdefs.h <<_ACEOF
9446 #define HAVE_UNORDERED_MAP 1
9447 _ACEOF
9448
9449 fi
9450 done
9451
9452 for ac_header in tr1/unordered_map
9453 do :
9454 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9455 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9456 cat >>confdefs.h <<_ACEOF
9457 #define HAVE_TR1_UNORDERED_MAP 1
9458 _ACEOF
9459
9460 fi
9461 done
9462
9463 for ac_header in ext/hash_map
9464 do :
9465 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9466 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9467 cat >>confdefs.h <<_ACEOF
9468 #define HAVE_EXT_HASH_MAP 1
9469 _ACEOF
9470
9471 fi
9472 done
9473
9474
9475 # --------
9476 # Dependency checking.
9477 # --------
9478
9479 rm -rf .tst 2>/dev/null
9480 mkdir .tst 2>/dev/null
9481 if test -d .tst; then
9482 am__leading_dot=.
9483 else
9484 am__leading_dot=_
9485 fi
9486 rmdir .tst 2>/dev/null
9487
9488 DEPDIR="${am__leading_dot}deps"
9489
9490 ac_config_commands="$ac_config_commands depdir"
9491
9492
9493 ac_config_commands="$ac_config_commands gccdepdir"
9494
9495
9496 depcc="$CXX" am_compiler_list=
9497
9498 am_depcomp=$ac_aux_dir/depcomp
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9500 $as_echo_n "checking dependency style of $depcc... " >&6; }
9501 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 if test -f "$am_depcomp"; then
9505 # We make a subdir and do the tests there. Otherwise we can end up
9506 # making bogus files that we don't know about and never remove. For
9507 # instance it was reported that on HP-UX the gcc test will end up
9508 # making a dummy file named `D' -- because `-MD' means `put the output
9509 # in D'.
9510 mkdir conftest.dir
9511 # Copy depcomp to subdir because otherwise we won't find it if we're
9512 # using a relative directory.
9513 cp "$am_depcomp" conftest.dir
9514 cd conftest.dir
9515 # We will build objects and dependencies in a subdirectory because
9516 # it helps to detect inapplicable dependency modes. For instance
9517 # both Tru64's cc and ICC support -MD to output dependencies as a
9518 # side effect of compilation, but ICC will put the dependencies in
9519 # the current directory while Tru64 will put them in the object
9520 # directory.
9521 mkdir sub
9522
9523 am_cv_CXX_dependencies_compiler_type=none
9524 if test "$am_compiler_list" = ""; then
9525 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9526 fi
9527 for depmode in $am_compiler_list; do
9528 if test $depmode = none; then break; fi
9529
9530 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9531 # Setup a source with many dependencies, because some compilers
9532 # like to wrap large dependency lists on column 80 (with \), and
9533 # we should not choose a depcomp mode which is confused by this.
9534 #
9535 # We need to recreate these files for each test, as the compiler may
9536 # overwrite some of them when testing with obscure command lines.
9537 # This happens at least with the AIX C compiler.
9538 : > sub/conftest.c
9539 for i in 1 2 3 4 5 6; do
9540 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9541 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9542 # Solaris 8's {/usr,}/bin/sh.
9543 touch sub/conftst$i.h
9544 done
9545 echo "include sub/conftest.Po" > confmf
9546
9547 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9548 # mode. It turns out that the SunPro C++ compiler does not properly
9549 # handle `-M -o', and we need to detect this.
9550 depcmd="depmode=$depmode \
9551 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9552 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9553 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9554 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9555 if env $depcmd > conftest.err 2>&1 &&
9556 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9557 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9558 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9559 # icc doesn't choke on unknown options, it will just issue warnings
9560 # or remarks (even with -Werror). So we grep stderr for any message
9561 # that says an option was ignored or not supported.
9562 # When given -MP, icc 7.0 and 7.1 complain thusly:
9563 # icc: Command line warning: ignoring option '-M'; no argument required
9564 # The diagnosis changed in icc 8.0:
9565 # icc: Command line remark: option '-MP' not supported
9566 if (grep 'ignoring option' conftest.err ||
9567 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9568 am_cv_CXX_dependencies_compiler_type=$depmode
9569 $as_echo "$as_me:$LINENO: success" >&5
9570 break
9571 fi
9572 fi
9573 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9574 sed -e 's/^/| /' < conftest.err >&5
9575 done
9576
9577 cd ..
9578 rm -rf conftest.dir
9579 else
9580 am_cv_CXX_dependencies_compiler_type=none
9581 fi
9582
9583 fi
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9585 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9586 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9587 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9588 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9589
9590 fi
9591
9592
9593 # --------
9594 # UNSORTED
9595 # --------
9596
9597
9598 # These libraries may be used by collect2.
9599 # We may need a special search path to get them linked.
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9601 $as_echo_n "checking for collect2 libraries... " >&6; }
9602 if ${gcc_cv_collect2_libs+:} false; then :
9603 $as_echo_n "(cached) " >&6
9604 else
9605 save_LIBS="$LIBS"
9606 for libs in '' -lld -lmld \
9607 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9608 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9609 do
9610 LIBS="$libs"
9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612 /* end confdefs.h. */
9613
9614 /* Override any GCC internal prototype to avoid an error.
9615 Use char because int might match the return type of a GCC
9616 builtin and then its argument prototype would still apply. */
9617 #ifdef __cplusplus
9618 extern "C"
9619 #endif
9620 char ldopen ();
9621 int
9622 main ()
9623 {
9624 return ldopen ();
9625 ;
9626 return 0;
9627 }
9628 _ACEOF
9629 if ac_fn_cxx_try_link "$LINENO"; then :
9630 gcc_cv_collect2_libs="$libs"; break
9631 fi
9632 rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9634 done
9635 LIBS="$save_LIBS"
9636 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9637 fi
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9639 $as_echo "$gcc_cv_collect2_libs" >&6; }
9640 case $gcc_cv_collect2_libs in
9641 "none required") ;;
9642 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9643 esac
9644
9645
9646 # When building Ada code on Alpha, we need exc_resume which is usually in
9647 # -lexc. So test for it.
9648 save_LIBS="$LIBS"
9649 LIBS=
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9651 $as_echo_n "checking for library containing exc_resume... " >&6; }
9652 if ${ac_cv_search_exc_resume+:} false; then :
9653 $as_echo_n "(cached) " >&6
9654 else
9655 ac_func_search_save_LIBS=$LIBS
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9658
9659 /* Override any GCC internal prototype to avoid an error.
9660 Use char because int might match the return type of a GCC
9661 builtin and then its argument prototype would still apply. */
9662 #ifdef __cplusplus
9663 extern "C"
9664 #endif
9665 char exc_resume ();
9666 int
9667 main ()
9668 {
9669 return exc_resume ();
9670 ;
9671 return 0;
9672 }
9673 _ACEOF
9674 for ac_lib in '' exc; do
9675 if test -z "$ac_lib"; then
9676 ac_res="none required"
9677 else
9678 ac_res=-l$ac_lib
9679 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9680 fi
9681 if ac_fn_cxx_try_link "$LINENO"; then :
9682 ac_cv_search_exc_resume=$ac_res
9683 fi
9684 rm -f core conftest.err conftest.$ac_objext \
9685 conftest$ac_exeext
9686 if ${ac_cv_search_exc_resume+:} false; then :
9687 break
9688 fi
9689 done
9690 if ${ac_cv_search_exc_resume+:} false; then :
9691
9692 else
9693 ac_cv_search_exc_resume=no
9694 fi
9695 rm conftest.$ac_ext
9696 LIBS=$ac_func_search_save_LIBS
9697 fi
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9699 $as_echo "$ac_cv_search_exc_resume" >&6; }
9700 ac_res=$ac_cv_search_exc_resume
9701 if test "$ac_res" != no; then :
9702 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9703
9704 fi
9705
9706 GNAT_LIBEXC="$LIBS"
9707 LIBS="$save_LIBS"
9708
9709
9710 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9711 save_LIBS="$LIBS"
9712 LIBS=
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9714 $as_echo_n "checking for library containing kstat_open... " >&6; }
9715 if ${ac_cv_search_kstat_open+:} false; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 ac_func_search_save_LIBS=$LIBS
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9721
9722 /* Override any GCC internal prototype to avoid an error.
9723 Use char because int might match the return type of a GCC
9724 builtin and then its argument prototype would still apply. */
9725 #ifdef __cplusplus
9726 extern "C"
9727 #endif
9728 char kstat_open ();
9729 int
9730 main ()
9731 {
9732 return kstat_open ();
9733 ;
9734 return 0;
9735 }
9736 _ACEOF
9737 for ac_lib in '' kstat; do
9738 if test -z "$ac_lib"; then
9739 ac_res="none required"
9740 else
9741 ac_res=-l$ac_lib
9742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9743 fi
9744 if ac_fn_cxx_try_link "$LINENO"; then :
9745 ac_cv_search_kstat_open=$ac_res
9746 fi
9747 rm -f core conftest.err conftest.$ac_objext \
9748 conftest$ac_exeext
9749 if ${ac_cv_search_kstat_open+:} false; then :
9750 break
9751 fi
9752 done
9753 if ${ac_cv_search_kstat_open+:} false; then :
9754
9755 else
9756 ac_cv_search_kstat_open=no
9757 fi
9758 rm conftest.$ac_ext
9759 LIBS=$ac_func_search_save_LIBS
9760 fi
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9762 $as_echo "$ac_cv_search_kstat_open" >&6; }
9763 ac_res=$ac_cv_search_kstat_open
9764 if test "$ac_res" != no; then :
9765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9766
9767 fi
9768
9769 EXTRA_GCC_LIBS="$LIBS"
9770 LIBS="$save_LIBS"
9771
9772
9773 # Some systems put ldexp and frexp in libm instead of libc; assume
9774 # they're both in the same place. jcf-dump needs them.
9775 save_LIBS="$LIBS"
9776 LIBS=
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9778 $as_echo_n "checking for library containing ldexp... " >&6; }
9779 if ${ac_cv_search_ldexp+:} false; then :
9780 $as_echo_n "(cached) " >&6
9781 else
9782 ac_func_search_save_LIBS=$LIBS
9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9785
9786 /* Override any GCC internal prototype to avoid an error.
9787 Use char because int might match the return type of a GCC
9788 builtin and then its argument prototype would still apply. */
9789 #ifdef __cplusplus
9790 extern "C"
9791 #endif
9792 char ldexp ();
9793 int
9794 main ()
9795 {
9796 return ldexp ();
9797 ;
9798 return 0;
9799 }
9800 _ACEOF
9801 for ac_lib in '' m; do
9802 if test -z "$ac_lib"; then
9803 ac_res="none required"
9804 else
9805 ac_res=-l$ac_lib
9806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9807 fi
9808 if ac_fn_cxx_try_link "$LINENO"; then :
9809 ac_cv_search_ldexp=$ac_res
9810 fi
9811 rm -f core conftest.err conftest.$ac_objext \
9812 conftest$ac_exeext
9813 if ${ac_cv_search_ldexp+:} false; then :
9814 break
9815 fi
9816 done
9817 if ${ac_cv_search_ldexp+:} false; then :
9818
9819 else
9820 ac_cv_search_ldexp=no
9821 fi
9822 rm conftest.$ac_ext
9823 LIBS=$ac_func_search_save_LIBS
9824 fi
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9826 $as_echo "$ac_cv_search_ldexp" >&6; }
9827 ac_res=$ac_cv_search_ldexp
9828 if test "$ac_res" != no; then :
9829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9830
9831 fi
9832
9833 LDEXP_LIB="$LIBS"
9834 LIBS="$save_LIBS"
9835
9836
9837 # Some systems need dlopen
9838 save_LIBS="$LIBS"
9839 LIBS=
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9841 $as_echo_n "checking for library containing dlopen... " >&6; }
9842 if ${ac_cv_search_dlopen+:} false; then :
9843 $as_echo_n "(cached) " >&6
9844 else
9845 ac_func_search_save_LIBS=$LIBS
9846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9847 /* end confdefs.h. */
9848
9849 /* Override any GCC internal prototype to avoid an error.
9850 Use char because int might match the return type of a GCC
9851 builtin and then its argument prototype would still apply. */
9852 #ifdef __cplusplus
9853 extern "C"
9854 #endif
9855 char dlopen ();
9856 int
9857 main ()
9858 {
9859 return dlopen ();
9860 ;
9861 return 0;
9862 }
9863 _ACEOF
9864 for ac_lib in '' dl; do
9865 if test -z "$ac_lib"; then
9866 ac_res="none required"
9867 else
9868 ac_res=-l$ac_lib
9869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9870 fi
9871 if ac_fn_cxx_try_link "$LINENO"; then :
9872 ac_cv_search_dlopen=$ac_res
9873 fi
9874 rm -f core conftest.err conftest.$ac_objext \
9875 conftest$ac_exeext
9876 if ${ac_cv_search_dlopen+:} false; then :
9877 break
9878 fi
9879 done
9880 if ${ac_cv_search_dlopen+:} false; then :
9881
9882 else
9883 ac_cv_search_dlopen=no
9884 fi
9885 rm conftest.$ac_ext
9886 LIBS=$ac_func_search_save_LIBS
9887 fi
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9889 $as_echo "$ac_cv_search_dlopen" >&6; }
9890 ac_res=$ac_cv_search_dlopen
9891 if test "$ac_res" != no; then :
9892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9893
9894 fi
9895
9896 DL_LIB="$LIBS"
9897 LIBS="$save_LIBS"
9898
9899
9900 # Use <inttypes.h> only if it exists,
9901 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9902 # PRId64
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9904 $as_echo_n "checking for inttypes.h... " >&6; }
9905 if ${gcc_cv_header_inttypes_h+:} false; then :
9906 $as_echo_n "(cached) " >&6
9907 else
9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9910 #define __STDC_FORMAT_MACROS
9911 #include <sys/types.h>
9912 #include <inttypes.h>
9913 int
9914 main ()
9915 {
9916 intmax_t i = -1;
9917 #ifndef PRId64
9918 choke me
9919 #endif
9920 ;
9921 return 0;
9922 }
9923 _ACEOF
9924 if ac_fn_cxx_try_compile "$LINENO"; then :
9925 gcc_cv_header_inttypes_h=yes
9926 else
9927 gcc_cv_header_inttypes_h=no
9928 fi
9929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9930 fi
9931
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9933 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9934 if test $gcc_cv_header_inttypes_h = yes; then
9935
9936 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9937
9938 fi
9939
9940 # Look for the ZSTD package.
9941 ZSTD_INCLUDE=
9942 ZSTD_LIB=
9943
9944
9945 ZSTD_CPPFLAGS=
9946 ZSTD_LDFLAGS=
9947
9948 # Check whether --with-zstd was given.
9949 if test "${with_zstd+set}" = set; then :
9950 withval=$with_zstd;
9951 fi
9952
9953
9954 # Check whether --with-zstd-include was given.
9955 if test "${with_zstd_include+set}" = set; then :
9956 withval=$with_zstd_include;
9957 fi
9958
9959
9960 # Check whether --with-zstd-lib was given.
9961 if test "${with_zstd_lib+set}" = set; then :
9962 withval=$with_zstd_lib;
9963 fi
9964
9965 case "x$with_zstd" in
9966 x) ;;
9967 xno)
9968 ZSTD_INCLUDE=
9969 ZSTD_LIB=
9970 ;;
9971 *) ZSTD_INCLUDE=$with_zstd/include
9972 ZSTD_LIB=$with_zstd/lib
9973 ;;
9974 esac
9975
9976 if test "x$with_zstd" != xno; then
9977 if test "x$with_zstd_include" != x; then
9978 ZSTD_INCLUDE=$with_zstd_include
9979 fi
9980 if test "x$with_zstd_lib" != x; then
9981 ZSTD_LIB=$with_zstd_lib
9982 fi
9983 if test "x$ZSTD_INCLUDE" != x \
9984 && test "x$ZSTD_INCLUDE" != xno; then
9985 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
9986 fi
9987 if test "x$ZSTD_LIB" != x \
9988 && test "x$ZSTD_LIB" != xno; then
9989 ZSTD_LDFLAGS=-L$ZSTD_LIB
9990 fi
9991
9992 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
9993 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
9994
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
9996 $as_echo_n "checking for zstd.h... " >&6; }
9997 if ${gcc_cv_header_zstd_h+:} false; then :
9998 $as_echo_n "(cached) " >&6
9999 else
10000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10001 /* end confdefs.h. */
10002 #include <zstd.h>
10003 int
10004 main ()
10005 {
10006
10007 ;
10008 return 0;
10009 }
10010 _ACEOF
10011 if ac_fn_cxx_try_compile "$LINENO"; then :
10012 gcc_cv_header_zstd_h=yes
10013 else
10014 gcc_cv_header_zstd_h=no
10015 fi
10016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10017 fi
10018
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10020 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10021 if test $gcc_cv_header_zstd_h = yes; then
10022
10023 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10024
10025 elif test "x$with_zstd" != x; then
10026 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10027 fi
10028
10029 # LTO can use zstd compression algorithm
10030 save_LIBS="$LIBS"
10031 LIBS=
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10033 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10034 if ${ac_cv_search_ZSTD_compress+:} false; then :
10035 $as_echo_n "(cached) " >&6
10036 else
10037 ac_func_search_save_LIBS=$LIBS
10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h. */
10040
10041 /* Override any GCC internal prototype to avoid an error.
10042 Use char because int might match the return type of a GCC
10043 builtin and then its argument prototype would still apply. */
10044 #ifdef __cplusplus
10045 extern "C"
10046 #endif
10047 char ZSTD_compress ();
10048 int
10049 main ()
10050 {
10051 return ZSTD_compress ();
10052 ;
10053 return 0;
10054 }
10055 _ACEOF
10056 for ac_lib in '' zstd; do
10057 if test -z "$ac_lib"; then
10058 ac_res="none required"
10059 else
10060 ac_res=-l$ac_lib
10061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10062 fi
10063 if ac_fn_cxx_try_link "$LINENO"; then :
10064 ac_cv_search_ZSTD_compress=$ac_res
10065 fi
10066 rm -f core conftest.err conftest.$ac_objext \
10067 conftest$ac_exeext
10068 if ${ac_cv_search_ZSTD_compress+:} false; then :
10069 break
10070 fi
10071 done
10072 if ${ac_cv_search_ZSTD_compress+:} false; then :
10073
10074 else
10075 ac_cv_search_ZSTD_compress=no
10076 fi
10077 rm conftest.$ac_ext
10078 LIBS=$ac_func_search_save_LIBS
10079 fi
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10081 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10082 ac_res=$ac_cv_search_ZSTD_compress
10083 if test "$ac_res" != no; then :
10084 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10085
10086 fi
10087
10088 ZSTD_LIB="$LIBS"
10089 LIBS="$save_LIBS"
10090
10091 fi
10092
10093
10094
10095 for ac_func in times clock kill getrlimit setrlimit atoq \
10096 popen sysconf strsignal getrusage nl_langinfo \
10097 gettimeofday mbstowcs wcswidth mmap setlocale \
10098 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
10099 do :
10100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10101 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10102 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10103 cat >>confdefs.h <<_ACEOF
10104 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10105 _ACEOF
10106
10107 fi
10108 done
10109
10110
10111 if test x$ac_cv_func_mbstowcs = xyes; then
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10113 $as_echo_n "checking whether mbstowcs works... " >&6; }
10114 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10115 $as_echo_n "(cached) " >&6
10116 else
10117 if test "$cross_compiling" = yes; then :
10118 gcc_cv_func_mbstowcs_works=yes
10119 else
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10122 #include <stdlib.h>
10123 int main()
10124 {
10125 mbstowcs(0, "", 0);
10126 return 0;
10127 }
10128 _ACEOF
10129 if ac_fn_cxx_try_run "$LINENO"; then :
10130 gcc_cv_func_mbstowcs_works=yes
10131 else
10132 gcc_cv_func_mbstowcs_works=no
10133 fi
10134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10135 conftest.$ac_objext conftest.beam conftest.$ac_ext
10136 fi
10137
10138 fi
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10140 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10141 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10142
10143 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10144
10145 fi
10146 fi
10147
10148 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10149 if test "x$ac_cv_type_ssize_t" = xyes; then :
10150
10151 else
10152
10153 cat >>confdefs.h <<_ACEOF
10154 #define ssize_t int
10155 _ACEOF
10156
10157 fi
10158
10159 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10160 if test "x$ac_cv_type_caddr_t" = xyes; then :
10161
10162 else
10163
10164 cat >>confdefs.h <<_ACEOF
10165 #define caddr_t char *
10166 _ACEOF
10167
10168 fi
10169
10170
10171
10172 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10173 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10174 gcc_header_sys_mman_h=yes
10175 else
10176 gcc_header_sys_mman_h=no
10177 fi
10178
10179 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10180 if test "x$ac_cv_func_mmap" = xyes; then :
10181 gcc_func_mmap=yes
10182 else
10183 gcc_func_mmap=no
10184 fi
10185
10186 if test "$gcc_header_sys_mman_h" != yes \
10187 || test "$gcc_func_mmap" != yes; then
10188 gcc_cv_func_mmap_file=no
10189 gcc_cv_func_mmap_dev_zero=no
10190 gcc_cv_func_mmap_anon=no
10191 else
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10193 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10194 if ${gcc_cv_func_mmap_file+:} false; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 # Add a system to this blacklist if
10198 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10199 # memory area containing the same data that you'd get if you applied
10200 # read() to the same fd. The only system known to have a problem here
10201 # is VMS, where text files have record structure.
10202 case "$host_os" in
10203 *vms* | ultrix*)
10204 gcc_cv_func_mmap_file=no ;;
10205 *)
10206 gcc_cv_func_mmap_file=yes;;
10207 esac
10208 fi
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10210 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10212 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10213 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10214 $as_echo_n "(cached) " >&6
10215 else
10216 # Add a system to this blacklist if it has mmap() but /dev/zero
10217 # does not exist, or if mmapping /dev/zero does not give anonymous
10218 # zeroed pages with both the following properties:
10219 # 1. If you map N consecutive pages in with one call, and then
10220 # unmap any subset of those pages, the pages that were not
10221 # explicitly unmapped remain accessible.
10222 # 2. If you map two adjacent blocks of memory and then unmap them
10223 # both at once, they must both go away.
10224 # Systems known to be in this category are Windows (all variants),
10225 # VMS, and Darwin.
10226 case "$host_os" in
10227 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10228 gcc_cv_func_mmap_dev_zero=no ;;
10229 *)
10230 gcc_cv_func_mmap_dev_zero=yes;;
10231 esac
10232 fi
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10234 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10235
10236 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10238 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10239 if ${gcc_cv_decl_map_anon+:} false; then :
10240 $as_echo_n "(cached) " >&6
10241 else
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10244 #include <sys/types.h>
10245 #include <sys/mman.h>
10246 #include <unistd.h>
10247
10248 #ifndef MAP_ANONYMOUS
10249 #define MAP_ANONYMOUS MAP_ANON
10250 #endif
10251
10252 int
10253 main ()
10254 {
10255 int n = MAP_ANONYMOUS;
10256 ;
10257 return 0;
10258 }
10259 _ACEOF
10260 if ac_fn_cxx_try_compile "$LINENO"; then :
10261 gcc_cv_decl_map_anon=yes
10262 else
10263 gcc_cv_decl_map_anon=no
10264 fi
10265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10266 fi
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10268 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10269
10270 if test $gcc_cv_decl_map_anon = no; then
10271 gcc_cv_func_mmap_anon=no
10272 else
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10274 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10275 if ${gcc_cv_func_mmap_anon+:} false; then :
10276 $as_echo_n "(cached) " >&6
10277 else
10278 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10279 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10280 # doesn't give anonymous zeroed pages with the same properties listed
10281 # above for use of /dev/zero.
10282 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10283 case "$host_os" in
10284 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10285 gcc_cv_func_mmap_anon=no ;;
10286 *)
10287 gcc_cv_func_mmap_anon=yes;;
10288 esac
10289 fi
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10291 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10292 fi
10293 fi
10294
10295 if test $gcc_cv_func_mmap_file = yes; then
10296
10297 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10298
10299 fi
10300 if test $gcc_cv_func_mmap_dev_zero = yes; then
10301
10302 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10303
10304 fi
10305 if test $gcc_cv_func_mmap_anon = yes; then
10306
10307 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10308
10309 fi
10310
10311
10312 case "${host}" in
10313 *-*-*vms*)
10314 # Under VMS, vfork works very differently than on Unix. The standard test
10315 # won't work, and it isn't easily adaptable. It makes more sense to
10316 # just force it.
10317 ac_cv_func_vfork_works=yes
10318 ;;
10319 esac
10320 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10321 if test "x$ac_cv_type_pid_t" = xyes; then :
10322
10323 else
10324
10325 cat >>confdefs.h <<_ACEOF
10326 #define pid_t int
10327 _ACEOF
10328
10329 fi
10330
10331 for ac_header in vfork.h
10332 do :
10333 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10334 if test "x$ac_cv_header_vfork_h" = xyes; then :
10335 cat >>confdefs.h <<_ACEOF
10336 #define HAVE_VFORK_H 1
10337 _ACEOF
10338
10339 fi
10340 done
10341
10342 for ac_func in fork vfork
10343 do :
10344 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10345 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10346 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10347 cat >>confdefs.h <<_ACEOF
10348 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10349 _ACEOF
10350
10351 fi
10352 done
10353
10354 if test "x$ac_cv_func_fork" = xyes; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10356 $as_echo_n "checking for working fork... " >&6; }
10357 if ${ac_cv_func_fork_works+:} false; then :
10358 $as_echo_n "(cached) " >&6
10359 else
10360 if test "$cross_compiling" = yes; then :
10361 ac_cv_func_fork_works=cross
10362 else
10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10365 $ac_includes_default
10366 int
10367 main ()
10368 {
10369
10370 /* By Ruediger Kuhlmann. */
10371 return fork () < 0;
10372
10373 ;
10374 return 0;
10375 }
10376 _ACEOF
10377 if ac_fn_cxx_try_run "$LINENO"; then :
10378 ac_cv_func_fork_works=yes
10379 else
10380 ac_cv_func_fork_works=no
10381 fi
10382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10383 conftest.$ac_objext conftest.beam conftest.$ac_ext
10384 fi
10385
10386 fi
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10388 $as_echo "$ac_cv_func_fork_works" >&6; }
10389
10390 else
10391 ac_cv_func_fork_works=$ac_cv_func_fork
10392 fi
10393 if test "x$ac_cv_func_fork_works" = xcross; then
10394 case $host in
10395 *-*-amigaos* | *-*-msdosdjgpp*)
10396 # Override, as these systems have only a dummy fork() stub
10397 ac_cv_func_fork_works=no
10398 ;;
10399 *)
10400 ac_cv_func_fork_works=yes
10401 ;;
10402 esac
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10404 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10405 fi
10406 ac_cv_func_vfork_works=$ac_cv_func_vfork
10407 if test "x$ac_cv_func_vfork" = xyes; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10409 $as_echo_n "checking for working vfork... " >&6; }
10410 if ${ac_cv_func_vfork_works+:} false; then :
10411 $as_echo_n "(cached) " >&6
10412 else
10413 if test "$cross_compiling" = yes; then :
10414 ac_cv_func_vfork_works=cross
10415 else
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418 /* Thanks to Paul Eggert for this test. */
10419 $ac_includes_default
10420 #include <sys/wait.h>
10421 #ifdef HAVE_VFORK_H
10422 # include <vfork.h>
10423 #endif
10424 /* On some sparc systems, changes by the child to local and incoming
10425 argument registers are propagated back to the parent. The compiler
10426 is told about this with #include <vfork.h>, but some compilers
10427 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10428 static variable whose address is put into a register that is
10429 clobbered by the vfork. */
10430 static void
10431 #ifdef __cplusplus
10432 sparc_address_test (int arg)
10433 # else
10434 sparc_address_test (arg) int arg;
10435 #endif
10436 {
10437 static pid_t child;
10438 if (!child) {
10439 child = vfork ();
10440 if (child < 0) {
10441 perror ("vfork");
10442 _exit(2);
10443 }
10444 if (!child) {
10445 arg = getpid();
10446 write(-1, "", 0);
10447 _exit (arg);
10448 }
10449 }
10450 }
10451
10452 int
10453 main ()
10454 {
10455 pid_t parent = getpid ();
10456 pid_t child;
10457
10458 sparc_address_test (0);
10459
10460 child = vfork ();
10461
10462 if (child == 0) {
10463 /* Here is another test for sparc vfork register problems. This
10464 test uses lots of local variables, at least as many local
10465 variables as main has allocated so far including compiler
10466 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10467 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10468 reuse the register of parent for one of the local variables,
10469 since it will think that parent can't possibly be used any more
10470 in this routine. Assigning to the local variable will thus
10471 munge parent in the parent process. */
10472 pid_t
10473 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10474 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10475 /* Convince the compiler that p..p7 are live; otherwise, it might
10476 use the same hardware register for all 8 local variables. */
10477 if (p != p1 || p != p2 || p != p3 || p != p4
10478 || p != p5 || p != p6 || p != p7)
10479 _exit(1);
10480
10481 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10482 from child file descriptors. If the child closes a descriptor
10483 before it execs or exits, this munges the parent's descriptor
10484 as well. Test for this by closing stdout in the child. */
10485 _exit(close(fileno(stdout)) != 0);
10486 } else {
10487 int status;
10488 struct stat st;
10489
10490 while (wait(&status) != child)
10491 ;
10492 return (
10493 /* Was there some problem with vforking? */
10494 child < 0
10495
10496 /* Did the child fail? (This shouldn't happen.) */
10497 || status
10498
10499 /* Did the vfork/compiler bug occur? */
10500 || parent != getpid()
10501
10502 /* Did the file descriptor bug occur? */
10503 || fstat(fileno(stdout), &st) != 0
10504 );
10505 }
10506 }
10507 _ACEOF
10508 if ac_fn_cxx_try_run "$LINENO"; then :
10509 ac_cv_func_vfork_works=yes
10510 else
10511 ac_cv_func_vfork_works=no
10512 fi
10513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10514 conftest.$ac_objext conftest.beam conftest.$ac_ext
10515 fi
10516
10517 fi
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10519 $as_echo "$ac_cv_func_vfork_works" >&6; }
10520
10521 fi;
10522 if test "x$ac_cv_func_fork_works" = xcross; then
10523 ac_cv_func_vfork_works=$ac_cv_func_vfork
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10525 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10526 fi
10527
10528 if test "x$ac_cv_func_vfork_works" = xyes; then
10529
10530 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10531
10532 else
10533
10534 $as_echo "#define vfork fork" >>confdefs.h
10535
10536 fi
10537 if test "x$ac_cv_func_fork_works" = xyes; then
10538
10539 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10540
10541 fi
10542
10543
10544
10545 if test "X$prefix" = "XNONE"; then
10546 acl_final_prefix="$ac_default_prefix"
10547 else
10548 acl_final_prefix="$prefix"
10549 fi
10550 if test "X$exec_prefix" = "XNONE"; then
10551 acl_final_exec_prefix='${prefix}'
10552 else
10553 acl_final_exec_prefix="$exec_prefix"
10554 fi
10555 acl_save_prefix="$prefix"
10556 prefix="$acl_final_prefix"
10557 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10558 prefix="$acl_save_prefix"
10559
10560
10561 # Check whether --with-gnu-ld was given.
10562 if test "${with_gnu_ld+set}" = set; then :
10563 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10564 else
10565 with_gnu_ld=no
10566 fi
10567
10568 # Prepare PATH_SEPARATOR.
10569 # The user is always right.
10570 if test "${PATH_SEPARATOR+set}" != set; then
10571 echo "#! /bin/sh" >conf$$.sh
10572 echo "exit 0" >>conf$$.sh
10573 chmod +x conf$$.sh
10574 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10575 PATH_SEPARATOR=';'
10576 else
10577 PATH_SEPARATOR=:
10578 fi
10579 rm -f conf$$.sh
10580 fi
10581 ac_prog=ld
10582 if test "$GCC" = yes; then
10583 # Check if gcc -print-prog-name=ld gives a path.
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10585 $as_echo_n "checking for ld used by GCC... " >&6; }
10586 case $host in
10587 *-*-mingw*)
10588 # gcc leaves a trailing carriage return which upsets mingw
10589 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10590 *)
10591 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10592 esac
10593 case $ac_prog in
10594 # Accept absolute paths.
10595 [\\/]* | [A-Za-z]:[\\/]*)
10596 re_direlt='/[^/][^/]*/\.\./'
10597 # Canonicalize the path of ld
10598 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10599 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10600 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10601 done
10602 test -z "$LD" && LD="$ac_prog"
10603 ;;
10604 "")
10605 # If it fails, then pretend we aren't using GCC.
10606 ac_prog=ld
10607 ;;
10608 *)
10609 # If it is relative, then search for the first ld in PATH.
10610 with_gnu_ld=unknown
10611 ;;
10612 esac
10613 elif test "$with_gnu_ld" = yes; then
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10615 $as_echo_n "checking for GNU ld... " >&6; }
10616 else
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10618 $as_echo_n "checking for non-GNU ld... " >&6; }
10619 fi
10620 if ${acl_cv_path_LD+:} false; then :
10621 $as_echo_n "(cached) " >&6
10622 else
10623 if test -z "$LD"; then
10624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10625 for ac_dir in $PATH; do
10626 test -z "$ac_dir" && ac_dir=.
10627 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10628 acl_cv_path_LD="$ac_dir/$ac_prog"
10629 # Check to see if the program is GNU ld. I'd rather use --version,
10630 # but apparently some GNU ld's only accept -v.
10631 # Break only if it was the GNU/non-GNU ld that we prefer.
10632 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10633 test "$with_gnu_ld" != no && break
10634 else
10635 test "$with_gnu_ld" != yes && break
10636 fi
10637 fi
10638 done
10639 IFS="$ac_save_ifs"
10640 else
10641 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10642 fi
10643 fi
10644
10645 LD="$acl_cv_path_LD"
10646 if test -n "$LD"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10648 $as_echo "$LD" >&6; }
10649 else
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; }
10652 fi
10653 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10655 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10656 if ${acl_cv_prog_gnu_ld+:} false; then :
10657 $as_echo_n "(cached) " >&6
10658 else
10659 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10660 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10661 acl_cv_prog_gnu_ld=yes
10662 else
10663 acl_cv_prog_gnu_ld=no
10664 fi
10665 fi
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10667 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10668 with_gnu_ld=$acl_cv_prog_gnu_ld
10669
10670
10671
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10673 $as_echo_n "checking for shared library run path origin... " >&6; }
10674 if ${acl_cv_rpath+:} false; then :
10675 $as_echo_n "(cached) " >&6
10676 else
10677
10678 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10679 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10680 . ./conftest.sh
10681 rm -f ./conftest.sh
10682 acl_cv_rpath=done
10683
10684 fi
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10686 $as_echo "$acl_cv_rpath" >&6; }
10687 wl="$acl_cv_wl"
10688 libext="$acl_cv_libext"
10689 shlibext="$acl_cv_shlibext"
10690 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10691 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10692 hardcode_direct="$acl_cv_hardcode_direct"
10693 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10694 # Check whether --enable-rpath was given.
10695 if test "${enable_rpath+set}" = set; then :
10696 enableval=$enable_rpath; :
10697 else
10698 enable_rpath=yes
10699 fi
10700
10701
10702
10703
10704
10705
10706
10707
10708 use_additional=yes
10709
10710 acl_save_prefix="$prefix"
10711 prefix="$acl_final_prefix"
10712 acl_save_exec_prefix="$exec_prefix"
10713 exec_prefix="$acl_final_exec_prefix"
10714
10715 eval additional_includedir=\"$includedir\"
10716 eval additional_libdir=\"$libdir\"
10717
10718 exec_prefix="$acl_save_exec_prefix"
10719 prefix="$acl_save_prefix"
10720
10721
10722 # Check whether --with-libiconv-prefix was given.
10723 if test "${with_libiconv_prefix+set}" = set; then :
10724 withval=$with_libiconv_prefix;
10725 if test "X$withval" = "Xno"; then
10726 use_additional=no
10727 else
10728 if test "X$withval" = "X"; then
10729
10730 acl_save_prefix="$prefix"
10731 prefix="$acl_final_prefix"
10732 acl_save_exec_prefix="$exec_prefix"
10733 exec_prefix="$acl_final_exec_prefix"
10734
10735 eval additional_includedir=\"$includedir\"
10736 eval additional_libdir=\"$libdir\"
10737
10738 exec_prefix="$acl_save_exec_prefix"
10739 prefix="$acl_save_prefix"
10740
10741 else
10742 additional_includedir="$withval/include"
10743 additional_libdir="$withval/lib"
10744 fi
10745 fi
10746
10747 fi
10748
10749
10750 # Check whether --with-libiconv-type was given.
10751 if test "${with_libiconv_type+set}" = set; then :
10752 withval=$with_libiconv_type; with_libiconv_type=$withval
10753 else
10754 with_libiconv_type=auto
10755 fi
10756
10757 lib_type=`eval echo \$with_libiconv_type`
10758
10759 LIBICONV=
10760 LTLIBICONV=
10761 INCICONV=
10762 rpathdirs=
10763 ltrpathdirs=
10764 names_already_handled=
10765 names_next_round='iconv '
10766 while test -n "$names_next_round"; do
10767 names_this_round="$names_next_round"
10768 names_next_round=
10769 for name in $names_this_round; do
10770 already_handled=
10771 for n in $names_already_handled; do
10772 if test "$n" = "$name"; then
10773 already_handled=yes
10774 break
10775 fi
10776 done
10777 if test -z "$already_handled"; then
10778 names_already_handled="$names_already_handled $name"
10779 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10780 eval value=\"\$HAVE_LIB$uppername\"
10781 if test -n "$value"; then
10782 if test "$value" = yes; then
10783 eval value=\"\$LIB$uppername\"
10784 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10785 eval value=\"\$LTLIB$uppername\"
10786 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10787 else
10788 :
10789 fi
10790 else
10791 found_dir=
10792 found_la=
10793 found_so=
10794 found_a=
10795 if test $use_additional = yes; then
10796 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10797 found_dir="$additional_libdir"
10798 found_so="$additional_libdir/lib$name.$shlibext"
10799 if test -f "$additional_libdir/lib$name.la"; then
10800 found_la="$additional_libdir/lib$name.la"
10801 fi
10802 elif test x$lib_type != xshared; then
10803 if test -f "$additional_libdir/lib$name.$libext"; then
10804 found_dir="$additional_libdir"
10805 found_a="$additional_libdir/lib$name.$libext"
10806 if test -f "$additional_libdir/lib$name.la"; then
10807 found_la="$additional_libdir/lib$name.la"
10808 fi
10809 fi
10810 fi
10811 fi
10812 if test "X$found_dir" = "X"; then
10813 for x in $LDFLAGS $LTLIBICONV; do
10814
10815 acl_save_prefix="$prefix"
10816 prefix="$acl_final_prefix"
10817 acl_save_exec_prefix="$exec_prefix"
10818 exec_prefix="$acl_final_exec_prefix"
10819 eval x=\"$x\"
10820 exec_prefix="$acl_save_exec_prefix"
10821 prefix="$acl_save_prefix"
10822
10823 case "$x" in
10824 -L*)
10825 dir=`echo "X$x" | sed -e 's/^X-L//'`
10826 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10827 found_dir="$dir"
10828 found_so="$dir/lib$name.$shlibext"
10829 if test -f "$dir/lib$name.la"; then
10830 found_la="$dir/lib$name.la"
10831 fi
10832 elif test x$lib_type != xshared; then
10833 if test -f "$dir/lib$name.$libext"; then
10834 found_dir="$dir"
10835 found_a="$dir/lib$name.$libext"
10836 if test -f "$dir/lib$name.la"; then
10837 found_la="$dir/lib$name.la"
10838 fi
10839 fi
10840 fi
10841 ;;
10842 esac
10843 if test "X$found_dir" != "X"; then
10844 break
10845 fi
10846 done
10847 fi
10848 if test "X$found_dir" != "X"; then
10849 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10850 if test "X$found_so" != "X"; then
10851 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10852 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10853 else
10854 haveit=
10855 for x in $ltrpathdirs; do
10856 if test "X$x" = "X$found_dir"; then
10857 haveit=yes
10858 break
10859 fi
10860 done
10861 if test -z "$haveit"; then
10862 ltrpathdirs="$ltrpathdirs $found_dir"
10863 fi
10864 if test "$hardcode_direct" = yes; then
10865 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10866 else
10867 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10868 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10869 haveit=
10870 for x in $rpathdirs; do
10871 if test "X$x" = "X$found_dir"; then
10872 haveit=yes
10873 break
10874 fi
10875 done
10876 if test -z "$haveit"; then
10877 rpathdirs="$rpathdirs $found_dir"
10878 fi
10879 else
10880 haveit=
10881 for x in $LDFLAGS $LIBICONV; do
10882
10883 acl_save_prefix="$prefix"
10884 prefix="$acl_final_prefix"
10885 acl_save_exec_prefix="$exec_prefix"
10886 exec_prefix="$acl_final_exec_prefix"
10887 eval x=\"$x\"
10888 exec_prefix="$acl_save_exec_prefix"
10889 prefix="$acl_save_prefix"
10890
10891 if test "X$x" = "X-L$found_dir"; then
10892 haveit=yes
10893 break
10894 fi
10895 done
10896 if test -z "$haveit"; then
10897 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10898 fi
10899 if test "$hardcode_minus_L" != no; then
10900 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10901 else
10902 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10903 fi
10904 fi
10905 fi
10906 fi
10907 else
10908 if test "X$found_a" != "X"; then
10909 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10910 else
10911 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10912 fi
10913 fi
10914 additional_includedir=
10915 case "$found_dir" in
10916 */lib | */lib/)
10917 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10918 additional_includedir="$basedir/include"
10919 ;;
10920 esac
10921 if test "X$additional_includedir" != "X"; then
10922 if test "X$additional_includedir" != "X/usr/include"; then
10923 haveit=
10924 if test "X$additional_includedir" = "X/usr/local/include"; then
10925 if test -n "$GCC"; then
10926 case $host_os in
10927 linux*) haveit=yes;;
10928 esac
10929 fi
10930 fi
10931 if test -z "$haveit"; then
10932 for x in $CPPFLAGS $INCICONV; do
10933
10934 acl_save_prefix="$prefix"
10935 prefix="$acl_final_prefix"
10936 acl_save_exec_prefix="$exec_prefix"
10937 exec_prefix="$acl_final_exec_prefix"
10938 eval x=\"$x\"
10939 exec_prefix="$acl_save_exec_prefix"
10940 prefix="$acl_save_prefix"
10941
10942 if test "X$x" = "X-I$additional_includedir"; then
10943 haveit=yes
10944 break
10945 fi
10946 done
10947 if test -z "$haveit"; then
10948 if test -d "$additional_includedir"; then
10949 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10950 fi
10951 fi
10952 fi
10953 fi
10954 fi
10955 if test -n "$found_la"; then
10956 save_libdir="$libdir"
10957 case "$found_la" in
10958 */* | *\\*) . "$found_la" ;;
10959 *) . "./$found_la" ;;
10960 esac
10961 libdir="$save_libdir"
10962 for dep in $dependency_libs; do
10963 case "$dep" in
10964 -L*)
10965 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10966 if test "X$additional_libdir" != "X/usr/lib"; then
10967 haveit=
10968 if test "X$additional_libdir" = "X/usr/local/lib"; then
10969 if test -n "$GCC"; then
10970 case $host_os in
10971 linux*) haveit=yes;;
10972 esac
10973 fi
10974 fi
10975 if test -z "$haveit"; then
10976 haveit=
10977 for x in $LDFLAGS $LIBICONV; do
10978
10979 acl_save_prefix="$prefix"
10980 prefix="$acl_final_prefix"
10981 acl_save_exec_prefix="$exec_prefix"
10982 exec_prefix="$acl_final_exec_prefix"
10983 eval x=\"$x\"
10984 exec_prefix="$acl_save_exec_prefix"
10985 prefix="$acl_save_prefix"
10986
10987 if test "X$x" = "X-L$additional_libdir"; then
10988 haveit=yes
10989 break
10990 fi
10991 done
10992 if test -z "$haveit"; then
10993 if test -d "$additional_libdir"; then
10994 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10995 fi
10996 fi
10997 haveit=
10998 for x in $LDFLAGS $LTLIBICONV; do
10999
11000 acl_save_prefix="$prefix"
11001 prefix="$acl_final_prefix"
11002 acl_save_exec_prefix="$exec_prefix"
11003 exec_prefix="$acl_final_exec_prefix"
11004 eval x=\"$x\"
11005 exec_prefix="$acl_save_exec_prefix"
11006 prefix="$acl_save_prefix"
11007
11008 if test "X$x" = "X-L$additional_libdir"; then
11009 haveit=yes
11010 break
11011 fi
11012 done
11013 if test -z "$haveit"; then
11014 if test -d "$additional_libdir"; then
11015 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11016 fi
11017 fi
11018 fi
11019 fi
11020 ;;
11021 -R*)
11022 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11023 if test "$enable_rpath" != no; then
11024 haveit=
11025 for x in $rpathdirs; do
11026 if test "X$x" = "X$dir"; then
11027 haveit=yes
11028 break
11029 fi
11030 done
11031 if test -z "$haveit"; then
11032 rpathdirs="$rpathdirs $dir"
11033 fi
11034 haveit=
11035 for x in $ltrpathdirs; do
11036 if test "X$x" = "X$dir"; then
11037 haveit=yes
11038 break
11039 fi
11040 done
11041 if test -z "$haveit"; then
11042 ltrpathdirs="$ltrpathdirs $dir"
11043 fi
11044 fi
11045 ;;
11046 -l*)
11047 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11048 ;;
11049 *.la)
11050 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11051 ;;
11052 *)
11053 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11054 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11055 ;;
11056 esac
11057 done
11058 fi
11059 else
11060 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11061 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11062 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11063 else
11064 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11065 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11066 fi
11067 fi
11068 fi
11069 fi
11070 done
11071 done
11072 if test "X$rpathdirs" != "X"; then
11073 if test -n "$hardcode_libdir_separator"; then
11074 alldirs=
11075 for found_dir in $rpathdirs; do
11076 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11077 done
11078 acl_save_libdir="$libdir"
11079 libdir="$alldirs"
11080 eval flag=\"$hardcode_libdir_flag_spec\"
11081 libdir="$acl_save_libdir"
11082 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11083 else
11084 for found_dir in $rpathdirs; do
11085 acl_save_libdir="$libdir"
11086 libdir="$found_dir"
11087 eval flag=\"$hardcode_libdir_flag_spec\"
11088 libdir="$acl_save_libdir"
11089 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11090 done
11091 fi
11092 fi
11093 if test "X$ltrpathdirs" != "X"; then
11094 for found_dir in $ltrpathdirs; do
11095 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11096 done
11097 fi
11098
11099
11100
11101
11102
11103
11104
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11106 $as_echo_n "checking for iconv... " >&6; }
11107 if ${am_cv_func_iconv+:} false; then :
11108 $as_echo_n "(cached) " >&6
11109 else
11110
11111 am_cv_func_iconv="no, consider installing GNU libiconv"
11112 am_cv_lib_iconv=no
11113 am_save_CPPFLAGS="$CPPFLAGS"
11114 CPPFLAGS="$CPPFLAGS $INCICONV"
11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11117 #include <stdlib.h>
11118 #include <iconv.h>
11119 int
11120 main ()
11121 {
11122 iconv_t cd = iconv_open("","");
11123 iconv(cd,NULL,NULL,NULL,NULL);
11124 iconv_close(cd);
11125 ;
11126 return 0;
11127 }
11128 _ACEOF
11129 if ac_fn_cxx_try_link "$LINENO"; then :
11130 am_cv_func_iconv=yes
11131 fi
11132 rm -f core conftest.err conftest.$ac_objext \
11133 conftest$ac_exeext conftest.$ac_ext
11134 CPPFLAGS="$am_save_CPPFLAGS"
11135
11136 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11137 for _libs in .libs _libs; do
11138 am_save_CPPFLAGS="$CPPFLAGS"
11139 am_save_LIBS="$LIBS"
11140 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11141 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143 /* end confdefs.h. */
11144 #include <stdlib.h>
11145 #include <iconv.h>
11146 int
11147 main ()
11148 {
11149 iconv_t cd = iconv_open("","");
11150 iconv(cd,NULL,NULL,NULL,NULL);
11151 iconv_close(cd);
11152 ;
11153 return 0;
11154 }
11155 _ACEOF
11156 if ac_fn_cxx_try_link "$LINENO"; then :
11157 INCICONV="-I../libiconv/include"
11158 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11159 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11160 am_cv_lib_iconv=yes
11161 am_cv_func_iconv=yes
11162 fi
11163 rm -f core conftest.err conftest.$ac_objext \
11164 conftest$ac_exeext conftest.$ac_ext
11165 CPPFLAGS="$am_save_CPPFLAGS"
11166 LIBS="$am_save_LIBS"
11167 if test "$am_cv_func_iconv" = "yes"; then
11168 break
11169 fi
11170 done
11171 fi
11172
11173 if test "$am_cv_func_iconv" != yes; then
11174 am_save_CPPFLAGS="$CPPFLAGS"
11175 am_save_LIBS="$LIBS"
11176 CPPFLAGS="$CPPFLAGS $INCICONV"
11177 LIBS="$LIBS $LIBICONV"
11178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h. */
11180 #include <stdlib.h>
11181 #include <iconv.h>
11182 int
11183 main ()
11184 {
11185 iconv_t cd = iconv_open("","");
11186 iconv(cd,NULL,NULL,NULL,NULL);
11187 iconv_close(cd);
11188 ;
11189 return 0;
11190 }
11191 _ACEOF
11192 if ac_fn_cxx_try_link "$LINENO"; then :
11193 am_cv_lib_iconv=yes
11194 am_cv_func_iconv=yes
11195 fi
11196 rm -f core conftest.err conftest.$ac_objext \
11197 conftest$ac_exeext conftest.$ac_ext
11198 CPPFLAGS="$am_save_CPPFLAGS"
11199 LIBS="$am_save_LIBS"
11200 fi
11201
11202 fi
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11204 $as_echo "$am_cv_func_iconv" >&6; }
11205 if test "$am_cv_func_iconv" = yes; then
11206
11207 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11208
11209 fi
11210 if test "$am_cv_lib_iconv" = yes; then
11211
11212 for element in $INCICONV; do
11213 haveit=
11214 for x in $CPPFLAGS; do
11215
11216 acl_save_prefix="$prefix"
11217 prefix="$acl_final_prefix"
11218 acl_save_exec_prefix="$exec_prefix"
11219 exec_prefix="$acl_final_exec_prefix"
11220 eval x=\"$x\"
11221 exec_prefix="$acl_save_exec_prefix"
11222 prefix="$acl_save_prefix"
11223
11224 if test "X$x" = "X$element"; then
11225 haveit=yes
11226 break
11227 fi
11228 done
11229 if test -z "$haveit"; then
11230 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11231 fi
11232 done
11233
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11235 $as_echo_n "checking how to link with libiconv... " >&6; }
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11237 $as_echo "$LIBICONV" >&6; }
11238 else
11239 LIBICONV=
11240 LTLIBICONV=
11241 fi
11242
11243
11244
11245 if test "$am_cv_func_iconv" = yes; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11247 $as_echo_n "checking for iconv declaration... " >&6; }
11248 if ${am_cv_proto_iconv+:} false; then :
11249 $as_echo_n "(cached) " >&6
11250 else
11251
11252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h. */
11254
11255 #include <stdlib.h>
11256 #include <iconv.h>
11257 extern
11258 #ifdef __cplusplus
11259 "C"
11260 #endif
11261 #if defined(__STDC__) || defined(__cplusplus)
11262 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11263 #else
11264 size_t iconv();
11265 #endif
11266
11267 int
11268 main ()
11269 {
11270
11271 ;
11272 return 0;
11273 }
11274 _ACEOF
11275 if ac_fn_cxx_try_compile "$LINENO"; then :
11276 am_cv_proto_iconv_arg1=""
11277 else
11278 am_cv_proto_iconv_arg1="const"
11279 fi
11280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11281 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);"
11282 fi
11283
11284 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11286 }$am_cv_proto_iconv" >&5
11287 $as_echo "${ac_t:-
11288 }$am_cv_proto_iconv" >&6; }
11289
11290 cat >>confdefs.h <<_ACEOF
11291 #define ICONV_CONST $am_cv_proto_iconv_arg1
11292 _ACEOF
11293
11294 fi
11295
11296
11297 # Until we have in-tree GNU iconv:
11298 LIBICONV_DEP=
11299 if test -f "$LTLIBICONV"; then
11300 LIBICONV_DEP=$LTLIBICONV
11301 fi
11302
11303
11304
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11306 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11307 if ${am_cv_val_LC_MESSAGES+:} false; then :
11308 $as_echo_n "(cached) " >&6
11309 else
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11312 #include <locale.h>
11313 int
11314 main ()
11315 {
11316 return LC_MESSAGES
11317 ;
11318 return 0;
11319 }
11320 _ACEOF
11321 if ac_fn_cxx_try_link "$LINENO"; then :
11322 am_cv_val_LC_MESSAGES=yes
11323 else
11324 am_cv_val_LC_MESSAGES=no
11325 fi
11326 rm -f core conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11328 fi
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11330 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11331 if test $am_cv_val_LC_MESSAGES = yes; then
11332
11333 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11334
11335 fi
11336
11337
11338
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11340 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11341 if ${am_cv_langinfo_codeset+:} false; then :
11342 $as_echo_n "(cached) " >&6
11343 else
11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11346 #include <langinfo.h>
11347 int
11348 main ()
11349 {
11350 char* cs = nl_langinfo(CODESET);
11351 ;
11352 return 0;
11353 }
11354 _ACEOF
11355 if ac_fn_cxx_try_link "$LINENO"; then :
11356 am_cv_langinfo_codeset=yes
11357 else
11358 am_cv_langinfo_codeset=no
11359 fi
11360 rm -f core conftest.err conftest.$ac_objext \
11361 conftest$ac_exeext conftest.$ac_ext
11362
11363 fi
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11365 $as_echo "$am_cv_langinfo_codeset" >&6; }
11366 if test $am_cv_langinfo_codeset = yes; then
11367
11368 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11369
11370 fi
11371
11372
11373 # We will need to find libiberty.h and ansidecl.h
11374 saved_CFLAGS="$CFLAGS"
11375 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11376 saved_CXXFLAGS="$CXXFLAGS"
11377 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11378
11379 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11380 # normal autoconf function for these. But force definition of
11381 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11382 # basename handling in libiberty.h.
11383 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11384 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11385 #undef HAVE_DECL_BASENAME
11386 #define HAVE_DECL_BASENAME 1
11387 #include \"ansidecl.h\"
11388 #include \"system.h\"
11389 "
11390 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11391 ac_have_decl=1
11392 else
11393 ac_have_decl=0
11394 fi
11395
11396 cat >>confdefs.h <<_ACEOF
11397 #define HAVE_DECL_BASENAME $ac_have_decl
11398 _ACEOF
11399 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11400 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11401 #undef HAVE_DECL_BASENAME
11402 #define HAVE_DECL_BASENAME 1
11403 #include \"ansidecl.h\"
11404 #include \"system.h\"
11405 "
11406 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11407 ac_have_decl=1
11408 else
11409 ac_have_decl=0
11410 fi
11411
11412 cat >>confdefs.h <<_ACEOF
11413 #define HAVE_DECL_STRSTR $ac_have_decl
11414 _ACEOF
11415
11416
11417 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11418 madvise stpcpy strnlen strsignal strverscmp \
11419 strtol strtoul strtoll strtoull setenv unsetenv \
11420 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11421 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
11422 do
11423 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11425 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11426 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11427 $as_echo_n "(cached) " >&6
11428 else
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11431 #undef $ac_tr_decl
11432 #define $ac_tr_decl 1
11433
11434 #include "ansidecl.h"
11435 #include "system.h"
11436
11437 int
11438 main ()
11439 {
11440 #ifndef $ac_func
11441 char *(*pfn) = (char *(*)) $ac_func ;
11442 #endif
11443 ;
11444 return 0;
11445 }
11446 _ACEOF
11447 if ac_fn_cxx_try_compile "$LINENO"; then :
11448 eval "gcc_cv_have_decl_$ac_func=yes"
11449 else
11450 eval "gcc_cv_have_decl_$ac_func=no"
11451 fi
11452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11453 fi
11454
11455 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11457 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11458 #define $ac_tr_decl 1
11459 _ACEOF
11460
11461 else
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11463 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11464 #define $ac_tr_decl 0
11465 _ACEOF
11466
11467 fi
11468
11469 done
11470
11471
11472 for ac_func in getrlimit setrlimit getrusage
11473 do
11474 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11476 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11477 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11478 $as_echo_n "(cached) " >&6
11479 else
11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h. */
11482 #undef $ac_tr_decl
11483 #define $ac_tr_decl 1
11484
11485 #include "ansidecl.h"
11486 #include "system.h"
11487 #ifdef HAVE_SYS_RESOURCE_H
11488 #include <sys/resource.h>
11489 #endif
11490
11491
11492 int
11493 main ()
11494 {
11495 #ifndef $ac_func
11496 char *(*pfn) = (char *(*)) $ac_func ;
11497 #endif
11498 ;
11499 return 0;
11500 }
11501 _ACEOF
11502 if ac_fn_cxx_try_compile "$LINENO"; then :
11503 eval "gcc_cv_have_decl_$ac_func=yes"
11504 else
11505 eval "gcc_cv_have_decl_$ac_func=no"
11506 fi
11507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11508 fi
11509
11510 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11512 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11513 #define $ac_tr_decl 1
11514 _ACEOF
11515
11516 else
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11519 #define $ac_tr_decl 0
11520 _ACEOF
11521
11522 fi
11523
11524 done
11525
11526
11527 for ac_func in mallinfo
11528 do
11529 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11531 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11532 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11533 $as_echo_n "(cached) " >&6
11534 else
11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h. */
11537 #undef $ac_tr_decl
11538 #define $ac_tr_decl 1
11539
11540 #include "ansidecl.h"
11541 #include "system.h"
11542 #ifdef HAVE_MALLOC_H
11543 #include <malloc.h>
11544 #endif
11545
11546
11547 int
11548 main ()
11549 {
11550 #ifndef $ac_func
11551 char *(*pfn) = (char *(*)) $ac_func ;
11552 #endif
11553 ;
11554 return 0;
11555 }
11556 _ACEOF
11557 if ac_fn_cxx_try_compile "$LINENO"; then :
11558 eval "gcc_cv_have_decl_$ac_func=yes"
11559 else
11560 eval "gcc_cv_have_decl_$ac_func=no"
11561 fi
11562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11563 fi
11564
11565 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11567 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11568 #define $ac_tr_decl 1
11569 _ACEOF
11570
11571 else
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11574 #define $ac_tr_decl 0
11575 _ACEOF
11576
11577 fi
11578
11579 done
11580
11581
11582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h. */
11584
11585 #include "ansidecl.h"
11586 #include "system.h"
11587 #ifdef HAVE_SYS_RESOURCE_H
11588 #include <sys/resource.h>
11589 #endif
11590
11591 int
11592 main ()
11593 {
11594 rlim_t l = 0;
11595 ;
11596 return 0;
11597 }
11598 _ACEOF
11599 if ac_fn_cxx_try_compile "$LINENO"; then :
11600
11601 else
11602
11603 $as_echo "#define rlim_t long" >>confdefs.h
11604
11605 fi
11606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11607
11608 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11609 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11610 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11611 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11612 for ac_func in ldgetname
11613 do
11614 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11616 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11617 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11618 $as_echo_n "(cached) " >&6
11619 else
11620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h. */
11622 #undef $ac_tr_decl
11623 #define $ac_tr_decl 1
11624
11625 #include "ansidecl.h"
11626 #include "system.h"
11627 #ifdef HAVE_LDFCN_H
11628 #undef FREAD
11629 #undef FWRITE
11630 #include <ldfcn.h>
11631 #endif
11632
11633
11634 int
11635 main ()
11636 {
11637 #ifndef $ac_func
11638 char *(*pfn) = (char *(*)) $ac_func ;
11639 #endif
11640 ;
11641 return 0;
11642 }
11643 _ACEOF
11644 if ac_fn_cxx_try_compile "$LINENO"; then :
11645 eval "gcc_cv_have_decl_$ac_func=yes"
11646 else
11647 eval "gcc_cv_have_decl_$ac_func=no"
11648 fi
11649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11650 fi
11651
11652 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11654 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11655 #define $ac_tr_decl 1
11656 _ACEOF
11657
11658 else
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11660 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11661 #define $ac_tr_decl 0
11662 _ACEOF
11663
11664 fi
11665
11666 done
11667
11668
11669 for ac_func in times
11670 do
11671 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11673 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11674 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11675 $as_echo_n "(cached) " >&6
11676 else
11677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h. */
11679 #undef $ac_tr_decl
11680 #define $ac_tr_decl 1
11681
11682 #include "ansidecl.h"
11683 #include "system.h"
11684 #ifdef HAVE_SYS_TIMES_H
11685 #include <sys/times.h>
11686 #endif
11687
11688
11689 int
11690 main ()
11691 {
11692 #ifndef $ac_func
11693 char *(*pfn) = (char *(*)) $ac_func ;
11694 #endif
11695 ;
11696 return 0;
11697 }
11698 _ACEOF
11699 if ac_fn_cxx_try_compile "$LINENO"; then :
11700 eval "gcc_cv_have_decl_$ac_func=yes"
11701 else
11702 eval "gcc_cv_have_decl_$ac_func=no"
11703 fi
11704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11705 fi
11706
11707 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11709 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11710 #define $ac_tr_decl 1
11711 _ACEOF
11712
11713 else
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11716 #define $ac_tr_decl 0
11717 _ACEOF
11718
11719 fi
11720
11721 done
11722
11723
11724 for ac_func in sigaltstack
11725 do
11726 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11728 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11729 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11730 $as_echo_n "(cached) " >&6
11731 else
11732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h. */
11734 #undef $ac_tr_decl
11735 #define $ac_tr_decl 1
11736
11737 #include "ansidecl.h"
11738 #include "system.h"
11739 #include <signal.h>
11740
11741
11742 int
11743 main ()
11744 {
11745 #ifndef $ac_func
11746 char *(*pfn) = (char *(*)) $ac_func ;
11747 #endif
11748 ;
11749 return 0;
11750 }
11751 _ACEOF
11752 if ac_fn_cxx_try_compile "$LINENO"; then :
11753 eval "gcc_cv_have_decl_$ac_func=yes"
11754 else
11755 eval "gcc_cv_have_decl_$ac_func=no"
11756 fi
11757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11758 fi
11759
11760 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11762 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11763 #define $ac_tr_decl 1
11764 _ACEOF
11765
11766 else
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11769 #define $ac_tr_decl 0
11770 _ACEOF
11771
11772 fi
11773
11774 done
11775
11776
11777 # More time-related stuff.
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11779 $as_echo_n "checking for struct tms... " >&6; }
11780 if ${ac_cv_struct_tms+:} false; then :
11781 $as_echo_n "(cached) " >&6
11782 else
11783
11784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11785 /* end confdefs.h. */
11786
11787 #include "ansidecl.h"
11788 #include "system.h"
11789 #ifdef HAVE_SYS_TIMES_H
11790 #include <sys/times.h>
11791 #endif
11792
11793 int
11794 main ()
11795 {
11796 struct tms tms;
11797 ;
11798 return 0;
11799 }
11800 _ACEOF
11801 if ac_fn_cxx_try_compile "$LINENO"; then :
11802 ac_cv_struct_tms=yes
11803 else
11804 ac_cv_struct_tms=no
11805 fi
11806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11807 fi
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11809 $as_echo "$ac_cv_struct_tms" >&6; }
11810 if test $ac_cv_struct_tms = yes; then
11811
11812 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11813
11814 fi
11815
11816 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11817 # revisit after autoconf 2.50.
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11819 $as_echo_n "checking for clock_t... " >&6; }
11820 if ${gcc_cv_type_clock_t+:} false; then :
11821 $as_echo_n "(cached) " >&6
11822 else
11823
11824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11825 /* end confdefs.h. */
11826
11827 #include "ansidecl.h"
11828 #include "system.h"
11829
11830 int
11831 main ()
11832 {
11833 clock_t x;
11834 ;
11835 return 0;
11836 }
11837 _ACEOF
11838 if ac_fn_cxx_try_compile "$LINENO"; then :
11839 gcc_cv_type_clock_t=yes
11840 else
11841 gcc_cv_type_clock_t=no
11842 fi
11843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11844 fi
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11846 $as_echo "$gcc_cv_type_clock_t" >&6; }
11847 if test $gcc_cv_type_clock_t = yes; then
11848
11849 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11850
11851 fi
11852
11853 # Check if F_SETLKW is supported by fcntl.
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11855 $as_echo_n "checking for F_SETLKW... " >&6; }
11856 if ${ac_cv_f_setlkw+:} false; then :
11857 $as_echo_n "(cached) " >&6
11858 else
11859
11860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h. */
11862
11863 #include <fcntl.h>
11864 int
11865 main ()
11866 {
11867
11868 struct flock fl;
11869 fl.l_whence = 0;
11870 fl.l_start = 0;
11871 fl.l_len = 0;
11872 fl.l_pid = 0;
11873 return fcntl (1, F_SETLKW, &fl);
11874 ;
11875 return 0;
11876 }
11877 _ACEOF
11878 if ac_fn_cxx_try_compile "$LINENO"; then :
11879 ac_cv_f_setlkw=yes
11880 else
11881 ac_cv_f_setlkw=no
11882 fi
11883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11884 fi
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11886 $as_echo "$ac_cv_f_setlkw" >&6; }
11887 if test $ac_cv_f_setlkw = yes; then
11888
11889 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11890
11891 fi
11892
11893 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11894 CFLAGS="$saved_CFLAGS"
11895 CXXFLAGS="$saved_CXXFLAGS"
11896
11897 # mkdir takes a single argument on some systems.
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11899 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11900 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11901 $as_echo_n "(cached) " >&6
11902 else
11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h. */
11905
11906 #include <sys/types.h>
11907 #ifdef HAVE_SYS_STAT_H
11908 # include <sys/stat.h>
11909 #endif
11910 #ifdef HAVE_UNISTD_H
11911 # include <unistd.h>
11912 #endif
11913 #ifdef HAVE_DIRECT_H
11914 # include <direct.h>
11915 #endif
11916 int
11917 main ()
11918 {
11919 mkdir ("foo", 0);
11920 ;
11921 return 0;
11922 }
11923 _ACEOF
11924 if ac_fn_cxx_try_compile "$LINENO"; then :
11925 gcc_cv_mkdir_takes_one_arg=no
11926 else
11927 gcc_cv_mkdir_takes_one_arg=yes
11928 fi
11929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11930 fi
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11932 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11933 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11934
11935 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11936
11937 fi
11938
11939
11940 # File extensions
11941 manext='.1'
11942 objext='.o'
11943
11944
11945
11946 # With Setjmp/Longjmp based exception handling.
11947 # Check whether --enable-sjlj-exceptions was given.
11948 if test "${enable_sjlj_exceptions+set}" = set; then :
11949 enableval=$enable_sjlj_exceptions; case $target in
11950 *-*-hpux10*)
11951 if test $enableval != yes; then
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11953 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11954 enableval=yes
11955 fi
11956 ;;
11957 esac
11958 force_sjlj_exceptions=yes
11959 else
11960 case $target in
11961 *-*-hpux10*)
11962 force_sjlj_exceptions=yes
11963 enableval=yes
11964 ;;
11965 lm32*-*-*)
11966 force_sjlj_exceptions=yes
11967 enableval=yes
11968 ;;
11969 *)
11970 force_sjlj_exceptions=no
11971 ;;
11972 esac
11973 fi
11974
11975 if test $force_sjlj_exceptions = yes; then
11976 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11977
11978 cat >>confdefs.h <<_ACEOF
11979 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11980 _ACEOF
11981
11982 fi
11983
11984 # --------------------------------------------------------
11985 # Build, host, and target specific configuration fragments
11986 # --------------------------------------------------------
11987
11988 # Collect build-machine-specific information.
11989 . ${srcdir}/config.build || exit 1
11990
11991 # Collect host-machine-specific information.
11992 . ${srcdir}/config.host || exit 1
11993
11994 target_gtfiles=
11995
11996 # Collect target-machine-specific information.
11997 . ${srcdir}/config.gcc || exit 1
11998
11999 extra_objs="${host_extra_objs} ${extra_objs}"
12000 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12001
12002 # Default the target-machine variables that were not explicitly set.
12003 if test x"$tm_file" = x
12004 then tm_file=$cpu_type/$cpu_type.h; fi
12005
12006 if test x"$extra_headers" = x
12007 then extra_headers=; fi
12008
12009 if test x$md_file = x
12010 then md_file=$cpu_type/$cpu_type.md; fi
12011
12012 if test x$out_file = x
12013 then out_file=$cpu_type/$cpu_type.c; fi
12014
12015 if test x"$tmake_file" = x
12016 then tmake_file=$cpu_type/t-$cpu_type
12017 fi
12018
12019 # Support --enable-initfini-array.
12020 if test x$enable_initfini_array != xno; then
12021 tm_file="${tm_file} initfini-array.h"
12022 fi
12023
12024 if test x"$dwarf2" = xyes
12025 then tm_file="$tm_file tm-dwarf2.h"
12026 fi
12027
12028 # Say what files are being used for the output code and MD file.
12029 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12030 echo "Using \`$srcdir/config/$md_file' as machine description file."
12031
12032 # If any of the xm_file variables contain nonexistent files, warn
12033 # about them and drop them.
12034
12035 bx=
12036 for x in $build_xm_file; do
12037 if test -f $srcdir/config/$x
12038 then bx="$bx $x"
12039 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12040 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12041 fi
12042 done
12043 build_xm_file="$bx"
12044
12045 hx=
12046 for x in $host_xm_file; do
12047 if test -f $srcdir/config/$x
12048 then hx="$hx $x"
12049 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12050 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12051 fi
12052 done
12053 host_xm_file="$hx"
12054
12055 tx=
12056 for x in $xm_file; do
12057 if test -f $srcdir/config/$x
12058 then tx="$tx $x"
12059 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12060 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12061 fi
12062 done
12063 xm_file="$tx"
12064
12065 count=a
12066 for f in $tm_file; do
12067 count=${count}x
12068 done
12069 if test $count = ax; then
12070 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12071 else
12072 echo "Using the following target machine macro files:"
12073 for f in $tm_file; do
12074 echo " $srcdir/config/$f"
12075 done
12076 fi
12077
12078 if test x$use_long_long_for_widest_fast_int = xyes; then
12079
12080 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12081
12082 fi
12083
12084 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12085
12086 cat >>confdefs.h <<_ACEOF
12087 #define HAVE_GNU_LD $gnu_ld_bool
12088 _ACEOF
12089
12090
12091 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12092
12093 cat >>confdefs.h <<_ACEOF
12094 #define HAVE_GNU_AS $gnu_as_bool
12095 _ACEOF
12096
12097
12098 count=a
12099 for f in $host_xm_file; do
12100 count=${count}x
12101 done
12102 if test $count = a; then
12103 :
12104 elif test $count = ax; then
12105 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12106 else
12107 echo "Using the following host machine macro files:"
12108 for f in $host_xm_file; do
12109 echo " $srcdir/config/$f"
12110 done
12111 fi
12112 echo "Using ${out_host_hook_obj} for host machine hooks."
12113
12114 if test "$host_xm_file" != "$build_xm_file"; then
12115 count=a
12116 for f in $build_xm_file; do
12117 count=${count}x
12118 done
12119 if test $count = a; then
12120 :
12121 elif test $count = ax; then
12122 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12123 else
12124 echo "Using the following build machine macro files:"
12125 for f in $build_xm_file; do
12126 echo " $srcdir/config/$f"
12127 done
12128 fi
12129 fi
12130
12131 if test -n "$configured_native_system_header_dir"; then
12132 native_system_header_dir=$configured_native_system_header_dir
12133 fi
12134 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12135
12136
12137 case ${host} in
12138 powerpc*-*-darwin*)
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12140 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12141 if ${gcc_cv_mcontext_underscores+:} false; then :
12142 $as_echo_n "(cached) " >&6
12143 else
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12146
12147 #include <sys/cdefs.h>
12148 #include <sys/signal.h>
12149 #include <ucontext.h>
12150 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12151
12152 _ACEOF
12153 if ac_fn_cxx_try_compile "$LINENO"; then :
12154 gcc_cv_mcontext_underscores=no
12155 else
12156 gcc_cv_mcontext_underscores=yes
12157 fi
12158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12159 fi
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12161 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12162 if test $gcc_cv_mcontext_underscores = yes; then
12163
12164 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12165
12166 fi
12167 ;;
12168 esac
12169
12170 # ---------
12171 # Threading
12172 # ---------
12173
12174 # Check if a valid thread package
12175 case ${enable_threads} in
12176 "" | no)
12177 # No threads
12178 target_thread_file='single'
12179 ;;
12180 yes)
12181 # default
12182 target_thread_file='single'
12183 ;;
12184 aix | dce | lynx | mipssde | posix | rtems | \
12185 single | tpf | vxworks | win32)
12186 target_thread_file=${enable_threads}
12187 ;;
12188 *)
12189 echo "${enable_threads} is an unknown thread package" 1>&2
12190 exit 1
12191 ;;
12192 esac
12193
12194 if test x${thread_file} = x; then
12195 # No thread file set by target-specific clauses in config.gcc,
12196 # so use file chosen by default logic above
12197 thread_file=${target_thread_file}
12198 fi
12199
12200 # --------
12201 # UNSORTED
12202 # --------
12203
12204 use_cxa_atexit=no
12205 if test x$enable___cxa_atexit = xyes || \
12206 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12207 if test x$host = x$target; then
12208 case $host in
12209 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12210 # keyed to flag_use_cxa_atexit
12211 *-*-mingw32*)
12212 use_cxa_atexit=yes
12213 ;;
12214 powerpc-ibm-aix*)
12215 use_cxa_atexit=yes
12216 ;;
12217 *)
12218 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12219 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12220 use_cxa_atexit=yes
12221 else
12222 echo "__cxa_atexit can't be enabled on this target"
12223 fi
12224
12225 ;;
12226 esac
12227 else
12228 # We can't check for __cxa_atexit when building a cross, so assume
12229 # it is available
12230 use_cxa_atexit=yes
12231 fi
12232 if test x$use_cxa_atexit = xyes; then
12233
12234 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12235
12236 fi
12237 fi
12238
12239 # Look for a file containing extra machine modes.
12240 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12241 extra_modes_file='$(srcdir)'/config/${extra_modes}
12242
12243
12244 cat >>confdefs.h <<_ACEOF
12245 #define EXTRA_MODES_FILE "config/$extra_modes"
12246 _ACEOF
12247
12248 fi
12249
12250 # Convert extra_options into a form suitable for Makefile use.
12251 extra_opt_files=
12252 all_opt_files=
12253 for f in $extra_options; do
12254 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12255 all_opt_files="$all_opt_files $srcdir/config/$f"
12256 done
12257
12258
12259 # auto-host.h is the file containing items generated by autoconf and is
12260 # the first file included by config.h.
12261 # If host=build, it is correct to have bconfig include auto-host.h
12262 # as well. If host!=build, we are in error and need to do more
12263 # work to find out the build config parameters.
12264 if test x$host = x$build
12265 then
12266 build_auto=auto-host.h
12267 HAVE_AUTO_BUILD='# '
12268 else
12269 # We create a subdir, then run autoconf in the subdir.
12270 # To prevent recursion we set host and build for the new
12271 # invocation of configure to the build for this invocation
12272 # of configure.
12273 tempdir=build.$$
12274 rm -rf $tempdir
12275 mkdir $tempdir
12276 cd $tempdir
12277 case ${srcdir} in
12278 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12279 *) realsrcdir=../${srcdir};;
12280 esac
12281 # Clearing GMPINC is necessary to prevent host headers being
12282 # used by the build compiler. Defining GENERATOR_FILE stops
12283 # system.h from including gmp.h.
12284 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12285 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12286 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12287 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
12288 ${realsrcdir}/configure \
12289 --enable-languages=${enable_languages-all} \
12290 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12291 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12292 --target=$target_alias --host=$build_alias \
12293 --build=$build_alias || exit # retaining $tempdir
12294
12295 # We just finished tests for the build machine, so rename
12296 # the file auto-build.h in the gcc directory.
12297 mv auto-host.h ../auto-build.h
12298 cd ..
12299 rm -rf $tempdir
12300 build_auto=auto-build.h
12301 HAVE_AUTO_BUILD=
12302 fi
12303
12304
12305
12306 tm_file="${tm_file} defaults.h"
12307 tm_p_file="${tm_p_file} tm-preds.h"
12308 tm_d_file="${tm_d_file} defaults.h"
12309 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12310 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12311 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12312 # put this back in temporarily.
12313 xm_file="auto-host.h ansidecl.h ${xm_file}"
12314
12315 # --------
12316 # UNSORTED
12317 # --------
12318
12319 # Compile in configure arguments.
12320 if test -f configargs.h ; then
12321 # Being re-configured.
12322 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12323 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12324 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12325 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12326 fi
12327 else
12328 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12329 fi
12330
12331 # Double all backslashes and backslash all quotes to turn
12332 # gcc_config_arguments into a C string.
12333 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12334 $gcc_config_arguments
12335 EOF
12336 gcc_config_arguments_str=`cat conftest.out`
12337 rm -f conftest.out
12338
12339 cat > configargs.h <<EOF
12340 /* Generated automatically. */
12341 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12342 static const char thread_model[] = "$thread_file";
12343
12344 static const struct {
12345 const char *name, *value;
12346 } configure_default_options[] = $configure_default_options;
12347 EOF
12348
12349 gcc_BASEVER=`cat $srcdir/BASE-VER`
12350 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12351 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12352 if test -f $srcdir/REVISION ; then
12353 gcc_REVISION=`cat $srcdir/REVISION`
12354 else
12355 gcc_REVISION=""
12356 fi
12357 cat > plugin-version.h <<EOF
12358 #include "configargs.h"
12359
12360 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12361 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12362 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12363 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12364
12365 static char basever[] = "$gcc_BASEVER";
12366 static char datestamp[] = "$gcc_DATESTAMP";
12367 static char devphase[] = "$gcc_DEVPHASE";
12368 static char revision[] = "$gcc_REVISION";
12369
12370 /* FIXME plugins: We should make the version information more precise.
12371 One way to do is to add a checksum. */
12372
12373 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12374 devphase, revision,
12375 configuration_arguments};
12376 EOF
12377
12378 # Determine what GCC version number to use in filesystem paths.
12379
12380 get_gcc_base_ver="cat"
12381
12382 # Check whether --with-gcc-major-version-only was given.
12383 if test "${with_gcc_major_version_only+set}" = set; then :
12384 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12385 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12386 fi
12387
12388 fi
12389
12390
12391
12392
12393 # Internationalization
12394 # If we haven't got the data from the intl directory,
12395 # assume NLS is disabled.
12396 USE_NLS=no
12397 LIBINTL=
12398 LIBINTL_DEP=
12399 INCINTL=
12400 XGETTEXT=
12401 GMSGFMT=
12402 POSUB=
12403
12404 if test -f ../intl/config.intl; then
12405 . ../intl/config.intl
12406 fi
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12408 $as_echo_n "checking whether NLS is requested... " >&6; }
12409 if test x"$USE_NLS" != xyes; then
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411 $as_echo "no" >&6; }
12412 else
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12414 $as_echo "yes" >&6; }
12415
12416 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12417
12418
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12420 $as_echo_n "checking for catalogs to be installed... " >&6; }
12421 # Look for .po and .gmo files in the source directory.
12422 CATALOGS=
12423 XLINGUAS=
12424 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12425 # If there aren't any .gmo files the shell will give us the
12426 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12427 # weeded out.
12428 case "$cat" in *\**)
12429 continue;;
12430 esac
12431 # The quadruple backslash is collapsed to a double backslash
12432 # by the backticks, then collapsed again by the double quotes,
12433 # leaving us with one backslash in the sed expression (right
12434 # before the dot that mustn't act as a wildcard).
12435 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12436 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12437 # The user is allowed to set LINGUAS to a list of languages to
12438 # install catalogs for. If it's empty that means "all of them."
12439 if test "x$LINGUAS" = x; then
12440 CATALOGS="$CATALOGS $cat"
12441 XLINGUAS="$XLINGUAS $lang"
12442 else
12443 case "$LINGUAS" in *$lang*)
12444 CATALOGS="$CATALOGS $cat"
12445 XLINGUAS="$XLINGUAS $lang"
12446 ;;
12447 esac
12448 fi
12449 done
12450 LINGUAS="$XLINGUAS"
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12452 $as_echo "$LINGUAS" >&6; }
12453
12454
12455 DATADIRNAME=share
12456
12457 INSTOBJEXT=.mo
12458
12459 GENCAT=gencat
12460
12461 CATOBJEXT=.gmo
12462
12463 fi
12464
12465 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12466 # -liconv on the link line twice.
12467 case "$LIBINTL" in *$LIBICONV*)
12468 LIBICONV= ;;
12469 esac
12470
12471 # Check whether --enable-secureplt was given.
12472 if test "${enable_secureplt+set}" = set; then :
12473 enableval=$enable_secureplt;
12474 fi
12475
12476
12477 # Check whether --enable-mingw-wildcard was given.
12478 if test "${enable_mingw_wildcard+set}" = set; then :
12479 enableval=$enable_mingw_wildcard;
12480 else
12481 enable_mingw_wildcard=platform
12482 fi
12483
12484 if test x"$enable_mingw_wildcard" != xplatform ; then :
12485
12486 cat >>confdefs.h <<_ACEOF
12487 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12488 _ACEOF
12489
12490 fi
12491
12492 # Check whether --enable-large-address-aware was given.
12493 if test "${enable_large_address_aware+set}" = set; then :
12494 enableval=$enable_large_address_aware;
12495 fi
12496
12497 if test x"$enable_large_address_aware" = xyes; then :
12498
12499 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12500
12501 fi
12502
12503 # Check whether --enable-leading-mingw64-underscores was given.
12504 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12505 enableval=$enable_leading_mingw64_underscores;
12506 fi
12507
12508 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12509
12510 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12511
12512 fi
12513
12514 # Check whether --enable-cld was given.
12515 if test "${enable_cld+set}" = set; then :
12516 enableval=$enable_cld;
12517 else
12518 enable_cld=no
12519 fi
12520
12521
12522 # Check whether --enable-frame-pointer was given.
12523 if test "${enable_frame_pointer+set}" = set; then :
12524 enableval=$enable_frame_pointer;
12525 else
12526
12527 case $target_os in
12528 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
12529 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12530 enable_frame_pointer=no
12531 ;;
12532 *)
12533 enable_frame_pointer=yes
12534 ;;
12535 esac
12536
12537 fi
12538
12539
12540 case $target in
12541 i[34567]86-*-* | x86_64-*-*)
12542 if test "x$enable_cld" = xyes; then
12543 tm_defines="${tm_defines} USE_IX86_CLD=1"
12544 fi
12545 if test "x$enable_frame_pointer" = xyes; then
12546 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
12547 fi
12548 ;;
12549 esac
12550
12551 # Windows32 Registry support for specifying GCC installation paths.
12552 # Check whether --enable-win32-registry was given.
12553 if test "${enable_win32_registry+set}" = set; then :
12554 enableval=$enable_win32_registry;
12555 fi
12556
12557
12558 case $host_os in
12559 win32 | pe | cygwin* | mingw32*)
12560 if test "x$enable_win32_registry" != xno; then
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12562 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12563 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12564 $as_echo_n "(cached) " >&6
12565 else
12566 ac_func_search_save_LIBS=$LIBS
12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h. */
12569
12570 /* Override any GCC internal prototype to avoid an error.
12571 Use char because int might match the return type of a GCC
12572 builtin and then its argument prototype would still apply. */
12573 #ifdef __cplusplus
12574 extern "C"
12575 #endif
12576 char RegOpenKeyExA ();
12577 int
12578 main ()
12579 {
12580 return RegOpenKeyExA ();
12581 ;
12582 return 0;
12583 }
12584 _ACEOF
12585 for ac_lib in '' advapi32; do
12586 if test -z "$ac_lib"; then
12587 ac_res="none required"
12588 else
12589 ac_res=-l$ac_lib
12590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12591 fi
12592 if ac_fn_cxx_try_link "$LINENO"; then :
12593 ac_cv_search_RegOpenKeyExA=$ac_res
12594 fi
12595 rm -f core conftest.err conftest.$ac_objext \
12596 conftest$ac_exeext
12597 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12598 break
12599 fi
12600 done
12601 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12602
12603 else
12604 ac_cv_search_RegOpenKeyExA=no
12605 fi
12606 rm conftest.$ac_ext
12607 LIBS=$ac_func_search_save_LIBS
12608 fi
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12610 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12611 ac_res=$ac_cv_search_RegOpenKeyExA
12612 if test "$ac_res" != no; then :
12613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12614
12615 else
12616 enable_win32_registry=no
12617 fi
12618
12619 fi
12620
12621 if test "x$enable_win32_registry" != xno; then
12622
12623 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12624
12625
12626 if test "x$enable_win32_registry" != xyes \
12627 && test "x$enable_win32_registry" != x; then
12628
12629 cat >>confdefs.h <<_ACEOF
12630 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12631 _ACEOF
12632
12633 fi
12634 fi
12635 ;;
12636 esac
12637
12638 # Get an absolute path to the GCC top-level source directory
12639 holddir=`${PWDCMD-pwd}`
12640 cd $srcdir
12641 topdir=`${PWDCMD-pwd}`
12642 cd $holddir
12643
12644 # Conditionalize the makefile for this host machine.
12645 xmake_file=
12646 for f in ${host_xmake_file}
12647 do
12648 if test -f ${srcdir}/config/$f
12649 then
12650 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12651 fi
12652 done
12653
12654 # Conditionalize the makefile for this target machine.
12655 tmake_file_=
12656 for f in ${tmake_file}
12657 do
12658 if test -f ${srcdir}/config/$f
12659 then
12660 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12661 fi
12662 done
12663 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
12664
12665 out_object_file=`basename $out_file .c`.o
12666 common_out_object_file=`basename $common_out_file .c`.o
12667
12668 tm_file_list="options.h"
12669 tm_include_list="options.h insn-constants.h"
12670 for f in $tm_file; do
12671 case $f in
12672 ./* )
12673 f=`echo $f | sed 's/^..//'`
12674 tm_file_list="${tm_file_list} $f"
12675 tm_include_list="${tm_include_list} $f"
12676 ;;
12677 defaults.h )
12678 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12679 tm_include_list="${tm_include_list} $f"
12680 ;;
12681 * )
12682 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12683 tm_include_list="${tm_include_list} config/$f"
12684 ;;
12685 esac
12686 done
12687
12688 tm_p_file_list=
12689 tm_p_include_list=
12690 for f in $tm_p_file; do
12691 case $f in
12692 tm-preds.h )
12693 tm_p_file_list="${tm_p_file_list} $f"
12694 tm_p_include_list="${tm_p_include_list} $f"
12695 ;;
12696 * )
12697 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12698 tm_p_include_list="${tm_p_include_list} config/$f"
12699 esac
12700 done
12701
12702 tm_d_file_list=
12703 tm_d_include_list="options.h insn-constants.h"
12704 for f in $tm_d_file; do
12705 case $f in
12706 defaults.h )
12707 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12708 tm_d_include_list="${tm_d_include_list} $f"
12709 ;;
12710 * )
12711 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12712 tm_d_include_list="${tm_d_include_list} config/$f"
12713 ;;
12714 esac
12715 done
12716
12717 xm_file_list=
12718 xm_include_list=
12719 for f in $xm_file; do
12720 case $f in
12721 ansidecl.h )
12722 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12723 xm_include_list="${xm_include_list} $f"
12724 ;;
12725 auto-host.h )
12726 xm_file_list="${xm_file_list} $f"
12727 xm_include_list="${xm_include_list} $f"
12728 ;;
12729 * )
12730 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12731 xm_include_list="${xm_include_list} config/$f"
12732 ;;
12733 esac
12734 done
12735
12736 host_xm_file_list=
12737 host_xm_include_list=
12738 for f in $host_xm_file; do
12739 case $f in
12740 ansidecl.h )
12741 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12742 host_xm_include_list="${host_xm_include_list} $f"
12743 ;;
12744 auto-host.h )
12745 host_xm_file_list="${host_xm_file_list} $f"
12746 host_xm_include_list="${host_xm_include_list} $f"
12747 ;;
12748 * )
12749 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12750 host_xm_include_list="${host_xm_include_list} config/$f"
12751 ;;
12752 esac
12753 done
12754
12755 build_xm_file_list=
12756 for f in $build_xm_file; do
12757 case $f in
12758 ansidecl.h )
12759 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12760 build_xm_include_list="${build_xm_include_list} $f"
12761 ;;
12762 auto-build.h | auto-host.h )
12763 build_xm_file_list="${build_xm_file_list} $f"
12764 build_xm_include_list="${build_xm_include_list} $f"
12765 ;;
12766 * )
12767 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12768 build_xm_include_list="${build_xm_include_list} config/$f"
12769 ;;
12770 esac
12771 done
12772
12773 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12774 # cross-compiler which does not use the native headers and libraries.
12775 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12776 CROSS=
12777 ALL=all.internal
12778 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12779 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12780
12781 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12782 test x$build != x$host || test "x$with_build_sysroot" != x; then
12783 if test "x$with_build_sysroot" != x; then
12784 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12785 else
12786 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12787 fi
12788
12789 if test x$host != x$target
12790 then
12791 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12792 ALL=all.cross
12793 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12794 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12795 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12796 fi
12797
12798 if test "x$with_build_sysroot" != "x"; then
12799 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12800 elif test "x$with_sysroot" = x; then
12801 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12802 elif test "x$with_sysroot" = xyes; then
12803 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12804 else
12805 target_header_dir="${with_sysroot}${native_system_header_dir}"
12806 fi
12807 else
12808 target_header_dir=${native_system_header_dir}
12809 fi
12810
12811 # If this is a cross-compiler that does not
12812 # have its own set of headers then define
12813 # inhibit_libc
12814
12815 # If this is using newlib, without having the headers available now,
12816 # then define inhibit_libc in LIBGCC2_CFLAGS.
12817 # This prevents libgcc2 from containing any code which requires libc
12818 # support.
12819 : ${inhibit_libc=false}
12820 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12821 test x$with_newlib = xyes ; } &&
12822 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12823 inhibit_libc=true
12824 fi
12825
12826
12827 # When building gcc with a cross-compiler, we need to adjust things so
12828 # that the generator programs are still built with the native compiler.
12829 # Also, we cannot run fixincludes.
12830
12831 # These are the normal (build=host) settings:
12832 CC_FOR_BUILD='$(CC)'
12833 CXX_FOR_BUILD='$(CXX)'
12834 BUILD_CFLAGS='$(ALL_CFLAGS)'
12835 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12836 BUILD_LDFLAGS='$(LDFLAGS)'
12837 STMP_FIXINC=stmp-fixinc
12838
12839 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12840 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12841
12842 # And these apply if build != host, or we are generating coverage data
12843 if test x$build != x$host || test "x$coverage_flags" != x
12844 then
12845 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12846 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12847 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12848
12849 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12850 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12851 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12852 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12853 fi
12854
12855
12856
12857 # Expand extra_headers to include complete path.
12858 # This substitutes for lots of t-* files.
12859 extra_headers_list=
12860 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12861 for file in ${extra_headers} ; do
12862 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12863 done
12864
12865 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12866 if test x"$use_gcc_tgmath" = xyes
12867 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12868 fi
12869
12870 # Define collect2 in Makefile.
12871 case $host_can_use_collect2 in
12872 no) collect2= ;;
12873 *) collect2='collect2$(exeext)' ;;
12874 esac
12875
12876
12877 # Add a definition of USE_COLLECT2 if system wants one.
12878 case $use_collect2 in
12879 no) use_collect2= ;;
12880 "") ;;
12881 *)
12882 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12883 xm_defines="${xm_defines} USE_COLLECT2"
12884 case $host_can_use_collect2 in
12885 no)
12886 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12887 ;;
12888 esac
12889 ;;
12890 esac
12891
12892
12893 cat >>confdefs.h <<_ACEOF
12894 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12895 _ACEOF
12896
12897
12898 # ---------------------------
12899 # Assembler & linker features
12900 # ---------------------------
12901
12902 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12903 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12904 # However when ld-new is first executed from the build tree, libtool will
12905 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12906 # to the build tree. While doing this we need to use the previous-stage
12907 # linker, or we have an infinite loop. The presence of a shell script as
12908 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12909 # the gcc/collect-ld script. So we need to know how libtool works, or
12910 # exec-tool will fail.
12911
12912
12913 case `pwd` in
12914 *\ * | *\ *)
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12916 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12917 esac
12918
12919
12920
12921 macro_version='2.2.7a'
12922 macro_revision='1.3134'
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936 ltmain="$ac_aux_dir/ltmain.sh"
12937
12938 # Backslashify metacharacters that are still active within
12939 # double-quoted strings.
12940 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12941
12942 # Same as above, but do not quote variable references.
12943 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12944
12945 # Sed substitution to delay expansion of an escaped shell variable in a
12946 # double_quote_subst'ed string.
12947 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12948
12949 # Sed substitution to delay expansion of an escaped single quote.
12950 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12951
12952 # Sed substitution to avoid accidental globbing in evaled expressions
12953 no_glob_subst='s/\*/\\\*/g'
12954
12955 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12956 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12957 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12958
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12960 $as_echo_n "checking how to print strings... " >&6; }
12961 # Test print first, because it will be a builtin if present.
12962 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12963 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12964 ECHO='print -r --'
12965 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12966 ECHO='printf %s\n'
12967 else
12968 # Use this function as a fallback that always works.
12969 func_fallback_echo ()
12970 {
12971 eval 'cat <<_LTECHO_EOF
12972 $1
12973 _LTECHO_EOF'
12974 }
12975 ECHO='func_fallback_echo'
12976 fi
12977
12978 # func_echo_all arg...
12979 # Invoke $ECHO with all args, space-separated.
12980 func_echo_all ()
12981 {
12982 $ECHO ""
12983 }
12984
12985 case "$ECHO" in
12986 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12987 $as_echo "printf" >&6; } ;;
12988 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12989 $as_echo "print -r" >&6; } ;;
12990 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12991 $as_echo "cat" >&6; } ;;
12992 esac
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13008 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13009 if ${ac_cv_path_SED+:} false; then :
13010 $as_echo_n "(cached) " >&6
13011 else
13012 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13013 for ac_i in 1 2 3 4 5 6 7; do
13014 ac_script="$ac_script$as_nl$ac_script"
13015 done
13016 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13017 { ac_script=; unset ac_script;}
13018 if test -z "$SED"; then
13019 ac_path_SED_found=false
13020 # Loop through the user's path and test for each of PROGNAME-LIST
13021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13022 for as_dir in $PATH
13023 do
13024 IFS=$as_save_IFS
13025 test -z "$as_dir" && as_dir=.
13026 for ac_prog in sed gsed; do
13027 for ac_exec_ext in '' $ac_executable_extensions; do
13028 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13029 as_fn_executable_p "$ac_path_SED" || continue
13030 # Check for GNU ac_path_SED and select it if it is found.
13031 # Check for GNU $ac_path_SED
13032 case `"$ac_path_SED" --version 2>&1` in
13033 *GNU*)
13034 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13035 *)
13036 ac_count=0
13037 $as_echo_n 0123456789 >"conftest.in"
13038 while :
13039 do
13040 cat "conftest.in" "conftest.in" >"conftest.tmp"
13041 mv "conftest.tmp" "conftest.in"
13042 cp "conftest.in" "conftest.nl"
13043 $as_echo '' >> "conftest.nl"
13044 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13045 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13046 as_fn_arith $ac_count + 1 && ac_count=$as_val
13047 if test $ac_count -gt ${ac_path_SED_max-0}; then
13048 # Best one so far, save it but keep looking for a better one
13049 ac_cv_path_SED="$ac_path_SED"
13050 ac_path_SED_max=$ac_count
13051 fi
13052 # 10*(2^10) chars as input seems more than enough
13053 test $ac_count -gt 10 && break
13054 done
13055 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13056 esac
13057
13058 $ac_path_SED_found && break 3
13059 done
13060 done
13061 done
13062 IFS=$as_save_IFS
13063 if test -z "$ac_cv_path_SED"; then
13064 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13065 fi
13066 else
13067 ac_cv_path_SED=$SED
13068 fi
13069
13070 fi
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13072 $as_echo "$ac_cv_path_SED" >&6; }
13073 SED="$ac_cv_path_SED"
13074 rm -f conftest.sed
13075
13076 test -z "$SED" && SED=sed
13077 Xsed="$SED -e 1s/^X//"
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13090 $as_echo_n "checking for fgrep... " >&6; }
13091 if ${ac_cv_path_FGREP+:} false; then :
13092 $as_echo_n "(cached) " >&6
13093 else
13094 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13095 then ac_cv_path_FGREP="$GREP -F"
13096 else
13097 if test -z "$FGREP"; then
13098 ac_path_FGREP_found=false
13099 # Loop through the user's path and test for each of PROGNAME-LIST
13100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13102 do
13103 IFS=$as_save_IFS
13104 test -z "$as_dir" && as_dir=.
13105 for ac_prog in fgrep; do
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13108 as_fn_executable_p "$ac_path_FGREP" || continue
13109 # Check for GNU ac_path_FGREP and select it if it is found.
13110 # Check for GNU $ac_path_FGREP
13111 case `"$ac_path_FGREP" --version 2>&1` in
13112 *GNU*)
13113 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13114 *)
13115 ac_count=0
13116 $as_echo_n 0123456789 >"conftest.in"
13117 while :
13118 do
13119 cat "conftest.in" "conftest.in" >"conftest.tmp"
13120 mv "conftest.tmp" "conftest.in"
13121 cp "conftest.in" "conftest.nl"
13122 $as_echo 'FGREP' >> "conftest.nl"
13123 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13125 as_fn_arith $ac_count + 1 && ac_count=$as_val
13126 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13127 # Best one so far, save it but keep looking for a better one
13128 ac_cv_path_FGREP="$ac_path_FGREP"
13129 ac_path_FGREP_max=$ac_count
13130 fi
13131 # 10*(2^10) chars as input seems more than enough
13132 test $ac_count -gt 10 && break
13133 done
13134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13135 esac
13136
13137 $ac_path_FGREP_found && break 3
13138 done
13139 done
13140 done
13141 IFS=$as_save_IFS
13142 if test -z "$ac_cv_path_FGREP"; then
13143 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13144 fi
13145 else
13146 ac_cv_path_FGREP=$FGREP
13147 fi
13148
13149 fi
13150 fi
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13152 $as_echo "$ac_cv_path_FGREP" >&6; }
13153 FGREP="$ac_cv_path_FGREP"
13154
13155
13156 test -z "$GREP" && GREP=grep
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176 # Check whether --with-gnu-ld was given.
13177 if test "${with_gnu_ld+set}" = set; then :
13178 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13179 else
13180 with_gnu_ld=no
13181 fi
13182
13183 ac_prog=ld
13184 if test "$GCC" = yes; then
13185 # Check if gcc -print-prog-name=ld gives a path.
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13187 $as_echo_n "checking for ld used by $CC... " >&6; }
13188 case $host in
13189 *-*-mingw*)
13190 # gcc leaves a trailing carriage return which upsets mingw
13191 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13192 *)
13193 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13194 esac
13195 case $ac_prog in
13196 # Accept absolute paths.
13197 [\\/]* | ?:[\\/]*)
13198 re_direlt='/[^/][^/]*/\.\./'
13199 # Canonicalize the pathname of ld
13200 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13201 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13202 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13203 done
13204 test -z "$LD" && LD="$ac_prog"
13205 ;;
13206 "")
13207 # If it fails, then pretend we aren't using GCC.
13208 ac_prog=ld
13209 ;;
13210 *)
13211 # If it is relative, then search for the first ld in PATH.
13212 with_gnu_ld=unknown
13213 ;;
13214 esac
13215 elif test "$with_gnu_ld" = yes; then
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13217 $as_echo_n "checking for GNU ld... " >&6; }
13218 else
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13220 $as_echo_n "checking for non-GNU ld... " >&6; }
13221 fi
13222 if ${lt_cv_path_LD+:} false; then :
13223 $as_echo_n "(cached) " >&6
13224 else
13225 if test -z "$LD"; then
13226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13227 for ac_dir in $PATH; do
13228 IFS="$lt_save_ifs"
13229 test -z "$ac_dir" && ac_dir=.
13230 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13231 lt_cv_path_LD="$ac_dir/$ac_prog"
13232 # Check to see if the program is GNU ld. I'd rather use --version,
13233 # but apparently some variants of GNU ld only accept -v.
13234 # Break only if it was the GNU/non-GNU ld that we prefer.
13235 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13236 *GNU* | *'with BFD'*)
13237 test "$with_gnu_ld" != no && break
13238 ;;
13239 *)
13240 test "$with_gnu_ld" != yes && break
13241 ;;
13242 esac
13243 fi
13244 done
13245 IFS="$lt_save_ifs"
13246 else
13247 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13248 fi
13249 fi
13250
13251 LD="$lt_cv_path_LD"
13252 if test -n "$LD"; then
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13254 $as_echo "$LD" >&6; }
13255 else
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13257 $as_echo "no" >&6; }
13258 fi
13259 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13261 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13262 if ${lt_cv_prog_gnu_ld+:} false; then :
13263 $as_echo_n "(cached) " >&6
13264 else
13265 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13266 case `$LD -v 2>&1 </dev/null` in
13267 *GNU* | *'with BFD'*)
13268 lt_cv_prog_gnu_ld=yes
13269 ;;
13270 *)
13271 lt_cv_prog_gnu_ld=no
13272 ;;
13273 esac
13274 fi
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13276 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13277 with_gnu_ld=$lt_cv_prog_gnu_ld
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13288 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13289 if ${lt_cv_path_NM+:} false; then :
13290 $as_echo_n "(cached) " >&6
13291 else
13292 if test -n "$NM"; then
13293 # Let the user override the test.
13294 lt_cv_path_NM="$NM"
13295 else
13296 lt_nm_to_check="${ac_tool_prefix}nm"
13297 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13298 lt_nm_to_check="$lt_nm_to_check nm"
13299 fi
13300 for lt_tmp_nm in $lt_nm_to_check; do
13301 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13302 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13303 IFS="$lt_save_ifs"
13304 test -z "$ac_dir" && ac_dir=.
13305 tmp_nm="$ac_dir/$lt_tmp_nm"
13306 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13307 # Check to see if the nm accepts a BSD-compat flag.
13308 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13309 # nm: unknown option "B" ignored
13310 # Tru64's nm complains that /dev/null is an invalid object file
13311 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13312 */dev/null* | *'Invalid file or object type'*)
13313 lt_cv_path_NM="$tmp_nm -B"
13314 break
13315 ;;
13316 *)
13317 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13318 */dev/null*)
13319 lt_cv_path_NM="$tmp_nm -p"
13320 break
13321 ;;
13322 *)
13323 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13324 continue # so that we can try to find one that supports BSD flags
13325 ;;
13326 esac
13327 ;;
13328 esac
13329 fi
13330 done
13331 IFS="$lt_save_ifs"
13332 done
13333 : ${lt_cv_path_NM=no}
13334 fi
13335 fi
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13337 $as_echo "$lt_cv_path_NM" >&6; }
13338 if test "$lt_cv_path_NM" != "no"; then
13339 NM="$lt_cv_path_NM"
13340 else
13341 # Didn't find any BSD compatible name lister, look for dumpbin.
13342 if test -n "$DUMPBIN"; then :
13343 # Let the user override the test.
13344 else
13345 if test -n "$ac_tool_prefix"; then
13346 for ac_prog in dumpbin "link -dump"
13347 do
13348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13351 $as_echo_n "checking for $ac_word... " >&6; }
13352 if ${ac_cv_prog_DUMPBIN+:} false; then :
13353 $as_echo_n "(cached) " >&6
13354 else
13355 if test -n "$DUMPBIN"; then
13356 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13357 else
13358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359 for as_dir in $PATH
13360 do
13361 IFS=$as_save_IFS
13362 test -z "$as_dir" && as_dir=.
13363 for ac_exec_ext in '' $ac_executable_extensions; do
13364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13365 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13367 break 2
13368 fi
13369 done
13370 done
13371 IFS=$as_save_IFS
13372
13373 fi
13374 fi
13375 DUMPBIN=$ac_cv_prog_DUMPBIN
13376 if test -n "$DUMPBIN"; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13378 $as_echo "$DUMPBIN" >&6; }
13379 else
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 $as_echo "no" >&6; }
13382 fi
13383
13384
13385 test -n "$DUMPBIN" && break
13386 done
13387 fi
13388 if test -z "$DUMPBIN"; then
13389 ac_ct_DUMPBIN=$DUMPBIN
13390 for ac_prog in dumpbin "link -dump"
13391 do
13392 # Extract the first word of "$ac_prog", so it can be a program name with args.
13393 set dummy $ac_prog; ac_word=$2
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13395 $as_echo_n "checking for $ac_word... " >&6; }
13396 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13397 $as_echo_n "(cached) " >&6
13398 else
13399 if test -n "$ac_ct_DUMPBIN"; then
13400 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13401 else
13402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13403 for as_dir in $PATH
13404 do
13405 IFS=$as_save_IFS
13406 test -z "$as_dir" && as_dir=.
13407 for ac_exec_ext in '' $ac_executable_extensions; do
13408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13409 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13411 break 2
13412 fi
13413 done
13414 done
13415 IFS=$as_save_IFS
13416
13417 fi
13418 fi
13419 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13420 if test -n "$ac_ct_DUMPBIN"; then
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13422 $as_echo "$ac_ct_DUMPBIN" >&6; }
13423 else
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425 $as_echo "no" >&6; }
13426 fi
13427
13428
13429 test -n "$ac_ct_DUMPBIN" && break
13430 done
13431
13432 if test "x$ac_ct_DUMPBIN" = x; then
13433 DUMPBIN=":"
13434 else
13435 case $cross_compiling:$ac_tool_warned in
13436 yes:)
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13439 ac_tool_warned=yes ;;
13440 esac
13441 DUMPBIN=$ac_ct_DUMPBIN
13442 fi
13443 fi
13444
13445 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13446 *COFF*)
13447 DUMPBIN="$DUMPBIN -symbols"
13448 ;;
13449 *)
13450 DUMPBIN=:
13451 ;;
13452 esac
13453 fi
13454
13455 if test "$DUMPBIN" != ":"; then
13456 NM="$DUMPBIN"
13457 fi
13458 fi
13459 test -z "$NM" && NM=nm
13460
13461
13462
13463
13464
13465
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13467 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13468 if ${lt_cv_nm_interface+:} false; then :
13469 $as_echo_n "(cached) " >&6
13470 else
13471 lt_cv_nm_interface="BSD nm"
13472 echo "int some_variable = 0;" > conftest.$ac_ext
13473 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13474 (eval "$ac_compile" 2>conftest.err)
13475 cat conftest.err >&5
13476 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13477 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13478 cat conftest.err >&5
13479 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13480 cat conftest.out >&5
13481 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13482 lt_cv_nm_interface="MS dumpbin"
13483 fi
13484 rm -f conftest*
13485 fi
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13487 $as_echo "$lt_cv_nm_interface" >&6; }
13488
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13490 $as_echo_n "checking whether ln -s works... " >&6; }
13491 LN_S=$as_ln_s
13492 if test "$LN_S" = "ln -s"; then
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13494 $as_echo "yes" >&6; }
13495 else
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13497 $as_echo "no, using $LN_S" >&6; }
13498 fi
13499
13500 # find the maximum length of command line arguments
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13502 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13503 if ${lt_cv_sys_max_cmd_len+:} false; then :
13504 $as_echo_n "(cached) " >&6
13505 else
13506 i=0
13507 teststring="ABCD"
13508
13509 case $build_os in
13510 msdosdjgpp*)
13511 # On DJGPP, this test can blow up pretty badly due to problems in libc
13512 # (any single argument exceeding 2000 bytes causes a buffer overrun
13513 # during glob expansion). Even if it were fixed, the result of this
13514 # check would be larger than it should be.
13515 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13516 ;;
13517
13518 gnu*)
13519 # Under GNU Hurd, this test is not required because there is
13520 # no limit to the length of command line arguments.
13521 # Libtool will interpret -1 as no limit whatsoever
13522 lt_cv_sys_max_cmd_len=-1;
13523 ;;
13524
13525 cygwin* | mingw* | cegcc*)
13526 # On Win9x/ME, this test blows up -- it succeeds, but takes
13527 # about 5 minutes as the teststring grows exponentially.
13528 # Worse, since 9x/ME are not pre-emptively multitasking,
13529 # you end up with a "frozen" computer, even though with patience
13530 # the test eventually succeeds (with a max line length of 256k).
13531 # Instead, let's just punt: use the minimum linelength reported by
13532 # all of the supported platforms: 8192 (on NT/2K/XP).
13533 lt_cv_sys_max_cmd_len=8192;
13534 ;;
13535
13536 mint*)
13537 # On MiNT this can take a long time and run out of memory.
13538 lt_cv_sys_max_cmd_len=8192;
13539 ;;
13540
13541 amigaos*)
13542 # On AmigaOS with pdksh, this test takes hours, literally.
13543 # So we just punt and use a minimum line length of 8192.
13544 lt_cv_sys_max_cmd_len=8192;
13545 ;;
13546
13547 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13548 # This has been around since 386BSD, at least. Likely further.
13549 if test -x /sbin/sysctl; then
13550 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13551 elif test -x /usr/sbin/sysctl; then
13552 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13553 else
13554 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13555 fi
13556 # And add a safety zone
13557 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13559 ;;
13560
13561 interix*)
13562 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13563 lt_cv_sys_max_cmd_len=196608
13564 ;;
13565
13566 osf*)
13567 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13568 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13569 # nice to cause kernel panics so lets avoid the loop below.
13570 # First set a reasonable default.
13571 lt_cv_sys_max_cmd_len=16384
13572 #
13573 if test -x /sbin/sysconfig; then
13574 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13575 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13576 esac
13577 fi
13578 ;;
13579 sco3.2v5*)
13580 lt_cv_sys_max_cmd_len=102400
13581 ;;
13582 sysv5* | sco5v6* | sysv4.2uw2*)
13583 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13584 if test -n "$kargmax"; then
13585 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13586 else
13587 lt_cv_sys_max_cmd_len=32768
13588 fi
13589 ;;
13590 *)
13591 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13592 if test -n "$lt_cv_sys_max_cmd_len"; then
13593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13595 else
13596 # Make teststring a little bigger before we do anything with it.
13597 # a 1K string should be a reasonable start.
13598 for i in 1 2 3 4 5 6 7 8 ; do
13599 teststring=$teststring$teststring
13600 done
13601 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13602 # If test is not a shell built-in, we'll probably end up computing a
13603 # maximum length that is only half of the actual maximum length, but
13604 # we can't tell.
13605 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13606 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13607 test $i != 17 # 1/2 MB should be enough
13608 do
13609 i=`expr $i + 1`
13610 teststring=$teststring$teststring
13611 done
13612 # Only check the string length outside the loop.
13613 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13614 teststring=
13615 # Add a significant safety factor because C++ compilers can tack on
13616 # massive amounts of additional arguments before passing them to the
13617 # linker. It appears as though 1/2 is a usable value.
13618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13619 fi
13620 ;;
13621 esac
13622
13623 fi
13624
13625 if test -n $lt_cv_sys_max_cmd_len ; then
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13627 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13628 else
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13630 $as_echo "none" >&6; }
13631 fi
13632 max_cmd_len=$lt_cv_sys_max_cmd_len
13633
13634
13635
13636
13637
13638
13639 : ${CP="cp -f"}
13640 : ${MV="mv -f"}
13641 : ${RM="rm -f"}
13642
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13644 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13645 # Try some XSI features
13646 xsi_shell=no
13647 ( _lt_dummy="a/b/c"
13648 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13649 = c,a/b,, \
13650 && eval 'test $(( 1 + 1 )) -eq 2 \
13651 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13652 && xsi_shell=yes
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13654 $as_echo "$xsi_shell" >&6; }
13655
13656
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13658 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13659 lt_shell_append=no
13660 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13661 >/dev/null 2>&1 \
13662 && lt_shell_append=yes
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13664 $as_echo "$lt_shell_append" >&6; }
13665
13666
13667 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13668 lt_unset=unset
13669 else
13670 lt_unset=false
13671 fi
13672
13673
13674
13675
13676
13677 # test EBCDIC or ASCII
13678 case `echo X|tr X '\101'` in
13679 A) # ASCII based system
13680 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13681 lt_SP2NL='tr \040 \012'
13682 lt_NL2SP='tr \015\012 \040\040'
13683 ;;
13684 *) # EBCDIC based system
13685 lt_SP2NL='tr \100 \n'
13686 lt_NL2SP='tr \r\n \100\100'
13687 ;;
13688 esac
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13699 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13700 if ${lt_cv_ld_reload_flag+:} false; then :
13701 $as_echo_n "(cached) " >&6
13702 else
13703 lt_cv_ld_reload_flag='-r'
13704 fi
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13706 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13707 reload_flag=$lt_cv_ld_reload_flag
13708 case $reload_flag in
13709 "" | " "*) ;;
13710 *) reload_flag=" $reload_flag" ;;
13711 esac
13712 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13713 case $host_os in
13714 darwin*)
13715 if test "$GCC" = yes; then
13716 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13717 else
13718 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13719 fi
13720 ;;
13721 esac
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731 if test -n "$ac_tool_prefix"; then
13732 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13733 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13735 $as_echo_n "checking for $ac_word... " >&6; }
13736 if ${ac_cv_prog_OBJDUMP+:} false; then :
13737 $as_echo_n "(cached) " >&6
13738 else
13739 if test -n "$OBJDUMP"; then
13740 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13741 else
13742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13743 for as_dir in $PATH
13744 do
13745 IFS=$as_save_IFS
13746 test -z "$as_dir" && as_dir=.
13747 for ac_exec_ext in '' $ac_executable_extensions; do
13748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13749 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13751 break 2
13752 fi
13753 done
13754 done
13755 IFS=$as_save_IFS
13756
13757 fi
13758 fi
13759 OBJDUMP=$ac_cv_prog_OBJDUMP
13760 if test -n "$OBJDUMP"; then
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13762 $as_echo "$OBJDUMP" >&6; }
13763 else
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13765 $as_echo "no" >&6; }
13766 fi
13767
13768
13769 fi
13770 if test -z "$ac_cv_prog_OBJDUMP"; then
13771 ac_ct_OBJDUMP=$OBJDUMP
13772 # Extract the first word of "objdump", so it can be a program name with args.
13773 set dummy objdump; ac_word=$2
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13775 $as_echo_n "checking for $ac_word... " >&6; }
13776 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13777 $as_echo_n "(cached) " >&6
13778 else
13779 if test -n "$ac_ct_OBJDUMP"; then
13780 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13781 else
13782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13783 for as_dir in $PATH
13784 do
13785 IFS=$as_save_IFS
13786 test -z "$as_dir" && as_dir=.
13787 for ac_exec_ext in '' $ac_executable_extensions; do
13788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13789 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13791 break 2
13792 fi
13793 done
13794 done
13795 IFS=$as_save_IFS
13796
13797 fi
13798 fi
13799 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13800 if test -n "$ac_ct_OBJDUMP"; then
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13802 $as_echo "$ac_ct_OBJDUMP" >&6; }
13803 else
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13805 $as_echo "no" >&6; }
13806 fi
13807
13808 if test "x$ac_ct_OBJDUMP" = x; then
13809 OBJDUMP="false"
13810 else
13811 case $cross_compiling:$ac_tool_warned in
13812 yes:)
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13815 ac_tool_warned=yes ;;
13816 esac
13817 OBJDUMP=$ac_ct_OBJDUMP
13818 fi
13819 else
13820 OBJDUMP="$ac_cv_prog_OBJDUMP"
13821 fi
13822
13823 test -z "$OBJDUMP" && OBJDUMP=objdump
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13834 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13835 if ${lt_cv_deplibs_check_method+:} false; then :
13836 $as_echo_n "(cached) " >&6
13837 else
13838 lt_cv_file_magic_cmd='$MAGIC_CMD'
13839 lt_cv_file_magic_test_file=
13840 lt_cv_deplibs_check_method='unknown'
13841 # Need to set the preceding variable on all platforms that support
13842 # interlibrary dependencies.
13843 # 'none' -- dependencies not supported.
13844 # `unknown' -- same as none, but documents that we really don't know.
13845 # 'pass_all' -- all dependencies passed with no checks.
13846 # 'test_compile' -- check by making test program.
13847 # 'file_magic [[regex]]' -- check by looking for files in library path
13848 # which responds to the $file_magic_cmd with a given extended regex.
13849 # If you have `file' or equivalent on your system and you're not sure
13850 # whether `pass_all' will *always* work, you probably want this one.
13851
13852 case $host_os in
13853 aix[4-9]*)
13854 lt_cv_deplibs_check_method=pass_all
13855 ;;
13856
13857 beos*)
13858 lt_cv_deplibs_check_method=pass_all
13859 ;;
13860
13861 bsdi[45]*)
13862 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13863 lt_cv_file_magic_cmd='/usr/bin/file -L'
13864 lt_cv_file_magic_test_file=/shlib/libc.so
13865 ;;
13866
13867 cygwin*)
13868 # func_win32_libid is a shell function defined in ltmain.sh
13869 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13870 lt_cv_file_magic_cmd='func_win32_libid'
13871 ;;
13872
13873 mingw* | pw32*)
13874 # Base MSYS/MinGW do not provide the 'file' command needed by
13875 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13876 # unless we find 'file', for example because we are cross-compiling.
13877 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13878 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13879 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13880 lt_cv_file_magic_cmd='func_win32_libid'
13881 else
13882 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13883 lt_cv_file_magic_cmd='$OBJDUMP -f'
13884 fi
13885 ;;
13886
13887 cegcc*)
13888 # use the weaker test based on 'objdump'. See mingw*.
13889 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13890 lt_cv_file_magic_cmd='$OBJDUMP -f'
13891 ;;
13892
13893 darwin* | rhapsody*)
13894 lt_cv_deplibs_check_method=pass_all
13895 ;;
13896
13897 freebsd* | dragonfly*)
13898 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13899 case $host_cpu in
13900 i*86 )
13901 # Not sure whether the presence of OpenBSD here was a mistake.
13902 # Let's accept both of them until this is cleared up.
13903 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13904 lt_cv_file_magic_cmd=/usr/bin/file
13905 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13906 ;;
13907 esac
13908 else
13909 lt_cv_deplibs_check_method=pass_all
13910 fi
13911 ;;
13912
13913 gnu*)
13914 lt_cv_deplibs_check_method=pass_all
13915 ;;
13916
13917 haiku*)
13918 lt_cv_deplibs_check_method=pass_all
13919 ;;
13920
13921 hpux10.20* | hpux11*)
13922 lt_cv_file_magic_cmd=/usr/bin/file
13923 case $host_cpu in
13924 ia64*)
13925 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13926 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13927 ;;
13928 hppa*64*)
13929 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]'
13930 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13931 ;;
13932 *)
13933 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13934 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13935 ;;
13936 esac
13937 ;;
13938
13939 interix[3-9]*)
13940 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13942 ;;
13943
13944 irix5* | irix6* | nonstopux*)
13945 case $LD in
13946 *-32|*"-32 ") libmagic=32-bit;;
13947 *-n32|*"-n32 ") libmagic=N32;;
13948 *-64|*"-64 ") libmagic=64-bit;;
13949 *) libmagic=never-match;;
13950 esac
13951 lt_cv_deplibs_check_method=pass_all
13952 ;;
13953
13954 # This must be Linux ELF.
13955 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13956 lt_cv_deplibs_check_method=pass_all
13957 ;;
13958
13959 netbsd*)
13960 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13962 else
13963 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13964 fi
13965 ;;
13966
13967 newos6*)
13968 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13969 lt_cv_file_magic_cmd=/usr/bin/file
13970 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13971 ;;
13972
13973 *nto* | *qnx*)
13974 lt_cv_deplibs_check_method=pass_all
13975 ;;
13976
13977 openbsd*)
13978 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13980 else
13981 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13982 fi
13983 ;;
13984
13985 osf3* | osf4* | osf5*)
13986 lt_cv_deplibs_check_method=pass_all
13987 ;;
13988
13989 rdos*)
13990 lt_cv_deplibs_check_method=pass_all
13991 ;;
13992
13993 solaris*)
13994 lt_cv_deplibs_check_method=pass_all
13995 ;;
13996
13997 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13998 lt_cv_deplibs_check_method=pass_all
13999 ;;
14000
14001 sysv4 | sysv4.3*)
14002 case $host_vendor in
14003 motorola)
14004 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]'
14005 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14006 ;;
14007 ncr)
14008 lt_cv_deplibs_check_method=pass_all
14009 ;;
14010 sequent)
14011 lt_cv_file_magic_cmd='/bin/file'
14012 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14013 ;;
14014 sni)
14015 lt_cv_file_magic_cmd='/bin/file'
14016 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14017 lt_cv_file_magic_test_file=/lib/libc.so
14018 ;;
14019 siemens)
14020 lt_cv_deplibs_check_method=pass_all
14021 ;;
14022 pc)
14023 lt_cv_deplibs_check_method=pass_all
14024 ;;
14025 esac
14026 ;;
14027
14028 tpf*)
14029 lt_cv_deplibs_check_method=pass_all
14030 ;;
14031 esac
14032
14033 fi
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14035 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14036 file_magic_cmd=$lt_cv_file_magic_cmd
14037 deplibs_check_method=$lt_cv_deplibs_check_method
14038 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051 if test -n "$ac_tool_prefix"; then
14052 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14053 set dummy ${ac_tool_prefix}ar; ac_word=$2
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14055 $as_echo_n "checking for $ac_word... " >&6; }
14056 if ${ac_cv_prog_AR+:} false; then :
14057 $as_echo_n "(cached) " >&6
14058 else
14059 if test -n "$AR"; then
14060 ac_cv_prog_AR="$AR" # Let the user override the test.
14061 else
14062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14063 for as_dir in $PATH
14064 do
14065 IFS=$as_save_IFS
14066 test -z "$as_dir" && as_dir=.
14067 for ac_exec_ext in '' $ac_executable_extensions; do
14068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14069 ac_cv_prog_AR="${ac_tool_prefix}ar"
14070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14071 break 2
14072 fi
14073 done
14074 done
14075 IFS=$as_save_IFS
14076
14077 fi
14078 fi
14079 AR=$ac_cv_prog_AR
14080 if test -n "$AR"; then
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14082 $as_echo "$AR" >&6; }
14083 else
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14085 $as_echo "no" >&6; }
14086 fi
14087
14088
14089 fi
14090 if test -z "$ac_cv_prog_AR"; then
14091 ac_ct_AR=$AR
14092 # Extract the first word of "ar", so it can be a program name with args.
14093 set dummy ar; ac_word=$2
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14095 $as_echo_n "checking for $ac_word... " >&6; }
14096 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14097 $as_echo_n "(cached) " >&6
14098 else
14099 if test -n "$ac_ct_AR"; then
14100 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14101 else
14102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14103 for as_dir in $PATH
14104 do
14105 IFS=$as_save_IFS
14106 test -z "$as_dir" && as_dir=.
14107 for ac_exec_ext in '' $ac_executable_extensions; do
14108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14109 ac_cv_prog_ac_ct_AR="ar"
14110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14111 break 2
14112 fi
14113 done
14114 done
14115 IFS=$as_save_IFS
14116
14117 fi
14118 fi
14119 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14120 if test -n "$ac_ct_AR"; then
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14122 $as_echo "$ac_ct_AR" >&6; }
14123 else
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14125 $as_echo "no" >&6; }
14126 fi
14127
14128 if test "x$ac_ct_AR" = x; then
14129 AR="false"
14130 else
14131 case $cross_compiling:$ac_tool_warned in
14132 yes:)
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14135 ac_tool_warned=yes ;;
14136 esac
14137 AR=$ac_ct_AR
14138 fi
14139 else
14140 AR="$ac_cv_prog_AR"
14141 fi
14142
14143 test -z "$AR" && AR=ar
14144 test -z "$AR_FLAGS" && AR_FLAGS=cru
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156 if test -n "$ac_tool_prefix"; then
14157 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14158 set dummy ${ac_tool_prefix}strip; ac_word=$2
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14160 $as_echo_n "checking for $ac_word... " >&6; }
14161 if ${ac_cv_prog_STRIP+:} false; then :
14162 $as_echo_n "(cached) " >&6
14163 else
14164 if test -n "$STRIP"; then
14165 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14166 else
14167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14168 for as_dir in $PATH
14169 do
14170 IFS=$as_save_IFS
14171 test -z "$as_dir" && as_dir=.
14172 for ac_exec_ext in '' $ac_executable_extensions; do
14173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14174 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14176 break 2
14177 fi
14178 done
14179 done
14180 IFS=$as_save_IFS
14181
14182 fi
14183 fi
14184 STRIP=$ac_cv_prog_STRIP
14185 if test -n "$STRIP"; then
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14187 $as_echo "$STRIP" >&6; }
14188 else
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14190 $as_echo "no" >&6; }
14191 fi
14192
14193
14194 fi
14195 if test -z "$ac_cv_prog_STRIP"; then
14196 ac_ct_STRIP=$STRIP
14197 # Extract the first word of "strip", so it can be a program name with args.
14198 set dummy strip; ac_word=$2
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14200 $as_echo_n "checking for $ac_word... " >&6; }
14201 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14202 $as_echo_n "(cached) " >&6
14203 else
14204 if test -n "$ac_ct_STRIP"; then
14205 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14206 else
14207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14208 for as_dir in $PATH
14209 do
14210 IFS=$as_save_IFS
14211 test -z "$as_dir" && as_dir=.
14212 for ac_exec_ext in '' $ac_executable_extensions; do
14213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14214 ac_cv_prog_ac_ct_STRIP="strip"
14215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14216 break 2
14217 fi
14218 done
14219 done
14220 IFS=$as_save_IFS
14221
14222 fi
14223 fi
14224 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14225 if test -n "$ac_ct_STRIP"; then
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14227 $as_echo "$ac_ct_STRIP" >&6; }
14228 else
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14230 $as_echo "no" >&6; }
14231 fi
14232
14233 if test "x$ac_ct_STRIP" = x; then
14234 STRIP=":"
14235 else
14236 case $cross_compiling:$ac_tool_warned in
14237 yes:)
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14240 ac_tool_warned=yes ;;
14241 esac
14242 STRIP=$ac_ct_STRIP
14243 fi
14244 else
14245 STRIP="$ac_cv_prog_STRIP"
14246 fi
14247
14248 test -z "$STRIP" && STRIP=:
14249
14250
14251
14252
14253
14254
14255 if test -n "$ac_tool_prefix"; then
14256 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14257 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14259 $as_echo_n "checking for $ac_word... " >&6; }
14260 if ${ac_cv_prog_RANLIB+:} false; then :
14261 $as_echo_n "(cached) " >&6
14262 else
14263 if test -n "$RANLIB"; then
14264 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14265 else
14266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14267 for as_dir in $PATH
14268 do
14269 IFS=$as_save_IFS
14270 test -z "$as_dir" && as_dir=.
14271 for ac_exec_ext in '' $ac_executable_extensions; do
14272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14273 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14275 break 2
14276 fi
14277 done
14278 done
14279 IFS=$as_save_IFS
14280
14281 fi
14282 fi
14283 RANLIB=$ac_cv_prog_RANLIB
14284 if test -n "$RANLIB"; then
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14286 $as_echo "$RANLIB" >&6; }
14287 else
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14289 $as_echo "no" >&6; }
14290 fi
14291
14292
14293 fi
14294 if test -z "$ac_cv_prog_RANLIB"; then
14295 ac_ct_RANLIB=$RANLIB
14296 # Extract the first word of "ranlib", so it can be a program name with args.
14297 set dummy ranlib; ac_word=$2
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14299 $as_echo_n "checking for $ac_word... " >&6; }
14300 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14301 $as_echo_n "(cached) " >&6
14302 else
14303 if test -n "$ac_ct_RANLIB"; then
14304 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14305 else
14306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14307 for as_dir in $PATH
14308 do
14309 IFS=$as_save_IFS
14310 test -z "$as_dir" && as_dir=.
14311 for ac_exec_ext in '' $ac_executable_extensions; do
14312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14313 ac_cv_prog_ac_ct_RANLIB="ranlib"
14314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14315 break 2
14316 fi
14317 done
14318 done
14319 IFS=$as_save_IFS
14320
14321 fi
14322 fi
14323 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14324 if test -n "$ac_ct_RANLIB"; then
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14326 $as_echo "$ac_ct_RANLIB" >&6; }
14327 else
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14329 $as_echo "no" >&6; }
14330 fi
14331
14332 if test "x$ac_ct_RANLIB" = x; then
14333 RANLIB=":"
14334 else
14335 case $cross_compiling:$ac_tool_warned in
14336 yes:)
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14339 ac_tool_warned=yes ;;
14340 esac
14341 RANLIB=$ac_ct_RANLIB
14342 fi
14343 else
14344 RANLIB="$ac_cv_prog_RANLIB"
14345 fi
14346
14347 test -z "$RANLIB" && RANLIB=:
14348
14349
14350
14351
14352
14353
14354 # Determine commands to create old-style static archives.
14355 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14356 old_postinstall_cmds='chmod 644 $oldlib'
14357 old_postuninstall_cmds=
14358
14359 if test -n "$RANLIB"; then
14360 case $host_os in
14361 openbsd*)
14362 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14363 ;;
14364 *)
14365 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14366 ;;
14367 esac
14368 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14369 fi
14370
14371 case $host_os in
14372 darwin*)
14373 lock_old_archive_extraction=yes ;;
14374 *)
14375 lock_old_archive_extraction=no ;;
14376 esac
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416 # If no C compiler was specified, use CC.
14417 LTCC=${LTCC-"$CC"}
14418
14419 # If no C compiler flags were specified, use CFLAGS.
14420 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14421
14422 # Allow CC to be a program name with arguments.
14423 compiler=$CC
14424
14425
14426 # Check for command to grab the raw symbol name followed by C symbol from nm.
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14428 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14429 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14430 $as_echo_n "(cached) " >&6
14431 else
14432
14433 # These are sane defaults that work on at least a few old systems.
14434 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14435
14436 # Character class describing NM global symbol codes.
14437 symcode='[BCDEGRST]'
14438
14439 # Regexp to match symbols that can be accessed directly from C.
14440 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14441
14442 # Define system-specific variables.
14443 case $host_os in
14444 aix*)
14445 symcode='[BCDT]'
14446 ;;
14447 cygwin* | mingw* | pw32* | cegcc*)
14448 symcode='[ABCDGISTW]'
14449 ;;
14450 hpux*)
14451 if test "$host_cpu" = ia64; then
14452 symcode='[ABCDEGRST]'
14453 fi
14454 ;;
14455 irix* | nonstopux*)
14456 symcode='[BCDEGRST]'
14457 ;;
14458 osf*)
14459 symcode='[BCDEGQRST]'
14460 ;;
14461 solaris*)
14462 symcode='[BDRT]'
14463 ;;
14464 sco3.2v5*)
14465 symcode='[DT]'
14466 ;;
14467 sysv4.2uw2*)
14468 symcode='[DT]'
14469 ;;
14470 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14471 symcode='[ABDT]'
14472 ;;
14473 sysv4)
14474 symcode='[DFNSTU]'
14475 ;;
14476 esac
14477
14478 # If we're using GNU nm, then use its standard symbol codes.
14479 case `$NM -V 2>&1` in
14480 *GNU* | *'with BFD'*)
14481 symcode='[ABCDGIRSTW]' ;;
14482 esac
14483
14484 # Transform an extracted symbol line into a proper C declaration.
14485 # Some systems (esp. on ia64) link data and code symbols differently,
14486 # so use this general approach.
14487 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14488
14489 # Transform an extracted symbol line into symbol name and symbol address
14490 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14491 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'"
14492
14493 # Handle CRLF in mingw tool chain
14494 opt_cr=
14495 case $build_os in
14496 mingw*)
14497 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14498 ;;
14499 esac
14500
14501 # Try without a prefix underscore, then with it.
14502 for ac_symprfx in "" "_"; do
14503
14504 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14505 symxfrm="\\1 $ac_symprfx\\2 \\2"
14506
14507 # Write the raw and C identifiers.
14508 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14509 # Fake it for dumpbin and say T for any non-static function
14510 # and D for any global variable.
14511 # Also find C++ and __fastcall symbols from MSVC++,
14512 # which start with @ or ?.
14513 lt_cv_sys_global_symbol_pipe="$AWK '"\
14514 " {last_section=section; section=\$ 3};"\
14515 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14516 " \$ 0!~/External *\|/{next};"\
14517 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14518 " {if(hide[section]) next};"\
14519 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14520 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14521 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14522 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14523 " ' prfx=^$ac_symprfx"
14524 else
14525 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14526 fi
14527
14528 # Check to see that the pipe works correctly.
14529 pipe_works=no
14530
14531 rm -f conftest*
14532 cat > conftest.$ac_ext <<_LT_EOF
14533 #ifdef __cplusplus
14534 extern "C" {
14535 #endif
14536 char nm_test_var;
14537 void nm_test_func(void);
14538 void nm_test_func(void){}
14539 #ifdef __cplusplus
14540 }
14541 #endif
14542 int main(){nm_test_var='a';nm_test_func();return(0);}
14543 _LT_EOF
14544
14545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14546 (eval $ac_compile) 2>&5
14547 ac_status=$?
14548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14549 test $ac_status = 0; }; then
14550 # Now try to grab the symbols.
14551 nlist=conftest.nm
14552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14553 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14554 ac_status=$?
14555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14556 test $ac_status = 0; } && test -s "$nlist"; then
14557 # Try sorting and uniquifying the output.
14558 if sort "$nlist" | uniq > "$nlist"T; then
14559 mv -f "$nlist"T "$nlist"
14560 else
14561 rm -f "$nlist"T
14562 fi
14563
14564 # Make sure that we snagged all the symbols we need.
14565 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14566 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14567 cat <<_LT_EOF > conftest.$ac_ext
14568 #ifdef __cplusplus
14569 extern "C" {
14570 #endif
14571
14572 _LT_EOF
14573 # Now generate the symbol file.
14574 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14575
14576 cat <<_LT_EOF >> conftest.$ac_ext
14577
14578 /* The mapping between symbol names and symbols. */
14579 const struct {
14580 const char *name;
14581 void *address;
14582 }
14583 lt__PROGRAM__LTX_preloaded_symbols[] =
14584 {
14585 { "@PROGRAM@", (void *) 0 },
14586 _LT_EOF
14587 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14588 cat <<\_LT_EOF >> conftest.$ac_ext
14589 {0, (void *) 0}
14590 };
14591
14592 /* This works around a problem in FreeBSD linker */
14593 #ifdef FREEBSD_WORKAROUND
14594 static const void *lt_preloaded_setup() {
14595 return lt__PROGRAM__LTX_preloaded_symbols;
14596 }
14597 #endif
14598
14599 #ifdef __cplusplus
14600 }
14601 #endif
14602 _LT_EOF
14603 # Now try linking the two files.
14604 mv conftest.$ac_objext conftstm.$ac_objext
14605 lt_save_LIBS="$LIBS"
14606 lt_save_CFLAGS="$CFLAGS"
14607 LIBS="conftstm.$ac_objext"
14608 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14610 (eval $ac_link) 2>&5
14611 ac_status=$?
14612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14613 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14614 pipe_works=yes
14615 fi
14616 LIBS="$lt_save_LIBS"
14617 CFLAGS="$lt_save_CFLAGS"
14618 else
14619 echo "cannot find nm_test_func in $nlist" >&5
14620 fi
14621 else
14622 echo "cannot find nm_test_var in $nlist" >&5
14623 fi
14624 else
14625 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14626 fi
14627 else
14628 echo "$progname: failed program was:" >&5
14629 cat conftest.$ac_ext >&5
14630 fi
14631 rm -rf conftest* conftst*
14632
14633 # Do not use the global_symbol_pipe unless it works.
14634 if test "$pipe_works" = yes; then
14635 break
14636 else
14637 lt_cv_sys_global_symbol_pipe=
14638 fi
14639 done
14640
14641 fi
14642
14643 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14644 lt_cv_sys_global_symbol_to_cdecl=
14645 fi
14646 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14648 $as_echo "failed" >&6; }
14649 else
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14651 $as_echo "ok" >&6; }
14652 fi
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675 # Check whether --enable-libtool-lock was given.
14676 if test "${enable_libtool_lock+set}" = set; then :
14677 enableval=$enable_libtool_lock;
14678 fi
14679
14680 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14681
14682 # Some flags need to be propagated to the compiler or linker for good
14683 # libtool support.
14684 case $host in
14685 ia64-*-hpux*)
14686 # Find out which ABI we are using.
14687 echo 'int i;' > conftest.$ac_ext
14688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14689 (eval $ac_compile) 2>&5
14690 ac_status=$?
14691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14692 test $ac_status = 0; }; then
14693 case `/usr/bin/file conftest.$ac_objext` in
14694 *ELF-32*)
14695 HPUX_IA64_MODE="32"
14696 ;;
14697 *ELF-64*)
14698 HPUX_IA64_MODE="64"
14699 ;;
14700 esac
14701 fi
14702 rm -rf conftest*
14703 ;;
14704 *-*-irix6*)
14705 # Find out which ABI we are using.
14706 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14708 (eval $ac_compile) 2>&5
14709 ac_status=$?
14710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14711 test $ac_status = 0; }; then
14712 if test "$lt_cv_prog_gnu_ld" = yes; then
14713 case `/usr/bin/file conftest.$ac_objext` in
14714 *32-bit*)
14715 LD="${LD-ld} -melf32bsmip"
14716 ;;
14717 *N32*)
14718 LD="${LD-ld} -melf32bmipn32"
14719 ;;
14720 *64-bit*)
14721 LD="${LD-ld} -melf64bmip"
14722 ;;
14723 esac
14724 else
14725 case `/usr/bin/file conftest.$ac_objext` in
14726 *32-bit*)
14727 LD="${LD-ld} -32"
14728 ;;
14729 *N32*)
14730 LD="${LD-ld} -n32"
14731 ;;
14732 *64-bit*)
14733 LD="${LD-ld} -64"
14734 ;;
14735 esac
14736 fi
14737 fi
14738 rm -rf conftest*
14739 ;;
14740
14741 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14742 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14743 # Find out which ABI we are using.
14744 echo 'int i;' > conftest.$ac_ext
14745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14746 (eval $ac_compile) 2>&5
14747 ac_status=$?
14748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14749 test $ac_status = 0; }; then
14750 case `/usr/bin/file conftest.o` in
14751 *32-bit*)
14752 case $host in
14753 x86_64-*kfreebsd*-gnu)
14754 LD="${LD-ld} -m elf_i386_fbsd"
14755 ;;
14756 x86_64-*linux*)
14757 case `/usr/bin/file conftest.o` in
14758 *x86-64*)
14759 LD="${LD-ld} -m elf32_x86_64"
14760 ;;
14761 *)
14762 LD="${LD-ld} -m elf_i386"
14763 ;;
14764 esac
14765 ;;
14766 powerpc64le-*linux*)
14767 LD="${LD-ld} -m elf32lppclinux"
14768 ;;
14769 powerpc64-*linux*)
14770 LD="${LD-ld} -m elf32ppclinux"
14771 ;;
14772 s390x-*linux*)
14773 LD="${LD-ld} -m elf_s390"
14774 ;;
14775 sparc64-*linux*)
14776 LD="${LD-ld} -m elf32_sparc"
14777 ;;
14778 esac
14779 ;;
14780 *64-bit*)
14781 case $host in
14782 x86_64-*kfreebsd*-gnu)
14783 LD="${LD-ld} -m elf_x86_64_fbsd"
14784 ;;
14785 x86_64-*linux*)
14786 LD="${LD-ld} -m elf_x86_64"
14787 ;;
14788 powerpcle-*linux*)
14789 LD="${LD-ld} -m elf64lppc"
14790 ;;
14791 powerpc-*linux*)
14792 LD="${LD-ld} -m elf64ppc"
14793 ;;
14794 s390*-*linux*|s390*-*tpf*)
14795 LD="${LD-ld} -m elf64_s390"
14796 ;;
14797 sparc*-*linux*)
14798 LD="${LD-ld} -m elf64_sparc"
14799 ;;
14800 esac
14801 ;;
14802 esac
14803 fi
14804 rm -rf conftest*
14805 ;;
14806
14807 *-*-sco3.2v5*)
14808 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14809 SAVE_CFLAGS="$CFLAGS"
14810 CFLAGS="$CFLAGS -belf"
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14812 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14813 if ${lt_cv_cc_needs_belf+:} false; then :
14814 $as_echo_n "(cached) " >&6
14815 else
14816 ac_ext=c
14817 ac_cpp='$CPP $CPPFLAGS'
14818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14821
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14824
14825 int
14826 main ()
14827 {
14828
14829 ;
14830 return 0;
14831 }
14832 _ACEOF
14833 if ac_fn_c_try_link "$LINENO"; then :
14834 lt_cv_cc_needs_belf=yes
14835 else
14836 lt_cv_cc_needs_belf=no
14837 fi
14838 rm -f core conftest.err conftest.$ac_objext \
14839 conftest$ac_exeext conftest.$ac_ext
14840 ac_ext=c
14841 ac_cpp='$CPP $CPPFLAGS'
14842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14845
14846 fi
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14848 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14849 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14850 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14851 CFLAGS="$SAVE_CFLAGS"
14852 fi
14853 ;;
14854 sparc*-*solaris*)
14855 # Find out which ABI we are using.
14856 echo 'int i;' > conftest.$ac_ext
14857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14858 (eval $ac_compile) 2>&5
14859 ac_status=$?
14860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14861 test $ac_status = 0; }; then
14862 case `/usr/bin/file conftest.o` in
14863 *64-bit*)
14864 case $lt_cv_prog_gnu_ld in
14865 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14866 *)
14867 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14868 LD="${LD-ld} -64"
14869 fi
14870 ;;
14871 esac
14872 ;;
14873 esac
14874 fi
14875 rm -rf conftest*
14876 ;;
14877 esac
14878
14879 need_locks="$enable_libtool_lock"
14880
14881
14882 case $host_os in
14883 rhapsody* | darwin*)
14884 if test -n "$ac_tool_prefix"; then
14885 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14886 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14888 $as_echo_n "checking for $ac_word... " >&6; }
14889 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14890 $as_echo_n "(cached) " >&6
14891 else
14892 if test -n "$DSYMUTIL"; then
14893 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14894 else
14895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14896 for as_dir in $PATH
14897 do
14898 IFS=$as_save_IFS
14899 test -z "$as_dir" && as_dir=.
14900 for ac_exec_ext in '' $ac_executable_extensions; do
14901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14902 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14904 break 2
14905 fi
14906 done
14907 done
14908 IFS=$as_save_IFS
14909
14910 fi
14911 fi
14912 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14913 if test -n "$DSYMUTIL"; then
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14915 $as_echo "$DSYMUTIL" >&6; }
14916 else
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14918 $as_echo "no" >&6; }
14919 fi
14920
14921
14922 fi
14923 if test -z "$ac_cv_prog_DSYMUTIL"; then
14924 ac_ct_DSYMUTIL=$DSYMUTIL
14925 # Extract the first word of "dsymutil", so it can be a program name with args.
14926 set dummy dsymutil; ac_word=$2
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14928 $as_echo_n "checking for $ac_word... " >&6; }
14929 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14930 $as_echo_n "(cached) " >&6
14931 else
14932 if test -n "$ac_ct_DSYMUTIL"; then
14933 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14934 else
14935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14936 for as_dir in $PATH
14937 do
14938 IFS=$as_save_IFS
14939 test -z "$as_dir" && as_dir=.
14940 for ac_exec_ext in '' $ac_executable_extensions; do
14941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14942 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14944 break 2
14945 fi
14946 done
14947 done
14948 IFS=$as_save_IFS
14949
14950 fi
14951 fi
14952 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14953 if test -n "$ac_ct_DSYMUTIL"; then
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14955 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14956 else
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14958 $as_echo "no" >&6; }
14959 fi
14960
14961 if test "x$ac_ct_DSYMUTIL" = x; then
14962 DSYMUTIL=":"
14963 else
14964 case $cross_compiling:$ac_tool_warned in
14965 yes:)
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14968 ac_tool_warned=yes ;;
14969 esac
14970 DSYMUTIL=$ac_ct_DSYMUTIL
14971 fi
14972 else
14973 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14974 fi
14975
14976 if test -n "$ac_tool_prefix"; then
14977 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14978 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14980 $as_echo_n "checking for $ac_word... " >&6; }
14981 if ${ac_cv_prog_NMEDIT+:} false; then :
14982 $as_echo_n "(cached) " >&6
14983 else
14984 if test -n "$NMEDIT"; then
14985 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14986 else
14987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14988 for as_dir in $PATH
14989 do
14990 IFS=$as_save_IFS
14991 test -z "$as_dir" && as_dir=.
14992 for ac_exec_ext in '' $ac_executable_extensions; do
14993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14994 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14996 break 2
14997 fi
14998 done
14999 done
15000 IFS=$as_save_IFS
15001
15002 fi
15003 fi
15004 NMEDIT=$ac_cv_prog_NMEDIT
15005 if test -n "$NMEDIT"; then
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15007 $as_echo "$NMEDIT" >&6; }
15008 else
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15010 $as_echo "no" >&6; }
15011 fi
15012
15013
15014 fi
15015 if test -z "$ac_cv_prog_NMEDIT"; then
15016 ac_ct_NMEDIT=$NMEDIT
15017 # Extract the first word of "nmedit", so it can be a program name with args.
15018 set dummy nmedit; ac_word=$2
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15020 $as_echo_n "checking for $ac_word... " >&6; }
15021 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15022 $as_echo_n "(cached) " >&6
15023 else
15024 if test -n "$ac_ct_NMEDIT"; then
15025 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15026 else
15027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15028 for as_dir in $PATH
15029 do
15030 IFS=$as_save_IFS
15031 test -z "$as_dir" && as_dir=.
15032 for ac_exec_ext in '' $ac_executable_extensions; do
15033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15034 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15036 break 2
15037 fi
15038 done
15039 done
15040 IFS=$as_save_IFS
15041
15042 fi
15043 fi
15044 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15045 if test -n "$ac_ct_NMEDIT"; then
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15047 $as_echo "$ac_ct_NMEDIT" >&6; }
15048 else
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15050 $as_echo "no" >&6; }
15051 fi
15052
15053 if test "x$ac_ct_NMEDIT" = x; then
15054 NMEDIT=":"
15055 else
15056 case $cross_compiling:$ac_tool_warned in
15057 yes:)
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15060 ac_tool_warned=yes ;;
15061 esac
15062 NMEDIT=$ac_ct_NMEDIT
15063 fi
15064 else
15065 NMEDIT="$ac_cv_prog_NMEDIT"
15066 fi
15067
15068 if test -n "$ac_tool_prefix"; then
15069 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15070 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15072 $as_echo_n "checking for $ac_word... " >&6; }
15073 if ${ac_cv_prog_LIPO+:} false; then :
15074 $as_echo_n "(cached) " >&6
15075 else
15076 if test -n "$LIPO"; then
15077 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15078 else
15079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15080 for as_dir in $PATH
15081 do
15082 IFS=$as_save_IFS
15083 test -z "$as_dir" && as_dir=.
15084 for ac_exec_ext in '' $ac_executable_extensions; do
15085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15086 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15088 break 2
15089 fi
15090 done
15091 done
15092 IFS=$as_save_IFS
15093
15094 fi
15095 fi
15096 LIPO=$ac_cv_prog_LIPO
15097 if test -n "$LIPO"; then
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15099 $as_echo "$LIPO" >&6; }
15100 else
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15102 $as_echo "no" >&6; }
15103 fi
15104
15105
15106 fi
15107 if test -z "$ac_cv_prog_LIPO"; then
15108 ac_ct_LIPO=$LIPO
15109 # Extract the first word of "lipo", so it can be a program name with args.
15110 set dummy lipo; ac_word=$2
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15112 $as_echo_n "checking for $ac_word... " >&6; }
15113 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15114 $as_echo_n "(cached) " >&6
15115 else
15116 if test -n "$ac_ct_LIPO"; then
15117 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15118 else
15119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15120 for as_dir in $PATH
15121 do
15122 IFS=$as_save_IFS
15123 test -z "$as_dir" && as_dir=.
15124 for ac_exec_ext in '' $ac_executable_extensions; do
15125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15126 ac_cv_prog_ac_ct_LIPO="lipo"
15127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15128 break 2
15129 fi
15130 done
15131 done
15132 IFS=$as_save_IFS
15133
15134 fi
15135 fi
15136 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15137 if test -n "$ac_ct_LIPO"; then
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15139 $as_echo "$ac_ct_LIPO" >&6; }
15140 else
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15142 $as_echo "no" >&6; }
15143 fi
15144
15145 if test "x$ac_ct_LIPO" = x; then
15146 LIPO=":"
15147 else
15148 case $cross_compiling:$ac_tool_warned in
15149 yes:)
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15152 ac_tool_warned=yes ;;
15153 esac
15154 LIPO=$ac_ct_LIPO
15155 fi
15156 else
15157 LIPO="$ac_cv_prog_LIPO"
15158 fi
15159
15160 if test -n "$ac_tool_prefix"; then
15161 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15162 set dummy ${ac_tool_prefix}otool; ac_word=$2
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15164 $as_echo_n "checking for $ac_word... " >&6; }
15165 if ${ac_cv_prog_OTOOL+:} false; then :
15166 $as_echo_n "(cached) " >&6
15167 else
15168 if test -n "$OTOOL"; then
15169 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15170 else
15171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15172 for as_dir in $PATH
15173 do
15174 IFS=$as_save_IFS
15175 test -z "$as_dir" && as_dir=.
15176 for ac_exec_ext in '' $ac_executable_extensions; do
15177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15178 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15180 break 2
15181 fi
15182 done
15183 done
15184 IFS=$as_save_IFS
15185
15186 fi
15187 fi
15188 OTOOL=$ac_cv_prog_OTOOL
15189 if test -n "$OTOOL"; then
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15191 $as_echo "$OTOOL" >&6; }
15192 else
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15194 $as_echo "no" >&6; }
15195 fi
15196
15197
15198 fi
15199 if test -z "$ac_cv_prog_OTOOL"; then
15200 ac_ct_OTOOL=$OTOOL
15201 # Extract the first word of "otool", so it can be a program name with args.
15202 set dummy otool; ac_word=$2
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15204 $as_echo_n "checking for $ac_word... " >&6; }
15205 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15206 $as_echo_n "(cached) " >&6
15207 else
15208 if test -n "$ac_ct_OTOOL"; then
15209 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15210 else
15211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15212 for as_dir in $PATH
15213 do
15214 IFS=$as_save_IFS
15215 test -z "$as_dir" && as_dir=.
15216 for ac_exec_ext in '' $ac_executable_extensions; do
15217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15218 ac_cv_prog_ac_ct_OTOOL="otool"
15219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15220 break 2
15221 fi
15222 done
15223 done
15224 IFS=$as_save_IFS
15225
15226 fi
15227 fi
15228 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15229 if test -n "$ac_ct_OTOOL"; then
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15231 $as_echo "$ac_ct_OTOOL" >&6; }
15232 else
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15234 $as_echo "no" >&6; }
15235 fi
15236
15237 if test "x$ac_ct_OTOOL" = x; then
15238 OTOOL=":"
15239 else
15240 case $cross_compiling:$ac_tool_warned in
15241 yes:)
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15244 ac_tool_warned=yes ;;
15245 esac
15246 OTOOL=$ac_ct_OTOOL
15247 fi
15248 else
15249 OTOOL="$ac_cv_prog_OTOOL"
15250 fi
15251
15252 if test -n "$ac_tool_prefix"; then
15253 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15254 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15256 $as_echo_n "checking for $ac_word... " >&6; }
15257 if ${ac_cv_prog_OTOOL64+:} false; then :
15258 $as_echo_n "(cached) " >&6
15259 else
15260 if test -n "$OTOOL64"; then
15261 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15262 else
15263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15264 for as_dir in $PATH
15265 do
15266 IFS=$as_save_IFS
15267 test -z "$as_dir" && as_dir=.
15268 for ac_exec_ext in '' $ac_executable_extensions; do
15269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15270 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15272 break 2
15273 fi
15274 done
15275 done
15276 IFS=$as_save_IFS
15277
15278 fi
15279 fi
15280 OTOOL64=$ac_cv_prog_OTOOL64
15281 if test -n "$OTOOL64"; then
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15283 $as_echo "$OTOOL64" >&6; }
15284 else
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15286 $as_echo "no" >&6; }
15287 fi
15288
15289
15290 fi
15291 if test -z "$ac_cv_prog_OTOOL64"; then
15292 ac_ct_OTOOL64=$OTOOL64
15293 # Extract the first word of "otool64", so it can be a program name with args.
15294 set dummy otool64; ac_word=$2
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15296 $as_echo_n "checking for $ac_word... " >&6; }
15297 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15298 $as_echo_n "(cached) " >&6
15299 else
15300 if test -n "$ac_ct_OTOOL64"; then
15301 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15302 else
15303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15304 for as_dir in $PATH
15305 do
15306 IFS=$as_save_IFS
15307 test -z "$as_dir" && as_dir=.
15308 for ac_exec_ext in '' $ac_executable_extensions; do
15309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15310 ac_cv_prog_ac_ct_OTOOL64="otool64"
15311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15312 break 2
15313 fi
15314 done
15315 done
15316 IFS=$as_save_IFS
15317
15318 fi
15319 fi
15320 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15321 if test -n "$ac_ct_OTOOL64"; then
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15323 $as_echo "$ac_ct_OTOOL64" >&6; }
15324 else
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15326 $as_echo "no" >&6; }
15327 fi
15328
15329 if test "x$ac_ct_OTOOL64" = x; then
15330 OTOOL64=":"
15331 else
15332 case $cross_compiling:$ac_tool_warned in
15333 yes:)
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15336 ac_tool_warned=yes ;;
15337 esac
15338 OTOOL64=$ac_ct_OTOOL64
15339 fi
15340 else
15341 OTOOL64="$ac_cv_prog_OTOOL64"
15342 fi
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15371 $as_echo_n "checking for -single_module linker flag... " >&6; }
15372 if ${lt_cv_apple_cc_single_mod+:} false; then :
15373 $as_echo_n "(cached) " >&6
15374 else
15375 lt_cv_apple_cc_single_mod=no
15376 if test -z "${LT_MULTI_MODULE}"; then
15377 # By default we will add the -single_module flag. You can override
15378 # by either setting the environment variable LT_MULTI_MODULE
15379 # non-empty at configure time, or by adding -multi_module to the
15380 # link flags.
15381 rm -rf libconftest.dylib*
15382 echo "int foo(void){return 1;}" > conftest.c
15383 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15384 -dynamiclib -Wl,-single_module conftest.c" >&5
15385 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15386 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15387 _lt_result=$?
15388 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15389 lt_cv_apple_cc_single_mod=yes
15390 else
15391 cat conftest.err >&5
15392 fi
15393 rm -rf libconftest.dylib*
15394 rm -f conftest.*
15395 fi
15396 fi
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15398 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15400 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15401 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15402 $as_echo_n "(cached) " >&6
15403 else
15404 lt_cv_ld_exported_symbols_list=no
15405 save_LDFLAGS=$LDFLAGS
15406 echo "_main" > conftest.sym
15407 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409 /* end confdefs.h. */
15410
15411 int
15412 main ()
15413 {
15414
15415 ;
15416 return 0;
15417 }
15418 _ACEOF
15419 if ac_fn_c_try_link "$LINENO"; then :
15420 lt_cv_ld_exported_symbols_list=yes
15421 else
15422 lt_cv_ld_exported_symbols_list=no
15423 fi
15424 rm -f core conftest.err conftest.$ac_objext \
15425 conftest$ac_exeext conftest.$ac_ext
15426 LDFLAGS="$save_LDFLAGS"
15427
15428 fi
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15430 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15432 $as_echo_n "checking for -force_load linker flag... " >&6; }
15433 if ${lt_cv_ld_force_load+:} false; then :
15434 $as_echo_n "(cached) " >&6
15435 else
15436 lt_cv_ld_force_load=no
15437 cat > conftest.c << _LT_EOF
15438 int forced_loaded() { return 2;}
15439 _LT_EOF
15440 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15441 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15442 echo "$AR cru libconftest.a conftest.o" >&5
15443 $AR cru libconftest.a conftest.o 2>&5
15444 cat > conftest.c << _LT_EOF
15445 int main() { return 0;}
15446 _LT_EOF
15447 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15448 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15449 _lt_result=$?
15450 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15451 lt_cv_ld_force_load=yes
15452 else
15453 cat conftest.err >&5
15454 fi
15455 rm -f conftest.err libconftest.a conftest conftest.c
15456 rm -rf conftest.dSYM
15457
15458 fi
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15460 $as_echo "$lt_cv_ld_force_load" >&6; }
15461 case $host_os in
15462 rhapsody* | darwin1.[012])
15463 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15464 darwin1.*)
15465 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15466 darwin*) # darwin 5.x on
15467 # if running on 10.5 or later, the deployment target defaults
15468 # to the OS version, if on x86, and 10.4, the deployment
15469 # target defaults to 10.4. Don't you love it?
15470 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15471 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15472 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15473 10.[012][,.]*)
15474 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15475 10.*)
15476 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15477 esac
15478 ;;
15479 esac
15480 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15481 _lt_dar_single_mod='$single_module'
15482 fi
15483 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15484 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15485 else
15486 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15487 fi
15488 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15489 _lt_dsymutil='~$DSYMUTIL $lib || :'
15490 else
15491 _lt_dsymutil=
15492 fi
15493 ;;
15494 esac
15495
15496
15497 for ac_header in dlfcn.h
15498 do :
15499 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15500 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15501 cat >>confdefs.h <<_ACEOF
15502 #define HAVE_DLFCN_H 1
15503 _ACEOF
15504
15505 fi
15506 done
15507
15508
15509
15510
15511
15512 # Set options
15513
15514
15515
15516 enable_dlopen=no
15517
15518
15519 enable_win32_dll=no
15520
15521
15522 # Check whether --enable-shared was given.
15523 if test "${enable_shared+set}" = set; then :
15524 enableval=$enable_shared; p=${PACKAGE-default}
15525 case $enableval in
15526 yes) enable_shared=yes ;;
15527 no) enable_shared=no ;;
15528 *)
15529 enable_shared=no
15530 # Look at the argument we got. We use all the common list separators.
15531 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15532 for pkg in $enableval; do
15533 IFS="$lt_save_ifs"
15534 if test "X$pkg" = "X$p"; then
15535 enable_shared=yes
15536 fi
15537 done
15538 IFS="$lt_save_ifs"
15539 ;;
15540 esac
15541 else
15542 enable_shared=yes
15543 fi
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553 # Check whether --enable-static was given.
15554 if test "${enable_static+set}" = set; then :
15555 enableval=$enable_static; p=${PACKAGE-default}
15556 case $enableval in
15557 yes) enable_static=yes ;;
15558 no) enable_static=no ;;
15559 *)
15560 enable_static=no
15561 # Look at the argument we got. We use all the common list separators.
15562 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15563 for pkg in $enableval; do
15564 IFS="$lt_save_ifs"
15565 if test "X$pkg" = "X$p"; then
15566 enable_static=yes
15567 fi
15568 done
15569 IFS="$lt_save_ifs"
15570 ;;
15571 esac
15572 else
15573 enable_static=yes
15574 fi
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585 # Check whether --with-pic was given.
15586 if test "${with_pic+set}" = set; then :
15587 withval=$with_pic; pic_mode="$withval"
15588 else
15589 pic_mode=default
15590 fi
15591
15592
15593 test -z "$pic_mode" && pic_mode=default
15594
15595
15596
15597
15598
15599
15600
15601 # Check whether --enable-fast-install was given.
15602 if test "${enable_fast_install+set}" = set; then :
15603 enableval=$enable_fast_install; p=${PACKAGE-default}
15604 case $enableval in
15605 yes) enable_fast_install=yes ;;
15606 no) enable_fast_install=no ;;
15607 *)
15608 enable_fast_install=no
15609 # Look at the argument we got. We use all the common list separators.
15610 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15611 for pkg in $enableval; do
15612 IFS="$lt_save_ifs"
15613 if test "X$pkg" = "X$p"; then
15614 enable_fast_install=yes
15615 fi
15616 done
15617 IFS="$lt_save_ifs"
15618 ;;
15619 esac
15620 else
15621 enable_fast_install=yes
15622 fi
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634 # This can be used to rebuild libtool when needed
15635 LIBTOOL_DEPS="$ltmain"
15636
15637 # Always use our own libtool.
15638 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665 test -z "$LN_S" && LN_S="ln -s"
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680 if test -n "${ZSH_VERSION+set}" ; then
15681 setopt NO_GLOB_SUBST
15682 fi
15683
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15685 $as_echo_n "checking for objdir... " >&6; }
15686 if ${lt_cv_objdir+:} false; then :
15687 $as_echo_n "(cached) " >&6
15688 else
15689 rm -f .libs 2>/dev/null
15690 mkdir .libs 2>/dev/null
15691 if test -d .libs; then
15692 lt_cv_objdir=.libs
15693 else
15694 # MS-DOS does not allow filenames that begin with a dot.
15695 lt_cv_objdir=_libs
15696 fi
15697 rmdir .libs 2>/dev/null
15698 fi
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15700 $as_echo "$lt_cv_objdir" >&6; }
15701 objdir=$lt_cv_objdir
15702
15703
15704
15705
15706
15707 cat >>confdefs.h <<_ACEOF
15708 #define LT_OBJDIR "$lt_cv_objdir/"
15709 _ACEOF
15710
15711
15712
15713
15714 case $host_os in
15715 aix3*)
15716 # AIX sometimes has problems with the GCC collect2 program. For some
15717 # reason, if we set the COLLECT_NAMES environment variable, the problems
15718 # vanish in a puff of smoke.
15719 if test "X${COLLECT_NAMES+set}" != Xset; then
15720 COLLECT_NAMES=
15721 export COLLECT_NAMES
15722 fi
15723 ;;
15724 esac
15725
15726 # Global variables:
15727 ofile=libtool
15728 can_build_shared=yes
15729
15730 # All known linkers require a `.a' archive for static linking (except MSVC,
15731 # which needs '.lib').
15732 libext=a
15733
15734 with_gnu_ld="$lt_cv_prog_gnu_ld"
15735
15736 old_CC="$CC"
15737 old_CFLAGS="$CFLAGS"
15738
15739 # Set sane defaults for various variables
15740 test -z "$CC" && CC=cc
15741 test -z "$LTCC" && LTCC=$CC
15742 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15743 test -z "$LD" && LD=ld
15744 test -z "$ac_objext" && ac_objext=o
15745
15746 for cc_temp in $compiler""; do
15747 case $cc_temp in
15748 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15749 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15750 \-*) ;;
15751 *) break;;
15752 esac
15753 done
15754 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15755
15756
15757 # Only perform the check for file, if the check method requires it
15758 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15759 case $deplibs_check_method in
15760 file_magic*)
15761 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15763 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15764 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15765 $as_echo_n "(cached) " >&6
15766 else
15767 case $MAGIC_CMD in
15768 [\\/*] | ?:[\\/]*)
15769 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15770 ;;
15771 *)
15772 lt_save_MAGIC_CMD="$MAGIC_CMD"
15773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15774 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15775 for ac_dir in $ac_dummy; do
15776 IFS="$lt_save_ifs"
15777 test -z "$ac_dir" && ac_dir=.
15778 if test -f $ac_dir/${ac_tool_prefix}file; then
15779 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15780 if test -n "$file_magic_test_file"; then
15781 case $deplibs_check_method in
15782 "file_magic "*)
15783 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15784 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15785 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15786 $EGREP "$file_magic_regex" > /dev/null; then
15787 :
15788 else
15789 cat <<_LT_EOF 1>&2
15790
15791 *** Warning: the command libtool uses to detect shared libraries,
15792 *** $file_magic_cmd, produces output that libtool cannot recognize.
15793 *** The result is that libtool may fail to recognize shared libraries
15794 *** as such. This will affect the creation of libtool libraries that
15795 *** depend on shared libraries, but programs linked with such libtool
15796 *** libraries will work regardless of this problem. Nevertheless, you
15797 *** may want to report the problem to your system manager and/or to
15798 *** bug-libtool@gnu.org
15799
15800 _LT_EOF
15801 fi ;;
15802 esac
15803 fi
15804 break
15805 fi
15806 done
15807 IFS="$lt_save_ifs"
15808 MAGIC_CMD="$lt_save_MAGIC_CMD"
15809 ;;
15810 esac
15811 fi
15812
15813 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15814 if test -n "$MAGIC_CMD"; then
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15816 $as_echo "$MAGIC_CMD" >&6; }
15817 else
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15819 $as_echo "no" >&6; }
15820 fi
15821
15822
15823
15824
15825
15826 if test -z "$lt_cv_path_MAGIC_CMD"; then
15827 if test -n "$ac_tool_prefix"; then
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15829 $as_echo_n "checking for file... " >&6; }
15830 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15831 $as_echo_n "(cached) " >&6
15832 else
15833 case $MAGIC_CMD in
15834 [\\/*] | ?:[\\/]*)
15835 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15836 ;;
15837 *)
15838 lt_save_MAGIC_CMD="$MAGIC_CMD"
15839 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15840 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15841 for ac_dir in $ac_dummy; do
15842 IFS="$lt_save_ifs"
15843 test -z "$ac_dir" && ac_dir=.
15844 if test -f $ac_dir/file; then
15845 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15846 if test -n "$file_magic_test_file"; then
15847 case $deplibs_check_method in
15848 "file_magic "*)
15849 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15850 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15851 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15852 $EGREP "$file_magic_regex" > /dev/null; then
15853 :
15854 else
15855 cat <<_LT_EOF 1>&2
15856
15857 *** Warning: the command libtool uses to detect shared libraries,
15858 *** $file_magic_cmd, produces output that libtool cannot recognize.
15859 *** The result is that libtool may fail to recognize shared libraries
15860 *** as such. This will affect the creation of libtool libraries that
15861 *** depend on shared libraries, but programs linked with such libtool
15862 *** libraries will work regardless of this problem. Nevertheless, you
15863 *** may want to report the problem to your system manager and/or to
15864 *** bug-libtool@gnu.org
15865
15866 _LT_EOF
15867 fi ;;
15868 esac
15869 fi
15870 break
15871 fi
15872 done
15873 IFS="$lt_save_ifs"
15874 MAGIC_CMD="$lt_save_MAGIC_CMD"
15875 ;;
15876 esac
15877 fi
15878
15879 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15880 if test -n "$MAGIC_CMD"; then
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15882 $as_echo "$MAGIC_CMD" >&6; }
15883 else
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15885 $as_echo "no" >&6; }
15886 fi
15887
15888
15889 else
15890 MAGIC_CMD=:
15891 fi
15892 fi
15893
15894 fi
15895 ;;
15896 esac
15897
15898 # Use C for the default configuration in the libtool script
15899
15900 lt_save_CC="$CC"
15901 ac_ext=c
15902 ac_cpp='$CPP $CPPFLAGS'
15903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15906
15907
15908 # Source file extension for C test sources.
15909 ac_ext=c
15910
15911 # Object file extension for compiled C test sources.
15912 objext=o
15913 objext=$objext
15914
15915 # Code to be used in simple compile tests
15916 lt_simple_compile_test_code="int some_variable = 0;"
15917
15918 # Code to be used in simple link tests
15919 lt_simple_link_test_code='int main(){return(0);}'
15920
15921
15922
15923
15924
15925
15926
15927 # If no C compiler was specified, use CC.
15928 LTCC=${LTCC-"$CC"}
15929
15930 # If no C compiler flags were specified, use CFLAGS.
15931 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15932
15933 # Allow CC to be a program name with arguments.
15934 compiler=$CC
15935
15936 # Save the default compiler, since it gets overwritten when the other
15937 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15938 compiler_DEFAULT=$CC
15939
15940 # save warnings/boilerplate of simple test code
15941 ac_outfile=conftest.$ac_objext
15942 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15943 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15944 _lt_compiler_boilerplate=`cat conftest.err`
15945 $RM conftest*
15946
15947 ac_outfile=conftest.$ac_objext
15948 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15949 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15950 _lt_linker_boilerplate=`cat conftest.err`
15951 $RM -r conftest*
15952
15953
15954 ## CAVEAT EMPTOR:
15955 ## There is no encapsulation within the following macros, do not change
15956 ## the running order or otherwise move them around unless you know exactly
15957 ## what you are doing...
15958 if test -n "$compiler"; then
15959
15960 lt_prog_compiler_no_builtin_flag=
15961
15962 if test "$GCC" = yes; then
15963 case $cc_basename in
15964 nvcc*)
15965 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15966 *)
15967 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15968 esac
15969
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15971 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15972 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15973 $as_echo_n "(cached) " >&6
15974 else
15975 lt_cv_prog_compiler_rtti_exceptions=no
15976 ac_outfile=conftest.$ac_objext
15977 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15978 lt_compiler_flag="-fno-rtti -fno-exceptions"
15979 # Insert the option either (1) after the last *FLAGS variable, or
15980 # (2) before a word containing "conftest.", or (3) at the end.
15981 # Note that $ac_compile itself does not contain backslashes and begins
15982 # with a dollar sign (not a hyphen), so the echo should work correctly.
15983 # The option is referenced via a variable to avoid confusing sed.
15984 lt_compile=`echo "$ac_compile" | $SED \
15985 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15986 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15987 -e 's:$: $lt_compiler_flag:'`
15988 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15989 (eval "$lt_compile" 2>conftest.err)
15990 ac_status=$?
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 if (exit $ac_status) && test -s "$ac_outfile"; then
15994 # The compiler can only warn and ignore the option if not recognized
15995 # So say no if there are warnings other than the usual output.
15996 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15997 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15998 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15999 lt_cv_prog_compiler_rtti_exceptions=yes
16000 fi
16001 fi
16002 $RM conftest*
16003
16004 fi
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16006 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16007
16008 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16009 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16010 else
16011 :
16012 fi
16013
16014 fi
16015
16016
16017
16018
16019
16020
16021 lt_prog_compiler_wl=
16022 lt_prog_compiler_pic=
16023 lt_prog_compiler_static=
16024
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16026 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16027
16028 if test "$GCC" = yes; then
16029 lt_prog_compiler_wl='-Wl,'
16030 lt_prog_compiler_static='-static'
16031
16032 case $host_os in
16033 aix*)
16034 # All AIX code is PIC.
16035 if test "$host_cpu" = ia64; then
16036 # AIX 5 now supports IA64 processor
16037 lt_prog_compiler_static='-Bstatic'
16038 fi
16039 lt_prog_compiler_pic='-fPIC'
16040 ;;
16041
16042 amigaos*)
16043 case $host_cpu in
16044 powerpc)
16045 # see comment about AmigaOS4 .so support
16046 lt_prog_compiler_pic='-fPIC'
16047 ;;
16048 m68k)
16049 # FIXME: we need at least 68020 code to build shared libraries, but
16050 # adding the `-m68020' flag to GCC prevents building anything better,
16051 # like `-m68040'.
16052 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16053 ;;
16054 esac
16055 ;;
16056
16057 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16058 # PIC is the default for these OSes.
16059 ;;
16060
16061 mingw* | cygwin* | pw32* | os2* | cegcc*)
16062 # This hack is so that the source file can tell whether it is being
16063 # built for inclusion in a dll (and should export symbols for example).
16064 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16065 # (--disable-auto-import) libraries
16066 lt_prog_compiler_pic='-DDLL_EXPORT'
16067 ;;
16068
16069 darwin* | rhapsody*)
16070 # PIC is the default on this platform
16071 # Common symbols not allowed in MH_DYLIB files
16072 lt_prog_compiler_pic='-fno-common'
16073 ;;
16074
16075 haiku*)
16076 # PIC is the default for Haiku.
16077 # The "-static" flag exists, but is broken.
16078 lt_prog_compiler_static=
16079 ;;
16080
16081 hpux*)
16082 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16083 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16084 # sets the default TLS model and affects inlining.
16085 case $host_cpu in
16086 hppa*64*)
16087 # +Z the default
16088 ;;
16089 *)
16090 lt_prog_compiler_pic='-fPIC'
16091 ;;
16092 esac
16093 ;;
16094
16095 interix[3-9]*)
16096 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16097 # Instead, we relocate shared libraries at runtime.
16098 ;;
16099
16100 msdosdjgpp*)
16101 # Just because we use GCC doesn't mean we suddenly get shared libraries
16102 # on systems that don't support them.
16103 lt_prog_compiler_can_build_shared=no
16104 enable_shared=no
16105 ;;
16106
16107 *nto* | *qnx*)
16108 # QNX uses GNU C++, but need to define -shared option too, otherwise
16109 # it will coredump.
16110 lt_prog_compiler_pic='-fPIC -shared'
16111 ;;
16112
16113 sysv4*MP*)
16114 if test -d /usr/nec; then
16115 lt_prog_compiler_pic=-Kconform_pic
16116 fi
16117 ;;
16118
16119 *)
16120 lt_prog_compiler_pic='-fPIC'
16121 ;;
16122 esac
16123
16124 case $cc_basename in
16125 nvcc*) # Cuda Compiler Driver 2.2
16126 lt_prog_compiler_wl='-Xlinker '
16127 lt_prog_compiler_pic='-Xcompiler -fPIC'
16128 ;;
16129 esac
16130 else
16131 # PORTME Check for flag to pass linker flags through the system compiler.
16132 case $host_os in
16133 aix*)
16134 lt_prog_compiler_wl='-Wl,'
16135 if test "$host_cpu" = ia64; then
16136 # AIX 5 now supports IA64 processor
16137 lt_prog_compiler_static='-Bstatic'
16138 else
16139 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16140 fi
16141 ;;
16142
16143 mingw* | cygwin* | pw32* | os2* | cegcc*)
16144 # This hack is so that the source file can tell whether it is being
16145 # built for inclusion in a dll (and should export symbols for example).
16146 lt_prog_compiler_pic='-DDLL_EXPORT'
16147 ;;
16148
16149 hpux9* | hpux10* | hpux11*)
16150 lt_prog_compiler_wl='-Wl,'
16151 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16152 # not for PA HP-UX.
16153 case $host_cpu in
16154 hppa*64*|ia64*)
16155 # +Z the default
16156 ;;
16157 *)
16158 lt_prog_compiler_pic='+Z'
16159 ;;
16160 esac
16161 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16162 lt_prog_compiler_static='${wl}-a ${wl}archive'
16163 ;;
16164
16165 irix5* | irix6* | nonstopux*)
16166 lt_prog_compiler_wl='-Wl,'
16167 # PIC (with -KPIC) is the default.
16168 lt_prog_compiler_static='-non_shared'
16169 ;;
16170
16171 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16172 case $cc_basename in
16173 # old Intel for x86_64 which still supported -KPIC.
16174 ecc*)
16175 lt_prog_compiler_wl='-Wl,'
16176 lt_prog_compiler_pic='-KPIC'
16177 lt_prog_compiler_static='-static'
16178 ;;
16179 # icc used to be incompatible with GCC.
16180 # ICC 10 doesn't accept -KPIC any more.
16181 icc* | ifort*)
16182 lt_prog_compiler_wl='-Wl,'
16183 lt_prog_compiler_pic='-fPIC'
16184 lt_prog_compiler_static='-static'
16185 ;;
16186 # Lahey Fortran 8.1.
16187 lf95*)
16188 lt_prog_compiler_wl='-Wl,'
16189 lt_prog_compiler_pic='--shared'
16190 lt_prog_compiler_static='--static'
16191 ;;
16192 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16193 # Portland Group compilers (*not* the Pentium gcc compiler,
16194 # which looks to be a dead project)
16195 lt_prog_compiler_wl='-Wl,'
16196 lt_prog_compiler_pic='-fpic'
16197 lt_prog_compiler_static='-Bstatic'
16198 ;;
16199 ccc*)
16200 lt_prog_compiler_wl='-Wl,'
16201 # All Alpha code is PIC.
16202 lt_prog_compiler_static='-non_shared'
16203 ;;
16204 xl* | bgxl* | bgf* | mpixl*)
16205 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16206 lt_prog_compiler_wl='-Wl,'
16207 lt_prog_compiler_pic='-qpic'
16208 lt_prog_compiler_static='-qstaticlink'
16209 ;;
16210 *)
16211 case `$CC -V 2>&1 | sed 5q` in
16212 *Sun\ F* | *Sun*Fortran*)
16213 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16214 lt_prog_compiler_pic='-KPIC'
16215 lt_prog_compiler_static='-Bstatic'
16216 lt_prog_compiler_wl=''
16217 ;;
16218 *Sun\ C*)
16219 # Sun C 5.9
16220 lt_prog_compiler_pic='-KPIC'
16221 lt_prog_compiler_static='-Bstatic'
16222 lt_prog_compiler_wl='-Wl,'
16223 ;;
16224 esac
16225 ;;
16226 esac
16227 ;;
16228
16229 newsos6)
16230 lt_prog_compiler_pic='-KPIC'
16231 lt_prog_compiler_static='-Bstatic'
16232 ;;
16233
16234 *nto* | *qnx*)
16235 # QNX uses GNU C++, but need to define -shared option too, otherwise
16236 # it will coredump.
16237 lt_prog_compiler_pic='-fPIC -shared'
16238 ;;
16239
16240 osf3* | osf4* | osf5*)
16241 lt_prog_compiler_wl='-Wl,'
16242 # All OSF/1 code is PIC.
16243 lt_prog_compiler_static='-non_shared'
16244 ;;
16245
16246 rdos*)
16247 lt_prog_compiler_static='-non_shared'
16248 ;;
16249
16250 solaris*)
16251 lt_prog_compiler_pic='-KPIC'
16252 lt_prog_compiler_static='-Bstatic'
16253 case $cc_basename in
16254 f77* | f90* | f95*)
16255 lt_prog_compiler_wl='-Qoption ld ';;
16256 *)
16257 lt_prog_compiler_wl='-Wl,';;
16258 esac
16259 ;;
16260
16261 sunos4*)
16262 lt_prog_compiler_wl='-Qoption ld '
16263 lt_prog_compiler_pic='-PIC'
16264 lt_prog_compiler_static='-Bstatic'
16265 ;;
16266
16267 sysv4 | sysv4.2uw2* | sysv4.3*)
16268 lt_prog_compiler_wl='-Wl,'
16269 lt_prog_compiler_pic='-KPIC'
16270 lt_prog_compiler_static='-Bstatic'
16271 ;;
16272
16273 sysv4*MP*)
16274 if test -d /usr/nec ;then
16275 lt_prog_compiler_pic='-Kconform_pic'
16276 lt_prog_compiler_static='-Bstatic'
16277 fi
16278 ;;
16279
16280 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16281 lt_prog_compiler_wl='-Wl,'
16282 lt_prog_compiler_pic='-KPIC'
16283 lt_prog_compiler_static='-Bstatic'
16284 ;;
16285
16286 unicos*)
16287 lt_prog_compiler_wl='-Wl,'
16288 lt_prog_compiler_can_build_shared=no
16289 ;;
16290
16291 uts4*)
16292 lt_prog_compiler_pic='-pic'
16293 lt_prog_compiler_static='-Bstatic'
16294 ;;
16295
16296 *)
16297 lt_prog_compiler_can_build_shared=no
16298 ;;
16299 esac
16300 fi
16301
16302 case $host_os in
16303 # For platforms which do not support PIC, -DPIC is meaningless:
16304 *djgpp*)
16305 lt_prog_compiler_pic=
16306 ;;
16307 *)
16308 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16309 ;;
16310 esac
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16312 $as_echo "$lt_prog_compiler_pic" >&6; }
16313
16314
16315
16316
16317
16318
16319 #
16320 # Check to make sure the PIC flag actually works.
16321 #
16322 if test -n "$lt_prog_compiler_pic"; then
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16324 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16325 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16326 $as_echo_n "(cached) " >&6
16327 else
16328 lt_cv_prog_compiler_pic_works=no
16329 ac_outfile=conftest.$ac_objext
16330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16331 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16332 # Insert the option either (1) after the last *FLAGS variable, or
16333 # (2) before a word containing "conftest.", or (3) at the end.
16334 # Note that $ac_compile itself does not contain backslashes and begins
16335 # with a dollar sign (not a hyphen), so the echo should work correctly.
16336 # The option is referenced via a variable to avoid confusing sed.
16337 lt_compile=`echo "$ac_compile" | $SED \
16338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16340 -e 's:$: $lt_compiler_flag:'`
16341 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16342 (eval "$lt_compile" 2>conftest.err)
16343 ac_status=$?
16344 cat conftest.err >&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 if (exit $ac_status) && test -s "$ac_outfile"; then
16347 # The compiler can only warn and ignore the option if not recognized
16348 # So say no if there are warnings other than the usual output.
16349 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16351 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16352 lt_cv_prog_compiler_pic_works=yes
16353 fi
16354 fi
16355 $RM conftest*
16356
16357 fi
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16359 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16360
16361 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16362 case $lt_prog_compiler_pic in
16363 "" | " "*) ;;
16364 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16365 esac
16366 else
16367 lt_prog_compiler_pic=
16368 lt_prog_compiler_can_build_shared=no
16369 fi
16370
16371 fi
16372
16373
16374
16375
16376
16377
16378 #
16379 # Check to make sure the static flag actually works.
16380 #
16381 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16383 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16384 if ${lt_cv_prog_compiler_static_works+:} false; then :
16385 $as_echo_n "(cached) " >&6
16386 else
16387 lt_cv_prog_compiler_static_works=no
16388 save_LDFLAGS="$LDFLAGS"
16389 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16390 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16391 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16392 # The linker can only warn and ignore the option if not recognized
16393 # So say no if there are warnings
16394 if test -s conftest.err; then
16395 # Append any errors to the config.log.
16396 cat conftest.err 1>&5
16397 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16399 if diff conftest.exp conftest.er2 >/dev/null; then
16400 lt_cv_prog_compiler_static_works=yes
16401 fi
16402 else
16403 lt_cv_prog_compiler_static_works=yes
16404 fi
16405 fi
16406 $RM -r conftest*
16407 LDFLAGS="$save_LDFLAGS"
16408
16409 fi
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16411 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16412
16413 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16414 :
16415 else
16416 lt_prog_compiler_static=
16417 fi
16418
16419
16420
16421
16422
16423
16424
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16426 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16427 if ${lt_cv_prog_compiler_c_o+:} false; then :
16428 $as_echo_n "(cached) " >&6
16429 else
16430 lt_cv_prog_compiler_c_o=no
16431 $RM -r conftest 2>/dev/null
16432 mkdir conftest
16433 cd conftest
16434 mkdir out
16435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16436
16437 lt_compiler_flag="-o out/conftest2.$ac_objext"
16438 # Insert the option either (1) after the last *FLAGS variable, or
16439 # (2) before a word containing "conftest.", or (3) at the end.
16440 # Note that $ac_compile itself does not contain backslashes and begins
16441 # with a dollar sign (not a hyphen), so the echo should work correctly.
16442 lt_compile=`echo "$ac_compile" | $SED \
16443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16445 -e 's:$: $lt_compiler_flag:'`
16446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16447 (eval "$lt_compile" 2>out/conftest.err)
16448 ac_status=$?
16449 cat out/conftest.err >&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16452 then
16453 # The compiler can only warn and ignore the option if not recognized
16454 # So say no if there are warnings
16455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16456 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16457 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16458 lt_cv_prog_compiler_c_o=yes
16459 fi
16460 fi
16461 chmod u+w . 2>&5
16462 $RM conftest*
16463 # SGI C++ compiler will create directory out/ii_files/ for
16464 # template instantiation
16465 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16466 $RM out/* && rmdir out
16467 cd ..
16468 $RM -r conftest
16469 $RM conftest*
16470
16471 fi
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16473 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16474
16475
16476
16477
16478
16479
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16481 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16482 if ${lt_cv_prog_compiler_c_o+:} false; then :
16483 $as_echo_n "(cached) " >&6
16484 else
16485 lt_cv_prog_compiler_c_o=no
16486 $RM -r conftest 2>/dev/null
16487 mkdir conftest
16488 cd conftest
16489 mkdir out
16490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16491
16492 lt_compiler_flag="-o out/conftest2.$ac_objext"
16493 # Insert the option either (1) after the last *FLAGS variable, or
16494 # (2) before a word containing "conftest.", or (3) at the end.
16495 # Note that $ac_compile itself does not contain backslashes and begins
16496 # with a dollar sign (not a hyphen), so the echo should work correctly.
16497 lt_compile=`echo "$ac_compile" | $SED \
16498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16500 -e 's:$: $lt_compiler_flag:'`
16501 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16502 (eval "$lt_compile" 2>out/conftest.err)
16503 ac_status=$?
16504 cat out/conftest.err >&5
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16507 then
16508 # The compiler can only warn and ignore the option if not recognized
16509 # So say no if there are warnings
16510 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16511 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16512 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16513 lt_cv_prog_compiler_c_o=yes
16514 fi
16515 fi
16516 chmod u+w . 2>&5
16517 $RM conftest*
16518 # SGI C++ compiler will create directory out/ii_files/ for
16519 # template instantiation
16520 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16521 $RM out/* && rmdir out
16522 cd ..
16523 $RM -r conftest
16524 $RM conftest*
16525
16526 fi
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16528 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16529
16530
16531
16532
16533 hard_links="nottested"
16534 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16535 # do not overwrite the value of need_locks provided by the user
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16537 $as_echo_n "checking if we can lock with hard links... " >&6; }
16538 hard_links=yes
16539 $RM conftest*
16540 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16541 touch conftest.a
16542 ln conftest.a conftest.b 2>&5 || hard_links=no
16543 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16545 $as_echo "$hard_links" >&6; }
16546 if test "$hard_links" = no; then
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16548 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16549 need_locks=warn
16550 fi
16551 else
16552 need_locks=no
16553 fi
16554
16555
16556
16557
16558
16559
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16561 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16562
16563 runpath_var=
16564 allow_undefined_flag=
16565 always_export_symbols=no
16566 archive_cmds=
16567 archive_expsym_cmds=
16568 compiler_needs_object=no
16569 enable_shared_with_static_runtimes=no
16570 export_dynamic_flag_spec=
16571 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16572 hardcode_automatic=no
16573 hardcode_direct=no
16574 hardcode_direct_absolute=no
16575 hardcode_libdir_flag_spec=
16576 hardcode_libdir_flag_spec_ld=
16577 hardcode_libdir_separator=
16578 hardcode_minus_L=no
16579 hardcode_shlibpath_var=unsupported
16580 inherit_rpath=no
16581 link_all_deplibs=unknown
16582 module_cmds=
16583 module_expsym_cmds=
16584 old_archive_from_new_cmds=
16585 old_archive_from_expsyms_cmds=
16586 thread_safe_flag_spec=
16587 whole_archive_flag_spec=
16588 # include_expsyms should be a list of space-separated symbols to be *always*
16589 # included in the symbol list
16590 include_expsyms=
16591 # exclude_expsyms can be an extended regexp of symbols to exclude
16592 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16593 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16594 # as well as any symbol that contains `d'.
16595 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16596 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16597 # platforms (ab)use it in PIC code, but their linkers get confused if
16598 # the symbol is explicitly referenced. Since portable code cannot
16599 # rely on this symbol name, it's probably fine to never include it in
16600 # preloaded symbol tables.
16601 # Exclude shared library initialization/finalization symbols.
16602 extract_expsyms_cmds=
16603
16604 case $host_os in
16605 cygwin* | mingw* | pw32* | cegcc*)
16606 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16607 # When not using gcc, we currently assume that we are using
16608 # Microsoft Visual C++.
16609 if test "$GCC" != yes; then
16610 with_gnu_ld=no
16611 fi
16612 ;;
16613 interix*)
16614 # we just hope/assume this is gcc and not c89 (= MSVC++)
16615 with_gnu_ld=yes
16616 ;;
16617 openbsd*)
16618 with_gnu_ld=no
16619 ;;
16620 esac
16621
16622 ld_shlibs=yes
16623
16624 # On some targets, GNU ld is compatible enough with the native linker
16625 # that we're better off using the native interface for both.
16626 lt_use_gnu_ld_interface=no
16627 if test "$with_gnu_ld" = yes; then
16628 case $host_os in
16629 aix*)
16630 # The AIX port of GNU ld has always aspired to compatibility
16631 # with the native linker. However, as the warning in the GNU ld
16632 # block says, versions before 2.19.5* couldn't really create working
16633 # shared libraries, regardless of the interface used.
16634 case `$LD -v 2>&1` in
16635 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16636 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16637 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16638 *)
16639 lt_use_gnu_ld_interface=yes
16640 ;;
16641 esac
16642 ;;
16643 *)
16644 lt_use_gnu_ld_interface=yes
16645 ;;
16646 esac
16647 fi
16648
16649 if test "$lt_use_gnu_ld_interface" = yes; then
16650 # If archive_cmds runs LD, not CC, wlarc should be empty
16651 wlarc='${wl}'
16652
16653 # Set some defaults for GNU ld with shared library support. These
16654 # are reset later if shared libraries are not supported. Putting them
16655 # here allows them to be overridden if necessary.
16656 runpath_var=LD_RUN_PATH
16657 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16658 export_dynamic_flag_spec='${wl}--export-dynamic'
16659 # ancient GNU ld didn't support --whole-archive et. al.
16660 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16661 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16662 else
16663 whole_archive_flag_spec=
16664 fi
16665 supports_anon_versioning=no
16666 case `$LD -v 2>&1` in
16667 *GNU\ gold*) supports_anon_versioning=yes ;;
16668 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16669 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16670 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16671 *\ 2.11.*) ;; # other 2.11 versions
16672 *) supports_anon_versioning=yes ;;
16673 esac
16674
16675 # See if GNU ld supports shared libraries.
16676 case $host_os in
16677 aix[3-9]*)
16678 # On AIX/PPC, the GNU linker is very broken
16679 if test "$host_cpu" != ia64; then
16680 ld_shlibs=no
16681 cat <<_LT_EOF 1>&2
16682
16683 *** Warning: the GNU linker, at least up to release 2.19, is reported
16684 *** to be unable to reliably create shared libraries on AIX.
16685 *** Therefore, libtool is disabling shared libraries support. If you
16686 *** really care for shared libraries, you may want to install binutils
16687 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16688 *** You will then need to restart the configuration process.
16689
16690 _LT_EOF
16691 fi
16692 ;;
16693
16694 amigaos*)
16695 case $host_cpu in
16696 powerpc)
16697 # see comment about AmigaOS4 .so support
16698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16699 archive_expsym_cmds=''
16700 ;;
16701 m68k)
16702 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)'
16703 hardcode_libdir_flag_spec='-L$libdir'
16704 hardcode_minus_L=yes
16705 ;;
16706 esac
16707 ;;
16708
16709 beos*)
16710 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16711 allow_undefined_flag=unsupported
16712 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16713 # support --undefined. This deserves some investigation. FIXME
16714 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16715 else
16716 ld_shlibs=no
16717 fi
16718 ;;
16719
16720 cygwin* | mingw* | pw32* | cegcc*)
16721 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16722 # as there is no search path for DLLs.
16723 hardcode_libdir_flag_spec='-L$libdir'
16724 export_dynamic_flag_spec='${wl}--export-all-symbols'
16725 allow_undefined_flag=unsupported
16726 always_export_symbols=no
16727 enable_shared_with_static_runtimes=yes
16728 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16729
16730 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16732 # If the export-symbols file already is a .def file (1st line
16733 # is EXPORTS), use it as is; otherwise, prepend...
16734 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16735 cp $export_symbols $output_objdir/$soname.def;
16736 else
16737 echo EXPORTS > $output_objdir/$soname.def;
16738 cat $export_symbols >> $output_objdir/$soname.def;
16739 fi~
16740 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16741 else
16742 ld_shlibs=no
16743 fi
16744 ;;
16745
16746 haiku*)
16747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16748 link_all_deplibs=yes
16749 ;;
16750
16751 interix[3-9]*)
16752 hardcode_direct=no
16753 hardcode_shlibpath_var=no
16754 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16755 export_dynamic_flag_spec='${wl}-E'
16756 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16757 # Instead, shared libraries are loaded at an image base (0x10000000 by
16758 # default) and relocated if they conflict, which is a slow very memory
16759 # consuming and fragmenting process. To avoid this, we pick a random,
16760 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16761 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16762 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16763 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'
16764 ;;
16765
16766 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16767 tmp_diet=no
16768 if test "$host_os" = linux-dietlibc; then
16769 case $cc_basename in
16770 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16771 esac
16772 fi
16773 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16774 && test "$tmp_diet" = no
16775 then
16776 tmp_addflag=' $pic_flag'
16777 tmp_sharedflag='-shared'
16778 case $cc_basename,$host_cpu in
16779 pgcc*) # Portland Group C compiler
16780 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'
16781 tmp_addflag=' $pic_flag'
16782 ;;
16783 pgf77* | pgf90* | pgf95* | pgfortran*)
16784 # Portland Group f77 and f90 compilers
16785 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'
16786 tmp_addflag=' $pic_flag -Mnomain' ;;
16787 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16788 tmp_addflag=' -i_dynamic' ;;
16789 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16790 tmp_addflag=' -i_dynamic -nofor_main' ;;
16791 ifc* | ifort*) # Intel Fortran compiler
16792 tmp_addflag=' -nofor_main' ;;
16793 lf95*) # Lahey Fortran 8.1
16794 whole_archive_flag_spec=
16795 tmp_sharedflag='--shared' ;;
16796 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16797 tmp_sharedflag='-qmkshrobj'
16798 tmp_addflag= ;;
16799 nvcc*) # Cuda Compiler Driver 2.2
16800 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'
16801 compiler_needs_object=yes
16802 ;;
16803 esac
16804 case `$CC -V 2>&1 | sed 5q` in
16805 *Sun\ C*) # Sun C 5.9
16806 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'
16807 compiler_needs_object=yes
16808 tmp_sharedflag='-G' ;;
16809 *Sun\ F*) # Sun Fortran 8.3
16810 tmp_sharedflag='-G' ;;
16811 esac
16812 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16813
16814 if test "x$supports_anon_versioning" = xyes; then
16815 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16816 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16817 echo "local: *; };" >> $output_objdir/$libname.ver~
16818 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16819 fi
16820
16821 case $cc_basename in
16822 xlf* | bgf* | bgxlf* | mpixlf*)
16823 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16824 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16825 hardcode_libdir_flag_spec=
16826 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16827 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16828 if test "x$supports_anon_versioning" = xyes; then
16829 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16830 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16831 echo "local: *; };" >> $output_objdir/$libname.ver~
16832 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16833 fi
16834 ;;
16835 esac
16836 else
16837 ld_shlibs=no
16838 fi
16839 ;;
16840
16841 netbsd*)
16842 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16843 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16844 wlarc=
16845 else
16846 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16847 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16848 fi
16849 ;;
16850
16851 solaris*)
16852 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16853 ld_shlibs=no
16854 cat <<_LT_EOF 1>&2
16855
16856 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16857 *** create shared libraries on Solaris systems. Therefore, libtool
16858 *** is disabling shared libraries support. We urge you to upgrade GNU
16859 *** binutils to release 2.9.1 or newer. Another option is to modify
16860 *** your PATH or compiler configuration so that the native linker is
16861 *** used, and then restart.
16862
16863 _LT_EOF
16864 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16866 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16867 else
16868 ld_shlibs=no
16869 fi
16870 ;;
16871
16872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16873 case `$LD -v 2>&1` in
16874 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16875 ld_shlibs=no
16876 cat <<_LT_EOF 1>&2
16877
16878 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16879 *** reliably create shared libraries on SCO systems. Therefore, libtool
16880 *** is disabling shared libraries support. We urge you to upgrade GNU
16881 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16882 *** your PATH or compiler configuration so that the native linker is
16883 *** used, and then restart.
16884
16885 _LT_EOF
16886 ;;
16887 *)
16888 # For security reasons, it is highly recommended that you always
16889 # use absolute paths for naming shared libraries, and exclude the
16890 # DT_RUNPATH tag from executables and libraries. But doing so
16891 # requires that you compile everything twice, which is a pain.
16892 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16893 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16895 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16896 else
16897 ld_shlibs=no
16898 fi
16899 ;;
16900 esac
16901 ;;
16902
16903 sunos4*)
16904 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16905 wlarc=
16906 hardcode_direct=yes
16907 hardcode_shlibpath_var=no
16908 ;;
16909
16910 *)
16911 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16913 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16914 else
16915 ld_shlibs=no
16916 fi
16917 ;;
16918 esac
16919
16920 if test "$ld_shlibs" = no; then
16921 runpath_var=
16922 hardcode_libdir_flag_spec=
16923 export_dynamic_flag_spec=
16924 whole_archive_flag_spec=
16925 fi
16926 else
16927 # PORTME fill in a description of your system's linker (not GNU ld)
16928 case $host_os in
16929 aix3*)
16930 allow_undefined_flag=unsupported
16931 always_export_symbols=yes
16932 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'
16933 # Note: this linker hardcodes the directories in LIBPATH if there
16934 # are no directories specified by -L.
16935 hardcode_minus_L=yes
16936 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16937 # Neither direct hardcoding nor static linking is supported with a
16938 # broken collect2.
16939 hardcode_direct=unsupported
16940 fi
16941 ;;
16942
16943 aix[4-9]*)
16944 if test "$host_cpu" = ia64; then
16945 # On IA64, the linker does run time linking by default, so we don't
16946 # have to do anything special.
16947 aix_use_runtimelinking=no
16948 exp_sym_flag='-Bexport'
16949 no_entry_flag=""
16950 else
16951 # If we're using GNU nm, then we don't want the "-C" option.
16952 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16953 # Also, AIX nm treats weak defined symbols like other global
16954 # defined symbols, whereas GNU nm marks them as "W".
16955 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16956 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'
16957 else
16958 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'
16959 fi
16960 aix_use_runtimelinking=no
16961
16962 # Test if we are trying to use run time linking or normal
16963 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16964 # need to do runtime linking.
16965 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16966 for ld_flag in $LDFLAGS; do
16967 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16968 aix_use_runtimelinking=yes
16969 break
16970 fi
16971 done
16972 ;;
16973 esac
16974
16975 exp_sym_flag='-bexport'
16976 no_entry_flag='-bnoentry'
16977 fi
16978
16979 # When large executables or shared objects are built, AIX ld can
16980 # have problems creating the table of contents. If linking a library
16981 # or program results in "error TOC overflow" add -mminimal-toc to
16982 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16983 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16984
16985 archive_cmds=''
16986 hardcode_direct=yes
16987 hardcode_direct_absolute=yes
16988 hardcode_libdir_separator=':'
16989 link_all_deplibs=yes
16990 file_list_spec='${wl}-f,'
16991
16992 if test "$GCC" = yes; then
16993 case $host_os in aix4.[012]|aix4.[012].*)
16994 # We only want to do this on AIX 4.2 and lower, the check
16995 # below for broken collect2 doesn't work under 4.3+
16996 collect2name=`${CC} -print-prog-name=collect2`
16997 if test -f "$collect2name" &&
16998 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16999 then
17000 # We have reworked collect2
17001 :
17002 else
17003 # We have old collect2
17004 hardcode_direct=unsupported
17005 # It fails to find uninstalled libraries when the uninstalled
17006 # path is not listed in the libpath. Setting hardcode_minus_L
17007 # to unsupported forces relinking
17008 hardcode_minus_L=yes
17009 hardcode_libdir_flag_spec='-L$libdir'
17010 hardcode_libdir_separator=
17011 fi
17012 ;;
17013 esac
17014 shared_flag='-shared'
17015 if test "$aix_use_runtimelinking" = yes; then
17016 shared_flag="$shared_flag "'${wl}-G'
17017 fi
17018 else
17019 # not using gcc
17020 if test "$host_cpu" = ia64; then
17021 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17022 # chokes on -Wl,-G. The following line is correct:
17023 shared_flag='-G'
17024 else
17025 if test "$aix_use_runtimelinking" = yes; then
17026 shared_flag='${wl}-G'
17027 else
17028 shared_flag='${wl}-bM:SRE'
17029 fi
17030 fi
17031 fi
17032
17033 export_dynamic_flag_spec='${wl}-bexpall'
17034 # It seems that -bexpall does not export symbols beginning with
17035 # underscore (_), so it is better to generate a list of symbols to export.
17036 always_export_symbols=yes
17037 if test "$aix_use_runtimelinking" = yes; then
17038 # Warning - without using the other runtime loading flags (-brtl),
17039 # -berok will link without error, but may produce a broken library.
17040 allow_undefined_flag='-berok'
17041 # Determine the default libpath from the value encoded in an
17042 # empty executable.
17043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17044 /* end confdefs.h. */
17045
17046 int
17047 main ()
17048 {
17049
17050 ;
17051 return 0;
17052 }
17053 _ACEOF
17054 if ac_fn_c_try_link "$LINENO"; then :
17055
17056 lt_aix_libpath_sed='
17057 /Import File Strings/,/^$/ {
17058 /^0/ {
17059 s/^0 *\(.*\)$/\1/
17060 p
17061 }
17062 }'
17063 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17064 # Check for a 64-bit object if we didn't find anything.
17065 if test -z "$aix_libpath"; then
17066 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17067 fi
17068 fi
17069 rm -f core conftest.err conftest.$ac_objext \
17070 conftest$ac_exeext conftest.$ac_ext
17071 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17072
17073 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17074 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"
17075 else
17076 if test "$host_cpu" = ia64; then
17077 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17078 allow_undefined_flag="-z nodefs"
17079 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"
17080 else
17081 # Determine the default libpath from the value encoded in an
17082 # empty executable.
17083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084 /* end confdefs.h. */
17085
17086 int
17087 main ()
17088 {
17089
17090 ;
17091 return 0;
17092 }
17093 _ACEOF
17094 if ac_fn_c_try_link "$LINENO"; then :
17095
17096 lt_aix_libpath_sed='
17097 /Import File Strings/,/^$/ {
17098 /^0/ {
17099 s/^0 *\(.*\)$/\1/
17100 p
17101 }
17102 }'
17103 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17104 # Check for a 64-bit object if we didn't find anything.
17105 if test -z "$aix_libpath"; then
17106 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17107 fi
17108 fi
17109 rm -f core conftest.err conftest.$ac_objext \
17110 conftest$ac_exeext conftest.$ac_ext
17111 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17112
17113 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17114 # Warning - without using the other run time loading flags,
17115 # -berok will link without error, but may produce a broken library.
17116 no_undefined_flag=' ${wl}-bernotok'
17117 allow_undefined_flag=' ${wl}-berok'
17118 if test "$with_gnu_ld" = yes; then
17119 # We only use this code for GNU lds that support --whole-archive.
17120 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17121 else
17122 # Exported symbols can be pulled into shared objects from archives
17123 whole_archive_flag_spec='$convenience'
17124 fi
17125 archive_cmds_need_lc=yes
17126 # This is similar to how AIX traditionally builds its shared libraries.
17127 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'
17128 fi
17129 fi
17130 ;;
17131
17132 amigaos*)
17133 case $host_cpu in
17134 powerpc)
17135 # see comment about AmigaOS4 .so support
17136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17137 archive_expsym_cmds=''
17138 ;;
17139 m68k)
17140 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)'
17141 hardcode_libdir_flag_spec='-L$libdir'
17142 hardcode_minus_L=yes
17143 ;;
17144 esac
17145 ;;
17146
17147 bsdi[45]*)
17148 export_dynamic_flag_spec=-rdynamic
17149 ;;
17150
17151 cygwin* | mingw* | pw32* | cegcc*)
17152 # When not using gcc, we currently assume that we are using
17153 # Microsoft Visual C++.
17154 # hardcode_libdir_flag_spec is actually meaningless, as there is
17155 # no search path for DLLs.
17156 hardcode_libdir_flag_spec=' '
17157 allow_undefined_flag=unsupported
17158 # Tell ltmain to make .lib files, not .a files.
17159 libext=lib
17160 # Tell ltmain to make .dll files, not .so files.
17161 shrext_cmds=".dll"
17162 # FIXME: Setting linknames here is a bad hack.
17163 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17164 # The linker will automatically build a .lib file if we build a DLL.
17165 old_archive_from_new_cmds='true'
17166 # FIXME: Should let the user specify the lib program.
17167 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17168 fix_srcfile_path='`cygpath -w "$srcfile"`'
17169 enable_shared_with_static_runtimes=yes
17170 ;;
17171
17172 darwin* | rhapsody*)
17173
17174
17175 archive_cmds_need_lc=no
17176 hardcode_direct=no
17177 hardcode_automatic=yes
17178 hardcode_shlibpath_var=unsupported
17179 if test "$lt_cv_ld_force_load" = "yes"; then
17180 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\"`'
17181 else
17182 whole_archive_flag_spec=''
17183 fi
17184 link_all_deplibs=yes
17185 allow_undefined_flag="$_lt_dar_allow_undefined"
17186 case $cc_basename in
17187 ifort*) _lt_dar_can_shared=yes ;;
17188 *) _lt_dar_can_shared=$GCC ;;
17189 esac
17190 if test "$_lt_dar_can_shared" = "yes"; then
17191 output_verbose_link_cmd=func_echo_all
17192 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17193 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17194 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}"
17195 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}"
17196
17197 else
17198 ld_shlibs=no
17199 fi
17200
17201 ;;
17202
17203 dgux*)
17204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17205 hardcode_libdir_flag_spec='-L$libdir'
17206 hardcode_shlibpath_var=no
17207 ;;
17208
17209 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17210 # support. Future versions do this automatically, but an explicit c++rt0.o
17211 # does not break anything, and helps significantly (at the cost of a little
17212 # extra space).
17213 freebsd2.2*)
17214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17215 hardcode_libdir_flag_spec='-R$libdir'
17216 hardcode_direct=yes
17217 hardcode_shlibpath_var=no
17218 ;;
17219
17220 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17221 freebsd2.*)
17222 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17223 hardcode_direct=yes
17224 hardcode_minus_L=yes
17225 hardcode_shlibpath_var=no
17226 ;;
17227
17228 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17229 freebsd* | dragonfly*)
17230 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17231 hardcode_libdir_flag_spec='-R$libdir'
17232 hardcode_direct=yes
17233 hardcode_shlibpath_var=no
17234 ;;
17235
17236 hpux9*)
17237 if test "$GCC" = yes; then
17238 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'
17239 else
17240 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'
17241 fi
17242 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17243 hardcode_libdir_separator=:
17244 hardcode_direct=yes
17245
17246 # hardcode_minus_L: Not really in the search PATH,
17247 # but as the default location of the library.
17248 hardcode_minus_L=yes
17249 export_dynamic_flag_spec='${wl}-E'
17250 ;;
17251
17252 hpux10*)
17253 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17254 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17255 else
17256 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17257 fi
17258 if test "$with_gnu_ld" = no; then
17259 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17260 hardcode_libdir_flag_spec_ld='+b $libdir'
17261 hardcode_libdir_separator=:
17262 hardcode_direct=yes
17263 hardcode_direct_absolute=yes
17264 export_dynamic_flag_spec='${wl}-E'
17265 # hardcode_minus_L: Not really in the search PATH,
17266 # but as the default location of the library.
17267 hardcode_minus_L=yes
17268 fi
17269 ;;
17270
17271 hpux11*)
17272 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17273 case $host_cpu in
17274 hppa*64*)
17275 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17276 ;;
17277 ia64*)
17278 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17279 ;;
17280 *)
17281 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17282 ;;
17283 esac
17284 else
17285 case $host_cpu in
17286 hppa*64*)
17287 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17288 ;;
17289 ia64*)
17290 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17291 ;;
17292 *)
17293
17294 # Older versions of the 11.00 compiler do not understand -b yet
17295 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17297 $as_echo_n "checking if $CC understands -b... " >&6; }
17298 if ${lt_cv_prog_compiler__b+:} false; then :
17299 $as_echo_n "(cached) " >&6
17300 else
17301 lt_cv_prog_compiler__b=no
17302 save_LDFLAGS="$LDFLAGS"
17303 LDFLAGS="$LDFLAGS -b"
17304 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17305 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17306 # The linker can only warn and ignore the option if not recognized
17307 # So say no if there are warnings
17308 if test -s conftest.err; then
17309 # Append any errors to the config.log.
17310 cat conftest.err 1>&5
17311 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17313 if diff conftest.exp conftest.er2 >/dev/null; then
17314 lt_cv_prog_compiler__b=yes
17315 fi
17316 else
17317 lt_cv_prog_compiler__b=yes
17318 fi
17319 fi
17320 $RM -r conftest*
17321 LDFLAGS="$save_LDFLAGS"
17322
17323 fi
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17325 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17326
17327 if test x"$lt_cv_prog_compiler__b" = xyes; then
17328 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17329 else
17330 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17331 fi
17332
17333 ;;
17334 esac
17335 fi
17336 if test "$with_gnu_ld" = no; then
17337 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17338 hardcode_libdir_separator=:
17339
17340 case $host_cpu in
17341 hppa*64*|ia64*)
17342 hardcode_direct=no
17343 hardcode_shlibpath_var=no
17344 ;;
17345 *)
17346 hardcode_direct=yes
17347 hardcode_direct_absolute=yes
17348 export_dynamic_flag_spec='${wl}-E'
17349
17350 # hardcode_minus_L: Not really in the search PATH,
17351 # but as the default location of the library.
17352 hardcode_minus_L=yes
17353 ;;
17354 esac
17355 fi
17356 ;;
17357
17358 irix5* | irix6* | nonstopux*)
17359 if test "$GCC" = yes; then
17360 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'
17361 # Try to use the -exported_symbol ld option, if it does not
17362 # work, assume that -exports_file does not work either and
17363 # implicitly export all symbols.
17364 save_LDFLAGS="$LDFLAGS"
17365 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17367 /* end confdefs.h. */
17368 int foo(void) {}
17369 _ACEOF
17370 if ac_fn_c_try_link "$LINENO"; then :
17371 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'
17372
17373 fi
17374 rm -f core conftest.err conftest.$ac_objext \
17375 conftest$ac_exeext conftest.$ac_ext
17376 LDFLAGS="$save_LDFLAGS"
17377 else
17378 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'
17379 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'
17380 fi
17381 archive_cmds_need_lc='no'
17382 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17383 hardcode_libdir_separator=:
17384 inherit_rpath=yes
17385 link_all_deplibs=yes
17386 ;;
17387
17388 netbsd*)
17389 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17390 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17391 else
17392 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17393 fi
17394 hardcode_libdir_flag_spec='-R$libdir'
17395 hardcode_direct=yes
17396 hardcode_shlibpath_var=no
17397 ;;
17398
17399 newsos6)
17400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17401 hardcode_direct=yes
17402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17403 hardcode_libdir_separator=:
17404 hardcode_shlibpath_var=no
17405 ;;
17406
17407 *nto* | *qnx*)
17408 ;;
17409
17410 openbsd*)
17411 if test -f /usr/libexec/ld.so; then
17412 hardcode_direct=yes
17413 hardcode_shlibpath_var=no
17414 hardcode_direct_absolute=yes
17415 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17416 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17417 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17418 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17419 export_dynamic_flag_spec='${wl}-E'
17420 else
17421 case $host_os in
17422 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17423 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17424 hardcode_libdir_flag_spec='-R$libdir'
17425 ;;
17426 *)
17427 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17428 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17429 ;;
17430 esac
17431 fi
17432 else
17433 ld_shlibs=no
17434 fi
17435 ;;
17436
17437 os2*)
17438 hardcode_libdir_flag_spec='-L$libdir'
17439 hardcode_minus_L=yes
17440 allow_undefined_flag=unsupported
17441 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'
17442 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17443 ;;
17444
17445 osf3*)
17446 if test "$GCC" = yes; then
17447 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17448 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'
17449 else
17450 allow_undefined_flag=' -expect_unresolved \*'
17451 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'
17452 fi
17453 archive_cmds_need_lc='no'
17454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17455 hardcode_libdir_separator=:
17456 ;;
17457
17458 osf4* | osf5*) # as osf3* with the addition of -msym flag
17459 if test "$GCC" = yes; then
17460 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17461 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'
17462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17463 else
17464 allow_undefined_flag=' -expect_unresolved \*'
17465 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'
17466 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~
17467 $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'
17468
17469 # Both c and cxx compiler support -rpath directly
17470 hardcode_libdir_flag_spec='-rpath $libdir'
17471 fi
17472 archive_cmds_need_lc='no'
17473 hardcode_libdir_separator=:
17474 ;;
17475
17476 solaris*)
17477 no_undefined_flag=' -z defs'
17478 if test "$GCC" = yes; then
17479 wlarc='${wl}'
17480 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17481 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17482 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17483 else
17484 case `$CC -V 2>&1` in
17485 *"Compilers 5.0"*)
17486 wlarc=''
17487 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17488 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17489 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17490 ;;
17491 *)
17492 wlarc='${wl}'
17493 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17494 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17495 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17496 ;;
17497 esac
17498 fi
17499 hardcode_libdir_flag_spec='-R$libdir'
17500 hardcode_shlibpath_var=no
17501 case $host_os in
17502 solaris2.[0-5] | solaris2.[0-5].*) ;;
17503 *)
17504 # The compiler driver will combine and reorder linker options,
17505 # but understands `-z linker_flag'. GCC discards it without `$wl',
17506 # but is careful enough not to reorder.
17507 # Supported since Solaris 2.6 (maybe 2.5.1?)
17508 if test "$GCC" = yes; then
17509 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17510 else
17511 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17512 fi
17513 ;;
17514 esac
17515 link_all_deplibs=yes
17516 ;;
17517
17518 sunos4*)
17519 if test "x$host_vendor" = xsequent; then
17520 # Use $CC to link under sequent, because it throws in some extra .o
17521 # files that make .init and .fini sections work.
17522 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17523 else
17524 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17525 fi
17526 hardcode_libdir_flag_spec='-L$libdir'
17527 hardcode_direct=yes
17528 hardcode_minus_L=yes
17529 hardcode_shlibpath_var=no
17530 ;;
17531
17532 sysv4)
17533 case $host_vendor in
17534 sni)
17535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17536 hardcode_direct=yes # is this really true???
17537 ;;
17538 siemens)
17539 ## LD is ld it makes a PLAMLIB
17540 ## CC just makes a GrossModule.
17541 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17542 reload_cmds='$CC -r -o $output$reload_objs'
17543 hardcode_direct=no
17544 ;;
17545 motorola)
17546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17547 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17548 ;;
17549 esac
17550 runpath_var='LD_RUN_PATH'
17551 hardcode_shlibpath_var=no
17552 ;;
17553
17554 sysv4.3*)
17555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17556 hardcode_shlibpath_var=no
17557 export_dynamic_flag_spec='-Bexport'
17558 ;;
17559
17560 sysv4*MP*)
17561 if test -d /usr/nec; then
17562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17563 hardcode_shlibpath_var=no
17564 runpath_var=LD_RUN_PATH
17565 hardcode_runpath_var=yes
17566 ld_shlibs=yes
17567 fi
17568 ;;
17569
17570 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17571 no_undefined_flag='${wl}-z,text'
17572 archive_cmds_need_lc=no
17573 hardcode_shlibpath_var=no
17574 runpath_var='LD_RUN_PATH'
17575
17576 if test "$GCC" = yes; then
17577 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17578 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17579 else
17580 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17581 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17582 fi
17583 ;;
17584
17585 sysv5* | sco3.2v5* | sco5v6*)
17586 # Note: We can NOT use -z defs as we might desire, because we do not
17587 # link with -lc, and that would cause any symbols used from libc to
17588 # always be unresolved, which means just about no library would
17589 # ever link correctly. If we're not using GNU ld we use -z text
17590 # though, which does catch some bad symbols but isn't as heavy-handed
17591 # as -z defs.
17592 no_undefined_flag='${wl}-z,text'
17593 allow_undefined_flag='${wl}-z,nodefs'
17594 archive_cmds_need_lc=no
17595 hardcode_shlibpath_var=no
17596 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17597 hardcode_libdir_separator=':'
17598 link_all_deplibs=yes
17599 export_dynamic_flag_spec='${wl}-Bexport'
17600 runpath_var='LD_RUN_PATH'
17601
17602 if test "$GCC" = yes; then
17603 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17604 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17605 else
17606 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17607 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17608 fi
17609 ;;
17610
17611 uts4*)
17612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17613 hardcode_libdir_flag_spec='-L$libdir'
17614 hardcode_shlibpath_var=no
17615 ;;
17616
17617 *)
17618 ld_shlibs=no
17619 ;;
17620 esac
17621
17622 if test x$host_vendor = xsni; then
17623 case $host in
17624 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17625 export_dynamic_flag_spec='${wl}-Blargedynsym'
17626 ;;
17627 esac
17628 fi
17629 fi
17630
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17632 $as_echo "$ld_shlibs" >&6; }
17633 test "$ld_shlibs" = no && can_build_shared=no
17634
17635 with_gnu_ld=$with_gnu_ld
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651 #
17652 # Do we need to explicitly link libc?
17653 #
17654 case "x$archive_cmds_need_lc" in
17655 x|xyes)
17656 # Assume -lc should be added
17657 archive_cmds_need_lc=yes
17658
17659 if test "$enable_shared" = yes && test "$GCC" = yes; then
17660 case $archive_cmds in
17661 *'~'*)
17662 # FIXME: we may have to deal with multi-command sequences.
17663 ;;
17664 '$CC '*)
17665 # Test whether the compiler implicitly links with -lc since on some
17666 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17667 # to ld, don't add -lc before -lgcc.
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17669 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17670 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17671 $as_echo_n "(cached) " >&6
17672 else
17673 $RM conftest*
17674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17675
17676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17677 (eval $ac_compile) 2>&5
17678 ac_status=$?
17679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17680 test $ac_status = 0; } 2>conftest.err; then
17681 soname=conftest
17682 lib=conftest
17683 libobjs=conftest.$ac_objext
17684 deplibs=
17685 wl=$lt_prog_compiler_wl
17686 pic_flag=$lt_prog_compiler_pic
17687 compiler_flags=-v
17688 linker_flags=-v
17689 verstring=
17690 output_objdir=.
17691 libname=conftest
17692 lt_save_allow_undefined_flag=$allow_undefined_flag
17693 allow_undefined_flag=
17694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17695 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17696 ac_status=$?
17697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17698 test $ac_status = 0; }
17699 then
17700 lt_cv_archive_cmds_need_lc=no
17701 else
17702 lt_cv_archive_cmds_need_lc=yes
17703 fi
17704 allow_undefined_flag=$lt_save_allow_undefined_flag
17705 else
17706 cat conftest.err 1>&5
17707 fi
17708 $RM conftest*
17709
17710 fi
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17712 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17713 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17714 ;;
17715 esac
17716 fi
17717 ;;
17718 esac
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17877 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17878
17879 if test "$GCC" = yes; then
17880 case $host_os in
17881 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17882 *) lt_awk_arg="/^libraries:/" ;;
17883 esac
17884 case $host_os in
17885 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17886 *) lt_sed_strip_eq="s,=/,/,g" ;;
17887 esac
17888 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17889 case $lt_search_path_spec in
17890 *\;*)
17891 # if the path contains ";" then we assume it to be the separator
17892 # otherwise default to the standard path separator (i.e. ":") - it is
17893 # assumed that no part of a normal pathname contains ";" but that should
17894 # okay in the real world where ";" in dirpaths is itself problematic.
17895 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17896 ;;
17897 *)
17898 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17899 ;;
17900 esac
17901 # Ok, now we have the path, separated by spaces, we can step through it
17902 # and add multilib dir if necessary.
17903 lt_tmp_lt_search_path_spec=
17904 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17905 for lt_sys_path in $lt_search_path_spec; do
17906 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17907 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17908 else
17909 test -d "$lt_sys_path" && \
17910 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17911 fi
17912 done
17913 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17914 BEGIN {RS=" "; FS="/|\n";} {
17915 lt_foo="";
17916 lt_count=0;
17917 for (lt_i = NF; lt_i > 0; lt_i--) {
17918 if ($lt_i != "" && $lt_i != ".") {
17919 if ($lt_i == "..") {
17920 lt_count++;
17921 } else {
17922 if (lt_count == 0) {
17923 lt_foo="/" $lt_i lt_foo;
17924 } else {
17925 lt_count--;
17926 }
17927 }
17928 }
17929 }
17930 if (lt_foo != "") { lt_freq[lt_foo]++; }
17931 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17932 }'`
17933 # AWK program above erroneously prepends '/' to C:/dos/paths
17934 # for these hosts.
17935 case $host_os in
17936 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17937 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17938 esac
17939 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17940 else
17941 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17942 fi
17943 library_names_spec=
17944 libname_spec='lib$name'
17945 soname_spec=
17946 shrext_cmds=".so"
17947 postinstall_cmds=
17948 postuninstall_cmds=
17949 finish_cmds=
17950 finish_eval=
17951 shlibpath_var=
17952 shlibpath_overrides_runpath=unknown
17953 version_type=none
17954 dynamic_linker="$host_os ld.so"
17955 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17956 need_lib_prefix=unknown
17957 hardcode_into_libs=no
17958
17959 # when you set need_version to no, make sure it does not cause -set_version
17960 # flags to be left without arguments
17961 need_version=unknown
17962
17963 case $host_os in
17964 aix3*)
17965 version_type=linux
17966 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17967 shlibpath_var=LIBPATH
17968
17969 # AIX 3 has no versioning support, so we append a major version to the name.
17970 soname_spec='${libname}${release}${shared_ext}$major'
17971 ;;
17972
17973 aix[4-9]*)
17974 version_type=linux
17975 need_lib_prefix=no
17976 need_version=no
17977 hardcode_into_libs=yes
17978 if test "$host_cpu" = ia64; then
17979 # AIX 5 supports IA64
17980 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17981 shlibpath_var=LD_LIBRARY_PATH
17982 else
17983 # With GCC up to 2.95.x, collect2 would create an import file
17984 # for dependence libraries. The import file would start with
17985 # the line `#! .'. This would cause the generated library to
17986 # depend on `.', always an invalid library. This was fixed in
17987 # development snapshots of GCC prior to 3.0.
17988 case $host_os in
17989 aix4 | aix4.[01] | aix4.[01].*)
17990 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17991 echo ' yes '
17992 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17993 :
17994 else
17995 can_build_shared=no
17996 fi
17997 ;;
17998 esac
17999 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18000 # soname into executable. Probably we can add versioning support to
18001 # collect2, so additional links can be useful in future.
18002 if test "$aix_use_runtimelinking" = yes; then
18003 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18004 # instead of lib<name>.a to let people know that these are not
18005 # typical AIX shared libraries.
18006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18007 else
18008 # We preserve .a as extension for shared libraries through AIX4.2
18009 # and later when we are not doing run time linking.
18010 library_names_spec='${libname}${release}.a $libname.a'
18011 soname_spec='${libname}${release}${shared_ext}$major'
18012 fi
18013 shlibpath_var=LIBPATH
18014 fi
18015 ;;
18016
18017 amigaos*)
18018 case $host_cpu in
18019 powerpc)
18020 # Since July 2007 AmigaOS4 officially supports .so libraries.
18021 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18023 ;;
18024 m68k)
18025 library_names_spec='$libname.ixlibrary $libname.a'
18026 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18027 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'
18028 ;;
18029 esac
18030 ;;
18031
18032 beos*)
18033 library_names_spec='${libname}${shared_ext}'
18034 dynamic_linker="$host_os ld.so"
18035 shlibpath_var=LIBRARY_PATH
18036 ;;
18037
18038 bsdi[45]*)
18039 version_type=linux
18040 need_version=no
18041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18042 soname_spec='${libname}${release}${shared_ext}$major'
18043 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18044 shlibpath_var=LD_LIBRARY_PATH
18045 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18046 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18047 # the default ld.so.conf also contains /usr/contrib/lib and
18048 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18049 # libtool to hard-code these into programs
18050 ;;
18051
18052 cygwin* | mingw* | pw32* | cegcc*)
18053 version_type=windows
18054 shrext_cmds=".dll"
18055 need_version=no
18056 need_lib_prefix=no
18057
18058 case $GCC,$host_os in
18059 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18060 library_names_spec='$libname.dll.a'
18061 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18062 postinstall_cmds='base_file=`basename \${file}`~
18063 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18064 dldir=$destdir/`dirname \$dlpath`~
18065 test -d \$dldir || mkdir -p \$dldir~
18066 $install_prog $dir/$dlname \$dldir/$dlname~
18067 chmod a+x \$dldir/$dlname~
18068 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18069 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18070 fi'
18071 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18072 dlpath=$dir/\$dldll~
18073 $RM \$dlpath'
18074 shlibpath_overrides_runpath=yes
18075
18076 case $host_os in
18077 cygwin*)
18078 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18079 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18080
18081 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18082 ;;
18083 mingw* | cegcc*)
18084 # MinGW DLLs use traditional 'lib' prefix
18085 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18086 ;;
18087 pw32*)
18088 # pw32 DLLs use 'pw' prefix rather than 'lib'
18089 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18090 ;;
18091 esac
18092 ;;
18093
18094 *)
18095 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18096 ;;
18097 esac
18098 dynamic_linker='Win32 ld.exe'
18099 # FIXME: first we should search . and the directory the executable is in
18100 shlibpath_var=PATH
18101 ;;
18102
18103 darwin* | rhapsody*)
18104 dynamic_linker="$host_os dyld"
18105 version_type=darwin
18106 need_lib_prefix=no
18107 need_version=no
18108 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18109 soname_spec='${libname}${release}${major}$shared_ext'
18110 shlibpath_overrides_runpath=yes
18111 shlibpath_var=DYLD_LIBRARY_PATH
18112 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18113
18114 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18115 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18116 ;;
18117
18118 dgux*)
18119 version_type=linux
18120 need_lib_prefix=no
18121 need_version=no
18122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18123 soname_spec='${libname}${release}${shared_ext}$major'
18124 shlibpath_var=LD_LIBRARY_PATH
18125 ;;
18126
18127 freebsd* | dragonfly*)
18128 # DragonFly does not have aout. When/if they implement a new
18129 # versioning mechanism, adjust this.
18130 if test -x /usr/bin/objformat; then
18131 objformat=`/usr/bin/objformat`
18132 else
18133 case $host_os in
18134 freebsd[23].*) objformat=aout ;;
18135 *) objformat=elf ;;
18136 esac
18137 fi
18138 version_type=freebsd-$objformat
18139 case $version_type in
18140 freebsd-elf*)
18141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18142 need_version=no
18143 need_lib_prefix=no
18144 ;;
18145 freebsd-*)
18146 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18147 need_version=yes
18148 ;;
18149 esac
18150 shlibpath_var=LD_LIBRARY_PATH
18151 case $host_os in
18152 freebsd2.*)
18153 shlibpath_overrides_runpath=yes
18154 ;;
18155 freebsd3.[01]* | freebsdelf3.[01]*)
18156 shlibpath_overrides_runpath=yes
18157 hardcode_into_libs=yes
18158 ;;
18159 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18160 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18161 shlibpath_overrides_runpath=no
18162 hardcode_into_libs=yes
18163 ;;
18164 *) # from 4.6 on, and DragonFly
18165 shlibpath_overrides_runpath=yes
18166 hardcode_into_libs=yes
18167 ;;
18168 esac
18169 ;;
18170
18171 gnu*)
18172 version_type=linux
18173 need_lib_prefix=no
18174 need_version=no
18175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18176 soname_spec='${libname}${release}${shared_ext}$major'
18177 shlibpath_var=LD_LIBRARY_PATH
18178 hardcode_into_libs=yes
18179 ;;
18180
18181 haiku*)
18182 version_type=linux
18183 need_lib_prefix=no
18184 need_version=no
18185 dynamic_linker="$host_os runtime_loader"
18186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18187 soname_spec='${libname}${release}${shared_ext}$major'
18188 shlibpath_var=LIBRARY_PATH
18189 shlibpath_overrides_runpath=yes
18190 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18191 hardcode_into_libs=yes
18192 ;;
18193
18194 hpux9* | hpux10* | hpux11*)
18195 # Give a soname corresponding to the major version so that dld.sl refuses to
18196 # link against other versions.
18197 version_type=sunos
18198 need_lib_prefix=no
18199 need_version=no
18200 case $host_cpu in
18201 ia64*)
18202 shrext_cmds='.so'
18203 hardcode_into_libs=yes
18204 dynamic_linker="$host_os dld.so"
18205 shlibpath_var=LD_LIBRARY_PATH
18206 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18208 soname_spec='${libname}${release}${shared_ext}$major'
18209 if test "X$HPUX_IA64_MODE" = X32; then
18210 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18211 else
18212 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18213 fi
18214 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18215 ;;
18216 hppa*64*)
18217 shrext_cmds='.sl'
18218 hardcode_into_libs=yes
18219 dynamic_linker="$host_os dld.sl"
18220 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18221 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18223 soname_spec='${libname}${release}${shared_ext}$major'
18224 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18225 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18226 ;;
18227 *)
18228 shrext_cmds='.sl'
18229 dynamic_linker="$host_os dld.sl"
18230 shlibpath_var=SHLIB_PATH
18231 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18233 soname_spec='${libname}${release}${shared_ext}$major'
18234 ;;
18235 esac
18236 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18237 postinstall_cmds='chmod 555 $lib'
18238 # or fails outright, so override atomically:
18239 install_override_mode=555
18240 ;;
18241
18242 interix[3-9]*)
18243 version_type=linux
18244 need_lib_prefix=no
18245 need_version=no
18246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18247 soname_spec='${libname}${release}${shared_ext}$major'
18248 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18249 shlibpath_var=LD_LIBRARY_PATH
18250 shlibpath_overrides_runpath=no
18251 hardcode_into_libs=yes
18252 ;;
18253
18254 irix5* | irix6* | nonstopux*)
18255 case $host_os in
18256 nonstopux*) version_type=nonstopux ;;
18257 *)
18258 if test "$lt_cv_prog_gnu_ld" = yes; then
18259 version_type=linux
18260 else
18261 version_type=irix
18262 fi ;;
18263 esac
18264 need_lib_prefix=no
18265 need_version=no
18266 soname_spec='${libname}${release}${shared_ext}$major'
18267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18268 case $host_os in
18269 irix5* | nonstopux*)
18270 libsuff= shlibsuff=
18271 ;;
18272 *)
18273 case $LD in # libtool.m4 will add one of these switches to LD
18274 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18275 libsuff= shlibsuff= libmagic=32-bit;;
18276 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18277 libsuff=32 shlibsuff=N32 libmagic=N32;;
18278 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18279 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18280 *) libsuff= shlibsuff= libmagic=never-match;;
18281 esac
18282 ;;
18283 esac
18284 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18285 shlibpath_overrides_runpath=no
18286 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18287 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18288 hardcode_into_libs=yes
18289 ;;
18290
18291 # No shared lib support for Linux oldld, aout, or coff.
18292 linux*oldld* | linux*aout* | linux*coff*)
18293 dynamic_linker=no
18294 ;;
18295
18296 # This must be Linux ELF.
18297
18298 # uclinux* changes (here and below) have been submitted to the libtool
18299 # project, but have not yet been accepted: they are GCC-local changes
18300 # for the time being. (See
18301 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18302 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
18303 version_type=linux
18304 need_lib_prefix=no
18305 need_version=no
18306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18307 soname_spec='${libname}${release}${shared_ext}$major'
18308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18309 shlibpath_var=LD_LIBRARY_PATH
18310 shlibpath_overrides_runpath=no
18311
18312 # Some binutils ld are patched to set DT_RUNPATH
18313 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18314 $as_echo_n "(cached) " >&6
18315 else
18316 lt_cv_shlibpath_overrides_runpath=no
18317 save_LDFLAGS=$LDFLAGS
18318 save_libdir=$libdir
18319 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18320 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18322 /* end confdefs.h. */
18323
18324 int
18325 main ()
18326 {
18327
18328 ;
18329 return 0;
18330 }
18331 _ACEOF
18332 if ac_fn_c_try_link "$LINENO"; then :
18333 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18334 lt_cv_shlibpath_overrides_runpath=yes
18335 fi
18336 fi
18337 rm -f core conftest.err conftest.$ac_objext \
18338 conftest$ac_exeext conftest.$ac_ext
18339 LDFLAGS=$save_LDFLAGS
18340 libdir=$save_libdir
18341
18342 fi
18343
18344 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18345
18346 # This implies no fast_install, which is unacceptable.
18347 # Some rework will be needed to allow for fast_install
18348 # before this can be enabled.
18349 hardcode_into_libs=yes
18350
18351 # Append ld.so.conf contents to the search path
18352 if test -f /etc/ld.so.conf; then
18353 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' ' '`
18354 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18355 fi
18356
18357 # We used to test for /lib/ld.so.1 and disable shared libraries on
18358 # powerpc, because MkLinux only supported shared libraries with the
18359 # GNU dynamic linker. Since this was broken with cross compilers,
18360 # most powerpc-linux boxes support dynamic linking these days and
18361 # people can always --disable-shared, the test was removed, and we
18362 # assume the GNU/Linux dynamic linker is in use.
18363 dynamic_linker='GNU/Linux ld.so'
18364 ;;
18365
18366 netbsd*)
18367 version_type=sunos
18368 need_lib_prefix=no
18369 need_version=no
18370 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18373 dynamic_linker='NetBSD (a.out) ld.so'
18374 else
18375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18376 soname_spec='${libname}${release}${shared_ext}$major'
18377 dynamic_linker='NetBSD ld.elf_so'
18378 fi
18379 shlibpath_var=LD_LIBRARY_PATH
18380 shlibpath_overrides_runpath=yes
18381 hardcode_into_libs=yes
18382 ;;
18383
18384 newsos6)
18385 version_type=linux
18386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18387 shlibpath_var=LD_LIBRARY_PATH
18388 shlibpath_overrides_runpath=yes
18389 ;;
18390
18391 *nto* | *qnx*)
18392 version_type=qnx
18393 need_lib_prefix=no
18394 need_version=no
18395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18396 soname_spec='${libname}${release}${shared_ext}$major'
18397 shlibpath_var=LD_LIBRARY_PATH
18398 shlibpath_overrides_runpath=no
18399 hardcode_into_libs=yes
18400 dynamic_linker='ldqnx.so'
18401 ;;
18402
18403 openbsd*)
18404 version_type=sunos
18405 sys_lib_dlsearch_path_spec="/usr/lib"
18406 need_lib_prefix=no
18407 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18408 case $host_os in
18409 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18410 *) need_version=no ;;
18411 esac
18412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18414 shlibpath_var=LD_LIBRARY_PATH
18415 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18416 case $host_os in
18417 openbsd2.[89] | openbsd2.[89].*)
18418 shlibpath_overrides_runpath=no
18419 ;;
18420 *)
18421 shlibpath_overrides_runpath=yes
18422 ;;
18423 esac
18424 else
18425 shlibpath_overrides_runpath=yes
18426 fi
18427 ;;
18428
18429 os2*)
18430 libname_spec='$name'
18431 shrext_cmds=".dll"
18432 need_lib_prefix=no
18433 library_names_spec='$libname${shared_ext} $libname.a'
18434 dynamic_linker='OS/2 ld.exe'
18435 shlibpath_var=LIBPATH
18436 ;;
18437
18438 osf3* | osf4* | osf5*)
18439 version_type=osf
18440 need_lib_prefix=no
18441 need_version=no
18442 soname_spec='${libname}${release}${shared_ext}$major'
18443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18444 shlibpath_var=LD_LIBRARY_PATH
18445 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18446 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18447 ;;
18448
18449 rdos*)
18450 dynamic_linker=no
18451 ;;
18452
18453 solaris*)
18454 version_type=linux
18455 need_lib_prefix=no
18456 need_version=no
18457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18458 soname_spec='${libname}${release}${shared_ext}$major'
18459 shlibpath_var=LD_LIBRARY_PATH
18460 shlibpath_overrides_runpath=yes
18461 hardcode_into_libs=yes
18462 # ldd complains unless libraries are executable
18463 postinstall_cmds='chmod +x $lib'
18464 ;;
18465
18466 sunos4*)
18467 version_type=sunos
18468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18469 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18470 shlibpath_var=LD_LIBRARY_PATH
18471 shlibpath_overrides_runpath=yes
18472 if test "$with_gnu_ld" = yes; then
18473 need_lib_prefix=no
18474 fi
18475 need_version=yes
18476 ;;
18477
18478 sysv4 | sysv4.3*)
18479 version_type=linux
18480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18481 soname_spec='${libname}${release}${shared_ext}$major'
18482 shlibpath_var=LD_LIBRARY_PATH
18483 case $host_vendor in
18484 sni)
18485 shlibpath_overrides_runpath=no
18486 need_lib_prefix=no
18487 runpath_var=LD_RUN_PATH
18488 ;;
18489 siemens)
18490 need_lib_prefix=no
18491 ;;
18492 motorola)
18493 need_lib_prefix=no
18494 need_version=no
18495 shlibpath_overrides_runpath=no
18496 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18497 ;;
18498 esac
18499 ;;
18500
18501 sysv4*MP*)
18502 if test -d /usr/nec ;then
18503 version_type=linux
18504 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18505 soname_spec='$libname${shared_ext}.$major'
18506 shlibpath_var=LD_LIBRARY_PATH
18507 fi
18508 ;;
18509
18510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18511 version_type=freebsd-elf
18512 need_lib_prefix=no
18513 need_version=no
18514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18515 soname_spec='${libname}${release}${shared_ext}$major'
18516 shlibpath_var=LD_LIBRARY_PATH
18517 shlibpath_overrides_runpath=yes
18518 hardcode_into_libs=yes
18519 if test "$with_gnu_ld" = yes; then
18520 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18521 else
18522 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18523 case $host_os in
18524 sco3.2v5*)
18525 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18526 ;;
18527 esac
18528 fi
18529 sys_lib_dlsearch_path_spec='/usr/lib'
18530 ;;
18531
18532 tpf*)
18533 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18534 version_type=linux
18535 need_lib_prefix=no
18536 need_version=no
18537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18538 shlibpath_var=LD_LIBRARY_PATH
18539 shlibpath_overrides_runpath=no
18540 hardcode_into_libs=yes
18541 ;;
18542
18543 uts4*)
18544 version_type=linux
18545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18546 soname_spec='${libname}${release}${shared_ext}$major'
18547 shlibpath_var=LD_LIBRARY_PATH
18548 ;;
18549
18550 *)
18551 dynamic_linker=no
18552 ;;
18553 esac
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18555 $as_echo "$dynamic_linker" >&6; }
18556 test "$dynamic_linker" = no && can_build_shared=no
18557
18558 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18559 if test "$GCC" = yes; then
18560 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18561 fi
18562
18563 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18564 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18565 fi
18566 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18567 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18568 fi
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18662 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18663 hardcode_action=
18664 if test -n "$hardcode_libdir_flag_spec" ||
18665 test -n "$runpath_var" ||
18666 test "X$hardcode_automatic" = "Xyes" ; then
18667
18668 # We can hardcode non-existent directories.
18669 if test "$hardcode_direct" != no &&
18670 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18671 # have to relink, otherwise we might link with an installed library
18672 # when we should be linking with a yet-to-be-installed one
18673 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18674 test "$hardcode_minus_L" != no; then
18675 # Linking always hardcodes the temporary library directory.
18676 hardcode_action=relink
18677 else
18678 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18679 hardcode_action=immediate
18680 fi
18681 else
18682 # We cannot hardcode anything, or else we can only hardcode existing
18683 # directories.
18684 hardcode_action=unsupported
18685 fi
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18687 $as_echo "$hardcode_action" >&6; }
18688
18689 if test "$hardcode_action" = relink ||
18690 test "$inherit_rpath" = yes; then
18691 # Fast installation is not supported
18692 enable_fast_install=no
18693 elif test "$shlibpath_overrides_runpath" = yes ||
18694 test "$enable_shared" = no; then
18695 # Fast installation is not necessary
18696 enable_fast_install=needless
18697 fi
18698
18699
18700
18701
18702
18703
18704 if test "x$enable_dlopen" != xyes; then
18705 enable_dlopen=unknown
18706 enable_dlopen_self=unknown
18707 enable_dlopen_self_static=unknown
18708 else
18709 lt_cv_dlopen=no
18710 lt_cv_dlopen_libs=
18711
18712 case $host_os in
18713 beos*)
18714 lt_cv_dlopen="load_add_on"
18715 lt_cv_dlopen_libs=
18716 lt_cv_dlopen_self=yes
18717 ;;
18718
18719 mingw* | pw32* | cegcc*)
18720 lt_cv_dlopen="LoadLibrary"
18721 lt_cv_dlopen_libs=
18722 ;;
18723
18724 cygwin*)
18725 lt_cv_dlopen="dlopen"
18726 lt_cv_dlopen_libs=
18727 ;;
18728
18729 darwin*)
18730 # if libdl is installed we need to link against it
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18732 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18733 if ${ac_cv_lib_dl_dlopen+:} false; then :
18734 $as_echo_n "(cached) " >&6
18735 else
18736 ac_check_lib_save_LIBS=$LIBS
18737 LIBS="-ldl $LIBS"
18738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18739 /* end confdefs.h. */
18740
18741 /* Override any GCC internal prototype to avoid an error.
18742 Use char because int might match the return type of a GCC
18743 builtin and then its argument prototype would still apply. */
18744 #ifdef __cplusplus
18745 extern "C"
18746 #endif
18747 char dlopen ();
18748 int
18749 main ()
18750 {
18751 return dlopen ();
18752 ;
18753 return 0;
18754 }
18755 _ACEOF
18756 if ac_fn_c_try_link "$LINENO"; then :
18757 ac_cv_lib_dl_dlopen=yes
18758 else
18759 ac_cv_lib_dl_dlopen=no
18760 fi
18761 rm -f core conftest.err conftest.$ac_objext \
18762 conftest$ac_exeext conftest.$ac_ext
18763 LIBS=$ac_check_lib_save_LIBS
18764 fi
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18766 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18767 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18768 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18769 else
18770
18771 lt_cv_dlopen="dyld"
18772 lt_cv_dlopen_libs=
18773 lt_cv_dlopen_self=yes
18774
18775 fi
18776
18777 ;;
18778
18779 *)
18780 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18781 if test "x$ac_cv_func_shl_load" = xyes; then :
18782 lt_cv_dlopen="shl_load"
18783 else
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18785 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18786 if ${ac_cv_lib_dld_shl_load+:} false; then :
18787 $as_echo_n "(cached) " >&6
18788 else
18789 ac_check_lib_save_LIBS=$LIBS
18790 LIBS="-ldld $LIBS"
18791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18792 /* end confdefs.h. */
18793
18794 /* Override any GCC internal prototype to avoid an error.
18795 Use char because int might match the return type of a GCC
18796 builtin and then its argument prototype would still apply. */
18797 #ifdef __cplusplus
18798 extern "C"
18799 #endif
18800 char shl_load ();
18801 int
18802 main ()
18803 {
18804 return shl_load ();
18805 ;
18806 return 0;
18807 }
18808 _ACEOF
18809 if ac_fn_c_try_link "$LINENO"; then :
18810 ac_cv_lib_dld_shl_load=yes
18811 else
18812 ac_cv_lib_dld_shl_load=no
18813 fi
18814 rm -f core conftest.err conftest.$ac_objext \
18815 conftest$ac_exeext conftest.$ac_ext
18816 LIBS=$ac_check_lib_save_LIBS
18817 fi
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18819 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18820 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18821 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18822 else
18823 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18824 if test "x$ac_cv_func_dlopen" = xyes; then :
18825 lt_cv_dlopen="dlopen"
18826 else
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18828 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18829 if ${ac_cv_lib_dl_dlopen+:} false; then :
18830 $as_echo_n "(cached) " >&6
18831 else
18832 ac_check_lib_save_LIBS=$LIBS
18833 LIBS="-ldl $LIBS"
18834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18835 /* end confdefs.h. */
18836
18837 /* Override any GCC internal prototype to avoid an error.
18838 Use char because int might match the return type of a GCC
18839 builtin and then its argument prototype would still apply. */
18840 #ifdef __cplusplus
18841 extern "C"
18842 #endif
18843 char dlopen ();
18844 int
18845 main ()
18846 {
18847 return dlopen ();
18848 ;
18849 return 0;
18850 }
18851 _ACEOF
18852 if ac_fn_c_try_link "$LINENO"; then :
18853 ac_cv_lib_dl_dlopen=yes
18854 else
18855 ac_cv_lib_dl_dlopen=no
18856 fi
18857 rm -f core conftest.err conftest.$ac_objext \
18858 conftest$ac_exeext conftest.$ac_ext
18859 LIBS=$ac_check_lib_save_LIBS
18860 fi
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18862 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18863 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18865 else
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18867 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18868 if ${ac_cv_lib_svld_dlopen+:} false; then :
18869 $as_echo_n "(cached) " >&6
18870 else
18871 ac_check_lib_save_LIBS=$LIBS
18872 LIBS="-lsvld $LIBS"
18873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18874 /* end confdefs.h. */
18875
18876 /* Override any GCC internal prototype to avoid an error.
18877 Use char because int might match the return type of a GCC
18878 builtin and then its argument prototype would still apply. */
18879 #ifdef __cplusplus
18880 extern "C"
18881 #endif
18882 char dlopen ();
18883 int
18884 main ()
18885 {
18886 return dlopen ();
18887 ;
18888 return 0;
18889 }
18890 _ACEOF
18891 if ac_fn_c_try_link "$LINENO"; then :
18892 ac_cv_lib_svld_dlopen=yes
18893 else
18894 ac_cv_lib_svld_dlopen=no
18895 fi
18896 rm -f core conftest.err conftest.$ac_objext \
18897 conftest$ac_exeext conftest.$ac_ext
18898 LIBS=$ac_check_lib_save_LIBS
18899 fi
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18901 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18902 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18903 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18904 else
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18906 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18907 if ${ac_cv_lib_dld_dld_link+:} false; then :
18908 $as_echo_n "(cached) " >&6
18909 else
18910 ac_check_lib_save_LIBS=$LIBS
18911 LIBS="-ldld $LIBS"
18912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18913 /* end confdefs.h. */
18914
18915 /* Override any GCC internal prototype to avoid an error.
18916 Use char because int might match the return type of a GCC
18917 builtin and then its argument prototype would still apply. */
18918 #ifdef __cplusplus
18919 extern "C"
18920 #endif
18921 char dld_link ();
18922 int
18923 main ()
18924 {
18925 return dld_link ();
18926 ;
18927 return 0;
18928 }
18929 _ACEOF
18930 if ac_fn_c_try_link "$LINENO"; then :
18931 ac_cv_lib_dld_dld_link=yes
18932 else
18933 ac_cv_lib_dld_dld_link=no
18934 fi
18935 rm -f core conftest.err conftest.$ac_objext \
18936 conftest$ac_exeext conftest.$ac_ext
18937 LIBS=$ac_check_lib_save_LIBS
18938 fi
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18940 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18941 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18942 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18943 fi
18944
18945
18946 fi
18947
18948
18949 fi
18950
18951
18952 fi
18953
18954
18955 fi
18956
18957
18958 fi
18959
18960 ;;
18961 esac
18962
18963 if test "x$lt_cv_dlopen" != xno; then
18964 enable_dlopen=yes
18965 else
18966 enable_dlopen=no
18967 fi
18968
18969 case $lt_cv_dlopen in
18970 dlopen)
18971 save_CPPFLAGS="$CPPFLAGS"
18972 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18973
18974 save_LDFLAGS="$LDFLAGS"
18975 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18976
18977 save_LIBS="$LIBS"
18978 LIBS="$lt_cv_dlopen_libs $LIBS"
18979
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18981 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18982 if ${lt_cv_dlopen_self+:} false; then :
18983 $as_echo_n "(cached) " >&6
18984 else
18985 if test "$cross_compiling" = yes; then :
18986 lt_cv_dlopen_self=cross
18987 else
18988 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18989 lt_status=$lt_dlunknown
18990 cat > conftest.$ac_ext <<_LT_EOF
18991 #line 18991 "configure"
18992 #include "confdefs.h"
18993
18994 #if HAVE_DLFCN_H
18995 #include <dlfcn.h>
18996 #endif
18997
18998 #include <stdio.h>
18999
19000 #ifdef RTLD_GLOBAL
19001 # define LT_DLGLOBAL RTLD_GLOBAL
19002 #else
19003 # ifdef DL_GLOBAL
19004 # define LT_DLGLOBAL DL_GLOBAL
19005 # else
19006 # define LT_DLGLOBAL 0
19007 # endif
19008 #endif
19009
19010 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19011 find out it does not work in some platform. */
19012 #ifndef LT_DLLAZY_OR_NOW
19013 # ifdef RTLD_LAZY
19014 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19015 # else
19016 # ifdef DL_LAZY
19017 # define LT_DLLAZY_OR_NOW DL_LAZY
19018 # else
19019 # ifdef RTLD_NOW
19020 # define LT_DLLAZY_OR_NOW RTLD_NOW
19021 # else
19022 # ifdef DL_NOW
19023 # define LT_DLLAZY_OR_NOW DL_NOW
19024 # else
19025 # define LT_DLLAZY_OR_NOW 0
19026 # endif
19027 # endif
19028 # endif
19029 # endif
19030 #endif
19031
19032 /* When -fvisbility=hidden is used, assume the code has been annotated
19033 correspondingly for the symbols needed. */
19034 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19035 void fnord () __attribute__((visibility("default")));
19036 #endif
19037
19038 void fnord () { int i=42; }
19039 int main ()
19040 {
19041 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19042 int status = $lt_dlunknown;
19043
19044 if (self)
19045 {
19046 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19047 else
19048 {
19049 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19050 else puts (dlerror ());
19051 }
19052 /* dlclose (self); */
19053 }
19054 else
19055 puts (dlerror ());
19056
19057 return status;
19058 }
19059 _LT_EOF
19060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19061 (eval $ac_link) 2>&5
19062 ac_status=$?
19063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19064 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19065 (./conftest; exit; ) >&5 2>/dev/null
19066 lt_status=$?
19067 case x$lt_status in
19068 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19069 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19070 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19071 esac
19072 else :
19073 # compilation failed
19074 lt_cv_dlopen_self=no
19075 fi
19076 fi
19077 rm -fr conftest*
19078
19079
19080 fi
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19082 $as_echo "$lt_cv_dlopen_self" >&6; }
19083
19084 if test "x$lt_cv_dlopen_self" = xyes; then
19085 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19087 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19088 if ${lt_cv_dlopen_self_static+:} false; then :
19089 $as_echo_n "(cached) " >&6
19090 else
19091 if test "$cross_compiling" = yes; then :
19092 lt_cv_dlopen_self_static=cross
19093 else
19094 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19095 lt_status=$lt_dlunknown
19096 cat > conftest.$ac_ext <<_LT_EOF
19097 #line 19097 "configure"
19098 #include "confdefs.h"
19099
19100 #if HAVE_DLFCN_H
19101 #include <dlfcn.h>
19102 #endif
19103
19104 #include <stdio.h>
19105
19106 #ifdef RTLD_GLOBAL
19107 # define LT_DLGLOBAL RTLD_GLOBAL
19108 #else
19109 # ifdef DL_GLOBAL
19110 # define LT_DLGLOBAL DL_GLOBAL
19111 # else
19112 # define LT_DLGLOBAL 0
19113 # endif
19114 #endif
19115
19116 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19117 find out it does not work in some platform. */
19118 #ifndef LT_DLLAZY_OR_NOW
19119 # ifdef RTLD_LAZY
19120 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19121 # else
19122 # ifdef DL_LAZY
19123 # define LT_DLLAZY_OR_NOW DL_LAZY
19124 # else
19125 # ifdef RTLD_NOW
19126 # define LT_DLLAZY_OR_NOW RTLD_NOW
19127 # else
19128 # ifdef DL_NOW
19129 # define LT_DLLAZY_OR_NOW DL_NOW
19130 # else
19131 # define LT_DLLAZY_OR_NOW 0
19132 # endif
19133 # endif
19134 # endif
19135 # endif
19136 #endif
19137
19138 /* When -fvisbility=hidden is used, assume the code has been annotated
19139 correspondingly for the symbols needed. */
19140 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19141 void fnord () __attribute__((visibility("default")));
19142 #endif
19143
19144 void fnord () { int i=42; }
19145 int main ()
19146 {
19147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19148 int status = $lt_dlunknown;
19149
19150 if (self)
19151 {
19152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19153 else
19154 {
19155 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19156 else puts (dlerror ());
19157 }
19158 /* dlclose (self); */
19159 }
19160 else
19161 puts (dlerror ());
19162
19163 return status;
19164 }
19165 _LT_EOF
19166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19167 (eval $ac_link) 2>&5
19168 ac_status=$?
19169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19170 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19171 (./conftest; exit; ) >&5 2>/dev/null
19172 lt_status=$?
19173 case x$lt_status in
19174 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19175 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19176 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19177 esac
19178 else :
19179 # compilation failed
19180 lt_cv_dlopen_self_static=no
19181 fi
19182 fi
19183 rm -fr conftest*
19184
19185
19186 fi
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19188 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19189 fi
19190
19191 CPPFLAGS="$save_CPPFLAGS"
19192 LDFLAGS="$save_LDFLAGS"
19193 LIBS="$save_LIBS"
19194 ;;
19195 esac
19196
19197 case $lt_cv_dlopen_self in
19198 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19199 *) enable_dlopen_self=unknown ;;
19200 esac
19201
19202 case $lt_cv_dlopen_self_static in
19203 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19204 *) enable_dlopen_self_static=unknown ;;
19205 esac
19206 fi
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224 striplib=
19225 old_striplib=
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19227 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19228 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19229 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19230 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19232 $as_echo "yes" >&6; }
19233 else
19234 # FIXME - insert some real tests, host_os isn't really good enough
19235 case $host_os in
19236 darwin*)
19237 if test -n "$STRIP" ; then
19238 striplib="$STRIP -x"
19239 old_striplib="$STRIP -S"
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19241 $as_echo "yes" >&6; }
19242 else
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19244 $as_echo "no" >&6; }
19245 fi
19246 ;;
19247 *)
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19249 $as_echo "no" >&6; }
19250 ;;
19251 esac
19252 fi
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265 # Report which library types will actually be built
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19267 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19269 $as_echo "$can_build_shared" >&6; }
19270
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19272 $as_echo_n "checking whether to build shared libraries... " >&6; }
19273 test "$can_build_shared" = "no" && enable_shared=no
19274
19275 # On AIX, shared libraries and static libraries use the same namespace, and
19276 # are all built from PIC.
19277 case $host_os in
19278 aix3*)
19279 test "$enable_shared" = yes && enable_static=no
19280 if test -n "$RANLIB"; then
19281 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19282 postinstall_cmds='$RANLIB $lib'
19283 fi
19284 ;;
19285
19286 aix[4-9]*)
19287 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19288 test "$enable_shared" = yes && enable_static=no
19289 fi
19290 ;;
19291 esac
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19293 $as_echo "$enable_shared" >&6; }
19294
19295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19296 $as_echo_n "checking whether to build static libraries... " >&6; }
19297 # Make sure either enable_shared or enable_static is yes.
19298 test "$enable_shared" = yes || enable_static=yes
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19300 $as_echo "$enable_static" >&6; }
19301
19302
19303
19304
19305 fi
19306 ac_ext=cpp
19307 ac_cpp='$CXXCPP $CPPFLAGS'
19308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19311
19312 CC="$lt_save_CC"
19313
19314 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19315 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19316 (test "X$CXX" != "Xg++"))) ; then
19317 ac_ext=cpp
19318 ac_cpp='$CXXCPP $CPPFLAGS'
19319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19323 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19324 if test -z "$CXXCPP"; then
19325 if ${ac_cv_prog_CXXCPP+:} false; then :
19326 $as_echo_n "(cached) " >&6
19327 else
19328 # Double quotes because CXXCPP needs to be expanded
19329 for CXXCPP in "$CXX -E" "/lib/cpp"
19330 do
19331 ac_preproc_ok=false
19332 for ac_cxx_preproc_warn_flag in '' yes
19333 do
19334 # Use a header file that comes with gcc, so configuring glibc
19335 # with a fresh cross-compiler works.
19336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19337 # <limits.h> exists even on freestanding compilers.
19338 # On the NeXT, cc -E runs the code through the compiler's parser,
19339 # not just through cpp. "Syntax error" is here to catch this case.
19340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19341 /* end confdefs.h. */
19342 #ifdef __STDC__
19343 # include <limits.h>
19344 #else
19345 # include <assert.h>
19346 #endif
19347 Syntax error
19348 _ACEOF
19349 if ac_fn_cxx_try_cpp "$LINENO"; then :
19350
19351 else
19352 # Broken: fails on valid input.
19353 continue
19354 fi
19355 rm -f conftest.err conftest.i conftest.$ac_ext
19356
19357 # OK, works on sane cases. Now check whether nonexistent headers
19358 # can be detected and how.
19359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19360 /* end confdefs.h. */
19361 #include <ac_nonexistent.h>
19362 _ACEOF
19363 if ac_fn_cxx_try_cpp "$LINENO"; then :
19364 # Broken: success on invalid input.
19365 continue
19366 else
19367 # Passes both tests.
19368 ac_preproc_ok=:
19369 break
19370 fi
19371 rm -f conftest.err conftest.i conftest.$ac_ext
19372
19373 done
19374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19375 rm -f conftest.i conftest.err conftest.$ac_ext
19376 if $ac_preproc_ok; then :
19377 break
19378 fi
19379
19380 done
19381 ac_cv_prog_CXXCPP=$CXXCPP
19382
19383 fi
19384 CXXCPP=$ac_cv_prog_CXXCPP
19385 else
19386 ac_cv_prog_CXXCPP=$CXXCPP
19387 fi
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19389 $as_echo "$CXXCPP" >&6; }
19390 ac_preproc_ok=false
19391 for ac_cxx_preproc_warn_flag in '' yes
19392 do
19393 # Use a header file that comes with gcc, so configuring glibc
19394 # with a fresh cross-compiler works.
19395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19396 # <limits.h> exists even on freestanding compilers.
19397 # On the NeXT, cc -E runs the code through the compiler's parser,
19398 # not just through cpp. "Syntax error" is here to catch this case.
19399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19400 /* end confdefs.h. */
19401 #ifdef __STDC__
19402 # include <limits.h>
19403 #else
19404 # include <assert.h>
19405 #endif
19406 Syntax error
19407 _ACEOF
19408 if ac_fn_cxx_try_cpp "$LINENO"; then :
19409
19410 else
19411 # Broken: fails on valid input.
19412 continue
19413 fi
19414 rm -f conftest.err conftest.i conftest.$ac_ext
19415
19416 # OK, works on sane cases. Now check whether nonexistent headers
19417 # can be detected and how.
19418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19419 /* end confdefs.h. */
19420 #include <ac_nonexistent.h>
19421 _ACEOF
19422 if ac_fn_cxx_try_cpp "$LINENO"; then :
19423 # Broken: success on invalid input.
19424 continue
19425 else
19426 # Passes both tests.
19427 ac_preproc_ok=:
19428 break
19429 fi
19430 rm -f conftest.err conftest.i conftest.$ac_ext
19431
19432 done
19433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19434 rm -f conftest.i conftest.err conftest.$ac_ext
19435 if $ac_preproc_ok; then :
19436
19437 else
19438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19440 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19441 See \`config.log' for more details" "$LINENO" 5; }
19442 fi
19443
19444 ac_ext=cpp
19445 ac_cpp='$CXXCPP $CPPFLAGS'
19446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19449
19450 else
19451 _lt_caught_CXX_error=yes
19452 fi
19453
19454 ac_ext=cpp
19455 ac_cpp='$CXXCPP $CPPFLAGS'
19456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19459
19460 archive_cmds_need_lc_CXX=no
19461 allow_undefined_flag_CXX=
19462 always_export_symbols_CXX=no
19463 archive_expsym_cmds_CXX=
19464 compiler_needs_object_CXX=no
19465 export_dynamic_flag_spec_CXX=
19466 hardcode_direct_CXX=no
19467 hardcode_direct_absolute_CXX=no
19468 hardcode_libdir_flag_spec_CXX=
19469 hardcode_libdir_flag_spec_ld_CXX=
19470 hardcode_libdir_separator_CXX=
19471 hardcode_minus_L_CXX=no
19472 hardcode_shlibpath_var_CXX=unsupported
19473 hardcode_automatic_CXX=no
19474 inherit_rpath_CXX=no
19475 module_cmds_CXX=
19476 module_expsym_cmds_CXX=
19477 link_all_deplibs_CXX=unknown
19478 old_archive_cmds_CXX=$old_archive_cmds
19479 reload_flag_CXX=$reload_flag
19480 reload_cmds_CXX=$reload_cmds
19481 no_undefined_flag_CXX=
19482 whole_archive_flag_spec_CXX=
19483 enable_shared_with_static_runtimes_CXX=no
19484
19485 # Source file extension for C++ test sources.
19486 ac_ext=cpp
19487
19488 # Object file extension for compiled C++ test sources.
19489 objext=o
19490 objext_CXX=$objext
19491
19492 # No sense in running all these tests if we already determined that
19493 # the CXX compiler isn't working. Some variables (like enable_shared)
19494 # are currently assumed to apply to all compilers on this platform,
19495 # and will be corrupted by setting them based on a non-working compiler.
19496 if test "$_lt_caught_CXX_error" != yes; then
19497 # Code to be used in simple compile tests
19498 lt_simple_compile_test_code="int some_variable = 0;"
19499
19500 # Code to be used in simple link tests
19501 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19502
19503 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19504
19505
19506
19507
19508
19509
19510 # If no C compiler was specified, use CC.
19511 LTCC=${LTCC-"$CC"}
19512
19513 # If no C compiler flags were specified, use CFLAGS.
19514 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19515
19516 # Allow CC to be a program name with arguments.
19517 compiler=$CC
19518
19519
19520 # save warnings/boilerplate of simple test code
19521 ac_outfile=conftest.$ac_objext
19522 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19523 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19524 _lt_compiler_boilerplate=`cat conftest.err`
19525 $RM conftest*
19526
19527 ac_outfile=conftest.$ac_objext
19528 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19529 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19530 _lt_linker_boilerplate=`cat conftest.err`
19531 $RM -r conftest*
19532
19533
19534 # Allow CC to be a program name with arguments.
19535 lt_save_CC=$CC
19536 lt_save_LD=$LD
19537 lt_save_GCC=$GCC
19538 GCC=$GXX
19539 lt_save_with_gnu_ld=$with_gnu_ld
19540 lt_save_path_LD=$lt_cv_path_LD
19541 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19542 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19543 else
19544 $as_unset lt_cv_prog_gnu_ld
19545 fi
19546 if test -n "${lt_cv_path_LDCXX+set}"; then
19547 lt_cv_path_LD=$lt_cv_path_LDCXX
19548 else
19549 $as_unset lt_cv_path_LD
19550 fi
19551 test -z "${LDCXX+set}" || LD=$LDCXX
19552 CC=${CXX-"c++"}
19553 compiler=$CC
19554 compiler_CXX=$CC
19555 for cc_temp in $compiler""; do
19556 case $cc_temp in
19557 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19558 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19559 \-*) ;;
19560 *) break;;
19561 esac
19562 done
19563 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19564
19565
19566 if test -n "$compiler"; then
19567 # We don't want -fno-exception when compiling C++ code, so set the
19568 # no_builtin_flag separately
19569 if test "$GXX" = yes; then
19570 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19571 else
19572 lt_prog_compiler_no_builtin_flag_CXX=
19573 fi
19574
19575 if test "$GXX" = yes; then
19576 # Set up default GNU C++ configuration
19577
19578
19579
19580 # Check whether --with-gnu-ld was given.
19581 if test "${with_gnu_ld+set}" = set; then :
19582 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19583 else
19584 with_gnu_ld=no
19585 fi
19586
19587 ac_prog=ld
19588 if test "$GCC" = yes; then
19589 # Check if gcc -print-prog-name=ld gives a path.
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19591 $as_echo_n "checking for ld used by $CC... " >&6; }
19592 case $host in
19593 *-*-mingw*)
19594 # gcc leaves a trailing carriage return which upsets mingw
19595 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19596 *)
19597 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19598 esac
19599 case $ac_prog in
19600 # Accept absolute paths.
19601 [\\/]* | ?:[\\/]*)
19602 re_direlt='/[^/][^/]*/\.\./'
19603 # Canonicalize the pathname of ld
19604 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19605 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19606 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19607 done
19608 test -z "$LD" && LD="$ac_prog"
19609 ;;
19610 "")
19611 # If it fails, then pretend we aren't using GCC.
19612 ac_prog=ld
19613 ;;
19614 *)
19615 # If it is relative, then search for the first ld in PATH.
19616 with_gnu_ld=unknown
19617 ;;
19618 esac
19619 elif test "$with_gnu_ld" = yes; then
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19621 $as_echo_n "checking for GNU ld... " >&6; }
19622 else
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19624 $as_echo_n "checking for non-GNU ld... " >&6; }
19625 fi
19626 if ${lt_cv_path_LD+:} false; then :
19627 $as_echo_n "(cached) " >&6
19628 else
19629 if test -z "$LD"; then
19630 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19631 for ac_dir in $PATH; do
19632 IFS="$lt_save_ifs"
19633 test -z "$ac_dir" && ac_dir=.
19634 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19635 lt_cv_path_LD="$ac_dir/$ac_prog"
19636 # Check to see if the program is GNU ld. I'd rather use --version,
19637 # but apparently some variants of GNU ld only accept -v.
19638 # Break only if it was the GNU/non-GNU ld that we prefer.
19639 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19640 *GNU* | *'with BFD'*)
19641 test "$with_gnu_ld" != no && break
19642 ;;
19643 *)
19644 test "$with_gnu_ld" != yes && break
19645 ;;
19646 esac
19647 fi
19648 done
19649 IFS="$lt_save_ifs"
19650 else
19651 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19652 fi
19653 fi
19654
19655 LD="$lt_cv_path_LD"
19656 if test -n "$LD"; then
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19658 $as_echo "$LD" >&6; }
19659 else
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19661 $as_echo "no" >&6; }
19662 fi
19663 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19665 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19666 if ${lt_cv_prog_gnu_ld+:} false; then :
19667 $as_echo_n "(cached) " >&6
19668 else
19669 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19670 case `$LD -v 2>&1 </dev/null` in
19671 *GNU* | *'with BFD'*)
19672 lt_cv_prog_gnu_ld=yes
19673 ;;
19674 *)
19675 lt_cv_prog_gnu_ld=no
19676 ;;
19677 esac
19678 fi
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19680 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19681 with_gnu_ld=$lt_cv_prog_gnu_ld
19682
19683
19684
19685
19686
19687
19688
19689 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19690 # archiving commands below assume that GNU ld is being used.
19691 if test "$with_gnu_ld" = yes; then
19692 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19693 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'
19694
19695 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19696 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19697
19698 # If archive_cmds runs LD, not CC, wlarc should be empty
19699 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19700 # investigate it a little bit more. (MM)
19701 wlarc='${wl}'
19702
19703 # ancient GNU ld didn't support --whole-archive et. al.
19704 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19705 $GREP 'no-whole-archive' > /dev/null; then
19706 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19707 else
19708 whole_archive_flag_spec_CXX=
19709 fi
19710 else
19711 with_gnu_ld=no
19712 wlarc=
19713
19714 # A generic and very simple default shared library creation
19715 # command for GNU C++ for the case where it uses the native
19716 # linker, instead of GNU ld. If possible, this setting should
19717 # overridden to take advantage of the native linker features on
19718 # the platform it is being used on.
19719 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19720 fi
19721
19722 # Commands to make compiler produce verbose output that lists
19723 # what "hidden" libraries, object files and flags are used when
19724 # linking a shared library.
19725 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19726
19727 else
19728 GXX=no
19729 with_gnu_ld=no
19730 wlarc=
19731 fi
19732
19733 # PORTME: fill in a description of your system's C++ link characteristics
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19735 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19736 ld_shlibs_CXX=yes
19737 case $host_os in
19738 aix3*)
19739 # FIXME: insert proper C++ library support
19740 ld_shlibs_CXX=no
19741 ;;
19742 aix[4-9]*)
19743 if test "$host_cpu" = ia64; then
19744 # On IA64, the linker does run time linking by default, so we don't
19745 # have to do anything special.
19746 aix_use_runtimelinking=no
19747 exp_sym_flag='-Bexport'
19748 no_entry_flag=""
19749 else
19750 aix_use_runtimelinking=no
19751
19752 # Test if we are trying to use run time linking or normal
19753 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19754 # need to do runtime linking.
19755 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19756 for ld_flag in $LDFLAGS; do
19757 case $ld_flag in
19758 *-brtl*)
19759 aix_use_runtimelinking=yes
19760 break
19761 ;;
19762 esac
19763 done
19764 ;;
19765 esac
19766
19767 exp_sym_flag='-bexport'
19768 no_entry_flag='-bnoentry'
19769 fi
19770
19771 # When large executables or shared objects are built, AIX ld can
19772 # have problems creating the table of contents. If linking a library
19773 # or program results in "error TOC overflow" add -mminimal-toc to
19774 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19775 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19776
19777 archive_cmds_CXX=''
19778 hardcode_direct_CXX=yes
19779 hardcode_direct_absolute_CXX=yes
19780 hardcode_libdir_separator_CXX=':'
19781 link_all_deplibs_CXX=yes
19782 file_list_spec_CXX='${wl}-f,'
19783
19784 if test "$GXX" = yes; then
19785 case $host_os in aix4.[012]|aix4.[012].*)
19786 # We only want to do this on AIX 4.2 and lower, the check
19787 # below for broken collect2 doesn't work under 4.3+
19788 collect2name=`${CC} -print-prog-name=collect2`
19789 if test -f "$collect2name" &&
19790 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19791 then
19792 # We have reworked collect2
19793 :
19794 else
19795 # We have old collect2
19796 hardcode_direct_CXX=unsupported
19797 # It fails to find uninstalled libraries when the uninstalled
19798 # path is not listed in the libpath. Setting hardcode_minus_L
19799 # to unsupported forces relinking
19800 hardcode_minus_L_CXX=yes
19801 hardcode_libdir_flag_spec_CXX='-L$libdir'
19802 hardcode_libdir_separator_CXX=
19803 fi
19804 esac
19805 shared_flag='-shared'
19806 if test "$aix_use_runtimelinking" = yes; then
19807 shared_flag="$shared_flag "'${wl}-G'
19808 fi
19809 else
19810 # not using gcc
19811 if test "$host_cpu" = ia64; then
19812 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19813 # chokes on -Wl,-G. The following line is correct:
19814 shared_flag='-G'
19815 else
19816 if test "$aix_use_runtimelinking" = yes; then
19817 shared_flag='${wl}-G'
19818 else
19819 shared_flag='${wl}-bM:SRE'
19820 fi
19821 fi
19822 fi
19823
19824 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19825 # It seems that -bexpall does not export symbols beginning with
19826 # underscore (_), so it is better to generate a list of symbols to
19827 # export.
19828 always_export_symbols_CXX=yes
19829 if test "$aix_use_runtimelinking" = yes; then
19830 # Warning - without using the other runtime loading flags (-brtl),
19831 # -berok will link without error, but may produce a broken library.
19832 allow_undefined_flag_CXX='-berok'
19833 # Determine the default libpath from the value encoded in an empty
19834 # executable.
19835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19836 /* end confdefs.h. */
19837
19838 int
19839 main ()
19840 {
19841
19842 ;
19843 return 0;
19844 }
19845 _ACEOF
19846 if ac_fn_cxx_try_link "$LINENO"; then :
19847
19848 lt_aix_libpath_sed='
19849 /Import File Strings/,/^$/ {
19850 /^0/ {
19851 s/^0 *\(.*\)$/\1/
19852 p
19853 }
19854 }'
19855 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19856 # Check for a 64-bit object if we didn't find anything.
19857 if test -z "$aix_libpath"; then
19858 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19859 fi
19860 fi
19861 rm -f core conftest.err conftest.$ac_objext \
19862 conftest$ac_exeext conftest.$ac_ext
19863 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19864
19865 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19866
19867 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"
19868 else
19869 if test "$host_cpu" = ia64; then
19870 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19871 allow_undefined_flag_CXX="-z nodefs"
19872 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"
19873 else
19874 # Determine the default libpath from the value encoded in an
19875 # empty executable.
19876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19877 /* end confdefs.h. */
19878
19879 int
19880 main ()
19881 {
19882
19883 ;
19884 return 0;
19885 }
19886 _ACEOF
19887 if ac_fn_cxx_try_link "$LINENO"; then :
19888
19889 lt_aix_libpath_sed='
19890 /Import File Strings/,/^$/ {
19891 /^0/ {
19892 s/^0 *\(.*\)$/\1/
19893 p
19894 }
19895 }'
19896 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19897 # Check for a 64-bit object if we didn't find anything.
19898 if test -z "$aix_libpath"; then
19899 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19900 fi
19901 fi
19902 rm -f core conftest.err conftest.$ac_objext \
19903 conftest$ac_exeext conftest.$ac_ext
19904 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19905
19906 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19907 # Warning - without using the other run time loading flags,
19908 # -berok will link without error, but may produce a broken library.
19909 no_undefined_flag_CXX=' ${wl}-bernotok'
19910 allow_undefined_flag_CXX=' ${wl}-berok'
19911 if test "$with_gnu_ld" = yes; then
19912 # We only use this code for GNU lds that support --whole-archive.
19913 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19914 else
19915 # Exported symbols can be pulled into shared objects from archives
19916 whole_archive_flag_spec_CXX='$convenience'
19917 fi
19918 archive_cmds_need_lc_CXX=yes
19919 # This is similar to how AIX traditionally builds its shared
19920 # libraries.
19921 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'
19922 fi
19923 fi
19924 ;;
19925
19926 beos*)
19927 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19928 allow_undefined_flag_CXX=unsupported
19929 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19930 # support --undefined. This deserves some investigation. FIXME
19931 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19932 else
19933 ld_shlibs_CXX=no
19934 fi
19935 ;;
19936
19937 chorus*)
19938 case $cc_basename in
19939 *)
19940 # FIXME: insert proper C++ library support
19941 ld_shlibs_CXX=no
19942 ;;
19943 esac
19944 ;;
19945
19946 cygwin* | mingw* | pw32* | cegcc*)
19947 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19948 # as there is no search path for DLLs.
19949 hardcode_libdir_flag_spec_CXX='-L$libdir'
19950 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19951 allow_undefined_flag_CXX=unsupported
19952 always_export_symbols_CXX=no
19953 enable_shared_with_static_runtimes_CXX=yes
19954
19955 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19956 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'
19957 # If the export-symbols file already is a .def file (1st line
19958 # is EXPORTS), use it as is; otherwise, prepend...
19959 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19960 cp $export_symbols $output_objdir/$soname.def;
19961 else
19962 echo EXPORTS > $output_objdir/$soname.def;
19963 cat $export_symbols >> $output_objdir/$soname.def;
19964 fi~
19965 $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'
19966 else
19967 ld_shlibs_CXX=no
19968 fi
19969 ;;
19970 darwin* | rhapsody*)
19971
19972
19973 archive_cmds_need_lc_CXX=no
19974 hardcode_direct_CXX=no
19975 hardcode_automatic_CXX=yes
19976 hardcode_shlibpath_var_CXX=unsupported
19977 if test "$lt_cv_ld_force_load" = "yes"; then
19978 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\"`'
19979 else
19980 whole_archive_flag_spec_CXX=''
19981 fi
19982 link_all_deplibs_CXX=yes
19983 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19984 case $cc_basename in
19985 ifort*) _lt_dar_can_shared=yes ;;
19986 *) _lt_dar_can_shared=$GCC ;;
19987 esac
19988 if test "$_lt_dar_can_shared" = "yes"; then
19989 output_verbose_link_cmd=func_echo_all
19990 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}"
19991 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19992 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}"
19993 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}"
19994 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19995 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}"
19996 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}"
19997 fi
19998
19999 else
20000 ld_shlibs_CXX=no
20001 fi
20002
20003 ;;
20004
20005 dgux*)
20006 case $cc_basename in
20007 ec++*)
20008 # FIXME: insert proper C++ library support
20009 ld_shlibs_CXX=no
20010 ;;
20011 ghcx*)
20012 # Green Hills C++ Compiler
20013 # FIXME: insert proper C++ library support
20014 ld_shlibs_CXX=no
20015 ;;
20016 *)
20017 # FIXME: insert proper C++ library support
20018 ld_shlibs_CXX=no
20019 ;;
20020 esac
20021 ;;
20022
20023 freebsd2.*)
20024 # C++ shared libraries reported to be fairly broken before
20025 # switch to ELF
20026 ld_shlibs_CXX=no
20027 ;;
20028
20029 freebsd-elf*)
20030 archive_cmds_need_lc_CXX=no
20031 ;;
20032
20033 freebsd* | dragonfly*)
20034 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20035 # conventions
20036 ld_shlibs_CXX=yes
20037 ;;
20038
20039 gnu*)
20040 ;;
20041
20042 haiku*)
20043 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20044 link_all_deplibs_CXX=yes
20045 ;;
20046
20047 hpux9*)
20048 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20049 hardcode_libdir_separator_CXX=:
20050 export_dynamic_flag_spec_CXX='${wl}-E'
20051 hardcode_direct_CXX=yes
20052 hardcode_minus_L_CXX=yes # Not in the search PATH,
20053 # but as the default
20054 # location of the library.
20055
20056 case $cc_basename in
20057 CC*)
20058 # FIXME: insert proper C++ library support
20059 ld_shlibs_CXX=no
20060 ;;
20061 aCC*)
20062 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'
20063 # Commands to make compiler produce verbose output that lists
20064 # what "hidden" libraries, object files and flags are used when
20065 # linking a shared library.
20066 #
20067 # There doesn't appear to be a way to prevent this compiler from
20068 # explicitly linking system object files so we need to strip them
20069 # from the output so that they don't get included in the library
20070 # dependencies.
20071 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"'
20072 ;;
20073 *)
20074 if test "$GXX" = yes; then
20075 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'
20076 else
20077 # FIXME: insert proper C++ library support
20078 ld_shlibs_CXX=no
20079 fi
20080 ;;
20081 esac
20082 ;;
20083
20084 hpux10*|hpux11*)
20085 if test $with_gnu_ld = no; then
20086 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20087 hardcode_libdir_separator_CXX=:
20088
20089 case $host_cpu in
20090 hppa*64*|ia64*)
20091 ;;
20092 *)
20093 export_dynamic_flag_spec_CXX='${wl}-E'
20094 ;;
20095 esac
20096 fi
20097 case $host_cpu in
20098 hppa*64*|ia64*)
20099 hardcode_direct_CXX=no
20100 hardcode_shlibpath_var_CXX=no
20101 ;;
20102 *)
20103 hardcode_direct_CXX=yes
20104 hardcode_direct_absolute_CXX=yes
20105 hardcode_minus_L_CXX=yes # Not in the search PATH,
20106 # but as the default
20107 # location of the library.
20108 ;;
20109 esac
20110
20111 case $cc_basename in
20112 CC*)
20113 # FIXME: insert proper C++ library support
20114 ld_shlibs_CXX=no
20115 ;;
20116 aCC*)
20117 case $host_cpu in
20118 hppa*64*)
20119 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20120 ;;
20121 ia64*)
20122 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20123 ;;
20124 *)
20125 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20126 ;;
20127 esac
20128 # Commands to make compiler produce verbose output that lists
20129 # what "hidden" libraries, object files and flags are used when
20130 # linking a shared library.
20131 #
20132 # There doesn't appear to be a way to prevent this compiler from
20133 # explicitly linking system object files so we need to strip them
20134 # from the output so that they don't get included in the library
20135 # dependencies.
20136 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"'
20137 ;;
20138 *)
20139 if test "$GXX" = yes; then
20140 if test $with_gnu_ld = no; then
20141 case $host_cpu in
20142 hppa*64*)
20143 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20144 ;;
20145 ia64*)
20146 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20147 ;;
20148 *)
20149 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'
20150 ;;
20151 esac
20152 fi
20153 else
20154 # FIXME: insert proper C++ library support
20155 ld_shlibs_CXX=no
20156 fi
20157 ;;
20158 esac
20159 ;;
20160
20161 interix[3-9]*)
20162 hardcode_direct_CXX=no
20163 hardcode_shlibpath_var_CXX=no
20164 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20165 export_dynamic_flag_spec_CXX='${wl}-E'
20166 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20167 # Instead, shared libraries are loaded at an image base (0x10000000 by
20168 # default) and relocated if they conflict, which is a slow very memory
20169 # consuming and fragmenting process. To avoid this, we pick a random,
20170 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20171 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20172 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'
20173 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'
20174 ;;
20175 irix5* | irix6*)
20176 case $cc_basename in
20177 CC*)
20178 # SGI C++
20179 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'
20180
20181 # Archives containing C++ object files must be created using
20182 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20183 # necessary to make sure instantiated templates are included
20184 # in the archive.
20185 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20186 ;;
20187 *)
20188 if test "$GXX" = yes; then
20189 if test "$with_gnu_ld" = no; then
20190 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'
20191 else
20192 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'
20193 fi
20194 fi
20195 link_all_deplibs_CXX=yes
20196 ;;
20197 esac
20198 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20199 hardcode_libdir_separator_CXX=:
20200 inherit_rpath_CXX=yes
20201 ;;
20202
20203 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20204 case $cc_basename in
20205 KCC*)
20206 # Kuck and Associates, Inc. (KAI) C++ Compiler
20207
20208 # KCC will only create a shared library if the output file
20209 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20210 # to its proper name (with version) after linking.
20211 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'
20212 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'
20213 # Commands to make compiler produce verbose output that lists
20214 # what "hidden" libraries, object files and flags are used when
20215 # linking a shared library.
20216 #
20217 # There doesn't appear to be a way to prevent this compiler from
20218 # explicitly linking system object files so we need to strip them
20219 # from the output so that they don't get included in the library
20220 # dependencies.
20221 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"'
20222
20223 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20224 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20225
20226 # Archives containing C++ object files must be created using
20227 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20228 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20229 ;;
20230 icpc* | ecpc* )
20231 # Intel C++
20232 with_gnu_ld=yes
20233 # version 8.0 and above of icpc choke on multiply defined symbols
20234 # if we add $predep_objects and $postdep_objects, however 7.1 and
20235 # earlier do not add the objects themselves.
20236 case `$CC -V 2>&1` in
20237 *"Version 7."*)
20238 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20239 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'
20240 ;;
20241 *) # Version 8.0 or newer
20242 tmp_idyn=
20243 case $host_cpu in
20244 ia64*) tmp_idyn=' -i_dynamic';;
20245 esac
20246 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20247 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'
20248 ;;
20249 esac
20250 archive_cmds_need_lc_CXX=no
20251 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20252 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20253 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20254 ;;
20255 pgCC* | pgcpp*)
20256 # Portland Group C++ compiler
20257 case `$CC -V` in
20258 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20259 prelink_cmds_CXX='tpldir=Template.dir~
20260 rm -rf $tpldir~
20261 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20262 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20263 old_archive_cmds_CXX='tpldir=Template.dir~
20264 rm -rf $tpldir~
20265 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20266 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20267 $RANLIB $oldlib'
20268 archive_cmds_CXX='tpldir=Template.dir~
20269 rm -rf $tpldir~
20270 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20271 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20272 archive_expsym_cmds_CXX='tpldir=Template.dir~
20273 rm -rf $tpldir~
20274 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20275 $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'
20276 ;;
20277 *) # Version 6 and above use weak symbols
20278 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20279 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'
20280 ;;
20281 esac
20282
20283 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20284 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20285 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'
20286 ;;
20287 cxx*)
20288 # Compaq C++
20289 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20290 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'
20291
20292 runpath_var=LD_RUN_PATH
20293 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20294 hardcode_libdir_separator_CXX=:
20295
20296 # Commands to make compiler produce verbose output that lists
20297 # what "hidden" libraries, object files and flags are used when
20298 # linking a shared library.
20299 #
20300 # There doesn't appear to be a way to prevent this compiler from
20301 # explicitly linking system object files so we need to strip them
20302 # from the output so that they don't get included in the library
20303 # dependencies.
20304 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'
20305 ;;
20306 xl* | mpixl* | bgxl*)
20307 # IBM XL 8.0 on PPC, with GNU ld
20308 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20309 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20310 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20311 if test "x$supports_anon_versioning" = xyes; then
20312 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20313 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20314 echo "local: *; };" >> $output_objdir/$libname.ver~
20315 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20316 fi
20317 ;;
20318 *)
20319 case `$CC -V 2>&1 | sed 5q` in
20320 *Sun\ C*)
20321 # Sun C++ 5.9
20322 no_undefined_flag_CXX=' -zdefs'
20323 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20324 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'
20325 hardcode_libdir_flag_spec_CXX='-R$libdir'
20326 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'
20327 compiler_needs_object_CXX=yes
20328
20329 # Not sure whether something based on
20330 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20331 # would be better.
20332 output_verbose_link_cmd='func_echo_all'
20333
20334 # Archives containing C++ object files must be created using
20335 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20336 # necessary to make sure instantiated templates are included
20337 # in the archive.
20338 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20339 ;;
20340 esac
20341 ;;
20342 esac
20343 ;;
20344
20345 lynxos*)
20346 # FIXME: insert proper C++ library support
20347 ld_shlibs_CXX=no
20348 ;;
20349
20350 m88k*)
20351 # FIXME: insert proper C++ library support
20352 ld_shlibs_CXX=no
20353 ;;
20354
20355 mvs*)
20356 case $cc_basename in
20357 cxx*)
20358 # FIXME: insert proper C++ library support
20359 ld_shlibs_CXX=no
20360 ;;
20361 *)
20362 # FIXME: insert proper C++ library support
20363 ld_shlibs_CXX=no
20364 ;;
20365 esac
20366 ;;
20367
20368 netbsd*)
20369 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20370 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20371 wlarc=
20372 hardcode_libdir_flag_spec_CXX='-R$libdir'
20373 hardcode_direct_CXX=yes
20374 hardcode_shlibpath_var_CXX=no
20375 fi
20376 # Workaround some broken pre-1.5 toolchains
20377 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20378 ;;
20379
20380 *nto* | *qnx*)
20381 ld_shlibs_CXX=yes
20382 ;;
20383
20384 openbsd2*)
20385 # C++ shared libraries are fairly broken
20386 ld_shlibs_CXX=no
20387 ;;
20388
20389 openbsd*)
20390 if test -f /usr/libexec/ld.so; then
20391 hardcode_direct_CXX=yes
20392 hardcode_shlibpath_var_CXX=no
20393 hardcode_direct_absolute_CXX=yes
20394 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20395 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20396 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20397 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20398 export_dynamic_flag_spec_CXX='${wl}-E'
20399 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20400 fi
20401 output_verbose_link_cmd=func_echo_all
20402 else
20403 ld_shlibs_CXX=no
20404 fi
20405 ;;
20406
20407 osf3* | osf4* | osf5*)
20408 case $cc_basename in
20409 KCC*)
20410 # Kuck and Associates, Inc. (KAI) C++ Compiler
20411
20412 # KCC will only create a shared library if the output file
20413 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20414 # to its proper name (with version) after linking.
20415 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'
20416
20417 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20418 hardcode_libdir_separator_CXX=:
20419
20420 # Archives containing C++ object files must be created using
20421 # the KAI C++ compiler.
20422 case $host in
20423 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20424 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20425 esac
20426 ;;
20427 RCC*)
20428 # Rational C++ 2.4.1
20429 # FIXME: insert proper C++ library support
20430 ld_shlibs_CXX=no
20431 ;;
20432 cxx*)
20433 case $host in
20434 osf3*)
20435 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20436 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'
20437 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20438 ;;
20439 *)
20440 allow_undefined_flag_CXX=' -expect_unresolved \*'
20441 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'
20442 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20443 echo "-hidden">> $lib.exp~
20444 $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~
20445 $RM $lib.exp'
20446 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20447 ;;
20448 esac
20449
20450 hardcode_libdir_separator_CXX=:
20451
20452 # Commands to make compiler produce verbose output that lists
20453 # what "hidden" libraries, object files and flags are used when
20454 # linking a shared library.
20455 #
20456 # There doesn't appear to be a way to prevent this compiler from
20457 # explicitly linking system object files so we need to strip them
20458 # from the output so that they don't get included in the library
20459 # dependencies.
20460 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"'
20461 ;;
20462 *)
20463 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20464 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20465 case $host in
20466 osf3*)
20467 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'
20468 ;;
20469 *)
20470 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'
20471 ;;
20472 esac
20473
20474 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20475 hardcode_libdir_separator_CXX=:
20476
20477 # Commands to make compiler produce verbose output that lists
20478 # what "hidden" libraries, object files and flags are used when
20479 # linking a shared library.
20480 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20481
20482 else
20483 # FIXME: insert proper C++ library support
20484 ld_shlibs_CXX=no
20485 fi
20486 ;;
20487 esac
20488 ;;
20489
20490 psos*)
20491 # FIXME: insert proper C++ library support
20492 ld_shlibs_CXX=no
20493 ;;
20494
20495 sunos4*)
20496 case $cc_basename in
20497 CC*)
20498 # Sun C++ 4.x
20499 # FIXME: insert proper C++ library support
20500 ld_shlibs_CXX=no
20501 ;;
20502 lcc*)
20503 # Lucid
20504 # FIXME: insert proper C++ library support
20505 ld_shlibs_CXX=no
20506 ;;
20507 *)
20508 # FIXME: insert proper C++ library support
20509 ld_shlibs_CXX=no
20510 ;;
20511 esac
20512 ;;
20513
20514 solaris*)
20515 case $cc_basename in
20516 CC*)
20517 # Sun C++ 4.2, 5.x and Centerline C++
20518 archive_cmds_need_lc_CXX=yes
20519 no_undefined_flag_CXX=' -zdefs'
20520 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20521 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20522 $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'
20523
20524 hardcode_libdir_flag_spec_CXX='-R$libdir'
20525 hardcode_shlibpath_var_CXX=no
20526 case $host_os in
20527 solaris2.[0-5] | solaris2.[0-5].*) ;;
20528 *)
20529 # The compiler driver will combine and reorder linker options,
20530 # but understands `-z linker_flag'.
20531 # Supported since Solaris 2.6 (maybe 2.5.1?)
20532 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20533 ;;
20534 esac
20535 link_all_deplibs_CXX=yes
20536
20537 output_verbose_link_cmd='func_echo_all'
20538
20539 # Archives containing C++ object files must be created using
20540 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20541 # necessary to make sure instantiated templates are included
20542 # in the archive.
20543 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20544 ;;
20545 gcx*)
20546 # Green Hills C++ Compiler
20547 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20548
20549 # The C++ compiler must be used to create the archive.
20550 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20551 ;;
20552 *)
20553 # GNU C++ compiler with Solaris linker
20554 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20555 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20556 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20557 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20558 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20559 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20560
20561 # Commands to make compiler produce verbose output that lists
20562 # what "hidden" libraries, object files and flags are used when
20563 # linking a shared library.
20564 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20565 else
20566 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20567 # platform.
20568 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20569 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20570 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20571
20572 # Commands to make compiler produce verbose output that lists
20573 # what "hidden" libraries, object files and flags are used when
20574 # linking a shared library.
20575 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20576 fi
20577
20578 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20579 case $host_os in
20580 solaris2.[0-5] | solaris2.[0-5].*) ;;
20581 *)
20582 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20583 ;;
20584 esac
20585 fi
20586 ;;
20587 esac
20588 ;;
20589
20590 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20591 no_undefined_flag_CXX='${wl}-z,text'
20592 archive_cmds_need_lc_CXX=no
20593 hardcode_shlibpath_var_CXX=no
20594 runpath_var='LD_RUN_PATH'
20595
20596 case $cc_basename in
20597 CC*)
20598 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20599 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20600 ;;
20601 *)
20602 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20603 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20604 ;;
20605 esac
20606 ;;
20607
20608 sysv5* | sco3.2v5* | sco5v6*)
20609 # Note: We can NOT use -z defs as we might desire, because we do not
20610 # link with -lc, and that would cause any symbols used from libc to
20611 # always be unresolved, which means just about no library would
20612 # ever link correctly. If we're not using GNU ld we use -z text
20613 # though, which does catch some bad symbols but isn't as heavy-handed
20614 # as -z defs.
20615 no_undefined_flag_CXX='${wl}-z,text'
20616 allow_undefined_flag_CXX='${wl}-z,nodefs'
20617 archive_cmds_need_lc_CXX=no
20618 hardcode_shlibpath_var_CXX=no
20619 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20620 hardcode_libdir_separator_CXX=':'
20621 link_all_deplibs_CXX=yes
20622 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20623 runpath_var='LD_RUN_PATH'
20624
20625 case $cc_basename in
20626 CC*)
20627 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20628 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20629 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20630 '"$old_archive_cmds_CXX"
20631 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20632 '"$reload_cmds_CXX"
20633 ;;
20634 *)
20635 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20636 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20637 ;;
20638 esac
20639 ;;
20640
20641 tandem*)
20642 case $cc_basename in
20643 NCC*)
20644 # NonStop-UX NCC 3.20
20645 # FIXME: insert proper C++ library support
20646 ld_shlibs_CXX=no
20647 ;;
20648 *)
20649 # FIXME: insert proper C++ library support
20650 ld_shlibs_CXX=no
20651 ;;
20652 esac
20653 ;;
20654
20655 vxworks*)
20656 # FIXME: insert proper C++ library support
20657 ld_shlibs_CXX=no
20658 ;;
20659
20660 *)
20661 # FIXME: insert proper C++ library support
20662 ld_shlibs_CXX=no
20663 ;;
20664 esac
20665
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20667 $as_echo "$ld_shlibs_CXX" >&6; }
20668 test "$ld_shlibs_CXX" = no && can_build_shared=no
20669
20670 GCC_CXX="$GXX"
20671 LD_CXX="$LD"
20672
20673 ## CAVEAT EMPTOR:
20674 ## There is no encapsulation within the following macros, do not change
20675 ## the running order or otherwise move them around unless you know exactly
20676 ## what you are doing...
20677 # Dependencies to place before and after the object being linked:
20678 predep_objects_CXX=
20679 postdep_objects_CXX=
20680 predeps_CXX=
20681 postdeps_CXX=
20682 compiler_lib_search_path_CXX=
20683
20684 cat > conftest.$ac_ext <<_LT_EOF
20685 class Foo
20686 {
20687 public:
20688 Foo (void) { a = 0; }
20689 private:
20690 int a;
20691 };
20692 _LT_EOF
20693
20694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20695 (eval $ac_compile) 2>&5
20696 ac_status=$?
20697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20698 test $ac_status = 0; }; then
20699 # Parse the compiler output and extract the necessary
20700 # objects, libraries and library flags.
20701
20702 # Sentinel used to keep track of whether or not we are before
20703 # the conftest object file.
20704 pre_test_object_deps_done=no
20705
20706 for p in `eval "$output_verbose_link_cmd"`; do
20707 case $p in
20708
20709 -L* | -R* | -l*)
20710 # Some compilers place space between "-{L,R}" and the path.
20711 # Remove the space.
20712 if test $p = "-L" ||
20713 test $p = "-R"; then
20714 prev=$p
20715 continue
20716 else
20717 prev=
20718 fi
20719
20720 if test "$pre_test_object_deps_done" = no; then
20721 case $p in
20722 -L* | -R*)
20723 # Internal compiler library paths should come after those
20724 # provided the user. The postdeps already come after the
20725 # user supplied libs so there is no need to process them.
20726 if test -z "$compiler_lib_search_path_CXX"; then
20727 compiler_lib_search_path_CXX="${prev}${p}"
20728 else
20729 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20730 fi
20731 ;;
20732 # The "-l" case would never come before the object being
20733 # linked, so don't bother handling this case.
20734 esac
20735 else
20736 if test -z "$postdeps_CXX"; then
20737 postdeps_CXX="${prev}${p}"
20738 else
20739 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20740 fi
20741 fi
20742 ;;
20743
20744 *.$objext)
20745 # This assumes that the test object file only shows up
20746 # once in the compiler output.
20747 if test "$p" = "conftest.$objext"; then
20748 pre_test_object_deps_done=yes
20749 continue
20750 fi
20751
20752 if test "$pre_test_object_deps_done" = no; then
20753 if test -z "$predep_objects_CXX"; then
20754 predep_objects_CXX="$p"
20755 else
20756 predep_objects_CXX="$predep_objects_CXX $p"
20757 fi
20758 else
20759 if test -z "$postdep_objects_CXX"; then
20760 postdep_objects_CXX="$p"
20761 else
20762 postdep_objects_CXX="$postdep_objects_CXX $p"
20763 fi
20764 fi
20765 ;;
20766
20767 *) ;; # Ignore the rest.
20768
20769 esac
20770 done
20771
20772 # Clean up.
20773 rm -f a.out a.exe
20774 else
20775 echo "libtool.m4: error: problem compiling CXX test program"
20776 fi
20777
20778 $RM -f confest.$objext
20779
20780 # PORTME: override above test on systems where it is broken
20781 case $host_os in
20782 interix[3-9]*)
20783 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20784 # hack all around it, let's just trust "g++" to DTRT.
20785 predep_objects_CXX=
20786 postdep_objects_CXX=
20787 postdeps_CXX=
20788 ;;
20789
20790 linux*)
20791 case `$CC -V 2>&1 | sed 5q` in
20792 *Sun\ C*)
20793 # Sun C++ 5.9
20794
20795 # The more standards-conforming stlport4 library is
20796 # incompatible with the Cstd library. Avoid specifying
20797 # it if it's in CXXFLAGS. Ignore libCrun as
20798 # -library=stlport4 depends on it.
20799 case " $CXX $CXXFLAGS " in
20800 *" -library=stlport4 "*)
20801 solaris_use_stlport4=yes
20802 ;;
20803 esac
20804
20805 if test "$solaris_use_stlport4" != yes; then
20806 postdeps_CXX='-library=Cstd -library=Crun'
20807 fi
20808 ;;
20809 esac
20810 ;;
20811
20812 solaris*)
20813 case $cc_basename in
20814 CC*)
20815 # The more standards-conforming stlport4 library is
20816 # incompatible with the Cstd library. Avoid specifying
20817 # it if it's in CXXFLAGS. Ignore libCrun as
20818 # -library=stlport4 depends on it.
20819 case " $CXX $CXXFLAGS " in
20820 *" -library=stlport4 "*)
20821 solaris_use_stlport4=yes
20822 ;;
20823 esac
20824
20825 # Adding this requires a known-good setup of shared libraries for
20826 # Sun compiler versions before 5.6, else PIC objects from an old
20827 # archive will be linked into the output, leading to subtle bugs.
20828 if test "$solaris_use_stlport4" != yes; then
20829 postdeps_CXX='-library=Cstd -library=Crun'
20830 fi
20831 ;;
20832 esac
20833 ;;
20834 esac
20835
20836
20837 case " $postdeps_CXX " in
20838 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20839 esac
20840 compiler_lib_search_dirs_CXX=
20841 if test -n "${compiler_lib_search_path_CXX}"; then
20842 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20843 fi
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875 lt_prog_compiler_wl_CXX=
20876 lt_prog_compiler_pic_CXX=
20877 lt_prog_compiler_static_CXX=
20878
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20880 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20881
20882 # C++ specific cases for pic, static, wl, etc.
20883 if test "$GXX" = yes; then
20884 lt_prog_compiler_wl_CXX='-Wl,'
20885 lt_prog_compiler_static_CXX='-static'
20886
20887 case $host_os in
20888 aix*)
20889 # All AIX code is PIC.
20890 if test "$host_cpu" = ia64; then
20891 # AIX 5 now supports IA64 processor
20892 lt_prog_compiler_static_CXX='-Bstatic'
20893 fi
20894 lt_prog_compiler_pic_CXX='-fPIC'
20895 ;;
20896
20897 amigaos*)
20898 case $host_cpu in
20899 powerpc)
20900 # see comment about AmigaOS4 .so support
20901 lt_prog_compiler_pic_CXX='-fPIC'
20902 ;;
20903 m68k)
20904 # FIXME: we need at least 68020 code to build shared libraries, but
20905 # adding the `-m68020' flag to GCC prevents building anything better,
20906 # like `-m68040'.
20907 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20908 ;;
20909 esac
20910 ;;
20911
20912 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20913 # PIC is the default for these OSes.
20914 ;;
20915 mingw* | cygwin* | os2* | pw32* | cegcc*)
20916 # This hack is so that the source file can tell whether it is being
20917 # built for inclusion in a dll (and should export symbols for example).
20918 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20919 # (--disable-auto-import) libraries
20920 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20921 ;;
20922 darwin* | rhapsody*)
20923 # PIC is the default on this platform
20924 # Common symbols not allowed in MH_DYLIB files
20925 lt_prog_compiler_pic_CXX='-fno-common'
20926 ;;
20927 *djgpp*)
20928 # DJGPP does not support shared libraries at all
20929 lt_prog_compiler_pic_CXX=
20930 ;;
20931 haiku*)
20932 # PIC is the default for Haiku.
20933 # The "-static" flag exists, but is broken.
20934 lt_prog_compiler_static_CXX=
20935 ;;
20936 interix[3-9]*)
20937 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20938 # Instead, we relocate shared libraries at runtime.
20939 ;;
20940 sysv4*MP*)
20941 if test -d /usr/nec; then
20942 lt_prog_compiler_pic_CXX=-Kconform_pic
20943 fi
20944 ;;
20945 hpux*)
20946 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20947 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20948 # sets the default TLS model and affects inlining.
20949 case $host_cpu in
20950 hppa*64*)
20951 ;;
20952 *)
20953 lt_prog_compiler_pic_CXX='-fPIC'
20954 ;;
20955 esac
20956 ;;
20957 *qnx* | *nto*)
20958 # QNX uses GNU C++, but need to define -shared option too, otherwise
20959 # it will coredump.
20960 lt_prog_compiler_pic_CXX='-fPIC -shared'
20961 ;;
20962 *)
20963 lt_prog_compiler_pic_CXX='-fPIC'
20964 ;;
20965 esac
20966 else
20967 case $host_os in
20968 aix[4-9]*)
20969 # All AIX code is PIC.
20970 if test "$host_cpu" = ia64; then
20971 # AIX 5 now supports IA64 processor
20972 lt_prog_compiler_static_CXX='-Bstatic'
20973 else
20974 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20975 fi
20976 ;;
20977 chorus*)
20978 case $cc_basename in
20979 cxch68*)
20980 # Green Hills C++ Compiler
20981 # _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"
20982 ;;
20983 esac
20984 ;;
20985 dgux*)
20986 case $cc_basename in
20987 ec++*)
20988 lt_prog_compiler_pic_CXX='-KPIC'
20989 ;;
20990 ghcx*)
20991 # Green Hills C++ Compiler
20992 lt_prog_compiler_pic_CXX='-pic'
20993 ;;
20994 *)
20995 ;;
20996 esac
20997 ;;
20998 freebsd* | dragonfly*)
20999 # FreeBSD uses GNU C++
21000 ;;
21001 hpux9* | hpux10* | hpux11*)
21002 case $cc_basename in
21003 CC*)
21004 lt_prog_compiler_wl_CXX='-Wl,'
21005 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21006 if test "$host_cpu" != ia64; then
21007 lt_prog_compiler_pic_CXX='+Z'
21008 fi
21009 ;;
21010 aCC*)
21011 lt_prog_compiler_wl_CXX='-Wl,'
21012 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21013 case $host_cpu in
21014 hppa*64*|ia64*)
21015 # +Z the default
21016 ;;
21017 *)
21018 lt_prog_compiler_pic_CXX='+Z'
21019 ;;
21020 esac
21021 ;;
21022 *)
21023 ;;
21024 esac
21025 ;;
21026 interix*)
21027 # This is c89, which is MS Visual C++ (no shared libs)
21028 # Anyone wants to do a port?
21029 ;;
21030 irix5* | irix6* | nonstopux*)
21031 case $cc_basename in
21032 CC*)
21033 lt_prog_compiler_wl_CXX='-Wl,'
21034 lt_prog_compiler_static_CXX='-non_shared'
21035 # CC pic flag -KPIC is the default.
21036 ;;
21037 *)
21038 ;;
21039 esac
21040 ;;
21041 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21042 case $cc_basename in
21043 KCC*)
21044 # KAI C++ Compiler
21045 lt_prog_compiler_wl_CXX='--backend -Wl,'
21046 lt_prog_compiler_pic_CXX='-fPIC'
21047 ;;
21048 ecpc* )
21049 # old Intel C++ for x86_64 which still supported -KPIC.
21050 lt_prog_compiler_wl_CXX='-Wl,'
21051 lt_prog_compiler_pic_CXX='-KPIC'
21052 lt_prog_compiler_static_CXX='-static'
21053 ;;
21054 icpc* )
21055 # Intel C++, used to be incompatible with GCC.
21056 # ICC 10 doesn't accept -KPIC any more.
21057 lt_prog_compiler_wl_CXX='-Wl,'
21058 lt_prog_compiler_pic_CXX='-fPIC'
21059 lt_prog_compiler_static_CXX='-static'
21060 ;;
21061 pgCC* | pgcpp*)
21062 # Portland Group C++ compiler
21063 lt_prog_compiler_wl_CXX='-Wl,'
21064 lt_prog_compiler_pic_CXX='-fpic'
21065 lt_prog_compiler_static_CXX='-Bstatic'
21066 ;;
21067 cxx*)
21068 # Compaq C++
21069 # Make sure the PIC flag is empty. It appears that all Alpha
21070 # Linux and Compaq Tru64 Unix objects are PIC.
21071 lt_prog_compiler_pic_CXX=
21072 lt_prog_compiler_static_CXX='-non_shared'
21073 ;;
21074 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21075 # IBM XL 8.0, 9.0 on PPC and BlueGene
21076 lt_prog_compiler_wl_CXX='-Wl,'
21077 lt_prog_compiler_pic_CXX='-qpic'
21078 lt_prog_compiler_static_CXX='-qstaticlink'
21079 ;;
21080 *)
21081 case `$CC -V 2>&1 | sed 5q` in
21082 *Sun\ C*)
21083 # Sun C++ 5.9
21084 lt_prog_compiler_pic_CXX='-KPIC'
21085 lt_prog_compiler_static_CXX='-Bstatic'
21086 lt_prog_compiler_wl_CXX='-Qoption ld '
21087 ;;
21088 esac
21089 ;;
21090 esac
21091 ;;
21092 lynxos*)
21093 ;;
21094 m88k*)
21095 ;;
21096 mvs*)
21097 case $cc_basename in
21098 cxx*)
21099 lt_prog_compiler_pic_CXX='-W c,exportall'
21100 ;;
21101 *)
21102 ;;
21103 esac
21104 ;;
21105 netbsd*)
21106 ;;
21107 *qnx* | *nto*)
21108 # QNX uses GNU C++, but need to define -shared option too, otherwise
21109 # it will coredump.
21110 lt_prog_compiler_pic_CXX='-fPIC -shared'
21111 ;;
21112 osf3* | osf4* | osf5*)
21113 case $cc_basename in
21114 KCC*)
21115 lt_prog_compiler_wl_CXX='--backend -Wl,'
21116 ;;
21117 RCC*)
21118 # Rational C++ 2.4.1
21119 lt_prog_compiler_pic_CXX='-pic'
21120 ;;
21121 cxx*)
21122 # Digital/Compaq C++
21123 lt_prog_compiler_wl_CXX='-Wl,'
21124 # Make sure the PIC flag is empty. It appears that all Alpha
21125 # Linux and Compaq Tru64 Unix objects are PIC.
21126 lt_prog_compiler_pic_CXX=
21127 lt_prog_compiler_static_CXX='-non_shared'
21128 ;;
21129 *)
21130 ;;
21131 esac
21132 ;;
21133 psos*)
21134 ;;
21135 solaris*)
21136 case $cc_basename in
21137 CC*)
21138 # Sun C++ 4.2, 5.x and Centerline C++
21139 lt_prog_compiler_pic_CXX='-KPIC'
21140 lt_prog_compiler_static_CXX='-Bstatic'
21141 lt_prog_compiler_wl_CXX='-Qoption ld '
21142 ;;
21143 gcx*)
21144 # Green Hills C++ Compiler
21145 lt_prog_compiler_pic_CXX='-PIC'
21146 ;;
21147 *)
21148 ;;
21149 esac
21150 ;;
21151 sunos4*)
21152 case $cc_basename in
21153 CC*)
21154 # Sun C++ 4.x
21155 lt_prog_compiler_pic_CXX='-pic'
21156 lt_prog_compiler_static_CXX='-Bstatic'
21157 ;;
21158 lcc*)
21159 # Lucid
21160 lt_prog_compiler_pic_CXX='-pic'
21161 ;;
21162 *)
21163 ;;
21164 esac
21165 ;;
21166 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21167 case $cc_basename in
21168 CC*)
21169 lt_prog_compiler_wl_CXX='-Wl,'
21170 lt_prog_compiler_pic_CXX='-KPIC'
21171 lt_prog_compiler_static_CXX='-Bstatic'
21172 ;;
21173 esac
21174 ;;
21175 tandem*)
21176 case $cc_basename in
21177 NCC*)
21178 # NonStop-UX NCC 3.20
21179 lt_prog_compiler_pic_CXX='-KPIC'
21180 ;;
21181 *)
21182 ;;
21183 esac
21184 ;;
21185 vxworks*)
21186 ;;
21187 *)
21188 lt_prog_compiler_can_build_shared_CXX=no
21189 ;;
21190 esac
21191 fi
21192
21193 case $host_os in
21194 # For platforms which do not support PIC, -DPIC is meaningless:
21195 *djgpp*)
21196 lt_prog_compiler_pic_CXX=
21197 ;;
21198 *)
21199 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21200 ;;
21201 esac
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21203 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21204
21205
21206
21207 #
21208 # Check to make sure the PIC flag actually works.
21209 #
21210 if test -n "$lt_prog_compiler_pic_CXX"; then
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21212 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21213 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21214 $as_echo_n "(cached) " >&6
21215 else
21216 lt_cv_prog_compiler_pic_works_CXX=no
21217 ac_outfile=conftest.$ac_objext
21218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21219 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21220 # Insert the option either (1) after the last *FLAGS variable, or
21221 # (2) before a word containing "conftest.", or (3) at the end.
21222 # Note that $ac_compile itself does not contain backslashes and begins
21223 # with a dollar sign (not a hyphen), so the echo should work correctly.
21224 # The option is referenced via a variable to avoid confusing sed.
21225 lt_compile=`echo "$ac_compile" | $SED \
21226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21228 -e 's:$: $lt_compiler_flag:'`
21229 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21230 (eval "$lt_compile" 2>conftest.err)
21231 ac_status=$?
21232 cat conftest.err >&5
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 if (exit $ac_status) && test -s "$ac_outfile"; then
21235 # The compiler can only warn and ignore the option if not recognized
21236 # So say no if there are warnings other than the usual output.
21237 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21238 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21239 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21240 lt_cv_prog_compiler_pic_works_CXX=yes
21241 fi
21242 fi
21243 $RM conftest*
21244
21245 fi
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21247 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21248
21249 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21250 case $lt_prog_compiler_pic_CXX in
21251 "" | " "*) ;;
21252 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21253 esac
21254 else
21255 lt_prog_compiler_pic_CXX=
21256 lt_prog_compiler_can_build_shared_CXX=no
21257 fi
21258
21259 fi
21260
21261
21262
21263 #
21264 # Check to make sure the static flag actually works.
21265 #
21266 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21268 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21269 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21270 $as_echo_n "(cached) " >&6
21271 else
21272 lt_cv_prog_compiler_static_works_CXX=no
21273 save_LDFLAGS="$LDFLAGS"
21274 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21275 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21276 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21277 # The linker can only warn and ignore the option if not recognized
21278 # So say no if there are warnings
21279 if test -s conftest.err; then
21280 # Append any errors to the config.log.
21281 cat conftest.err 1>&5
21282 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21284 if diff conftest.exp conftest.er2 >/dev/null; then
21285 lt_cv_prog_compiler_static_works_CXX=yes
21286 fi
21287 else
21288 lt_cv_prog_compiler_static_works_CXX=yes
21289 fi
21290 fi
21291 $RM -r conftest*
21292 LDFLAGS="$save_LDFLAGS"
21293
21294 fi
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21296 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21297
21298 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21299 :
21300 else
21301 lt_prog_compiler_static_CXX=
21302 fi
21303
21304
21305
21306
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21308 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21309 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21310 $as_echo_n "(cached) " >&6
21311 else
21312 lt_cv_prog_compiler_c_o_CXX=no
21313 $RM -r conftest 2>/dev/null
21314 mkdir conftest
21315 cd conftest
21316 mkdir out
21317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21318
21319 lt_compiler_flag="-o out/conftest2.$ac_objext"
21320 # Insert the option either (1) after the last *FLAGS variable, or
21321 # (2) before a word containing "conftest.", or (3) at the end.
21322 # Note that $ac_compile itself does not contain backslashes and begins
21323 # with a dollar sign (not a hyphen), so the echo should work correctly.
21324 lt_compile=`echo "$ac_compile" | $SED \
21325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21327 -e 's:$: $lt_compiler_flag:'`
21328 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21329 (eval "$lt_compile" 2>out/conftest.err)
21330 ac_status=$?
21331 cat out/conftest.err >&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21334 then
21335 # The compiler can only warn and ignore the option if not recognized
21336 # So say no if there are warnings
21337 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21338 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21339 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21340 lt_cv_prog_compiler_c_o_CXX=yes
21341 fi
21342 fi
21343 chmod u+w . 2>&5
21344 $RM conftest*
21345 # SGI C++ compiler will create directory out/ii_files/ for
21346 # template instantiation
21347 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21348 $RM out/* && rmdir out
21349 cd ..
21350 $RM -r conftest
21351 $RM conftest*
21352
21353 fi
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21355 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21356
21357
21358
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21360 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21361 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21362 $as_echo_n "(cached) " >&6
21363 else
21364 lt_cv_prog_compiler_c_o_CXX=no
21365 $RM -r conftest 2>/dev/null
21366 mkdir conftest
21367 cd conftest
21368 mkdir out
21369 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21370
21371 lt_compiler_flag="-o out/conftest2.$ac_objext"
21372 # Insert the option either (1) after the last *FLAGS variable, or
21373 # (2) before a word containing "conftest.", or (3) at the end.
21374 # Note that $ac_compile itself does not contain backslashes and begins
21375 # with a dollar sign (not a hyphen), so the echo should work correctly.
21376 lt_compile=`echo "$ac_compile" | $SED \
21377 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21378 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21379 -e 's:$: $lt_compiler_flag:'`
21380 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21381 (eval "$lt_compile" 2>out/conftest.err)
21382 ac_status=$?
21383 cat out/conftest.err >&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21386 then
21387 # The compiler can only warn and ignore the option if not recognized
21388 # So say no if there are warnings
21389 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21390 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21391 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21392 lt_cv_prog_compiler_c_o_CXX=yes
21393 fi
21394 fi
21395 chmod u+w . 2>&5
21396 $RM conftest*
21397 # SGI C++ compiler will create directory out/ii_files/ for
21398 # template instantiation
21399 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21400 $RM out/* && rmdir out
21401 cd ..
21402 $RM -r conftest
21403 $RM conftest*
21404
21405 fi
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21407 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21408
21409
21410
21411
21412 hard_links="nottested"
21413 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21414 # do not overwrite the value of need_locks provided by the user
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21416 $as_echo_n "checking if we can lock with hard links... " >&6; }
21417 hard_links=yes
21418 $RM conftest*
21419 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21420 touch conftest.a
21421 ln conftest.a conftest.b 2>&5 || hard_links=no
21422 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21424 $as_echo "$hard_links" >&6; }
21425 if test "$hard_links" = no; then
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21427 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21428 need_locks=warn
21429 fi
21430 else
21431 need_locks=no
21432 fi
21433
21434
21435
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21437 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21438
21439 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21440 case $host_os in
21441 aix[4-9]*)
21442 # If we're using GNU nm, then we don't want the "-C" option.
21443 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21444 # Also, AIX nm treats weak defined symbols like other global defined
21445 # symbols, whereas GNU nm marks them as "W".
21446 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21447 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'
21448 else
21449 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'
21450 fi
21451 ;;
21452 pw32*)
21453 export_symbols_cmds_CXX="$ltdll_cmds"
21454 ;;
21455 cygwin* | mingw* | cegcc*)
21456 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'
21457 ;;
21458 *)
21459 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21460 ;;
21461 esac
21462 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21463
21464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21465 $as_echo "$ld_shlibs_CXX" >&6; }
21466 test "$ld_shlibs_CXX" = no && can_build_shared=no
21467
21468 with_gnu_ld_CXX=$with_gnu_ld
21469
21470
21471
21472
21473
21474
21475 #
21476 # Do we need to explicitly link libc?
21477 #
21478 case "x$archive_cmds_need_lc_CXX" in
21479 x|xyes)
21480 # Assume -lc should be added
21481 archive_cmds_need_lc_CXX=yes
21482
21483 if test "$enable_shared" = yes && test "$GCC" = yes; then
21484 case $archive_cmds_CXX in
21485 *'~'*)
21486 # FIXME: we may have to deal with multi-command sequences.
21487 ;;
21488 '$CC '*)
21489 # Test whether the compiler implicitly links with -lc since on some
21490 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21491 # to ld, don't add -lc before -lgcc.
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21493 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21494 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21495 $as_echo_n "(cached) " >&6
21496 else
21497 $RM conftest*
21498 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21499
21500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21501 (eval $ac_compile) 2>&5
21502 ac_status=$?
21503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21504 test $ac_status = 0; } 2>conftest.err; then
21505 soname=conftest
21506 lib=conftest
21507 libobjs=conftest.$ac_objext
21508 deplibs=
21509 wl=$lt_prog_compiler_wl_CXX
21510 pic_flag=$lt_prog_compiler_pic_CXX
21511 compiler_flags=-v
21512 linker_flags=-v
21513 verstring=
21514 output_objdir=.
21515 libname=conftest
21516 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21517 allow_undefined_flag_CXX=
21518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21519 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21520 ac_status=$?
21521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21522 test $ac_status = 0; }
21523 then
21524 lt_cv_archive_cmds_need_lc_CXX=no
21525 else
21526 lt_cv_archive_cmds_need_lc_CXX=yes
21527 fi
21528 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21529 else
21530 cat conftest.err 1>&5
21531 fi
21532 $RM conftest*
21533
21534 fi
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21536 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21537 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21538 ;;
21539 esac
21540 fi
21541 ;;
21542 esac
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21608 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21609
21610 library_names_spec=
21611 libname_spec='lib$name'
21612 soname_spec=
21613 shrext_cmds=".so"
21614 postinstall_cmds=
21615 postuninstall_cmds=
21616 finish_cmds=
21617 finish_eval=
21618 shlibpath_var=
21619 shlibpath_overrides_runpath=unknown
21620 version_type=none
21621 dynamic_linker="$host_os ld.so"
21622 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21623 need_lib_prefix=unknown
21624 hardcode_into_libs=no
21625
21626 # when you set need_version to no, make sure it does not cause -set_version
21627 # flags to be left without arguments
21628 need_version=unknown
21629
21630 case $host_os in
21631 aix3*)
21632 version_type=linux
21633 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21634 shlibpath_var=LIBPATH
21635
21636 # AIX 3 has no versioning support, so we append a major version to the name.
21637 soname_spec='${libname}${release}${shared_ext}$major'
21638 ;;
21639
21640 aix[4-9]*)
21641 version_type=linux
21642 need_lib_prefix=no
21643 need_version=no
21644 hardcode_into_libs=yes
21645 if test "$host_cpu" = ia64; then
21646 # AIX 5 supports IA64
21647 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21648 shlibpath_var=LD_LIBRARY_PATH
21649 else
21650 # With GCC up to 2.95.x, collect2 would create an import file
21651 # for dependence libraries. The import file would start with
21652 # the line `#! .'. This would cause the generated library to
21653 # depend on `.', always an invalid library. This was fixed in
21654 # development snapshots of GCC prior to 3.0.
21655 case $host_os in
21656 aix4 | aix4.[01] | aix4.[01].*)
21657 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21658 echo ' yes '
21659 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21660 :
21661 else
21662 can_build_shared=no
21663 fi
21664 ;;
21665 esac
21666 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21667 # soname into executable. Probably we can add versioning support to
21668 # collect2, so additional links can be useful in future.
21669 if test "$aix_use_runtimelinking" = yes; then
21670 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21671 # instead of lib<name>.a to let people know that these are not
21672 # typical AIX shared libraries.
21673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21674 else
21675 # We preserve .a as extension for shared libraries through AIX4.2
21676 # and later when we are not doing run time linking.
21677 library_names_spec='${libname}${release}.a $libname.a'
21678 soname_spec='${libname}${release}${shared_ext}$major'
21679 fi
21680 shlibpath_var=LIBPATH
21681 fi
21682 ;;
21683
21684 amigaos*)
21685 case $host_cpu in
21686 powerpc)
21687 # Since July 2007 AmigaOS4 officially supports .so libraries.
21688 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21690 ;;
21691 m68k)
21692 library_names_spec='$libname.ixlibrary $libname.a'
21693 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21694 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'
21695 ;;
21696 esac
21697 ;;
21698
21699 beos*)
21700 library_names_spec='${libname}${shared_ext}'
21701 dynamic_linker="$host_os ld.so"
21702 shlibpath_var=LIBRARY_PATH
21703 ;;
21704
21705 bsdi[45]*)
21706 version_type=linux
21707 need_version=no
21708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21709 soname_spec='${libname}${release}${shared_ext}$major'
21710 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21711 shlibpath_var=LD_LIBRARY_PATH
21712 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21713 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21714 # the default ld.so.conf also contains /usr/contrib/lib and
21715 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21716 # libtool to hard-code these into programs
21717 ;;
21718
21719 cygwin* | mingw* | pw32* | cegcc*)
21720 version_type=windows
21721 shrext_cmds=".dll"
21722 need_version=no
21723 need_lib_prefix=no
21724
21725 case $GCC,$host_os in
21726 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21727 library_names_spec='$libname.dll.a'
21728 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21729 postinstall_cmds='base_file=`basename \${file}`~
21730 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21731 dldir=$destdir/`dirname \$dlpath`~
21732 test -d \$dldir || mkdir -p \$dldir~
21733 $install_prog $dir/$dlname \$dldir/$dlname~
21734 chmod a+x \$dldir/$dlname~
21735 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21736 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21737 fi'
21738 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21739 dlpath=$dir/\$dldll~
21740 $RM \$dlpath'
21741 shlibpath_overrides_runpath=yes
21742
21743 case $host_os in
21744 cygwin*)
21745 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21746 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21747
21748 ;;
21749 mingw* | cegcc*)
21750 # MinGW DLLs use traditional 'lib' prefix
21751 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21752 ;;
21753 pw32*)
21754 # pw32 DLLs use 'pw' prefix rather than 'lib'
21755 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21756 ;;
21757 esac
21758 ;;
21759
21760 *)
21761 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21762 ;;
21763 esac
21764 dynamic_linker='Win32 ld.exe'
21765 # FIXME: first we should search . and the directory the executable is in
21766 shlibpath_var=PATH
21767 ;;
21768
21769 darwin* | rhapsody*)
21770 dynamic_linker="$host_os dyld"
21771 version_type=darwin
21772 need_lib_prefix=no
21773 need_version=no
21774 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21775 soname_spec='${libname}${release}${major}$shared_ext'
21776 shlibpath_overrides_runpath=yes
21777 shlibpath_var=DYLD_LIBRARY_PATH
21778 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21779
21780 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21781 ;;
21782
21783 dgux*)
21784 version_type=linux
21785 need_lib_prefix=no
21786 need_version=no
21787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21788 soname_spec='${libname}${release}${shared_ext}$major'
21789 shlibpath_var=LD_LIBRARY_PATH
21790 ;;
21791
21792 freebsd* | dragonfly*)
21793 # DragonFly does not have aout. When/if they implement a new
21794 # versioning mechanism, adjust this.
21795 if test -x /usr/bin/objformat; then
21796 objformat=`/usr/bin/objformat`
21797 else
21798 case $host_os in
21799 freebsd[23].*) objformat=aout ;;
21800 *) objformat=elf ;;
21801 esac
21802 fi
21803 version_type=freebsd-$objformat
21804 case $version_type in
21805 freebsd-elf*)
21806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21807 need_version=no
21808 need_lib_prefix=no
21809 ;;
21810 freebsd-*)
21811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21812 need_version=yes
21813 ;;
21814 esac
21815 shlibpath_var=LD_LIBRARY_PATH
21816 case $host_os in
21817 freebsd2.*)
21818 shlibpath_overrides_runpath=yes
21819 ;;
21820 freebsd3.[01]* | freebsdelf3.[01]*)
21821 shlibpath_overrides_runpath=yes
21822 hardcode_into_libs=yes
21823 ;;
21824 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21825 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21826 shlibpath_overrides_runpath=no
21827 hardcode_into_libs=yes
21828 ;;
21829 *) # from 4.6 on, and DragonFly
21830 shlibpath_overrides_runpath=yes
21831 hardcode_into_libs=yes
21832 ;;
21833 esac
21834 ;;
21835
21836 gnu*)
21837 version_type=linux
21838 need_lib_prefix=no
21839 need_version=no
21840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21841 soname_spec='${libname}${release}${shared_ext}$major'
21842 shlibpath_var=LD_LIBRARY_PATH
21843 hardcode_into_libs=yes
21844 ;;
21845
21846 haiku*)
21847 version_type=linux
21848 need_lib_prefix=no
21849 need_version=no
21850 dynamic_linker="$host_os runtime_loader"
21851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21852 soname_spec='${libname}${release}${shared_ext}$major'
21853 shlibpath_var=LIBRARY_PATH
21854 shlibpath_overrides_runpath=yes
21855 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21856 hardcode_into_libs=yes
21857 ;;
21858
21859 hpux9* | hpux10* | hpux11*)
21860 # Give a soname corresponding to the major version so that dld.sl refuses to
21861 # link against other versions.
21862 version_type=sunos
21863 need_lib_prefix=no
21864 need_version=no
21865 case $host_cpu in
21866 ia64*)
21867 shrext_cmds='.so'
21868 hardcode_into_libs=yes
21869 dynamic_linker="$host_os dld.so"
21870 shlibpath_var=LD_LIBRARY_PATH
21871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21873 soname_spec='${libname}${release}${shared_ext}$major'
21874 if test "X$HPUX_IA64_MODE" = X32; then
21875 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21876 else
21877 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21878 fi
21879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21880 ;;
21881 hppa*64*)
21882 shrext_cmds='.sl'
21883 hardcode_into_libs=yes
21884 dynamic_linker="$host_os dld.sl"
21885 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21886 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21888 soname_spec='${libname}${release}${shared_ext}$major'
21889 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21891 ;;
21892 *)
21893 shrext_cmds='.sl'
21894 dynamic_linker="$host_os dld.sl"
21895 shlibpath_var=SHLIB_PATH
21896 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21898 soname_spec='${libname}${release}${shared_ext}$major'
21899 ;;
21900 esac
21901 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21902 postinstall_cmds='chmod 555 $lib'
21903 # or fails outright, so override atomically:
21904 install_override_mode=555
21905 ;;
21906
21907 interix[3-9]*)
21908 version_type=linux
21909 need_lib_prefix=no
21910 need_version=no
21911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21912 soname_spec='${libname}${release}${shared_ext}$major'
21913 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21914 shlibpath_var=LD_LIBRARY_PATH
21915 shlibpath_overrides_runpath=no
21916 hardcode_into_libs=yes
21917 ;;
21918
21919 irix5* | irix6* | nonstopux*)
21920 case $host_os in
21921 nonstopux*) version_type=nonstopux ;;
21922 *)
21923 if test "$lt_cv_prog_gnu_ld" = yes; then
21924 version_type=linux
21925 else
21926 version_type=irix
21927 fi ;;
21928 esac
21929 need_lib_prefix=no
21930 need_version=no
21931 soname_spec='${libname}${release}${shared_ext}$major'
21932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21933 case $host_os in
21934 irix5* | nonstopux*)
21935 libsuff= shlibsuff=
21936 ;;
21937 *)
21938 case $LD in # libtool.m4 will add one of these switches to LD
21939 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21940 libsuff= shlibsuff= libmagic=32-bit;;
21941 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21942 libsuff=32 shlibsuff=N32 libmagic=N32;;
21943 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21944 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21945 *) libsuff= shlibsuff= libmagic=never-match;;
21946 esac
21947 ;;
21948 esac
21949 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21950 shlibpath_overrides_runpath=no
21951 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21952 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21953 hardcode_into_libs=yes
21954 ;;
21955
21956 # No shared lib support for Linux oldld, aout, or coff.
21957 linux*oldld* | linux*aout* | linux*coff*)
21958 dynamic_linker=no
21959 ;;
21960
21961 # This must be Linux ELF.
21962
21963 # uclinux* changes (here and below) have been submitted to the libtool
21964 # project, but have not yet been accepted: they are GCC-local changes
21965 # for the time being. (See
21966 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
21967 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
21968 version_type=linux
21969 need_lib_prefix=no
21970 need_version=no
21971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21972 soname_spec='${libname}${release}${shared_ext}$major'
21973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21974 shlibpath_var=LD_LIBRARY_PATH
21975 shlibpath_overrides_runpath=no
21976
21977 # Some binutils ld are patched to set DT_RUNPATH
21978 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21979 $as_echo_n "(cached) " >&6
21980 else
21981 lt_cv_shlibpath_overrides_runpath=no
21982 save_LDFLAGS=$LDFLAGS
21983 save_libdir=$libdir
21984 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21985 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21987 /* end confdefs.h. */
21988
21989 int
21990 main ()
21991 {
21992
21993 ;
21994 return 0;
21995 }
21996 _ACEOF
21997 if ac_fn_cxx_try_link "$LINENO"; then :
21998 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21999 lt_cv_shlibpath_overrides_runpath=yes
22000 fi
22001 fi
22002 rm -f core conftest.err conftest.$ac_objext \
22003 conftest$ac_exeext conftest.$ac_ext
22004 LDFLAGS=$save_LDFLAGS
22005 libdir=$save_libdir
22006
22007 fi
22008
22009 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22010
22011 # This implies no fast_install, which is unacceptable.
22012 # Some rework will be needed to allow for fast_install
22013 # before this can be enabled.
22014 hardcode_into_libs=yes
22015
22016 # Append ld.so.conf contents to the search path
22017 if test -f /etc/ld.so.conf; then
22018 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' ' '`
22019 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22020 fi
22021
22022 # We used to test for /lib/ld.so.1 and disable shared libraries on
22023 # powerpc, because MkLinux only supported shared libraries with the
22024 # GNU dynamic linker. Since this was broken with cross compilers,
22025 # most powerpc-linux boxes support dynamic linking these days and
22026 # people can always --disable-shared, the test was removed, and we
22027 # assume the GNU/Linux dynamic linker is in use.
22028 dynamic_linker='GNU/Linux ld.so'
22029 ;;
22030
22031 netbsd*)
22032 version_type=sunos
22033 need_lib_prefix=no
22034 need_version=no
22035 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22038 dynamic_linker='NetBSD (a.out) ld.so'
22039 else
22040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22041 soname_spec='${libname}${release}${shared_ext}$major'
22042 dynamic_linker='NetBSD ld.elf_so'
22043 fi
22044 shlibpath_var=LD_LIBRARY_PATH
22045 shlibpath_overrides_runpath=yes
22046 hardcode_into_libs=yes
22047 ;;
22048
22049 newsos6)
22050 version_type=linux
22051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22052 shlibpath_var=LD_LIBRARY_PATH
22053 shlibpath_overrides_runpath=yes
22054 ;;
22055
22056 *nto* | *qnx*)
22057 version_type=qnx
22058 need_lib_prefix=no
22059 need_version=no
22060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22061 soname_spec='${libname}${release}${shared_ext}$major'
22062 shlibpath_var=LD_LIBRARY_PATH
22063 shlibpath_overrides_runpath=no
22064 hardcode_into_libs=yes
22065 dynamic_linker='ldqnx.so'
22066 ;;
22067
22068 openbsd*)
22069 version_type=sunos
22070 sys_lib_dlsearch_path_spec="/usr/lib"
22071 need_lib_prefix=no
22072 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22073 case $host_os in
22074 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22075 *) need_version=no ;;
22076 esac
22077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22079 shlibpath_var=LD_LIBRARY_PATH
22080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22081 case $host_os in
22082 openbsd2.[89] | openbsd2.[89].*)
22083 shlibpath_overrides_runpath=no
22084 ;;
22085 *)
22086 shlibpath_overrides_runpath=yes
22087 ;;
22088 esac
22089 else
22090 shlibpath_overrides_runpath=yes
22091 fi
22092 ;;
22093
22094 os2*)
22095 libname_spec='$name'
22096 shrext_cmds=".dll"
22097 need_lib_prefix=no
22098 library_names_spec='$libname${shared_ext} $libname.a'
22099 dynamic_linker='OS/2 ld.exe'
22100 shlibpath_var=LIBPATH
22101 ;;
22102
22103 osf3* | osf4* | osf5*)
22104 version_type=osf
22105 need_lib_prefix=no
22106 need_version=no
22107 soname_spec='${libname}${release}${shared_ext}$major'
22108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22109 shlibpath_var=LD_LIBRARY_PATH
22110 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22111 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22112 ;;
22113
22114 rdos*)
22115 dynamic_linker=no
22116 ;;
22117
22118 solaris*)
22119 version_type=linux
22120 need_lib_prefix=no
22121 need_version=no
22122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22123 soname_spec='${libname}${release}${shared_ext}$major'
22124 shlibpath_var=LD_LIBRARY_PATH
22125 shlibpath_overrides_runpath=yes
22126 hardcode_into_libs=yes
22127 # ldd complains unless libraries are executable
22128 postinstall_cmds='chmod +x $lib'
22129 ;;
22130
22131 sunos4*)
22132 version_type=sunos
22133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22134 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22135 shlibpath_var=LD_LIBRARY_PATH
22136 shlibpath_overrides_runpath=yes
22137 if test "$with_gnu_ld" = yes; then
22138 need_lib_prefix=no
22139 fi
22140 need_version=yes
22141 ;;
22142
22143 sysv4 | sysv4.3*)
22144 version_type=linux
22145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22146 soname_spec='${libname}${release}${shared_ext}$major'
22147 shlibpath_var=LD_LIBRARY_PATH
22148 case $host_vendor in
22149 sni)
22150 shlibpath_overrides_runpath=no
22151 need_lib_prefix=no
22152 runpath_var=LD_RUN_PATH
22153 ;;
22154 siemens)
22155 need_lib_prefix=no
22156 ;;
22157 motorola)
22158 need_lib_prefix=no
22159 need_version=no
22160 shlibpath_overrides_runpath=no
22161 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22162 ;;
22163 esac
22164 ;;
22165
22166 sysv4*MP*)
22167 if test -d /usr/nec ;then
22168 version_type=linux
22169 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22170 soname_spec='$libname${shared_ext}.$major'
22171 shlibpath_var=LD_LIBRARY_PATH
22172 fi
22173 ;;
22174
22175 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22176 version_type=freebsd-elf
22177 need_lib_prefix=no
22178 need_version=no
22179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22180 soname_spec='${libname}${release}${shared_ext}$major'
22181 shlibpath_var=LD_LIBRARY_PATH
22182 shlibpath_overrides_runpath=yes
22183 hardcode_into_libs=yes
22184 if test "$with_gnu_ld" = yes; then
22185 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22186 else
22187 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22188 case $host_os in
22189 sco3.2v5*)
22190 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22191 ;;
22192 esac
22193 fi
22194 sys_lib_dlsearch_path_spec='/usr/lib'
22195 ;;
22196
22197 tpf*)
22198 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22199 version_type=linux
22200 need_lib_prefix=no
22201 need_version=no
22202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22203 shlibpath_var=LD_LIBRARY_PATH
22204 shlibpath_overrides_runpath=no
22205 hardcode_into_libs=yes
22206 ;;
22207
22208 uts4*)
22209 version_type=linux
22210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22211 soname_spec='${libname}${release}${shared_ext}$major'
22212 shlibpath_var=LD_LIBRARY_PATH
22213 ;;
22214
22215 *)
22216 dynamic_linker=no
22217 ;;
22218 esac
22219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22220 $as_echo "$dynamic_linker" >&6; }
22221 test "$dynamic_linker" = no && can_build_shared=no
22222
22223 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22224 if test "$GCC" = yes; then
22225 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22226 fi
22227
22228 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22229 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22230 fi
22231 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22232 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22233 fi
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22273 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22274 hardcode_action_CXX=
22275 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22276 test -n "$runpath_var_CXX" ||
22277 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22278
22279 # We can hardcode non-existent directories.
22280 if test "$hardcode_direct_CXX" != no &&
22281 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22282 # have to relink, otherwise we might link with an installed library
22283 # when we should be linking with a yet-to-be-installed one
22284 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22285 test "$hardcode_minus_L_CXX" != no; then
22286 # Linking always hardcodes the temporary library directory.
22287 hardcode_action_CXX=relink
22288 else
22289 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22290 hardcode_action_CXX=immediate
22291 fi
22292 else
22293 # We cannot hardcode anything, or else we can only hardcode existing
22294 # directories.
22295 hardcode_action_CXX=unsupported
22296 fi
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22298 $as_echo "$hardcode_action_CXX" >&6; }
22299
22300 if test "$hardcode_action_CXX" = relink ||
22301 test "$inherit_rpath_CXX" = yes; then
22302 # Fast installation is not supported
22303 enable_fast_install=no
22304 elif test "$shlibpath_overrides_runpath" = yes ||
22305 test "$enable_shared" = no; then
22306 # Fast installation is not necessary
22307 enable_fast_install=needless
22308 fi
22309
22310
22311
22312
22313
22314
22315
22316 fi # test -n "$compiler"
22317
22318 CC=$lt_save_CC
22319 LDCXX=$LD
22320 LD=$lt_save_LD
22321 GCC=$lt_save_GCC
22322 with_gnu_ld=$lt_save_with_gnu_ld
22323 lt_cv_path_LDCXX=$lt_cv_path_LD
22324 lt_cv_path_LD=$lt_save_path_LD
22325 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22326 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22327 fi # test "$_lt_caught_CXX_error" != yes
22328
22329 ac_ext=cpp
22330 ac_cpp='$CXXCPP $CPPFLAGS'
22331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350 # Only expand once:
22351
22352
22353
22354
22355
22356 # Identify the assembler which will work hand-in-glove with the newly
22357 # built GCC, so that we can examine its features. This is the assembler
22358 # which will be driven by the driver program.
22359 #
22360 # If build != host, and we aren't building gas in-tree, we identify a
22361 # build->target assembler and hope that it will have the same features
22362 # as the host->target assembler we'll be using.
22363 gcc_cv_gas_major_version=
22364 gcc_cv_gas_minor_version=
22365 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22366
22367 if ${gcc_cv_as+:} false; then :
22368
22369 else
22370
22371 if test -x "$DEFAULT_ASSEMBLER"; then
22372 gcc_cv_as="$DEFAULT_ASSEMBLER"
22373 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22374 && test -f ../gas/Makefile \
22375 && test x$build = x$host; then
22376 gcc_cv_as=../gas/as-new$build_exeext
22377 elif test -x as$build_exeext; then
22378 # Build using assembler in the current directory.
22379 gcc_cv_as=./as$build_exeext
22380 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22381 gcc_cv_as="$AS_FOR_TARGET"
22382 else
22383 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22384 set dummy $AS_FOR_TARGET; ac_word=$2
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22386 $as_echo_n "checking for $ac_word... " >&6; }
22387 if ${ac_cv_path_gcc_cv_as+:} false; then :
22388 $as_echo_n "(cached) " >&6
22389 else
22390 case $gcc_cv_as in
22391 [\\/]* | ?:[\\/]*)
22392 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22393 ;;
22394 *)
22395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22396 for as_dir in $PATH
22397 do
22398 IFS=$as_save_IFS
22399 test -z "$as_dir" && as_dir=.
22400 for ac_exec_ext in '' $ac_executable_extensions; do
22401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22402 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22404 break 2
22405 fi
22406 done
22407 done
22408 IFS=$as_save_IFS
22409
22410 ;;
22411 esac
22412 fi
22413 gcc_cv_as=$ac_cv_path_gcc_cv_as
22414 if test -n "$gcc_cv_as"; then
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22416 $as_echo "$gcc_cv_as" >&6; }
22417 else
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22419 $as_echo "no" >&6; }
22420 fi
22421
22422
22423 fi
22424 fi
22425
22426 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22427
22428 case "$ORIGINAL_AS_FOR_TARGET" in
22429 ./as | ./as$build_exeext) ;;
22430 *) ac_config_files="$ac_config_files as:exec-tool.in"
22431 ;;
22432 esac
22433
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22435 $as_echo_n "checking what assembler to use... " >&6; }
22436 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22437 # Single tree build which includes gas. We want to prefer it
22438 # over whatever linker top-level may have detected, since
22439 # we'll use what we're building after installation anyway.
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22441 $as_echo "newly built gas" >&6; }
22442 in_tree_gas=yes
22443 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22444 for f in $gcc_cv_as_bfd_srcdir/configure \
22445 $gcc_cv_as_gas_srcdir/configure \
22446 $gcc_cv_as_gas_srcdir/configure.ac \
22447 $gcc_cv_as_gas_srcdir/Makefile.in ; do
22448 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22449 if test x$gcc_cv_gas_version != x; then
22450 break
22451 fi
22452 done
22453 case $gcc_cv_gas_version in
22454 VERSION=[0-9]*) ;;
22455 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22456 esac
22457 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22458 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22459 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22460 case $gcc_cv_gas_patch_version in
22461 "") gcc_cv_gas_patch_version="0" ;;
22462 esac
22463 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22464 + $gcc_cv_gas_minor_version \) \* 1000 \
22465 + $gcc_cv_gas_patch_version`
22466
22467 in_tree_gas_is_elf=no
22468 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22469 || (grep 'obj_format = multi' ../gas/Makefile \
22470 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22471 then
22472 in_tree_gas_is_elf=yes
22473 fi
22474 else
22475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22476 $as_echo "$gcc_cv_as" >&6; }
22477 in_tree_gas=no
22478 fi
22479
22480 default_ld=
22481 # Check whether --enable-ld was given.
22482 if test "${enable_ld+set}" = set; then :
22483 enableval=$enable_ld; case "${enableval}" in
22484 no)
22485 default_ld=ld.gold
22486 ;;
22487 esac
22488 fi
22489
22490
22491 install_gold_as_default=no
22492 # Check whether --enable-gold was given.
22493 if test "${enable_gold+set}" = set; then :
22494 enableval=$enable_gold; case "${enableval}" in
22495 default)
22496 install_gold_as_default=yes
22497 ;;
22498 yes)
22499 if test x${default_ld} != x; then
22500 install_gold_as_default=yes
22501 fi
22502 ;;
22503 no)
22504 ;;
22505 *)
22506 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22507 ;;
22508 esac
22509 fi
22510
22511
22512 # Identify the linker which will work hand-in-glove with the newly
22513 # built GCC, so that we can examine its features. This is the linker
22514 # which will be driven by the driver program.
22515 #
22516 # If build != host, and we aren't building gas in-tree, we identify a
22517 # build->target linker and hope that it will have the same features
22518 # as the host->target linker we'll be using.
22519 gcc_cv_gld_major_version=
22520 gcc_cv_gld_minor_version=
22521 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22522 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22523 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22524
22525 if ${gcc_cv_ld+:} false; then :
22526
22527 else
22528
22529 if test -x "$DEFAULT_LINKER"; then
22530 gcc_cv_ld="$DEFAULT_LINKER"
22531 elif test $install_gold_as_default = yes \
22532 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22533 && test -f ../gold/Makefile \
22534 && test x$build = x$host; then
22535 gcc_cv_ld=../gold/ld-new$build_exeext
22536 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22537 && test -f ../ld/Makefile \
22538 && test x$build = x$host; then
22539 gcc_cv_ld=../ld/ld-new$build_exeext
22540 elif test -x collect-ld$build_exeext; then
22541 # Build using linker in the current directory.
22542 gcc_cv_ld=./collect-ld$build_exeext
22543 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22544 gcc_cv_ld="$LD_FOR_TARGET"
22545 else
22546 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22547 set dummy $LD_FOR_TARGET; ac_word=$2
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22549 $as_echo_n "checking for $ac_word... " >&6; }
22550 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22551 $as_echo_n "(cached) " >&6
22552 else
22553 case $gcc_cv_ld in
22554 [\\/]* | ?:[\\/]*)
22555 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22556 ;;
22557 *)
22558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22559 for as_dir in $PATH
22560 do
22561 IFS=$as_save_IFS
22562 test -z "$as_dir" && as_dir=.
22563 for ac_exec_ext in '' $ac_executable_extensions; do
22564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22565 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22567 break 2
22568 fi
22569 done
22570 done
22571 IFS=$as_save_IFS
22572
22573 ;;
22574 esac
22575 fi
22576 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22577 if test -n "$gcc_cv_ld"; then
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22579 $as_echo "$gcc_cv_ld" >&6; }
22580 else
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22582 $as_echo "no" >&6; }
22583 fi
22584
22585
22586 fi
22587 fi
22588
22589 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22590 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22591 # if the PLUGIN_LD is set ld-new, just have it as ld
22592 # as that is the installed named.
22593 if test x$PLUGIN_LD_SUFFIX = xld-new \
22594 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22595 PLUGIN_LD_SUFFIX=ld
22596 fi
22597
22598 # Check whether --with-plugin-ld was given.
22599 if test "${with_plugin_ld+set}" = set; then :
22600 withval=$with_plugin_ld; if test x"$withval" != x; then
22601 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22602 PLUGIN_LD_SUFFIX="$withval"
22603 fi
22604 fi
22605
22606
22607
22608 cat >>confdefs.h <<_ACEOF
22609 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22610 _ACEOF
22611
22612
22613 # Check to see if we are using gold instead of ld
22614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22615 $as_echo_n "checking whether we are using gold... " >&6; }
22616 ld_is_gold=no
22617 if test x$gcc_cv_ld != x; then
22618 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22619 | grep "GNU gold" > /dev/null; then
22620 ld_is_gold=yes
22621 fi
22622 fi
22623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22624 $as_echo "$ld_is_gold" >&6; }
22625
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22627 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22628 # Check to see if default ld is not gold, but gold is
22629 # available and has support for split stack. If gcc was configured
22630 # with gold then no checking is done.
22631 #
22632 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22633
22634 # For platforms other than powerpc64*, enable as appropriate.
22635
22636 gold_non_default=no
22637 ld_gold=`which ${gcc_cv_ld}.gold`
22638 # Make sure this gold has minimal split stack support
22639 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22640 ld_vers=`$ld_gold --version | sed 1q`
22641 gold_vers=`echo $ld_vers | sed -n \
22642 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22643 case $target in
22644 # check that the gold version contains the complete split stack support
22645 # on powerpc64 big and little endian
22646 powerpc64*-*-*)
22647 case "$gold_vers" in
22648 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22649 ;;
22650 *) gold_non_default=no
22651 ;;
22652 esac
22653 ;;
22654 esac
22655 fi
22656 if test $gold_non_default = yes; then
22657
22658 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22659
22660 fi
22661 fi
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22663 $as_echo "$gold_non_default" >&6; }
22664
22665 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22666
22667 case "$ORIGINAL_LD_FOR_TARGET" in
22668 ./collect-ld | ./collect-ld$build_exeext) ;;
22669 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22670 ;;
22671 esac
22672
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22674 $as_echo_n "checking what linker to use... " >&6; }
22675 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22676 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22677 # Single tree build which includes ld. We want to prefer it
22678 # over whatever linker top-level may have detected, since
22679 # we'll use what we're building after installation anyway.
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22681 $as_echo "newly built ld" >&6; }
22682 in_tree_ld=yes
22683 in_tree_ld_is_elf=no
22684 if (grep 'EMUL = .*elf' ../ld/Makefile \
22685 || grep 'EMUL = .*linux' ../ld/Makefile \
22686 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22687 in_tree_ld_is_elf=yes
22688 elif test "$ld_is_gold" = yes; then
22689 in_tree_ld_is_elf=yes
22690 fi
22691 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
22692 do
22693 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22694 if test x$gcc_cv_gld_version != x; then
22695 break
22696 fi
22697 done
22698 case $gcc_cv_gld_version in
22699 VERSION=[0-9]*) ;;
22700 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22701 esac
22702 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22703 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22704 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22705 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22706 else
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22708 $as_echo "$gcc_cv_ld" >&6; }
22709 in_tree_ld=no
22710 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22711 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22712 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22713 fi
22714
22715
22716
22717
22718 # Figure out what nm we will be using.
22719 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22720 if ${gcc_cv_nm+:} false; then :
22721
22722 else
22723
22724 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22725 && test -f ../binutils/Makefile \
22726 && test x$build = x$host; then
22727 gcc_cv_nm=../binutils/nm-new$build_exeext
22728 elif test -x nm$build_exeext; then
22729 gcc_cv_nm=./nm$build_exeext
22730 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22731 gcc_cv_nm="$NM_FOR_TARGET"
22732 else
22733 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22734 set dummy $NM_FOR_TARGET; ac_word=$2
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22736 $as_echo_n "checking for $ac_word... " >&6; }
22737 if ${ac_cv_path_gcc_cv_nm+:} false; then :
22738 $as_echo_n "(cached) " >&6
22739 else
22740 case $gcc_cv_nm in
22741 [\\/]* | ?:[\\/]*)
22742 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22743 ;;
22744 *)
22745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22746 for as_dir in $PATH
22747 do
22748 IFS=$as_save_IFS
22749 test -z "$as_dir" && as_dir=.
22750 for ac_exec_ext in '' $ac_executable_extensions; do
22751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22752 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22754 break 2
22755 fi
22756 done
22757 done
22758 IFS=$as_save_IFS
22759
22760 ;;
22761 esac
22762 fi
22763 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22764 if test -n "$gcc_cv_nm"; then
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22766 $as_echo "$gcc_cv_nm" >&6; }
22767 else
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22769 $as_echo "no" >&6; }
22770 fi
22771
22772
22773 fi
22774 fi
22775
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22777 $as_echo_n "checking what nm to use... " >&6; }
22778 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22779 # Single tree build which includes binutils.
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22781 $as_echo "newly built nm" >&6; }
22782 in_tree_nm=yes
22783 else
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22785 $as_echo "$gcc_cv_nm" >&6; }
22786 in_tree_nm=no
22787 fi
22788
22789 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22790
22791 case "$ORIGINAL_NM_FOR_TARGET" in
22792 ./nm | ./nm$build_exeext) ;;
22793 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22794 ;;
22795 esac
22796
22797
22798 # Figure out what objdump we will be using.
22799 if ${gcc_cv_objdump+:} false; then :
22800
22801 else
22802
22803 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22804 && test -f ../binutils/Makefile \
22805 && test x$build = x$host; then
22806 # Single tree build which includes binutils.
22807 gcc_cv_objdump=../binutils/objdump$build_exeext
22808 elif test -x objdump$build_exeext; then
22809 gcc_cv_objdump=./objdump$build_exeext
22810 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22811 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22812 else
22813 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22814 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22816 $as_echo_n "checking for $ac_word... " >&6; }
22817 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22818 $as_echo_n "(cached) " >&6
22819 else
22820 case $gcc_cv_objdump in
22821 [\\/]* | ?:[\\/]*)
22822 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22823 ;;
22824 *)
22825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22826 for as_dir in $PATH
22827 do
22828 IFS=$as_save_IFS
22829 test -z "$as_dir" && as_dir=.
22830 for ac_exec_ext in '' $ac_executable_extensions; do
22831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22832 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22834 break 2
22835 fi
22836 done
22837 done
22838 IFS=$as_save_IFS
22839
22840 ;;
22841 esac
22842 fi
22843 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22844 if test -n "$gcc_cv_objdump"; then
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22846 $as_echo "$gcc_cv_objdump" >&6; }
22847 else
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22849 $as_echo "no" >&6; }
22850 fi
22851
22852
22853 fi
22854 fi
22855
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22857 $as_echo_n "checking what objdump to use... " >&6; }
22858 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22859 # Single tree build which includes binutils.
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22861 $as_echo "newly built objdump" >&6; }
22862 elif test x$gcc_cv_objdump = x; then
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22864 $as_echo "not found" >&6; }
22865 else
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22867 $as_echo "$gcc_cv_objdump" >&6; }
22868 fi
22869
22870 # Figure out what readelf we will be using.
22871 if ${gcc_cv_readelf+:} false; then :
22872
22873 else
22874
22875 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22876 && test -f ../binutils/Makefile \
22877 && test x$build = x$host; then
22878 # Single tree build which includes binutils.
22879 gcc_cv_readelf=../binutils/readelf$build_exeext
22880 elif test -x readelf$build_exeext; then
22881 gcc_cv_readelf=./readelf$build_exeext
22882 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22883 gcc_cv_readelf="$READELF_FOR_TARGET"
22884 else
22885 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22886 set dummy $READELF_FOR_TARGET; ac_word=$2
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22888 $as_echo_n "checking for $ac_word... " >&6; }
22889 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22890 $as_echo_n "(cached) " >&6
22891 else
22892 case $gcc_cv_readelf in
22893 [\\/]* | ?:[\\/]*)
22894 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22895 ;;
22896 *)
22897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22898 for as_dir in $PATH
22899 do
22900 IFS=$as_save_IFS
22901 test -z "$as_dir" && as_dir=.
22902 for ac_exec_ext in '' $ac_executable_extensions; do
22903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22904 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22906 break 2
22907 fi
22908 done
22909 done
22910 IFS=$as_save_IFS
22911
22912 ;;
22913 esac
22914 fi
22915 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22916 if test -n "$gcc_cv_readelf"; then
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22918 $as_echo "$gcc_cv_readelf" >&6; }
22919 else
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22921 $as_echo "no" >&6; }
22922 fi
22923
22924
22925 fi
22926 fi
22927
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22929 $as_echo_n "checking what readelf to use... " >&6; }
22930 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22931 # Single tree build which includes binutils.
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22933 $as_echo "newly built readelf" >&6; }
22934 elif test x$gcc_cv_readelf = x; then
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22936 $as_echo "not found" >&6; }
22937 else
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22939 $as_echo "$gcc_cv_readelf" >&6; }
22940 fi
22941
22942 # Figure out what otool we will be using.
22943 if ${gcc_cv_otool+:} false; then :
22944
22945 else
22946
22947 if test -x otool$build_exeext; then
22948 gcc_cv_otool=./otool$build_exeext
22949 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
22950 gcc_cv_otool="$OTOOL_FOR_TARGET"
22951 else
22952 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22953 set dummy $OTOOL_FOR_TARGET; ac_word=$2
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22955 $as_echo_n "checking for $ac_word... " >&6; }
22956 if ${ac_cv_path_gcc_cv_otool+:} false; then :
22957 $as_echo_n "(cached) " >&6
22958 else
22959 case $gcc_cv_otool in
22960 [\\/]* | ?:[\\/]*)
22961 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
22962 ;;
22963 *)
22964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22965 for as_dir in $PATH
22966 do
22967 IFS=$as_save_IFS
22968 test -z "$as_dir" && as_dir=.
22969 for ac_exec_ext in '' $ac_executable_extensions; do
22970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22971 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
22972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22973 break 2
22974 fi
22975 done
22976 done
22977 IFS=$as_save_IFS
22978
22979 ;;
22980 esac
22981 fi
22982 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
22983 if test -n "$gcc_cv_otool"; then
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22985 $as_echo "$gcc_cv_otool" >&6; }
22986 else
22987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22988 $as_echo "no" >&6; }
22989 fi
22990
22991
22992 fi
22993 fi
22994
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22996 $as_echo_n "checking what otool to use... " >&6; }
22997 if test x$gcc_cv_otool = x; then
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22999 $as_echo "not found" >&6; }
23000 else
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23002 $as_echo "$gcc_cv_otool" >&6; }
23003 fi
23004
23005 # Figure out what assembler alignment features are present.
23006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23007 $as_echo_n "checking assembler flags... " >&6; }
23008 if ${gcc_cv_as_flags+:} false; then :
23009 $as_echo_n "(cached) " >&6
23010 else
23011 case "$target" in
23012 i[34567]86-*-linux*)
23013 gcc_cv_as_flags=--32
23014 ;;
23015 x86_64-*-linux-gnux32)
23016 gcc_cv_as_flags=--x32
23017 ;;
23018 x86_64-*-linux*)
23019 gcc_cv_as_flags=--64
23020 ;;
23021 powerpc*-*-darwin*)
23022 gcc_cv_as_flags="-arch ppc"
23023 ;;
23024 *)
23025 gcc_cv_as_flags=" "
23026 ;;
23027 esac
23028 fi
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23030 $as_echo "$gcc_cv_as_flags" >&6; }
23031
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23033 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23034 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23035 $as_echo_n "(cached) " >&6
23036 else
23037 gcc_cv_as_balign_and_p2align=no
23038 if test $in_tree_gas = yes; then
23039 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
23040 then gcc_cv_as_balign_and_p2align=yes
23041 fi
23042 elif test x$gcc_cv_as != x; then
23043 $as_echo '.balign 4
23044 .p2align 2' > conftest.s
23045 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23047 (eval $ac_try) 2>&5
23048 ac_status=$?
23049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23050 test $ac_status = 0; }; }
23051 then
23052 gcc_cv_as_balign_and_p2align=yes
23053 else
23054 echo "configure: failed program was" >&5
23055 cat conftest.s >&5
23056 fi
23057 rm -f conftest.o conftest.s
23058 fi
23059 fi
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23061 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23062 if test $gcc_cv_as_balign_and_p2align = yes; then
23063
23064 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23065
23066 fi
23067
23068
23069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23070 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23071 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23072 $as_echo_n "(cached) " >&6
23073 else
23074 gcc_cv_as_max_skip_p2align=no
23075 if test $in_tree_gas = yes; then
23076 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23077 then gcc_cv_as_max_skip_p2align=yes
23078 fi
23079 elif test x$gcc_cv_as != x; then
23080 $as_echo '.p2align 4,,7' > conftest.s
23081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23083 (eval $ac_try) 2>&5
23084 ac_status=$?
23085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23086 test $ac_status = 0; }; }
23087 then
23088 gcc_cv_as_max_skip_p2align=yes
23089 else
23090 echo "configure: failed program was" >&5
23091 cat conftest.s >&5
23092 fi
23093 rm -f conftest.o conftest.s
23094 fi
23095 fi
23096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23097 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23098 if test $gcc_cv_as_max_skip_p2align = yes; then
23099
23100 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23101
23102 fi
23103
23104
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23106 $as_echo_n "checking assembler for .literal16... " >&6; }
23107 if ${gcc_cv_as_literal16+:} false; then :
23108 $as_echo_n "(cached) " >&6
23109 else
23110 gcc_cv_as_literal16=no
23111 if test $in_tree_gas = yes; then
23112 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23113 then gcc_cv_as_literal16=yes
23114 fi
23115 elif test x$gcc_cv_as != x; then
23116 $as_echo '.literal16' > conftest.s
23117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23119 (eval $ac_try) 2>&5
23120 ac_status=$?
23121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23122 test $ac_status = 0; }; }
23123 then
23124 gcc_cv_as_literal16=yes
23125 else
23126 echo "configure: failed program was" >&5
23127 cat conftest.s >&5
23128 fi
23129 rm -f conftest.o conftest.s
23130 fi
23131 fi
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23133 $as_echo "$gcc_cv_as_literal16" >&6; }
23134 if test $gcc_cv_as_literal16 = yes; then
23135
23136 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23137
23138 fi
23139
23140
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23142 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23143 if ${gcc_cv_as_subsection_m1+:} false; then :
23144 $as_echo_n "(cached) " >&6
23145 else
23146 gcc_cv_as_subsection_m1=no
23147 if test $in_tree_gas = yes; then
23148 if test $in_tree_gas_is_elf = yes \
23149 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23150 then gcc_cv_as_subsection_m1=yes
23151 fi
23152 elif test x$gcc_cv_as != x; then
23153 $as_echo 'conftest_label1: .word 0
23154 .subsection -1
23155 conftest_label2: .word 0
23156 .previous' > conftest.s
23157 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23159 (eval $ac_try) 2>&5
23160 ac_status=$?
23161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23162 test $ac_status = 0; }; }
23163 then
23164 if test x$gcc_cv_nm != x; then
23165 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23166 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23167 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23168 then :
23169 else gcc_cv_as_subsection_m1=yes
23170 fi
23171 rm -f conftest.nm1 conftest.nm2
23172 fi
23173 else
23174 echo "configure: failed program was" >&5
23175 cat conftest.s >&5
23176 fi
23177 rm -f conftest.o conftest.s
23178 fi
23179 fi
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23181 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23182 if test $gcc_cv_as_subsection_m1 = yes; then
23183
23184 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23185
23186 fi
23187
23188
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23190 $as_echo_n "checking assembler for .weak... " >&6; }
23191 if ${gcc_cv_as_weak+:} false; then :
23192 $as_echo_n "(cached) " >&6
23193 else
23194 gcc_cv_as_weak=no
23195 if test $in_tree_gas = yes; then
23196 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23197 then gcc_cv_as_weak=yes
23198 fi
23199 elif test x$gcc_cv_as != x; then
23200 $as_echo ' .weak foobar' > conftest.s
23201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23203 (eval $ac_try) 2>&5
23204 ac_status=$?
23205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23206 test $ac_status = 0; }; }
23207 then
23208 gcc_cv_as_weak=yes
23209 else
23210 echo "configure: failed program was" >&5
23211 cat conftest.s >&5
23212 fi
23213 rm -f conftest.o conftest.s
23214 fi
23215 fi
23216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23217 $as_echo "$gcc_cv_as_weak" >&6; }
23218 if test $gcc_cv_as_weak = yes; then
23219
23220 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23221
23222 fi
23223
23224
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23226 $as_echo_n "checking assembler for .weakref... " >&6; }
23227 if ${gcc_cv_as_weakref+:} false; then :
23228 $as_echo_n "(cached) " >&6
23229 else
23230 gcc_cv_as_weakref=no
23231 if test $in_tree_gas = yes; then
23232 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23233 then gcc_cv_as_weakref=yes
23234 fi
23235 elif test x$gcc_cv_as != x; then
23236 $as_echo ' .weakref foobar, barfnot' > conftest.s
23237 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23239 (eval $ac_try) 2>&5
23240 ac_status=$?
23241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23242 test $ac_status = 0; }; }
23243 then
23244 gcc_cv_as_weakref=yes
23245 else
23246 echo "configure: failed program was" >&5
23247 cat conftest.s >&5
23248 fi
23249 rm -f conftest.o conftest.s
23250 fi
23251 fi
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23253 $as_echo "$gcc_cv_as_weakref" >&6; }
23254 if test $gcc_cv_as_weakref = yes; then
23255
23256 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23257
23258 fi
23259
23260
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23262 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23263 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23264 $as_echo_n "(cached) " >&6
23265 else
23266 gcc_cv_as_nsubspa_comdat=no
23267 if test $in_tree_gas = yes; then
23268 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23269 then gcc_cv_as_nsubspa_comdat=yes
23270 fi
23271 elif test x$gcc_cv_as != x; then
23272 $as_echo ' .SPACE $TEXT$
23273 .NSUBSPA $CODE$,COMDAT' > conftest.s
23274 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23276 (eval $ac_try) 2>&5
23277 ac_status=$?
23278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23279 test $ac_status = 0; }; }
23280 then
23281 gcc_cv_as_nsubspa_comdat=yes
23282 else
23283 echo "configure: failed program was" >&5
23284 cat conftest.s >&5
23285 fi
23286 rm -f conftest.o conftest.s
23287 fi
23288 fi
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23290 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23291 if test $gcc_cv_as_nsubspa_comdat = yes; then
23292
23293 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23294
23295 fi
23296
23297
23298 # .hidden needs to be supported in both the assembler and the linker,
23299 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23300 # This is irritatingly difficult to feature test for; we have to check the
23301 # date string after the version number. If we've got an in-tree
23302 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23303 # to be safe.
23304 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23305 case "${target}" in
23306 *-*-aix*)
23307 conftest_s=' .globl foobar,hidden'
23308 ;;
23309 *)
23310 conftest_s=' .hidden foobar
23311 foobar:'
23312 ;;
23313 esac
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23315 $as_echo_n "checking assembler for .hidden... " >&6; }
23316 if ${gcc_cv_as_hidden+:} false; then :
23317 $as_echo_n "(cached) " >&6
23318 else
23319 gcc_cv_as_hidden=no
23320 if test $in_tree_gas = yes; then
23321 if test $in_tree_gas_is_elf = yes \
23322 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23323 then gcc_cv_as_hidden=yes
23324 fi
23325 elif test x$gcc_cv_as != x; then
23326 $as_echo "$conftest_s" > conftest.s
23327 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23329 (eval $ac_try) 2>&5
23330 ac_status=$?
23331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23332 test $ac_status = 0; }; }
23333 then
23334 gcc_cv_as_hidden=yes
23335 else
23336 echo "configure: failed program was" >&5
23337 cat conftest.s >&5
23338 fi
23339 rm -f conftest.o conftest.s
23340 fi
23341 fi
23342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23343 $as_echo "$gcc_cv_as_hidden" >&6; }
23344
23345
23346 case "${target}" in
23347 *-*-darwin*)
23348 # Darwin as has some visibility support, though with a different syntax.
23349 gcc_cv_as_hidden=yes
23350 ;;
23351 esac
23352
23353 # gnu_indirect_function type is an extension proposed at
23354 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23355 # selection of function implementation
23356 # Check whether --enable-gnu-indirect-function was given.
23357 if test "${enable_gnu_indirect_function+set}" = set; then :
23358 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23359 yes | no) ;;
23360 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23361 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23362 esac
23363 else
23364 enable_gnu_indirect_function="$default_gnu_indirect_function"
23365 fi
23366
23367
23368 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23369
23370 cat >>confdefs.h <<_ACEOF
23371 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23372 _ACEOF
23373
23374
23375
23376 if test $in_tree_ld != yes ; then
23377 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23378 if echo "$ld_ver" | grep GNU > /dev/null; then
23379 if test x"$ld_is_gold" = xyes; then
23380 # GNU gold --version looks like this:
23381 #
23382 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23383 #
23384 # We extract the binutils version which is more familiar and specific
23385 # than the gold version.
23386 ld_vers=`echo $ld_ver | sed -n \
23387 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23388 else
23389 # GNU ld --version looks like this:
23390 #
23391 # GNU ld (GNU Binutils) 2.21.51.20110225
23392 ld_vers=`echo $ld_ver | sed -n \
23393 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23394 fi
23395 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'`
23396 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23397 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23398 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23399 else
23400 case "${target}" in
23401 *-*-solaris2*)
23402 # Solaris 2 ld -V output looks like this for a regular version:
23403 #
23404 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23405 #
23406 # but test versions add stuff at the end:
23407 #
23408 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23409 #
23410 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23411 # numbers can be used in ld.so.1 feature checks even if a different
23412 # linker is configured.
23413 ld_ver=`$gcc_cv_ld -V 2>&1`
23414 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23415 ld_vers=`echo $ld_ver | sed -n \
23416 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23417 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23418 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23419 fi
23420 ;;
23421 esac
23422 fi
23423 fi
23424
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23426 $as_echo_n "checking linker for .hidden support... " >&6; }
23427 if ${gcc_cv_ld_hidden+:} false; then :
23428 $as_echo_n "(cached) " >&6
23429 else
23430 if test $in_tree_ld = yes ; then
23431 gcc_cv_ld_hidden=no
23432 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 \
23433 && test $in_tree_ld_is_elf = yes; then
23434 gcc_cv_ld_hidden=yes
23435 fi
23436 else
23437 gcc_cv_ld_hidden=yes
23438 if test x"$ld_is_gold" = xyes; then
23439 :
23440 elif echo "$ld_ver" | grep GNU > /dev/null; then
23441 case "${target}" in
23442 mmix-knuth-mmixware)
23443 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23444 gcc_cv_ld_hidden=no
23445 ;;
23446 esac
23447 if test 0"$ld_date" -lt 20020404; then
23448 if test -n "$ld_date"; then
23449 # If there was date string, but was earlier than 2002-04-04, fail
23450 gcc_cv_ld_hidden=no
23451 elif test -z "$ld_vers"; then
23452 # If there was no date string nor ld version number, something is wrong
23453 gcc_cv_ld_hidden=no
23454 else
23455 test -z "$ld_vers_patch" && ld_vers_patch=0
23456 if test "$ld_vers_major" -lt 2; then
23457 gcc_cv_ld_hidden=no
23458 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23459 gcc_cv_ld_hidden="no"
23460 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23461 gcc_cv_ld_hidden=no
23462 fi
23463 fi
23464 fi
23465 else
23466 case "${target}" in
23467 *-*-aix[789]*)
23468 gcc_cv_ld_hidden=yes
23469 ;;
23470 *-*-darwin*)
23471 # Darwin ld has some visibility support.
23472 gcc_cv_ld_hidden=yes
23473 ;;
23474 hppa64*-*-hpux* | ia64*-*-hpux*)
23475 gcc_cv_ld_hidden=yes
23476 ;;
23477 *-*-solaris2*)
23478 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23479 # .symbolic was only added in Solaris 9 12/02.
23480 gcc_cv_ld_hidden=yes
23481 ;;
23482 *)
23483 gcc_cv_ld_hidden=no
23484 ;;
23485 esac
23486 fi
23487 fi
23488 fi
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23490 $as_echo "$gcc_cv_ld_hidden" >&6; }
23491 libgcc_visibility=no
23492
23493
23494 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23495 libgcc_visibility=yes
23496
23497 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23498
23499 fi
23500
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23502 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23503 gcc_cv_ld_ro_rw_mix=unknown
23504 if test $in_tree_ld = yes ; then
23505 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 \
23506 && test $in_tree_ld_is_elf = yes; then
23507 gcc_cv_ld_ro_rw_mix=read-write
23508 fi
23509 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23510 echo '.section myfoosect, "a"' > conftest1.s
23511 echo '.section myfoosect, "aw"' > conftest2.s
23512 echo '.byte 1' >> conftest2.s
23513 echo '.section myfoosect, "a"' > conftest3.s
23514 echo '.byte 0' >> conftest3.s
23515 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23516 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23517 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23518 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23519 conftest2.o conftest3.o > /dev/null 2>&1; then
23520 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23521 | sed -e '/myfoosect/!d' -e N`
23522 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23523 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23524 gcc_cv_ld_ro_rw_mix=read-only
23525 else
23526 gcc_cv_ld_ro_rw_mix=read-write
23527 fi
23528 fi
23529 fi
23530 rm -f conftest.* conftest[123].*
23531 fi
23532 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23533
23534 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23535
23536 fi
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23538 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23539
23540 # Check whether --enable-initfini-array was given.
23541 if test "${enable_initfini_array+set}" = set; then :
23542 enableval=$enable_initfini_array;
23543 else
23544
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23546 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23547 if ${gcc_cv_initfini_array+:} false; then :
23548 $as_echo_n "(cached) " >&6
23549 else
23550 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23551 case "${target}" in
23552 ia64-*)
23553 if test "$cross_compiling" = yes; then :
23554 gcc_cv_initfini_array=no
23555 else
23556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23557 /* end confdefs.h. */
23558
23559 #ifndef __ELF__
23560 #error Not an ELF OS
23561 #endif
23562 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23563 if it can be used. */
23564 static int x = -1;
23565 int main (void) { return x; }
23566 int foo (void) { x = 0; }
23567 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23568
23569 _ACEOF
23570 if ac_fn_cxx_try_run "$LINENO"; then :
23571 gcc_cv_initfini_array=yes
23572 else
23573 gcc_cv_initfini_array=no
23574 fi
23575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23576 conftest.$ac_objext conftest.beam conftest.$ac_ext
23577 fi
23578 ;;
23579 *)
23580 gcc_cv_initfini_array=no
23581 if test $in_tree_ld = yes ; then
23582 if test "$gcc_cv_gld_major_version" -eq 2 \
23583 -a "$gcc_cv_gld_minor_version" -ge 22 \
23584 -o "$gcc_cv_gld_major_version" -gt 2 \
23585 && test $in_tree_ld_is_elf = yes; then
23586 gcc_cv_initfini_array=yes
23587 fi
23588 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23589 case $target:$gas in
23590 *:yes)
23591 sh_flags='"a"'
23592 sh_type='%progbits'
23593 ;;
23594 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23595 sh_flags='"a"'
23596 sh_type='@progbits'
23597 ;;
23598 sparc*-*-solaris2*:no)
23599 sh_flags='#alloc'
23600 sh_type='#progbits'
23601 sh_quote='"'
23602 ;;
23603 esac
23604 case "$target:$gnu_ld" in
23605 *:yes)
23606 cat > conftest.s <<EOF
23607 .section .dtors,$sh_flags,$sh_type
23608 .balign 4
23609 .byte 'A', 'A', 'A', 'A'
23610 .section .ctors,$sh_flags,$sh_type
23611 .balign 4
23612 .byte 'B', 'B', 'B', 'B'
23613 .section .fini_array.65530,$sh_flags,$sh_type
23614 .balign 4
23615 .byte 'C', 'C', 'C', 'C'
23616 .section .init_array.65530,$sh_flags,$sh_type
23617 .balign 4
23618 .byte 'D', 'D', 'D', 'D'
23619 .section .dtors.64528,$sh_flags,$sh_type
23620 .balign 4
23621 .byte 'E', 'E', 'E', 'E'
23622 .section .ctors.64528,$sh_flags,$sh_type
23623 .balign 4
23624 .byte 'F', 'F', 'F', 'F'
23625 .section .fini_array.01005,$sh_flags,$sh_type
23626 .balign 4
23627 .byte 'G', 'G', 'G', 'G'
23628 .section .init_array.01005,$sh_flags,$sh_type
23629 .balign 4
23630 .byte 'H', 'H', 'H', 'H'
23631 .text
23632 .globl _start
23633 _start:
23634 EOF
23635 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23636 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23637 && $gcc_cv_objdump -s -j .init_array conftest \
23638 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23639 && $gcc_cv_objdump -s -j .fini_array conftest \
23640 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23641 gcc_cv_initfini_array=yes
23642 fi
23643 ;;
23644 *-*-solaris2*:no)
23645 # When Solaris ld added constructor priority support, it was
23646 # decided to only handle .init_array.N/.fini_array.N since
23647 # there was no need for backwards compatibility with
23648 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23649 # sections with correct execution order resp. to
23650 # .init_array/.fini_array, while gld merges them into
23651 # .init_array/.fini_array.
23652 cat > conftest.s <<EOF
23653 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23654 .align 4
23655 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23656 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23657 .align 4
23658 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23659 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23660 .align 4
23661 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23662 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23663 .align 4
23664 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23665 .text
23666 .globl _start
23667 _start:
23668 EOF
23669 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23670 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23671 && $gcc_cv_objdump -s -j .init_array conftest \
23672 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
23673 && $gcc_cv_objdump -s -j .fini_array conftest \
23674 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
23675 gcc_cv_initfini_array=yes
23676 fi
23677 ;;
23678 esac
23679 rm -f conftest conftest.*
23680 fi
23681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23682 /* end confdefs.h. */
23683
23684 #ifndef __ELF__
23685 # error Not an ELF OS
23686 #endif
23687 #include <stdlib.h>
23688 #if defined __GLIBC_PREREQ
23689 # if __GLIBC_PREREQ (2, 4)
23690 # else
23691 # error GLIBC 2.4 required
23692 # endif
23693 #else
23694 # if defined __sun__ && defined __svr4__
23695 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23696 # else
23697 # error The C library not known to support .init_array/.fini_array
23698 # endif
23699 #endif
23700
23701 _ACEOF
23702 if ac_fn_cxx_try_cpp "$LINENO"; then :
23703
23704 else
23705 gcc_cv_initfini_array=no
23706 fi
23707 rm -f conftest.err conftest.i conftest.$ac_ext;;
23708 esac
23709 else
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23711 $as_echo_n "checking cross compile... guessing... " >&6; }
23712 gcc_cv_initfini_array=no
23713 fi
23714 fi
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23716 $as_echo "$gcc_cv_initfini_array" >&6; }
23717 enable_initfini_array=$gcc_cv_initfini_array
23718
23719 fi
23720
23721
23722 cat >>confdefs.h <<_ACEOF
23723 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23724 _ACEOF
23725
23726
23727
23728 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23730 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23731 if ${gcc_cv_as_leb128+:} false; then :
23732 $as_echo_n "(cached) " >&6
23733 else
23734 gcc_cv_as_leb128=no
23735 if test $in_tree_gas = yes; then
23736 if test $in_tree_gas_is_elf = yes \
23737 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23738 then gcc_cv_as_leb128=yes
23739 fi
23740 elif test x$gcc_cv_as != x; then
23741 $as_echo ' .data
23742 .uleb128 L2 - L1
23743 L1:
23744 .uleb128 1280
23745 .sleb128 -1010
23746 L2:' > conftest.s
23747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23749 (eval $ac_try) 2>&5
23750 ac_status=$?
23751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23752 test $ac_status = 0; }; }
23753 then
23754 # GAS versions before 2.11 do not support uleb128,
23755 # despite appearing to.
23756 # ??? There exists an elf-specific test that will crash
23757 # the assembler. Perhaps it's better to figure out whether
23758 # arbitrary sections are supported and try the test.
23759 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23760 if echo "$as_ver" | grep GNU > /dev/null; then
23761 as_vers=`echo $as_ver | sed -n \
23762 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23763 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23764 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23765 if test $as_major -eq 2 && test $as_minor -lt 11
23766 then :
23767 else gcc_cv_as_leb128=yes
23768 fi
23769 fi
23770 else
23771 echo "configure: failed program was" >&5
23772 cat conftest.s >&5
23773 fi
23774 rm -f conftest.o conftest.s
23775 fi
23776 fi
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23778 $as_echo "$gcc_cv_as_leb128" >&6; }
23779 if test $gcc_cv_as_leb128 = yes; then
23780
23781 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23782
23783 fi
23784 if test $gcc_cv_as_leb128 != yes; then
23785
23786 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23787
23788 fi
23789
23790 # Determine if an .eh_frame section is read-only.
23791 gcc_fn_eh_frame_ro () {
23792 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23793 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23794 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23795 }
23796
23797 # Check if we have assembler support for unwind directives.
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23799 $as_echo_n "checking assembler for cfi directives... " >&6; }
23800 if ${gcc_cv_as_cfi_directive+:} false; then :
23801 $as_echo_n "(cached) " >&6
23802 else
23803 gcc_cv_as_cfi_directive=no
23804 if test x$gcc_cv_as != x; then
23805 $as_echo ' .text
23806 .cfi_startproc
23807 .cfi_offset 0, 0
23808 .cfi_same_value 1
23809 .cfi_def_cfa 1, 2
23810 .cfi_escape 1, 2, 3, 4, 5
23811 .cfi_endproc' > conftest.s
23812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23814 (eval $ac_try) 2>&5
23815 ac_status=$?
23816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23817 test $ac_status = 0; }; }
23818 then
23819 case "$target" in
23820 *-*-solaris*)
23821 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23822 # read-only and read-write sections, we need to make sure that the
23823 # assembler used emits read-write .eh_frame sections.
23824 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23825 gcc_cv_as_cfi_directive=yes
23826 elif test "x$gcc_cv_objdump" = x; then
23827 # No objdump, err on the side of caution.
23828 gcc_cv_as_cfi_directive=no
23829 else
23830 if test x$gas = xyes; then
23831 as_32_opt="--32"
23832 as_64_opt="--64"
23833 else
23834 as_32_opt="-m32"
23835 as_64_opt="-m64"
23836 fi
23837 case "$target" in
23838 sparc*-*-solaris2.*)
23839 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23840 if gcc_fn_eh_frame_ro $as_32_opt \
23841 || gcc_fn_eh_frame_ro $as_64_opt; then
23842 gcc_cv_as_cfi_directive=no
23843 else
23844 gcc_cv_as_cfi_directive=yes
23845 fi
23846 ;;
23847 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23848 # On Solaris/x86, make sure that GCC and assembler agree on using
23849 # read-only .eh_frame sections for 64-bit.
23850 if gcc_fn_eh_frame_ro $as_32_opt; then
23851 gcc_cv_as_cfi_directive=no
23852 elif gcc_fn_eh_frame_ro $as_64_opt; then
23853 gcc_cv_as_cfi_directive=yes
23854 else
23855 gcc_cv_as_cfi_directive=no
23856 fi
23857 ;;
23858 esac
23859 fi
23860 ;;
23861 *-*-*)
23862 gcc_cv_as_cfi_directive=yes
23863 ;;
23864 esac
23865 else
23866 echo "configure: failed program was" >&5
23867 cat conftest.s >&5
23868 fi
23869 rm -f conftest.o conftest.s
23870 fi
23871 fi
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23873 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23874
23875
23876 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23878 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23879 if ${gcc_cv_as_cfi_advance_working+:} false; then :
23880 $as_echo_n "(cached) " >&6
23881 else
23882 gcc_cv_as_cfi_advance_working=no
23883 if test x$gcc_cv_as != x; then
23884 $as_echo ' .text
23885 .cfi_startproc
23886 .cfi_adjust_cfa_offset 64
23887 .skip 75040, 0
23888 .cfi_adjust_cfa_offset 128
23889 .cfi_endproc' > conftest.s
23890 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23892 (eval $ac_try) 2>&5
23893 ac_status=$?
23894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23895 test $ac_status = 0; }; }
23896 then
23897
23898 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23899 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23900 gcc_cv_as_cfi_advance_working=yes
23901 fi
23902
23903 else
23904 echo "configure: failed program was" >&5
23905 cat conftest.s >&5
23906 fi
23907 rm -f conftest.o conftest.s
23908 fi
23909 fi
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23911 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23912
23913
23914 else
23915 # no objdump, err on the side of caution
23916 gcc_cv_as_cfi_advance_working=no
23917 fi
23918
23919
23920 cat >>confdefs.h <<_ACEOF
23921 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23922 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23923 _ACEOF
23924
23925
23926
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23928 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23929 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23930 $as_echo_n "(cached) " >&6
23931 else
23932 gcc_cv_as_cfi_personality_directive=no
23933 if test x$gcc_cv_as != x; then
23934 $as_echo ' .text
23935 .cfi_startproc
23936 .cfi_personality 0, symbol
23937 .cfi_endproc' > conftest.s
23938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23940 (eval $ac_try) 2>&5
23941 ac_status=$?
23942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23943 test $ac_status = 0; }; }
23944 then
23945 gcc_cv_as_cfi_personality_directive=yes
23946 else
23947 echo "configure: failed program was" >&5
23948 cat conftest.s >&5
23949 fi
23950 rm -f conftest.o conftest.s
23951 fi
23952 fi
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23954 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23955
23956
23957
23958 cat >>confdefs.h <<_ACEOF
23959 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23960 _ACEOF
23961
23962
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23964 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23965 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
23966 $as_echo_n "(cached) " >&6
23967 else
23968 gcc_cv_as_cfi_sections_directive=no
23969 if test x$gcc_cv_as != x; then
23970 $as_echo ' .text
23971 .cfi_sections .debug_frame, .eh_frame
23972 .cfi_startproc
23973 .cfi_endproc' > conftest.s
23974 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23976 (eval $ac_try) 2>&5
23977 ac_status=$?
23978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23979 test $ac_status = 0; }; }
23980 then
23981 case $target_os in
23982 win32 | pe | cygwin* | mingw32*)
23983 # Need to check that we generated the correct relocation for the
23984 # .debug_frame section. This was fixed for binutils 2.21.
23985 gcc_cv_as_cfi_sections_directive=no
23986 if test "x$gcc_cv_objdump" != x; then
23987 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23988 grep secrel > /dev/null; then
23989 gcc_cv_as_cfi_sections_directive=yes
23990 fi
23991 fi
23992 ;;
23993 *)
23994 gcc_cv_as_cfi_sections_directive=yes
23995 ;;
23996 esac
23997 else
23998 echo "configure: failed program was" >&5
23999 cat conftest.s >&5
24000 fi
24001 rm -f conftest.o conftest.s
24002 fi
24003 fi
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24005 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24006
24007
24008
24009
24010 cat >>confdefs.h <<_ACEOF
24011 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24012 _ACEOF
24013
24014
24015 # GAS versions up to and including 2.11.0 may mis-optimize
24016 # .eh_frame data.
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24018 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24019 if ${gcc_cv_as_eh_frame+:} false; then :
24020 $as_echo_n "(cached) " >&6
24021 else
24022 gcc_cv_as_eh_frame=no
24023 if test $in_tree_gas = yes; then
24024 if test $in_tree_gas_is_elf = yes \
24025 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24026 then gcc_cv_as_eh_frame=yes
24027 fi
24028 elif test x$gcc_cv_as != x; then
24029 $as_echo ' .text
24030 .LFB1:
24031 .4byte 0
24032 .L1:
24033 .4byte 0
24034 .LFE1:
24035 .section .eh_frame,"aw",@progbits
24036 __FRAME_BEGIN__:
24037 .4byte .LECIE1-.LSCIE1
24038 .LSCIE1:
24039 .4byte 0x0
24040 .byte 0x1
24041 .ascii "z\0"
24042 .byte 0x1
24043 .byte 0x78
24044 .byte 0x1a
24045 .byte 0x0
24046 .byte 0x4
24047 .4byte 1
24048 .p2align 1
24049 .LECIE1:
24050 .LSFDE1:
24051 .4byte .LEFDE1-.LASFDE1
24052 .LASFDE1:
24053 .4byte .LASFDE1-__FRAME_BEGIN__
24054 .4byte .LFB1
24055 .4byte .LFE1-.LFB1
24056 .byte 0x4
24057 .4byte .LFE1-.LFB1
24058 .byte 0x4
24059 .4byte .L1-.LFB1
24060 .LEFDE1:' > conftest.s
24061 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24063 (eval $ac_try) 2>&5
24064 ac_status=$?
24065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24066 test $ac_status = 0; }; }
24067 then
24068 cat > conftest.lit <<EOF
24069 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24070 0010 01000000 12000000 18000000 00000000 ................
24071 0020 08000000 04080000 0044 .........D
24072 EOF
24073 cat > conftest.big <<EOF
24074 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24075 0010 00000001 00000012 00000018 00000000 ................
24076 0020 00000008 04000000 0844 .........D
24077 EOF
24078 # If the assembler didn't choke, and we can objdump,
24079 # and we got the correct data, then succeed.
24080 # The text in the here-document typically retains its unix-style line
24081 # endings, while the output of objdump will use host line endings.
24082 # Therefore, use diff -b for the comparisons.
24083 if test x$gcc_cv_objdump != x \
24084 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24085 | tail -3 > conftest.got \
24086 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24087 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24088 then
24089 gcc_cv_as_eh_frame=yes
24090 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24092 (eval $ac_try) 2>&5
24093 ac_status=$?
24094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24095 test $ac_status = 0; }; }; then
24096 gcc_cv_as_eh_frame=buggy
24097 else
24098 # Uh oh, what do we do now?
24099 gcc_cv_as_eh_frame=no
24100 fi
24101 else
24102 echo "configure: failed program was" >&5
24103 cat conftest.s >&5
24104 fi
24105 rm -f conftest.o conftest.s
24106 fi
24107 fi
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24109 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24110
24111
24112
24113 if test $gcc_cv_as_eh_frame = buggy; then
24114
24115 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24116
24117 fi
24118
24119 # Test if the assembler supports the section flag 'e' or #exclude for
24120 # specifying an excluded section.
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24122 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24123 if ${gcc_cv_as_section_exclude_e+:} false; then :
24124 $as_echo_n "(cached) " >&6
24125 else
24126 gcc_cv_as_section_exclude_e=no
24127 if test $in_tree_gas = yes; then
24128 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24129 then gcc_cv_as_section_exclude_e=yes
24130 fi
24131 elif test x$gcc_cv_as != x; then
24132 $as_echo '.section foo1,"e"
24133 .byte 0,0,0,0' > conftest.s
24134 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24136 (eval $ac_try) 2>&5
24137 ac_status=$?
24138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24139 test $ac_status = 0; }; }
24140 then
24141 gcc_cv_as_section_exclude_e=yes
24142 else
24143 echo "configure: failed program was" >&5
24144 cat conftest.s >&5
24145 fi
24146 rm -f conftest.o conftest.s
24147 fi
24148 fi
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24150 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24151
24152
24153 if test $gcc_cv_as_section_exclude_e = no; then
24154 case "${target}" in
24155 # Solaris as uses #exclude instead.
24156 *-*-solaris2*)
24157 case "${target}" in
24158 sparc*-*-solaris2*)
24159 conftest_s='.section "foo1", #exclude'
24160 ;;
24161 i?86-*-solaris2* | x86_64-*-solaris2*)
24162 conftest_s='.section foo1, #exclude'
24163 ;;
24164 esac
24165 ;;
24166 esac
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24168 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24169 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24170 $as_echo_n "(cached) " >&6
24171 else
24172 gcc_cv_as_section_exclude_hash=no
24173 if test x$gcc_cv_as != x; then
24174 $as_echo "$conftest_s
24175 .byte 0,0,0,0" > conftest.s
24176 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24178 (eval $ac_try) 2>&5
24179 ac_status=$?
24180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24181 test $ac_status = 0; }; }
24182 then
24183 gcc_cv_as_section_exclude_hash=yes
24184 else
24185 echo "configure: failed program was" >&5
24186 cat conftest.s >&5
24187 fi
24188 rm -f conftest.o conftest.s
24189 fi
24190 fi
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24192 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24193
24194
24195 fi
24196
24197 cat >>confdefs.h <<_ACEOF
24198 #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`
24199 _ACEOF
24200
24201
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24203 $as_echo_n "checking assembler for section merging support... " >&6; }
24204 if ${gcc_cv_as_shf_merge+:} false; then :
24205 $as_echo_n "(cached) " >&6
24206 else
24207 gcc_cv_as_shf_merge=no
24208 if test $in_tree_gas = yes; then
24209 if test $in_tree_gas_is_elf = yes \
24210 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24211 then gcc_cv_as_shf_merge=yes
24212 fi
24213 elif test x$gcc_cv_as != x; then
24214 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24215 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24217 (eval $ac_try) 2>&5
24218 ac_status=$?
24219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24220 test $ac_status = 0; }; }
24221 then
24222 gcc_cv_as_shf_merge=yes
24223 else
24224 echo "configure: failed program was" >&5
24225 cat conftest.s >&5
24226 fi
24227 rm -f conftest.o conftest.s
24228 fi
24229 fi
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24231 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24232
24233
24234 if test $gcc_cv_as_shf_merge = no; then
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24236 $as_echo_n "checking assembler for section merging support... " >&6; }
24237 if ${gcc_cv_as_shf_merge+:} false; then :
24238 $as_echo_n "(cached) " >&6
24239 else
24240 gcc_cv_as_shf_merge=no
24241 if test $in_tree_gas = yes; then
24242 if test $in_tree_gas_is_elf = yes \
24243 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24244 then gcc_cv_as_shf_merge=yes
24245 fi
24246 elif test x$gcc_cv_as != x; then
24247 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24248 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24250 (eval $ac_try) 2>&5
24251 ac_status=$?
24252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24253 test $ac_status = 0; }; }
24254 then
24255 gcc_cv_as_shf_merge=yes
24256 else
24257 echo "configure: failed program was" >&5
24258 cat conftest.s >&5
24259 fi
24260 rm -f conftest.o conftest.s
24261 fi
24262 fi
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24264 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24265
24266
24267 fi
24268
24269 cat >>confdefs.h <<_ACEOF
24270 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24271 _ACEOF
24272
24273
24274 gcc_cv_ld_aligned_shf_merge=yes
24275 case "$target" in
24276 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24277 # alignment > 1.
24278 sparc*-*-solaris2.11*)
24279 if test x"$gnu_ld" = xno \
24280 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24281 gcc_cv_ld_aligned_shf_merge=no
24282 fi
24283 ;;
24284 esac
24285
24286 cat >>confdefs.h <<_ACEOF
24287 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24288 _ACEOF
24289
24290
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24292 $as_echo_n "checking assembler for stabs directive... " >&6; }
24293 if ${gcc_cv_as_stabs_directive+:} false; then :
24294 $as_echo_n "(cached) " >&6
24295 else
24296 gcc_cv_as_stabs_directive=no
24297 if test x$gcc_cv_as != x; then
24298 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24299 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24301 (eval $ac_try) 2>&5
24302 ac_status=$?
24303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24304 test $ac_status = 0; }; }
24305 then
24306 gcc_cv_as_stabs_directive=yes
24307 else
24308 echo "configure: failed program was" >&5
24309 cat conftest.s >&5
24310 fi
24311 rm -f conftest.o conftest.s
24312 fi
24313 fi
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24315 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24316 if test $gcc_cv_as_stabs_directive = yes; then
24317
24318 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24319
24320 fi
24321
24322
24323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24324 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24325 if ${gcc_cv_as_comdat_group+:} false; then :
24326 $as_echo_n "(cached) " >&6
24327 else
24328 gcc_cv_as_comdat_group=no
24329 if test $in_tree_gas = yes; then
24330 if test $in_tree_gas_is_elf = yes \
24331 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24332 then gcc_cv_as_comdat_group=yes
24333 fi
24334 elif test x$gcc_cv_as != x; then
24335 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24336 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24338 (eval $ac_try) 2>&5
24339 ac_status=$?
24340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24341 test $ac_status = 0; }; }
24342 then
24343 gcc_cv_as_comdat_group=yes
24344 else
24345 echo "configure: failed program was" >&5
24346 cat conftest.s >&5
24347 fi
24348 rm -f conftest.o conftest.s
24349 fi
24350 fi
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24352 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24353
24354
24355 if test $gcc_cv_as_comdat_group = yes; then
24356 gcc_cv_as_comdat_group_percent=no
24357 gcc_cv_as_comdat_group_group=no
24358 else
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24360 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24361 if ${gcc_cv_as_comdat_group_percent+:} false; then :
24362 $as_echo_n "(cached) " >&6
24363 else
24364 gcc_cv_as_comdat_group_percent=no
24365 if test $in_tree_gas = yes; then
24366 if test $in_tree_gas_is_elf = yes \
24367 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24368 then gcc_cv_as_comdat_group_percent=yes
24369 fi
24370 elif test x$gcc_cv_as != x; then
24371 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24372 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24374 (eval $ac_try) 2>&5
24375 ac_status=$?
24376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24377 test $ac_status = 0; }; }
24378 then
24379 gcc_cv_as_comdat_group_percent=yes
24380 else
24381 echo "configure: failed program was" >&5
24382 cat conftest.s >&5
24383 fi
24384 rm -f conftest.o conftest.s
24385 fi
24386 fi
24387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24388 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24389
24390
24391 if test $gcc_cv_as_comdat_group_percent = yes; then
24392 gcc_cv_as_comdat_group_group=no
24393 else
24394 case "${target}" in
24395 # Sun as uses a completely different syntax.
24396 *-*-solaris2*)
24397 case "${target}" in
24398 sparc*-*-solaris2*)
24399 conftest_s='
24400 .group foo,".text%foo",#comdat
24401 .section ".text%foo", #alloc,#execinstr,#progbits
24402 .globl foo
24403 foo:
24404 '
24405 ;;
24406 i?86-*-solaris2* | x86_64-*-solaris2*)
24407 conftest_s='
24408 .group foo,.text%foo,#comdat
24409 .section .text%foo, "ax", @progbits
24410 .globl foo
24411 foo:
24412 '
24413 ;;
24414 esac
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24416 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24417 if ${gcc_cv_as_comdat_group_group+:} false; then :
24418 $as_echo_n "(cached) " >&6
24419 else
24420 gcc_cv_as_comdat_group_group=no
24421 if test x$gcc_cv_as != x; then
24422 $as_echo "$conftest_s" > conftest.s
24423 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24425 (eval $ac_try) 2>&5
24426 ac_status=$?
24427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24428 test $ac_status = 0; }; }
24429 then
24430 gcc_cv_as_comdat_group_group=yes
24431 else
24432 echo "configure: failed program was" >&5
24433 cat conftest.s >&5
24434 fi
24435 rm -f conftest.o conftest.s
24436 fi
24437 fi
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24439 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24440
24441
24442 ;;
24443 esac
24444 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24445 gcc_cv_as_comdat_group_group=no
24446 fi
24447 fi
24448 fi
24449 if test x"$ld_is_gold" = xyes; then
24450 comdat_group=yes
24451 elif test $in_tree_ld = yes ; then
24452 comdat_group=no
24453 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 \
24454 && test $in_tree_ld_is_elf = yes; then
24455 comdat_group=yes
24456 fi
24457 elif echo "$ld_ver" | grep GNU > /dev/null; then
24458 comdat_group=yes
24459 if test 0"$ld_date" -lt 20050308; then
24460 if test -n "$ld_date"; then
24461 # If there was date string, but was earlier than 2005-03-08, fail
24462 comdat_group=no
24463 elif test "$ld_vers_major" -lt 2; then
24464 comdat_group=no
24465 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24466 comdat_group=no
24467 fi
24468 fi
24469 else
24470 case "${target}" in
24471 *-*-solaris2.1[1-9]*)
24472 comdat_group=no
24473 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24474 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24475 # version 1.688.
24476 #
24477 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24478 # least ld version 1.2267.
24479 if test "$ld_vers_major" -gt 1; then
24480 comdat_group=yes
24481 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24482 comdat_group=yes
24483 elif test "$ld_vers_minor" -ge 2267; then
24484 comdat_group=yes
24485 fi
24486 ;;
24487 *)
24488 # Assume linkers other than GNU ld don't support COMDAT group.
24489 comdat_group=no
24490 ;;
24491 esac
24492 fi
24493 # Allow overriding the automatic COMDAT group tests above.
24494 # Check whether --enable-comdat was given.
24495 if test "${enable_comdat+set}" = set; then :
24496 enableval=$enable_comdat; comdat_group="$enable_comdat"
24497 fi
24498
24499 if test $comdat_group = no; then
24500 gcc_cv_as_comdat_group=no
24501 gcc_cv_as_comdat_group_percent=no
24502 gcc_cv_as_comdat_group_group=no
24503 fi
24504
24505 cat >>confdefs.h <<_ACEOF
24506 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24507 || test $gcc_cv_as_comdat_group_percent = yes \
24508 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24509 _ACEOF
24510
24511
24512 # Restrict this test to Solaris/x86: other targets define this statically.
24513 case "${target}" in
24514 i?86-*-solaris2* | x86_64-*-solaris2*)
24515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24516 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24517 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24518 hidden_linkonce=yes
24519 else
24520 case "${target}" in
24521 # Full support for hidden thunks in linkonce sections only appeared in
24522 # Solaris 11/OpenSolaris.
24523 *-*-solaris2.1[1-9]*)
24524 hidden_linkonce=yes
24525 ;;
24526 *)
24527 hidden_linkonce=no
24528 ;;
24529 esac
24530 fi
24531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24532 $as_echo "$hidden_linkonce" >&6; }
24533
24534 cat >>confdefs.h <<_ACEOF
24535 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24536 _ACEOF
24537
24538 ;;
24539 esac
24540
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24542 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24543 if ${gcc_cv_as_is_stmt+:} false; then :
24544 $as_echo_n "(cached) " >&6
24545 else
24546 gcc_cv_as_is_stmt=no
24547 if test $in_tree_gas = yes; then
24548 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24549 then gcc_cv_as_is_stmt=yes
24550 fi
24551 elif test x$gcc_cv_as != x; then
24552 $as_echo ' .text
24553 .file 1 "conf.c"
24554 .loc 1 1 0 is_stmt 1' > conftest.s
24555 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24557 (eval $ac_try) 2>&5
24558 ac_status=$?
24559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24560 test $ac_status = 0; }; }
24561 then
24562 gcc_cv_as_is_stmt=yes
24563 else
24564 echo "configure: failed program was" >&5
24565 cat conftest.s >&5
24566 fi
24567 rm -f conftest.o conftest.s
24568 fi
24569 fi
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24571 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24572 if test $gcc_cv_as_is_stmt = yes; then
24573
24574 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24575
24576 fi
24577
24578
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24580 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24581 if ${gcc_cv_as_discriminator+:} false; then :
24582 $as_echo_n "(cached) " >&6
24583 else
24584 gcc_cv_as_discriminator=no
24585 if test $in_tree_gas = yes; then
24586 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24587 then gcc_cv_as_discriminator=yes
24588 fi
24589 elif test x$gcc_cv_as != x; then
24590 $as_echo ' .text
24591 .file 1 "conf.c"
24592 .loc 1 1 0 discriminator 1' > conftest.s
24593 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24595 (eval $ac_try) 2>&5
24596 ac_status=$?
24597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24598 test $ac_status = 0; }; }
24599 then
24600 gcc_cv_as_discriminator=yes
24601 else
24602 echo "configure: failed program was" >&5
24603 cat conftest.s >&5
24604 fi
24605 rm -f conftest.o conftest.s
24606 fi
24607 fi
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24609 $as_echo "$gcc_cv_as_discriminator" >&6; }
24610 if test $gcc_cv_as_discriminator = yes; then
24611
24612 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24613
24614 fi
24615
24616
24617 # Catch the newlib flag of the same name so we can gate GCC features on it.
24618 # Check whether --enable-newlib-nano-formatted-io was given.
24619 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
24620 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
24621 yes|no)
24622 ;;
24623 *)
24624 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
24625 ;;
24626 esac
24627 fi
24628
24629
24630 # Thread-local storage - the check is heavily parameterized.
24631 conftest_s=
24632 tls_first_major=
24633 tls_first_minor=
24634 tls_as_opt=
24635 case "$target" in
24636 alpha*-*-*)
24637 conftest_s='
24638 .section ".tdata","awT",@progbits
24639 foo: .long 25
24640 .text
24641 ldq $27,__tls_get_addr($29) !literal!1
24642 lda $16,foo($29) !tlsgd!1
24643 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24644 ldq $27,__tls_get_addr($29) !literal!2
24645 lda $16,foo($29) !tlsldm!2
24646 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24647 ldq $1,foo($29) !gotdtprel
24648 ldah $2,foo($29) !dtprelhi
24649 lda $3,foo($2) !dtprello
24650 lda $4,foo($29) !dtprel
24651 ldq $1,foo($29) !gottprel
24652 ldah $2,foo($29) !tprelhi
24653 lda $3,foo($2) !tprello
24654 lda $4,foo($29) !tprel'
24655 tls_first_major=2
24656 tls_first_minor=13
24657 tls_as_opt=--fatal-warnings
24658 ;;
24659 arc*-*-*)
24660 conftest_s='
24661 add_s r0,r0, @foo@tpoff'
24662 tls_first_major=2
24663 tls_first_minor=23
24664 ;;
24665 cris-*-*|crisv32-*-*)
24666 conftest_s='
24667 .section ".tdata","awT",@progbits
24668 x: .long 25
24669 .text
24670 move.d x:IE,$r10
24671 nop'
24672 tls_first_major=2
24673 tls_first_minor=20
24674 tls_as_opt=--fatal-warnings
24675 ;;
24676 frv*-*-*)
24677 conftest_s='
24678 .section ".tdata","awT",@progbits
24679 x: .long 25
24680 .text
24681 call #gettlsoff(x)'
24682 tls_first_major=2
24683 tls_first_minor=14
24684 ;;
24685 hppa*-*-linux*)
24686 conftest_s='
24687 t1: .reg %r20
24688 t2: .reg %r21
24689 gp: .reg %r19
24690 .section ".tdata","awT",@progbits
24691 foo: .long 25
24692 .text
24693 .align 4
24694 addil LT%foo-$tls_gdidx$,gp
24695 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24696 b __tls_get_addr
24697 nop
24698 addil LT%foo-$tls_ldidx$,gp
24699 b __tls_get_addr
24700 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24701 addil LR%foo-$tls_dtpoff$,%ret0
24702 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24703 mfctl %cr27,%t1
24704 addil LT%foo-$tls_ieoff$,gp
24705 ldw RT%foo-$tls_ieoff$(%r1),%t2
24706 add %t1,%t2,%t3
24707 mfctl %cr27,%t1
24708 addil LR%foo-$tls_leoff$,%t1
24709 ldo RR%foo-$tls_leoff$(%r1),%t2'
24710 tls_first_major=2
24711 tls_first_minor=15
24712 tls_as_opt=--fatal-warnings
24713 ;;
24714 arm*-*-*)
24715 conftest_s='
24716 .section ".tdata","awT",%progbits
24717 foo: .long 25
24718 .text
24719 .word foo(gottpoff)
24720 .word foo(tpoff)
24721 .word foo(tlsgd)
24722 .word foo(tlsldm)
24723 .word foo(tlsldo)'
24724 tls_first_major=2
24725 tls_first_minor=17
24726 ;;
24727 i[34567]86-*-* | x86_64-*-*)
24728 case "$target" in
24729 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
24730 on_solaris=yes
24731 ;;
24732 *)
24733 on_solaris=no
24734 ;;
24735 esac
24736 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24737 conftest_s='
24738 .section .tdata,"awt",@progbits'
24739 tls_first_major=0
24740 tls_first_minor=0
24741 tls_section_flag=t
24742
24743 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24744
24745 else
24746 conftest_s='
24747 .section ".tdata","awT",@progbits'
24748 tls_first_major=2
24749 tls_first_minor=14
24750 tls_section_flag=T
24751 tls_as_opt="--fatal-warnings"
24752 fi
24753 case "$target" in
24754 i[34567]86-*-*)
24755 conftest_s="$conftest_s
24756 foo: .long 25
24757 .text
24758 movl %gs:0, %eax
24759 leal foo@tlsgd(,%ebx,1), %eax
24760 leal foo@tlsldm(%ebx), %eax
24761 leal foo@dtpoff(%eax), %edx
24762 movl foo@gottpoff(%ebx), %eax
24763 subl foo@gottpoff(%ebx), %eax
24764 addl foo@gotntpoff(%ebx), %eax
24765 movl foo@indntpoff, %eax
24766 movl \$foo@tpoff, %eax
24767 subl \$foo@tpoff, %eax
24768 leal foo@ntpoff(%ecx), %eax"
24769 ;;
24770 x86_64-*-*)
24771 if test x$on_solaris = xyes; then
24772 case $gas_flag in
24773 yes) tls_as_opt="$tls_as_opt --64" ;;
24774 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24775 esac
24776 fi
24777 conftest_s="$conftest_s
24778 foo: .long 25
24779 .text
24780 movq %fs:0, %rax
24781 leaq foo@tlsgd(%rip), %rdi
24782 leaq foo@tlsld(%rip), %rdi
24783 leaq foo@dtpoff(%rax), %rdx
24784 movq foo@gottpoff(%rip), %rax
24785 movq \$foo@tpoff, %rax"
24786 ;;
24787 esac
24788 ;;
24789 ia64-*-*)
24790 conftest_s='
24791 .section ".tdata","awT",@progbits
24792 foo: data8 25
24793 .text
24794 addl r16 = @ltoff(@dtpmod(foo#)), gp
24795 addl r17 = @ltoff(@dtprel(foo#)), gp
24796 addl r18 = @ltoff(@tprel(foo#)), gp
24797 addl r19 = @dtprel(foo#), gp
24798 adds r21 = @dtprel(foo#), r13
24799 movl r23 = @dtprel(foo#)
24800 addl r20 = @tprel(foo#), gp
24801 adds r22 = @tprel(foo#), r13
24802 movl r24 = @tprel(foo#)'
24803 tls_first_major=2
24804 tls_first_minor=13
24805 tls_as_opt=--fatal-warnings
24806 ;;
24807 microblaze*-*-*)
24808 conftest_s='
24809 .section .tdata,"awT",@progbits
24810 x:
24811 .word 2
24812 .text
24813 addik r5,r20,x@TLSGD
24814 addik r5,r20,x@TLSLDM'
24815 tls_first_major=2
24816 tls_first_minor=20
24817 tls_as_opt='--fatal-warnings'
24818 ;;
24819 mips*-*-*)
24820 conftest_s='
24821 .section .tdata,"awT",@progbits
24822 x:
24823 .word 2
24824 .text
24825 addiu $4, $28, %tlsgd(x)
24826 addiu $4, $28, %tlsldm(x)
24827 lui $4, %dtprel_hi(x)
24828 addiu $4, $4, %dtprel_lo(x)
24829 lw $4, %gottprel(x)($28)
24830 lui $4, %tprel_hi(x)
24831 addiu $4, $4, %tprel_lo(x)'
24832 tls_first_major=2
24833 tls_first_minor=16
24834 tls_as_opt='-32 --fatal-warnings'
24835 ;;
24836 m68k-*-*)
24837 conftest_s='
24838 .section .tdata,"awT",@progbits
24839 x:
24840 .word 2
24841 .text
24842 foo:
24843 move.l x@TLSGD(%a5),%a0
24844 move.l x@TLSLDM(%a5),%a0
24845 move.l x@TLSLDO(%a5),%a0
24846 move.l x@TLSIE(%a5),%a0
24847 move.l x@TLSLE(%a5),%a0'
24848 tls_first_major=2
24849 tls_first_minor=19
24850 tls_as_opt='--fatal-warnings'
24851 ;;
24852 nios2-*-*)
24853 conftest_s='
24854 .section ".tdata","awT",@progbits'
24855 tls_first_major=2
24856 tls_first_minor=23
24857 tls_as_opt="--fatal-warnings"
24858 ;;
24859 aarch64*-*-*)
24860 conftest_s='
24861 .section ".tdata","awT",%progbits
24862 foo: .long 25
24863 .text
24864 adrp x0, :tlsgd:x
24865 add x0, x0, #:tlsgd_lo12:x
24866 bl __tls_get_addr
24867 nop'
24868 tls_first_major=2
24869 tls_first_minor=20
24870 tls_as_opt='--fatal-warnings'
24871 ;;
24872 or1k*-*-*)
24873 conftest_s='
24874 .section ".tdata","awT",@progbits
24875 foo: .long 25
24876 .text
24877 l.movhi r3, tpoffha(foo)
24878 l.add r3, r3, r10
24879 l.lwz r4, tpofflo(foo)(r3)'
24880 tls_first_major=2
24881 tls_first_minor=30
24882 tls_as_opt=--fatal-warnings
24883 ;;
24884 powerpc-ibm-aix*)
24885 conftest_s='
24886 .extern __get_tpointer
24887 .toc
24888 LC..1:
24889 .tc a[TC],a[TL]@le
24890 .csect .text[PR]
24891 .tlstest:
24892 lwz 9,LC..1(2)
24893 bla __get_tpointer
24894 lwzx 3,9,3
24895 .globl a
24896 .csect a[TL],4
24897 a:
24898 .space 4'
24899 tls_first_major=0
24900 tls_first_minor=0
24901 ;;
24902 powerpc64*-*-*)
24903 conftest_s='
24904 .section ".tdata","awT",@progbits
24905 .align 3
24906 ld0: .space 8
24907 ld1: .space 8
24908 x1: .space 8
24909 x2: .space 8
24910 x3: .space 8
24911 .text
24912 addi 3,2,ld0@got@tlsgd
24913 bl .__tls_get_addr
24914 nop
24915 addi 3,2,ld1@toc
24916 bl .__tls_get_addr
24917 nop
24918 addi 3,2,x1@got@tlsld
24919 bl .__tls_get_addr
24920 nop
24921 addi 9,3,x1@dtprel
24922 bl .__tls_get_addr
24923 nop
24924 addis 9,3,x2@dtprel@ha
24925 addi 9,9,x2@dtprel@l
24926 bl .__tls_get_addr
24927 nop
24928 ld 9,x3@got@dtprel(2)
24929 add 9,9,3
24930 bl .__tls_get_addr
24931 nop'
24932 tls_first_major=2
24933 tls_first_minor=14
24934 tls_as_opt="-a64 --fatal-warnings"
24935 ;;
24936 powerpc*-*-*)
24937 conftest_s='
24938 .section ".tdata","awT",@progbits
24939 .align 2
24940 ld0: .space 4
24941 ld1: .space 4
24942 x1: .space 4
24943 x2: .space 4
24944 x3: .space 4
24945 .text
24946 addi 3,31,ld0@got@tlsgd
24947 bl __tls_get_addr
24948 addi 3,31,x1@got@tlsld
24949 bl __tls_get_addr
24950 addi 9,3,x1@dtprel
24951 addis 9,3,x2@dtprel@ha
24952 addi 9,9,x2@dtprel@l
24953 lwz 9,x3@got@tprel(31)
24954 add 9,9,x@tls
24955 addi 9,2,x1@tprel
24956 addis 9,2,x2@tprel@ha
24957 addi 9,9,x2@tprel@l'
24958 tls_first_major=2
24959 tls_first_minor=14
24960 tls_as_opt="-a32 --fatal-warnings"
24961 ;;
24962 riscv*-*-*)
24963 conftest_s='
24964 .section .tdata,"awT",@progbits
24965 x: .word 2
24966 .text
24967 la.tls.gd a0,x
24968 call __tls_get_addr'
24969 tls_first_major=2
24970 tls_first_minor=21
24971 tls_as_opt='--fatal-warnings'
24972 ;;
24973 s390-*-*)
24974 conftest_s='
24975 .section ".tdata","awT",@progbits
24976 foo: .long 25
24977 .text
24978 .long foo@TLSGD
24979 .long foo@TLSLDM
24980 .long foo@DTPOFF
24981 .long foo@NTPOFF
24982 .long foo@GOTNTPOFF
24983 .long foo@INDNTPOFF
24984 l %r1,foo@GOTNTPOFF(%r12)
24985 l %r1,0(%r1):tls_load:foo
24986 bas %r14,0(%r1,%r13):tls_gdcall:foo
24987 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24988 tls_first_major=2
24989 tls_first_minor=14
24990 tls_as_opt="-m31 --fatal-warnings"
24991 ;;
24992 s390x-*-*)
24993 conftest_s='
24994 .section ".tdata","awT",@progbits
24995 foo: .long 25
24996 .text
24997 .quad foo@TLSGD
24998 .quad foo@TLSLDM
24999 .quad foo@DTPOFF
25000 .quad foo@NTPOFF
25001 .quad foo@GOTNTPOFF
25002 lg %r1,foo@GOTNTPOFF(%r12)
25003 larl %r1,foo@INDNTPOFF
25004 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25005 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25006 tls_first_major=2
25007 tls_first_minor=14
25008 tls_as_opt="-m64 -Aesame --fatal-warnings"
25009 ;;
25010 sh-*-* | sh[123456789lbe]*-*-*)
25011 conftest_s='
25012 .section ".tdata","awT",@progbits
25013 foo: .long 25
25014 .text
25015 .long foo@TLSGD
25016 .long foo@TLSLDM
25017 .long foo@DTPOFF
25018 .long foo@GOTTPOFF
25019 .long foo@TPOFF'
25020 tls_first_major=2
25021 tls_first_minor=13
25022 tls_as_opt=--fatal-warnings
25023 ;;
25024 sparc*-*-*)
25025 case "$target" in
25026 sparc*-sun-solaris2.*)
25027 on_solaris=yes
25028 ;;
25029 *)
25030 on_solaris=no
25031 ;;
25032 esac
25033 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25034 conftest_s='
25035 .section ".tdata",#alloc,#write,#tls'
25036 tls_first_major=0
25037 tls_first_minor=0
25038 else
25039 conftest_s='
25040 .section ".tdata","awT",@progbits'
25041 tls_first_major=2
25042 tls_first_minor=14
25043 tls_as_opt="-32 --fatal-warnings"
25044 fi
25045 conftest_s="$conftest_s
25046 foo: .long 25
25047 .text
25048 sethi %tgd_hi22(foo), %o0
25049 add %o0, %tgd_lo10(foo), %o1
25050 add %l7, %o1, %o0, %tgd_add(foo)
25051 call __tls_get_addr, %tgd_call(foo)
25052 sethi %tldm_hi22(foo), %l1
25053 add %l1, %tldm_lo10(foo), %l2
25054 add %l7, %l2, %o0, %tldm_add(foo)
25055 call __tls_get_addr, %tldm_call(foo)
25056 sethi %tldo_hix22(foo), %l3
25057 xor %l3, %tldo_lox10(foo), %l4
25058 add %o0, %l4, %l5, %tldo_add(foo)
25059 sethi %tie_hi22(foo), %o3
25060 add %o3, %tie_lo10(foo), %o3
25061 ld [%l7 + %o3], %o2, %tie_ld(foo)
25062 add %g7, %o2, %o4, %tie_add(foo)
25063 sethi %tle_hix22(foo), %l1
25064 xor %l1, %tle_lox10(foo), %o5
25065 ld [%g7 + %o5], %o1"
25066 ;;
25067 tilepro*-*-*)
25068 conftest_s='
25069 .section ".tdata","awT",@progbits
25070 foo: .long 25
25071 .text
25072 addli r0, zero, tls_gd(foo)
25073 auli r0, zero, tls_gd_ha16(foo)
25074 addli r0, r0, tls_gd_lo16(foo)
25075 jal __tls_get_addr
25076 addli r0, zero, tls_ie(foo)
25077 auli r0, r0, tls_ie_ha16(foo)
25078 addli r0, r0, tls_ie_lo16(foo)'
25079 tls_first_major=2
25080 tls_first_minor=22
25081 tls_as_opt="--fatal-warnings"
25082 ;;
25083 tilegx*-*-*)
25084 conftest_s='
25085 .section ".tdata","awT",@progbits
25086 foo: .long 25
25087 .text
25088 shl16insli r0, zero, hw0_last_tls_gd(foo)
25089 shl16insli r0, zero, hw1_last_tls_gd(foo)
25090 shl16insli r0, r0, hw0_tls_gd(foo)
25091 jal __tls_get_addr
25092 shl16insli r0, zero, hw1_last_tls_ie(foo)
25093 shl16insli r0, r0, hw0_tls_ie(foo)'
25094 tls_first_major=2
25095 tls_first_minor=22
25096 tls_as_opt="--fatal-warnings"
25097 ;;
25098 xtensa*-*-*)
25099 conftest_s='
25100 .section ".tdata","awT",@progbits
25101 foo: .long 25
25102 .text
25103 movi a8, foo@TLSFUNC
25104 movi a10, foo@TLSARG
25105 callx8.tls a8, foo@TLSCALL'
25106 tls_first_major=2
25107 tls_first_minor=19
25108 ;;
25109 esac
25110 set_have_as_tls=no
25111 if test "x$enable_tls" = xno ; then
25112 : # TLS explicitly disabled.
25113 elif test "x$enable_tls" = xyes ; then
25114 set_have_as_tls=yes # TLS explicitly enabled.
25115 elif test -z "$tls_first_major"; then
25116 : # If we don't have a check, assume no support.
25117 else
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25119 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25120 if ${gcc_cv_as_tls+:} false; then :
25121 $as_echo_n "(cached) " >&6
25122 else
25123 gcc_cv_as_tls=no
25124 if test $in_tree_gas = yes; then
25125 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25126 then gcc_cv_as_tls=yes
25127 fi
25128 elif test x$gcc_cv_as != x; then
25129 $as_echo "$conftest_s" > conftest.s
25130 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25132 (eval $ac_try) 2>&5
25133 ac_status=$?
25134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25135 test $ac_status = 0; }; }
25136 then
25137 gcc_cv_as_tls=yes
25138 else
25139 echo "configure: failed program was" >&5
25140 cat conftest.s >&5
25141 fi
25142 rm -f conftest.o conftest.s
25143 fi
25144 fi
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25146 $as_echo "$gcc_cv_as_tls" >&6; }
25147 if test $gcc_cv_as_tls = yes; then
25148 set_have_as_tls=yes
25149 fi
25150
25151 fi
25152 if test $set_have_as_tls = yes ; then
25153
25154 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25155
25156 fi
25157
25158 # Target-specific assembler checks.
25159
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25161 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25162 gcc_cv_ld_static_dynamic=no
25163 gcc_cv_ld_static_option='-Bstatic'
25164 gcc_cv_ld_dynamic_option='-Bdynamic'
25165 if test $in_tree_ld = yes ; then
25166 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
25167 gcc_cv_ld_static_dynamic=yes
25168 fi
25169 elif test x$gcc_cv_ld != x; then
25170 # Check if linker supports -Bstatic/-Bdynamic option
25171 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25172 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25173 gcc_cv_ld_static_dynamic=yes
25174 else
25175 case "$target" in
25176 # AIX ld uses -b flags
25177 *-*-aix4.[23]* | *-*-aix[5-9]*)
25178 gcc_cv_ld_static_dynamic=yes
25179 gcc_cv_ld_static_option="-bstatic"
25180 gcc_cv_ld_dynamic_option="-bdynamic"
25181 ;;
25182 # HP-UX ld uses -a flags to select between shared and archive.
25183 *-*-hpux*)
25184 if test x"$gnu_ld" = xno; then
25185 gcc_cv_ld_static_dynamic=yes
25186 gcc_cv_ld_static_option="-aarchive_shared"
25187 gcc_cv_ld_dynamic_option="-adefault"
25188 fi
25189 ;;
25190 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25191 *-*-solaris2*)
25192 gcc_cv_ld_static_dynamic=yes
25193 ;;
25194 esac
25195 fi
25196 fi
25197 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25198
25199 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25200
25201
25202 cat >>confdefs.h <<_ACEOF
25203 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25204 _ACEOF
25205
25206
25207 cat >>confdefs.h <<_ACEOF
25208 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25209 _ACEOF
25210
25211 fi
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25213 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25214
25215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25216 $as_echo_n "checking linker --version-script option... " >&6; }
25217 gcc_cv_ld_version_script=no
25218 ld_version_script_option=''
25219 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25220 gcc_cv_ld_version_script=yes
25221 ld_version_script_option='--version-script'
25222 elif test x$gcc_cv_ld != x; then
25223 case "$target" in
25224 # Solaris 2 ld always supports -M. It also supports a subset of
25225 # --version-script since Solaris 11.4, but requires
25226 # -z gnu-version-script-compat to activate.
25227 *-*-solaris2*)
25228 gcc_cv_ld_version_script=yes
25229 ld_version_script_option='-M'
25230 ;;
25231 esac
25232 fi
25233 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25235 $as_echo "$gcc_cv_ld_version_script" >&6; }
25236
25237
25238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25239 $as_echo_n "checking linker soname option... " >&6; }
25240 gcc_cv_ld_soname=no
25241 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25242 gcc_cv_ld_soname=yes
25243 ld_soname_option='-soname'
25244 elif test x$gcc_cv_ld != x; then
25245 case "$target" in
25246 *-*-darwin*)
25247 gcc_cv_ld_soname=yes
25248 ld_soname_option='-install_name'
25249 ;;
25250 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25251 # ld compatiblity since some Solaris 10 update.
25252 *-*-solaris2*)
25253 gcc_cv_ld_soname=yes
25254 ld_soname_option='-h'
25255 ;;
25256 esac
25257 fi
25258 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25260 $as_echo "$gcc_cv_ld_soname" >&6; }
25261
25262
25263 if test x"$demangler_in_ld" = xyes; then
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25265 $as_echo_n "checking linker --demangle support... " >&6; }
25266 gcc_cv_ld_demangle=no
25267 if test $in_tree_ld = yes; then
25268 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 \
25269 gcc_cv_ld_demangle=yes
25270 fi
25271 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25272 # Check if the GNU linker supports --demangle option
25273 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25274 gcc_cv_ld_demangle=yes
25275 fi
25276 fi
25277 if test x"$gcc_cv_ld_demangle" = xyes; then
25278
25279 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25280
25281 fi
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25283 $as_echo "$gcc_cv_ld_demangle" >&6; }
25284 fi
25285
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25287 $as_echo_n "checking linker plugin support... " >&6; }
25288 gcc_cv_lto_plugin=0
25289 if test -f liblto_plugin.la; then
25290 save_ld_ver="$ld_ver"
25291 save_ld_vers_major="$ld_vers_major"
25292 save_ld_vers_minor="$ld_vers_minor"
25293 save_ld_is_gold="$ld_is_gold"
25294
25295 ld_is_gold=no
25296
25297 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25298 ld_ver="GNU ld"
25299 # FIXME: ld_is_gold?
25300 ld_vers_major="$gcc_cv_gld_major_version"
25301 ld_vers_minor="$gcc_cv_gld_minor_version"
25302 else
25303 # Determine plugin linker version.
25304 # FIXME: Partial duplicate from above, generalize.
25305 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25306 if echo "$ld_ver" | grep GNU > /dev/null; then
25307 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25308 ld_is_gold=yes
25309 ld_vers=`echo $ld_ver | sed -n \
25310 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25311 else
25312 ld_vers=`echo $ld_ver | sed -n \
25313 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25314 fi
25315 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25316 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25317 fi
25318 fi
25319
25320 # Determine plugin support.
25321 if echo "$ld_ver" | grep GNU > /dev/null; then
25322 # Require GNU ld or gold 2.21+ for plugin support by default.
25323 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25324 gcc_cv_lto_plugin=2
25325 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25326 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25327 gcc_cv_lto_plugin=1
25328 fi
25329 fi
25330
25331 ld_ver="$save_ld_ver"
25332 ld_vers_major="$save_ld_vers_major"
25333 ld_vers_minor="$save_ld_vers_minor"
25334 ld_is_gold="$save_ld_is_gold"
25335 fi
25336
25337 cat >>confdefs.h <<_ACEOF
25338 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25339 _ACEOF
25340
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25342 $as_echo "$gcc_cv_lto_plugin" >&6; }
25343
25344 # Target OS-specific assembler checks.
25345
25346 case "$target_os" in
25347 darwin*)
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25349 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25350 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25351 $as_echo_n "(cached) " >&6
25352 else
25353 gcc_cv_as_mmacosx_version_min=no
25354 if test x$gcc_cv_as != x; then
25355 $as_echo '.text' > conftest.s
25356 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25358 (eval $ac_try) 2>&5
25359 ac_status=$?
25360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25361 test $ac_status = 0; }; }
25362 then
25363 gcc_cv_as_mmacosx_version_min=yes
25364 else
25365 echo "configure: failed program was" >&5
25366 cat conftest.s >&5
25367 fi
25368 rm -f conftest.o conftest.s
25369 fi
25370 fi
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25372 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25373 if test $gcc_cv_as_mmacosx_version_min = yes; then
25374
25375 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25376
25377 fi
25378
25379 ;;
25380 esac
25381
25382 # Target CPU-specific assembler checks.
25383
25384 case "$target" in
25385 aarch64*-*-*)
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25387 $as_echo_n "checking assembler for -mabi option... " >&6; }
25388 if ${gcc_cv_as_aarch64_mabi+:} false; then :
25389 $as_echo_n "(cached) " >&6
25390 else
25391 gcc_cv_as_aarch64_mabi=no
25392 if test x$gcc_cv_as != x; then
25393 $as_echo '.text' > conftest.s
25394 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25396 (eval $ac_try) 2>&5
25397 ac_status=$?
25398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25399 test $ac_status = 0; }; }
25400 then
25401 gcc_cv_as_aarch64_mabi=yes
25402 else
25403 echo "configure: failed program was" >&5
25404 cat conftest.s >&5
25405 fi
25406 rm -f conftest.o conftest.s
25407 fi
25408 fi
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25410 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25411
25412
25413 if test x$gcc_cv_as_aarch64_mabi = xyes; then
25414
25415 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25416
25417 else
25418 if test x$with_abi = xilp32; then
25419 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25420 Upgrade the Assembler." "$LINENO" 5
25421 fi
25422 if test x"$with_multilib_list" = xdefault; then
25423 TM_MULTILIB_CONFIG=lp64
25424 else
25425 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25426 for aarch64_multilib in ${aarch64_multilibs}; do
25427 case ${aarch64_multilib} in
25428 ilp32)
25429 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25430 Upgrade the Assembler." "$LINENO" 5
25431 ;;
25432 *)
25433 ;;
25434 esac
25435 done
25436 fi
25437 fi
25438 # Check if we have binutils support for relocations types needed by -fpic
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25440 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25441 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25442 $as_echo_n "(cached) " >&6
25443 else
25444 gcc_cv_as_aarch64_picreloc=no
25445 if test x$gcc_cv_as != x; then
25446 $as_echo '
25447 .text
25448 ldr x0, [x2, #:gotpage_lo15:globalsym]
25449 ' > conftest.s
25450 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25452 (eval $ac_try) 2>&5
25453 ac_status=$?
25454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25455 test $ac_status = 0; }; }
25456 then
25457 gcc_cv_as_aarch64_picreloc=yes
25458 else
25459 echo "configure: failed program was" >&5
25460 cat conftest.s >&5
25461 fi
25462 rm -f conftest.o conftest.s
25463 fi
25464 fi
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25466 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25467 if test $gcc_cv_as_aarch64_picreloc = yes; then
25468
25469 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25470
25471 fi
25472
25473 # Enable Branch Target Identification Mechanism and Return Address
25474 # Signing by default.
25475 # Check whether --enable-standard-branch-protection was given.
25476 if test "${enable_standard_branch_protection+set}" = set; then :
25477 enableval=$enable_standard_branch_protection;
25478 case $enableval in
25479 yes)
25480 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25481 ;;
25482 no)
25483 ;;
25484 *)
25485 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25486 Valid choices are 'yes' and 'no'." "$LINENO" 5
25487 ;;
25488 esac
25489
25490 fi
25491
25492 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25493 # Check whether --enable-fix-cortex-a53-835769 was given.
25494 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25495 enableval=$enable_fix_cortex_a53_835769;
25496 case $enableval in
25497 yes)
25498 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25499 ;;
25500 no)
25501 ;;
25502 *)
25503 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25504 Valid choices are 'yes' and 'no'." "$LINENO" 5
25505 ;;
25506
25507 esac
25508
25509 fi
25510
25511 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25512 # Check whether --enable-fix-cortex-a53-843419 was given.
25513 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25514 enableval=$enable_fix_cortex_a53_843419;
25515 case $enableval in
25516 yes)
25517 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25518 ;;
25519 no)
25520 ;;
25521 *)
25522 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25523 Valid choices are 'yes' and 'no'." "$LINENO" 5
25524 ;;
25525
25526 esac
25527
25528 fi
25529
25530 ;;
25531
25532 # All TARGET_ABI_OSF targets.
25533 alpha*-*-linux* | alpha*-*-*bsd*)
25534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25535 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25536 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25537 $as_echo_n "(cached) " >&6
25538 else
25539 gcc_cv_as_alpha_explicit_relocs=no
25540 if test $in_tree_gas = yes; then
25541 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25542 then gcc_cv_as_alpha_explicit_relocs=yes
25543 fi
25544 elif test x$gcc_cv_as != x; then
25545 $as_echo ' .set nomacro
25546 .text
25547 extbl $3, $2, $3 !lituse_bytoff!1
25548 ldq $2, a($29) !literal!1
25549 ldq $4, b($29) !literal!2
25550 ldq_u $3, 0($2) !lituse_base!1
25551 ldq $27, f($29) !literal!5
25552 jsr $26, ($27), f !lituse_jsr!5
25553 ldah $29, 0($26) !gpdisp!3
25554 lda $0, c($29) !gprel
25555 ldah $1, d($29) !gprelhigh
25556 lda $1, d($1) !gprellow
25557 lda $29, 0($29) !gpdisp!3' > conftest.s
25558 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25560 (eval $ac_try) 2>&5
25561 ac_status=$?
25562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25563 test $ac_status = 0; }; }
25564 then
25565 gcc_cv_as_alpha_explicit_relocs=yes
25566 else
25567 echo "configure: failed program was" >&5
25568 cat conftest.s >&5
25569 fi
25570 rm -f conftest.o conftest.s
25571 fi
25572 fi
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25574 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25575 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25576
25577 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25578
25579 fi
25580
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25582 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25583 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25584 $as_echo_n "(cached) " >&6
25585 else
25586 gcc_cv_as_alpha_jsrdirect_relocs=no
25587 if test $in_tree_gas = yes; then
25588 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25589 then gcc_cv_as_alpha_jsrdirect_relocs=yes
25590 fi
25591 elif test x$gcc_cv_as != x; then
25592 $as_echo ' .set nomacro
25593 .text
25594 ldq $27, a($29) !literal!1
25595 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25596 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25598 (eval $ac_try) 2>&5
25599 ac_status=$?
25600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25601 test $ac_status = 0; }; }
25602 then
25603 gcc_cv_as_alpha_jsrdirect_relocs=yes
25604 else
25605 echo "configure: failed program was" >&5
25606 cat conftest.s >&5
25607 fi
25608 rm -f conftest.o conftest.s
25609 fi
25610 fi
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25612 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25613 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25614
25615 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25616
25617 fi
25618
25619 ;;
25620
25621 avr-*-*)
25622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25623 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25624 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25625 $as_echo_n "(cached) " >&6
25626 else
25627 gcc_cv_as_avr_mlink_relax=no
25628 if test x$gcc_cv_as != x; then
25629 $as_echo '.text' > conftest.s
25630 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25632 (eval $ac_try) 2>&5
25633 ac_status=$?
25634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25635 test $ac_status = 0; }; }
25636 then
25637 gcc_cv_as_avr_mlink_relax=yes
25638 else
25639 echo "configure: failed program was" >&5
25640 cat conftest.s >&5
25641 fi
25642 rm -f conftest.o conftest.s
25643 fi
25644 fi
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25646 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25647 if test $gcc_cv_as_avr_mlink_relax = yes; then
25648
25649 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25650
25651 fi
25652
25653
25654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25655 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25656 if ${gcc_cv_as_avr_mrmw+:} false; then :
25657 $as_echo_n "(cached) " >&6
25658 else
25659 gcc_cv_as_avr_mrmw=no
25660 if test x$gcc_cv_as != x; then
25661 $as_echo '.text' > conftest.s
25662 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25664 (eval $ac_try) 2>&5
25665 ac_status=$?
25666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25667 test $ac_status = 0; }; }
25668 then
25669 gcc_cv_as_avr_mrmw=yes
25670 else
25671 echo "configure: failed program was" >&5
25672 cat conftest.s >&5
25673 fi
25674 rm -f conftest.o conftest.s
25675 fi
25676 fi
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25678 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25679 if test $gcc_cv_as_avr_mrmw = yes; then
25680
25681 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25682
25683 fi
25684
25685
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25687 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25688 if ${gcc_cv_as_avr_mgccisr+:} false; then :
25689 $as_echo_n "(cached) " >&6
25690 else
25691 gcc_cv_as_avr_mgccisr=no
25692 if test x$gcc_cv_as != x; then
25693 $as_echo '.text
25694 __gcc_isr 1
25695 __gcc_isr 2
25696 __gcc_isr 0,r24
25697 ' > conftest.s
25698 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25700 (eval $ac_try) 2>&5
25701 ac_status=$?
25702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25703 test $ac_status = 0; }; }
25704 then
25705 gcc_cv_as_avr_mgccisr=yes
25706 else
25707 echo "configure: failed program was" >&5
25708 cat conftest.s >&5
25709 fi
25710 rm -f conftest.o conftest.s
25711 fi
25712 fi
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25714 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25715 if test $gcc_cv_as_avr_mgccisr = yes; then
25716
25717 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25718
25719 fi
25720
25721
25722 # Check how default linker description file implements .rodata for
25723 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25724 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25726 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25727 cat > conftest.s <<EOF
25728 .section .rodata,"a",@progbits
25729 .global xxvaryy
25730 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25731 xxvaryy:
25732 .word 1
25733 EOF
25734 rm -f conftest.nm
25735 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25737 (eval $ac_try) 2>&5
25738 ac_status=$?
25739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25740 test $ac_status = 0; }; }
25741 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25743 (eval $ac_try) 2>&5
25744 ac_status=$?
25745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25746 test $ac_status = 0; }; }
25747 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25749 (eval $ac_try) 2>&5
25750 ac_status=$?
25751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25752 test $ac_status = 0; }; }
25753 if test -s conftest.nm
25754 then
25755 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25757 $as_echo "yes" >&6; }
25758
25759 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25760
25761 else
25762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25763 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25764 echo "$as_me: nm output was" >&5
25765 cat conftest.nm >&5
25766 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25767 { $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
25768 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25769 fi
25770 else
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25772 $as_echo "test failed" >&6; }
25773 echo "$as_me: failed program was" >&5
25774 cat conftest.s >&5
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25776 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25777 fi
25778 rm -f conftest.s conftest.o conftest.elf conftest.nm
25779 ;;
25780
25781 cris-*-*)
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25783 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25784 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25785 $as_echo_n "(cached) " >&6
25786 else
25787 gcc_cv_as_cris_no_mul_bug=no
25788 if test $in_tree_gas = yes; then
25789 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25790 then gcc_cv_as_cris_no_mul_bug=yes
25791 fi
25792 elif test x$gcc_cv_as != x; then
25793 $as_echo '.text' > conftest.s
25794 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25796 (eval $ac_try) 2>&5
25797 ac_status=$?
25798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25799 test $ac_status = 0; }; }
25800 then
25801 gcc_cv_as_cris_no_mul_bug=yes
25802 else
25803 echo "configure: failed program was" >&5
25804 cat conftest.s >&5
25805 fi
25806 rm -f conftest.o conftest.s
25807 fi
25808 fi
25809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25810 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25811 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25812
25813 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25814
25815 fi
25816
25817 ;;
25818
25819 sparc*-*-*)
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25821 $as_echo_n "checking assembler for -relax option... " >&6; }
25822 if ${gcc_cv_as_sparc_relax+:} false; then :
25823 $as_echo_n "(cached) " >&6
25824 else
25825 gcc_cv_as_sparc_relax=no
25826 if test x$gcc_cv_as != x; then
25827 $as_echo '.text' > conftest.s
25828 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25830 (eval $ac_try) 2>&5
25831 ac_status=$?
25832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25833 test $ac_status = 0; }; }
25834 then
25835 gcc_cv_as_sparc_relax=yes
25836 else
25837 echo "configure: failed program was" >&5
25838 cat conftest.s >&5
25839 fi
25840 rm -f conftest.o conftest.s
25841 fi
25842 fi
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25844 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25845 if test $gcc_cv_as_sparc_relax = yes; then
25846
25847 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25848
25849 fi
25850
25851
25852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25853 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25854 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25855 $as_echo_n "(cached) " >&6
25856 else
25857 gcc_cv_as_sparc_gotdata_op=no
25858 if test x$gcc_cv_as != x; then
25859 $as_echo '.text
25860 .align 4
25861 foo:
25862 nop
25863 bar:
25864 sethi %gdop_hix22(foo), %g1
25865 xor %g1, %gdop_lox10(foo), %g1
25866 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25869 (eval $ac_try) 2>&5
25870 ac_status=$?
25871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25872 test $ac_status = 0; }; }
25873 then
25874 if test x$gcc_cv_ld != x \
25875 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25876 if test x$gcc_cv_objdump != x; then
25877 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25878 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25879 gcc_cv_as_sparc_gotdata_op=no
25880 else
25881 gcc_cv_as_sparc_gotdata_op=yes
25882 fi
25883 fi
25884 fi
25885 rm -f conftest
25886 else
25887 echo "configure: failed program was" >&5
25888 cat conftest.s >&5
25889 fi
25890 rm -f conftest.o conftest.s
25891 fi
25892 fi
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25894 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25895 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25896
25897 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25898
25899 fi
25900
25901
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25903 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25904 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25905 $as_echo_n "(cached) " >&6
25906 else
25907 gcc_cv_as_sparc_ua_pcrel=no
25908 if test x$gcc_cv_as != x; then
25909 $as_echo '.text
25910 foo:
25911 nop
25912 .data
25913 .align 4
25914 .byte 0
25915 .uaword %r_disp32(foo)' > conftest.s
25916 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25918 (eval $ac_try) 2>&5
25919 ac_status=$?
25920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25921 test $ac_status = 0; }; }
25922 then
25923 if test x$gcc_cv_ld != x \
25924 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25925 gcc_cv_as_sparc_ua_pcrel=yes
25926 fi
25927 rm -f conftest
25928 else
25929 echo "configure: failed program was" >&5
25930 cat conftest.s >&5
25931 fi
25932 rm -f conftest.o conftest.s
25933 fi
25934 fi
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25936 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25937 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25938
25939 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25940
25941
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25943 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25944 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25945 $as_echo_n "(cached) " >&6
25946 else
25947 gcc_cv_as_sparc_ua_pcrel_hidden=no
25948 if test x$gcc_cv_as != x; then
25949 $as_echo '.data
25950 .align 4
25951 .byte 0x31
25952 .uaword %r_disp32(foo)
25953 .byte 0x32, 0x33, 0x34
25954 .global foo
25955 .hidden foo
25956 foo:
25957 .skip 4' > conftest.s
25958 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25960 (eval $ac_try) 2>&5
25961 ac_status=$?
25962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25963 test $ac_status = 0; }; }
25964 then
25965 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25966 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25967 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25968 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25969 if $gcc_cv_objdump -R conftest 2> /dev/null \
25970 | grep 'DISP32' > /dev/null 2>&1; then
25971 :
25972 else
25973 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25974 fi
25975 fi
25976 rm -f conftest
25977 else
25978 echo "configure: failed program was" >&5
25979 cat conftest.s >&5
25980 fi
25981 rm -f conftest.o conftest.s
25982 fi
25983 fi
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25985 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25986 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25987
25988 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25989
25990 fi
25991
25992
25993 fi
25994 # unaligned pcrel relocs
25995
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25997 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25998 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
25999 $as_echo_n "(cached) " >&6
26000 else
26001 gcc_cv_as_sparc_offsetable_lo10=no
26002 if test x$gcc_cv_as != x; then
26003 $as_echo '.text
26004 or %g1, %lo(ab) + 12, %g1
26005 or %g1, %lo(ab + 12), %g1' > conftest.s
26006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26008 (eval $ac_try) 2>&5
26009 ac_status=$?
26010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26011 test $ac_status = 0; }; }
26012 then
26013 if test x$gcc_cv_objdump != x \
26014 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26015 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26016 gcc_cv_as_sparc_offsetable_lo10=yes
26017 fi
26018 else
26019 echo "configure: failed program was" >&5
26020 cat conftest.s >&5
26021 fi
26022 rm -f conftest.o conftest.s
26023 fi
26024 fi
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26026 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26027 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26028
26029 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26030
26031 fi
26032
26033
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26035 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26036 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26037 $as_echo_n "(cached) " >&6
26038 else
26039 gcc_cv_as_sparc_fmaf=no
26040 if test x$gcc_cv_as != x; then
26041 $as_echo '.text
26042 .register %g2, #scratch
26043 .register %g3, #scratch
26044 .align 4
26045 fmaddd %f0, %f2, %f4, %f6
26046 addxccc %g1, %g2, %g3
26047 fsrl32 %f2, %f4, %f8
26048 fnaddd %f10, %f12, %f14' > conftest.s
26049 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26051 (eval $ac_try) 2>&5
26052 ac_status=$?
26053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26054 test $ac_status = 0; }; }
26055 then
26056 gcc_cv_as_sparc_fmaf=yes
26057 else
26058 echo "configure: failed program was" >&5
26059 cat conftest.s >&5
26060 fi
26061 rm -f conftest.o conftest.s
26062 fi
26063 fi
26064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26065 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26066 if test $gcc_cv_as_sparc_fmaf = yes; then
26067
26068 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26069
26070 fi
26071
26072
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26074 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26075 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26076 $as_echo_n "(cached) " >&6
26077 else
26078 gcc_cv_as_sparc_sparc4=no
26079 if test x$gcc_cv_as != x; then
26080 $as_echo '.text
26081 .register %g2, #scratch
26082 .register %g3, #scratch
26083 .align 4
26084 cxbe %g2, %g3, 1f
26085 1: cwbneg %g2, %g3, 1f
26086 1: sha1
26087 md5
26088 aes_kexpand0 %f4, %f6, %f8
26089 des_round %f38, %f40, %f42, %f44
26090 camellia_f %f54, %f56, %f58, %f60
26091 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26092 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26094 (eval $ac_try) 2>&5
26095 ac_status=$?
26096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26097 test $ac_status = 0; }; }
26098 then
26099 gcc_cv_as_sparc_sparc4=yes
26100 else
26101 echo "configure: failed program was" >&5
26102 cat conftest.s >&5
26103 fi
26104 rm -f conftest.o conftest.s
26105 fi
26106 fi
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26108 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26109 if test $gcc_cv_as_sparc_sparc4 = yes; then
26110
26111 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26112
26113 fi
26114
26115
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26117 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26118 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26119 $as_echo_n "(cached) " >&6
26120 else
26121 gcc_cv_as_sparc_sparc5=no
26122 if test x$gcc_cv_as != x; then
26123 $as_echo '.text
26124 .register %g2, #scratch
26125 .register %g3, #scratch
26126 .align 4
26127 subxc %g1, %g2, %g3
26128 fpadd8 %f0, %f2, %f4' > conftest.s
26129 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26131 (eval $ac_try) 2>&5
26132 ac_status=$?
26133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26134 test $ac_status = 0; }; }
26135 then
26136 gcc_cv_as_sparc_sparc5=yes
26137 else
26138 echo "configure: failed program was" >&5
26139 cat conftest.s >&5
26140 fi
26141 rm -f conftest.o conftest.s
26142 fi
26143 fi
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26145 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26146 if test $gcc_cv_as_sparc_sparc5 = yes; then
26147
26148 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26149
26150 fi
26151
26152
26153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26154 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26155 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26156 $as_echo_n "(cached) " >&6
26157 else
26158 gcc_cv_as_sparc_sparc6=no
26159 if test x$gcc_cv_as != x; then
26160 $as_echo '.text
26161 .register %g2, #scratch
26162 .register %g3, #scratch
26163 .align 4
26164 rd %entropy, %g1
26165 fpsll64x %f0, %f2, %f4' > conftest.s
26166 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26168 (eval $ac_try) 2>&5
26169 ac_status=$?
26170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26171 test $ac_status = 0; }; }
26172 then
26173 gcc_cv_as_sparc_sparc6=yes
26174 else
26175 echo "configure: failed program was" >&5
26176 cat conftest.s >&5
26177 fi
26178 rm -f conftest.o conftest.s
26179 fi
26180 fi
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26182 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26183 if test $gcc_cv_as_sparc_sparc6 = yes; then
26184
26185 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26186
26187 fi
26188
26189
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26191 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26192 if ${gcc_cv_as_sparc_leon+:} false; then :
26193 $as_echo_n "(cached) " >&6
26194 else
26195 gcc_cv_as_sparc_leon=no
26196 if test x$gcc_cv_as != x; then
26197 $as_echo '.text
26198 .register %g2, #scratch
26199 .register %g3, #scratch
26200 .align 4
26201 smac %g2, %g3, %g1
26202 umac %g2, %g3, %g1
26203 casa [%g2] 0xb, %g3, %g1' > conftest.s
26204 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26206 (eval $ac_try) 2>&5
26207 ac_status=$?
26208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26209 test $ac_status = 0; }; }
26210 then
26211 gcc_cv_as_sparc_leon=yes
26212 else
26213 echo "configure: failed program was" >&5
26214 cat conftest.s >&5
26215 fi
26216 rm -f conftest.o conftest.s
26217 fi
26218 fi
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26220 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26221 if test $gcc_cv_as_sparc_leon = yes; then
26222
26223 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26224
26225 fi
26226
26227 ;;
26228
26229 i[34567]86-*-* | x86_64-*-*)
26230 case $target_os in
26231 cygwin*)
26232 # Full C++ conformance when using a shared libstdc++-v3 requires some
26233 # support from the Cygwin DLL, which in more recent versions exports
26234 # wrappers to aid in interposing and redirecting operators new, delete,
26235 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26236 # are configuring for a version of Cygwin that exports the wrappers.
26237 if test x$host = x$target && test x$host_cpu = xi686; then
26238 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26239 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26240 gcc_ac_cygwin_dll_wrappers=yes
26241 else
26242 gcc_ac_cygwin_dll_wrappers=no
26243 fi
26244
26245 else
26246 # Can't check presence of libc functions during cross-compile, so
26247 # we just have to assume we're building for an up-to-date target.
26248 gcc_ac_cygwin_dll_wrappers=yes
26249 fi
26250
26251 cat >>confdefs.h <<_ACEOF
26252 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26253 _ACEOF
26254
26255 esac
26256 case $target_os in
26257 cygwin* | pe | mingw32*)
26258 # Recent binutils allows the three-operand form of ".comm" on PE. This
26259 # definition is used unconditionally to initialise the default state of
26260 # the target option variable that governs usage of the feature.
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26262 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26263 if ${gcc_cv_as_comm_has_align+:} false; then :
26264 $as_echo_n "(cached) " >&6
26265 else
26266 gcc_cv_as_comm_has_align=no
26267 if test $in_tree_gas = yes; then
26268 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26269 then gcc_cv_as_comm_has_align=yes
26270 fi
26271 elif test x$gcc_cv_as != x; then
26272 $as_echo '.comm foo,1,32' > conftest.s
26273 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26275 (eval $ac_try) 2>&5
26276 ac_status=$?
26277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26278 test $ac_status = 0; }; }
26279 then
26280 gcc_cv_as_comm_has_align=yes
26281 else
26282 echo "configure: failed program was" >&5
26283 cat conftest.s >&5
26284 fi
26285 rm -f conftest.o conftest.s
26286 fi
26287 fi
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26289 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26290
26291
26292
26293 cat >>confdefs.h <<_ACEOF
26294 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26295 _ACEOF
26296
26297 # Used for DWARF 2 in PE
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26299 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26300 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26301 $as_echo_n "(cached) " >&6
26302 else
26303 gcc_cv_as_ix86_pe_secrel32=no
26304 if test $in_tree_gas = yes; then
26305 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26306 then gcc_cv_as_ix86_pe_secrel32=yes
26307 fi
26308 elif test x$gcc_cv_as != x; then
26309 $as_echo '.text
26310 foo: nop
26311 .data
26312 .secrel32 foo' > conftest.s
26313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26315 (eval $ac_try) 2>&5
26316 ac_status=$?
26317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26318 test $ac_status = 0; }; }
26319 then
26320 if test x$gcc_cv_ld != x \
26321 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26322 gcc_cv_as_ix86_pe_secrel32=yes
26323 fi
26324 rm -f conftest
26325 else
26326 echo "configure: failed program was" >&5
26327 cat conftest.s >&5
26328 fi
26329 rm -f conftest.o conftest.s
26330 fi
26331 fi
26332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26333 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26334 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26335
26336 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26337
26338 fi
26339
26340 # Test if the assembler supports the extended form of the .section
26341 # directive that specifies section alignment. LTO support uses this,
26342 # but normally only after installation, so we warn but don't fail the
26343 # configure if LTO is enabled but the assembler does not support it.
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26345 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26346 if ${gcc_cv_as_section_has_align+:} false; then :
26347 $as_echo_n "(cached) " >&6
26348 else
26349 gcc_cv_as_section_has_align=no
26350 if test $in_tree_gas = yes; then
26351 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26352 then gcc_cv_as_section_has_align=yes
26353 fi
26354 elif test x$gcc_cv_as != x; then
26355 $as_echo '.section lto_test,"dr0"' > conftest.s
26356 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26358 (eval $ac_try) 2>&5
26359 ac_status=$?
26360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26361 test $ac_status = 0; }; }
26362 then
26363 gcc_cv_as_section_has_align=yes
26364 else
26365 echo "configure: failed program was" >&5
26366 cat conftest.s >&5
26367 fi
26368 rm -f conftest.o conftest.s
26369 fi
26370 fi
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26372 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26373
26374
26375 if test x$gcc_cv_as_section_has_align != xyes; then
26376 case ",$enable_languages," in
26377 *,lto,*)
26378 { $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
26379 $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;}
26380 ;;
26381 esac
26382 fi
26383 ;;
26384 esac
26385
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26387 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26388 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26389 $as_echo_n "(cached) " >&6
26390 else
26391 gcc_cv_as_ix86_xbrace_comment=no
26392 if test x$gcc_cv_as != x; then
26393 $as_echo '.text' > conftest.s
26394 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26396 (eval $ac_try) 2>&5
26397 ac_status=$?
26398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26399 test $ac_status = 0; }; }
26400 then
26401 gcc_cv_as_ix86_xbrace_comment=yes
26402 else
26403 echo "configure: failed program was" >&5
26404 cat conftest.s >&5
26405 fi
26406 rm -f conftest.o conftest.s
26407 fi
26408 fi
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26410 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26411 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26412
26413 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26414
26415 fi
26416
26417
26418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26419 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26420 if ${gcc_cv_as_ix86_filds+:} false; then :
26421 $as_echo_n "(cached) " >&6
26422 else
26423 gcc_cv_as_ix86_filds=no
26424 if test x$gcc_cv_as != x; then
26425 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26426 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26428 (eval $ac_try) 2>&5
26429 ac_status=$?
26430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26431 test $ac_status = 0; }; }
26432 then
26433 gcc_cv_as_ix86_filds=yes
26434 else
26435 echo "configure: failed program was" >&5
26436 cat conftest.s >&5
26437 fi
26438 rm -f conftest.o conftest.s
26439 fi
26440 fi
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26442 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26443 if test $gcc_cv_as_ix86_filds = yes; then
26444
26445 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26446
26447 fi
26448
26449
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26451 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26452 if ${gcc_cv_as_ix86_fildq+:} false; then :
26453 $as_echo_n "(cached) " >&6
26454 else
26455 gcc_cv_as_ix86_fildq=no
26456 if test x$gcc_cv_as != x; then
26457 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26458 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26460 (eval $ac_try) 2>&5
26461 ac_status=$?
26462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26463 test $ac_status = 0; }; }
26464 then
26465 gcc_cv_as_ix86_fildq=yes
26466 else
26467 echo "configure: failed program was" >&5
26468 cat conftest.s >&5
26469 fi
26470 rm -f conftest.o conftest.s
26471 fi
26472 fi
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26474 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26475 if test $gcc_cv_as_ix86_fildq = yes; then
26476
26477 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26478
26479 fi
26480
26481
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26483 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26484 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26485 $as_echo_n "(cached) " >&6
26486 else
26487 gcc_cv_as_ix86_cmov_sun_syntax=no
26488 if test x$gcc_cv_as != x; then
26489 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26490 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26492 (eval $ac_try) 2>&5
26493 ac_status=$?
26494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26495 test $ac_status = 0; }; }
26496 then
26497 gcc_cv_as_ix86_cmov_sun_syntax=yes
26498 else
26499 echo "configure: failed program was" >&5
26500 cat conftest.s >&5
26501 fi
26502 rm -f conftest.o conftest.s
26503 fi
26504 fi
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26506 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26507 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26508
26509 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26510
26511 fi
26512
26513
26514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26515 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26516 if ${gcc_cv_as_ix86_ffreep+:} false; then :
26517 $as_echo_n "(cached) " >&6
26518 else
26519 gcc_cv_as_ix86_ffreep=no
26520 if test x$gcc_cv_as != x; then
26521 $as_echo 'ffreep %st(1)' > conftest.s
26522 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26524 (eval $ac_try) 2>&5
26525 ac_status=$?
26526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26527 test $ac_status = 0; }; }
26528 then
26529 gcc_cv_as_ix86_ffreep=yes
26530 else
26531 echo "configure: failed program was" >&5
26532 cat conftest.s >&5
26533 fi
26534 rm -f conftest.o conftest.s
26535 fi
26536 fi
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26538 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26539 if test $gcc_cv_as_ix86_ffreep = yes; then
26540
26541 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26542
26543 fi
26544
26545
26546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26547 $as_echo_n "checking assembler for .quad directive... " >&6; }
26548 if ${gcc_cv_as_ix86_quad+:} false; then :
26549 $as_echo_n "(cached) " >&6
26550 else
26551 gcc_cv_as_ix86_quad=no
26552 if test x$gcc_cv_as != x; then
26553 $as_echo '.quad 0' > conftest.s
26554 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26556 (eval $ac_try) 2>&5
26557 ac_status=$?
26558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26559 test $ac_status = 0; }; }
26560 then
26561 gcc_cv_as_ix86_quad=yes
26562 else
26563 echo "configure: failed program was" >&5
26564 cat conftest.s >&5
26565 fi
26566 rm -f conftest.o conftest.s
26567 fi
26568 fi
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26570 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26571 if test $gcc_cv_as_ix86_quad = yes; then
26572
26573 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26574
26575 fi
26576
26577
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26579 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26580 if ${gcc_cv_as_ix86_sahf+:} false; then :
26581 $as_echo_n "(cached) " >&6
26582 else
26583 gcc_cv_as_ix86_sahf=no
26584 if test x$gcc_cv_as != x; then
26585 $as_echo '.code64
26586 sahf' > 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_ix86_sahf=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_ix86_sahf" >&5
26603 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26604 if test $gcc_cv_as_ix86_sahf = yes; then
26605
26606 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26607
26608 fi
26609
26610
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26612 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26613 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26614 $as_echo_n "(cached) " >&6
26615 else
26616 gcc_cv_as_ix86_interunit_movq=no
26617 if test x$gcc_cv_as != x; then
26618 $as_echo '.code64
26619 movq %mm0, %rax
26620 movq %rax, %xmm0' > conftest.s
26621 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26623 (eval $ac_try) 2>&5
26624 ac_status=$?
26625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26626 test $ac_status = 0; }; }
26627 then
26628 gcc_cv_as_ix86_interunit_movq=yes
26629 else
26630 echo "configure: failed program was" >&5
26631 cat conftest.s >&5
26632 fi
26633 rm -f conftest.o conftest.s
26634 fi
26635 fi
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26637 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26638
26639
26640
26641 cat >>confdefs.h <<_ACEOF
26642 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26643 _ACEOF
26644
26645
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26647 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26648 if ${gcc_cv_as_ix86_hle+:} false; then :
26649 $as_echo_n "(cached) " >&6
26650 else
26651 gcc_cv_as_ix86_hle=no
26652 if test x$gcc_cv_as != x; then
26653 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26654 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26656 (eval $ac_try) 2>&5
26657 ac_status=$?
26658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26659 test $ac_status = 0; }; }
26660 then
26661 gcc_cv_as_ix86_hle=yes
26662 else
26663 echo "configure: failed program was" >&5
26664 cat conftest.s >&5
26665 fi
26666 rm -f conftest.o conftest.s
26667 fi
26668 fi
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26670 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26671 if test $gcc_cv_as_ix86_hle = yes; then
26672
26673 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26674
26675 fi
26676
26677
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26679 $as_echo_n "checking assembler for swap suffix... " >&6; }
26680 if ${gcc_cv_as_ix86_swap+:} false; then :
26681 $as_echo_n "(cached) " >&6
26682 else
26683 gcc_cv_as_ix86_swap=no
26684 if test x$gcc_cv_as != x; then
26685 $as_echo 'movl.s %esp, %ebp' > conftest.s
26686 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26688 (eval $ac_try) 2>&5
26689 ac_status=$?
26690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26691 test $ac_status = 0; }; }
26692 then
26693 gcc_cv_as_ix86_swap=yes
26694 else
26695 echo "configure: failed program was" >&5
26696 cat conftest.s >&5
26697 fi
26698 rm -f conftest.o conftest.s
26699 fi
26700 fi
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26702 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26703 if test $gcc_cv_as_ix86_swap = yes; then
26704
26705 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26706
26707 fi
26708
26709
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26711 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26712 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26713 $as_echo_n "(cached) " >&6
26714 else
26715 gcc_cv_as_ix86_diff_sect_delta=no
26716 if test x$gcc_cv_as != x; then
26717 $as_echo '.section .rodata
26718 .L1:
26719 .long .L2-.L1
26720 .long .L3-.L1
26721 .text
26722 .L3: nop
26723 .L2: nop' > conftest.s
26724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26726 (eval $ac_try) 2>&5
26727 ac_status=$?
26728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26729 test $ac_status = 0; }; }
26730 then
26731 gcc_cv_as_ix86_diff_sect_delta=yes
26732 else
26733 echo "configure: failed program was" >&5
26734 cat conftest.s >&5
26735 fi
26736 rm -f conftest.o conftest.s
26737 fi
26738 fi
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26740 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26741 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26742
26743 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26744
26745 fi
26746
26747
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26749 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26750 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26751 $as_echo_n "(cached) " >&6
26752 else
26753 gcc_cv_as_ix86_rep_lock_prefix=no
26754 if test x$gcc_cv_as != x; then
26755 $as_echo 'rep movsl
26756 rep ret
26757 rep nop
26758 rep bsf %ecx, %eax
26759 rep bsr %ecx, %eax
26760 lock addl %edi, (%eax,%esi)
26761 lock orl $0, (%esp)' > conftest.s
26762 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26764 (eval $ac_try) 2>&5
26765 ac_status=$?
26766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26767 test $ac_status = 0; }; }
26768 then
26769 gcc_cv_as_ix86_rep_lock_prefix=yes
26770 else
26771 echo "configure: failed program was" >&5
26772 cat conftest.s >&5
26773 fi
26774 rm -f conftest.o conftest.s
26775 fi
26776 fi
26777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26778 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26779 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26780
26781 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26782
26783 fi
26784
26785
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26787 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26788 if ${gcc_cv_as_ix86_ud2+:} false; then :
26789 $as_echo_n "(cached) " >&6
26790 else
26791 gcc_cv_as_ix86_ud2=no
26792 if test x$gcc_cv_as != x; then
26793 $as_echo 'ud2' > conftest.s
26794 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26796 (eval $ac_try) 2>&5
26797 ac_status=$?
26798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26799 test $ac_status = 0; }; }
26800 then
26801 gcc_cv_as_ix86_ud2=yes
26802 else
26803 echo "configure: failed program was" >&5
26804 cat conftest.s >&5
26805 fi
26806 rm -f conftest.o conftest.s
26807 fi
26808 fi
26809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26810 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26811 if test $gcc_cv_as_ix86_ud2 = yes; then
26812
26813 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26814
26815 fi
26816
26817
26818 # Enforce 32-bit output with gas and gld.
26819 if test x$gas = xyes; then
26820 as_ix86_gas_32_opt="--32"
26821 fi
26822 if echo "$ld_ver" | grep GNU > /dev/null; then
26823 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26824 ld_ix86_gld_32_opt="-melf_i386_sol2"
26825 else
26826 ld_ix86_gld_32_opt="-melf_i386"
26827 fi
26828 fi
26829
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26831 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26832 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26833 $as_echo_n "(cached) " >&6
26834 else
26835 gcc_cv_as_ix86_tlsgdplt=no
26836 if test x$gcc_cv_as != x; then
26837 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26838 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26840 (eval $ac_try) 2>&5
26841 ac_status=$?
26842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26843 test $ac_status = 0; }; }
26844 then
26845 if test x$gcc_cv_ld != x \
26846 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26847 gcc_cv_as_ix86_tlsgdplt=yes
26848 fi
26849 rm -f conftest
26850 else
26851 echo "configure: failed program was" >&5
26852 cat conftest.s >&5
26853 fi
26854 rm -f conftest.o conftest.s
26855 fi
26856 fi
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26858 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26859 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26860
26861 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26862
26863 fi
26864
26865
26866 conftest_s='
26867 .section .tdata,"aw'$tls_section_flag'",@progbits
26868 tls_ld:
26869 .section .text,"ax",@progbits
26870 call tls_ld@tlsldmplt'
26871
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26873 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26874 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26875 $as_echo_n "(cached) " >&6
26876 else
26877 gcc_cv_as_ix86_tlsldmplt=no
26878 if test x$gcc_cv_as != x; then
26879 $as_echo "$conftest_s" > conftest.s
26880 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26882 (eval $ac_try) 2>&5
26883 ac_status=$?
26884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26885 test $ac_status = 0; }; }
26886 then
26887 if test x$gcc_cv_ld != x \
26888 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26889 gcc_cv_as_ix86_tlsldmplt=yes
26890 fi
26891 rm -f conftest
26892 else
26893 echo "configure: failed program was" >&5
26894 cat conftest.s >&5
26895 fi
26896 rm -f conftest.o conftest.s
26897 fi
26898 fi
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26900 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26901
26902
26903
26904 cat >>confdefs.h <<_ACEOF
26905 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26906 _ACEOF
26907
26908
26909 conftest_s='
26910 .section .text,"ax",@progbits
26911 .globl _start
26912 .type _start, @function
26913 _start:
26914 leal value@tlsldm(%ebx), %eax
26915 call ___tls_get_addr@plt
26916
26917 .section .tdata,"aw'$tls_section_flag'",@progbits
26918 .type value, @object
26919 value:'
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26921 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26922 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26923 $as_echo_n "(cached) " >&6
26924 else
26925 gcc_cv_as_ix86_tlsldm=no
26926 if test x$gcc_cv_as != x; then
26927 $as_echo "$conftest_s" > conftest.s
26928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26930 (eval $ac_try) 2>&5
26931 ac_status=$?
26932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26933 test $ac_status = 0; }; }
26934 then
26935 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26936 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26937 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26938 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26939 gcc_cv_as_ix86_tlsldm=yes
26940 fi
26941 fi
26942 rm -f conftest
26943 else
26944 echo "configure: failed program was" >&5
26945 cat conftest.s >&5
26946 fi
26947 rm -f conftest.o conftest.s
26948 fi
26949 fi
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26951 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26952
26953
26954
26955 cat >>confdefs.h <<_ACEOF
26956 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26957 _ACEOF
26958
26959
26960 conftest_s='
26961 .data
26962 bar:
26963 .byte 1
26964 .text
26965 .global _start
26966 _start:
26967 cmpl $0, bar@GOT
26968 jmp *_start@GOT'
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26970 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26971 if ${gcc_cv_as_ix86_got32x+:} false; then :
26972 $as_echo_n "(cached) " >&6
26973 else
26974 gcc_cv_as_ix86_got32x=no
26975 if test x$gcc_cv_as != x; then
26976 $as_echo "$conftest_s" > conftest.s
26977 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26979 (eval $ac_try) 2>&5
26980 ac_status=$?
26981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26982 test $ac_status = 0; }; }
26983 then
26984 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26985 && test x$gcc_cv_readelf != x \
26986 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26987 | grep R_386_GOT32X > /dev/null 2>&1 \
26988 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26989 if $gcc_cv_objdump -dw conftest 2>&1 \
26990 | grep 0xffffff > /dev/null 2>&1; then
26991 gcc_cv_as_ix86_got32x=no
26992 else
26993 gcc_cv_as_ix86_got32x=yes
26994 fi
26995 fi
26996 rm -f conftest
26997 else
26998 echo "configure: failed program was" >&5
26999 cat conftest.s >&5
27000 fi
27001 rm -f conftest.o conftest.s
27002 fi
27003 fi
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27005 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27006
27007
27008
27009 cat >>confdefs.h <<_ACEOF
27010 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27011 _ACEOF
27012
27013
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27015 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27016 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27017 $as_echo_n "(cached) " >&6
27018 else
27019 gcc_cv_as_ix86_gotoff_in_data=no
27020 if test $in_tree_gas = yes; then
27021 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27022 then gcc_cv_as_ix86_gotoff_in_data=yes
27023 fi
27024 elif test x$gcc_cv_as != x; then
27025 $as_echo ' .text
27026 .L0:
27027 nop
27028 .data
27029 .long .L0@GOTOFF' > conftest.s
27030 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27032 (eval $ac_try) 2>&5
27033 ac_status=$?
27034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27035 test $ac_status = 0; }; }
27036 then
27037 gcc_cv_as_ix86_gotoff_in_data=yes
27038 else
27039 echo "configure: failed program was" >&5
27040 cat conftest.s >&5
27041 fi
27042 rm -f conftest.o conftest.s
27043 fi
27044 fi
27045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27046 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27047
27048
27049
27050 cat >>confdefs.h <<_ACEOF
27051 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27052 _ACEOF
27053
27054
27055 conftest_s='
27056 .section .text,"ax",@progbits
27057 .globl _start
27058 .type _start, @function
27059 _start:
27060 leal ld@tlsldm(%ecx), %eax
27061 call *___tls_get_addr@GOT(%ecx)
27062 leal gd@tlsgd(%ecx), %eax
27063 call *___tls_get_addr@GOT(%ecx)
27064
27065 .section .tdata,"aw'$tls_section_flag'",@progbits
27066 .type ld, @object
27067 ld:
27068 .byte 0
27069 .globl gd
27070 .type gd, @object
27071 gd:
27072 .byte 0'
27073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27074 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27075 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27076 $as_echo_n "(cached) " >&6
27077 else
27078 gcc_cv_as_ix86_tls_get_addr_via_got=no
27079 if test x$gcc_cv_as != x; then
27080 $as_echo "$conftest_s" > conftest.s
27081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27083 (eval $ac_try) 2>&5
27084 ac_status=$?
27085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27086 test $ac_status = 0; }; }
27087 then
27088 if test x$gcc_cv_ld != x \
27089 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27090 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27091 fi
27092 rm -f conftest
27093 else
27094 echo "configure: failed program was" >&5
27095 cat conftest.s >&5
27096 fi
27097 rm -f conftest.o conftest.s
27098 fi
27099 fi
27100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27101 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27102
27103
27104
27105 cat >>confdefs.h <<_ACEOF
27106 #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`
27107 _ACEOF
27108
27109 ;;
27110
27111 ia64*-*-*)
27112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27113 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27114 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27115 $as_echo_n "(cached) " >&6
27116 else
27117 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27118 if test $in_tree_gas = yes; then
27119 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27120 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27121 fi
27122 elif test x$gcc_cv_as != x; then
27123 $as_echo ' .text
27124 addl r15 = @ltoffx(x#), gp
27125 ;;
27126 ld8.mov r16 = [r15], x#
27127 ' > conftest.s
27128 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27130 (eval $ac_try) 2>&5
27131 ac_status=$?
27132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27133 test $ac_status = 0; }; }
27134 then
27135 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27136 else
27137 echo "configure: failed program was" >&5
27138 cat conftest.s >&5
27139 fi
27140 rm -f conftest.o conftest.s
27141 fi
27142 fi
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27144 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27145 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27146
27147 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27148
27149 fi
27150
27151
27152 ;;
27153
27154 powerpc*-*-*)
27155
27156 case $target in
27157 *-*-darwin*)
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27159 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27160 if ${gcc_cv_as_machine_directive+:} false; then :
27161 $as_echo_n "(cached) " >&6
27162 else
27163 gcc_cv_as_machine_directive=no
27164 if test x$gcc_cv_as != x; then
27165 $as_echo ' .machine ppc7400' > conftest.s
27166 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27168 (eval $ac_try) 2>&5
27169 ac_status=$?
27170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27171 test $ac_status = 0; }; }
27172 then
27173 gcc_cv_as_machine_directive=yes
27174 else
27175 echo "configure: failed program was" >&5
27176 cat conftest.s >&5
27177 fi
27178 rm -f conftest.o conftest.s
27179 fi
27180 fi
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27182 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27183
27184
27185 if test x$gcc_cv_as_machine_directive != xyes; then
27186 echo "*** This target requires an assembler supporting \".machine\"" >&2
27187 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27188 test x$build = x$target && exit 1
27189 fi
27190 ;;
27191 esac
27192
27193 case $target in
27194 *-*-aix*) conftest_s=' .machine "pwr5"
27195 .csect .text[PR]
27196 mfcr 3,128';;
27197 *-*-darwin*) conftest_s=' .text
27198 mfcr r3,128';;
27199 *) conftest_s=' .machine power4
27200 .text
27201 mfcr 3,128';;
27202 esac
27203
27204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27205 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27206 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27207 $as_echo_n "(cached) " >&6
27208 else
27209 gcc_cv_as_powerpc_mfcrf=no
27210 if test $in_tree_gas = yes; then
27211 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27212 then gcc_cv_as_powerpc_mfcrf=yes
27213 fi
27214 elif test x$gcc_cv_as != x; then
27215 $as_echo "$conftest_s" > conftest.s
27216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27218 (eval $ac_try) 2>&5
27219 ac_status=$?
27220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27221 test $ac_status = 0; }; }
27222 then
27223 gcc_cv_as_powerpc_mfcrf=yes
27224 else
27225 echo "configure: failed program was" >&5
27226 cat conftest.s >&5
27227 fi
27228 rm -f conftest.o conftest.s
27229 fi
27230 fi
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27232 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27233 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27234
27235 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27236
27237 fi
27238
27239
27240 case $target in
27241 *-*-aix*) conftest_s=' .csect .text[PR]
27242 LCF..0:
27243 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27244 *-*-darwin*)
27245 conftest_s=' .text
27246 LCF0:
27247 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27248 *) conftest_s=' .text
27249 .LCF0:
27250 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27251 esac
27252
27253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27254 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27255 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27256 $as_echo_n "(cached) " >&6
27257 else
27258 gcc_cv_as_powerpc_rel16=no
27259 if test $in_tree_gas = yes; then
27260 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27261 then gcc_cv_as_powerpc_rel16=yes
27262 fi
27263 elif test x$gcc_cv_as != x; then
27264 $as_echo "$conftest_s" > conftest.s
27265 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27267 (eval $ac_try) 2>&5
27268 ac_status=$?
27269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27270 test $ac_status = 0; }; }
27271 then
27272 gcc_cv_as_powerpc_rel16=yes
27273 else
27274 echo "configure: failed program was" >&5
27275 cat conftest.s >&5
27276 fi
27277 rm -f conftest.o conftest.s
27278 fi
27279 fi
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27281 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27282 if test $gcc_cv_as_powerpc_rel16 = yes; then
27283
27284 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27285
27286 fi
27287
27288
27289 case $target in
27290 *-*-aix*) conftest_s=' .machine "pwr7"
27291 .csect .text[PR]
27292 lxvd2x 1,2,3';;
27293 *) conftest_s=' .machine power7
27294 .text
27295 lxvd2x 1,2,3';;
27296 esac
27297
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27299 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27300 if ${gcc_cv_as_powerpc_vsx+:} false; then :
27301 $as_echo_n "(cached) " >&6
27302 else
27303 gcc_cv_as_powerpc_vsx=no
27304 if test $in_tree_gas = yes; then
27305 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27306 then gcc_cv_as_powerpc_vsx=yes
27307 fi
27308 elif test x$gcc_cv_as != x; then
27309 $as_echo "$conftest_s" > conftest.s
27310 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27312 (eval $ac_try) 2>&5
27313 ac_status=$?
27314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27315 test $ac_status = 0; }; }
27316 then
27317 gcc_cv_as_powerpc_vsx=yes
27318 else
27319 echo "configure: failed program was" >&5
27320 cat conftest.s >&5
27321 fi
27322 rm -f conftest.o conftest.s
27323 fi
27324 fi
27325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27326 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27327 if test $gcc_cv_as_powerpc_vsx = yes; then
27328
27329 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27330
27331 fi
27332
27333
27334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27335 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27336 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
27337 $as_echo_n "(cached) " >&6
27338 else
27339 gcc_cv_as_powerpc_gnu_attribute=no
27340 if test $in_tree_gas = yes; then
27341 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27342 then gcc_cv_as_powerpc_gnu_attribute=yes
27343 fi
27344 elif test x$gcc_cv_as != x; then
27345 $as_echo '.gnu_attribute 4,1' > conftest.s
27346 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27348 (eval $ac_try) 2>&5
27349 ac_status=$?
27350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27351 test $ac_status = 0; }; }
27352 then
27353 gcc_cv_as_powerpc_gnu_attribute=yes
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_powerpc_gnu_attribute" >&5
27362 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27363 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27364
27365 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27366
27367 fi
27368
27369
27370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27371 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27372 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27373 $as_echo_n "(cached) " >&6
27374 else
27375 gcc_cv_as_powerpc_entry_markers=no
27376 if test $in_tree_gas = yes; then
27377 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27378 then gcc_cv_as_powerpc_entry_markers=yes
27379 fi
27380 elif test x$gcc_cv_as != x; then
27381 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27382 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27384 (eval $ac_try) 2>&5
27385 ac_status=$?
27386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27387 test $ac_status = 0; }; }
27388 then
27389 gcc_cv_as_powerpc_entry_markers=yes
27390 else
27391 echo "configure: failed program was" >&5
27392 cat conftest.s >&5
27393 fi
27394 rm -f conftest.o conftest.s
27395 fi
27396 fi
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27398 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27399 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27400
27401 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27402
27403 fi
27404
27405
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27407 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27408 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27409 $as_echo_n "(cached) " >&6
27410 else
27411 gcc_cv_as_powerpc_pltseq_markers=no
27412 if test $in_tree_gas = yes; then
27413 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27414 then gcc_cv_as_powerpc_pltseq_markers=yes
27415 fi
27416 elif test x$gcc_cv_as != x; then
27417 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27418 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27420 (eval $ac_try) 2>&5
27421 ac_status=$?
27422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27423 test $ac_status = 0; }; }
27424 then
27425 gcc_cv_as_powerpc_pltseq_markers=yes
27426 else
27427 echo "configure: failed program was" >&5
27428 cat conftest.s >&5
27429 fi
27430 rm -f conftest.o conftest.s
27431 fi
27432 fi
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27434 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27435 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27436
27437 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27438
27439 fi
27440
27441
27442 case $target in
27443 *-*-aix*)
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27445 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27446 if ${gcc_cv_as_aix_ref+:} false; then :
27447 $as_echo_n "(cached) " >&6
27448 else
27449 gcc_cv_as_aix_ref=no
27450 if test $in_tree_gas = yes; then
27451 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27452 then gcc_cv_as_aix_ref=yes
27453 fi
27454 elif test x$gcc_cv_as != x; then
27455 $as_echo ' .csect stuff[rw]
27456 stuff:
27457 .long 1
27458 .extern sym
27459 .ref sym
27460 ' > conftest.s
27461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27463 (eval $ac_try) 2>&5
27464 ac_status=$?
27465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27466 test $ac_status = 0; }; }
27467 then
27468 gcc_cv_as_aix_ref=yes
27469 else
27470 echo "configure: failed program was" >&5
27471 cat conftest.s >&5
27472 fi
27473 rm -f conftest.o conftest.s
27474 fi
27475 fi
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27477 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27478 if test $gcc_cv_as_aix_ref = yes; then
27479
27480 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27481
27482 fi
27483
27484
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27486 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27487 if ${gcc_cv_as_aix_dwloc+:} false; then :
27488 $as_echo_n "(cached) " >&6
27489 else
27490 gcc_cv_as_aix_dwloc=no
27491 if test $in_tree_gas = yes; then
27492 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27493 then gcc_cv_as_aix_dwloc=yes
27494 fi
27495 elif test x$gcc_cv_as != x; then
27496 $as_echo ' .dwsect 0xA0000
27497 Lframe..0:
27498 .vbyte 4,Lframe..0
27499 ' > conftest.s
27500 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27502 (eval $ac_try) 2>&5
27503 ac_status=$?
27504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27505 test $ac_status = 0; }; }
27506 then
27507 gcc_cv_as_aix_dwloc=yes
27508 else
27509 echo "configure: failed program was" >&5
27510 cat conftest.s >&5
27511 fi
27512 rm -f conftest.o conftest.s
27513 fi
27514 fi
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27516 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27517 if test $gcc_cv_as_aix_dwloc = yes; then
27518
27519 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27520
27521 fi
27522
27523 ;;
27524 esac
27525 ;;
27526
27527 mips*-*-*)
27528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27529 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27530 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27531 $as_echo_n "(cached) " >&6
27532 else
27533 gcc_cv_as_mips_explicit_relocs=no
27534 if test $in_tree_gas = yes; then
27535 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27536 then gcc_cv_as_mips_explicit_relocs=yes
27537 fi
27538 elif test x$gcc_cv_as != x; then
27539 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27540 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27542 (eval $ac_try) 2>&5
27543 ac_status=$?
27544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27545 test $ac_status = 0; }; }
27546 then
27547 gcc_cv_as_mips_explicit_relocs=yes
27548 else
27549 echo "configure: failed program was" >&5
27550 cat conftest.s >&5
27551 fi
27552 rm -f conftest.o conftest.s
27553 fi
27554 fi
27555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27556 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27557 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27558 if test x$target_cpu_default = x
27559 then target_cpu_default=MASK_EXPLICIT_RELOCS
27560 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27561 fi
27562 fi
27563
27564
27565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27566 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27567 if ${gcc_cv_as_mips_no_shared+:} false; then :
27568 $as_echo_n "(cached) " >&6
27569 else
27570 gcc_cv_as_mips_no_shared=no
27571 if test $in_tree_gas = yes; then
27572 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27573 then gcc_cv_as_mips_no_shared=yes
27574 fi
27575 elif test x$gcc_cv_as != x; then
27576 $as_echo 'nop' > conftest.s
27577 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27579 (eval $ac_try) 2>&5
27580 ac_status=$?
27581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27582 test $ac_status = 0; }; }
27583 then
27584 gcc_cv_as_mips_no_shared=yes
27585 else
27586 echo "configure: failed program was" >&5
27587 cat conftest.s >&5
27588 fi
27589 rm -f conftest.o conftest.s
27590 fi
27591 fi
27592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27593 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27594 if test $gcc_cv_as_mips_no_shared = yes; then
27595
27596 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27597
27598 fi
27599
27600
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27602 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27603 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27604 $as_echo_n "(cached) " >&6
27605 else
27606 gcc_cv_as_mips_gnu_attribute=no
27607 if test $in_tree_gas = yes; then
27608 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27609 then gcc_cv_as_mips_gnu_attribute=yes
27610 fi
27611 elif test x$gcc_cv_as != x; then
27612 $as_echo '.gnu_attribute 4,1' > conftest.s
27613 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27615 (eval $ac_try) 2>&5
27616 ac_status=$?
27617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27618 test $ac_status = 0; }; }
27619 then
27620 gcc_cv_as_mips_gnu_attribute=yes
27621 else
27622 echo "configure: failed program was" >&5
27623 cat conftest.s >&5
27624 fi
27625 rm -f conftest.o conftest.s
27626 fi
27627 fi
27628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27629 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27630 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27631
27632 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27633
27634 fi
27635
27636
27637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27638 $as_echo_n "checking assembler for .module support... " >&6; }
27639 if ${gcc_cv_as_mips_dot_module+:} false; then :
27640 $as_echo_n "(cached) " >&6
27641 else
27642 gcc_cv_as_mips_dot_module=no
27643 if test x$gcc_cv_as != x; then
27644 $as_echo '.module mips2
27645 .module fp=xx' > conftest.s
27646 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27648 (eval $ac_try) 2>&5
27649 ac_status=$?
27650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27651 test $ac_status = 0; }; }
27652 then
27653 gcc_cv_as_mips_dot_module=yes
27654 else
27655 echo "configure: failed program was" >&5
27656 cat conftest.s >&5
27657 fi
27658 rm -f conftest.o conftest.s
27659 fi
27660 fi
27661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27662 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27663 if test $gcc_cv_as_mips_dot_module = yes; then
27664
27665 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27666
27667 fi
27668
27669 if test x$gcc_cv_as_mips_dot_module = xno \
27670 && test x$with_fp_32 != x; then
27671 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27672 fi
27673
27674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27675 $as_echo_n "checking assembler for .micromips support... " >&6; }
27676 if ${gcc_cv_as_micromips_support+:} false; then :
27677 $as_echo_n "(cached) " >&6
27678 else
27679 gcc_cv_as_micromips_support=no
27680 if test x$gcc_cv_as != x; then
27681 $as_echo '.set micromips' > conftest.s
27682 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27684 (eval $ac_try) 2>&5
27685 ac_status=$?
27686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27687 test $ac_status = 0; }; }
27688 then
27689 gcc_cv_as_micromips_support=yes
27690 else
27691 echo "configure: failed program was" >&5
27692 cat conftest.s >&5
27693 fi
27694 rm -f conftest.o conftest.s
27695 fi
27696 fi
27697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27698 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27699 if test $gcc_cv_as_micromips_support = yes; then
27700
27701 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27702
27703 fi
27704
27705
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27707 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27708 if ${gcc_cv_as_mips_dtprelword+:} false; then :
27709 $as_echo_n "(cached) " >&6
27710 else
27711 gcc_cv_as_mips_dtprelword=no
27712 if test $in_tree_gas = yes; then
27713 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27714 then gcc_cv_as_mips_dtprelword=yes
27715 fi
27716 elif test x$gcc_cv_as != x; then
27717 $as_echo '.section .tdata,"awT",@progbits
27718 x:
27719 .word 2
27720 .text
27721 .dtprelword x+0x8000' > conftest.s
27722 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27724 (eval $ac_try) 2>&5
27725 ac_status=$?
27726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27727 test $ac_status = 0; }; }
27728 then
27729 gcc_cv_as_mips_dtprelword=yes
27730 else
27731 echo "configure: failed program was" >&5
27732 cat conftest.s >&5
27733 fi
27734 rm -f conftest.o conftest.s
27735 fi
27736 fi
27737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27738 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27739 if test $gcc_cv_as_mips_dtprelword = yes; then
27740
27741 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27742
27743 fi
27744
27745
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27747 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27748 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27749 $as_echo_n "(cached) " >&6
27750 else
27751 gcc_cv_as_mips_dspr1_mult=no
27752 if test x$gcc_cv_as != x; then
27753 $as_echo ' .set mips32r2
27754 .set nodspr2
27755 .set dsp
27756 madd $ac3,$4,$5
27757 maddu $ac3,$4,$5
27758 msub $ac3,$4,$5
27759 msubu $ac3,$4,$5
27760 mult $ac3,$4,$5
27761 multu $ac3,$4,$5' > conftest.s
27762 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27764 (eval $ac_try) 2>&5
27765 ac_status=$?
27766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27767 test $ac_status = 0; }; }
27768 then
27769 gcc_cv_as_mips_dspr1_mult=yes
27770 else
27771 echo "configure: failed program was" >&5
27772 cat conftest.s >&5
27773 fi
27774 rm -f conftest.o conftest.s
27775 fi
27776 fi
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27778 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27779 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27780
27781 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27782
27783 fi
27784
27785
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27787 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27788 gcc_cv_as_ld_jalr_reloc=no
27789 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27790 if test $in_tree_ld = yes ; then
27791 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 \
27792 && test $in_tree_ld_is_elf = yes; then
27793 gcc_cv_as_ld_jalr_reloc=yes
27794 fi
27795 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27796 echo ' .ent x' > conftest.s
27797 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27798 echo ' lw $25,%call16(y)($28)' >> conftest.s
27799 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27800 echo '1: jalr $25' >> conftest.s
27801 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27802 echo '1: jalr $25' >> conftest.s
27803 echo ' .end x' >> conftest.s
27804 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27805 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27806 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27807 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27808 gcc_cv_as_ld_jalr_reloc=yes
27809 fi
27810 fi
27811 rm -f conftest.*
27812 fi
27813 fi
27814 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27815 if test x$target_cpu_default = x; then
27816 target_cpu_default=MASK_RELAX_PIC_CALLS
27817 else
27818 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27819 fi
27820 fi
27821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27822 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27823
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27825 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27826 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27827 $as_echo_n "(cached) " >&6
27828 else
27829 gcc_cv_ld_mips_personality_relaxation=no
27830 if test $in_tree_ld = yes ; then
27831 if test "$gcc_cv_gld_major_version" -eq 2 \
27832 -a "$gcc_cv_gld_minor_version" -ge 21 \
27833 -o "$gcc_cv_gld_major_version" -gt 2; then
27834 gcc_cv_ld_mips_personality_relaxation=yes
27835 fi
27836 elif test x$gcc_cv_as != x \
27837 -a x$gcc_cv_ld != x \
27838 -a x$gcc_cv_readelf != x ; then
27839 cat > conftest.s <<EOF
27840 .cfi_startproc
27841 .cfi_personality 0x80,indirect_ptr
27842 .ent test
27843 test:
27844 nop
27845 .end test
27846 .cfi_endproc
27847
27848 .section .data,"aw",@progbits
27849 indirect_ptr:
27850 .dc.a personality
27851 EOF
27852 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27853 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27854 if $gcc_cv_readelf -d conftest 2>&1 \
27855 | grep TEXTREL > /dev/null 2>&1; then
27856 :
27857 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27858 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27859 :
27860 else
27861 gcc_cv_ld_mips_personality_relaxation=yes
27862 fi
27863 fi
27864 fi
27865 rm -f conftest.s conftest.o conftest
27866 fi
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27868 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27869 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27870
27871 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27872
27873 fi
27874
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27876 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27877 if ${gcc_cv_as_mips_nan+:} false; then :
27878 $as_echo_n "(cached) " >&6
27879 else
27880 gcc_cv_as_mips_nan=no
27881 if test x$gcc_cv_as != x; then
27882 $as_echo '' > conftest.s
27883 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27885 (eval $ac_try) 2>&5
27886 ac_status=$?
27887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27888 test $ac_status = 0; }; }
27889 then
27890 gcc_cv_as_mips_nan=yes
27891 else
27892 echo "configure: failed program was" >&5
27893 cat conftest.s >&5
27894 fi
27895 rm -f conftest.o conftest.s
27896 fi
27897 fi
27898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27899 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27900 if test $gcc_cv_as_mips_nan = yes; then
27901
27902 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27903
27904 fi
27905
27906 if test x$gcc_cv_as_mips_nan = xno \
27907 && test x$with_nan != x; then
27908 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27909 fi
27910 ;;
27911 msp430-*-*)
27912 # Earlier GAS versions generically support .gnu_attribute, but the
27913 # msp430 assembler will not do anything with it.
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27915 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27916 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
27917 $as_echo_n "(cached) " >&6
27918 else
27919 gcc_cv_as_msp430_gnu_attribute=no
27920 if test $in_tree_gas = yes; then
27921 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27922 then gcc_cv_as_msp430_gnu_attribute=yes
27923 fi
27924 elif test x$gcc_cv_as != x; then
27925 $as_echo '.gnu_attribute 4,1' > conftest.s
27926 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27928 (eval $ac_try) 2>&5
27929 ac_status=$?
27930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27931 test $ac_status = 0; }; }
27932 then
27933 gcc_cv_as_msp430_gnu_attribute=yes
27934 else
27935 echo "configure: failed program was" >&5
27936 cat conftest.s >&5
27937 fi
27938 rm -f conftest.o conftest.s
27939 fi
27940 fi
27941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
27942 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
27943 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
27944
27945 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27946
27947 fi
27948
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
27950 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
27951 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
27952 $as_echo_n "(cached) " >&6
27953 else
27954 gcc_cv_as_msp430_mspabi_attribute=no
27955 if test $in_tree_gas = yes; then
27956 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27957 then gcc_cv_as_msp430_mspabi_attribute=yes
27958 fi
27959 elif test x$gcc_cv_as != x; then
27960 $as_echo '.mspabi_attribute 4,1' > conftest.s
27961 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27963 (eval $ac_try) 2>&5
27964 ac_status=$?
27965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27966 test $ac_status = 0; }; }
27967 then
27968 gcc_cv_as_msp430_mspabi_attribute=yes
27969 else
27970 echo "configure: failed program was" >&5
27971 cat conftest.s >&5
27972 fi
27973 rm -f conftest.o conftest.s
27974 fi
27975 fi
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
27977 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
27978 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
27979
27980 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
27981
27982 fi
27983
27984 if test x$enable_newlib_nano_formatted_io = xyes; then
27985
27986 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
27987
27988 fi
27989 ;;
27990 nios2-*-*)
27991 # Versions 2.33 and earlier lacked support for the %gotoff relocation
27992 # syntax that is documented in the ABI specification.
27993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
27994 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
27995 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
27996 $as_echo_n "(cached) " >&6
27997 else
27998 gcc_cv_as_nios2_gotoff_relocation=no
27999 if test x$gcc_cv_as != x; then
28000 $as_echo ' .extern foo
28001 .data
28002 .long %gotoff(foo)' > conftest.s
28003 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28005 (eval $ac_try) 2>&5
28006 ac_status=$?
28007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28008 test $ac_status = 0; }; }
28009 then
28010 gcc_cv_as_nios2_gotoff_relocation=yes
28011 else
28012 echo "configure: failed program was" >&5
28013 cat conftest.s >&5
28014 fi
28015 rm -f conftest.o conftest.s
28016 fi
28017 fi
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28019 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28020 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28021
28022 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28023
28024 fi
28025
28026 ;;
28027 riscv*-*-*)
28028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28029 $as_echo_n "checking assembler for .attribute support... " >&6; }
28030 if ${gcc_cv_as_riscv_attribute+:} false; then :
28031 $as_echo_n "(cached) " >&6
28032 else
28033 gcc_cv_as_riscv_attribute=no
28034 if test $in_tree_gas = yes; then
28035 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
28036 then gcc_cv_as_riscv_attribute=yes
28037 fi
28038 elif test x$gcc_cv_as != x; then
28039 $as_echo '.attribute stack_align,4' > conftest.s
28040 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28042 (eval $ac_try) 2>&5
28043 ac_status=$?
28044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28045 test $ac_status = 0; }; }
28046 then
28047 gcc_cv_as_riscv_attribute=yes
28048 else
28049 echo "configure: failed program was" >&5
28050 cat conftest.s >&5
28051 fi
28052 rm -f conftest.o conftest.s
28053 fi
28054 fi
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28056 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28057 if test $gcc_cv_as_riscv_attribute = yes; then
28058
28059 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28060
28061 fi
28062
28063 ;;
28064 s390*-*-*)
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28066 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28067 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28068 $as_echo_n "(cached) " >&6
28069 else
28070 gcc_cv_as_s390_gnu_attribute=no
28071 if test $in_tree_gas = yes; then
28072 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28073 then gcc_cv_as_s390_gnu_attribute=yes
28074 fi
28075 elif test x$gcc_cv_as != x; then
28076 $as_echo '.gnu_attribute 8,1' > conftest.s
28077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28079 (eval $ac_try) 2>&5
28080 ac_status=$?
28081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28082 test $ac_status = 0; }; }
28083 then
28084 gcc_cv_as_s390_gnu_attribute=yes
28085 else
28086 echo "configure: failed program was" >&5
28087 cat conftest.s >&5
28088 fi
28089 rm -f conftest.o conftest.s
28090 fi
28091 fi
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28093 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28094 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28095
28096 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28097
28098 fi
28099
28100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28101 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28102 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28103 $as_echo_n "(cached) " >&6
28104 else
28105 gcc_cv_as_s390_machine_machinemode=no
28106 if test $in_tree_gas = yes; then
28107 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28108 then gcc_cv_as_s390_machine_machinemode=yes
28109 fi
28110 elif test x$gcc_cv_as != x; then
28111 $as_echo ' .machinemode push
28112 .machinemode pop
28113 .machine push
28114 .machine pop' > conftest.s
28115 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28117 (eval $ac_try) 2>&5
28118 ac_status=$?
28119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28120 test $ac_status = 0; }; }
28121 then
28122 gcc_cv_as_s390_machine_machinemode=yes
28123 else
28124 echo "configure: failed program was" >&5
28125 cat conftest.s >&5
28126 fi
28127 rm -f conftest.o conftest.s
28128 fi
28129 fi
28130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28131 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28132 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28133
28134 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28135
28136 fi
28137
28138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28139 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28140 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28141 $as_echo_n "(cached) " >&6
28142 else
28143 gcc_cv_as_s390_architecture_modifiers=no
28144 if test $in_tree_gas = yes; then
28145 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28146 then gcc_cv_as_s390_architecture_modifiers=yes
28147 fi
28148 elif test x$gcc_cv_as != x; then
28149 $as_echo ' .machine z13+vx ' > conftest.s
28150 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28152 (eval $ac_try) 2>&5
28153 ac_status=$?
28154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28155 test $ac_status = 0; }; }
28156 then
28157 gcc_cv_as_s390_architecture_modifiers=yes
28158 else
28159 echo "configure: failed program was" >&5
28160 cat conftest.s >&5
28161 fi
28162 rm -f conftest.o conftest.s
28163 fi
28164 fi
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28166 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28167 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28168
28169 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28170
28171 fi
28172
28173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28174 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28175 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28176 $as_echo_n "(cached) " >&6
28177 else
28178 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28179 if test $in_tree_gas = yes; then
28180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28181 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28182 fi
28183 elif test x$gcc_cv_as != x; then
28184 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28185 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28187 (eval $ac_try) 2>&5
28188 ac_status=$?
28189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28190 test $ac_status = 0; }; }
28191 then
28192 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28193 else
28194 echo "configure: failed program was" >&5
28195 cat conftest.s >&5
28196 fi
28197 rm -f conftest.o conftest.s
28198 fi
28199 fi
28200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28201 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28202 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28203
28204 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28205
28206 fi
28207
28208
28209 ;;
28210 esac
28211
28212 # Mips and HP-UX need the GNU assembler.
28213 # Linux on IA64 might be able to use the Intel assembler.
28214
28215 case "$target" in
28216 mips*-*-* | *-*-hpux* )
28217 if test x$gas_flag = xyes \
28218 || test x"$host" != x"$build" \
28219 || test ! -x "$gcc_cv_as" \
28220 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28221 :
28222 else
28223 echo "*** This configuration requires the GNU assembler" >&2
28224 exit 1
28225 fi
28226 ;;
28227 esac
28228
28229 # ??? Not all targets support dwarf2 debug_line, even within a version
28230 # of gas. Moreover, we need to emit a valid instruction to trigger any
28231 # info to the output file. So, as supported targets are added to gas 2.11,
28232 # add some instruction here to (also) show we expect this might work.
28233 # ??? Once 2.11 is released, probably need to add first known working
28234 # version to the per-target configury.
28235 case "$cpu_type" in
28236 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28237 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28238 | tilegx | tilepro | visium | xstormy16 | xtensa)
28239 insn="nop"
28240 ;;
28241 ia64 | s390)
28242 insn="nop 0"
28243 ;;
28244 mmix)
28245 insn="swym 0"
28246 ;;
28247 esac
28248 if test x"$insn" != x; then
28249 conftest_s="\
28250 .file 1 \"conftest.s\"
28251 .loc 1 3 0
28252 $insn"
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28254 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28255 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
28256 $as_echo_n "(cached) " >&6
28257 else
28258 gcc_cv_as_dwarf2_debug_line=no
28259 if test $in_tree_gas = yes; then
28260 if test $in_tree_gas_is_elf = yes \
28261 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28262 then gcc_cv_as_dwarf2_debug_line=yes
28263 fi
28264 elif test x$gcc_cv_as != x; then
28265 $as_echo "$conftest_s" > conftest.s
28266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28268 (eval $ac_try) 2>&5
28269 ac_status=$?
28270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28271 test $ac_status = 0; }; }
28272 then
28273 if test x$gcc_cv_objdump != x \
28274 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
28275 | grep debug_line > /dev/null 2>&1; then
28276 gcc_cv_as_dwarf2_debug_line=yes
28277 elif test x$gcc_cv_otool != x \
28278 && $gcc_cv_otool -l conftest.o 2> /dev/null \
28279 | grep debug_line > /dev/null 2>&1; then
28280 gcc_cv_as_dwarf2_debug_line=yes
28281 fi
28282 else
28283 echo "configure: failed program was" >&5
28284 cat conftest.s >&5
28285 fi
28286 rm -f conftest.o conftest.s
28287 fi
28288 fi
28289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28290 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28291
28292
28293
28294 # The .debug_line file table must be in the exact order that
28295 # we specified the files, since these indices are also used
28296 # by DW_AT_decl_file. Approximate this test by testing if
28297 # the assembler bitches if the same index is assigned twice.
28298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28299 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28300 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
28301 $as_echo_n "(cached) " >&6
28302 else
28303 gcc_cv_as_dwarf2_file_buggy=no
28304 if test x$gcc_cv_as != x; then
28305 $as_echo ' .file 1 "foo.s"
28306 .file 1 "bar.s"' > conftest.s
28307 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28309 (eval $ac_try) 2>&5
28310 ac_status=$?
28311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28312 test $ac_status = 0; }; }
28313 then
28314 gcc_cv_as_dwarf2_file_buggy=yes
28315 else
28316 echo "configure: failed program was" >&5
28317 cat conftest.s >&5
28318 fi
28319 rm -f conftest.o conftest.s
28320 fi
28321 fi
28322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28323 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28324
28325
28326
28327 if test $gcc_cv_as_dwarf2_debug_line = yes \
28328 && test $gcc_cv_as_dwarf2_file_buggy = no; then
28329
28330 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28331
28332
28333 if test $gcc_cv_as_leb128 = yes; then
28334 conftest_s="\
28335 .file 1 \"conftest.s\"
28336 .loc 1 3 0 view .LVU1
28337 $insn
28338 .data
28339 .uleb128 .LVU1
28340 .uleb128 .LVU1
28341 "
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28343 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28344 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
28345 $as_echo_n "(cached) " >&6
28346 else
28347 gcc_cv_as_dwarf2_debug_view=no
28348 if test $in_tree_gas = yes; then
28349 if test $in_tree_gas_is_elf = yes \
28350 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28351 then gcc_cv_as_dwarf2_debug_view=yes
28352 fi
28353 elif test x$gcc_cv_as != x; then
28354 $as_echo "$conftest_s" > conftest.s
28355 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28357 (eval $ac_try) 2>&5
28358 ac_status=$?
28359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28360 test $ac_status = 0; }; }
28361 then
28362 gcc_cv_as_dwarf2_debug_view=yes
28363 else
28364 echo "configure: failed program was" >&5
28365 cat conftest.s >&5
28366 fi
28367 rm -f conftest.o conftest.s
28368 fi
28369 fi
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28371 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28372 if test $gcc_cv_as_dwarf2_debug_view = yes; then
28373
28374 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28375
28376 fi
28377
28378 fi
28379 fi
28380
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28382 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28383 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
28384 $as_echo_n "(cached) " >&6
28385 else
28386 gcc_cv_as_gdwarf2_flag=no
28387 if test $in_tree_gas = yes; then
28388 if test $in_tree_gas_is_elf = yes \
28389 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28390 then gcc_cv_as_gdwarf2_flag=yes
28391 fi
28392 elif test x$gcc_cv_as != x; then
28393 $as_echo "$insn" > conftest.s
28394 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28396 (eval $ac_try) 2>&5
28397 ac_status=$?
28398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28399 test $ac_status = 0; }; }
28400 then
28401 gcc_cv_as_gdwarf2_flag=yes
28402 else
28403 echo "configure: failed program was" >&5
28404 cat conftest.s >&5
28405 fi
28406 rm -f conftest.o conftest.s
28407 fi
28408 fi
28409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28410 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28411 if test $gcc_cv_as_gdwarf2_flag = yes; then
28412
28413 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28414
28415 fi
28416
28417
28418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28419 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28420 if ${gcc_cv_as_gstabs_flag+:} false; then :
28421 $as_echo_n "(cached) " >&6
28422 else
28423 gcc_cv_as_gstabs_flag=no
28424 if test $in_tree_gas = yes; then
28425 if test $in_tree_gas_is_elf = yes \
28426 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28427 then gcc_cv_as_gstabs_flag=yes
28428 fi
28429 elif test x$gcc_cv_as != x; then
28430 $as_echo "$insn" > conftest.s
28431 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28433 (eval $ac_try) 2>&5
28434 ac_status=$?
28435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28436 test $ac_status = 0; }; }
28437 then
28438 gcc_cv_as_gstabs_flag=yes
28439 else
28440 echo "configure: failed program was" >&5
28441 cat conftest.s >&5
28442 fi
28443 rm -f conftest.o conftest.s
28444 fi
28445 fi
28446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28447 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28448 if test $gcc_cv_as_gstabs_flag = yes; then
28449
28450 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28451
28452 fi
28453
28454
28455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28456 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28457 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
28458 $as_echo_n "(cached) " >&6
28459 else
28460 gcc_cv_as_debug_prefix_map_flag=no
28461 if test $in_tree_gas = yes; then
28462 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28463 then gcc_cv_as_debug_prefix_map_flag=yes
28464 fi
28465 elif test x$gcc_cv_as != x; then
28466 $as_echo "$insn" > conftest.s
28467 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28469 (eval $ac_try) 2>&5
28470 ac_status=$?
28471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28472 test $ac_status = 0; }; }
28473 then
28474 gcc_cv_as_debug_prefix_map_flag=yes
28475 else
28476 echo "configure: failed program was" >&5
28477 cat conftest.s >&5
28478 fi
28479 rm -f conftest.o conftest.s
28480 fi
28481 fi
28482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28483 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28484 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28485
28486 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28487
28488 fi
28489
28490 fi
28491
28492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28493 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28494 if ${gcc_cv_as_compress_debug+:} false; then :
28495 $as_echo_n "(cached) " >&6
28496 else
28497 gcc_cv_as_compress_debug=no
28498 if test x$gcc_cv_as != x; then
28499 $as_echo '' > conftest.s
28500 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28502 (eval $ac_try) 2>&5
28503 ac_status=$?
28504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28505 test $ac_status = 0; }; }
28506 then
28507 # gas compiled without zlib cannot compress debug sections and warns
28508 # about it, but still exits successfully. So check for this, too.
28509 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28510 then
28511 gcc_cv_as_compress_debug=0
28512 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28513 # defaulting to the ELF gABI format.
28514 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28515 then
28516 gcc_cv_as_compress_debug=2
28517 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28518 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28519 # Before binutils 2.26, gas only supported --compress-debug-options and
28520 # emitted the traditional GNU format.
28521 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28522 then
28523 gcc_cv_as_compress_debug=1
28524 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28525 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28526 else
28527 gcc_cv_as_compress_debug=0
28528 fi
28529 else
28530 echo "configure: failed program was" >&5
28531 cat conftest.s >&5
28532 fi
28533 rm -f conftest.o conftest.s
28534 fi
28535 fi
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28537 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28538
28539
28540
28541 cat >>confdefs.h <<_ACEOF
28542 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28543 _ACEOF
28544
28545
28546 cat >>confdefs.h <<_ACEOF
28547 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28548 _ACEOF
28549
28550
28551 cat >>confdefs.h <<_ACEOF
28552 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28553 _ACEOF
28554
28555
28556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28557 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28558 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
28559 $as_echo_n "(cached) " >&6
28560 else
28561 gcc_cv_as_lcomm_with_alignment=no
28562 if test x$gcc_cv_as != x; then
28563 $as_echo '.lcomm bar,4,16' > conftest.s
28564 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28566 (eval $ac_try) 2>&5
28567 ac_status=$?
28568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28569 test $ac_status = 0; }; }
28570 then
28571 gcc_cv_as_lcomm_with_alignment=yes
28572 else
28573 echo "configure: failed program was" >&5
28574 cat conftest.s >&5
28575 fi
28576 rm -f conftest.o conftest.s
28577 fi
28578 fi
28579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28580 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28581 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28582
28583 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28584
28585 fi
28586
28587
28588 if test x$with_sysroot = x && test x$host = x$target \
28589 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28590 && test "$prefix" != "NONE"; then
28591
28592 cat >>confdefs.h <<_ACEOF
28593 #define PREFIX_INCLUDE_DIR "$prefix/include"
28594 _ACEOF
28595
28596 fi
28597
28598 # Determine the version of glibc, if any, used on the target.
28599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28600 $as_echo_n "checking for target glibc version... " >&6; }
28601
28602 # Check whether --with-glibc-version was given.
28603 if test "${with_glibc_version+set}" = set; then :
28604 withval=$with_glibc_version;
28605 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28606 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28607 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28608 else
28609 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28610 fi
28611 else
28612
28613 glibc_version_major=0
28614 glibc_version_minor=0
28615 if test -f $target_header_dir/features.h \
28616 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28617 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28618 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28619 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28620 fi
28621 fi
28622
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28624 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28625
28626 cat >>confdefs.h <<_ACEOF
28627 #define TARGET_GLIBC_MAJOR $glibc_version_major
28628 _ACEOF
28629
28630
28631 cat >>confdefs.h <<_ACEOF
28632 #define TARGET_GLIBC_MINOR $glibc_version_minor
28633 _ACEOF
28634
28635
28636 # Check whether --enable-gnu-unique-object was given.
28637 if test "${enable_gnu_unique_object+set}" = set; then :
28638 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28639 yes | no) ;;
28640 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28641 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28642 esac
28643 else
28644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28645 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28646 if ${gcc_cv_as_gnu_unique_object+:} false; then :
28647 $as_echo_n "(cached) " >&6
28648 else
28649 gcc_cv_as_gnu_unique_object=no
28650 if test $in_tree_gas = yes; then
28651 if test $in_tree_gas_is_elf = yes \
28652 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28653 then gcc_cv_as_gnu_unique_object=yes
28654 fi
28655 elif test x$gcc_cv_as != x; then
28656 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28657 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28659 (eval $ac_try) 2>&5
28660 ac_status=$?
28661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28662 test $ac_status = 0; }; }
28663 then
28664 gcc_cv_as_gnu_unique_object=yes
28665 else
28666 echo "configure: failed program was" >&5
28667 cat conftest.s >&5
28668 fi
28669 rm -f conftest.o conftest.s
28670 fi
28671 fi
28672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28673 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28674 if test $gcc_cv_as_gnu_unique_object = yes; then
28675 # We need to unquote above to to use the definition from config.gcc.
28676 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28677
28678 if test $glibc_version_major -gt 2 \
28679 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28680 enable_gnu_unique_object=yes
28681 fi
28682
28683 fi
28684
28685 fi
28686
28687 if test x$enable_gnu_unique_object = xyes; then
28688
28689 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28690
28691 fi
28692
28693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28694 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28695 if ${gcc_cv_as_line_zero+:} false; then :
28696 $as_echo_n "(cached) " >&6
28697 else
28698 gcc_cv_as_line_zero=no
28699 if test $in_tree_gas = yes; then
28700 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28701 then gcc_cv_as_line_zero=yes
28702 fi
28703 elif test "x$gcc_cv_as" != x; then
28704 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28705 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28707 (eval $ac_try) 2>&5
28708 ac_status=$?
28709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28710 test $ac_status = 0; }; } &&
28711 test "x`cat conftest.out`" = x
28712 then
28713 gcc_cv_as_line_zero=yes
28714 else
28715 echo "configure: failed program was" >&5
28716 cat conftest.s >&5
28717 echo "configure: error output was" >&5
28718 cat conftest.out >&5
28719 fi
28720 rm -f conftest.o conftest.s conftest.out
28721 fi
28722 fi
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28724 $as_echo "$gcc_cv_as_line_zero" >&6; }
28725 if test "x$gcc_cv_as_line_zero" = xyes; then
28726
28727 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28728
28729 fi
28730
28731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28732 $as_echo_n "checking support for thin archives... " >&6; }
28733 thin_archive_support=no
28734 echo 'int main (void) { return 0; }' > conftest.c
28735 if ($AR --version | sed 1q | grep "GNU ar" \
28736 && $CC $CFLAGS -c conftest.c \
28737 && $AR rcT conftest.a conftest.o \
28738 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28739 thin_archive_support=yes
28740 fi
28741 rm -f conftest.c conftest.o conftest.a conftest
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28743 $as_echo "$thin_archive_support" >&6; }
28744
28745
28746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28747 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28748 gcc_cv_ld_eh_frame_hdr=no
28749 if test $in_tree_ld = yes ; then
28750 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 \
28751 && test $in_tree_ld_is_elf = yes; then
28752 gcc_cv_ld_eh_frame_hdr=yes
28753 fi
28754 elif test x$gcc_cv_ld != x; then
28755 if echo "$ld_ver" | grep GNU > /dev/null; then
28756 # Check if linker supports --eh-frame-hdr option
28757 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28758 gcc_cv_ld_eh_frame_hdr=yes
28759 fi
28760 else
28761 case "$target" in
28762 *-*-solaris2*)
28763 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28764 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28765 gcc_cv_ld_eh_frame_hdr=yes
28766 fi
28767 ;;
28768 esac
28769 fi
28770 fi
28771
28772 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28773
28774 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28775
28776 fi
28777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28778 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28779
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28781 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28782 gcc_cv_ld_eh_frame_ciev3=no
28783 if test $in_tree_ld = yes ; then
28784 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 \
28785 && test $in_tree_ld_is_elf = yes; then
28786 gcc_cv_ld_eh_frame_ciev3=yes
28787 fi
28788 elif test x$gcc_cv_ld != x; then
28789 if echo "$ld_ver" | grep GNU > /dev/null; then
28790 gcc_cv_ld_eh_frame_ciev3=yes
28791 if test 0"$ld_date" -lt 20040513; then
28792 if test -n "$ld_date"; then
28793 # If there was date string, but was earlier than 2004-05-13, fail
28794 gcc_cv_ld_eh_frame_ciev3=no
28795 elif test "$ld_vers_major" -lt 2; then
28796 gcc_cv_ld_eh_frame_ciev3=no
28797 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28798 gcc_cv_ld_eh_frame_ciev3=no
28799 fi
28800 fi
28801 else
28802 case "$target" in
28803 *-*-solaris2*)
28804 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28805 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28806 gcc_cv_ld_eh_frame_ciev3=yes
28807 fi
28808 ;;
28809 esac
28810 fi
28811 fi
28812
28813 cat >>confdefs.h <<_ACEOF
28814 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28815 _ACEOF
28816
28817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28818 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28819
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28821 $as_echo_n "checking linker position independent executable support... " >&6; }
28822 gcc_cv_ld_pie=no
28823 if test $in_tree_ld = yes ; then
28824 case "$target" in
28825 # Full PIE support on Solaris was only introduced in gld 2.26.
28826 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28827 *) gcc_gld_pie_min_version=15 ;;
28828 esac
28829 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 \
28830 && test $in_tree_ld_is_elf = yes; then
28831 gcc_cv_ld_pie=yes
28832 fi
28833 elif test x$gcc_cv_ld != x; then
28834 # Check if linker supports -pie option
28835 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28836 gcc_cv_ld_pie=yes
28837 case "$target" in
28838 *-*-solaris2*)
28839 if echo "$ld_ver" | grep GNU > /dev/null \
28840 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28841 gcc_cv_ld_pie=no
28842 fi
28843 ;;
28844 esac
28845 else
28846 case "$target" in
28847 *-*-solaris2.1[1-9]*)
28848 # Solaris 11.3 added PIE support.
28849 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28850 gcc_cv_ld_pie=yes
28851 fi
28852 ;;
28853 esac
28854 fi
28855 fi
28856 if test x"$gcc_cv_ld_pie" = xyes; then
28857
28858 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28859
28860 fi
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28862 $as_echo "$gcc_cv_ld_pie" >&6; }
28863
28864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28865 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28866 gcc_cv_ld_pie_copyreloc=no
28867 if test $gcc_cv_ld_pie = yes ; then
28868 if test $in_tree_ld = yes ; then
28869 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
28870 gcc_cv_ld_pie_copyreloc=yes
28871 fi
28872 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28873 # Check if linker supports -pie option with copy reloc
28874 case "$target" in
28875 i?86-*-linux* | x86_64-*-linux*)
28876 cat > conftest1.s <<EOF
28877 .globl a_glob
28878 .data
28879 .type a_glob, @object
28880 .size a_glob, 4
28881 a_glob:
28882 .long 2
28883 EOF
28884 cat > conftest2.s <<EOF
28885 .text
28886 .globl main
28887 .type main, @function
28888 main:
28889 movl %eax, a_glob(%rip)
28890 .size main, .-main
28891 .globl ptr
28892 .section .data.rel,"aw",@progbits
28893 .type ptr, @object
28894 ptr:
28895 .quad a_glob
28896 EOF
28897 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28898 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28899 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28900 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28901 gcc_cv_ld_pie_copyreloc=yes
28902 fi
28903 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28904 ;;
28905 esac
28906 fi
28907 fi
28908
28909 cat >>confdefs.h <<_ACEOF
28910 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28911 _ACEOF
28912
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28914 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28915
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28917 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28918 gcc_cv_ld_eh_gc_sections=no
28919 if test $in_tree_ld = yes ; then
28920 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 \
28921 && test $in_tree_ld_is_elf = yes; then
28922 gcc_cv_ld_eh_gc_sections=yes
28923 fi
28924 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28925 cat > conftest.s <<EOF
28926 .section .text
28927 .globl _start
28928 .type _start, @function
28929 _start:
28930 .long foo
28931 .size _start, .-_start
28932 .section .text.foo,"ax",@progbits
28933 .type foo, @function
28934 foo:
28935 .long 0
28936 .size foo, .-foo
28937 .section .gcc_except_table.foo,"a",@progbits
28938 .L0:
28939 .long 0
28940 .section .eh_frame,"a",@progbits
28941 .long .L0
28942 EOF
28943 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28944 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28945 | grep "gc-sections option ignored" > /dev/null; then
28946 gcc_cv_ld_eh_gc_sections=no
28947 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28948 | grep gcc_except_table > /dev/null; then
28949 gcc_cv_ld_eh_gc_sections=yes
28950 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28951 if test x$gcc_cv_as_comdat_group != xyes; then
28952 gcc_cv_ld_eh_gc_sections=no
28953 cat > conftest.s <<EOF
28954 .section .text
28955 .globl _start
28956 .type _start, @function
28957 _start:
28958 .long foo
28959 .size _start, .-_start
28960 .section .gnu.linkonce.t.foo,"ax",@progbits
28961 .type foo, @function
28962 foo:
28963 .long 0
28964 .size foo, .-foo
28965 .section .gcc_except_table.foo,"a",@progbits
28966 .L0:
28967 .long 0
28968 .section .eh_frame,"a",@progbits
28969 .long .L0
28970 EOF
28971 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28972 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28973 | grep "gc-sections option ignored" > /dev/null; then
28974 gcc_cv_ld_eh_gc_sections=no
28975 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28976 | grep gcc_except_table > /dev/null; then
28977 gcc_cv_ld_eh_gc_sections=yes
28978 fi
28979 fi
28980 fi
28981 fi
28982 fi
28983 rm -f conftest.s conftest.o conftest
28984 fi
28985 case "$target" in
28986 hppa*-*-linux*)
28987 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28988 gcc_cv_ld_eh_gc_sections=no
28989 ;;
28990 esac
28991 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28992
28993 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28994
28995 fi
28996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28997 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28998
28999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
29000 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
29001 gcc_cv_ld_eh_gc_sections_bug=no
29002 if test $in_tree_ld = yes ; then
29003 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 \
29004 && test $in_tree_ld_is_elf = yes; then
29005 gcc_cv_ld_eh_gc_sections_bug=yes
29006 fi
29007 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
29008 gcc_cv_ld_eh_gc_sections_bug=yes
29009 cat > conftest.s <<EOF
29010 .section .text
29011 .globl _start
29012 .type _start, @function
29013 _start:
29014 .long foo
29015 .size _start, .-_start
29016 .section .text.startup.foo,"ax",@progbits
29017 .type foo, @function
29018 foo:
29019 .long 0
29020 .size foo, .-foo
29021 .section .gcc_except_table.foo,"a",@progbits
29022 .L0:
29023 .long 0
29024 .section .eh_frame,"a",@progbits
29025 .long .L0
29026 EOF
29027 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29028 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29029 | grep "gc-sections option ignored" > /dev/null; then
29030 :
29031 elif $gcc_cv_objdump -h conftest 2> /dev/null \
29032 | grep gcc_except_table > /dev/null; then
29033 gcc_cv_ld_eh_gc_sections_bug=no
29034 fi
29035 fi
29036 rm -f conftest.s conftest.o conftest
29037 fi
29038 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
29039
29040 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
29041
29042 fi
29043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
29044 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
29045
29046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
29047 $as_echo_n "checking linker for compressed debug sections... " >&6; }
29048 # gold/gld support compressed debug sections since binutils 2.19/2.21
29049 # In binutils 2.26, gld gained support for the ELF gABI format.
29050 if test $in_tree_ld = yes ; then
29051 gcc_cv_ld_compress_debug=0
29052 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 \
29053 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
29054 gcc_cv_ld_compress_debug=2
29055 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29056 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 \
29057 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
29058 gcc_cv_ld_compress_debug=3
29059 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29060 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 \
29061 && test $in_tree_ld_is_elf = yes; then
29062 gcc_cv_ld_compress_debug=1
29063 fi
29064 elif echo "$ld_ver" | grep GNU > /dev/null; then
29065 if test "$ld_vers_major" -lt 2 \
29066 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
29067 gcc_cv_ld_compress_debug=0
29068 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29069 gcc_cv_ld_compress_debug=1
29070 else
29071 gcc_cv_ld_compress_debug=3
29072 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29073 fi
29074 if test $ld_is_gold = yes; then
29075 gcc_cv_ld_compress_debug=2
29076 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29077 fi
29078 else
29079 case "${target}" in
29080 *-*-solaris2*)
29081 # Introduced in Solaris 11.2.
29082 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
29083 gcc_cv_ld_compress_debug=3
29084 gcc_cv_ld_compress_debug_option="-z compress-sections"
29085 else
29086 gcc_cv_ld_compress_debug=0
29087 fi
29088 ;;
29089 *)
29090 # Assume linkers other than GNU ld don't support compessed debug
29091 # sections.
29092 gcc_cv_ld_compress_debug=0
29093 ;;
29094 esac
29095 fi
29096
29097 cat >>confdefs.h <<_ACEOF
29098 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
29099 _ACEOF
29100
29101
29102 cat >>confdefs.h <<_ACEOF
29103 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
29104 _ACEOF
29105
29106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
29107 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
29108
29109 if test x"$ld64_flag" = x"yes"; then
29110
29111 # Set defaults for possibly untestable items.
29112 gcc_cv_ld64_export_dynamic=0
29113
29114 if test "$build" = "$host"; then
29115 darwin_try_test=1
29116 else
29117 darwin_try_test=0
29118 fi
29119
29120 # On Darwin, because of FAT library support, it is often possible to execute
29121 # exes from compatible archs even when the host differs from the build system.
29122 case "$build","$host" in
29123 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
29124 darwin_try_test=1;;
29125 *) ;;
29126 esac
29127
29128 # If the configurer specified a minimum ld64 version to be supported, then use
29129 # that to determine feature support.
29130 if test x"${gcc_cv_ld64_version}" != x; then
29131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
29132 $as_echo_n "checking ld64 specified version... " >&6; }
29133 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
29134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
29135 $as_echo "$gcc_cv_ld64_major" >&6; }
29136 if test "$gcc_cv_ld64_major" -ge 236; then
29137 gcc_cv_ld64_export_dynamic=1
29138 fi
29139 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
29140 # If the version was not specified, try to find it.
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
29142 $as_echo_n "checking linker version... " >&6; }
29143 if test x"${gcc_cv_ld64_version}" = x; then
29144 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
29145 fi
29146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
29147 $as_echo "$gcc_cv_ld64_version" >&6; }
29148
29149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
29150 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
29151 gcc_cv_ld64_export_dynamic=1
29152 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
29153 gcc_cv_ld64_export_dynamic=0
29154 fi
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
29156 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
29157 fi
29158
29159 if test x"${gcc_cv_ld64_version}" != x; then
29160
29161 cat >>confdefs.h <<_ACEOF
29162 #define LD64_VERSION "${gcc_cv_ld64_version}"
29163 _ACEOF
29164
29165 fi
29166
29167
29168 cat >>confdefs.h <<_ACEOF
29169 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
29170 _ACEOF
29171
29172 fi
29173
29174 # --------
29175 # UNSORTED
29176 # --------
29177
29178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
29179 $as_echo_n "checking linker --as-needed support... " >&6; }
29180 if ${gcc_cv_ld_as_needed+:} false; then :
29181 $as_echo_n "(cached) " >&6
29182 else
29183 gcc_cv_ld_as_needed=no
29184 gcc_cv_ld_as_needed_option='--as-needed'
29185 gcc_cv_ld_no_as_needed_option='--no-as-needed'
29186 if test $in_tree_ld = yes ; then
29187 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 \
29188 && test $in_tree_ld_is_elf = yes; then
29189 gcc_cv_ld_as_needed=yes
29190 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
29191 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29192 gcc_cv_ld_no_as_needed_option='--pop-state'
29193 fi
29194 fi
29195 elif test x$gcc_cv_ld != x; then
29196 # Check if linker supports --as-needed and --no-as-needed options
29197 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
29198 gcc_cv_ld_as_needed=yes
29199 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
29200 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
29201 && echo "$ld_ver" | grep GNU > /dev/null \
29202 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
29203 # Use these options only when both ld.bfd and ld.gold support
29204 # --push-state/--pop-state, which unfortunately wasn't added
29205 # at the same time.
29206 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29207 gcc_cv_ld_no_as_needed_option='--pop-state'
29208 fi
29209 fi
29210 case "$target:$gnu_ld" in
29211 *-*-solaris2*:no)
29212 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
29213 # forms.
29214 gcc_cv_ld_as_needed=yes
29215 gcc_cv_ld_as_needed_option="-z ignore"
29216 gcc_cv_ld_no_as_needed_option="-z record"
29217 ;;
29218 esac
29219 fi
29220 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
29221 # dl_iterate_phdr, i.e. since Solaris 11.
29222 case "$target" in
29223 *-*-solaris2.1[1-9]*)
29224 case "$target" in
29225 i?86-*-* | x86_64-*-*)
29226 if echo "$ld_ver" | grep GNU > /dev/null; then
29227 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
29228 gcc_cv_ld_as_needed=no
29229 fi
29230 ;;
29231 esac
29232 ;;
29233 *-*-solaris2*)
29234 gcc_cv_ld_as_needed=no
29235 ;;
29236 esac
29237
29238 fi
29239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
29240 $as_echo "$gcc_cv_ld_as_needed" >&6; }
29241 if test x"$gcc_cv_ld_as_needed" = xyes; then
29242
29243 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
29244
29245
29246 cat >>confdefs.h <<_ACEOF
29247 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
29248 _ACEOF
29249
29250
29251 cat >>confdefs.h <<_ACEOF
29252 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
29253 _ACEOF
29254
29255 fi
29256
29257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
29258 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
29259 saved_LDFLAGS="$LDFLAGS"
29260 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
29261 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
29262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29263 /* end confdefs.h. */
29264 int main(void) {return 0;}
29265 _ACEOF
29266 if ac_fn_cxx_try_link "$LINENO"; then :
29267 gcc_cv_ld_clearcap=yes; break
29268 else
29269 gcc_cv_ld_clearcap=no
29270 fi
29271 rm -f core conftest.err conftest.$ac_objext \
29272 conftest$ac_exeext conftest.$ac_ext
29273 done
29274 LDFLAGS="$saved_LDFLAGS"
29275 if test "x$gcc_cv_ld_clearcap" = xyes; then
29276
29277 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29278
29279 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29280
29281 fi
29282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29283 $as_echo "$gcc_cv_ld_clearcap" >&6; }
29284
29285 case "$target" in
29286 powerpc*-*-*)
29287 case "$target" in
29288 *le-*-linux*)
29289 emul_name="-melf32lppc"
29290 ;;
29291 *)
29292 emul_name="-melf32ppc"
29293 ;;
29294 esac
29295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29296 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29297 if ${gcc_cv_ld_ppc_attr+:} false; then :
29298 $as_echo_n "(cached) " >&6
29299 else
29300 gcc_cv_ld_ppc_attr=no
29301 if test x"$ld_is_gold" = xyes; then
29302 gcc_cv_ld_ppc_attr=yes
29303 elif test $in_tree_ld = yes ; then
29304 if test "$gcc_cv_gld_major_version" -eq 2 \
29305 -a "$gcc_cv_gld_minor_version" -ge 28 \
29306 -o "$gcc_cv_gld_major_version" -gt 2; then
29307 gcc_cv_ld_ppc_attr=yes
29308 fi
29309 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29310 # check that merging the long double .gnu_attribute doesn't warn
29311 cat > conftest1.s <<EOF
29312 .gnu_attribute 4,1
29313 EOF
29314 cat > conftest2.s <<EOF
29315 .gnu_attribute 4,9
29316 EOF
29317 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29318 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29319 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
29320 && test ! -s conftest.err; then
29321 gcc_cv_ld_ppc_attr=yes
29322 fi
29323 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29324 fi
29325
29326 fi
29327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29328 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29329 if test x$gcc_cv_ld_ppc_attr = xyes; then
29330
29331 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29332
29333 fi
29334 ;;
29335 esac
29336
29337 case "$target:$tm_file" in
29338 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
29339 case "$target" in
29340 *le-*-linux*)
29341 emul_name="-melf64lppc"
29342 ;;
29343 *-*-linux*)
29344 emul_name="-melf64ppc"
29345 ;;
29346 *-*-freebsd*)
29347 emul_name="-melf64ppc_fbsd"
29348 ;;
29349 esac
29350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29351 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29352 if ${gcc_cv_ld_no_dot_syms+:} false; then :
29353 $as_echo_n "(cached) " >&6
29354 else
29355 gcc_cv_ld_no_dot_syms=no
29356 if test x"$ld_is_gold" = xyes; then
29357 gcc_cv_ld_no_dot_syms=yes
29358 elif test $in_tree_ld = yes ; then
29359 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
29360 gcc_cv_ld_no_dot_syms=yes
29361 fi
29362 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29363 cat > conftest1.s <<EOF
29364 .text
29365 bl .foo
29366 EOF
29367 cat > conftest2.s <<EOF
29368 .section ".opd","aw"
29369 .align 3
29370 .globl foo
29371 .type foo,@function
29372 foo:
29373 .quad .LEfoo,.TOC.@tocbase,0
29374 .text
29375 .LEfoo:
29376 blr
29377 .size foo,.-.LEfoo
29378 EOF
29379 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29380 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29381 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
29382 gcc_cv_ld_no_dot_syms=yes
29383 fi
29384 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29385 fi
29386
29387 fi
29388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29389 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29390 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
29391
29392 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29393
29394 fi
29395
29396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29397 $as_echo_n "checking linker large toc support... " >&6; }
29398 if ${gcc_cv_ld_large_toc+:} false; then :
29399 $as_echo_n "(cached) " >&6
29400 else
29401 gcc_cv_ld_large_toc=no
29402 if test x"$ld_is_gold" = xyes; then
29403 gcc_cv_ld_large_toc=yes
29404 elif test $in_tree_ld = yes ; then
29405 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
29406 gcc_cv_ld_large_toc=yes
29407 fi
29408 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29409 cat > conftest.s <<EOF
29410 .section ".tbss","awT",@nobits
29411 .align 3
29412 ie0: .space 8
29413 .global _start
29414 .text
29415 _start:
29416 addis 9,13,ie0@got@tprel@ha
29417 ld 9,ie0@got@tprel@l(9)
29418 EOF
29419 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29420 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
29421 gcc_cv_ld_large_toc=yes
29422 fi
29423 rm -f conftest conftest.o conftest.s
29424 fi
29425
29426 fi
29427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29428 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29429 if test x"$gcc_cv_ld_large_toc" = xyes; then
29430
29431 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29432
29433 fi
29434
29435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29436 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29437 if ${gcc_cv_ld_toc_align+:} false; then :
29438 $as_echo_n "(cached) " >&6
29439 else
29440 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
29441 cat > conftest.s <<EOF
29442 .global _start
29443 .text
29444 _start:
29445 addis 9,2,x@got@ha
29446 .section .data.rel.ro,"aw",@progbits
29447 .p2align 16
29448 .space 32768
29449 x: .quad .TOC.
29450 EOF
29451 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29452 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
29453 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)) }'`
29454 fi
29455 rm -f conftest conftest.o conftest.s
29456 fi
29457
29458 fi
29459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29460 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29461 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29462
29463 cat >>confdefs.h <<_ACEOF
29464 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29465 _ACEOF
29466
29467 fi
29468 ;;
29469 esac
29470
29471 case "$target" in
29472 *-*-aix*)
29473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29474 $as_echo_n "checking linker large toc support... " >&6; }
29475 if ${gcc_cv_ld_large_toc+:} false; then :
29476 $as_echo_n "(cached) " >&6
29477 else
29478 gcc_cv_ld_large_toc=no
29479 if test x$gcc_cv_as != x ; then
29480 cat > conftest.s <<EOF
29481 .toc
29482 LC..1:
29483 .tc a[TC],a[RW]
29484 .extern a[RW]
29485 .csect .text[PR]
29486 .largetoctest:
29487 addis 9,LC..1@u(2)
29488 ld 3,LC..1@l(9)
29489 EOF
29490 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29491 gcc_cv_ld_large_toc=yes
29492 fi
29493 rm -f conftest conftest.o conftest.s
29494 fi
29495
29496 fi
29497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29498 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29499 if test x"$gcc_cv_ld_large_toc" = xyes; then
29500
29501 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29502
29503 fi
29504 ;;
29505 esac
29506
29507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29508 $as_echo_n "checking linker --build-id support... " >&6; }
29509 if ${gcc_cv_ld_buildid+:} false; then :
29510 $as_echo_n "(cached) " >&6
29511 else
29512 gcc_cv_ld_buildid=no
29513 if test $in_tree_ld = yes ; then
29514 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29515 "$gcc_cv_gld_minor_version" -ge 18 -o \
29516 "$gcc_cv_gld_major_version" -gt 2 \
29517 && test $in_tree_ld_is_elf = yes; then
29518 gcc_cv_ld_buildid=yes
29519 fi
29520 elif test x$gcc_cv_ld != x; then
29521 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29522 gcc_cv_ld_buildid=yes
29523 fi
29524 fi
29525 fi
29526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29527 $as_echo "$gcc_cv_ld_buildid" >&6; }
29528 if test x"$gcc_cv_ld_buildid" = xyes; then
29529
29530 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29531
29532 fi
29533
29534 # Check whether --enable-linker-build-id was given.
29535 if test "${enable_linker_build_id+set}" = set; then :
29536 enableval=$enable_linker_build_id;
29537 else
29538 enable_linker_build_id=no
29539 fi
29540
29541
29542 if test x"$enable_linker_build_id" = xyes; then
29543 if test x"$gcc_cv_ld_buildid" = xyes; then
29544
29545 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29546
29547 else
29548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29549 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29550 fi
29551 fi
29552
29553 # In binutils 2.21, GNU ld gained support for new emulations fully
29554 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29556 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29557 if ${gcc_cv_ld_sol2_emulation+:} false; then :
29558 $as_echo_n "(cached) " >&6
29559 else
29560 gcc_cv_ld_sol2_emulation=no
29561 if test $in_tree_ld = yes ; then
29562 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29563 "$gcc_cv_gld_minor_version" -ge 21 -o \
29564 "$gcc_cv_gld_major_version" -gt 2 \
29565 && test $in_tree_ld_is_elf = yes; then
29566 gcc_cv_ld_sol2_emulation=yes
29567 fi
29568 elif test x$gcc_cv_ld != x; then
29569 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29570 grep _sol2 > /dev/null; then
29571 gcc_cv_ld_sol2_emulation=yes
29572 fi
29573 fi
29574 fi
29575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29576 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29577 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29578
29579 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29580
29581 fi
29582
29583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29584 $as_echo_n "checking linker --sysroot support... " >&6; }
29585 if ${gcc_cv_ld_sysroot+:} false; then :
29586 $as_echo_n "(cached) " >&6
29587 else
29588 gcc_cv_ld_sysroot=no
29589 if test $in_tree_ld = yes ; then
29590 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
29591 gcc_cv_ld_sysroot=yes
29592 fi
29593 elif test x$gcc_cv_ld != x; then
29594 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29595 gcc_cv_ld_sysroot=yes
29596 fi
29597 fi
29598 fi
29599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29600 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29601 if test x"$gcc_cv_ld_sysroot" = xyes; then
29602
29603 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29604
29605 fi
29606
29607 case $target in
29608 *-*-solaris2*)
29609 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29611 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29612 if ${gcc_cv_solaris_crts+:} false; then :
29613 $as_echo_n "(cached) " >&6
29614 else
29615 gcc_cv_solaris_crts=no
29616 if test x$host != x$target; then
29617 if test "x$with_sysroot" = xyes; then
29618 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29619 else
29620 target_sysroot="${with_sysroot}"
29621 fi
29622 fi
29623 target_libdir="$target_sysroot/usr/lib"
29624 # At the time they were added, gcrt1.o became a symlink for backwards
29625 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29626 case $target in
29627 i?86-*-solaris2* | x86_64-*-solaris2*)
29628 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29629 ;;
29630 sparc*-*-solaris2*)
29631 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29632 ;;
29633 esac
29634 fi
29635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29636 $as_echo "$gcc_cv_solaris_crts" >&6; }
29637 ;;
29638 esac
29639 if test x$gcc_cv_solaris_crts = xyes; then
29640
29641 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29642
29643 fi
29644
29645 # Check whether --enable-libssp was given.
29646 if test "${enable_libssp+set}" = set; then :
29647 enableval=$enable_libssp; case "${enableval}" in
29648 yes|no)
29649 ;;
29650 *)
29651 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
29652 ;;
29653 esac
29654 fi
29655
29656
29657 # Test for stack protector support in target C library.
29658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29659 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29660 if ${gcc_cv_libc_provides_ssp+:} false; then :
29661 $as_echo_n "(cached) " >&6
29662 else
29663 gcc_cv_libc_provides_ssp=no
29664 if test "x$enable_libssp" = "xno"; then
29665 gcc_cv_libc_provides_ssp=yes
29666 elif test "x$enable_libssp" = "xyes"; then
29667 gcc_cv_libc_provides_ssp=no
29668 else
29669 case "$target" in
29670 *-*-musl*)
29671 # All versions of musl provide stack protector
29672 gcc_cv_libc_provides_ssp=yes;;
29673 *-*-linux* | *-*-kfreebsd*-gnu)
29674 # glibc 2.4 and later provides __stack_chk_fail and
29675 # either __stack_chk_guard, or TLS access to stack guard canary.
29676
29677 if test $glibc_version_major -gt 2 \
29678 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29679 gcc_cv_libc_provides_ssp=yes
29680 else
29681
29682 if test -f $target_header_dir/features.h \
29683 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29684 $target_header_dir/features.h > /dev/null; then
29685 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29686 $target_header_dir/features.h > /dev/null && \
29687 test -f $target_header_dir/bits/uClibc_config.h && \
29688 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29689 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29690 gcc_cv_libc_provides_ssp=yes
29691 fi
29692 # all versions of Bionic support stack protector
29693 elif test -f $target_header_dir/sys/cdefs.h \
29694 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29695 $target_header_dir/sys/cdefs.h > /dev/null; then
29696 gcc_cv_libc_provides_ssp=yes
29697 fi
29698 fi
29699 ;;
29700 *-*-gnu*)
29701 # Avoid complicated tests (see
29702 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29703 # simply assert that glibc does provide this, which is true for all
29704 # realistically usable GNU/Hurd configurations.
29705 # All supported versions of musl provide it as well
29706 gcc_cv_libc_provides_ssp=yes;;
29707 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29708 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29709 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
29710 gcc_cv_libc_provides_ssp=yes
29711 else
29712 echo "no __stack_chk_fail on this target"
29713 fi
29714
29715 ;;
29716 *) gcc_cv_libc_provides_ssp=no ;;
29717 esac
29718 fi
29719 fi
29720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29721 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29722
29723 if test x$gcc_cv_libc_provides_ssp = xyes; then
29724
29725 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29726
29727 fi
29728
29729 # Check whether --enable-default-ssp was given.
29730 # Check whether --enable-default-ssp was given.
29731 if test "${enable_default_ssp+set}" = set; then :
29732 enableval=$enable_default_ssp;
29733 if test x$gcc_cv_libc_provides_ssp = xyes; then
29734 case "$target" in
29735 ia64*-*-*) enable_default_ssp=no ;;
29736 *) enable_default_ssp=$enableval ;;
29737 esac
29738 else
29739 enable_default_ssp=no
29740 fi
29741 else
29742 enable_default_ssp=no
29743 fi
29744
29745 if test x$enable_default_ssp = xyes ; then
29746
29747 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29748
29749 fi
29750
29751
29752 # Test for <sys/sdt.h> on the target.
29753
29754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29755 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29756 have_sys_sdt_h=no
29757 if test -f $target_header_dir/sys/sdt.h; then
29758 have_sys_sdt_h=yes
29759
29760 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29761
29762 fi
29763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29764 $as_echo "$have_sys_sdt_h" >&6; }
29765
29766 # Check if TFmode long double should be used by default or not.
29767 # Some glibc targets used DFmode long double, but with glibc 2.4
29768 # and later they can use TFmode.
29769 case "$target" in
29770 powerpc*-*-linux* | \
29771 sparc*-*-linux* | \
29772 s390*-*-linux* | \
29773 alpha*-*-linux*)
29774
29775 # Check whether --with-long-double-128 was given.
29776 if test "${with_long_double_128+set}" = set; then :
29777 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29778 else
29779
29780 case "$target" in
29781 s390*-*-linux-musl*)
29782 gcc_cv_target_ldbl128=yes
29783 ;;
29784 powerpc*-*-linux-musl*)
29785 gcc_cv_target_ldbl128=no
29786 ;;
29787 *)
29788
29789 if test $glibc_version_major -gt 2 \
29790 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29791 gcc_cv_target_ldbl128=yes
29792 else
29793
29794 gcc_cv_target_ldbl128=no
29795 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29796 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29797 && gcc_cv_target_ldbl128=yes
29798
29799 fi
29800
29801 ;;
29802 esac
29803
29804 fi
29805
29806 ;;
29807 esac
29808 if test x$gcc_cv_target_ldbl128 = xyes; then
29809
29810 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29811
29812 fi
29813
29814 # Check if TFmode long double target should use the IBM extended double or IEEE
29815 # 128-bit floating point formats if long doubles are 128-bits long. The long
29816 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29817 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29818 # libgcc.
29819
29820 # Check whether --with-long-double-format was given.
29821 if test "${with_long_double_format+set}" = set; then :
29822 withval=$with_long_double_format;
29823 case "$target:$with_long_double_format" in
29824 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29825 :
29826 ;;
29827 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29828 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29829 case "$with_cpu" in
29830 power7 | power8 | power9 | power1*)
29831 :
29832 ;;
29833 *)
29834 as_fn_error $? "Configuration option --with-long-double-format is only \
29835 supported if the default cpu is power7 or newer" "$LINENO" 5
29836 with_long_double_format=""
29837 ;;
29838 esac
29839 ;;
29840 xpowerpc64*-*-linux*:*)
29841 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29842 with_long_double_format=""
29843 ;;
29844 *)
29845 as_fn_error $? "Configure option --with-long-double-format is only supported \
29846 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29847 with_long_double_format=""
29848 ;;
29849 esac
29850 fi
29851
29852
29853 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29854 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29855 gcc_cv_libc_provides_hwcap_in_tcb=no
29856 case "$target" in
29857 powerpc*-*-linux*)
29858
29859 if test $glibc_version_major -gt 2 \
29860 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29861 gcc_cv_libc_provides_hwcap_in_tcb=yes
29862 fi
29863 ;;
29864 esac
29865 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29866
29867 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29868
29869 fi
29870
29871 # Check if the target LIBC handles PT_GNU_STACK.
29872 gcc_cv_libc_gnustack=unknown
29873 case "$target" in
29874 mips*-*-linux*)
29875
29876 if test $glibc_version_major -gt 2 \
29877 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
29878 gcc_cv_libc_gnustack=yes
29879 fi
29880 ;;
29881 esac
29882 if test x$gcc_cv_libc_gnustack = xyes; then
29883
29884 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
29885
29886 fi
29887
29888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29889 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29890 gcc_cv_target_dl_iterate_phdr=unknown
29891 case "$target" in
29892 *-*-solaris2*)
29893 # <link.h> needs both a dl_iterate_phdr declaration and support for
29894 # compilation with largefile support.
29895 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29896 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29897 gcc_cv_target_dl_iterate_phdr=yes
29898 else
29899 gcc_cv_target_dl_iterate_phdr=no
29900 fi
29901 ;;
29902 *-*-dragonfly* | *-*-freebsd*)
29903 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29904 gcc_cv_target_dl_iterate_phdr=yes
29905 else
29906 gcc_cv_target_dl_iterate_phdr=no
29907 fi
29908 ;;
29909 *-linux-musl*)
29910 gcc_cv_target_dl_iterate_phdr=yes
29911 ;;
29912 esac
29913
29914 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29915
29916 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29917
29918 fi
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29920 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29921
29922 # We no longer support different GC mechanisms. Emit an error if
29923 # the user configures with --with-gc.
29924
29925 # Check whether --with-gc was given.
29926 if test "${with_gc+set}" = set; then :
29927 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29928 fi
29929
29930
29931 # Libraries to use on the host. This will normally be set by the top
29932 # level Makefile. Here we simply capture the value for our Makefile.
29933 if test -z "${HOST_LIBS+set}"; then
29934 HOST_LIBS=
29935 fi
29936
29937
29938 # Use the system's zlib library.
29939
29940 # Use the system's zlib library.
29941 zlibdir="-L\$(top_builddir)/../zlib"
29942 zlibinc="-I\$(top_srcdir)/../zlib"
29943
29944 # Check whether --with-system-zlib was given.
29945 if test "${with_system_zlib+set}" = set; then :
29946 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29947 zlibdir=
29948 zlibinc=
29949 fi
29950
29951 fi
29952
29953
29954
29955
29956
29957
29958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29959 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29960 # Check whether --enable-maintainer-mode was given.
29961 if test "${enable_maintainer_mode+set}" = set; then :
29962 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29963 else
29964 maintainer_mode=no
29965 fi
29966
29967
29968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29969 $as_echo "$maintainer_mode" >&6; }
29970
29971 if test "$maintainer_mode" = "yes"; then
29972 MAINT=''
29973 else
29974 MAINT='#'
29975 fi
29976
29977
29978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29979 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29980 # Check whether --enable-link-mutex was given.
29981 if test "${enable_link_mutex+set}" = set; then :
29982 enableval=$enable_link_mutex; do_link_mutex=$enableval
29983 else
29984 do_link_mutex=no
29985 fi
29986
29987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29988 $as_echo "$do_link_mutex" >&6; }
29989
29990 if test "$do_link_mutex" = "yes"; then
29991 DO_LINK_MUTEX=true
29992 else
29993 DO_LINK_MUTEX=false
29994 fi
29995
29996
29997 # --------------
29998 # Language hooks
29999 # --------------
30000
30001 # Make empty files to contain the specs and options for each language.
30002 # Then add #include lines to for a compiler that has specs and/or options.
30003
30004 subdirs=
30005 lang_opt_files=
30006 lang_specs_files=
30007 lang_tree_files=
30008 # These (without "all_") are set in each config-lang.in.
30009 # `language' must be a single word so is spelled singularly.
30010 all_languages=
30011 all_compilers=
30012 all_outputs='Makefile'
30013 # List of language configure and makefile fragments.
30014 all_lang_configurefrags=
30015 all_lang_makefrags=
30016 # Additional files for gengtype
30017 all_gtfiles="$target_gtfiles"
30018
30019 # These are the languages that are set in --enable-languages,
30020 # and are available in the GCC tree.
30021 all_selected_languages=
30022
30023 # Add the language fragments.
30024 # Languages are added via two mechanisms. Some information must be
30025 # recorded in makefile variables, these are defined in config-lang.in.
30026 # We accumulate them and plug them into the main Makefile.
30027 # The other mechanism is a set of hooks for each of the main targets
30028 # like `clean', `install', etc.
30029
30030 language_hooks="Make-hooks"
30031
30032 for lang in ${srcdir}/*/config-lang.in
30033 do
30034 test "$lang" = "${srcdir}/*/config-lang.in" && continue
30035
30036 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
30037 if test "x$lang_alias" = x
30038 then
30039 echo "$lang doesn't set \$language." 1>&2
30040 exit 1
30041 fi
30042 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
30043 subdirs="$subdirs $subdir"
30044
30045 # $gcc_subdir is where the gcc integration files are to be found
30046 # for a language, both for internal compiler purposes (compiler
30047 # sources implementing front-end to GCC tree converters), and for
30048 # build infrastructure purposes (Make-lang.in, etc.)
30049 #
30050 # This will be <subdir> (relative to $srcdir) if a line like
30051 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
30052 # is found in <langdir>/config-lang.in, and will remain <langdir>
30053 # otherwise.
30054 #
30055 # Except for the language alias (fetched above), the regular
30056 # "config-lang.in" contents are always retrieved from $gcc_subdir,
30057 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
30058 # only this and the language alias.
30059
30060 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
30061 if [ "$gcc_subdir" = "" ]; then
30062 gcc_subdir="$subdir"
30063 fi
30064
30065 case ",$enable_languages," in
30066 *,$lang_alias,*)
30067 all_selected_languages="$all_selected_languages $lang_alias"
30068 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
30069 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
30070 fi
30071 ;;
30072 esac
30073
30074 language=
30075 boot_language=
30076 compilers=
30077 outputs=
30078 gtfiles=
30079 subdir_requires=
30080 . ${srcdir}/$gcc_subdir/config-lang.in
30081 if test "x$language" = x
30082 then
30083 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
30084 exit 1
30085 fi
30086
30087 ok=:
30088 case ",$enable_languages," in
30089 *,$lang_alias,*) ;;
30090 *)
30091 for i in $subdir_requires; do
30092 test -f "${srcdir}/$i/config-lang.in" && continue
30093 ok=false
30094 break
30095 done
30096 ;;
30097 esac
30098 $ok || continue
30099
30100 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
30101 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
30102 if test -f $srcdir/$gcc_subdir/lang.opt; then
30103 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
30104 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
30105 fi
30106 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
30107 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
30108 fi
30109 all_languages="$all_languages $language"
30110 all_compilers="$all_compilers $compilers"
30111 all_outputs="$all_outputs $outputs"
30112 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
30113 case ",$enable_languages," in
30114 *,lto,*)
30115
30116 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
30117
30118 enable_lto=yes
30119
30120 ;;
30121 *) ;;
30122 esac
30123 done
30124
30125 check_languages=
30126 for language in $all_selected_languages
30127 do
30128 check_languages="$check_languages check-$language"
30129 done
30130
30131 selftest_languages=
30132 for language in $all_selected_languages
30133 do
30134 selftest_languages="$selftest_languages selftest-$language"
30135 done
30136
30137 # We link each language in with a set of hooks, reached indirectly via
30138 # lang.${target}. Only do so for selected languages.
30139
30140 rm -f Make-hooks
30141 touch Make-hooks
30142 target_list="all.cross start.encap rest.encap tags \
30143 install-common install-man install-info install-pdf install-html dvi \
30144 pdf html uninstall info man srcextra srcman srcinfo \
30145 mostlyclean clean distclean maintainer-clean install-plugin"
30146
30147 for t in $target_list
30148 do
30149 x=
30150 for lang in $all_selected_languages
30151 do
30152 x="$x $lang.$t"
30153 done
30154 echo "lang.$t: $x" >> Make-hooks
30155 done
30156
30157 # --------
30158 # Option include files
30159 # --------
30160
30161 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
30162 option_includes="option-includes.mk"
30163
30164
30165 # --------
30166 # UNSORTED
30167 # --------
30168
30169 # Create .gdbinit.
30170
30171 echo "dir ." > .gdbinit
30172 echo "dir ${srcdir}" >> .gdbinit
30173 if test x$gdb_needs_out_file_path = xyes
30174 then
30175 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
30176 fi
30177 if test "x$subdirs" != x; then
30178 for s in $subdirs
30179 do
30180 echo "dir ${srcdir}/$s" >> .gdbinit
30181 done
30182 fi
30183 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
30184 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
30185
30186 # Put a breakpoint on __asan_report_error to help with debugging buffer
30187 # overflow.
30188 case "$CFLAGS" in
30189 *-fsanitize=address*)
30190 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
30191 ;;
30192 esac
30193
30194 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
30195
30196
30197
30198 # Find a directory in which to install a shared libgcc.
30199
30200 # Check whether --enable-version-specific-runtime-libs was given.
30201 if test "${enable_version_specific_runtime_libs+set}" = set; then :
30202 enableval=$enable_version_specific_runtime_libs;
30203 fi
30204
30205
30206 # Substitute configuration variables
30207
30208
30209
30210
30211
30212
30213
30214
30215
30216
30217
30218
30219
30220
30221
30222
30223
30224
30225
30226
30227
30228
30229
30230
30231
30232
30233
30234
30235
30236
30237
30238
30239
30240
30241
30242
30243
30244
30245
30246
30247
30248
30249
30250
30251
30252
30253
30254
30255
30256
30257
30258
30259
30260
30261
30262
30263
30264
30265
30266
30267
30268
30269
30270
30271
30272
30273
30274 # Echo link setup.
30275 if test x${build} = x${host} ; then
30276 if test x${host} = x${target} ; then
30277 echo "Links are now set up to build a native compiler for ${target}." 1>&2
30278 else
30279 echo "Links are now set up to build a cross-compiler" 1>&2
30280 echo " from ${host} to ${target}." 1>&2
30281 fi
30282 else
30283 if test x${host} = x${target} ; then
30284 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
30285 echo " for ${target}." 1>&2
30286 else
30287 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
30288 echo " from ${host} to ${target}." 1>&2
30289 fi
30290 fi
30291
30292
30293
30294
30295
30296
30297 if test "x${ISLLIBS}" != "x" ; then
30298
30299 $as_echo "#define HAVE_isl 1" >>confdefs.h
30300
30301 fi
30302
30303 # Check for plugin support
30304 # Check whether --enable-plugin was given.
30305 if test "${enable_plugin+set}" = set; then :
30306 enableval=$enable_plugin; enable_plugin=$enableval
30307 else
30308 enable_plugin=yes; default_plugin=yes
30309 fi
30310
30311
30312 pluginlibs=
30313 plugin_check=yes
30314
30315 case "${host}" in
30316 *-*-mingw*)
30317 # Since plugin support under MinGW is not as straightforward as on
30318 # other platforms (e.g., we have to link import library, etc), we
30319 # only enable it if explicitly requested.
30320 if test x"$default_plugin" = x"yes"; then
30321 enable_plugin=no
30322 elif test x"$enable_plugin" = x"yes"; then
30323 # Use make's target variable to derive import library name.
30324 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30325 plugin_check=no
30326 fi
30327 ;;
30328 *-*-darwin*)
30329 if test x$build = x$host; then
30330 export_sym_check="nm${exeext} -g"
30331 elif test x$host = x$target; then
30332 export_sym_check="$gcc_cv_nm -g"
30333 else
30334 export_sym_check=
30335 fi
30336 ;;
30337 *)
30338 if test x$build = x$host; then
30339 export_sym_check="objdump${exeext} -T"
30340 elif test x$host = x$target; then
30341 export_sym_check="$gcc_cv_objdump -T"
30342 else
30343 export_sym_check=
30344 fi
30345 ;;
30346 esac
30347
30348 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
30349
30350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30351 $as_echo_n "checking for exported symbols... " >&6; }
30352 if test "x$export_sym_check" != x; then
30353 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30354 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30355 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30356 : # No need to use a flag
30357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30358 $as_echo "yes" >&6; }
30359 else
30360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30361 $as_echo "yes" >&6; }
30362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30363 $as_echo_n "checking for -rdynamic... " >&6; }
30364 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30365 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30366 plugin_rdynamic=yes
30367 pluginlibs="-rdynamic"
30368 else
30369 plugin_rdynamic=no
30370 enable_plugin=no
30371 fi
30372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30373 $as_echo "$plugin_rdynamic" >&6; }
30374 fi
30375 else
30376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30377 $as_echo "unable to check" >&6; }
30378 fi
30379
30380 # Check -ldl
30381 saved_LIBS="$LIBS"
30382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30383 $as_echo_n "checking for library containing dlopen... " >&6; }
30384 if ${ac_cv_search_dlopen+:} false; then :
30385 $as_echo_n "(cached) " >&6
30386 else
30387 ac_func_search_save_LIBS=$LIBS
30388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30389 /* end confdefs.h. */
30390
30391 /* Override any GCC internal prototype to avoid an error.
30392 Use char because int might match the return type of a GCC
30393 builtin and then its argument prototype would still apply. */
30394 #ifdef __cplusplus
30395 extern "C"
30396 #endif
30397 char dlopen ();
30398 int
30399 main ()
30400 {
30401 return dlopen ();
30402 ;
30403 return 0;
30404 }
30405 _ACEOF
30406 for ac_lib in '' dl; do
30407 if test -z "$ac_lib"; then
30408 ac_res="none required"
30409 else
30410 ac_res=-l$ac_lib
30411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30412 fi
30413 if ac_fn_cxx_try_link "$LINENO"; then :
30414 ac_cv_search_dlopen=$ac_res
30415 fi
30416 rm -f core conftest.err conftest.$ac_objext \
30417 conftest$ac_exeext
30418 if ${ac_cv_search_dlopen+:} false; then :
30419 break
30420 fi
30421 done
30422 if ${ac_cv_search_dlopen+:} false; then :
30423
30424 else
30425 ac_cv_search_dlopen=no
30426 fi
30427 rm conftest.$ac_ext
30428 LIBS=$ac_func_search_save_LIBS
30429 fi
30430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30431 $as_echo "$ac_cv_search_dlopen" >&6; }
30432 ac_res=$ac_cv_search_dlopen
30433 if test "$ac_res" != no; then :
30434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30435
30436 fi
30437
30438 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
30439 pluginlibs="$pluginlibs -ldl"
30440 fi
30441 LIBS="$saved_LIBS"
30442
30443 # Check that we can build shared objects with -fPIC -shared
30444 saved_LDFLAGS="$LDFLAGS"
30445 saved_CFLAGS="$CFLAGS"
30446 case "${host}" in
30447 *-*-darwin*)
30448 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30449 CFLAGS="$CFLAGS -fPIC"
30450 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
30451 ;;
30452 *)
30453 CFLAGS="$CFLAGS -fPIC"
30454 LDFLAGS="$LDFLAGS -fPIC -shared"
30455 ;;
30456 esac
30457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30458 $as_echo_n "checking for -fPIC -shared... " >&6; }
30459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30460 /* end confdefs.h. */
30461 extern int X;
30462 int
30463 main ()
30464 {
30465 return X == 0;
30466 ;
30467 return 0;
30468 }
30469 _ACEOF
30470 if ac_fn_cxx_try_link "$LINENO"; then :
30471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30472 $as_echo "yes" >&6; }; have_pic_shared=yes
30473 else
30474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30475 $as_echo "no" >&6; }; have_pic_shared=no
30476 fi
30477 rm -f core conftest.err conftest.$ac_objext \
30478 conftest$ac_exeext conftest.$ac_ext
30479 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
30480 pluginlibs=
30481 enable_plugin=no
30482 fi
30483 LDFLAGS="$saved_LDFLAGS"
30484 CFLAGS="$saved_CFLAGS"
30485
30486 # If plugin support had been requested but not available, fail.
30487 if test x"$enable_plugin" = x"no" ; then
30488 if test x"$default_plugin" != x"yes"; then
30489 as_fn_error $? "
30490 Building GCC with plugin support requires a host that supports
30491 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30492 fi
30493 fi
30494 fi
30495
30496
30497
30498 if test x"$enable_plugin" = x"yes"; then
30499
30500 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30501
30502 fi
30503
30504
30505 # Enable --enable-host-shared
30506 # Check whether --enable-host-shared was given.
30507 if test "${enable_host_shared+set}" = set; then :
30508 enableval=$enable_host_shared; PICFLAG=-fPIC
30509 else
30510 PICFLAG=
30511 fi
30512
30513
30514
30515
30516
30517 # Check whether --enable-libquadmath-support was given.
30518 if test "${enable_libquadmath_support+set}" = set; then :
30519 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30520 else
30521 ENABLE_LIBQUADMATH_SUPPORT=yes
30522 fi
30523
30524 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30525
30526 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30527
30528 fi
30529
30530
30531 # Specify what hash style to use by default.
30532
30533 # Check whether --with-linker-hash-style was given.
30534 if test "${with_linker_hash_style+set}" = set; then :
30535 withval=$with_linker_hash_style; case x"$withval" in
30536 xsysv)
30537 LINKER_HASH_STYLE=sysv
30538 ;;
30539 xgnu)
30540 LINKER_HASH_STYLE=gnu
30541 ;;
30542 xboth)
30543 LINKER_HASH_STYLE=both
30544 ;;
30545 *)
30546 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30547 ;;
30548 esac
30549 else
30550 LINKER_HASH_STYLE=''
30551 fi
30552
30553 if test x"${LINKER_HASH_STYLE}" != x; then
30554
30555 cat >>confdefs.h <<_ACEOF
30556 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30557 _ACEOF
30558
30559 fi
30560
30561 # Specify what should be the default of -fdiagnostics-color option.
30562
30563 # Check whether --with-diagnostics-color was given.
30564 if test "${with_diagnostics_color+set}" = set; then :
30565 withval=$with_diagnostics_color; case x"$withval" in
30566 xnever)
30567 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30568 ;;
30569 xauto)
30570 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30571 ;;
30572 xauto-if-env)
30573 DIAGNOSTICS_COLOR_DEFAULT=-1
30574 ;;
30575 xalways)
30576 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30577 ;;
30578 *)
30579 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30580 ;;
30581 esac
30582 else
30583 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30584 fi
30585
30586
30587 cat >>confdefs.h <<_ACEOF
30588 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30589 _ACEOF
30590
30591
30592 # Specify what should be the default of -fdiagnostics-urls option.
30593
30594 # Check whether --with-diagnostics-urls was given.
30595 if test "${with_diagnostics_urls+set}" = set; then :
30596 withval=$with_diagnostics_urls; case x"$withval" in
30597 xnever)
30598 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
30599 ;;
30600 xauto)
30601 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
30602 ;;
30603 xauto-if-env)
30604 DIAGNOSTICS_URLS_DEFAULT=-1
30605 ;;
30606 xalways)
30607 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
30608 ;;
30609 *)
30610 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
30611 ;;
30612 esac
30613 else
30614 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
30615 fi
30616
30617
30618 cat >>confdefs.h <<_ACEOF
30619 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
30620 _ACEOF
30621
30622
30623 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30624 # of jit/jit-playback.c.
30625 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30626 echo "gcc_driver_version: ${gcc_driver_version}"
30627 cat > gcc-driver-name.h <<EOF
30628 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30629 EOF
30630
30631 # Check whether --enable-default-pie was given.
30632 # Check whether --enable-default-pie was given.
30633 if test "${enable_default_pie+set}" = set; then :
30634 enableval=$enable_default_pie; enable_default_pie=$enableval
30635 else
30636 enable_default_pie=no
30637 fi
30638
30639 if test x$enable_default_pie = xyes ; then
30640
30641 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30642
30643 fi
30644
30645
30646 # Check if -fno-PIE works.
30647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30648 $as_echo_n "checking for -fno-PIE option... " >&6; }
30649 if ${gcc_cv_c_no_fpie+:} false; then :
30650 $as_echo_n "(cached) " >&6
30651 else
30652 saved_CXXFLAGS="$CXXFLAGS"
30653 CXXFLAGS="$CXXFLAGS -fno-PIE"
30654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30655 /* end confdefs.h. */
30656 int main(void) {return 0;}
30657 _ACEOF
30658 if ac_fn_cxx_try_compile "$LINENO"; then :
30659 gcc_cv_c_no_fpie=yes
30660 else
30661 gcc_cv_c_no_fpie=no
30662 fi
30663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30664 CXXFLAGS="$saved_CXXFLAGS"
30665 fi
30666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30667 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30668 if test "$gcc_cv_c_no_fpie" = "yes"; then
30669 NO_PIE_CFLAGS="-fno-PIE"
30670 fi
30671
30672
30673 # Check if -no-pie works.
30674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30675 $as_echo_n "checking for -no-pie option... " >&6; }
30676 if ${gcc_cv_no_pie+:} false; then :
30677 $as_echo_n "(cached) " >&6
30678 else
30679 saved_LDFLAGS="$LDFLAGS"
30680 LDFLAGS="$LDFLAGS -no-pie"
30681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30682 /* end confdefs.h. */
30683 int main(void) {return 0;}
30684 _ACEOF
30685 if ac_fn_cxx_try_link "$LINENO"; then :
30686 gcc_cv_no_pie=yes
30687 else
30688 gcc_cv_no_pie=no
30689 fi
30690 rm -f core conftest.err conftest.$ac_objext \
30691 conftest$ac_exeext conftest.$ac_ext
30692 LDFLAGS="$saved_LDFLAGS"
30693 fi
30694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30695 $as_echo "$gcc_cv_no_pie" >&6; }
30696 if test "$gcc_cv_no_pie" = "yes"; then
30697 NO_PIE_FLAG="-no-pie"
30698 fi
30699
30700
30701 # Check linker supports '-z bndplt'
30702 ld_bndplt_support=no
30703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30704 $as_echo_n "checking linker -z bndplt option... " >&6; }
30705 if test x"$ld_is_gold" = xno; then
30706 if test $in_tree_ld = yes ; then
30707 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
30708 ld_bndplt_support=yes
30709 fi
30710 elif test x$gcc_cv_ld != x; then
30711 # Check if linker supports -a bndplt option
30712 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30713 ld_bndplt_support=yes
30714 fi
30715 fi
30716 fi
30717 if test x"$ld_bndplt_support" = xyes; then
30718
30719 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30720
30721 fi
30722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30723 $as_echo "$ld_bndplt_support" >&6; }
30724
30725 # Check linker supports '--push-state'/'--pop-state'
30726 ld_pushpopstate_support=no
30727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30728 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30729 if test x"$ld_is_gold" = xno; then
30730 if test $in_tree_ld = yes ; then
30731 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
30732 ld_pushpopstate_support=yes
30733 fi
30734 elif test x$gcc_cv_ld != x; then
30735 # Check if linker supports --push-state/--pop-state options
30736 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30737 ld_pushpopstate_support=yes
30738 fi
30739 fi
30740 fi
30741 if test x"$ld_pushpopstate_support" = xyes; then
30742
30743 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30744
30745 fi
30746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30747 $as_echo "$ld_pushpopstate_support" >&6; }
30748
30749 # Configure the subdirectories
30750 # AC_CONFIG_SUBDIRS($subdirs)
30751
30752 # Create the Makefile
30753 # and configure language subdirectories
30754 ac_config_files="$ac_config_files $all_outputs"
30755
30756
30757 ac_config_commands="$ac_config_commands default"
30758
30759 cat >confcache <<\_ACEOF
30760 # This file is a shell script that caches the results of configure
30761 # tests run on this system so they can be shared between configure
30762 # scripts and configure runs, see configure's option --config-cache.
30763 # It is not useful on other systems. If it contains results you don't
30764 # want to keep, you may remove or edit it.
30765 #
30766 # config.status only pays attention to the cache file if you give it
30767 # the --recheck option to rerun configure.
30768 #
30769 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30770 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30771 # following values.
30772
30773 _ACEOF
30774
30775 # The following way of writing the cache mishandles newlines in values,
30776 # but we know of no workaround that is simple, portable, and efficient.
30777 # So, we kill variables containing newlines.
30778 # Ultrix sh set writes to stderr and can't be redirected directly,
30779 # and sets the high bit in the cache file unless we assign to the vars.
30780 (
30781 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30782 eval ac_val=\$$ac_var
30783 case $ac_val in #(
30784 *${as_nl}*)
30785 case $ac_var in #(
30786 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30787 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30788 esac
30789 case $ac_var in #(
30790 _ | IFS | as_nl) ;; #(
30791 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30792 *) { eval $ac_var=; unset $ac_var;} ;;
30793 esac ;;
30794 esac
30795 done
30796
30797 (set) 2>&1 |
30798 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30799 *${as_nl}ac_space=\ *)
30800 # `set' does not quote correctly, so add quotes: double-quote
30801 # substitution turns \\\\ into \\, and sed turns \\ into \.
30802 sed -n \
30803 "s/'/'\\\\''/g;
30804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30805 ;; #(
30806 *)
30807 # `set' quotes correctly as required by POSIX, so do not add quotes.
30808 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30809 ;;
30810 esac |
30811 sort
30812 ) |
30813 sed '
30814 /^ac_cv_env_/b end
30815 t clear
30816 :clear
30817 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30818 t end
30819 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30820 :end' >>confcache
30821 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30822 if test -w "$cache_file"; then
30823 if test "x$cache_file" != "x/dev/null"; then
30824 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30825 $as_echo "$as_me: updating cache $cache_file" >&6;}
30826 if test ! -f "$cache_file" || test -h "$cache_file"; then
30827 cat confcache >"$cache_file"
30828 else
30829 case $cache_file in #(
30830 */* | ?:*)
30831 mv -f confcache "$cache_file"$$ &&
30832 mv -f "$cache_file"$$ "$cache_file" ;; #(
30833 *)
30834 mv -f confcache "$cache_file" ;;
30835 esac
30836 fi
30837 fi
30838 else
30839 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30840 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30841 fi
30842 fi
30843 rm -f confcache
30844
30845 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30846 # Let make expand exec_prefix.
30847 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30848
30849 DEFS=-DHAVE_CONFIG_H
30850
30851 ac_libobjs=
30852 ac_ltlibobjs=
30853 U=
30854 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30855 # 1. Remove the extension, and $U if already installed.
30856 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30857 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30858 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30859 # will be set to the directory where LIBOBJS objects are built.
30860 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30861 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30862 done
30863 LIBOBJS=$ac_libobjs
30864
30865 LTLIBOBJS=$ac_ltlibobjs
30866
30867
30868
30869
30870 : "${CONFIG_STATUS=./config.status}"
30871 ac_write_fail=0
30872 ac_clean_files_save=$ac_clean_files
30873 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30874 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30875 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30876 as_write_fail=0
30877 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30878 #! $SHELL
30879 # Generated by $as_me.
30880 # Run this file to recreate the current configuration.
30881 # Compiler output produced by configure, useful for debugging
30882 # configure, is in config.log if it exists.
30883
30884 debug=false
30885 ac_cs_recheck=false
30886 ac_cs_silent=false
30887
30888 SHELL=\${CONFIG_SHELL-$SHELL}
30889 export SHELL
30890 _ASEOF
30891 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30892 ## -------------------- ##
30893 ## M4sh Initialization. ##
30894 ## -------------------- ##
30895
30896 # Be more Bourne compatible
30897 DUALCASE=1; export DUALCASE # for MKS sh
30898 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30899 emulate sh
30900 NULLCMD=:
30901 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30902 # is contrary to our usage. Disable this feature.
30903 alias -g '${1+"$@"}'='"$@"'
30904 setopt NO_GLOB_SUBST
30905 else
30906 case `(set -o) 2>/dev/null` in #(
30907 *posix*) :
30908 set -o posix ;; #(
30909 *) :
30910 ;;
30911 esac
30912 fi
30913
30914
30915 as_nl='
30916 '
30917 export as_nl
30918 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30919 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30920 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30921 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30922 # Prefer a ksh shell builtin over an external printf program on Solaris,
30923 # but without wasting forks for bash or zsh.
30924 if test -z "$BASH_VERSION$ZSH_VERSION" \
30925 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30926 as_echo='print -r --'
30927 as_echo_n='print -rn --'
30928 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30929 as_echo='printf %s\n'
30930 as_echo_n='printf %s'
30931 else
30932 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30933 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30934 as_echo_n='/usr/ucb/echo -n'
30935 else
30936 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30937 as_echo_n_body='eval
30938 arg=$1;
30939 case $arg in #(
30940 *"$as_nl"*)
30941 expr "X$arg" : "X\\(.*\\)$as_nl";
30942 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30943 esac;
30944 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30945 '
30946 export as_echo_n_body
30947 as_echo_n='sh -c $as_echo_n_body as_echo'
30948 fi
30949 export as_echo_body
30950 as_echo='sh -c $as_echo_body as_echo'
30951 fi
30952
30953 # The user is always right.
30954 if test "${PATH_SEPARATOR+set}" != set; then
30955 PATH_SEPARATOR=:
30956 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30957 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30958 PATH_SEPARATOR=';'
30959 }
30960 fi
30961
30962
30963 # IFS
30964 # We need space, tab and new line, in precisely that order. Quoting is
30965 # there to prevent editors from complaining about space-tab.
30966 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30967 # splitting by setting IFS to empty value.)
30968 IFS=" "" $as_nl"
30969
30970 # Find who we are. Look in the path if we contain no directory separator.
30971 as_myself=
30972 case $0 in #((
30973 *[\\/]* ) as_myself=$0 ;;
30974 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30975 for as_dir in $PATH
30976 do
30977 IFS=$as_save_IFS
30978 test -z "$as_dir" && as_dir=.
30979 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30980 done
30981 IFS=$as_save_IFS
30982
30983 ;;
30984 esac
30985 # We did not find ourselves, most probably we were run as `sh COMMAND'
30986 # in which case we are not to be found in the path.
30987 if test "x$as_myself" = x; then
30988 as_myself=$0
30989 fi
30990 if test ! -f "$as_myself"; then
30991 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30992 exit 1
30993 fi
30994
30995 # Unset variables that we do not need and which cause bugs (e.g. in
30996 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30997 # suppresses any "Segmentation fault" message there. '((' could
30998 # trigger a bug in pdksh 5.2.14.
30999 for as_var in BASH_ENV ENV MAIL MAILPATH
31000 do eval test x\${$as_var+set} = xset \
31001 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31002 done
31003 PS1='$ '
31004 PS2='> '
31005 PS4='+ '
31006
31007 # NLS nuisances.
31008 LC_ALL=C
31009 export LC_ALL
31010 LANGUAGE=C
31011 export LANGUAGE
31012
31013 # CDPATH.
31014 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31015
31016
31017 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31018 # ----------------------------------------
31019 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31020 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31021 # script with STATUS, using 1 if that was 0.
31022 as_fn_error ()
31023 {
31024 as_status=$1; test $as_status -eq 0 && as_status=1
31025 if test "$4"; then
31026 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31027 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31028 fi
31029 $as_echo "$as_me: error: $2" >&2
31030 as_fn_exit $as_status
31031 } # as_fn_error
31032
31033
31034 # as_fn_set_status STATUS
31035 # -----------------------
31036 # Set $? to STATUS, without forking.
31037 as_fn_set_status ()
31038 {
31039 return $1
31040 } # as_fn_set_status
31041
31042 # as_fn_exit STATUS
31043 # -----------------
31044 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31045 as_fn_exit ()
31046 {
31047 set +e
31048 as_fn_set_status $1
31049 exit $1
31050 } # as_fn_exit
31051
31052 # as_fn_unset VAR
31053 # ---------------
31054 # Portably unset VAR.
31055 as_fn_unset ()
31056 {
31057 { eval $1=; unset $1;}
31058 }
31059 as_unset=as_fn_unset
31060 # as_fn_append VAR VALUE
31061 # ----------------------
31062 # Append the text in VALUE to the end of the definition contained in VAR. Take
31063 # advantage of any shell optimizations that allow amortized linear growth over
31064 # repeated appends, instead of the typical quadratic growth present in naive
31065 # implementations.
31066 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31067 eval 'as_fn_append ()
31068 {
31069 eval $1+=\$2
31070 }'
31071 else
31072 as_fn_append ()
31073 {
31074 eval $1=\$$1\$2
31075 }
31076 fi # as_fn_append
31077
31078 # as_fn_arith ARG...
31079 # ------------------
31080 # Perform arithmetic evaluation on the ARGs, and store the result in the
31081 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31082 # must be portable across $(()) and expr.
31083 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31084 eval 'as_fn_arith ()
31085 {
31086 as_val=$(( $* ))
31087 }'
31088 else
31089 as_fn_arith ()
31090 {
31091 as_val=`expr "$@" || test $? -eq 1`
31092 }
31093 fi # as_fn_arith
31094
31095
31096 if expr a : '\(a\)' >/dev/null 2>&1 &&
31097 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31098 as_expr=expr
31099 else
31100 as_expr=false
31101 fi
31102
31103 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31104 as_basename=basename
31105 else
31106 as_basename=false
31107 fi
31108
31109 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31110 as_dirname=dirname
31111 else
31112 as_dirname=false
31113 fi
31114
31115 as_me=`$as_basename -- "$0" ||
31116 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31117 X"$0" : 'X\(//\)$' \| \
31118 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31119 $as_echo X/"$0" |
31120 sed '/^.*\/\([^/][^/]*\)\/*$/{
31121 s//\1/
31122 q
31123 }
31124 /^X\/\(\/\/\)$/{
31125 s//\1/
31126 q
31127 }
31128 /^X\/\(\/\).*/{
31129 s//\1/
31130 q
31131 }
31132 s/.*/./; q'`
31133
31134 # Avoid depending upon Character Ranges.
31135 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31136 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31137 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31138 as_cr_digits='0123456789'
31139 as_cr_alnum=$as_cr_Letters$as_cr_digits
31140
31141 ECHO_C= ECHO_N= ECHO_T=
31142 case `echo -n x` in #(((((
31143 -n*)
31144 case `echo 'xy\c'` in
31145 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31146 xy) ECHO_C='\c';;
31147 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31148 ECHO_T=' ';;
31149 esac;;
31150 *)
31151 ECHO_N='-n';;
31152 esac
31153
31154 rm -f conf$$ conf$$.exe conf$$.file
31155 if test -d conf$$.dir; then
31156 rm -f conf$$.dir/conf$$.file
31157 else
31158 rm -f conf$$.dir
31159 mkdir conf$$.dir 2>/dev/null
31160 fi
31161 if (echo >conf$$.file) 2>/dev/null; then
31162 if ln -s conf$$.file conf$$ 2>/dev/null; then
31163 as_ln_s='ln -s'
31164 # ... but there are two gotchas:
31165 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31166 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31167 # In both cases, we have to default to `cp -pR'.
31168 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31169 as_ln_s='cp -pR'
31170 elif ln conf$$.file conf$$ 2>/dev/null; then
31171 as_ln_s=ln
31172 else
31173 as_ln_s='cp -pR'
31174 fi
31175 else
31176 as_ln_s='cp -pR'
31177 fi
31178 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31179 rmdir conf$$.dir 2>/dev/null
31180
31181
31182 # as_fn_mkdir_p
31183 # -------------
31184 # Create "$as_dir" as a directory, including parents if necessary.
31185 as_fn_mkdir_p ()
31186 {
31187
31188 case $as_dir in #(
31189 -*) as_dir=./$as_dir;;
31190 esac
31191 test -d "$as_dir" || eval $as_mkdir_p || {
31192 as_dirs=
31193 while :; do
31194 case $as_dir in #(
31195 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31196 *) as_qdir=$as_dir;;
31197 esac
31198 as_dirs="'$as_qdir' $as_dirs"
31199 as_dir=`$as_dirname -- "$as_dir" ||
31200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31201 X"$as_dir" : 'X\(//\)[^/]' \| \
31202 X"$as_dir" : 'X\(//\)$' \| \
31203 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31204 $as_echo X"$as_dir" |
31205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31206 s//\1/
31207 q
31208 }
31209 /^X\(\/\/\)[^/].*/{
31210 s//\1/
31211 q
31212 }
31213 /^X\(\/\/\)$/{
31214 s//\1/
31215 q
31216 }
31217 /^X\(\/\).*/{
31218 s//\1/
31219 q
31220 }
31221 s/.*/./; q'`
31222 test -d "$as_dir" && break
31223 done
31224 test -z "$as_dirs" || eval "mkdir $as_dirs"
31225 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31226
31227
31228 } # as_fn_mkdir_p
31229 if mkdir -p . 2>/dev/null; then
31230 as_mkdir_p='mkdir -p "$as_dir"'
31231 else
31232 test -d ./-p && rmdir ./-p
31233 as_mkdir_p=false
31234 fi
31235
31236
31237 # as_fn_executable_p FILE
31238 # -----------------------
31239 # Test if FILE is an executable regular file.
31240 as_fn_executable_p ()
31241 {
31242 test -f "$1" && test -x "$1"
31243 } # as_fn_executable_p
31244 as_test_x='test -x'
31245 as_executable_p=as_fn_executable_p
31246
31247 # Sed expression to map a string onto a valid CPP name.
31248 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31249
31250 # Sed expression to map a string onto a valid variable name.
31251 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31252
31253
31254 exec 6>&1
31255 ## ----------------------------------- ##
31256 ## Main body of $CONFIG_STATUS script. ##
31257 ## ----------------------------------- ##
31258 _ASEOF
31259 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31260
31261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31262 # Save the log message, to keep $0 and so on meaningful, and to
31263 # report actual input values of CONFIG_FILES etc. instead of their
31264 # values after options handling.
31265 ac_log="
31266 This file was extended by $as_me, which was
31267 generated by GNU Autoconf 2.69. Invocation command line was
31268
31269 CONFIG_FILES = $CONFIG_FILES
31270 CONFIG_HEADERS = $CONFIG_HEADERS
31271 CONFIG_LINKS = $CONFIG_LINKS
31272 CONFIG_COMMANDS = $CONFIG_COMMANDS
31273 $ $0 $@
31274
31275 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31276 "
31277
31278 _ACEOF
31279
31280 case $ac_config_files in *"
31281 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31282 esac
31283
31284 case $ac_config_headers in *"
31285 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31286 esac
31287
31288
31289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31290 # Files that config.status was made for.
31291 config_files="$ac_config_files"
31292 config_headers="$ac_config_headers"
31293 config_links="$ac_config_links"
31294 config_commands="$ac_config_commands"
31295
31296 _ACEOF
31297
31298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31299 ac_cs_usage="\
31300 \`$as_me' instantiates files and other configuration actions
31301 from templates according to the current configuration. Unless the files
31302 and actions are specified as TAGs, all are instantiated by default.
31303
31304 Usage: $0 [OPTION]... [TAG]...
31305
31306 -h, --help print this help, then exit
31307 -V, --version print version number and configuration settings, then exit
31308 --config print configuration, then exit
31309 -q, --quiet, --silent
31310 do not print progress messages
31311 -d, --debug don't remove temporary files
31312 --recheck update $as_me by reconfiguring in the same conditions
31313 --file=FILE[:TEMPLATE]
31314 instantiate the configuration file FILE
31315 --header=FILE[:TEMPLATE]
31316 instantiate the configuration header FILE
31317
31318 Configuration files:
31319 $config_files
31320
31321 Configuration headers:
31322 $config_headers
31323
31324 Configuration links:
31325 $config_links
31326
31327 Configuration commands:
31328 $config_commands
31329
31330 Report bugs to the package provider."
31331
31332 _ACEOF
31333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31334 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31335 ac_cs_version="\\
31336 config.status
31337 configured by $0, generated by GNU Autoconf 2.69,
31338 with options \\"\$ac_cs_config\\"
31339
31340 Copyright (C) 2012 Free Software Foundation, Inc.
31341 This config.status script is free software; the Free Software Foundation
31342 gives unlimited permission to copy, distribute and modify it."
31343
31344 ac_pwd='$ac_pwd'
31345 srcdir='$srcdir'
31346 AWK='$AWK'
31347 test -n "\$AWK" || AWK=awk
31348 _ACEOF
31349
31350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31351 # The default lists apply if the user does not specify any file.
31352 ac_need_defaults=:
31353 while test $# != 0
31354 do
31355 case $1 in
31356 --*=?*)
31357 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31358 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31359 ac_shift=:
31360 ;;
31361 --*=)
31362 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31363 ac_optarg=
31364 ac_shift=:
31365 ;;
31366 *)
31367 ac_option=$1
31368 ac_optarg=$2
31369 ac_shift=shift
31370 ;;
31371 esac
31372
31373 case $ac_option in
31374 # Handling of the options.
31375 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31376 ac_cs_recheck=: ;;
31377 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31378 $as_echo "$ac_cs_version"; exit ;;
31379 --config | --confi | --conf | --con | --co | --c )
31380 $as_echo "$ac_cs_config"; exit ;;
31381 --debug | --debu | --deb | --de | --d | -d )
31382 debug=: ;;
31383 --file | --fil | --fi | --f )
31384 $ac_shift
31385 case $ac_optarg in
31386 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31387 '') as_fn_error $? "missing file argument" ;;
31388 esac
31389 as_fn_append CONFIG_FILES " '$ac_optarg'"
31390 ac_need_defaults=false;;
31391 --header | --heade | --head | --hea )
31392 $ac_shift
31393 case $ac_optarg in
31394 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31395 esac
31396 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31397 ac_need_defaults=false;;
31398 --he | --h)
31399 # Conflict between --help and --header
31400 as_fn_error $? "ambiguous option: \`$1'
31401 Try \`$0 --help' for more information.";;
31402 --help | --hel | -h )
31403 $as_echo "$ac_cs_usage"; exit ;;
31404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31405 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31406 ac_cs_silent=: ;;
31407
31408 # This is an error.
31409 -*) as_fn_error $? "unrecognized option: \`$1'
31410 Try \`$0 --help' for more information." ;;
31411
31412 *) as_fn_append ac_config_targets " $1"
31413 ac_need_defaults=false ;;
31414
31415 esac
31416 shift
31417 done
31418
31419 ac_configure_extra_args=
31420
31421 if $ac_cs_silent; then
31422 exec 6>/dev/null
31423 ac_configure_extra_args="$ac_configure_extra_args --silent"
31424 fi
31425
31426 _ACEOF
31427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31428 if \$ac_cs_recheck; then
31429 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31430 shift
31431 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31432 CONFIG_SHELL='$SHELL'
31433 export CONFIG_SHELL
31434 exec "\$@"
31435 fi
31436
31437 _ACEOF
31438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31439 exec 5>>config.log
31440 {
31441 echo
31442 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31443 ## Running $as_me. ##
31444 _ASBOX
31445 $as_echo "$ac_log"
31446 } >&5
31447
31448 _ACEOF
31449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31450 #
31451 # INIT-COMMANDS
31452 #
31453 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31454 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31455 subdirs='$subdirs'
31456
31457 _ACEOF
31458
31459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31460
31461 # Handling of arguments.
31462 for ac_config_target in $ac_config_targets
31463 do
31464 case $ac_config_target in
31465 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
31466 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
31467 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
31468 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
31469 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
31470 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
31471 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
31472 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
31473 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31474
31475 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31476 esac
31477 done
31478
31479
31480 # If the user did not use the arguments to specify the items to instantiate,
31481 # then the envvar interface is used. Set only those that are not.
31482 # We use the long form for the default assignment because of an extremely
31483 # bizarre bug on SunOS 4.1.3.
31484 if $ac_need_defaults; then
31485 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31486 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31487 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31488 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31489 fi
31490
31491 # Have a temporary directory for convenience. Make it in the build tree
31492 # simply because there is no reason against having it here, and in addition,
31493 # creating and moving files from /tmp can sometimes cause problems.
31494 # Hook for its removal unless debugging.
31495 # Note that there is a small window in which the directory will not be cleaned:
31496 # after its creation but before its name has been assigned to `$tmp'.
31497 $debug ||
31498 {
31499 tmp= ac_tmp=
31500 trap 'exit_status=$?
31501 : "${ac_tmp:=$tmp}"
31502 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31503 ' 0
31504 trap 'as_fn_exit 1' 1 2 13 15
31505 }
31506 # Create a (secure) tmp directory for tmp files.
31507
31508 {
31509 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31510 test -d "$tmp"
31511 } ||
31512 {
31513 tmp=./conf$$-$RANDOM
31514 (umask 077 && mkdir "$tmp")
31515 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31516 ac_tmp=$tmp
31517
31518 # Set up the scripts for CONFIG_FILES section.
31519 # No need to generate them if there are no CONFIG_FILES.
31520 # This happens for instance with `./config.status config.h'.
31521 if test -n "$CONFIG_FILES"; then
31522
31523 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31524 ac_cs_awk_getline=:
31525 ac_cs_awk_pipe_init=
31526 ac_cs_awk_read_file='
31527 while ((getline aline < (F[key])) > 0)
31528 print(aline)
31529 close(F[key])'
31530 ac_cs_awk_pipe_fini=
31531 else
31532 ac_cs_awk_getline=false
31533 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31534 ac_cs_awk_read_file='
31535 print "|#_!!_#|"
31536 print "cat " F[key] " &&"
31537 '$ac_cs_awk_pipe_init
31538 # The final `:' finishes the AND list.
31539 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31540 fi
31541 ac_cr=`echo X | tr X '\015'`
31542 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31543 # But we know of no other shell where ac_cr would be empty at this
31544 # point, so we can use a bashism as a fallback.
31545 if test "x$ac_cr" = x; then
31546 eval ac_cr=\$\'\\r\'
31547 fi
31548 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31549 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31550 ac_cs_awk_cr='\\r'
31551 else
31552 ac_cs_awk_cr=$ac_cr
31553 fi
31554
31555 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31556 _ACEOF
31557
31558 # Create commands to substitute file output variables.
31559 {
31560 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31561 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31562 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31563 echo "_ACAWK" &&
31564 echo "_ACEOF"
31565 } >conf$$files.sh &&
31566 . ./conf$$files.sh ||
31567 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31568 rm -f conf$$files.sh
31569
31570 {
31571 echo "cat >conf$$subs.awk <<_ACEOF" &&
31572 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31573 echo "_ACEOF"
31574 } >conf$$subs.sh ||
31575 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31576 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31577 ac_delim='%!_!# '
31578 for ac_last_try in false false false false false :; do
31579 . ./conf$$subs.sh ||
31580 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31581
31582 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31583 if test $ac_delim_n = $ac_delim_num; then
31584 break
31585 elif $ac_last_try; then
31586 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31587 else
31588 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31589 fi
31590 done
31591 rm -f conf$$subs.sh
31592
31593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31594 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31595 _ACEOF
31596 sed -n '
31597 h
31598 s/^/S["/; s/!.*/"]=/
31599 p
31600 g
31601 s/^[^!]*!//
31602 :repl
31603 t repl
31604 s/'"$ac_delim"'$//
31605 t delim
31606 :nl
31607 h
31608 s/\(.\{148\}\)..*/\1/
31609 t more1
31610 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31611 p
31612 n
31613 b repl
31614 :more1
31615 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31616 p
31617 g
31618 s/.\{148\}//
31619 t nl
31620 :delim
31621 h
31622 s/\(.\{148\}\)..*/\1/
31623 t more2
31624 s/["\\]/\\&/g; s/^/"/; s/$/"/
31625 p
31626 b
31627 :more2
31628 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31629 p
31630 g
31631 s/.\{148\}//
31632 t delim
31633 ' <conf$$subs.awk | sed '
31634 /^[^""]/{
31635 N
31636 s/\n//
31637 }
31638 ' >>$CONFIG_STATUS || ac_write_fail=1
31639 rm -f conf$$subs.awk
31640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31641 _ACAWK
31642 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31643 for (key in S) S_is_set[key] = 1
31644 FS = "\a"
31645 \$ac_cs_awk_pipe_init
31646 }
31647 {
31648 line = $ 0
31649 nfields = split(line, field, "@")
31650 substed = 0
31651 len = length(field[1])
31652 for (i = 2; i < nfields; i++) {
31653 key = field[i]
31654 keylen = length(key)
31655 if (S_is_set[key]) {
31656 value = S[key]
31657 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31658 len += length(value) + length(field[++i])
31659 substed = 1
31660 } else
31661 len += 1 + keylen
31662 }
31663 if (nfields == 3 && !substed) {
31664 key = field[2]
31665 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31666 \$ac_cs_awk_read_file
31667 next
31668 }
31669 }
31670 print line
31671 }
31672 \$ac_cs_awk_pipe_fini
31673 _ACAWK
31674 _ACEOF
31675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31676 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31677 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31678 else
31679 cat
31680 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31681 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31682 _ACEOF
31683
31684 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31685 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31686 # trailing colons and then remove the whole line if VPATH becomes empty
31687 # (actually we leave an empty line to preserve line numbers).
31688 if test "x$srcdir" = x.; then
31689 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31690 h
31691 s///
31692 s/^/:/
31693 s/[ ]*$/:/
31694 s/:\$(srcdir):/:/g
31695 s/:\${srcdir}:/:/g
31696 s/:@srcdir@:/:/g
31697 s/^:*//
31698 s/:*$//
31699 x
31700 s/\(=[ ]*\).*/\1/
31701 G
31702 s/\n//
31703 s/^[^=]*=[ ]*$//
31704 }'
31705 fi
31706
31707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31708 fi # test -n "$CONFIG_FILES"
31709
31710 # Set up the scripts for CONFIG_HEADERS section.
31711 # No need to generate them if there are no CONFIG_HEADERS.
31712 # This happens for instance with `./config.status Makefile'.
31713 if test -n "$CONFIG_HEADERS"; then
31714 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31715 BEGIN {
31716 _ACEOF
31717
31718 # Transform confdefs.h into an awk script `defines.awk', embedded as
31719 # here-document in config.status, that substitutes the proper values into
31720 # config.h.in to produce config.h.
31721
31722 # Create a delimiter string that does not exist in confdefs.h, to ease
31723 # handling of long lines.
31724 ac_delim='%!_!# '
31725 for ac_last_try in false false :; do
31726 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31727 if test -z "$ac_tt"; then
31728 break
31729 elif $ac_last_try; then
31730 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31731 else
31732 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31733 fi
31734 done
31735
31736 # For the awk script, D is an array of macro values keyed by name,
31737 # likewise P contains macro parameters if any. Preserve backslash
31738 # newline sequences.
31739
31740 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31741 sed -n '
31742 s/.\{148\}/&'"$ac_delim"'/g
31743 t rset
31744 :rset
31745 s/^[ ]*#[ ]*define[ ][ ]*/ /
31746 t def
31747 d
31748 :def
31749 s/\\$//
31750 t bsnl
31751 s/["\\]/\\&/g
31752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31753 D["\1"]=" \3"/p
31754 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31755 d
31756 :bsnl
31757 s/["\\]/\\&/g
31758 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31759 D["\1"]=" \3\\\\\\n"\\/p
31760 t cont
31761 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31762 t cont
31763 d
31764 :cont
31765 n
31766 s/.\{148\}/&'"$ac_delim"'/g
31767 t clear
31768 :clear
31769 s/\\$//
31770 t bsnlc
31771 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31772 d
31773 :bsnlc
31774 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31775 b cont
31776 ' <confdefs.h | sed '
31777 s/'"$ac_delim"'/"\\\
31778 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31779
31780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31781 for (key in D) D_is_set[key] = 1
31782 FS = "\a"
31783 }
31784 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31785 line = \$ 0
31786 split(line, arg, " ")
31787 if (arg[1] == "#") {
31788 defundef = arg[2]
31789 mac1 = arg[3]
31790 } else {
31791 defundef = substr(arg[1], 2)
31792 mac1 = arg[2]
31793 }
31794 split(mac1, mac2, "(") #)
31795 macro = mac2[1]
31796 prefix = substr(line, 1, index(line, defundef) - 1)
31797 if (D_is_set[macro]) {
31798 # Preserve the white space surrounding the "#".
31799 print prefix "define", macro P[macro] D[macro]
31800 next
31801 } else {
31802 # Replace #undef with comments. This is necessary, for example,
31803 # in the case of _POSIX_SOURCE, which is predefined and required
31804 # on some systems where configure will not decide to define it.
31805 if (defundef == "undef") {
31806 print "/*", prefix defundef, macro, "*/"
31807 next
31808 }
31809 }
31810 }
31811 { print }
31812 _ACAWK
31813 _ACEOF
31814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31815 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31816 fi # test -n "$CONFIG_HEADERS"
31817
31818
31819 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31820 shift
31821 for ac_tag
31822 do
31823 case $ac_tag in
31824 :[FHLC]) ac_mode=$ac_tag; continue;;
31825 esac
31826 case $ac_mode$ac_tag in
31827 :[FHL]*:*);;
31828 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31829 :[FH]-) ac_tag=-:-;;
31830 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31831 esac
31832 ac_save_IFS=$IFS
31833 IFS=:
31834 set x $ac_tag
31835 IFS=$ac_save_IFS
31836 shift
31837 ac_file=$1
31838 shift
31839
31840 case $ac_mode in
31841 :L) ac_source=$1;;
31842 :[FH])
31843 ac_file_inputs=
31844 for ac_f
31845 do
31846 case $ac_f in
31847 -) ac_f="$ac_tmp/stdin";;
31848 *) # Look for the file first in the build tree, then in the source tree
31849 # (if the path is not absolute). The absolute path cannot be DOS-style,
31850 # because $ac_f cannot contain `:'.
31851 test -f "$ac_f" ||
31852 case $ac_f in
31853 [\\/$]*) false;;
31854 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31855 esac ||
31856 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31857 esac
31858 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31859 as_fn_append ac_file_inputs " '$ac_f'"
31860 done
31861
31862 # Let's still pretend it is `configure' which instantiates (i.e., don't
31863 # use $as_me), people would be surprised to read:
31864 # /* config.h. Generated by config.status. */
31865 configure_input='Generated from '`
31866 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31867 `' by configure.'
31868 if test x"$ac_file" != x-; then
31869 configure_input="$ac_file. $configure_input"
31870 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31871 $as_echo "$as_me: creating $ac_file" >&6;}
31872 fi
31873 # Neutralize special characters interpreted by sed in replacement strings.
31874 case $configure_input in #(
31875 *\&* | *\|* | *\\* )
31876 ac_sed_conf_input=`$as_echo "$configure_input" |
31877 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31878 *) ac_sed_conf_input=$configure_input;;
31879 esac
31880
31881 case $ac_tag in
31882 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31884 esac
31885 ;;
31886 esac
31887
31888 ac_dir=`$as_dirname -- "$ac_file" ||
31889 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31890 X"$ac_file" : 'X\(//\)[^/]' \| \
31891 X"$ac_file" : 'X\(//\)$' \| \
31892 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31893 $as_echo X"$ac_file" |
31894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31895 s//\1/
31896 q
31897 }
31898 /^X\(\/\/\)[^/].*/{
31899 s//\1/
31900 q
31901 }
31902 /^X\(\/\/\)$/{
31903 s//\1/
31904 q
31905 }
31906 /^X\(\/\).*/{
31907 s//\1/
31908 q
31909 }
31910 s/.*/./; q'`
31911 as_dir="$ac_dir"; as_fn_mkdir_p
31912 ac_builddir=.
31913
31914 case "$ac_dir" in
31915 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31916 *)
31917 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31918 # A ".." for each directory in $ac_dir_suffix.
31919 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31920 case $ac_top_builddir_sub in
31921 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31922 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31923 esac ;;
31924 esac
31925 ac_abs_top_builddir=$ac_pwd
31926 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31927 # for backward compatibility:
31928 ac_top_builddir=$ac_top_build_prefix
31929
31930 case $srcdir in
31931 .) # We are building in place.
31932 ac_srcdir=.
31933 ac_top_srcdir=$ac_top_builddir_sub
31934 ac_abs_top_srcdir=$ac_pwd ;;
31935 [\\/]* | ?:[\\/]* ) # Absolute name.
31936 ac_srcdir=$srcdir$ac_dir_suffix;
31937 ac_top_srcdir=$srcdir
31938 ac_abs_top_srcdir=$srcdir ;;
31939 *) # Relative name.
31940 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31941 ac_top_srcdir=$ac_top_build_prefix$srcdir
31942 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31943 esac
31944 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31945
31946
31947 case $ac_mode in
31948 :F)
31949 #
31950 # CONFIG_FILE
31951 #
31952
31953 _ACEOF
31954
31955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31956 # If the template does not know about datarootdir, expand it.
31957 # FIXME: This hack should be removed a few years after 2.60.
31958 ac_datarootdir_hack=; ac_datarootdir_seen=
31959 ac_sed_dataroot='
31960 /datarootdir/ {
31961 p
31962 q
31963 }
31964 /@datadir@/p
31965 /@docdir@/p
31966 /@infodir@/p
31967 /@localedir@/p
31968 /@mandir@/p'
31969 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31970 *datarootdir*) ac_datarootdir_seen=yes;;
31971 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31973 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31974 _ACEOF
31975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31976 ac_datarootdir_hack='
31977 s&@datadir@&$datadir&g
31978 s&@docdir@&$docdir&g
31979 s&@infodir@&$infodir&g
31980 s&@localedir@&$localedir&g
31981 s&@mandir@&$mandir&g
31982 s&\\\${datarootdir}&$datarootdir&g' ;;
31983 esac
31984 _ACEOF
31985
31986 # Neutralize VPATH when `$srcdir' = `.'.
31987 # Shell code in configure.ac might set extrasub.
31988 # FIXME: do we really want to maintain this feature?
31989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31990 ac_sed_extra="$ac_vpsub
31991 $extrasub
31992 _ACEOF
31993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31994 :t
31995 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31996 s|@configure_input@|$ac_sed_conf_input|;t t
31997 s&@top_builddir@&$ac_top_builddir_sub&;t t
31998 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31999 s&@srcdir@&$ac_srcdir&;t t
32000 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32001 s&@top_srcdir@&$ac_top_srcdir&;t t
32002 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32003 s&@builddir@&$ac_builddir&;t t
32004 s&@abs_builddir@&$ac_abs_builddir&;t t
32005 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32006 $ac_datarootdir_hack
32007 "
32008 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32009 if $ac_cs_awk_getline; then
32010 $AWK -f "$ac_tmp/subs.awk"
32011 else
32012 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32013 fi \
32014 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32015
32016 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32017 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32018 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32019 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32021 which seems to be undefined. Please make sure it is defined" >&5
32022 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32023 which seems to be undefined. Please make sure it is defined" >&2;}
32024
32025 rm -f "$ac_tmp/stdin"
32026 case $ac_file in
32027 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32028 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32029 esac \
32030 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32031 ;;
32032 :H)
32033 #
32034 # CONFIG_HEADER
32035 #
32036 if test x"$ac_file" != x-; then
32037 {
32038 $as_echo "/* $configure_input */" \
32039 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32040 } >"$ac_tmp/config.h" \
32041 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32042 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32043 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32044 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32045 else
32046 rm -f "$ac_file"
32047 mv "$ac_tmp/config.h" "$ac_file" \
32048 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32049 fi
32050 else
32051 $as_echo "/* $configure_input */" \
32052 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32053 || as_fn_error $? "could not create -" "$LINENO" 5
32054 fi
32055 ;;
32056 :L)
32057 #
32058 # CONFIG_LINK
32059 #
32060
32061 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
32062 :
32063 else
32064 # Prefer the file from the source tree if names are identical.
32065 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
32066 ac_source=$srcdir/$ac_source
32067 fi
32068
32069 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
32070 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
32071
32072 if test ! -r "$ac_source"; then
32073 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
32074 fi
32075 rm -f "$ac_file"
32076
32077 # Try a relative symlink, then a hard link, then a copy.
32078 case $ac_source in
32079 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
32080 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
32081 esac
32082 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32083 ln "$ac_source" "$ac_file" 2>/dev/null ||
32084 cp -p "$ac_source" "$ac_file" ||
32085 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32086 fi
32087 ;;
32088 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32089 $as_echo "$as_me: executing $ac_file commands" >&6;}
32090 ;;
32091 esac
32092
32093
32094 case $ac_file$ac_mode in
32095 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
32096 "gccdepdir":C)
32097 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
32098 for lang in $subdirs c-family common analyzer
32099 do
32100 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
32101 done ;;
32102 "as":F) chmod +x as ;;
32103 "collect-ld":F) chmod +x collect-ld ;;
32104 "nm":F) chmod +x nm ;;
32105 "default":C)
32106 case ${CONFIG_HEADERS} in
32107 *auto-host.h:config.in*)
32108 echo > cstamp-h ;;
32109 esac
32110 # Make sure all the subdirs exist.
32111 for d in $subdirs doc build common c-family
32112 do
32113 test -d $d || mkdir $d
32114 done
32115 ;;
32116
32117 esac
32118 done # for ac_tag
32119
32120
32121 as_fn_exit 0
32122 _ACEOF
32123 ac_clean_files=$ac_clean_files_save
32124
32125 test $ac_write_fail = 0 ||
32126 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32127
32128
32129 # configure is writing to config.log, and then calls config.status.
32130 # config.status does its own redirection, appending to config.log.
32131 # Unfortunately, on DOS this fails, as config.log is still kept open
32132 # by configure, so config.status won't be able to write to it; its
32133 # output is simply discarded. So we exec the FD to /dev/null,
32134 # effectively closing config.log, so it can be properly (re)opened and
32135 # appended to by config.status. When coming back to configure, we
32136 # need to make the FD available again.
32137 if test "$no_create" != yes; then
32138 ac_cs_success=:
32139 ac_config_status_args=
32140 test "$silent" = yes &&
32141 ac_config_status_args="$ac_config_status_args --quiet"
32142 exec 5>/dev/null
32143 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32144 exec 5>>config.log
32145 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32146 # would make configure fail if this is the last instruction.
32147 $ac_cs_success || as_fn_exit 1
32148 fi
32149 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32151 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32152 fi
32153
32154