]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
i386: Improve vector mode and TFmode ABS and NEG patterns
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="tree.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 CET_HOST_FLAGS
635 NO_PIE_FLAG
636 NO_PIE_CFLAGS
637 enable_default_pie
638 PICFLAG
639 enable_host_shared
640 enable_plugin
641 pluginlibs
642 ISLINC
643 ISLLIBS
644 GMPINC
645 GMPLIBS
646 target_cpu_default
647 d_target_objs
648 fortran_target_objs
649 cxx_target_objs
650 c_target_objs
651 use_gcc_stdint
652 xm_defines
653 xm_include_list
654 xm_file_list
655 tm_d_include_list
656 tm_d_file_list
657 tm_p_include_list
658 tm_p_file_list
659 tm_defines
660 tm_include_list
661 tm_file_list
662 common_out_object_file
663 common_out_file
664 out_object_file
665 out_file
666 objc_boehm_gc
667 md_file
668 local_prefix
669 lang_tree_files
670 lang_specs_files
671 lang_opt_files
672 install
673 out_host_hook_obj
674 host_xm_defines
675 host_xm_include_list
676 host_xm_file_list
677 host_exeext
678 gcc_gxx_include_dir_add_sysroot
679 gcc_gxx_include_dir
680 gcc_config_arguments
681 float_h_file
682 extra_programs
683 extra_objs
684 extra_headers_list
685 user_headers_inc_next_post
686 user_headers_inc_next_pre
687 extra_gcc_objs
688 TM_MULTILIB_EXCEPTIONS_CONFIG
689 TM_MULTILIB_CONFIG
690 TM_ENDIAN_CONFIG
691 tmake_file
692 xmake_file
693 cpp_install_dir
694 selftest_languages
695 check_languages
696 build_file_translate
697 build_xm_defines
698 build_xm_include_list
699 build_xm_file_list
700 build_install_headers_dir
701 build_exeext
702 all_selected_languages
703 all_languages
704 all_lang_makefrags
705 all_lang_configurefrags
706 all_gtfiles
707 all_compilers
708 srcdir
709 subdirs
710 dollar
711 gcc_tooldir
712 enable_lto
713 DO_LINK_MUTEX
714 MAINT
715 zlibinc
716 zlibdir
717 HOST_LIBS
718 enable_default_ssp
719 thin_archive_support
720 ld_soname_option
721 ld_version_script_option
722 libgcc_visibility
723 gcc_cv_otool
724 gcc_cv_readelf
725 gcc_cv_objdump
726 ORIGINAL_NM_FOR_TARGET
727 gcc_cv_nm
728 ORIGINAL_LD_GOLD_FOR_TARGET
729 ORIGINAL_LD_BFD_FOR_TARGET
730 ORIGINAL_LD_FOR_TARGET
731 ORIGINAL_PLUGIN_LD_FOR_TARGET
732 gcc_cv_ld
733 ORIGINAL_AS_FOR_TARGET
734 gcc_cv_as
735 enable_fast_install
736 objdir
737 OTOOL64
738 OTOOL
739 LIPO
740 NMEDIT
741 DSYMUTIL
742 STRIP
743 OBJDUMP
744 ac_ct_DUMPBIN
745 DUMPBIN
746 LD
747 FGREP
748 SED
749 LIBTOOL
750 collect2
751 NO_PIE_FLAG_FOR_BUILD
752 NO_PIE_CFLAGS_FOR_BUILD
753 BUILD_NO_PIE_FLAG
754 BUILD_NO_PIE_CFLAGS
755 STMP_FIXINC
756 BUILD_LDFLAGS
757 BUILD_CXXFLAGS
758 BUILD_CFLAGS
759 CXX_FOR_BUILD
760 CC_FOR_BUILD
761 inhibit_libc
762 BUILD_SYSTEM_HEADER_DIR
763 SYSTEM_HEADER_DIR
764 ALL
765 CROSS
766 CATOBJEXT
767 GENCAT
768 INSTOBJEXT
769 DATADIRNAME
770 CATALOGS
771 POSUB
772 GMSGFMT
773 XGETTEXT
774 INCINTL
775 LIBINTL_DEP
776 LIBINTL
777 USE_NLS
778 get_gcc_base_ver
779 HAVE_AUTO_BUILD
780 extra_opt_files
781 extra_modes_file
782 NATIVE_SYSTEM_HEADER_DIR
783 objext
784 manext
785 LIBICONV_DEP
786 LTLIBICONV
787 LIBICONV
788 ZSTD_LIB
789 ZSTD_INCLUDE
790 DL_LIB
791 LDEXP_LIB
792 EXTRA_GCC_LIBS
793 GNAT_LIBEXC
794 COLLECT2_LIBS
795 CXXDEPMODE
796 DEPDIR
797 am__leading_dot
798 doc_build_sys
799 AR
800 NM
801 BISON
802 FLEX
803 GENERATED_MANPAGES
804 BUILD_INFO
805 MAKEINFO
806 have_mktemp_command
807 make_compare_target
808 INSTALL_DATA
809 INSTALL_PROGRAM
810 INSTALL
811 ranlib_flags
812 RANLIB
813 LN
814 LN_S
815 AWK
816 SET_MAKE
817 omp_device_property_deps
818 omp_device_properties
819 accel_dir_suffix
820 real_target_noncanonical
821 enable_as_accelerator
822 gnat_install_lib
823 REPORT_BUGS_TEXI
824 REPORT_BUGS_TO
825 PKGVERSION
826 CONFIGURE_SPECS
827 enable_gcov
828 enable_shared
829 enable_fixed_point
830 enable_decimal_float
831 with_float
832 with_cpu
833 enable_multiarch
834 enable_multilib
835 coverage_flags
836 valgrind_command
837 valgrind_path_defines
838 valgrind_path
839 TREECHECKING
840 nocommon_flag
841 noexception_flags
842 warn_cxxflags
843 warn_cflags
844 c_strict_warn
845 strict_warn
846 c_loose_warn
847 loose_warn
848 aliasing_flags
849 CPP
850 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 with_changes_root_url
971 enable_languages
972 with_multilib_list
973 with_zstd
974 with_zstd_include
975 with_zstd_lib
976 enable_rpath
977 with_libiconv_prefix
978 with_libiconv_type
979 enable_sjlj_exceptions
980 with_gcc_major_version_only
981 enable_secureplt
982 enable_mingw_wildcard
983 enable_large_address_aware
984 enable_leading_mingw64_underscores
985 enable_cld
986 enable_frame_pointer
987 enable_win32_registry
988 enable_static
989 with_pic
990 enable_fast_install
991 enable_libtool_lock
992 enable_ld
993 enable_gold
994 with_plugin_ld
995 enable_gnu_indirect_function
996 enable_initfini_array
997 enable_comdat
998 enable_newlib_nano_formatted_io
999 enable_standard_branch_protection
1000 enable_fix_cortex_a53_835769
1001 enable_fix_cortex_a53_843419
1002 with_glibc_version
1003 enable_gnu_unique_object
1004 enable_linker_build_id
1005 enable_libssp
1006 enable_default_ssp
1007 with_long_double_128
1008 with_long_double_format
1009 with_gc
1010 with_system_zlib
1011 enable_maintainer_mode
1012 enable_link_mutex
1013 enable_version_specific_runtime_libs
1014 enable_plugin
1015 enable_host_shared
1016 enable_libquadmath_support
1017 with_linker_hash_style
1018 with_diagnostics_color
1019 with_diagnostics_urls
1020 enable_default_pie
1021 enable_cet
1022 '
1023 ac_precious_vars='build_alias
1024 host_alias
1025 target_alias
1026 CC
1027 CFLAGS
1028 LDFLAGS
1029 LIBS
1030 CPPFLAGS
1031 CXX
1032 CXXFLAGS
1033 CCC
1034 CXXCPP
1035 CPP
1036 GMPLIBS
1037 GMPINC
1038 ISLLIBS
1039 ISLINC'
1040
1041
1042 # Initialize some variables set by options.
1043 ac_init_help=
1044 ac_init_version=false
1045 ac_unrecognized_opts=
1046 ac_unrecognized_sep=
1047 # The variables have the same names as the options, with
1048 # dashes changed to underlines.
1049 cache_file=/dev/null
1050 exec_prefix=NONE
1051 no_create=
1052 no_recursion=
1053 prefix=NONE
1054 program_prefix=NONE
1055 program_suffix=NONE
1056 program_transform_name=s,x,x,
1057 silent=
1058 site=
1059 srcdir=
1060 verbose=
1061 x_includes=NONE
1062 x_libraries=NONE
1063
1064 # Installation directory options.
1065 # These are left unexpanded so users can "make install exec_prefix=/foo"
1066 # and all the variables that are supposed to be based on exec_prefix
1067 # by default will actually change.
1068 # Use braces instead of parens because sh, perl, etc. also accept them.
1069 # (The list follows the same order as the GNU Coding Standards.)
1070 bindir='${exec_prefix}/bin'
1071 sbindir='${exec_prefix}/sbin'
1072 libexecdir='${exec_prefix}/libexec'
1073 datarootdir='${prefix}/share'
1074 datadir='${datarootdir}'
1075 sysconfdir='${prefix}/etc'
1076 sharedstatedir='${prefix}/com'
1077 localstatedir='${prefix}/var'
1078 includedir='${prefix}/include'
1079 oldincludedir='/usr/include'
1080 docdir='${datarootdir}/doc/${PACKAGE}'
1081 infodir='${datarootdir}/info'
1082 htmldir='${docdir}'
1083 dvidir='${docdir}'
1084 pdfdir='${docdir}'
1085 psdir='${docdir}'
1086 libdir='${exec_prefix}/lib'
1087 localedir='${datarootdir}/locale'
1088 mandir='${datarootdir}/man'
1089
1090 ac_prev=
1091 ac_dashdash=
1092 for ac_option
1093 do
1094 # If the previous option needs an argument, assign it.
1095 if test -n "$ac_prev"; then
1096 eval $ac_prev=\$ac_option
1097 ac_prev=
1098 continue
1099 fi
1100
1101 case $ac_option in
1102 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1103 *=) ac_optarg= ;;
1104 *) ac_optarg=yes ;;
1105 esac
1106
1107 # Accept the important Cygnus configure options, so we can diagnose typos.
1108
1109 case $ac_dashdash$ac_option in
1110 --)
1111 ac_dashdash=yes ;;
1112
1113 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1114 ac_prev=bindir ;;
1115 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1116 bindir=$ac_optarg ;;
1117
1118 -build | --build | --buil | --bui | --bu)
1119 ac_prev=build_alias ;;
1120 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1121 build_alias=$ac_optarg ;;
1122
1123 -cache-file | --cache-file | --cache-fil | --cache-fi \
1124 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1125 ac_prev=cache_file ;;
1126 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1127 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1128 cache_file=$ac_optarg ;;
1129
1130 --config-cache | -C)
1131 cache_file=config.cache ;;
1132
1133 -datadir | --datadir | --datadi | --datad)
1134 ac_prev=datadir ;;
1135 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1136 datadir=$ac_optarg ;;
1137
1138 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1139 | --dataroo | --dataro | --datar)
1140 ac_prev=datarootdir ;;
1141 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1142 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1143 datarootdir=$ac_optarg ;;
1144
1145 -disable-* | --disable-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid feature name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1153 *"
1154 "enable_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval enable_$ac_useropt=no ;;
1160
1161 -docdir | --docdir | --docdi | --doc | --do)
1162 ac_prev=docdir ;;
1163 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1164 docdir=$ac_optarg ;;
1165
1166 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1167 ac_prev=dvidir ;;
1168 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1169 dvidir=$ac_optarg ;;
1170
1171 -enable-* | --enable-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid feature name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180 "enable_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval enable_$ac_useropt=\$ac_optarg ;;
1186
1187 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1188 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1189 | --exec | --exe | --ex)
1190 ac_prev=exec_prefix ;;
1191 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1192 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1193 | --exec=* | --exe=* | --ex=*)
1194 exec_prefix=$ac_optarg ;;
1195
1196 -gas | --gas | --ga | --g)
1197 # Obsolete; use --with-gas.
1198 with_gas=yes ;;
1199
1200 -help | --help | --hel | --he | -h)
1201 ac_init_help=long ;;
1202 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1203 ac_init_help=recursive ;;
1204 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1205 ac_init_help=short ;;
1206
1207 -host | --host | --hos | --ho)
1208 ac_prev=host_alias ;;
1209 -host=* | --host=* | --hos=* | --ho=*)
1210 host_alias=$ac_optarg ;;
1211
1212 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1213 ac_prev=htmldir ;;
1214 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1215 | --ht=*)
1216 htmldir=$ac_optarg ;;
1217
1218 -includedir | --includedir | --includedi | --included | --include \
1219 | --includ | --inclu | --incl | --inc)
1220 ac_prev=includedir ;;
1221 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1222 | --includ=* | --inclu=* | --incl=* | --inc=*)
1223 includedir=$ac_optarg ;;
1224
1225 -infodir | --infodir | --infodi | --infod | --info | --inf)
1226 ac_prev=infodir ;;
1227 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1228 infodir=$ac_optarg ;;
1229
1230 -libdir | --libdir | --libdi | --libd)
1231 ac_prev=libdir ;;
1232 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1233 libdir=$ac_optarg ;;
1234
1235 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1236 | --libexe | --libex | --libe)
1237 ac_prev=libexecdir ;;
1238 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1239 | --libexe=* | --libex=* | --libe=*)
1240 libexecdir=$ac_optarg ;;
1241
1242 -localedir | --localedir | --localedi | --localed | --locale)
1243 ac_prev=localedir ;;
1244 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1245 localedir=$ac_optarg ;;
1246
1247 -localstatedir | --localstatedir | --localstatedi | --localstated \
1248 | --localstate | --localstat | --localsta | --localst | --locals)
1249 ac_prev=localstatedir ;;
1250 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1251 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1252 localstatedir=$ac_optarg ;;
1253
1254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1255 ac_prev=mandir ;;
1256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1257 mandir=$ac_optarg ;;
1258
1259 -nfp | --nfp | --nf)
1260 # Obsolete; use --without-fp.
1261 with_fp=no ;;
1262
1263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1264 | --no-cr | --no-c | -n)
1265 no_create=yes ;;
1266
1267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1269 no_recursion=yes ;;
1270
1271 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1272 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1273 | --oldin | --oldi | --old | --ol | --o)
1274 ac_prev=oldincludedir ;;
1275 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1276 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1277 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1278 oldincludedir=$ac_optarg ;;
1279
1280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1281 ac_prev=prefix ;;
1282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1283 prefix=$ac_optarg ;;
1284
1285 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1286 | --program-pre | --program-pr | --program-p)
1287 ac_prev=program_prefix ;;
1288 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1289 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1290 program_prefix=$ac_optarg ;;
1291
1292 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1293 | --program-suf | --program-su | --program-s)
1294 ac_prev=program_suffix ;;
1295 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1296 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1297 program_suffix=$ac_optarg ;;
1298
1299 -program-transform-name | --program-transform-name \
1300 | --program-transform-nam | --program-transform-na \
1301 | --program-transform-n | --program-transform- \
1302 | --program-transform | --program-transfor \
1303 | --program-transfo | --program-transf \
1304 | --program-trans | --program-tran \
1305 | --progr-tra | --program-tr | --program-t)
1306 ac_prev=program_transform_name ;;
1307 -program-transform-name=* | --program-transform-name=* \
1308 | --program-transform-nam=* | --program-transform-na=* \
1309 | --program-transform-n=* | --program-transform-=* \
1310 | --program-transform=* | --program-transfor=* \
1311 | --program-transfo=* | --program-transf=* \
1312 | --program-trans=* | --program-tran=* \
1313 | --progr-tra=* | --program-tr=* | --program-t=*)
1314 program_transform_name=$ac_optarg ;;
1315
1316 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1317 ac_prev=pdfdir ;;
1318 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1319 pdfdir=$ac_optarg ;;
1320
1321 -psdir | --psdir | --psdi | --psd | --ps)
1322 ac_prev=psdir ;;
1323 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1324 psdir=$ac_optarg ;;
1325
1326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1327 | -silent | --silent | --silen | --sile | --sil)
1328 silent=yes ;;
1329
1330 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1331 ac_prev=sbindir ;;
1332 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1333 | --sbi=* | --sb=*)
1334 sbindir=$ac_optarg ;;
1335
1336 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1337 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1338 | --sharedst | --shareds | --shared | --share | --shar \
1339 | --sha | --sh)
1340 ac_prev=sharedstatedir ;;
1341 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1342 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1343 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1344 | --sha=* | --sh=*)
1345 sharedstatedir=$ac_optarg ;;
1346
1347 -site | --site | --sit)
1348 ac_prev=site ;;
1349 -site=* | --site=* | --sit=*)
1350 site=$ac_optarg ;;
1351
1352 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1353 ac_prev=srcdir ;;
1354 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1355 srcdir=$ac_optarg ;;
1356
1357 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1358 | --syscon | --sysco | --sysc | --sys | --sy)
1359 ac_prev=sysconfdir ;;
1360 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1361 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1362 sysconfdir=$ac_optarg ;;
1363
1364 -target | --target | --targe | --targ | --tar | --ta | --t)
1365 ac_prev=target_alias ;;
1366 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1367 target_alias=$ac_optarg ;;
1368
1369 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1370 verbose=yes ;;
1371
1372 -version | --version | --versio | --versi | --vers | -V)
1373 ac_init_version=: ;;
1374
1375 -with-* | --with-*)
1376 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1377 # Reject names that are not valid shell variable names.
1378 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1379 as_fn_error $? "invalid package name: $ac_useropt"
1380 ac_useropt_orig=$ac_useropt
1381 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1382 case $ac_user_opts in
1383 *"
1384 "with_$ac_useropt"
1385 "*) ;;
1386 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1387 ac_unrecognized_sep=', ';;
1388 esac
1389 eval with_$ac_useropt=\$ac_optarg ;;
1390
1391 -without-* | --without-*)
1392 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1393 # Reject names that are not valid shell variable names.
1394 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1395 as_fn_error $? "invalid package name: $ac_useropt"
1396 ac_useropt_orig=$ac_useropt
1397 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1398 case $ac_user_opts in
1399 *"
1400 "with_$ac_useropt"
1401 "*) ;;
1402 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1403 ac_unrecognized_sep=', ';;
1404 esac
1405 eval with_$ac_useropt=no ;;
1406
1407 --x)
1408 # Obsolete; use --with-x.
1409 with_x=yes ;;
1410
1411 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1412 | --x-incl | --x-inc | --x-in | --x-i)
1413 ac_prev=x_includes ;;
1414 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1415 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1416 x_includes=$ac_optarg ;;
1417
1418 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1419 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1420 ac_prev=x_libraries ;;
1421 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1422 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1423 x_libraries=$ac_optarg ;;
1424
1425 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1426 Try \`$0 --help' for more information"
1427 ;;
1428
1429 *=*)
1430 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1431 # Reject names that are not valid shell variable names.
1432 case $ac_envvar in #(
1433 '' | [0-9]* | *[!_$as_cr_alnum]* )
1434 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1435 esac
1436 eval $ac_envvar=\$ac_optarg
1437 export $ac_envvar ;;
1438
1439 *)
1440 # FIXME: should be removed in autoconf 3.0.
1441 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1442 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1443 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1444 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1445 ;;
1446
1447 esac
1448 done
1449
1450 if test -n "$ac_prev"; then
1451 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1452 as_fn_error $? "missing argument to $ac_option"
1453 fi
1454
1455 if test -n "$ac_unrecognized_opts"; then
1456 case $enable_option_checking in
1457 no) ;;
1458 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1459 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1460 esac
1461 fi
1462
1463 # Check all directory arguments for consistency.
1464 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1465 datadir sysconfdir sharedstatedir localstatedir includedir \
1466 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1467 libdir localedir mandir
1468 do
1469 eval ac_val=\$$ac_var
1470 # Remove trailing slashes.
1471 case $ac_val in
1472 */ )
1473 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1474 eval $ac_var=\$ac_val;;
1475 esac
1476 # Be sure to have absolute directory names.
1477 case $ac_val in
1478 [\\/$]* | ?:[\\/]* ) continue;;
1479 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1480 esac
1481 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1482 done
1483
1484 # There might be people who depend on the old broken behavior: `$host'
1485 # used to hold the argument of --host etc.
1486 # FIXME: To remove some day.
1487 build=$build_alias
1488 host=$host_alias
1489 target=$target_alias
1490
1491 # FIXME: To remove some day.
1492 if test "x$host_alias" != x; then
1493 if test "x$build_alias" = x; then
1494 cross_compiling=maybe
1495 elif test "x$build_alias" != "x$host_alias"; then
1496 cross_compiling=yes
1497 fi
1498 fi
1499
1500 ac_tool_prefix=
1501 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1502
1503 test "$silent" = yes && exec 6>/dev/null
1504
1505
1506 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1507 ac_ls_di=`ls -di .` &&
1508 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1509 as_fn_error $? "working directory cannot be determined"
1510 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1511 as_fn_error $? "pwd does not report name of working directory"
1512
1513
1514 # Find the source files, if location was not specified.
1515 if test -z "$srcdir"; then
1516 ac_srcdir_defaulted=yes
1517 # Try the directory containing this script, then the parent directory.
1518 ac_confdir=`$as_dirname -- "$as_myself" ||
1519 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1520 X"$as_myself" : 'X\(//\)[^/]' \| \
1521 X"$as_myself" : 'X\(//\)$' \| \
1522 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1523 $as_echo X"$as_myself" |
1524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1525 s//\1/
1526 q
1527 }
1528 /^X\(\/\/\)[^/].*/{
1529 s//\1/
1530 q
1531 }
1532 /^X\(\/\/\)$/{
1533 s//\1/
1534 q
1535 }
1536 /^X\(\/\).*/{
1537 s//\1/
1538 q
1539 }
1540 s/.*/./; q'`
1541 srcdir=$ac_confdir
1542 if test ! -r "$srcdir/$ac_unique_file"; then
1543 srcdir=..
1544 fi
1545 else
1546 ac_srcdir_defaulted=no
1547 fi
1548 if test ! -r "$srcdir/$ac_unique_file"; then
1549 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1550 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1551 fi
1552 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1553 ac_abs_confdir=`(
1554 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1555 pwd)`
1556 # When building in place, set srcdir=.
1557 if test "$ac_abs_confdir" = "$ac_pwd"; then
1558 srcdir=.
1559 fi
1560 # Remove unnecessary trailing slashes from srcdir.
1561 # Double slashes in file names in object file debugging info
1562 # mess up M-x gdb in Emacs.
1563 case $srcdir in
1564 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1565 esac
1566 for ac_var in $ac_precious_vars; do
1567 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1568 eval ac_env_${ac_var}_value=\$${ac_var}
1569 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1570 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1571 done
1572
1573 #
1574 # Report the --help message.
1575 #
1576 if test "$ac_init_help" = "long"; then
1577 # Omit some internal or obsolete options to make the list less imposing.
1578 # This message is too long to be a string in the A/UX 3.1 sh.
1579 cat <<_ACEOF
1580 \`configure' configures this package to adapt to many kinds of systems.
1581
1582 Usage: $0 [OPTION]... [VAR=VALUE]...
1583
1584 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1585 VAR=VALUE. See below for descriptions of some of the useful variables.
1586
1587 Defaults for the options are specified in brackets.
1588
1589 Configuration:
1590 -h, --help display this help and exit
1591 --help=short display options specific to this package
1592 --help=recursive display the short help of all the included packages
1593 -V, --version display version information and exit
1594 -q, --quiet, --silent do not print \`checking ...' messages
1595 --cache-file=FILE cache test results in FILE [disabled]
1596 -C, --config-cache alias for \`--cache-file=config.cache'
1597 -n, --no-create do not create output files
1598 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1599
1600 Installation directories:
1601 --prefix=PREFIX install architecture-independent files in PREFIX
1602 [$ac_default_prefix]
1603 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1604 [PREFIX]
1605
1606 By default, \`make install' will install all the files in
1607 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1608 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1609 for instance \`--prefix=\$HOME'.
1610
1611 For better control, use the options below.
1612
1613 Fine tuning of the installation directories:
1614 --bindir=DIR user executables [EPREFIX/bin]
1615 --sbindir=DIR system admin executables [EPREFIX/sbin]
1616 --libexecdir=DIR program executables [EPREFIX/libexec]
1617 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1618 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1619 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1620 --libdir=DIR object code libraries [EPREFIX/lib]
1621 --includedir=DIR C header files [PREFIX/include]
1622 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1623 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1624 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1625 --infodir=DIR info documentation [DATAROOTDIR/info]
1626 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1627 --mandir=DIR man documentation [DATAROOTDIR/man]
1628 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1629 --htmldir=DIR html documentation [DOCDIR]
1630 --dvidir=DIR dvi documentation [DOCDIR]
1631 --pdfdir=DIR pdf documentation [DOCDIR]
1632 --psdir=DIR ps documentation [DOCDIR]
1633 _ACEOF
1634
1635 cat <<\_ACEOF
1636
1637 Program names:
1638 --program-prefix=PREFIX prepend PREFIX to installed program names
1639 --program-suffix=SUFFIX append SUFFIX to installed program names
1640 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1641
1642 System types:
1643 --build=BUILD configure for building on BUILD [guessed]
1644 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1645 --target=TARGET configure for building compilers for TARGET [HOST]
1646 _ACEOF
1647 fi
1648
1649 if test -n "$ac_init_help"; then
1650
1651 cat <<\_ACEOF
1652
1653 Optional Features:
1654 --disable-option-checking ignore unrecognized --enable/--with options
1655 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1656 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1657 --enable-generated-files-in-srcdir
1658 put copies of generated files in source dir intended
1659 for creating source tarballs for users without
1660 texinfo bison or flex
1661 --disable-largefile omit support for large files
1662 --disable-build-format-warnings
1663 don't use -Wformat while building GCC
1664 --enable-werror-always enable -Werror despite compiler version
1665 --enable-checking[=LIST]
1666 enable expensive run-time checks. With LIST, enable
1667 only specific categories of checks. Categories are:
1668 yes,no,all,none,release. Flags are:
1669 assert,df,extra,fold,gc,gcac,gimple,misc,
1670 rtlflag,rtl,runtime,tree,valgrind,types
1671 --enable-coverage[=LEVEL]
1672 enable compiler's code coverage collection. Use to
1673 measure compiler performance and locate unused parts
1674 of the compiler. With LEVEL, specify optimization.
1675 Values are opt, noopt, default is noopt
1676 --enable-gather-detailed-mem-stats
1677 enable detailed memory allocation stats gathering
1678 --enable-valgrind-annotations
1679 enable valgrind runtime interaction
1680 --enable-multilib enable library support for multiple ABIs
1681 --enable-multiarch enable support for multiarch paths
1682 --enable-__cxa_atexit enable __cxa_atexit for C++
1683 --enable-decimal-float={no,yes,bid,dpd}
1684 enable decimal float extension to C. Selecting 'bid'
1685 or 'dpd' choses which decimal floating point format
1686 to use
1687 --enable-fixed-point enable fixed-point arithmetic extension to C
1688 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1689 package
1690 --enable-tls enable or disable generation of tls code overriding
1691 the assembler check for tls support
1692 --enable-vtable-verify enable vtable verification feature
1693 --disable-analyzer disable -fanalyzer static analyzer
1694 --enable-objc-gc enable the use of Boehm's garbage collector with the
1695 GNU Objective-C runtime
1696 --disable-shared don't provide a shared libgcc
1697 --disable-gcov don't provide libgcov and related host tools
1698 --enable-languages=LIST specify which front-ends to build
1699 --disable-rpath do not hardcode runtime library paths
1700 --enable-sjlj-exceptions
1701 arrange to use setjmp/longjmp exception handling
1702 --enable-secureplt enable -msecure-plt by default for PowerPC
1703 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1704 Default to platform configuration
1705 --enable-large-address-aware
1706 Link mingw executables with --large-address-aware
1707 --enable-leading-mingw64-underscores
1708 enable leading underscores on 64 bit mingw targets
1709 --enable-cld enable -mcld by default for 32bit x86
1710 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1711 --disable-win32-registry
1712 disable lookup of installation paths in the Registry
1713 on Windows hosts
1714 --enable-win32-registry enable registry lookup (default)
1715 --enable-win32-registry=KEY
1716 use KEY instead of GCC version as the last portion
1717 of the registry key
1718 --enable-shared[=PKGS] build shared libraries [default=yes]
1719 --enable-static[=PKGS] build static libraries [default=yes]
1720 --enable-fast-install[=PKGS]
1721 optimize for fast installation [default=yes]
1722 --disable-libtool-lock avoid locking (might break parallel builds)
1723 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1724 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1725 --enable-gnu-indirect-function
1726 enable the use of the @gnu_indirect_function to
1727 glibc systems
1728 --enable-initfini-array use .init_array/.fini_array sections
1729 --enable-comdat enable COMDAT group support
1730 --enable-newlib-nano-formatted-io
1731 Use nano version formatted IO
1732
1733 --enable-standard-branch-protection
1734 enable Branch Target Identification Mechanism and
1735 Return Address Signing by default for AArch64
1736 --disable-standard-branch-protection
1737 disable Branch Target Identification Mechanism and
1738 Return Address Signing by default for AArch64
1739
1740
1741 --enable-fix-cortex-a53-835769
1742 enable workaround for AArch64 Cortex-A53 erratum
1743 835769 by default
1744 --disable-fix-cortex-a53-835769
1745 disable workaround for AArch64 Cortex-A53 erratum
1746 835769 by default
1747
1748
1749 --enable-fix-cortex-a53-843419
1750 enable workaround for AArch64 Cortex-A53 erratum
1751 843419 by default
1752 --disable-fix-cortex-a53-843419
1753 disable workaround for AArch64 Cortex-A53 erratum
1754 843419 by default
1755
1756 --enable-gnu-unique-object
1757 enable the use of the @gnu_unique_object ELF
1758 extension on glibc systems
1759 --enable-linker-build-id
1760 compiler will always pass --build-id to linker
1761 --enable-libssp enable linking against libssp
1762 --enable-default-ssp enable Stack Smashing Protection as default
1763 --enable-maintainer-mode
1764 enable make rules and dependencies not useful (and
1765 sometimes confusing) to the casual installer
1766 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1767 thrashing on the build machine
1768 --enable-version-specific-runtime-libs
1769 specify that runtime libraries should be installed
1770 in a compiler-specific directory
1771 --enable-plugin enable plugin support
1772 --enable-host-shared build host code as shared libraries
1773 --disable-libquadmath-support
1774 disable libquadmath support for Fortran
1775 --enable-default-pie enable Position Independent Executable as default
1776 --enable-cet enable Intel CET in host libraries [default=auto]
1777
1778 Optional Packages:
1779 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1780 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1781 --with-build-libsubdir=DIR Directory where to find libraries for build system
1782 --with-local-prefix=DIR specifies directory to put local include
1783 --with-native-system-header-dir=dir
1784 use dir as the directory to look for standard
1785 system header files in. Defaults to /usr/include.
1786 --with-build-sysroot=sysroot
1787 use sysroot as the system root during the build
1788 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1789 --with-gxx-include-dir=DIR
1790 specifies directory to put g++ header files
1791 --with-cpp-install-dir=DIR
1792 install the user visible C preprocessor in DIR
1793 (relative to PREFIX) as well as PREFIX/bin
1794 --with-gnu-ld arrange to work with GNU ld
1795 --with-ld arrange to use the specified ld (full pathname)
1796 --with-demangler-in-ld try to use demangler in GNU ld
1797 --with-gnu-as arrange to work with GNU as
1798 --with-as arrange to use the specified as (full pathname)
1799 --with-stabs arrange to use stabs instead of host debug format
1800 --with-stack-clash-protection-guard-size=size
1801 Set the default stack clash protection guard size
1802 for specific targets as a power of two in bytes.
1803 --with-dwarf2 force the default debug format to be DWARF 2
1804 --with-specs=SPECS add SPECS to driver command-line processing
1805 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1806 --with-bugurl=URL Direct users to URL to report a bug
1807 --with-documentation-root-url=URL
1808 Root for documentation URLs
1809 --with-changes-root-url=URL
1810 Root for GCC changes URLs
1811 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1812 --with-zstd=PATH specify prefix directory for installed zstd library.
1813 Equivalent to --with-zstd-include=PATH/include plus
1814 --with-zstd-lib=PATH/lib
1815 --with-zstd-include=PATH
1816 specify directory for installed zstd include files
1817 --with-zstd-lib=PATH specify directory for the installed zstd library
1818 --with-gnu-ld assume the C compiler uses GNU ld default=no
1819 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1820 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1821 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1822 --with-gcc-major-version-only
1823 use only GCC major number in filesystem paths
1824 --with-pic try to use only PIC/non-PIC objects [default=use
1825 both]
1826 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1827 --with-plugin-ld=[ARG] specify the plugin linker
1828 --with-glibc-version=M.N
1829 assume GCC used with glibc version M.N or later
1830 --with-long-double-128 use 128-bit long double by default
1831 --with-long-double-format={ieee,ibm}
1832 Specify whether PowerPC long double uses IEEE or IBM format
1833
1834 --with-gc={page,zone} this option is not supported anymore. It used to
1835 choose the garbage collection mechanism to use with
1836 the compiler
1837 --with-system-zlib use installed libz
1838 --with-linker-hash-style={sysv,gnu,both}
1839 specify the linker hash style
1840 --with-diagnostics-color={never,auto,auto-if-env,always}
1841 specify the default of -fdiagnostics-color option
1842 auto-if-env stands for -fdiagnostics-color=auto if
1843 GCC_COLOR environment variable is present and
1844 -fdiagnostics-color=never otherwise
1845 --with-diagnostics-urls={never,auto,auto-if-env,always}
1846 specify the default of -fdiagnostics-urls option
1847 auto-if-env stands for -fdiagnostics-urls=auto if
1848 GCC_URLS or TERM_URLS environment variable is
1849 present and -fdiagnostics-urls=never otherwise
1850
1851 Some influential environment variables:
1852 CC C compiler command
1853 CFLAGS C compiler flags
1854 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1855 nonstandard directory <lib dir>
1856 LIBS libraries to pass to the linker, e.g. -l<library>
1857 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1858 you have headers in a nonstandard directory <include dir>
1859 CXX C++ compiler command
1860 CXXFLAGS C++ compiler flags
1861 CXXCPP C++ preprocessor
1862 CPP C preprocessor
1863 GMPLIBS How to link GMP
1864 GMPINC How to find GMP include files
1865 ISLLIBS How to link isl
1866 ISLINC How to find isl include files
1867
1868 Use these variables to override the choices made by `configure' or to help
1869 it to find libraries and programs with nonstandard names/locations.
1870
1871 Report bugs to the package provider.
1872 _ACEOF
1873 ac_status=$?
1874 fi
1875
1876 if test "$ac_init_help" = "recursive"; then
1877 # If there are subdirs, report their specific --help.
1878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1879 test -d "$ac_dir" ||
1880 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1881 continue
1882 ac_builddir=.
1883
1884 case "$ac_dir" in
1885 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1886 *)
1887 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1888 # A ".." for each directory in $ac_dir_suffix.
1889 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1890 case $ac_top_builddir_sub in
1891 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1892 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1893 esac ;;
1894 esac
1895 ac_abs_top_builddir=$ac_pwd
1896 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1897 # for backward compatibility:
1898 ac_top_builddir=$ac_top_build_prefix
1899
1900 case $srcdir in
1901 .) # We are building in place.
1902 ac_srcdir=.
1903 ac_top_srcdir=$ac_top_builddir_sub
1904 ac_abs_top_srcdir=$ac_pwd ;;
1905 [\\/]* | ?:[\\/]* ) # Absolute name.
1906 ac_srcdir=$srcdir$ac_dir_suffix;
1907 ac_top_srcdir=$srcdir
1908 ac_abs_top_srcdir=$srcdir ;;
1909 *) # Relative name.
1910 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1911 ac_top_srcdir=$ac_top_build_prefix$srcdir
1912 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1913 esac
1914 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1915
1916 cd "$ac_dir" || { ac_status=$?; continue; }
1917 # Check for guested configure.
1918 if test -f "$ac_srcdir/configure.gnu"; then
1919 echo &&
1920 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1921 elif test -f "$ac_srcdir/configure"; then
1922 echo &&
1923 $SHELL "$ac_srcdir/configure" --help=recursive
1924 else
1925 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1926 fi || ac_status=$?
1927 cd "$ac_pwd" || { ac_status=$?; break; }
1928 done
1929 fi
1930
1931 test -n "$ac_init_help" && exit $ac_status
1932 if $ac_init_version; then
1933 cat <<\_ACEOF
1934 configure
1935 generated by GNU Autoconf 2.69
1936
1937 Copyright (C) 2012 Free Software Foundation, Inc.
1938 This configure script is free software; the Free Software Foundation
1939 gives unlimited permission to copy, distribute and modify it.
1940 _ACEOF
1941 exit
1942 fi
1943
1944 ## ------------------------ ##
1945 ## Autoconf initialization. ##
1946 ## ------------------------ ##
1947
1948 # ac_fn_c_try_compile LINENO
1949 # --------------------------
1950 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1951 ac_fn_c_try_compile ()
1952 {
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 rm -f conftest.$ac_objext
1955 if { { ac_try="$ac_compile"
1956 case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959 esac
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_compile") 2>conftest.err
1963 ac_status=$?
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1968 fi
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } && {
1971 test -z "$ac_c_werror_flag" ||
1972 test ! -s conftest.err
1973 } && test -s conftest.$ac_objext; then :
1974 ac_retval=0
1975 else
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1978
1979 ac_retval=1
1980 fi
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 as_fn_set_status $ac_retval
1983
1984 } # ac_fn_c_try_compile
1985
1986 # ac_fn_cxx_try_compile LINENO
1987 # ----------------------------
1988 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1989 ac_fn_cxx_try_compile ()
1990 {
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 rm -f conftest.$ac_objext
1993 if { { ac_try="$ac_compile"
1994 case "(($ac_try" in
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1997 esac
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_compile") 2>conftest.err
2001 ac_status=$?
2002 if test -s conftest.err; then
2003 grep -v '^ *+' conftest.err >conftest.er1
2004 cat conftest.er1 >&5
2005 mv -f conftest.er1 conftest.err
2006 fi
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; } && {
2009 test -z "$ac_cxx_werror_flag" ||
2010 test ! -s conftest.err
2011 } && test -s conftest.$ac_objext; then :
2012 ac_retval=0
2013 else
2014 $as_echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2016
2017 ac_retval=1
2018 fi
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020 as_fn_set_status $ac_retval
2021
2022 } # ac_fn_cxx_try_compile
2023
2024 # ac_fn_cxx_try_cpp LINENO
2025 # ------------------------
2026 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2027 ac_fn_cxx_try_cpp ()
2028 {
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 if { { ac_try="$ac_cpp conftest.$ac_ext"
2031 case "(($ac_try" in
2032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2033 *) ac_try_echo=$ac_try;;
2034 esac
2035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2036 $as_echo "$ac_try_echo"; } >&5
2037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2038 ac_status=$?
2039 if test -s conftest.err; then
2040 grep -v '^ *+' conftest.err >conftest.er1
2041 cat conftest.er1 >&5
2042 mv -f conftest.er1 conftest.err
2043 fi
2044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045 test $ac_status = 0; } > conftest.i && {
2046 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2047 test ! -s conftest.err
2048 }; then :
2049 ac_retval=0
2050 else
2051 $as_echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2053
2054 ac_retval=1
2055 fi
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 as_fn_set_status $ac_retval
2058
2059 } # ac_fn_cxx_try_cpp
2060
2061 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2062 # ---------------------------------------------------------
2063 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2064 # the include files in INCLUDES and setting the cache variable VAR
2065 # accordingly.
2066 ac_fn_cxx_check_header_mongrel ()
2067 {
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 if eval \${$3+:} false; then :
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2071 $as_echo_n "checking for $2... " >&6; }
2072 if eval \${$3+:} false; then :
2073 $as_echo_n "(cached) " >&6
2074 fi
2075 eval ac_res=\$$3
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 $as_echo "$ac_res" >&6; }
2078 else
2079 # Is the header compilable?
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2081 $as_echo_n "checking $2 usability... " >&6; }
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2084 $4
2085 #include <$2>
2086 _ACEOF
2087 if ac_fn_cxx_try_compile "$LINENO"; then :
2088 ac_header_compiler=yes
2089 else
2090 ac_header_compiler=no
2091 fi
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2094 $as_echo "$ac_header_compiler" >&6; }
2095
2096 # Is the header present?
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2098 $as_echo_n "checking $2 presence... " >&6; }
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2101 #include <$2>
2102 _ACEOF
2103 if ac_fn_cxx_try_cpp "$LINENO"; then :
2104 ac_header_preproc=yes
2105 else
2106 ac_header_preproc=no
2107 fi
2108 rm -f conftest.err conftest.i conftest.$ac_ext
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2110 $as_echo "$ac_header_preproc" >&6; }
2111
2112 # So? What about this header?
2113 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2114 yes:no: )
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2116 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2118 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2119 ;;
2120 no:yes:* )
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2122 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2124 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2126 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2128 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2130 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2131 ;;
2132 esac
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2134 $as_echo_n "checking for $2... " >&6; }
2135 if eval \${$3+:} false; then :
2136 $as_echo_n "(cached) " >&6
2137 else
2138 eval "$3=\$ac_header_compiler"
2139 fi
2140 eval ac_res=\$$3
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143 fi
2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145
2146 } # ac_fn_cxx_check_header_mongrel
2147
2148 # ac_fn_cxx_try_run LINENO
2149 # ------------------------
2150 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2151 # that executables *can* be run.
2152 ac_fn_cxx_try_run ()
2153 {
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 if { { ac_try="$ac_link"
2156 case "(($ac_try" in
2157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158 *) ac_try_echo=$ac_try;;
2159 esac
2160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2161 $as_echo "$ac_try_echo"; } >&5
2162 (eval "$ac_link") 2>&5
2163 ac_status=$?
2164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2165 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2166 { { case "(($ac_try" in
2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168 *) ac_try_echo=$ac_try;;
2169 esac
2170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2171 $as_echo "$ac_try_echo"; } >&5
2172 (eval "$ac_try") 2>&5
2173 ac_status=$?
2174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2175 test $ac_status = 0; }; }; then :
2176 ac_retval=0
2177 else
2178 $as_echo "$as_me: program exited with status $ac_status" >&5
2179 $as_echo "$as_me: failed program was:" >&5
2180 sed 's/^/| /' conftest.$ac_ext >&5
2181
2182 ac_retval=$ac_status
2183 fi
2184 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2185 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186 as_fn_set_status $ac_retval
2187
2188 } # ac_fn_cxx_try_run
2189
2190 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2191 # ---------------------------------------------------------
2192 # Tests whether HEADER exists and can be compiled using the include files in
2193 # INCLUDES, setting the cache variable VAR accordingly.
2194 ac_fn_cxx_check_header_compile ()
2195 {
2196 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2198 $as_echo_n "checking for $2... " >&6; }
2199 if eval \${$3+:} false; then :
2200 $as_echo_n "(cached) " >&6
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2204 $4
2205 #include <$2>
2206 _ACEOF
2207 if ac_fn_cxx_try_compile "$LINENO"; then :
2208 eval "$3=yes"
2209 else
2210 eval "$3=no"
2211 fi
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 fi
2214 eval ac_res=\$$3
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216 $as_echo "$ac_res" >&6; }
2217 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2218
2219 } # ac_fn_cxx_check_header_compile
2220
2221 # ac_fn_c_try_cpp LINENO
2222 # ----------------------
2223 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2224 ac_fn_c_try_cpp ()
2225 {
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 if { { ac_try="$ac_cpp conftest.$ac_ext"
2228 case "(($ac_try" in
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2231 esac
2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233 $as_echo "$ac_try_echo"; } >&5
2234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2235 ac_status=$?
2236 if test -s conftest.err; then
2237 grep -v '^ *+' conftest.err >conftest.er1
2238 cat conftest.er1 >&5
2239 mv -f conftest.er1 conftest.err
2240 fi
2241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242 test $ac_status = 0; } > conftest.i && {
2243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2244 test ! -s conftest.err
2245 }; then :
2246 ac_retval=0
2247 else
2248 $as_echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.$ac_ext >&5
2250
2251 ac_retval=1
2252 fi
2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254 as_fn_set_status $ac_retval
2255
2256 } # ac_fn_c_try_cpp
2257
2258 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2259 # ----------------------------------------------
2260 # Tries to find the compile-time value of EXPR in a program that includes
2261 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2262 # computed
2263 ac_fn_cxx_compute_int ()
2264 {
2265 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2266 if test "$cross_compiling" = yes; then
2267 # Depending upon the size, compute the lo and hi bounds.
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2270 $4
2271 int
2272 main ()
2273 {
2274 static int test_array [1 - 2 * !(($2) >= 0)];
2275 test_array [0] = 0;
2276 return test_array [0];
2277
2278 ;
2279 return 0;
2280 }
2281 _ACEOF
2282 if ac_fn_cxx_try_compile "$LINENO"; then :
2283 ac_lo=0 ac_mid=0
2284 while :; do
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2287 $4
2288 int
2289 main ()
2290 {
2291 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2292 test_array [0] = 0;
2293 return test_array [0];
2294
2295 ;
2296 return 0;
2297 }
2298 _ACEOF
2299 if ac_fn_cxx_try_compile "$LINENO"; then :
2300 ac_hi=$ac_mid; break
2301 else
2302 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2303 if test $ac_lo -le $ac_mid; then
2304 ac_lo= ac_hi=
2305 break
2306 fi
2307 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2308 fi
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 done
2311 else
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2314 $4
2315 int
2316 main ()
2317 {
2318 static int test_array [1 - 2 * !(($2) < 0)];
2319 test_array [0] = 0;
2320 return test_array [0];
2321
2322 ;
2323 return 0;
2324 }
2325 _ACEOF
2326 if ac_fn_cxx_try_compile "$LINENO"; then :
2327 ac_hi=-1 ac_mid=-1
2328 while :; do
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2331 $4
2332 int
2333 main ()
2334 {
2335 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2336 test_array [0] = 0;
2337 return test_array [0];
2338
2339 ;
2340 return 0;
2341 }
2342 _ACEOF
2343 if ac_fn_cxx_try_compile "$LINENO"; then :
2344 ac_lo=$ac_mid; break
2345 else
2346 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2347 if test $ac_mid -le $ac_hi; then
2348 ac_lo= ac_hi=
2349 break
2350 fi
2351 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2352 fi
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354 done
2355 else
2356 ac_lo= ac_hi=
2357 fi
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 fi
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 # Binary search between lo and hi bounds.
2362 while test "x$ac_lo" != "x$ac_hi"; do
2363 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2366 $4
2367 int
2368 main ()
2369 {
2370 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2371 test_array [0] = 0;
2372 return test_array [0];
2373
2374 ;
2375 return 0;
2376 }
2377 _ACEOF
2378 if ac_fn_cxx_try_compile "$LINENO"; then :
2379 ac_hi=$ac_mid
2380 else
2381 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2382 fi
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 done
2385 case $ac_lo in #((
2386 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2387 '') ac_retval=1 ;;
2388 esac
2389 else
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2392 $4
2393 static long int longval () { return $2; }
2394 static unsigned long int ulongval () { return $2; }
2395 #include <stdio.h>
2396 #include <stdlib.h>
2397 int
2398 main ()
2399 {
2400
2401 FILE *f = fopen ("conftest.val", "w");
2402 if (! f)
2403 return 1;
2404 if (($2) < 0)
2405 {
2406 long int i = longval ();
2407 if (i != ($2))
2408 return 1;
2409 fprintf (f, "%ld", i);
2410 }
2411 else
2412 {
2413 unsigned long int i = ulongval ();
2414 if (i != ($2))
2415 return 1;
2416 fprintf (f, "%lu", i);
2417 }
2418 /* Do not output a trailing newline, as this causes \r\n confusion
2419 on some platforms. */
2420 return ferror (f) || fclose (f) != 0;
2421
2422 ;
2423 return 0;
2424 }
2425 _ACEOF
2426 if ac_fn_cxx_try_run "$LINENO"; then :
2427 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2428 else
2429 ac_retval=1
2430 fi
2431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2432 conftest.$ac_objext conftest.beam conftest.$ac_ext
2433 rm -f conftest.val
2434
2435 fi
2436 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2437 as_fn_set_status $ac_retval
2438
2439 } # ac_fn_cxx_compute_int
2440
2441 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2442 # ---------------------------------------------
2443 # Tests whether TYPE exists after having included INCLUDES, setting cache
2444 # variable VAR accordingly.
2445 ac_fn_cxx_check_type ()
2446 {
2447 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2449 $as_echo_n "checking for $2... " >&6; }
2450 if eval \${$3+:} false; then :
2451 $as_echo_n "(cached) " >&6
2452 else
2453 eval "$3=no"
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h. */
2456 $4
2457 int
2458 main ()
2459 {
2460 if (sizeof ($2))
2461 return 0;
2462 ;
2463 return 0;
2464 }
2465 _ACEOF
2466 if ac_fn_cxx_try_compile "$LINENO"; then :
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2469 $4
2470 int
2471 main ()
2472 {
2473 if (sizeof (($2)))
2474 return 0;
2475 ;
2476 return 0;
2477 }
2478 _ACEOF
2479 if ac_fn_cxx_try_compile "$LINENO"; then :
2480
2481 else
2482 eval "$3=yes"
2483 fi
2484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485 fi
2486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487 fi
2488 eval ac_res=\$$3
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2490 $as_echo "$ac_res" >&6; }
2491 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2492
2493 } # ac_fn_cxx_check_type
2494
2495 # ac_fn_c_find_intX_t LINENO BITS VAR
2496 # -----------------------------------
2497 # Finds a signed integer type with width BITS, setting cache variable VAR
2498 # accordingly.
2499 ac_fn_c_find_intX_t ()
2500 {
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2503 $as_echo_n "checking for int$2_t... " >&6; }
2504 if eval \${$3+:} false; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 eval "$3=no"
2508 # Order is important - never check a type that is potentially smaller
2509 # than half of the expected target width.
2510 for ac_type in int$2_t 'int' 'long int' \
2511 'long long int' 'short int' 'signed char'; do
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2514 $ac_includes_default
2515 enum { N = $2 / 2 - 1 };
2516 int
2517 main ()
2518 {
2519 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2520 test_array [0] = 0;
2521 return test_array [0];
2522
2523 ;
2524 return 0;
2525 }
2526 _ACEOF
2527 if ac_fn_cxx_try_compile "$LINENO"; then :
2528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h. */
2530 $ac_includes_default
2531 enum { N = $2 / 2 - 1 };
2532 int
2533 main ()
2534 {
2535 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2536 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2537 test_array [0] = 0;
2538 return test_array [0];
2539
2540 ;
2541 return 0;
2542 }
2543 _ACEOF
2544 if ac_fn_cxx_try_compile "$LINENO"; then :
2545
2546 else
2547 case $ac_type in #(
2548 int$2_t) :
2549 eval "$3=yes" ;; #(
2550 *) :
2551 eval "$3=\$ac_type" ;;
2552 esac
2553 fi
2554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2555 fi
2556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2557 if eval test \"x\$"$3"\" = x"no"; then :
2558
2559 else
2560 break
2561 fi
2562 done
2563 fi
2564 eval ac_res=\$$3
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2568
2569 } # ac_fn_c_find_intX_t
2570
2571 # ac_fn_cxx_try_link LINENO
2572 # -------------------------
2573 # Try to link conftest.$ac_ext, and return whether this succeeded.
2574 ac_fn_cxx_try_link ()
2575 {
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 rm -f conftest.$ac_objext conftest$ac_exeext
2578 if { { ac_try="$ac_link"
2579 case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2582 esac
2583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2584 $as_echo "$ac_try_echo"; } >&5
2585 (eval "$ac_link") 2>conftest.err
2586 ac_status=$?
2587 if test -s conftest.err; then
2588 grep -v '^ *+' conftest.err >conftest.er1
2589 cat conftest.er1 >&5
2590 mv -f conftest.er1 conftest.err
2591 fi
2592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2593 test $ac_status = 0; } && {
2594 test -z "$ac_cxx_werror_flag" ||
2595 test ! -s conftest.err
2596 } && test -s conftest$ac_exeext && {
2597 test "$cross_compiling" = yes ||
2598 test -x conftest$ac_exeext
2599 }; then :
2600 ac_retval=0
2601 else
2602 $as_echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 ac_retval=1
2606 fi
2607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2609 # interfere with the next link command; also delete a directory that is
2610 # left behind by Apple's compiler. We do this before executing the actions.
2611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2613 as_fn_set_status $ac_retval
2614
2615 } # ac_fn_cxx_try_link
2616
2617 # ac_fn_c_find_uintX_t LINENO BITS VAR
2618 # ------------------------------------
2619 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2620 # accordingly.
2621 ac_fn_c_find_uintX_t ()
2622 {
2623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2625 $as_echo_n "checking for uint$2_t... " >&6; }
2626 if eval \${$3+:} false; then :
2627 $as_echo_n "(cached) " >&6
2628 else
2629 eval "$3=no"
2630 # Order is important - never check a type that is potentially smaller
2631 # than half of the expected target width.
2632 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2633 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635 /* end confdefs.h. */
2636 $ac_includes_default
2637 int
2638 main ()
2639 {
2640 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2641 test_array [0] = 0;
2642 return test_array [0];
2643
2644 ;
2645 return 0;
2646 }
2647 _ACEOF
2648 if ac_fn_cxx_try_compile "$LINENO"; then :
2649 case $ac_type in #(
2650 uint$2_t) :
2651 eval "$3=yes" ;; #(
2652 *) :
2653 eval "$3=\$ac_type" ;;
2654 esac
2655 fi
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657 if eval test \"x\$"$3"\" = x"no"; then :
2658
2659 else
2660 break
2661 fi
2662 done
2663 fi
2664 eval ac_res=\$$3
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2666 $as_echo "$ac_res" >&6; }
2667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2668
2669 } # ac_fn_c_find_uintX_t
2670
2671 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2672 # ------------------------------------------------
2673 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2674 ac_fn_cxx_check_header_preproc ()
2675 {
2676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2678 $as_echo_n "checking for $2... " >&6; }
2679 if eval \${$3+:} false; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h. */
2684 #include <$2>
2685 _ACEOF
2686 if ac_fn_cxx_try_cpp "$LINENO"; then :
2687 eval "$3=yes"
2688 else
2689 eval "$3=no"
2690 fi
2691 rm -f conftest.err conftest.i conftest.$ac_ext
2692 fi
2693 eval ac_res=\$$3
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2695 $as_echo "$ac_res" >&6; }
2696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2697
2698 } # ac_fn_cxx_check_header_preproc
2699
2700 # ac_fn_cxx_check_func LINENO FUNC VAR
2701 # ------------------------------------
2702 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2703 ac_fn_cxx_check_func ()
2704 {
2705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2707 $as_echo_n "checking for $2... " >&6; }
2708 if eval \${$3+:} false; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2712 /* end confdefs.h. */
2713 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2715 #define $2 innocuous_$2
2716
2717 /* System header to define __stub macros and hopefully few prototypes,
2718 which can conflict with char $2 (); below.
2719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2720 <limits.h> exists even on freestanding compilers. */
2721
2722 #ifdef __STDC__
2723 # include <limits.h>
2724 #else
2725 # include <assert.h>
2726 #endif
2727
2728 #undef $2
2729
2730 /* Override any GCC internal prototype to avoid an error.
2731 Use char because int might match the return type of a GCC
2732 builtin and then its argument prototype would still apply. */
2733 #ifdef __cplusplus
2734 extern "C"
2735 #endif
2736 char $2 ();
2737 /* The GNU C library defines this for functions which it implements
2738 to always fail with ENOSYS. Some functions are actually named
2739 something starting with __ and the normal name is an alias. */
2740 #if defined __stub_$2 || defined __stub___$2
2741 choke me
2742 #endif
2743
2744 int
2745 main ()
2746 {
2747 return $2 ();
2748 ;
2749 return 0;
2750 }
2751 _ACEOF
2752 if ac_fn_cxx_try_link "$LINENO"; then :
2753 eval "$3=yes"
2754 else
2755 eval "$3=no"
2756 fi
2757 rm -f core conftest.err conftest.$ac_objext \
2758 conftest$ac_exeext conftest.$ac_ext
2759 fi
2760 eval ac_res=\$$3
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2762 $as_echo "$ac_res" >&6; }
2763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2764
2765 } # ac_fn_cxx_check_func
2766
2767 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2768 # -----------------------------------------------
2769 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2770 # accordingly.
2771 ac_fn_cxx_check_decl ()
2772 {
2773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2774 as_decl_name=`echo $2|sed 's/ *(.*//'`
2775 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2777 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2778 if eval \${$3+:} false; then :
2779 $as_echo_n "(cached) " >&6
2780 else
2781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2782 /* end confdefs.h. */
2783 $4
2784 int
2785 main ()
2786 {
2787 #ifndef $as_decl_name
2788 #ifdef __cplusplus
2789 (void) $as_decl_use;
2790 #else
2791 (void) $as_decl_name;
2792 #endif
2793 #endif
2794
2795 ;
2796 return 0;
2797 }
2798 _ACEOF
2799 if ac_fn_cxx_try_compile "$LINENO"; then :
2800 eval "$3=yes"
2801 else
2802 eval "$3=no"
2803 fi
2804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 fi
2806 eval ac_res=\$$3
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2808 $as_echo "$ac_res" >&6; }
2809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2810
2811 } # ac_fn_cxx_check_decl
2812
2813 # ac_fn_c_try_link LINENO
2814 # -----------------------
2815 # Try to link conftest.$ac_ext, and return whether this succeeded.
2816 ac_fn_c_try_link ()
2817 {
2818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2819 rm -f conftest.$ac_objext conftest$ac_exeext
2820 if { { ac_try="$ac_link"
2821 case "(($ac_try" in
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2824 esac
2825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2826 $as_echo "$ac_try_echo"; } >&5
2827 (eval "$ac_link") 2>conftest.err
2828 ac_status=$?
2829 if test -s conftest.err; then
2830 grep -v '^ *+' conftest.err >conftest.er1
2831 cat conftest.er1 >&5
2832 mv -f conftest.er1 conftest.err
2833 fi
2834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2835 test $ac_status = 0; } && {
2836 test -z "$ac_c_werror_flag" ||
2837 test ! -s conftest.err
2838 } && test -s conftest$ac_exeext && {
2839 test "$cross_compiling" = yes ||
2840 test -x conftest$ac_exeext
2841 }; then :
2842 ac_retval=0
2843 else
2844 $as_echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2846
2847 ac_retval=1
2848 fi
2849 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2850 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2851 # interfere with the next link command; also delete a directory that is
2852 # left behind by Apple's compiler. We do this before executing the actions.
2853 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2855 as_fn_set_status $ac_retval
2856
2857 } # ac_fn_c_try_link
2858
2859 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2860 # ----------------------------------------------
2861 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2862 ac_fn_c_check_header_preproc ()
2863 {
2864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2866 $as_echo_n "checking for $2... " >&6; }
2867 if eval \${$3+:} false; then :
2868 $as_echo_n "(cached) " >&6
2869 else
2870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2871 /* end confdefs.h. */
2872 #include <$2>
2873 _ACEOF
2874 if ac_fn_c_try_cpp "$LINENO"; then :
2875 eval "$3=yes"
2876 else
2877 eval "$3=no"
2878 fi
2879 rm -f conftest.err conftest.i conftest.$ac_ext
2880 fi
2881 eval ac_res=\$$3
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2883 $as_echo "$ac_res" >&6; }
2884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2885
2886 } # ac_fn_c_check_header_preproc
2887
2888 # ac_fn_c_check_func LINENO FUNC VAR
2889 # ----------------------------------
2890 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2891 ac_fn_c_check_func ()
2892 {
2893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2895 $as_echo_n "checking for $2... " >&6; }
2896 if eval \${$3+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2900 /* end confdefs.h. */
2901 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2903 #define $2 innocuous_$2
2904
2905 /* System header to define __stub macros and hopefully few prototypes,
2906 which can conflict with char $2 (); below.
2907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2908 <limits.h> exists even on freestanding compilers. */
2909
2910 #ifdef __STDC__
2911 # include <limits.h>
2912 #else
2913 # include <assert.h>
2914 #endif
2915
2916 #undef $2
2917
2918 /* Override any GCC internal prototype to avoid an error.
2919 Use char because int might match the return type of a GCC
2920 builtin and then its argument prototype would still apply. */
2921 #ifdef __cplusplus
2922 extern "C"
2923 #endif
2924 char $2 ();
2925 /* The GNU C library defines this for functions which it implements
2926 to always fail with ENOSYS. Some functions are actually named
2927 something starting with __ and the normal name is an alias. */
2928 #if defined __stub_$2 || defined __stub___$2
2929 choke me
2930 #endif
2931
2932 int
2933 main ()
2934 {
2935 return $2 ();
2936 ;
2937 return 0;
2938 }
2939 _ACEOF
2940 if ac_fn_c_try_link "$LINENO"; then :
2941 eval "$3=yes"
2942 else
2943 eval "$3=no"
2944 fi
2945 rm -f core conftest.err conftest.$ac_objext \
2946 conftest$ac_exeext conftest.$ac_ext
2947 fi
2948 eval ac_res=\$$3
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2950 $as_echo "$ac_res" >&6; }
2951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2952
2953 } # ac_fn_c_check_func
2954 cat >config.log <<_ACEOF
2955 This file contains any messages produced by compilers while
2956 running configure, to aid debugging if configure makes a mistake.
2957
2958 It was created by $as_me, which was
2959 generated by GNU Autoconf 2.69. Invocation command line was
2960
2961 $ $0 $@
2962
2963 _ACEOF
2964 exec 5>>config.log
2965 {
2966 cat <<_ASUNAME
2967 ## --------- ##
2968 ## Platform. ##
2969 ## --------- ##
2970
2971 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2972 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2973 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2974 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2975 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2976
2977 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2978 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2979
2980 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2981 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2982 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2983 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2984 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2985 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2986 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2987
2988 _ASUNAME
2989
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 $as_echo "PATH: $as_dir"
2996 done
2997 IFS=$as_save_IFS
2998
2999 } >&5
3000
3001 cat >&5 <<_ACEOF
3002
3003
3004 ## ----------- ##
3005 ## Core tests. ##
3006 ## ----------- ##
3007
3008 _ACEOF
3009
3010
3011 # Keep a trace of the command line.
3012 # Strip out --no-create and --no-recursion so they do not pile up.
3013 # Strip out --silent because we don't want to record it for future runs.
3014 # Also quote any args containing shell meta-characters.
3015 # Make two passes to allow for proper duplicate-argument suppression.
3016 ac_configure_args=
3017 ac_configure_args0=
3018 ac_configure_args1=
3019 ac_must_keep_next=false
3020 for ac_pass in 1 2
3021 do
3022 for ac_arg
3023 do
3024 case $ac_arg in
3025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3027 | -silent | --silent | --silen | --sile | --sil)
3028 continue ;;
3029 *\'*)
3030 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3031 esac
3032 case $ac_pass in
3033 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3034 2)
3035 as_fn_append ac_configure_args1 " '$ac_arg'"
3036 if test $ac_must_keep_next = true; then
3037 ac_must_keep_next=false # Got value, back to normal.
3038 else
3039 case $ac_arg in
3040 *=* | --config-cache | -C | -disable-* | --disable-* \
3041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3043 | -with-* | --with-* | -without-* | --without-* | --x)
3044 case "$ac_configure_args0 " in
3045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3046 esac
3047 ;;
3048 -* ) ac_must_keep_next=true ;;
3049 esac
3050 fi
3051 as_fn_append ac_configure_args " '$ac_arg'"
3052 ;;
3053 esac
3054 done
3055 done
3056 { ac_configure_args0=; unset ac_configure_args0;}
3057 { ac_configure_args1=; unset ac_configure_args1;}
3058
3059 # When interrupted or exit'd, cleanup temporary files, and complete
3060 # config.log. We remove comments because anyway the quotes in there
3061 # would cause problems or look ugly.
3062 # WARNING: Use '\'' to represent an apostrophe within the trap.
3063 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3064 trap 'exit_status=$?
3065 # Save into config.log some information that might help in debugging.
3066 {
3067 echo
3068
3069 $as_echo "## ---------------- ##
3070 ## Cache variables. ##
3071 ## ---------------- ##"
3072 echo
3073 # The following way of writing the cache mishandles newlines in values,
3074 (
3075 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3076 eval ac_val=\$$ac_var
3077 case $ac_val in #(
3078 *${as_nl}*)
3079 case $ac_var in #(
3080 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3081 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3082 esac
3083 case $ac_var in #(
3084 _ | IFS | as_nl) ;; #(
3085 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3086 *) { eval $ac_var=; unset $ac_var;} ;;
3087 esac ;;
3088 esac
3089 done
3090 (set) 2>&1 |
3091 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3092 *${as_nl}ac_space=\ *)
3093 sed -n \
3094 "s/'\''/'\''\\\\'\'''\''/g;
3095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3096 ;; #(
3097 *)
3098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3099 ;;
3100 esac |
3101 sort
3102 )
3103 echo
3104
3105 $as_echo "## ----------------- ##
3106 ## Output variables. ##
3107 ## ----------------- ##"
3108 echo
3109 for ac_var in $ac_subst_vars
3110 do
3111 eval ac_val=\$$ac_var
3112 case $ac_val in
3113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3114 esac
3115 $as_echo "$ac_var='\''$ac_val'\''"
3116 done | sort
3117 echo
3118
3119 if test -n "$ac_subst_files"; then
3120 $as_echo "## ------------------- ##
3121 ## File substitutions. ##
3122 ## ------------------- ##"
3123 echo
3124 for ac_var in $ac_subst_files
3125 do
3126 eval ac_val=\$$ac_var
3127 case $ac_val in
3128 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3129 esac
3130 $as_echo "$ac_var='\''$ac_val'\''"
3131 done | sort
3132 echo
3133 fi
3134
3135 if test -s confdefs.h; then
3136 $as_echo "## ----------- ##
3137 ## confdefs.h. ##
3138 ## ----------- ##"
3139 echo
3140 cat confdefs.h
3141 echo
3142 fi
3143 test "$ac_signal" != 0 &&
3144 $as_echo "$as_me: caught signal $ac_signal"
3145 $as_echo "$as_me: exit $exit_status"
3146 } >&5
3147 rm -f core *.core core.conftest.* &&
3148 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3149 exit $exit_status
3150 ' 0
3151 for ac_signal in 1 2 13 15; do
3152 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3153 done
3154 ac_signal=0
3155
3156 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3157 rm -f -r conftest* confdefs.h
3158
3159 $as_echo "/* confdefs.h */" > confdefs.h
3160
3161 # Predefined preprocessor variables.
3162
3163 cat >>confdefs.h <<_ACEOF
3164 #define PACKAGE_NAME "$PACKAGE_NAME"
3165 _ACEOF
3166
3167 cat >>confdefs.h <<_ACEOF
3168 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3169 _ACEOF
3170
3171 cat >>confdefs.h <<_ACEOF
3172 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3173 _ACEOF
3174
3175 cat >>confdefs.h <<_ACEOF
3176 #define PACKAGE_STRING "$PACKAGE_STRING"
3177 _ACEOF
3178
3179 cat >>confdefs.h <<_ACEOF
3180 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3181 _ACEOF
3182
3183 cat >>confdefs.h <<_ACEOF
3184 #define PACKAGE_URL "$PACKAGE_URL"
3185 _ACEOF
3186
3187
3188 # Let the site file select an alternate cache file if it wants to.
3189 # Prefer an explicitly selected file to automatically selected ones.
3190 ac_site_file1=NONE
3191 ac_site_file2=NONE
3192 if test -n "$CONFIG_SITE"; then
3193 # We do not want a PATH search for config.site.
3194 case $CONFIG_SITE in #((
3195 -*) ac_site_file1=./$CONFIG_SITE;;
3196 */*) ac_site_file1=$CONFIG_SITE;;
3197 *) ac_site_file1=./$CONFIG_SITE;;
3198 esac
3199 elif test "x$prefix" != xNONE; then
3200 ac_site_file1=$prefix/share/config.site
3201 ac_site_file2=$prefix/etc/config.site
3202 else
3203 ac_site_file1=$ac_default_prefix/share/config.site
3204 ac_site_file2=$ac_default_prefix/etc/config.site
3205 fi
3206 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3207 do
3208 test "x$ac_site_file" = xNONE && continue
3209 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3211 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3212 sed 's/^/| /' "$ac_site_file" >&5
3213 . "$ac_site_file" \
3214 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3216 as_fn_error $? "failed to load site script $ac_site_file
3217 See \`config.log' for more details" "$LINENO" 5; }
3218 fi
3219 done
3220
3221 if test -r "$cache_file"; then
3222 # Some versions of bash will fail to source /dev/null (special files
3223 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3224 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3226 $as_echo "$as_me: loading cache $cache_file" >&6;}
3227 case $cache_file in
3228 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3229 *) . "./$cache_file";;
3230 esac
3231 fi
3232 else
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3234 $as_echo "$as_me: creating cache $cache_file" >&6;}
3235 >$cache_file
3236 fi
3237
3238 # Check that the precious variables saved in the cache have kept the same
3239 # value.
3240 ac_cache_corrupted=false
3241 for ac_var in $ac_precious_vars; do
3242 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3243 eval ac_new_set=\$ac_env_${ac_var}_set
3244 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3245 eval ac_new_val=\$ac_env_${ac_var}_value
3246 case $ac_old_set,$ac_new_set in
3247 set,)
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3249 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3250 ac_cache_corrupted=: ;;
3251 ,set)
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3253 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3254 ac_cache_corrupted=: ;;
3255 ,);;
3256 *)
3257 if test "x$ac_old_val" != "x$ac_new_val"; then
3258 # differences in whitespace do not lead to failure.
3259 ac_old_val_w=`echo x $ac_old_val`
3260 ac_new_val_w=`echo x $ac_new_val`
3261 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3263 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3264 ac_cache_corrupted=:
3265 else
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3267 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3268 eval $ac_var=\$ac_old_val
3269 fi
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3271 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3273 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3274 fi;;
3275 esac
3276 # Pass precious variables to config.status.
3277 if test "$ac_new_set" = set; then
3278 case $ac_new_val in
3279 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3280 *) ac_arg=$ac_var=$ac_new_val ;;
3281 esac
3282 case " $ac_configure_args " in
3283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3284 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3285 esac
3286 fi
3287 done
3288 if $ac_cache_corrupted; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3292 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3293 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3294 fi
3295 ## -------------------- ##
3296 ## Main body of script. ##
3297 ## -------------------- ##
3298
3299 ac_ext=c
3300 ac_cpp='$CPP $CPPFLAGS'
3301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3304
3305
3306
3307
3308
3309
3310 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3311
3312
3313 gcc_version=`cat $srcdir/BASE-VER`
3314
3315 # Determine the host, build, and target systems
3316 ac_aux_dir=
3317 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3318 if test -f "$ac_dir/install-sh"; then
3319 ac_aux_dir=$ac_dir
3320 ac_install_sh="$ac_aux_dir/install-sh -c"
3321 break
3322 elif test -f "$ac_dir/install.sh"; then
3323 ac_aux_dir=$ac_dir
3324 ac_install_sh="$ac_aux_dir/install.sh -c"
3325 break
3326 elif test -f "$ac_dir/shtool"; then
3327 ac_aux_dir=$ac_dir
3328 ac_install_sh="$ac_aux_dir/shtool install -c"
3329 break
3330 fi
3331 done
3332 if test -z "$ac_aux_dir"; then
3333 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3334 fi
3335
3336 # These three variables are undocumented and unsupported,
3337 # and are intended to be withdrawn in a future Autoconf release.
3338 # They can cause serious problems if a builder's source tree is in a directory
3339 # whose full name contains unusual characters.
3340 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3341 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3342 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3343
3344
3345 # Make sure we can run config.sub.
3346 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3347 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3348
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3350 $as_echo_n "checking build system type... " >&6; }
3351 if ${ac_cv_build+:} false; then :
3352 $as_echo_n "(cached) " >&6
3353 else
3354 ac_build_alias=$build_alias
3355 test "x$ac_build_alias" = x &&
3356 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3357 test "x$ac_build_alias" = x &&
3358 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3359 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3360 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3361
3362 fi
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3364 $as_echo "$ac_cv_build" >&6; }
3365 case $ac_cv_build in
3366 *-*-*) ;;
3367 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3368 esac
3369 build=$ac_cv_build
3370 ac_save_IFS=$IFS; IFS='-'
3371 set x $ac_cv_build
3372 shift
3373 build_cpu=$1
3374 build_vendor=$2
3375 shift; shift
3376 # Remember, the first character of IFS is used to create $*,
3377 # except with old shells:
3378 build_os=$*
3379 IFS=$ac_save_IFS
3380 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3381
3382
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3384 $as_echo_n "checking host system type... " >&6; }
3385 if ${ac_cv_host+:} false; then :
3386 $as_echo_n "(cached) " >&6
3387 else
3388 if test "x$host_alias" = x; then
3389 ac_cv_host=$ac_cv_build
3390 else
3391 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3392 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3393 fi
3394
3395 fi
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3397 $as_echo "$ac_cv_host" >&6; }
3398 case $ac_cv_host in
3399 *-*-*) ;;
3400 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3401 esac
3402 host=$ac_cv_host
3403 ac_save_IFS=$IFS; IFS='-'
3404 set x $ac_cv_host
3405 shift
3406 host_cpu=$1
3407 host_vendor=$2
3408 shift; shift
3409 # Remember, the first character of IFS is used to create $*,
3410 # except with old shells:
3411 host_os=$*
3412 IFS=$ac_save_IFS
3413 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3414
3415
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3417 $as_echo_n "checking target system type... " >&6; }
3418 if ${ac_cv_target+:} false; then :
3419 $as_echo_n "(cached) " >&6
3420 else
3421 if test "x$target_alias" = x; then
3422 ac_cv_target=$ac_cv_host
3423 else
3424 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3425 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3426 fi
3427
3428 fi
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3430 $as_echo "$ac_cv_target" >&6; }
3431 case $ac_cv_target in
3432 *-*-*) ;;
3433 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3434 esac
3435 target=$ac_cv_target
3436 ac_save_IFS=$IFS; IFS='-'
3437 set x $ac_cv_target
3438 shift
3439 target_cpu=$1
3440 target_vendor=$2
3441 shift; shift
3442 # Remember, the first character of IFS is used to create $*,
3443 # except with old shells:
3444 target_os=$*
3445 IFS=$ac_save_IFS
3446 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3447
3448
3449 # The aliases save the names the user supplied, while $host etc.
3450 # will get canonicalized.
3451 test -n "$target_alias" &&
3452 test "$program_prefix$program_suffix$program_transform_name" = \
3453 NONENONEs,x,x, &&
3454 program_prefix=${target_alias}-
3455
3456 # Determine the noncanonical host name, for Ada.
3457 case ${build_alias} in
3458 "") build_noncanonical=${build} ;;
3459 *) build_noncanonical=${build_alias} ;;
3460 esac
3461
3462 case ${host_alias} in
3463 "") host_noncanonical=${build_noncanonical} ;;
3464 *) host_noncanonical=${host_alias} ;;
3465 esac
3466
3467
3468
3469
3470 # Determine the noncanonical target name, for directory use.
3471 case ${target_alias} in
3472 "") target_noncanonical=${host_noncanonical} ;;
3473 *) target_noncanonical=${target_alias} ;;
3474 esac
3475
3476
3477
3478
3479 # Used for constructing correct paths for offload compilers.
3480 real_target_noncanonical=${target_noncanonical}
3481 accel_dir_suffix=
3482
3483 # Determine the target- and build-specific subdirectories
3484
3485 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3486 # have matching libraries, they should use host libraries: Makefile.tpl
3487 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3488 # However, they still use the build modules, because the corresponding
3489 # host modules (e.g. bison) are only built for the host when bootstrap
3490 # finishes. So:
3491 # - build_subdir is where we find build modules, and never changes.
3492 # - build_libsubdir is where we find build libraries, and can be overridden.
3493
3494 # Prefix 'build-' so this never conflicts with target_subdir.
3495 build_subdir="build-${build_noncanonical}"
3496
3497 # Check whether --with-build-libsubdir was given.
3498 if test "${with_build_libsubdir+set}" = set; then :
3499 withval=$with_build_libsubdir; build_libsubdir="$withval"
3500 else
3501 build_libsubdir="$build_subdir"
3502 fi
3503
3504 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3505 if ( test $srcdir = . && test -d gcc ) \
3506 || test -d $srcdir/../host-${host_noncanonical}; then
3507 host_subdir="host-${host_noncanonical}"
3508 else
3509 host_subdir=.
3510 fi
3511 # No prefix.
3512 target_subdir=${target_noncanonical}
3513
3514
3515 # Set program_transform_name
3516 test "$program_prefix" != NONE &&
3517 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3518 # Use a double $ so make ignores it.
3519 test "$program_suffix" != NONE &&
3520 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3521 # Double any \ or $.
3522 # By default was `s,x,x', remove it if useless.
3523 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3524 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3525
3526
3527 # Check for bogus environment variables.
3528 # Test if LIBRARY_PATH contains the notation for the current directory
3529 # since this would lead to problems installing/building glibc.
3530 # LIBRARY_PATH contains the current directory if one of the following
3531 # is true:
3532 # - one of the terminals (":" and ";") is the first or last sign
3533 # - two terminals occur directly after each other
3534 # - the path contains an element with a dot in it
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3536 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3537 case ${LIBRARY_PATH} in
3538 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3539 library_path_setting="contains current directory"
3540 ;;
3541 *)
3542 library_path_setting="ok"
3543 ;;
3544 esac
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3546 $as_echo "$library_path_setting" >&6; }
3547 if test "$library_path_setting" != "ok"; then
3548 as_fn_error $? "
3549 *** LIBRARY_PATH shouldn't contain the current directory when
3550 *** building gcc. Please change the environment variable
3551 *** and run configure again." "$LINENO" 5
3552 fi
3553
3554 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3555 # since this would lead to problems installing/building glibc.
3556 # GCC_EXEC_PREFIX contains the current directory if one of the following
3557 # is true:
3558 # - one of the terminals (":" and ";") is the first or last sign
3559 # - two terminals occur directly after each other
3560 # - the path contains an element with a dot in it
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3562 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3563 case ${GCC_EXEC_PREFIX} in
3564 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3565 gcc_exec_prefix_setting="contains current directory"
3566 ;;
3567 *)
3568 gcc_exec_prefix_setting="ok"
3569 ;;
3570 esac
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3572 $as_echo "$gcc_exec_prefix_setting" >&6; }
3573 if test "$gcc_exec_prefix_setting" != "ok"; then
3574 as_fn_error $? "
3575 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3576 *** building gcc. Please change the environment variable
3577 *** and run configure again." "$LINENO" 5
3578 fi
3579
3580 # -----------
3581 # Directories
3582 # -----------
3583
3584 # Specify the local prefix
3585 local_prefix=
3586
3587 # Check whether --with-local-prefix was given.
3588 if test "${with_local_prefix+set}" = set; then :
3589 withval=$with_local_prefix; case "${withval}" in
3590 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3591 no) ;;
3592 *) local_prefix=$with_local_prefix ;;
3593 esac
3594 fi
3595
3596
3597 # Default local prefix if it is empty
3598 if test x$local_prefix = x; then
3599 local_prefix=/usr/local
3600 fi
3601
3602
3603 # Check whether --with-native-system-header-dir was given.
3604 if test "${with_native_system_header_dir+set}" = set; then :
3605 withval=$with_native_system_header_dir;
3606 case ${with_native_system_header_dir} in
3607 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3608 /* | [A-Za-z]:[\\/]*) ;;
3609 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3610 esac
3611 configured_native_system_header_dir="${withval}"
3612
3613 else
3614 configured_native_system_header_dir=
3615 fi
3616
3617
3618
3619 # Check whether --with-build-sysroot was given.
3620 if test "${with_build_sysroot+set}" = set; then :
3621 withval=$with_build_sysroot; if test x"$withval" != x ; then
3622 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3623 fi
3624 else
3625 SYSROOT_CFLAGS_FOR_TARGET=
3626 fi
3627
3628
3629
3630 if test "x$prefix" = xNONE; then
3631 test_prefix=/usr/local
3632 else
3633 test_prefix=$prefix
3634 fi
3635 if test "x$exec_prefix" = xNONE; then
3636 test_exec_prefix=$test_prefix
3637 else
3638 test_exec_prefix=$exec_prefix
3639 fi
3640
3641
3642 # Check whether --with-sysroot was given.
3643 if test "${with_sysroot+set}" = set; then :
3644 withval=$with_sysroot;
3645 case ${with_sysroot} in
3646 /) ;;
3647 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3648 esac
3649 case ${with_sysroot} in
3650 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3651 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3652 esac
3653
3654 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3655 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3656
3657 case ${TARGET_SYSTEM_ROOT} in
3658 "${test_prefix}"|"${test_prefix}/"*|\
3659 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3660 '${prefix}'|'${prefix}/'*|\
3661 '${exec_prefix}'|'${exec_prefix}/'*)
3662 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3663 TARGET_SYSTEM_ROOT_DEFINE="$t"
3664 ;;
3665 esac
3666
3667 else
3668
3669 TARGET_SYSTEM_ROOT=
3670 TARGET_SYSTEM_ROOT_DEFINE=
3671 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3672
3673 fi
3674
3675
3676
3677
3678
3679 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3680 # passed in by the toplevel make and thus we'd get different behavior
3681 # depending on where we built the sources.
3682 gcc_gxx_include_dir=
3683 # Specify the g++ header file directory
3684
3685 # Check whether --with-gxx-include-dir was given.
3686 if test "${with_gxx_include_dir+set}" = set; then :
3687 withval=$with_gxx_include_dir; case "${withval}" in
3688 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3689 no) ;;
3690 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3691 esac
3692 fi
3693
3694
3695 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3696 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3697 # relative to the sysroot.
3698 gcc_gxx_include_dir_add_sysroot=0
3699
3700 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3701 if test x${gcc_gxx_include_dir} = x; then
3702 if test x${enable_version_specific_runtime_libs} = xyes; then
3703 gcc_gxx_include_dir='${libsubdir}/include/c++'
3704 else
3705 libstdcxx_incdir='include/c++/$(version)'
3706 if test x$host != x$target; then
3707 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3708 fi
3709 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3710 fi
3711 elif test "${with_sysroot+set}" = set; then
3712 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3713 if test "${gcc_gxx_without_sysroot}"; then
3714 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3715 gcc_gxx_include_dir_add_sysroot=1
3716 fi
3717 fi
3718
3719
3720 # Check whether --with-cpp_install_dir was given.
3721 if test "${with_cpp_install_dir+set}" = set; then :
3722 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3723 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3724 elif test x$withval != xno; then
3725 cpp_install_dir=$withval
3726 fi
3727 fi
3728
3729
3730 # We would like to our source tree to be readonly. However when releases or
3731 # pre-releases are generated, the flex/bison generated files as well as the
3732 # various formats of manuals need to be included along with the rest of the
3733 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3734 # just that.
3735
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3737 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3738 # Check whether --enable-generated-files-in-srcdir was given.
3739 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3740 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3741 else
3742 generated_files_in_srcdir=no
3743 fi
3744
3745
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3747 $as_echo "$generated_files_in_srcdir" >&6; }
3748
3749 if test "$generated_files_in_srcdir" = "yes"; then
3750 GENINSRC=''
3751 else
3752 GENINSRC='#'
3753 fi
3754
3755
3756 # -------------------
3757 # Find default linker
3758 # -------------------
3759
3760 # With GNU ld
3761
3762 # Check whether --with-gnu-ld was given.
3763 if test "${with_gnu_ld+set}" = set; then :
3764 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3765 else
3766 gnu_ld_flag=no
3767 fi
3768
3769
3770 case $target in
3771 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3772 *) ld64_flag=no;;
3773 esac
3774
3775 # With pre-defined ld
3776
3777 # Check whether --with-ld was given.
3778 if test "${with_ld+set}" = set; then :
3779 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3780 fi
3781
3782 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3783 if test ! -x "$DEFAULT_LINKER"; then
3784 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3785 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3786 gnu_ld_flag=yes
3787 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3788 ld64_flag=yes
3789 fi
3790
3791 cat >>confdefs.h <<_ACEOF
3792 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3793 _ACEOF
3794
3795 fi
3796
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3798 $as_echo_n "checking whether a default linker was specified... " >&6; }
3799 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3800 if test x"$gnu_ld_flag" = x"no"; then
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3802 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3803 else
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3805 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3806 fi
3807 else
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3810 fi
3811
3812 # With demangler in GNU ld
3813
3814 # Check whether --with-demangler-in-ld was given.
3815 if test "${with_demangler_in_ld+set}" = set; then :
3816 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3817 else
3818 demangler_in_ld=yes
3819 fi
3820
3821
3822 # ----------------------
3823 # Find default assembler
3824 # ----------------------
3825
3826 # With GNU as
3827
3828 # Check whether --with-gnu-as was given.
3829 if test "${with_gnu_as+set}" = set; then :
3830 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3831 else
3832 gas_flag=no
3833 fi
3834
3835
3836
3837 # Check whether --with-as was given.
3838 if test "${with_as+set}" = set; then :
3839 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3840 fi
3841
3842 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3843 if test ! -x "$DEFAULT_ASSEMBLER"; then
3844 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3845 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3846 gas_flag=yes
3847 fi
3848
3849 cat >>confdefs.h <<_ACEOF
3850 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3851 _ACEOF
3852
3853 fi
3854
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3856 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3857 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3858 if test x"$gas_flag" = x"no"; then
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3860 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3861 else
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3863 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3864 fi
3865 else
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3868 fi
3869
3870 # ---------------
3871 # Find C compiler
3872 # ---------------
3873
3874 # If a non-executable a.out is present (e.g. created by GNU as above even if
3875 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3876 # file, even when creating an executable, so an execution test fails.
3877 # Remove possible default executable files to avoid this.
3878 #
3879 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3880 # Autoconf includes it.
3881 rm -f a.out a.exe b.out
3882
3883 # Find the native compiler
3884 ac_ext=c
3885 ac_cpp='$CPP $CPPFLAGS'
3886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3889 if test -n "$ac_tool_prefix"; then
3890 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3891 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893 $as_echo_n "checking for $ac_word... " >&6; }
3894 if ${ac_cv_prog_CC+:} false; then :
3895 $as_echo_n "(cached) " >&6
3896 else
3897 if test -n "$CC"; then
3898 ac_cv_prog_CC="$CC" # Let the user override the test.
3899 else
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH
3902 do
3903 IFS=$as_save_IFS
3904 test -z "$as_dir" && as_dir=.
3905 for ac_exec_ext in '' $ac_executable_extensions; do
3906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3907 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 break 2
3910 fi
3911 done
3912 done
3913 IFS=$as_save_IFS
3914
3915 fi
3916 fi
3917 CC=$ac_cv_prog_CC
3918 if test -n "$CC"; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3920 $as_echo "$CC" >&6; }
3921 else
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3924 fi
3925
3926
3927 fi
3928 if test -z "$ac_cv_prog_CC"; then
3929 ac_ct_CC=$CC
3930 # Extract the first word of "gcc", so it can be a program name with args.
3931 set dummy gcc; ac_word=$2
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3933 $as_echo_n "checking for $ac_word... " >&6; }
3934 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3935 $as_echo_n "(cached) " >&6
3936 else
3937 if test -n "$ac_ct_CC"; then
3938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3939 else
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH
3942 do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3947 ac_cv_prog_ac_ct_CC="gcc"
3948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 break 2
3950 fi
3951 done
3952 done
3953 IFS=$as_save_IFS
3954
3955 fi
3956 fi
3957 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3958 if test -n "$ac_ct_CC"; then
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3960 $as_echo "$ac_ct_CC" >&6; }
3961 else
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963 $as_echo "no" >&6; }
3964 fi
3965
3966 if test "x$ac_ct_CC" = x; then
3967 CC=""
3968 else
3969 case $cross_compiling:$ac_tool_warned in
3970 yes:)
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3973 ac_tool_warned=yes ;;
3974 esac
3975 CC=$ac_ct_CC
3976 fi
3977 else
3978 CC="$ac_cv_prog_CC"
3979 fi
3980
3981 if test -z "$CC"; then
3982 if test -n "$ac_tool_prefix"; then
3983 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3984 set dummy ${ac_tool_prefix}cc; ac_word=$2
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986 $as_echo_n "checking for $ac_word... " >&6; }
3987 if ${ac_cv_prog_CC+:} false; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 if test -n "$CC"; then
3991 ac_cv_prog_CC="$CC" # Let the user override the test.
3992 else
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3995 do
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000 ac_cv_prog_CC="${ac_tool_prefix}cc"
4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4003 fi
4004 done
4005 done
4006 IFS=$as_save_IFS
4007
4008 fi
4009 fi
4010 CC=$ac_cv_prog_CC
4011 if test -n "$CC"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4013 $as_echo "$CC" >&6; }
4014 else
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4017 fi
4018
4019
4020 fi
4021 fi
4022 if test -z "$CC"; then
4023 # Extract the first word of "cc", so it can be a program name with args.
4024 set dummy cc; ac_word=$2
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026 $as_echo_n "checking for $ac_word... " >&6; }
4027 if ${ac_cv_prog_CC+:} false; then :
4028 $as_echo_n "(cached) " >&6
4029 else
4030 if test -n "$CC"; then
4031 ac_cv_prog_CC="$CC" # Let the user override the test.
4032 else
4033 ac_prog_rejected=no
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH
4036 do
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4041 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4042 ac_prog_rejected=yes
4043 continue
4044 fi
4045 ac_cv_prog_CC="cc"
4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 break 2
4048 fi
4049 done
4050 done
4051 IFS=$as_save_IFS
4052
4053 if test $ac_prog_rejected = yes; then
4054 # We found a bogon in the path, so make sure we never use it.
4055 set dummy $ac_cv_prog_CC
4056 shift
4057 if test $# != 0; then
4058 # We chose a different compiler from the bogus one.
4059 # However, it has the same basename, so the bogon will be chosen
4060 # first if we set CC to just the basename; use the full file name.
4061 shift
4062 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4063 fi
4064 fi
4065 fi
4066 fi
4067 CC=$ac_cv_prog_CC
4068 if test -n "$CC"; then
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4070 $as_echo "$CC" >&6; }
4071 else
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4073 $as_echo "no" >&6; }
4074 fi
4075
4076
4077 fi
4078 if test -z "$CC"; then
4079 if test -n "$ac_tool_prefix"; then
4080 for ac_prog in cl.exe
4081 do
4082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4083 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4085 $as_echo_n "checking for $ac_word... " >&6; }
4086 if ${ac_cv_prog_CC+:} false; then :
4087 $as_echo_n "(cached) " >&6
4088 else
4089 if test -n "$CC"; then
4090 ac_cv_prog_CC="$CC" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4094 do
4095 IFS=$as_save_IFS
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4101 break 2
4102 fi
4103 done
4104 done
4105 IFS=$as_save_IFS
4106
4107 fi
4108 fi
4109 CC=$ac_cv_prog_CC
4110 if test -n "$CC"; then
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4112 $as_echo "$CC" >&6; }
4113 else
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115 $as_echo "no" >&6; }
4116 fi
4117
4118
4119 test -n "$CC" && break
4120 done
4121 fi
4122 if test -z "$CC"; then
4123 ac_ct_CC=$CC
4124 for ac_prog in cl.exe
4125 do
4126 # Extract the first word of "$ac_prog", so it can be a program name with args.
4127 set dummy $ac_prog; ac_word=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 if test -n "$ac_ct_CC"; then
4134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4135 else
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH
4138 do
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4143 ac_cv_prog_ac_ct_CC="$ac_prog"
4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 break 2
4146 fi
4147 done
4148 done
4149 IFS=$as_save_IFS
4150
4151 fi
4152 fi
4153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4154 if test -n "$ac_ct_CC"; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4156 $as_echo "$ac_ct_CC" >&6; }
4157 else
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4160 fi
4161
4162
4163 test -n "$ac_ct_CC" && break
4164 done
4165
4166 if test "x$ac_ct_CC" = x; then
4167 CC=""
4168 else
4169 case $cross_compiling:$ac_tool_warned in
4170 yes:)
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4173 ac_tool_warned=yes ;;
4174 esac
4175 CC=$ac_ct_CC
4176 fi
4177 fi
4178
4179 fi
4180
4181
4182 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4184 as_fn_error $? "no acceptable C compiler found in \$PATH
4185 See \`config.log' for more details" "$LINENO" 5; }
4186
4187 # Provide some information about the compiler.
4188 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4189 set X $ac_compile
4190 ac_compiler=$2
4191 for ac_option in --version -v -V -qversion; do
4192 { { ac_try="$ac_compiler $ac_option >&5"
4193 case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196 esac
4197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4198 $as_echo "$ac_try_echo"; } >&5
4199 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4200 ac_status=$?
4201 if test -s conftest.err; then
4202 sed '10a\
4203 ... rest of stderr output deleted ...
4204 10q' conftest.err >conftest.er1
4205 cat conftest.er1 >&5
4206 fi
4207 rm -f conftest.er1 conftest.err
4208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4209 test $ac_status = 0; }
4210 done
4211
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214
4215 int
4216 main ()
4217 {
4218
4219 ;
4220 return 0;
4221 }
4222 _ACEOF
4223 ac_clean_files_save=$ac_clean_files
4224 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4225 # Try to create an executable without -o first, disregard a.out.
4226 # It will help us diagnose broken compilers, and finding out an intuition
4227 # of exeext.
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4229 $as_echo_n "checking whether the C compiler works... " >&6; }
4230 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4231
4232 # The possible output files:
4233 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4234
4235 ac_rmfiles=
4236 for ac_file in $ac_files
4237 do
4238 case $ac_file in
4239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4240 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4241 esac
4242 done
4243 rm -f $ac_rmfiles
4244
4245 if { { ac_try="$ac_link_default"
4246 case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4249 esac
4250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4251 $as_echo "$ac_try_echo"; } >&5
4252 (eval "$ac_link_default") 2>&5
4253 ac_status=$?
4254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4255 test $ac_status = 0; }; then :
4256 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4257 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4258 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4259 # so that the user can short-circuit this test for compilers unknown to
4260 # Autoconf.
4261 for ac_file in $ac_files ''
4262 do
4263 test -f "$ac_file" || continue
4264 case $ac_file in
4265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4266 ;;
4267 [ab].out )
4268 # We found the default executable, but exeext='' is most
4269 # certainly right.
4270 break;;
4271 *.* )
4272 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4273 then :; else
4274 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4275 fi
4276 # We set ac_cv_exeext here because the later test for it is not
4277 # safe: cross compilers may not add the suffix if given an `-o'
4278 # argument, so we may need to know it at that point already.
4279 # Even if this section looks crufty: it has the advantage of
4280 # actually working.
4281 break;;
4282 * )
4283 break;;
4284 esac
4285 done
4286 test "$ac_cv_exeext" = no && ac_cv_exeext=
4287
4288 else
4289 ac_file=''
4290 fi
4291 if test -z "$ac_file"; then :
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293 $as_echo "no" >&6; }
4294 $as_echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4296
4297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4299 as_fn_error 77 "C compiler cannot create executables
4300 See \`config.log' for more details" "$LINENO" 5; }
4301 else
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4303 $as_echo "yes" >&6; }
4304 fi
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4306 $as_echo_n "checking for C compiler default output file name... " >&6; }
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4308 $as_echo "$ac_file" >&6; }
4309 ac_exeext=$ac_cv_exeext
4310
4311 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4312 ac_clean_files=$ac_clean_files_save
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4314 $as_echo_n "checking for suffix of executables... " >&6; }
4315 if { { ac_try="$ac_link"
4316 case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319 esac
4320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321 $as_echo "$ac_try_echo"; } >&5
4322 (eval "$ac_link") 2>&5
4323 ac_status=$?
4324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325 test $ac_status = 0; }; then :
4326 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4327 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4328 # work properly (i.e., refer to `conftest.exe'), while it won't with
4329 # `rm'.
4330 for ac_file in conftest.exe conftest conftest.*; do
4331 test -f "$ac_file" || continue
4332 case $ac_file in
4333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4334 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4335 break;;
4336 * ) break;;
4337 esac
4338 done
4339 else
4340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4342 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4343 See \`config.log' for more details" "$LINENO" 5; }
4344 fi
4345 rm -f conftest conftest$ac_cv_exeext
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4347 $as_echo "$ac_cv_exeext" >&6; }
4348
4349 rm -f conftest.$ac_ext
4350 EXEEXT=$ac_cv_exeext
4351 ac_exeext=$EXEEXT
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4354 #include <stdio.h>
4355 int
4356 main ()
4357 {
4358 FILE *f = fopen ("conftest.out", "w");
4359 return ferror (f) || fclose (f) != 0;
4360
4361 ;
4362 return 0;
4363 }
4364 _ACEOF
4365 ac_clean_files="$ac_clean_files conftest.out"
4366 # Check that the compiler produces executables we can run. If not, either
4367 # the compiler is broken, or we cross compile.
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4369 $as_echo_n "checking whether we are cross compiling... " >&6; }
4370 if test "$cross_compiling" != yes; then
4371 { { ac_try="$ac_link"
4372 case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375 esac
4376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4377 $as_echo "$ac_try_echo"; } >&5
4378 (eval "$ac_link") 2>&5
4379 ac_status=$?
4380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4381 test $ac_status = 0; }
4382 if { ac_try='./conftest$ac_cv_exeext'
4383 { { case "(($ac_try" in
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4386 esac
4387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4388 $as_echo "$ac_try_echo"; } >&5
4389 (eval "$ac_try") 2>&5
4390 ac_status=$?
4391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4392 test $ac_status = 0; }; }; then
4393 cross_compiling=no
4394 else
4395 if test "$cross_compiling" = maybe; then
4396 cross_compiling=yes
4397 else
4398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4400 as_fn_error $? "cannot run C compiled programs.
4401 If you meant to cross compile, use \`--host'.
4402 See \`config.log' for more details" "$LINENO" 5; }
4403 fi
4404 fi
4405 fi
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4407 $as_echo "$cross_compiling" >&6; }
4408
4409 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4410 ac_clean_files=$ac_clean_files_save
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4412 $as_echo_n "checking for suffix of object files... " >&6; }
4413 if ${ac_cv_objext+:} false; then :
4414 $as_echo_n "(cached) " >&6
4415 else
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418
4419 int
4420 main ()
4421 {
4422
4423 ;
4424 return 0;
4425 }
4426 _ACEOF
4427 rm -f conftest.o conftest.obj
4428 if { { ac_try="$ac_compile"
4429 case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4432 esac
4433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4434 $as_echo "$ac_try_echo"; } >&5
4435 (eval "$ac_compile") 2>&5
4436 ac_status=$?
4437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4438 test $ac_status = 0; }; then :
4439 for ac_file in conftest.o conftest.obj conftest.*; do
4440 test -f "$ac_file" || continue;
4441 case $ac_file in
4442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4443 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4444 break;;
4445 esac
4446 done
4447 else
4448 $as_echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4450
4451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4453 as_fn_error $? "cannot compute suffix of object files: cannot compile
4454 See \`config.log' for more details" "$LINENO" 5; }
4455 fi
4456 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4457 fi
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4459 $as_echo "$ac_cv_objext" >&6; }
4460 OBJEXT=$ac_cv_objext
4461 ac_objext=$OBJEXT
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4463 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4464 if ${ac_cv_c_compiler_gnu+:} false; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4469
4470 int
4471 main ()
4472 {
4473 #ifndef __GNUC__
4474 choke me
4475 #endif
4476
4477 ;
4478 return 0;
4479 }
4480 _ACEOF
4481 if ac_fn_c_try_compile "$LINENO"; then :
4482 ac_compiler_gnu=yes
4483 else
4484 ac_compiler_gnu=no
4485 fi
4486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4488
4489 fi
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4491 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4492 if test $ac_compiler_gnu = yes; then
4493 GCC=yes
4494 else
4495 GCC=
4496 fi
4497 ac_test_CFLAGS=${CFLAGS+set}
4498 ac_save_CFLAGS=$CFLAGS
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4500 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4501 if ${ac_cv_prog_cc_g+:} false; then :
4502 $as_echo_n "(cached) " >&6
4503 else
4504 ac_save_c_werror_flag=$ac_c_werror_flag
4505 ac_c_werror_flag=yes
4506 ac_cv_prog_cc_g=no
4507 CFLAGS="-g"
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4510
4511 int
4512 main ()
4513 {
4514
4515 ;
4516 return 0;
4517 }
4518 _ACEOF
4519 if ac_fn_c_try_compile "$LINENO"; then :
4520 ac_cv_prog_cc_g=yes
4521 else
4522 CFLAGS=""
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4525
4526 int
4527 main ()
4528 {
4529
4530 ;
4531 return 0;
4532 }
4533 _ACEOF
4534 if ac_fn_c_try_compile "$LINENO"; then :
4535
4536 else
4537 ac_c_werror_flag=$ac_save_c_werror_flag
4538 CFLAGS="-g"
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4541
4542 int
4543 main ()
4544 {
4545
4546 ;
4547 return 0;
4548 }
4549 _ACEOF
4550 if ac_fn_c_try_compile "$LINENO"; then :
4551 ac_cv_prog_cc_g=yes
4552 fi
4553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554 fi
4555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556 fi
4557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558 ac_c_werror_flag=$ac_save_c_werror_flag
4559 fi
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4561 $as_echo "$ac_cv_prog_cc_g" >&6; }
4562 if test "$ac_test_CFLAGS" = set; then
4563 CFLAGS=$ac_save_CFLAGS
4564 elif test $ac_cv_prog_cc_g = yes; then
4565 if test "$GCC" = yes; then
4566 CFLAGS="-g -O2"
4567 else
4568 CFLAGS="-g"
4569 fi
4570 else
4571 if test "$GCC" = yes; then
4572 CFLAGS="-O2"
4573 else
4574 CFLAGS=
4575 fi
4576 fi
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4578 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4579 if ${ac_cv_prog_cc_c89+:} false; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 ac_cv_prog_cc_c89=no
4583 ac_save_CC=$CC
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4586 #include <stdarg.h>
4587 #include <stdio.h>
4588 struct stat;
4589 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4590 struct buf { int x; };
4591 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4592 static char *e (p, i)
4593 char **p;
4594 int i;
4595 {
4596 return p[i];
4597 }
4598 static char *f (char * (*g) (char **, int), char **p, ...)
4599 {
4600 char *s;
4601 va_list v;
4602 va_start (v,p);
4603 s = g (p, va_arg (v,int));
4604 va_end (v);
4605 return s;
4606 }
4607
4608 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4609 function prototypes and stuff, but not '\xHH' hex character constants.
4610 These don't provoke an error unfortunately, instead are silently treated
4611 as 'x'. The following induces an error, until -std is added to get
4612 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4613 array size at least. It's necessary to write '\x00'==0 to get something
4614 that's true only with -std. */
4615 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4616
4617 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4618 inside strings and character constants. */
4619 #define FOO(x) 'x'
4620 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4621
4622 int test (int i, double x);
4623 struct s1 {int (*f) (int a);};
4624 struct s2 {int (*f) (double a);};
4625 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4626 int argc;
4627 char **argv;
4628 int
4629 main ()
4630 {
4631 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4632 ;
4633 return 0;
4634 }
4635 _ACEOF
4636 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4637 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4638 do
4639 CC="$ac_save_CC $ac_arg"
4640 if ac_fn_c_try_compile "$LINENO"; then :
4641 ac_cv_prog_cc_c89=$ac_arg
4642 fi
4643 rm -f core conftest.err conftest.$ac_objext
4644 test "x$ac_cv_prog_cc_c89" != "xno" && break
4645 done
4646 rm -f conftest.$ac_ext
4647 CC=$ac_save_CC
4648
4649 fi
4650 # AC_CACHE_VAL
4651 case "x$ac_cv_prog_cc_c89" in
4652 x)
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4654 $as_echo "none needed" >&6; } ;;
4655 xno)
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4657 $as_echo "unsupported" >&6; } ;;
4658 *)
4659 CC="$CC $ac_cv_prog_cc_c89"
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4661 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4662 esac
4663 if test "x$ac_cv_prog_cc_c89" != xno; then :
4664
4665 fi
4666
4667 ac_ext=c
4668 ac_cpp='$CPP $CPPFLAGS'
4669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4672
4673 ac_ext=cpp
4674 ac_cpp='$CXXCPP $CPPFLAGS'
4675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4678 if test -z "$CXX"; then
4679 if test -n "$CCC"; then
4680 CXX=$CCC
4681 else
4682 if test -n "$ac_tool_prefix"; then
4683 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4684 do
4685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688 $as_echo_n "checking for $ac_word... " >&6; }
4689 if ${ac_cv_prog_CXX+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 if test -n "$CXX"; then
4693 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4694 else
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4697 do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4702 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 break 2
4705 fi
4706 done
4707 done
4708 IFS=$as_save_IFS
4709
4710 fi
4711 fi
4712 CXX=$ac_cv_prog_CXX
4713 if test -n "$CXX"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4715 $as_echo "$CXX" >&6; }
4716 else
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 $as_echo "no" >&6; }
4719 fi
4720
4721
4722 test -n "$CXX" && break
4723 done
4724 fi
4725 if test -z "$CXX"; then
4726 ac_ct_CXX=$CXX
4727 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4728 do
4729 # Extract the first word of "$ac_prog", so it can be a program name with args.
4730 set dummy $ac_prog; ac_word=$2
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 if test -n "$ac_ct_CXX"; then
4737 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4738 else
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH
4741 do
4742 IFS=$as_save_IFS
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4746 ac_cv_prog_ac_ct_CXX="$ac_prog"
4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 break 2
4749 fi
4750 done
4751 done
4752 IFS=$as_save_IFS
4753
4754 fi
4755 fi
4756 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4757 if test -n "$ac_ct_CXX"; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4759 $as_echo "$ac_ct_CXX" >&6; }
4760 else
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4763 fi
4764
4765
4766 test -n "$ac_ct_CXX" && break
4767 done
4768
4769 if test "x$ac_ct_CXX" = x; then
4770 CXX="g++"
4771 else
4772 case $cross_compiling:$ac_tool_warned in
4773 yes:)
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4776 ac_tool_warned=yes ;;
4777 esac
4778 CXX=$ac_ct_CXX
4779 fi
4780 fi
4781
4782 fi
4783 fi
4784 # Provide some information about the compiler.
4785 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4786 set X $ac_compile
4787 ac_compiler=$2
4788 for ac_option in --version -v -V -qversion; do
4789 { { ac_try="$ac_compiler $ac_option >&5"
4790 case "(($ac_try" in
4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792 *) ac_try_echo=$ac_try;;
4793 esac
4794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4795 $as_echo "$ac_try_echo"; } >&5
4796 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4797 ac_status=$?
4798 if test -s conftest.err; then
4799 sed '10a\
4800 ... rest of stderr output deleted ...
4801 10q' conftest.err >conftest.er1
4802 cat conftest.er1 >&5
4803 fi
4804 rm -f conftest.er1 conftest.err
4805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4806 test $ac_status = 0; }
4807 done
4808
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4810 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4811 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4816
4817 int
4818 main ()
4819 {
4820 #ifndef __GNUC__
4821 choke me
4822 #endif
4823
4824 ;
4825 return 0;
4826 }
4827 _ACEOF
4828 if ac_fn_cxx_try_compile "$LINENO"; then :
4829 ac_compiler_gnu=yes
4830 else
4831 ac_compiler_gnu=no
4832 fi
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4835
4836 fi
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4838 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4839 if test $ac_compiler_gnu = yes; then
4840 GXX=yes
4841 else
4842 GXX=
4843 fi
4844 ac_test_CXXFLAGS=${CXXFLAGS+set}
4845 ac_save_CXXFLAGS=$CXXFLAGS
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4847 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4848 if ${ac_cv_prog_cxx_g+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4852 ac_cxx_werror_flag=yes
4853 ac_cv_prog_cxx_g=no
4854 CXXFLAGS="-g"
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4857
4858 int
4859 main ()
4860 {
4861
4862 ;
4863 return 0;
4864 }
4865 _ACEOF
4866 if ac_fn_cxx_try_compile "$LINENO"; then :
4867 ac_cv_prog_cxx_g=yes
4868 else
4869 CXXFLAGS=""
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4872
4873 int
4874 main ()
4875 {
4876
4877 ;
4878 return 0;
4879 }
4880 _ACEOF
4881 if ac_fn_cxx_try_compile "$LINENO"; then :
4882
4883 else
4884 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4885 CXXFLAGS="-g"
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4888
4889 int
4890 main ()
4891 {
4892
4893 ;
4894 return 0;
4895 }
4896 _ACEOF
4897 if ac_fn_cxx_try_compile "$LINENO"; then :
4898 ac_cv_prog_cxx_g=yes
4899 fi
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901 fi
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 fi
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4906 fi
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4908 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4909 if test "$ac_test_CXXFLAGS" = set; then
4910 CXXFLAGS=$ac_save_CXXFLAGS
4911 elif test $ac_cv_prog_cxx_g = yes; then
4912 if test "$GXX" = yes; then
4913 CXXFLAGS="-g -O2"
4914 else
4915 CXXFLAGS="-g"
4916 fi
4917 else
4918 if test "$GXX" = yes; then
4919 CXXFLAGS="-O2"
4920 else
4921 CXXFLAGS=
4922 fi
4923 fi
4924 ac_ext=c
4925 ac_cpp='$CPP $CPPFLAGS'
4926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4929
4930
4931
4932
4933 if test -n "$ac_tool_prefix"; then
4934 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4935 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937 $as_echo_n "checking for $ac_word... " >&6; }
4938 if ${ac_cv_prog_GNATBIND+:} false; then :
4939 $as_echo_n "(cached) " >&6
4940 else
4941 if test -n "$GNATBIND"; then
4942 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4943 else
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4946 do
4947 IFS=$as_save_IFS
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4951 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 break 2
4954 fi
4955 done
4956 done
4957 IFS=$as_save_IFS
4958
4959 fi
4960 fi
4961 GNATBIND=$ac_cv_prog_GNATBIND
4962 if test -n "$GNATBIND"; then
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4964 $as_echo "$GNATBIND" >&6; }
4965 else
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4968 fi
4969
4970
4971 fi
4972 if test -z "$ac_cv_prog_GNATBIND"; then
4973 ac_ct_GNATBIND=$GNATBIND
4974 # Extract the first word of "gnatbind", so it can be a program name with args.
4975 set dummy gnatbind; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4979 $as_echo_n "(cached) " >&6
4980 else
4981 if test -n "$ac_ct_GNATBIND"; then
4982 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4983 else
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4986 do
4987 IFS=$as_save_IFS
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4991 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 break 2
4994 fi
4995 done
4996 done
4997 IFS=$as_save_IFS
4998
4999 fi
5000 fi
5001 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5002 if test -n "$ac_ct_GNATBIND"; then
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5004 $as_echo "$ac_ct_GNATBIND" >&6; }
5005 else
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007 $as_echo "no" >&6; }
5008 fi
5009
5010 if test "x$ac_ct_GNATBIND" = x; then
5011 GNATBIND="no"
5012 else
5013 case $cross_compiling:$ac_tool_warned in
5014 yes:)
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5017 ac_tool_warned=yes ;;
5018 esac
5019 GNATBIND=$ac_ct_GNATBIND
5020 fi
5021 else
5022 GNATBIND="$ac_cv_prog_GNATBIND"
5023 fi
5024
5025 if test -n "$ac_tool_prefix"; then
5026 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5027 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if ${ac_cv_prog_GNATMAKE+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 if test -n "$GNATMAKE"; then
5034 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5035 else
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH
5038 do
5039 IFS=$as_save_IFS
5040 test -z "$as_dir" && as_dir=.
5041 for ac_exec_ext in '' $ac_executable_extensions; do
5042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5043 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 break 2
5046 fi
5047 done
5048 done
5049 IFS=$as_save_IFS
5050
5051 fi
5052 fi
5053 GNATMAKE=$ac_cv_prog_GNATMAKE
5054 if test -n "$GNATMAKE"; then
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5056 $as_echo "$GNATMAKE" >&6; }
5057 else
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059 $as_echo "no" >&6; }
5060 fi
5061
5062
5063 fi
5064 if test -z "$ac_cv_prog_GNATMAKE"; then
5065 ac_ct_GNATMAKE=$GNATMAKE
5066 # Extract the first word of "gnatmake", so it can be a program name with args.
5067 set dummy gnatmake; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5071 $as_echo_n "(cached) " >&6
5072 else
5073 if test -n "$ac_ct_GNATMAKE"; then
5074 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5075 else
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5078 do
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5083 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 break 2
5086 fi
5087 done
5088 done
5089 IFS=$as_save_IFS
5090
5091 fi
5092 fi
5093 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5094 if test -n "$ac_ct_GNATMAKE"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5096 $as_echo "$ac_ct_GNATMAKE" >&6; }
5097 else
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5100 fi
5101
5102 if test "x$ac_ct_GNATMAKE" = x; then
5103 GNATMAKE="no"
5104 else
5105 case $cross_compiling:$ac_tool_warned in
5106 yes:)
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5109 ac_tool_warned=yes ;;
5110 esac
5111 GNATMAKE=$ac_ct_GNATMAKE
5112 fi
5113 else
5114 GNATMAKE="$ac_cv_prog_GNATMAKE"
5115 fi
5116
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5118 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5119 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5120 $as_echo_n "(cached) " >&6
5121 else
5122 cat >conftest.adb <<EOF
5123 procedure conftest is begin null; end conftest;
5124 EOF
5125 acx_cv_cc_gcc_supports_ada=no
5126 # There is a bug in old released versions of GCC which causes the
5127 # driver to exit successfully when the appropriate language module
5128 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5129 # Therefore we must check for the error message as well as an
5130 # unsuccessful exit.
5131 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5132 # given a .adb file, but produce no object file. So we must check
5133 # if an object file was really produced to guard against this.
5134 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5135 if test x"$errors" = x && test -f conftest.$ac_objext; then
5136 acx_cv_cc_gcc_supports_ada=yes
5137 fi
5138 rm -f conftest.*
5139 fi
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5141 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5142
5143 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5144 have_gnat=yes
5145 else
5146 have_gnat=no
5147 fi
5148
5149
5150 # Do configure tests with the C++ compiler, since that's what we build with.
5151 ac_ext=cpp
5152 ac_cpp='$CXXCPP $CPPFLAGS'
5153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5156
5157
5158 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5159 # optimizations to be activated explicitly by the toplevel.
5160 case "$CC" in
5161 */prev-gcc/xgcc*) ;;
5162 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5163 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5164 esac
5165
5166
5167
5168 # Determine PICFLAG for target gnatlib.
5169
5170
5171
5172
5173 case "${target}" in
5174 # PIC is the default on some targets or must not be used.
5175 *-*-darwin*)
5176 # For darwin, common symbols are not allowed in MH_DYLIB files
5177 case "${CFLAGS}" in
5178 # If we are using a compiler supporting mdynamic-no-pic
5179 # and the option has been tested as safe to add, then cancel
5180 # it here, since the code generated is incompatible with shared
5181 # libs.
5182 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5183 *) PICFLAG_FOR_TARGET=-fno-common ;;
5184 esac
5185 ;;
5186 alpha*-dec-osf5*)
5187 # PIC is the default.
5188 ;;
5189 hppa*64*-*-hpux*)
5190 # PIC is the default for 64-bit PA HP-UX.
5191 ;;
5192 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5193 ;;
5194 i[34567]86-*-mingw* | x86_64-*-mingw*)
5195 ;;
5196 i[34567]86-*-interix[3-9]*)
5197 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5198 # Instead, we relocate shared libraries at runtime.
5199 ;;
5200 i[34567]86-*-nto-qnx*)
5201 # QNX uses GNU C++, but need to define -shared option too, otherwise
5202 # it will coredump.
5203 PICFLAG_FOR_TARGET='-fPIC -shared'
5204 ;;
5205 i[34567]86-pc-msdosdjgpp*)
5206 # DJGPP does not support shared libraries at all.
5207 ;;
5208 ia64*-*-hpux*)
5209 # On IA64 HP-UX, PIC is the default but the pic flag
5210 # sets the default TLS model and affects inlining.
5211 PICFLAG_FOR_TARGET=-fPIC
5212 ;;
5213 mips-sgi-irix6*)
5214 # PIC is the default.
5215 ;;
5216 rs6000-ibm-aix* | powerpc-ibm-aix*)
5217 # All AIX code is PIC.
5218 ;;
5219
5220 # Some targets support both -fPIC and -fpic, but prefer the latter.
5221 # FIXME: Why?
5222 i[34567]86-*-* | x86_64-*-*)
5223 PICFLAG_FOR_TARGET=-fpic
5224 ;;
5225 # FIXME: Override -fPIC default in libgcc only?
5226 sh-*-linux* | sh[2346lbe]*-*-linux*)
5227 PICFLAG_FOR_TARGET=-fpic
5228 ;;
5229 # FIXME: Simplify to sh*-*-netbsd*?
5230 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5231 sh64-*-netbsd* | sh64l*-*-netbsd*)
5232 PICFLAG_FOR_TARGET=-fpic
5233 ;;
5234 # Default to -fPIC unless specified otherwise.
5235 *)
5236 PICFLAG_FOR_TARGET=-fPIC
5237 ;;
5238 esac
5239
5240 # If the user explicitly uses -fpic/-fPIC, keep that.
5241 case "${CFLAGS_FOR_TARGET}" in
5242 *-fpic*)
5243 PICFLAG_FOR_TARGET=-fpic
5244 ;;
5245 *-fPIC*)
5246 PICFLAG_FOR_TARGET=-fPIC
5247 ;;
5248 esac
5249
5250
5251
5252 # -------------------------
5253 # Check C compiler features
5254 # -------------------------
5255
5256
5257 ac_ext=cpp
5258 ac_cpp='$CXXCPP $CPPFLAGS'
5259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5263 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5264 if test -z "$CXXCPP"; then
5265 if ${ac_cv_prog_CXXCPP+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 # Double quotes because CXXCPP needs to be expanded
5269 for CXXCPP in "$CXX -E" "/lib/cpp"
5270 do
5271 ac_preproc_ok=false
5272 for ac_cxx_preproc_warn_flag in '' yes
5273 do
5274 # Use a header file that comes with gcc, so configuring glibc
5275 # with a fresh cross-compiler works.
5276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5277 # <limits.h> exists even on freestanding compilers.
5278 # On the NeXT, cc -E runs the code through the compiler's parser,
5279 # not just through cpp. "Syntax error" is here to catch this case.
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5282 #ifdef __STDC__
5283 # include <limits.h>
5284 #else
5285 # include <assert.h>
5286 #endif
5287 Syntax error
5288 _ACEOF
5289 if ac_fn_cxx_try_cpp "$LINENO"; then :
5290
5291 else
5292 # Broken: fails on valid input.
5293 continue
5294 fi
5295 rm -f conftest.err conftest.i conftest.$ac_ext
5296
5297 # OK, works on sane cases. Now check whether nonexistent headers
5298 # can be detected and how.
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5301 #include <ac_nonexistent.h>
5302 _ACEOF
5303 if ac_fn_cxx_try_cpp "$LINENO"; then :
5304 # Broken: success on invalid input.
5305 continue
5306 else
5307 # Passes both tests.
5308 ac_preproc_ok=:
5309 break
5310 fi
5311 rm -f conftest.err conftest.i conftest.$ac_ext
5312
5313 done
5314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5315 rm -f conftest.i conftest.err conftest.$ac_ext
5316 if $ac_preproc_ok; then :
5317 break
5318 fi
5319
5320 done
5321 ac_cv_prog_CXXCPP=$CXXCPP
5322
5323 fi
5324 CXXCPP=$ac_cv_prog_CXXCPP
5325 else
5326 ac_cv_prog_CXXCPP=$CXXCPP
5327 fi
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5329 $as_echo "$CXXCPP" >&6; }
5330 ac_preproc_ok=false
5331 for ac_cxx_preproc_warn_flag in '' yes
5332 do
5333 # Use a header file that comes with gcc, so configuring glibc
5334 # with a fresh cross-compiler works.
5335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5336 # <limits.h> exists even on freestanding compilers.
5337 # On the NeXT, cc -E runs the code through the compiler's parser,
5338 # not just through cpp. "Syntax error" is here to catch this case.
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5341 #ifdef __STDC__
5342 # include <limits.h>
5343 #else
5344 # include <assert.h>
5345 #endif
5346 Syntax error
5347 _ACEOF
5348 if ac_fn_cxx_try_cpp "$LINENO"; then :
5349
5350 else
5351 # Broken: fails on valid input.
5352 continue
5353 fi
5354 rm -f conftest.err conftest.i conftest.$ac_ext
5355
5356 # OK, works on sane cases. Now check whether nonexistent headers
5357 # can be detected and how.
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5360 #include <ac_nonexistent.h>
5361 _ACEOF
5362 if ac_fn_cxx_try_cpp "$LINENO"; then :
5363 # Broken: success on invalid input.
5364 continue
5365 else
5366 # Passes both tests.
5367 ac_preproc_ok=:
5368 break
5369 fi
5370 rm -f conftest.err conftest.i conftest.$ac_ext
5371
5372 done
5373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5374 rm -f conftest.i conftest.err conftest.$ac_ext
5375 if $ac_preproc_ok; then :
5376
5377 else
5378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5380 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5381 See \`config.log' for more details" "$LINENO" 5; }
5382 fi
5383
5384 ac_ext=cpp
5385 ac_cpp='$CXXCPP $CPPFLAGS'
5386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5389
5390
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5392 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5393 if ${ac_cv_path_GREP+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 if test -z "$GREP"; then
5397 ac_path_GREP_found=false
5398 # Loop through the user's path and test for each of PROGNAME-LIST
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5401 do
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
5404 for ac_prog in grep ggrep; do
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5407 as_fn_executable_p "$ac_path_GREP" || continue
5408 # Check for GNU ac_path_GREP and select it if it is found.
5409 # Check for GNU $ac_path_GREP
5410 case `"$ac_path_GREP" --version 2>&1` in
5411 *GNU*)
5412 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5413 *)
5414 ac_count=0
5415 $as_echo_n 0123456789 >"conftest.in"
5416 while :
5417 do
5418 cat "conftest.in" "conftest.in" >"conftest.tmp"
5419 mv "conftest.tmp" "conftest.in"
5420 cp "conftest.in" "conftest.nl"
5421 $as_echo 'GREP' >> "conftest.nl"
5422 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5423 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5424 as_fn_arith $ac_count + 1 && ac_count=$as_val
5425 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5426 # Best one so far, save it but keep looking for a better one
5427 ac_cv_path_GREP="$ac_path_GREP"
5428 ac_path_GREP_max=$ac_count
5429 fi
5430 # 10*(2^10) chars as input seems more than enough
5431 test $ac_count -gt 10 && break
5432 done
5433 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5434 esac
5435
5436 $ac_path_GREP_found && break 3
5437 done
5438 done
5439 done
5440 IFS=$as_save_IFS
5441 if test -z "$ac_cv_path_GREP"; then
5442 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5443 fi
5444 else
5445 ac_cv_path_GREP=$GREP
5446 fi
5447
5448 fi
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5450 $as_echo "$ac_cv_path_GREP" >&6; }
5451 GREP="$ac_cv_path_GREP"
5452
5453
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5455 $as_echo_n "checking for egrep... " >&6; }
5456 if ${ac_cv_path_EGREP+:} false; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5460 then ac_cv_path_EGREP="$GREP -E"
5461 else
5462 if test -z "$EGREP"; then
5463 ac_path_EGREP_found=false
5464 # Loop through the user's path and test for each of PROGNAME-LIST
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5467 do
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_prog in egrep; do
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5473 as_fn_executable_p "$ac_path_EGREP" || continue
5474 # Check for GNU ac_path_EGREP and select it if it is found.
5475 # Check for GNU $ac_path_EGREP
5476 case `"$ac_path_EGREP" --version 2>&1` in
5477 *GNU*)
5478 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5479 *)
5480 ac_count=0
5481 $as_echo_n 0123456789 >"conftest.in"
5482 while :
5483 do
5484 cat "conftest.in" "conftest.in" >"conftest.tmp"
5485 mv "conftest.tmp" "conftest.in"
5486 cp "conftest.in" "conftest.nl"
5487 $as_echo 'EGREP' >> "conftest.nl"
5488 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5489 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5490 as_fn_arith $ac_count + 1 && ac_count=$as_val
5491 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5492 # Best one so far, save it but keep looking for a better one
5493 ac_cv_path_EGREP="$ac_path_EGREP"
5494 ac_path_EGREP_max=$ac_count
5495 fi
5496 # 10*(2^10) chars as input seems more than enough
5497 test $ac_count -gt 10 && break
5498 done
5499 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5500 esac
5501
5502 $ac_path_EGREP_found && break 3
5503 done
5504 done
5505 done
5506 IFS=$as_save_IFS
5507 if test -z "$ac_cv_path_EGREP"; then
5508 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5509 fi
5510 else
5511 ac_cv_path_EGREP=$EGREP
5512 fi
5513
5514 fi
5515 fi
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5517 $as_echo "$ac_cv_path_EGREP" >&6; }
5518 EGREP="$ac_cv_path_EGREP"
5519
5520
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5522 $as_echo_n "checking for ANSI C header files... " >&6; }
5523 if ${ac_cv_header_stdc+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5528 #include <stdlib.h>
5529 #include <stdarg.h>
5530 #include <string.h>
5531 #include <float.h>
5532
5533 int
5534 main ()
5535 {
5536
5537 ;
5538 return 0;
5539 }
5540 _ACEOF
5541 if ac_fn_cxx_try_compile "$LINENO"; then :
5542 ac_cv_header_stdc=yes
5543 else
5544 ac_cv_header_stdc=no
5545 fi
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547
5548 if test $ac_cv_header_stdc = yes; then
5549 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5552 #include <string.h>
5553
5554 _ACEOF
5555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5556 $EGREP "memchr" >/dev/null 2>&1; then :
5557
5558 else
5559 ac_cv_header_stdc=no
5560 fi
5561 rm -f conftest*
5562
5563 fi
5564
5565 if test $ac_cv_header_stdc = yes; then
5566 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 #include <stdlib.h>
5570
5571 _ACEOF
5572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5573 $EGREP "free" >/dev/null 2>&1; then :
5574
5575 else
5576 ac_cv_header_stdc=no
5577 fi
5578 rm -f conftest*
5579
5580 fi
5581
5582 if test $ac_cv_header_stdc = yes; then
5583 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5584 if test "$cross_compiling" = yes; then :
5585 :
5586 else
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 #include <ctype.h>
5590 #include <stdlib.h>
5591 #if ((' ' & 0x0FF) == 0x020)
5592 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5593 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5594 #else
5595 # define ISLOWER(c) \
5596 (('a' <= (c) && (c) <= 'i') \
5597 || ('j' <= (c) && (c) <= 'r') \
5598 || ('s' <= (c) && (c) <= 'z'))
5599 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5600 #endif
5601
5602 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5603 int
5604 main ()
5605 {
5606 int i;
5607 for (i = 0; i < 256; i++)
5608 if (XOR (islower (i), ISLOWER (i))
5609 || toupper (i) != TOUPPER (i))
5610 return 2;
5611 return 0;
5612 }
5613 _ACEOF
5614 if ac_fn_cxx_try_run "$LINENO"; then :
5615
5616 else
5617 ac_cv_header_stdc=no
5618 fi
5619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5620 conftest.$ac_objext conftest.beam conftest.$ac_ext
5621 fi
5622
5623 fi
5624 fi
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5626 $as_echo "$ac_cv_header_stdc" >&6; }
5627 if test $ac_cv_header_stdc = yes; then
5628
5629 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5630
5631 fi
5632
5633 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5634 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5635 inttypes.h stdint.h unistd.h
5636 do :
5637 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5638 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5639 "
5640 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5641 cat >>confdefs.h <<_ACEOF
5642 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5643 _ACEOF
5644
5645 fi
5646
5647 done
5648
5649
5650
5651 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5652 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5653 MINIX=yes
5654 else
5655 MINIX=
5656 fi
5657
5658
5659 if test "$MINIX" = yes; then
5660
5661 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5662
5663
5664 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5665
5666
5667 $as_echo "#define _MINIX 1" >>confdefs.h
5668
5669 fi
5670
5671
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5673 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5674 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5675 $as_echo_n "(cached) " >&6
5676 else
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679
5680 # define __EXTENSIONS__ 1
5681 $ac_includes_default
5682 int
5683 main ()
5684 {
5685
5686 ;
5687 return 0;
5688 }
5689 _ACEOF
5690 if ac_fn_cxx_try_compile "$LINENO"; then :
5691 ac_cv_safe_to_define___extensions__=yes
5692 else
5693 ac_cv_safe_to_define___extensions__=no
5694 fi
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696 fi
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5698 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5699 test $ac_cv_safe_to_define___extensions__ = yes &&
5700 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5701
5702 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5703
5704 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5705
5706 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5707
5708 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5709
5710
5711 ac_ext=c
5712 ac_cpp='$CPP $CPPFLAGS'
5713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5717 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5718 # On Suns, sometimes $CPP names a directory.
5719 if test -n "$CPP" && test -d "$CPP"; then
5720 CPP=
5721 fi
5722 if test -z "$CPP"; then
5723 if ${ac_cv_prog_CPP+:} false; then :
5724 $as_echo_n "(cached) " >&6
5725 else
5726 # Double quotes because CPP needs to be expanded
5727 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5728 do
5729 ac_preproc_ok=false
5730 for ac_c_preproc_warn_flag in '' yes
5731 do
5732 # Use a header file that comes with gcc, so configuring glibc
5733 # with a fresh cross-compiler works.
5734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5735 # <limits.h> exists even on freestanding compilers.
5736 # On the NeXT, cc -E runs the code through the compiler's parser,
5737 # not just through cpp. "Syntax error" is here to catch this case.
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h. */
5740 #ifdef __STDC__
5741 # include <limits.h>
5742 #else
5743 # include <assert.h>
5744 #endif
5745 Syntax error
5746 _ACEOF
5747 if ac_fn_c_try_cpp "$LINENO"; then :
5748
5749 else
5750 # Broken: fails on valid input.
5751 continue
5752 fi
5753 rm -f conftest.err conftest.i conftest.$ac_ext
5754
5755 # OK, works on sane cases. Now check whether nonexistent headers
5756 # can be detected and how.
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759 #include <ac_nonexistent.h>
5760 _ACEOF
5761 if ac_fn_c_try_cpp "$LINENO"; then :
5762 # Broken: success on invalid input.
5763 continue
5764 else
5765 # Passes both tests.
5766 ac_preproc_ok=:
5767 break
5768 fi
5769 rm -f conftest.err conftest.i conftest.$ac_ext
5770
5771 done
5772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5773 rm -f conftest.i conftest.err conftest.$ac_ext
5774 if $ac_preproc_ok; then :
5775 break
5776 fi
5777
5778 done
5779 ac_cv_prog_CPP=$CPP
5780
5781 fi
5782 CPP=$ac_cv_prog_CPP
5783 else
5784 ac_cv_prog_CPP=$CPP
5785 fi
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5787 $as_echo "$CPP" >&6; }
5788 ac_preproc_ok=false
5789 for ac_c_preproc_warn_flag in '' yes
5790 do
5791 # Use a header file that comes with gcc, so configuring glibc
5792 # with a fresh cross-compiler works.
5793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5794 # <limits.h> exists even on freestanding compilers.
5795 # On the NeXT, cc -E runs the code through the compiler's parser,
5796 # not just through cpp. "Syntax error" is here to catch this case.
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5799 #ifdef __STDC__
5800 # include <limits.h>
5801 #else
5802 # include <assert.h>
5803 #endif
5804 Syntax error
5805 _ACEOF
5806 if ac_fn_c_try_cpp "$LINENO"; then :
5807
5808 else
5809 # Broken: fails on valid input.
5810 continue
5811 fi
5812 rm -f conftest.err conftest.i conftest.$ac_ext
5813
5814 # OK, works on sane cases. Now check whether nonexistent headers
5815 # can be detected and how.
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5818 #include <ac_nonexistent.h>
5819 _ACEOF
5820 if ac_fn_c_try_cpp "$LINENO"; then :
5821 # Broken: success on invalid input.
5822 continue
5823 else
5824 # Passes both tests.
5825 ac_preproc_ok=:
5826 break
5827 fi
5828 rm -f conftest.err conftest.i conftest.$ac_ext
5829
5830 done
5831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5832 rm -f conftest.i conftest.err conftest.$ac_ext
5833 if $ac_preproc_ok; then :
5834
5835 else
5836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5838 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5839 See \`config.log' for more details" "$LINENO" 5; }
5840 fi
5841
5842 ac_ext=cpp
5843 ac_cpp='$CXXCPP $CPPFLAGS'
5844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5847
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5849 $as_echo_n "checking for inline... " >&6; }
5850 if ${ac_cv_c_inline+:} false; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 ac_cv_c_inline=no
5854 for ac_kw in inline __inline__ __inline; do
5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5857 #ifndef __cplusplus
5858 typedef int foo_t;
5859 static $ac_kw foo_t static_foo () {return 0; }
5860 $ac_kw foo_t foo () {return 0; }
5861 #endif
5862
5863 _ACEOF
5864 if ac_fn_cxx_try_compile "$LINENO"; then :
5865 ac_cv_c_inline=$ac_kw
5866 fi
5867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868 test "$ac_cv_c_inline" != no && break
5869 done
5870
5871 fi
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5873 $as_echo "$ac_cv_c_inline" >&6; }
5874
5875 case $ac_cv_c_inline in
5876 inline | yes) ;;
5877 *)
5878 case $ac_cv_c_inline in
5879 no) ac_val=;;
5880 *) ac_val=$ac_cv_c_inline;;
5881 esac
5882 cat >>confdefs.h <<_ACEOF
5883 #ifndef __cplusplus
5884 #define inline $ac_val
5885 #endif
5886 _ACEOF
5887 ;;
5888 esac
5889
5890
5891 # Check whether --enable-largefile was given.
5892 if test "${enable_largefile+set}" = set; then :
5893 enableval=$enable_largefile;
5894 fi
5895
5896 if test "$enable_largefile" != no; then
5897
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5899 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5900 if ${ac_cv_sys_largefile_CC+:} false; then :
5901 $as_echo_n "(cached) " >&6
5902 else
5903 ac_cv_sys_largefile_CC=no
5904 if test "$GCC" != yes; then
5905 ac_save_CC=$CC
5906 while :; do
5907 # IRIX 6.2 and later do not support large files by default,
5908 # so use the C compiler's -n32 option if that helps.
5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910 /* end confdefs.h. */
5911 #include <sys/types.h>
5912 /* Check that off_t can represent 2**63 - 1 correctly.
5913 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5914 since some C++ compilers masquerading as C compilers
5915 incorrectly reject 9223372036854775807. */
5916 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5917 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5918 && LARGE_OFF_T % 2147483647 == 1)
5919 ? 1 : -1];
5920 int
5921 main ()
5922 {
5923
5924 ;
5925 return 0;
5926 }
5927 _ACEOF
5928 if ac_fn_cxx_try_compile "$LINENO"; then :
5929 break
5930 fi
5931 rm -f core conftest.err conftest.$ac_objext
5932 CC="$CC -n32"
5933 if ac_fn_cxx_try_compile "$LINENO"; then :
5934 ac_cv_sys_largefile_CC=' -n32'; break
5935 fi
5936 rm -f core conftest.err conftest.$ac_objext
5937 break
5938 done
5939 CC=$ac_save_CC
5940 rm -f conftest.$ac_ext
5941 fi
5942 fi
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5944 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5945 if test "$ac_cv_sys_largefile_CC" != no; then
5946 CC=$CC$ac_cv_sys_largefile_CC
5947 fi
5948
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5950 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5951 if ${ac_cv_sys_file_offset_bits+:} false; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 while :; do
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5957 #include <sys/types.h>
5958 /* Check that off_t can represent 2**63 - 1 correctly.
5959 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5960 since some C++ compilers masquerading as C compilers
5961 incorrectly reject 9223372036854775807. */
5962 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5963 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5964 && LARGE_OFF_T % 2147483647 == 1)
5965 ? 1 : -1];
5966 int
5967 main ()
5968 {
5969
5970 ;
5971 return 0;
5972 }
5973 _ACEOF
5974 if ac_fn_cxx_try_compile "$LINENO"; then :
5975 ac_cv_sys_file_offset_bits=no; break
5976 fi
5977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5980 #define _FILE_OFFSET_BITS 64
5981 #include <sys/types.h>
5982 /* Check that off_t can represent 2**63 - 1 correctly.
5983 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5984 since some C++ compilers masquerading as C compilers
5985 incorrectly reject 9223372036854775807. */
5986 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5987 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5988 && LARGE_OFF_T % 2147483647 == 1)
5989 ? 1 : -1];
5990 int
5991 main ()
5992 {
5993
5994 ;
5995 return 0;
5996 }
5997 _ACEOF
5998 if ac_fn_cxx_try_compile "$LINENO"; then :
5999 ac_cv_sys_file_offset_bits=64; break
6000 fi
6001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002 ac_cv_sys_file_offset_bits=unknown
6003 break
6004 done
6005 fi
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6007 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6008 case $ac_cv_sys_file_offset_bits in #(
6009 no | unknown) ;;
6010 *)
6011 cat >>confdefs.h <<_ACEOF
6012 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6013 _ACEOF
6014 ;;
6015 esac
6016 rm -rf conftest*
6017 if test $ac_cv_sys_file_offset_bits = unknown; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6019 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6020 if ${ac_cv_sys_large_files+:} false; then :
6021 $as_echo_n "(cached) " >&6
6022 else
6023 while :; do
6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6026 #include <sys/types.h>
6027 /* Check that off_t can represent 2**63 - 1 correctly.
6028 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6029 since some C++ compilers masquerading as C compilers
6030 incorrectly reject 9223372036854775807. */
6031 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6032 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6033 && LARGE_OFF_T % 2147483647 == 1)
6034 ? 1 : -1];
6035 int
6036 main ()
6037 {
6038
6039 ;
6040 return 0;
6041 }
6042 _ACEOF
6043 if ac_fn_cxx_try_compile "$LINENO"; then :
6044 ac_cv_sys_large_files=no; break
6045 fi
6046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6049 #define _LARGE_FILES 1
6050 #include <sys/types.h>
6051 /* Check that off_t can represent 2**63 - 1 correctly.
6052 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6053 since some C++ compilers masquerading as C compilers
6054 incorrectly reject 9223372036854775807. */
6055 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6056 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6057 && LARGE_OFF_T % 2147483647 == 1)
6058 ? 1 : -1];
6059 int
6060 main ()
6061 {
6062
6063 ;
6064 return 0;
6065 }
6066 _ACEOF
6067 if ac_fn_cxx_try_compile "$LINENO"; then :
6068 ac_cv_sys_large_files=1; break
6069 fi
6070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071 ac_cv_sys_large_files=unknown
6072 break
6073 done
6074 fi
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6076 $as_echo "$ac_cv_sys_large_files" >&6; }
6077 case $ac_cv_sys_large_files in #(
6078 no | unknown) ;;
6079 *)
6080 cat >>confdefs.h <<_ACEOF
6081 #define _LARGE_FILES $ac_cv_sys_large_files
6082 _ACEOF
6083 ;;
6084 esac
6085 rm -rf conftest*
6086 fi
6087
6088
6089 fi
6090
6091
6092 # sizeof(char) is 1 by definition.
6093 # The cast to long int works around a bug in the HP C Compiler
6094 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6095 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6096 # This bug is HP SR number 8606223364.
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6098 $as_echo_n "checking size of void *... " >&6; }
6099 if ${ac_cv_sizeof_void_p+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6103
6104 else
6105 if test "$ac_cv_type_void_p" = yes; then
6106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6108 as_fn_error 77 "cannot compute sizeof (void *)
6109 See \`config.log' for more details" "$LINENO" 5; }
6110 else
6111 ac_cv_sizeof_void_p=0
6112 fi
6113 fi
6114
6115 fi
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6117 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6118
6119
6120
6121 cat >>confdefs.h <<_ACEOF
6122 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6123 _ACEOF
6124
6125
6126 # The cast to long int works around a bug in the HP C Compiler
6127 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6128 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6129 # This bug is HP SR number 8606223364.
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6131 $as_echo_n "checking size of short... " >&6; }
6132 if ${ac_cv_sizeof_short+:} false; then :
6133 $as_echo_n "(cached) " >&6
6134 else
6135 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6136
6137 else
6138 if test "$ac_cv_type_short" = yes; then
6139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6141 as_fn_error 77 "cannot compute sizeof (short)
6142 See \`config.log' for more details" "$LINENO" 5; }
6143 else
6144 ac_cv_sizeof_short=0
6145 fi
6146 fi
6147
6148 fi
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6150 $as_echo "$ac_cv_sizeof_short" >&6; }
6151
6152
6153
6154 cat >>confdefs.h <<_ACEOF
6155 #define SIZEOF_SHORT $ac_cv_sizeof_short
6156 _ACEOF
6157
6158
6159 # The cast to long int works around a bug in the HP C Compiler
6160 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6161 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6162 # This bug is HP SR number 8606223364.
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6164 $as_echo_n "checking size of int... " >&6; }
6165 if ${ac_cv_sizeof_int+:} false; then :
6166 $as_echo_n "(cached) " >&6
6167 else
6168 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6169
6170 else
6171 if test "$ac_cv_type_int" = yes; then
6172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6174 as_fn_error 77 "cannot compute sizeof (int)
6175 See \`config.log' for more details" "$LINENO" 5; }
6176 else
6177 ac_cv_sizeof_int=0
6178 fi
6179 fi
6180
6181 fi
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6183 $as_echo "$ac_cv_sizeof_int" >&6; }
6184
6185
6186
6187 cat >>confdefs.h <<_ACEOF
6188 #define SIZEOF_INT $ac_cv_sizeof_int
6189 _ACEOF
6190
6191
6192 # The cast to long int works around a bug in the HP C Compiler
6193 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6194 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6195 # This bug is HP SR number 8606223364.
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6197 $as_echo_n "checking size of long... " >&6; }
6198 if ${ac_cv_sizeof_long+:} false; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6201 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6202
6203 else
6204 if test "$ac_cv_type_long" = yes; then
6205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6207 as_fn_error 77 "cannot compute sizeof (long)
6208 See \`config.log' for more details" "$LINENO" 5; }
6209 else
6210 ac_cv_sizeof_long=0
6211 fi
6212 fi
6213
6214 fi
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6216 $as_echo "$ac_cv_sizeof_long" >&6; }
6217
6218
6219
6220 cat >>confdefs.h <<_ACEOF
6221 #define SIZEOF_LONG $ac_cv_sizeof_long
6222 _ACEOF
6223
6224
6225 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6226 if test "x$ac_cv_type_long_long" = xyes; then :
6227
6228 cat >>confdefs.h <<_ACEOF
6229 #define HAVE_LONG_LONG 1
6230 _ACEOF
6231
6232 # The cast to long int works around a bug in the HP C Compiler
6233 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6234 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6235 # This bug is HP SR number 8606223364.
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6237 $as_echo_n "checking size of long long... " >&6; }
6238 if ${ac_cv_sizeof_long_long+:} false; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6242
6243 else
6244 if test "$ac_cv_type_long_long" = yes; then
6245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6247 as_fn_error 77 "cannot compute sizeof (long long)
6248 See \`config.log' for more details" "$LINENO" 5; }
6249 else
6250 ac_cv_sizeof_long_long=0
6251 fi
6252 fi
6253
6254 fi
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6256 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6257
6258
6259
6260 cat >>confdefs.h <<_ACEOF
6261 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6262 _ACEOF
6263
6264
6265 fi
6266
6267 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6268 case $ac_cv_c_int8_t in #(
6269 no|yes) ;; #(
6270 *)
6271
6272 cat >>confdefs.h <<_ACEOF
6273 #define int8_t $ac_cv_c_int8_t
6274 _ACEOF
6275 ;;
6276 esac
6277
6278 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6279 case $ac_cv_c_int16_t in #(
6280 no|yes) ;; #(
6281 *)
6282
6283 cat >>confdefs.h <<_ACEOF
6284 #define int16_t $ac_cv_c_int16_t
6285 _ACEOF
6286 ;;
6287 esac
6288
6289 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6290 case $ac_cv_c_int32_t in #(
6291 no|yes) ;; #(
6292 *)
6293
6294 cat >>confdefs.h <<_ACEOF
6295 #define int32_t $ac_cv_c_int32_t
6296 _ACEOF
6297 ;;
6298 esac
6299
6300 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6301 case $ac_cv_c_int64_t in #(
6302 no|yes) ;; #(
6303 *)
6304
6305 cat >>confdefs.h <<_ACEOF
6306 #define int64_t $ac_cv_c_int64_t
6307 _ACEOF
6308 ;;
6309 esac
6310
6311
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6313 $as_echo_n "checking for unsigned long long int... " >&6; }
6314 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317 ac_cv_type_unsigned_long_long_int=yes
6318 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6321
6322 /* For now, do not test the preprocessor; as of 2007 there are too many
6323 implementations with broken preprocessors. Perhaps this can
6324 be revisited in 2012. In the meantime, code should not expect
6325 #if to work with literals wider than 32 bits. */
6326 /* Test literals. */
6327 long long int ll = 9223372036854775807ll;
6328 long long int nll = -9223372036854775807LL;
6329 unsigned long long int ull = 18446744073709551615ULL;
6330 /* Test constant expressions. */
6331 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6332 ? 1 : -1)];
6333 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6334 ? 1 : -1)];
6335 int i = 63;
6336 int
6337 main ()
6338 {
6339 /* Test availability of runtime routines for shift and division. */
6340 long long int llmax = 9223372036854775807ll;
6341 unsigned long long int ullmax = 18446744073709551615ull;
6342 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6343 | (llmax / ll) | (llmax % ll)
6344 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6345 | (ullmax / ull) | (ullmax % ull));
6346 ;
6347 return 0;
6348 }
6349
6350 _ACEOF
6351 if ac_fn_cxx_try_link "$LINENO"; then :
6352
6353 else
6354 ac_cv_type_unsigned_long_long_int=no
6355 fi
6356 rm -f core conftest.err conftest.$ac_objext \
6357 conftest$ac_exeext conftest.$ac_ext
6358 fi
6359 fi
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6361 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6362 if test $ac_cv_type_unsigned_long_long_int = yes; then
6363
6364 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6365
6366 fi
6367
6368
6369
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6371 $as_echo_n "checking for long long int... " >&6; }
6372 if ${ac_cv_type_long_long_int+:} false; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 ac_cv_type_long_long_int=yes
6376 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6377 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6378 if test $ac_cv_type_long_long_int = yes; then
6379 if test "$cross_compiling" = yes; then :
6380 :
6381 else
6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6384 #include <limits.h>
6385 #ifndef LLONG_MAX
6386 # define HALF \
6387 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6388 # define LLONG_MAX (HALF - 1 + HALF)
6389 #endif
6390 int
6391 main ()
6392 {
6393 long long int n = 1;
6394 int i;
6395 for (i = 0; ; i++)
6396 {
6397 long long int m = n << i;
6398 if (m >> i != n)
6399 return 1;
6400 if (LLONG_MAX / 2 < m)
6401 break;
6402 }
6403 return 0;
6404 ;
6405 return 0;
6406 }
6407 _ACEOF
6408 if ac_fn_cxx_try_run "$LINENO"; then :
6409
6410 else
6411 ac_cv_type_long_long_int=no
6412 fi
6413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6414 conftest.$ac_objext conftest.beam conftest.$ac_ext
6415 fi
6416
6417 fi
6418 fi
6419 fi
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6421 $as_echo "$ac_cv_type_long_long_int" >&6; }
6422 if test $ac_cv_type_long_long_int = yes; then
6423
6424 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6425
6426 fi
6427
6428
6429
6430 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6431 if test "x$ac_cv_type_intmax_t" = xyes; then :
6432
6433 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6434
6435 else
6436 test $ac_cv_type_long_long_int = yes \
6437 && ac_type='long long int' \
6438 || ac_type='long int'
6439
6440 cat >>confdefs.h <<_ACEOF
6441 #define intmax_t $ac_type
6442 _ACEOF
6443
6444 fi
6445
6446
6447
6448 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6449 if test "x$ac_cv_type_intptr_t" = xyes; then :
6450
6451 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6452
6453 else
6454 for ac_type in 'int' 'long int' 'long long int'; do
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456 /* end confdefs.h. */
6457 $ac_includes_default
6458 int
6459 main ()
6460 {
6461 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6462 test_array [0] = 0;
6463 return test_array [0];
6464
6465 ;
6466 return 0;
6467 }
6468 _ACEOF
6469 if ac_fn_cxx_try_compile "$LINENO"; then :
6470
6471 cat >>confdefs.h <<_ACEOF
6472 #define intptr_t $ac_type
6473 _ACEOF
6474
6475 ac_type=
6476 fi
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478 test -z "$ac_type" && break
6479 done
6480 fi
6481
6482
6483 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6484 case $ac_cv_c_uint8_t in #(
6485 no|yes) ;; #(
6486 *)
6487
6488 $as_echo "#define _UINT8_T 1" >>confdefs.h
6489
6490
6491 cat >>confdefs.h <<_ACEOF
6492 #define uint8_t $ac_cv_c_uint8_t
6493 _ACEOF
6494 ;;
6495 esac
6496
6497 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6498 case $ac_cv_c_uint16_t in #(
6499 no|yes) ;; #(
6500 *)
6501
6502
6503 cat >>confdefs.h <<_ACEOF
6504 #define uint16_t $ac_cv_c_uint16_t
6505 _ACEOF
6506 ;;
6507 esac
6508
6509 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6510 case $ac_cv_c_uint32_t in #(
6511 no|yes) ;; #(
6512 *)
6513
6514 $as_echo "#define _UINT32_T 1" >>confdefs.h
6515
6516
6517 cat >>confdefs.h <<_ACEOF
6518 #define uint32_t $ac_cv_c_uint32_t
6519 _ACEOF
6520 ;;
6521 esac
6522
6523 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6524 case $ac_cv_c_uint64_t in #(
6525 no|yes) ;; #(
6526 *)
6527
6528 $as_echo "#define _UINT64_T 1" >>confdefs.h
6529
6530
6531 cat >>confdefs.h <<_ACEOF
6532 #define uint64_t $ac_cv_c_uint64_t
6533 _ACEOF
6534 ;;
6535 esac
6536
6537
6538
6539 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6540 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6541
6542 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6543
6544 else
6545 test $ac_cv_type_unsigned_long_long_int = yes \
6546 && ac_type='unsigned long long int' \
6547 || ac_type='unsigned long int'
6548
6549 cat >>confdefs.h <<_ACEOF
6550 #define uintmax_t $ac_type
6551 _ACEOF
6552
6553 fi
6554
6555
6556
6557 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6558 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6559
6560 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6561
6562 else
6563 for ac_type in 'unsigned int' 'unsigned long int' \
6564 'unsigned long long int'; do
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567 $ac_includes_default
6568 int
6569 main ()
6570 {
6571 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6572 test_array [0] = 0;
6573 return test_array [0];
6574
6575 ;
6576 return 0;
6577 }
6578 _ACEOF
6579 if ac_fn_cxx_try_compile "$LINENO"; then :
6580
6581 cat >>confdefs.h <<_ACEOF
6582 #define uintptr_t $ac_type
6583 _ACEOF
6584
6585 ac_type=
6586 fi
6587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588 test -z "$ac_type" && break
6589 done
6590 fi
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6606 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6607 fi
6608
6609 # check what underlying integer type int64_t uses
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6611 $as_echo_n "checking for int64_t underlying type... " >&6; }
6612 if ${ac_cv_int64_t_type+:} false; then :
6613 $as_echo_n "(cached) " >&6
6614 else
6615
6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h. */
6618
6619 #ifdef HAVE_STDINT_H
6620 #include <stdint.h>
6621 #endif
6622 template <typename T> struct X { };
6623 template <>
6624 struct X<long> { typedef long t; };
6625
6626 int
6627 main ()
6628 {
6629 X<int64_t>::t x;
6630 ;
6631 return 0;
6632 }
6633 _ACEOF
6634 if ac_fn_cxx_try_compile "$LINENO"; then :
6635 ac_cv_int64_t_type=long
6636 else
6637 ac_cv_int64_t_type="long long"
6638 fi
6639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640 fi
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6642 $as_echo "$ac_cv_int64_t_type" >&6; }
6643 if test "$ac_cv_int64_t_type" = "long"; then
6644
6645 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6646
6647 else
6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649 /* end confdefs.h. */
6650
6651 #ifdef HAVE_STDINT_H
6652 #include <stdint.h>
6653 #endif
6654 template <typename T> struct X { };
6655 template <>
6656 struct X<long long> { typedef long long t; };
6657
6658 int
6659 main ()
6660 {
6661 X<int64_t>::t x;
6662 ;
6663 return 0;
6664 }
6665 _ACEOF
6666 if ac_fn_cxx_try_compile "$LINENO"; then :
6667
6668 else
6669 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6670 fi
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672 fi
6673
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6675 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6676 if ${ac_cv_std_swap_in_utility+:} false; then :
6677 $as_echo_n "(cached) " >&6
6678 else
6679
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6682
6683 #include <utility>
6684
6685 int
6686 main ()
6687 {
6688 int a, b; std::swap(a,b);
6689 ;
6690 return 0;
6691 }
6692 _ACEOF
6693 if ac_fn_cxx_try_compile "$LINENO"; then :
6694 ac_cv_std_swap_in_utility=yes
6695 else
6696 ac_cv_std_swap_in_utility=no
6697 fi
6698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699 fi
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6701 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6702 if test $ac_cv_std_swap_in_utility = yes; then
6703
6704 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6705
6706 fi
6707
6708 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6709 # If the host compiler is affected by the bug, and we build with optimization
6710 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6711 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6712 # Since there is no reliable feature check for the presence of this bug,
6713 # we simply use a GCC version number check. (This should never trigger for
6714 # stages 2 or 3 of a native bootstrap.)
6715 aliasing_flags=
6716 if test "$GCC" = yes; then
6717 saved_CXXFLAGS="$CXXFLAGS"
6718
6719 # The following test compilation will succeed if and only if $CXX accepts
6720 # -fno-strict-aliasing *and* is older than GCC 4.3.
6721 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6723 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6726
6727 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6728 #error compiler not affected by placement new aliasing bug
6729 #endif
6730
6731 _ACEOF
6732 if ac_fn_cxx_try_compile "$LINENO"; then :
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6734 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6735 else
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737 $as_echo "no" >&6; }
6738 fi
6739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6740
6741 CXXFLAGS="$saved_CXXFLAGS"
6742 fi
6743
6744
6745
6746
6747 # ---------------------
6748 # Warnings and checking
6749 # ---------------------
6750
6751 # Check $CC warning features (if it's GCC).
6752 # We want to use -pedantic, but we don't want warnings about
6753 # * 'long long'
6754 # * variadic macros
6755 # * overlong strings
6756 # * C++11 narrowing conversions in { }
6757 # So, we only use -pedantic if we can disable those warnings.
6758
6759 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6760 # Check whether --enable-build-format-warnings was given.
6761 if test "${enable_build_format_warnings+set}" = set; then :
6762 enableval=$enable_build_format_warnings;
6763 else
6764 enable_build_format_warnings=yes
6765 fi
6766
6767 if test $enable_build_format_warnings = no; then :
6768 wf_opt=-Wno-format
6769 else
6770 wf_opt=
6771 fi
6772 ac_ext=cpp
6773 ac_cpp='$CXXCPP $CPPFLAGS'
6774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6777
6778 loose_warn=
6779 save_CXXFLAGS="$CXXFLAGS"
6780 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6781 # Do the check with the no- prefix removed since gcc silently
6782 # accepts any -Wno-* option on purpose
6783 case $real_option in
6784 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6785 *) option=$real_option ;;
6786 esac
6787 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6788
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6790 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6791 if eval \${$as_acx_Woption+:} false; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 CXXFLAGS="$option"
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797
6798 int
6799 main ()
6800 {
6801
6802 ;
6803 return 0;
6804 }
6805 _ACEOF
6806 if ac_fn_cxx_try_compile "$LINENO"; then :
6807 eval "$as_acx_Woption=yes"
6808 else
6809 eval "$as_acx_Woption=no"
6810 fi
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812
6813 fi
6814 eval ac_res=\$$as_acx_Woption
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6816 $as_echo "$ac_res" >&6; }
6817 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6818 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6819 fi
6820 done
6821 CXXFLAGS="$save_CXXFLAGS"
6822 ac_ext=cpp
6823 ac_cpp='$CXXCPP $CPPFLAGS'
6824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6827
6828
6829
6830 ac_ext=c
6831 ac_cpp='$CPP $CPPFLAGS'
6832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6835
6836 c_loose_warn=
6837 save_CFLAGS="$CFLAGS"
6838 for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
6839 # Do the check with the no- prefix removed since gcc silently
6840 # accepts any -Wno-* option on purpose
6841 case $real_option in
6842 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6843 *) option=$real_option ;;
6844 esac
6845 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6846
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6848 $as_echo_n "checking whether $CC supports $option... " >&6; }
6849 if eval \${$as_acx_Woption+:} false; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 CFLAGS="$option"
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6855
6856 int
6857 main ()
6858 {
6859
6860 ;
6861 return 0;
6862 }
6863 _ACEOF
6864 if ac_fn_c_try_compile "$LINENO"; then :
6865 eval "$as_acx_Woption=yes"
6866 else
6867 eval "$as_acx_Woption=no"
6868 fi
6869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870
6871 fi
6872 eval ac_res=\$$as_acx_Woption
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6874 $as_echo "$ac_res" >&6; }
6875 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6876 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6877 fi
6878 done
6879 CFLAGS="$save_CFLAGS"
6880 ac_ext=cpp
6881 ac_cpp='$CXXCPP $CPPFLAGS'
6882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6885
6886
6887 ac_ext=cpp
6888 ac_cpp='$CXXCPP $CPPFLAGS'
6889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6892
6893 strict_warn=
6894 save_CXXFLAGS="$CXXFLAGS"
6895 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6896 # Do the check with the no- prefix removed since gcc silently
6897 # accepts any -Wno-* option on purpose
6898 case $real_option in
6899 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6900 *) option=$real_option ;;
6901 esac
6902 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6903
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6905 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6906 if eval \${$as_acx_Woption+:} false; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 CXXFLAGS="$option"
6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h. */
6912
6913 int
6914 main ()
6915 {
6916
6917 ;
6918 return 0;
6919 }
6920 _ACEOF
6921 if ac_fn_cxx_try_compile "$LINENO"; then :
6922 eval "$as_acx_Woption=yes"
6923 else
6924 eval "$as_acx_Woption=no"
6925 fi
6926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927
6928 fi
6929 eval ac_res=\$$as_acx_Woption
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6931 $as_echo "$ac_res" >&6; }
6932 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6933 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6934 fi
6935 done
6936 CXXFLAGS="$save_CXXFLAGS"
6937 ac_ext=cpp
6938 ac_cpp='$CXXCPP $CPPFLAGS'
6939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6942
6943
6944 ac_ext=c
6945 ac_cpp='$CPP $CPPFLAGS'
6946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6949
6950 c_strict_warn=
6951 save_CFLAGS="$CFLAGS"
6952 for real_option in -Wold-style-definition -Wc++-compat; do
6953 # Do the check with the no- prefix removed since gcc silently
6954 # accepts any -Wno-* option on purpose
6955 case $real_option in
6956 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6957 *) option=$real_option ;;
6958 esac
6959 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6960
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6962 $as_echo_n "checking whether $CC supports $option... " >&6; }
6963 if eval \${$as_acx_Woption+:} false; then :
6964 $as_echo_n "(cached) " >&6
6965 else
6966 CFLAGS="$option"
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6969
6970 int
6971 main ()
6972 {
6973
6974 ;
6975 return 0;
6976 }
6977 _ACEOF
6978 if ac_fn_c_try_compile "$LINENO"; then :
6979 eval "$as_acx_Woption=yes"
6980 else
6981 eval "$as_acx_Woption=no"
6982 fi
6983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984
6985 fi
6986 eval ac_res=\$$as_acx_Woption
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6988 $as_echo "$ac_res" >&6; }
6989 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6990 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6991 fi
6992 done
6993 CFLAGS="$save_CFLAGS"
6994 ac_ext=cpp
6995 ac_cpp='$CXXCPP $CPPFLAGS'
6996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6999
7000
7001 ac_ext=cpp
7002 ac_cpp='$CXXCPP $CPPFLAGS'
7003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7006
7007 # Do the check with the no- prefix removed from the warning options
7008 # since gcc silently accepts any -Wno-* option on purpose
7009 if test "$GXX" = yes; then :
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7011 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7012 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7015 save_CXXFLAGS="$CXXFLAGS"
7016 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7019
7020 int
7021 main ()
7022 {
7023
7024 ;
7025 return 0;
7026 }
7027 _ACEOF
7028 if ac_fn_cxx_try_compile "$LINENO"; then :
7029 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7030 else
7031 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7032 fi
7033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 CXXFLAGS="$save_CXXFLAGS"
7035 fi
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7037 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7038 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7039 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7040 fi
7041
7042 fi
7043 ac_ext=cpp
7044 ac_cpp='$CXXCPP $CPPFLAGS'
7045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7048
7049
7050 ac_ext=cpp
7051 ac_cpp='$CXXCPP $CPPFLAGS'
7052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7055
7056 # Check whether --enable-werror-always was given.
7057 if test "${enable_werror_always+set}" = set; then :
7058 enableval=$enable_werror_always;
7059 else
7060 enable_werror_always=no
7061 fi
7062
7063 if test $enable_werror_always = yes; then :
7064 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7065 fi
7066
7067 ac_ext=cpp
7068 ac_cpp='$CXXCPP $CPPFLAGS'
7069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7072
7073
7074
7075 # The above macros do nothing if the compiler is not GCC. However, the
7076 # Makefile has more goo to add other flags, so these variables are used
7077 # to enable warnings only for GCC.
7078 warn_cflags=
7079 warn_cxxflags=
7080 if test "x$GCC" = "xyes"; then
7081 warn_cflags='$(GCC_WARN_CFLAGS)'
7082 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7083 fi
7084
7085
7086
7087 # Disable exceptions and RTTI if building with g++
7088 ac_ext=c
7089 ac_cpp='$CPP $CPPFLAGS'
7090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7093
7094 noexception_flags=
7095 save_CFLAGS="$CFLAGS"
7096 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7097 # Do the check with the no- prefix removed since gcc silently
7098 # accepts any -Wno-* option on purpose
7099 case $real_option in
7100 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7101 *) option=$real_option ;;
7102 esac
7103 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7104
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7106 $as_echo_n "checking whether $CC supports $option... " >&6; }
7107 if eval \${$as_acx_Woption+:} false; then :
7108 $as_echo_n "(cached) " >&6
7109 else
7110 CFLAGS="$option"
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7113
7114 int
7115 main ()
7116 {
7117
7118 ;
7119 return 0;
7120 }
7121 _ACEOF
7122 if ac_fn_c_try_compile "$LINENO"; then :
7123 eval "$as_acx_Woption=yes"
7124 else
7125 eval "$as_acx_Woption=no"
7126 fi
7127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7128
7129 fi
7130 eval ac_res=\$$as_acx_Woption
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7132 $as_echo "$ac_res" >&6; }
7133 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7134 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7135 fi
7136 done
7137 CFLAGS="$save_CFLAGS"
7138 ac_ext=cpp
7139 ac_cpp='$CXXCPP $CPPFLAGS'
7140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7143
7144
7145
7146 # Enable expensive internal checks
7147 is_release=
7148 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7149 is_release=yes
7150 fi
7151
7152 # Check whether --enable-checking was given.
7153 if test "${enable_checking+set}" = set; then :
7154 enableval=$enable_checking; ac_checking_flags="${enableval}"
7155 else
7156
7157 # Determine the default checks.
7158 if test x$is_release = x ; then
7159 ac_checking_flags=yes,extra
7160 else
7161 ac_checking_flags=release
7162 fi
7163 fi
7164
7165 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7166 for check in release $ac_checking_flags
7167 do
7168 case $check in
7169 # these set all the flags to specific states
7170 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7171 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7172 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7173 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7174 ac_tree_checking=1 ; ac_valgrind_checking= ;
7175 ac_types_checking=1 ;;
7176 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7177 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7178 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7179 ac_rtlflag_checking= ; ac_runtime_checking= ;
7180 ac_tree_checking= ; ac_valgrind_checking= ;
7181 ac_types_checking= ;;
7182 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7183 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7184 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7185 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7186 ac_tree_checking=1 ; ac_valgrind_checking= ;
7187 ac_types_checking=1 ;;
7188 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7189 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7190 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7191 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7192 ac_tree_checking= ; ac_valgrind_checking= ;
7193 ac_types_checking= ;;
7194 # these enable particular checks
7195 assert) ac_assert_checking=1 ;;
7196 df) ac_df_checking=1 ;;
7197 extra) ac_extra_checking=1 ;;
7198 fold) ac_fold_checking=1 ;;
7199 gc) ac_gc_checking=1 ;;
7200 gcac) ac_gc_always_collect=1 ;;
7201 gimple) ac_gimple_checking=1 ;;
7202 misc) ac_checking=1 ;;
7203 rtl) ac_rtl_checking=1 ;;
7204 rtlflag) ac_rtlflag_checking=1 ;;
7205 runtime) ac_runtime_checking=1 ;;
7206 tree) ac_tree_checking=1 ;;
7207 types) ac_types_checking=1 ;;
7208 valgrind) ac_valgrind_checking=1 ;;
7209 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7210 esac
7211 done
7212 IFS="$ac_save_IFS"
7213
7214 nocommon_flag=""
7215 if test x$ac_checking != x ; then
7216
7217 $as_echo "#define CHECKING_P 1" >>confdefs.h
7218
7219 nocommon_flag=-fno-common
7220 else
7221 $as_echo "#define CHECKING_P 0" >>confdefs.h
7222
7223 fi
7224
7225 if test x$ac_extra_checking != x ; then
7226
7227 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7228
7229 else
7230 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7231
7232 fi
7233 if test x$ac_df_checking != x ; then
7234
7235 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7236
7237 fi
7238 if test x$ac_assert_checking != x ; then
7239
7240 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7241
7242 fi
7243 if test x$ac_gimple_checking != x ; then
7244
7245 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7246
7247 fi
7248
7249 if test x$ac_runtime_checking != x ; then
7250
7251 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7252
7253 fi
7254 if test x$ac_tree_checking != x ; then
7255
7256 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7257
7258 TREECHECKING=yes
7259 fi
7260 if test x$ac_types_checking != x ; then
7261
7262 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7263
7264 fi
7265
7266 if test x$ac_rtl_checking != x ; then
7267
7268 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7269
7270 fi
7271 if test x$ac_rtlflag_checking != x ; then
7272
7273 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7274
7275 fi
7276 if test x$ac_gc_checking != x ; then
7277
7278 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7279
7280 fi
7281 if test x$ac_gc_always_collect != x ; then
7282
7283 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7284
7285 fi
7286 if test x$ac_fold_checking != x ; then
7287
7288 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7289
7290 fi
7291 valgrind_path_defines=
7292 valgrind_command=
7293
7294 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7295 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7296 have_valgrind_h=yes
7297 else
7298 have_valgrind_h=no
7299 fi
7300
7301
7302
7303 # It is certainly possible that there's valgrind but no valgrind.h.
7304 # GCC relies on making annotations so we must have both.
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7306 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7309 #include <valgrind/memcheck.h>
7310 #ifndef VALGRIND_DISCARD
7311 #error VALGRIND_DISCARD not defined
7312 #endif
7313 _ACEOF
7314 if ac_fn_cxx_try_cpp "$LINENO"; then :
7315 gcc_cv_header_valgrind_memcheck_h=yes
7316 else
7317 gcc_cv_header_valgrind_memcheck_h=no
7318 fi
7319 rm -f conftest.err conftest.i conftest.$ac_ext
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7321 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7323 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7326 #include <memcheck.h>
7327 #ifndef VALGRIND_DISCARD
7328 #error VALGRIND_DISCARD not defined
7329 #endif
7330 _ACEOF
7331 if ac_fn_cxx_try_cpp "$LINENO"; then :
7332 gcc_cv_header_memcheck_h=yes
7333 else
7334 gcc_cv_header_memcheck_h=no
7335 fi
7336 rm -f conftest.err conftest.i conftest.$ac_ext
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7338 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7339 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7340
7341 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7342
7343 fi
7344 if test $gcc_cv_header_memcheck_h = yes; then
7345
7346 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7347
7348 fi
7349
7350 if test x$ac_valgrind_checking != x ; then
7351
7352 # Prepare PATH_SEPARATOR.
7353 # The user is always right.
7354 if test "${PATH_SEPARATOR+set}" != set; then
7355 echo "#! /bin/sh" >conf$$.sh
7356 echo "exit 0" >>conf$$.sh
7357 chmod +x conf$$.sh
7358 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7359 PATH_SEPARATOR=';'
7360 else
7361 PATH_SEPARATOR=:
7362 fi
7363 rm -f conf$$.sh
7364 fi
7365
7366 # Find out how to test for executable files. Don't use a zero-byte file,
7367 # as systems may use methods other than mode bits to determine executability.
7368 cat >conf$$.file <<_ASEOF
7369 #! /bin/sh
7370 exit 0
7371 _ASEOF
7372 chmod +x conf$$.file
7373 if test -x conf$$.file >/dev/null 2>&1; then
7374 ac_executable_p="test -x"
7375 else
7376 ac_executable_p="test -f"
7377 fi
7378 rm -f conf$$.file
7379
7380 # Extract the first word of "valgrind", so it can be a program name with args.
7381 set dummy valgrind; ac_word=$2
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383 $as_echo_n "checking for $ac_word... " >&6; }
7384 if ${ac_cv_path_valgrind_path+:} false; then :
7385 $as_echo_n "(cached) " >&6
7386 else
7387 case "$valgrind_path" in
7388 [\\/]* | ?:[\\/]*)
7389 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7390 ;;
7391 *)
7392 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7393 for ac_dir in $PATH; do
7394 IFS="$ac_save_IFS"
7395 test -z "$ac_dir" && ac_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7398 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7399 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7400 break 2
7401 fi
7402 fi
7403 done
7404 done
7405 IFS="$ac_save_IFS"
7406 ;;
7407 esac
7408 fi
7409 valgrind_path="$ac_cv_path_valgrind_path"
7410 if test -n "$valgrind_path"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7412 $as_echo "$valgrind_path" >&6; }
7413 else
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7416 fi
7417
7418 if test "x$valgrind_path" = "x" \
7419 || (test $have_valgrind_h = no \
7420 && test $gcc_cv_header_memcheck_h = no \
7421 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7422 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7423 fi
7424 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7425 valgrind_command="$valgrind_path -q"
7426
7427 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7428
7429 fi
7430
7431
7432
7433 # Enable code coverage collection
7434 # Check whether --enable-coverage was given.
7435 if test "${enable_coverage+set}" = set; then :
7436 enableval=$enable_coverage; case "${enableval}" in
7437 yes|noopt)
7438 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7439 ;;
7440 opt)
7441 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7442 ;;
7443 no)
7444 # a.k.a. --disable-coverage
7445 coverage_flags=""
7446 ;;
7447 *)
7448 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7449 ;;
7450 esac
7451 else
7452 coverage_flags=""
7453 fi
7454
7455
7456
7457 # Check whether --enable-gather-detailed-mem-stats was given.
7458 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7459 enableval=$enable_gather_detailed_mem_stats;
7460 else
7461 enable_gather_detailed_mem_stats=no
7462 fi
7463
7464 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7465
7466 cat >>confdefs.h <<_ACEOF
7467 #define GATHER_STATISTICS $gather_stats
7468 _ACEOF
7469
7470
7471 # Check whether --enable-valgrind-annotations was given.
7472 if test "${enable_valgrind_annotations+set}" = set; then :
7473 enableval=$enable_valgrind_annotations;
7474 else
7475 enable_valgrind_annotations=no
7476 fi
7477
7478 if test x$enable_valgrind_annotations != xno \
7479 || test x$ac_valgrind_checking != x; then
7480 if (test $have_valgrind_h = no \
7481 && test $gcc_cv_header_memcheck_h = no \
7482 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7483 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7484 fi
7485
7486 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7487
7488 fi
7489
7490 # -------------------------------
7491 # Miscenalleous configure options
7492 # -------------------------------
7493
7494 # With stabs
7495
7496 # Check whether --with-stabs was given.
7497 if test "${with_stabs+set}" = set; then :
7498 withval=$with_stabs; stabs="$with_stabs"
7499 else
7500 stabs=no
7501 fi
7502
7503
7504 # Determine whether or not multilibs are enabled.
7505 # Check whether --enable-multilib was given.
7506 if test "${enable_multilib+set}" = set; then :
7507 enableval=$enable_multilib;
7508 else
7509 enable_multilib=yes
7510 fi
7511
7512
7513
7514 # Determine whether or not multiarch is enabled.
7515 # Check whether --enable-multiarch was given.
7516 if test "${enable_multiarch+set}" = set; then :
7517 enableval=$enable_multiarch; case "${enableval}" in
7518 yes|no|auto) enable_multiarch=$enableval;;
7519 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7520 esac
7521 else
7522 enable_multiarch=auto
7523 fi
7524
7525 if test x${enable_multiarch} = xauto; then
7526 if test x${with_native_system_header_dir} != x; then
7527 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7528 enable_multiarch=no
7529 fi
7530 if test x$host != x$target && test "x$with_sysroot" = x; then
7531 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7532 enable_multiarch=no
7533 fi
7534 fi
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7536 $as_echo_n "checking for multiarch configuration... " >&6; }
7537
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7539 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7540
7541 # needed for setting the multiarch name for soft-float/hard-float ABIs
7542
7543
7544
7545 # default stack clash protection guard size as power of twos in bytes.
7546 # Please keep these in sync with params.def.
7547 stk_clash_min=12
7548 stk_clash_max=30
7549
7550 # Keep the default value when the option is not used to 0, this allows us to
7551 # distinguish between the cases where the user specifially set a value via
7552 # configure and when the normal default value is used.
7553
7554 # Check whether --with-stack-clash-protection-guard-size was given.
7555 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7556 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7557 else
7558 DEFAULT_STK_CLASH_GUARD_SIZE=0
7559 fi
7560
7561 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7562 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7563 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7564 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
7565 fi
7566
7567
7568 cat >>confdefs.h <<_ACEOF
7569 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7570 _ACEOF
7571
7572
7573 # Enable __cxa_atexit for C++.
7574 # Check whether --enable-__cxa_atexit was given.
7575 if test "${enable___cxa_atexit+set}" = set; then :
7576 enableval=$enable___cxa_atexit;
7577 fi
7578
7579
7580 # Enable C extension for decimal float if target supports it.
7581
7582 # Check whether --enable-decimal-float was given.
7583 if test "${enable_decimal_float+set}" = set; then :
7584 enableval=$enable_decimal_float;
7585 case $enable_decimal_float in
7586 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7587 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7588 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7589 esac
7590
7591 else
7592
7593 case $target in
7594 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7595 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7596 i?86*-*-mingw* | x86_64*-*-mingw* | \
7597 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7598 enable_decimal_float=yes
7599 ;;
7600 *)
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7602 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7603 enable_decimal_float=no
7604 ;;
7605 esac
7606
7607 fi
7608
7609
7610 # x86's use BID format instead of DPD
7611 case x$enable_decimal_float in
7612 xyes)
7613 case $target in
7614 i?86*-*-* | x86_64*-*-*)
7615 enable_decimal_float=bid
7616 ;;
7617 *)
7618 enable_decimal_float=dpd
7619 ;;
7620 esac
7621 default_decimal_float=$enable_decimal_float
7622 ;;
7623 xno)
7624 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7625 # dependency on libdecnumber.
7626 default_decimal_float=dpd
7627 ;;
7628 esac
7629
7630
7631
7632
7633 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7634
7635 cat >>confdefs.h <<_ACEOF
7636 #define ENABLE_DECIMAL_FLOAT $dfp
7637 _ACEOF
7638
7639
7640 # Use default_decimal_float for dependency.
7641 enable_decimal_float=$default_decimal_float
7642
7643 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7644
7645 cat >>confdefs.h <<_ACEOF
7646 #define ENABLE_DECIMAL_BID_FORMAT $bid
7647 _ACEOF
7648
7649
7650 # Enable C extension for fixed-point arithmetic.
7651 # Check whether --enable-fixed-point was given.
7652 if test "${enable_fixed_point+set}" = set; then :
7653 enableval=$enable_fixed_point;
7654 else
7655
7656 case $target in
7657 arm*)
7658 enable_fixed_point=yes
7659 ;;
7660
7661 mips*-*-*)
7662 enable_fixed_point=yes
7663 ;;
7664 *)
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7666 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7667 enable_fixed_point=no
7668 ;;
7669 esac
7670
7671 fi
7672
7673
7674
7675 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7676
7677 cat >>confdefs.h <<_ACEOF
7678 #define ENABLE_FIXED_POINT $fixedpoint
7679 _ACEOF
7680
7681
7682 # Enable threads
7683 # Pass with no value to take the default
7684 # Pass with a value to specify a thread package
7685 # Check whether --enable-threads was given.
7686 if test "${enable_threads+set}" = set; then :
7687 enableval=$enable_threads;
7688 else
7689 enable_threads=''
7690 fi
7691
7692
7693 # Check whether --enable-tls was given.
7694 if test "${enable_tls+set}" = set; then :
7695 enableval=$enable_tls;
7696 case $enable_tls in
7697 yes | no) ;;
7698 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7699 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7700 esac
7701
7702 else
7703 enable_tls=''
7704 fi
7705
7706
7707 # Check whether --enable-vtable-verify was given.
7708 if test "${enable_vtable_verify+set}" = set; then :
7709 enableval=$enable_vtable_verify;
7710 else
7711 enable_vtable_verify=no
7712 fi
7713
7714 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7715
7716 cat >>confdefs.h <<_ACEOF
7717 #define ENABLE_VTABLE_VERIFY $vtable_verify
7718 _ACEOF
7719
7720
7721 # Check whether --enable-analyzer was given.
7722 if test "${enable_analyzer+set}" = set; then :
7723 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
7724 analyzer=0
7725 else
7726 analyzer=1
7727 fi
7728 else
7729 analyzer=1
7730 fi
7731
7732
7733 cat >>confdefs.h <<_ACEOF
7734 #define ENABLE_ANALYZER $analyzer
7735 _ACEOF
7736
7737
7738 # Check whether --enable-objc-gc was given.
7739 if test "${enable_objc_gc+set}" = set; then :
7740 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7741 objc_boehm_gc=''
7742 else
7743 objc_boehm_gc=1
7744 fi
7745 else
7746 objc_boehm_gc=''
7747 fi
7748
7749
7750
7751 # Check whether --with-dwarf2 was given.
7752 if test "${with_dwarf2+set}" = set; then :
7753 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7754 else
7755 dwarf2=no
7756 fi
7757
7758
7759 # Check whether --enable-shared was given.
7760 if test "${enable_shared+set}" = set; then :
7761 enableval=$enable_shared;
7762 case $enable_shared in
7763 yes | no) ;;
7764 *)
7765 enable_shared=no
7766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7767 for pkg in $enableval; do
7768 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7769 enable_shared=yes
7770 fi
7771 done
7772 IFS="$ac_save_ifs"
7773 ;;
7774 esac
7775
7776 else
7777 enable_shared=yes
7778 fi
7779
7780
7781
7782 # Check whether --enable-gcov was given.
7783 if test "${enable_gcov+set}" = set; then :
7784 enableval=$enable_gcov;
7785 else
7786 enable_gcov=yes
7787 fi
7788
7789
7790
7791
7792 # Check whether --with-specs was given.
7793 if test "${with_specs+set}" = set; then :
7794 withval=$with_specs; CONFIGURE_SPECS=$withval
7795 else
7796 CONFIGURE_SPECS=
7797
7798 fi
7799
7800
7801
7802
7803
7804 # Check whether --with-pkgversion was given.
7805 if test "${with_pkgversion+set}" = set; then :
7806 withval=$with_pkgversion; case "$withval" in
7807 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7808 no) PKGVERSION= ;;
7809 *) PKGVERSION="($withval) " ;;
7810 esac
7811 else
7812 PKGVERSION="(GCC) "
7813
7814 fi
7815
7816
7817
7818
7819
7820 # Check whether --with-bugurl was given.
7821 if test "${with_bugurl+set}" = set; then :
7822 withval=$with_bugurl; case "$withval" in
7823 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7824 no) BUGURL=
7825 ;;
7826 *) BUGURL="$withval"
7827 ;;
7828 esac
7829 else
7830 BUGURL="https://gcc.gnu.org/bugs/"
7831
7832 fi
7833
7834 case ${BUGURL} in
7835 "")
7836 REPORT_BUGS_TO=
7837 REPORT_BUGS_TEXI=
7838 ;;
7839 *)
7840 REPORT_BUGS_TO="<$BUGURL>"
7841 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7842 ;;
7843 esac;
7844
7845
7846
7847
7848 # Allow overriding the default URL for documentation
7849
7850 # Check whether --with-documentation-root-url was given.
7851 if test "${with_documentation_root_url+set}" = set; then :
7852 withval=$with_documentation_root_url; case "$withval" in
7853 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7854 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7855 */) DOCUMENTATION_ROOT_URL="$withval" ;;
7856 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
7857 esac
7858 else
7859 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
7860
7861 fi
7862
7863
7864 cat >>confdefs.h <<_ACEOF
7865 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
7866 _ACEOF
7867
7868
7869 # Allow overriding the default URL for GCC changes
7870
7871 # Check whether --with-changes-root-url was given.
7872 if test "${with_changes_root_url+set}" = set; then :
7873 withval=$with_changes_root_url; case "$withval" in
7874 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7875 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7876 */) CHANGES_ROOT_URL="$withval" ;;
7877 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
7878 esac
7879 else
7880 CHANGES_ROOT_URL="https://gcc.gnu.org/"
7881
7882 fi
7883
7884
7885 cat >>confdefs.h <<_ACEOF
7886 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
7887 _ACEOF
7888
7889
7890 # Sanity check enable_languages in case someone does not run the toplevel
7891 # configure # script.
7892 # Check whether --enable-languages was given.
7893 if test "${enable_languages+set}" = set; then :
7894 enableval=$enable_languages; case ,${enable_languages}, in
7895 ,,|,yes,)
7896 # go safe -- we cannot be much sure without the toplevel
7897 # configure's
7898 # analysis of which target libs are present and usable
7899 enable_languages=c
7900 ;;
7901 *,all,*)
7902 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7903 ;;
7904 *,c,*)
7905 ;;
7906 *)
7907 enable_languages=c,${enable_languages}
7908 ;;
7909 esac
7910 else
7911 enable_languages=c
7912 fi
7913
7914
7915 # If top-level libada has been disabled, then wire in install-gnatlib
7916 # invocation with `make install', so that one can build and install
7917 # the library manually with `make -C gcc all gnatlib gnattools install'.
7918 if test x"$enable_libada" = xno; then
7919 gnat_install_lib=gnat-install-lib
7920 else
7921 gnat_install_lib=
7922 fi
7923
7924
7925 if test x"$enable_as_accelerator_for" != x; then
7926
7927 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7928
7929 enable_as_accelerator=yes
7930 case "${target}" in
7931 *-intelmicemul-*)
7932 # In this case we expect offload compiler to be built as native, so we
7933 # need to rename the driver to avoid clashes with host's drivers.
7934 program_transform_name="s&^&${target}-&" ;;
7935 esac
7936 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7937 program_transform_name=`echo $program_transform_name | sed $sedscript`
7938 accel_dir_suffix=/accel/${target_noncanonical}
7939 real_target_noncanonical=${enable_as_accelerator_for}
7940 fi
7941
7942
7943
7944
7945 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7946 tgt=`echo $tgt | sed 's/=.*//'`
7947
7948 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7949 enable_hsa=1
7950 else
7951 enable_offloading=1
7952 case "$tgt" in
7953 *-intelmic-* | *-intelmicemul-*)
7954 omp_device_property=omp-device-properties-i386
7955 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
7956 ;;
7957 amdgcn*)
7958 omp_device_property=omp-device-properties-gcn
7959 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
7960 ;;
7961 nvptx*)
7962 omp_device_property=omp-device-properties-nvptx
7963 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
7964 ;;
7965 *)
7966 as_fn_error $? "unknown offload target specified" "$LINENO" 5
7967 ;;
7968 esac
7969 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
7970 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
7971 fi
7972
7973 if test x"$offload_targets" = x; then
7974 offload_targets=$tgt
7975 else
7976 offload_targets="$offload_targets,$tgt"
7977 fi
7978 done
7979
7980
7981
7982
7983 cat >>confdefs.h <<_ACEOF
7984 #define OFFLOAD_TARGETS "$offload_targets"
7985 _ACEOF
7986
7987 if test x"$enable_offloading" != x; then
7988
7989 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7990
7991 else
7992
7993 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7994
7995 fi
7996
7997 if test x"$enable_hsa" = x1 ; then
7998
7999 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
8000
8001 fi
8002
8003
8004 # Check whether --with-multilib-list was given.
8005 if test "${with_multilib_list+set}" = set; then :
8006 withval=$with_multilib_list; :
8007 else
8008 with_multilib_list=default
8009 fi
8010
8011
8012 # -------------------------
8013 # Checks for other programs
8014 # -------------------------
8015
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8017 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8018 set x ${MAKE-make}
8019 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8020 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8021 $as_echo_n "(cached) " >&6
8022 else
8023 cat >conftest.make <<\_ACEOF
8024 SHELL = /bin/sh
8025 all:
8026 @echo '@@@%%%=$(MAKE)=@@@%%%'
8027 _ACEOF
8028 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8029 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8030 *@@@%%%=?*=@@@%%%*)
8031 eval ac_cv_prog_make_${ac_make}_set=yes;;
8032 *)
8033 eval ac_cv_prog_make_${ac_make}_set=no;;
8034 esac
8035 rm -f conftest.make
8036 fi
8037 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8039 $as_echo "yes" >&6; }
8040 SET_MAKE=
8041 else
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043 $as_echo "no" >&6; }
8044 SET_MAKE="MAKE=${MAKE-make}"
8045 fi
8046
8047
8048 # Find some useful tools
8049 for ac_prog in gawk mawk nawk awk
8050 do
8051 # Extract the first word of "$ac_prog", so it can be a program name with args.
8052 set dummy $ac_prog; ac_word=$2
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054 $as_echo_n "checking for $ac_word... " >&6; }
8055 if ${ac_cv_prog_AWK+:} false; then :
8056 $as_echo_n "(cached) " >&6
8057 else
8058 if test -n "$AWK"; then
8059 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8060 else
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 for as_dir in $PATH
8063 do
8064 IFS=$as_save_IFS
8065 test -z "$as_dir" && as_dir=.
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8068 ac_cv_prog_AWK="$ac_prog"
8069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8070 break 2
8071 fi
8072 done
8073 done
8074 IFS=$as_save_IFS
8075
8076 fi
8077 fi
8078 AWK=$ac_cv_prog_AWK
8079 if test -n "$AWK"; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8081 $as_echo "$AWK" >&6; }
8082 else
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8085 fi
8086
8087
8088 test -n "$AWK" && break
8089 done
8090
8091 # We need awk to create options.c and options.h.
8092 # Bail out if it's missing.
8093 case ${AWK} in
8094 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8095 esac
8096
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8098 $as_echo_n "checking whether ln -s works... " >&6; }
8099 if ${gcc_cv_prog_LN_S+:} false; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8102 rm -f conftestdata_t
8103 echo >conftestdata_f
8104 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8105 then
8106 gcc_cv_prog_LN_S="ln -s"
8107 else
8108 if ln conftestdata_f conftestdata_t 2>/dev/null
8109 then
8110 gcc_cv_prog_LN_S=ln
8111 else
8112 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8113 then
8114 gcc_cv_prog_LN_S="cp -p"
8115 else
8116 gcc_cv_prog_LN_S=cp
8117 fi
8118 fi
8119 fi
8120 rm -f conftestdata_f conftestdata_t
8121
8122 fi
8123 LN_S="$gcc_cv_prog_LN_S"
8124 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8126 $as_echo "yes" >&6; }
8127 else
8128 if test "$gcc_cv_prog_LN_S" = "ln"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8130 $as_echo "no, using ln" >&6; }
8131 else
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8133 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8134 fi
8135 fi
8136
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8138 $as_echo_n "checking whether ln works... " >&6; }
8139 if ${acx_cv_prog_LN+:} false; then :
8140 $as_echo_n "(cached) " >&6
8141 else
8142 rm -f conftestdata_t
8143 echo >conftestdata_f
8144 if ln conftestdata_f conftestdata_t 2>/dev/null
8145 then
8146 acx_cv_prog_LN=ln
8147 else
8148 acx_cv_prog_LN=no
8149 fi
8150 rm -f conftestdata_f conftestdata_t
8151
8152 fi
8153 if test $acx_cv_prog_LN = no; then
8154 LN="$LN_S"
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8156 $as_echo "no, using $LN" >&6; }
8157 else
8158 LN="$acx_cv_prog_LN"
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8160 $as_echo "yes" >&6; }
8161 fi
8162
8163 if test -n "$ac_tool_prefix"; then
8164 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8165 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167 $as_echo_n "checking for $ac_word... " >&6; }
8168 if ${ac_cv_prog_RANLIB+:} false; then :
8169 $as_echo_n "(cached) " >&6
8170 else
8171 if test -n "$RANLIB"; then
8172 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8173 else
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 for as_dir in $PATH
8176 do
8177 IFS=$as_save_IFS
8178 test -z "$as_dir" && as_dir=.
8179 for ac_exec_ext in '' $ac_executable_extensions; do
8180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8181 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8183 break 2
8184 fi
8185 done
8186 done
8187 IFS=$as_save_IFS
8188
8189 fi
8190 fi
8191 RANLIB=$ac_cv_prog_RANLIB
8192 if test -n "$RANLIB"; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8194 $as_echo "$RANLIB" >&6; }
8195 else
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8198 fi
8199
8200
8201 fi
8202 if test -z "$ac_cv_prog_RANLIB"; then
8203 ac_ct_RANLIB=$RANLIB
8204 # Extract the first word of "ranlib", so it can be a program name with args.
8205 set dummy ranlib; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8209 $as_echo_n "(cached) " >&6
8210 else
8211 if test -n "$ac_ct_RANLIB"; then
8212 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8213 else
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8216 do
8217 IFS=$as_save_IFS
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8221 ac_cv_prog_ac_ct_RANLIB="ranlib"
8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 break 2
8224 fi
8225 done
8226 done
8227 IFS=$as_save_IFS
8228
8229 fi
8230 fi
8231 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8232 if test -n "$ac_ct_RANLIB"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8234 $as_echo "$ac_ct_RANLIB" >&6; }
8235 else
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8238 fi
8239
8240 if test "x$ac_ct_RANLIB" = x; then
8241 RANLIB=":"
8242 else
8243 case $cross_compiling:$ac_tool_warned in
8244 yes:)
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8247 ac_tool_warned=yes ;;
8248 esac
8249 RANLIB=$ac_ct_RANLIB
8250 fi
8251 else
8252 RANLIB="$ac_cv_prog_RANLIB"
8253 fi
8254
8255 ranlib_flags=""
8256
8257
8258 # Find a good install program. We prefer a C program (faster),
8259 # so one script is as good as another. But avoid the broken or
8260 # incompatible versions:
8261 # SysV /etc/install, /usr/sbin/install
8262 # SunOS /usr/etc/install
8263 # IRIX /sbin/install
8264 # AIX /bin/install
8265 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8266 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8267 # ./install, which can be erroneously created by make from ./install.sh.
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8269 $as_echo_n "checking for a BSD compatible install... " >&6; }
8270 if test -z "$INSTALL"; then
8271 if ${ac_cv_path_install+:} false; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8275 for ac_dir in $PATH; do
8276 # Account for people who put trailing slashes in PATH elements.
8277 case "$ac_dir/" in
8278 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8279 *)
8280 # OSF1 and SCO ODT 3.0 have their own names for install.
8281 for ac_prog in ginstall scoinst install; do
8282 if test -f $ac_dir/$ac_prog; then
8283 if test $ac_prog = install &&
8284 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8285 # AIX install. It has an incompatible calling convention.
8286 # OSF/1 installbsd also uses dspmsg, but is usable.
8287 :
8288 else
8289 ac_cv_path_install="$ac_dir/$ac_prog -c"
8290 break 2
8291 fi
8292 fi
8293 done
8294 ;;
8295 esac
8296 done
8297 IFS="$ac_save_IFS"
8298
8299 fi
8300 if test "${ac_cv_path_install+set}" = set; then
8301 INSTALL="$ac_cv_path_install"
8302 else
8303 # As a last resort, use the slow shell script. We don't cache a
8304 # path for INSTALL within a source directory, because that will
8305 # break other packages using the cache if that directory is
8306 # removed, or if the path is relative.
8307 INSTALL="$ac_install_sh"
8308 fi
8309 fi
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8311 $as_echo "$INSTALL" >&6; }
8312
8313 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8314 # It thinks the first close brace ends the variable substitution.
8315 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8316
8317 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8318
8319
8320 # See if cmp has --ignore-initial.
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8322 $as_echo_n "checking for cmp's capabilities... " >&6; }
8323 if ${gcc_cv_prog_cmp_skip+:} false; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8326 echo abfoo >t1
8327 echo cdfoo >t2
8328 gcc_cv_prog_cmp_skip=slowcompare
8329 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8330 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8331 :
8332 else
8333 gcc_cv_prog_cmp_skip=gnucompare
8334 fi
8335 fi
8336 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8337 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8338 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8339 :
8340 else
8341 gcc_cv_prog_cmp_skip=fastcompare
8342 fi
8343 fi
8344 fi
8345 rm t1 t2
8346
8347 fi
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8349 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8350 make_compare_target=$gcc_cv_prog_cmp_skip
8351
8352
8353
8354 # See if we have the mktemp command.
8355 # Extract the first word of "mktemp", so it can be a program name with args.
8356 set dummy mktemp; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 if test -n "$have_mktemp_command"; then
8363 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8364 else
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in $PATH
8367 do
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8372 ac_cv_prog_have_mktemp_command="yes"
8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8375 fi
8376 done
8377 done
8378 IFS=$as_save_IFS
8379
8380 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8381 fi
8382 fi
8383 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8384 if test -n "$have_mktemp_command"; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8386 $as_echo "$have_mktemp_command" >&6; }
8387 else
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8390 fi
8391
8392
8393
8394 # See if makeinfo has been installed and is modern enough
8395 # that we can use it.
8396
8397 # Extract the first word of "makeinfo", so it can be a program name with args.
8398 set dummy makeinfo; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if ${ac_cv_prog_MAKEINFO+:} false; then :
8402 $as_echo_n "(cached) " >&6
8403 else
8404 if test -n "$MAKEINFO"; then
8405 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8409 do
8410 IFS=$as_save_IFS
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414 ac_cv_prog_MAKEINFO="makeinfo"
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 break 2
8417 fi
8418 done
8419 done
8420 IFS=$as_save_IFS
8421
8422 fi
8423 fi
8424 MAKEINFO=$ac_cv_prog_MAKEINFO
8425 if test -n "$MAKEINFO"; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8427 $as_echo "$MAKEINFO" >&6; }
8428 else
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8431 fi
8432
8433
8434 if test -n "$MAKEINFO"; then
8435 # Found it, now check the version.
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8437 $as_echo_n "checking for modern makeinfo... " >&6; }
8438 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8439 $as_echo_n "(cached) " >&6
8440 else
8441 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8442 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8443
8444 case $ac_prog_version in
8445 '') gcc_cv_prog_makeinfo_modern=no;;
8446 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8447 *) gcc_cv_prog_makeinfo_modern=no;;
8448 esac
8449
8450 fi
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8452 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8453 else
8454 gcc_cv_prog_makeinfo_modern=no
8455 fi
8456 if test $gcc_cv_prog_makeinfo_modern = no; then
8457 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8458 fi
8459
8460 if test $gcc_cv_prog_makeinfo_modern = no; then
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8462 *** Makeinfo is missing or too old.
8463 *** Info documentation will not be built." >&5
8464 $as_echo "$as_me: WARNING:
8465 *** Makeinfo is missing or too old.
8466 *** Info documentation will not be built." >&2;}
8467 BUILD_INFO=
8468 else
8469 BUILD_INFO=info
8470 fi
8471
8472
8473 # Is pod2man recent enough to regenerate manpages?
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8475 $as_echo_n "checking for recent Pod::Man... " >&6; }
8476 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8478 $as_echo "yes" >&6; }
8479 GENERATED_MANPAGES=generated-manpages
8480 else
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8482 $as_echo "no" >&6; }
8483 GENERATED_MANPAGES=
8484 fi
8485
8486
8487 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8488
8489 # How about lex?
8490 for ac_prog in flex
8491 do
8492 # Extract the first word of "$ac_prog", so it can be a program name with args.
8493 set dummy $ac_prog; ac_word=$2
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495 $as_echo_n "checking for $ac_word... " >&6; }
8496 if ${ac_cv_prog_FLEX+:} false; then :
8497 $as_echo_n "(cached) " >&6
8498 else
8499 if test -n "$FLEX"; then
8500 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8501 else
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 for as_dir in $PATH
8504 do
8505 IFS=$as_save_IFS
8506 test -z "$as_dir" && as_dir=.
8507 for ac_exec_ext in '' $ac_executable_extensions; do
8508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8509 ac_cv_prog_FLEX="$ac_prog"
8510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8511 break 2
8512 fi
8513 done
8514 done
8515 IFS=$as_save_IFS
8516
8517 fi
8518 fi
8519 FLEX=$ac_cv_prog_FLEX
8520 if test -n "$FLEX"; then
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8522 $as_echo "$FLEX" >&6; }
8523 else
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8525 $as_echo "no" >&6; }
8526 fi
8527
8528
8529 test -n "$FLEX" && break
8530 done
8531 test -n "$FLEX" || FLEX="$MISSING flex"
8532
8533
8534 # Bison?
8535 for ac_prog in bison
8536 do
8537 # Extract the first word of "$ac_prog", so it can be a program name with args.
8538 set dummy $ac_prog; ac_word=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if ${ac_cv_prog_BISON+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 if test -n "$BISON"; then
8545 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8546 else
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 for as_dir in $PATH
8549 do
8550 IFS=$as_save_IFS
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8554 ac_cv_prog_BISON="$ac_prog"
8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 break 2
8557 fi
8558 done
8559 done
8560 IFS=$as_save_IFS
8561
8562 fi
8563 fi
8564 BISON=$ac_cv_prog_BISON
8565 if test -n "$BISON"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8567 $as_echo "$BISON" >&6; }
8568 else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8571 fi
8572
8573
8574 test -n "$BISON" && break
8575 done
8576 test -n "$BISON" || BISON="$MISSING bison"
8577
8578
8579 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8580 # check for build == host before using them.
8581
8582 # NM
8583 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8584 && test -d ../binutils ; then
8585 NM='${objdir}/../binutils/nm-new'
8586 else
8587 # Extract the first word of "nm", so it can be a program name with args.
8588 set dummy nm; ac_word=$2
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8590 $as_echo_n "checking for $ac_word... " >&6; }
8591 if ${ac_cv_prog_NM+:} false; then :
8592 $as_echo_n "(cached) " >&6
8593 else
8594 if test -n "$NM"; then
8595 ac_cv_prog_NM="$NM" # Let the user override the test.
8596 else
8597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598 for as_dir in $PATH
8599 do
8600 IFS=$as_save_IFS
8601 test -z "$as_dir" && as_dir=.
8602 for ac_exec_ext in '' $ac_executable_extensions; do
8603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8604 ac_cv_prog_NM="nm"
8605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8606 break 2
8607 fi
8608 done
8609 done
8610 IFS=$as_save_IFS
8611
8612 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8613 fi
8614 fi
8615 NM=$ac_cv_prog_NM
8616 if test -n "$NM"; then
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8618 $as_echo "$NM" >&6; }
8619 else
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621 $as_echo "no" >&6; }
8622 fi
8623
8624
8625 fi
8626
8627 # AR
8628 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8629 && test -d ../binutils ; then
8630 AR='${objdir}/../binutils/ar'
8631 else
8632 # Extract the first word of "ar", so it can be a program name with args.
8633 set dummy ar; ac_word=$2
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8635 $as_echo_n "checking for $ac_word... " >&6; }
8636 if ${ac_cv_prog_AR+:} false; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 if test -n "$AR"; then
8640 ac_cv_prog_AR="$AR" # Let the user override the test.
8641 else
8642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8643 for as_dir in $PATH
8644 do
8645 IFS=$as_save_IFS
8646 test -z "$as_dir" && as_dir=.
8647 for ac_exec_ext in '' $ac_executable_extensions; do
8648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8649 ac_cv_prog_AR="ar"
8650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8651 break 2
8652 fi
8653 done
8654 done
8655 IFS=$as_save_IFS
8656
8657 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8658 fi
8659 fi
8660 AR=$ac_cv_prog_AR
8661 if test -n "$AR"; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8663 $as_echo "$AR" >&6; }
8664 else
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666 $as_echo "no" >&6; }
8667 fi
8668
8669
8670 fi
8671
8672 # The jit documentation looks better if built with sphinx, but can be
8673 # built with texinfo if sphinx is not available.
8674 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8675 # Extract the first word of "sphinx-build", so it can be a program name with args.
8676 set dummy sphinx-build; ac_word=$2
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678 $as_echo_n "checking for $ac_word... " >&6; }
8679 if ${ac_cv_prog_doc_build_sys+:} false; then :
8680 $as_echo_n "(cached) " >&6
8681 else
8682 if test -n "$doc_build_sys"; then
8683 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8684 else
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686 for as_dir in $PATH
8687 do
8688 IFS=$as_save_IFS
8689 test -z "$as_dir" && as_dir=.
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8692 ac_cv_prog_doc_build_sys="sphinx"
8693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8694 break 2
8695 fi
8696 done
8697 done
8698 IFS=$as_save_IFS
8699
8700 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8701 fi
8702 fi
8703 doc_build_sys=$ac_cv_prog_doc_build_sys
8704 if test -n "$doc_build_sys"; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8706 $as_echo "$doc_build_sys" >&6; }
8707 else
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8710 fi
8711
8712
8713
8714 # --------------------
8715 # Checks for C headers
8716 # --------------------
8717
8718 # Need to reject headers which give warnings, so that the -Werror bootstrap
8719 # works later. *sigh* This needs to come before all header checks.
8720
8721 ac_c_preproc_warn_flag=yes
8722
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8724 $as_echo_n "checking for ANSI C header files... " >&6; }
8725 if ${ac_cv_header_stdc+:} false; then :
8726 $as_echo_n "(cached) " >&6
8727 else
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8730 #include <stdlib.h>
8731 #include <stdarg.h>
8732 #include <string.h>
8733 #include <float.h>
8734
8735 int
8736 main ()
8737 {
8738
8739 ;
8740 return 0;
8741 }
8742 _ACEOF
8743 if ac_fn_cxx_try_compile "$LINENO"; then :
8744 ac_cv_header_stdc=yes
8745 else
8746 ac_cv_header_stdc=no
8747 fi
8748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8749
8750 if test $ac_cv_header_stdc = yes; then
8751 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8754 #include <string.h>
8755
8756 _ACEOF
8757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8758 $EGREP "memchr" >/dev/null 2>&1; then :
8759
8760 else
8761 ac_cv_header_stdc=no
8762 fi
8763 rm -f conftest*
8764
8765 fi
8766
8767 if test $ac_cv_header_stdc = yes; then
8768 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 #include <stdlib.h>
8772
8773 _ACEOF
8774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8775 $EGREP "free" >/dev/null 2>&1; then :
8776
8777 else
8778 ac_cv_header_stdc=no
8779 fi
8780 rm -f conftest*
8781
8782 fi
8783
8784 if test $ac_cv_header_stdc = yes; then
8785 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8786 if test "$cross_compiling" = yes; then :
8787 :
8788 else
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 #include <ctype.h>
8792 #include <stdlib.h>
8793 #if ((' ' & 0x0FF) == 0x020)
8794 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8795 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8796 #else
8797 # define ISLOWER(c) \
8798 (('a' <= (c) && (c) <= 'i') \
8799 || ('j' <= (c) && (c) <= 'r') \
8800 || ('s' <= (c) && (c) <= 'z'))
8801 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8802 #endif
8803
8804 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8805 int
8806 main ()
8807 {
8808 int i;
8809 for (i = 0; i < 256; i++)
8810 if (XOR (islower (i), ISLOWER (i))
8811 || toupper (i) != TOUPPER (i))
8812 return 2;
8813 return 0;
8814 }
8815 _ACEOF
8816 if ac_fn_cxx_try_run "$LINENO"; then :
8817
8818 else
8819 ac_cv_header_stdc=no
8820 fi
8821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8822 conftest.$ac_objext conftest.beam conftest.$ac_ext
8823 fi
8824
8825 fi
8826 fi
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8828 $as_echo "$ac_cv_header_stdc" >&6; }
8829 if test $ac_cv_header_stdc = yes; then
8830
8831 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8832
8833 fi
8834
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8836 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8837 if ${ac_cv_header_time+:} false; then :
8838 $as_echo_n "(cached) " >&6
8839 else
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8842 #include <sys/types.h>
8843 #include <sys/time.h>
8844 #include <time.h>
8845
8846 int
8847 main ()
8848 {
8849 if ((struct tm *) 0)
8850 return 0;
8851 ;
8852 return 0;
8853 }
8854 _ACEOF
8855 if ac_fn_cxx_try_compile "$LINENO"; then :
8856 ac_cv_header_time=yes
8857 else
8858 ac_cv_header_time=no
8859 fi
8860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861 fi
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8863 $as_echo "$ac_cv_header_time" >&6; }
8864 if test $ac_cv_header_time = yes; then
8865
8866 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8867
8868 fi
8869
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8871 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8872 if ${gcc_cv_header_string+:} false; then :
8873 $as_echo_n "(cached) " >&6
8874 else
8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876 /* end confdefs.h. */
8877 #include <string.h>
8878 #include <strings.h>
8879 int
8880 main ()
8881 {
8882
8883 ;
8884 return 0;
8885 }
8886 _ACEOF
8887 if ac_fn_cxx_try_compile "$LINENO"; then :
8888 gcc_cv_header_string=yes
8889 else
8890 gcc_cv_header_string=no
8891 fi
8892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8893 fi
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8895 $as_echo "$gcc_cv_header_string" >&6; }
8896 if test $gcc_cv_header_string = yes; then
8897
8898 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8899
8900 fi
8901
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8903 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8904 if ${ac_cv_header_sys_wait_h+:} false; then :
8905 $as_echo_n "(cached) " >&6
8906 else
8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8909 #include <sys/types.h>
8910 #include <sys/wait.h>
8911 #ifndef WEXITSTATUS
8912 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8913 #endif
8914 #ifndef WIFEXITED
8915 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8916 #endif
8917
8918 int
8919 main ()
8920 {
8921 int s;
8922 wait (&s);
8923 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8924 ;
8925 return 0;
8926 }
8927 _ACEOF
8928 if ac_fn_cxx_try_compile "$LINENO"; then :
8929 ac_cv_header_sys_wait_h=yes
8930 else
8931 ac_cv_header_sys_wait_h=no
8932 fi
8933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8934 fi
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8936 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8937 if test $ac_cv_header_sys_wait_h = yes; then
8938
8939 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8940
8941 fi
8942
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8944 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8945 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8946 $as_echo_n "(cached) " >&6
8947 else
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8950 #include <sys/types.h>
8951 #include <termios.h>
8952 #ifdef TIOCGWINSZ
8953 yes
8954 #endif
8955
8956 _ACEOF
8957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8958 $EGREP "yes" >/dev/null 2>&1; then :
8959 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8960 else
8961 ac_cv_sys_tiocgwinsz_in_termios_h=no
8962 fi
8963 rm -f conftest*
8964
8965 fi
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8967 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8968
8969 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8971 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8972 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8973 $as_echo_n "(cached) " >&6
8974 else
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8977 #include <sys/types.h>
8978 #include <sys/ioctl.h>
8979 #ifdef TIOCGWINSZ
8980 yes
8981 #endif
8982
8983 _ACEOF
8984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8985 $EGREP "yes" >/dev/null 2>&1; then :
8986 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8987 else
8988 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8989 fi
8990 rm -f conftest*
8991
8992 fi
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8994 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8995
8996 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8997
8998 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8999
9000 fi
9001 fi
9002
9003 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9004 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
9005 sys/resource.h sys/param.h sys/times.h sys/stat.h \
9006 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9007 do :
9008 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9009 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9010 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9011 cat >>confdefs.h <<_ACEOF
9012 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9013 _ACEOF
9014
9015 fi
9016 done
9017
9018
9019 # Check for thread headers.
9020 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9021 if test "x$ac_cv_header_thread_h" = xyes; then :
9022 have_thread_h=yes
9023 else
9024 have_thread_h=
9025 fi
9026
9027 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9028 if test "x$ac_cv_header_pthread_h" = xyes; then :
9029 have_pthread_h=yes
9030 else
9031 have_pthread_h=
9032 fi
9033
9034
9035 # These tests can't be done till we know if we have limits.h.
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9037 $as_echo_n "checking for CHAR_BIT... " >&6; }
9038 if ${gcc_cv_decl_char_bit+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h. */
9043 #ifdef HAVE_LIMITS_H
9044 #include <limits.h>
9045 #endif
9046 #ifdef CHAR_BIT
9047 found
9048 #endif
9049 _ACEOF
9050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9051 $EGREP "found" >/dev/null 2>&1; then :
9052 gcc_cv_decl_char_bit=yes
9053 else
9054 gcc_cv_decl_char_bit=no
9055 fi
9056 rm -f conftest*
9057
9058
9059 fi
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9061 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9062 if test $gcc_cv_decl_char_bit = no; then
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9064 $as_echo_n "checking number of bits in a byte... " >&6; }
9065 if ${gcc_cv_c_nbby+:} false; then :
9066 $as_echo_n "(cached) " >&6
9067 else
9068 i=8
9069 gcc_cv_c_nbby=
9070 while test $i -lt 65; do
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9073
9074 int
9075 main ()
9076 {
9077 switch(0) {
9078 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9079 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9080 ; }
9081 ;
9082 return 0;
9083 }
9084 _ACEOF
9085 if ac_fn_cxx_try_compile "$LINENO"; then :
9086 gcc_cv_c_nbby=$i; break
9087 fi
9088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9089 i=`expr $i + 1`
9090 done
9091 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9092
9093 fi
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9095 $as_echo "$gcc_cv_c_nbby" >&6; }
9096 if test $gcc_cv_c_nbby = failed; then
9097 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9098 else
9099
9100 cat >>confdefs.h <<_ACEOF
9101 #define CHAR_BIT $gcc_cv_c_nbby
9102 _ACEOF
9103
9104 fi
9105 fi
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9107 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9108 if ${ac_cv_c_bigendian+:} false; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 ac_cv_c_bigendian=unknown
9112 # See if we're dealing with a universal compiler.
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9115 #ifndef __APPLE_CC__
9116 not a universal capable compiler
9117 #endif
9118 typedef int dummy;
9119
9120 _ACEOF
9121 if ac_fn_cxx_try_compile "$LINENO"; then :
9122
9123 # Check for potential -arch flags. It is not universal unless
9124 # there are at least two -arch flags with different values.
9125 ac_arch=
9126 ac_prev=
9127 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9128 if test -n "$ac_prev"; then
9129 case $ac_word in
9130 i?86 | x86_64 | ppc | ppc64)
9131 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9132 ac_arch=$ac_word
9133 else
9134 ac_cv_c_bigendian=universal
9135 break
9136 fi
9137 ;;
9138 esac
9139 ac_prev=
9140 elif test "x$ac_word" = "x-arch"; then
9141 ac_prev=arch
9142 fi
9143 done
9144 fi
9145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9146 if test $ac_cv_c_bigendian = unknown; then
9147 # See if sys/param.h defines the BYTE_ORDER macro.
9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h. */
9150 #include <sys/types.h>
9151 #include <sys/param.h>
9152
9153 int
9154 main ()
9155 {
9156 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9157 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9158 && LITTLE_ENDIAN)
9159 bogus endian macros
9160 #endif
9161
9162 ;
9163 return 0;
9164 }
9165 _ACEOF
9166 if ac_fn_cxx_try_compile "$LINENO"; then :
9167 # It does; now see whether it defined to BIG_ENDIAN or not.
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9170 #include <sys/types.h>
9171 #include <sys/param.h>
9172
9173 int
9174 main ()
9175 {
9176 #if BYTE_ORDER != BIG_ENDIAN
9177 not big endian
9178 #endif
9179
9180 ;
9181 return 0;
9182 }
9183 _ACEOF
9184 if ac_fn_cxx_try_compile "$LINENO"; then :
9185 ac_cv_c_bigendian=yes
9186 else
9187 ac_cv_c_bigendian=no
9188 fi
9189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9190 fi
9191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9192 fi
9193 if test $ac_cv_c_bigendian = unknown; then
9194 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9197 #include <limits.h>
9198
9199 int
9200 main ()
9201 {
9202 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9203 bogus endian macros
9204 #endif
9205
9206 ;
9207 return 0;
9208 }
9209 _ACEOF
9210 if ac_fn_cxx_try_compile "$LINENO"; then :
9211 # It does; now see whether it defined to _BIG_ENDIAN or not.
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214 #include <limits.h>
9215
9216 int
9217 main ()
9218 {
9219 #ifndef _BIG_ENDIAN
9220 not big endian
9221 #endif
9222
9223 ;
9224 return 0;
9225 }
9226 _ACEOF
9227 if ac_fn_cxx_try_compile "$LINENO"; then :
9228 ac_cv_c_bigendian=yes
9229 else
9230 ac_cv_c_bigendian=no
9231 fi
9232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9233 fi
9234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235 fi
9236 if test $ac_cv_c_bigendian = unknown; then
9237 # Compile a test program.
9238 if test "$cross_compiling" = yes; then :
9239 # Try to guess by grepping values from an object file.
9240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h. */
9242 short int ascii_mm[] =
9243 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9244 short int ascii_ii[] =
9245 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9246 int use_ascii (int i) {
9247 return ascii_mm[i] + ascii_ii[i];
9248 }
9249 short int ebcdic_ii[] =
9250 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9251 short int ebcdic_mm[] =
9252 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9253 int use_ebcdic (int i) {
9254 return ebcdic_mm[i] + ebcdic_ii[i];
9255 }
9256 extern int foo;
9257
9258 int
9259 main ()
9260 {
9261 return use_ascii (foo) == use_ebcdic (foo);
9262 ;
9263 return 0;
9264 }
9265 _ACEOF
9266 if ac_fn_cxx_try_compile "$LINENO"; then :
9267 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9268 ac_cv_c_bigendian=yes
9269 fi
9270 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9271 if test "$ac_cv_c_bigendian" = unknown; then
9272 ac_cv_c_bigendian=no
9273 else
9274 # finding both strings is unlikely to happen, but who knows?
9275 ac_cv_c_bigendian=unknown
9276 fi
9277 fi
9278 fi
9279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9280 else
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9283 $ac_includes_default
9284 int
9285 main ()
9286 {
9287
9288 /* Are we little or big endian? From Harbison&Steele. */
9289 union
9290 {
9291 long int l;
9292 char c[sizeof (long int)];
9293 } u;
9294 u.l = 1;
9295 return u.c[sizeof (long int) - 1] == 1;
9296
9297 ;
9298 return 0;
9299 }
9300 _ACEOF
9301 if ac_fn_cxx_try_run "$LINENO"; then :
9302 ac_cv_c_bigendian=no
9303 else
9304 ac_cv_c_bigendian=yes
9305 fi
9306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9307 conftest.$ac_objext conftest.beam conftest.$ac_ext
9308 fi
9309
9310 fi
9311 fi
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9313 $as_echo "$ac_cv_c_bigendian" >&6; }
9314 case $ac_cv_c_bigendian in #(
9315 yes)
9316 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9317 ;; #(
9318 no)
9319 ;; #(
9320 universal)
9321
9322 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9323
9324 ;; #(
9325 *)
9326 as_fn_error $? "unknown endianness
9327 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9328 esac
9329
9330
9331 # ----------------------
9332 # Checks for C++ headers
9333 # ----------------------
9334
9335 ac_ext=cpp
9336 ac_cpp='$CXXCPP $CPPFLAGS'
9337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9341 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9342 if test -z "$CXXCPP"; then
9343 if ${ac_cv_prog_CXXCPP+:} false; then :
9344 $as_echo_n "(cached) " >&6
9345 else
9346 # Double quotes because CXXCPP needs to be expanded
9347 for CXXCPP in "$CXX -E" "/lib/cpp"
9348 do
9349 ac_preproc_ok=false
9350 for ac_cxx_preproc_warn_flag in '' yes
9351 do
9352 # Use a header file that comes with gcc, so configuring glibc
9353 # with a fresh cross-compiler works.
9354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9355 # <limits.h> exists even on freestanding compilers.
9356 # On the NeXT, cc -E runs the code through the compiler's parser,
9357 # not just through cpp. "Syntax error" is here to catch this case.
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360 #ifdef __STDC__
9361 # include <limits.h>
9362 #else
9363 # include <assert.h>
9364 #endif
9365 Syntax error
9366 _ACEOF
9367 if ac_fn_cxx_try_cpp "$LINENO"; then :
9368
9369 else
9370 # Broken: fails on valid input.
9371 continue
9372 fi
9373 rm -f conftest.err conftest.i conftest.$ac_ext
9374
9375 # OK, works on sane cases. Now check whether nonexistent headers
9376 # can be detected and how.
9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h. */
9379 #include <ac_nonexistent.h>
9380 _ACEOF
9381 if ac_fn_cxx_try_cpp "$LINENO"; then :
9382 # Broken: success on invalid input.
9383 continue
9384 else
9385 # Passes both tests.
9386 ac_preproc_ok=:
9387 break
9388 fi
9389 rm -f conftest.err conftest.i conftest.$ac_ext
9390
9391 done
9392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9393 rm -f conftest.i conftest.err conftest.$ac_ext
9394 if $ac_preproc_ok; then :
9395 break
9396 fi
9397
9398 done
9399 ac_cv_prog_CXXCPP=$CXXCPP
9400
9401 fi
9402 CXXCPP=$ac_cv_prog_CXXCPP
9403 else
9404 ac_cv_prog_CXXCPP=$CXXCPP
9405 fi
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9407 $as_echo "$CXXCPP" >&6; }
9408 ac_preproc_ok=false
9409 for ac_cxx_preproc_warn_flag in '' yes
9410 do
9411 # Use a header file that comes with gcc, so configuring glibc
9412 # with a fresh cross-compiler works.
9413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9414 # <limits.h> exists even on freestanding compilers.
9415 # On the NeXT, cc -E runs the code through the compiler's parser,
9416 # not just through cpp. "Syntax error" is here to catch this case.
9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h. */
9419 #ifdef __STDC__
9420 # include <limits.h>
9421 #else
9422 # include <assert.h>
9423 #endif
9424 Syntax error
9425 _ACEOF
9426 if ac_fn_cxx_try_cpp "$LINENO"; then :
9427
9428 else
9429 # Broken: fails on valid input.
9430 continue
9431 fi
9432 rm -f conftest.err conftest.i conftest.$ac_ext
9433
9434 # OK, works on sane cases. Now check whether nonexistent headers
9435 # can be detected and how.
9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h. */
9438 #include <ac_nonexistent.h>
9439 _ACEOF
9440 if ac_fn_cxx_try_cpp "$LINENO"; then :
9441 # Broken: success on invalid input.
9442 continue
9443 else
9444 # Passes both tests.
9445 ac_preproc_ok=:
9446 break
9447 fi
9448 rm -f conftest.err conftest.i conftest.$ac_ext
9449
9450 done
9451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9452 rm -f conftest.i conftest.err conftest.$ac_ext
9453 if $ac_preproc_ok; then :
9454
9455 else
9456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9459 See \`config.log' for more details" >&5
9460 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9461 See \`config.log' for more details" >&2;}; }
9462 fi
9463
9464 ac_ext=cpp
9465 ac_cpp='$CXXCPP $CPPFLAGS'
9466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9469
9470
9471 for ac_header in unordered_map
9472 do :
9473 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9474 if test "x$ac_cv_header_unordered_map" = xyes; then :
9475 cat >>confdefs.h <<_ACEOF
9476 #define HAVE_UNORDERED_MAP 1
9477 _ACEOF
9478
9479 fi
9480 done
9481
9482 for ac_header in tr1/unordered_map
9483 do :
9484 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9485 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9486 cat >>confdefs.h <<_ACEOF
9487 #define HAVE_TR1_UNORDERED_MAP 1
9488 _ACEOF
9489
9490 fi
9491 done
9492
9493 for ac_header in ext/hash_map
9494 do :
9495 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9496 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9497 cat >>confdefs.h <<_ACEOF
9498 #define HAVE_EXT_HASH_MAP 1
9499 _ACEOF
9500
9501 fi
9502 done
9503
9504
9505 # --------
9506 # Dependency checking.
9507 # --------
9508
9509 rm -rf .tst 2>/dev/null
9510 mkdir .tst 2>/dev/null
9511 if test -d .tst; then
9512 am__leading_dot=.
9513 else
9514 am__leading_dot=_
9515 fi
9516 rmdir .tst 2>/dev/null
9517
9518 DEPDIR="${am__leading_dot}deps"
9519
9520 ac_config_commands="$ac_config_commands depdir"
9521
9522
9523 ac_config_commands="$ac_config_commands gccdepdir"
9524
9525
9526 depcc="$CXX" am_compiler_list=
9527
9528 am_depcomp=$ac_aux_dir/depcomp
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9530 $as_echo_n "checking dependency style of $depcc... " >&6; }
9531 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9532 $as_echo_n "(cached) " >&6
9533 else
9534 if test -f "$am_depcomp"; then
9535 # We make a subdir and do the tests there. Otherwise we can end up
9536 # making bogus files that we don't know about and never remove. For
9537 # instance it was reported that on HP-UX the gcc test will end up
9538 # making a dummy file named `D' -- because `-MD' means `put the output
9539 # in D'.
9540 mkdir conftest.dir
9541 # Copy depcomp to subdir because otherwise we won't find it if we're
9542 # using a relative directory.
9543 cp "$am_depcomp" conftest.dir
9544 cd conftest.dir
9545 # We will build objects and dependencies in a subdirectory because
9546 # it helps to detect inapplicable dependency modes. For instance
9547 # both Tru64's cc and ICC support -MD to output dependencies as a
9548 # side effect of compilation, but ICC will put the dependencies in
9549 # the current directory while Tru64 will put them in the object
9550 # directory.
9551 mkdir sub
9552
9553 am_cv_CXX_dependencies_compiler_type=none
9554 if test "$am_compiler_list" = ""; then
9555 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9556 fi
9557 for depmode in $am_compiler_list; do
9558 if test $depmode = none; then break; fi
9559
9560 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9561 # Setup a source with many dependencies, because some compilers
9562 # like to wrap large dependency lists on column 80 (with \), and
9563 # we should not choose a depcomp mode which is confused by this.
9564 #
9565 # We need to recreate these files for each test, as the compiler may
9566 # overwrite some of them when testing with obscure command lines.
9567 # This happens at least with the AIX C compiler.
9568 : > sub/conftest.c
9569 for i in 1 2 3 4 5 6; do
9570 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9571 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9572 # Solaris 8's {/usr,}/bin/sh.
9573 touch sub/conftst$i.h
9574 done
9575 echo "include sub/conftest.Po" > confmf
9576
9577 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9578 # mode. It turns out that the SunPro C++ compiler does not properly
9579 # handle `-M -o', and we need to detect this.
9580 depcmd="depmode=$depmode \
9581 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9582 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9583 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9584 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9585 if env $depcmd > conftest.err 2>&1 &&
9586 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9587 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9588 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9589 # icc doesn't choke on unknown options, it will just issue warnings
9590 # or remarks (even with -Werror). So we grep stderr for any message
9591 # that says an option was ignored or not supported.
9592 # When given -MP, icc 7.0 and 7.1 complain thusly:
9593 # icc: Command line warning: ignoring option '-M'; no argument required
9594 # The diagnosis changed in icc 8.0:
9595 # icc: Command line remark: option '-MP' not supported
9596 if (grep 'ignoring option' conftest.err ||
9597 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9598 am_cv_CXX_dependencies_compiler_type=$depmode
9599 $as_echo "$as_me:$LINENO: success" >&5
9600 break
9601 fi
9602 fi
9603 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9604 sed -e 's/^/| /' < conftest.err >&5
9605 done
9606
9607 cd ..
9608 rm -rf conftest.dir
9609 else
9610 am_cv_CXX_dependencies_compiler_type=none
9611 fi
9612
9613 fi
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9615 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9616 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9617 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9618 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9619
9620 fi
9621
9622
9623 # --------
9624 # UNSORTED
9625 # --------
9626
9627
9628 # These libraries may be used by collect2.
9629 # We may need a special search path to get them linked.
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9631 $as_echo_n "checking for collect2 libraries... " >&6; }
9632 if ${gcc_cv_collect2_libs+:} false; then :
9633 $as_echo_n "(cached) " >&6
9634 else
9635 save_LIBS="$LIBS"
9636 for libs in '' -lld -lmld \
9637 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9638 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9639 do
9640 LIBS="$libs"
9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h. */
9643
9644 /* Override any GCC internal prototype to avoid an error.
9645 Use char because int might match the return type of a GCC
9646 builtin and then its argument prototype would still apply. */
9647 #ifdef __cplusplus
9648 extern "C"
9649 #endif
9650 char ldopen ();
9651 int
9652 main ()
9653 {
9654 return ldopen ();
9655 ;
9656 return 0;
9657 }
9658 _ACEOF
9659 if ac_fn_cxx_try_link "$LINENO"; then :
9660 gcc_cv_collect2_libs="$libs"; break
9661 fi
9662 rm -f core conftest.err conftest.$ac_objext \
9663 conftest$ac_exeext conftest.$ac_ext
9664 done
9665 LIBS="$save_LIBS"
9666 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9667 fi
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9669 $as_echo "$gcc_cv_collect2_libs" >&6; }
9670 case $gcc_cv_collect2_libs in
9671 "none required") ;;
9672 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9673 esac
9674
9675
9676 # When building Ada code on Alpha, we need exc_resume which is usually in
9677 # -lexc. So test for it.
9678 save_LIBS="$LIBS"
9679 LIBS=
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9681 $as_echo_n "checking for library containing exc_resume... " >&6; }
9682 if ${ac_cv_search_exc_resume+:} false; then :
9683 $as_echo_n "(cached) " >&6
9684 else
9685 ac_func_search_save_LIBS=$LIBS
9686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h. */
9688
9689 /* Override any GCC internal prototype to avoid an error.
9690 Use char because int might match the return type of a GCC
9691 builtin and then its argument prototype would still apply. */
9692 #ifdef __cplusplus
9693 extern "C"
9694 #endif
9695 char exc_resume ();
9696 int
9697 main ()
9698 {
9699 return exc_resume ();
9700 ;
9701 return 0;
9702 }
9703 _ACEOF
9704 for ac_lib in '' exc; do
9705 if test -z "$ac_lib"; then
9706 ac_res="none required"
9707 else
9708 ac_res=-l$ac_lib
9709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9710 fi
9711 if ac_fn_cxx_try_link "$LINENO"; then :
9712 ac_cv_search_exc_resume=$ac_res
9713 fi
9714 rm -f core conftest.err conftest.$ac_objext \
9715 conftest$ac_exeext
9716 if ${ac_cv_search_exc_resume+:} false; then :
9717 break
9718 fi
9719 done
9720 if ${ac_cv_search_exc_resume+:} false; then :
9721
9722 else
9723 ac_cv_search_exc_resume=no
9724 fi
9725 rm conftest.$ac_ext
9726 LIBS=$ac_func_search_save_LIBS
9727 fi
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9729 $as_echo "$ac_cv_search_exc_resume" >&6; }
9730 ac_res=$ac_cv_search_exc_resume
9731 if test "$ac_res" != no; then :
9732 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9733
9734 fi
9735
9736 GNAT_LIBEXC="$LIBS"
9737 LIBS="$save_LIBS"
9738
9739
9740 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9741 save_LIBS="$LIBS"
9742 LIBS=
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9744 $as_echo_n "checking for library containing kstat_open... " >&6; }
9745 if ${ac_cv_search_kstat_open+:} false; then :
9746 $as_echo_n "(cached) " >&6
9747 else
9748 ac_func_search_save_LIBS=$LIBS
9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750 /* end confdefs.h. */
9751
9752 /* Override any GCC internal prototype to avoid an error.
9753 Use char because int might match the return type of a GCC
9754 builtin and then its argument prototype would still apply. */
9755 #ifdef __cplusplus
9756 extern "C"
9757 #endif
9758 char kstat_open ();
9759 int
9760 main ()
9761 {
9762 return kstat_open ();
9763 ;
9764 return 0;
9765 }
9766 _ACEOF
9767 for ac_lib in '' kstat; do
9768 if test -z "$ac_lib"; then
9769 ac_res="none required"
9770 else
9771 ac_res=-l$ac_lib
9772 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9773 fi
9774 if ac_fn_cxx_try_link "$LINENO"; then :
9775 ac_cv_search_kstat_open=$ac_res
9776 fi
9777 rm -f core conftest.err conftest.$ac_objext \
9778 conftest$ac_exeext
9779 if ${ac_cv_search_kstat_open+:} false; then :
9780 break
9781 fi
9782 done
9783 if ${ac_cv_search_kstat_open+:} false; then :
9784
9785 else
9786 ac_cv_search_kstat_open=no
9787 fi
9788 rm conftest.$ac_ext
9789 LIBS=$ac_func_search_save_LIBS
9790 fi
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9792 $as_echo "$ac_cv_search_kstat_open" >&6; }
9793 ac_res=$ac_cv_search_kstat_open
9794 if test "$ac_res" != no; then :
9795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9796
9797 fi
9798
9799 EXTRA_GCC_LIBS="$LIBS"
9800 LIBS="$save_LIBS"
9801
9802
9803 # Some systems put ldexp and frexp in libm instead of libc; assume
9804 # they're both in the same place. jcf-dump needs them.
9805 save_LIBS="$LIBS"
9806 LIBS=
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9808 $as_echo_n "checking for library containing ldexp... " >&6; }
9809 if ${ac_cv_search_ldexp+:} false; then :
9810 $as_echo_n "(cached) " >&6
9811 else
9812 ac_func_search_save_LIBS=$LIBS
9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814 /* end confdefs.h. */
9815
9816 /* Override any GCC internal prototype to avoid an error.
9817 Use char because int might match the return type of a GCC
9818 builtin and then its argument prototype would still apply. */
9819 #ifdef __cplusplus
9820 extern "C"
9821 #endif
9822 char ldexp ();
9823 int
9824 main ()
9825 {
9826 return ldexp ();
9827 ;
9828 return 0;
9829 }
9830 _ACEOF
9831 for ac_lib in '' m; do
9832 if test -z "$ac_lib"; then
9833 ac_res="none required"
9834 else
9835 ac_res=-l$ac_lib
9836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9837 fi
9838 if ac_fn_cxx_try_link "$LINENO"; then :
9839 ac_cv_search_ldexp=$ac_res
9840 fi
9841 rm -f core conftest.err conftest.$ac_objext \
9842 conftest$ac_exeext
9843 if ${ac_cv_search_ldexp+:} false; then :
9844 break
9845 fi
9846 done
9847 if ${ac_cv_search_ldexp+:} false; then :
9848
9849 else
9850 ac_cv_search_ldexp=no
9851 fi
9852 rm conftest.$ac_ext
9853 LIBS=$ac_func_search_save_LIBS
9854 fi
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9856 $as_echo "$ac_cv_search_ldexp" >&6; }
9857 ac_res=$ac_cv_search_ldexp
9858 if test "$ac_res" != no; then :
9859 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9860
9861 fi
9862
9863 LDEXP_LIB="$LIBS"
9864 LIBS="$save_LIBS"
9865
9866
9867 # Some systems need dlopen
9868 save_LIBS="$LIBS"
9869 LIBS=
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9871 $as_echo_n "checking for library containing dlopen... " >&6; }
9872 if ${ac_cv_search_dlopen+:} false; then :
9873 $as_echo_n "(cached) " >&6
9874 else
9875 ac_func_search_save_LIBS=$LIBS
9876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9877 /* end confdefs.h. */
9878
9879 /* Override any GCC internal prototype to avoid an error.
9880 Use char because int might match the return type of a GCC
9881 builtin and then its argument prototype would still apply. */
9882 #ifdef __cplusplus
9883 extern "C"
9884 #endif
9885 char dlopen ();
9886 int
9887 main ()
9888 {
9889 return dlopen ();
9890 ;
9891 return 0;
9892 }
9893 _ACEOF
9894 for ac_lib in '' dl; do
9895 if test -z "$ac_lib"; then
9896 ac_res="none required"
9897 else
9898 ac_res=-l$ac_lib
9899 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9900 fi
9901 if ac_fn_cxx_try_link "$LINENO"; then :
9902 ac_cv_search_dlopen=$ac_res
9903 fi
9904 rm -f core conftest.err conftest.$ac_objext \
9905 conftest$ac_exeext
9906 if ${ac_cv_search_dlopen+:} false; then :
9907 break
9908 fi
9909 done
9910 if ${ac_cv_search_dlopen+:} false; then :
9911
9912 else
9913 ac_cv_search_dlopen=no
9914 fi
9915 rm conftest.$ac_ext
9916 LIBS=$ac_func_search_save_LIBS
9917 fi
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9919 $as_echo "$ac_cv_search_dlopen" >&6; }
9920 ac_res=$ac_cv_search_dlopen
9921 if test "$ac_res" != no; then :
9922 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9923
9924 fi
9925
9926 DL_LIB="$LIBS"
9927 LIBS="$save_LIBS"
9928
9929
9930 # Use <inttypes.h> only if it exists,
9931 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9932 # PRId64
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9934 $as_echo_n "checking for inttypes.h... " >&6; }
9935 if ${gcc_cv_header_inttypes_h+:} false; then :
9936 $as_echo_n "(cached) " >&6
9937 else
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9940 #define __STDC_FORMAT_MACROS
9941 #include <sys/types.h>
9942 #include <inttypes.h>
9943 int
9944 main ()
9945 {
9946 intmax_t i = -1;
9947 #ifndef PRId64
9948 choke me
9949 #endif
9950 ;
9951 return 0;
9952 }
9953 _ACEOF
9954 if ac_fn_cxx_try_compile "$LINENO"; then :
9955 gcc_cv_header_inttypes_h=yes
9956 else
9957 gcc_cv_header_inttypes_h=no
9958 fi
9959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9960 fi
9961
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9963 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9964 if test $gcc_cv_header_inttypes_h = yes; then
9965
9966 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9967
9968 fi
9969
9970 # Look for the ZSTD package.
9971 ZSTD_INCLUDE=
9972 ZSTD_LIB=
9973
9974
9975 ZSTD_CPPFLAGS=
9976 ZSTD_LDFLAGS=
9977
9978 # Check whether --with-zstd was given.
9979 if test "${with_zstd+set}" = set; then :
9980 withval=$with_zstd;
9981 fi
9982
9983
9984 # Check whether --with-zstd-include was given.
9985 if test "${with_zstd_include+set}" = set; then :
9986 withval=$with_zstd_include;
9987 fi
9988
9989
9990 # Check whether --with-zstd-lib was given.
9991 if test "${with_zstd_lib+set}" = set; then :
9992 withval=$with_zstd_lib;
9993 fi
9994
9995 case "x$with_zstd" in
9996 x) ;;
9997 xno)
9998 ZSTD_INCLUDE=
9999 ZSTD_LIB=
10000 ;;
10001 *) ZSTD_INCLUDE=$with_zstd/include
10002 ZSTD_LIB=$with_zstd/lib
10003 ;;
10004 esac
10005
10006 if test "x$with_zstd" != xno; then
10007 if test "x$with_zstd_include" != x; then
10008 ZSTD_INCLUDE=$with_zstd_include
10009 fi
10010 if test "x$with_zstd_lib" != x; then
10011 ZSTD_LIB=$with_zstd_lib
10012 fi
10013 if test "x$ZSTD_INCLUDE" != x \
10014 && test "x$ZSTD_INCLUDE" != xno; then
10015 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10016 fi
10017 if test "x$ZSTD_LIB" != x \
10018 && test "x$ZSTD_LIB" != xno; then
10019 ZSTD_LDFLAGS=-L$ZSTD_LIB
10020 fi
10021
10022 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10023 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10024
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10026 $as_echo_n "checking for zstd.h... " >&6; }
10027 if ${gcc_cv_header_zstd_h+:} false; then :
10028 $as_echo_n "(cached) " >&6
10029 else
10030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031 /* end confdefs.h. */
10032 #include <zstd.h>
10033 int
10034 main ()
10035 {
10036
10037 ;
10038 return 0;
10039 }
10040 _ACEOF
10041 if ac_fn_cxx_try_compile "$LINENO"; then :
10042 gcc_cv_header_zstd_h=yes
10043 else
10044 gcc_cv_header_zstd_h=no
10045 fi
10046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10047 fi
10048
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10050 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10051 if test $gcc_cv_header_zstd_h = yes; then
10052
10053 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10054
10055 elif test "x$with_zstd" != x; then
10056 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10057 fi
10058
10059 # LTO can use zstd compression algorithm
10060 save_LIBS="$LIBS"
10061 LIBS=
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10063 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10064 if ${ac_cv_search_ZSTD_compress+:} false; then :
10065 $as_echo_n "(cached) " >&6
10066 else
10067 ac_func_search_save_LIBS=$LIBS
10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10070
10071 /* Override any GCC internal prototype to avoid an error.
10072 Use char because int might match the return type of a GCC
10073 builtin and then its argument prototype would still apply. */
10074 #ifdef __cplusplus
10075 extern "C"
10076 #endif
10077 char ZSTD_compress ();
10078 int
10079 main ()
10080 {
10081 return ZSTD_compress ();
10082 ;
10083 return 0;
10084 }
10085 _ACEOF
10086 for ac_lib in '' zstd; do
10087 if test -z "$ac_lib"; then
10088 ac_res="none required"
10089 else
10090 ac_res=-l$ac_lib
10091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10092 fi
10093 if ac_fn_cxx_try_link "$LINENO"; then :
10094 ac_cv_search_ZSTD_compress=$ac_res
10095 fi
10096 rm -f core conftest.err conftest.$ac_objext \
10097 conftest$ac_exeext
10098 if ${ac_cv_search_ZSTD_compress+:} false; then :
10099 break
10100 fi
10101 done
10102 if ${ac_cv_search_ZSTD_compress+:} false; then :
10103
10104 else
10105 ac_cv_search_ZSTD_compress=no
10106 fi
10107 rm conftest.$ac_ext
10108 LIBS=$ac_func_search_save_LIBS
10109 fi
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10111 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10112 ac_res=$ac_cv_search_ZSTD_compress
10113 if test "$ac_res" != no; then :
10114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10115
10116 fi
10117
10118 ZSTD_LIB="$LIBS"
10119 LIBS="$save_LIBS"
10120
10121 fi
10122
10123
10124
10125 for ac_func in times clock kill getrlimit setrlimit atoq \
10126 popen sysconf strsignal getrusage nl_langinfo \
10127 gettimeofday mbstowcs wcswidth mmap setlocale \
10128 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
10129 do :
10130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10131 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10132 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10133 cat >>confdefs.h <<_ACEOF
10134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10135 _ACEOF
10136
10137 fi
10138 done
10139
10140
10141 if test x$ac_cv_func_mbstowcs = xyes; then
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10143 $as_echo_n "checking whether mbstowcs works... " >&6; }
10144 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10145 $as_echo_n "(cached) " >&6
10146 else
10147 if test "$cross_compiling" = yes; then :
10148 gcc_cv_func_mbstowcs_works=yes
10149 else
10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h. */
10152 #include <stdlib.h>
10153 int main()
10154 {
10155 mbstowcs(0, "", 0);
10156 return 0;
10157 }
10158 _ACEOF
10159 if ac_fn_cxx_try_run "$LINENO"; then :
10160 gcc_cv_func_mbstowcs_works=yes
10161 else
10162 gcc_cv_func_mbstowcs_works=no
10163 fi
10164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10165 conftest.$ac_objext conftest.beam conftest.$ac_ext
10166 fi
10167
10168 fi
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10170 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10171 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10172
10173 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10174
10175 fi
10176 fi
10177
10178 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10179 if test "x$ac_cv_type_ssize_t" = xyes; then :
10180
10181 else
10182
10183 cat >>confdefs.h <<_ACEOF
10184 #define ssize_t int
10185 _ACEOF
10186
10187 fi
10188
10189 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10190 if test "x$ac_cv_type_caddr_t" = xyes; then :
10191
10192 else
10193
10194 cat >>confdefs.h <<_ACEOF
10195 #define caddr_t char *
10196 _ACEOF
10197
10198 fi
10199
10200
10201
10202 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10203 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10204 gcc_header_sys_mman_h=yes
10205 else
10206 gcc_header_sys_mman_h=no
10207 fi
10208
10209 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10210 if test "x$ac_cv_func_mmap" = xyes; then :
10211 gcc_func_mmap=yes
10212 else
10213 gcc_func_mmap=no
10214 fi
10215
10216 if test "$gcc_header_sys_mman_h" != yes \
10217 || test "$gcc_func_mmap" != yes; then
10218 gcc_cv_func_mmap_file=no
10219 gcc_cv_func_mmap_dev_zero=no
10220 gcc_cv_func_mmap_anon=no
10221 else
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10223 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10224 if ${gcc_cv_func_mmap_file+:} false; then :
10225 $as_echo_n "(cached) " >&6
10226 else
10227 # Add a system to this blacklist if
10228 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10229 # memory area containing the same data that you'd get if you applied
10230 # read() to the same fd. The only system known to have a problem here
10231 # is VMS, where text files have record structure.
10232 case "$host_os" in
10233 *vms* | ultrix*)
10234 gcc_cv_func_mmap_file=no ;;
10235 *)
10236 gcc_cv_func_mmap_file=yes;;
10237 esac
10238 fi
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10240 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10242 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10243 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10244 $as_echo_n "(cached) " >&6
10245 else
10246 # Add a system to this blacklist if it has mmap() but /dev/zero
10247 # does not exist, or if mmapping /dev/zero does not give anonymous
10248 # zeroed pages with both the following properties:
10249 # 1. If you map N consecutive pages in with one call, and then
10250 # unmap any subset of those pages, the pages that were not
10251 # explicitly unmapped remain accessible.
10252 # 2. If you map two adjacent blocks of memory and then unmap them
10253 # both at once, they must both go away.
10254 # Systems known to be in this category are Windows (all variants),
10255 # VMS, and Darwin.
10256 case "$host_os" in
10257 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10258 gcc_cv_func_mmap_dev_zero=no ;;
10259 *)
10260 gcc_cv_func_mmap_dev_zero=yes;;
10261 esac
10262 fi
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10264 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10265
10266 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10268 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10269 if ${gcc_cv_decl_map_anon+:} false; then :
10270 $as_echo_n "(cached) " >&6
10271 else
10272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273 /* end confdefs.h. */
10274 #include <sys/types.h>
10275 #include <sys/mman.h>
10276 #include <unistd.h>
10277
10278 #ifndef MAP_ANONYMOUS
10279 #define MAP_ANONYMOUS MAP_ANON
10280 #endif
10281
10282 int
10283 main ()
10284 {
10285 int n = MAP_ANONYMOUS;
10286 ;
10287 return 0;
10288 }
10289 _ACEOF
10290 if ac_fn_cxx_try_compile "$LINENO"; then :
10291 gcc_cv_decl_map_anon=yes
10292 else
10293 gcc_cv_decl_map_anon=no
10294 fi
10295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10296 fi
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10298 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10299
10300 if test $gcc_cv_decl_map_anon = no; then
10301 gcc_cv_func_mmap_anon=no
10302 else
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10304 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10305 if ${gcc_cv_func_mmap_anon+:} false; then :
10306 $as_echo_n "(cached) " >&6
10307 else
10308 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10309 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10310 # doesn't give anonymous zeroed pages with the same properties listed
10311 # above for use of /dev/zero.
10312 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10313 case "$host_os" in
10314 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10315 gcc_cv_func_mmap_anon=no ;;
10316 *)
10317 gcc_cv_func_mmap_anon=yes;;
10318 esac
10319 fi
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10321 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10322 fi
10323 fi
10324
10325 if test $gcc_cv_func_mmap_file = yes; then
10326
10327 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10328
10329 fi
10330 if test $gcc_cv_func_mmap_dev_zero = yes; then
10331
10332 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10333
10334 fi
10335 if test $gcc_cv_func_mmap_anon = yes; then
10336
10337 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10338
10339 fi
10340
10341
10342 case "${host}" in
10343 *-*-*vms*)
10344 # Under VMS, vfork works very differently than on Unix. The standard test
10345 # won't work, and it isn't easily adaptable. It makes more sense to
10346 # just force it.
10347 ac_cv_func_vfork_works=yes
10348 ;;
10349 esac
10350 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10351 if test "x$ac_cv_type_pid_t" = xyes; then :
10352
10353 else
10354
10355 cat >>confdefs.h <<_ACEOF
10356 #define pid_t int
10357 _ACEOF
10358
10359 fi
10360
10361 for ac_header in vfork.h
10362 do :
10363 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10364 if test "x$ac_cv_header_vfork_h" = xyes; then :
10365 cat >>confdefs.h <<_ACEOF
10366 #define HAVE_VFORK_H 1
10367 _ACEOF
10368
10369 fi
10370 done
10371
10372 for ac_func in fork vfork
10373 do :
10374 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10375 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10376 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10377 cat >>confdefs.h <<_ACEOF
10378 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10379 _ACEOF
10380
10381 fi
10382 done
10383
10384 if test "x$ac_cv_func_fork" = xyes; then
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10386 $as_echo_n "checking for working fork... " >&6; }
10387 if ${ac_cv_func_fork_works+:} false; then :
10388 $as_echo_n "(cached) " >&6
10389 else
10390 if test "$cross_compiling" = yes; then :
10391 ac_cv_func_fork_works=cross
10392 else
10393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10395 $ac_includes_default
10396 int
10397 main ()
10398 {
10399
10400 /* By Ruediger Kuhlmann. */
10401 return fork () < 0;
10402
10403 ;
10404 return 0;
10405 }
10406 _ACEOF
10407 if ac_fn_cxx_try_run "$LINENO"; then :
10408 ac_cv_func_fork_works=yes
10409 else
10410 ac_cv_func_fork_works=no
10411 fi
10412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10413 conftest.$ac_objext conftest.beam conftest.$ac_ext
10414 fi
10415
10416 fi
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10418 $as_echo "$ac_cv_func_fork_works" >&6; }
10419
10420 else
10421 ac_cv_func_fork_works=$ac_cv_func_fork
10422 fi
10423 if test "x$ac_cv_func_fork_works" = xcross; then
10424 case $host in
10425 *-*-amigaos* | *-*-msdosdjgpp*)
10426 # Override, as these systems have only a dummy fork() stub
10427 ac_cv_func_fork_works=no
10428 ;;
10429 *)
10430 ac_cv_func_fork_works=yes
10431 ;;
10432 esac
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10434 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10435 fi
10436 ac_cv_func_vfork_works=$ac_cv_func_vfork
10437 if test "x$ac_cv_func_vfork" = xyes; then
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10439 $as_echo_n "checking for working vfork... " >&6; }
10440 if ${ac_cv_func_vfork_works+:} false; then :
10441 $as_echo_n "(cached) " >&6
10442 else
10443 if test "$cross_compiling" = yes; then :
10444 ac_cv_func_vfork_works=cross
10445 else
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10448 /* Thanks to Paul Eggert for this test. */
10449 $ac_includes_default
10450 #include <sys/wait.h>
10451 #ifdef HAVE_VFORK_H
10452 # include <vfork.h>
10453 #endif
10454 /* On some sparc systems, changes by the child to local and incoming
10455 argument registers are propagated back to the parent. The compiler
10456 is told about this with #include <vfork.h>, but some compilers
10457 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10458 static variable whose address is put into a register that is
10459 clobbered by the vfork. */
10460 static void
10461 #ifdef __cplusplus
10462 sparc_address_test (int arg)
10463 # else
10464 sparc_address_test (arg) int arg;
10465 #endif
10466 {
10467 static pid_t child;
10468 if (!child) {
10469 child = vfork ();
10470 if (child < 0) {
10471 perror ("vfork");
10472 _exit(2);
10473 }
10474 if (!child) {
10475 arg = getpid();
10476 write(-1, "", 0);
10477 _exit (arg);
10478 }
10479 }
10480 }
10481
10482 int
10483 main ()
10484 {
10485 pid_t parent = getpid ();
10486 pid_t child;
10487
10488 sparc_address_test (0);
10489
10490 child = vfork ();
10491
10492 if (child == 0) {
10493 /* Here is another test for sparc vfork register problems. This
10494 test uses lots of local variables, at least as many local
10495 variables as main has allocated so far including compiler
10496 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10497 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10498 reuse the register of parent for one of the local variables,
10499 since it will think that parent can't possibly be used any more
10500 in this routine. Assigning to the local variable will thus
10501 munge parent in the parent process. */
10502 pid_t
10503 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10504 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10505 /* Convince the compiler that p..p7 are live; otherwise, it might
10506 use the same hardware register for all 8 local variables. */
10507 if (p != p1 || p != p2 || p != p3 || p != p4
10508 || p != p5 || p != p6 || p != p7)
10509 _exit(1);
10510
10511 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10512 from child file descriptors. If the child closes a descriptor
10513 before it execs or exits, this munges the parent's descriptor
10514 as well. Test for this by closing stdout in the child. */
10515 _exit(close(fileno(stdout)) != 0);
10516 } else {
10517 int status;
10518 struct stat st;
10519
10520 while (wait(&status) != child)
10521 ;
10522 return (
10523 /* Was there some problem with vforking? */
10524 child < 0
10525
10526 /* Did the child fail? (This shouldn't happen.) */
10527 || status
10528
10529 /* Did the vfork/compiler bug occur? */
10530 || parent != getpid()
10531
10532 /* Did the file descriptor bug occur? */
10533 || fstat(fileno(stdout), &st) != 0
10534 );
10535 }
10536 }
10537 _ACEOF
10538 if ac_fn_cxx_try_run "$LINENO"; then :
10539 ac_cv_func_vfork_works=yes
10540 else
10541 ac_cv_func_vfork_works=no
10542 fi
10543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10544 conftest.$ac_objext conftest.beam conftest.$ac_ext
10545 fi
10546
10547 fi
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10549 $as_echo "$ac_cv_func_vfork_works" >&6; }
10550
10551 fi;
10552 if test "x$ac_cv_func_fork_works" = xcross; then
10553 ac_cv_func_vfork_works=$ac_cv_func_vfork
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10555 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10556 fi
10557
10558 if test "x$ac_cv_func_vfork_works" = xyes; then
10559
10560 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10561
10562 else
10563
10564 $as_echo "#define vfork fork" >>confdefs.h
10565
10566 fi
10567 if test "x$ac_cv_func_fork_works" = xyes; then
10568
10569 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10570
10571 fi
10572
10573
10574
10575 if test "X$prefix" = "XNONE"; then
10576 acl_final_prefix="$ac_default_prefix"
10577 else
10578 acl_final_prefix="$prefix"
10579 fi
10580 if test "X$exec_prefix" = "XNONE"; then
10581 acl_final_exec_prefix='${prefix}'
10582 else
10583 acl_final_exec_prefix="$exec_prefix"
10584 fi
10585 acl_save_prefix="$prefix"
10586 prefix="$acl_final_prefix"
10587 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10588 prefix="$acl_save_prefix"
10589
10590
10591 # Check whether --with-gnu-ld was given.
10592 if test "${with_gnu_ld+set}" = set; then :
10593 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10594 else
10595 with_gnu_ld=no
10596 fi
10597
10598 # Prepare PATH_SEPARATOR.
10599 # The user is always right.
10600 if test "${PATH_SEPARATOR+set}" != set; then
10601 echo "#! /bin/sh" >conf$$.sh
10602 echo "exit 0" >>conf$$.sh
10603 chmod +x conf$$.sh
10604 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10605 PATH_SEPARATOR=';'
10606 else
10607 PATH_SEPARATOR=:
10608 fi
10609 rm -f conf$$.sh
10610 fi
10611 ac_prog=ld
10612 if test "$GCC" = yes; then
10613 # Check if gcc -print-prog-name=ld gives a path.
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10615 $as_echo_n "checking for ld used by GCC... " >&6; }
10616 case $host in
10617 *-*-mingw*)
10618 # gcc leaves a trailing carriage return which upsets mingw
10619 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10620 *)
10621 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10622 esac
10623 case $ac_prog in
10624 # Accept absolute paths.
10625 [\\/]* | [A-Za-z]:[\\/]*)
10626 re_direlt='/[^/][^/]*/\.\./'
10627 # Canonicalize the path of ld
10628 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10629 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10630 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10631 done
10632 test -z "$LD" && LD="$ac_prog"
10633 ;;
10634 "")
10635 # If it fails, then pretend we aren't using GCC.
10636 ac_prog=ld
10637 ;;
10638 *)
10639 # If it is relative, then search for the first ld in PATH.
10640 with_gnu_ld=unknown
10641 ;;
10642 esac
10643 elif test "$with_gnu_ld" = yes; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10645 $as_echo_n "checking for GNU ld... " >&6; }
10646 else
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10648 $as_echo_n "checking for non-GNU ld... " >&6; }
10649 fi
10650 if ${acl_cv_path_LD+:} false; then :
10651 $as_echo_n "(cached) " >&6
10652 else
10653 if test -z "$LD"; then
10654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10655 for ac_dir in $PATH; do
10656 test -z "$ac_dir" && ac_dir=.
10657 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10658 acl_cv_path_LD="$ac_dir/$ac_prog"
10659 # Check to see if the program is GNU ld. I'd rather use --version,
10660 # but apparently some GNU ld's only accept -v.
10661 # Break only if it was the GNU/non-GNU ld that we prefer.
10662 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10663 test "$with_gnu_ld" != no && break
10664 else
10665 test "$with_gnu_ld" != yes && break
10666 fi
10667 fi
10668 done
10669 IFS="$ac_save_ifs"
10670 else
10671 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10672 fi
10673 fi
10674
10675 LD="$acl_cv_path_LD"
10676 if test -n "$LD"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10678 $as_echo "$LD" >&6; }
10679 else
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10682 fi
10683 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10685 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10686 if ${acl_cv_prog_gnu_ld+:} false; then :
10687 $as_echo_n "(cached) " >&6
10688 else
10689 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10690 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10691 acl_cv_prog_gnu_ld=yes
10692 else
10693 acl_cv_prog_gnu_ld=no
10694 fi
10695 fi
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10697 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10698 with_gnu_ld=$acl_cv_prog_gnu_ld
10699
10700
10701
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10703 $as_echo_n "checking for shared library run path origin... " >&6; }
10704 if ${acl_cv_rpath+:} false; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707
10708 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10709 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10710 . ./conftest.sh
10711 rm -f ./conftest.sh
10712 acl_cv_rpath=done
10713
10714 fi
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10716 $as_echo "$acl_cv_rpath" >&6; }
10717 wl="$acl_cv_wl"
10718 libext="$acl_cv_libext"
10719 shlibext="$acl_cv_shlibext"
10720 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10721 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10722 hardcode_direct="$acl_cv_hardcode_direct"
10723 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10724 # Check whether --enable-rpath was given.
10725 if test "${enable_rpath+set}" = set; then :
10726 enableval=$enable_rpath; :
10727 else
10728 enable_rpath=yes
10729 fi
10730
10731
10732
10733
10734
10735
10736
10737
10738 use_additional=yes
10739
10740 acl_save_prefix="$prefix"
10741 prefix="$acl_final_prefix"
10742 acl_save_exec_prefix="$exec_prefix"
10743 exec_prefix="$acl_final_exec_prefix"
10744
10745 eval additional_includedir=\"$includedir\"
10746 eval additional_libdir=\"$libdir\"
10747
10748 exec_prefix="$acl_save_exec_prefix"
10749 prefix="$acl_save_prefix"
10750
10751
10752 # Check whether --with-libiconv-prefix was given.
10753 if test "${with_libiconv_prefix+set}" = set; then :
10754 withval=$with_libiconv_prefix;
10755 if test "X$withval" = "Xno"; then
10756 use_additional=no
10757 else
10758 if test "X$withval" = "X"; then
10759
10760 acl_save_prefix="$prefix"
10761 prefix="$acl_final_prefix"
10762 acl_save_exec_prefix="$exec_prefix"
10763 exec_prefix="$acl_final_exec_prefix"
10764
10765 eval additional_includedir=\"$includedir\"
10766 eval additional_libdir=\"$libdir\"
10767
10768 exec_prefix="$acl_save_exec_prefix"
10769 prefix="$acl_save_prefix"
10770
10771 else
10772 additional_includedir="$withval/include"
10773 additional_libdir="$withval/lib"
10774 fi
10775 fi
10776
10777 fi
10778
10779
10780 # Check whether --with-libiconv-type was given.
10781 if test "${with_libiconv_type+set}" = set; then :
10782 withval=$with_libiconv_type; with_libiconv_type=$withval
10783 else
10784 with_libiconv_type=auto
10785 fi
10786
10787 lib_type=`eval echo \$with_libiconv_type`
10788
10789 LIBICONV=
10790 LTLIBICONV=
10791 INCICONV=
10792 rpathdirs=
10793 ltrpathdirs=
10794 names_already_handled=
10795 names_next_round='iconv '
10796 while test -n "$names_next_round"; do
10797 names_this_round="$names_next_round"
10798 names_next_round=
10799 for name in $names_this_round; do
10800 already_handled=
10801 for n in $names_already_handled; do
10802 if test "$n" = "$name"; then
10803 already_handled=yes
10804 break
10805 fi
10806 done
10807 if test -z "$already_handled"; then
10808 names_already_handled="$names_already_handled $name"
10809 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10810 eval value=\"\$HAVE_LIB$uppername\"
10811 if test -n "$value"; then
10812 if test "$value" = yes; then
10813 eval value=\"\$LIB$uppername\"
10814 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10815 eval value=\"\$LTLIB$uppername\"
10816 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10817 else
10818 :
10819 fi
10820 else
10821 found_dir=
10822 found_la=
10823 found_so=
10824 found_a=
10825 if test $use_additional = yes; then
10826 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10827 found_dir="$additional_libdir"
10828 found_so="$additional_libdir/lib$name.$shlibext"
10829 if test -f "$additional_libdir/lib$name.la"; then
10830 found_la="$additional_libdir/lib$name.la"
10831 fi
10832 elif test x$lib_type != xshared; then
10833 if test -f "$additional_libdir/lib$name.$libext"; then
10834 found_dir="$additional_libdir"
10835 found_a="$additional_libdir/lib$name.$libext"
10836 if test -f "$additional_libdir/lib$name.la"; then
10837 found_la="$additional_libdir/lib$name.la"
10838 fi
10839 fi
10840 fi
10841 fi
10842 if test "X$found_dir" = "X"; then
10843 for x in $LDFLAGS $LTLIBICONV; do
10844
10845 acl_save_prefix="$prefix"
10846 prefix="$acl_final_prefix"
10847 acl_save_exec_prefix="$exec_prefix"
10848 exec_prefix="$acl_final_exec_prefix"
10849 eval x=\"$x\"
10850 exec_prefix="$acl_save_exec_prefix"
10851 prefix="$acl_save_prefix"
10852
10853 case "$x" in
10854 -L*)
10855 dir=`echo "X$x" | sed -e 's/^X-L//'`
10856 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10857 found_dir="$dir"
10858 found_so="$dir/lib$name.$shlibext"
10859 if test -f "$dir/lib$name.la"; then
10860 found_la="$dir/lib$name.la"
10861 fi
10862 elif test x$lib_type != xshared; then
10863 if test -f "$dir/lib$name.$libext"; then
10864 found_dir="$dir"
10865 found_a="$dir/lib$name.$libext"
10866 if test -f "$dir/lib$name.la"; then
10867 found_la="$dir/lib$name.la"
10868 fi
10869 fi
10870 fi
10871 ;;
10872 esac
10873 if test "X$found_dir" != "X"; then
10874 break
10875 fi
10876 done
10877 fi
10878 if test "X$found_dir" != "X"; then
10879 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10880 if test "X$found_so" != "X"; then
10881 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10882 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10883 else
10884 haveit=
10885 for x in $ltrpathdirs; do
10886 if test "X$x" = "X$found_dir"; then
10887 haveit=yes
10888 break
10889 fi
10890 done
10891 if test -z "$haveit"; then
10892 ltrpathdirs="$ltrpathdirs $found_dir"
10893 fi
10894 if test "$hardcode_direct" = yes; then
10895 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10896 else
10897 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10898 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10899 haveit=
10900 for x in $rpathdirs; do
10901 if test "X$x" = "X$found_dir"; then
10902 haveit=yes
10903 break
10904 fi
10905 done
10906 if test -z "$haveit"; then
10907 rpathdirs="$rpathdirs $found_dir"
10908 fi
10909 else
10910 haveit=
10911 for x in $LDFLAGS $LIBICONV; do
10912
10913 acl_save_prefix="$prefix"
10914 prefix="$acl_final_prefix"
10915 acl_save_exec_prefix="$exec_prefix"
10916 exec_prefix="$acl_final_exec_prefix"
10917 eval x=\"$x\"
10918 exec_prefix="$acl_save_exec_prefix"
10919 prefix="$acl_save_prefix"
10920
10921 if test "X$x" = "X-L$found_dir"; then
10922 haveit=yes
10923 break
10924 fi
10925 done
10926 if test -z "$haveit"; then
10927 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10928 fi
10929 if test "$hardcode_minus_L" != no; then
10930 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10931 else
10932 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10933 fi
10934 fi
10935 fi
10936 fi
10937 else
10938 if test "X$found_a" != "X"; then
10939 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10940 else
10941 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10942 fi
10943 fi
10944 additional_includedir=
10945 case "$found_dir" in
10946 */lib | */lib/)
10947 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10948 additional_includedir="$basedir/include"
10949 ;;
10950 esac
10951 if test "X$additional_includedir" != "X"; then
10952 if test "X$additional_includedir" != "X/usr/include"; then
10953 haveit=
10954 if test "X$additional_includedir" = "X/usr/local/include"; then
10955 if test -n "$GCC"; then
10956 case $host_os in
10957 linux*) haveit=yes;;
10958 esac
10959 fi
10960 fi
10961 if test -z "$haveit"; then
10962 for x in $CPPFLAGS $INCICONV; do
10963
10964 acl_save_prefix="$prefix"
10965 prefix="$acl_final_prefix"
10966 acl_save_exec_prefix="$exec_prefix"
10967 exec_prefix="$acl_final_exec_prefix"
10968 eval x=\"$x\"
10969 exec_prefix="$acl_save_exec_prefix"
10970 prefix="$acl_save_prefix"
10971
10972 if test "X$x" = "X-I$additional_includedir"; then
10973 haveit=yes
10974 break
10975 fi
10976 done
10977 if test -z "$haveit"; then
10978 if test -d "$additional_includedir"; then
10979 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10980 fi
10981 fi
10982 fi
10983 fi
10984 fi
10985 if test -n "$found_la"; then
10986 save_libdir="$libdir"
10987 case "$found_la" in
10988 */* | *\\*) . "$found_la" ;;
10989 *) . "./$found_la" ;;
10990 esac
10991 libdir="$save_libdir"
10992 for dep in $dependency_libs; do
10993 case "$dep" in
10994 -L*)
10995 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10996 if test "X$additional_libdir" != "X/usr/lib"; then
10997 haveit=
10998 if test "X$additional_libdir" = "X/usr/local/lib"; then
10999 if test -n "$GCC"; then
11000 case $host_os in
11001 linux*) haveit=yes;;
11002 esac
11003 fi
11004 fi
11005 if test -z "$haveit"; then
11006 haveit=
11007 for x in $LDFLAGS $LIBICONV; do
11008
11009 acl_save_prefix="$prefix"
11010 prefix="$acl_final_prefix"
11011 acl_save_exec_prefix="$exec_prefix"
11012 exec_prefix="$acl_final_exec_prefix"
11013 eval x=\"$x\"
11014 exec_prefix="$acl_save_exec_prefix"
11015 prefix="$acl_save_prefix"
11016
11017 if test "X$x" = "X-L$additional_libdir"; then
11018 haveit=yes
11019 break
11020 fi
11021 done
11022 if test -z "$haveit"; then
11023 if test -d "$additional_libdir"; then
11024 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11025 fi
11026 fi
11027 haveit=
11028 for x in $LDFLAGS $LTLIBICONV; do
11029
11030 acl_save_prefix="$prefix"
11031 prefix="$acl_final_prefix"
11032 acl_save_exec_prefix="$exec_prefix"
11033 exec_prefix="$acl_final_exec_prefix"
11034 eval x=\"$x\"
11035 exec_prefix="$acl_save_exec_prefix"
11036 prefix="$acl_save_prefix"
11037
11038 if test "X$x" = "X-L$additional_libdir"; then
11039 haveit=yes
11040 break
11041 fi
11042 done
11043 if test -z "$haveit"; then
11044 if test -d "$additional_libdir"; then
11045 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11046 fi
11047 fi
11048 fi
11049 fi
11050 ;;
11051 -R*)
11052 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11053 if test "$enable_rpath" != no; then
11054 haveit=
11055 for x in $rpathdirs; do
11056 if test "X$x" = "X$dir"; then
11057 haveit=yes
11058 break
11059 fi
11060 done
11061 if test -z "$haveit"; then
11062 rpathdirs="$rpathdirs $dir"
11063 fi
11064 haveit=
11065 for x in $ltrpathdirs; do
11066 if test "X$x" = "X$dir"; then
11067 haveit=yes
11068 break
11069 fi
11070 done
11071 if test -z "$haveit"; then
11072 ltrpathdirs="$ltrpathdirs $dir"
11073 fi
11074 fi
11075 ;;
11076 -l*)
11077 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11078 ;;
11079 *.la)
11080 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11081 ;;
11082 *)
11083 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11084 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11085 ;;
11086 esac
11087 done
11088 fi
11089 else
11090 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11091 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11092 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11093 else
11094 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11095 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11096 fi
11097 fi
11098 fi
11099 fi
11100 done
11101 done
11102 if test "X$rpathdirs" != "X"; then
11103 if test -n "$hardcode_libdir_separator"; then
11104 alldirs=
11105 for found_dir in $rpathdirs; do
11106 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11107 done
11108 acl_save_libdir="$libdir"
11109 libdir="$alldirs"
11110 eval flag=\"$hardcode_libdir_flag_spec\"
11111 libdir="$acl_save_libdir"
11112 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11113 else
11114 for found_dir in $rpathdirs; do
11115 acl_save_libdir="$libdir"
11116 libdir="$found_dir"
11117 eval flag=\"$hardcode_libdir_flag_spec\"
11118 libdir="$acl_save_libdir"
11119 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11120 done
11121 fi
11122 fi
11123 if test "X$ltrpathdirs" != "X"; then
11124 for found_dir in $ltrpathdirs; do
11125 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11126 done
11127 fi
11128
11129
11130
11131
11132
11133
11134
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11136 $as_echo_n "checking for iconv... " >&6; }
11137 if ${am_cv_func_iconv+:} false; then :
11138 $as_echo_n "(cached) " >&6
11139 else
11140
11141 am_cv_func_iconv="no, consider installing GNU libiconv"
11142 am_cv_lib_iconv=no
11143 am_save_CPPFLAGS="$CPPFLAGS"
11144 CPPFLAGS="$CPPFLAGS $INCICONV"
11145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11146 /* end confdefs.h. */
11147 #include <stdlib.h>
11148 #include <iconv.h>
11149 int
11150 main ()
11151 {
11152 iconv_t cd = iconv_open("","");
11153 iconv(cd,NULL,NULL,NULL,NULL);
11154 iconv_close(cd);
11155 ;
11156 return 0;
11157 }
11158 _ACEOF
11159 if ac_fn_cxx_try_link "$LINENO"; then :
11160 am_cv_func_iconv=yes
11161 fi
11162 rm -f core conftest.err conftest.$ac_objext \
11163 conftest$ac_exeext conftest.$ac_ext
11164 CPPFLAGS="$am_save_CPPFLAGS"
11165
11166 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11167 for _libs in .libs _libs; do
11168 am_save_CPPFLAGS="$CPPFLAGS"
11169 am_save_LIBS="$LIBS"
11170 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11171 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173 /* end confdefs.h. */
11174 #include <stdlib.h>
11175 #include <iconv.h>
11176 int
11177 main ()
11178 {
11179 iconv_t cd = iconv_open("","");
11180 iconv(cd,NULL,NULL,NULL,NULL);
11181 iconv_close(cd);
11182 ;
11183 return 0;
11184 }
11185 _ACEOF
11186 if ac_fn_cxx_try_link "$LINENO"; then :
11187 INCICONV="-I../libiconv/include"
11188 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11189 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11190 am_cv_lib_iconv=yes
11191 am_cv_func_iconv=yes
11192 fi
11193 rm -f core conftest.err conftest.$ac_objext \
11194 conftest$ac_exeext conftest.$ac_ext
11195 CPPFLAGS="$am_save_CPPFLAGS"
11196 LIBS="$am_save_LIBS"
11197 if test "$am_cv_func_iconv" = "yes"; then
11198 break
11199 fi
11200 done
11201 fi
11202
11203 if test "$am_cv_func_iconv" != yes; then
11204 am_save_CPPFLAGS="$CPPFLAGS"
11205 am_save_LIBS="$LIBS"
11206 CPPFLAGS="$CPPFLAGS $INCICONV"
11207 LIBS="$LIBS $LIBICONV"
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11210 #include <stdlib.h>
11211 #include <iconv.h>
11212 int
11213 main ()
11214 {
11215 iconv_t cd = iconv_open("","");
11216 iconv(cd,NULL,NULL,NULL,NULL);
11217 iconv_close(cd);
11218 ;
11219 return 0;
11220 }
11221 _ACEOF
11222 if ac_fn_cxx_try_link "$LINENO"; then :
11223 am_cv_lib_iconv=yes
11224 am_cv_func_iconv=yes
11225 fi
11226 rm -f core conftest.err conftest.$ac_objext \
11227 conftest$ac_exeext conftest.$ac_ext
11228 CPPFLAGS="$am_save_CPPFLAGS"
11229 LIBS="$am_save_LIBS"
11230 fi
11231
11232 fi
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11234 $as_echo "$am_cv_func_iconv" >&6; }
11235 if test "$am_cv_func_iconv" = yes; then
11236
11237 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11238
11239 fi
11240 if test "$am_cv_lib_iconv" = yes; then
11241
11242 for element in $INCICONV; do
11243 haveit=
11244 for x in $CPPFLAGS; do
11245
11246 acl_save_prefix="$prefix"
11247 prefix="$acl_final_prefix"
11248 acl_save_exec_prefix="$exec_prefix"
11249 exec_prefix="$acl_final_exec_prefix"
11250 eval x=\"$x\"
11251 exec_prefix="$acl_save_exec_prefix"
11252 prefix="$acl_save_prefix"
11253
11254 if test "X$x" = "X$element"; then
11255 haveit=yes
11256 break
11257 fi
11258 done
11259 if test -z "$haveit"; then
11260 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11261 fi
11262 done
11263
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11265 $as_echo_n "checking how to link with libiconv... " >&6; }
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11267 $as_echo "$LIBICONV" >&6; }
11268 else
11269 LIBICONV=
11270 LTLIBICONV=
11271 fi
11272
11273
11274
11275 if test "$am_cv_func_iconv" = yes; then
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11277 $as_echo_n "checking for iconv declaration... " >&6; }
11278 if ${am_cv_proto_iconv+:} false; then :
11279 $as_echo_n "(cached) " >&6
11280 else
11281
11282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11283 /* end confdefs.h. */
11284
11285 #include <stdlib.h>
11286 #include <iconv.h>
11287 extern
11288 #ifdef __cplusplus
11289 "C"
11290 #endif
11291 #if defined(__STDC__) || defined(__cplusplus)
11292 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11293 #else
11294 size_t iconv();
11295 #endif
11296
11297 int
11298 main ()
11299 {
11300
11301 ;
11302 return 0;
11303 }
11304 _ACEOF
11305 if ac_fn_cxx_try_compile "$LINENO"; then :
11306 am_cv_proto_iconv_arg1=""
11307 else
11308 am_cv_proto_iconv_arg1="const"
11309 fi
11310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11311 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);"
11312 fi
11313
11314 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11316 }$am_cv_proto_iconv" >&5
11317 $as_echo "${ac_t:-
11318 }$am_cv_proto_iconv" >&6; }
11319
11320 cat >>confdefs.h <<_ACEOF
11321 #define ICONV_CONST $am_cv_proto_iconv_arg1
11322 _ACEOF
11323
11324 fi
11325
11326
11327 # Until we have in-tree GNU iconv:
11328 LIBICONV_DEP=
11329 if test -f "$LTLIBICONV"; then
11330 LIBICONV_DEP=$LTLIBICONV
11331 fi
11332
11333
11334
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11336 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11337 if ${am_cv_val_LC_MESSAGES+:} false; then :
11338 $as_echo_n "(cached) " >&6
11339 else
11340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341 /* end confdefs.h. */
11342 #include <locale.h>
11343 int
11344 main ()
11345 {
11346 return LC_MESSAGES
11347 ;
11348 return 0;
11349 }
11350 _ACEOF
11351 if ac_fn_cxx_try_link "$LINENO"; then :
11352 am_cv_val_LC_MESSAGES=yes
11353 else
11354 am_cv_val_LC_MESSAGES=no
11355 fi
11356 rm -f core conftest.err conftest.$ac_objext \
11357 conftest$ac_exeext conftest.$ac_ext
11358 fi
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11360 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11361 if test $am_cv_val_LC_MESSAGES = yes; then
11362
11363 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11364
11365 fi
11366
11367
11368
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11370 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11371 if ${am_cv_langinfo_codeset+:} false; then :
11372 $as_echo_n "(cached) " >&6
11373 else
11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h. */
11376 #include <langinfo.h>
11377 int
11378 main ()
11379 {
11380 char* cs = nl_langinfo(CODESET);
11381 ;
11382 return 0;
11383 }
11384 _ACEOF
11385 if ac_fn_cxx_try_link "$LINENO"; then :
11386 am_cv_langinfo_codeset=yes
11387 else
11388 am_cv_langinfo_codeset=no
11389 fi
11390 rm -f core conftest.err conftest.$ac_objext \
11391 conftest$ac_exeext conftest.$ac_ext
11392
11393 fi
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11395 $as_echo "$am_cv_langinfo_codeset" >&6; }
11396 if test $am_cv_langinfo_codeset = yes; then
11397
11398 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11399
11400 fi
11401
11402
11403 # We will need to find libiberty.h and ansidecl.h
11404 saved_CFLAGS="$CFLAGS"
11405 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11406 saved_CXXFLAGS="$CXXFLAGS"
11407 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11408
11409 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11410 # normal autoconf function for these. But force definition of
11411 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11412 # basename handling in libiberty.h.
11413 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11414 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11415 #undef HAVE_DECL_BASENAME
11416 #define HAVE_DECL_BASENAME 1
11417 #include \"ansidecl.h\"
11418 #include \"system.h\"
11419 "
11420 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11421 ac_have_decl=1
11422 else
11423 ac_have_decl=0
11424 fi
11425
11426 cat >>confdefs.h <<_ACEOF
11427 #define HAVE_DECL_BASENAME $ac_have_decl
11428 _ACEOF
11429 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11430 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11431 #undef HAVE_DECL_BASENAME
11432 #define HAVE_DECL_BASENAME 1
11433 #include \"ansidecl.h\"
11434 #include \"system.h\"
11435 "
11436 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11437 ac_have_decl=1
11438 else
11439 ac_have_decl=0
11440 fi
11441
11442 cat >>confdefs.h <<_ACEOF
11443 #define HAVE_DECL_STRSTR $ac_have_decl
11444 _ACEOF
11445
11446
11447 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11448 madvise stpcpy strnlen strsignal strverscmp \
11449 strtol strtoul strtoll strtoull setenv unsetenv \
11450 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11451 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
11452 do
11453 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11455 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11456 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11457 $as_echo_n "(cached) " >&6
11458 else
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h. */
11461 #undef $ac_tr_decl
11462 #define $ac_tr_decl 1
11463
11464 #include "ansidecl.h"
11465 #include "system.h"
11466
11467 int
11468 main ()
11469 {
11470 #ifndef $ac_func
11471 char *(*pfn) = (char *(*)) $ac_func ;
11472 #endif
11473 ;
11474 return 0;
11475 }
11476 _ACEOF
11477 if ac_fn_cxx_try_compile "$LINENO"; then :
11478 eval "gcc_cv_have_decl_$ac_func=yes"
11479 else
11480 eval "gcc_cv_have_decl_$ac_func=no"
11481 fi
11482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11483 fi
11484
11485 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11487 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11488 #define $ac_tr_decl 1
11489 _ACEOF
11490
11491 else
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11494 #define $ac_tr_decl 0
11495 _ACEOF
11496
11497 fi
11498
11499 done
11500
11501
11502 for ac_func in getrlimit setrlimit getrusage
11503 do
11504 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11506 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11507 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11508 $as_echo_n "(cached) " >&6
11509 else
11510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11511 /* end confdefs.h. */
11512 #undef $ac_tr_decl
11513 #define $ac_tr_decl 1
11514
11515 #include "ansidecl.h"
11516 #include "system.h"
11517 #ifdef HAVE_SYS_RESOURCE_H
11518 #include <sys/resource.h>
11519 #endif
11520
11521
11522 int
11523 main ()
11524 {
11525 #ifndef $ac_func
11526 char *(*pfn) = (char *(*)) $ac_func ;
11527 #endif
11528 ;
11529 return 0;
11530 }
11531 _ACEOF
11532 if ac_fn_cxx_try_compile "$LINENO"; then :
11533 eval "gcc_cv_have_decl_$ac_func=yes"
11534 else
11535 eval "gcc_cv_have_decl_$ac_func=no"
11536 fi
11537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11538 fi
11539
11540 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11542 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11543 #define $ac_tr_decl 1
11544 _ACEOF
11545
11546 else
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11549 #define $ac_tr_decl 0
11550 _ACEOF
11551
11552 fi
11553
11554 done
11555
11556
11557 for ac_func in mallinfo
11558 do
11559 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11561 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11562 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11563 $as_echo_n "(cached) " >&6
11564 else
11565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11566 /* end confdefs.h. */
11567 #undef $ac_tr_decl
11568 #define $ac_tr_decl 1
11569
11570 #include "ansidecl.h"
11571 #include "system.h"
11572 #ifdef HAVE_MALLOC_H
11573 #include <malloc.h>
11574 #endif
11575
11576
11577 int
11578 main ()
11579 {
11580 #ifndef $ac_func
11581 char *(*pfn) = (char *(*)) $ac_func ;
11582 #endif
11583 ;
11584 return 0;
11585 }
11586 _ACEOF
11587 if ac_fn_cxx_try_compile "$LINENO"; then :
11588 eval "gcc_cv_have_decl_$ac_func=yes"
11589 else
11590 eval "gcc_cv_have_decl_$ac_func=no"
11591 fi
11592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11593 fi
11594
11595 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11597 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11598 #define $ac_tr_decl 1
11599 _ACEOF
11600
11601 else
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11604 #define $ac_tr_decl 0
11605 _ACEOF
11606
11607 fi
11608
11609 done
11610
11611
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h. */
11614
11615 #include "ansidecl.h"
11616 #include "system.h"
11617 #ifdef HAVE_SYS_RESOURCE_H
11618 #include <sys/resource.h>
11619 #endif
11620
11621 int
11622 main ()
11623 {
11624 rlim_t l = 0;
11625 ;
11626 return 0;
11627 }
11628 _ACEOF
11629 if ac_fn_cxx_try_compile "$LINENO"; then :
11630
11631 else
11632
11633 $as_echo "#define rlim_t long" >>confdefs.h
11634
11635 fi
11636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11637
11638 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11639 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11640 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11641 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11642 for ac_func in ldgetname
11643 do
11644 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11646 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11647 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11648 $as_echo_n "(cached) " >&6
11649 else
11650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651 /* end confdefs.h. */
11652 #undef $ac_tr_decl
11653 #define $ac_tr_decl 1
11654
11655 #include "ansidecl.h"
11656 #include "system.h"
11657 #ifdef HAVE_LDFCN_H
11658 #undef FREAD
11659 #undef FWRITE
11660 #include <ldfcn.h>
11661 #endif
11662
11663
11664 int
11665 main ()
11666 {
11667 #ifndef $ac_func
11668 char *(*pfn) = (char *(*)) $ac_func ;
11669 #endif
11670 ;
11671 return 0;
11672 }
11673 _ACEOF
11674 if ac_fn_cxx_try_compile "$LINENO"; then :
11675 eval "gcc_cv_have_decl_$ac_func=yes"
11676 else
11677 eval "gcc_cv_have_decl_$ac_func=no"
11678 fi
11679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11680 fi
11681
11682 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11684 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11685 #define $ac_tr_decl 1
11686 _ACEOF
11687
11688 else
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11691 #define $ac_tr_decl 0
11692 _ACEOF
11693
11694 fi
11695
11696 done
11697
11698
11699 for ac_func in times
11700 do
11701 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11703 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11704 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11705 $as_echo_n "(cached) " >&6
11706 else
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11709 #undef $ac_tr_decl
11710 #define $ac_tr_decl 1
11711
11712 #include "ansidecl.h"
11713 #include "system.h"
11714 #ifdef HAVE_SYS_TIMES_H
11715 #include <sys/times.h>
11716 #endif
11717
11718
11719 int
11720 main ()
11721 {
11722 #ifndef $ac_func
11723 char *(*pfn) = (char *(*)) $ac_func ;
11724 #endif
11725 ;
11726 return 0;
11727 }
11728 _ACEOF
11729 if ac_fn_cxx_try_compile "$LINENO"; then :
11730 eval "gcc_cv_have_decl_$ac_func=yes"
11731 else
11732 eval "gcc_cv_have_decl_$ac_func=no"
11733 fi
11734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11735 fi
11736
11737 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11739 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11740 #define $ac_tr_decl 1
11741 _ACEOF
11742
11743 else
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11746 #define $ac_tr_decl 0
11747 _ACEOF
11748
11749 fi
11750
11751 done
11752
11753
11754 for ac_func in sigaltstack
11755 do
11756 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11758 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11759 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11760 $as_echo_n "(cached) " >&6
11761 else
11762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11764 #undef $ac_tr_decl
11765 #define $ac_tr_decl 1
11766
11767 #include "ansidecl.h"
11768 #include "system.h"
11769 #include <signal.h>
11770
11771
11772 int
11773 main ()
11774 {
11775 #ifndef $ac_func
11776 char *(*pfn) = (char *(*)) $ac_func ;
11777 #endif
11778 ;
11779 return 0;
11780 }
11781 _ACEOF
11782 if ac_fn_cxx_try_compile "$LINENO"; then :
11783 eval "gcc_cv_have_decl_$ac_func=yes"
11784 else
11785 eval "gcc_cv_have_decl_$ac_func=no"
11786 fi
11787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11788 fi
11789
11790 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11792 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11793 #define $ac_tr_decl 1
11794 _ACEOF
11795
11796 else
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11799 #define $ac_tr_decl 0
11800 _ACEOF
11801
11802 fi
11803
11804 done
11805
11806
11807 # More time-related stuff.
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11809 $as_echo_n "checking for struct tms... " >&6; }
11810 if ${ac_cv_struct_tms+:} false; then :
11811 $as_echo_n "(cached) " >&6
11812 else
11813
11814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11815 /* end confdefs.h. */
11816
11817 #include "ansidecl.h"
11818 #include "system.h"
11819 #ifdef HAVE_SYS_TIMES_H
11820 #include <sys/times.h>
11821 #endif
11822
11823 int
11824 main ()
11825 {
11826 struct tms tms;
11827 ;
11828 return 0;
11829 }
11830 _ACEOF
11831 if ac_fn_cxx_try_compile "$LINENO"; then :
11832 ac_cv_struct_tms=yes
11833 else
11834 ac_cv_struct_tms=no
11835 fi
11836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11837 fi
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11839 $as_echo "$ac_cv_struct_tms" >&6; }
11840 if test $ac_cv_struct_tms = yes; then
11841
11842 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11843
11844 fi
11845
11846 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11847 # revisit after autoconf 2.50.
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11849 $as_echo_n "checking for clock_t... " >&6; }
11850 if ${gcc_cv_type_clock_t+:} false; then :
11851 $as_echo_n "(cached) " >&6
11852 else
11853
11854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11856
11857 #include "ansidecl.h"
11858 #include "system.h"
11859
11860 int
11861 main ()
11862 {
11863 clock_t x;
11864 ;
11865 return 0;
11866 }
11867 _ACEOF
11868 if ac_fn_cxx_try_compile "$LINENO"; then :
11869 gcc_cv_type_clock_t=yes
11870 else
11871 gcc_cv_type_clock_t=no
11872 fi
11873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874 fi
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11876 $as_echo "$gcc_cv_type_clock_t" >&6; }
11877 if test $gcc_cv_type_clock_t = yes; then
11878
11879 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11880
11881 fi
11882
11883 # Check if F_SETLKW is supported by fcntl.
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11885 $as_echo_n "checking for F_SETLKW... " >&6; }
11886 if ${ac_cv_f_setlkw+:} false; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889
11890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11891 /* end confdefs.h. */
11892
11893 #include <fcntl.h>
11894 int
11895 main ()
11896 {
11897
11898 struct flock fl;
11899 fl.l_whence = 0;
11900 fl.l_start = 0;
11901 fl.l_len = 0;
11902 fl.l_pid = 0;
11903 return fcntl (1, F_SETLKW, &fl);
11904 ;
11905 return 0;
11906 }
11907 _ACEOF
11908 if ac_fn_cxx_try_compile "$LINENO"; then :
11909 ac_cv_f_setlkw=yes
11910 else
11911 ac_cv_f_setlkw=no
11912 fi
11913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11914 fi
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11916 $as_echo "$ac_cv_f_setlkw" >&6; }
11917 if test $ac_cv_f_setlkw = yes; then
11918
11919 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11920
11921 fi
11922
11923 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11924 CFLAGS="$saved_CFLAGS"
11925 CXXFLAGS="$saved_CXXFLAGS"
11926
11927 # mkdir takes a single argument on some systems.
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11929 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11930 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11931 $as_echo_n "(cached) " >&6
11932 else
11933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h. */
11935
11936 #include <sys/types.h>
11937 #ifdef HAVE_SYS_STAT_H
11938 # include <sys/stat.h>
11939 #endif
11940 #ifdef HAVE_UNISTD_H
11941 # include <unistd.h>
11942 #endif
11943 #ifdef HAVE_DIRECT_H
11944 # include <direct.h>
11945 #endif
11946 int
11947 main ()
11948 {
11949 mkdir ("foo", 0);
11950 ;
11951 return 0;
11952 }
11953 _ACEOF
11954 if ac_fn_cxx_try_compile "$LINENO"; then :
11955 gcc_cv_mkdir_takes_one_arg=no
11956 else
11957 gcc_cv_mkdir_takes_one_arg=yes
11958 fi
11959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11960 fi
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11962 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11963 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11964
11965 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11966
11967 fi
11968
11969
11970 # File extensions
11971 manext='.1'
11972 objext='.o'
11973
11974
11975
11976 # With Setjmp/Longjmp based exception handling.
11977 # Check whether --enable-sjlj-exceptions was given.
11978 if test "${enable_sjlj_exceptions+set}" = set; then :
11979 enableval=$enable_sjlj_exceptions; case $target in
11980 *-*-hpux10*)
11981 if test $enableval != yes; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11983 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11984 enableval=yes
11985 fi
11986 ;;
11987 esac
11988 force_sjlj_exceptions=yes
11989 else
11990 case $target in
11991 *-*-hpux10*)
11992 force_sjlj_exceptions=yes
11993 enableval=yes
11994 ;;
11995 lm32*-*-*)
11996 force_sjlj_exceptions=yes
11997 enableval=yes
11998 ;;
11999 *)
12000 force_sjlj_exceptions=no
12001 ;;
12002 esac
12003 fi
12004
12005 if test $force_sjlj_exceptions = yes; then
12006 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12007
12008 cat >>confdefs.h <<_ACEOF
12009 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12010 _ACEOF
12011
12012 fi
12013
12014 # --------------------------------------------------------
12015 # Build, host, and target specific configuration fragments
12016 # --------------------------------------------------------
12017
12018 # Collect build-machine-specific information.
12019 . ${srcdir}/config.build || exit 1
12020
12021 # Collect host-machine-specific information.
12022 . ${srcdir}/config.host || exit 1
12023
12024 target_gtfiles=
12025
12026 # Collect target-machine-specific information.
12027 . ${srcdir}/config.gcc || exit 1
12028
12029 extra_objs="${host_extra_objs} ${extra_objs}"
12030 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12031
12032 # Default the target-machine variables that were not explicitly set.
12033 if test x"$tm_file" = x
12034 then tm_file=$cpu_type/$cpu_type.h; fi
12035
12036 if test x"$extra_headers" = x
12037 then extra_headers=; fi
12038
12039 if test x$md_file = x
12040 then md_file=$cpu_type/$cpu_type.md; fi
12041
12042 if test x$out_file = x
12043 then out_file=$cpu_type/$cpu_type.c; fi
12044
12045 if test x"$tmake_file" = x
12046 then tmake_file=$cpu_type/t-$cpu_type
12047 fi
12048
12049 # Support --enable-initfini-array.
12050 if test x$enable_initfini_array != xno; then
12051 tm_file="${tm_file} initfini-array.h"
12052 fi
12053
12054 if test x"$dwarf2" = xyes
12055 then tm_file="$tm_file tm-dwarf2.h"
12056 fi
12057
12058 # Say what files are being used for the output code and MD file.
12059 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12060 echo "Using \`$srcdir/config/$md_file' as machine description file."
12061
12062 # If any of the xm_file variables contain nonexistent files, warn
12063 # about them and drop them.
12064
12065 bx=
12066 for x in $build_xm_file; do
12067 if test -f $srcdir/config/$x
12068 then bx="$bx $x"
12069 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12070 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12071 fi
12072 done
12073 build_xm_file="$bx"
12074
12075 hx=
12076 for x in $host_xm_file; do
12077 if test -f $srcdir/config/$x
12078 then hx="$hx $x"
12079 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12080 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12081 fi
12082 done
12083 host_xm_file="$hx"
12084
12085 tx=
12086 for x in $xm_file; do
12087 if test -f $srcdir/config/$x
12088 then tx="$tx $x"
12089 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12090 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12091 fi
12092 done
12093 xm_file="$tx"
12094
12095 count=a
12096 for f in $tm_file; do
12097 count=${count}x
12098 done
12099 if test $count = ax; then
12100 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12101 else
12102 echo "Using the following target machine macro files:"
12103 for f in $tm_file; do
12104 echo " $srcdir/config/$f"
12105 done
12106 fi
12107
12108 if test x$use_long_long_for_widest_fast_int = xyes; then
12109
12110 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12111
12112 fi
12113
12114 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12115
12116 cat >>confdefs.h <<_ACEOF
12117 #define HAVE_GNU_LD $gnu_ld_bool
12118 _ACEOF
12119
12120
12121 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12122
12123 cat >>confdefs.h <<_ACEOF
12124 #define HAVE_GNU_AS $gnu_as_bool
12125 _ACEOF
12126
12127
12128 count=a
12129 for f in $host_xm_file; do
12130 count=${count}x
12131 done
12132 if test $count = a; then
12133 :
12134 elif test $count = ax; then
12135 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12136 else
12137 echo "Using the following host machine macro files:"
12138 for f in $host_xm_file; do
12139 echo " $srcdir/config/$f"
12140 done
12141 fi
12142 echo "Using ${out_host_hook_obj} for host machine hooks."
12143
12144 if test "$host_xm_file" != "$build_xm_file"; then
12145 count=a
12146 for f in $build_xm_file; do
12147 count=${count}x
12148 done
12149 if test $count = a; then
12150 :
12151 elif test $count = ax; then
12152 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12153 else
12154 echo "Using the following build machine macro files:"
12155 for f in $build_xm_file; do
12156 echo " $srcdir/config/$f"
12157 done
12158 fi
12159 fi
12160
12161 if test -n "$configured_native_system_header_dir"; then
12162 native_system_header_dir=$configured_native_system_header_dir
12163 fi
12164 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12165
12166
12167 case ${host} in
12168 powerpc*-*-darwin*)
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12170 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12171 if ${gcc_cv_mcontext_underscores+:} false; then :
12172 $as_echo_n "(cached) " >&6
12173 else
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12176
12177 #include <sys/cdefs.h>
12178 #include <sys/signal.h>
12179 #include <ucontext.h>
12180 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12181
12182 _ACEOF
12183 if ac_fn_cxx_try_compile "$LINENO"; then :
12184 gcc_cv_mcontext_underscores=no
12185 else
12186 gcc_cv_mcontext_underscores=yes
12187 fi
12188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12189 fi
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12191 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12192 if test $gcc_cv_mcontext_underscores = yes; then
12193
12194 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12195
12196 fi
12197 ;;
12198 esac
12199
12200 # ---------
12201 # Threading
12202 # ---------
12203
12204 # Check if a valid thread package
12205 case ${enable_threads} in
12206 "" | no)
12207 # No threads
12208 target_thread_file='single'
12209 ;;
12210 yes)
12211 # default
12212 target_thread_file='single'
12213 ;;
12214 aix | dce | lynx | mipssde | posix | rtems | \
12215 single | tpf | vxworks | win32)
12216 target_thread_file=${enable_threads}
12217 ;;
12218 *)
12219 echo "${enable_threads} is an unknown thread package" 1>&2
12220 exit 1
12221 ;;
12222 esac
12223
12224 if test x${thread_file} = x; then
12225 # No thread file set by target-specific clauses in config.gcc,
12226 # so use file chosen by default logic above
12227 thread_file=${target_thread_file}
12228 fi
12229
12230 # --------
12231 # UNSORTED
12232 # --------
12233
12234 use_cxa_atexit=no
12235 if test x$enable___cxa_atexit = xyes || \
12236 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12237 if test x$host = x$target; then
12238 case $host in
12239 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12240 # keyed to flag_use_cxa_atexit
12241 *-*-mingw32*)
12242 use_cxa_atexit=yes
12243 ;;
12244 powerpc-ibm-aix*)
12245 use_cxa_atexit=yes
12246 ;;
12247 *)
12248 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12249 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12250 use_cxa_atexit=yes
12251 else
12252 echo "__cxa_atexit can't be enabled on this target"
12253 fi
12254
12255 ;;
12256 esac
12257 else
12258 # We can't check for __cxa_atexit when building a cross, so assume
12259 # it is available
12260 use_cxa_atexit=yes
12261 fi
12262 if test x$use_cxa_atexit = xyes; then
12263
12264 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12265
12266 fi
12267 fi
12268
12269 # Look for a file containing extra machine modes.
12270 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12271 extra_modes_file='$(srcdir)'/config/${extra_modes}
12272
12273
12274 cat >>confdefs.h <<_ACEOF
12275 #define EXTRA_MODES_FILE "config/$extra_modes"
12276 _ACEOF
12277
12278 fi
12279
12280 # Convert extra_options into a form suitable for Makefile use.
12281 extra_opt_files=
12282 all_opt_files=
12283 for f in $extra_options; do
12284 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12285 all_opt_files="$all_opt_files $srcdir/config/$f"
12286 done
12287
12288
12289 # auto-host.h is the file containing items generated by autoconf and is
12290 # the first file included by config.h.
12291 # If host=build, it is correct to have bconfig include auto-host.h
12292 # as well. If host!=build, we are in error and need to do more
12293 # work to find out the build config parameters.
12294 if test x$host = x$build
12295 then
12296 build_auto=auto-host.h
12297 HAVE_AUTO_BUILD='# '
12298 else
12299 # We create a subdir, then run autoconf in the subdir.
12300 # To prevent recursion we set host and build for the new
12301 # invocation of configure to the build for this invocation
12302 # of configure.
12303 tempdir=build.$$
12304 rm -rf $tempdir
12305 mkdir $tempdir
12306 cd $tempdir
12307 case ${srcdir} in
12308 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12309 *) realsrcdir=../${srcdir};;
12310 esac
12311 # Clearing GMPINC is necessary to prevent host headers being
12312 # used by the build compiler. Defining GENERATOR_FILE stops
12313 # system.h from including gmp.h.
12314 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12315 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12316 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12317 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
12318 ${realsrcdir}/configure \
12319 --enable-languages=${enable_languages-all} \
12320 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12321 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12322 --target=$target_alias --host=$build_alias \
12323 --build=$build_alias || exit # retaining $tempdir
12324
12325 # We just finished tests for the build machine, so rename
12326 # the file auto-build.h in the gcc directory.
12327 mv auto-host.h ../auto-build.h
12328 cd ..
12329 rm -rf $tempdir
12330 build_auto=auto-build.h
12331 HAVE_AUTO_BUILD=
12332 fi
12333
12334
12335
12336 tm_file="${tm_file} defaults.h"
12337 tm_p_file="${tm_p_file} tm-preds.h"
12338 tm_d_file="${tm_d_file} defaults.h"
12339 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12340 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12341 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12342 # put this back in temporarily.
12343 xm_file="auto-host.h ansidecl.h ${xm_file}"
12344
12345 # --------
12346 # UNSORTED
12347 # --------
12348
12349 # Compile in configure arguments.
12350 if test -f configargs.h ; then
12351 # Being re-configured.
12352 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12353 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12354 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12355 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12356 fi
12357 else
12358 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12359 fi
12360
12361 # Double all backslashes and backslash all quotes to turn
12362 # gcc_config_arguments into a C string.
12363 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12364 $gcc_config_arguments
12365 EOF
12366 gcc_config_arguments_str=`cat conftest.out`
12367 rm -f conftest.out
12368
12369 cat > configargs.h <<EOF
12370 /* Generated automatically. */
12371 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12372 static const char thread_model[] = "$thread_file";
12373
12374 static const struct {
12375 const char *name, *value;
12376 } configure_default_options[] = $configure_default_options;
12377 EOF
12378
12379 gcc_BASEVER=`cat $srcdir/BASE-VER`
12380 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12381 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12382 if test -f $srcdir/REVISION ; then
12383 gcc_REVISION=`cat $srcdir/REVISION`
12384 else
12385 gcc_REVISION=""
12386 fi
12387 cat > plugin-version.h <<EOF
12388 #include "configargs.h"
12389
12390 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12391 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12392 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12393 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12394
12395 static char basever[] = "$gcc_BASEVER";
12396 static char datestamp[] = "$gcc_DATESTAMP";
12397 static char devphase[] = "$gcc_DEVPHASE";
12398 static char revision[] = "$gcc_REVISION";
12399
12400 /* FIXME plugins: We should make the version information more precise.
12401 One way to do is to add a checksum. */
12402
12403 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12404 devphase, revision,
12405 configuration_arguments};
12406 EOF
12407
12408 # Determine what GCC version number to use in filesystem paths.
12409
12410 get_gcc_base_ver="cat"
12411
12412 # Check whether --with-gcc-major-version-only was given.
12413 if test "${with_gcc_major_version_only+set}" = set; then :
12414 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12415 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12416 fi
12417
12418 fi
12419
12420
12421
12422
12423 # Internationalization
12424 # If we haven't got the data from the intl directory,
12425 # assume NLS is disabled.
12426 USE_NLS=no
12427 LIBINTL=
12428 LIBINTL_DEP=
12429 INCINTL=
12430 XGETTEXT=
12431 GMSGFMT=
12432 POSUB=
12433
12434 if test -f ../intl/config.intl; then
12435 . ../intl/config.intl
12436 fi
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12438 $as_echo_n "checking whether NLS is requested... " >&6; }
12439 if test x"$USE_NLS" != xyes; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12441 $as_echo "no" >&6; }
12442 else
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12444 $as_echo "yes" >&6; }
12445
12446 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12447
12448
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12450 $as_echo_n "checking for catalogs to be installed... " >&6; }
12451 # Look for .po and .gmo files in the source directory.
12452 CATALOGS=
12453 XLINGUAS=
12454 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12455 # If there aren't any .gmo files the shell will give us the
12456 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12457 # weeded out.
12458 case "$cat" in *\**)
12459 continue;;
12460 esac
12461 # The quadruple backslash is collapsed to a double backslash
12462 # by the backticks, then collapsed again by the double quotes,
12463 # leaving us with one backslash in the sed expression (right
12464 # before the dot that mustn't act as a wildcard).
12465 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12466 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12467 # The user is allowed to set LINGUAS to a list of languages to
12468 # install catalogs for. If it's empty that means "all of them."
12469 if test "x$LINGUAS" = x; then
12470 CATALOGS="$CATALOGS $cat"
12471 XLINGUAS="$XLINGUAS $lang"
12472 else
12473 case "$LINGUAS" in *$lang*)
12474 CATALOGS="$CATALOGS $cat"
12475 XLINGUAS="$XLINGUAS $lang"
12476 ;;
12477 esac
12478 fi
12479 done
12480 LINGUAS="$XLINGUAS"
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12482 $as_echo "$LINGUAS" >&6; }
12483
12484
12485 DATADIRNAME=share
12486
12487 INSTOBJEXT=.mo
12488
12489 GENCAT=gencat
12490
12491 CATOBJEXT=.gmo
12492
12493 fi
12494
12495 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12496 # -liconv on the link line twice.
12497 case "$LIBINTL" in *$LIBICONV*)
12498 LIBICONV= ;;
12499 esac
12500
12501 # Check whether --enable-secureplt was given.
12502 if test "${enable_secureplt+set}" = set; then :
12503 enableval=$enable_secureplt;
12504 fi
12505
12506
12507 # Check whether --enable-mingw-wildcard was given.
12508 if test "${enable_mingw_wildcard+set}" = set; then :
12509 enableval=$enable_mingw_wildcard;
12510 else
12511 enable_mingw_wildcard=platform
12512 fi
12513
12514 if test x"$enable_mingw_wildcard" != xplatform ; then :
12515
12516 cat >>confdefs.h <<_ACEOF
12517 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12518 _ACEOF
12519
12520 fi
12521
12522 # Check whether --enable-large-address-aware was given.
12523 if test "${enable_large_address_aware+set}" = set; then :
12524 enableval=$enable_large_address_aware;
12525 fi
12526
12527 if test x"$enable_large_address_aware" = xyes; then :
12528
12529 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12530
12531 fi
12532
12533 # Check whether --enable-leading-mingw64-underscores was given.
12534 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12535 enableval=$enable_leading_mingw64_underscores;
12536 fi
12537
12538 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12539
12540 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12541
12542 fi
12543
12544 # Check whether --enable-cld was given.
12545 if test "${enable_cld+set}" = set; then :
12546 enableval=$enable_cld;
12547 else
12548 enable_cld=no
12549 fi
12550
12551
12552 # Check whether --enable-frame-pointer was given.
12553 if test "${enable_frame_pointer+set}" = set; then :
12554 enableval=$enable_frame_pointer;
12555 else
12556
12557 case $target_os in
12558 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
12559 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12560 enable_frame_pointer=no
12561 ;;
12562 *)
12563 enable_frame_pointer=yes
12564 ;;
12565 esac
12566
12567 fi
12568
12569
12570 case $target in
12571 i[34567]86-*-* | x86_64-*-*)
12572 if test "x$enable_cld" = xyes; then
12573 tm_defines="${tm_defines} USE_IX86_CLD=1"
12574 fi
12575 if test "x$enable_frame_pointer" = xyes; then
12576 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
12577 fi
12578 ;;
12579 esac
12580
12581 # Windows32 Registry support for specifying GCC installation paths.
12582 # Check whether --enable-win32-registry was given.
12583 if test "${enable_win32_registry+set}" = set; then :
12584 enableval=$enable_win32_registry;
12585 fi
12586
12587
12588 case $host_os in
12589 win32 | pe | cygwin* | mingw32*)
12590 if test "x$enable_win32_registry" != xno; then
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12592 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12593 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12594 $as_echo_n "(cached) " >&6
12595 else
12596 ac_func_search_save_LIBS=$LIBS
12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12599
12600 /* Override any GCC internal prototype to avoid an error.
12601 Use char because int might match the return type of a GCC
12602 builtin and then its argument prototype would still apply. */
12603 #ifdef __cplusplus
12604 extern "C"
12605 #endif
12606 char RegOpenKeyExA ();
12607 int
12608 main ()
12609 {
12610 return RegOpenKeyExA ();
12611 ;
12612 return 0;
12613 }
12614 _ACEOF
12615 for ac_lib in '' advapi32; do
12616 if test -z "$ac_lib"; then
12617 ac_res="none required"
12618 else
12619 ac_res=-l$ac_lib
12620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12621 fi
12622 if ac_fn_cxx_try_link "$LINENO"; then :
12623 ac_cv_search_RegOpenKeyExA=$ac_res
12624 fi
12625 rm -f core conftest.err conftest.$ac_objext \
12626 conftest$ac_exeext
12627 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12628 break
12629 fi
12630 done
12631 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12632
12633 else
12634 ac_cv_search_RegOpenKeyExA=no
12635 fi
12636 rm conftest.$ac_ext
12637 LIBS=$ac_func_search_save_LIBS
12638 fi
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12640 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12641 ac_res=$ac_cv_search_RegOpenKeyExA
12642 if test "$ac_res" != no; then :
12643 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12644
12645 else
12646 enable_win32_registry=no
12647 fi
12648
12649 fi
12650
12651 if test "x$enable_win32_registry" != xno; then
12652
12653 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12654
12655
12656 if test "x$enable_win32_registry" != xyes \
12657 && test "x$enable_win32_registry" != x; then
12658
12659 cat >>confdefs.h <<_ACEOF
12660 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12661 _ACEOF
12662
12663 fi
12664 fi
12665 ;;
12666 esac
12667
12668 # Get an absolute path to the GCC top-level source directory
12669 holddir=`${PWDCMD-pwd}`
12670 cd $srcdir
12671 topdir=`${PWDCMD-pwd}`
12672 cd $holddir
12673
12674 # Conditionalize the makefile for this host machine.
12675 xmake_file=
12676 for f in ${host_xmake_file}
12677 do
12678 if test -f ${srcdir}/config/$f
12679 then
12680 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12681 fi
12682 done
12683
12684 # Conditionalize the makefile for this target machine.
12685 tmake_file_=
12686 for f in ${tmake_file}
12687 do
12688 if test -f ${srcdir}/config/$f
12689 then
12690 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12691 fi
12692 done
12693 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
12694
12695 out_object_file=`basename $out_file .c`.o
12696 common_out_object_file=`basename $common_out_file .c`.o
12697
12698 tm_file_list="options.h"
12699 tm_include_list="options.h insn-constants.h"
12700 for f in $tm_file; do
12701 case $f in
12702 ./* )
12703 f=`echo $f | sed 's/^..//'`
12704 tm_file_list="${tm_file_list} $f"
12705 tm_include_list="${tm_include_list} $f"
12706 ;;
12707 defaults.h )
12708 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12709 tm_include_list="${tm_include_list} $f"
12710 ;;
12711 * )
12712 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12713 tm_include_list="${tm_include_list} config/$f"
12714 ;;
12715 esac
12716 done
12717
12718 tm_p_file_list=
12719 tm_p_include_list=
12720 for f in $tm_p_file; do
12721 case $f in
12722 tm-preds.h )
12723 tm_p_file_list="${tm_p_file_list} $f"
12724 tm_p_include_list="${tm_p_include_list} $f"
12725 ;;
12726 * )
12727 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12728 tm_p_include_list="${tm_p_include_list} config/$f"
12729 esac
12730 done
12731
12732 tm_d_file_list=
12733 tm_d_include_list="options.h insn-constants.h"
12734 for f in $tm_d_file; do
12735 case $f in
12736 defaults.h )
12737 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12738 tm_d_include_list="${tm_d_include_list} $f"
12739 ;;
12740 * )
12741 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12742 tm_d_include_list="${tm_d_include_list} config/$f"
12743 ;;
12744 esac
12745 done
12746
12747 xm_file_list=
12748 xm_include_list=
12749 for f in $xm_file; do
12750 case $f in
12751 ansidecl.h )
12752 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12753 xm_include_list="${xm_include_list} $f"
12754 ;;
12755 auto-host.h )
12756 xm_file_list="${xm_file_list} $f"
12757 xm_include_list="${xm_include_list} $f"
12758 ;;
12759 * )
12760 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12761 xm_include_list="${xm_include_list} config/$f"
12762 ;;
12763 esac
12764 done
12765
12766 host_xm_file_list=
12767 host_xm_include_list=
12768 for f in $host_xm_file; do
12769 case $f in
12770 ansidecl.h )
12771 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12772 host_xm_include_list="${host_xm_include_list} $f"
12773 ;;
12774 auto-host.h )
12775 host_xm_file_list="${host_xm_file_list} $f"
12776 host_xm_include_list="${host_xm_include_list} $f"
12777 ;;
12778 * )
12779 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12780 host_xm_include_list="${host_xm_include_list} config/$f"
12781 ;;
12782 esac
12783 done
12784
12785 build_xm_file_list=
12786 for f in $build_xm_file; do
12787 case $f in
12788 ansidecl.h )
12789 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12790 build_xm_include_list="${build_xm_include_list} $f"
12791 ;;
12792 auto-build.h | auto-host.h )
12793 build_xm_file_list="${build_xm_file_list} $f"
12794 build_xm_include_list="${build_xm_include_list} $f"
12795 ;;
12796 * )
12797 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12798 build_xm_include_list="${build_xm_include_list} config/$f"
12799 ;;
12800 esac
12801 done
12802
12803 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12804 # cross-compiler which does not use the native headers and libraries.
12805 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12806 CROSS=
12807 ALL=all.internal
12808 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12809 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12810
12811 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12812 test x$build != x$host || test "x$with_build_sysroot" != x; then
12813 if test "x$with_build_sysroot" != x; then
12814 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12815 else
12816 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12817 fi
12818
12819 if test x$host != x$target
12820 then
12821 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12822 ALL=all.cross
12823 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12824 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12825 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12826 fi
12827
12828 if test "x$with_build_sysroot" != "x"; then
12829 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12830 elif test "x$with_sysroot" = x; then
12831 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12832 elif test "x$with_sysroot" = xyes; then
12833 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12834 else
12835 target_header_dir="${with_sysroot}${native_system_header_dir}"
12836 fi
12837 else
12838 target_header_dir=${native_system_header_dir}
12839 fi
12840
12841 # If this is a cross-compiler that does not
12842 # have its own set of headers then define
12843 # inhibit_libc
12844
12845 # If this is using newlib, without having the headers available now,
12846 # then define inhibit_libc in LIBGCC2_CFLAGS.
12847 # This prevents libgcc2 from containing any code which requires libc
12848 # support.
12849 : ${inhibit_libc=false}
12850 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12851 test x$with_newlib = xyes ; } &&
12852 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12853 inhibit_libc=true
12854 fi
12855
12856
12857 # When building gcc with a cross-compiler, we need to adjust things so
12858 # that the generator programs are still built with the native compiler.
12859 # Also, we cannot run fixincludes.
12860
12861 # These are the normal (build=host) settings:
12862 CC_FOR_BUILD='$(CC)'
12863 CXX_FOR_BUILD='$(CXX)'
12864 BUILD_CFLAGS='$(ALL_CFLAGS)'
12865 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12866 BUILD_LDFLAGS='$(LDFLAGS)'
12867 STMP_FIXINC=stmp-fixinc
12868
12869 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12870 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12871
12872 # And these apply if build != host, or we are generating coverage data
12873 if test x$build != x$host || test "x$coverage_flags" != x
12874 then
12875 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12876 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12877 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12878
12879 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12880 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12881 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12882 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12883 fi
12884
12885
12886
12887 # Expand extra_headers to include complete path.
12888 # This substitutes for lots of t-* files.
12889 extra_headers_list=
12890 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12891 for file in ${extra_headers} ; do
12892 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12893 done
12894
12895 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12896 if test x"$use_gcc_tgmath" = xyes
12897 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12898 fi
12899
12900 # Define collect2 in Makefile.
12901 case $host_can_use_collect2 in
12902 no) collect2= ;;
12903 *) collect2='collect2$(exeext)' ;;
12904 esac
12905
12906
12907 # Add a definition of USE_COLLECT2 if system wants one.
12908 case $use_collect2 in
12909 no) use_collect2= ;;
12910 "") ;;
12911 *)
12912 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12913 xm_defines="${xm_defines} USE_COLLECT2"
12914 case $host_can_use_collect2 in
12915 no)
12916 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12917 ;;
12918 esac
12919 ;;
12920 esac
12921
12922
12923 cat >>confdefs.h <<_ACEOF
12924 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12925 _ACEOF
12926
12927
12928 # ---------------------------
12929 # Assembler & linker features
12930 # ---------------------------
12931
12932 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12933 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12934 # However when ld-new is first executed from the build tree, libtool will
12935 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12936 # to the build tree. While doing this we need to use the previous-stage
12937 # linker, or we have an infinite loop. The presence of a shell script as
12938 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12939 # the gcc/collect-ld script. So we need to know how libtool works, or
12940 # exec-tool will fail.
12941
12942
12943 case `pwd` in
12944 *\ * | *\ *)
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12946 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12947 esac
12948
12949
12950
12951 macro_version='2.2.7a'
12952 macro_revision='1.3134'
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966 ltmain="$ac_aux_dir/ltmain.sh"
12967
12968 # Backslashify metacharacters that are still active within
12969 # double-quoted strings.
12970 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12971
12972 # Same as above, but do not quote variable references.
12973 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12974
12975 # Sed substitution to delay expansion of an escaped shell variable in a
12976 # double_quote_subst'ed string.
12977 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12978
12979 # Sed substitution to delay expansion of an escaped single quote.
12980 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12981
12982 # Sed substitution to avoid accidental globbing in evaled expressions
12983 no_glob_subst='s/\*/\\\*/g'
12984
12985 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12986 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12987 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12988
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12990 $as_echo_n "checking how to print strings... " >&6; }
12991 # Test print first, because it will be a builtin if present.
12992 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12993 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12994 ECHO='print -r --'
12995 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12996 ECHO='printf %s\n'
12997 else
12998 # Use this function as a fallback that always works.
12999 func_fallback_echo ()
13000 {
13001 eval 'cat <<_LTECHO_EOF
13002 $1
13003 _LTECHO_EOF'
13004 }
13005 ECHO='func_fallback_echo'
13006 fi
13007
13008 # func_echo_all arg...
13009 # Invoke $ECHO with all args, space-separated.
13010 func_echo_all ()
13011 {
13012 $ECHO ""
13013 }
13014
13015 case "$ECHO" in
13016 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13017 $as_echo "printf" >&6; } ;;
13018 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13019 $as_echo "print -r" >&6; } ;;
13020 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13021 $as_echo "cat" >&6; } ;;
13022 esac
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13038 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13039 if ${ac_cv_path_SED+:} false; then :
13040 $as_echo_n "(cached) " >&6
13041 else
13042 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13043 for ac_i in 1 2 3 4 5 6 7; do
13044 ac_script="$ac_script$as_nl$ac_script"
13045 done
13046 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13047 { ac_script=; unset ac_script;}
13048 if test -z "$SED"; then
13049 ac_path_SED_found=false
13050 # Loop through the user's path and test for each of PROGNAME-LIST
13051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052 for as_dir in $PATH
13053 do
13054 IFS=$as_save_IFS
13055 test -z "$as_dir" && as_dir=.
13056 for ac_prog in sed gsed; do
13057 for ac_exec_ext in '' $ac_executable_extensions; do
13058 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13059 as_fn_executable_p "$ac_path_SED" || continue
13060 # Check for GNU ac_path_SED and select it if it is found.
13061 # Check for GNU $ac_path_SED
13062 case `"$ac_path_SED" --version 2>&1` in
13063 *GNU*)
13064 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13065 *)
13066 ac_count=0
13067 $as_echo_n 0123456789 >"conftest.in"
13068 while :
13069 do
13070 cat "conftest.in" "conftest.in" >"conftest.tmp"
13071 mv "conftest.tmp" "conftest.in"
13072 cp "conftest.in" "conftest.nl"
13073 $as_echo '' >> "conftest.nl"
13074 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13076 as_fn_arith $ac_count + 1 && ac_count=$as_val
13077 if test $ac_count -gt ${ac_path_SED_max-0}; then
13078 # Best one so far, save it but keep looking for a better one
13079 ac_cv_path_SED="$ac_path_SED"
13080 ac_path_SED_max=$ac_count
13081 fi
13082 # 10*(2^10) chars as input seems more than enough
13083 test $ac_count -gt 10 && break
13084 done
13085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13086 esac
13087
13088 $ac_path_SED_found && break 3
13089 done
13090 done
13091 done
13092 IFS=$as_save_IFS
13093 if test -z "$ac_cv_path_SED"; then
13094 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13095 fi
13096 else
13097 ac_cv_path_SED=$SED
13098 fi
13099
13100 fi
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13102 $as_echo "$ac_cv_path_SED" >&6; }
13103 SED="$ac_cv_path_SED"
13104 rm -f conftest.sed
13105
13106 test -z "$SED" && SED=sed
13107 Xsed="$SED -e 1s/^X//"
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13120 $as_echo_n "checking for fgrep... " >&6; }
13121 if ${ac_cv_path_FGREP+:} false; then :
13122 $as_echo_n "(cached) " >&6
13123 else
13124 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13125 then ac_cv_path_FGREP="$GREP -F"
13126 else
13127 if test -z "$FGREP"; then
13128 ac_path_FGREP_found=false
13129 # Loop through the user's path and test for each of PROGNAME-LIST
13130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13131 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13132 do
13133 IFS=$as_save_IFS
13134 test -z "$as_dir" && as_dir=.
13135 for ac_prog in fgrep; do
13136 for ac_exec_ext in '' $ac_executable_extensions; do
13137 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13138 as_fn_executable_p "$ac_path_FGREP" || continue
13139 # Check for GNU ac_path_FGREP and select it if it is found.
13140 # Check for GNU $ac_path_FGREP
13141 case `"$ac_path_FGREP" --version 2>&1` in
13142 *GNU*)
13143 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13144 *)
13145 ac_count=0
13146 $as_echo_n 0123456789 >"conftest.in"
13147 while :
13148 do
13149 cat "conftest.in" "conftest.in" >"conftest.tmp"
13150 mv "conftest.tmp" "conftest.in"
13151 cp "conftest.in" "conftest.nl"
13152 $as_echo 'FGREP' >> "conftest.nl"
13153 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13155 as_fn_arith $ac_count + 1 && ac_count=$as_val
13156 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13157 # Best one so far, save it but keep looking for a better one
13158 ac_cv_path_FGREP="$ac_path_FGREP"
13159 ac_path_FGREP_max=$ac_count
13160 fi
13161 # 10*(2^10) chars as input seems more than enough
13162 test $ac_count -gt 10 && break
13163 done
13164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13165 esac
13166
13167 $ac_path_FGREP_found && break 3
13168 done
13169 done
13170 done
13171 IFS=$as_save_IFS
13172 if test -z "$ac_cv_path_FGREP"; then
13173 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13174 fi
13175 else
13176 ac_cv_path_FGREP=$FGREP
13177 fi
13178
13179 fi
13180 fi
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13182 $as_echo "$ac_cv_path_FGREP" >&6; }
13183 FGREP="$ac_cv_path_FGREP"
13184
13185
13186 test -z "$GREP" && GREP=grep
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206 # Check whether --with-gnu-ld was given.
13207 if test "${with_gnu_ld+set}" = set; then :
13208 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13209 else
13210 with_gnu_ld=no
13211 fi
13212
13213 ac_prog=ld
13214 if test "$GCC" = yes; then
13215 # Check if gcc -print-prog-name=ld gives a path.
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13217 $as_echo_n "checking for ld used by $CC... " >&6; }
13218 case $host in
13219 *-*-mingw*)
13220 # gcc leaves a trailing carriage return which upsets mingw
13221 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13222 *)
13223 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13224 esac
13225 case $ac_prog in
13226 # Accept absolute paths.
13227 [\\/]* | ?:[\\/]*)
13228 re_direlt='/[^/][^/]*/\.\./'
13229 # Canonicalize the pathname of ld
13230 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13231 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13232 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13233 done
13234 test -z "$LD" && LD="$ac_prog"
13235 ;;
13236 "")
13237 # If it fails, then pretend we aren't using GCC.
13238 ac_prog=ld
13239 ;;
13240 *)
13241 # If it is relative, then search for the first ld in PATH.
13242 with_gnu_ld=unknown
13243 ;;
13244 esac
13245 elif test "$with_gnu_ld" = yes; then
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13247 $as_echo_n "checking for GNU ld... " >&6; }
13248 else
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13250 $as_echo_n "checking for non-GNU ld... " >&6; }
13251 fi
13252 if ${lt_cv_path_LD+:} false; then :
13253 $as_echo_n "(cached) " >&6
13254 else
13255 if test -z "$LD"; then
13256 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13257 for ac_dir in $PATH; do
13258 IFS="$lt_save_ifs"
13259 test -z "$ac_dir" && ac_dir=.
13260 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13261 lt_cv_path_LD="$ac_dir/$ac_prog"
13262 # Check to see if the program is GNU ld. I'd rather use --version,
13263 # but apparently some variants of GNU ld only accept -v.
13264 # Break only if it was the GNU/non-GNU ld that we prefer.
13265 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13266 *GNU* | *'with BFD'*)
13267 test "$with_gnu_ld" != no && break
13268 ;;
13269 *)
13270 test "$with_gnu_ld" != yes && break
13271 ;;
13272 esac
13273 fi
13274 done
13275 IFS="$lt_save_ifs"
13276 else
13277 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13278 fi
13279 fi
13280
13281 LD="$lt_cv_path_LD"
13282 if test -n "$LD"; then
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13284 $as_echo "$LD" >&6; }
13285 else
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13287 $as_echo "no" >&6; }
13288 fi
13289 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13291 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13292 if ${lt_cv_prog_gnu_ld+:} false; then :
13293 $as_echo_n "(cached) " >&6
13294 else
13295 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13296 case `$LD -v 2>&1 </dev/null` in
13297 *GNU* | *'with BFD'*)
13298 lt_cv_prog_gnu_ld=yes
13299 ;;
13300 *)
13301 lt_cv_prog_gnu_ld=no
13302 ;;
13303 esac
13304 fi
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13306 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13307 with_gnu_ld=$lt_cv_prog_gnu_ld
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13318 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13319 if ${lt_cv_path_NM+:} false; then :
13320 $as_echo_n "(cached) " >&6
13321 else
13322 if test -n "$NM"; then
13323 # Let the user override the test.
13324 lt_cv_path_NM="$NM"
13325 else
13326 lt_nm_to_check="${ac_tool_prefix}nm"
13327 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13328 lt_nm_to_check="$lt_nm_to_check nm"
13329 fi
13330 for lt_tmp_nm in $lt_nm_to_check; do
13331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13332 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13333 IFS="$lt_save_ifs"
13334 test -z "$ac_dir" && ac_dir=.
13335 tmp_nm="$ac_dir/$lt_tmp_nm"
13336 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13337 # Check to see if the nm accepts a BSD-compat flag.
13338 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13339 # nm: unknown option "B" ignored
13340 # Tru64's nm complains that /dev/null is an invalid object file
13341 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13342 */dev/null* | *'Invalid file or object type'*)
13343 lt_cv_path_NM="$tmp_nm -B"
13344 break
13345 ;;
13346 *)
13347 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13348 */dev/null*)
13349 lt_cv_path_NM="$tmp_nm -p"
13350 break
13351 ;;
13352 *)
13353 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13354 continue # so that we can try to find one that supports BSD flags
13355 ;;
13356 esac
13357 ;;
13358 esac
13359 fi
13360 done
13361 IFS="$lt_save_ifs"
13362 done
13363 : ${lt_cv_path_NM=no}
13364 fi
13365 fi
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13367 $as_echo "$lt_cv_path_NM" >&6; }
13368 if test "$lt_cv_path_NM" != "no"; then
13369 NM="$lt_cv_path_NM"
13370 else
13371 # Didn't find any BSD compatible name lister, look for dumpbin.
13372 if test -n "$DUMPBIN"; then :
13373 # Let the user override the test.
13374 else
13375 if test -n "$ac_tool_prefix"; then
13376 for ac_prog in dumpbin "link -dump"
13377 do
13378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13381 $as_echo_n "checking for $ac_word... " >&6; }
13382 if ${ac_cv_prog_DUMPBIN+:} false; then :
13383 $as_echo_n "(cached) " >&6
13384 else
13385 if test -n "$DUMPBIN"; then
13386 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13387 else
13388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13389 for as_dir in $PATH
13390 do
13391 IFS=$as_save_IFS
13392 test -z "$as_dir" && as_dir=.
13393 for ac_exec_ext in '' $ac_executable_extensions; do
13394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13395 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13397 break 2
13398 fi
13399 done
13400 done
13401 IFS=$as_save_IFS
13402
13403 fi
13404 fi
13405 DUMPBIN=$ac_cv_prog_DUMPBIN
13406 if test -n "$DUMPBIN"; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13408 $as_echo "$DUMPBIN" >&6; }
13409 else
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411 $as_echo "no" >&6; }
13412 fi
13413
13414
13415 test -n "$DUMPBIN" && break
13416 done
13417 fi
13418 if test -z "$DUMPBIN"; then
13419 ac_ct_DUMPBIN=$DUMPBIN
13420 for ac_prog in dumpbin "link -dump"
13421 do
13422 # Extract the first word of "$ac_prog", so it can be a program name with args.
13423 set dummy $ac_prog; ac_word=$2
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13425 $as_echo_n "checking for $ac_word... " >&6; }
13426 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13427 $as_echo_n "(cached) " >&6
13428 else
13429 if test -n "$ac_ct_DUMPBIN"; then
13430 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13431 else
13432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13433 for as_dir in $PATH
13434 do
13435 IFS=$as_save_IFS
13436 test -z "$as_dir" && as_dir=.
13437 for ac_exec_ext in '' $ac_executable_extensions; do
13438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13439 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13441 break 2
13442 fi
13443 done
13444 done
13445 IFS=$as_save_IFS
13446
13447 fi
13448 fi
13449 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13450 if test -n "$ac_ct_DUMPBIN"; then
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13452 $as_echo "$ac_ct_DUMPBIN" >&6; }
13453 else
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13455 $as_echo "no" >&6; }
13456 fi
13457
13458
13459 test -n "$ac_ct_DUMPBIN" && break
13460 done
13461
13462 if test "x$ac_ct_DUMPBIN" = x; then
13463 DUMPBIN=":"
13464 else
13465 case $cross_compiling:$ac_tool_warned in
13466 yes:)
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13469 ac_tool_warned=yes ;;
13470 esac
13471 DUMPBIN=$ac_ct_DUMPBIN
13472 fi
13473 fi
13474
13475 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13476 *COFF*)
13477 DUMPBIN="$DUMPBIN -symbols"
13478 ;;
13479 *)
13480 DUMPBIN=:
13481 ;;
13482 esac
13483 fi
13484
13485 if test "$DUMPBIN" != ":"; then
13486 NM="$DUMPBIN"
13487 fi
13488 fi
13489 test -z "$NM" && NM=nm
13490
13491
13492
13493
13494
13495
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13497 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13498 if ${lt_cv_nm_interface+:} false; then :
13499 $as_echo_n "(cached) " >&6
13500 else
13501 lt_cv_nm_interface="BSD nm"
13502 echo "int some_variable = 0;" > conftest.$ac_ext
13503 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13504 (eval "$ac_compile" 2>conftest.err)
13505 cat conftest.err >&5
13506 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13507 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13508 cat conftest.err >&5
13509 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13510 cat conftest.out >&5
13511 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13512 lt_cv_nm_interface="MS dumpbin"
13513 fi
13514 rm -f conftest*
13515 fi
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13517 $as_echo "$lt_cv_nm_interface" >&6; }
13518
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13520 $as_echo_n "checking whether ln -s works... " >&6; }
13521 LN_S=$as_ln_s
13522 if test "$LN_S" = "ln -s"; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13524 $as_echo "yes" >&6; }
13525 else
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13527 $as_echo "no, using $LN_S" >&6; }
13528 fi
13529
13530 # find the maximum length of command line arguments
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13532 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13533 if ${lt_cv_sys_max_cmd_len+:} false; then :
13534 $as_echo_n "(cached) " >&6
13535 else
13536 i=0
13537 teststring="ABCD"
13538
13539 case $build_os in
13540 msdosdjgpp*)
13541 # On DJGPP, this test can blow up pretty badly due to problems in libc
13542 # (any single argument exceeding 2000 bytes causes a buffer overrun
13543 # during glob expansion). Even if it were fixed, the result of this
13544 # check would be larger than it should be.
13545 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13546 ;;
13547
13548 gnu*)
13549 # Under GNU Hurd, this test is not required because there is
13550 # no limit to the length of command line arguments.
13551 # Libtool will interpret -1 as no limit whatsoever
13552 lt_cv_sys_max_cmd_len=-1;
13553 ;;
13554
13555 cygwin* | mingw* | cegcc*)
13556 # On Win9x/ME, this test blows up -- it succeeds, but takes
13557 # about 5 minutes as the teststring grows exponentially.
13558 # Worse, since 9x/ME are not pre-emptively multitasking,
13559 # you end up with a "frozen" computer, even though with patience
13560 # the test eventually succeeds (with a max line length of 256k).
13561 # Instead, let's just punt: use the minimum linelength reported by
13562 # all of the supported platforms: 8192 (on NT/2K/XP).
13563 lt_cv_sys_max_cmd_len=8192;
13564 ;;
13565
13566 mint*)
13567 # On MiNT this can take a long time and run out of memory.
13568 lt_cv_sys_max_cmd_len=8192;
13569 ;;
13570
13571 amigaos*)
13572 # On AmigaOS with pdksh, this test takes hours, literally.
13573 # So we just punt and use a minimum line length of 8192.
13574 lt_cv_sys_max_cmd_len=8192;
13575 ;;
13576
13577 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13578 # This has been around since 386BSD, at least. Likely further.
13579 if test -x /sbin/sysctl; then
13580 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13581 elif test -x /usr/sbin/sysctl; then
13582 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13583 else
13584 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13585 fi
13586 # And add a safety zone
13587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13589 ;;
13590
13591 interix*)
13592 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13593 lt_cv_sys_max_cmd_len=196608
13594 ;;
13595
13596 osf*)
13597 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13598 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13599 # nice to cause kernel panics so lets avoid the loop below.
13600 # First set a reasonable default.
13601 lt_cv_sys_max_cmd_len=16384
13602 #
13603 if test -x /sbin/sysconfig; then
13604 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13605 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13606 esac
13607 fi
13608 ;;
13609 sco3.2v5*)
13610 lt_cv_sys_max_cmd_len=102400
13611 ;;
13612 sysv5* | sco5v6* | sysv4.2uw2*)
13613 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13614 if test -n "$kargmax"; then
13615 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13616 else
13617 lt_cv_sys_max_cmd_len=32768
13618 fi
13619 ;;
13620 *)
13621 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13622 if test -n "$lt_cv_sys_max_cmd_len"; then
13623 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13625 else
13626 # Make teststring a little bigger before we do anything with it.
13627 # a 1K string should be a reasonable start.
13628 for i in 1 2 3 4 5 6 7 8 ; do
13629 teststring=$teststring$teststring
13630 done
13631 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13632 # If test is not a shell built-in, we'll probably end up computing a
13633 # maximum length that is only half of the actual maximum length, but
13634 # we can't tell.
13635 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13636 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13637 test $i != 17 # 1/2 MB should be enough
13638 do
13639 i=`expr $i + 1`
13640 teststring=$teststring$teststring
13641 done
13642 # Only check the string length outside the loop.
13643 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13644 teststring=
13645 # Add a significant safety factor because C++ compilers can tack on
13646 # massive amounts of additional arguments before passing them to the
13647 # linker. It appears as though 1/2 is a usable value.
13648 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13649 fi
13650 ;;
13651 esac
13652
13653 fi
13654
13655 if test -n $lt_cv_sys_max_cmd_len ; then
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13657 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13658 else
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13660 $as_echo "none" >&6; }
13661 fi
13662 max_cmd_len=$lt_cv_sys_max_cmd_len
13663
13664
13665
13666
13667
13668
13669 : ${CP="cp -f"}
13670 : ${MV="mv -f"}
13671 : ${RM="rm -f"}
13672
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13674 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13675 # Try some XSI features
13676 xsi_shell=no
13677 ( _lt_dummy="a/b/c"
13678 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13679 = c,a/b,, \
13680 && eval 'test $(( 1 + 1 )) -eq 2 \
13681 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13682 && xsi_shell=yes
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13684 $as_echo "$xsi_shell" >&6; }
13685
13686
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13688 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13689 lt_shell_append=no
13690 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13691 >/dev/null 2>&1 \
13692 && lt_shell_append=yes
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13694 $as_echo "$lt_shell_append" >&6; }
13695
13696
13697 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13698 lt_unset=unset
13699 else
13700 lt_unset=false
13701 fi
13702
13703
13704
13705
13706
13707 # test EBCDIC or ASCII
13708 case `echo X|tr X '\101'` in
13709 A) # ASCII based system
13710 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13711 lt_SP2NL='tr \040 \012'
13712 lt_NL2SP='tr \015\012 \040\040'
13713 ;;
13714 *) # EBCDIC based system
13715 lt_SP2NL='tr \100 \n'
13716 lt_NL2SP='tr \r\n \100\100'
13717 ;;
13718 esac
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13729 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13730 if ${lt_cv_ld_reload_flag+:} false; then :
13731 $as_echo_n "(cached) " >&6
13732 else
13733 lt_cv_ld_reload_flag='-r'
13734 fi
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13736 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13737 reload_flag=$lt_cv_ld_reload_flag
13738 case $reload_flag in
13739 "" | " "*) ;;
13740 *) reload_flag=" $reload_flag" ;;
13741 esac
13742 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13743 case $host_os in
13744 darwin*)
13745 if test "$GCC" = yes; then
13746 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13747 else
13748 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13749 fi
13750 ;;
13751 esac
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761 if test -n "$ac_tool_prefix"; then
13762 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13763 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13765 $as_echo_n "checking for $ac_word... " >&6; }
13766 if ${ac_cv_prog_OBJDUMP+:} false; then :
13767 $as_echo_n "(cached) " >&6
13768 else
13769 if test -n "$OBJDUMP"; then
13770 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13771 else
13772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13773 for as_dir in $PATH
13774 do
13775 IFS=$as_save_IFS
13776 test -z "$as_dir" && as_dir=.
13777 for ac_exec_ext in '' $ac_executable_extensions; do
13778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13779 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13781 break 2
13782 fi
13783 done
13784 done
13785 IFS=$as_save_IFS
13786
13787 fi
13788 fi
13789 OBJDUMP=$ac_cv_prog_OBJDUMP
13790 if test -n "$OBJDUMP"; then
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13792 $as_echo "$OBJDUMP" >&6; }
13793 else
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13795 $as_echo "no" >&6; }
13796 fi
13797
13798
13799 fi
13800 if test -z "$ac_cv_prog_OBJDUMP"; then
13801 ac_ct_OBJDUMP=$OBJDUMP
13802 # Extract the first word of "objdump", so it can be a program name with args.
13803 set dummy objdump; ac_word=$2
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13805 $as_echo_n "checking for $ac_word... " >&6; }
13806 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13807 $as_echo_n "(cached) " >&6
13808 else
13809 if test -n "$ac_ct_OBJDUMP"; then
13810 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13811 else
13812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813 for as_dir in $PATH
13814 do
13815 IFS=$as_save_IFS
13816 test -z "$as_dir" && as_dir=.
13817 for ac_exec_ext in '' $ac_executable_extensions; do
13818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13819 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13821 break 2
13822 fi
13823 done
13824 done
13825 IFS=$as_save_IFS
13826
13827 fi
13828 fi
13829 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13830 if test -n "$ac_ct_OBJDUMP"; then
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13832 $as_echo "$ac_ct_OBJDUMP" >&6; }
13833 else
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13835 $as_echo "no" >&6; }
13836 fi
13837
13838 if test "x$ac_ct_OBJDUMP" = x; then
13839 OBJDUMP="false"
13840 else
13841 case $cross_compiling:$ac_tool_warned in
13842 yes:)
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13845 ac_tool_warned=yes ;;
13846 esac
13847 OBJDUMP=$ac_ct_OBJDUMP
13848 fi
13849 else
13850 OBJDUMP="$ac_cv_prog_OBJDUMP"
13851 fi
13852
13853 test -z "$OBJDUMP" && OBJDUMP=objdump
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13864 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13865 if ${lt_cv_deplibs_check_method+:} false; then :
13866 $as_echo_n "(cached) " >&6
13867 else
13868 lt_cv_file_magic_cmd='$MAGIC_CMD'
13869 lt_cv_file_magic_test_file=
13870 lt_cv_deplibs_check_method='unknown'
13871 # Need to set the preceding variable on all platforms that support
13872 # interlibrary dependencies.
13873 # 'none' -- dependencies not supported.
13874 # `unknown' -- same as none, but documents that we really don't know.
13875 # 'pass_all' -- all dependencies passed with no checks.
13876 # 'test_compile' -- check by making test program.
13877 # 'file_magic [[regex]]' -- check by looking for files in library path
13878 # which responds to the $file_magic_cmd with a given extended regex.
13879 # If you have `file' or equivalent on your system and you're not sure
13880 # whether `pass_all' will *always* work, you probably want this one.
13881
13882 case $host_os in
13883 aix[4-9]*)
13884 lt_cv_deplibs_check_method=pass_all
13885 ;;
13886
13887 beos*)
13888 lt_cv_deplibs_check_method=pass_all
13889 ;;
13890
13891 bsdi[45]*)
13892 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13893 lt_cv_file_magic_cmd='/usr/bin/file -L'
13894 lt_cv_file_magic_test_file=/shlib/libc.so
13895 ;;
13896
13897 cygwin*)
13898 # func_win32_libid is a shell function defined in ltmain.sh
13899 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13900 lt_cv_file_magic_cmd='func_win32_libid'
13901 ;;
13902
13903 mingw* | pw32*)
13904 # Base MSYS/MinGW do not provide the 'file' command needed by
13905 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13906 # unless we find 'file', for example because we are cross-compiling.
13907 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13908 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13909 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13910 lt_cv_file_magic_cmd='func_win32_libid'
13911 else
13912 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13913 lt_cv_file_magic_cmd='$OBJDUMP -f'
13914 fi
13915 ;;
13916
13917 cegcc*)
13918 # use the weaker test based on 'objdump'. See mingw*.
13919 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13920 lt_cv_file_magic_cmd='$OBJDUMP -f'
13921 ;;
13922
13923 darwin* | rhapsody*)
13924 lt_cv_deplibs_check_method=pass_all
13925 ;;
13926
13927 freebsd* | dragonfly*)
13928 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13929 case $host_cpu in
13930 i*86 )
13931 # Not sure whether the presence of OpenBSD here was a mistake.
13932 # Let's accept both of them until this is cleared up.
13933 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13934 lt_cv_file_magic_cmd=/usr/bin/file
13935 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13936 ;;
13937 esac
13938 else
13939 lt_cv_deplibs_check_method=pass_all
13940 fi
13941 ;;
13942
13943 gnu*)
13944 lt_cv_deplibs_check_method=pass_all
13945 ;;
13946
13947 haiku*)
13948 lt_cv_deplibs_check_method=pass_all
13949 ;;
13950
13951 hpux10.20* | hpux11*)
13952 lt_cv_file_magic_cmd=/usr/bin/file
13953 case $host_cpu in
13954 ia64*)
13955 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13956 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13957 ;;
13958 hppa*64*)
13959 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]'
13960 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13961 ;;
13962 *)
13963 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13964 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13965 ;;
13966 esac
13967 ;;
13968
13969 interix[3-9]*)
13970 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13972 ;;
13973
13974 irix5* | irix6* | nonstopux*)
13975 case $LD in
13976 *-32|*"-32 ") libmagic=32-bit;;
13977 *-n32|*"-n32 ") libmagic=N32;;
13978 *-64|*"-64 ") libmagic=64-bit;;
13979 *) libmagic=never-match;;
13980 esac
13981 lt_cv_deplibs_check_method=pass_all
13982 ;;
13983
13984 # This must be Linux ELF.
13985 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13986 lt_cv_deplibs_check_method=pass_all
13987 ;;
13988
13989 netbsd*)
13990 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13992 else
13993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13994 fi
13995 ;;
13996
13997 newos6*)
13998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13999 lt_cv_file_magic_cmd=/usr/bin/file
14000 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14001 ;;
14002
14003 *nto* | *qnx*)
14004 lt_cv_deplibs_check_method=pass_all
14005 ;;
14006
14007 openbsd*)
14008 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14010 else
14011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14012 fi
14013 ;;
14014
14015 osf3* | osf4* | osf5*)
14016 lt_cv_deplibs_check_method=pass_all
14017 ;;
14018
14019 rdos*)
14020 lt_cv_deplibs_check_method=pass_all
14021 ;;
14022
14023 solaris*)
14024 lt_cv_deplibs_check_method=pass_all
14025 ;;
14026
14027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14028 lt_cv_deplibs_check_method=pass_all
14029 ;;
14030
14031 sysv4 | sysv4.3*)
14032 case $host_vendor in
14033 motorola)
14034 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]'
14035 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14036 ;;
14037 ncr)
14038 lt_cv_deplibs_check_method=pass_all
14039 ;;
14040 sequent)
14041 lt_cv_file_magic_cmd='/bin/file'
14042 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14043 ;;
14044 sni)
14045 lt_cv_file_magic_cmd='/bin/file'
14046 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14047 lt_cv_file_magic_test_file=/lib/libc.so
14048 ;;
14049 siemens)
14050 lt_cv_deplibs_check_method=pass_all
14051 ;;
14052 pc)
14053 lt_cv_deplibs_check_method=pass_all
14054 ;;
14055 esac
14056 ;;
14057
14058 tpf*)
14059 lt_cv_deplibs_check_method=pass_all
14060 ;;
14061 esac
14062
14063 fi
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14065 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14066 file_magic_cmd=$lt_cv_file_magic_cmd
14067 deplibs_check_method=$lt_cv_deplibs_check_method
14068 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081 if test -n "$ac_tool_prefix"; then
14082 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14083 set dummy ${ac_tool_prefix}ar; ac_word=$2
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14085 $as_echo_n "checking for $ac_word... " >&6; }
14086 if ${ac_cv_prog_AR+:} false; then :
14087 $as_echo_n "(cached) " >&6
14088 else
14089 if test -n "$AR"; then
14090 ac_cv_prog_AR="$AR" # Let the user override the test.
14091 else
14092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14093 for as_dir in $PATH
14094 do
14095 IFS=$as_save_IFS
14096 test -z "$as_dir" && as_dir=.
14097 for ac_exec_ext in '' $ac_executable_extensions; do
14098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14099 ac_cv_prog_AR="${ac_tool_prefix}ar"
14100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14101 break 2
14102 fi
14103 done
14104 done
14105 IFS=$as_save_IFS
14106
14107 fi
14108 fi
14109 AR=$ac_cv_prog_AR
14110 if test -n "$AR"; then
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14112 $as_echo "$AR" >&6; }
14113 else
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14115 $as_echo "no" >&6; }
14116 fi
14117
14118
14119 fi
14120 if test -z "$ac_cv_prog_AR"; then
14121 ac_ct_AR=$AR
14122 # Extract the first word of "ar", so it can be a program name with args.
14123 set dummy ar; ac_word=$2
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14125 $as_echo_n "checking for $ac_word... " >&6; }
14126 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14127 $as_echo_n "(cached) " >&6
14128 else
14129 if test -n "$ac_ct_AR"; then
14130 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14131 else
14132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14133 for as_dir in $PATH
14134 do
14135 IFS=$as_save_IFS
14136 test -z "$as_dir" && as_dir=.
14137 for ac_exec_ext in '' $ac_executable_extensions; do
14138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14139 ac_cv_prog_ac_ct_AR="ar"
14140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14141 break 2
14142 fi
14143 done
14144 done
14145 IFS=$as_save_IFS
14146
14147 fi
14148 fi
14149 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14150 if test -n "$ac_ct_AR"; then
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14152 $as_echo "$ac_ct_AR" >&6; }
14153 else
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14155 $as_echo "no" >&6; }
14156 fi
14157
14158 if test "x$ac_ct_AR" = x; then
14159 AR="false"
14160 else
14161 case $cross_compiling:$ac_tool_warned in
14162 yes:)
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14165 ac_tool_warned=yes ;;
14166 esac
14167 AR=$ac_ct_AR
14168 fi
14169 else
14170 AR="$ac_cv_prog_AR"
14171 fi
14172
14173 test -z "$AR" && AR=ar
14174 test -z "$AR_FLAGS" && AR_FLAGS=cru
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186 if test -n "$ac_tool_prefix"; then
14187 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14188 set dummy ${ac_tool_prefix}strip; ac_word=$2
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14190 $as_echo_n "checking for $ac_word... " >&6; }
14191 if ${ac_cv_prog_STRIP+:} false; then :
14192 $as_echo_n "(cached) " >&6
14193 else
14194 if test -n "$STRIP"; then
14195 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14196 else
14197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198 for as_dir in $PATH
14199 do
14200 IFS=$as_save_IFS
14201 test -z "$as_dir" && as_dir=.
14202 for ac_exec_ext in '' $ac_executable_extensions; do
14203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14204 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14206 break 2
14207 fi
14208 done
14209 done
14210 IFS=$as_save_IFS
14211
14212 fi
14213 fi
14214 STRIP=$ac_cv_prog_STRIP
14215 if test -n "$STRIP"; then
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14217 $as_echo "$STRIP" >&6; }
14218 else
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14220 $as_echo "no" >&6; }
14221 fi
14222
14223
14224 fi
14225 if test -z "$ac_cv_prog_STRIP"; then
14226 ac_ct_STRIP=$STRIP
14227 # Extract the first word of "strip", so it can be a program name with args.
14228 set dummy strip; ac_word=$2
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14230 $as_echo_n "checking for $ac_word... " >&6; }
14231 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14232 $as_echo_n "(cached) " >&6
14233 else
14234 if test -n "$ac_ct_STRIP"; then
14235 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14236 else
14237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14238 for as_dir in $PATH
14239 do
14240 IFS=$as_save_IFS
14241 test -z "$as_dir" && as_dir=.
14242 for ac_exec_ext in '' $ac_executable_extensions; do
14243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14244 ac_cv_prog_ac_ct_STRIP="strip"
14245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14246 break 2
14247 fi
14248 done
14249 done
14250 IFS=$as_save_IFS
14251
14252 fi
14253 fi
14254 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14255 if test -n "$ac_ct_STRIP"; then
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14257 $as_echo "$ac_ct_STRIP" >&6; }
14258 else
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14260 $as_echo "no" >&6; }
14261 fi
14262
14263 if test "x$ac_ct_STRIP" = x; then
14264 STRIP=":"
14265 else
14266 case $cross_compiling:$ac_tool_warned in
14267 yes:)
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14270 ac_tool_warned=yes ;;
14271 esac
14272 STRIP=$ac_ct_STRIP
14273 fi
14274 else
14275 STRIP="$ac_cv_prog_STRIP"
14276 fi
14277
14278 test -z "$STRIP" && STRIP=:
14279
14280
14281
14282
14283
14284
14285 if test -n "$ac_tool_prefix"; then
14286 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14287 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14289 $as_echo_n "checking for $ac_word... " >&6; }
14290 if ${ac_cv_prog_RANLIB+:} false; then :
14291 $as_echo_n "(cached) " >&6
14292 else
14293 if test -n "$RANLIB"; then
14294 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14295 else
14296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14297 for as_dir in $PATH
14298 do
14299 IFS=$as_save_IFS
14300 test -z "$as_dir" && as_dir=.
14301 for ac_exec_ext in '' $ac_executable_extensions; do
14302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14303 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14305 break 2
14306 fi
14307 done
14308 done
14309 IFS=$as_save_IFS
14310
14311 fi
14312 fi
14313 RANLIB=$ac_cv_prog_RANLIB
14314 if test -n "$RANLIB"; then
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14316 $as_echo "$RANLIB" >&6; }
14317 else
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14319 $as_echo "no" >&6; }
14320 fi
14321
14322
14323 fi
14324 if test -z "$ac_cv_prog_RANLIB"; then
14325 ac_ct_RANLIB=$RANLIB
14326 # Extract the first word of "ranlib", so it can be a program name with args.
14327 set dummy ranlib; ac_word=$2
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14329 $as_echo_n "checking for $ac_word... " >&6; }
14330 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14331 $as_echo_n "(cached) " >&6
14332 else
14333 if test -n "$ac_ct_RANLIB"; then
14334 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14335 else
14336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14337 for as_dir in $PATH
14338 do
14339 IFS=$as_save_IFS
14340 test -z "$as_dir" && as_dir=.
14341 for ac_exec_ext in '' $ac_executable_extensions; do
14342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14343 ac_cv_prog_ac_ct_RANLIB="ranlib"
14344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14345 break 2
14346 fi
14347 done
14348 done
14349 IFS=$as_save_IFS
14350
14351 fi
14352 fi
14353 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14354 if test -n "$ac_ct_RANLIB"; then
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14356 $as_echo "$ac_ct_RANLIB" >&6; }
14357 else
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14359 $as_echo "no" >&6; }
14360 fi
14361
14362 if test "x$ac_ct_RANLIB" = x; then
14363 RANLIB=":"
14364 else
14365 case $cross_compiling:$ac_tool_warned in
14366 yes:)
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14369 ac_tool_warned=yes ;;
14370 esac
14371 RANLIB=$ac_ct_RANLIB
14372 fi
14373 else
14374 RANLIB="$ac_cv_prog_RANLIB"
14375 fi
14376
14377 test -z "$RANLIB" && RANLIB=:
14378
14379
14380
14381
14382
14383
14384 # Determine commands to create old-style static archives.
14385 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14386 old_postinstall_cmds='chmod 644 $oldlib'
14387 old_postuninstall_cmds=
14388
14389 if test -n "$RANLIB"; then
14390 case $host_os in
14391 openbsd*)
14392 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14393 ;;
14394 *)
14395 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14396 ;;
14397 esac
14398 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14399 fi
14400
14401 case $host_os in
14402 darwin*)
14403 lock_old_archive_extraction=yes ;;
14404 *)
14405 lock_old_archive_extraction=no ;;
14406 esac
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446 # If no C compiler was specified, use CC.
14447 LTCC=${LTCC-"$CC"}
14448
14449 # If no C compiler flags were specified, use CFLAGS.
14450 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14451
14452 # Allow CC to be a program name with arguments.
14453 compiler=$CC
14454
14455
14456 # Check for command to grab the raw symbol name followed by C symbol from nm.
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14458 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14459 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14460 $as_echo_n "(cached) " >&6
14461 else
14462
14463 # These are sane defaults that work on at least a few old systems.
14464 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14465
14466 # Character class describing NM global symbol codes.
14467 symcode='[BCDEGRST]'
14468
14469 # Regexp to match symbols that can be accessed directly from C.
14470 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14471
14472 # Define system-specific variables.
14473 case $host_os in
14474 aix*)
14475 symcode='[BCDT]'
14476 ;;
14477 cygwin* | mingw* | pw32* | cegcc*)
14478 symcode='[ABCDGISTW]'
14479 ;;
14480 hpux*)
14481 if test "$host_cpu" = ia64; then
14482 symcode='[ABCDEGRST]'
14483 fi
14484 ;;
14485 irix* | nonstopux*)
14486 symcode='[BCDEGRST]'
14487 ;;
14488 osf*)
14489 symcode='[BCDEGQRST]'
14490 ;;
14491 solaris*)
14492 symcode='[BDRT]'
14493 ;;
14494 sco3.2v5*)
14495 symcode='[DT]'
14496 ;;
14497 sysv4.2uw2*)
14498 symcode='[DT]'
14499 ;;
14500 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14501 symcode='[ABDT]'
14502 ;;
14503 sysv4)
14504 symcode='[DFNSTU]'
14505 ;;
14506 esac
14507
14508 # If we're using GNU nm, then use its standard symbol codes.
14509 case `$NM -V 2>&1` in
14510 *GNU* | *'with BFD'*)
14511 symcode='[ABCDGIRSTW]' ;;
14512 esac
14513
14514 # Transform an extracted symbol line into a proper C declaration.
14515 # Some systems (esp. on ia64) link data and code symbols differently,
14516 # so use this general approach.
14517 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14518
14519 # Transform an extracted symbol line into symbol name and symbol address
14520 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14521 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'"
14522
14523 # Handle CRLF in mingw tool chain
14524 opt_cr=
14525 case $build_os in
14526 mingw*)
14527 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14528 ;;
14529 esac
14530
14531 # Try without a prefix underscore, then with it.
14532 for ac_symprfx in "" "_"; do
14533
14534 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14535 symxfrm="\\1 $ac_symprfx\\2 \\2"
14536
14537 # Write the raw and C identifiers.
14538 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14539 # Fake it for dumpbin and say T for any non-static function
14540 # and D for any global variable.
14541 # Also find C++ and __fastcall symbols from MSVC++,
14542 # which start with @ or ?.
14543 lt_cv_sys_global_symbol_pipe="$AWK '"\
14544 " {last_section=section; section=\$ 3};"\
14545 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14546 " \$ 0!~/External *\|/{next};"\
14547 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14548 " {if(hide[section]) next};"\
14549 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14550 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14551 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14552 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14553 " ' prfx=^$ac_symprfx"
14554 else
14555 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14556 fi
14557
14558 # Check to see that the pipe works correctly.
14559 pipe_works=no
14560
14561 rm -f conftest*
14562 cat > conftest.$ac_ext <<_LT_EOF
14563 #ifdef __cplusplus
14564 extern "C" {
14565 #endif
14566 char nm_test_var;
14567 void nm_test_func(void);
14568 void nm_test_func(void){}
14569 #ifdef __cplusplus
14570 }
14571 #endif
14572 int main(){nm_test_var='a';nm_test_func();return(0);}
14573 _LT_EOF
14574
14575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14576 (eval $ac_compile) 2>&5
14577 ac_status=$?
14578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14579 test $ac_status = 0; }; then
14580 # Now try to grab the symbols.
14581 nlist=conftest.nm
14582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14583 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14584 ac_status=$?
14585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14586 test $ac_status = 0; } && test -s "$nlist"; then
14587 # Try sorting and uniquifying the output.
14588 if sort "$nlist" | uniq > "$nlist"T; then
14589 mv -f "$nlist"T "$nlist"
14590 else
14591 rm -f "$nlist"T
14592 fi
14593
14594 # Make sure that we snagged all the symbols we need.
14595 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14596 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14597 cat <<_LT_EOF > conftest.$ac_ext
14598 #ifdef __cplusplus
14599 extern "C" {
14600 #endif
14601
14602 _LT_EOF
14603 # Now generate the symbol file.
14604 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14605
14606 cat <<_LT_EOF >> conftest.$ac_ext
14607
14608 /* The mapping between symbol names and symbols. */
14609 const struct {
14610 const char *name;
14611 void *address;
14612 }
14613 lt__PROGRAM__LTX_preloaded_symbols[] =
14614 {
14615 { "@PROGRAM@", (void *) 0 },
14616 _LT_EOF
14617 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14618 cat <<\_LT_EOF >> conftest.$ac_ext
14619 {0, (void *) 0}
14620 };
14621
14622 /* This works around a problem in FreeBSD linker */
14623 #ifdef FREEBSD_WORKAROUND
14624 static const void *lt_preloaded_setup() {
14625 return lt__PROGRAM__LTX_preloaded_symbols;
14626 }
14627 #endif
14628
14629 #ifdef __cplusplus
14630 }
14631 #endif
14632 _LT_EOF
14633 # Now try linking the two files.
14634 mv conftest.$ac_objext conftstm.$ac_objext
14635 lt_save_LIBS="$LIBS"
14636 lt_save_CFLAGS="$CFLAGS"
14637 LIBS="conftstm.$ac_objext"
14638 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14640 (eval $ac_link) 2>&5
14641 ac_status=$?
14642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14643 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14644 pipe_works=yes
14645 fi
14646 LIBS="$lt_save_LIBS"
14647 CFLAGS="$lt_save_CFLAGS"
14648 else
14649 echo "cannot find nm_test_func in $nlist" >&5
14650 fi
14651 else
14652 echo "cannot find nm_test_var in $nlist" >&5
14653 fi
14654 else
14655 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14656 fi
14657 else
14658 echo "$progname: failed program was:" >&5
14659 cat conftest.$ac_ext >&5
14660 fi
14661 rm -rf conftest* conftst*
14662
14663 # Do not use the global_symbol_pipe unless it works.
14664 if test "$pipe_works" = yes; then
14665 break
14666 else
14667 lt_cv_sys_global_symbol_pipe=
14668 fi
14669 done
14670
14671 fi
14672
14673 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14674 lt_cv_sys_global_symbol_to_cdecl=
14675 fi
14676 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14678 $as_echo "failed" >&6; }
14679 else
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14681 $as_echo "ok" >&6; }
14682 fi
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705 # Check whether --enable-libtool-lock was given.
14706 if test "${enable_libtool_lock+set}" = set; then :
14707 enableval=$enable_libtool_lock;
14708 fi
14709
14710 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14711
14712 # Some flags need to be propagated to the compiler or linker for good
14713 # libtool support.
14714 case $host in
14715 ia64-*-hpux*)
14716 # Find out which ABI we are using.
14717 echo 'int i;' > conftest.$ac_ext
14718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14719 (eval $ac_compile) 2>&5
14720 ac_status=$?
14721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14722 test $ac_status = 0; }; then
14723 case `/usr/bin/file conftest.$ac_objext` in
14724 *ELF-32*)
14725 HPUX_IA64_MODE="32"
14726 ;;
14727 *ELF-64*)
14728 HPUX_IA64_MODE="64"
14729 ;;
14730 esac
14731 fi
14732 rm -rf conftest*
14733 ;;
14734 *-*-irix6*)
14735 # Find out which ABI we are using.
14736 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14738 (eval $ac_compile) 2>&5
14739 ac_status=$?
14740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14741 test $ac_status = 0; }; then
14742 if test "$lt_cv_prog_gnu_ld" = yes; then
14743 case `/usr/bin/file conftest.$ac_objext` in
14744 *32-bit*)
14745 LD="${LD-ld} -melf32bsmip"
14746 ;;
14747 *N32*)
14748 LD="${LD-ld} -melf32bmipn32"
14749 ;;
14750 *64-bit*)
14751 LD="${LD-ld} -melf64bmip"
14752 ;;
14753 esac
14754 else
14755 case `/usr/bin/file conftest.$ac_objext` in
14756 *32-bit*)
14757 LD="${LD-ld} -32"
14758 ;;
14759 *N32*)
14760 LD="${LD-ld} -n32"
14761 ;;
14762 *64-bit*)
14763 LD="${LD-ld} -64"
14764 ;;
14765 esac
14766 fi
14767 fi
14768 rm -rf conftest*
14769 ;;
14770
14771 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14772 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14773 # Find out which ABI we are using.
14774 echo 'int i;' > conftest.$ac_ext
14775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14776 (eval $ac_compile) 2>&5
14777 ac_status=$?
14778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14779 test $ac_status = 0; }; then
14780 case `/usr/bin/file conftest.o` in
14781 *32-bit*)
14782 case $host in
14783 x86_64-*kfreebsd*-gnu)
14784 LD="${LD-ld} -m elf_i386_fbsd"
14785 ;;
14786 x86_64-*linux*)
14787 case `/usr/bin/file conftest.o` in
14788 *x86-64*)
14789 LD="${LD-ld} -m elf32_x86_64"
14790 ;;
14791 *)
14792 LD="${LD-ld} -m elf_i386"
14793 ;;
14794 esac
14795 ;;
14796 powerpc64le-*linux*)
14797 LD="${LD-ld} -m elf32lppclinux"
14798 ;;
14799 powerpc64-*linux*)
14800 LD="${LD-ld} -m elf32ppclinux"
14801 ;;
14802 s390x-*linux*)
14803 LD="${LD-ld} -m elf_s390"
14804 ;;
14805 sparc64-*linux*)
14806 LD="${LD-ld} -m elf32_sparc"
14807 ;;
14808 esac
14809 ;;
14810 *64-bit*)
14811 case $host in
14812 x86_64-*kfreebsd*-gnu)
14813 LD="${LD-ld} -m elf_x86_64_fbsd"
14814 ;;
14815 x86_64-*linux*)
14816 LD="${LD-ld} -m elf_x86_64"
14817 ;;
14818 powerpcle-*linux*)
14819 LD="${LD-ld} -m elf64lppc"
14820 ;;
14821 powerpc-*linux*)
14822 LD="${LD-ld} -m elf64ppc"
14823 ;;
14824 s390*-*linux*|s390*-*tpf*)
14825 LD="${LD-ld} -m elf64_s390"
14826 ;;
14827 sparc*-*linux*)
14828 LD="${LD-ld} -m elf64_sparc"
14829 ;;
14830 esac
14831 ;;
14832 esac
14833 fi
14834 rm -rf conftest*
14835 ;;
14836
14837 *-*-sco3.2v5*)
14838 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14839 SAVE_CFLAGS="$CFLAGS"
14840 CFLAGS="$CFLAGS -belf"
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14842 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14843 if ${lt_cv_cc_needs_belf+:} false; then :
14844 $as_echo_n "(cached) " >&6
14845 else
14846 ac_ext=c
14847 ac_cpp='$CPP $CPPFLAGS'
14848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14851
14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14853 /* end confdefs.h. */
14854
14855 int
14856 main ()
14857 {
14858
14859 ;
14860 return 0;
14861 }
14862 _ACEOF
14863 if ac_fn_c_try_link "$LINENO"; then :
14864 lt_cv_cc_needs_belf=yes
14865 else
14866 lt_cv_cc_needs_belf=no
14867 fi
14868 rm -f core conftest.err conftest.$ac_objext \
14869 conftest$ac_exeext conftest.$ac_ext
14870 ac_ext=c
14871 ac_cpp='$CPP $CPPFLAGS'
14872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14875
14876 fi
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14878 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14879 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14880 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14881 CFLAGS="$SAVE_CFLAGS"
14882 fi
14883 ;;
14884 sparc*-*solaris*)
14885 # Find out which ABI we are using.
14886 echo 'int i;' > conftest.$ac_ext
14887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14888 (eval $ac_compile) 2>&5
14889 ac_status=$?
14890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14891 test $ac_status = 0; }; then
14892 case `/usr/bin/file conftest.o` in
14893 *64-bit*)
14894 case $lt_cv_prog_gnu_ld in
14895 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14896 *)
14897 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14898 LD="${LD-ld} -64"
14899 fi
14900 ;;
14901 esac
14902 ;;
14903 esac
14904 fi
14905 rm -rf conftest*
14906 ;;
14907 esac
14908
14909 need_locks="$enable_libtool_lock"
14910
14911
14912 case $host_os in
14913 rhapsody* | darwin*)
14914 if test -n "$ac_tool_prefix"; then
14915 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14916 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14918 $as_echo_n "checking for $ac_word... " >&6; }
14919 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14920 $as_echo_n "(cached) " >&6
14921 else
14922 if test -n "$DSYMUTIL"; then
14923 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14924 else
14925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14926 for as_dir in $PATH
14927 do
14928 IFS=$as_save_IFS
14929 test -z "$as_dir" && as_dir=.
14930 for ac_exec_ext in '' $ac_executable_extensions; do
14931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14932 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14934 break 2
14935 fi
14936 done
14937 done
14938 IFS=$as_save_IFS
14939
14940 fi
14941 fi
14942 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14943 if test -n "$DSYMUTIL"; then
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14945 $as_echo "$DSYMUTIL" >&6; }
14946 else
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14948 $as_echo "no" >&6; }
14949 fi
14950
14951
14952 fi
14953 if test -z "$ac_cv_prog_DSYMUTIL"; then
14954 ac_ct_DSYMUTIL=$DSYMUTIL
14955 # Extract the first word of "dsymutil", so it can be a program name with args.
14956 set dummy dsymutil; ac_word=$2
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14958 $as_echo_n "checking for $ac_word... " >&6; }
14959 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14960 $as_echo_n "(cached) " >&6
14961 else
14962 if test -n "$ac_ct_DSYMUTIL"; then
14963 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14964 else
14965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14966 for as_dir in $PATH
14967 do
14968 IFS=$as_save_IFS
14969 test -z "$as_dir" && as_dir=.
14970 for ac_exec_ext in '' $ac_executable_extensions; do
14971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14972 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14974 break 2
14975 fi
14976 done
14977 done
14978 IFS=$as_save_IFS
14979
14980 fi
14981 fi
14982 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14983 if test -n "$ac_ct_DSYMUTIL"; then
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14985 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14986 else
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14988 $as_echo "no" >&6; }
14989 fi
14990
14991 if test "x$ac_ct_DSYMUTIL" = x; then
14992 DSYMUTIL=":"
14993 else
14994 case $cross_compiling:$ac_tool_warned in
14995 yes:)
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14998 ac_tool_warned=yes ;;
14999 esac
15000 DSYMUTIL=$ac_ct_DSYMUTIL
15001 fi
15002 else
15003 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15004 fi
15005
15006 if test -n "$ac_tool_prefix"; then
15007 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15008 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15010 $as_echo_n "checking for $ac_word... " >&6; }
15011 if ${ac_cv_prog_NMEDIT+:} false; then :
15012 $as_echo_n "(cached) " >&6
15013 else
15014 if test -n "$NMEDIT"; then
15015 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15016 else
15017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15018 for as_dir in $PATH
15019 do
15020 IFS=$as_save_IFS
15021 test -z "$as_dir" && as_dir=.
15022 for ac_exec_ext in '' $ac_executable_extensions; do
15023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15024 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15026 break 2
15027 fi
15028 done
15029 done
15030 IFS=$as_save_IFS
15031
15032 fi
15033 fi
15034 NMEDIT=$ac_cv_prog_NMEDIT
15035 if test -n "$NMEDIT"; then
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15037 $as_echo "$NMEDIT" >&6; }
15038 else
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15040 $as_echo "no" >&6; }
15041 fi
15042
15043
15044 fi
15045 if test -z "$ac_cv_prog_NMEDIT"; then
15046 ac_ct_NMEDIT=$NMEDIT
15047 # Extract the first word of "nmedit", so it can be a program name with args.
15048 set dummy nmedit; ac_word=$2
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15050 $as_echo_n "checking for $ac_word... " >&6; }
15051 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15052 $as_echo_n "(cached) " >&6
15053 else
15054 if test -n "$ac_ct_NMEDIT"; then
15055 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15056 else
15057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15058 for as_dir in $PATH
15059 do
15060 IFS=$as_save_IFS
15061 test -z "$as_dir" && as_dir=.
15062 for ac_exec_ext in '' $ac_executable_extensions; do
15063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15064 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15066 break 2
15067 fi
15068 done
15069 done
15070 IFS=$as_save_IFS
15071
15072 fi
15073 fi
15074 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15075 if test -n "$ac_ct_NMEDIT"; then
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15077 $as_echo "$ac_ct_NMEDIT" >&6; }
15078 else
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15080 $as_echo "no" >&6; }
15081 fi
15082
15083 if test "x$ac_ct_NMEDIT" = x; then
15084 NMEDIT=":"
15085 else
15086 case $cross_compiling:$ac_tool_warned in
15087 yes:)
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15090 ac_tool_warned=yes ;;
15091 esac
15092 NMEDIT=$ac_ct_NMEDIT
15093 fi
15094 else
15095 NMEDIT="$ac_cv_prog_NMEDIT"
15096 fi
15097
15098 if test -n "$ac_tool_prefix"; then
15099 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15100 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15102 $as_echo_n "checking for $ac_word... " >&6; }
15103 if ${ac_cv_prog_LIPO+:} false; then :
15104 $as_echo_n "(cached) " >&6
15105 else
15106 if test -n "$LIPO"; then
15107 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15108 else
15109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15110 for as_dir in $PATH
15111 do
15112 IFS=$as_save_IFS
15113 test -z "$as_dir" && as_dir=.
15114 for ac_exec_ext in '' $ac_executable_extensions; do
15115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15116 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15118 break 2
15119 fi
15120 done
15121 done
15122 IFS=$as_save_IFS
15123
15124 fi
15125 fi
15126 LIPO=$ac_cv_prog_LIPO
15127 if test -n "$LIPO"; then
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15129 $as_echo "$LIPO" >&6; }
15130 else
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15132 $as_echo "no" >&6; }
15133 fi
15134
15135
15136 fi
15137 if test -z "$ac_cv_prog_LIPO"; then
15138 ac_ct_LIPO=$LIPO
15139 # Extract the first word of "lipo", so it can be a program name with args.
15140 set dummy lipo; ac_word=$2
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15142 $as_echo_n "checking for $ac_word... " >&6; }
15143 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15144 $as_echo_n "(cached) " >&6
15145 else
15146 if test -n "$ac_ct_LIPO"; then
15147 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15148 else
15149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15150 for as_dir in $PATH
15151 do
15152 IFS=$as_save_IFS
15153 test -z "$as_dir" && as_dir=.
15154 for ac_exec_ext in '' $ac_executable_extensions; do
15155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15156 ac_cv_prog_ac_ct_LIPO="lipo"
15157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15158 break 2
15159 fi
15160 done
15161 done
15162 IFS=$as_save_IFS
15163
15164 fi
15165 fi
15166 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15167 if test -n "$ac_ct_LIPO"; then
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15169 $as_echo "$ac_ct_LIPO" >&6; }
15170 else
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15172 $as_echo "no" >&6; }
15173 fi
15174
15175 if test "x$ac_ct_LIPO" = x; then
15176 LIPO=":"
15177 else
15178 case $cross_compiling:$ac_tool_warned in
15179 yes:)
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15182 ac_tool_warned=yes ;;
15183 esac
15184 LIPO=$ac_ct_LIPO
15185 fi
15186 else
15187 LIPO="$ac_cv_prog_LIPO"
15188 fi
15189
15190 if test -n "$ac_tool_prefix"; then
15191 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15192 set dummy ${ac_tool_prefix}otool; ac_word=$2
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15194 $as_echo_n "checking for $ac_word... " >&6; }
15195 if ${ac_cv_prog_OTOOL+:} false; then :
15196 $as_echo_n "(cached) " >&6
15197 else
15198 if test -n "$OTOOL"; then
15199 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15200 else
15201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15202 for as_dir in $PATH
15203 do
15204 IFS=$as_save_IFS
15205 test -z "$as_dir" && as_dir=.
15206 for ac_exec_ext in '' $ac_executable_extensions; do
15207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15208 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15210 break 2
15211 fi
15212 done
15213 done
15214 IFS=$as_save_IFS
15215
15216 fi
15217 fi
15218 OTOOL=$ac_cv_prog_OTOOL
15219 if test -n "$OTOOL"; then
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15221 $as_echo "$OTOOL" >&6; }
15222 else
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15224 $as_echo "no" >&6; }
15225 fi
15226
15227
15228 fi
15229 if test -z "$ac_cv_prog_OTOOL"; then
15230 ac_ct_OTOOL=$OTOOL
15231 # Extract the first word of "otool", so it can be a program name with args.
15232 set dummy otool; ac_word=$2
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15234 $as_echo_n "checking for $ac_word... " >&6; }
15235 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15236 $as_echo_n "(cached) " >&6
15237 else
15238 if test -n "$ac_ct_OTOOL"; then
15239 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15240 else
15241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15242 for as_dir in $PATH
15243 do
15244 IFS=$as_save_IFS
15245 test -z "$as_dir" && as_dir=.
15246 for ac_exec_ext in '' $ac_executable_extensions; do
15247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15248 ac_cv_prog_ac_ct_OTOOL="otool"
15249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15250 break 2
15251 fi
15252 done
15253 done
15254 IFS=$as_save_IFS
15255
15256 fi
15257 fi
15258 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15259 if test -n "$ac_ct_OTOOL"; then
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15261 $as_echo "$ac_ct_OTOOL" >&6; }
15262 else
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15264 $as_echo "no" >&6; }
15265 fi
15266
15267 if test "x$ac_ct_OTOOL" = x; then
15268 OTOOL=":"
15269 else
15270 case $cross_compiling:$ac_tool_warned in
15271 yes:)
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15274 ac_tool_warned=yes ;;
15275 esac
15276 OTOOL=$ac_ct_OTOOL
15277 fi
15278 else
15279 OTOOL="$ac_cv_prog_OTOOL"
15280 fi
15281
15282 if test -n "$ac_tool_prefix"; then
15283 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15284 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15286 $as_echo_n "checking for $ac_word... " >&6; }
15287 if ${ac_cv_prog_OTOOL64+:} false; then :
15288 $as_echo_n "(cached) " >&6
15289 else
15290 if test -n "$OTOOL64"; then
15291 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15292 else
15293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15294 for as_dir in $PATH
15295 do
15296 IFS=$as_save_IFS
15297 test -z "$as_dir" && as_dir=.
15298 for ac_exec_ext in '' $ac_executable_extensions; do
15299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15300 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15302 break 2
15303 fi
15304 done
15305 done
15306 IFS=$as_save_IFS
15307
15308 fi
15309 fi
15310 OTOOL64=$ac_cv_prog_OTOOL64
15311 if test -n "$OTOOL64"; then
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15313 $as_echo "$OTOOL64" >&6; }
15314 else
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15316 $as_echo "no" >&6; }
15317 fi
15318
15319
15320 fi
15321 if test -z "$ac_cv_prog_OTOOL64"; then
15322 ac_ct_OTOOL64=$OTOOL64
15323 # Extract the first word of "otool64", so it can be a program name with args.
15324 set dummy otool64; ac_word=$2
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15326 $as_echo_n "checking for $ac_word... " >&6; }
15327 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15328 $as_echo_n "(cached) " >&6
15329 else
15330 if test -n "$ac_ct_OTOOL64"; then
15331 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15332 else
15333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15334 for as_dir in $PATH
15335 do
15336 IFS=$as_save_IFS
15337 test -z "$as_dir" && as_dir=.
15338 for ac_exec_ext in '' $ac_executable_extensions; do
15339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15340 ac_cv_prog_ac_ct_OTOOL64="otool64"
15341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15342 break 2
15343 fi
15344 done
15345 done
15346 IFS=$as_save_IFS
15347
15348 fi
15349 fi
15350 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15351 if test -n "$ac_ct_OTOOL64"; then
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15353 $as_echo "$ac_ct_OTOOL64" >&6; }
15354 else
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15356 $as_echo "no" >&6; }
15357 fi
15358
15359 if test "x$ac_ct_OTOOL64" = x; then
15360 OTOOL64=":"
15361 else
15362 case $cross_compiling:$ac_tool_warned in
15363 yes:)
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15366 ac_tool_warned=yes ;;
15367 esac
15368 OTOOL64=$ac_ct_OTOOL64
15369 fi
15370 else
15371 OTOOL64="$ac_cv_prog_OTOOL64"
15372 fi
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15401 $as_echo_n "checking for -single_module linker flag... " >&6; }
15402 if ${lt_cv_apple_cc_single_mod+:} false; then :
15403 $as_echo_n "(cached) " >&6
15404 else
15405 lt_cv_apple_cc_single_mod=no
15406 if test -z "${LT_MULTI_MODULE}"; then
15407 # By default we will add the -single_module flag. You can override
15408 # by either setting the environment variable LT_MULTI_MODULE
15409 # non-empty at configure time, or by adding -multi_module to the
15410 # link flags.
15411 rm -rf libconftest.dylib*
15412 echo "int foo(void){return 1;}" > conftest.c
15413 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15414 -dynamiclib -Wl,-single_module conftest.c" >&5
15415 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15416 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15417 _lt_result=$?
15418 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15419 lt_cv_apple_cc_single_mod=yes
15420 else
15421 cat conftest.err >&5
15422 fi
15423 rm -rf libconftest.dylib*
15424 rm -f conftest.*
15425 fi
15426 fi
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15428 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15430 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15431 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15432 $as_echo_n "(cached) " >&6
15433 else
15434 lt_cv_ld_exported_symbols_list=no
15435 save_LDFLAGS=$LDFLAGS
15436 echo "_main" > conftest.sym
15437 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h. */
15440
15441 int
15442 main ()
15443 {
15444
15445 ;
15446 return 0;
15447 }
15448 _ACEOF
15449 if ac_fn_c_try_link "$LINENO"; then :
15450 lt_cv_ld_exported_symbols_list=yes
15451 else
15452 lt_cv_ld_exported_symbols_list=no
15453 fi
15454 rm -f core conftest.err conftest.$ac_objext \
15455 conftest$ac_exeext conftest.$ac_ext
15456 LDFLAGS="$save_LDFLAGS"
15457
15458 fi
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15460 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15462 $as_echo_n "checking for -force_load linker flag... " >&6; }
15463 if ${lt_cv_ld_force_load+:} false; then :
15464 $as_echo_n "(cached) " >&6
15465 else
15466 lt_cv_ld_force_load=no
15467 cat > conftest.c << _LT_EOF
15468 int forced_loaded() { return 2;}
15469 _LT_EOF
15470 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15471 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15472 echo "$AR cru libconftest.a conftest.o" >&5
15473 $AR cru libconftest.a conftest.o 2>&5
15474 cat > conftest.c << _LT_EOF
15475 int main() { return 0;}
15476 _LT_EOF
15477 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15478 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15479 _lt_result=$?
15480 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15481 lt_cv_ld_force_load=yes
15482 else
15483 cat conftest.err >&5
15484 fi
15485 rm -f conftest.err libconftest.a conftest conftest.c
15486 rm -rf conftest.dSYM
15487
15488 fi
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15490 $as_echo "$lt_cv_ld_force_load" >&6; }
15491 case $host_os in
15492 rhapsody* | darwin1.[012])
15493 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15494 darwin1.*)
15495 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15496 darwin*) # darwin 5.x on
15497 # if running on 10.5 or later, the deployment target defaults
15498 # to the OS version, if on x86, and 10.4, the deployment
15499 # target defaults to 10.4. Don't you love it?
15500 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15501 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15502 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15503 10.[012][,.]*)
15504 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15505 10.*)
15506 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15507 esac
15508 ;;
15509 esac
15510 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15511 _lt_dar_single_mod='$single_module'
15512 fi
15513 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15514 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15515 else
15516 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15517 fi
15518 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15519 _lt_dsymutil='~$DSYMUTIL $lib || :'
15520 else
15521 _lt_dsymutil=
15522 fi
15523 ;;
15524 esac
15525
15526
15527 for ac_header in dlfcn.h
15528 do :
15529 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15530 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15531 cat >>confdefs.h <<_ACEOF
15532 #define HAVE_DLFCN_H 1
15533 _ACEOF
15534
15535 fi
15536 done
15537
15538
15539
15540
15541
15542 # Set options
15543
15544
15545
15546 enable_dlopen=no
15547
15548
15549 enable_win32_dll=no
15550
15551
15552 # Check whether --enable-shared was given.
15553 if test "${enable_shared+set}" = set; then :
15554 enableval=$enable_shared; p=${PACKAGE-default}
15555 case $enableval in
15556 yes) enable_shared=yes ;;
15557 no) enable_shared=no ;;
15558 *)
15559 enable_shared=no
15560 # Look at the argument we got. We use all the common list separators.
15561 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15562 for pkg in $enableval; do
15563 IFS="$lt_save_ifs"
15564 if test "X$pkg" = "X$p"; then
15565 enable_shared=yes
15566 fi
15567 done
15568 IFS="$lt_save_ifs"
15569 ;;
15570 esac
15571 else
15572 enable_shared=yes
15573 fi
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583 # Check whether --enable-static was given.
15584 if test "${enable_static+set}" = set; then :
15585 enableval=$enable_static; p=${PACKAGE-default}
15586 case $enableval in
15587 yes) enable_static=yes ;;
15588 no) enable_static=no ;;
15589 *)
15590 enable_static=no
15591 # Look at the argument we got. We use all the common list separators.
15592 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15593 for pkg in $enableval; do
15594 IFS="$lt_save_ifs"
15595 if test "X$pkg" = "X$p"; then
15596 enable_static=yes
15597 fi
15598 done
15599 IFS="$lt_save_ifs"
15600 ;;
15601 esac
15602 else
15603 enable_static=yes
15604 fi
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615 # Check whether --with-pic was given.
15616 if test "${with_pic+set}" = set; then :
15617 withval=$with_pic; pic_mode="$withval"
15618 else
15619 pic_mode=default
15620 fi
15621
15622
15623 test -z "$pic_mode" && pic_mode=default
15624
15625
15626
15627
15628
15629
15630
15631 # Check whether --enable-fast-install was given.
15632 if test "${enable_fast_install+set}" = set; then :
15633 enableval=$enable_fast_install; p=${PACKAGE-default}
15634 case $enableval in
15635 yes) enable_fast_install=yes ;;
15636 no) enable_fast_install=no ;;
15637 *)
15638 enable_fast_install=no
15639 # Look at the argument we got. We use all the common list separators.
15640 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15641 for pkg in $enableval; do
15642 IFS="$lt_save_ifs"
15643 if test "X$pkg" = "X$p"; then
15644 enable_fast_install=yes
15645 fi
15646 done
15647 IFS="$lt_save_ifs"
15648 ;;
15649 esac
15650 else
15651 enable_fast_install=yes
15652 fi
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664 # This can be used to rebuild libtool when needed
15665 LIBTOOL_DEPS="$ltmain"
15666
15667 # Always use our own libtool.
15668 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695 test -z "$LN_S" && LN_S="ln -s"
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710 if test -n "${ZSH_VERSION+set}" ; then
15711 setopt NO_GLOB_SUBST
15712 fi
15713
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15715 $as_echo_n "checking for objdir... " >&6; }
15716 if ${lt_cv_objdir+:} false; then :
15717 $as_echo_n "(cached) " >&6
15718 else
15719 rm -f .libs 2>/dev/null
15720 mkdir .libs 2>/dev/null
15721 if test -d .libs; then
15722 lt_cv_objdir=.libs
15723 else
15724 # MS-DOS does not allow filenames that begin with a dot.
15725 lt_cv_objdir=_libs
15726 fi
15727 rmdir .libs 2>/dev/null
15728 fi
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15730 $as_echo "$lt_cv_objdir" >&6; }
15731 objdir=$lt_cv_objdir
15732
15733
15734
15735
15736
15737 cat >>confdefs.h <<_ACEOF
15738 #define LT_OBJDIR "$lt_cv_objdir/"
15739 _ACEOF
15740
15741
15742
15743
15744 case $host_os in
15745 aix3*)
15746 # AIX sometimes has problems with the GCC collect2 program. For some
15747 # reason, if we set the COLLECT_NAMES environment variable, the problems
15748 # vanish in a puff of smoke.
15749 if test "X${COLLECT_NAMES+set}" != Xset; then
15750 COLLECT_NAMES=
15751 export COLLECT_NAMES
15752 fi
15753 ;;
15754 esac
15755
15756 # Global variables:
15757 ofile=libtool
15758 can_build_shared=yes
15759
15760 # All known linkers require a `.a' archive for static linking (except MSVC,
15761 # which needs '.lib').
15762 libext=a
15763
15764 with_gnu_ld="$lt_cv_prog_gnu_ld"
15765
15766 old_CC="$CC"
15767 old_CFLAGS="$CFLAGS"
15768
15769 # Set sane defaults for various variables
15770 test -z "$CC" && CC=cc
15771 test -z "$LTCC" && LTCC=$CC
15772 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15773 test -z "$LD" && LD=ld
15774 test -z "$ac_objext" && ac_objext=o
15775
15776 for cc_temp in $compiler""; do
15777 case $cc_temp in
15778 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15779 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15780 \-*) ;;
15781 *) break;;
15782 esac
15783 done
15784 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15785
15786
15787 # Only perform the check for file, if the check method requires it
15788 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15789 case $deplibs_check_method in
15790 file_magic*)
15791 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15793 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15794 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15795 $as_echo_n "(cached) " >&6
15796 else
15797 case $MAGIC_CMD in
15798 [\\/*] | ?:[\\/]*)
15799 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15800 ;;
15801 *)
15802 lt_save_MAGIC_CMD="$MAGIC_CMD"
15803 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15804 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15805 for ac_dir in $ac_dummy; do
15806 IFS="$lt_save_ifs"
15807 test -z "$ac_dir" && ac_dir=.
15808 if test -f $ac_dir/${ac_tool_prefix}file; then
15809 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15810 if test -n "$file_magic_test_file"; then
15811 case $deplibs_check_method in
15812 "file_magic "*)
15813 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15814 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15815 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15816 $EGREP "$file_magic_regex" > /dev/null; then
15817 :
15818 else
15819 cat <<_LT_EOF 1>&2
15820
15821 *** Warning: the command libtool uses to detect shared libraries,
15822 *** $file_magic_cmd, produces output that libtool cannot recognize.
15823 *** The result is that libtool may fail to recognize shared libraries
15824 *** as such. This will affect the creation of libtool libraries that
15825 *** depend on shared libraries, but programs linked with such libtool
15826 *** libraries will work regardless of this problem. Nevertheless, you
15827 *** may want to report the problem to your system manager and/or to
15828 *** bug-libtool@gnu.org
15829
15830 _LT_EOF
15831 fi ;;
15832 esac
15833 fi
15834 break
15835 fi
15836 done
15837 IFS="$lt_save_ifs"
15838 MAGIC_CMD="$lt_save_MAGIC_CMD"
15839 ;;
15840 esac
15841 fi
15842
15843 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15844 if test -n "$MAGIC_CMD"; then
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15846 $as_echo "$MAGIC_CMD" >&6; }
15847 else
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15849 $as_echo "no" >&6; }
15850 fi
15851
15852
15853
15854
15855
15856 if test -z "$lt_cv_path_MAGIC_CMD"; then
15857 if test -n "$ac_tool_prefix"; then
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15859 $as_echo_n "checking for file... " >&6; }
15860 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15861 $as_echo_n "(cached) " >&6
15862 else
15863 case $MAGIC_CMD in
15864 [\\/*] | ?:[\\/]*)
15865 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15866 ;;
15867 *)
15868 lt_save_MAGIC_CMD="$MAGIC_CMD"
15869 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15870 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15871 for ac_dir in $ac_dummy; do
15872 IFS="$lt_save_ifs"
15873 test -z "$ac_dir" && ac_dir=.
15874 if test -f $ac_dir/file; then
15875 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15876 if test -n "$file_magic_test_file"; then
15877 case $deplibs_check_method in
15878 "file_magic "*)
15879 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15880 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15881 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15882 $EGREP "$file_magic_regex" > /dev/null; then
15883 :
15884 else
15885 cat <<_LT_EOF 1>&2
15886
15887 *** Warning: the command libtool uses to detect shared libraries,
15888 *** $file_magic_cmd, produces output that libtool cannot recognize.
15889 *** The result is that libtool may fail to recognize shared libraries
15890 *** as such. This will affect the creation of libtool libraries that
15891 *** depend on shared libraries, but programs linked with such libtool
15892 *** libraries will work regardless of this problem. Nevertheless, you
15893 *** may want to report the problem to your system manager and/or to
15894 *** bug-libtool@gnu.org
15895
15896 _LT_EOF
15897 fi ;;
15898 esac
15899 fi
15900 break
15901 fi
15902 done
15903 IFS="$lt_save_ifs"
15904 MAGIC_CMD="$lt_save_MAGIC_CMD"
15905 ;;
15906 esac
15907 fi
15908
15909 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15910 if test -n "$MAGIC_CMD"; then
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15912 $as_echo "$MAGIC_CMD" >&6; }
15913 else
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15915 $as_echo "no" >&6; }
15916 fi
15917
15918
15919 else
15920 MAGIC_CMD=:
15921 fi
15922 fi
15923
15924 fi
15925 ;;
15926 esac
15927
15928 # Use C for the default configuration in the libtool script
15929
15930 lt_save_CC="$CC"
15931 ac_ext=c
15932 ac_cpp='$CPP $CPPFLAGS'
15933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15936
15937
15938 # Source file extension for C test sources.
15939 ac_ext=c
15940
15941 # Object file extension for compiled C test sources.
15942 objext=o
15943 objext=$objext
15944
15945 # Code to be used in simple compile tests
15946 lt_simple_compile_test_code="int some_variable = 0;"
15947
15948 # Code to be used in simple link tests
15949 lt_simple_link_test_code='int main(){return(0);}'
15950
15951
15952
15953
15954
15955
15956
15957 # If no C compiler was specified, use CC.
15958 LTCC=${LTCC-"$CC"}
15959
15960 # If no C compiler flags were specified, use CFLAGS.
15961 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15962
15963 # Allow CC to be a program name with arguments.
15964 compiler=$CC
15965
15966 # Save the default compiler, since it gets overwritten when the other
15967 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15968 compiler_DEFAULT=$CC
15969
15970 # save warnings/boilerplate of simple test code
15971 ac_outfile=conftest.$ac_objext
15972 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15973 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15974 _lt_compiler_boilerplate=`cat conftest.err`
15975 $RM conftest*
15976
15977 ac_outfile=conftest.$ac_objext
15978 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15979 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15980 _lt_linker_boilerplate=`cat conftest.err`
15981 $RM -r conftest*
15982
15983
15984 ## CAVEAT EMPTOR:
15985 ## There is no encapsulation within the following macros, do not change
15986 ## the running order or otherwise move them around unless you know exactly
15987 ## what you are doing...
15988 if test -n "$compiler"; then
15989
15990 lt_prog_compiler_no_builtin_flag=
15991
15992 if test "$GCC" = yes; then
15993 case $cc_basename in
15994 nvcc*)
15995 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15996 *)
15997 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15998 esac
15999
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16001 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16002 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16003 $as_echo_n "(cached) " >&6
16004 else
16005 lt_cv_prog_compiler_rtti_exceptions=no
16006 ac_outfile=conftest.$ac_objext
16007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16008 lt_compiler_flag="-fno-rtti -fno-exceptions"
16009 # Insert the option either (1) after the last *FLAGS variable, or
16010 # (2) before a word containing "conftest.", or (3) at the end.
16011 # Note that $ac_compile itself does not contain backslashes and begins
16012 # with a dollar sign (not a hyphen), so the echo should work correctly.
16013 # The option is referenced via a variable to avoid confusing sed.
16014 lt_compile=`echo "$ac_compile" | $SED \
16015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16017 -e 's:$: $lt_compiler_flag:'`
16018 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16019 (eval "$lt_compile" 2>conftest.err)
16020 ac_status=$?
16021 cat conftest.err >&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 if (exit $ac_status) && test -s "$ac_outfile"; then
16024 # The compiler can only warn and ignore the option if not recognized
16025 # So say no if there are warnings other than the usual output.
16026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16028 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16029 lt_cv_prog_compiler_rtti_exceptions=yes
16030 fi
16031 fi
16032 $RM conftest*
16033
16034 fi
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16036 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16037
16038 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16039 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16040 else
16041 :
16042 fi
16043
16044 fi
16045
16046
16047
16048
16049
16050
16051 lt_prog_compiler_wl=
16052 lt_prog_compiler_pic=
16053 lt_prog_compiler_static=
16054
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16056 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16057
16058 if test "$GCC" = yes; then
16059 lt_prog_compiler_wl='-Wl,'
16060 lt_prog_compiler_static='-static'
16061
16062 case $host_os in
16063 aix*)
16064 # All AIX code is PIC.
16065 if test "$host_cpu" = ia64; then
16066 # AIX 5 now supports IA64 processor
16067 lt_prog_compiler_static='-Bstatic'
16068 fi
16069 lt_prog_compiler_pic='-fPIC'
16070 ;;
16071
16072 amigaos*)
16073 case $host_cpu in
16074 powerpc)
16075 # see comment about AmigaOS4 .so support
16076 lt_prog_compiler_pic='-fPIC'
16077 ;;
16078 m68k)
16079 # FIXME: we need at least 68020 code to build shared libraries, but
16080 # adding the `-m68020' flag to GCC prevents building anything better,
16081 # like `-m68040'.
16082 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16083 ;;
16084 esac
16085 ;;
16086
16087 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16088 # PIC is the default for these OSes.
16089 ;;
16090
16091 mingw* | cygwin* | pw32* | os2* | cegcc*)
16092 # This hack is so that the source file can tell whether it is being
16093 # built for inclusion in a dll (and should export symbols for example).
16094 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16095 # (--disable-auto-import) libraries
16096 lt_prog_compiler_pic='-DDLL_EXPORT'
16097 ;;
16098
16099 darwin* | rhapsody*)
16100 # PIC is the default on this platform
16101 # Common symbols not allowed in MH_DYLIB files
16102 lt_prog_compiler_pic='-fno-common'
16103 ;;
16104
16105 haiku*)
16106 # PIC is the default for Haiku.
16107 # The "-static" flag exists, but is broken.
16108 lt_prog_compiler_static=
16109 ;;
16110
16111 hpux*)
16112 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16113 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16114 # sets the default TLS model and affects inlining.
16115 case $host_cpu in
16116 hppa*64*)
16117 # +Z the default
16118 ;;
16119 *)
16120 lt_prog_compiler_pic='-fPIC'
16121 ;;
16122 esac
16123 ;;
16124
16125 interix[3-9]*)
16126 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16127 # Instead, we relocate shared libraries at runtime.
16128 ;;
16129
16130 msdosdjgpp*)
16131 # Just because we use GCC doesn't mean we suddenly get shared libraries
16132 # on systems that don't support them.
16133 lt_prog_compiler_can_build_shared=no
16134 enable_shared=no
16135 ;;
16136
16137 *nto* | *qnx*)
16138 # QNX uses GNU C++, but need to define -shared option too, otherwise
16139 # it will coredump.
16140 lt_prog_compiler_pic='-fPIC -shared'
16141 ;;
16142
16143 sysv4*MP*)
16144 if test -d /usr/nec; then
16145 lt_prog_compiler_pic=-Kconform_pic
16146 fi
16147 ;;
16148
16149 *)
16150 lt_prog_compiler_pic='-fPIC'
16151 ;;
16152 esac
16153
16154 case $cc_basename in
16155 nvcc*) # Cuda Compiler Driver 2.2
16156 lt_prog_compiler_wl='-Xlinker '
16157 lt_prog_compiler_pic='-Xcompiler -fPIC'
16158 ;;
16159 esac
16160 else
16161 # PORTME Check for flag to pass linker flags through the system compiler.
16162 case $host_os in
16163 aix*)
16164 lt_prog_compiler_wl='-Wl,'
16165 if test "$host_cpu" = ia64; then
16166 # AIX 5 now supports IA64 processor
16167 lt_prog_compiler_static='-Bstatic'
16168 else
16169 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16170 fi
16171 ;;
16172
16173 mingw* | cygwin* | pw32* | os2* | cegcc*)
16174 # This hack is so that the source file can tell whether it is being
16175 # built for inclusion in a dll (and should export symbols for example).
16176 lt_prog_compiler_pic='-DDLL_EXPORT'
16177 ;;
16178
16179 hpux9* | hpux10* | hpux11*)
16180 lt_prog_compiler_wl='-Wl,'
16181 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16182 # not for PA HP-UX.
16183 case $host_cpu in
16184 hppa*64*|ia64*)
16185 # +Z the default
16186 ;;
16187 *)
16188 lt_prog_compiler_pic='+Z'
16189 ;;
16190 esac
16191 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16192 lt_prog_compiler_static='${wl}-a ${wl}archive'
16193 ;;
16194
16195 irix5* | irix6* | nonstopux*)
16196 lt_prog_compiler_wl='-Wl,'
16197 # PIC (with -KPIC) is the default.
16198 lt_prog_compiler_static='-non_shared'
16199 ;;
16200
16201 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16202 case $cc_basename in
16203 # old Intel for x86_64 which still supported -KPIC.
16204 ecc*)
16205 lt_prog_compiler_wl='-Wl,'
16206 lt_prog_compiler_pic='-KPIC'
16207 lt_prog_compiler_static='-static'
16208 ;;
16209 # icc used to be incompatible with GCC.
16210 # ICC 10 doesn't accept -KPIC any more.
16211 icc* | ifort*)
16212 lt_prog_compiler_wl='-Wl,'
16213 lt_prog_compiler_pic='-fPIC'
16214 lt_prog_compiler_static='-static'
16215 ;;
16216 # Lahey Fortran 8.1.
16217 lf95*)
16218 lt_prog_compiler_wl='-Wl,'
16219 lt_prog_compiler_pic='--shared'
16220 lt_prog_compiler_static='--static'
16221 ;;
16222 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16223 # Portland Group compilers (*not* the Pentium gcc compiler,
16224 # which looks to be a dead project)
16225 lt_prog_compiler_wl='-Wl,'
16226 lt_prog_compiler_pic='-fpic'
16227 lt_prog_compiler_static='-Bstatic'
16228 ;;
16229 ccc*)
16230 lt_prog_compiler_wl='-Wl,'
16231 # All Alpha code is PIC.
16232 lt_prog_compiler_static='-non_shared'
16233 ;;
16234 xl* | bgxl* | bgf* | mpixl*)
16235 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16236 lt_prog_compiler_wl='-Wl,'
16237 lt_prog_compiler_pic='-qpic'
16238 lt_prog_compiler_static='-qstaticlink'
16239 ;;
16240 *)
16241 case `$CC -V 2>&1 | sed 5q` in
16242 *Sun\ F* | *Sun*Fortran*)
16243 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16244 lt_prog_compiler_pic='-KPIC'
16245 lt_prog_compiler_static='-Bstatic'
16246 lt_prog_compiler_wl=''
16247 ;;
16248 *Sun\ C*)
16249 # Sun C 5.9
16250 lt_prog_compiler_pic='-KPIC'
16251 lt_prog_compiler_static='-Bstatic'
16252 lt_prog_compiler_wl='-Wl,'
16253 ;;
16254 esac
16255 ;;
16256 esac
16257 ;;
16258
16259 newsos6)
16260 lt_prog_compiler_pic='-KPIC'
16261 lt_prog_compiler_static='-Bstatic'
16262 ;;
16263
16264 *nto* | *qnx*)
16265 # QNX uses GNU C++, but need to define -shared option too, otherwise
16266 # it will coredump.
16267 lt_prog_compiler_pic='-fPIC -shared'
16268 ;;
16269
16270 osf3* | osf4* | osf5*)
16271 lt_prog_compiler_wl='-Wl,'
16272 # All OSF/1 code is PIC.
16273 lt_prog_compiler_static='-non_shared'
16274 ;;
16275
16276 rdos*)
16277 lt_prog_compiler_static='-non_shared'
16278 ;;
16279
16280 solaris*)
16281 lt_prog_compiler_pic='-KPIC'
16282 lt_prog_compiler_static='-Bstatic'
16283 case $cc_basename in
16284 f77* | f90* | f95*)
16285 lt_prog_compiler_wl='-Qoption ld ';;
16286 *)
16287 lt_prog_compiler_wl='-Wl,';;
16288 esac
16289 ;;
16290
16291 sunos4*)
16292 lt_prog_compiler_wl='-Qoption ld '
16293 lt_prog_compiler_pic='-PIC'
16294 lt_prog_compiler_static='-Bstatic'
16295 ;;
16296
16297 sysv4 | sysv4.2uw2* | sysv4.3*)
16298 lt_prog_compiler_wl='-Wl,'
16299 lt_prog_compiler_pic='-KPIC'
16300 lt_prog_compiler_static='-Bstatic'
16301 ;;
16302
16303 sysv4*MP*)
16304 if test -d /usr/nec ;then
16305 lt_prog_compiler_pic='-Kconform_pic'
16306 lt_prog_compiler_static='-Bstatic'
16307 fi
16308 ;;
16309
16310 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16311 lt_prog_compiler_wl='-Wl,'
16312 lt_prog_compiler_pic='-KPIC'
16313 lt_prog_compiler_static='-Bstatic'
16314 ;;
16315
16316 unicos*)
16317 lt_prog_compiler_wl='-Wl,'
16318 lt_prog_compiler_can_build_shared=no
16319 ;;
16320
16321 uts4*)
16322 lt_prog_compiler_pic='-pic'
16323 lt_prog_compiler_static='-Bstatic'
16324 ;;
16325
16326 *)
16327 lt_prog_compiler_can_build_shared=no
16328 ;;
16329 esac
16330 fi
16331
16332 case $host_os in
16333 # For platforms which do not support PIC, -DPIC is meaningless:
16334 *djgpp*)
16335 lt_prog_compiler_pic=
16336 ;;
16337 *)
16338 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16339 ;;
16340 esac
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16342 $as_echo "$lt_prog_compiler_pic" >&6; }
16343
16344
16345
16346
16347
16348
16349 #
16350 # Check to make sure the PIC flag actually works.
16351 #
16352 if test -n "$lt_prog_compiler_pic"; then
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16354 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16355 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16356 $as_echo_n "(cached) " >&6
16357 else
16358 lt_cv_prog_compiler_pic_works=no
16359 ac_outfile=conftest.$ac_objext
16360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16361 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16362 # Insert the option either (1) after the last *FLAGS variable, or
16363 # (2) before a word containing "conftest.", or (3) at the end.
16364 # Note that $ac_compile itself does not contain backslashes and begins
16365 # with a dollar sign (not a hyphen), so the echo should work correctly.
16366 # The option is referenced via a variable to avoid confusing sed.
16367 lt_compile=`echo "$ac_compile" | $SED \
16368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16370 -e 's:$: $lt_compiler_flag:'`
16371 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16372 (eval "$lt_compile" 2>conftest.err)
16373 ac_status=$?
16374 cat conftest.err >&5
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 if (exit $ac_status) && test -s "$ac_outfile"; then
16377 # The compiler can only warn and ignore the option if not recognized
16378 # So say no if there are warnings other than the usual output.
16379 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16381 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16382 lt_cv_prog_compiler_pic_works=yes
16383 fi
16384 fi
16385 $RM conftest*
16386
16387 fi
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16389 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16390
16391 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16392 case $lt_prog_compiler_pic in
16393 "" | " "*) ;;
16394 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16395 esac
16396 else
16397 lt_prog_compiler_pic=
16398 lt_prog_compiler_can_build_shared=no
16399 fi
16400
16401 fi
16402
16403
16404
16405
16406
16407
16408 #
16409 # Check to make sure the static flag actually works.
16410 #
16411 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16413 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16414 if ${lt_cv_prog_compiler_static_works+:} false; then :
16415 $as_echo_n "(cached) " >&6
16416 else
16417 lt_cv_prog_compiler_static_works=no
16418 save_LDFLAGS="$LDFLAGS"
16419 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16420 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16421 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16422 # The linker can only warn and ignore the option if not recognized
16423 # So say no if there are warnings
16424 if test -s conftest.err; then
16425 # Append any errors to the config.log.
16426 cat conftest.err 1>&5
16427 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16429 if diff conftest.exp conftest.er2 >/dev/null; then
16430 lt_cv_prog_compiler_static_works=yes
16431 fi
16432 else
16433 lt_cv_prog_compiler_static_works=yes
16434 fi
16435 fi
16436 $RM -r conftest*
16437 LDFLAGS="$save_LDFLAGS"
16438
16439 fi
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16441 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16442
16443 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16444 :
16445 else
16446 lt_prog_compiler_static=
16447 fi
16448
16449
16450
16451
16452
16453
16454
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16456 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16457 if ${lt_cv_prog_compiler_c_o+:} false; then :
16458 $as_echo_n "(cached) " >&6
16459 else
16460 lt_cv_prog_compiler_c_o=no
16461 $RM -r conftest 2>/dev/null
16462 mkdir conftest
16463 cd conftest
16464 mkdir out
16465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16466
16467 lt_compiler_flag="-o out/conftest2.$ac_objext"
16468 # Insert the option either (1) after the last *FLAGS variable, or
16469 # (2) before a word containing "conftest.", or (3) at the end.
16470 # Note that $ac_compile itself does not contain backslashes and begins
16471 # with a dollar sign (not a hyphen), so the echo should work correctly.
16472 lt_compile=`echo "$ac_compile" | $SED \
16473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16475 -e 's:$: $lt_compiler_flag:'`
16476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16477 (eval "$lt_compile" 2>out/conftest.err)
16478 ac_status=$?
16479 cat out/conftest.err >&5
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16482 then
16483 # The compiler can only warn and ignore the option if not recognized
16484 # So say no if there are warnings
16485 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16486 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16487 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16488 lt_cv_prog_compiler_c_o=yes
16489 fi
16490 fi
16491 chmod u+w . 2>&5
16492 $RM conftest*
16493 # SGI C++ compiler will create directory out/ii_files/ for
16494 # template instantiation
16495 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16496 $RM out/* && rmdir out
16497 cd ..
16498 $RM -r conftest
16499 $RM conftest*
16500
16501 fi
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16503 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16504
16505
16506
16507
16508
16509
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16511 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16512 if ${lt_cv_prog_compiler_c_o+:} false; then :
16513 $as_echo_n "(cached) " >&6
16514 else
16515 lt_cv_prog_compiler_c_o=no
16516 $RM -r conftest 2>/dev/null
16517 mkdir conftest
16518 cd conftest
16519 mkdir out
16520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16521
16522 lt_compiler_flag="-o out/conftest2.$ac_objext"
16523 # Insert the option either (1) after the last *FLAGS variable, or
16524 # (2) before a word containing "conftest.", or (3) at the end.
16525 # Note that $ac_compile itself does not contain backslashes and begins
16526 # with a dollar sign (not a hyphen), so the echo should work correctly.
16527 lt_compile=`echo "$ac_compile" | $SED \
16528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16530 -e 's:$: $lt_compiler_flag:'`
16531 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16532 (eval "$lt_compile" 2>out/conftest.err)
16533 ac_status=$?
16534 cat out/conftest.err >&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16537 then
16538 # The compiler can only warn and ignore the option if not recognized
16539 # So say no if there are warnings
16540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16541 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16542 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16543 lt_cv_prog_compiler_c_o=yes
16544 fi
16545 fi
16546 chmod u+w . 2>&5
16547 $RM conftest*
16548 # SGI C++ compiler will create directory out/ii_files/ for
16549 # template instantiation
16550 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16551 $RM out/* && rmdir out
16552 cd ..
16553 $RM -r conftest
16554 $RM conftest*
16555
16556 fi
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16558 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16559
16560
16561
16562
16563 hard_links="nottested"
16564 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16565 # do not overwrite the value of need_locks provided by the user
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16567 $as_echo_n "checking if we can lock with hard links... " >&6; }
16568 hard_links=yes
16569 $RM conftest*
16570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16571 touch conftest.a
16572 ln conftest.a conftest.b 2>&5 || hard_links=no
16573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16575 $as_echo "$hard_links" >&6; }
16576 if test "$hard_links" = no; then
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16578 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16579 need_locks=warn
16580 fi
16581 else
16582 need_locks=no
16583 fi
16584
16585
16586
16587
16588
16589
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16591 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16592
16593 runpath_var=
16594 allow_undefined_flag=
16595 always_export_symbols=no
16596 archive_cmds=
16597 archive_expsym_cmds=
16598 compiler_needs_object=no
16599 enable_shared_with_static_runtimes=no
16600 export_dynamic_flag_spec=
16601 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16602 hardcode_automatic=no
16603 hardcode_direct=no
16604 hardcode_direct_absolute=no
16605 hardcode_libdir_flag_spec=
16606 hardcode_libdir_flag_spec_ld=
16607 hardcode_libdir_separator=
16608 hardcode_minus_L=no
16609 hardcode_shlibpath_var=unsupported
16610 inherit_rpath=no
16611 link_all_deplibs=unknown
16612 module_cmds=
16613 module_expsym_cmds=
16614 old_archive_from_new_cmds=
16615 old_archive_from_expsyms_cmds=
16616 thread_safe_flag_spec=
16617 whole_archive_flag_spec=
16618 # include_expsyms should be a list of space-separated symbols to be *always*
16619 # included in the symbol list
16620 include_expsyms=
16621 # exclude_expsyms can be an extended regexp of symbols to exclude
16622 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16623 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16624 # as well as any symbol that contains `d'.
16625 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16626 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16627 # platforms (ab)use it in PIC code, but their linkers get confused if
16628 # the symbol is explicitly referenced. Since portable code cannot
16629 # rely on this symbol name, it's probably fine to never include it in
16630 # preloaded symbol tables.
16631 # Exclude shared library initialization/finalization symbols.
16632 extract_expsyms_cmds=
16633
16634 case $host_os in
16635 cygwin* | mingw* | pw32* | cegcc*)
16636 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16637 # When not using gcc, we currently assume that we are using
16638 # Microsoft Visual C++.
16639 if test "$GCC" != yes; then
16640 with_gnu_ld=no
16641 fi
16642 ;;
16643 interix*)
16644 # we just hope/assume this is gcc and not c89 (= MSVC++)
16645 with_gnu_ld=yes
16646 ;;
16647 openbsd*)
16648 with_gnu_ld=no
16649 ;;
16650 esac
16651
16652 ld_shlibs=yes
16653
16654 # On some targets, GNU ld is compatible enough with the native linker
16655 # that we're better off using the native interface for both.
16656 lt_use_gnu_ld_interface=no
16657 if test "$with_gnu_ld" = yes; then
16658 case $host_os in
16659 aix*)
16660 # The AIX port of GNU ld has always aspired to compatibility
16661 # with the native linker. However, as the warning in the GNU ld
16662 # block says, versions before 2.19.5* couldn't really create working
16663 # shared libraries, regardless of the interface used.
16664 case `$LD -v 2>&1` in
16665 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16666 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16667 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16668 *)
16669 lt_use_gnu_ld_interface=yes
16670 ;;
16671 esac
16672 ;;
16673 *)
16674 lt_use_gnu_ld_interface=yes
16675 ;;
16676 esac
16677 fi
16678
16679 if test "$lt_use_gnu_ld_interface" = yes; then
16680 # If archive_cmds runs LD, not CC, wlarc should be empty
16681 wlarc='${wl}'
16682
16683 # Set some defaults for GNU ld with shared library support. These
16684 # are reset later if shared libraries are not supported. Putting them
16685 # here allows them to be overridden if necessary.
16686 runpath_var=LD_RUN_PATH
16687 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16688 export_dynamic_flag_spec='${wl}--export-dynamic'
16689 # ancient GNU ld didn't support --whole-archive et. al.
16690 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16691 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16692 else
16693 whole_archive_flag_spec=
16694 fi
16695 supports_anon_versioning=no
16696 case `$LD -v 2>&1` in
16697 *GNU\ gold*) supports_anon_versioning=yes ;;
16698 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16699 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16700 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16701 *\ 2.11.*) ;; # other 2.11 versions
16702 *) supports_anon_versioning=yes ;;
16703 esac
16704
16705 # See if GNU ld supports shared libraries.
16706 case $host_os in
16707 aix[3-9]*)
16708 # On AIX/PPC, the GNU linker is very broken
16709 if test "$host_cpu" != ia64; then
16710 ld_shlibs=no
16711 cat <<_LT_EOF 1>&2
16712
16713 *** Warning: the GNU linker, at least up to release 2.19, is reported
16714 *** to be unable to reliably create shared libraries on AIX.
16715 *** Therefore, libtool is disabling shared libraries support. If you
16716 *** really care for shared libraries, you may want to install binutils
16717 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16718 *** You will then need to restart the configuration process.
16719
16720 _LT_EOF
16721 fi
16722 ;;
16723
16724 amigaos*)
16725 case $host_cpu in
16726 powerpc)
16727 # see comment about AmigaOS4 .so support
16728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16729 archive_expsym_cmds=''
16730 ;;
16731 m68k)
16732 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)'
16733 hardcode_libdir_flag_spec='-L$libdir'
16734 hardcode_minus_L=yes
16735 ;;
16736 esac
16737 ;;
16738
16739 beos*)
16740 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16741 allow_undefined_flag=unsupported
16742 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16743 # support --undefined. This deserves some investigation. FIXME
16744 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16745 else
16746 ld_shlibs=no
16747 fi
16748 ;;
16749
16750 cygwin* | mingw* | pw32* | cegcc*)
16751 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16752 # as there is no search path for DLLs.
16753 hardcode_libdir_flag_spec='-L$libdir'
16754 export_dynamic_flag_spec='${wl}--export-all-symbols'
16755 allow_undefined_flag=unsupported
16756 always_export_symbols=no
16757 enable_shared_with_static_runtimes=yes
16758 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16759
16760 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16762 # If the export-symbols file already is a .def file (1st line
16763 # is EXPORTS), use it as is; otherwise, prepend...
16764 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16765 cp $export_symbols $output_objdir/$soname.def;
16766 else
16767 echo EXPORTS > $output_objdir/$soname.def;
16768 cat $export_symbols >> $output_objdir/$soname.def;
16769 fi~
16770 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16771 else
16772 ld_shlibs=no
16773 fi
16774 ;;
16775
16776 haiku*)
16777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16778 link_all_deplibs=yes
16779 ;;
16780
16781 interix[3-9]*)
16782 hardcode_direct=no
16783 hardcode_shlibpath_var=no
16784 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16785 export_dynamic_flag_spec='${wl}-E'
16786 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16787 # Instead, shared libraries are loaded at an image base (0x10000000 by
16788 # default) and relocated if they conflict, which is a slow very memory
16789 # consuming and fragmenting process. To avoid this, we pick a random,
16790 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16791 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16792 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16793 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'
16794 ;;
16795
16796 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16797 tmp_diet=no
16798 if test "$host_os" = linux-dietlibc; then
16799 case $cc_basename in
16800 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16801 esac
16802 fi
16803 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16804 && test "$tmp_diet" = no
16805 then
16806 tmp_addflag=' $pic_flag'
16807 tmp_sharedflag='-shared'
16808 case $cc_basename,$host_cpu in
16809 pgcc*) # Portland Group C compiler
16810 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'
16811 tmp_addflag=' $pic_flag'
16812 ;;
16813 pgf77* | pgf90* | pgf95* | pgfortran*)
16814 # Portland Group f77 and f90 compilers
16815 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'
16816 tmp_addflag=' $pic_flag -Mnomain' ;;
16817 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16818 tmp_addflag=' -i_dynamic' ;;
16819 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16820 tmp_addflag=' -i_dynamic -nofor_main' ;;
16821 ifc* | ifort*) # Intel Fortran compiler
16822 tmp_addflag=' -nofor_main' ;;
16823 lf95*) # Lahey Fortran 8.1
16824 whole_archive_flag_spec=
16825 tmp_sharedflag='--shared' ;;
16826 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16827 tmp_sharedflag='-qmkshrobj'
16828 tmp_addflag= ;;
16829 nvcc*) # Cuda Compiler Driver 2.2
16830 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'
16831 compiler_needs_object=yes
16832 ;;
16833 esac
16834 case `$CC -V 2>&1 | sed 5q` in
16835 *Sun\ C*) # Sun C 5.9
16836 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'
16837 compiler_needs_object=yes
16838 tmp_sharedflag='-G' ;;
16839 *Sun\ F*) # Sun Fortran 8.3
16840 tmp_sharedflag='-G' ;;
16841 esac
16842 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16843
16844 if test "x$supports_anon_versioning" = xyes; then
16845 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16846 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16847 echo "local: *; };" >> $output_objdir/$libname.ver~
16848 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16849 fi
16850
16851 case $cc_basename in
16852 xlf* | bgf* | bgxlf* | mpixlf*)
16853 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16854 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16855 hardcode_libdir_flag_spec=
16856 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16857 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16858 if test "x$supports_anon_versioning" = xyes; then
16859 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16860 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16861 echo "local: *; };" >> $output_objdir/$libname.ver~
16862 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16863 fi
16864 ;;
16865 esac
16866 else
16867 ld_shlibs=no
16868 fi
16869 ;;
16870
16871 netbsd*)
16872 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16873 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16874 wlarc=
16875 else
16876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16877 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16878 fi
16879 ;;
16880
16881 solaris*)
16882 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16883 ld_shlibs=no
16884 cat <<_LT_EOF 1>&2
16885
16886 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16887 *** create shared libraries on Solaris systems. Therefore, libtool
16888 *** is disabling shared libraries support. We urge you to upgrade GNU
16889 *** binutils to release 2.9.1 or newer. Another option is to modify
16890 *** your PATH or compiler configuration so that the native linker is
16891 *** used, and then restart.
16892
16893 _LT_EOF
16894 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16896 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16897 else
16898 ld_shlibs=no
16899 fi
16900 ;;
16901
16902 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16903 case `$LD -v 2>&1` in
16904 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16905 ld_shlibs=no
16906 cat <<_LT_EOF 1>&2
16907
16908 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16909 *** reliably create shared libraries on SCO systems. Therefore, libtool
16910 *** is disabling shared libraries support. We urge you to upgrade GNU
16911 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16912 *** your PATH or compiler configuration so that the native linker is
16913 *** used, and then restart.
16914
16915 _LT_EOF
16916 ;;
16917 *)
16918 # For security reasons, it is highly recommended that you always
16919 # use absolute paths for naming shared libraries, and exclude the
16920 # DT_RUNPATH tag from executables and libraries. But doing so
16921 # requires that you compile everything twice, which is a pain.
16922 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16923 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16925 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16926 else
16927 ld_shlibs=no
16928 fi
16929 ;;
16930 esac
16931 ;;
16932
16933 sunos4*)
16934 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16935 wlarc=
16936 hardcode_direct=yes
16937 hardcode_shlibpath_var=no
16938 ;;
16939
16940 *)
16941 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16943 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16944 else
16945 ld_shlibs=no
16946 fi
16947 ;;
16948 esac
16949
16950 if test "$ld_shlibs" = no; then
16951 runpath_var=
16952 hardcode_libdir_flag_spec=
16953 export_dynamic_flag_spec=
16954 whole_archive_flag_spec=
16955 fi
16956 else
16957 # PORTME fill in a description of your system's linker (not GNU ld)
16958 case $host_os in
16959 aix3*)
16960 allow_undefined_flag=unsupported
16961 always_export_symbols=yes
16962 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'
16963 # Note: this linker hardcodes the directories in LIBPATH if there
16964 # are no directories specified by -L.
16965 hardcode_minus_L=yes
16966 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16967 # Neither direct hardcoding nor static linking is supported with a
16968 # broken collect2.
16969 hardcode_direct=unsupported
16970 fi
16971 ;;
16972
16973 aix[4-9]*)
16974 if test "$host_cpu" = ia64; then
16975 # On IA64, the linker does run time linking by default, so we don't
16976 # have to do anything special.
16977 aix_use_runtimelinking=no
16978 exp_sym_flag='-Bexport'
16979 no_entry_flag=""
16980 else
16981 # If we're using GNU nm, then we don't want the "-C" option.
16982 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16983 # Also, AIX nm treats weak defined symbols like other global
16984 # defined symbols, whereas GNU nm marks them as "W".
16985 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16986 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'
16987 else
16988 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'
16989 fi
16990 aix_use_runtimelinking=no
16991
16992 # Test if we are trying to use run time linking or normal
16993 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16994 # need to do runtime linking.
16995 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16996 for ld_flag in $LDFLAGS; do
16997 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16998 aix_use_runtimelinking=yes
16999 break
17000 fi
17001 done
17002 ;;
17003 esac
17004
17005 exp_sym_flag='-bexport'
17006 no_entry_flag='-bnoentry'
17007 fi
17008
17009 # When large executables or shared objects are built, AIX ld can
17010 # have problems creating the table of contents. If linking a library
17011 # or program results in "error TOC overflow" add -mminimal-toc to
17012 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17013 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17014
17015 archive_cmds=''
17016 hardcode_direct=yes
17017 hardcode_direct_absolute=yes
17018 hardcode_libdir_separator=':'
17019 link_all_deplibs=yes
17020 file_list_spec='${wl}-f,'
17021
17022 if test "$GCC" = yes; then
17023 case $host_os in aix4.[012]|aix4.[012].*)
17024 # We only want to do this on AIX 4.2 and lower, the check
17025 # below for broken collect2 doesn't work under 4.3+
17026 collect2name=`${CC} -print-prog-name=collect2`
17027 if test -f "$collect2name" &&
17028 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17029 then
17030 # We have reworked collect2
17031 :
17032 else
17033 # We have old collect2
17034 hardcode_direct=unsupported
17035 # It fails to find uninstalled libraries when the uninstalled
17036 # path is not listed in the libpath. Setting hardcode_minus_L
17037 # to unsupported forces relinking
17038 hardcode_minus_L=yes
17039 hardcode_libdir_flag_spec='-L$libdir'
17040 hardcode_libdir_separator=
17041 fi
17042 ;;
17043 esac
17044 shared_flag='-shared'
17045 if test "$aix_use_runtimelinking" = yes; then
17046 shared_flag="$shared_flag "'${wl}-G'
17047 fi
17048 else
17049 # not using gcc
17050 if test "$host_cpu" = ia64; then
17051 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17052 # chokes on -Wl,-G. The following line is correct:
17053 shared_flag='-G'
17054 else
17055 if test "$aix_use_runtimelinking" = yes; then
17056 shared_flag='${wl}-G'
17057 else
17058 shared_flag='${wl}-bM:SRE'
17059 fi
17060 fi
17061 fi
17062
17063 export_dynamic_flag_spec='${wl}-bexpall'
17064 # It seems that -bexpall does not export symbols beginning with
17065 # underscore (_), so it is better to generate a list of symbols to export.
17066 always_export_symbols=yes
17067 if test "$aix_use_runtimelinking" = yes; then
17068 # Warning - without using the other runtime loading flags (-brtl),
17069 # -berok will link without error, but may produce a broken library.
17070 allow_undefined_flag='-berok'
17071 # Determine the default libpath from the value encoded in an
17072 # empty executable.
17073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17074 /* end confdefs.h. */
17075
17076 int
17077 main ()
17078 {
17079
17080 ;
17081 return 0;
17082 }
17083 _ACEOF
17084 if ac_fn_c_try_link "$LINENO"; then :
17085
17086 lt_aix_libpath_sed='
17087 /Import File Strings/,/^$/ {
17088 /^0/ {
17089 s/^0 *\(.*\)$/\1/
17090 p
17091 }
17092 }'
17093 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17094 # Check for a 64-bit object if we didn't find anything.
17095 if test -z "$aix_libpath"; then
17096 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17097 fi
17098 fi
17099 rm -f core conftest.err conftest.$ac_objext \
17100 conftest$ac_exeext conftest.$ac_ext
17101 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17102
17103 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17104 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"
17105 else
17106 if test "$host_cpu" = ia64; then
17107 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17108 allow_undefined_flag="-z nodefs"
17109 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"
17110 else
17111 # Determine the default libpath from the value encoded in an
17112 # empty executable.
17113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17114 /* end confdefs.h. */
17115
17116 int
17117 main ()
17118 {
17119
17120 ;
17121 return 0;
17122 }
17123 _ACEOF
17124 if ac_fn_c_try_link "$LINENO"; then :
17125
17126 lt_aix_libpath_sed='
17127 /Import File Strings/,/^$/ {
17128 /^0/ {
17129 s/^0 *\(.*\)$/\1/
17130 p
17131 }
17132 }'
17133 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17134 # Check for a 64-bit object if we didn't find anything.
17135 if test -z "$aix_libpath"; then
17136 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17137 fi
17138 fi
17139 rm -f core conftest.err conftest.$ac_objext \
17140 conftest$ac_exeext conftest.$ac_ext
17141 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17142
17143 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17144 # Warning - without using the other run time loading flags,
17145 # -berok will link without error, but may produce a broken library.
17146 no_undefined_flag=' ${wl}-bernotok'
17147 allow_undefined_flag=' ${wl}-berok'
17148 if test "$with_gnu_ld" = yes; then
17149 # We only use this code for GNU lds that support --whole-archive.
17150 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17151 else
17152 # Exported symbols can be pulled into shared objects from archives
17153 whole_archive_flag_spec='$convenience'
17154 fi
17155 archive_cmds_need_lc=yes
17156 # This is similar to how AIX traditionally builds its shared libraries.
17157 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'
17158 fi
17159 fi
17160 ;;
17161
17162 amigaos*)
17163 case $host_cpu in
17164 powerpc)
17165 # see comment about AmigaOS4 .so support
17166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17167 archive_expsym_cmds=''
17168 ;;
17169 m68k)
17170 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)'
17171 hardcode_libdir_flag_spec='-L$libdir'
17172 hardcode_minus_L=yes
17173 ;;
17174 esac
17175 ;;
17176
17177 bsdi[45]*)
17178 export_dynamic_flag_spec=-rdynamic
17179 ;;
17180
17181 cygwin* | mingw* | pw32* | cegcc*)
17182 # When not using gcc, we currently assume that we are using
17183 # Microsoft Visual C++.
17184 # hardcode_libdir_flag_spec is actually meaningless, as there is
17185 # no search path for DLLs.
17186 hardcode_libdir_flag_spec=' '
17187 allow_undefined_flag=unsupported
17188 # Tell ltmain to make .lib files, not .a files.
17189 libext=lib
17190 # Tell ltmain to make .dll files, not .so files.
17191 shrext_cmds=".dll"
17192 # FIXME: Setting linknames here is a bad hack.
17193 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17194 # The linker will automatically build a .lib file if we build a DLL.
17195 old_archive_from_new_cmds='true'
17196 # FIXME: Should let the user specify the lib program.
17197 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17198 fix_srcfile_path='`cygpath -w "$srcfile"`'
17199 enable_shared_with_static_runtimes=yes
17200 ;;
17201
17202 darwin* | rhapsody*)
17203
17204
17205 archive_cmds_need_lc=no
17206 hardcode_direct=no
17207 hardcode_automatic=yes
17208 hardcode_shlibpath_var=unsupported
17209 if test "$lt_cv_ld_force_load" = "yes"; then
17210 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\"`'
17211 else
17212 whole_archive_flag_spec=''
17213 fi
17214 link_all_deplibs=yes
17215 allow_undefined_flag="$_lt_dar_allow_undefined"
17216 case $cc_basename in
17217 ifort*) _lt_dar_can_shared=yes ;;
17218 *) _lt_dar_can_shared=$GCC ;;
17219 esac
17220 if test "$_lt_dar_can_shared" = "yes"; then
17221 output_verbose_link_cmd=func_echo_all
17222 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17223 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17224 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}"
17225 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}"
17226
17227 else
17228 ld_shlibs=no
17229 fi
17230
17231 ;;
17232
17233 dgux*)
17234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17235 hardcode_libdir_flag_spec='-L$libdir'
17236 hardcode_shlibpath_var=no
17237 ;;
17238
17239 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17240 # support. Future versions do this automatically, but an explicit c++rt0.o
17241 # does not break anything, and helps significantly (at the cost of a little
17242 # extra space).
17243 freebsd2.2*)
17244 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17245 hardcode_libdir_flag_spec='-R$libdir'
17246 hardcode_direct=yes
17247 hardcode_shlibpath_var=no
17248 ;;
17249
17250 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17251 freebsd2.*)
17252 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17253 hardcode_direct=yes
17254 hardcode_minus_L=yes
17255 hardcode_shlibpath_var=no
17256 ;;
17257
17258 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17259 freebsd* | dragonfly*)
17260 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17261 hardcode_libdir_flag_spec='-R$libdir'
17262 hardcode_direct=yes
17263 hardcode_shlibpath_var=no
17264 ;;
17265
17266 hpux9*)
17267 if test "$GCC" = yes; then
17268 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'
17269 else
17270 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'
17271 fi
17272 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17273 hardcode_libdir_separator=:
17274 hardcode_direct=yes
17275
17276 # hardcode_minus_L: Not really in the search PATH,
17277 # but as the default location of the library.
17278 hardcode_minus_L=yes
17279 export_dynamic_flag_spec='${wl}-E'
17280 ;;
17281
17282 hpux10*)
17283 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17284 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17285 else
17286 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17287 fi
17288 if test "$with_gnu_ld" = no; then
17289 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17290 hardcode_libdir_flag_spec_ld='+b $libdir'
17291 hardcode_libdir_separator=:
17292 hardcode_direct=yes
17293 hardcode_direct_absolute=yes
17294 export_dynamic_flag_spec='${wl}-E'
17295 # hardcode_minus_L: Not really in the search PATH,
17296 # but as the default location of the library.
17297 hardcode_minus_L=yes
17298 fi
17299 ;;
17300
17301 hpux11*)
17302 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17303 case $host_cpu in
17304 hppa*64*)
17305 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17306 ;;
17307 ia64*)
17308 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17309 ;;
17310 *)
17311 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17312 ;;
17313 esac
17314 else
17315 case $host_cpu in
17316 hppa*64*)
17317 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17318 ;;
17319 ia64*)
17320 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17321 ;;
17322 *)
17323
17324 # Older versions of the 11.00 compiler do not understand -b yet
17325 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17327 $as_echo_n "checking if $CC understands -b... " >&6; }
17328 if ${lt_cv_prog_compiler__b+:} false; then :
17329 $as_echo_n "(cached) " >&6
17330 else
17331 lt_cv_prog_compiler__b=no
17332 save_LDFLAGS="$LDFLAGS"
17333 LDFLAGS="$LDFLAGS -b"
17334 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17335 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17336 # The linker can only warn and ignore the option if not recognized
17337 # So say no if there are warnings
17338 if test -s conftest.err; then
17339 # Append any errors to the config.log.
17340 cat conftest.err 1>&5
17341 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17343 if diff conftest.exp conftest.er2 >/dev/null; then
17344 lt_cv_prog_compiler__b=yes
17345 fi
17346 else
17347 lt_cv_prog_compiler__b=yes
17348 fi
17349 fi
17350 $RM -r conftest*
17351 LDFLAGS="$save_LDFLAGS"
17352
17353 fi
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17355 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17356
17357 if test x"$lt_cv_prog_compiler__b" = xyes; then
17358 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17359 else
17360 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17361 fi
17362
17363 ;;
17364 esac
17365 fi
17366 if test "$with_gnu_ld" = no; then
17367 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17368 hardcode_libdir_separator=:
17369
17370 case $host_cpu in
17371 hppa*64*|ia64*)
17372 hardcode_direct=no
17373 hardcode_shlibpath_var=no
17374 ;;
17375 *)
17376 hardcode_direct=yes
17377 hardcode_direct_absolute=yes
17378 export_dynamic_flag_spec='${wl}-E'
17379
17380 # hardcode_minus_L: Not really in the search PATH,
17381 # but as the default location of the library.
17382 hardcode_minus_L=yes
17383 ;;
17384 esac
17385 fi
17386 ;;
17387
17388 irix5* | irix6* | nonstopux*)
17389 if test "$GCC" = yes; then
17390 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'
17391 # Try to use the -exported_symbol ld option, if it does not
17392 # work, assume that -exports_file does not work either and
17393 # implicitly export all symbols.
17394 save_LDFLAGS="$LDFLAGS"
17395 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397 /* end confdefs.h. */
17398 int foo(void) {}
17399 _ACEOF
17400 if ac_fn_c_try_link "$LINENO"; then :
17401 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'
17402
17403 fi
17404 rm -f core conftest.err conftest.$ac_objext \
17405 conftest$ac_exeext conftest.$ac_ext
17406 LDFLAGS="$save_LDFLAGS"
17407 else
17408 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'
17409 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'
17410 fi
17411 archive_cmds_need_lc='no'
17412 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17413 hardcode_libdir_separator=:
17414 inherit_rpath=yes
17415 link_all_deplibs=yes
17416 ;;
17417
17418 netbsd*)
17419 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17420 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17421 else
17422 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17423 fi
17424 hardcode_libdir_flag_spec='-R$libdir'
17425 hardcode_direct=yes
17426 hardcode_shlibpath_var=no
17427 ;;
17428
17429 newsos6)
17430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17431 hardcode_direct=yes
17432 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17433 hardcode_libdir_separator=:
17434 hardcode_shlibpath_var=no
17435 ;;
17436
17437 *nto* | *qnx*)
17438 ;;
17439
17440 openbsd*)
17441 if test -f /usr/libexec/ld.so; then
17442 hardcode_direct=yes
17443 hardcode_shlibpath_var=no
17444 hardcode_direct_absolute=yes
17445 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17446 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17447 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17448 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17449 export_dynamic_flag_spec='${wl}-E'
17450 else
17451 case $host_os in
17452 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17453 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17454 hardcode_libdir_flag_spec='-R$libdir'
17455 ;;
17456 *)
17457 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17458 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17459 ;;
17460 esac
17461 fi
17462 else
17463 ld_shlibs=no
17464 fi
17465 ;;
17466
17467 os2*)
17468 hardcode_libdir_flag_spec='-L$libdir'
17469 hardcode_minus_L=yes
17470 allow_undefined_flag=unsupported
17471 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'
17472 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17473 ;;
17474
17475 osf3*)
17476 if test "$GCC" = yes; then
17477 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17478 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'
17479 else
17480 allow_undefined_flag=' -expect_unresolved \*'
17481 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'
17482 fi
17483 archive_cmds_need_lc='no'
17484 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17485 hardcode_libdir_separator=:
17486 ;;
17487
17488 osf4* | osf5*) # as osf3* with the addition of -msym flag
17489 if test "$GCC" = yes; then
17490 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17491 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'
17492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17493 else
17494 allow_undefined_flag=' -expect_unresolved \*'
17495 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'
17496 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~
17497 $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'
17498
17499 # Both c and cxx compiler support -rpath directly
17500 hardcode_libdir_flag_spec='-rpath $libdir'
17501 fi
17502 archive_cmds_need_lc='no'
17503 hardcode_libdir_separator=:
17504 ;;
17505
17506 solaris*)
17507 no_undefined_flag=' -z defs'
17508 if test "$GCC" = yes; then
17509 wlarc='${wl}'
17510 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17511 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17512 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17513 else
17514 case `$CC -V 2>&1` in
17515 *"Compilers 5.0"*)
17516 wlarc=''
17517 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17518 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17519 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17520 ;;
17521 *)
17522 wlarc='${wl}'
17523 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17524 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17525 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17526 ;;
17527 esac
17528 fi
17529 hardcode_libdir_flag_spec='-R$libdir'
17530 hardcode_shlibpath_var=no
17531 case $host_os in
17532 solaris2.[0-5] | solaris2.[0-5].*) ;;
17533 *)
17534 # The compiler driver will combine and reorder linker options,
17535 # but understands `-z linker_flag'. GCC discards it without `$wl',
17536 # but is careful enough not to reorder.
17537 # Supported since Solaris 2.6 (maybe 2.5.1?)
17538 if test "$GCC" = yes; then
17539 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17540 else
17541 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17542 fi
17543 ;;
17544 esac
17545 link_all_deplibs=yes
17546 ;;
17547
17548 sunos4*)
17549 if test "x$host_vendor" = xsequent; then
17550 # Use $CC to link under sequent, because it throws in some extra .o
17551 # files that make .init and .fini sections work.
17552 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17553 else
17554 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17555 fi
17556 hardcode_libdir_flag_spec='-L$libdir'
17557 hardcode_direct=yes
17558 hardcode_minus_L=yes
17559 hardcode_shlibpath_var=no
17560 ;;
17561
17562 sysv4)
17563 case $host_vendor in
17564 sni)
17565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17566 hardcode_direct=yes # is this really true???
17567 ;;
17568 siemens)
17569 ## LD is ld it makes a PLAMLIB
17570 ## CC just makes a GrossModule.
17571 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17572 reload_cmds='$CC -r -o $output$reload_objs'
17573 hardcode_direct=no
17574 ;;
17575 motorola)
17576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17577 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17578 ;;
17579 esac
17580 runpath_var='LD_RUN_PATH'
17581 hardcode_shlibpath_var=no
17582 ;;
17583
17584 sysv4.3*)
17585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17586 hardcode_shlibpath_var=no
17587 export_dynamic_flag_spec='-Bexport'
17588 ;;
17589
17590 sysv4*MP*)
17591 if test -d /usr/nec; then
17592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17593 hardcode_shlibpath_var=no
17594 runpath_var=LD_RUN_PATH
17595 hardcode_runpath_var=yes
17596 ld_shlibs=yes
17597 fi
17598 ;;
17599
17600 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17601 no_undefined_flag='${wl}-z,text'
17602 archive_cmds_need_lc=no
17603 hardcode_shlibpath_var=no
17604 runpath_var='LD_RUN_PATH'
17605
17606 if test "$GCC" = yes; then
17607 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17608 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17609 else
17610 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17611 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17612 fi
17613 ;;
17614
17615 sysv5* | sco3.2v5* | sco5v6*)
17616 # Note: We can NOT use -z defs as we might desire, because we do not
17617 # link with -lc, and that would cause any symbols used from libc to
17618 # always be unresolved, which means just about no library would
17619 # ever link correctly. If we're not using GNU ld we use -z text
17620 # though, which does catch some bad symbols but isn't as heavy-handed
17621 # as -z defs.
17622 no_undefined_flag='${wl}-z,text'
17623 allow_undefined_flag='${wl}-z,nodefs'
17624 archive_cmds_need_lc=no
17625 hardcode_shlibpath_var=no
17626 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17627 hardcode_libdir_separator=':'
17628 link_all_deplibs=yes
17629 export_dynamic_flag_spec='${wl}-Bexport'
17630 runpath_var='LD_RUN_PATH'
17631
17632 if test "$GCC" = yes; then
17633 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17634 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17635 else
17636 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17637 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17638 fi
17639 ;;
17640
17641 uts4*)
17642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17643 hardcode_libdir_flag_spec='-L$libdir'
17644 hardcode_shlibpath_var=no
17645 ;;
17646
17647 *)
17648 ld_shlibs=no
17649 ;;
17650 esac
17651
17652 if test x$host_vendor = xsni; then
17653 case $host in
17654 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17655 export_dynamic_flag_spec='${wl}-Blargedynsym'
17656 ;;
17657 esac
17658 fi
17659 fi
17660
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17662 $as_echo "$ld_shlibs" >&6; }
17663 test "$ld_shlibs" = no && can_build_shared=no
17664
17665 with_gnu_ld=$with_gnu_ld
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681 #
17682 # Do we need to explicitly link libc?
17683 #
17684 case "x$archive_cmds_need_lc" in
17685 x|xyes)
17686 # Assume -lc should be added
17687 archive_cmds_need_lc=yes
17688
17689 if test "$enable_shared" = yes && test "$GCC" = yes; then
17690 case $archive_cmds in
17691 *'~'*)
17692 # FIXME: we may have to deal with multi-command sequences.
17693 ;;
17694 '$CC '*)
17695 # Test whether the compiler implicitly links with -lc since on some
17696 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17697 # to ld, don't add -lc before -lgcc.
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17699 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17700 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17701 $as_echo_n "(cached) " >&6
17702 else
17703 $RM conftest*
17704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17705
17706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17707 (eval $ac_compile) 2>&5
17708 ac_status=$?
17709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17710 test $ac_status = 0; } 2>conftest.err; then
17711 soname=conftest
17712 lib=conftest
17713 libobjs=conftest.$ac_objext
17714 deplibs=
17715 wl=$lt_prog_compiler_wl
17716 pic_flag=$lt_prog_compiler_pic
17717 compiler_flags=-v
17718 linker_flags=-v
17719 verstring=
17720 output_objdir=.
17721 libname=conftest
17722 lt_save_allow_undefined_flag=$allow_undefined_flag
17723 allow_undefined_flag=
17724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17725 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17726 ac_status=$?
17727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17728 test $ac_status = 0; }
17729 then
17730 lt_cv_archive_cmds_need_lc=no
17731 else
17732 lt_cv_archive_cmds_need_lc=yes
17733 fi
17734 allow_undefined_flag=$lt_save_allow_undefined_flag
17735 else
17736 cat conftest.err 1>&5
17737 fi
17738 $RM conftest*
17739
17740 fi
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17742 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17743 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17744 ;;
17745 esac
17746 fi
17747 ;;
17748 esac
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
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17907 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17908
17909 if test "$GCC" = yes; then
17910 case $host_os in
17911 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17912 *) lt_awk_arg="/^libraries:/" ;;
17913 esac
17914 case $host_os in
17915 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17916 *) lt_sed_strip_eq="s,=/,/,g" ;;
17917 esac
17918 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17919 case $lt_search_path_spec in
17920 *\;*)
17921 # if the path contains ";" then we assume it to be the separator
17922 # otherwise default to the standard path separator (i.e. ":") - it is
17923 # assumed that no part of a normal pathname contains ";" but that should
17924 # okay in the real world where ";" in dirpaths is itself problematic.
17925 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17926 ;;
17927 *)
17928 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17929 ;;
17930 esac
17931 # Ok, now we have the path, separated by spaces, we can step through it
17932 # and add multilib dir if necessary.
17933 lt_tmp_lt_search_path_spec=
17934 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17935 for lt_sys_path in $lt_search_path_spec; do
17936 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17937 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17938 else
17939 test -d "$lt_sys_path" && \
17940 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17941 fi
17942 done
17943 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17944 BEGIN {RS=" "; FS="/|\n";} {
17945 lt_foo="";
17946 lt_count=0;
17947 for (lt_i = NF; lt_i > 0; lt_i--) {
17948 if ($lt_i != "" && $lt_i != ".") {
17949 if ($lt_i == "..") {
17950 lt_count++;
17951 } else {
17952 if (lt_count == 0) {
17953 lt_foo="/" $lt_i lt_foo;
17954 } else {
17955 lt_count--;
17956 }
17957 }
17958 }
17959 }
17960 if (lt_foo != "") { lt_freq[lt_foo]++; }
17961 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17962 }'`
17963 # AWK program above erroneously prepends '/' to C:/dos/paths
17964 # for these hosts.
17965 case $host_os in
17966 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17967 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17968 esac
17969 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17970 else
17971 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17972 fi
17973 library_names_spec=
17974 libname_spec='lib$name'
17975 soname_spec=
17976 shrext_cmds=".so"
17977 postinstall_cmds=
17978 postuninstall_cmds=
17979 finish_cmds=
17980 finish_eval=
17981 shlibpath_var=
17982 shlibpath_overrides_runpath=unknown
17983 version_type=none
17984 dynamic_linker="$host_os ld.so"
17985 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17986 need_lib_prefix=unknown
17987 hardcode_into_libs=no
17988
17989 # when you set need_version to no, make sure it does not cause -set_version
17990 # flags to be left without arguments
17991 need_version=unknown
17992
17993 case $host_os in
17994 aix3*)
17995 version_type=linux
17996 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17997 shlibpath_var=LIBPATH
17998
17999 # AIX 3 has no versioning support, so we append a major version to the name.
18000 soname_spec='${libname}${release}${shared_ext}$major'
18001 ;;
18002
18003 aix[4-9]*)
18004 version_type=linux
18005 need_lib_prefix=no
18006 need_version=no
18007 hardcode_into_libs=yes
18008 if test "$host_cpu" = ia64; then
18009 # AIX 5 supports IA64
18010 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18011 shlibpath_var=LD_LIBRARY_PATH
18012 else
18013 # With GCC up to 2.95.x, collect2 would create an import file
18014 # for dependence libraries. The import file would start with
18015 # the line `#! .'. This would cause the generated library to
18016 # depend on `.', always an invalid library. This was fixed in
18017 # development snapshots of GCC prior to 3.0.
18018 case $host_os in
18019 aix4 | aix4.[01] | aix4.[01].*)
18020 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18021 echo ' yes '
18022 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18023 :
18024 else
18025 can_build_shared=no
18026 fi
18027 ;;
18028 esac
18029 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18030 # soname into executable. Probably we can add versioning support to
18031 # collect2, so additional links can be useful in future.
18032 if test "$aix_use_runtimelinking" = yes; then
18033 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18034 # instead of lib<name>.a to let people know that these are not
18035 # typical AIX shared libraries.
18036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18037 else
18038 # We preserve .a as extension for shared libraries through AIX4.2
18039 # and later when we are not doing run time linking.
18040 library_names_spec='${libname}${release}.a $libname.a'
18041 soname_spec='${libname}${release}${shared_ext}$major'
18042 fi
18043 shlibpath_var=LIBPATH
18044 fi
18045 ;;
18046
18047 amigaos*)
18048 case $host_cpu in
18049 powerpc)
18050 # Since July 2007 AmigaOS4 officially supports .so libraries.
18051 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18053 ;;
18054 m68k)
18055 library_names_spec='$libname.ixlibrary $libname.a'
18056 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18057 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'
18058 ;;
18059 esac
18060 ;;
18061
18062 beos*)
18063 library_names_spec='${libname}${shared_ext}'
18064 dynamic_linker="$host_os ld.so"
18065 shlibpath_var=LIBRARY_PATH
18066 ;;
18067
18068 bsdi[45]*)
18069 version_type=linux
18070 need_version=no
18071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18072 soname_spec='${libname}${release}${shared_ext}$major'
18073 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18074 shlibpath_var=LD_LIBRARY_PATH
18075 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18076 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18077 # the default ld.so.conf also contains /usr/contrib/lib and
18078 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18079 # libtool to hard-code these into programs
18080 ;;
18081
18082 cygwin* | mingw* | pw32* | cegcc*)
18083 version_type=windows
18084 shrext_cmds=".dll"
18085 need_version=no
18086 need_lib_prefix=no
18087
18088 case $GCC,$host_os in
18089 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18090 library_names_spec='$libname.dll.a'
18091 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18092 postinstall_cmds='base_file=`basename \${file}`~
18093 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18094 dldir=$destdir/`dirname \$dlpath`~
18095 test -d \$dldir || mkdir -p \$dldir~
18096 $install_prog $dir/$dlname \$dldir/$dlname~
18097 chmod a+x \$dldir/$dlname~
18098 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18099 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18100 fi'
18101 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18102 dlpath=$dir/\$dldll~
18103 $RM \$dlpath'
18104 shlibpath_overrides_runpath=yes
18105
18106 case $host_os in
18107 cygwin*)
18108 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18109 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18110
18111 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18112 ;;
18113 mingw* | cegcc*)
18114 # MinGW DLLs use traditional 'lib' prefix
18115 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18116 ;;
18117 pw32*)
18118 # pw32 DLLs use 'pw' prefix rather than 'lib'
18119 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18120 ;;
18121 esac
18122 ;;
18123
18124 *)
18125 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18126 ;;
18127 esac
18128 dynamic_linker='Win32 ld.exe'
18129 # FIXME: first we should search . and the directory the executable is in
18130 shlibpath_var=PATH
18131 ;;
18132
18133 darwin* | rhapsody*)
18134 dynamic_linker="$host_os dyld"
18135 version_type=darwin
18136 need_lib_prefix=no
18137 need_version=no
18138 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18139 soname_spec='${libname}${release}${major}$shared_ext'
18140 shlibpath_overrides_runpath=yes
18141 shlibpath_var=DYLD_LIBRARY_PATH
18142 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18143
18144 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18145 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18146 ;;
18147
18148 dgux*)
18149 version_type=linux
18150 need_lib_prefix=no
18151 need_version=no
18152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18153 soname_spec='${libname}${release}${shared_ext}$major'
18154 shlibpath_var=LD_LIBRARY_PATH
18155 ;;
18156
18157 freebsd* | dragonfly*)
18158 # DragonFly does not have aout. When/if they implement a new
18159 # versioning mechanism, adjust this.
18160 if test -x /usr/bin/objformat; then
18161 objformat=`/usr/bin/objformat`
18162 else
18163 case $host_os in
18164 freebsd[23].*) objformat=aout ;;
18165 *) objformat=elf ;;
18166 esac
18167 fi
18168 version_type=freebsd-$objformat
18169 case $version_type in
18170 freebsd-elf*)
18171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18172 need_version=no
18173 need_lib_prefix=no
18174 ;;
18175 freebsd-*)
18176 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18177 need_version=yes
18178 ;;
18179 esac
18180 shlibpath_var=LD_LIBRARY_PATH
18181 case $host_os in
18182 freebsd2.*)
18183 shlibpath_overrides_runpath=yes
18184 ;;
18185 freebsd3.[01]* | freebsdelf3.[01]*)
18186 shlibpath_overrides_runpath=yes
18187 hardcode_into_libs=yes
18188 ;;
18189 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18190 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18191 shlibpath_overrides_runpath=no
18192 hardcode_into_libs=yes
18193 ;;
18194 *) # from 4.6 on, and DragonFly
18195 shlibpath_overrides_runpath=yes
18196 hardcode_into_libs=yes
18197 ;;
18198 esac
18199 ;;
18200
18201 gnu*)
18202 version_type=linux
18203 need_lib_prefix=no
18204 need_version=no
18205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18206 soname_spec='${libname}${release}${shared_ext}$major'
18207 shlibpath_var=LD_LIBRARY_PATH
18208 hardcode_into_libs=yes
18209 ;;
18210
18211 haiku*)
18212 version_type=linux
18213 need_lib_prefix=no
18214 need_version=no
18215 dynamic_linker="$host_os runtime_loader"
18216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18217 soname_spec='${libname}${release}${shared_ext}$major'
18218 shlibpath_var=LIBRARY_PATH
18219 shlibpath_overrides_runpath=yes
18220 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18221 hardcode_into_libs=yes
18222 ;;
18223
18224 hpux9* | hpux10* | hpux11*)
18225 # Give a soname corresponding to the major version so that dld.sl refuses to
18226 # link against other versions.
18227 version_type=sunos
18228 need_lib_prefix=no
18229 need_version=no
18230 case $host_cpu in
18231 ia64*)
18232 shrext_cmds='.so'
18233 hardcode_into_libs=yes
18234 dynamic_linker="$host_os dld.so"
18235 shlibpath_var=LD_LIBRARY_PATH
18236 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18238 soname_spec='${libname}${release}${shared_ext}$major'
18239 if test "X$HPUX_IA64_MODE" = X32; then
18240 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18241 else
18242 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18243 fi
18244 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18245 ;;
18246 hppa*64*)
18247 shrext_cmds='.sl'
18248 hardcode_into_libs=yes
18249 dynamic_linker="$host_os dld.sl"
18250 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18253 soname_spec='${libname}${release}${shared_ext}$major'
18254 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18255 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18256 ;;
18257 *)
18258 shrext_cmds='.sl'
18259 dynamic_linker="$host_os dld.sl"
18260 shlibpath_var=SHLIB_PATH
18261 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18263 soname_spec='${libname}${release}${shared_ext}$major'
18264 ;;
18265 esac
18266 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18267 postinstall_cmds='chmod 555 $lib'
18268 # or fails outright, so override atomically:
18269 install_override_mode=555
18270 ;;
18271
18272 interix[3-9]*)
18273 version_type=linux
18274 need_lib_prefix=no
18275 need_version=no
18276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18277 soname_spec='${libname}${release}${shared_ext}$major'
18278 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18279 shlibpath_var=LD_LIBRARY_PATH
18280 shlibpath_overrides_runpath=no
18281 hardcode_into_libs=yes
18282 ;;
18283
18284 irix5* | irix6* | nonstopux*)
18285 case $host_os in
18286 nonstopux*) version_type=nonstopux ;;
18287 *)
18288 if test "$lt_cv_prog_gnu_ld" = yes; then
18289 version_type=linux
18290 else
18291 version_type=irix
18292 fi ;;
18293 esac
18294 need_lib_prefix=no
18295 need_version=no
18296 soname_spec='${libname}${release}${shared_ext}$major'
18297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18298 case $host_os in
18299 irix5* | nonstopux*)
18300 libsuff= shlibsuff=
18301 ;;
18302 *)
18303 case $LD in # libtool.m4 will add one of these switches to LD
18304 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18305 libsuff= shlibsuff= libmagic=32-bit;;
18306 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18307 libsuff=32 shlibsuff=N32 libmagic=N32;;
18308 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18309 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18310 *) libsuff= shlibsuff= libmagic=never-match;;
18311 esac
18312 ;;
18313 esac
18314 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18315 shlibpath_overrides_runpath=no
18316 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18317 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18318 hardcode_into_libs=yes
18319 ;;
18320
18321 # No shared lib support for Linux oldld, aout, or coff.
18322 linux*oldld* | linux*aout* | linux*coff*)
18323 dynamic_linker=no
18324 ;;
18325
18326 # This must be Linux ELF.
18327
18328 # uclinux* changes (here and below) have been submitted to the libtool
18329 # project, but have not yet been accepted: they are GCC-local changes
18330 # for the time being. (See
18331 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18332 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
18333 version_type=linux
18334 need_lib_prefix=no
18335 need_version=no
18336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18337 soname_spec='${libname}${release}${shared_ext}$major'
18338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18339 shlibpath_var=LD_LIBRARY_PATH
18340 shlibpath_overrides_runpath=no
18341
18342 # Some binutils ld are patched to set DT_RUNPATH
18343 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18344 $as_echo_n "(cached) " >&6
18345 else
18346 lt_cv_shlibpath_overrides_runpath=no
18347 save_LDFLAGS=$LDFLAGS
18348 save_libdir=$libdir
18349 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18350 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18352 /* end confdefs.h. */
18353
18354 int
18355 main ()
18356 {
18357
18358 ;
18359 return 0;
18360 }
18361 _ACEOF
18362 if ac_fn_c_try_link "$LINENO"; then :
18363 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18364 lt_cv_shlibpath_overrides_runpath=yes
18365 fi
18366 fi
18367 rm -f core conftest.err conftest.$ac_objext \
18368 conftest$ac_exeext conftest.$ac_ext
18369 LDFLAGS=$save_LDFLAGS
18370 libdir=$save_libdir
18371
18372 fi
18373
18374 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18375
18376 # This implies no fast_install, which is unacceptable.
18377 # Some rework will be needed to allow for fast_install
18378 # before this can be enabled.
18379 hardcode_into_libs=yes
18380
18381 # Append ld.so.conf contents to the search path
18382 if test -f /etc/ld.so.conf; then
18383 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' ' '`
18384 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18385 fi
18386
18387 # We used to test for /lib/ld.so.1 and disable shared libraries on
18388 # powerpc, because MkLinux only supported shared libraries with the
18389 # GNU dynamic linker. Since this was broken with cross compilers,
18390 # most powerpc-linux boxes support dynamic linking these days and
18391 # people can always --disable-shared, the test was removed, and we
18392 # assume the GNU/Linux dynamic linker is in use.
18393 dynamic_linker='GNU/Linux ld.so'
18394 ;;
18395
18396 netbsd*)
18397 version_type=sunos
18398 need_lib_prefix=no
18399 need_version=no
18400 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18403 dynamic_linker='NetBSD (a.out) ld.so'
18404 else
18405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18406 soname_spec='${libname}${release}${shared_ext}$major'
18407 dynamic_linker='NetBSD ld.elf_so'
18408 fi
18409 shlibpath_var=LD_LIBRARY_PATH
18410 shlibpath_overrides_runpath=yes
18411 hardcode_into_libs=yes
18412 ;;
18413
18414 newsos6)
18415 version_type=linux
18416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18417 shlibpath_var=LD_LIBRARY_PATH
18418 shlibpath_overrides_runpath=yes
18419 ;;
18420
18421 *nto* | *qnx*)
18422 version_type=qnx
18423 need_lib_prefix=no
18424 need_version=no
18425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18426 soname_spec='${libname}${release}${shared_ext}$major'
18427 shlibpath_var=LD_LIBRARY_PATH
18428 shlibpath_overrides_runpath=no
18429 hardcode_into_libs=yes
18430 dynamic_linker='ldqnx.so'
18431 ;;
18432
18433 openbsd*)
18434 version_type=sunos
18435 sys_lib_dlsearch_path_spec="/usr/lib"
18436 need_lib_prefix=no
18437 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18438 case $host_os in
18439 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18440 *) need_version=no ;;
18441 esac
18442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18444 shlibpath_var=LD_LIBRARY_PATH
18445 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18446 case $host_os in
18447 openbsd2.[89] | openbsd2.[89].*)
18448 shlibpath_overrides_runpath=no
18449 ;;
18450 *)
18451 shlibpath_overrides_runpath=yes
18452 ;;
18453 esac
18454 else
18455 shlibpath_overrides_runpath=yes
18456 fi
18457 ;;
18458
18459 os2*)
18460 libname_spec='$name'
18461 shrext_cmds=".dll"
18462 need_lib_prefix=no
18463 library_names_spec='$libname${shared_ext} $libname.a'
18464 dynamic_linker='OS/2 ld.exe'
18465 shlibpath_var=LIBPATH
18466 ;;
18467
18468 osf3* | osf4* | osf5*)
18469 version_type=osf
18470 need_lib_prefix=no
18471 need_version=no
18472 soname_spec='${libname}${release}${shared_ext}$major'
18473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18474 shlibpath_var=LD_LIBRARY_PATH
18475 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18476 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18477 ;;
18478
18479 rdos*)
18480 dynamic_linker=no
18481 ;;
18482
18483 solaris*)
18484 version_type=linux
18485 need_lib_prefix=no
18486 need_version=no
18487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18488 soname_spec='${libname}${release}${shared_ext}$major'
18489 shlibpath_var=LD_LIBRARY_PATH
18490 shlibpath_overrides_runpath=yes
18491 hardcode_into_libs=yes
18492 # ldd complains unless libraries are executable
18493 postinstall_cmds='chmod +x $lib'
18494 ;;
18495
18496 sunos4*)
18497 version_type=sunos
18498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18499 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18500 shlibpath_var=LD_LIBRARY_PATH
18501 shlibpath_overrides_runpath=yes
18502 if test "$with_gnu_ld" = yes; then
18503 need_lib_prefix=no
18504 fi
18505 need_version=yes
18506 ;;
18507
18508 sysv4 | sysv4.3*)
18509 version_type=linux
18510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18511 soname_spec='${libname}${release}${shared_ext}$major'
18512 shlibpath_var=LD_LIBRARY_PATH
18513 case $host_vendor in
18514 sni)
18515 shlibpath_overrides_runpath=no
18516 need_lib_prefix=no
18517 runpath_var=LD_RUN_PATH
18518 ;;
18519 siemens)
18520 need_lib_prefix=no
18521 ;;
18522 motorola)
18523 need_lib_prefix=no
18524 need_version=no
18525 shlibpath_overrides_runpath=no
18526 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18527 ;;
18528 esac
18529 ;;
18530
18531 sysv4*MP*)
18532 if test -d /usr/nec ;then
18533 version_type=linux
18534 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18535 soname_spec='$libname${shared_ext}.$major'
18536 shlibpath_var=LD_LIBRARY_PATH
18537 fi
18538 ;;
18539
18540 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18541 version_type=freebsd-elf
18542 need_lib_prefix=no
18543 need_version=no
18544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18545 soname_spec='${libname}${release}${shared_ext}$major'
18546 shlibpath_var=LD_LIBRARY_PATH
18547 shlibpath_overrides_runpath=yes
18548 hardcode_into_libs=yes
18549 if test "$with_gnu_ld" = yes; then
18550 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18551 else
18552 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18553 case $host_os in
18554 sco3.2v5*)
18555 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18556 ;;
18557 esac
18558 fi
18559 sys_lib_dlsearch_path_spec='/usr/lib'
18560 ;;
18561
18562 tpf*)
18563 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18564 version_type=linux
18565 need_lib_prefix=no
18566 need_version=no
18567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18568 shlibpath_var=LD_LIBRARY_PATH
18569 shlibpath_overrides_runpath=no
18570 hardcode_into_libs=yes
18571 ;;
18572
18573 uts4*)
18574 version_type=linux
18575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18576 soname_spec='${libname}${release}${shared_ext}$major'
18577 shlibpath_var=LD_LIBRARY_PATH
18578 ;;
18579
18580 *)
18581 dynamic_linker=no
18582 ;;
18583 esac
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18585 $as_echo "$dynamic_linker" >&6; }
18586 test "$dynamic_linker" = no && can_build_shared=no
18587
18588 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18589 if test "$GCC" = yes; then
18590 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18591 fi
18592
18593 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18594 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18595 fi
18596 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18597 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18598 fi
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
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18692 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18693 hardcode_action=
18694 if test -n "$hardcode_libdir_flag_spec" ||
18695 test -n "$runpath_var" ||
18696 test "X$hardcode_automatic" = "Xyes" ; then
18697
18698 # We can hardcode non-existent directories.
18699 if test "$hardcode_direct" != no &&
18700 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18701 # have to relink, otherwise we might link with an installed library
18702 # when we should be linking with a yet-to-be-installed one
18703 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18704 test "$hardcode_minus_L" != no; then
18705 # Linking always hardcodes the temporary library directory.
18706 hardcode_action=relink
18707 else
18708 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18709 hardcode_action=immediate
18710 fi
18711 else
18712 # We cannot hardcode anything, or else we can only hardcode existing
18713 # directories.
18714 hardcode_action=unsupported
18715 fi
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18717 $as_echo "$hardcode_action" >&6; }
18718
18719 if test "$hardcode_action" = relink ||
18720 test "$inherit_rpath" = yes; then
18721 # Fast installation is not supported
18722 enable_fast_install=no
18723 elif test "$shlibpath_overrides_runpath" = yes ||
18724 test "$enable_shared" = no; then
18725 # Fast installation is not necessary
18726 enable_fast_install=needless
18727 fi
18728
18729
18730
18731
18732
18733
18734 if test "x$enable_dlopen" != xyes; then
18735 enable_dlopen=unknown
18736 enable_dlopen_self=unknown
18737 enable_dlopen_self_static=unknown
18738 else
18739 lt_cv_dlopen=no
18740 lt_cv_dlopen_libs=
18741
18742 case $host_os in
18743 beos*)
18744 lt_cv_dlopen="load_add_on"
18745 lt_cv_dlopen_libs=
18746 lt_cv_dlopen_self=yes
18747 ;;
18748
18749 mingw* | pw32* | cegcc*)
18750 lt_cv_dlopen="LoadLibrary"
18751 lt_cv_dlopen_libs=
18752 ;;
18753
18754 cygwin*)
18755 lt_cv_dlopen="dlopen"
18756 lt_cv_dlopen_libs=
18757 ;;
18758
18759 darwin*)
18760 # if libdl is installed we need to link against it
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18762 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18763 if ${ac_cv_lib_dl_dlopen+:} false; then :
18764 $as_echo_n "(cached) " >&6
18765 else
18766 ac_check_lib_save_LIBS=$LIBS
18767 LIBS="-ldl $LIBS"
18768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18769 /* end confdefs.h. */
18770
18771 /* Override any GCC internal prototype to avoid an error.
18772 Use char because int might match the return type of a GCC
18773 builtin and then its argument prototype would still apply. */
18774 #ifdef __cplusplus
18775 extern "C"
18776 #endif
18777 char dlopen ();
18778 int
18779 main ()
18780 {
18781 return dlopen ();
18782 ;
18783 return 0;
18784 }
18785 _ACEOF
18786 if ac_fn_c_try_link "$LINENO"; then :
18787 ac_cv_lib_dl_dlopen=yes
18788 else
18789 ac_cv_lib_dl_dlopen=no
18790 fi
18791 rm -f core conftest.err conftest.$ac_objext \
18792 conftest$ac_exeext conftest.$ac_ext
18793 LIBS=$ac_check_lib_save_LIBS
18794 fi
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18796 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18797 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18798 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18799 else
18800
18801 lt_cv_dlopen="dyld"
18802 lt_cv_dlopen_libs=
18803 lt_cv_dlopen_self=yes
18804
18805 fi
18806
18807 ;;
18808
18809 *)
18810 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18811 if test "x$ac_cv_func_shl_load" = xyes; then :
18812 lt_cv_dlopen="shl_load"
18813 else
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18815 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18816 if ${ac_cv_lib_dld_shl_load+:} false; then :
18817 $as_echo_n "(cached) " >&6
18818 else
18819 ac_check_lib_save_LIBS=$LIBS
18820 LIBS="-ldld $LIBS"
18821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18822 /* end confdefs.h. */
18823
18824 /* Override any GCC internal prototype to avoid an error.
18825 Use char because int might match the return type of a GCC
18826 builtin and then its argument prototype would still apply. */
18827 #ifdef __cplusplus
18828 extern "C"
18829 #endif
18830 char shl_load ();
18831 int
18832 main ()
18833 {
18834 return shl_load ();
18835 ;
18836 return 0;
18837 }
18838 _ACEOF
18839 if ac_fn_c_try_link "$LINENO"; then :
18840 ac_cv_lib_dld_shl_load=yes
18841 else
18842 ac_cv_lib_dld_shl_load=no
18843 fi
18844 rm -f core conftest.err conftest.$ac_objext \
18845 conftest$ac_exeext conftest.$ac_ext
18846 LIBS=$ac_check_lib_save_LIBS
18847 fi
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18849 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18850 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18851 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18852 else
18853 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18854 if test "x$ac_cv_func_dlopen" = xyes; then :
18855 lt_cv_dlopen="dlopen"
18856 else
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18858 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18859 if ${ac_cv_lib_dl_dlopen+:} false; then :
18860 $as_echo_n "(cached) " >&6
18861 else
18862 ac_check_lib_save_LIBS=$LIBS
18863 LIBS="-ldl $LIBS"
18864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18865 /* end confdefs.h. */
18866
18867 /* Override any GCC internal prototype to avoid an error.
18868 Use char because int might match the return type of a GCC
18869 builtin and then its argument prototype would still apply. */
18870 #ifdef __cplusplus
18871 extern "C"
18872 #endif
18873 char dlopen ();
18874 int
18875 main ()
18876 {
18877 return dlopen ();
18878 ;
18879 return 0;
18880 }
18881 _ACEOF
18882 if ac_fn_c_try_link "$LINENO"; then :
18883 ac_cv_lib_dl_dlopen=yes
18884 else
18885 ac_cv_lib_dl_dlopen=no
18886 fi
18887 rm -f core conftest.err conftest.$ac_objext \
18888 conftest$ac_exeext conftest.$ac_ext
18889 LIBS=$ac_check_lib_save_LIBS
18890 fi
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18892 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18893 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18894 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18895 else
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18897 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18898 if ${ac_cv_lib_svld_dlopen+:} false; then :
18899 $as_echo_n "(cached) " >&6
18900 else
18901 ac_check_lib_save_LIBS=$LIBS
18902 LIBS="-lsvld $LIBS"
18903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18904 /* end confdefs.h. */
18905
18906 /* Override any GCC internal prototype to avoid an error.
18907 Use char because int might match the return type of a GCC
18908 builtin and then its argument prototype would still apply. */
18909 #ifdef __cplusplus
18910 extern "C"
18911 #endif
18912 char dlopen ();
18913 int
18914 main ()
18915 {
18916 return dlopen ();
18917 ;
18918 return 0;
18919 }
18920 _ACEOF
18921 if ac_fn_c_try_link "$LINENO"; then :
18922 ac_cv_lib_svld_dlopen=yes
18923 else
18924 ac_cv_lib_svld_dlopen=no
18925 fi
18926 rm -f core conftest.err conftest.$ac_objext \
18927 conftest$ac_exeext conftest.$ac_ext
18928 LIBS=$ac_check_lib_save_LIBS
18929 fi
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18931 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18932 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18934 else
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18936 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18937 if ${ac_cv_lib_dld_dld_link+:} false; then :
18938 $as_echo_n "(cached) " >&6
18939 else
18940 ac_check_lib_save_LIBS=$LIBS
18941 LIBS="-ldld $LIBS"
18942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18943 /* end confdefs.h. */
18944
18945 /* Override any GCC internal prototype to avoid an error.
18946 Use char because int might match the return type of a GCC
18947 builtin and then its argument prototype would still apply. */
18948 #ifdef __cplusplus
18949 extern "C"
18950 #endif
18951 char dld_link ();
18952 int
18953 main ()
18954 {
18955 return dld_link ();
18956 ;
18957 return 0;
18958 }
18959 _ACEOF
18960 if ac_fn_c_try_link "$LINENO"; then :
18961 ac_cv_lib_dld_dld_link=yes
18962 else
18963 ac_cv_lib_dld_dld_link=no
18964 fi
18965 rm -f core conftest.err conftest.$ac_objext \
18966 conftest$ac_exeext conftest.$ac_ext
18967 LIBS=$ac_check_lib_save_LIBS
18968 fi
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18970 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18971 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18972 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18973 fi
18974
18975
18976 fi
18977
18978
18979 fi
18980
18981
18982 fi
18983
18984
18985 fi
18986
18987
18988 fi
18989
18990 ;;
18991 esac
18992
18993 if test "x$lt_cv_dlopen" != xno; then
18994 enable_dlopen=yes
18995 else
18996 enable_dlopen=no
18997 fi
18998
18999 case $lt_cv_dlopen in
19000 dlopen)
19001 save_CPPFLAGS="$CPPFLAGS"
19002 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19003
19004 save_LDFLAGS="$LDFLAGS"
19005 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19006
19007 save_LIBS="$LIBS"
19008 LIBS="$lt_cv_dlopen_libs $LIBS"
19009
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19011 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19012 if ${lt_cv_dlopen_self+:} false; then :
19013 $as_echo_n "(cached) " >&6
19014 else
19015 if test "$cross_compiling" = yes; then :
19016 lt_cv_dlopen_self=cross
19017 else
19018 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19019 lt_status=$lt_dlunknown
19020 cat > conftest.$ac_ext <<_LT_EOF
19021 #line 19021 "configure"
19022 #include "confdefs.h"
19023
19024 #if HAVE_DLFCN_H
19025 #include <dlfcn.h>
19026 #endif
19027
19028 #include <stdio.h>
19029
19030 #ifdef RTLD_GLOBAL
19031 # define LT_DLGLOBAL RTLD_GLOBAL
19032 #else
19033 # ifdef DL_GLOBAL
19034 # define LT_DLGLOBAL DL_GLOBAL
19035 # else
19036 # define LT_DLGLOBAL 0
19037 # endif
19038 #endif
19039
19040 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19041 find out it does not work in some platform. */
19042 #ifndef LT_DLLAZY_OR_NOW
19043 # ifdef RTLD_LAZY
19044 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19045 # else
19046 # ifdef DL_LAZY
19047 # define LT_DLLAZY_OR_NOW DL_LAZY
19048 # else
19049 # ifdef RTLD_NOW
19050 # define LT_DLLAZY_OR_NOW RTLD_NOW
19051 # else
19052 # ifdef DL_NOW
19053 # define LT_DLLAZY_OR_NOW DL_NOW
19054 # else
19055 # define LT_DLLAZY_OR_NOW 0
19056 # endif
19057 # endif
19058 # endif
19059 # endif
19060 #endif
19061
19062 /* When -fvisbility=hidden is used, assume the code has been annotated
19063 correspondingly for the symbols needed. */
19064 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19065 void fnord () __attribute__((visibility("default")));
19066 #endif
19067
19068 void fnord () { int i=42; }
19069 int main ()
19070 {
19071 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19072 int status = $lt_dlunknown;
19073
19074 if (self)
19075 {
19076 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19077 else
19078 {
19079 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19080 else puts (dlerror ());
19081 }
19082 /* dlclose (self); */
19083 }
19084 else
19085 puts (dlerror ());
19086
19087 return status;
19088 }
19089 _LT_EOF
19090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19091 (eval $ac_link) 2>&5
19092 ac_status=$?
19093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19094 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19095 (./conftest; exit; ) >&5 2>/dev/null
19096 lt_status=$?
19097 case x$lt_status in
19098 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19099 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19100 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19101 esac
19102 else :
19103 # compilation failed
19104 lt_cv_dlopen_self=no
19105 fi
19106 fi
19107 rm -fr conftest*
19108
19109
19110 fi
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19112 $as_echo "$lt_cv_dlopen_self" >&6; }
19113
19114 if test "x$lt_cv_dlopen_self" = xyes; then
19115 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19117 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19118 if ${lt_cv_dlopen_self_static+:} false; then :
19119 $as_echo_n "(cached) " >&6
19120 else
19121 if test "$cross_compiling" = yes; then :
19122 lt_cv_dlopen_self_static=cross
19123 else
19124 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19125 lt_status=$lt_dlunknown
19126 cat > conftest.$ac_ext <<_LT_EOF
19127 #line 19127 "configure"
19128 #include "confdefs.h"
19129
19130 #if HAVE_DLFCN_H
19131 #include <dlfcn.h>
19132 #endif
19133
19134 #include <stdio.h>
19135
19136 #ifdef RTLD_GLOBAL
19137 # define LT_DLGLOBAL RTLD_GLOBAL
19138 #else
19139 # ifdef DL_GLOBAL
19140 # define LT_DLGLOBAL DL_GLOBAL
19141 # else
19142 # define LT_DLGLOBAL 0
19143 # endif
19144 #endif
19145
19146 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19147 find out it does not work in some platform. */
19148 #ifndef LT_DLLAZY_OR_NOW
19149 # ifdef RTLD_LAZY
19150 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19151 # else
19152 # ifdef DL_LAZY
19153 # define LT_DLLAZY_OR_NOW DL_LAZY
19154 # else
19155 # ifdef RTLD_NOW
19156 # define LT_DLLAZY_OR_NOW RTLD_NOW
19157 # else
19158 # ifdef DL_NOW
19159 # define LT_DLLAZY_OR_NOW DL_NOW
19160 # else
19161 # define LT_DLLAZY_OR_NOW 0
19162 # endif
19163 # endif
19164 # endif
19165 # endif
19166 #endif
19167
19168 /* When -fvisbility=hidden is used, assume the code has been annotated
19169 correspondingly for the symbols needed. */
19170 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19171 void fnord () __attribute__((visibility("default")));
19172 #endif
19173
19174 void fnord () { int i=42; }
19175 int main ()
19176 {
19177 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19178 int status = $lt_dlunknown;
19179
19180 if (self)
19181 {
19182 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19183 else
19184 {
19185 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19186 else puts (dlerror ());
19187 }
19188 /* dlclose (self); */
19189 }
19190 else
19191 puts (dlerror ());
19192
19193 return status;
19194 }
19195 _LT_EOF
19196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19197 (eval $ac_link) 2>&5
19198 ac_status=$?
19199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19200 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19201 (./conftest; exit; ) >&5 2>/dev/null
19202 lt_status=$?
19203 case x$lt_status in
19204 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19205 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19206 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19207 esac
19208 else :
19209 # compilation failed
19210 lt_cv_dlopen_self_static=no
19211 fi
19212 fi
19213 rm -fr conftest*
19214
19215
19216 fi
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19218 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19219 fi
19220
19221 CPPFLAGS="$save_CPPFLAGS"
19222 LDFLAGS="$save_LDFLAGS"
19223 LIBS="$save_LIBS"
19224 ;;
19225 esac
19226
19227 case $lt_cv_dlopen_self in
19228 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19229 *) enable_dlopen_self=unknown ;;
19230 esac
19231
19232 case $lt_cv_dlopen_self_static in
19233 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19234 *) enable_dlopen_self_static=unknown ;;
19235 esac
19236 fi
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254 striplib=
19255 old_striplib=
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19257 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19258 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19259 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19260 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19262 $as_echo "yes" >&6; }
19263 else
19264 # FIXME - insert some real tests, host_os isn't really good enough
19265 case $host_os in
19266 darwin*)
19267 if test -n "$STRIP" ; then
19268 striplib="$STRIP -x"
19269 old_striplib="$STRIP -S"
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19271 $as_echo "yes" >&6; }
19272 else
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19274 $as_echo "no" >&6; }
19275 fi
19276 ;;
19277 *)
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19279 $as_echo "no" >&6; }
19280 ;;
19281 esac
19282 fi
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295 # Report which library types will actually be built
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19297 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19299 $as_echo "$can_build_shared" >&6; }
19300
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19302 $as_echo_n "checking whether to build shared libraries... " >&6; }
19303 test "$can_build_shared" = "no" && enable_shared=no
19304
19305 # On AIX, shared libraries and static libraries use the same namespace, and
19306 # are all built from PIC.
19307 case $host_os in
19308 aix3*)
19309 test "$enable_shared" = yes && enable_static=no
19310 if test -n "$RANLIB"; then
19311 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19312 postinstall_cmds='$RANLIB $lib'
19313 fi
19314 ;;
19315
19316 aix[4-9]*)
19317 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19318 test "$enable_shared" = yes && enable_static=no
19319 fi
19320 ;;
19321 esac
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19323 $as_echo "$enable_shared" >&6; }
19324
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19326 $as_echo_n "checking whether to build static libraries... " >&6; }
19327 # Make sure either enable_shared or enable_static is yes.
19328 test "$enable_shared" = yes || enable_static=yes
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19330 $as_echo "$enable_static" >&6; }
19331
19332
19333
19334
19335 fi
19336 ac_ext=cpp
19337 ac_cpp='$CXXCPP $CPPFLAGS'
19338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19341
19342 CC="$lt_save_CC"
19343
19344 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19345 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19346 (test "X$CXX" != "Xg++"))) ; then
19347 ac_ext=cpp
19348 ac_cpp='$CXXCPP $CPPFLAGS'
19349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19353 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19354 if test -z "$CXXCPP"; then
19355 if ${ac_cv_prog_CXXCPP+:} false; then :
19356 $as_echo_n "(cached) " >&6
19357 else
19358 # Double quotes because CXXCPP needs to be expanded
19359 for CXXCPP in "$CXX -E" "/lib/cpp"
19360 do
19361 ac_preproc_ok=false
19362 for ac_cxx_preproc_warn_flag in '' yes
19363 do
19364 # Use a header file that comes with gcc, so configuring glibc
19365 # with a fresh cross-compiler works.
19366 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19367 # <limits.h> exists even on freestanding compilers.
19368 # On the NeXT, cc -E runs the code through the compiler's parser,
19369 # not just through cpp. "Syntax error" is here to catch this case.
19370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19371 /* end confdefs.h. */
19372 #ifdef __STDC__
19373 # include <limits.h>
19374 #else
19375 # include <assert.h>
19376 #endif
19377 Syntax error
19378 _ACEOF
19379 if ac_fn_cxx_try_cpp "$LINENO"; then :
19380
19381 else
19382 # Broken: fails on valid input.
19383 continue
19384 fi
19385 rm -f conftest.err conftest.i conftest.$ac_ext
19386
19387 # OK, works on sane cases. Now check whether nonexistent headers
19388 # can be detected and how.
19389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19390 /* end confdefs.h. */
19391 #include <ac_nonexistent.h>
19392 _ACEOF
19393 if ac_fn_cxx_try_cpp "$LINENO"; then :
19394 # Broken: success on invalid input.
19395 continue
19396 else
19397 # Passes both tests.
19398 ac_preproc_ok=:
19399 break
19400 fi
19401 rm -f conftest.err conftest.i conftest.$ac_ext
19402
19403 done
19404 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19405 rm -f conftest.i conftest.err conftest.$ac_ext
19406 if $ac_preproc_ok; then :
19407 break
19408 fi
19409
19410 done
19411 ac_cv_prog_CXXCPP=$CXXCPP
19412
19413 fi
19414 CXXCPP=$ac_cv_prog_CXXCPP
19415 else
19416 ac_cv_prog_CXXCPP=$CXXCPP
19417 fi
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19419 $as_echo "$CXXCPP" >&6; }
19420 ac_preproc_ok=false
19421 for ac_cxx_preproc_warn_flag in '' yes
19422 do
19423 # Use a header file that comes with gcc, so configuring glibc
19424 # with a fresh cross-compiler works.
19425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19426 # <limits.h> exists even on freestanding compilers.
19427 # On the NeXT, cc -E runs the code through the compiler's parser,
19428 # not just through cpp. "Syntax error" is here to catch this case.
19429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19430 /* end confdefs.h. */
19431 #ifdef __STDC__
19432 # include <limits.h>
19433 #else
19434 # include <assert.h>
19435 #endif
19436 Syntax error
19437 _ACEOF
19438 if ac_fn_cxx_try_cpp "$LINENO"; then :
19439
19440 else
19441 # Broken: fails on valid input.
19442 continue
19443 fi
19444 rm -f conftest.err conftest.i conftest.$ac_ext
19445
19446 # OK, works on sane cases. Now check whether nonexistent headers
19447 # can be detected and how.
19448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19449 /* end confdefs.h. */
19450 #include <ac_nonexistent.h>
19451 _ACEOF
19452 if ac_fn_cxx_try_cpp "$LINENO"; then :
19453 # Broken: success on invalid input.
19454 continue
19455 else
19456 # Passes both tests.
19457 ac_preproc_ok=:
19458 break
19459 fi
19460 rm -f conftest.err conftest.i conftest.$ac_ext
19461
19462 done
19463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19464 rm -f conftest.i conftest.err conftest.$ac_ext
19465 if $ac_preproc_ok; then :
19466
19467 else
19468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19470 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19471 See \`config.log' for more details" "$LINENO" 5; }
19472 fi
19473
19474 ac_ext=cpp
19475 ac_cpp='$CXXCPP $CPPFLAGS'
19476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19479
19480 else
19481 _lt_caught_CXX_error=yes
19482 fi
19483
19484 ac_ext=cpp
19485 ac_cpp='$CXXCPP $CPPFLAGS'
19486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19489
19490 archive_cmds_need_lc_CXX=no
19491 allow_undefined_flag_CXX=
19492 always_export_symbols_CXX=no
19493 archive_expsym_cmds_CXX=
19494 compiler_needs_object_CXX=no
19495 export_dynamic_flag_spec_CXX=
19496 hardcode_direct_CXX=no
19497 hardcode_direct_absolute_CXX=no
19498 hardcode_libdir_flag_spec_CXX=
19499 hardcode_libdir_flag_spec_ld_CXX=
19500 hardcode_libdir_separator_CXX=
19501 hardcode_minus_L_CXX=no
19502 hardcode_shlibpath_var_CXX=unsupported
19503 hardcode_automatic_CXX=no
19504 inherit_rpath_CXX=no
19505 module_cmds_CXX=
19506 module_expsym_cmds_CXX=
19507 link_all_deplibs_CXX=unknown
19508 old_archive_cmds_CXX=$old_archive_cmds
19509 reload_flag_CXX=$reload_flag
19510 reload_cmds_CXX=$reload_cmds
19511 no_undefined_flag_CXX=
19512 whole_archive_flag_spec_CXX=
19513 enable_shared_with_static_runtimes_CXX=no
19514
19515 # Source file extension for C++ test sources.
19516 ac_ext=cpp
19517
19518 # Object file extension for compiled C++ test sources.
19519 objext=o
19520 objext_CXX=$objext
19521
19522 # No sense in running all these tests if we already determined that
19523 # the CXX compiler isn't working. Some variables (like enable_shared)
19524 # are currently assumed to apply to all compilers on this platform,
19525 # and will be corrupted by setting them based on a non-working compiler.
19526 if test "$_lt_caught_CXX_error" != yes; then
19527 # Code to be used in simple compile tests
19528 lt_simple_compile_test_code="int some_variable = 0;"
19529
19530 # Code to be used in simple link tests
19531 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19532
19533 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19534
19535
19536
19537
19538
19539
19540 # If no C compiler was specified, use CC.
19541 LTCC=${LTCC-"$CC"}
19542
19543 # If no C compiler flags were specified, use CFLAGS.
19544 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19545
19546 # Allow CC to be a program name with arguments.
19547 compiler=$CC
19548
19549
19550 # save warnings/boilerplate of simple test code
19551 ac_outfile=conftest.$ac_objext
19552 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19553 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19554 _lt_compiler_boilerplate=`cat conftest.err`
19555 $RM conftest*
19556
19557 ac_outfile=conftest.$ac_objext
19558 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19559 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19560 _lt_linker_boilerplate=`cat conftest.err`
19561 $RM -r conftest*
19562
19563
19564 # Allow CC to be a program name with arguments.
19565 lt_save_CC=$CC
19566 lt_save_LD=$LD
19567 lt_save_GCC=$GCC
19568 GCC=$GXX
19569 lt_save_with_gnu_ld=$with_gnu_ld
19570 lt_save_path_LD=$lt_cv_path_LD
19571 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19572 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19573 else
19574 $as_unset lt_cv_prog_gnu_ld
19575 fi
19576 if test -n "${lt_cv_path_LDCXX+set}"; then
19577 lt_cv_path_LD=$lt_cv_path_LDCXX
19578 else
19579 $as_unset lt_cv_path_LD
19580 fi
19581 test -z "${LDCXX+set}" || LD=$LDCXX
19582 CC=${CXX-"c++"}
19583 compiler=$CC
19584 compiler_CXX=$CC
19585 for cc_temp in $compiler""; do
19586 case $cc_temp in
19587 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19588 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19589 \-*) ;;
19590 *) break;;
19591 esac
19592 done
19593 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19594
19595
19596 if test -n "$compiler"; then
19597 # We don't want -fno-exception when compiling C++ code, so set the
19598 # no_builtin_flag separately
19599 if test "$GXX" = yes; then
19600 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19601 else
19602 lt_prog_compiler_no_builtin_flag_CXX=
19603 fi
19604
19605 if test "$GXX" = yes; then
19606 # Set up default GNU C++ configuration
19607
19608
19609
19610 # Check whether --with-gnu-ld was given.
19611 if test "${with_gnu_ld+set}" = set; then :
19612 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19613 else
19614 with_gnu_ld=no
19615 fi
19616
19617 ac_prog=ld
19618 if test "$GCC" = yes; then
19619 # Check if gcc -print-prog-name=ld gives a path.
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19621 $as_echo_n "checking for ld used by $CC... " >&6; }
19622 case $host in
19623 *-*-mingw*)
19624 # gcc leaves a trailing carriage return which upsets mingw
19625 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19626 *)
19627 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19628 esac
19629 case $ac_prog in
19630 # Accept absolute paths.
19631 [\\/]* | ?:[\\/]*)
19632 re_direlt='/[^/][^/]*/\.\./'
19633 # Canonicalize the pathname of ld
19634 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19635 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19636 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19637 done
19638 test -z "$LD" && LD="$ac_prog"
19639 ;;
19640 "")
19641 # If it fails, then pretend we aren't using GCC.
19642 ac_prog=ld
19643 ;;
19644 *)
19645 # If it is relative, then search for the first ld in PATH.
19646 with_gnu_ld=unknown
19647 ;;
19648 esac
19649 elif test "$with_gnu_ld" = yes; then
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19651 $as_echo_n "checking for GNU ld... " >&6; }
19652 else
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19654 $as_echo_n "checking for non-GNU ld... " >&6; }
19655 fi
19656 if ${lt_cv_path_LD+:} false; then :
19657 $as_echo_n "(cached) " >&6
19658 else
19659 if test -z "$LD"; then
19660 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19661 for ac_dir in $PATH; do
19662 IFS="$lt_save_ifs"
19663 test -z "$ac_dir" && ac_dir=.
19664 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19665 lt_cv_path_LD="$ac_dir/$ac_prog"
19666 # Check to see if the program is GNU ld. I'd rather use --version,
19667 # but apparently some variants of GNU ld only accept -v.
19668 # Break only if it was the GNU/non-GNU ld that we prefer.
19669 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19670 *GNU* | *'with BFD'*)
19671 test "$with_gnu_ld" != no && break
19672 ;;
19673 *)
19674 test "$with_gnu_ld" != yes && break
19675 ;;
19676 esac
19677 fi
19678 done
19679 IFS="$lt_save_ifs"
19680 else
19681 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19682 fi
19683 fi
19684
19685 LD="$lt_cv_path_LD"
19686 if test -n "$LD"; then
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19688 $as_echo "$LD" >&6; }
19689 else
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19691 $as_echo "no" >&6; }
19692 fi
19693 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19695 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19696 if ${lt_cv_prog_gnu_ld+:} false; then :
19697 $as_echo_n "(cached) " >&6
19698 else
19699 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19700 case `$LD -v 2>&1 </dev/null` in
19701 *GNU* | *'with BFD'*)
19702 lt_cv_prog_gnu_ld=yes
19703 ;;
19704 *)
19705 lt_cv_prog_gnu_ld=no
19706 ;;
19707 esac
19708 fi
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19710 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19711 with_gnu_ld=$lt_cv_prog_gnu_ld
19712
19713
19714
19715
19716
19717
19718
19719 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19720 # archiving commands below assume that GNU ld is being used.
19721 if test "$with_gnu_ld" = yes; then
19722 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19723 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'
19724
19725 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19726 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19727
19728 # If archive_cmds runs LD, not CC, wlarc should be empty
19729 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19730 # investigate it a little bit more. (MM)
19731 wlarc='${wl}'
19732
19733 # ancient GNU ld didn't support --whole-archive et. al.
19734 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19735 $GREP 'no-whole-archive' > /dev/null; then
19736 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19737 else
19738 whole_archive_flag_spec_CXX=
19739 fi
19740 else
19741 with_gnu_ld=no
19742 wlarc=
19743
19744 # A generic and very simple default shared library creation
19745 # command for GNU C++ for the case where it uses the native
19746 # linker, instead of GNU ld. If possible, this setting should
19747 # overridden to take advantage of the native linker features on
19748 # the platform it is being used on.
19749 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19750 fi
19751
19752 # Commands to make compiler produce verbose output that lists
19753 # what "hidden" libraries, object files and flags are used when
19754 # linking a shared library.
19755 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19756
19757 else
19758 GXX=no
19759 with_gnu_ld=no
19760 wlarc=
19761 fi
19762
19763 # PORTME: fill in a description of your system's C++ link characteristics
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19765 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19766 ld_shlibs_CXX=yes
19767 case $host_os in
19768 aix3*)
19769 # FIXME: insert proper C++ library support
19770 ld_shlibs_CXX=no
19771 ;;
19772 aix[4-9]*)
19773 if test "$host_cpu" = ia64; then
19774 # On IA64, the linker does run time linking by default, so we don't
19775 # have to do anything special.
19776 aix_use_runtimelinking=no
19777 exp_sym_flag='-Bexport'
19778 no_entry_flag=""
19779 else
19780 aix_use_runtimelinking=no
19781
19782 # Test if we are trying to use run time linking or normal
19783 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19784 # need to do runtime linking.
19785 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19786 for ld_flag in $LDFLAGS; do
19787 case $ld_flag in
19788 *-brtl*)
19789 aix_use_runtimelinking=yes
19790 break
19791 ;;
19792 esac
19793 done
19794 ;;
19795 esac
19796
19797 exp_sym_flag='-bexport'
19798 no_entry_flag='-bnoentry'
19799 fi
19800
19801 # When large executables or shared objects are built, AIX ld can
19802 # have problems creating the table of contents. If linking a library
19803 # or program results in "error TOC overflow" add -mminimal-toc to
19804 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19805 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19806
19807 archive_cmds_CXX=''
19808 hardcode_direct_CXX=yes
19809 hardcode_direct_absolute_CXX=yes
19810 hardcode_libdir_separator_CXX=':'
19811 link_all_deplibs_CXX=yes
19812 file_list_spec_CXX='${wl}-f,'
19813
19814 if test "$GXX" = yes; then
19815 case $host_os in aix4.[012]|aix4.[012].*)
19816 # We only want to do this on AIX 4.2 and lower, the check
19817 # below for broken collect2 doesn't work under 4.3+
19818 collect2name=`${CC} -print-prog-name=collect2`
19819 if test -f "$collect2name" &&
19820 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19821 then
19822 # We have reworked collect2
19823 :
19824 else
19825 # We have old collect2
19826 hardcode_direct_CXX=unsupported
19827 # It fails to find uninstalled libraries when the uninstalled
19828 # path is not listed in the libpath. Setting hardcode_minus_L
19829 # to unsupported forces relinking
19830 hardcode_minus_L_CXX=yes
19831 hardcode_libdir_flag_spec_CXX='-L$libdir'
19832 hardcode_libdir_separator_CXX=
19833 fi
19834 esac
19835 shared_flag='-shared'
19836 if test "$aix_use_runtimelinking" = yes; then
19837 shared_flag="$shared_flag "'${wl}-G'
19838 fi
19839 else
19840 # not using gcc
19841 if test "$host_cpu" = ia64; then
19842 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19843 # chokes on -Wl,-G. The following line is correct:
19844 shared_flag='-G'
19845 else
19846 if test "$aix_use_runtimelinking" = yes; then
19847 shared_flag='${wl}-G'
19848 else
19849 shared_flag='${wl}-bM:SRE'
19850 fi
19851 fi
19852 fi
19853
19854 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19855 # It seems that -bexpall does not export symbols beginning with
19856 # underscore (_), so it is better to generate a list of symbols to
19857 # export.
19858 always_export_symbols_CXX=yes
19859 if test "$aix_use_runtimelinking" = yes; then
19860 # Warning - without using the other runtime loading flags (-brtl),
19861 # -berok will link without error, but may produce a broken library.
19862 allow_undefined_flag_CXX='-berok'
19863 # Determine the default libpath from the value encoded in an empty
19864 # executable.
19865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19866 /* end confdefs.h. */
19867
19868 int
19869 main ()
19870 {
19871
19872 ;
19873 return 0;
19874 }
19875 _ACEOF
19876 if ac_fn_cxx_try_link "$LINENO"; then :
19877
19878 lt_aix_libpath_sed='
19879 /Import File Strings/,/^$/ {
19880 /^0/ {
19881 s/^0 *\(.*\)$/\1/
19882 p
19883 }
19884 }'
19885 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19886 # Check for a 64-bit object if we didn't find anything.
19887 if test -z "$aix_libpath"; then
19888 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19889 fi
19890 fi
19891 rm -f core conftest.err conftest.$ac_objext \
19892 conftest$ac_exeext conftest.$ac_ext
19893 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19894
19895 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19896
19897 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"
19898 else
19899 if test "$host_cpu" = ia64; then
19900 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19901 allow_undefined_flag_CXX="-z nodefs"
19902 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"
19903 else
19904 # Determine the default libpath from the value encoded in an
19905 # empty executable.
19906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19907 /* end confdefs.h. */
19908
19909 int
19910 main ()
19911 {
19912
19913 ;
19914 return 0;
19915 }
19916 _ACEOF
19917 if ac_fn_cxx_try_link "$LINENO"; then :
19918
19919 lt_aix_libpath_sed='
19920 /Import File Strings/,/^$/ {
19921 /^0/ {
19922 s/^0 *\(.*\)$/\1/
19923 p
19924 }
19925 }'
19926 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19927 # Check for a 64-bit object if we didn't find anything.
19928 if test -z "$aix_libpath"; then
19929 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19930 fi
19931 fi
19932 rm -f core conftest.err conftest.$ac_objext \
19933 conftest$ac_exeext conftest.$ac_ext
19934 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19935
19936 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19937 # Warning - without using the other run time loading flags,
19938 # -berok will link without error, but may produce a broken library.
19939 no_undefined_flag_CXX=' ${wl}-bernotok'
19940 allow_undefined_flag_CXX=' ${wl}-berok'
19941 if test "$with_gnu_ld" = yes; then
19942 # We only use this code for GNU lds that support --whole-archive.
19943 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19944 else
19945 # Exported symbols can be pulled into shared objects from archives
19946 whole_archive_flag_spec_CXX='$convenience'
19947 fi
19948 archive_cmds_need_lc_CXX=yes
19949 # This is similar to how AIX traditionally builds its shared
19950 # libraries.
19951 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'
19952 fi
19953 fi
19954 ;;
19955
19956 beos*)
19957 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19958 allow_undefined_flag_CXX=unsupported
19959 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19960 # support --undefined. This deserves some investigation. FIXME
19961 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19962 else
19963 ld_shlibs_CXX=no
19964 fi
19965 ;;
19966
19967 chorus*)
19968 case $cc_basename in
19969 *)
19970 # FIXME: insert proper C++ library support
19971 ld_shlibs_CXX=no
19972 ;;
19973 esac
19974 ;;
19975
19976 cygwin* | mingw* | pw32* | cegcc*)
19977 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19978 # as there is no search path for DLLs.
19979 hardcode_libdir_flag_spec_CXX='-L$libdir'
19980 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19981 allow_undefined_flag_CXX=unsupported
19982 always_export_symbols_CXX=no
19983 enable_shared_with_static_runtimes_CXX=yes
19984
19985 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19986 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'
19987 # If the export-symbols file already is a .def file (1st line
19988 # is EXPORTS), use it as is; otherwise, prepend...
19989 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19990 cp $export_symbols $output_objdir/$soname.def;
19991 else
19992 echo EXPORTS > $output_objdir/$soname.def;
19993 cat $export_symbols >> $output_objdir/$soname.def;
19994 fi~
19995 $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'
19996 else
19997 ld_shlibs_CXX=no
19998 fi
19999 ;;
20000 darwin* | rhapsody*)
20001
20002
20003 archive_cmds_need_lc_CXX=no
20004 hardcode_direct_CXX=no
20005 hardcode_automatic_CXX=yes
20006 hardcode_shlibpath_var_CXX=unsupported
20007 if test "$lt_cv_ld_force_load" = "yes"; then
20008 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\"`'
20009 else
20010 whole_archive_flag_spec_CXX=''
20011 fi
20012 link_all_deplibs_CXX=yes
20013 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20014 case $cc_basename in
20015 ifort*) _lt_dar_can_shared=yes ;;
20016 *) _lt_dar_can_shared=$GCC ;;
20017 esac
20018 if test "$_lt_dar_can_shared" = "yes"; then
20019 output_verbose_link_cmd=func_echo_all
20020 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}"
20021 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20022 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}"
20023 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}"
20024 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20025 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}"
20026 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}"
20027 fi
20028
20029 else
20030 ld_shlibs_CXX=no
20031 fi
20032
20033 ;;
20034
20035 dgux*)
20036 case $cc_basename in
20037 ec++*)
20038 # FIXME: insert proper C++ library support
20039 ld_shlibs_CXX=no
20040 ;;
20041 ghcx*)
20042 # Green Hills C++ Compiler
20043 # FIXME: insert proper C++ library support
20044 ld_shlibs_CXX=no
20045 ;;
20046 *)
20047 # FIXME: insert proper C++ library support
20048 ld_shlibs_CXX=no
20049 ;;
20050 esac
20051 ;;
20052
20053 freebsd2.*)
20054 # C++ shared libraries reported to be fairly broken before
20055 # switch to ELF
20056 ld_shlibs_CXX=no
20057 ;;
20058
20059 freebsd-elf*)
20060 archive_cmds_need_lc_CXX=no
20061 ;;
20062
20063 freebsd* | dragonfly*)
20064 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20065 # conventions
20066 ld_shlibs_CXX=yes
20067 ;;
20068
20069 gnu*)
20070 ;;
20071
20072 haiku*)
20073 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20074 link_all_deplibs_CXX=yes
20075 ;;
20076
20077 hpux9*)
20078 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20079 hardcode_libdir_separator_CXX=:
20080 export_dynamic_flag_spec_CXX='${wl}-E'
20081 hardcode_direct_CXX=yes
20082 hardcode_minus_L_CXX=yes # Not in the search PATH,
20083 # but as the default
20084 # location of the library.
20085
20086 case $cc_basename in
20087 CC*)
20088 # FIXME: insert proper C++ library support
20089 ld_shlibs_CXX=no
20090 ;;
20091 aCC*)
20092 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'
20093 # Commands to make compiler produce verbose output that lists
20094 # what "hidden" libraries, object files and flags are used when
20095 # linking a shared library.
20096 #
20097 # There doesn't appear to be a way to prevent this compiler from
20098 # explicitly linking system object files so we need to strip them
20099 # from the output so that they don't get included in the library
20100 # dependencies.
20101 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"'
20102 ;;
20103 *)
20104 if test "$GXX" = yes; then
20105 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'
20106 else
20107 # FIXME: insert proper C++ library support
20108 ld_shlibs_CXX=no
20109 fi
20110 ;;
20111 esac
20112 ;;
20113
20114 hpux10*|hpux11*)
20115 if test $with_gnu_ld = no; then
20116 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20117 hardcode_libdir_separator_CXX=:
20118
20119 case $host_cpu in
20120 hppa*64*|ia64*)
20121 ;;
20122 *)
20123 export_dynamic_flag_spec_CXX='${wl}-E'
20124 ;;
20125 esac
20126 fi
20127 case $host_cpu in
20128 hppa*64*|ia64*)
20129 hardcode_direct_CXX=no
20130 hardcode_shlibpath_var_CXX=no
20131 ;;
20132 *)
20133 hardcode_direct_CXX=yes
20134 hardcode_direct_absolute_CXX=yes
20135 hardcode_minus_L_CXX=yes # Not in the search PATH,
20136 # but as the default
20137 # location of the library.
20138 ;;
20139 esac
20140
20141 case $cc_basename in
20142 CC*)
20143 # FIXME: insert proper C++ library support
20144 ld_shlibs_CXX=no
20145 ;;
20146 aCC*)
20147 case $host_cpu in
20148 hppa*64*)
20149 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20150 ;;
20151 ia64*)
20152 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20153 ;;
20154 *)
20155 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20156 ;;
20157 esac
20158 # Commands to make compiler produce verbose output that lists
20159 # what "hidden" libraries, object files and flags are used when
20160 # linking a shared library.
20161 #
20162 # There doesn't appear to be a way to prevent this compiler from
20163 # explicitly linking system object files so we need to strip them
20164 # from the output so that they don't get included in the library
20165 # dependencies.
20166 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"'
20167 ;;
20168 *)
20169 if test "$GXX" = yes; then
20170 if test $with_gnu_ld = no; then
20171 case $host_cpu in
20172 hppa*64*)
20173 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20174 ;;
20175 ia64*)
20176 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20177 ;;
20178 *)
20179 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'
20180 ;;
20181 esac
20182 fi
20183 else
20184 # FIXME: insert proper C++ library support
20185 ld_shlibs_CXX=no
20186 fi
20187 ;;
20188 esac
20189 ;;
20190
20191 interix[3-9]*)
20192 hardcode_direct_CXX=no
20193 hardcode_shlibpath_var_CXX=no
20194 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20195 export_dynamic_flag_spec_CXX='${wl}-E'
20196 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20197 # Instead, shared libraries are loaded at an image base (0x10000000 by
20198 # default) and relocated if they conflict, which is a slow very memory
20199 # consuming and fragmenting process. To avoid this, we pick a random,
20200 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20201 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20202 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'
20203 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'
20204 ;;
20205 irix5* | irix6*)
20206 case $cc_basename in
20207 CC*)
20208 # SGI C++
20209 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'
20210
20211 # Archives containing C++ object files must be created using
20212 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20213 # necessary to make sure instantiated templates are included
20214 # in the archive.
20215 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20216 ;;
20217 *)
20218 if test "$GXX" = yes; then
20219 if test "$with_gnu_ld" = no; then
20220 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'
20221 else
20222 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'
20223 fi
20224 fi
20225 link_all_deplibs_CXX=yes
20226 ;;
20227 esac
20228 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20229 hardcode_libdir_separator_CXX=:
20230 inherit_rpath_CXX=yes
20231 ;;
20232
20233 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20234 case $cc_basename in
20235 KCC*)
20236 # Kuck and Associates, Inc. (KAI) C++ Compiler
20237
20238 # KCC will only create a shared library if the output file
20239 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20240 # to its proper name (with version) after linking.
20241 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'
20242 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'
20243 # Commands to make compiler produce verbose output that lists
20244 # what "hidden" libraries, object files and flags are used when
20245 # linking a shared library.
20246 #
20247 # There doesn't appear to be a way to prevent this compiler from
20248 # explicitly linking system object files so we need to strip them
20249 # from the output so that they don't get included in the library
20250 # dependencies.
20251 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"'
20252
20253 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20254 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20255
20256 # Archives containing C++ object files must be created using
20257 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20258 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20259 ;;
20260 icpc* | ecpc* )
20261 # Intel C++
20262 with_gnu_ld=yes
20263 # version 8.0 and above of icpc choke on multiply defined symbols
20264 # if we add $predep_objects and $postdep_objects, however 7.1 and
20265 # earlier do not add the objects themselves.
20266 case `$CC -V 2>&1` in
20267 *"Version 7."*)
20268 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20269 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'
20270 ;;
20271 *) # Version 8.0 or newer
20272 tmp_idyn=
20273 case $host_cpu in
20274 ia64*) tmp_idyn=' -i_dynamic';;
20275 esac
20276 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20277 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'
20278 ;;
20279 esac
20280 archive_cmds_need_lc_CXX=no
20281 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20282 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20283 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20284 ;;
20285 pgCC* | pgcpp*)
20286 # Portland Group C++ compiler
20287 case `$CC -V` in
20288 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20289 prelink_cmds_CXX='tpldir=Template.dir~
20290 rm -rf $tpldir~
20291 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20292 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20293 old_archive_cmds_CXX='tpldir=Template.dir~
20294 rm -rf $tpldir~
20295 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20296 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20297 $RANLIB $oldlib'
20298 archive_cmds_CXX='tpldir=Template.dir~
20299 rm -rf $tpldir~
20300 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20301 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20302 archive_expsym_cmds_CXX='tpldir=Template.dir~
20303 rm -rf $tpldir~
20304 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20305 $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'
20306 ;;
20307 *) # Version 6 and above use weak symbols
20308 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20309 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'
20310 ;;
20311 esac
20312
20313 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20314 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20315 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'
20316 ;;
20317 cxx*)
20318 # Compaq C++
20319 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20320 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'
20321
20322 runpath_var=LD_RUN_PATH
20323 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20324 hardcode_libdir_separator_CXX=:
20325
20326 # Commands to make compiler produce verbose output that lists
20327 # what "hidden" libraries, object files and flags are used when
20328 # linking a shared library.
20329 #
20330 # There doesn't appear to be a way to prevent this compiler from
20331 # explicitly linking system object files so we need to strip them
20332 # from the output so that they don't get included in the library
20333 # dependencies.
20334 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'
20335 ;;
20336 xl* | mpixl* | bgxl*)
20337 # IBM XL 8.0 on PPC, with GNU ld
20338 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20339 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20340 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20341 if test "x$supports_anon_versioning" = xyes; then
20342 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20343 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20344 echo "local: *; };" >> $output_objdir/$libname.ver~
20345 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20346 fi
20347 ;;
20348 *)
20349 case `$CC -V 2>&1 | sed 5q` in
20350 *Sun\ C*)
20351 # Sun C++ 5.9
20352 no_undefined_flag_CXX=' -zdefs'
20353 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20354 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'
20355 hardcode_libdir_flag_spec_CXX='-R$libdir'
20356 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'
20357 compiler_needs_object_CXX=yes
20358
20359 # Not sure whether something based on
20360 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20361 # would be better.
20362 output_verbose_link_cmd='func_echo_all'
20363
20364 # Archives containing C++ object files must be created using
20365 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20366 # necessary to make sure instantiated templates are included
20367 # in the archive.
20368 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20369 ;;
20370 esac
20371 ;;
20372 esac
20373 ;;
20374
20375 lynxos*)
20376 # FIXME: insert proper C++ library support
20377 ld_shlibs_CXX=no
20378 ;;
20379
20380 m88k*)
20381 # FIXME: insert proper C++ library support
20382 ld_shlibs_CXX=no
20383 ;;
20384
20385 mvs*)
20386 case $cc_basename in
20387 cxx*)
20388 # FIXME: insert proper C++ library support
20389 ld_shlibs_CXX=no
20390 ;;
20391 *)
20392 # FIXME: insert proper C++ library support
20393 ld_shlibs_CXX=no
20394 ;;
20395 esac
20396 ;;
20397
20398 netbsd*)
20399 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20400 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20401 wlarc=
20402 hardcode_libdir_flag_spec_CXX='-R$libdir'
20403 hardcode_direct_CXX=yes
20404 hardcode_shlibpath_var_CXX=no
20405 fi
20406 # Workaround some broken pre-1.5 toolchains
20407 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20408 ;;
20409
20410 *nto* | *qnx*)
20411 ld_shlibs_CXX=yes
20412 ;;
20413
20414 openbsd2*)
20415 # C++ shared libraries are fairly broken
20416 ld_shlibs_CXX=no
20417 ;;
20418
20419 openbsd*)
20420 if test -f /usr/libexec/ld.so; then
20421 hardcode_direct_CXX=yes
20422 hardcode_shlibpath_var_CXX=no
20423 hardcode_direct_absolute_CXX=yes
20424 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20425 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20426 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20427 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20428 export_dynamic_flag_spec_CXX='${wl}-E'
20429 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20430 fi
20431 output_verbose_link_cmd=func_echo_all
20432 else
20433 ld_shlibs_CXX=no
20434 fi
20435 ;;
20436
20437 osf3* | osf4* | osf5*)
20438 case $cc_basename in
20439 KCC*)
20440 # Kuck and Associates, Inc. (KAI) C++ Compiler
20441
20442 # KCC will only create a shared library if the output file
20443 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20444 # to its proper name (with version) after linking.
20445 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'
20446
20447 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20448 hardcode_libdir_separator_CXX=:
20449
20450 # Archives containing C++ object files must be created using
20451 # the KAI C++ compiler.
20452 case $host in
20453 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20454 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20455 esac
20456 ;;
20457 RCC*)
20458 # Rational C++ 2.4.1
20459 # FIXME: insert proper C++ library support
20460 ld_shlibs_CXX=no
20461 ;;
20462 cxx*)
20463 case $host in
20464 osf3*)
20465 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20466 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'
20467 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20468 ;;
20469 *)
20470 allow_undefined_flag_CXX=' -expect_unresolved \*'
20471 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'
20472 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20473 echo "-hidden">> $lib.exp~
20474 $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~
20475 $RM $lib.exp'
20476 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20477 ;;
20478 esac
20479
20480 hardcode_libdir_separator_CXX=:
20481
20482 # Commands to make compiler produce verbose output that lists
20483 # what "hidden" libraries, object files and flags are used when
20484 # linking a shared library.
20485 #
20486 # There doesn't appear to be a way to prevent this compiler from
20487 # explicitly linking system object files so we need to strip them
20488 # from the output so that they don't get included in the library
20489 # dependencies.
20490 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"'
20491 ;;
20492 *)
20493 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20494 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20495 case $host in
20496 osf3*)
20497 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'
20498 ;;
20499 *)
20500 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'
20501 ;;
20502 esac
20503
20504 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20505 hardcode_libdir_separator_CXX=:
20506
20507 # Commands to make compiler produce verbose output that lists
20508 # what "hidden" libraries, object files and flags are used when
20509 # linking a shared library.
20510 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20511
20512 else
20513 # FIXME: insert proper C++ library support
20514 ld_shlibs_CXX=no
20515 fi
20516 ;;
20517 esac
20518 ;;
20519
20520 psos*)
20521 # FIXME: insert proper C++ library support
20522 ld_shlibs_CXX=no
20523 ;;
20524
20525 sunos4*)
20526 case $cc_basename in
20527 CC*)
20528 # Sun C++ 4.x
20529 # FIXME: insert proper C++ library support
20530 ld_shlibs_CXX=no
20531 ;;
20532 lcc*)
20533 # Lucid
20534 # FIXME: insert proper C++ library support
20535 ld_shlibs_CXX=no
20536 ;;
20537 *)
20538 # FIXME: insert proper C++ library support
20539 ld_shlibs_CXX=no
20540 ;;
20541 esac
20542 ;;
20543
20544 solaris*)
20545 case $cc_basename in
20546 CC*)
20547 # Sun C++ 4.2, 5.x and Centerline C++
20548 archive_cmds_need_lc_CXX=yes
20549 no_undefined_flag_CXX=' -zdefs'
20550 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20551 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20552 $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'
20553
20554 hardcode_libdir_flag_spec_CXX='-R$libdir'
20555 hardcode_shlibpath_var_CXX=no
20556 case $host_os in
20557 solaris2.[0-5] | solaris2.[0-5].*) ;;
20558 *)
20559 # The compiler driver will combine and reorder linker options,
20560 # but understands `-z linker_flag'.
20561 # Supported since Solaris 2.6 (maybe 2.5.1?)
20562 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20563 ;;
20564 esac
20565 link_all_deplibs_CXX=yes
20566
20567 output_verbose_link_cmd='func_echo_all'
20568
20569 # Archives containing C++ object files must be created using
20570 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20571 # necessary to make sure instantiated templates are included
20572 # in the archive.
20573 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20574 ;;
20575 gcx*)
20576 # Green Hills C++ Compiler
20577 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20578
20579 # The C++ compiler must be used to create the archive.
20580 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20581 ;;
20582 *)
20583 # GNU C++ compiler with Solaris linker
20584 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20585 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20586 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20587 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20588 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20589 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20590
20591 # Commands to make compiler produce verbose output that lists
20592 # what "hidden" libraries, object files and flags are used when
20593 # linking a shared library.
20594 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20595 else
20596 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20597 # platform.
20598 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20599 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20600 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20601
20602 # Commands to make compiler produce verbose output that lists
20603 # what "hidden" libraries, object files and flags are used when
20604 # linking a shared library.
20605 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20606 fi
20607
20608 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20609 case $host_os in
20610 solaris2.[0-5] | solaris2.[0-5].*) ;;
20611 *)
20612 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20613 ;;
20614 esac
20615 fi
20616 ;;
20617 esac
20618 ;;
20619
20620 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20621 no_undefined_flag_CXX='${wl}-z,text'
20622 archive_cmds_need_lc_CXX=no
20623 hardcode_shlibpath_var_CXX=no
20624 runpath_var='LD_RUN_PATH'
20625
20626 case $cc_basename in
20627 CC*)
20628 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20629 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20630 ;;
20631 *)
20632 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20633 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20634 ;;
20635 esac
20636 ;;
20637
20638 sysv5* | sco3.2v5* | sco5v6*)
20639 # Note: We can NOT use -z defs as we might desire, because we do not
20640 # link with -lc, and that would cause any symbols used from libc to
20641 # always be unresolved, which means just about no library would
20642 # ever link correctly. If we're not using GNU ld we use -z text
20643 # though, which does catch some bad symbols but isn't as heavy-handed
20644 # as -z defs.
20645 no_undefined_flag_CXX='${wl}-z,text'
20646 allow_undefined_flag_CXX='${wl}-z,nodefs'
20647 archive_cmds_need_lc_CXX=no
20648 hardcode_shlibpath_var_CXX=no
20649 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20650 hardcode_libdir_separator_CXX=':'
20651 link_all_deplibs_CXX=yes
20652 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20653 runpath_var='LD_RUN_PATH'
20654
20655 case $cc_basename in
20656 CC*)
20657 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20658 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20659 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20660 '"$old_archive_cmds_CXX"
20661 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20662 '"$reload_cmds_CXX"
20663 ;;
20664 *)
20665 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20666 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20667 ;;
20668 esac
20669 ;;
20670
20671 tandem*)
20672 case $cc_basename in
20673 NCC*)
20674 # NonStop-UX NCC 3.20
20675 # FIXME: insert proper C++ library support
20676 ld_shlibs_CXX=no
20677 ;;
20678 *)
20679 # FIXME: insert proper C++ library support
20680 ld_shlibs_CXX=no
20681 ;;
20682 esac
20683 ;;
20684
20685 vxworks*)
20686 # FIXME: insert proper C++ library support
20687 ld_shlibs_CXX=no
20688 ;;
20689
20690 *)
20691 # FIXME: insert proper C++ library support
20692 ld_shlibs_CXX=no
20693 ;;
20694 esac
20695
20696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20697 $as_echo "$ld_shlibs_CXX" >&6; }
20698 test "$ld_shlibs_CXX" = no && can_build_shared=no
20699
20700 GCC_CXX="$GXX"
20701 LD_CXX="$LD"
20702
20703 ## CAVEAT EMPTOR:
20704 ## There is no encapsulation within the following macros, do not change
20705 ## the running order or otherwise move them around unless you know exactly
20706 ## what you are doing...
20707 # Dependencies to place before and after the object being linked:
20708 predep_objects_CXX=
20709 postdep_objects_CXX=
20710 predeps_CXX=
20711 postdeps_CXX=
20712 compiler_lib_search_path_CXX=
20713
20714 cat > conftest.$ac_ext <<_LT_EOF
20715 class Foo
20716 {
20717 public:
20718 Foo (void) { a = 0; }
20719 private:
20720 int a;
20721 };
20722 _LT_EOF
20723
20724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20725 (eval $ac_compile) 2>&5
20726 ac_status=$?
20727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20728 test $ac_status = 0; }; then
20729 # Parse the compiler output and extract the necessary
20730 # objects, libraries and library flags.
20731
20732 # Sentinel used to keep track of whether or not we are before
20733 # the conftest object file.
20734 pre_test_object_deps_done=no
20735
20736 for p in `eval "$output_verbose_link_cmd"`; do
20737 case $p in
20738
20739 -L* | -R* | -l*)
20740 # Some compilers place space between "-{L,R}" and the path.
20741 # Remove the space.
20742 if test $p = "-L" ||
20743 test $p = "-R"; then
20744 prev=$p
20745 continue
20746 else
20747 prev=
20748 fi
20749
20750 if test "$pre_test_object_deps_done" = no; then
20751 case $p in
20752 -L* | -R*)
20753 # Internal compiler library paths should come after those
20754 # provided the user. The postdeps already come after the
20755 # user supplied libs so there is no need to process them.
20756 if test -z "$compiler_lib_search_path_CXX"; then
20757 compiler_lib_search_path_CXX="${prev}${p}"
20758 else
20759 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20760 fi
20761 ;;
20762 # The "-l" case would never come before the object being
20763 # linked, so don't bother handling this case.
20764 esac
20765 else
20766 if test -z "$postdeps_CXX"; then
20767 postdeps_CXX="${prev}${p}"
20768 else
20769 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20770 fi
20771 fi
20772 ;;
20773
20774 *.$objext)
20775 # This assumes that the test object file only shows up
20776 # once in the compiler output.
20777 if test "$p" = "conftest.$objext"; then
20778 pre_test_object_deps_done=yes
20779 continue
20780 fi
20781
20782 if test "$pre_test_object_deps_done" = no; then
20783 if test -z "$predep_objects_CXX"; then
20784 predep_objects_CXX="$p"
20785 else
20786 predep_objects_CXX="$predep_objects_CXX $p"
20787 fi
20788 else
20789 if test -z "$postdep_objects_CXX"; then
20790 postdep_objects_CXX="$p"
20791 else
20792 postdep_objects_CXX="$postdep_objects_CXX $p"
20793 fi
20794 fi
20795 ;;
20796
20797 *) ;; # Ignore the rest.
20798
20799 esac
20800 done
20801
20802 # Clean up.
20803 rm -f a.out a.exe
20804 else
20805 echo "libtool.m4: error: problem compiling CXX test program"
20806 fi
20807
20808 $RM -f confest.$objext
20809
20810 # PORTME: override above test on systems where it is broken
20811 case $host_os in
20812 interix[3-9]*)
20813 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20814 # hack all around it, let's just trust "g++" to DTRT.
20815 predep_objects_CXX=
20816 postdep_objects_CXX=
20817 postdeps_CXX=
20818 ;;
20819
20820 linux*)
20821 case `$CC -V 2>&1 | sed 5q` in
20822 *Sun\ C*)
20823 # Sun C++ 5.9
20824
20825 # The more standards-conforming stlport4 library is
20826 # incompatible with the Cstd library. Avoid specifying
20827 # it if it's in CXXFLAGS. Ignore libCrun as
20828 # -library=stlport4 depends on it.
20829 case " $CXX $CXXFLAGS " in
20830 *" -library=stlport4 "*)
20831 solaris_use_stlport4=yes
20832 ;;
20833 esac
20834
20835 if test "$solaris_use_stlport4" != yes; then
20836 postdeps_CXX='-library=Cstd -library=Crun'
20837 fi
20838 ;;
20839 esac
20840 ;;
20841
20842 solaris*)
20843 case $cc_basename in
20844 CC*)
20845 # The more standards-conforming stlport4 library is
20846 # incompatible with the Cstd library. Avoid specifying
20847 # it if it's in CXXFLAGS. Ignore libCrun as
20848 # -library=stlport4 depends on it.
20849 case " $CXX $CXXFLAGS " in
20850 *" -library=stlport4 "*)
20851 solaris_use_stlport4=yes
20852 ;;
20853 esac
20854
20855 # Adding this requires a known-good setup of shared libraries for
20856 # Sun compiler versions before 5.6, else PIC objects from an old
20857 # archive will be linked into the output, leading to subtle bugs.
20858 if test "$solaris_use_stlport4" != yes; then
20859 postdeps_CXX='-library=Cstd -library=Crun'
20860 fi
20861 ;;
20862 esac
20863 ;;
20864 esac
20865
20866
20867 case " $postdeps_CXX " in
20868 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20869 esac
20870 compiler_lib_search_dirs_CXX=
20871 if test -n "${compiler_lib_search_path_CXX}"; then
20872 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20873 fi
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905 lt_prog_compiler_wl_CXX=
20906 lt_prog_compiler_pic_CXX=
20907 lt_prog_compiler_static_CXX=
20908
20909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20910 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20911
20912 # C++ specific cases for pic, static, wl, etc.
20913 if test "$GXX" = yes; then
20914 lt_prog_compiler_wl_CXX='-Wl,'
20915 lt_prog_compiler_static_CXX='-static'
20916
20917 case $host_os in
20918 aix*)
20919 # All AIX code is PIC.
20920 if test "$host_cpu" = ia64; then
20921 # AIX 5 now supports IA64 processor
20922 lt_prog_compiler_static_CXX='-Bstatic'
20923 fi
20924 lt_prog_compiler_pic_CXX='-fPIC'
20925 ;;
20926
20927 amigaos*)
20928 case $host_cpu in
20929 powerpc)
20930 # see comment about AmigaOS4 .so support
20931 lt_prog_compiler_pic_CXX='-fPIC'
20932 ;;
20933 m68k)
20934 # FIXME: we need at least 68020 code to build shared libraries, but
20935 # adding the `-m68020' flag to GCC prevents building anything better,
20936 # like `-m68040'.
20937 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20938 ;;
20939 esac
20940 ;;
20941
20942 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20943 # PIC is the default for these OSes.
20944 ;;
20945 mingw* | cygwin* | os2* | pw32* | cegcc*)
20946 # This hack is so that the source file can tell whether it is being
20947 # built for inclusion in a dll (and should export symbols for example).
20948 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20949 # (--disable-auto-import) libraries
20950 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20951 ;;
20952 darwin* | rhapsody*)
20953 # PIC is the default on this platform
20954 # Common symbols not allowed in MH_DYLIB files
20955 lt_prog_compiler_pic_CXX='-fno-common'
20956 ;;
20957 *djgpp*)
20958 # DJGPP does not support shared libraries at all
20959 lt_prog_compiler_pic_CXX=
20960 ;;
20961 haiku*)
20962 # PIC is the default for Haiku.
20963 # The "-static" flag exists, but is broken.
20964 lt_prog_compiler_static_CXX=
20965 ;;
20966 interix[3-9]*)
20967 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20968 # Instead, we relocate shared libraries at runtime.
20969 ;;
20970 sysv4*MP*)
20971 if test -d /usr/nec; then
20972 lt_prog_compiler_pic_CXX=-Kconform_pic
20973 fi
20974 ;;
20975 hpux*)
20976 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20977 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20978 # sets the default TLS model and affects inlining.
20979 case $host_cpu in
20980 hppa*64*)
20981 ;;
20982 *)
20983 lt_prog_compiler_pic_CXX='-fPIC'
20984 ;;
20985 esac
20986 ;;
20987 *qnx* | *nto*)
20988 # QNX uses GNU C++, but need to define -shared option too, otherwise
20989 # it will coredump.
20990 lt_prog_compiler_pic_CXX='-fPIC -shared'
20991 ;;
20992 *)
20993 lt_prog_compiler_pic_CXX='-fPIC'
20994 ;;
20995 esac
20996 else
20997 case $host_os in
20998 aix[4-9]*)
20999 # All AIX code is PIC.
21000 if test "$host_cpu" = ia64; then
21001 # AIX 5 now supports IA64 processor
21002 lt_prog_compiler_static_CXX='-Bstatic'
21003 else
21004 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21005 fi
21006 ;;
21007 chorus*)
21008 case $cc_basename in
21009 cxch68*)
21010 # Green Hills C++ Compiler
21011 # _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"
21012 ;;
21013 esac
21014 ;;
21015 dgux*)
21016 case $cc_basename in
21017 ec++*)
21018 lt_prog_compiler_pic_CXX='-KPIC'
21019 ;;
21020 ghcx*)
21021 # Green Hills C++ Compiler
21022 lt_prog_compiler_pic_CXX='-pic'
21023 ;;
21024 *)
21025 ;;
21026 esac
21027 ;;
21028 freebsd* | dragonfly*)
21029 # FreeBSD uses GNU C++
21030 ;;
21031 hpux9* | hpux10* | hpux11*)
21032 case $cc_basename in
21033 CC*)
21034 lt_prog_compiler_wl_CXX='-Wl,'
21035 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21036 if test "$host_cpu" != ia64; then
21037 lt_prog_compiler_pic_CXX='+Z'
21038 fi
21039 ;;
21040 aCC*)
21041 lt_prog_compiler_wl_CXX='-Wl,'
21042 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21043 case $host_cpu in
21044 hppa*64*|ia64*)
21045 # +Z the default
21046 ;;
21047 *)
21048 lt_prog_compiler_pic_CXX='+Z'
21049 ;;
21050 esac
21051 ;;
21052 *)
21053 ;;
21054 esac
21055 ;;
21056 interix*)
21057 # This is c89, which is MS Visual C++ (no shared libs)
21058 # Anyone wants to do a port?
21059 ;;
21060 irix5* | irix6* | nonstopux*)
21061 case $cc_basename in
21062 CC*)
21063 lt_prog_compiler_wl_CXX='-Wl,'
21064 lt_prog_compiler_static_CXX='-non_shared'
21065 # CC pic flag -KPIC is the default.
21066 ;;
21067 *)
21068 ;;
21069 esac
21070 ;;
21071 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21072 case $cc_basename in
21073 KCC*)
21074 # KAI C++ Compiler
21075 lt_prog_compiler_wl_CXX='--backend -Wl,'
21076 lt_prog_compiler_pic_CXX='-fPIC'
21077 ;;
21078 ecpc* )
21079 # old Intel C++ for x86_64 which still supported -KPIC.
21080 lt_prog_compiler_wl_CXX='-Wl,'
21081 lt_prog_compiler_pic_CXX='-KPIC'
21082 lt_prog_compiler_static_CXX='-static'
21083 ;;
21084 icpc* )
21085 # Intel C++, used to be incompatible with GCC.
21086 # ICC 10 doesn't accept -KPIC any more.
21087 lt_prog_compiler_wl_CXX='-Wl,'
21088 lt_prog_compiler_pic_CXX='-fPIC'
21089 lt_prog_compiler_static_CXX='-static'
21090 ;;
21091 pgCC* | pgcpp*)
21092 # Portland Group C++ compiler
21093 lt_prog_compiler_wl_CXX='-Wl,'
21094 lt_prog_compiler_pic_CXX='-fpic'
21095 lt_prog_compiler_static_CXX='-Bstatic'
21096 ;;
21097 cxx*)
21098 # Compaq C++
21099 # Make sure the PIC flag is empty. It appears that all Alpha
21100 # Linux and Compaq Tru64 Unix objects are PIC.
21101 lt_prog_compiler_pic_CXX=
21102 lt_prog_compiler_static_CXX='-non_shared'
21103 ;;
21104 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21105 # IBM XL 8.0, 9.0 on PPC and BlueGene
21106 lt_prog_compiler_wl_CXX='-Wl,'
21107 lt_prog_compiler_pic_CXX='-qpic'
21108 lt_prog_compiler_static_CXX='-qstaticlink'
21109 ;;
21110 *)
21111 case `$CC -V 2>&1 | sed 5q` in
21112 *Sun\ C*)
21113 # Sun C++ 5.9
21114 lt_prog_compiler_pic_CXX='-KPIC'
21115 lt_prog_compiler_static_CXX='-Bstatic'
21116 lt_prog_compiler_wl_CXX='-Qoption ld '
21117 ;;
21118 esac
21119 ;;
21120 esac
21121 ;;
21122 lynxos*)
21123 ;;
21124 m88k*)
21125 ;;
21126 mvs*)
21127 case $cc_basename in
21128 cxx*)
21129 lt_prog_compiler_pic_CXX='-W c,exportall'
21130 ;;
21131 *)
21132 ;;
21133 esac
21134 ;;
21135 netbsd*)
21136 ;;
21137 *qnx* | *nto*)
21138 # QNX uses GNU C++, but need to define -shared option too, otherwise
21139 # it will coredump.
21140 lt_prog_compiler_pic_CXX='-fPIC -shared'
21141 ;;
21142 osf3* | osf4* | osf5*)
21143 case $cc_basename in
21144 KCC*)
21145 lt_prog_compiler_wl_CXX='--backend -Wl,'
21146 ;;
21147 RCC*)
21148 # Rational C++ 2.4.1
21149 lt_prog_compiler_pic_CXX='-pic'
21150 ;;
21151 cxx*)
21152 # Digital/Compaq C++
21153 lt_prog_compiler_wl_CXX='-Wl,'
21154 # Make sure the PIC flag is empty. It appears that all Alpha
21155 # Linux and Compaq Tru64 Unix objects are PIC.
21156 lt_prog_compiler_pic_CXX=
21157 lt_prog_compiler_static_CXX='-non_shared'
21158 ;;
21159 *)
21160 ;;
21161 esac
21162 ;;
21163 psos*)
21164 ;;
21165 solaris*)
21166 case $cc_basename in
21167 CC*)
21168 # Sun C++ 4.2, 5.x and Centerline C++
21169 lt_prog_compiler_pic_CXX='-KPIC'
21170 lt_prog_compiler_static_CXX='-Bstatic'
21171 lt_prog_compiler_wl_CXX='-Qoption ld '
21172 ;;
21173 gcx*)
21174 # Green Hills C++ Compiler
21175 lt_prog_compiler_pic_CXX='-PIC'
21176 ;;
21177 *)
21178 ;;
21179 esac
21180 ;;
21181 sunos4*)
21182 case $cc_basename in
21183 CC*)
21184 # Sun C++ 4.x
21185 lt_prog_compiler_pic_CXX='-pic'
21186 lt_prog_compiler_static_CXX='-Bstatic'
21187 ;;
21188 lcc*)
21189 # Lucid
21190 lt_prog_compiler_pic_CXX='-pic'
21191 ;;
21192 *)
21193 ;;
21194 esac
21195 ;;
21196 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21197 case $cc_basename in
21198 CC*)
21199 lt_prog_compiler_wl_CXX='-Wl,'
21200 lt_prog_compiler_pic_CXX='-KPIC'
21201 lt_prog_compiler_static_CXX='-Bstatic'
21202 ;;
21203 esac
21204 ;;
21205 tandem*)
21206 case $cc_basename in
21207 NCC*)
21208 # NonStop-UX NCC 3.20
21209 lt_prog_compiler_pic_CXX='-KPIC'
21210 ;;
21211 *)
21212 ;;
21213 esac
21214 ;;
21215 vxworks*)
21216 ;;
21217 *)
21218 lt_prog_compiler_can_build_shared_CXX=no
21219 ;;
21220 esac
21221 fi
21222
21223 case $host_os in
21224 # For platforms which do not support PIC, -DPIC is meaningless:
21225 *djgpp*)
21226 lt_prog_compiler_pic_CXX=
21227 ;;
21228 *)
21229 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21230 ;;
21231 esac
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21233 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21234
21235
21236
21237 #
21238 # Check to make sure the PIC flag actually works.
21239 #
21240 if test -n "$lt_prog_compiler_pic_CXX"; then
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21242 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21243 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21244 $as_echo_n "(cached) " >&6
21245 else
21246 lt_cv_prog_compiler_pic_works_CXX=no
21247 ac_outfile=conftest.$ac_objext
21248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21249 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21250 # Insert the option either (1) after the last *FLAGS variable, or
21251 # (2) before a word containing "conftest.", or (3) at the end.
21252 # Note that $ac_compile itself does not contain backslashes and begins
21253 # with a dollar sign (not a hyphen), so the echo should work correctly.
21254 # The option is referenced via a variable to avoid confusing sed.
21255 lt_compile=`echo "$ac_compile" | $SED \
21256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21258 -e 's:$: $lt_compiler_flag:'`
21259 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21260 (eval "$lt_compile" 2>conftest.err)
21261 ac_status=$?
21262 cat conftest.err >&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 if (exit $ac_status) && test -s "$ac_outfile"; then
21265 # The compiler can only warn and ignore the option if not recognized
21266 # So say no if there are warnings other than the usual output.
21267 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21268 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21269 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21270 lt_cv_prog_compiler_pic_works_CXX=yes
21271 fi
21272 fi
21273 $RM conftest*
21274
21275 fi
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21277 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21278
21279 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21280 case $lt_prog_compiler_pic_CXX in
21281 "" | " "*) ;;
21282 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21283 esac
21284 else
21285 lt_prog_compiler_pic_CXX=
21286 lt_prog_compiler_can_build_shared_CXX=no
21287 fi
21288
21289 fi
21290
21291
21292
21293 #
21294 # Check to make sure the static flag actually works.
21295 #
21296 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21298 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21299 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21300 $as_echo_n "(cached) " >&6
21301 else
21302 lt_cv_prog_compiler_static_works_CXX=no
21303 save_LDFLAGS="$LDFLAGS"
21304 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21305 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21306 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21307 # The linker can only warn and ignore the option if not recognized
21308 # So say no if there are warnings
21309 if test -s conftest.err; then
21310 # Append any errors to the config.log.
21311 cat conftest.err 1>&5
21312 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21314 if diff conftest.exp conftest.er2 >/dev/null; then
21315 lt_cv_prog_compiler_static_works_CXX=yes
21316 fi
21317 else
21318 lt_cv_prog_compiler_static_works_CXX=yes
21319 fi
21320 fi
21321 $RM -r conftest*
21322 LDFLAGS="$save_LDFLAGS"
21323
21324 fi
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21326 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21327
21328 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21329 :
21330 else
21331 lt_prog_compiler_static_CXX=
21332 fi
21333
21334
21335
21336
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21338 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21339 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21340 $as_echo_n "(cached) " >&6
21341 else
21342 lt_cv_prog_compiler_c_o_CXX=no
21343 $RM -r conftest 2>/dev/null
21344 mkdir conftest
21345 cd conftest
21346 mkdir out
21347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21348
21349 lt_compiler_flag="-o out/conftest2.$ac_objext"
21350 # Insert the option either (1) after the last *FLAGS variable, or
21351 # (2) before a word containing "conftest.", or (3) at the end.
21352 # Note that $ac_compile itself does not contain backslashes and begins
21353 # with a dollar sign (not a hyphen), so the echo should work correctly.
21354 lt_compile=`echo "$ac_compile" | $SED \
21355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21357 -e 's:$: $lt_compiler_flag:'`
21358 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21359 (eval "$lt_compile" 2>out/conftest.err)
21360 ac_status=$?
21361 cat out/conftest.err >&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21364 then
21365 # The compiler can only warn and ignore the option if not recognized
21366 # So say no if there are warnings
21367 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21368 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21369 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21370 lt_cv_prog_compiler_c_o_CXX=yes
21371 fi
21372 fi
21373 chmod u+w . 2>&5
21374 $RM conftest*
21375 # SGI C++ compiler will create directory out/ii_files/ for
21376 # template instantiation
21377 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21378 $RM out/* && rmdir out
21379 cd ..
21380 $RM -r conftest
21381 $RM conftest*
21382
21383 fi
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21385 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21386
21387
21388
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21390 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21391 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21392 $as_echo_n "(cached) " >&6
21393 else
21394 lt_cv_prog_compiler_c_o_CXX=no
21395 $RM -r conftest 2>/dev/null
21396 mkdir conftest
21397 cd conftest
21398 mkdir out
21399 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21400
21401 lt_compiler_flag="-o out/conftest2.$ac_objext"
21402 # Insert the option either (1) after the last *FLAGS variable, or
21403 # (2) before a word containing "conftest.", or (3) at the end.
21404 # Note that $ac_compile itself does not contain backslashes and begins
21405 # with a dollar sign (not a hyphen), so the echo should work correctly.
21406 lt_compile=`echo "$ac_compile" | $SED \
21407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21409 -e 's:$: $lt_compiler_flag:'`
21410 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21411 (eval "$lt_compile" 2>out/conftest.err)
21412 ac_status=$?
21413 cat out/conftest.err >&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21416 then
21417 # The compiler can only warn and ignore the option if not recognized
21418 # So say no if there are warnings
21419 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21420 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21421 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21422 lt_cv_prog_compiler_c_o_CXX=yes
21423 fi
21424 fi
21425 chmod u+w . 2>&5
21426 $RM conftest*
21427 # SGI C++ compiler will create directory out/ii_files/ for
21428 # template instantiation
21429 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21430 $RM out/* && rmdir out
21431 cd ..
21432 $RM -r conftest
21433 $RM conftest*
21434
21435 fi
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21437 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21438
21439
21440
21441
21442 hard_links="nottested"
21443 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21444 # do not overwrite the value of need_locks provided by the user
21445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21446 $as_echo_n "checking if we can lock with hard links... " >&6; }
21447 hard_links=yes
21448 $RM conftest*
21449 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21450 touch conftest.a
21451 ln conftest.a conftest.b 2>&5 || hard_links=no
21452 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21454 $as_echo "$hard_links" >&6; }
21455 if test "$hard_links" = no; then
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21457 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21458 need_locks=warn
21459 fi
21460 else
21461 need_locks=no
21462 fi
21463
21464
21465
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21467 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21468
21469 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21470 case $host_os in
21471 aix[4-9]*)
21472 # If we're using GNU nm, then we don't want the "-C" option.
21473 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21474 # Also, AIX nm treats weak defined symbols like other global defined
21475 # symbols, whereas GNU nm marks them as "W".
21476 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21477 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'
21478 else
21479 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'
21480 fi
21481 ;;
21482 pw32*)
21483 export_symbols_cmds_CXX="$ltdll_cmds"
21484 ;;
21485 cygwin* | mingw* | cegcc*)
21486 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'
21487 ;;
21488 *)
21489 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21490 ;;
21491 esac
21492 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21493
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21495 $as_echo "$ld_shlibs_CXX" >&6; }
21496 test "$ld_shlibs_CXX" = no && can_build_shared=no
21497
21498 with_gnu_ld_CXX=$with_gnu_ld
21499
21500
21501
21502
21503
21504
21505 #
21506 # Do we need to explicitly link libc?
21507 #
21508 case "x$archive_cmds_need_lc_CXX" in
21509 x|xyes)
21510 # Assume -lc should be added
21511 archive_cmds_need_lc_CXX=yes
21512
21513 if test "$enable_shared" = yes && test "$GCC" = yes; then
21514 case $archive_cmds_CXX in
21515 *'~'*)
21516 # FIXME: we may have to deal with multi-command sequences.
21517 ;;
21518 '$CC '*)
21519 # Test whether the compiler implicitly links with -lc since on some
21520 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21521 # to ld, don't add -lc before -lgcc.
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21523 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21524 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21525 $as_echo_n "(cached) " >&6
21526 else
21527 $RM conftest*
21528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21529
21530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21531 (eval $ac_compile) 2>&5
21532 ac_status=$?
21533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21534 test $ac_status = 0; } 2>conftest.err; then
21535 soname=conftest
21536 lib=conftest
21537 libobjs=conftest.$ac_objext
21538 deplibs=
21539 wl=$lt_prog_compiler_wl_CXX
21540 pic_flag=$lt_prog_compiler_pic_CXX
21541 compiler_flags=-v
21542 linker_flags=-v
21543 verstring=
21544 output_objdir=.
21545 libname=conftest
21546 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21547 allow_undefined_flag_CXX=
21548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21549 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21550 ac_status=$?
21551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21552 test $ac_status = 0; }
21553 then
21554 lt_cv_archive_cmds_need_lc_CXX=no
21555 else
21556 lt_cv_archive_cmds_need_lc_CXX=yes
21557 fi
21558 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21559 else
21560 cat conftest.err 1>&5
21561 fi
21562 $RM conftest*
21563
21564 fi
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21566 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21567 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21568 ;;
21569 esac
21570 fi
21571 ;;
21572 esac
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
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21638 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21639
21640 library_names_spec=
21641 libname_spec='lib$name'
21642 soname_spec=
21643 shrext_cmds=".so"
21644 postinstall_cmds=
21645 postuninstall_cmds=
21646 finish_cmds=
21647 finish_eval=
21648 shlibpath_var=
21649 shlibpath_overrides_runpath=unknown
21650 version_type=none
21651 dynamic_linker="$host_os ld.so"
21652 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21653 need_lib_prefix=unknown
21654 hardcode_into_libs=no
21655
21656 # when you set need_version to no, make sure it does not cause -set_version
21657 # flags to be left without arguments
21658 need_version=unknown
21659
21660 case $host_os in
21661 aix3*)
21662 version_type=linux
21663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21664 shlibpath_var=LIBPATH
21665
21666 # AIX 3 has no versioning support, so we append a major version to the name.
21667 soname_spec='${libname}${release}${shared_ext}$major'
21668 ;;
21669
21670 aix[4-9]*)
21671 version_type=linux
21672 need_lib_prefix=no
21673 need_version=no
21674 hardcode_into_libs=yes
21675 if test "$host_cpu" = ia64; then
21676 # AIX 5 supports IA64
21677 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21678 shlibpath_var=LD_LIBRARY_PATH
21679 else
21680 # With GCC up to 2.95.x, collect2 would create an import file
21681 # for dependence libraries. The import file would start with
21682 # the line `#! .'. This would cause the generated library to
21683 # depend on `.', always an invalid library. This was fixed in
21684 # development snapshots of GCC prior to 3.0.
21685 case $host_os in
21686 aix4 | aix4.[01] | aix4.[01].*)
21687 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21688 echo ' yes '
21689 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21690 :
21691 else
21692 can_build_shared=no
21693 fi
21694 ;;
21695 esac
21696 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21697 # soname into executable. Probably we can add versioning support to
21698 # collect2, so additional links can be useful in future.
21699 if test "$aix_use_runtimelinking" = yes; then
21700 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21701 # instead of lib<name>.a to let people know that these are not
21702 # typical AIX shared libraries.
21703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21704 else
21705 # We preserve .a as extension for shared libraries through AIX4.2
21706 # and later when we are not doing run time linking.
21707 library_names_spec='${libname}${release}.a $libname.a'
21708 soname_spec='${libname}${release}${shared_ext}$major'
21709 fi
21710 shlibpath_var=LIBPATH
21711 fi
21712 ;;
21713
21714 amigaos*)
21715 case $host_cpu in
21716 powerpc)
21717 # Since July 2007 AmigaOS4 officially supports .so libraries.
21718 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21720 ;;
21721 m68k)
21722 library_names_spec='$libname.ixlibrary $libname.a'
21723 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21724 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'
21725 ;;
21726 esac
21727 ;;
21728
21729 beos*)
21730 library_names_spec='${libname}${shared_ext}'
21731 dynamic_linker="$host_os ld.so"
21732 shlibpath_var=LIBRARY_PATH
21733 ;;
21734
21735 bsdi[45]*)
21736 version_type=linux
21737 need_version=no
21738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21739 soname_spec='${libname}${release}${shared_ext}$major'
21740 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21741 shlibpath_var=LD_LIBRARY_PATH
21742 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21743 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21744 # the default ld.so.conf also contains /usr/contrib/lib and
21745 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21746 # libtool to hard-code these into programs
21747 ;;
21748
21749 cygwin* | mingw* | pw32* | cegcc*)
21750 version_type=windows
21751 shrext_cmds=".dll"
21752 need_version=no
21753 need_lib_prefix=no
21754
21755 case $GCC,$host_os in
21756 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21757 library_names_spec='$libname.dll.a'
21758 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21759 postinstall_cmds='base_file=`basename \${file}`~
21760 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21761 dldir=$destdir/`dirname \$dlpath`~
21762 test -d \$dldir || mkdir -p \$dldir~
21763 $install_prog $dir/$dlname \$dldir/$dlname~
21764 chmod a+x \$dldir/$dlname~
21765 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21766 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21767 fi'
21768 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21769 dlpath=$dir/\$dldll~
21770 $RM \$dlpath'
21771 shlibpath_overrides_runpath=yes
21772
21773 case $host_os in
21774 cygwin*)
21775 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21776 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21777
21778 ;;
21779 mingw* | cegcc*)
21780 # MinGW DLLs use traditional 'lib' prefix
21781 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21782 ;;
21783 pw32*)
21784 # pw32 DLLs use 'pw' prefix rather than 'lib'
21785 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21786 ;;
21787 esac
21788 ;;
21789
21790 *)
21791 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21792 ;;
21793 esac
21794 dynamic_linker='Win32 ld.exe'
21795 # FIXME: first we should search . and the directory the executable is in
21796 shlibpath_var=PATH
21797 ;;
21798
21799 darwin* | rhapsody*)
21800 dynamic_linker="$host_os dyld"
21801 version_type=darwin
21802 need_lib_prefix=no
21803 need_version=no
21804 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21805 soname_spec='${libname}${release}${major}$shared_ext'
21806 shlibpath_overrides_runpath=yes
21807 shlibpath_var=DYLD_LIBRARY_PATH
21808 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21809
21810 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21811 ;;
21812
21813 dgux*)
21814 version_type=linux
21815 need_lib_prefix=no
21816 need_version=no
21817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21818 soname_spec='${libname}${release}${shared_ext}$major'
21819 shlibpath_var=LD_LIBRARY_PATH
21820 ;;
21821
21822 freebsd* | dragonfly*)
21823 # DragonFly does not have aout. When/if they implement a new
21824 # versioning mechanism, adjust this.
21825 if test -x /usr/bin/objformat; then
21826 objformat=`/usr/bin/objformat`
21827 else
21828 case $host_os in
21829 freebsd[23].*) objformat=aout ;;
21830 *) objformat=elf ;;
21831 esac
21832 fi
21833 version_type=freebsd-$objformat
21834 case $version_type in
21835 freebsd-elf*)
21836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21837 need_version=no
21838 need_lib_prefix=no
21839 ;;
21840 freebsd-*)
21841 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21842 need_version=yes
21843 ;;
21844 esac
21845 shlibpath_var=LD_LIBRARY_PATH
21846 case $host_os in
21847 freebsd2.*)
21848 shlibpath_overrides_runpath=yes
21849 ;;
21850 freebsd3.[01]* | freebsdelf3.[01]*)
21851 shlibpath_overrides_runpath=yes
21852 hardcode_into_libs=yes
21853 ;;
21854 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21855 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21856 shlibpath_overrides_runpath=no
21857 hardcode_into_libs=yes
21858 ;;
21859 *) # from 4.6 on, and DragonFly
21860 shlibpath_overrides_runpath=yes
21861 hardcode_into_libs=yes
21862 ;;
21863 esac
21864 ;;
21865
21866 gnu*)
21867 version_type=linux
21868 need_lib_prefix=no
21869 need_version=no
21870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21871 soname_spec='${libname}${release}${shared_ext}$major'
21872 shlibpath_var=LD_LIBRARY_PATH
21873 hardcode_into_libs=yes
21874 ;;
21875
21876 haiku*)
21877 version_type=linux
21878 need_lib_prefix=no
21879 need_version=no
21880 dynamic_linker="$host_os runtime_loader"
21881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21882 soname_spec='${libname}${release}${shared_ext}$major'
21883 shlibpath_var=LIBRARY_PATH
21884 shlibpath_overrides_runpath=yes
21885 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21886 hardcode_into_libs=yes
21887 ;;
21888
21889 hpux9* | hpux10* | hpux11*)
21890 # Give a soname corresponding to the major version so that dld.sl refuses to
21891 # link against other versions.
21892 version_type=sunos
21893 need_lib_prefix=no
21894 need_version=no
21895 case $host_cpu in
21896 ia64*)
21897 shrext_cmds='.so'
21898 hardcode_into_libs=yes
21899 dynamic_linker="$host_os dld.so"
21900 shlibpath_var=LD_LIBRARY_PATH
21901 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21903 soname_spec='${libname}${release}${shared_ext}$major'
21904 if test "X$HPUX_IA64_MODE" = X32; then
21905 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21906 else
21907 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21908 fi
21909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21910 ;;
21911 hppa*64*)
21912 shrext_cmds='.sl'
21913 hardcode_into_libs=yes
21914 dynamic_linker="$host_os dld.sl"
21915 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21918 soname_spec='${libname}${release}${shared_ext}$major'
21919 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21921 ;;
21922 *)
21923 shrext_cmds='.sl'
21924 dynamic_linker="$host_os dld.sl"
21925 shlibpath_var=SHLIB_PATH
21926 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21928 soname_spec='${libname}${release}${shared_ext}$major'
21929 ;;
21930 esac
21931 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21932 postinstall_cmds='chmod 555 $lib'
21933 # or fails outright, so override atomically:
21934 install_override_mode=555
21935 ;;
21936
21937 interix[3-9]*)
21938 version_type=linux
21939 need_lib_prefix=no
21940 need_version=no
21941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21942 soname_spec='${libname}${release}${shared_ext}$major'
21943 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21944 shlibpath_var=LD_LIBRARY_PATH
21945 shlibpath_overrides_runpath=no
21946 hardcode_into_libs=yes
21947 ;;
21948
21949 irix5* | irix6* | nonstopux*)
21950 case $host_os in
21951 nonstopux*) version_type=nonstopux ;;
21952 *)
21953 if test "$lt_cv_prog_gnu_ld" = yes; then
21954 version_type=linux
21955 else
21956 version_type=irix
21957 fi ;;
21958 esac
21959 need_lib_prefix=no
21960 need_version=no
21961 soname_spec='${libname}${release}${shared_ext}$major'
21962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21963 case $host_os in
21964 irix5* | nonstopux*)
21965 libsuff= shlibsuff=
21966 ;;
21967 *)
21968 case $LD in # libtool.m4 will add one of these switches to LD
21969 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21970 libsuff= shlibsuff= libmagic=32-bit;;
21971 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21972 libsuff=32 shlibsuff=N32 libmagic=N32;;
21973 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21974 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21975 *) libsuff= shlibsuff= libmagic=never-match;;
21976 esac
21977 ;;
21978 esac
21979 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21980 shlibpath_overrides_runpath=no
21981 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21982 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21983 hardcode_into_libs=yes
21984 ;;
21985
21986 # No shared lib support for Linux oldld, aout, or coff.
21987 linux*oldld* | linux*aout* | linux*coff*)
21988 dynamic_linker=no
21989 ;;
21990
21991 # This must be Linux ELF.
21992
21993 # uclinux* changes (here and below) have been submitted to the libtool
21994 # project, but have not yet been accepted: they are GCC-local changes
21995 # for the time being. (See
21996 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
21997 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
21998 version_type=linux
21999 need_lib_prefix=no
22000 need_version=no
22001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22002 soname_spec='${libname}${release}${shared_ext}$major'
22003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22004 shlibpath_var=LD_LIBRARY_PATH
22005 shlibpath_overrides_runpath=no
22006
22007 # Some binutils ld are patched to set DT_RUNPATH
22008 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22009 $as_echo_n "(cached) " >&6
22010 else
22011 lt_cv_shlibpath_overrides_runpath=no
22012 save_LDFLAGS=$LDFLAGS
22013 save_libdir=$libdir
22014 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22015 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22017 /* end confdefs.h. */
22018
22019 int
22020 main ()
22021 {
22022
22023 ;
22024 return 0;
22025 }
22026 _ACEOF
22027 if ac_fn_cxx_try_link "$LINENO"; then :
22028 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22029 lt_cv_shlibpath_overrides_runpath=yes
22030 fi
22031 fi
22032 rm -f core conftest.err conftest.$ac_objext \
22033 conftest$ac_exeext conftest.$ac_ext
22034 LDFLAGS=$save_LDFLAGS
22035 libdir=$save_libdir
22036
22037 fi
22038
22039 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22040
22041 # This implies no fast_install, which is unacceptable.
22042 # Some rework will be needed to allow for fast_install
22043 # before this can be enabled.
22044 hardcode_into_libs=yes
22045
22046 # Append ld.so.conf contents to the search path
22047 if test -f /etc/ld.so.conf; then
22048 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' ' '`
22049 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22050 fi
22051
22052 # We used to test for /lib/ld.so.1 and disable shared libraries on
22053 # powerpc, because MkLinux only supported shared libraries with the
22054 # GNU dynamic linker. Since this was broken with cross compilers,
22055 # most powerpc-linux boxes support dynamic linking these days and
22056 # people can always --disable-shared, the test was removed, and we
22057 # assume the GNU/Linux dynamic linker is in use.
22058 dynamic_linker='GNU/Linux ld.so'
22059 ;;
22060
22061 netbsd*)
22062 version_type=sunos
22063 need_lib_prefix=no
22064 need_version=no
22065 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22068 dynamic_linker='NetBSD (a.out) ld.so'
22069 else
22070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22071 soname_spec='${libname}${release}${shared_ext}$major'
22072 dynamic_linker='NetBSD ld.elf_so'
22073 fi
22074 shlibpath_var=LD_LIBRARY_PATH
22075 shlibpath_overrides_runpath=yes
22076 hardcode_into_libs=yes
22077 ;;
22078
22079 newsos6)
22080 version_type=linux
22081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22082 shlibpath_var=LD_LIBRARY_PATH
22083 shlibpath_overrides_runpath=yes
22084 ;;
22085
22086 *nto* | *qnx*)
22087 version_type=qnx
22088 need_lib_prefix=no
22089 need_version=no
22090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22091 soname_spec='${libname}${release}${shared_ext}$major'
22092 shlibpath_var=LD_LIBRARY_PATH
22093 shlibpath_overrides_runpath=no
22094 hardcode_into_libs=yes
22095 dynamic_linker='ldqnx.so'
22096 ;;
22097
22098 openbsd*)
22099 version_type=sunos
22100 sys_lib_dlsearch_path_spec="/usr/lib"
22101 need_lib_prefix=no
22102 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22103 case $host_os in
22104 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22105 *) need_version=no ;;
22106 esac
22107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22109 shlibpath_var=LD_LIBRARY_PATH
22110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22111 case $host_os in
22112 openbsd2.[89] | openbsd2.[89].*)
22113 shlibpath_overrides_runpath=no
22114 ;;
22115 *)
22116 shlibpath_overrides_runpath=yes
22117 ;;
22118 esac
22119 else
22120 shlibpath_overrides_runpath=yes
22121 fi
22122 ;;
22123
22124 os2*)
22125 libname_spec='$name'
22126 shrext_cmds=".dll"
22127 need_lib_prefix=no
22128 library_names_spec='$libname${shared_ext} $libname.a'
22129 dynamic_linker='OS/2 ld.exe'
22130 shlibpath_var=LIBPATH
22131 ;;
22132
22133 osf3* | osf4* | osf5*)
22134 version_type=osf
22135 need_lib_prefix=no
22136 need_version=no
22137 soname_spec='${libname}${release}${shared_ext}$major'
22138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22139 shlibpath_var=LD_LIBRARY_PATH
22140 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22141 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22142 ;;
22143
22144 rdos*)
22145 dynamic_linker=no
22146 ;;
22147
22148 solaris*)
22149 version_type=linux
22150 need_lib_prefix=no
22151 need_version=no
22152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22153 soname_spec='${libname}${release}${shared_ext}$major'
22154 shlibpath_var=LD_LIBRARY_PATH
22155 shlibpath_overrides_runpath=yes
22156 hardcode_into_libs=yes
22157 # ldd complains unless libraries are executable
22158 postinstall_cmds='chmod +x $lib'
22159 ;;
22160
22161 sunos4*)
22162 version_type=sunos
22163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22164 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22165 shlibpath_var=LD_LIBRARY_PATH
22166 shlibpath_overrides_runpath=yes
22167 if test "$with_gnu_ld" = yes; then
22168 need_lib_prefix=no
22169 fi
22170 need_version=yes
22171 ;;
22172
22173 sysv4 | sysv4.3*)
22174 version_type=linux
22175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22176 soname_spec='${libname}${release}${shared_ext}$major'
22177 shlibpath_var=LD_LIBRARY_PATH
22178 case $host_vendor in
22179 sni)
22180 shlibpath_overrides_runpath=no
22181 need_lib_prefix=no
22182 runpath_var=LD_RUN_PATH
22183 ;;
22184 siemens)
22185 need_lib_prefix=no
22186 ;;
22187 motorola)
22188 need_lib_prefix=no
22189 need_version=no
22190 shlibpath_overrides_runpath=no
22191 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22192 ;;
22193 esac
22194 ;;
22195
22196 sysv4*MP*)
22197 if test -d /usr/nec ;then
22198 version_type=linux
22199 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22200 soname_spec='$libname${shared_ext}.$major'
22201 shlibpath_var=LD_LIBRARY_PATH
22202 fi
22203 ;;
22204
22205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22206 version_type=freebsd-elf
22207 need_lib_prefix=no
22208 need_version=no
22209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22210 soname_spec='${libname}${release}${shared_ext}$major'
22211 shlibpath_var=LD_LIBRARY_PATH
22212 shlibpath_overrides_runpath=yes
22213 hardcode_into_libs=yes
22214 if test "$with_gnu_ld" = yes; then
22215 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22216 else
22217 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22218 case $host_os in
22219 sco3.2v5*)
22220 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22221 ;;
22222 esac
22223 fi
22224 sys_lib_dlsearch_path_spec='/usr/lib'
22225 ;;
22226
22227 tpf*)
22228 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22229 version_type=linux
22230 need_lib_prefix=no
22231 need_version=no
22232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22233 shlibpath_var=LD_LIBRARY_PATH
22234 shlibpath_overrides_runpath=no
22235 hardcode_into_libs=yes
22236 ;;
22237
22238 uts4*)
22239 version_type=linux
22240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22241 soname_spec='${libname}${release}${shared_ext}$major'
22242 shlibpath_var=LD_LIBRARY_PATH
22243 ;;
22244
22245 *)
22246 dynamic_linker=no
22247 ;;
22248 esac
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22250 $as_echo "$dynamic_linker" >&6; }
22251 test "$dynamic_linker" = no && can_build_shared=no
22252
22253 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22254 if test "$GCC" = yes; then
22255 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22256 fi
22257
22258 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22259 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22260 fi
22261 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22262 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22263 fi
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22303 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22304 hardcode_action_CXX=
22305 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22306 test -n "$runpath_var_CXX" ||
22307 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22308
22309 # We can hardcode non-existent directories.
22310 if test "$hardcode_direct_CXX" != no &&
22311 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22312 # have to relink, otherwise we might link with an installed library
22313 # when we should be linking with a yet-to-be-installed one
22314 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22315 test "$hardcode_minus_L_CXX" != no; then
22316 # Linking always hardcodes the temporary library directory.
22317 hardcode_action_CXX=relink
22318 else
22319 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22320 hardcode_action_CXX=immediate
22321 fi
22322 else
22323 # We cannot hardcode anything, or else we can only hardcode existing
22324 # directories.
22325 hardcode_action_CXX=unsupported
22326 fi
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22328 $as_echo "$hardcode_action_CXX" >&6; }
22329
22330 if test "$hardcode_action_CXX" = relink ||
22331 test "$inherit_rpath_CXX" = yes; then
22332 # Fast installation is not supported
22333 enable_fast_install=no
22334 elif test "$shlibpath_overrides_runpath" = yes ||
22335 test "$enable_shared" = no; then
22336 # Fast installation is not necessary
22337 enable_fast_install=needless
22338 fi
22339
22340
22341
22342
22343
22344
22345
22346 fi # test -n "$compiler"
22347
22348 CC=$lt_save_CC
22349 LDCXX=$LD
22350 LD=$lt_save_LD
22351 GCC=$lt_save_GCC
22352 with_gnu_ld=$lt_save_with_gnu_ld
22353 lt_cv_path_LDCXX=$lt_cv_path_LD
22354 lt_cv_path_LD=$lt_save_path_LD
22355 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22356 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22357 fi # test "$_lt_caught_CXX_error" != yes
22358
22359 ac_ext=cpp
22360 ac_cpp='$CXXCPP $CPPFLAGS'
22361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380 # Only expand once:
22381
22382
22383
22384
22385
22386 # Identify the assembler which will work hand-in-glove with the newly
22387 # built GCC, so that we can examine its features. This is the assembler
22388 # which will be driven by the driver program.
22389 #
22390 # If build != host, and we aren't building gas in-tree, we identify a
22391 # build->target assembler and hope that it will have the same features
22392 # as the host->target assembler we'll be using.
22393 gcc_cv_gas_major_version=
22394 gcc_cv_gas_minor_version=
22395 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22396
22397 if ${gcc_cv_as+:} false; then :
22398
22399 else
22400
22401 if test -x "$DEFAULT_ASSEMBLER"; then
22402 gcc_cv_as="$DEFAULT_ASSEMBLER"
22403 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22404 && test -f ../gas/Makefile \
22405 && test x$build = x$host; then
22406 gcc_cv_as=../gas/as-new$build_exeext
22407 elif test -x as$build_exeext; then
22408 # Build using assembler in the current directory.
22409 gcc_cv_as=./as$build_exeext
22410 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22411 gcc_cv_as="$AS_FOR_TARGET"
22412 else
22413 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22414 set dummy $AS_FOR_TARGET; ac_word=$2
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22416 $as_echo_n "checking for $ac_word... " >&6; }
22417 if ${ac_cv_path_gcc_cv_as+:} false; then :
22418 $as_echo_n "(cached) " >&6
22419 else
22420 case $gcc_cv_as in
22421 [\\/]* | ?:[\\/]*)
22422 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22423 ;;
22424 *)
22425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22426 for as_dir in $PATH
22427 do
22428 IFS=$as_save_IFS
22429 test -z "$as_dir" && as_dir=.
22430 for ac_exec_ext in '' $ac_executable_extensions; do
22431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22432 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22434 break 2
22435 fi
22436 done
22437 done
22438 IFS=$as_save_IFS
22439
22440 ;;
22441 esac
22442 fi
22443 gcc_cv_as=$ac_cv_path_gcc_cv_as
22444 if test -n "$gcc_cv_as"; then
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22446 $as_echo "$gcc_cv_as" >&6; }
22447 else
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22449 $as_echo "no" >&6; }
22450 fi
22451
22452
22453 fi
22454 fi
22455
22456 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22457
22458 case "$ORIGINAL_AS_FOR_TARGET" in
22459 ./as | ./as$build_exeext) ;;
22460 *) ac_config_files="$ac_config_files as:exec-tool.in"
22461 ;;
22462 esac
22463
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22465 $as_echo_n "checking what assembler to use... " >&6; }
22466 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22467 # Single tree build which includes gas. We want to prefer it
22468 # over whatever linker top-level may have detected, since
22469 # we'll use what we're building after installation anyway.
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22471 $as_echo "newly built gas" >&6; }
22472 in_tree_gas=yes
22473 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22474 for f in $gcc_cv_as_bfd_srcdir/configure \
22475 $gcc_cv_as_gas_srcdir/configure \
22476 $gcc_cv_as_gas_srcdir/configure.ac \
22477 $gcc_cv_as_gas_srcdir/Makefile.in ; do
22478 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22479 if test x$gcc_cv_gas_version != x; then
22480 break
22481 fi
22482 done
22483 case $gcc_cv_gas_version in
22484 VERSION=[0-9]*) ;;
22485 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22486 esac
22487 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22488 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22489 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22490 case $gcc_cv_gas_patch_version in
22491 "") gcc_cv_gas_patch_version="0" ;;
22492 esac
22493 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22494 + $gcc_cv_gas_minor_version \) \* 1000 \
22495 + $gcc_cv_gas_patch_version`
22496
22497 in_tree_gas_is_elf=no
22498 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22499 || (grep 'obj_format = multi' ../gas/Makefile \
22500 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22501 then
22502 in_tree_gas_is_elf=yes
22503 fi
22504 else
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22506 $as_echo "$gcc_cv_as" >&6; }
22507 in_tree_gas=no
22508 fi
22509
22510 default_ld=
22511 # Check whether --enable-ld was given.
22512 if test "${enable_ld+set}" = set; then :
22513 enableval=$enable_ld; case "${enableval}" in
22514 no)
22515 default_ld=ld.gold
22516 ;;
22517 esac
22518 fi
22519
22520
22521 install_gold_as_default=no
22522 # Check whether --enable-gold was given.
22523 if test "${enable_gold+set}" = set; then :
22524 enableval=$enable_gold; case "${enableval}" in
22525 default)
22526 install_gold_as_default=yes
22527 ;;
22528 yes)
22529 if test x${default_ld} != x; then
22530 install_gold_as_default=yes
22531 fi
22532 ;;
22533 no)
22534 ;;
22535 *)
22536 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22537 ;;
22538 esac
22539 fi
22540
22541
22542 # Identify the linker which will work hand-in-glove with the newly
22543 # built GCC, so that we can examine its features. This is the linker
22544 # which will be driven by the driver program.
22545 #
22546 # If build != host, and we aren't building gas in-tree, we identify a
22547 # build->target linker and hope that it will have the same features
22548 # as the host->target linker we'll be using.
22549 gcc_cv_gld_major_version=
22550 gcc_cv_gld_minor_version=
22551 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22552 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22553 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22554
22555 if ${gcc_cv_ld+:} false; then :
22556
22557 else
22558
22559 if test -x "$DEFAULT_LINKER"; then
22560 gcc_cv_ld="$DEFAULT_LINKER"
22561 elif test $install_gold_as_default = yes \
22562 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22563 && test -f ../gold/Makefile \
22564 && test x$build = x$host; then
22565 gcc_cv_ld=../gold/ld-new$build_exeext
22566 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22567 && test -f ../ld/Makefile \
22568 && test x$build = x$host; then
22569 gcc_cv_ld=../ld/ld-new$build_exeext
22570 elif test -x collect-ld$build_exeext; then
22571 # Build using linker in the current directory.
22572 gcc_cv_ld=./collect-ld$build_exeext
22573 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22574 gcc_cv_ld="$LD_FOR_TARGET"
22575 else
22576 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22577 set dummy $LD_FOR_TARGET; ac_word=$2
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22579 $as_echo_n "checking for $ac_word... " >&6; }
22580 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22581 $as_echo_n "(cached) " >&6
22582 else
22583 case $gcc_cv_ld in
22584 [\\/]* | ?:[\\/]*)
22585 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22586 ;;
22587 *)
22588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22589 for as_dir in $PATH
22590 do
22591 IFS=$as_save_IFS
22592 test -z "$as_dir" && as_dir=.
22593 for ac_exec_ext in '' $ac_executable_extensions; do
22594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22595 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22597 break 2
22598 fi
22599 done
22600 done
22601 IFS=$as_save_IFS
22602
22603 ;;
22604 esac
22605 fi
22606 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22607 if test -n "$gcc_cv_ld"; then
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22609 $as_echo "$gcc_cv_ld" >&6; }
22610 else
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22612 $as_echo "no" >&6; }
22613 fi
22614
22615
22616 fi
22617 fi
22618
22619 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22620 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22621 # if the PLUGIN_LD is set ld-new, just have it as ld
22622 # as that is the installed named.
22623 if test x$PLUGIN_LD_SUFFIX = xld-new \
22624 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22625 PLUGIN_LD_SUFFIX=ld
22626 fi
22627
22628 # Check whether --with-plugin-ld was given.
22629 if test "${with_plugin_ld+set}" = set; then :
22630 withval=$with_plugin_ld; if test x"$withval" != x; then
22631 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22632 PLUGIN_LD_SUFFIX="$withval"
22633 fi
22634 fi
22635
22636
22637
22638 cat >>confdefs.h <<_ACEOF
22639 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22640 _ACEOF
22641
22642
22643 # Check to see if we are using gold instead of ld
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22645 $as_echo_n "checking whether we are using gold... " >&6; }
22646 ld_is_gold=no
22647 if test x$gcc_cv_ld != x; then
22648 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22649 | grep "GNU gold" > /dev/null; then
22650 ld_is_gold=yes
22651 fi
22652 fi
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22654 $as_echo "$ld_is_gold" >&6; }
22655
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22657 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22658 # Check to see if default ld is not gold, but gold is
22659 # available and has support for split stack. If gcc was configured
22660 # with gold then no checking is done.
22661 #
22662 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22663
22664 # For platforms other than powerpc64*, enable as appropriate.
22665
22666 gold_non_default=no
22667 ld_gold=`which ${gcc_cv_ld}.gold`
22668 # Make sure this gold has minimal split stack support
22669 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22670 ld_vers=`$ld_gold --version | sed 1q`
22671 gold_vers=`echo $ld_vers | sed -n \
22672 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22673 case $target in
22674 # check that the gold version contains the complete split stack support
22675 # on powerpc64 big and little endian
22676 powerpc64*-*-*)
22677 case "$gold_vers" in
22678 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22679 ;;
22680 *) gold_non_default=no
22681 ;;
22682 esac
22683 ;;
22684 esac
22685 fi
22686 if test $gold_non_default = yes; then
22687
22688 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22689
22690 fi
22691 fi
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22693 $as_echo "$gold_non_default" >&6; }
22694
22695 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22696
22697 case "$ORIGINAL_LD_FOR_TARGET" in
22698 ./collect-ld | ./collect-ld$build_exeext) ;;
22699 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22700 ;;
22701 esac
22702
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22704 $as_echo_n "checking what linker to use... " >&6; }
22705 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22706 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22707 # Single tree build which includes ld. We want to prefer it
22708 # over whatever linker top-level may have detected, since
22709 # we'll use what we're building after installation anyway.
22710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22711 $as_echo "newly built ld" >&6; }
22712 in_tree_ld=yes
22713 in_tree_ld_is_elf=no
22714 if (grep 'EMUL = .*elf' ../ld/Makefile \
22715 || grep 'EMUL = .*linux' ../ld/Makefile \
22716 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22717 in_tree_ld_is_elf=yes
22718 elif test "$ld_is_gold" = yes; then
22719 in_tree_ld_is_elf=yes
22720 fi
22721 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
22722 do
22723 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22724 if test x$gcc_cv_gld_version != x; then
22725 break
22726 fi
22727 done
22728 case $gcc_cv_gld_version in
22729 VERSION=[0-9]*) ;;
22730 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22731 esac
22732 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22733 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22734 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22735 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22736 else
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22738 $as_echo "$gcc_cv_ld" >&6; }
22739 in_tree_ld=no
22740 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22741 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22742 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22743 fi
22744
22745
22746
22747
22748 # Figure out what nm we will be using.
22749 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22750 if ${gcc_cv_nm+:} false; then :
22751
22752 else
22753
22754 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22755 && test -f ../binutils/Makefile \
22756 && test x$build = x$host; then
22757 gcc_cv_nm=../binutils/nm-new$build_exeext
22758 elif test -x nm$build_exeext; then
22759 gcc_cv_nm=./nm$build_exeext
22760 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22761 gcc_cv_nm="$NM_FOR_TARGET"
22762 else
22763 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22764 set dummy $NM_FOR_TARGET; ac_word=$2
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22766 $as_echo_n "checking for $ac_word... " >&6; }
22767 if ${ac_cv_path_gcc_cv_nm+:} false; then :
22768 $as_echo_n "(cached) " >&6
22769 else
22770 case $gcc_cv_nm in
22771 [\\/]* | ?:[\\/]*)
22772 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22773 ;;
22774 *)
22775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22776 for as_dir in $PATH
22777 do
22778 IFS=$as_save_IFS
22779 test -z "$as_dir" && as_dir=.
22780 for ac_exec_ext in '' $ac_executable_extensions; do
22781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22782 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22784 break 2
22785 fi
22786 done
22787 done
22788 IFS=$as_save_IFS
22789
22790 ;;
22791 esac
22792 fi
22793 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22794 if test -n "$gcc_cv_nm"; then
22795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22796 $as_echo "$gcc_cv_nm" >&6; }
22797 else
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22799 $as_echo "no" >&6; }
22800 fi
22801
22802
22803 fi
22804 fi
22805
22806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22807 $as_echo_n "checking what nm to use... " >&6; }
22808 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22809 # Single tree build which includes binutils.
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22811 $as_echo "newly built nm" >&6; }
22812 in_tree_nm=yes
22813 else
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22815 $as_echo "$gcc_cv_nm" >&6; }
22816 in_tree_nm=no
22817 fi
22818
22819 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22820
22821 case "$ORIGINAL_NM_FOR_TARGET" in
22822 ./nm | ./nm$build_exeext) ;;
22823 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22824 ;;
22825 esac
22826
22827
22828 # Figure out what objdump we will be using.
22829 if ${gcc_cv_objdump+:} false; then :
22830
22831 else
22832
22833 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22834 && test -f ../binutils/Makefile \
22835 && test x$build = x$host; then
22836 # Single tree build which includes binutils.
22837 gcc_cv_objdump=../binutils/objdump$build_exeext
22838 elif test -x objdump$build_exeext; then
22839 gcc_cv_objdump=./objdump$build_exeext
22840 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22841 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22842 else
22843 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22844 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22846 $as_echo_n "checking for $ac_word... " >&6; }
22847 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22848 $as_echo_n "(cached) " >&6
22849 else
22850 case $gcc_cv_objdump in
22851 [\\/]* | ?:[\\/]*)
22852 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22853 ;;
22854 *)
22855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22856 for as_dir in $PATH
22857 do
22858 IFS=$as_save_IFS
22859 test -z "$as_dir" && as_dir=.
22860 for ac_exec_ext in '' $ac_executable_extensions; do
22861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22862 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22864 break 2
22865 fi
22866 done
22867 done
22868 IFS=$as_save_IFS
22869
22870 ;;
22871 esac
22872 fi
22873 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22874 if test -n "$gcc_cv_objdump"; then
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22876 $as_echo "$gcc_cv_objdump" >&6; }
22877 else
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22879 $as_echo "no" >&6; }
22880 fi
22881
22882
22883 fi
22884 fi
22885
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22887 $as_echo_n "checking what objdump to use... " >&6; }
22888 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22889 # Single tree build which includes binutils.
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22891 $as_echo "newly built objdump" >&6; }
22892 elif test x$gcc_cv_objdump = x; then
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22894 $as_echo "not found" >&6; }
22895 else
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22897 $as_echo "$gcc_cv_objdump" >&6; }
22898 fi
22899
22900 # Figure out what readelf we will be using.
22901 if ${gcc_cv_readelf+:} false; then :
22902
22903 else
22904
22905 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22906 && test -f ../binutils/Makefile \
22907 && test x$build = x$host; then
22908 # Single tree build which includes binutils.
22909 gcc_cv_readelf=../binutils/readelf$build_exeext
22910 elif test -x readelf$build_exeext; then
22911 gcc_cv_readelf=./readelf$build_exeext
22912 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22913 gcc_cv_readelf="$READELF_FOR_TARGET"
22914 else
22915 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22916 set dummy $READELF_FOR_TARGET; ac_word=$2
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22918 $as_echo_n "checking for $ac_word... " >&6; }
22919 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22920 $as_echo_n "(cached) " >&6
22921 else
22922 case $gcc_cv_readelf in
22923 [\\/]* | ?:[\\/]*)
22924 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22925 ;;
22926 *)
22927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22928 for as_dir in $PATH
22929 do
22930 IFS=$as_save_IFS
22931 test -z "$as_dir" && as_dir=.
22932 for ac_exec_ext in '' $ac_executable_extensions; do
22933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22934 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22936 break 2
22937 fi
22938 done
22939 done
22940 IFS=$as_save_IFS
22941
22942 ;;
22943 esac
22944 fi
22945 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22946 if test -n "$gcc_cv_readelf"; then
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22948 $as_echo "$gcc_cv_readelf" >&6; }
22949 else
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22951 $as_echo "no" >&6; }
22952 fi
22953
22954
22955 fi
22956 fi
22957
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22959 $as_echo_n "checking what readelf to use... " >&6; }
22960 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22961 # Single tree build which includes binutils.
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22963 $as_echo "newly built readelf" >&6; }
22964 elif test x$gcc_cv_readelf = x; then
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22966 $as_echo "not found" >&6; }
22967 else
22968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22969 $as_echo "$gcc_cv_readelf" >&6; }
22970 fi
22971
22972 # Figure out what otool we will be using.
22973 if ${gcc_cv_otool+:} false; then :
22974
22975 else
22976
22977 if test -x otool$build_exeext; then
22978 gcc_cv_otool=./otool$build_exeext
22979 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
22980 gcc_cv_otool="$OTOOL_FOR_TARGET"
22981 else
22982 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22983 set dummy $OTOOL_FOR_TARGET; ac_word=$2
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22985 $as_echo_n "checking for $ac_word... " >&6; }
22986 if ${ac_cv_path_gcc_cv_otool+:} false; then :
22987 $as_echo_n "(cached) " >&6
22988 else
22989 case $gcc_cv_otool in
22990 [\\/]* | ?:[\\/]*)
22991 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
22992 ;;
22993 *)
22994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22995 for as_dir in $PATH
22996 do
22997 IFS=$as_save_IFS
22998 test -z "$as_dir" && as_dir=.
22999 for ac_exec_ext in '' $ac_executable_extensions; do
23000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23001 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23003 break 2
23004 fi
23005 done
23006 done
23007 IFS=$as_save_IFS
23008
23009 ;;
23010 esac
23011 fi
23012 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23013 if test -n "$gcc_cv_otool"; then
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23015 $as_echo "$gcc_cv_otool" >&6; }
23016 else
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23018 $as_echo "no" >&6; }
23019 fi
23020
23021
23022 fi
23023 fi
23024
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23026 $as_echo_n "checking what otool to use... " >&6; }
23027 if test x$gcc_cv_otool = x; then
23028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23029 $as_echo "not found" >&6; }
23030 else
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23032 $as_echo "$gcc_cv_otool" >&6; }
23033 fi
23034
23035 # Figure out what assembler alignment features are present.
23036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23037 $as_echo_n "checking assembler flags... " >&6; }
23038 if ${gcc_cv_as_flags+:} false; then :
23039 $as_echo_n "(cached) " >&6
23040 else
23041 case "$target" in
23042 i[34567]86-*-linux*)
23043 gcc_cv_as_flags=--32
23044 ;;
23045 x86_64-*-linux-gnux32)
23046 gcc_cv_as_flags=--x32
23047 ;;
23048 x86_64-*-linux*)
23049 gcc_cv_as_flags=--64
23050 ;;
23051 powerpc*-*-darwin*)
23052 gcc_cv_as_flags="-arch ppc"
23053 ;;
23054 *)
23055 gcc_cv_as_flags=" "
23056 ;;
23057 esac
23058 fi
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23060 $as_echo "$gcc_cv_as_flags" >&6; }
23061
23062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23063 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23064 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23065 $as_echo_n "(cached) " >&6
23066 else
23067 gcc_cv_as_balign_and_p2align=no
23068 if test $in_tree_gas = yes; then
23069 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
23070 then gcc_cv_as_balign_and_p2align=yes
23071 fi
23072 elif test x$gcc_cv_as != x; then
23073 $as_echo '.balign 4
23074 .p2align 2' > conftest.s
23075 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23077 (eval $ac_try) 2>&5
23078 ac_status=$?
23079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23080 test $ac_status = 0; }; }
23081 then
23082 gcc_cv_as_balign_and_p2align=yes
23083 else
23084 echo "configure: failed program was" >&5
23085 cat conftest.s >&5
23086 fi
23087 rm -f conftest.o conftest.s
23088 fi
23089 fi
23090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23091 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23092 if test $gcc_cv_as_balign_and_p2align = yes; then
23093
23094 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23095
23096 fi
23097
23098
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23100 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23101 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23102 $as_echo_n "(cached) " >&6
23103 else
23104 gcc_cv_as_max_skip_p2align=no
23105 if test $in_tree_gas = yes; then
23106 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23107 then gcc_cv_as_max_skip_p2align=yes
23108 fi
23109 elif test x$gcc_cv_as != x; then
23110 $as_echo '.p2align 4,,7' > conftest.s
23111 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23113 (eval $ac_try) 2>&5
23114 ac_status=$?
23115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23116 test $ac_status = 0; }; }
23117 then
23118 gcc_cv_as_max_skip_p2align=yes
23119 else
23120 echo "configure: failed program was" >&5
23121 cat conftest.s >&5
23122 fi
23123 rm -f conftest.o conftest.s
23124 fi
23125 fi
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23127 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23128 if test $gcc_cv_as_max_skip_p2align = yes; then
23129
23130 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23131
23132 fi
23133
23134
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23136 $as_echo_n "checking assembler for .literal16... " >&6; }
23137 if ${gcc_cv_as_literal16+:} false; then :
23138 $as_echo_n "(cached) " >&6
23139 else
23140 gcc_cv_as_literal16=no
23141 if test $in_tree_gas = yes; then
23142 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23143 then gcc_cv_as_literal16=yes
23144 fi
23145 elif test x$gcc_cv_as != x; then
23146 $as_echo '.literal16' > conftest.s
23147 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23149 (eval $ac_try) 2>&5
23150 ac_status=$?
23151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23152 test $ac_status = 0; }; }
23153 then
23154 gcc_cv_as_literal16=yes
23155 else
23156 echo "configure: failed program was" >&5
23157 cat conftest.s >&5
23158 fi
23159 rm -f conftest.o conftest.s
23160 fi
23161 fi
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23163 $as_echo "$gcc_cv_as_literal16" >&6; }
23164 if test $gcc_cv_as_literal16 = yes; then
23165
23166 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23167
23168 fi
23169
23170
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23172 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23173 if ${gcc_cv_as_subsection_m1+:} false; then :
23174 $as_echo_n "(cached) " >&6
23175 else
23176 gcc_cv_as_subsection_m1=no
23177 if test $in_tree_gas = yes; then
23178 if test $in_tree_gas_is_elf = yes \
23179 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23180 then gcc_cv_as_subsection_m1=yes
23181 fi
23182 elif test x$gcc_cv_as != x; then
23183 $as_echo 'conftest_label1: .word 0
23184 .subsection -1
23185 conftest_label2: .word 0
23186 .previous' > conftest.s
23187 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23189 (eval $ac_try) 2>&5
23190 ac_status=$?
23191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23192 test $ac_status = 0; }; }
23193 then
23194 if test x$gcc_cv_nm != x; then
23195 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23196 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23197 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23198 then :
23199 else gcc_cv_as_subsection_m1=yes
23200 fi
23201 rm -f conftest.nm1 conftest.nm2
23202 fi
23203 else
23204 echo "configure: failed program was" >&5
23205 cat conftest.s >&5
23206 fi
23207 rm -f conftest.o conftest.s
23208 fi
23209 fi
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23211 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23212 if test $gcc_cv_as_subsection_m1 = yes; then
23213
23214 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23215
23216 fi
23217
23218
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23220 $as_echo_n "checking assembler for .weak... " >&6; }
23221 if ${gcc_cv_as_weak+:} false; then :
23222 $as_echo_n "(cached) " >&6
23223 else
23224 gcc_cv_as_weak=no
23225 if test $in_tree_gas = yes; then
23226 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23227 then gcc_cv_as_weak=yes
23228 fi
23229 elif test x$gcc_cv_as != x; then
23230 $as_echo ' .weak foobar' > conftest.s
23231 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23233 (eval $ac_try) 2>&5
23234 ac_status=$?
23235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23236 test $ac_status = 0; }; }
23237 then
23238 gcc_cv_as_weak=yes
23239 else
23240 echo "configure: failed program was" >&5
23241 cat conftest.s >&5
23242 fi
23243 rm -f conftest.o conftest.s
23244 fi
23245 fi
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23247 $as_echo "$gcc_cv_as_weak" >&6; }
23248 if test $gcc_cv_as_weak = yes; then
23249
23250 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23251
23252 fi
23253
23254
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23256 $as_echo_n "checking assembler for .weakref... " >&6; }
23257 if ${gcc_cv_as_weakref+:} false; then :
23258 $as_echo_n "(cached) " >&6
23259 else
23260 gcc_cv_as_weakref=no
23261 if test $in_tree_gas = yes; then
23262 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23263 then gcc_cv_as_weakref=yes
23264 fi
23265 elif test x$gcc_cv_as != x; then
23266 $as_echo ' .weakref foobar, barfnot' > conftest.s
23267 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23269 (eval $ac_try) 2>&5
23270 ac_status=$?
23271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23272 test $ac_status = 0; }; }
23273 then
23274 gcc_cv_as_weakref=yes
23275 else
23276 echo "configure: failed program was" >&5
23277 cat conftest.s >&5
23278 fi
23279 rm -f conftest.o conftest.s
23280 fi
23281 fi
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23283 $as_echo "$gcc_cv_as_weakref" >&6; }
23284 if test $gcc_cv_as_weakref = yes; then
23285
23286 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23287
23288 fi
23289
23290
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23292 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23293 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23294 $as_echo_n "(cached) " >&6
23295 else
23296 gcc_cv_as_nsubspa_comdat=no
23297 if test $in_tree_gas = yes; then
23298 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23299 then gcc_cv_as_nsubspa_comdat=yes
23300 fi
23301 elif test x$gcc_cv_as != x; then
23302 $as_echo ' .SPACE $TEXT$
23303 .NSUBSPA $CODE$,COMDAT' > conftest.s
23304 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23306 (eval $ac_try) 2>&5
23307 ac_status=$?
23308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23309 test $ac_status = 0; }; }
23310 then
23311 gcc_cv_as_nsubspa_comdat=yes
23312 else
23313 echo "configure: failed program was" >&5
23314 cat conftest.s >&5
23315 fi
23316 rm -f conftest.o conftest.s
23317 fi
23318 fi
23319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23320 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23321 if test $gcc_cv_as_nsubspa_comdat = yes; then
23322
23323 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23324
23325 fi
23326
23327
23328 # .hidden needs to be supported in both the assembler and the linker,
23329 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23330 # This is irritatingly difficult to feature test for; we have to check the
23331 # date string after the version number. If we've got an in-tree
23332 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23333 # to be safe.
23334 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23335 case "${target}" in
23336 *-*-aix*)
23337 conftest_s=' .globl foobar,hidden'
23338 ;;
23339 *)
23340 conftest_s=' .hidden foobar
23341 foobar:'
23342 ;;
23343 esac
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23345 $as_echo_n "checking assembler for .hidden... " >&6; }
23346 if ${gcc_cv_as_hidden+:} false; then :
23347 $as_echo_n "(cached) " >&6
23348 else
23349 gcc_cv_as_hidden=no
23350 if test $in_tree_gas = yes; then
23351 if test $in_tree_gas_is_elf = yes \
23352 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23353 then gcc_cv_as_hidden=yes
23354 fi
23355 elif test x$gcc_cv_as != x; then
23356 $as_echo "$conftest_s" > conftest.s
23357 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23359 (eval $ac_try) 2>&5
23360 ac_status=$?
23361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23362 test $ac_status = 0; }; }
23363 then
23364 gcc_cv_as_hidden=yes
23365 else
23366 echo "configure: failed program was" >&5
23367 cat conftest.s >&5
23368 fi
23369 rm -f conftest.o conftest.s
23370 fi
23371 fi
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23373 $as_echo "$gcc_cv_as_hidden" >&6; }
23374
23375
23376 case "${target}" in
23377 *-*-darwin*)
23378 # Darwin as has some visibility support, though with a different syntax.
23379 gcc_cv_as_hidden=yes
23380 ;;
23381 esac
23382
23383 # gnu_indirect_function type is an extension proposed at
23384 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23385 # selection of function implementation
23386 # Check whether --enable-gnu-indirect-function was given.
23387 if test "${enable_gnu_indirect_function+set}" = set; then :
23388 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23389 yes | no) ;;
23390 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23391 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23392 esac
23393 else
23394 enable_gnu_indirect_function="$default_gnu_indirect_function"
23395 fi
23396
23397
23398 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23399
23400 cat >>confdefs.h <<_ACEOF
23401 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23402 _ACEOF
23403
23404
23405
23406 if test $in_tree_ld != yes ; then
23407 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23408 if echo "$ld_ver" | grep GNU > /dev/null; then
23409 if test x"$ld_is_gold" = xyes; then
23410 # GNU gold --version looks like this:
23411 #
23412 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23413 #
23414 # We extract the binutils version which is more familiar and specific
23415 # than the gold version.
23416 ld_vers=`echo $ld_ver | sed -n \
23417 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23418 else
23419 # GNU ld --version looks like this:
23420 #
23421 # GNU ld (GNU Binutils) 2.21.51.20110225
23422 ld_vers=`echo $ld_ver | sed -n \
23423 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23424 fi
23425 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'`
23426 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23427 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23428 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23429 else
23430 case "${target}" in
23431 *-*-solaris2*)
23432 # Solaris 2 ld -V output looks like this for a regular version:
23433 #
23434 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23435 #
23436 # but test versions add stuff at the end:
23437 #
23438 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23439 #
23440 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23441 # numbers can be used in ld.so.1 feature checks even if a different
23442 # linker is configured.
23443 ld_ver=`$gcc_cv_ld -V 2>&1`
23444 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23445 ld_vers=`echo $ld_ver | sed -n \
23446 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23447 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23448 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23449 fi
23450 ;;
23451 esac
23452 fi
23453 fi
23454
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23456 $as_echo_n "checking linker for .hidden support... " >&6; }
23457 if ${gcc_cv_ld_hidden+:} false; then :
23458 $as_echo_n "(cached) " >&6
23459 else
23460 if test $in_tree_ld = yes ; then
23461 gcc_cv_ld_hidden=no
23462 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 \
23463 && test $in_tree_ld_is_elf = yes; then
23464 gcc_cv_ld_hidden=yes
23465 fi
23466 else
23467 gcc_cv_ld_hidden=yes
23468 if test x"$ld_is_gold" = xyes; then
23469 :
23470 elif echo "$ld_ver" | grep GNU > /dev/null; then
23471 case "${target}" in
23472 mmix-knuth-mmixware)
23473 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23474 gcc_cv_ld_hidden=no
23475 ;;
23476 esac
23477 if test 0"$ld_date" -lt 20020404; then
23478 if test -n "$ld_date"; then
23479 # If there was date string, but was earlier than 2002-04-04, fail
23480 gcc_cv_ld_hidden=no
23481 elif test -z "$ld_vers"; then
23482 # If there was no date string nor ld version number, something is wrong
23483 gcc_cv_ld_hidden=no
23484 else
23485 test -z "$ld_vers_patch" && ld_vers_patch=0
23486 if test "$ld_vers_major" -lt 2; then
23487 gcc_cv_ld_hidden=no
23488 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23489 gcc_cv_ld_hidden="no"
23490 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23491 gcc_cv_ld_hidden=no
23492 fi
23493 fi
23494 fi
23495 else
23496 case "${target}" in
23497 *-*-aix[789]*)
23498 gcc_cv_ld_hidden=yes
23499 ;;
23500 *-*-darwin*)
23501 # Darwin ld has some visibility support.
23502 gcc_cv_ld_hidden=yes
23503 ;;
23504 hppa64*-*-hpux* | ia64*-*-hpux*)
23505 gcc_cv_ld_hidden=yes
23506 ;;
23507 *-*-solaris2*)
23508 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23509 # .symbolic was only added in Solaris 9 12/02.
23510 gcc_cv_ld_hidden=yes
23511 ;;
23512 *)
23513 gcc_cv_ld_hidden=no
23514 ;;
23515 esac
23516 fi
23517 fi
23518 fi
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23520 $as_echo "$gcc_cv_ld_hidden" >&6; }
23521 libgcc_visibility=no
23522
23523
23524 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23525 libgcc_visibility=yes
23526
23527 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23528
23529 fi
23530
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23532 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23533 gcc_cv_ld_ro_rw_mix=unknown
23534 if test $in_tree_ld = yes ; then
23535 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 \
23536 && test $in_tree_ld_is_elf = yes; then
23537 gcc_cv_ld_ro_rw_mix=read-write
23538 fi
23539 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23540 echo '.section myfoosect, "a"' > conftest1.s
23541 echo '.section myfoosect, "aw"' > conftest2.s
23542 echo '.byte 1' >> conftest2.s
23543 echo '.section myfoosect, "a"' > conftest3.s
23544 echo '.byte 0' >> conftest3.s
23545 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23546 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23547 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23548 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23549 conftest2.o conftest3.o > /dev/null 2>&1; then
23550 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23551 | sed -e '/myfoosect/!d' -e N`
23552 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23553 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23554 gcc_cv_ld_ro_rw_mix=read-only
23555 else
23556 gcc_cv_ld_ro_rw_mix=read-write
23557 fi
23558 fi
23559 fi
23560 rm -f conftest.* conftest[123].*
23561 fi
23562 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23563
23564 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23565
23566 fi
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23568 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23569
23570 # Check whether --enable-initfini-array was given.
23571 if test "${enable_initfini_array+set}" = set; then :
23572 enableval=$enable_initfini_array;
23573 else
23574
23575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23576 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23577 if ${gcc_cv_initfini_array+:} false; then :
23578 $as_echo_n "(cached) " >&6
23579 else
23580 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23581 case "${target}" in
23582 ia64-*)
23583 if test "$cross_compiling" = yes; then :
23584 gcc_cv_initfini_array=no
23585 else
23586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23587 /* end confdefs.h. */
23588
23589 #ifndef __ELF__
23590 #error Not an ELF OS
23591 #endif
23592 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23593 if it can be used. */
23594 static int x = -1;
23595 int main (void) { return x; }
23596 int foo (void) { x = 0; }
23597 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23598
23599 _ACEOF
23600 if ac_fn_cxx_try_run "$LINENO"; then :
23601 gcc_cv_initfini_array=yes
23602 else
23603 gcc_cv_initfini_array=no
23604 fi
23605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23606 conftest.$ac_objext conftest.beam conftest.$ac_ext
23607 fi
23608 ;;
23609 *)
23610 gcc_cv_initfini_array=no
23611 if test $in_tree_ld = yes ; then
23612 if test "$gcc_cv_gld_major_version" -eq 2 \
23613 -a "$gcc_cv_gld_minor_version" -ge 22 \
23614 -o "$gcc_cv_gld_major_version" -gt 2 \
23615 && test $in_tree_ld_is_elf = yes; then
23616 gcc_cv_initfini_array=yes
23617 fi
23618 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23619 case $target:$gas in
23620 *:yes)
23621 sh_flags='"a"'
23622 sh_type='%progbits'
23623 ;;
23624 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23625 sh_flags='"a"'
23626 sh_type='@progbits'
23627 ;;
23628 sparc*-*-solaris2*:no)
23629 sh_flags='#alloc'
23630 sh_type='#progbits'
23631 sh_quote='"'
23632 ;;
23633 esac
23634 case "$target:$gnu_ld" in
23635 *:yes)
23636 cat > conftest.s <<EOF
23637 .section .dtors,$sh_flags,$sh_type
23638 .balign 4
23639 .byte 'A', 'A', 'A', 'A'
23640 .section .ctors,$sh_flags,$sh_type
23641 .balign 4
23642 .byte 'B', 'B', 'B', 'B'
23643 .section .fini_array.65530,$sh_flags,$sh_type
23644 .balign 4
23645 .byte 'C', 'C', 'C', 'C'
23646 .section .init_array.65530,$sh_flags,$sh_type
23647 .balign 4
23648 .byte 'D', 'D', 'D', 'D'
23649 .section .dtors.64528,$sh_flags,$sh_type
23650 .balign 4
23651 .byte 'E', 'E', 'E', 'E'
23652 .section .ctors.64528,$sh_flags,$sh_type
23653 .balign 4
23654 .byte 'F', 'F', 'F', 'F'
23655 .section .fini_array.01005,$sh_flags,$sh_type
23656 .balign 4
23657 .byte 'G', 'G', 'G', 'G'
23658 .section .init_array.01005,$sh_flags,$sh_type
23659 .balign 4
23660 .byte 'H', 'H', 'H', 'H'
23661 .text
23662 .globl _start
23663 _start:
23664 EOF
23665 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23666 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23667 && $gcc_cv_objdump -s -j .init_array conftest \
23668 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23669 && $gcc_cv_objdump -s -j .fini_array conftest \
23670 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23671 gcc_cv_initfini_array=yes
23672 fi
23673 ;;
23674 *-*-solaris2*:no)
23675 # When Solaris ld added constructor priority support, it was
23676 # decided to only handle .init_array.N/.fini_array.N since
23677 # there was no need for backwards compatibility with
23678 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23679 # sections with correct execution order resp. to
23680 # .init_array/.fini_array, while gld merges them into
23681 # .init_array/.fini_array.
23682 cat > conftest.s <<EOF
23683 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23684 .align 4
23685 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23686 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23687 .align 4
23688 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23689 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23690 .align 4
23691 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23692 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23693 .align 4
23694 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23695 .text
23696 .globl _start
23697 _start:
23698 EOF
23699 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23700 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23701 && $gcc_cv_objdump -s -j .init_array conftest \
23702 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
23703 && $gcc_cv_objdump -s -j .fini_array conftest \
23704 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
23705 gcc_cv_initfini_array=yes
23706 fi
23707 ;;
23708 esac
23709 rm -f conftest conftest.*
23710 fi
23711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23712 /* end confdefs.h. */
23713
23714 #ifndef __ELF__
23715 # error Not an ELF OS
23716 #endif
23717 #include <stdlib.h>
23718 #if defined __GLIBC_PREREQ
23719 # if __GLIBC_PREREQ (2, 4)
23720 # else
23721 # error GLIBC 2.4 required
23722 # endif
23723 #else
23724 # if defined __sun__ && defined __svr4__
23725 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23726 # else
23727 # error The C library not known to support .init_array/.fini_array
23728 # endif
23729 #endif
23730
23731 _ACEOF
23732 if ac_fn_cxx_try_cpp "$LINENO"; then :
23733
23734 else
23735 gcc_cv_initfini_array=no
23736 fi
23737 rm -f conftest.err conftest.i conftest.$ac_ext;;
23738 esac
23739 else
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23741 $as_echo_n "checking cross compile... guessing... " >&6; }
23742 gcc_cv_initfini_array=no
23743 fi
23744 fi
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23746 $as_echo "$gcc_cv_initfini_array" >&6; }
23747 enable_initfini_array=$gcc_cv_initfini_array
23748
23749 fi
23750
23751
23752 cat >>confdefs.h <<_ACEOF
23753 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23754 _ACEOF
23755
23756
23757
23758 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23760 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23761 if ${gcc_cv_as_leb128+:} false; then :
23762 $as_echo_n "(cached) " >&6
23763 else
23764 gcc_cv_as_leb128=no
23765 if test $in_tree_gas = yes; then
23766 if test $in_tree_gas_is_elf = yes \
23767 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23768 then gcc_cv_as_leb128=yes
23769 fi
23770 elif test x$gcc_cv_as != x; then
23771 $as_echo ' .data
23772 .uleb128 L2 - L1
23773 L1:
23774 .uleb128 1280
23775 .sleb128 -1010
23776 L2:' > conftest.s
23777 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23779 (eval $ac_try) 2>&5
23780 ac_status=$?
23781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23782 test $ac_status = 0; }; }
23783 then
23784 # GAS versions before 2.11 do not support uleb128,
23785 # despite appearing to.
23786 # ??? There exists an elf-specific test that will crash
23787 # the assembler. Perhaps it's better to figure out whether
23788 # arbitrary sections are supported and try the test.
23789 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23790 if echo "$as_ver" | grep GNU > /dev/null; then
23791 as_vers=`echo $as_ver | sed -n \
23792 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23793 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23794 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23795 if test $as_major -eq 2 && test $as_minor -lt 11
23796 then :
23797 else gcc_cv_as_leb128=yes
23798 fi
23799 fi
23800 else
23801 echo "configure: failed program was" >&5
23802 cat conftest.s >&5
23803 fi
23804 rm -f conftest.o conftest.s
23805 fi
23806 fi
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23808 $as_echo "$gcc_cv_as_leb128" >&6; }
23809 if test $gcc_cv_as_leb128 = yes; then
23810
23811 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23812
23813 fi
23814 if test $gcc_cv_as_leb128 != yes; then
23815
23816 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23817
23818 fi
23819
23820 # Determine if an .eh_frame section is read-only.
23821 gcc_fn_eh_frame_ro () {
23822 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23823 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23824 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23825 }
23826
23827 # Check if we have assembler support for unwind directives.
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23829 $as_echo_n "checking assembler for cfi directives... " >&6; }
23830 if ${gcc_cv_as_cfi_directive+:} false; then :
23831 $as_echo_n "(cached) " >&6
23832 else
23833 gcc_cv_as_cfi_directive=no
23834 if test x$gcc_cv_as != x; then
23835 $as_echo ' .text
23836 .cfi_startproc
23837 .cfi_offset 0, 0
23838 .cfi_same_value 1
23839 .cfi_def_cfa 1, 2
23840 .cfi_escape 1, 2, 3, 4, 5
23841 .cfi_endproc' > conftest.s
23842 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23844 (eval $ac_try) 2>&5
23845 ac_status=$?
23846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23847 test $ac_status = 0; }; }
23848 then
23849 case "$target" in
23850 *-*-solaris*)
23851 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23852 # read-only and read-write sections, we need to make sure that the
23853 # assembler used emits read-write .eh_frame sections.
23854 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23855 gcc_cv_as_cfi_directive=yes
23856 elif test "x$gcc_cv_objdump" = x; then
23857 # No objdump, err on the side of caution.
23858 gcc_cv_as_cfi_directive=no
23859 else
23860 if test x$gas = xyes; then
23861 as_32_opt="--32"
23862 as_64_opt="--64"
23863 else
23864 as_32_opt="-m32"
23865 as_64_opt="-m64"
23866 fi
23867 case "$target" in
23868 sparc*-*-solaris2.*)
23869 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23870 if gcc_fn_eh_frame_ro $as_32_opt \
23871 || gcc_fn_eh_frame_ro $as_64_opt; then
23872 gcc_cv_as_cfi_directive=no
23873 else
23874 gcc_cv_as_cfi_directive=yes
23875 fi
23876 ;;
23877 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23878 # On Solaris/x86, make sure that GCC and assembler agree on using
23879 # read-only .eh_frame sections for 64-bit.
23880 if gcc_fn_eh_frame_ro $as_32_opt; then
23881 gcc_cv_as_cfi_directive=no
23882 elif gcc_fn_eh_frame_ro $as_64_opt; then
23883 gcc_cv_as_cfi_directive=yes
23884 else
23885 gcc_cv_as_cfi_directive=no
23886 fi
23887 ;;
23888 esac
23889 fi
23890 ;;
23891 *-*-*)
23892 gcc_cv_as_cfi_directive=yes
23893 ;;
23894 esac
23895 else
23896 echo "configure: failed program was" >&5
23897 cat conftest.s >&5
23898 fi
23899 rm -f conftest.o conftest.s
23900 fi
23901 fi
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23903 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23904
23905
23906 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23908 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23909 if ${gcc_cv_as_cfi_advance_working+:} false; then :
23910 $as_echo_n "(cached) " >&6
23911 else
23912 gcc_cv_as_cfi_advance_working=no
23913 if test x$gcc_cv_as != x; then
23914 $as_echo ' .text
23915 .cfi_startproc
23916 .cfi_adjust_cfa_offset 64
23917 .skip 75040, 0
23918 .cfi_adjust_cfa_offset 128
23919 .cfi_endproc' > conftest.s
23920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23922 (eval $ac_try) 2>&5
23923 ac_status=$?
23924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23925 test $ac_status = 0; }; }
23926 then
23927
23928 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23929 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23930 gcc_cv_as_cfi_advance_working=yes
23931 fi
23932
23933 else
23934 echo "configure: failed program was" >&5
23935 cat conftest.s >&5
23936 fi
23937 rm -f conftest.o conftest.s
23938 fi
23939 fi
23940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23941 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23942
23943
23944 else
23945 # no objdump, err on the side of caution
23946 gcc_cv_as_cfi_advance_working=no
23947 fi
23948
23949
23950 cat >>confdefs.h <<_ACEOF
23951 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23952 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23953 _ACEOF
23954
23955
23956
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23958 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23959 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23960 $as_echo_n "(cached) " >&6
23961 else
23962 gcc_cv_as_cfi_personality_directive=no
23963 if test x$gcc_cv_as != x; then
23964 $as_echo ' .text
23965 .cfi_startproc
23966 .cfi_personality 0, symbol
23967 .cfi_endproc' > conftest.s
23968 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23970 (eval $ac_try) 2>&5
23971 ac_status=$?
23972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23973 test $ac_status = 0; }; }
23974 then
23975 gcc_cv_as_cfi_personality_directive=yes
23976 else
23977 echo "configure: failed program was" >&5
23978 cat conftest.s >&5
23979 fi
23980 rm -f conftest.o conftest.s
23981 fi
23982 fi
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23984 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23985
23986
23987
23988 cat >>confdefs.h <<_ACEOF
23989 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23990 _ACEOF
23991
23992
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23994 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23995 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
23996 $as_echo_n "(cached) " >&6
23997 else
23998 gcc_cv_as_cfi_sections_directive=no
23999 if test x$gcc_cv_as != x; then
24000 $as_echo ' .text
24001 .cfi_sections .debug_frame, .eh_frame
24002 .cfi_startproc
24003 .cfi_endproc' > conftest.s
24004 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24006 (eval $ac_try) 2>&5
24007 ac_status=$?
24008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24009 test $ac_status = 0; }; }
24010 then
24011 case $target_os in
24012 win32 | pe | cygwin* | mingw32*)
24013 # Need to check that we generated the correct relocation for the
24014 # .debug_frame section. This was fixed for binutils 2.21.
24015 gcc_cv_as_cfi_sections_directive=no
24016 if test "x$gcc_cv_objdump" != x; then
24017 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24018 grep secrel > /dev/null; then
24019 gcc_cv_as_cfi_sections_directive=yes
24020 fi
24021 fi
24022 ;;
24023 *)
24024 gcc_cv_as_cfi_sections_directive=yes
24025 ;;
24026 esac
24027 else
24028 echo "configure: failed program was" >&5
24029 cat conftest.s >&5
24030 fi
24031 rm -f conftest.o conftest.s
24032 fi
24033 fi
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24035 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24036
24037
24038
24039
24040 cat >>confdefs.h <<_ACEOF
24041 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24042 _ACEOF
24043
24044
24045 # GAS versions up to and including 2.11.0 may mis-optimize
24046 # .eh_frame data.
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24048 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24049 if ${gcc_cv_as_eh_frame+:} false; then :
24050 $as_echo_n "(cached) " >&6
24051 else
24052 gcc_cv_as_eh_frame=no
24053 if test $in_tree_gas = yes; then
24054 if test $in_tree_gas_is_elf = yes \
24055 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24056 then gcc_cv_as_eh_frame=yes
24057 fi
24058 elif test x$gcc_cv_as != x; then
24059 $as_echo ' .text
24060 .LFB1:
24061 .4byte 0
24062 .L1:
24063 .4byte 0
24064 .LFE1:
24065 .section .eh_frame,"aw",@progbits
24066 __FRAME_BEGIN__:
24067 .4byte .LECIE1-.LSCIE1
24068 .LSCIE1:
24069 .4byte 0x0
24070 .byte 0x1
24071 .ascii "z\0"
24072 .byte 0x1
24073 .byte 0x78
24074 .byte 0x1a
24075 .byte 0x0
24076 .byte 0x4
24077 .4byte 1
24078 .p2align 1
24079 .LECIE1:
24080 .LSFDE1:
24081 .4byte .LEFDE1-.LASFDE1
24082 .LASFDE1:
24083 .4byte .LASFDE1-__FRAME_BEGIN__
24084 .4byte .LFB1
24085 .4byte .LFE1-.LFB1
24086 .byte 0x4
24087 .4byte .LFE1-.LFB1
24088 .byte 0x4
24089 .4byte .L1-.LFB1
24090 .LEFDE1:' > conftest.s
24091 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24093 (eval $ac_try) 2>&5
24094 ac_status=$?
24095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24096 test $ac_status = 0; }; }
24097 then
24098 cat > conftest.lit <<EOF
24099 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24100 0010 01000000 12000000 18000000 00000000 ................
24101 0020 08000000 04080000 0044 .........D
24102 EOF
24103 cat > conftest.big <<EOF
24104 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24105 0010 00000001 00000012 00000018 00000000 ................
24106 0020 00000008 04000000 0844 .........D
24107 EOF
24108 # If the assembler didn't choke, and we can objdump,
24109 # and we got the correct data, then succeed.
24110 # The text in the here-document typically retains its unix-style line
24111 # endings, while the output of objdump will use host line endings.
24112 # Therefore, use diff -b for the comparisons.
24113 if test x$gcc_cv_objdump != x \
24114 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24115 | tail -3 > conftest.got \
24116 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24117 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24118 then
24119 gcc_cv_as_eh_frame=yes
24120 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24122 (eval $ac_try) 2>&5
24123 ac_status=$?
24124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24125 test $ac_status = 0; }; }; then
24126 gcc_cv_as_eh_frame=buggy
24127 else
24128 # Uh oh, what do we do now?
24129 gcc_cv_as_eh_frame=no
24130 fi
24131 else
24132 echo "configure: failed program was" >&5
24133 cat conftest.s >&5
24134 fi
24135 rm -f conftest.o conftest.s
24136 fi
24137 fi
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24139 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24140
24141
24142
24143 if test $gcc_cv_as_eh_frame = buggy; then
24144
24145 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24146
24147 fi
24148
24149 # Test if the assembler supports the section flag 'e' or #exclude for
24150 # specifying an excluded section.
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24152 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24153 if ${gcc_cv_as_section_exclude_e+:} false; then :
24154 $as_echo_n "(cached) " >&6
24155 else
24156 gcc_cv_as_section_exclude_e=no
24157 if test $in_tree_gas = yes; then
24158 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24159 then gcc_cv_as_section_exclude_e=yes
24160 fi
24161 elif test x$gcc_cv_as != x; then
24162 $as_echo '.section foo1,"e"
24163 .byte 0,0,0,0' > conftest.s
24164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24166 (eval $ac_try) 2>&5
24167 ac_status=$?
24168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24169 test $ac_status = 0; }; }
24170 then
24171 gcc_cv_as_section_exclude_e=yes
24172 else
24173 echo "configure: failed program was" >&5
24174 cat conftest.s >&5
24175 fi
24176 rm -f conftest.o conftest.s
24177 fi
24178 fi
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24180 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24181
24182
24183 if test $gcc_cv_as_section_exclude_e = no; then
24184 case "${target}" in
24185 # Solaris as uses #exclude instead.
24186 *-*-solaris2*)
24187 case "${target}" in
24188 sparc*-*-solaris2*)
24189 conftest_s='.section "foo1", #exclude'
24190 ;;
24191 i?86-*-solaris2* | x86_64-*-solaris2*)
24192 conftest_s='.section foo1, #exclude'
24193 ;;
24194 esac
24195 ;;
24196 esac
24197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24198 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24199 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24200 $as_echo_n "(cached) " >&6
24201 else
24202 gcc_cv_as_section_exclude_hash=no
24203 if test x$gcc_cv_as != x; then
24204 $as_echo "$conftest_s
24205 .byte 0,0,0,0" > conftest.s
24206 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24208 (eval $ac_try) 2>&5
24209 ac_status=$?
24210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24211 test $ac_status = 0; }; }
24212 then
24213 gcc_cv_as_section_exclude_hash=yes
24214 else
24215 echo "configure: failed program was" >&5
24216 cat conftest.s >&5
24217 fi
24218 rm -f conftest.o conftest.s
24219 fi
24220 fi
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24222 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24223
24224
24225 fi
24226
24227 cat >>confdefs.h <<_ACEOF
24228 #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`
24229 _ACEOF
24230
24231
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24233 $as_echo_n "checking assembler for section merging support... " >&6; }
24234 if ${gcc_cv_as_shf_merge+:} false; then :
24235 $as_echo_n "(cached) " >&6
24236 else
24237 gcc_cv_as_shf_merge=no
24238 if test $in_tree_gas = yes; then
24239 if test $in_tree_gas_is_elf = yes \
24240 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24241 then gcc_cv_as_shf_merge=yes
24242 fi
24243 elif test x$gcc_cv_as != x; then
24244 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24245 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24247 (eval $ac_try) 2>&5
24248 ac_status=$?
24249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24250 test $ac_status = 0; }; }
24251 then
24252 gcc_cv_as_shf_merge=yes
24253 else
24254 echo "configure: failed program was" >&5
24255 cat conftest.s >&5
24256 fi
24257 rm -f conftest.o conftest.s
24258 fi
24259 fi
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24261 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24262
24263
24264 if test $gcc_cv_as_shf_merge = no; then
24265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24266 $as_echo_n "checking assembler for section merging support... " >&6; }
24267 if ${gcc_cv_as_shf_merge+:} false; then :
24268 $as_echo_n "(cached) " >&6
24269 else
24270 gcc_cv_as_shf_merge=no
24271 if test $in_tree_gas = yes; then
24272 if test $in_tree_gas_is_elf = yes \
24273 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24274 then gcc_cv_as_shf_merge=yes
24275 fi
24276 elif test x$gcc_cv_as != x; then
24277 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24278 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24280 (eval $ac_try) 2>&5
24281 ac_status=$?
24282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24283 test $ac_status = 0; }; }
24284 then
24285 gcc_cv_as_shf_merge=yes
24286 else
24287 echo "configure: failed program was" >&5
24288 cat conftest.s >&5
24289 fi
24290 rm -f conftest.o conftest.s
24291 fi
24292 fi
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24294 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24295
24296
24297 fi
24298
24299 cat >>confdefs.h <<_ACEOF
24300 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24301 _ACEOF
24302
24303
24304 gcc_cv_ld_aligned_shf_merge=yes
24305 case "$target" in
24306 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24307 # alignment > 1.
24308 sparc*-*-solaris2.11*)
24309 if test x"$gnu_ld" = xno \
24310 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24311 gcc_cv_ld_aligned_shf_merge=no
24312 fi
24313 ;;
24314 esac
24315
24316 cat >>confdefs.h <<_ACEOF
24317 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24318 _ACEOF
24319
24320
24321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24322 $as_echo_n "checking assembler for stabs directive... " >&6; }
24323 if ${gcc_cv_as_stabs_directive+:} false; then :
24324 $as_echo_n "(cached) " >&6
24325 else
24326 gcc_cv_as_stabs_directive=no
24327 if test x$gcc_cv_as != x; then
24328 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24329 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24331 (eval $ac_try) 2>&5
24332 ac_status=$?
24333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24334 test $ac_status = 0; }; }
24335 then
24336 gcc_cv_as_stabs_directive=yes
24337 else
24338 echo "configure: failed program was" >&5
24339 cat conftest.s >&5
24340 fi
24341 rm -f conftest.o conftest.s
24342 fi
24343 fi
24344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24345 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24346 if test $gcc_cv_as_stabs_directive = yes; then
24347
24348 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24349
24350 fi
24351
24352
24353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24354 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24355 if ${gcc_cv_as_comdat_group+:} false; then :
24356 $as_echo_n "(cached) " >&6
24357 else
24358 gcc_cv_as_comdat_group=no
24359 if test $in_tree_gas = yes; then
24360 if test $in_tree_gas_is_elf = yes \
24361 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24362 then gcc_cv_as_comdat_group=yes
24363 fi
24364 elif test x$gcc_cv_as != x; then
24365 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24366 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24368 (eval $ac_try) 2>&5
24369 ac_status=$?
24370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24371 test $ac_status = 0; }; }
24372 then
24373 gcc_cv_as_comdat_group=yes
24374 else
24375 echo "configure: failed program was" >&5
24376 cat conftest.s >&5
24377 fi
24378 rm -f conftest.o conftest.s
24379 fi
24380 fi
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24382 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24383
24384
24385 if test $gcc_cv_as_comdat_group = yes; then
24386 gcc_cv_as_comdat_group_percent=no
24387 gcc_cv_as_comdat_group_group=no
24388 else
24389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24390 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24391 if ${gcc_cv_as_comdat_group_percent+:} false; then :
24392 $as_echo_n "(cached) " >&6
24393 else
24394 gcc_cv_as_comdat_group_percent=no
24395 if test $in_tree_gas = yes; then
24396 if test $in_tree_gas_is_elf = yes \
24397 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24398 then gcc_cv_as_comdat_group_percent=yes
24399 fi
24400 elif test x$gcc_cv_as != x; then
24401 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24402 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24404 (eval $ac_try) 2>&5
24405 ac_status=$?
24406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24407 test $ac_status = 0; }; }
24408 then
24409 gcc_cv_as_comdat_group_percent=yes
24410 else
24411 echo "configure: failed program was" >&5
24412 cat conftest.s >&5
24413 fi
24414 rm -f conftest.o conftest.s
24415 fi
24416 fi
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24418 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24419
24420
24421 if test $gcc_cv_as_comdat_group_percent = yes; then
24422 gcc_cv_as_comdat_group_group=no
24423 else
24424 case "${target}" in
24425 # Sun as uses a completely different syntax.
24426 *-*-solaris2*)
24427 case "${target}" in
24428 sparc*-*-solaris2*)
24429 conftest_s='
24430 .group foo,".text%foo",#comdat
24431 .section ".text%foo", #alloc,#execinstr,#progbits
24432 .globl foo
24433 foo:
24434 '
24435 ;;
24436 i?86-*-solaris2* | x86_64-*-solaris2*)
24437 conftest_s='
24438 .group foo,.text%foo,#comdat
24439 .section .text%foo, "ax", @progbits
24440 .globl foo
24441 foo:
24442 '
24443 ;;
24444 esac
24445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24446 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24447 if ${gcc_cv_as_comdat_group_group+:} false; then :
24448 $as_echo_n "(cached) " >&6
24449 else
24450 gcc_cv_as_comdat_group_group=no
24451 if test x$gcc_cv_as != x; then
24452 $as_echo "$conftest_s" > conftest.s
24453 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24455 (eval $ac_try) 2>&5
24456 ac_status=$?
24457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24458 test $ac_status = 0; }; }
24459 then
24460 gcc_cv_as_comdat_group_group=yes
24461 else
24462 echo "configure: failed program was" >&5
24463 cat conftest.s >&5
24464 fi
24465 rm -f conftest.o conftest.s
24466 fi
24467 fi
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24469 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24470
24471
24472 ;;
24473 esac
24474 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24475 gcc_cv_as_comdat_group_group=no
24476 fi
24477 fi
24478 fi
24479 if test x"$ld_is_gold" = xyes; then
24480 comdat_group=yes
24481 elif test $in_tree_ld = yes ; then
24482 comdat_group=no
24483 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 \
24484 && test $in_tree_ld_is_elf = yes; then
24485 comdat_group=yes
24486 fi
24487 elif echo "$ld_ver" | grep GNU > /dev/null; then
24488 comdat_group=yes
24489 if test 0"$ld_date" -lt 20050308; then
24490 if test -n "$ld_date"; then
24491 # If there was date string, but was earlier than 2005-03-08, fail
24492 comdat_group=no
24493 elif test "$ld_vers_major" -lt 2; then
24494 comdat_group=no
24495 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24496 comdat_group=no
24497 fi
24498 fi
24499 else
24500 case "${target}" in
24501 *-*-solaris2.1[1-9]*)
24502 comdat_group=no
24503 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24504 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24505 # version 1.688.
24506 #
24507 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24508 # least ld version 1.2267.
24509 if test "$ld_vers_major" -gt 1; then
24510 comdat_group=yes
24511 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24512 comdat_group=yes
24513 elif test "$ld_vers_minor" -ge 2267; then
24514 comdat_group=yes
24515 fi
24516 ;;
24517 *)
24518 # Assume linkers other than GNU ld don't support COMDAT group.
24519 comdat_group=no
24520 ;;
24521 esac
24522 fi
24523 # Allow overriding the automatic COMDAT group tests above.
24524 # Check whether --enable-comdat was given.
24525 if test "${enable_comdat+set}" = set; then :
24526 enableval=$enable_comdat; comdat_group="$enable_comdat"
24527 fi
24528
24529 if test $comdat_group = no; then
24530 gcc_cv_as_comdat_group=no
24531 gcc_cv_as_comdat_group_percent=no
24532 gcc_cv_as_comdat_group_group=no
24533 fi
24534
24535 cat >>confdefs.h <<_ACEOF
24536 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24537 || test $gcc_cv_as_comdat_group_percent = yes \
24538 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24539 _ACEOF
24540
24541
24542 # Restrict this test to Solaris/x86: other targets define this statically.
24543 case "${target}" in
24544 i?86-*-solaris2* | x86_64-*-solaris2*)
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24546 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24547 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24548 hidden_linkonce=yes
24549 else
24550 case "${target}" in
24551 # Full support for hidden thunks in linkonce sections only appeared in
24552 # Solaris 11/OpenSolaris.
24553 *-*-solaris2.1[1-9]*)
24554 hidden_linkonce=yes
24555 ;;
24556 *)
24557 hidden_linkonce=no
24558 ;;
24559 esac
24560 fi
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24562 $as_echo "$hidden_linkonce" >&6; }
24563
24564 cat >>confdefs.h <<_ACEOF
24565 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24566 _ACEOF
24567
24568 ;;
24569 esac
24570
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24572 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24573 if ${gcc_cv_as_is_stmt+:} false; then :
24574 $as_echo_n "(cached) " >&6
24575 else
24576 gcc_cv_as_is_stmt=no
24577 if test $in_tree_gas = yes; then
24578 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24579 then gcc_cv_as_is_stmt=yes
24580 fi
24581 elif test x$gcc_cv_as != x; then
24582 $as_echo ' .text
24583 .file 1 "conf.c"
24584 .loc 1 1 0 is_stmt 1' > conftest.s
24585 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24587 (eval $ac_try) 2>&5
24588 ac_status=$?
24589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24590 test $ac_status = 0; }; }
24591 then
24592 gcc_cv_as_is_stmt=yes
24593 else
24594 echo "configure: failed program was" >&5
24595 cat conftest.s >&5
24596 fi
24597 rm -f conftest.o conftest.s
24598 fi
24599 fi
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24601 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24602 if test $gcc_cv_as_is_stmt = yes; then
24603
24604 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24605
24606 fi
24607
24608
24609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24610 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24611 if ${gcc_cv_as_discriminator+:} false; then :
24612 $as_echo_n "(cached) " >&6
24613 else
24614 gcc_cv_as_discriminator=no
24615 if test $in_tree_gas = yes; then
24616 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24617 then gcc_cv_as_discriminator=yes
24618 fi
24619 elif test x$gcc_cv_as != x; then
24620 $as_echo ' .text
24621 .file 1 "conf.c"
24622 .loc 1 1 0 discriminator 1' > conftest.s
24623 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24625 (eval $ac_try) 2>&5
24626 ac_status=$?
24627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24628 test $ac_status = 0; }; }
24629 then
24630 gcc_cv_as_discriminator=yes
24631 else
24632 echo "configure: failed program was" >&5
24633 cat conftest.s >&5
24634 fi
24635 rm -f conftest.o conftest.s
24636 fi
24637 fi
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24639 $as_echo "$gcc_cv_as_discriminator" >&6; }
24640 if test $gcc_cv_as_discriminator = yes; then
24641
24642 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24643
24644 fi
24645
24646
24647 # Catch the newlib flag of the same name so we can gate GCC features on it.
24648 # Check whether --enable-newlib-nano-formatted-io was given.
24649 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
24650 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
24651 yes|no)
24652 ;;
24653 *)
24654 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
24655 ;;
24656 esac
24657 fi
24658
24659
24660 # Thread-local storage - the check is heavily parameterized.
24661 conftest_s=
24662 tls_first_major=
24663 tls_first_minor=
24664 tls_as_opt=
24665 case "$target" in
24666 alpha*-*-*)
24667 conftest_s='
24668 .section ".tdata","awT",@progbits
24669 foo: .long 25
24670 .text
24671 ldq $27,__tls_get_addr($29) !literal!1
24672 lda $16,foo($29) !tlsgd!1
24673 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24674 ldq $27,__tls_get_addr($29) !literal!2
24675 lda $16,foo($29) !tlsldm!2
24676 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24677 ldq $1,foo($29) !gotdtprel
24678 ldah $2,foo($29) !dtprelhi
24679 lda $3,foo($2) !dtprello
24680 lda $4,foo($29) !dtprel
24681 ldq $1,foo($29) !gottprel
24682 ldah $2,foo($29) !tprelhi
24683 lda $3,foo($2) !tprello
24684 lda $4,foo($29) !tprel'
24685 tls_first_major=2
24686 tls_first_minor=13
24687 tls_as_opt=--fatal-warnings
24688 ;;
24689 arc*-*-*)
24690 conftest_s='
24691 add_s r0,r0, @foo@tpoff'
24692 tls_first_major=2
24693 tls_first_minor=23
24694 ;;
24695 cris-*-*|crisv32-*-*)
24696 conftest_s='
24697 .section ".tdata","awT",@progbits
24698 x: .long 25
24699 .text
24700 move.d x:IE,$r10
24701 nop'
24702 tls_first_major=2
24703 tls_first_minor=20
24704 tls_as_opt=--fatal-warnings
24705 ;;
24706 frv*-*-*)
24707 conftest_s='
24708 .section ".tdata","awT",@progbits
24709 x: .long 25
24710 .text
24711 call #gettlsoff(x)'
24712 tls_first_major=2
24713 tls_first_minor=14
24714 ;;
24715 hppa*-*-linux*)
24716 conftest_s='
24717 t1: .reg %r20
24718 t2: .reg %r21
24719 gp: .reg %r19
24720 .section ".tdata","awT",@progbits
24721 foo: .long 25
24722 .text
24723 .align 4
24724 addil LT%foo-$tls_gdidx$,gp
24725 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24726 b __tls_get_addr
24727 nop
24728 addil LT%foo-$tls_ldidx$,gp
24729 b __tls_get_addr
24730 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24731 addil LR%foo-$tls_dtpoff$,%ret0
24732 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24733 mfctl %cr27,%t1
24734 addil LT%foo-$tls_ieoff$,gp
24735 ldw RT%foo-$tls_ieoff$(%r1),%t2
24736 add %t1,%t2,%t3
24737 mfctl %cr27,%t1
24738 addil LR%foo-$tls_leoff$,%t1
24739 ldo RR%foo-$tls_leoff$(%r1),%t2'
24740 tls_first_major=2
24741 tls_first_minor=15
24742 tls_as_opt=--fatal-warnings
24743 ;;
24744 arm*-*-*)
24745 conftest_s='
24746 .section ".tdata","awT",%progbits
24747 foo: .long 25
24748 .text
24749 .word foo(gottpoff)
24750 .word foo(tpoff)
24751 .word foo(tlsgd)
24752 .word foo(tlsldm)
24753 .word foo(tlsldo)'
24754 tls_first_major=2
24755 tls_first_minor=17
24756 ;;
24757 i[34567]86-*-* | x86_64-*-*)
24758 case "$target" in
24759 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
24760 on_solaris=yes
24761 ;;
24762 *)
24763 on_solaris=no
24764 ;;
24765 esac
24766 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24767 conftest_s='
24768 .section .tdata,"awt",@progbits'
24769 tls_first_major=0
24770 tls_first_minor=0
24771 tls_section_flag=t
24772
24773 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24774
24775 else
24776 conftest_s='
24777 .section ".tdata","awT",@progbits'
24778 tls_first_major=2
24779 tls_first_minor=14
24780 tls_section_flag=T
24781 tls_as_opt="--fatal-warnings"
24782 fi
24783 case "$target" in
24784 i[34567]86-*-*)
24785 if test x$on_solaris = xyes; then
24786 case $gas_flag in
24787 yes) tls_as_opt="$tls_as_opt --32" ;;
24788 esac
24789 fi
24790 conftest_s="$conftest_s
24791 foo: .long 25
24792 .text
24793 movl %gs:0, %eax
24794 leal foo@tlsgd(,%ebx,1), %eax
24795 leal foo@tlsldm(%ebx), %eax
24796 leal foo@dtpoff(%eax), %edx
24797 movl foo@gottpoff(%ebx), %eax
24798 subl foo@gottpoff(%ebx), %eax
24799 addl foo@gotntpoff(%ebx), %eax
24800 movl foo@indntpoff, %eax
24801 movl \$foo@tpoff, %eax
24802 subl \$foo@tpoff, %eax
24803 leal foo@ntpoff(%ecx), %eax"
24804 ;;
24805 x86_64-*-*)
24806 if test x$on_solaris = xyes; then
24807 case $gas_flag in
24808 yes) tls_as_opt="$tls_as_opt --64" ;;
24809 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24810 esac
24811 fi
24812 conftest_s="$conftest_s
24813 foo: .long 25
24814 .text
24815 movq %fs:0, %rax
24816 leaq foo@tlsgd(%rip), %rdi
24817 leaq foo@tlsld(%rip), %rdi
24818 leaq foo@dtpoff(%rax), %rdx
24819 movq foo@gottpoff(%rip), %rax
24820 movq \$foo@tpoff, %rax"
24821 ;;
24822 esac
24823 ;;
24824 ia64-*-*)
24825 conftest_s='
24826 .section ".tdata","awT",@progbits
24827 foo: data8 25
24828 .text
24829 addl r16 = @ltoff(@dtpmod(foo#)), gp
24830 addl r17 = @ltoff(@dtprel(foo#)), gp
24831 addl r18 = @ltoff(@tprel(foo#)), gp
24832 addl r19 = @dtprel(foo#), gp
24833 adds r21 = @dtprel(foo#), r13
24834 movl r23 = @dtprel(foo#)
24835 addl r20 = @tprel(foo#), gp
24836 adds r22 = @tprel(foo#), r13
24837 movl r24 = @tprel(foo#)'
24838 tls_first_major=2
24839 tls_first_minor=13
24840 tls_as_opt=--fatal-warnings
24841 ;;
24842 microblaze*-*-*)
24843 conftest_s='
24844 .section .tdata,"awT",@progbits
24845 x:
24846 .word 2
24847 .text
24848 addik r5,r20,x@TLSGD
24849 addik r5,r20,x@TLSLDM'
24850 tls_first_major=2
24851 tls_first_minor=20
24852 tls_as_opt='--fatal-warnings'
24853 ;;
24854 mips*-*-*)
24855 conftest_s='
24856 .section .tdata,"awT",@progbits
24857 x:
24858 .word 2
24859 .text
24860 addiu $4, $28, %tlsgd(x)
24861 addiu $4, $28, %tlsldm(x)
24862 lui $4, %dtprel_hi(x)
24863 addiu $4, $4, %dtprel_lo(x)
24864 lw $4, %gottprel(x)($28)
24865 lui $4, %tprel_hi(x)
24866 addiu $4, $4, %tprel_lo(x)'
24867 tls_first_major=2
24868 tls_first_minor=16
24869 tls_as_opt='-32 --fatal-warnings'
24870 ;;
24871 m68k-*-*)
24872 conftest_s='
24873 .section .tdata,"awT",@progbits
24874 x:
24875 .word 2
24876 .text
24877 foo:
24878 move.l x@TLSGD(%a5),%a0
24879 move.l x@TLSLDM(%a5),%a0
24880 move.l x@TLSLDO(%a5),%a0
24881 move.l x@TLSIE(%a5),%a0
24882 move.l x@TLSLE(%a5),%a0'
24883 tls_first_major=2
24884 tls_first_minor=19
24885 tls_as_opt='--fatal-warnings'
24886 ;;
24887 nios2-*-*)
24888 conftest_s='
24889 .section ".tdata","awT",@progbits'
24890 tls_first_major=2
24891 tls_first_minor=23
24892 tls_as_opt="--fatal-warnings"
24893 ;;
24894 aarch64*-*-*)
24895 conftest_s='
24896 .section ".tdata","awT",%progbits
24897 foo: .long 25
24898 .text
24899 adrp x0, :tlsgd:x
24900 add x0, x0, #:tlsgd_lo12:x
24901 bl __tls_get_addr
24902 nop'
24903 tls_first_major=2
24904 tls_first_minor=20
24905 tls_as_opt='--fatal-warnings'
24906 ;;
24907 or1k*-*-*)
24908 conftest_s='
24909 .section ".tdata","awT",@progbits
24910 foo: .long 25
24911 .text
24912 l.movhi r3, tpoffha(foo)
24913 l.add r3, r3, r10
24914 l.lwz r4, tpofflo(foo)(r3)'
24915 tls_first_major=2
24916 tls_first_minor=30
24917 tls_as_opt=--fatal-warnings
24918 ;;
24919 powerpc-ibm-aix*)
24920 conftest_s='
24921 .extern __get_tpointer
24922 .toc
24923 LC..1:
24924 .tc a[TC],a[TL]@le
24925 .csect .text[PR]
24926 .tlstest:
24927 lwz 9,LC..1(2)
24928 bla __get_tpointer
24929 lwzx 3,9,3
24930 .globl a
24931 .csect a[TL],4
24932 a:
24933 .space 4'
24934 tls_first_major=0
24935 tls_first_minor=0
24936 ;;
24937 powerpc64*-*-*)
24938 conftest_s='
24939 .section ".tdata","awT",@progbits
24940 .align 3
24941 ld0: .space 8
24942 ld1: .space 8
24943 x1: .space 8
24944 x2: .space 8
24945 x3: .space 8
24946 .text
24947 addi 3,2,ld0@got@tlsgd
24948 bl .__tls_get_addr
24949 nop
24950 addi 3,2,ld1@toc
24951 bl .__tls_get_addr
24952 nop
24953 addi 3,2,x1@got@tlsld
24954 bl .__tls_get_addr
24955 nop
24956 addi 9,3,x1@dtprel
24957 bl .__tls_get_addr
24958 nop
24959 addis 9,3,x2@dtprel@ha
24960 addi 9,9,x2@dtprel@l
24961 bl .__tls_get_addr
24962 nop
24963 ld 9,x3@got@dtprel(2)
24964 add 9,9,3
24965 bl .__tls_get_addr
24966 nop'
24967 tls_first_major=2
24968 tls_first_minor=14
24969 tls_as_opt="-a64 --fatal-warnings"
24970 ;;
24971 powerpc*-*-*)
24972 conftest_s='
24973 .section ".tdata","awT",@progbits
24974 .align 2
24975 ld0: .space 4
24976 ld1: .space 4
24977 x1: .space 4
24978 x2: .space 4
24979 x3: .space 4
24980 .text
24981 addi 3,31,ld0@got@tlsgd
24982 bl __tls_get_addr
24983 addi 3,31,x1@got@tlsld
24984 bl __tls_get_addr
24985 addi 9,3,x1@dtprel
24986 addis 9,3,x2@dtprel@ha
24987 addi 9,9,x2@dtprel@l
24988 lwz 9,x3@got@tprel(31)
24989 add 9,9,x@tls
24990 addi 9,2,x1@tprel
24991 addis 9,2,x2@tprel@ha
24992 addi 9,9,x2@tprel@l'
24993 tls_first_major=2
24994 tls_first_minor=14
24995 tls_as_opt="-a32 --fatal-warnings"
24996 ;;
24997 riscv*-*-*)
24998 conftest_s='
24999 .section .tdata,"awT",@progbits
25000 x: .word 2
25001 .text
25002 la.tls.gd a0,x
25003 call __tls_get_addr'
25004 tls_first_major=2
25005 tls_first_minor=21
25006 tls_as_opt='--fatal-warnings'
25007 ;;
25008 s390-*-*)
25009 conftest_s='
25010 .section ".tdata","awT",@progbits
25011 foo: .long 25
25012 .text
25013 .long foo@TLSGD
25014 .long foo@TLSLDM
25015 .long foo@DTPOFF
25016 .long foo@NTPOFF
25017 .long foo@GOTNTPOFF
25018 .long foo@INDNTPOFF
25019 l %r1,foo@GOTNTPOFF(%r12)
25020 l %r1,0(%r1):tls_load:foo
25021 bas %r14,0(%r1,%r13):tls_gdcall:foo
25022 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25023 tls_first_major=2
25024 tls_first_minor=14
25025 tls_as_opt="-m31 --fatal-warnings"
25026 ;;
25027 s390x-*-*)
25028 conftest_s='
25029 .section ".tdata","awT",@progbits
25030 foo: .long 25
25031 .text
25032 .quad foo@TLSGD
25033 .quad foo@TLSLDM
25034 .quad foo@DTPOFF
25035 .quad foo@NTPOFF
25036 .quad foo@GOTNTPOFF
25037 lg %r1,foo@GOTNTPOFF(%r12)
25038 larl %r1,foo@INDNTPOFF
25039 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25040 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25041 tls_first_major=2
25042 tls_first_minor=14
25043 tls_as_opt="-m64 -Aesame --fatal-warnings"
25044 ;;
25045 sh-*-* | sh[123456789lbe]*-*-*)
25046 conftest_s='
25047 .section ".tdata","awT",@progbits
25048 foo: .long 25
25049 .text
25050 .long foo@TLSGD
25051 .long foo@TLSLDM
25052 .long foo@DTPOFF
25053 .long foo@GOTTPOFF
25054 .long foo@TPOFF'
25055 tls_first_major=2
25056 tls_first_minor=13
25057 tls_as_opt=--fatal-warnings
25058 ;;
25059 sparc*-*-*)
25060 case "$target" in
25061 sparc*-sun-solaris2.*)
25062 on_solaris=yes
25063 ;;
25064 *)
25065 on_solaris=no
25066 ;;
25067 esac
25068 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25069 conftest_s='
25070 .section ".tdata",#alloc,#write,#tls'
25071 tls_first_major=0
25072 tls_first_minor=0
25073 else
25074 conftest_s='
25075 .section ".tdata","awT",@progbits'
25076 tls_first_major=2
25077 tls_first_minor=14
25078 tls_as_opt="-32 --fatal-warnings"
25079 fi
25080 conftest_s="$conftest_s
25081 foo: .long 25
25082 .text
25083 sethi %tgd_hi22(foo), %o0
25084 add %o0, %tgd_lo10(foo), %o1
25085 add %l7, %o1, %o0, %tgd_add(foo)
25086 call __tls_get_addr, %tgd_call(foo)
25087 sethi %tldm_hi22(foo), %l1
25088 add %l1, %tldm_lo10(foo), %l2
25089 add %l7, %l2, %o0, %tldm_add(foo)
25090 call __tls_get_addr, %tldm_call(foo)
25091 sethi %tldo_hix22(foo), %l3
25092 xor %l3, %tldo_lox10(foo), %l4
25093 add %o0, %l4, %l5, %tldo_add(foo)
25094 sethi %tie_hi22(foo), %o3
25095 add %o3, %tie_lo10(foo), %o3
25096 ld [%l7 + %o3], %o2, %tie_ld(foo)
25097 add %g7, %o2, %o4, %tie_add(foo)
25098 sethi %tle_hix22(foo), %l1
25099 xor %l1, %tle_lox10(foo), %o5
25100 ld [%g7 + %o5], %o1"
25101 ;;
25102 tilepro*-*-*)
25103 conftest_s='
25104 .section ".tdata","awT",@progbits
25105 foo: .long 25
25106 .text
25107 addli r0, zero, tls_gd(foo)
25108 auli r0, zero, tls_gd_ha16(foo)
25109 addli r0, r0, tls_gd_lo16(foo)
25110 jal __tls_get_addr
25111 addli r0, zero, tls_ie(foo)
25112 auli r0, r0, tls_ie_ha16(foo)
25113 addli r0, r0, tls_ie_lo16(foo)'
25114 tls_first_major=2
25115 tls_first_minor=22
25116 tls_as_opt="--fatal-warnings"
25117 ;;
25118 tilegx*-*-*)
25119 conftest_s='
25120 .section ".tdata","awT",@progbits
25121 foo: .long 25
25122 .text
25123 shl16insli r0, zero, hw0_last_tls_gd(foo)
25124 shl16insli r0, zero, hw1_last_tls_gd(foo)
25125 shl16insli r0, r0, hw0_tls_gd(foo)
25126 jal __tls_get_addr
25127 shl16insli r0, zero, hw1_last_tls_ie(foo)
25128 shl16insli r0, r0, hw0_tls_ie(foo)'
25129 tls_first_major=2
25130 tls_first_minor=22
25131 tls_as_opt="--fatal-warnings"
25132 ;;
25133 xtensa*-*-*)
25134 conftest_s='
25135 .section ".tdata","awT",@progbits
25136 foo: .long 25
25137 .text
25138 movi a8, foo@TLSFUNC
25139 movi a10, foo@TLSARG
25140 callx8.tls a8, foo@TLSCALL'
25141 tls_first_major=2
25142 tls_first_minor=19
25143 ;;
25144 esac
25145 set_have_as_tls=no
25146 if test "x$enable_tls" = xno ; then
25147 : # TLS explicitly disabled.
25148 elif test "x$enable_tls" = xyes ; then
25149 set_have_as_tls=yes # TLS explicitly enabled.
25150 elif test -z "$tls_first_major"; then
25151 : # If we don't have a check, assume no support.
25152 else
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25154 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25155 if ${gcc_cv_as_tls+:} false; then :
25156 $as_echo_n "(cached) " >&6
25157 else
25158 gcc_cv_as_tls=no
25159 if test $in_tree_gas = yes; then
25160 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25161 then gcc_cv_as_tls=yes
25162 fi
25163 elif test x$gcc_cv_as != x; then
25164 $as_echo "$conftest_s" > conftest.s
25165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25167 (eval $ac_try) 2>&5
25168 ac_status=$?
25169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25170 test $ac_status = 0; }; }
25171 then
25172 gcc_cv_as_tls=yes
25173 else
25174 echo "configure: failed program was" >&5
25175 cat conftest.s >&5
25176 fi
25177 rm -f conftest.o conftest.s
25178 fi
25179 fi
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25181 $as_echo "$gcc_cv_as_tls" >&6; }
25182 if test $gcc_cv_as_tls = yes; then
25183 set_have_as_tls=yes
25184 fi
25185
25186 fi
25187 if test $set_have_as_tls = yes ; then
25188
25189 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25190
25191 fi
25192
25193 # Target-specific assembler checks.
25194
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25196 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25197 gcc_cv_ld_static_dynamic=no
25198 gcc_cv_ld_static_option='-Bstatic'
25199 gcc_cv_ld_dynamic_option='-Bdynamic'
25200 if test $in_tree_ld = yes ; then
25201 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
25202 gcc_cv_ld_static_dynamic=yes
25203 fi
25204 elif test x$gcc_cv_ld != x; then
25205 # Check if linker supports -Bstatic/-Bdynamic option
25206 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25207 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25208 gcc_cv_ld_static_dynamic=yes
25209 else
25210 case "$target" in
25211 # AIX ld uses -b flags
25212 *-*-aix4.[23]* | *-*-aix[5-9]*)
25213 gcc_cv_ld_static_dynamic=yes
25214 gcc_cv_ld_static_option="-bstatic"
25215 gcc_cv_ld_dynamic_option="-bdynamic"
25216 ;;
25217 # HP-UX ld uses -a flags to select between shared and archive.
25218 *-*-hpux*)
25219 if test x"$gnu_ld" = xno; then
25220 gcc_cv_ld_static_dynamic=yes
25221 gcc_cv_ld_static_option="-aarchive_shared"
25222 gcc_cv_ld_dynamic_option="-adefault"
25223 fi
25224 ;;
25225 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25226 *-*-solaris2*)
25227 gcc_cv_ld_static_dynamic=yes
25228 ;;
25229 esac
25230 fi
25231 fi
25232 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25233
25234 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25235
25236
25237 cat >>confdefs.h <<_ACEOF
25238 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25239 _ACEOF
25240
25241
25242 cat >>confdefs.h <<_ACEOF
25243 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25244 _ACEOF
25245
25246 fi
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25248 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25249
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25251 $as_echo_n "checking linker --version-script option... " >&6; }
25252 gcc_cv_ld_version_script=no
25253 ld_version_script_option=''
25254 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25255 gcc_cv_ld_version_script=yes
25256 ld_version_script_option='--version-script'
25257 elif test x$gcc_cv_ld != x; then
25258 case "$target" in
25259 # Solaris 2 ld always supports -M. It also supports a subset of
25260 # --version-script since Solaris 11.4, but requires
25261 # -z gnu-version-script-compat to activate.
25262 *-*-solaris2*)
25263 gcc_cv_ld_version_script=yes
25264 ld_version_script_option='-M'
25265 ;;
25266 esac
25267 fi
25268 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25270 $as_echo "$gcc_cv_ld_version_script" >&6; }
25271
25272
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25274 $as_echo_n "checking linker soname option... " >&6; }
25275 gcc_cv_ld_soname=no
25276 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25277 gcc_cv_ld_soname=yes
25278 ld_soname_option='-soname'
25279 elif test x$gcc_cv_ld != x; then
25280 case "$target" in
25281 *-*-darwin*)
25282 gcc_cv_ld_soname=yes
25283 ld_soname_option='-install_name'
25284 ;;
25285 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25286 # ld compatiblity since some Solaris 10 update.
25287 *-*-solaris2*)
25288 gcc_cv_ld_soname=yes
25289 ld_soname_option='-h'
25290 ;;
25291 esac
25292 fi
25293 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25295 $as_echo "$gcc_cv_ld_soname" >&6; }
25296
25297
25298 if test x"$demangler_in_ld" = xyes; then
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25300 $as_echo_n "checking linker --demangle support... " >&6; }
25301 gcc_cv_ld_demangle=no
25302 if test $in_tree_ld = yes; then
25303 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 \
25304 gcc_cv_ld_demangle=yes
25305 fi
25306 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25307 # Check if the GNU linker supports --demangle option
25308 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25309 gcc_cv_ld_demangle=yes
25310 fi
25311 fi
25312 if test x"$gcc_cv_ld_demangle" = xyes; then
25313
25314 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25315
25316 fi
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25318 $as_echo "$gcc_cv_ld_demangle" >&6; }
25319 fi
25320
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25322 $as_echo_n "checking linker plugin support... " >&6; }
25323 gcc_cv_lto_plugin=0
25324 if test -f liblto_plugin.la; then
25325 save_ld_ver="$ld_ver"
25326 save_ld_vers_major="$ld_vers_major"
25327 save_ld_vers_minor="$ld_vers_minor"
25328 save_ld_is_gold="$ld_is_gold"
25329
25330 ld_is_gold=no
25331
25332 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25333 ld_ver="GNU ld"
25334 # FIXME: ld_is_gold?
25335 ld_vers_major="$gcc_cv_gld_major_version"
25336 ld_vers_minor="$gcc_cv_gld_minor_version"
25337 else
25338 # Determine plugin linker version.
25339 # FIXME: Partial duplicate from above, generalize.
25340 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25341 if echo "$ld_ver" | grep GNU > /dev/null; then
25342 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25343 ld_is_gold=yes
25344 ld_vers=`echo $ld_ver | sed -n \
25345 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25346 else
25347 ld_vers=`echo $ld_ver | sed -n \
25348 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25349 fi
25350 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25351 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25352 fi
25353 fi
25354
25355 # Determine plugin support.
25356 if echo "$ld_ver" | grep GNU > /dev/null; then
25357 # Require GNU ld or gold 2.21+ for plugin support by default.
25358 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25359 gcc_cv_lto_plugin=2
25360 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25361 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25362 gcc_cv_lto_plugin=1
25363 fi
25364 fi
25365
25366 ld_ver="$save_ld_ver"
25367 ld_vers_major="$save_ld_vers_major"
25368 ld_vers_minor="$save_ld_vers_minor"
25369 ld_is_gold="$save_ld_is_gold"
25370 fi
25371
25372 cat >>confdefs.h <<_ACEOF
25373 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25374 _ACEOF
25375
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25377 $as_echo "$gcc_cv_lto_plugin" >&6; }
25378
25379 # Target OS-specific assembler checks.
25380
25381 case "$target_os" in
25382 darwin*)
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25384 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25385 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25386 $as_echo_n "(cached) " >&6
25387 else
25388 gcc_cv_as_mmacosx_version_min=no
25389 if test x$gcc_cv_as != x; then
25390 $as_echo '.text' > conftest.s
25391 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25393 (eval $ac_try) 2>&5
25394 ac_status=$?
25395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25396 test $ac_status = 0; }; }
25397 then
25398 gcc_cv_as_mmacosx_version_min=yes
25399 else
25400 echo "configure: failed program was" >&5
25401 cat conftest.s >&5
25402 fi
25403 rm -f conftest.o conftest.s
25404 fi
25405 fi
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25407 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25408 if test $gcc_cv_as_mmacosx_version_min = yes; then
25409
25410 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25411
25412 fi
25413
25414 ;;
25415 esac
25416
25417 # Target CPU-specific assembler checks.
25418
25419 case "$target" in
25420 aarch64*-*-*)
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25422 $as_echo_n "checking assembler for -mabi option... " >&6; }
25423 if ${gcc_cv_as_aarch64_mabi+:} false; then :
25424 $as_echo_n "(cached) " >&6
25425 else
25426 gcc_cv_as_aarch64_mabi=no
25427 if test x$gcc_cv_as != x; then
25428 $as_echo '.text' > conftest.s
25429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25431 (eval $ac_try) 2>&5
25432 ac_status=$?
25433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25434 test $ac_status = 0; }; }
25435 then
25436 gcc_cv_as_aarch64_mabi=yes
25437 else
25438 echo "configure: failed program was" >&5
25439 cat conftest.s >&5
25440 fi
25441 rm -f conftest.o conftest.s
25442 fi
25443 fi
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25445 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25446
25447
25448 if test x$gcc_cv_as_aarch64_mabi = xyes; then
25449
25450 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25451
25452 else
25453 if test x$with_abi = xilp32; then
25454 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25455 Upgrade the Assembler." "$LINENO" 5
25456 fi
25457 if test x"$with_multilib_list" = xdefault; then
25458 TM_MULTILIB_CONFIG=lp64
25459 else
25460 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25461 for aarch64_multilib in ${aarch64_multilibs}; do
25462 case ${aarch64_multilib} in
25463 ilp32)
25464 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25465 Upgrade the Assembler." "$LINENO" 5
25466 ;;
25467 *)
25468 ;;
25469 esac
25470 done
25471 fi
25472 fi
25473 # Check if we have binutils support for relocations types needed by -fpic
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25475 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25476 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25477 $as_echo_n "(cached) " >&6
25478 else
25479 gcc_cv_as_aarch64_picreloc=no
25480 if test x$gcc_cv_as != x; then
25481 $as_echo '
25482 .text
25483 ldr x0, [x2, #:gotpage_lo15:globalsym]
25484 ' > conftest.s
25485 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25487 (eval $ac_try) 2>&5
25488 ac_status=$?
25489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25490 test $ac_status = 0; }; }
25491 then
25492 gcc_cv_as_aarch64_picreloc=yes
25493 else
25494 echo "configure: failed program was" >&5
25495 cat conftest.s >&5
25496 fi
25497 rm -f conftest.o conftest.s
25498 fi
25499 fi
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25501 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25502 if test $gcc_cv_as_aarch64_picreloc = yes; then
25503
25504 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25505
25506 fi
25507
25508 # Enable Branch Target Identification Mechanism and Return Address
25509 # Signing by default.
25510 # Check whether --enable-standard-branch-protection was given.
25511 if test "${enable_standard_branch_protection+set}" = set; then :
25512 enableval=$enable_standard_branch_protection;
25513 case $enableval in
25514 yes)
25515 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25516 ;;
25517 no)
25518 ;;
25519 *)
25520 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25521 Valid choices are 'yes' and 'no'." "$LINENO" 5
25522 ;;
25523 esac
25524
25525 fi
25526
25527 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25528 # Check whether --enable-fix-cortex-a53-835769 was given.
25529 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25530 enableval=$enable_fix_cortex_a53_835769;
25531 case $enableval in
25532 yes)
25533 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25534 ;;
25535 no)
25536 ;;
25537 *)
25538 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25539 Valid choices are 'yes' and 'no'." "$LINENO" 5
25540 ;;
25541
25542 esac
25543
25544 fi
25545
25546 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25547 # Check whether --enable-fix-cortex-a53-843419 was given.
25548 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25549 enableval=$enable_fix_cortex_a53_843419;
25550 case $enableval in
25551 yes)
25552 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25553 ;;
25554 no)
25555 ;;
25556 *)
25557 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25558 Valid choices are 'yes' and 'no'." "$LINENO" 5
25559 ;;
25560
25561 esac
25562
25563 fi
25564
25565 ;;
25566
25567 # All TARGET_ABI_OSF targets.
25568 alpha*-*-linux* | alpha*-*-*bsd*)
25569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25570 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25571 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25572 $as_echo_n "(cached) " >&6
25573 else
25574 gcc_cv_as_alpha_explicit_relocs=no
25575 if test $in_tree_gas = yes; then
25576 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25577 then gcc_cv_as_alpha_explicit_relocs=yes
25578 fi
25579 elif test x$gcc_cv_as != x; then
25580 $as_echo ' .set nomacro
25581 .text
25582 extbl $3, $2, $3 !lituse_bytoff!1
25583 ldq $2, a($29) !literal!1
25584 ldq $4, b($29) !literal!2
25585 ldq_u $3, 0($2) !lituse_base!1
25586 ldq $27, f($29) !literal!5
25587 jsr $26, ($27), f !lituse_jsr!5
25588 ldah $29, 0($26) !gpdisp!3
25589 lda $0, c($29) !gprel
25590 ldah $1, d($29) !gprelhigh
25591 lda $1, d($1) !gprellow
25592 lda $29, 0($29) !gpdisp!3' > conftest.s
25593 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25595 (eval $ac_try) 2>&5
25596 ac_status=$?
25597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25598 test $ac_status = 0; }; }
25599 then
25600 gcc_cv_as_alpha_explicit_relocs=yes
25601 else
25602 echo "configure: failed program was" >&5
25603 cat conftest.s >&5
25604 fi
25605 rm -f conftest.o conftest.s
25606 fi
25607 fi
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25609 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25610 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25611
25612 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25613
25614 fi
25615
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25617 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25618 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25619 $as_echo_n "(cached) " >&6
25620 else
25621 gcc_cv_as_alpha_jsrdirect_relocs=no
25622 if test $in_tree_gas = yes; then
25623 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25624 then gcc_cv_as_alpha_jsrdirect_relocs=yes
25625 fi
25626 elif test x$gcc_cv_as != x; then
25627 $as_echo ' .set nomacro
25628 .text
25629 ldq $27, a($29) !literal!1
25630 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25631 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25633 (eval $ac_try) 2>&5
25634 ac_status=$?
25635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25636 test $ac_status = 0; }; }
25637 then
25638 gcc_cv_as_alpha_jsrdirect_relocs=yes
25639 else
25640 echo "configure: failed program was" >&5
25641 cat conftest.s >&5
25642 fi
25643 rm -f conftest.o conftest.s
25644 fi
25645 fi
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25647 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25648 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25649
25650 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25651
25652 fi
25653
25654 ;;
25655
25656 avr-*-*)
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25658 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25659 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25660 $as_echo_n "(cached) " >&6
25661 else
25662 gcc_cv_as_avr_mlink_relax=no
25663 if test x$gcc_cv_as != x; then
25664 $as_echo '.text' > conftest.s
25665 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25667 (eval $ac_try) 2>&5
25668 ac_status=$?
25669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25670 test $ac_status = 0; }; }
25671 then
25672 gcc_cv_as_avr_mlink_relax=yes
25673 else
25674 echo "configure: failed program was" >&5
25675 cat conftest.s >&5
25676 fi
25677 rm -f conftest.o conftest.s
25678 fi
25679 fi
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25681 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25682 if test $gcc_cv_as_avr_mlink_relax = yes; then
25683
25684 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25685
25686 fi
25687
25688
25689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25690 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25691 if ${gcc_cv_as_avr_mrmw+:} false; then :
25692 $as_echo_n "(cached) " >&6
25693 else
25694 gcc_cv_as_avr_mrmw=no
25695 if test x$gcc_cv_as != x; then
25696 $as_echo '.text' > conftest.s
25697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25699 (eval $ac_try) 2>&5
25700 ac_status=$?
25701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25702 test $ac_status = 0; }; }
25703 then
25704 gcc_cv_as_avr_mrmw=yes
25705 else
25706 echo "configure: failed program was" >&5
25707 cat conftest.s >&5
25708 fi
25709 rm -f conftest.o conftest.s
25710 fi
25711 fi
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25713 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25714 if test $gcc_cv_as_avr_mrmw = yes; then
25715
25716 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25717
25718 fi
25719
25720
25721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25722 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25723 if ${gcc_cv_as_avr_mgccisr+:} false; then :
25724 $as_echo_n "(cached) " >&6
25725 else
25726 gcc_cv_as_avr_mgccisr=no
25727 if test x$gcc_cv_as != x; then
25728 $as_echo '.text
25729 __gcc_isr 1
25730 __gcc_isr 2
25731 __gcc_isr 0,r24
25732 ' > conftest.s
25733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25735 (eval $ac_try) 2>&5
25736 ac_status=$?
25737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25738 test $ac_status = 0; }; }
25739 then
25740 gcc_cv_as_avr_mgccisr=yes
25741 else
25742 echo "configure: failed program was" >&5
25743 cat conftest.s >&5
25744 fi
25745 rm -f conftest.o conftest.s
25746 fi
25747 fi
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25749 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25750 if test $gcc_cv_as_avr_mgccisr = yes; then
25751
25752 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25753
25754 fi
25755
25756
25757 # Check how default linker description file implements .rodata for
25758 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25759 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25761 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25762 cat > conftest.s <<EOF
25763 .section .rodata,"a",@progbits
25764 .global xxvaryy
25765 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25766 xxvaryy:
25767 .word 1
25768 EOF
25769 rm -f conftest.nm
25770 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25772 (eval $ac_try) 2>&5
25773 ac_status=$?
25774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25775 test $ac_status = 0; }; }
25776 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25778 (eval $ac_try) 2>&5
25779 ac_status=$?
25780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25781 test $ac_status = 0; }; }
25782 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25784 (eval $ac_try) 2>&5
25785 ac_status=$?
25786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25787 test $ac_status = 0; }; }
25788 if test -s conftest.nm
25789 then
25790 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25792 $as_echo "yes" >&6; }
25793
25794 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25795
25796 else
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25798 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25799 echo "$as_me: nm output was" >&5
25800 cat conftest.nm >&5
25801 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25802 { $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
25803 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25804 fi
25805 else
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25807 $as_echo "test failed" >&6; }
25808 echo "$as_me: failed program was" >&5
25809 cat conftest.s >&5
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25811 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25812 fi
25813 rm -f conftest.s conftest.o conftest.elf conftest.nm
25814 ;;
25815
25816 cris-*-*)
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25818 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25819 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25820 $as_echo_n "(cached) " >&6
25821 else
25822 gcc_cv_as_cris_no_mul_bug=no
25823 if test $in_tree_gas = yes; then
25824 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25825 then gcc_cv_as_cris_no_mul_bug=yes
25826 fi
25827 elif test x$gcc_cv_as != x; then
25828 $as_echo '.text' > conftest.s
25829 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25831 (eval $ac_try) 2>&5
25832 ac_status=$?
25833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25834 test $ac_status = 0; }; }
25835 then
25836 gcc_cv_as_cris_no_mul_bug=yes
25837 else
25838 echo "configure: failed program was" >&5
25839 cat conftest.s >&5
25840 fi
25841 rm -f conftest.o conftest.s
25842 fi
25843 fi
25844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25845 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25846 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25847
25848 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25849
25850 fi
25851
25852 ;;
25853
25854 sparc*-*-*)
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25856 $as_echo_n "checking assembler for -relax option... " >&6; }
25857 if ${gcc_cv_as_sparc_relax+:} false; then :
25858 $as_echo_n "(cached) " >&6
25859 else
25860 gcc_cv_as_sparc_relax=no
25861 if test x$gcc_cv_as != x; then
25862 $as_echo '.text' > conftest.s
25863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25865 (eval $ac_try) 2>&5
25866 ac_status=$?
25867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25868 test $ac_status = 0; }; }
25869 then
25870 gcc_cv_as_sparc_relax=yes
25871 else
25872 echo "configure: failed program was" >&5
25873 cat conftest.s >&5
25874 fi
25875 rm -f conftest.o conftest.s
25876 fi
25877 fi
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25879 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25880 if test $gcc_cv_as_sparc_relax = yes; then
25881
25882 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25883
25884 fi
25885
25886
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25888 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25889 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25890 $as_echo_n "(cached) " >&6
25891 else
25892 gcc_cv_as_sparc_gotdata_op=no
25893 if test x$gcc_cv_as != x; then
25894 $as_echo '.text
25895 .align 4
25896 foo:
25897 nop
25898 bar:
25899 sethi %gdop_hix22(foo), %g1
25900 xor %g1, %gdop_lox10(foo), %g1
25901 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25902 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25904 (eval $ac_try) 2>&5
25905 ac_status=$?
25906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25907 test $ac_status = 0; }; }
25908 then
25909 if test x$gcc_cv_ld != x \
25910 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25911 if test x$gcc_cv_objdump != x; then
25912 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25913 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25914 gcc_cv_as_sparc_gotdata_op=no
25915 else
25916 gcc_cv_as_sparc_gotdata_op=yes
25917 fi
25918 fi
25919 fi
25920 rm -f conftest
25921 else
25922 echo "configure: failed program was" >&5
25923 cat conftest.s >&5
25924 fi
25925 rm -f conftest.o conftest.s
25926 fi
25927 fi
25928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25929 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25930 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25931
25932 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25933
25934 fi
25935
25936
25937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25938 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25939 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25940 $as_echo_n "(cached) " >&6
25941 else
25942 gcc_cv_as_sparc_ua_pcrel=no
25943 if test x$gcc_cv_as != x; then
25944 $as_echo '.text
25945 foo:
25946 nop
25947 .data
25948 .align 4
25949 .byte 0
25950 .uaword %r_disp32(foo)' > conftest.s
25951 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25953 (eval $ac_try) 2>&5
25954 ac_status=$?
25955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25956 test $ac_status = 0; }; }
25957 then
25958 if test x$gcc_cv_ld != x \
25959 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25960 gcc_cv_as_sparc_ua_pcrel=yes
25961 fi
25962 rm -f conftest
25963 else
25964 echo "configure: failed program was" >&5
25965 cat conftest.s >&5
25966 fi
25967 rm -f conftest.o conftest.s
25968 fi
25969 fi
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25971 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25972 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25973
25974 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25975
25976
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25978 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25979 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25980 $as_echo_n "(cached) " >&6
25981 else
25982 gcc_cv_as_sparc_ua_pcrel_hidden=no
25983 if test x$gcc_cv_as != x; then
25984 $as_echo '.data
25985 .align 4
25986 .byte 0x31
25987 .uaword %r_disp32(foo)
25988 .byte 0x32, 0x33, 0x34
25989 .global foo
25990 .hidden foo
25991 foo:
25992 .skip 4' > conftest.s
25993 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25995 (eval $ac_try) 2>&5
25996 ac_status=$?
25997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25998 test $ac_status = 0; }; }
25999 then
26000 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26001 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26002 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26003 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26004 if $gcc_cv_objdump -R conftest 2> /dev/null \
26005 | grep 'DISP32' > /dev/null 2>&1; then
26006 :
26007 else
26008 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26009 fi
26010 fi
26011 rm -f conftest
26012 else
26013 echo "configure: failed program was" >&5
26014 cat conftest.s >&5
26015 fi
26016 rm -f conftest.o conftest.s
26017 fi
26018 fi
26019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26020 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26021 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26022
26023 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26024
26025 fi
26026
26027
26028 fi
26029 # unaligned pcrel relocs
26030
26031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26032 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26033 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26034 $as_echo_n "(cached) " >&6
26035 else
26036 gcc_cv_as_sparc_offsetable_lo10=no
26037 if test x$gcc_cv_as != x; then
26038 $as_echo '.text
26039 or %g1, %lo(ab) + 12, %g1
26040 or %g1, %lo(ab + 12), %g1' > conftest.s
26041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26043 (eval $ac_try) 2>&5
26044 ac_status=$?
26045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26046 test $ac_status = 0; }; }
26047 then
26048 if test x$gcc_cv_objdump != x \
26049 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26050 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26051 gcc_cv_as_sparc_offsetable_lo10=yes
26052 fi
26053 else
26054 echo "configure: failed program was" >&5
26055 cat conftest.s >&5
26056 fi
26057 rm -f conftest.o conftest.s
26058 fi
26059 fi
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26061 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26062 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26063
26064 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26065
26066 fi
26067
26068
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26070 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26071 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26072 $as_echo_n "(cached) " >&6
26073 else
26074 gcc_cv_as_sparc_fmaf=no
26075 if test x$gcc_cv_as != x; then
26076 $as_echo '.text
26077 .register %g2, #scratch
26078 .register %g3, #scratch
26079 .align 4
26080 fmaddd %f0, %f2, %f4, %f6
26081 addxccc %g1, %g2, %g3
26082 fsrl32 %f2, %f4, %f8
26083 fnaddd %f10, %f12, %f14' > conftest.s
26084 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26086 (eval $ac_try) 2>&5
26087 ac_status=$?
26088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26089 test $ac_status = 0; }; }
26090 then
26091 gcc_cv_as_sparc_fmaf=yes
26092 else
26093 echo "configure: failed program was" >&5
26094 cat conftest.s >&5
26095 fi
26096 rm -f conftest.o conftest.s
26097 fi
26098 fi
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26100 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26101 if test $gcc_cv_as_sparc_fmaf = yes; then
26102
26103 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26104
26105 fi
26106
26107
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26109 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26110 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26111 $as_echo_n "(cached) " >&6
26112 else
26113 gcc_cv_as_sparc_sparc4=no
26114 if test x$gcc_cv_as != x; then
26115 $as_echo '.text
26116 .register %g2, #scratch
26117 .register %g3, #scratch
26118 .align 4
26119 cxbe %g2, %g3, 1f
26120 1: cwbneg %g2, %g3, 1f
26121 1: sha1
26122 md5
26123 aes_kexpand0 %f4, %f6, %f8
26124 des_round %f38, %f40, %f42, %f44
26125 camellia_f %f54, %f56, %f58, %f60
26126 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26129 (eval $ac_try) 2>&5
26130 ac_status=$?
26131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26132 test $ac_status = 0; }; }
26133 then
26134 gcc_cv_as_sparc_sparc4=yes
26135 else
26136 echo "configure: failed program was" >&5
26137 cat conftest.s >&5
26138 fi
26139 rm -f conftest.o conftest.s
26140 fi
26141 fi
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26143 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26144 if test $gcc_cv_as_sparc_sparc4 = yes; then
26145
26146 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26147
26148 fi
26149
26150
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26152 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26153 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26154 $as_echo_n "(cached) " >&6
26155 else
26156 gcc_cv_as_sparc_sparc5=no
26157 if test x$gcc_cv_as != x; then
26158 $as_echo '.text
26159 .register %g2, #scratch
26160 .register %g3, #scratch
26161 .align 4
26162 subxc %g1, %g2, %g3
26163 fpadd8 %f0, %f2, %f4' > conftest.s
26164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26166 (eval $ac_try) 2>&5
26167 ac_status=$?
26168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26169 test $ac_status = 0; }; }
26170 then
26171 gcc_cv_as_sparc_sparc5=yes
26172 else
26173 echo "configure: failed program was" >&5
26174 cat conftest.s >&5
26175 fi
26176 rm -f conftest.o conftest.s
26177 fi
26178 fi
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26180 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26181 if test $gcc_cv_as_sparc_sparc5 = yes; then
26182
26183 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26184
26185 fi
26186
26187
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26189 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26190 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26191 $as_echo_n "(cached) " >&6
26192 else
26193 gcc_cv_as_sparc_sparc6=no
26194 if test x$gcc_cv_as != x; then
26195 $as_echo '.text
26196 .register %g2, #scratch
26197 .register %g3, #scratch
26198 .align 4
26199 rd %entropy, %g1
26200 fpsll64x %f0, %f2, %f4' > conftest.s
26201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26203 (eval $ac_try) 2>&5
26204 ac_status=$?
26205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26206 test $ac_status = 0; }; }
26207 then
26208 gcc_cv_as_sparc_sparc6=yes
26209 else
26210 echo "configure: failed program was" >&5
26211 cat conftest.s >&5
26212 fi
26213 rm -f conftest.o conftest.s
26214 fi
26215 fi
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26217 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26218 if test $gcc_cv_as_sparc_sparc6 = yes; then
26219
26220 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26221
26222 fi
26223
26224
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26226 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26227 if ${gcc_cv_as_sparc_leon+:} false; then :
26228 $as_echo_n "(cached) " >&6
26229 else
26230 gcc_cv_as_sparc_leon=no
26231 if test x$gcc_cv_as != x; then
26232 $as_echo '.text
26233 .register %g2, #scratch
26234 .register %g3, #scratch
26235 .align 4
26236 smac %g2, %g3, %g1
26237 umac %g2, %g3, %g1
26238 casa [%g2] 0xb, %g3, %g1' > conftest.s
26239 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26241 (eval $ac_try) 2>&5
26242 ac_status=$?
26243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26244 test $ac_status = 0; }; }
26245 then
26246 gcc_cv_as_sparc_leon=yes
26247 else
26248 echo "configure: failed program was" >&5
26249 cat conftest.s >&5
26250 fi
26251 rm -f conftest.o conftest.s
26252 fi
26253 fi
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26255 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26256 if test $gcc_cv_as_sparc_leon = yes; then
26257
26258 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26259
26260 fi
26261
26262 ;;
26263
26264 i[34567]86-*-* | x86_64-*-*)
26265 case $target_os in
26266 cygwin*)
26267 # Full C++ conformance when using a shared libstdc++-v3 requires some
26268 # support from the Cygwin DLL, which in more recent versions exports
26269 # wrappers to aid in interposing and redirecting operators new, delete,
26270 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26271 # are configuring for a version of Cygwin that exports the wrappers.
26272 if test x$host = x$target && test x$host_cpu = xi686; then
26273 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26274 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26275 gcc_ac_cygwin_dll_wrappers=yes
26276 else
26277 gcc_ac_cygwin_dll_wrappers=no
26278 fi
26279
26280 else
26281 # Can't check presence of libc functions during cross-compile, so
26282 # we just have to assume we're building for an up-to-date target.
26283 gcc_ac_cygwin_dll_wrappers=yes
26284 fi
26285
26286 cat >>confdefs.h <<_ACEOF
26287 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26288 _ACEOF
26289
26290 esac
26291 case $target_os in
26292 cygwin* | pe | mingw32*)
26293 # Recent binutils allows the three-operand form of ".comm" on PE. This
26294 # definition is used unconditionally to initialise the default state of
26295 # the target option variable that governs usage of the feature.
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26297 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26298 if ${gcc_cv_as_comm_has_align+:} false; then :
26299 $as_echo_n "(cached) " >&6
26300 else
26301 gcc_cv_as_comm_has_align=no
26302 if test $in_tree_gas = yes; then
26303 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26304 then gcc_cv_as_comm_has_align=yes
26305 fi
26306 elif test x$gcc_cv_as != x; then
26307 $as_echo '.comm foo,1,32' > conftest.s
26308 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26310 (eval $ac_try) 2>&5
26311 ac_status=$?
26312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26313 test $ac_status = 0; }; }
26314 then
26315 gcc_cv_as_comm_has_align=yes
26316 else
26317 echo "configure: failed program was" >&5
26318 cat conftest.s >&5
26319 fi
26320 rm -f conftest.o conftest.s
26321 fi
26322 fi
26323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26324 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26325
26326
26327
26328 cat >>confdefs.h <<_ACEOF
26329 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26330 _ACEOF
26331
26332 # Used for DWARF 2 in PE
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26334 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26335 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26336 $as_echo_n "(cached) " >&6
26337 else
26338 gcc_cv_as_ix86_pe_secrel32=no
26339 if test $in_tree_gas = yes; then
26340 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26341 then gcc_cv_as_ix86_pe_secrel32=yes
26342 fi
26343 elif test x$gcc_cv_as != x; then
26344 $as_echo '.text
26345 foo: nop
26346 .data
26347 .secrel32 foo' > conftest.s
26348 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26350 (eval $ac_try) 2>&5
26351 ac_status=$?
26352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26353 test $ac_status = 0; }; }
26354 then
26355 if test x$gcc_cv_ld != x \
26356 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26357 gcc_cv_as_ix86_pe_secrel32=yes
26358 fi
26359 rm -f conftest
26360 else
26361 echo "configure: failed program was" >&5
26362 cat conftest.s >&5
26363 fi
26364 rm -f conftest.o conftest.s
26365 fi
26366 fi
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26368 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26369 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26370
26371 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26372
26373 fi
26374
26375 # Test if the assembler supports the extended form of the .section
26376 # directive that specifies section alignment. LTO support uses this,
26377 # but normally only after installation, so we warn but don't fail the
26378 # configure if LTO is enabled but the assembler does not support it.
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26380 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26381 if ${gcc_cv_as_section_has_align+:} false; then :
26382 $as_echo_n "(cached) " >&6
26383 else
26384 gcc_cv_as_section_has_align=no
26385 if test $in_tree_gas = yes; then
26386 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26387 then gcc_cv_as_section_has_align=yes
26388 fi
26389 elif test x$gcc_cv_as != x; then
26390 $as_echo '.section lto_test,"dr0"' > conftest.s
26391 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26393 (eval $ac_try) 2>&5
26394 ac_status=$?
26395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26396 test $ac_status = 0; }; }
26397 then
26398 gcc_cv_as_section_has_align=yes
26399 else
26400 echo "configure: failed program was" >&5
26401 cat conftest.s >&5
26402 fi
26403 rm -f conftest.o conftest.s
26404 fi
26405 fi
26406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26407 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26408
26409
26410 if test x$gcc_cv_as_section_has_align != xyes; then
26411 case ",$enable_languages," in
26412 *,lto,*)
26413 { $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
26414 $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;}
26415 ;;
26416 esac
26417 fi
26418 ;;
26419 esac
26420
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26422 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26423 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26424 $as_echo_n "(cached) " >&6
26425 else
26426 gcc_cv_as_ix86_xbrace_comment=no
26427 if test x$gcc_cv_as != x; then
26428 $as_echo '.text' > conftest.s
26429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26431 (eval $ac_try) 2>&5
26432 ac_status=$?
26433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26434 test $ac_status = 0; }; }
26435 then
26436 gcc_cv_as_ix86_xbrace_comment=yes
26437 else
26438 echo "configure: failed program was" >&5
26439 cat conftest.s >&5
26440 fi
26441 rm -f conftest.o conftest.s
26442 fi
26443 fi
26444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26445 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26446 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26447
26448 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26449
26450 fi
26451
26452
26453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26454 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26455 if ${gcc_cv_as_ix86_filds+:} false; then :
26456 $as_echo_n "(cached) " >&6
26457 else
26458 gcc_cv_as_ix86_filds=no
26459 if test x$gcc_cv_as != x; then
26460 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26463 (eval $ac_try) 2>&5
26464 ac_status=$?
26465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26466 test $ac_status = 0; }; }
26467 then
26468 gcc_cv_as_ix86_filds=yes
26469 else
26470 echo "configure: failed program was" >&5
26471 cat conftest.s >&5
26472 fi
26473 rm -f conftest.o conftest.s
26474 fi
26475 fi
26476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26477 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26478 if test $gcc_cv_as_ix86_filds = yes; then
26479
26480 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26481
26482 fi
26483
26484
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26486 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26487 if ${gcc_cv_as_ix86_fildq+:} false; then :
26488 $as_echo_n "(cached) " >&6
26489 else
26490 gcc_cv_as_ix86_fildq=no
26491 if test x$gcc_cv_as != x; then
26492 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26493 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26495 (eval $ac_try) 2>&5
26496 ac_status=$?
26497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26498 test $ac_status = 0; }; }
26499 then
26500 gcc_cv_as_ix86_fildq=yes
26501 else
26502 echo "configure: failed program was" >&5
26503 cat conftest.s >&5
26504 fi
26505 rm -f conftest.o conftest.s
26506 fi
26507 fi
26508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26509 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26510 if test $gcc_cv_as_ix86_fildq = yes; then
26511
26512 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26513
26514 fi
26515
26516
26517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26518 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26519 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26520 $as_echo_n "(cached) " >&6
26521 else
26522 gcc_cv_as_ix86_cmov_sun_syntax=no
26523 if test x$gcc_cv_as != x; then
26524 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26525 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26527 (eval $ac_try) 2>&5
26528 ac_status=$?
26529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26530 test $ac_status = 0; }; }
26531 then
26532 gcc_cv_as_ix86_cmov_sun_syntax=yes
26533 else
26534 echo "configure: failed program was" >&5
26535 cat conftest.s >&5
26536 fi
26537 rm -f conftest.o conftest.s
26538 fi
26539 fi
26540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26541 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26542 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26543
26544 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26545
26546 fi
26547
26548
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26550 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26551 if ${gcc_cv_as_ix86_ffreep+:} false; then :
26552 $as_echo_n "(cached) " >&6
26553 else
26554 gcc_cv_as_ix86_ffreep=no
26555 if test x$gcc_cv_as != x; then
26556 $as_echo 'ffreep %st(1)' > conftest.s
26557 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26559 (eval $ac_try) 2>&5
26560 ac_status=$?
26561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26562 test $ac_status = 0; }; }
26563 then
26564 gcc_cv_as_ix86_ffreep=yes
26565 else
26566 echo "configure: failed program was" >&5
26567 cat conftest.s >&5
26568 fi
26569 rm -f conftest.o conftest.s
26570 fi
26571 fi
26572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26573 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26574 if test $gcc_cv_as_ix86_ffreep = yes; then
26575
26576 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26577
26578 fi
26579
26580
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26582 $as_echo_n "checking assembler for .quad directive... " >&6; }
26583 if ${gcc_cv_as_ix86_quad+:} false; then :
26584 $as_echo_n "(cached) " >&6
26585 else
26586 gcc_cv_as_ix86_quad=no
26587 if test x$gcc_cv_as != x; then
26588 $as_echo '.quad 0' > conftest.s
26589 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26591 (eval $ac_try) 2>&5
26592 ac_status=$?
26593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26594 test $ac_status = 0; }; }
26595 then
26596 gcc_cv_as_ix86_quad=yes
26597 else
26598 echo "configure: failed program was" >&5
26599 cat conftest.s >&5
26600 fi
26601 rm -f conftest.o conftest.s
26602 fi
26603 fi
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26605 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26606 if test $gcc_cv_as_ix86_quad = yes; then
26607
26608 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26609
26610 fi
26611
26612
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26614 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26615 if ${gcc_cv_as_ix86_sahf+:} false; then :
26616 $as_echo_n "(cached) " >&6
26617 else
26618 gcc_cv_as_ix86_sahf=no
26619 if test x$gcc_cv_as != x; then
26620 $as_echo '.code64
26621 sahf' > conftest.s
26622 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26624 (eval $ac_try) 2>&5
26625 ac_status=$?
26626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26627 test $ac_status = 0; }; }
26628 then
26629 gcc_cv_as_ix86_sahf=yes
26630 else
26631 echo "configure: failed program was" >&5
26632 cat conftest.s >&5
26633 fi
26634 rm -f conftest.o conftest.s
26635 fi
26636 fi
26637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26638 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26639 if test $gcc_cv_as_ix86_sahf = yes; then
26640
26641 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26642
26643 fi
26644
26645
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26647 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26648 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26649 $as_echo_n "(cached) " >&6
26650 else
26651 gcc_cv_as_ix86_interunit_movq=no
26652 if test x$gcc_cv_as != x; then
26653 $as_echo '.code64
26654 movq %mm0, %rax
26655 movq %rax, %xmm0' > conftest.s
26656 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26658 (eval $ac_try) 2>&5
26659 ac_status=$?
26660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26661 test $ac_status = 0; }; }
26662 then
26663 gcc_cv_as_ix86_interunit_movq=yes
26664 else
26665 echo "configure: failed program was" >&5
26666 cat conftest.s >&5
26667 fi
26668 rm -f conftest.o conftest.s
26669 fi
26670 fi
26671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26672 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26673
26674
26675
26676 cat >>confdefs.h <<_ACEOF
26677 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26678 _ACEOF
26679
26680
26681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26682 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26683 if ${gcc_cv_as_ix86_hle+:} false; then :
26684 $as_echo_n "(cached) " >&6
26685 else
26686 gcc_cv_as_ix86_hle=no
26687 if test x$gcc_cv_as != x; then
26688 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26689 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26691 (eval $ac_try) 2>&5
26692 ac_status=$?
26693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26694 test $ac_status = 0; }; }
26695 then
26696 gcc_cv_as_ix86_hle=yes
26697 else
26698 echo "configure: failed program was" >&5
26699 cat conftest.s >&5
26700 fi
26701 rm -f conftest.o conftest.s
26702 fi
26703 fi
26704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26705 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26706 if test $gcc_cv_as_ix86_hle = yes; then
26707
26708 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26709
26710 fi
26711
26712
26713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26714 $as_echo_n "checking assembler for swap suffix... " >&6; }
26715 if ${gcc_cv_as_ix86_swap+:} false; then :
26716 $as_echo_n "(cached) " >&6
26717 else
26718 gcc_cv_as_ix86_swap=no
26719 if test x$gcc_cv_as != x; then
26720 $as_echo 'movl.s %esp, %ebp' > conftest.s
26721 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26723 (eval $ac_try) 2>&5
26724 ac_status=$?
26725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26726 test $ac_status = 0; }; }
26727 then
26728 gcc_cv_as_ix86_swap=yes
26729 else
26730 echo "configure: failed program was" >&5
26731 cat conftest.s >&5
26732 fi
26733 rm -f conftest.o conftest.s
26734 fi
26735 fi
26736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26737 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26738 if test $gcc_cv_as_ix86_swap = yes; then
26739
26740 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26741
26742 fi
26743
26744
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26746 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26747 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26748 $as_echo_n "(cached) " >&6
26749 else
26750 gcc_cv_as_ix86_diff_sect_delta=no
26751 if test x$gcc_cv_as != x; then
26752 $as_echo '.section .rodata
26753 .L1:
26754 .long .L2-.L1
26755 .long .L3-.L1
26756 .text
26757 .L3: nop
26758 .L2: nop' > conftest.s
26759 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26761 (eval $ac_try) 2>&5
26762 ac_status=$?
26763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26764 test $ac_status = 0; }; }
26765 then
26766 gcc_cv_as_ix86_diff_sect_delta=yes
26767 else
26768 echo "configure: failed program was" >&5
26769 cat conftest.s >&5
26770 fi
26771 rm -f conftest.o conftest.s
26772 fi
26773 fi
26774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26775 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26776 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26777
26778 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26779
26780 fi
26781
26782
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26784 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26785 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26786 $as_echo_n "(cached) " >&6
26787 else
26788 gcc_cv_as_ix86_rep_lock_prefix=no
26789 if test x$gcc_cv_as != x; then
26790 $as_echo 'rep movsl
26791 rep ret
26792 rep nop
26793 rep bsf %ecx, %eax
26794 rep bsr %ecx, %eax
26795 lock addl %edi, (%eax,%esi)
26796 lock orl $0, (%esp)' > conftest.s
26797 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26799 (eval $ac_try) 2>&5
26800 ac_status=$?
26801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26802 test $ac_status = 0; }; }
26803 then
26804 gcc_cv_as_ix86_rep_lock_prefix=yes
26805 else
26806 echo "configure: failed program was" >&5
26807 cat conftest.s >&5
26808 fi
26809 rm -f conftest.o conftest.s
26810 fi
26811 fi
26812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26813 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26814 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26815
26816 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26817
26818 fi
26819
26820
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26822 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26823 if ${gcc_cv_as_ix86_ud2+:} false; then :
26824 $as_echo_n "(cached) " >&6
26825 else
26826 gcc_cv_as_ix86_ud2=no
26827 if test x$gcc_cv_as != x; then
26828 $as_echo 'ud2' > conftest.s
26829 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26831 (eval $ac_try) 2>&5
26832 ac_status=$?
26833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26834 test $ac_status = 0; }; }
26835 then
26836 gcc_cv_as_ix86_ud2=yes
26837 else
26838 echo "configure: failed program was" >&5
26839 cat conftest.s >&5
26840 fi
26841 rm -f conftest.o conftest.s
26842 fi
26843 fi
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26845 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26846 if test $gcc_cv_as_ix86_ud2 = yes; then
26847
26848 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26849
26850 fi
26851
26852
26853 # Enforce 32-bit output with gas and gld.
26854 if test x$gas = xyes; then
26855 as_ix86_gas_32_opt="--32"
26856 fi
26857 if echo "$ld_ver" | grep GNU > /dev/null; then
26858 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26859 ld_ix86_gld_32_opt="-melf_i386_sol2"
26860 else
26861 ld_ix86_gld_32_opt="-melf_i386"
26862 fi
26863 fi
26864
26865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26866 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26867 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26868 $as_echo_n "(cached) " >&6
26869 else
26870 gcc_cv_as_ix86_tlsgdplt=no
26871 if test x$gcc_cv_as != x; then
26872 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26873 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26875 (eval $ac_try) 2>&5
26876 ac_status=$?
26877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26878 test $ac_status = 0; }; }
26879 then
26880 if test x$gcc_cv_ld != x \
26881 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26882 gcc_cv_as_ix86_tlsgdplt=yes
26883 fi
26884 rm -f conftest
26885 else
26886 echo "configure: failed program was" >&5
26887 cat conftest.s >&5
26888 fi
26889 rm -f conftest.o conftest.s
26890 fi
26891 fi
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26893 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26894 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26895
26896 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26897
26898 fi
26899
26900
26901 conftest_s='
26902 .section .tdata,"aw'$tls_section_flag'",@progbits
26903 tls_ld:
26904 .section .text,"ax",@progbits
26905 call tls_ld@tlsldmplt'
26906
26907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26908 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26909 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26910 $as_echo_n "(cached) " >&6
26911 else
26912 gcc_cv_as_ix86_tlsldmplt=no
26913 if test x$gcc_cv_as != x; then
26914 $as_echo "$conftest_s" > conftest.s
26915 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26917 (eval $ac_try) 2>&5
26918 ac_status=$?
26919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26920 test $ac_status = 0; }; }
26921 then
26922 if test x$gcc_cv_ld != x \
26923 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26924 gcc_cv_as_ix86_tlsldmplt=yes
26925 fi
26926 rm -f conftest
26927 else
26928 echo "configure: failed program was" >&5
26929 cat conftest.s >&5
26930 fi
26931 rm -f conftest.o conftest.s
26932 fi
26933 fi
26934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26935 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26936
26937
26938
26939 cat >>confdefs.h <<_ACEOF
26940 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26941 _ACEOF
26942
26943
26944 conftest_s='
26945 .section .text,"ax",@progbits
26946 .globl _start
26947 .type _start, @function
26948 _start:
26949 leal value@tlsldm(%ebx), %eax
26950 call ___tls_get_addr@plt
26951
26952 .section .tdata,"aw'$tls_section_flag'",@progbits
26953 .type value, @object
26954 value:'
26955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26956 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26957 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26958 $as_echo_n "(cached) " >&6
26959 else
26960 gcc_cv_as_ix86_tlsldm=no
26961 if test x$gcc_cv_as != x; then
26962 $as_echo "$conftest_s" > conftest.s
26963 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26965 (eval $ac_try) 2>&5
26966 ac_status=$?
26967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26968 test $ac_status = 0; }; }
26969 then
26970 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26971 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26972 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26973 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26974 gcc_cv_as_ix86_tlsldm=yes
26975 fi
26976 fi
26977 rm -f conftest
26978 else
26979 echo "configure: failed program was" >&5
26980 cat conftest.s >&5
26981 fi
26982 rm -f conftest.o conftest.s
26983 fi
26984 fi
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26986 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26987
26988
26989
26990 cat >>confdefs.h <<_ACEOF
26991 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26992 _ACEOF
26993
26994
26995 conftest_s='
26996 .data
26997 bar:
26998 .byte 1
26999 .text
27000 .global _start
27001 _start:
27002 cmpl $0, bar@GOT
27003 jmp *_start@GOT'
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27005 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27006 if ${gcc_cv_as_ix86_got32x+:} false; then :
27007 $as_echo_n "(cached) " >&6
27008 else
27009 gcc_cv_as_ix86_got32x=no
27010 if test x$gcc_cv_as != x; then
27011 $as_echo "$conftest_s" > conftest.s
27012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27014 (eval $ac_try) 2>&5
27015 ac_status=$?
27016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27017 test $ac_status = 0; }; }
27018 then
27019 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27020 && test x$gcc_cv_readelf != x \
27021 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27022 | grep R_386_GOT32X > /dev/null 2>&1 \
27023 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27024 if $gcc_cv_objdump -dw conftest 2>&1 \
27025 | grep 0xffffff > /dev/null 2>&1; then
27026 gcc_cv_as_ix86_got32x=no
27027 else
27028 gcc_cv_as_ix86_got32x=yes
27029 fi
27030 fi
27031 rm -f conftest
27032 else
27033 echo "configure: failed program was" >&5
27034 cat conftest.s >&5
27035 fi
27036 rm -f conftest.o conftest.s
27037 fi
27038 fi
27039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27040 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27041
27042
27043
27044 cat >>confdefs.h <<_ACEOF
27045 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27046 _ACEOF
27047
27048
27049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27050 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27051 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27052 $as_echo_n "(cached) " >&6
27053 else
27054 gcc_cv_as_ix86_gotoff_in_data=no
27055 if test $in_tree_gas = yes; then
27056 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27057 then gcc_cv_as_ix86_gotoff_in_data=yes
27058 fi
27059 elif test x$gcc_cv_as != x; then
27060 $as_echo ' .text
27061 .L0:
27062 nop
27063 .data
27064 .long .L0@GOTOFF' > conftest.s
27065 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27067 (eval $ac_try) 2>&5
27068 ac_status=$?
27069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27070 test $ac_status = 0; }; }
27071 then
27072 gcc_cv_as_ix86_gotoff_in_data=yes
27073 else
27074 echo "configure: failed program was" >&5
27075 cat conftest.s >&5
27076 fi
27077 rm -f conftest.o conftest.s
27078 fi
27079 fi
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27081 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27082
27083
27084
27085 cat >>confdefs.h <<_ACEOF
27086 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27087 _ACEOF
27088
27089
27090 conftest_s='
27091 .section .text,"ax",@progbits
27092 .globl _start
27093 .type _start, @function
27094 _start:
27095 leal ld@tlsldm(%ecx), %eax
27096 call *___tls_get_addr@GOT(%ecx)
27097 leal gd@tlsgd(%ecx), %eax
27098 call *___tls_get_addr@GOT(%ecx)
27099
27100 .section .tdata,"aw'$tls_section_flag'",@progbits
27101 .type ld, @object
27102 ld:
27103 .byte 0
27104 .globl gd
27105 .type gd, @object
27106 gd:
27107 .byte 0'
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27109 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27110 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27111 $as_echo_n "(cached) " >&6
27112 else
27113 gcc_cv_as_ix86_tls_get_addr_via_got=no
27114 if test x$gcc_cv_as != x; then
27115 $as_echo "$conftest_s" > conftest.s
27116 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27118 (eval $ac_try) 2>&5
27119 ac_status=$?
27120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27121 test $ac_status = 0; }; }
27122 then
27123 if test x$gcc_cv_ld != x \
27124 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27125 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27126 fi
27127 rm -f conftest
27128 else
27129 echo "configure: failed program was" >&5
27130 cat conftest.s >&5
27131 fi
27132 rm -f conftest.o conftest.s
27133 fi
27134 fi
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27136 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27137
27138
27139
27140 cat >>confdefs.h <<_ACEOF
27141 #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`
27142 _ACEOF
27143
27144 ;;
27145
27146 ia64*-*-*)
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27148 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27149 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27150 $as_echo_n "(cached) " >&6
27151 else
27152 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27153 if test $in_tree_gas = yes; then
27154 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27155 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27156 fi
27157 elif test x$gcc_cv_as != x; then
27158 $as_echo ' .text
27159 addl r15 = @ltoffx(x#), gp
27160 ;;
27161 ld8.mov r16 = [r15], x#
27162 ' > conftest.s
27163 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27165 (eval $ac_try) 2>&5
27166 ac_status=$?
27167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27168 test $ac_status = 0; }; }
27169 then
27170 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27171 else
27172 echo "configure: failed program was" >&5
27173 cat conftest.s >&5
27174 fi
27175 rm -f conftest.o conftest.s
27176 fi
27177 fi
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27179 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27180 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27181
27182 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27183
27184 fi
27185
27186
27187 ;;
27188
27189 powerpc*-*-*)
27190
27191 case $target in
27192 *-*-darwin*)
27193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27194 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27195 if ${gcc_cv_as_machine_directive+:} false; then :
27196 $as_echo_n "(cached) " >&6
27197 else
27198 gcc_cv_as_machine_directive=no
27199 if test x$gcc_cv_as != x; then
27200 $as_echo ' .machine ppc7400' > conftest.s
27201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27203 (eval $ac_try) 2>&5
27204 ac_status=$?
27205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27206 test $ac_status = 0; }; }
27207 then
27208 gcc_cv_as_machine_directive=yes
27209 else
27210 echo "configure: failed program was" >&5
27211 cat conftest.s >&5
27212 fi
27213 rm -f conftest.o conftest.s
27214 fi
27215 fi
27216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27217 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27218
27219
27220 if test x$gcc_cv_as_machine_directive != xyes; then
27221 echo "*** This target requires an assembler supporting \".machine\"" >&2
27222 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27223 test x$build = x$target && exit 1
27224 fi
27225 ;;
27226 esac
27227
27228 case $target in
27229 *-*-aix*) conftest_s=' .machine "pwr5"
27230 .csect .text[PR]
27231 mfcr 3,128';;
27232 *-*-darwin*) conftest_s=' .text
27233 mfcr r3,128';;
27234 *) conftest_s=' .machine power4
27235 .text
27236 mfcr 3,128';;
27237 esac
27238
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27240 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27241 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27242 $as_echo_n "(cached) " >&6
27243 else
27244 gcc_cv_as_powerpc_mfcrf=no
27245 if test $in_tree_gas = yes; then
27246 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27247 then gcc_cv_as_powerpc_mfcrf=yes
27248 fi
27249 elif test x$gcc_cv_as != x; then
27250 $as_echo "$conftest_s" > conftest.s
27251 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27253 (eval $ac_try) 2>&5
27254 ac_status=$?
27255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27256 test $ac_status = 0; }; }
27257 then
27258 gcc_cv_as_powerpc_mfcrf=yes
27259 else
27260 echo "configure: failed program was" >&5
27261 cat conftest.s >&5
27262 fi
27263 rm -f conftest.o conftest.s
27264 fi
27265 fi
27266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27267 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27268 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27269
27270 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27271
27272 fi
27273
27274
27275 case $target in
27276 *-*-aix*) conftest_s=' .csect .text[PR]
27277 LCF..0:
27278 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27279 *-*-darwin*)
27280 conftest_s=' .text
27281 LCF0:
27282 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27283 *) conftest_s=' .text
27284 .LCF0:
27285 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27286 esac
27287
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27289 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27290 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27291 $as_echo_n "(cached) " >&6
27292 else
27293 gcc_cv_as_powerpc_rel16=no
27294 if test $in_tree_gas = yes; then
27295 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27296 then gcc_cv_as_powerpc_rel16=yes
27297 fi
27298 elif test x$gcc_cv_as != x; then
27299 $as_echo "$conftest_s" > conftest.s
27300 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27302 (eval $ac_try) 2>&5
27303 ac_status=$?
27304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27305 test $ac_status = 0; }; }
27306 then
27307 gcc_cv_as_powerpc_rel16=yes
27308 else
27309 echo "configure: failed program was" >&5
27310 cat conftest.s >&5
27311 fi
27312 rm -f conftest.o conftest.s
27313 fi
27314 fi
27315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27316 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27317 if test $gcc_cv_as_powerpc_rel16 = yes; then
27318
27319 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27320
27321 fi
27322
27323
27324 case $target in
27325 *-*-aix*) conftest_s=' .machine "pwr7"
27326 .csect .text[PR]
27327 lxvd2x 1,2,3';;
27328 *) conftest_s=' .machine power7
27329 .text
27330 lxvd2x 1,2,3';;
27331 esac
27332
27333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27334 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27335 if ${gcc_cv_as_powerpc_vsx+:} false; then :
27336 $as_echo_n "(cached) " >&6
27337 else
27338 gcc_cv_as_powerpc_vsx=no
27339 if test $in_tree_gas = yes; then
27340 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27341 then gcc_cv_as_powerpc_vsx=yes
27342 fi
27343 elif test x$gcc_cv_as != x; then
27344 $as_echo "$conftest_s" > conftest.s
27345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27347 (eval $ac_try) 2>&5
27348 ac_status=$?
27349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27350 test $ac_status = 0; }; }
27351 then
27352 gcc_cv_as_powerpc_vsx=yes
27353 else
27354 echo "configure: failed program was" >&5
27355 cat conftest.s >&5
27356 fi
27357 rm -f conftest.o conftest.s
27358 fi
27359 fi
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27361 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27362 if test $gcc_cv_as_powerpc_vsx = yes; then
27363
27364 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27365
27366 fi
27367
27368
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27370 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27371 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
27372 $as_echo_n "(cached) " >&6
27373 else
27374 gcc_cv_as_powerpc_gnu_attribute=no
27375 if test $in_tree_gas = yes; then
27376 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27377 then gcc_cv_as_powerpc_gnu_attribute=yes
27378 fi
27379 elif test x$gcc_cv_as != x; then
27380 $as_echo '.gnu_attribute 4,1' > conftest.s
27381 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27383 (eval $ac_try) 2>&5
27384 ac_status=$?
27385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27386 test $ac_status = 0; }; }
27387 then
27388 gcc_cv_as_powerpc_gnu_attribute=yes
27389 else
27390 echo "configure: failed program was" >&5
27391 cat conftest.s >&5
27392 fi
27393 rm -f conftest.o conftest.s
27394 fi
27395 fi
27396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27397 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27398 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27399
27400 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27401
27402 fi
27403
27404
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27406 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27407 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27408 $as_echo_n "(cached) " >&6
27409 else
27410 gcc_cv_as_powerpc_entry_markers=no
27411 if test $in_tree_gas = yes; then
27412 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27413 then gcc_cv_as_powerpc_entry_markers=yes
27414 fi
27415 elif test x$gcc_cv_as != x; then
27416 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27417 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27419 (eval $ac_try) 2>&5
27420 ac_status=$?
27421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27422 test $ac_status = 0; }; }
27423 then
27424 gcc_cv_as_powerpc_entry_markers=yes
27425 else
27426 echo "configure: failed program was" >&5
27427 cat conftest.s >&5
27428 fi
27429 rm -f conftest.o conftest.s
27430 fi
27431 fi
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27433 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27434 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27435
27436 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27437
27438 fi
27439
27440
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27442 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27443 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27444 $as_echo_n "(cached) " >&6
27445 else
27446 gcc_cv_as_powerpc_pltseq_markers=no
27447 if test $in_tree_gas = yes; then
27448 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27449 then gcc_cv_as_powerpc_pltseq_markers=yes
27450 fi
27451 elif test x$gcc_cv_as != x; then
27452 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27453 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27455 (eval $ac_try) 2>&5
27456 ac_status=$?
27457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27458 test $ac_status = 0; }; }
27459 then
27460 gcc_cv_as_powerpc_pltseq_markers=yes
27461 else
27462 echo "configure: failed program was" >&5
27463 cat conftest.s >&5
27464 fi
27465 rm -f conftest.o conftest.s
27466 fi
27467 fi
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27469 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27470 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27471
27472 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27473
27474 fi
27475
27476
27477 case $target in
27478 *-*-aix*)
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27480 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27481 if ${gcc_cv_as_aix_ref+:} false; then :
27482 $as_echo_n "(cached) " >&6
27483 else
27484 gcc_cv_as_aix_ref=no
27485 if test $in_tree_gas = yes; then
27486 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27487 then gcc_cv_as_aix_ref=yes
27488 fi
27489 elif test x$gcc_cv_as != x; then
27490 $as_echo ' .csect stuff[rw]
27491 stuff:
27492 .long 1
27493 .extern sym
27494 .ref sym
27495 ' > conftest.s
27496 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27498 (eval $ac_try) 2>&5
27499 ac_status=$?
27500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27501 test $ac_status = 0; }; }
27502 then
27503 gcc_cv_as_aix_ref=yes
27504 else
27505 echo "configure: failed program was" >&5
27506 cat conftest.s >&5
27507 fi
27508 rm -f conftest.o conftest.s
27509 fi
27510 fi
27511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27512 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27513 if test $gcc_cv_as_aix_ref = yes; then
27514
27515 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27516
27517 fi
27518
27519
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27521 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27522 if ${gcc_cv_as_aix_dwloc+:} false; then :
27523 $as_echo_n "(cached) " >&6
27524 else
27525 gcc_cv_as_aix_dwloc=no
27526 if test $in_tree_gas = yes; then
27527 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27528 then gcc_cv_as_aix_dwloc=yes
27529 fi
27530 elif test x$gcc_cv_as != x; then
27531 $as_echo ' .dwsect 0xA0000
27532 Lframe..0:
27533 .vbyte 4,Lframe..0
27534 ' > conftest.s
27535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27537 (eval $ac_try) 2>&5
27538 ac_status=$?
27539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27540 test $ac_status = 0; }; }
27541 then
27542 gcc_cv_as_aix_dwloc=yes
27543 else
27544 echo "configure: failed program was" >&5
27545 cat conftest.s >&5
27546 fi
27547 rm -f conftest.o conftest.s
27548 fi
27549 fi
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27551 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27552 if test $gcc_cv_as_aix_dwloc = yes; then
27553
27554 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27555
27556 fi
27557
27558 ;;
27559 esac
27560 ;;
27561
27562 mips*-*-*)
27563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27564 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27565 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27566 $as_echo_n "(cached) " >&6
27567 else
27568 gcc_cv_as_mips_explicit_relocs=no
27569 if test $in_tree_gas = yes; then
27570 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27571 then gcc_cv_as_mips_explicit_relocs=yes
27572 fi
27573 elif test x$gcc_cv_as != x; then
27574 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27575 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27577 (eval $ac_try) 2>&5
27578 ac_status=$?
27579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27580 test $ac_status = 0; }; }
27581 then
27582 gcc_cv_as_mips_explicit_relocs=yes
27583 else
27584 echo "configure: failed program was" >&5
27585 cat conftest.s >&5
27586 fi
27587 rm -f conftest.o conftest.s
27588 fi
27589 fi
27590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27591 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27592 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27593 if test x$target_cpu_default = x
27594 then target_cpu_default=MASK_EXPLICIT_RELOCS
27595 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27596 fi
27597 fi
27598
27599
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27601 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27602 if ${gcc_cv_as_mips_no_shared+:} false; then :
27603 $as_echo_n "(cached) " >&6
27604 else
27605 gcc_cv_as_mips_no_shared=no
27606 if test $in_tree_gas = yes; then
27607 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27608 then gcc_cv_as_mips_no_shared=yes
27609 fi
27610 elif test x$gcc_cv_as != x; then
27611 $as_echo 'nop' > conftest.s
27612 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27614 (eval $ac_try) 2>&5
27615 ac_status=$?
27616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27617 test $ac_status = 0; }; }
27618 then
27619 gcc_cv_as_mips_no_shared=yes
27620 else
27621 echo "configure: failed program was" >&5
27622 cat conftest.s >&5
27623 fi
27624 rm -f conftest.o conftest.s
27625 fi
27626 fi
27627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27628 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27629 if test $gcc_cv_as_mips_no_shared = yes; then
27630
27631 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27632
27633 fi
27634
27635
27636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27637 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27638 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27639 $as_echo_n "(cached) " >&6
27640 else
27641 gcc_cv_as_mips_gnu_attribute=no
27642 if test $in_tree_gas = yes; then
27643 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27644 then gcc_cv_as_mips_gnu_attribute=yes
27645 fi
27646 elif test x$gcc_cv_as != x; then
27647 $as_echo '.gnu_attribute 4,1' > conftest.s
27648 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27650 (eval $ac_try) 2>&5
27651 ac_status=$?
27652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27653 test $ac_status = 0; }; }
27654 then
27655 gcc_cv_as_mips_gnu_attribute=yes
27656 else
27657 echo "configure: failed program was" >&5
27658 cat conftest.s >&5
27659 fi
27660 rm -f conftest.o conftest.s
27661 fi
27662 fi
27663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27664 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27665 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27666
27667 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27668
27669 fi
27670
27671
27672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27673 $as_echo_n "checking assembler for .module support... " >&6; }
27674 if ${gcc_cv_as_mips_dot_module+:} false; then :
27675 $as_echo_n "(cached) " >&6
27676 else
27677 gcc_cv_as_mips_dot_module=no
27678 if test x$gcc_cv_as != x; then
27679 $as_echo '.module mips2
27680 .module fp=xx' > conftest.s
27681 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27683 (eval $ac_try) 2>&5
27684 ac_status=$?
27685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27686 test $ac_status = 0; }; }
27687 then
27688 gcc_cv_as_mips_dot_module=yes
27689 else
27690 echo "configure: failed program was" >&5
27691 cat conftest.s >&5
27692 fi
27693 rm -f conftest.o conftest.s
27694 fi
27695 fi
27696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27697 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27698 if test $gcc_cv_as_mips_dot_module = yes; then
27699
27700 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27701
27702 fi
27703
27704 if test x$gcc_cv_as_mips_dot_module = xno \
27705 && test x$with_fp_32 != x; then
27706 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27707 fi
27708
27709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27710 $as_echo_n "checking assembler for .micromips support... " >&6; }
27711 if ${gcc_cv_as_micromips_support+:} false; then :
27712 $as_echo_n "(cached) " >&6
27713 else
27714 gcc_cv_as_micromips_support=no
27715 if test x$gcc_cv_as != x; then
27716 $as_echo '.set micromips' > conftest.s
27717 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27719 (eval $ac_try) 2>&5
27720 ac_status=$?
27721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27722 test $ac_status = 0; }; }
27723 then
27724 gcc_cv_as_micromips_support=yes
27725 else
27726 echo "configure: failed program was" >&5
27727 cat conftest.s >&5
27728 fi
27729 rm -f conftest.o conftest.s
27730 fi
27731 fi
27732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27733 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27734 if test $gcc_cv_as_micromips_support = yes; then
27735
27736 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27737
27738 fi
27739
27740
27741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27742 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27743 if ${gcc_cv_as_mips_dtprelword+:} false; then :
27744 $as_echo_n "(cached) " >&6
27745 else
27746 gcc_cv_as_mips_dtprelword=no
27747 if test $in_tree_gas = yes; then
27748 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27749 then gcc_cv_as_mips_dtprelword=yes
27750 fi
27751 elif test x$gcc_cv_as != x; then
27752 $as_echo '.section .tdata,"awT",@progbits
27753 x:
27754 .word 2
27755 .text
27756 .dtprelword x+0x8000' > conftest.s
27757 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27759 (eval $ac_try) 2>&5
27760 ac_status=$?
27761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27762 test $ac_status = 0; }; }
27763 then
27764 gcc_cv_as_mips_dtprelword=yes
27765 else
27766 echo "configure: failed program was" >&5
27767 cat conftest.s >&5
27768 fi
27769 rm -f conftest.o conftest.s
27770 fi
27771 fi
27772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27773 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27774 if test $gcc_cv_as_mips_dtprelword = yes; then
27775
27776 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27777
27778 fi
27779
27780
27781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27782 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27783 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27784 $as_echo_n "(cached) " >&6
27785 else
27786 gcc_cv_as_mips_dspr1_mult=no
27787 if test x$gcc_cv_as != x; then
27788 $as_echo ' .set mips32r2
27789 .set nodspr2
27790 .set dsp
27791 madd $ac3,$4,$5
27792 maddu $ac3,$4,$5
27793 msub $ac3,$4,$5
27794 msubu $ac3,$4,$5
27795 mult $ac3,$4,$5
27796 multu $ac3,$4,$5' > conftest.s
27797 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27799 (eval $ac_try) 2>&5
27800 ac_status=$?
27801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27802 test $ac_status = 0; }; }
27803 then
27804 gcc_cv_as_mips_dspr1_mult=yes
27805 else
27806 echo "configure: failed program was" >&5
27807 cat conftest.s >&5
27808 fi
27809 rm -f conftest.o conftest.s
27810 fi
27811 fi
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27813 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27814 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27815
27816 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27817
27818 fi
27819
27820
27821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27822 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27823 gcc_cv_as_ld_jalr_reloc=no
27824 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27825 if test $in_tree_ld = yes ; then
27826 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 \
27827 && test $in_tree_ld_is_elf = yes; then
27828 gcc_cv_as_ld_jalr_reloc=yes
27829 fi
27830 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27831 echo ' .ent x' > conftest.s
27832 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27833 echo ' lw $25,%call16(y)($28)' >> conftest.s
27834 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27835 echo '1: jalr $25' >> conftest.s
27836 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27837 echo '1: jalr $25' >> conftest.s
27838 echo ' .end x' >> conftest.s
27839 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27840 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27841 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27842 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27843 gcc_cv_as_ld_jalr_reloc=yes
27844 fi
27845 fi
27846 rm -f conftest.*
27847 fi
27848 fi
27849 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27850 if test x$target_cpu_default = x; then
27851 target_cpu_default=MASK_RELAX_PIC_CALLS
27852 else
27853 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27854 fi
27855 fi
27856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27857 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27858
27859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27860 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27861 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27862 $as_echo_n "(cached) " >&6
27863 else
27864 gcc_cv_ld_mips_personality_relaxation=no
27865 if test $in_tree_ld = yes ; then
27866 if test "$gcc_cv_gld_major_version" -eq 2 \
27867 -a "$gcc_cv_gld_minor_version" -ge 21 \
27868 -o "$gcc_cv_gld_major_version" -gt 2; then
27869 gcc_cv_ld_mips_personality_relaxation=yes
27870 fi
27871 elif test x$gcc_cv_as != x \
27872 -a x$gcc_cv_ld != x \
27873 -a x$gcc_cv_readelf != x ; then
27874 cat > conftest.s <<EOF
27875 .cfi_startproc
27876 .cfi_personality 0x80,indirect_ptr
27877 .ent test
27878 test:
27879 nop
27880 .end test
27881 .cfi_endproc
27882
27883 .section .data,"aw",@progbits
27884 indirect_ptr:
27885 .dc.a personality
27886 EOF
27887 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27888 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27889 if $gcc_cv_readelf -d conftest 2>&1 \
27890 | grep TEXTREL > /dev/null 2>&1; then
27891 :
27892 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27893 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27894 :
27895 else
27896 gcc_cv_ld_mips_personality_relaxation=yes
27897 fi
27898 fi
27899 fi
27900 rm -f conftest.s conftest.o conftest
27901 fi
27902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27903 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27904 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27905
27906 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27907
27908 fi
27909
27910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27911 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27912 if ${gcc_cv_as_mips_nan+:} false; then :
27913 $as_echo_n "(cached) " >&6
27914 else
27915 gcc_cv_as_mips_nan=no
27916 if test x$gcc_cv_as != x; then
27917 $as_echo '' > conftest.s
27918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27920 (eval $ac_try) 2>&5
27921 ac_status=$?
27922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27923 test $ac_status = 0; }; }
27924 then
27925 gcc_cv_as_mips_nan=yes
27926 else
27927 echo "configure: failed program was" >&5
27928 cat conftest.s >&5
27929 fi
27930 rm -f conftest.o conftest.s
27931 fi
27932 fi
27933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27934 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27935 if test $gcc_cv_as_mips_nan = yes; then
27936
27937 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27938
27939 fi
27940
27941 if test x$gcc_cv_as_mips_nan = xno \
27942 && test x$with_nan != x; then
27943 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27944 fi
27945 ;;
27946 msp430-*-*)
27947 # Earlier GAS versions generically support .gnu_attribute, but the
27948 # msp430 assembler will not do anything with it.
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27950 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27951 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
27952 $as_echo_n "(cached) " >&6
27953 else
27954 gcc_cv_as_msp430_gnu_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_gnu_attribute=yes
27958 fi
27959 elif test x$gcc_cv_as != x; then
27960 $as_echo '.gnu_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_gnu_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_gnu_attribute" >&5
27977 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
27978 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
27979
27980 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27981
27982 fi
27983
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
27985 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
27986 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
27987 $as_echo_n "(cached) " >&6
27988 else
27989 gcc_cv_as_msp430_mspabi_attribute=no
27990 if test $in_tree_gas = yes; then
27991 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27992 then gcc_cv_as_msp430_mspabi_attribute=yes
27993 fi
27994 elif test x$gcc_cv_as != x; then
27995 $as_echo '.mspabi_attribute 4,1' > conftest.s
27996 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27998 (eval $ac_try) 2>&5
27999 ac_status=$?
28000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28001 test $ac_status = 0; }; }
28002 then
28003 gcc_cv_as_msp430_mspabi_attribute=yes
28004 else
28005 echo "configure: failed program was" >&5
28006 cat conftest.s >&5
28007 fi
28008 rm -f conftest.o conftest.s
28009 fi
28010 fi
28011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28012 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28013 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28014
28015 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28016
28017 fi
28018
28019 if test x$enable_newlib_nano_formatted_io = xyes; then
28020
28021 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28022
28023 fi
28024 ;;
28025 nios2-*-*)
28026 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28027 # syntax that is documented in the ABI specification.
28028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28029 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28030 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28031 $as_echo_n "(cached) " >&6
28032 else
28033 gcc_cv_as_nios2_gotoff_relocation=no
28034 if test x$gcc_cv_as != x; then
28035 $as_echo ' .extern foo
28036 .data
28037 .long %gotoff(foo)' > conftest.s
28038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28040 (eval $ac_try) 2>&5
28041 ac_status=$?
28042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28043 test $ac_status = 0; }; }
28044 then
28045 gcc_cv_as_nios2_gotoff_relocation=yes
28046 else
28047 echo "configure: failed program was" >&5
28048 cat conftest.s >&5
28049 fi
28050 rm -f conftest.o conftest.s
28051 fi
28052 fi
28053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28054 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28055 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28056
28057 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28058
28059 fi
28060
28061 ;;
28062 riscv*-*-*)
28063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28064 $as_echo_n "checking assembler for .attribute support... " >&6; }
28065 if ${gcc_cv_as_riscv_attribute+:} false; then :
28066 $as_echo_n "(cached) " >&6
28067 else
28068 gcc_cv_as_riscv_attribute=no
28069 if test $in_tree_gas = yes; then
28070 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
28071 then gcc_cv_as_riscv_attribute=yes
28072 fi
28073 elif test x$gcc_cv_as != x; then
28074 $as_echo '.attribute stack_align,4' > conftest.s
28075 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28077 (eval $ac_try) 2>&5
28078 ac_status=$?
28079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28080 test $ac_status = 0; }; }
28081 then
28082 gcc_cv_as_riscv_attribute=yes
28083 else
28084 echo "configure: failed program was" >&5
28085 cat conftest.s >&5
28086 fi
28087 rm -f conftest.o conftest.s
28088 fi
28089 fi
28090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28091 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28092 if test $gcc_cv_as_riscv_attribute = yes; then
28093
28094 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28095
28096 fi
28097
28098 ;;
28099 s390*-*-*)
28100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28101 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28102 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28103 $as_echo_n "(cached) " >&6
28104 else
28105 gcc_cv_as_s390_gnu_attribute=no
28106 if test $in_tree_gas = yes; then
28107 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28108 then gcc_cv_as_s390_gnu_attribute=yes
28109 fi
28110 elif test x$gcc_cv_as != x; then
28111 $as_echo '.gnu_attribute 8,1' > conftest.s
28112 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28114 (eval $ac_try) 2>&5
28115 ac_status=$?
28116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28117 test $ac_status = 0; }; }
28118 then
28119 gcc_cv_as_s390_gnu_attribute=yes
28120 else
28121 echo "configure: failed program was" >&5
28122 cat conftest.s >&5
28123 fi
28124 rm -f conftest.o conftest.s
28125 fi
28126 fi
28127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28128 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28129 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28130
28131 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28132
28133 fi
28134
28135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28136 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28137 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28138 $as_echo_n "(cached) " >&6
28139 else
28140 gcc_cv_as_s390_machine_machinemode=no
28141 if test $in_tree_gas = yes; then
28142 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28143 then gcc_cv_as_s390_machine_machinemode=yes
28144 fi
28145 elif test x$gcc_cv_as != x; then
28146 $as_echo ' .machinemode push
28147 .machinemode pop
28148 .machine push
28149 .machine pop' > 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_machine_machinemode=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_machine_machinemode" >&5
28166 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28167 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28168
28169 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28170
28171 fi
28172
28173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28174 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28175 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28176 $as_echo_n "(cached) " >&6
28177 else
28178 gcc_cv_as_s390_architecture_modifiers=no
28179 if test $in_tree_gas = yes; then
28180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28181 then gcc_cv_as_s390_architecture_modifiers=yes
28182 fi
28183 elif test x$gcc_cv_as != x; then
28184 $as_echo ' .machine z13+vx ' > 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_architecture_modifiers=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_architecture_modifiers" >&5
28201 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28202 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28203
28204 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28205
28206 fi
28207
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28209 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28210 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28211 $as_echo_n "(cached) " >&6
28212 else
28213 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28214 if test $in_tree_gas = yes; then
28215 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28216 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28217 fi
28218 elif test x$gcc_cv_as != x; then
28219 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28220 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28222 (eval $ac_try) 2>&5
28223 ac_status=$?
28224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28225 test $ac_status = 0; }; }
28226 then
28227 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28228 else
28229 echo "configure: failed program was" >&5
28230 cat conftest.s >&5
28231 fi
28232 rm -f conftest.o conftest.s
28233 fi
28234 fi
28235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28236 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28237 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28238
28239 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28240
28241 fi
28242
28243
28244 ;;
28245 esac
28246
28247 # Mips and HP-UX need the GNU assembler.
28248 # Linux on IA64 might be able to use the Intel assembler.
28249
28250 case "$target" in
28251 mips*-*-* | *-*-hpux* )
28252 if test x$gas_flag = xyes \
28253 || test x"$host" != x"$build" \
28254 || test ! -x "$gcc_cv_as" \
28255 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28256 :
28257 else
28258 echo "*** This configuration requires the GNU assembler" >&2
28259 exit 1
28260 fi
28261 ;;
28262 esac
28263
28264 # ??? Not all targets support dwarf2 debug_line, even within a version
28265 # of gas. Moreover, we need to emit a valid instruction to trigger any
28266 # info to the output file. So, as supported targets are added to gas 2.11,
28267 # add some instruction here to (also) show we expect this might work.
28268 # ??? Once 2.11 is released, probably need to add first known working
28269 # version to the per-target configury.
28270 case "$cpu_type" in
28271 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28272 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28273 | tilegx | tilepro | visium | xstormy16 | xtensa)
28274 insn="nop"
28275 ;;
28276 ia64 | s390)
28277 insn="nop 0"
28278 ;;
28279 mmix)
28280 insn="swym 0"
28281 ;;
28282 esac
28283 if test x"$insn" != x; then
28284 conftest_s="\
28285 .file 1 \"conftest.s\"
28286 .loc 1 3 0
28287 $insn"
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28289 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28290 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
28291 $as_echo_n "(cached) " >&6
28292 else
28293 gcc_cv_as_dwarf2_debug_line=no
28294 if test $in_tree_gas = yes; then
28295 if test $in_tree_gas_is_elf = yes \
28296 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28297 then gcc_cv_as_dwarf2_debug_line=yes
28298 fi
28299 elif test x$gcc_cv_as != x; then
28300 $as_echo "$conftest_s" > conftest.s
28301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28303 (eval $ac_try) 2>&5
28304 ac_status=$?
28305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28306 test $ac_status = 0; }; }
28307 then
28308 if test x$gcc_cv_objdump != x \
28309 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
28310 | grep debug_line > /dev/null 2>&1; then
28311 gcc_cv_as_dwarf2_debug_line=yes
28312 elif test x$gcc_cv_otool != x \
28313 && $gcc_cv_otool -l conftest.o 2> /dev/null \
28314 | grep debug_line > /dev/null 2>&1; then
28315 gcc_cv_as_dwarf2_debug_line=yes
28316 fi
28317 else
28318 echo "configure: failed program was" >&5
28319 cat conftest.s >&5
28320 fi
28321 rm -f conftest.o conftest.s
28322 fi
28323 fi
28324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28325 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28326
28327
28328
28329 # The .debug_line file table must be in the exact order that
28330 # we specified the files, since these indices are also used
28331 # by DW_AT_decl_file. Approximate this test by testing if
28332 # the assembler bitches if the same index is assigned twice.
28333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28334 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28335 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
28336 $as_echo_n "(cached) " >&6
28337 else
28338 gcc_cv_as_dwarf2_file_buggy=no
28339 if test x$gcc_cv_as != x; then
28340 $as_echo ' .file 1 "foo.s"
28341 .file 1 "bar.s"' > conftest.s
28342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28344 (eval $ac_try) 2>&5
28345 ac_status=$?
28346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28347 test $ac_status = 0; }; }
28348 then
28349 gcc_cv_as_dwarf2_file_buggy=yes
28350 else
28351 echo "configure: failed program was" >&5
28352 cat conftest.s >&5
28353 fi
28354 rm -f conftest.o conftest.s
28355 fi
28356 fi
28357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28358 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28359
28360
28361
28362 if test $gcc_cv_as_dwarf2_debug_line = yes \
28363 && test $gcc_cv_as_dwarf2_file_buggy = no; then
28364
28365 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28366
28367
28368 if test $gcc_cv_as_leb128 = yes; then
28369 conftest_s="\
28370 .file 1 \"conftest.s\"
28371 .loc 1 3 0 view .LVU1
28372 $insn
28373 .data
28374 .uleb128 .LVU1
28375 .uleb128 .LVU1
28376 "
28377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28378 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28379 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
28380 $as_echo_n "(cached) " >&6
28381 else
28382 gcc_cv_as_dwarf2_debug_view=no
28383 if test $in_tree_gas = yes; then
28384 if test $in_tree_gas_is_elf = yes \
28385 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28386 then gcc_cv_as_dwarf2_debug_view=yes
28387 fi
28388 elif test x$gcc_cv_as != x; then
28389 $as_echo "$conftest_s" > conftest.s
28390 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28392 (eval $ac_try) 2>&5
28393 ac_status=$?
28394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28395 test $ac_status = 0; }; }
28396 then
28397 gcc_cv_as_dwarf2_debug_view=yes
28398 else
28399 echo "configure: failed program was" >&5
28400 cat conftest.s >&5
28401 fi
28402 rm -f conftest.o conftest.s
28403 fi
28404 fi
28405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28406 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28407 if test $gcc_cv_as_dwarf2_debug_view = yes; then
28408
28409 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28410
28411 fi
28412
28413 fi
28414 fi
28415
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28417 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28418 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
28419 $as_echo_n "(cached) " >&6
28420 else
28421 gcc_cv_as_gdwarf2_flag=no
28422 if test $in_tree_gas = yes; then
28423 if test $in_tree_gas_is_elf = yes \
28424 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28425 then gcc_cv_as_gdwarf2_flag=yes
28426 fi
28427 elif test x$gcc_cv_as != x; then
28428 $as_echo "$insn" > conftest.s
28429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28431 (eval $ac_try) 2>&5
28432 ac_status=$?
28433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28434 test $ac_status = 0; }; }
28435 then
28436 gcc_cv_as_gdwarf2_flag=yes
28437 else
28438 echo "configure: failed program was" >&5
28439 cat conftest.s >&5
28440 fi
28441 rm -f conftest.o conftest.s
28442 fi
28443 fi
28444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28445 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28446 if test $gcc_cv_as_gdwarf2_flag = yes; then
28447
28448 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28449
28450 fi
28451
28452
28453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28454 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28455 if ${gcc_cv_as_gstabs_flag+:} false; then :
28456 $as_echo_n "(cached) " >&6
28457 else
28458 gcc_cv_as_gstabs_flag=no
28459 if test $in_tree_gas = yes; then
28460 if test $in_tree_gas_is_elf = yes \
28461 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28462 then gcc_cv_as_gstabs_flag=yes
28463 fi
28464 elif test x$gcc_cv_as != x; then
28465 $as_echo "$insn" > conftest.s
28466 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28468 (eval $ac_try) 2>&5
28469 ac_status=$?
28470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28471 test $ac_status = 0; }; }
28472 then
28473 gcc_cv_as_gstabs_flag=yes
28474 else
28475 echo "configure: failed program was" >&5
28476 cat conftest.s >&5
28477 fi
28478 rm -f conftest.o conftest.s
28479 fi
28480 fi
28481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28482 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28483 if test $gcc_cv_as_gstabs_flag = yes; then
28484
28485 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28486
28487 fi
28488
28489
28490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28491 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28492 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
28493 $as_echo_n "(cached) " >&6
28494 else
28495 gcc_cv_as_debug_prefix_map_flag=no
28496 if test $in_tree_gas = yes; then
28497 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28498 then gcc_cv_as_debug_prefix_map_flag=yes
28499 fi
28500 elif test x$gcc_cv_as != x; then
28501 $as_echo "$insn" > conftest.s
28502 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28504 (eval $ac_try) 2>&5
28505 ac_status=$?
28506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28507 test $ac_status = 0; }; }
28508 then
28509 gcc_cv_as_debug_prefix_map_flag=yes
28510 else
28511 echo "configure: failed program was" >&5
28512 cat conftest.s >&5
28513 fi
28514 rm -f conftest.o conftest.s
28515 fi
28516 fi
28517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28518 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28519 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28520
28521 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28522
28523 fi
28524
28525 fi
28526
28527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28528 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28529 if ${gcc_cv_as_compress_debug+:} false; then :
28530 $as_echo_n "(cached) " >&6
28531 else
28532 gcc_cv_as_compress_debug=no
28533 if test x$gcc_cv_as != x; then
28534 $as_echo '' > conftest.s
28535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28537 (eval $ac_try) 2>&5
28538 ac_status=$?
28539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28540 test $ac_status = 0; }; }
28541 then
28542 # gas compiled without zlib cannot compress debug sections and warns
28543 # about it, but still exits successfully. So check for this, too.
28544 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28545 then
28546 gcc_cv_as_compress_debug=0
28547 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28548 # defaulting to the ELF gABI format.
28549 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28550 then
28551 gcc_cv_as_compress_debug=2
28552 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28553 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28554 # Before binutils 2.26, gas only supported --compress-debug-options and
28555 # emitted the traditional GNU format.
28556 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28557 then
28558 gcc_cv_as_compress_debug=1
28559 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28560 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28561 else
28562 gcc_cv_as_compress_debug=0
28563 fi
28564 else
28565 echo "configure: failed program was" >&5
28566 cat conftest.s >&5
28567 fi
28568 rm -f conftest.o conftest.s
28569 fi
28570 fi
28571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28572 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28573
28574
28575
28576 cat >>confdefs.h <<_ACEOF
28577 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28578 _ACEOF
28579
28580
28581 cat >>confdefs.h <<_ACEOF
28582 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28583 _ACEOF
28584
28585
28586 cat >>confdefs.h <<_ACEOF
28587 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28588 _ACEOF
28589
28590
28591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28592 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28593 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
28594 $as_echo_n "(cached) " >&6
28595 else
28596 gcc_cv_as_lcomm_with_alignment=no
28597 if test x$gcc_cv_as != x; then
28598 $as_echo '.lcomm bar,4,16' > conftest.s
28599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28601 (eval $ac_try) 2>&5
28602 ac_status=$?
28603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28604 test $ac_status = 0; }; }
28605 then
28606 gcc_cv_as_lcomm_with_alignment=yes
28607 else
28608 echo "configure: failed program was" >&5
28609 cat conftest.s >&5
28610 fi
28611 rm -f conftest.o conftest.s
28612 fi
28613 fi
28614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28615 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28616 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28617
28618 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28619
28620 fi
28621
28622
28623 if test x$with_sysroot = x && test x$host = x$target \
28624 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28625 && test "$prefix" != "NONE"; then
28626
28627 cat >>confdefs.h <<_ACEOF
28628 #define PREFIX_INCLUDE_DIR "$prefix/include"
28629 _ACEOF
28630
28631 fi
28632
28633 # Determine the version of glibc, if any, used on the target.
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28635 $as_echo_n "checking for target glibc version... " >&6; }
28636
28637 # Check whether --with-glibc-version was given.
28638 if test "${with_glibc_version+set}" = set; then :
28639 withval=$with_glibc_version;
28640 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28641 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28642 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28643 else
28644 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28645 fi
28646 else
28647
28648 glibc_version_major=0
28649 glibc_version_minor=0
28650 if test -f $target_header_dir/features.h \
28651 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28652 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28653 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28654 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28655 fi
28656 fi
28657
28658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28659 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28660
28661 cat >>confdefs.h <<_ACEOF
28662 #define TARGET_GLIBC_MAJOR $glibc_version_major
28663 _ACEOF
28664
28665
28666 cat >>confdefs.h <<_ACEOF
28667 #define TARGET_GLIBC_MINOR $glibc_version_minor
28668 _ACEOF
28669
28670
28671 # Check whether --enable-gnu-unique-object was given.
28672 if test "${enable_gnu_unique_object+set}" = set; then :
28673 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28674 yes | no) ;;
28675 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28676 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28677 esac
28678 else
28679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28680 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28681 if ${gcc_cv_as_gnu_unique_object+:} false; then :
28682 $as_echo_n "(cached) " >&6
28683 else
28684 gcc_cv_as_gnu_unique_object=no
28685 if test $in_tree_gas = yes; then
28686 if test $in_tree_gas_is_elf = yes \
28687 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28688 then gcc_cv_as_gnu_unique_object=yes
28689 fi
28690 elif test x$gcc_cv_as != x; then
28691 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28692 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28694 (eval $ac_try) 2>&5
28695 ac_status=$?
28696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28697 test $ac_status = 0; }; }
28698 then
28699 gcc_cv_as_gnu_unique_object=yes
28700 else
28701 echo "configure: failed program was" >&5
28702 cat conftest.s >&5
28703 fi
28704 rm -f conftest.o conftest.s
28705 fi
28706 fi
28707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28708 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28709 if test $gcc_cv_as_gnu_unique_object = yes; then
28710 # We need to unquote above to to use the definition from config.gcc.
28711 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28712
28713 if test $glibc_version_major -gt 2 \
28714 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28715 enable_gnu_unique_object=yes
28716 fi
28717
28718 fi
28719
28720 fi
28721
28722 if test x$enable_gnu_unique_object = xyes; then
28723
28724 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28725
28726 fi
28727
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28729 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28730 if ${gcc_cv_as_line_zero+:} false; then :
28731 $as_echo_n "(cached) " >&6
28732 else
28733 gcc_cv_as_line_zero=no
28734 if test $in_tree_gas = yes; then
28735 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28736 then gcc_cv_as_line_zero=yes
28737 fi
28738 elif test "x$gcc_cv_as" != x; then
28739 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28740 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28742 (eval $ac_try) 2>&5
28743 ac_status=$?
28744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28745 test $ac_status = 0; }; } &&
28746 test "x`cat conftest.out`" = x
28747 then
28748 gcc_cv_as_line_zero=yes
28749 else
28750 echo "configure: failed program was" >&5
28751 cat conftest.s >&5
28752 echo "configure: error output was" >&5
28753 cat conftest.out >&5
28754 fi
28755 rm -f conftest.o conftest.s conftest.out
28756 fi
28757 fi
28758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28759 $as_echo "$gcc_cv_as_line_zero" >&6; }
28760 if test "x$gcc_cv_as_line_zero" = xyes; then
28761
28762 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28763
28764 fi
28765
28766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28767 $as_echo_n "checking support for thin archives... " >&6; }
28768 thin_archive_support=no
28769 echo 'int main (void) { return 0; }' > conftest.c
28770 if ($AR --version | sed 1q | grep "GNU ar" \
28771 && $CC $CFLAGS -c conftest.c \
28772 && $AR rcT conftest.a conftest.o \
28773 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28774 thin_archive_support=yes
28775 fi
28776 rm -f conftest.c conftest.o conftest.a conftest
28777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28778 $as_echo "$thin_archive_support" >&6; }
28779
28780
28781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28782 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28783 gcc_cv_ld_eh_frame_hdr=no
28784 if test $in_tree_ld = yes ; then
28785 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 \
28786 && test $in_tree_ld_is_elf = yes; then
28787 gcc_cv_ld_eh_frame_hdr=yes
28788 fi
28789 elif test x$gcc_cv_ld != x; then
28790 if echo "$ld_ver" | grep GNU > /dev/null; then
28791 # Check if linker supports --eh-frame-hdr option
28792 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28793 gcc_cv_ld_eh_frame_hdr=yes
28794 fi
28795 else
28796 case "$target" in
28797 *-*-solaris2*)
28798 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28799 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28800 gcc_cv_ld_eh_frame_hdr=yes
28801 fi
28802 ;;
28803 esac
28804 fi
28805 fi
28806
28807 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28808
28809 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28810
28811 fi
28812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28813 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28814
28815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28816 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28817 gcc_cv_ld_eh_frame_ciev3=no
28818 if test $in_tree_ld = yes ; then
28819 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 \
28820 && test $in_tree_ld_is_elf = yes; then
28821 gcc_cv_ld_eh_frame_ciev3=yes
28822 fi
28823 elif test x$gcc_cv_ld != x; then
28824 if echo "$ld_ver" | grep GNU > /dev/null; then
28825 gcc_cv_ld_eh_frame_ciev3=yes
28826 if test 0"$ld_date" -lt 20040513; then
28827 if test -n "$ld_date"; then
28828 # If there was date string, but was earlier than 2004-05-13, fail
28829 gcc_cv_ld_eh_frame_ciev3=no
28830 elif test "$ld_vers_major" -lt 2; then
28831 gcc_cv_ld_eh_frame_ciev3=no
28832 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28833 gcc_cv_ld_eh_frame_ciev3=no
28834 fi
28835 fi
28836 else
28837 case "$target" in
28838 *-*-solaris2*)
28839 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28840 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28841 gcc_cv_ld_eh_frame_ciev3=yes
28842 fi
28843 ;;
28844 esac
28845 fi
28846 fi
28847
28848 cat >>confdefs.h <<_ACEOF
28849 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28850 _ACEOF
28851
28852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28853 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28854
28855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28856 $as_echo_n "checking linker position independent executable support... " >&6; }
28857 gcc_cv_ld_pie=no
28858 if test $in_tree_ld = yes ; then
28859 case "$target" in
28860 # Full PIE support on Solaris was only introduced in gld 2.26.
28861 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28862 *) gcc_gld_pie_min_version=15 ;;
28863 esac
28864 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 \
28865 && test $in_tree_ld_is_elf = yes; then
28866 gcc_cv_ld_pie=yes
28867 fi
28868 elif test x$gcc_cv_ld != x; then
28869 # Check if linker supports -pie option
28870 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28871 gcc_cv_ld_pie=yes
28872 case "$target" in
28873 *-*-solaris2*)
28874 if echo "$ld_ver" | grep GNU > /dev/null \
28875 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28876 gcc_cv_ld_pie=no
28877 fi
28878 ;;
28879 esac
28880 else
28881 case "$target" in
28882 *-*-solaris2.1[1-9]*)
28883 # Solaris 11.3 added PIE support.
28884 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28885 gcc_cv_ld_pie=yes
28886 fi
28887 ;;
28888 esac
28889 fi
28890 fi
28891 if test x"$gcc_cv_ld_pie" = xyes; then
28892
28893 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28894
28895 fi
28896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28897 $as_echo "$gcc_cv_ld_pie" >&6; }
28898
28899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28900 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28901 gcc_cv_ld_pie_copyreloc=no
28902 if test $gcc_cv_ld_pie = yes ; then
28903 if test $in_tree_ld = yes ; then
28904 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
28905 gcc_cv_ld_pie_copyreloc=yes
28906 fi
28907 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28908 # Check if linker supports -pie option with copy reloc
28909 case "$target" in
28910 i?86-*-linux* | x86_64-*-linux*)
28911 cat > conftest1.s <<EOF
28912 .globl a_glob
28913 .data
28914 .type a_glob, @object
28915 .size a_glob, 4
28916 a_glob:
28917 .long 2
28918 EOF
28919 cat > conftest2.s <<EOF
28920 .text
28921 .globl main
28922 .type main, @function
28923 main:
28924 movl %eax, a_glob(%rip)
28925 .size main, .-main
28926 .globl ptr
28927 .section .data.rel,"aw",@progbits
28928 .type ptr, @object
28929 ptr:
28930 .quad a_glob
28931 EOF
28932 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28933 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28934 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28935 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28936 gcc_cv_ld_pie_copyreloc=yes
28937 fi
28938 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28939 ;;
28940 esac
28941 fi
28942 fi
28943
28944 cat >>confdefs.h <<_ACEOF
28945 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28946 _ACEOF
28947
28948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28949 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28950
28951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28952 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28953 gcc_cv_ld_eh_gc_sections=no
28954 if test $in_tree_ld = yes ; then
28955 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 \
28956 && test $in_tree_ld_is_elf = yes; then
28957 gcc_cv_ld_eh_gc_sections=yes
28958 fi
28959 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28960 cat > conftest.s <<EOF
28961 .section .text
28962 .globl _start
28963 .type _start, @function
28964 _start:
28965 .long foo
28966 .size _start, .-_start
28967 .section .text.foo,"ax",@progbits
28968 .type foo, @function
28969 foo:
28970 .long 0
28971 .size foo, .-foo
28972 .section .gcc_except_table.foo,"a",@progbits
28973 .L0:
28974 .long 0
28975 .section .eh_frame,"a",@progbits
28976 .long .L0
28977 EOF
28978 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28979 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28980 | grep "gc-sections option ignored" > /dev/null; then
28981 gcc_cv_ld_eh_gc_sections=no
28982 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28983 | grep gcc_except_table > /dev/null; then
28984 gcc_cv_ld_eh_gc_sections=yes
28985 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28986 if test x$gcc_cv_as_comdat_group != xyes; then
28987 gcc_cv_ld_eh_gc_sections=no
28988 cat > conftest.s <<EOF
28989 .section .text
28990 .globl _start
28991 .type _start, @function
28992 _start:
28993 .long foo
28994 .size _start, .-_start
28995 .section .gnu.linkonce.t.foo,"ax",@progbits
28996 .type foo, @function
28997 foo:
28998 .long 0
28999 .size foo, .-foo
29000 .section .gcc_except_table.foo,"a",@progbits
29001 .L0:
29002 .long 0
29003 .section .eh_frame,"a",@progbits
29004 .long .L0
29005 EOF
29006 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29007 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29008 | grep "gc-sections option ignored" > /dev/null; then
29009 gcc_cv_ld_eh_gc_sections=no
29010 elif $gcc_cv_objdump -h conftest 2> /dev/null \
29011 | grep gcc_except_table > /dev/null; then
29012 gcc_cv_ld_eh_gc_sections=yes
29013 fi
29014 fi
29015 fi
29016 fi
29017 fi
29018 rm -f conftest.s conftest.o conftest
29019 fi
29020 case "$target" in
29021 hppa*-*-linux*)
29022 # ??? This apparently exposes a binutils bug with PC-relative relocations.
29023 gcc_cv_ld_eh_gc_sections=no
29024 ;;
29025 esac
29026 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
29027
29028 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
29029
29030 fi
29031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
29032 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
29033
29034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
29035 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
29036 gcc_cv_ld_eh_gc_sections_bug=no
29037 if test $in_tree_ld = yes ; then
29038 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 \
29039 && test $in_tree_ld_is_elf = yes; then
29040 gcc_cv_ld_eh_gc_sections_bug=yes
29041 fi
29042 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
29043 gcc_cv_ld_eh_gc_sections_bug=yes
29044 cat > conftest.s <<EOF
29045 .section .text
29046 .globl _start
29047 .type _start, @function
29048 _start:
29049 .long foo
29050 .size _start, .-_start
29051 .section .text.startup.foo,"ax",@progbits
29052 .type foo, @function
29053 foo:
29054 .long 0
29055 .size foo, .-foo
29056 .section .gcc_except_table.foo,"a",@progbits
29057 .L0:
29058 .long 0
29059 .section .eh_frame,"a",@progbits
29060 .long .L0
29061 EOF
29062 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29063 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29064 | grep "gc-sections option ignored" > /dev/null; then
29065 :
29066 elif $gcc_cv_objdump -h conftest 2> /dev/null \
29067 | grep gcc_except_table > /dev/null; then
29068 gcc_cv_ld_eh_gc_sections_bug=no
29069 fi
29070 fi
29071 rm -f conftest.s conftest.o conftest
29072 fi
29073 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
29074
29075 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
29076
29077 fi
29078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
29079 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
29080
29081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
29082 $as_echo_n "checking linker for compressed debug sections... " >&6; }
29083 # gold/gld support compressed debug sections since binutils 2.19/2.21
29084 # In binutils 2.26, gld gained support for the ELF gABI format.
29085 if test $in_tree_ld = yes ; then
29086 gcc_cv_ld_compress_debug=0
29087 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 \
29088 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
29089 gcc_cv_ld_compress_debug=2
29090 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29091 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 \
29092 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
29093 gcc_cv_ld_compress_debug=3
29094 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29095 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 \
29096 && test $in_tree_ld_is_elf = yes; then
29097 gcc_cv_ld_compress_debug=1
29098 fi
29099 elif echo "$ld_ver" | grep GNU > /dev/null; then
29100 if test "$ld_vers_major" -lt 2 \
29101 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
29102 gcc_cv_ld_compress_debug=0
29103 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29104 gcc_cv_ld_compress_debug=1
29105 else
29106 gcc_cv_ld_compress_debug=3
29107 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29108 fi
29109 if test $ld_is_gold = yes; then
29110 gcc_cv_ld_compress_debug=2
29111 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29112 fi
29113 else
29114 case "${target}" in
29115 *-*-solaris2*)
29116 # Introduced in Solaris 11.2.
29117 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
29118 gcc_cv_ld_compress_debug=3
29119 gcc_cv_ld_compress_debug_option="-z compress-sections"
29120 else
29121 gcc_cv_ld_compress_debug=0
29122 fi
29123 ;;
29124 *)
29125 # Assume linkers other than GNU ld don't support compessed debug
29126 # sections.
29127 gcc_cv_ld_compress_debug=0
29128 ;;
29129 esac
29130 fi
29131
29132 cat >>confdefs.h <<_ACEOF
29133 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
29134 _ACEOF
29135
29136
29137 cat >>confdefs.h <<_ACEOF
29138 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
29139 _ACEOF
29140
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
29142 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
29143
29144 if test x"$ld64_flag" = x"yes"; then
29145
29146 # Set defaults for possibly untestable items.
29147 gcc_cv_ld64_export_dynamic=0
29148
29149 if test "$build" = "$host"; then
29150 darwin_try_test=1
29151 else
29152 darwin_try_test=0
29153 fi
29154
29155 # On Darwin, because of FAT library support, it is often possible to execute
29156 # exes from compatible archs even when the host differs from the build system.
29157 case "$build","$host" in
29158 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
29159 darwin_try_test=1;;
29160 *) ;;
29161 esac
29162
29163 # If the configurer specified a minimum ld64 version to be supported, then use
29164 # that to determine feature support.
29165 if test x"${gcc_cv_ld64_version}" != x; then
29166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
29167 $as_echo_n "checking ld64 specified version... " >&6; }
29168 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
29169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
29170 $as_echo "$gcc_cv_ld64_major" >&6; }
29171 if test "$gcc_cv_ld64_major" -ge 236; then
29172 gcc_cv_ld64_export_dynamic=1
29173 fi
29174 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
29175 # If the version was not specified, try to find it.
29176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
29177 $as_echo_n "checking linker version... " >&6; }
29178 if test x"${gcc_cv_ld64_version}" = x; then
29179 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
29180 fi
29181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
29182 $as_echo "$gcc_cv_ld64_version" >&6; }
29183
29184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
29185 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
29186 gcc_cv_ld64_export_dynamic=1
29187 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
29188 gcc_cv_ld64_export_dynamic=0
29189 fi
29190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
29191 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
29192 fi
29193
29194 if test x"${gcc_cv_ld64_version}" != x; then
29195
29196 cat >>confdefs.h <<_ACEOF
29197 #define LD64_VERSION "${gcc_cv_ld64_version}"
29198 _ACEOF
29199
29200 fi
29201
29202
29203 cat >>confdefs.h <<_ACEOF
29204 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
29205 _ACEOF
29206
29207 fi
29208
29209 # --------
29210 # UNSORTED
29211 # --------
29212
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
29214 $as_echo_n "checking linker --as-needed support... " >&6; }
29215 if ${gcc_cv_ld_as_needed+:} false; then :
29216 $as_echo_n "(cached) " >&6
29217 else
29218 gcc_cv_ld_as_needed=no
29219 gcc_cv_ld_as_needed_option='--as-needed'
29220 gcc_cv_ld_no_as_needed_option='--no-as-needed'
29221 if test $in_tree_ld = yes ; then
29222 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 \
29223 && test $in_tree_ld_is_elf = yes; then
29224 gcc_cv_ld_as_needed=yes
29225 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
29226 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29227 gcc_cv_ld_no_as_needed_option='--pop-state'
29228 fi
29229 fi
29230 elif test x$gcc_cv_ld != x; then
29231 # Check if linker supports --as-needed and --no-as-needed options
29232 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
29233 gcc_cv_ld_as_needed=yes
29234 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
29235 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
29236 && echo "$ld_ver" | grep GNU > /dev/null \
29237 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
29238 # Use these options only when both ld.bfd and ld.gold support
29239 # --push-state/--pop-state, which unfortunately wasn't added
29240 # at the same time.
29241 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29242 gcc_cv_ld_no_as_needed_option='--pop-state'
29243 fi
29244 fi
29245 case "$target:$gnu_ld" in
29246 *-*-solaris2*:no)
29247 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
29248 # forms.
29249 gcc_cv_ld_as_needed=yes
29250 gcc_cv_ld_as_needed_option="-z ignore"
29251 gcc_cv_ld_no_as_needed_option="-z record"
29252 ;;
29253 esac
29254 fi
29255 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
29256 # dl_iterate_phdr, i.e. since Solaris 11.
29257 case "$target" in
29258 *-*-solaris2.1[1-9]*)
29259 case "$target" in
29260 i?86-*-* | x86_64-*-*)
29261 if echo "$ld_ver" | grep GNU > /dev/null; then
29262 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
29263 gcc_cv_ld_as_needed=no
29264 fi
29265 ;;
29266 esac
29267 ;;
29268 *-*-solaris2*)
29269 gcc_cv_ld_as_needed=no
29270 ;;
29271 esac
29272
29273 fi
29274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
29275 $as_echo "$gcc_cv_ld_as_needed" >&6; }
29276 if test x"$gcc_cv_ld_as_needed" = xyes; then
29277
29278 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
29279
29280
29281 cat >>confdefs.h <<_ACEOF
29282 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
29283 _ACEOF
29284
29285
29286 cat >>confdefs.h <<_ACEOF
29287 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
29288 _ACEOF
29289
29290 fi
29291
29292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
29293 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
29294 saved_LDFLAGS="$LDFLAGS"
29295 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
29296 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
29297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29298 /* end confdefs.h. */
29299 int main(void) {return 0;}
29300 _ACEOF
29301 if ac_fn_cxx_try_link "$LINENO"; then :
29302 gcc_cv_ld_clearcap=yes; break
29303 else
29304 gcc_cv_ld_clearcap=no
29305 fi
29306 rm -f core conftest.err conftest.$ac_objext \
29307 conftest$ac_exeext conftest.$ac_ext
29308 done
29309 LDFLAGS="$saved_LDFLAGS"
29310 if test "x$gcc_cv_ld_clearcap" = xyes; then
29311
29312 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29313
29314 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29315
29316 fi
29317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29318 $as_echo "$gcc_cv_ld_clearcap" >&6; }
29319
29320 case "$target" in
29321 powerpc*-*-*)
29322 case "$target" in
29323 *le-*-linux*)
29324 emul_name="-melf32lppc"
29325 ;;
29326 *)
29327 emul_name="-melf32ppc"
29328 ;;
29329 esac
29330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29331 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29332 if ${gcc_cv_ld_ppc_attr+:} false; then :
29333 $as_echo_n "(cached) " >&6
29334 else
29335 gcc_cv_ld_ppc_attr=no
29336 if test x"$ld_is_gold" = xyes; then
29337 gcc_cv_ld_ppc_attr=yes
29338 elif test $in_tree_ld = yes ; then
29339 if test "$gcc_cv_gld_major_version" -eq 2 \
29340 -a "$gcc_cv_gld_minor_version" -ge 28 \
29341 -o "$gcc_cv_gld_major_version" -gt 2; then
29342 gcc_cv_ld_ppc_attr=yes
29343 fi
29344 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29345 # check that merging the long double .gnu_attribute doesn't warn
29346 cat > conftest1.s <<EOF
29347 .gnu_attribute 4,1
29348 EOF
29349 cat > conftest2.s <<EOF
29350 .gnu_attribute 4,9
29351 EOF
29352 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29353 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29354 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
29355 && test ! -s conftest.err; then
29356 gcc_cv_ld_ppc_attr=yes
29357 fi
29358 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29359 fi
29360
29361 fi
29362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29363 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29364 if test x$gcc_cv_ld_ppc_attr = xyes; then
29365
29366 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29367
29368 fi
29369 ;;
29370 esac
29371
29372 case "$target:$tm_file" in
29373 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
29374 case "$target" in
29375 *le-*-linux*)
29376 emul_name="-melf64lppc"
29377 ;;
29378 *-*-linux*)
29379 emul_name="-melf64ppc"
29380 ;;
29381 *-*-freebsd*)
29382 emul_name="-melf64ppc_fbsd"
29383 ;;
29384 esac
29385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29386 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29387 if ${gcc_cv_ld_no_dot_syms+:} false; then :
29388 $as_echo_n "(cached) " >&6
29389 else
29390 gcc_cv_ld_no_dot_syms=no
29391 if test x"$ld_is_gold" = xyes; then
29392 gcc_cv_ld_no_dot_syms=yes
29393 elif test $in_tree_ld = yes ; then
29394 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
29395 gcc_cv_ld_no_dot_syms=yes
29396 fi
29397 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29398 cat > conftest1.s <<EOF
29399 .text
29400 bl .foo
29401 EOF
29402 cat > conftest2.s <<EOF
29403 .section ".opd","aw"
29404 .align 3
29405 .globl foo
29406 .type foo,@function
29407 foo:
29408 .quad .LEfoo,.TOC.@tocbase,0
29409 .text
29410 .LEfoo:
29411 blr
29412 .size foo,.-.LEfoo
29413 EOF
29414 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29415 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29416 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
29417 gcc_cv_ld_no_dot_syms=yes
29418 fi
29419 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29420 fi
29421
29422 fi
29423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29424 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29425 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
29426
29427 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29428
29429 fi
29430
29431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29432 $as_echo_n "checking linker large toc support... " >&6; }
29433 if ${gcc_cv_ld_large_toc+:} false; then :
29434 $as_echo_n "(cached) " >&6
29435 else
29436 gcc_cv_ld_large_toc=no
29437 if test x"$ld_is_gold" = xyes; then
29438 gcc_cv_ld_large_toc=yes
29439 elif test $in_tree_ld = yes ; then
29440 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
29441 gcc_cv_ld_large_toc=yes
29442 fi
29443 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29444 cat > conftest.s <<EOF
29445 .section ".tbss","awT",@nobits
29446 .align 3
29447 ie0: .space 8
29448 .global _start
29449 .text
29450 _start:
29451 addis 9,13,ie0@got@tprel@ha
29452 ld 9,ie0@got@tprel@l(9)
29453 EOF
29454 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29455 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
29456 gcc_cv_ld_large_toc=yes
29457 fi
29458 rm -f conftest conftest.o conftest.s
29459 fi
29460
29461 fi
29462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29463 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29464 if test x"$gcc_cv_ld_large_toc" = xyes; then
29465
29466 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29467
29468 fi
29469
29470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29471 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29472 if ${gcc_cv_ld_toc_align+:} false; then :
29473 $as_echo_n "(cached) " >&6
29474 else
29475 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
29476 cat > conftest.s <<EOF
29477 .global _start
29478 .text
29479 _start:
29480 addis 9,2,x@got@ha
29481 .section .data.rel.ro,"aw",@progbits
29482 .p2align 16
29483 .space 32768
29484 x: .quad .TOC.
29485 EOF
29486 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29487 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
29488 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)) }'`
29489 fi
29490 rm -f conftest conftest.o conftest.s
29491 fi
29492
29493 fi
29494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29495 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29496 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29497
29498 cat >>confdefs.h <<_ACEOF
29499 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29500 _ACEOF
29501
29502 fi
29503 ;;
29504 esac
29505
29506 case "$target" in
29507 *-*-aix*)
29508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29509 $as_echo_n "checking linker large toc support... " >&6; }
29510 if ${gcc_cv_ld_large_toc+:} false; then :
29511 $as_echo_n "(cached) " >&6
29512 else
29513 gcc_cv_ld_large_toc=no
29514 if test x$gcc_cv_as != x ; then
29515 cat > conftest.s <<EOF
29516 .toc
29517 LC..1:
29518 .tc a[TC],a[RW]
29519 .extern a[RW]
29520 .csect .text[PR]
29521 .largetoctest:
29522 addis 9,LC..1@u(2)
29523 ld 3,LC..1@l(9)
29524 EOF
29525 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29526 gcc_cv_ld_large_toc=yes
29527 fi
29528 rm -f conftest conftest.o conftest.s
29529 fi
29530
29531 fi
29532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29533 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29534 if test x"$gcc_cv_ld_large_toc" = xyes; then
29535
29536 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29537
29538 fi
29539 ;;
29540 esac
29541
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29543 $as_echo_n "checking linker --build-id support... " >&6; }
29544 if ${gcc_cv_ld_buildid+:} false; then :
29545 $as_echo_n "(cached) " >&6
29546 else
29547 gcc_cv_ld_buildid=no
29548 if test $in_tree_ld = yes ; then
29549 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29550 "$gcc_cv_gld_minor_version" -ge 18 -o \
29551 "$gcc_cv_gld_major_version" -gt 2 \
29552 && test $in_tree_ld_is_elf = yes; then
29553 gcc_cv_ld_buildid=yes
29554 fi
29555 elif test x$gcc_cv_ld != x; then
29556 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29557 gcc_cv_ld_buildid=yes
29558 fi
29559 fi
29560 fi
29561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29562 $as_echo "$gcc_cv_ld_buildid" >&6; }
29563 if test x"$gcc_cv_ld_buildid" = xyes; then
29564
29565 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29566
29567 fi
29568
29569 # Check whether --enable-linker-build-id was given.
29570 if test "${enable_linker_build_id+set}" = set; then :
29571 enableval=$enable_linker_build_id;
29572 else
29573 enable_linker_build_id=no
29574 fi
29575
29576
29577 if test x"$enable_linker_build_id" = xyes; then
29578 if test x"$gcc_cv_ld_buildid" = xyes; then
29579
29580 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29581
29582 else
29583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29584 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29585 fi
29586 fi
29587
29588 # In binutils 2.21, GNU ld gained support for new emulations fully
29589 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29591 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29592 if ${gcc_cv_ld_sol2_emulation+:} false; then :
29593 $as_echo_n "(cached) " >&6
29594 else
29595 gcc_cv_ld_sol2_emulation=no
29596 if test $in_tree_ld = yes ; then
29597 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29598 "$gcc_cv_gld_minor_version" -ge 21 -o \
29599 "$gcc_cv_gld_major_version" -gt 2 \
29600 && test $in_tree_ld_is_elf = yes; then
29601 gcc_cv_ld_sol2_emulation=yes
29602 fi
29603 elif test x$gcc_cv_ld != x; then
29604 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29605 grep _sol2 > /dev/null; then
29606 gcc_cv_ld_sol2_emulation=yes
29607 fi
29608 fi
29609 fi
29610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29611 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29612 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29613
29614 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29615
29616 fi
29617
29618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29619 $as_echo_n "checking linker --sysroot support... " >&6; }
29620 if ${gcc_cv_ld_sysroot+:} false; then :
29621 $as_echo_n "(cached) " >&6
29622 else
29623 gcc_cv_ld_sysroot=no
29624 if test $in_tree_ld = yes ; then
29625 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
29626 gcc_cv_ld_sysroot=yes
29627 fi
29628 elif test x$gcc_cv_ld != x; then
29629 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29630 gcc_cv_ld_sysroot=yes
29631 fi
29632 fi
29633 fi
29634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29635 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29636 if test x"$gcc_cv_ld_sysroot" = xyes; then
29637
29638 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29639
29640 fi
29641
29642 case $target in
29643 *-*-solaris2*)
29644 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29646 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29647 if ${gcc_cv_solaris_crts+:} false; then :
29648 $as_echo_n "(cached) " >&6
29649 else
29650 gcc_cv_solaris_crts=no
29651 if test x$host != x$target; then
29652 if test "x$with_sysroot" = xyes; then
29653 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29654 else
29655 target_sysroot="${with_sysroot}"
29656 fi
29657 fi
29658 target_libdir="$target_sysroot/usr/lib"
29659 # At the time they were added, gcrt1.o became a symlink for backwards
29660 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29661 case $target in
29662 i?86-*-solaris2* | x86_64-*-solaris2*)
29663 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29664 ;;
29665 sparc*-*-solaris2*)
29666 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29667 ;;
29668 esac
29669 fi
29670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29671 $as_echo "$gcc_cv_solaris_crts" >&6; }
29672 ;;
29673 esac
29674 if test x$gcc_cv_solaris_crts = xyes; then
29675
29676 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29677
29678 fi
29679
29680 # Check whether --enable-libssp was given.
29681 if test "${enable_libssp+set}" = set; then :
29682 enableval=$enable_libssp; case "${enableval}" in
29683 yes|no)
29684 ;;
29685 *)
29686 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
29687 ;;
29688 esac
29689 fi
29690
29691
29692 # Test for stack protector support in target C library.
29693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29694 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29695 if ${gcc_cv_libc_provides_ssp+:} false; then :
29696 $as_echo_n "(cached) " >&6
29697 else
29698 gcc_cv_libc_provides_ssp=no
29699 if test "x$enable_libssp" = "xno"; then
29700 gcc_cv_libc_provides_ssp=yes
29701 elif test "x$enable_libssp" = "xyes"; then
29702 gcc_cv_libc_provides_ssp=no
29703 else
29704 case "$target" in
29705 *-*-musl*)
29706 # All versions of musl provide stack protector
29707 gcc_cv_libc_provides_ssp=yes;;
29708 *-*-linux* | *-*-kfreebsd*-gnu)
29709 # glibc 2.4 and later provides __stack_chk_fail and
29710 # either __stack_chk_guard, or TLS access to stack guard canary.
29711
29712 if test $glibc_version_major -gt 2 \
29713 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29714 gcc_cv_libc_provides_ssp=yes
29715 else
29716
29717 if test -f $target_header_dir/features.h \
29718 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29719 $target_header_dir/features.h > /dev/null; then
29720 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29721 $target_header_dir/features.h > /dev/null && \
29722 test -f $target_header_dir/bits/uClibc_config.h && \
29723 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29724 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29725 gcc_cv_libc_provides_ssp=yes
29726 fi
29727 # all versions of Bionic support stack protector
29728 elif test -f $target_header_dir/sys/cdefs.h \
29729 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29730 $target_header_dir/sys/cdefs.h > /dev/null; then
29731 gcc_cv_libc_provides_ssp=yes
29732 fi
29733 fi
29734 ;;
29735 *-*-gnu*)
29736 # Avoid complicated tests (see
29737 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29738 # simply assert that glibc does provide this, which is true for all
29739 # realistically usable GNU/Hurd configurations.
29740 # All supported versions of musl provide it as well
29741 gcc_cv_libc_provides_ssp=yes;;
29742 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29743 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29744 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
29745 gcc_cv_libc_provides_ssp=yes
29746 else
29747 echo "no __stack_chk_fail on this target"
29748 fi
29749
29750 ;;
29751 *) gcc_cv_libc_provides_ssp=no ;;
29752 esac
29753 fi
29754 fi
29755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29756 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29757
29758 if test x$gcc_cv_libc_provides_ssp = xyes; then
29759
29760 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29761
29762 fi
29763
29764 # Check whether --enable-default-ssp was given.
29765 # Check whether --enable-default-ssp was given.
29766 if test "${enable_default_ssp+set}" = set; then :
29767 enableval=$enable_default_ssp;
29768 if test x$gcc_cv_libc_provides_ssp = xyes; then
29769 case "$target" in
29770 ia64*-*-*) enable_default_ssp=no ;;
29771 *) enable_default_ssp=$enableval ;;
29772 esac
29773 else
29774 enable_default_ssp=no
29775 fi
29776 else
29777 enable_default_ssp=no
29778 fi
29779
29780 if test x$enable_default_ssp = xyes ; then
29781
29782 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29783
29784 fi
29785
29786
29787 # Test for <sys/sdt.h> on the target.
29788
29789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29790 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29791 have_sys_sdt_h=no
29792 if test -f $target_header_dir/sys/sdt.h; then
29793 have_sys_sdt_h=yes
29794
29795 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29796
29797 fi
29798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29799 $as_echo "$have_sys_sdt_h" >&6; }
29800
29801 # Check if TFmode long double should be used by default or not.
29802 # Some glibc targets used DFmode long double, but with glibc 2.4
29803 # and later they can use TFmode.
29804 case "$target" in
29805 powerpc*-*-linux* | \
29806 sparc*-*-linux* | \
29807 s390*-*-linux* | \
29808 alpha*-*-linux*)
29809
29810 # Check whether --with-long-double-128 was given.
29811 if test "${with_long_double_128+set}" = set; then :
29812 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29813 else
29814
29815 case "$target" in
29816 s390*-*-linux-musl*)
29817 gcc_cv_target_ldbl128=yes
29818 ;;
29819 powerpc*-*-linux-musl*)
29820 gcc_cv_target_ldbl128=no
29821 ;;
29822 *)
29823
29824 if test $glibc_version_major -gt 2 \
29825 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29826 gcc_cv_target_ldbl128=yes
29827 else
29828
29829 gcc_cv_target_ldbl128=no
29830 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29831 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29832 && gcc_cv_target_ldbl128=yes
29833
29834 fi
29835
29836 ;;
29837 esac
29838
29839 fi
29840
29841 ;;
29842 esac
29843 if test x$gcc_cv_target_ldbl128 = xyes; then
29844
29845 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29846
29847 fi
29848
29849 # Check if TFmode long double target should use the IBM extended double or IEEE
29850 # 128-bit floating point formats if long doubles are 128-bits long. The long
29851 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29852 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29853 # libgcc.
29854
29855 # Check whether --with-long-double-format was given.
29856 if test "${with_long_double_format+set}" = set; then :
29857 withval=$with_long_double_format;
29858 case "$target:$with_long_double_format" in
29859 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29860 :
29861 ;;
29862 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29863 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29864 case "$with_cpu" in
29865 power7 | power8 | power9 | power1*)
29866 :
29867 ;;
29868 *)
29869 as_fn_error $? "Configuration option --with-long-double-format is only \
29870 supported if the default cpu is power7 or newer" "$LINENO" 5
29871 with_long_double_format=""
29872 ;;
29873 esac
29874 ;;
29875 xpowerpc64*-*-linux*:*)
29876 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29877 with_long_double_format=""
29878 ;;
29879 *)
29880 as_fn_error $? "Configure option --with-long-double-format is only supported \
29881 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29882 with_long_double_format=""
29883 ;;
29884 esac
29885 fi
29886
29887
29888 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29889 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29890 gcc_cv_libc_provides_hwcap_in_tcb=no
29891 case "$target" in
29892 powerpc*-*-linux*)
29893
29894 if test $glibc_version_major -gt 2 \
29895 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29896 gcc_cv_libc_provides_hwcap_in_tcb=yes
29897 fi
29898 ;;
29899 esac
29900 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29901
29902 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29903
29904 fi
29905
29906 # Check if the target LIBC handles PT_GNU_STACK.
29907 gcc_cv_libc_gnustack=unknown
29908 case "$target" in
29909 mips*-*-linux*)
29910
29911 if test $glibc_version_major -gt 2 \
29912 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
29913 gcc_cv_libc_gnustack=yes
29914 fi
29915 ;;
29916 esac
29917 if test x$gcc_cv_libc_gnustack = xyes; then
29918
29919 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
29920
29921 fi
29922
29923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29924 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29925 gcc_cv_target_dl_iterate_phdr=unknown
29926 case "$target" in
29927 *-*-solaris2*)
29928 # <link.h> needs both a dl_iterate_phdr declaration and support for
29929 # compilation with largefile support.
29930 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29931 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29932 gcc_cv_target_dl_iterate_phdr=yes
29933 else
29934 gcc_cv_target_dl_iterate_phdr=no
29935 fi
29936 ;;
29937 *-*-dragonfly* | *-*-freebsd*)
29938 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29939 gcc_cv_target_dl_iterate_phdr=yes
29940 else
29941 gcc_cv_target_dl_iterate_phdr=no
29942 fi
29943 ;;
29944 *-linux-musl*)
29945 gcc_cv_target_dl_iterate_phdr=yes
29946 ;;
29947 esac
29948
29949 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29950
29951 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29952
29953 fi
29954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29955 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29956
29957 # We no longer support different GC mechanisms. Emit an error if
29958 # the user configures with --with-gc.
29959
29960 # Check whether --with-gc was given.
29961 if test "${with_gc+set}" = set; then :
29962 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29963 fi
29964
29965
29966 # Libraries to use on the host. This will normally be set by the top
29967 # level Makefile. Here we simply capture the value for our Makefile.
29968 if test -z "${HOST_LIBS+set}"; then
29969 HOST_LIBS=
29970 fi
29971
29972
29973 # Use the system's zlib library.
29974
29975 # Use the system's zlib library.
29976 zlibdir="-L\$(top_builddir)/../zlib"
29977 zlibinc="-I\$(top_srcdir)/../zlib"
29978
29979 # Check whether --with-system-zlib was given.
29980 if test "${with_system_zlib+set}" = set; then :
29981 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29982 zlibdir=
29983 zlibinc=
29984 fi
29985
29986 fi
29987
29988
29989
29990
29991
29992
29993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29994 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29995 # Check whether --enable-maintainer-mode was given.
29996 if test "${enable_maintainer_mode+set}" = set; then :
29997 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29998 else
29999 maintainer_mode=no
30000 fi
30001
30002
30003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
30004 $as_echo "$maintainer_mode" >&6; }
30005
30006 if test "$maintainer_mode" = "yes"; then
30007 MAINT=''
30008 else
30009 MAINT='#'
30010 fi
30011
30012
30013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
30014 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
30015 # Check whether --enable-link-mutex was given.
30016 if test "${enable_link_mutex+set}" = set; then :
30017 enableval=$enable_link_mutex; do_link_mutex=$enableval
30018 else
30019 do_link_mutex=no
30020 fi
30021
30022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
30023 $as_echo "$do_link_mutex" >&6; }
30024
30025 if test "$do_link_mutex" = "yes"; then
30026 DO_LINK_MUTEX=true
30027 else
30028 DO_LINK_MUTEX=false
30029 fi
30030
30031
30032 # --------------
30033 # Language hooks
30034 # --------------
30035
30036 # Make empty files to contain the specs and options for each language.
30037 # Then add #include lines to for a compiler that has specs and/or options.
30038
30039 subdirs=
30040 lang_opt_files=
30041 lang_specs_files=
30042 lang_tree_files=
30043 # These (without "all_") are set in each config-lang.in.
30044 # `language' must be a single word so is spelled singularly.
30045 all_languages=
30046 all_compilers=
30047 all_outputs='Makefile'
30048 # List of language configure and makefile fragments.
30049 all_lang_configurefrags=
30050 all_lang_makefrags=
30051 # Additional files for gengtype
30052 all_gtfiles="$target_gtfiles"
30053
30054 # These are the languages that are set in --enable-languages,
30055 # and are available in the GCC tree.
30056 all_selected_languages=
30057
30058 # Add the language fragments.
30059 # Languages are added via two mechanisms. Some information must be
30060 # recorded in makefile variables, these are defined in config-lang.in.
30061 # We accumulate them and plug them into the main Makefile.
30062 # The other mechanism is a set of hooks for each of the main targets
30063 # like `clean', `install', etc.
30064
30065 language_hooks="Make-hooks"
30066
30067 for lang in ${srcdir}/*/config-lang.in
30068 do
30069 test "$lang" = "${srcdir}/*/config-lang.in" && continue
30070
30071 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
30072 if test "x$lang_alias" = x
30073 then
30074 echo "$lang doesn't set \$language." 1>&2
30075 exit 1
30076 fi
30077 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
30078 subdirs="$subdirs $subdir"
30079
30080 # $gcc_subdir is where the gcc integration files are to be found
30081 # for a language, both for internal compiler purposes (compiler
30082 # sources implementing front-end to GCC tree converters), and for
30083 # build infrastructure purposes (Make-lang.in, etc.)
30084 #
30085 # This will be <subdir> (relative to $srcdir) if a line like
30086 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
30087 # is found in <langdir>/config-lang.in, and will remain <langdir>
30088 # otherwise.
30089 #
30090 # Except for the language alias (fetched above), the regular
30091 # "config-lang.in" contents are always retrieved from $gcc_subdir,
30092 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
30093 # only this and the language alias.
30094
30095 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
30096 if [ "$gcc_subdir" = "" ]; then
30097 gcc_subdir="$subdir"
30098 fi
30099
30100 case ",$enable_languages," in
30101 *,$lang_alias,*)
30102 all_selected_languages="$all_selected_languages $lang_alias"
30103 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
30104 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
30105 fi
30106 ;;
30107 esac
30108
30109 language=
30110 boot_language=
30111 compilers=
30112 outputs=
30113 gtfiles=
30114 subdir_requires=
30115 . ${srcdir}/$gcc_subdir/config-lang.in
30116 if test "x$language" = x
30117 then
30118 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
30119 exit 1
30120 fi
30121
30122 ok=:
30123 case ",$enable_languages," in
30124 *,$lang_alias,*) ;;
30125 *)
30126 for i in $subdir_requires; do
30127 test -f "${srcdir}/$i/config-lang.in" && continue
30128 ok=false
30129 break
30130 done
30131 ;;
30132 esac
30133 $ok || continue
30134
30135 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
30136 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
30137 if test -f $srcdir/$gcc_subdir/lang.opt; then
30138 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
30139 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
30140 fi
30141 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
30142 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
30143 fi
30144 all_languages="$all_languages $language"
30145 all_compilers="$all_compilers $compilers"
30146 all_outputs="$all_outputs $outputs"
30147 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
30148 case ",$enable_languages," in
30149 *,lto,*)
30150
30151 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
30152
30153 enable_lto=yes
30154
30155 ;;
30156 *) ;;
30157 esac
30158 done
30159
30160 check_languages=
30161 for language in $all_selected_languages
30162 do
30163 check_languages="$check_languages check-$language"
30164 done
30165
30166 selftest_languages=
30167 for language in $all_selected_languages
30168 do
30169 selftest_languages="$selftest_languages selftest-$language"
30170 done
30171
30172 # We link each language in with a set of hooks, reached indirectly via
30173 # lang.${target}. Only do so for selected languages.
30174
30175 rm -f Make-hooks
30176 touch Make-hooks
30177 target_list="all.cross start.encap rest.encap tags \
30178 install-common install-man install-info install-pdf install-html dvi \
30179 pdf html uninstall info man srcextra srcman srcinfo \
30180 mostlyclean clean distclean maintainer-clean install-plugin"
30181
30182 for t in $target_list
30183 do
30184 x=
30185 for lang in $all_selected_languages
30186 do
30187 x="$x $lang.$t"
30188 done
30189 echo "lang.$t: $x" >> Make-hooks
30190 done
30191
30192 # --------
30193 # Option include files
30194 # --------
30195
30196 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
30197 option_includes="option-includes.mk"
30198
30199
30200 # --------
30201 # UNSORTED
30202 # --------
30203
30204 # Create .gdbinit.
30205
30206 echo "dir ." > .gdbinit
30207 echo "dir ${srcdir}" >> .gdbinit
30208 if test x$gdb_needs_out_file_path = xyes
30209 then
30210 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
30211 fi
30212 if test "x$subdirs" != x; then
30213 for s in $subdirs
30214 do
30215 echo "dir ${srcdir}/$s" >> .gdbinit
30216 done
30217 fi
30218 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
30219 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
30220
30221 # Put a breakpoint on __asan_report_error to help with debugging buffer
30222 # overflow.
30223 case "$CFLAGS" in
30224 *-fsanitize=address*)
30225 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
30226 ;;
30227 esac
30228
30229 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
30230
30231
30232
30233 # Find a directory in which to install a shared libgcc.
30234
30235 # Check whether --enable-version-specific-runtime-libs was given.
30236 if test "${enable_version_specific_runtime_libs+set}" = set; then :
30237 enableval=$enable_version_specific_runtime_libs;
30238 fi
30239
30240
30241 # Substitute configuration variables
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
30275
30276
30277
30278
30279
30280
30281
30282
30283
30284
30285
30286
30287
30288
30289
30290
30291
30292
30293
30294
30295
30296
30297
30298
30299
30300
30301
30302
30303
30304
30305
30306
30307
30308
30309 # Echo link setup.
30310 if test x${build} = x${host} ; then
30311 if test x${host} = x${target} ; then
30312 echo "Links are now set up to build a native compiler for ${target}." 1>&2
30313 else
30314 echo "Links are now set up to build a cross-compiler" 1>&2
30315 echo " from ${host} to ${target}." 1>&2
30316 fi
30317 else
30318 if test x${host} = x${target} ; then
30319 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
30320 echo " for ${target}." 1>&2
30321 else
30322 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
30323 echo " from ${host} to ${target}." 1>&2
30324 fi
30325 fi
30326
30327
30328
30329
30330
30331
30332 if test "x${ISLLIBS}" != "x" ; then
30333
30334 $as_echo "#define HAVE_isl 1" >>confdefs.h
30335
30336 fi
30337
30338 # Check for plugin support
30339 # Check whether --enable-plugin was given.
30340 if test "${enable_plugin+set}" = set; then :
30341 enableval=$enable_plugin; enable_plugin=$enableval
30342 else
30343 enable_plugin=yes; default_plugin=yes
30344 fi
30345
30346
30347 pluginlibs=
30348 plugin_check=yes
30349
30350 case "${host}" in
30351 *-*-mingw*)
30352 # Since plugin support under MinGW is not as straightforward as on
30353 # other platforms (e.g., we have to link import library, etc), we
30354 # only enable it if explicitly requested.
30355 if test x"$default_plugin" = x"yes"; then
30356 enable_plugin=no
30357 elif test x"$enable_plugin" = x"yes"; then
30358 # Use make's target variable to derive import library name.
30359 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30360 plugin_check=no
30361 fi
30362 ;;
30363 *-*-darwin*)
30364 if test x$build = x$host; then
30365 export_sym_check="nm${exeext} -g"
30366 elif test x$host = x$target; then
30367 export_sym_check="$gcc_cv_nm -g"
30368 else
30369 export_sym_check=
30370 fi
30371 ;;
30372 *)
30373 if test x$build = x$host; then
30374 export_sym_check="objdump${exeext} -T"
30375 elif test x$host = x$target; then
30376 export_sym_check="$gcc_cv_objdump -T"
30377 else
30378 export_sym_check=
30379 fi
30380 ;;
30381 esac
30382
30383 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
30384
30385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30386 $as_echo_n "checking for exported symbols... " >&6; }
30387 if test "x$export_sym_check" != x; then
30388 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30389 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30390 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30391 : # No need to use a flag
30392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30393 $as_echo "yes" >&6; }
30394 else
30395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30396 $as_echo "yes" >&6; }
30397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30398 $as_echo_n "checking for -rdynamic... " >&6; }
30399 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30400 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30401 plugin_rdynamic=yes
30402 pluginlibs="-rdynamic"
30403 else
30404 plugin_rdynamic=no
30405 enable_plugin=no
30406 fi
30407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30408 $as_echo "$plugin_rdynamic" >&6; }
30409 fi
30410 else
30411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30412 $as_echo "unable to check" >&6; }
30413 fi
30414
30415 # Check -ldl
30416 saved_LIBS="$LIBS"
30417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30418 $as_echo_n "checking for library containing dlopen... " >&6; }
30419 if ${ac_cv_search_dlopen+:} false; then :
30420 $as_echo_n "(cached) " >&6
30421 else
30422 ac_func_search_save_LIBS=$LIBS
30423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30424 /* end confdefs.h. */
30425
30426 /* Override any GCC internal prototype to avoid an error.
30427 Use char because int might match the return type of a GCC
30428 builtin and then its argument prototype would still apply. */
30429 #ifdef __cplusplus
30430 extern "C"
30431 #endif
30432 char dlopen ();
30433 int
30434 main ()
30435 {
30436 return dlopen ();
30437 ;
30438 return 0;
30439 }
30440 _ACEOF
30441 for ac_lib in '' dl; do
30442 if test -z "$ac_lib"; then
30443 ac_res="none required"
30444 else
30445 ac_res=-l$ac_lib
30446 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30447 fi
30448 if ac_fn_cxx_try_link "$LINENO"; then :
30449 ac_cv_search_dlopen=$ac_res
30450 fi
30451 rm -f core conftest.err conftest.$ac_objext \
30452 conftest$ac_exeext
30453 if ${ac_cv_search_dlopen+:} false; then :
30454 break
30455 fi
30456 done
30457 if ${ac_cv_search_dlopen+:} false; then :
30458
30459 else
30460 ac_cv_search_dlopen=no
30461 fi
30462 rm conftest.$ac_ext
30463 LIBS=$ac_func_search_save_LIBS
30464 fi
30465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30466 $as_echo "$ac_cv_search_dlopen" >&6; }
30467 ac_res=$ac_cv_search_dlopen
30468 if test "$ac_res" != no; then :
30469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30470
30471 fi
30472
30473 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
30474 pluginlibs="$pluginlibs -ldl"
30475 fi
30476 LIBS="$saved_LIBS"
30477
30478 # Check that we can build shared objects with -fPIC -shared
30479 saved_LDFLAGS="$LDFLAGS"
30480 saved_CFLAGS="$CFLAGS"
30481 case "${host}" in
30482 *-*-darwin*)
30483 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30484 CFLAGS="$CFLAGS -fPIC"
30485 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
30486 ;;
30487 *)
30488 CFLAGS="$CFLAGS -fPIC"
30489 LDFLAGS="$LDFLAGS -fPIC -shared"
30490 ;;
30491 esac
30492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30493 $as_echo_n "checking for -fPIC -shared... " >&6; }
30494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30495 /* end confdefs.h. */
30496 extern int X;
30497 int
30498 main ()
30499 {
30500 return X == 0;
30501 ;
30502 return 0;
30503 }
30504 _ACEOF
30505 if ac_fn_cxx_try_link "$LINENO"; then :
30506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30507 $as_echo "yes" >&6; }; have_pic_shared=yes
30508 else
30509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30510 $as_echo "no" >&6; }; have_pic_shared=no
30511 fi
30512 rm -f core conftest.err conftest.$ac_objext \
30513 conftest$ac_exeext conftest.$ac_ext
30514 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
30515 pluginlibs=
30516 enable_plugin=no
30517 fi
30518 LDFLAGS="$saved_LDFLAGS"
30519 CFLAGS="$saved_CFLAGS"
30520
30521 # If plugin support had been requested but not available, fail.
30522 if test x"$enable_plugin" = x"no" ; then
30523 if test x"$default_plugin" != x"yes"; then
30524 as_fn_error $? "
30525 Building GCC with plugin support requires a host that supports
30526 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30527 fi
30528 fi
30529 fi
30530
30531
30532
30533 if test x"$enable_plugin" = x"yes"; then
30534
30535 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30536
30537 fi
30538
30539
30540 # Enable --enable-host-shared
30541 # Check whether --enable-host-shared was given.
30542 if test "${enable_host_shared+set}" = set; then :
30543 enableval=$enable_host_shared; PICFLAG=-fPIC
30544 else
30545 PICFLAG=
30546 fi
30547
30548
30549
30550
30551
30552 # Check whether --enable-libquadmath-support was given.
30553 if test "${enable_libquadmath_support+set}" = set; then :
30554 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30555 else
30556 ENABLE_LIBQUADMATH_SUPPORT=yes
30557 fi
30558
30559 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30560
30561 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30562
30563 fi
30564
30565
30566 # Specify what hash style to use by default.
30567
30568 # Check whether --with-linker-hash-style was given.
30569 if test "${with_linker_hash_style+set}" = set; then :
30570 withval=$with_linker_hash_style; case x"$withval" in
30571 xsysv)
30572 LINKER_HASH_STYLE=sysv
30573 ;;
30574 xgnu)
30575 LINKER_HASH_STYLE=gnu
30576 ;;
30577 xboth)
30578 LINKER_HASH_STYLE=both
30579 ;;
30580 *)
30581 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30582 ;;
30583 esac
30584 else
30585 LINKER_HASH_STYLE=''
30586 fi
30587
30588 if test x"${LINKER_HASH_STYLE}" != x; then
30589
30590 cat >>confdefs.h <<_ACEOF
30591 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30592 _ACEOF
30593
30594 fi
30595
30596 # Specify what should be the default of -fdiagnostics-color option.
30597
30598 # Check whether --with-diagnostics-color was given.
30599 if test "${with_diagnostics_color+set}" = set; then :
30600 withval=$with_diagnostics_color; case x"$withval" in
30601 xnever)
30602 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30603 ;;
30604 xauto)
30605 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30606 ;;
30607 xauto-if-env)
30608 DIAGNOSTICS_COLOR_DEFAULT=-1
30609 ;;
30610 xalways)
30611 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30612 ;;
30613 *)
30614 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30615 ;;
30616 esac
30617 else
30618 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30619 fi
30620
30621
30622 cat >>confdefs.h <<_ACEOF
30623 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30624 _ACEOF
30625
30626
30627 # Specify what should be the default of -fdiagnostics-urls option.
30628
30629 # Check whether --with-diagnostics-urls was given.
30630 if test "${with_diagnostics_urls+set}" = set; then :
30631 withval=$with_diagnostics_urls; case x"$withval" in
30632 xnever)
30633 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
30634 ;;
30635 xauto)
30636 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
30637 ;;
30638 xauto-if-env)
30639 DIAGNOSTICS_URLS_DEFAULT=-1
30640 ;;
30641 xalways)
30642 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
30643 ;;
30644 *)
30645 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
30646 ;;
30647 esac
30648 else
30649 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
30650 fi
30651
30652
30653 cat >>confdefs.h <<_ACEOF
30654 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
30655 _ACEOF
30656
30657
30658 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30659 # of jit/jit-playback.c.
30660 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30661 echo "gcc_driver_version: ${gcc_driver_version}"
30662 cat > gcc-driver-name.h <<EOF
30663 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30664 EOF
30665
30666 # Check whether --enable-default-pie was given.
30667 # Check whether --enable-default-pie was given.
30668 if test "${enable_default_pie+set}" = set; then :
30669 enableval=$enable_default_pie; enable_default_pie=$enableval
30670 else
30671 enable_default_pie=no
30672 fi
30673
30674 if test x$enable_default_pie = xyes ; then
30675
30676 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30677
30678 fi
30679
30680
30681 # Check if -fno-PIE works.
30682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30683 $as_echo_n "checking for -fno-PIE option... " >&6; }
30684 if ${gcc_cv_c_no_fpie+:} false; then :
30685 $as_echo_n "(cached) " >&6
30686 else
30687 saved_CXXFLAGS="$CXXFLAGS"
30688 CXXFLAGS="$CXXFLAGS -fno-PIE"
30689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30690 /* end confdefs.h. */
30691 int main(void) {return 0;}
30692 _ACEOF
30693 if ac_fn_cxx_try_compile "$LINENO"; then :
30694 gcc_cv_c_no_fpie=yes
30695 else
30696 gcc_cv_c_no_fpie=no
30697 fi
30698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30699 CXXFLAGS="$saved_CXXFLAGS"
30700 fi
30701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30702 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30703 if test "$gcc_cv_c_no_fpie" = "yes"; then
30704 NO_PIE_CFLAGS="-fno-PIE"
30705 fi
30706
30707
30708 # Check if -no-pie works.
30709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30710 $as_echo_n "checking for -no-pie option... " >&6; }
30711 if ${gcc_cv_no_pie+:} false; then :
30712 $as_echo_n "(cached) " >&6
30713 else
30714 saved_LDFLAGS="$LDFLAGS"
30715 LDFLAGS="$LDFLAGS -no-pie"
30716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30717 /* end confdefs.h. */
30718 int main(void) {return 0;}
30719 _ACEOF
30720 if ac_fn_cxx_try_link "$LINENO"; then :
30721 gcc_cv_no_pie=yes
30722 else
30723 gcc_cv_no_pie=no
30724 fi
30725 rm -f core conftest.err conftest.$ac_objext \
30726 conftest$ac_exeext conftest.$ac_ext
30727 LDFLAGS="$saved_LDFLAGS"
30728 fi
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30730 $as_echo "$gcc_cv_no_pie" >&6; }
30731 if test "$gcc_cv_no_pie" = "yes"; then
30732 NO_PIE_FLAG="-no-pie"
30733 fi
30734
30735
30736 # Enable Intel CET on Intel CET enabled host if jit is enabled.
30737 # Check whether --enable-cet was given.
30738 if test "${enable_cet+set}" = set; then :
30739 enableval=$enable_cet;
30740 case "$enableval" in
30741 yes|no|auto) ;;
30742 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
30743 esac
30744
30745 else
30746 enable_cet=auto
30747 fi
30748
30749
30750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
30751 $as_echo_n "checking for CET support... " >&6; }
30752
30753 case "$host" in
30754 i[34567]86-*-linux* | x86_64-*-linux*)
30755 may_have_cet=yes
30756 save_CFLAGS="$CFLAGS"
30757 CFLAGS="$CFLAGS -fcf-protection"
30758 case "$enable_cet" in
30759 auto)
30760 # Check if target supports multi-byte NOPs
30761 # and if assembler supports CET insn.
30762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30763 /* end confdefs.h. */
30764
30765 int
30766 main ()
30767 {
30768
30769 #if !defined(__SSE2__)
30770 #error target does not support multi-byte NOPs
30771 #else
30772 asm ("setssbsy");
30773 #endif
30774
30775 ;
30776 return 0;
30777 }
30778 _ACEOF
30779 if ac_fn_cxx_try_compile "$LINENO"; then :
30780 enable_cet=yes
30781 else
30782 enable_cet=no
30783 fi
30784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30785 ;;
30786 yes)
30787 # Check if assembler supports CET.
30788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30789 /* end confdefs.h. */
30790
30791 int
30792 main ()
30793 {
30794 asm ("setssbsy");
30795 ;
30796 return 0;
30797 }
30798 _ACEOF
30799 if ac_fn_cxx_try_compile "$LINENO"; then :
30800
30801 else
30802 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
30803 fi
30804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30805 ;;
30806 esac
30807 CFLAGS="$save_CFLAGS"
30808 ;;
30809 *)
30810 may_have_cet=no
30811 enable_cet=no
30812 ;;
30813 esac
30814
30815 save_CFLAGS="$CFLAGS"
30816 CFLAGS="$CFLAGS -fcf-protection=none"
30817 save_LDFLAGS="$LDFLAGS"
30818 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
30819 if test x$may_have_cet = xyes; then
30820 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
30821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30822 /* end confdefs.h. */
30823
30824 int
30825 main ()
30826 {
30827 return 0;
30828 ;
30829 return 0;
30830 }
30831 _ACEOF
30832 if ac_fn_cxx_try_link "$LINENO"; then :
30833 may_have_cet=yes
30834 else
30835 may_have_cet=no
30836 fi
30837 rm -f core conftest.err conftest.$ac_objext \
30838 conftest$ac_exeext conftest.$ac_ext
30839 fi
30840
30841 if test x$may_have_cet = xyes; then
30842 if test x$cross_compiling = xno; then
30843 if test "$cross_compiling" = yes; then :
30844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30846 as_fn_error $? "cannot run test program while cross compiling
30847 See \`config.log' for more details" "$LINENO" 5; }
30848 else
30849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30850 /* end confdefs.h. */
30851
30852 static void
30853 foo (void)
30854 {
30855 }
30856
30857 static void
30858 __attribute__ ((noinline, noclone))
30859 xxx (void (*f) (void))
30860 {
30861 f ();
30862 }
30863
30864 static void
30865 __attribute__ ((noinline, noclone))
30866 bar (void)
30867 {
30868 xxx (foo);
30869 }
30870
30871 int
30872 main ()
30873 {
30874 bar ();
30875 return 0;
30876 }
30877
30878 _ACEOF
30879 if ac_fn_cxx_try_run "$LINENO"; then :
30880 have_cet=no
30881 else
30882 have_cet=yes
30883 fi
30884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30885 conftest.$ac_objext conftest.beam conftest.$ac_ext
30886 fi
30887
30888 if test x$enable_cet = xno -a x$have_cet = xyes; then
30889 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
30890 fi
30891 fi
30892 else
30893 # Enable CET in cross compiler if possible so that it will run on both
30894 # CET and non-CET hosts.
30895 have_cet=yes
30896 fi
30897 if test x$enable_cet = xyes; then
30898 CET_HOST_FLAGS="-fcf-protection"
30899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30900 $as_echo "yes" >&6; }
30901 else
30902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30903 $as_echo "no" >&6; }
30904 fi
30905 CFLAGS="$save_CFLAGS"
30906 LDFLAGS="$save_LDFLAGS"
30907
30908 case x$enable_languages in
30909 *jit*)
30910 ;;
30911 *)
30912 CET_HOST_FLAGS=
30913 ;;
30914 esac
30915
30916
30917 # Check linker supports '-z bndplt'
30918 ld_bndplt_support=no
30919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30920 $as_echo_n "checking linker -z bndplt option... " >&6; }
30921 if test x"$ld_is_gold" = xno; then
30922 if test $in_tree_ld = yes ; then
30923 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
30924 ld_bndplt_support=yes
30925 fi
30926 elif test x$gcc_cv_ld != x; then
30927 # Check if linker supports -a bndplt option
30928 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30929 ld_bndplt_support=yes
30930 fi
30931 fi
30932 fi
30933 if test x"$ld_bndplt_support" = xyes; then
30934
30935 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30936
30937 fi
30938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30939 $as_echo "$ld_bndplt_support" >&6; }
30940
30941 # Check linker supports '--push-state'/'--pop-state'
30942 ld_pushpopstate_support=no
30943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30944 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30945 if test x"$ld_is_gold" = xno; then
30946 if test $in_tree_ld = yes ; then
30947 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
30948 ld_pushpopstate_support=yes
30949 fi
30950 elif test x$gcc_cv_ld != x; then
30951 # Check if linker supports --push-state/--pop-state options
30952 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30953 ld_pushpopstate_support=yes
30954 fi
30955 fi
30956 fi
30957 if test x"$ld_pushpopstate_support" = xyes; then
30958
30959 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30960
30961 fi
30962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30963 $as_echo "$ld_pushpopstate_support" >&6; }
30964
30965 # Configure the subdirectories
30966 # AC_CONFIG_SUBDIRS($subdirs)
30967
30968 # Create the Makefile
30969 # and configure language subdirectories
30970 ac_config_files="$ac_config_files $all_outputs"
30971
30972
30973 ac_config_commands="$ac_config_commands default"
30974
30975 cat >confcache <<\_ACEOF
30976 # This file is a shell script that caches the results of configure
30977 # tests run on this system so they can be shared between configure
30978 # scripts and configure runs, see configure's option --config-cache.
30979 # It is not useful on other systems. If it contains results you don't
30980 # want to keep, you may remove or edit it.
30981 #
30982 # config.status only pays attention to the cache file if you give it
30983 # the --recheck option to rerun configure.
30984 #
30985 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30986 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30987 # following values.
30988
30989 _ACEOF
30990
30991 # The following way of writing the cache mishandles newlines in values,
30992 # but we know of no workaround that is simple, portable, and efficient.
30993 # So, we kill variables containing newlines.
30994 # Ultrix sh set writes to stderr and can't be redirected directly,
30995 # and sets the high bit in the cache file unless we assign to the vars.
30996 (
30997 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30998 eval ac_val=\$$ac_var
30999 case $ac_val in #(
31000 *${as_nl}*)
31001 case $ac_var in #(
31002 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31003 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31004 esac
31005 case $ac_var in #(
31006 _ | IFS | as_nl) ;; #(
31007 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31008 *) { eval $ac_var=; unset $ac_var;} ;;
31009 esac ;;
31010 esac
31011 done
31012
31013 (set) 2>&1 |
31014 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31015 *${as_nl}ac_space=\ *)
31016 # `set' does not quote correctly, so add quotes: double-quote
31017 # substitution turns \\\\ into \\, and sed turns \\ into \.
31018 sed -n \
31019 "s/'/'\\\\''/g;
31020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31021 ;; #(
31022 *)
31023 # `set' quotes correctly as required by POSIX, so do not add quotes.
31024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31025 ;;
31026 esac |
31027 sort
31028 ) |
31029 sed '
31030 /^ac_cv_env_/b end
31031 t clear
31032 :clear
31033 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31034 t end
31035 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31036 :end' >>confcache
31037 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31038 if test -w "$cache_file"; then
31039 if test "x$cache_file" != "x/dev/null"; then
31040 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31041 $as_echo "$as_me: updating cache $cache_file" >&6;}
31042 if test ! -f "$cache_file" || test -h "$cache_file"; then
31043 cat confcache >"$cache_file"
31044 else
31045 case $cache_file in #(
31046 */* | ?:*)
31047 mv -f confcache "$cache_file"$$ &&
31048 mv -f "$cache_file"$$ "$cache_file" ;; #(
31049 *)
31050 mv -f confcache "$cache_file" ;;
31051 esac
31052 fi
31053 fi
31054 else
31055 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31056 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31057 fi
31058 fi
31059 rm -f confcache
31060
31061 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31062 # Let make expand exec_prefix.
31063 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31064
31065 DEFS=-DHAVE_CONFIG_H
31066
31067 ac_libobjs=
31068 ac_ltlibobjs=
31069 U=
31070 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31071 # 1. Remove the extension, and $U if already installed.
31072 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31073 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31074 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31075 # will be set to the directory where LIBOBJS objects are built.
31076 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31077 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31078 done
31079 LIBOBJS=$ac_libobjs
31080
31081 LTLIBOBJS=$ac_ltlibobjs
31082
31083
31084
31085
31086 : "${CONFIG_STATUS=./config.status}"
31087 ac_write_fail=0
31088 ac_clean_files_save=$ac_clean_files
31089 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31090 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31091 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31092 as_write_fail=0
31093 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31094 #! $SHELL
31095 # Generated by $as_me.
31096 # Run this file to recreate the current configuration.
31097 # Compiler output produced by configure, useful for debugging
31098 # configure, is in config.log if it exists.
31099
31100 debug=false
31101 ac_cs_recheck=false
31102 ac_cs_silent=false
31103
31104 SHELL=\${CONFIG_SHELL-$SHELL}
31105 export SHELL
31106 _ASEOF
31107 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31108 ## -------------------- ##
31109 ## M4sh Initialization. ##
31110 ## -------------------- ##
31111
31112 # Be more Bourne compatible
31113 DUALCASE=1; export DUALCASE # for MKS sh
31114 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31115 emulate sh
31116 NULLCMD=:
31117 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31118 # is contrary to our usage. Disable this feature.
31119 alias -g '${1+"$@"}'='"$@"'
31120 setopt NO_GLOB_SUBST
31121 else
31122 case `(set -o) 2>/dev/null` in #(
31123 *posix*) :
31124 set -o posix ;; #(
31125 *) :
31126 ;;
31127 esac
31128 fi
31129
31130
31131 as_nl='
31132 '
31133 export as_nl
31134 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31135 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31136 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31137 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31138 # Prefer a ksh shell builtin over an external printf program on Solaris,
31139 # but without wasting forks for bash or zsh.
31140 if test -z "$BASH_VERSION$ZSH_VERSION" \
31141 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31142 as_echo='print -r --'
31143 as_echo_n='print -rn --'
31144 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31145 as_echo='printf %s\n'
31146 as_echo_n='printf %s'
31147 else
31148 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31149 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31150 as_echo_n='/usr/ucb/echo -n'
31151 else
31152 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31153 as_echo_n_body='eval
31154 arg=$1;
31155 case $arg in #(
31156 *"$as_nl"*)
31157 expr "X$arg" : "X\\(.*\\)$as_nl";
31158 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31159 esac;
31160 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31161 '
31162 export as_echo_n_body
31163 as_echo_n='sh -c $as_echo_n_body as_echo'
31164 fi
31165 export as_echo_body
31166 as_echo='sh -c $as_echo_body as_echo'
31167 fi
31168
31169 # The user is always right.
31170 if test "${PATH_SEPARATOR+set}" != set; then
31171 PATH_SEPARATOR=:
31172 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31173 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31174 PATH_SEPARATOR=';'
31175 }
31176 fi
31177
31178
31179 # IFS
31180 # We need space, tab and new line, in precisely that order. Quoting is
31181 # there to prevent editors from complaining about space-tab.
31182 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31183 # splitting by setting IFS to empty value.)
31184 IFS=" "" $as_nl"
31185
31186 # Find who we are. Look in the path if we contain no directory separator.
31187 as_myself=
31188 case $0 in #((
31189 *[\\/]* ) as_myself=$0 ;;
31190 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31191 for as_dir in $PATH
31192 do
31193 IFS=$as_save_IFS
31194 test -z "$as_dir" && as_dir=.
31195 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31196 done
31197 IFS=$as_save_IFS
31198
31199 ;;
31200 esac
31201 # We did not find ourselves, most probably we were run as `sh COMMAND'
31202 # in which case we are not to be found in the path.
31203 if test "x$as_myself" = x; then
31204 as_myself=$0
31205 fi
31206 if test ! -f "$as_myself"; then
31207 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31208 exit 1
31209 fi
31210
31211 # Unset variables that we do not need and which cause bugs (e.g. in
31212 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31213 # suppresses any "Segmentation fault" message there. '((' could
31214 # trigger a bug in pdksh 5.2.14.
31215 for as_var in BASH_ENV ENV MAIL MAILPATH
31216 do eval test x\${$as_var+set} = xset \
31217 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31218 done
31219 PS1='$ '
31220 PS2='> '
31221 PS4='+ '
31222
31223 # NLS nuisances.
31224 LC_ALL=C
31225 export LC_ALL
31226 LANGUAGE=C
31227 export LANGUAGE
31228
31229 # CDPATH.
31230 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31231
31232
31233 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31234 # ----------------------------------------
31235 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31236 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31237 # script with STATUS, using 1 if that was 0.
31238 as_fn_error ()
31239 {
31240 as_status=$1; test $as_status -eq 0 && as_status=1
31241 if test "$4"; then
31242 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31243 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31244 fi
31245 $as_echo "$as_me: error: $2" >&2
31246 as_fn_exit $as_status
31247 } # as_fn_error
31248
31249
31250 # as_fn_set_status STATUS
31251 # -----------------------
31252 # Set $? to STATUS, without forking.
31253 as_fn_set_status ()
31254 {
31255 return $1
31256 } # as_fn_set_status
31257
31258 # as_fn_exit STATUS
31259 # -----------------
31260 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31261 as_fn_exit ()
31262 {
31263 set +e
31264 as_fn_set_status $1
31265 exit $1
31266 } # as_fn_exit
31267
31268 # as_fn_unset VAR
31269 # ---------------
31270 # Portably unset VAR.
31271 as_fn_unset ()
31272 {
31273 { eval $1=; unset $1;}
31274 }
31275 as_unset=as_fn_unset
31276 # as_fn_append VAR VALUE
31277 # ----------------------
31278 # Append the text in VALUE to the end of the definition contained in VAR. Take
31279 # advantage of any shell optimizations that allow amortized linear growth over
31280 # repeated appends, instead of the typical quadratic growth present in naive
31281 # implementations.
31282 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31283 eval 'as_fn_append ()
31284 {
31285 eval $1+=\$2
31286 }'
31287 else
31288 as_fn_append ()
31289 {
31290 eval $1=\$$1\$2
31291 }
31292 fi # as_fn_append
31293
31294 # as_fn_arith ARG...
31295 # ------------------
31296 # Perform arithmetic evaluation on the ARGs, and store the result in the
31297 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31298 # must be portable across $(()) and expr.
31299 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31300 eval 'as_fn_arith ()
31301 {
31302 as_val=$(( $* ))
31303 }'
31304 else
31305 as_fn_arith ()
31306 {
31307 as_val=`expr "$@" || test $? -eq 1`
31308 }
31309 fi # as_fn_arith
31310
31311
31312 if expr a : '\(a\)' >/dev/null 2>&1 &&
31313 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31314 as_expr=expr
31315 else
31316 as_expr=false
31317 fi
31318
31319 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31320 as_basename=basename
31321 else
31322 as_basename=false
31323 fi
31324
31325 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31326 as_dirname=dirname
31327 else
31328 as_dirname=false
31329 fi
31330
31331 as_me=`$as_basename -- "$0" ||
31332 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31333 X"$0" : 'X\(//\)$' \| \
31334 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31335 $as_echo X/"$0" |
31336 sed '/^.*\/\([^/][^/]*\)\/*$/{
31337 s//\1/
31338 q
31339 }
31340 /^X\/\(\/\/\)$/{
31341 s//\1/
31342 q
31343 }
31344 /^X\/\(\/\).*/{
31345 s//\1/
31346 q
31347 }
31348 s/.*/./; q'`
31349
31350 # Avoid depending upon Character Ranges.
31351 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31352 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31353 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31354 as_cr_digits='0123456789'
31355 as_cr_alnum=$as_cr_Letters$as_cr_digits
31356
31357 ECHO_C= ECHO_N= ECHO_T=
31358 case `echo -n x` in #(((((
31359 -n*)
31360 case `echo 'xy\c'` in
31361 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31362 xy) ECHO_C='\c';;
31363 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31364 ECHO_T=' ';;
31365 esac;;
31366 *)
31367 ECHO_N='-n';;
31368 esac
31369
31370 rm -f conf$$ conf$$.exe conf$$.file
31371 if test -d conf$$.dir; then
31372 rm -f conf$$.dir/conf$$.file
31373 else
31374 rm -f conf$$.dir
31375 mkdir conf$$.dir 2>/dev/null
31376 fi
31377 if (echo >conf$$.file) 2>/dev/null; then
31378 if ln -s conf$$.file conf$$ 2>/dev/null; then
31379 as_ln_s='ln -s'
31380 # ... but there are two gotchas:
31381 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31382 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31383 # In both cases, we have to default to `cp -pR'.
31384 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31385 as_ln_s='cp -pR'
31386 elif ln conf$$.file conf$$ 2>/dev/null; then
31387 as_ln_s=ln
31388 else
31389 as_ln_s='cp -pR'
31390 fi
31391 else
31392 as_ln_s='cp -pR'
31393 fi
31394 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31395 rmdir conf$$.dir 2>/dev/null
31396
31397
31398 # as_fn_mkdir_p
31399 # -------------
31400 # Create "$as_dir" as a directory, including parents if necessary.
31401 as_fn_mkdir_p ()
31402 {
31403
31404 case $as_dir in #(
31405 -*) as_dir=./$as_dir;;
31406 esac
31407 test -d "$as_dir" || eval $as_mkdir_p || {
31408 as_dirs=
31409 while :; do
31410 case $as_dir in #(
31411 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31412 *) as_qdir=$as_dir;;
31413 esac
31414 as_dirs="'$as_qdir' $as_dirs"
31415 as_dir=`$as_dirname -- "$as_dir" ||
31416 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31417 X"$as_dir" : 'X\(//\)[^/]' \| \
31418 X"$as_dir" : 'X\(//\)$' \| \
31419 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31420 $as_echo X"$as_dir" |
31421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31422 s//\1/
31423 q
31424 }
31425 /^X\(\/\/\)[^/].*/{
31426 s//\1/
31427 q
31428 }
31429 /^X\(\/\/\)$/{
31430 s//\1/
31431 q
31432 }
31433 /^X\(\/\).*/{
31434 s//\1/
31435 q
31436 }
31437 s/.*/./; q'`
31438 test -d "$as_dir" && break
31439 done
31440 test -z "$as_dirs" || eval "mkdir $as_dirs"
31441 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31442
31443
31444 } # as_fn_mkdir_p
31445 if mkdir -p . 2>/dev/null; then
31446 as_mkdir_p='mkdir -p "$as_dir"'
31447 else
31448 test -d ./-p && rmdir ./-p
31449 as_mkdir_p=false
31450 fi
31451
31452
31453 # as_fn_executable_p FILE
31454 # -----------------------
31455 # Test if FILE is an executable regular file.
31456 as_fn_executable_p ()
31457 {
31458 test -f "$1" && test -x "$1"
31459 } # as_fn_executable_p
31460 as_test_x='test -x'
31461 as_executable_p=as_fn_executable_p
31462
31463 # Sed expression to map a string onto a valid CPP name.
31464 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31465
31466 # Sed expression to map a string onto a valid variable name.
31467 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31468
31469
31470 exec 6>&1
31471 ## ----------------------------------- ##
31472 ## Main body of $CONFIG_STATUS script. ##
31473 ## ----------------------------------- ##
31474 _ASEOF
31475 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31476
31477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31478 # Save the log message, to keep $0 and so on meaningful, and to
31479 # report actual input values of CONFIG_FILES etc. instead of their
31480 # values after options handling.
31481 ac_log="
31482 This file was extended by $as_me, which was
31483 generated by GNU Autoconf 2.69. Invocation command line was
31484
31485 CONFIG_FILES = $CONFIG_FILES
31486 CONFIG_HEADERS = $CONFIG_HEADERS
31487 CONFIG_LINKS = $CONFIG_LINKS
31488 CONFIG_COMMANDS = $CONFIG_COMMANDS
31489 $ $0 $@
31490
31491 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31492 "
31493
31494 _ACEOF
31495
31496 case $ac_config_files in *"
31497 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31498 esac
31499
31500 case $ac_config_headers in *"
31501 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31502 esac
31503
31504
31505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31506 # Files that config.status was made for.
31507 config_files="$ac_config_files"
31508 config_headers="$ac_config_headers"
31509 config_links="$ac_config_links"
31510 config_commands="$ac_config_commands"
31511
31512 _ACEOF
31513
31514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31515 ac_cs_usage="\
31516 \`$as_me' instantiates files and other configuration actions
31517 from templates according to the current configuration. Unless the files
31518 and actions are specified as TAGs, all are instantiated by default.
31519
31520 Usage: $0 [OPTION]... [TAG]...
31521
31522 -h, --help print this help, then exit
31523 -V, --version print version number and configuration settings, then exit
31524 --config print configuration, then exit
31525 -q, --quiet, --silent
31526 do not print progress messages
31527 -d, --debug don't remove temporary files
31528 --recheck update $as_me by reconfiguring in the same conditions
31529 --file=FILE[:TEMPLATE]
31530 instantiate the configuration file FILE
31531 --header=FILE[:TEMPLATE]
31532 instantiate the configuration header FILE
31533
31534 Configuration files:
31535 $config_files
31536
31537 Configuration headers:
31538 $config_headers
31539
31540 Configuration links:
31541 $config_links
31542
31543 Configuration commands:
31544 $config_commands
31545
31546 Report bugs to the package provider."
31547
31548 _ACEOF
31549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31550 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31551 ac_cs_version="\\
31552 config.status
31553 configured by $0, generated by GNU Autoconf 2.69,
31554 with options \\"\$ac_cs_config\\"
31555
31556 Copyright (C) 2012 Free Software Foundation, Inc.
31557 This config.status script is free software; the Free Software Foundation
31558 gives unlimited permission to copy, distribute and modify it."
31559
31560 ac_pwd='$ac_pwd'
31561 srcdir='$srcdir'
31562 AWK='$AWK'
31563 test -n "\$AWK" || AWK=awk
31564 _ACEOF
31565
31566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31567 # The default lists apply if the user does not specify any file.
31568 ac_need_defaults=:
31569 while test $# != 0
31570 do
31571 case $1 in
31572 --*=?*)
31573 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31574 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31575 ac_shift=:
31576 ;;
31577 --*=)
31578 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31579 ac_optarg=
31580 ac_shift=:
31581 ;;
31582 *)
31583 ac_option=$1
31584 ac_optarg=$2
31585 ac_shift=shift
31586 ;;
31587 esac
31588
31589 case $ac_option in
31590 # Handling of the options.
31591 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31592 ac_cs_recheck=: ;;
31593 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31594 $as_echo "$ac_cs_version"; exit ;;
31595 --config | --confi | --conf | --con | --co | --c )
31596 $as_echo "$ac_cs_config"; exit ;;
31597 --debug | --debu | --deb | --de | --d | -d )
31598 debug=: ;;
31599 --file | --fil | --fi | --f )
31600 $ac_shift
31601 case $ac_optarg in
31602 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31603 '') as_fn_error $? "missing file argument" ;;
31604 esac
31605 as_fn_append CONFIG_FILES " '$ac_optarg'"
31606 ac_need_defaults=false;;
31607 --header | --heade | --head | --hea )
31608 $ac_shift
31609 case $ac_optarg in
31610 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31611 esac
31612 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31613 ac_need_defaults=false;;
31614 --he | --h)
31615 # Conflict between --help and --header
31616 as_fn_error $? "ambiguous option: \`$1'
31617 Try \`$0 --help' for more information.";;
31618 --help | --hel | -h )
31619 $as_echo "$ac_cs_usage"; exit ;;
31620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31621 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31622 ac_cs_silent=: ;;
31623
31624 # This is an error.
31625 -*) as_fn_error $? "unrecognized option: \`$1'
31626 Try \`$0 --help' for more information." ;;
31627
31628 *) as_fn_append ac_config_targets " $1"
31629 ac_need_defaults=false ;;
31630
31631 esac
31632 shift
31633 done
31634
31635 ac_configure_extra_args=
31636
31637 if $ac_cs_silent; then
31638 exec 6>/dev/null
31639 ac_configure_extra_args="$ac_configure_extra_args --silent"
31640 fi
31641
31642 _ACEOF
31643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31644 if \$ac_cs_recheck; then
31645 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31646 shift
31647 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31648 CONFIG_SHELL='$SHELL'
31649 export CONFIG_SHELL
31650 exec "\$@"
31651 fi
31652
31653 _ACEOF
31654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31655 exec 5>>config.log
31656 {
31657 echo
31658 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31659 ## Running $as_me. ##
31660 _ASBOX
31661 $as_echo "$ac_log"
31662 } >&5
31663
31664 _ACEOF
31665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31666 #
31667 # INIT-COMMANDS
31668 #
31669 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31670 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31671 subdirs='$subdirs'
31672
31673 _ACEOF
31674
31675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31676
31677 # Handling of arguments.
31678 for ac_config_target in $ac_config_targets
31679 do
31680 case $ac_config_target in
31681 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
31682 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
31683 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
31684 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
31685 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
31686 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
31687 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
31688 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
31689 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31690
31691 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31692 esac
31693 done
31694
31695
31696 # If the user did not use the arguments to specify the items to instantiate,
31697 # then the envvar interface is used. Set only those that are not.
31698 # We use the long form for the default assignment because of an extremely
31699 # bizarre bug on SunOS 4.1.3.
31700 if $ac_need_defaults; then
31701 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31702 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31703 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31704 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31705 fi
31706
31707 # Have a temporary directory for convenience. Make it in the build tree
31708 # simply because there is no reason against having it here, and in addition,
31709 # creating and moving files from /tmp can sometimes cause problems.
31710 # Hook for its removal unless debugging.
31711 # Note that there is a small window in which the directory will not be cleaned:
31712 # after its creation but before its name has been assigned to `$tmp'.
31713 $debug ||
31714 {
31715 tmp= ac_tmp=
31716 trap 'exit_status=$?
31717 : "${ac_tmp:=$tmp}"
31718 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31719 ' 0
31720 trap 'as_fn_exit 1' 1 2 13 15
31721 }
31722 # Create a (secure) tmp directory for tmp files.
31723
31724 {
31725 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31726 test -d "$tmp"
31727 } ||
31728 {
31729 tmp=./conf$$-$RANDOM
31730 (umask 077 && mkdir "$tmp")
31731 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31732 ac_tmp=$tmp
31733
31734 # Set up the scripts for CONFIG_FILES section.
31735 # No need to generate them if there are no CONFIG_FILES.
31736 # This happens for instance with `./config.status config.h'.
31737 if test -n "$CONFIG_FILES"; then
31738
31739 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31740 ac_cs_awk_getline=:
31741 ac_cs_awk_pipe_init=
31742 ac_cs_awk_read_file='
31743 while ((getline aline < (F[key])) > 0)
31744 print(aline)
31745 close(F[key])'
31746 ac_cs_awk_pipe_fini=
31747 else
31748 ac_cs_awk_getline=false
31749 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31750 ac_cs_awk_read_file='
31751 print "|#_!!_#|"
31752 print "cat " F[key] " &&"
31753 '$ac_cs_awk_pipe_init
31754 # The final `:' finishes the AND list.
31755 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31756 fi
31757 ac_cr=`echo X | tr X '\015'`
31758 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31759 # But we know of no other shell where ac_cr would be empty at this
31760 # point, so we can use a bashism as a fallback.
31761 if test "x$ac_cr" = x; then
31762 eval ac_cr=\$\'\\r\'
31763 fi
31764 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31765 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31766 ac_cs_awk_cr='\\r'
31767 else
31768 ac_cs_awk_cr=$ac_cr
31769 fi
31770
31771 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31772 _ACEOF
31773
31774 # Create commands to substitute file output variables.
31775 {
31776 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31777 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31778 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31779 echo "_ACAWK" &&
31780 echo "_ACEOF"
31781 } >conf$$files.sh &&
31782 . ./conf$$files.sh ||
31783 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31784 rm -f conf$$files.sh
31785
31786 {
31787 echo "cat >conf$$subs.awk <<_ACEOF" &&
31788 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31789 echo "_ACEOF"
31790 } >conf$$subs.sh ||
31791 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31792 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31793 ac_delim='%!_!# '
31794 for ac_last_try in false false false false false :; do
31795 . ./conf$$subs.sh ||
31796 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31797
31798 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31799 if test $ac_delim_n = $ac_delim_num; then
31800 break
31801 elif $ac_last_try; then
31802 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31803 else
31804 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31805 fi
31806 done
31807 rm -f conf$$subs.sh
31808
31809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31810 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31811 _ACEOF
31812 sed -n '
31813 h
31814 s/^/S["/; s/!.*/"]=/
31815 p
31816 g
31817 s/^[^!]*!//
31818 :repl
31819 t repl
31820 s/'"$ac_delim"'$//
31821 t delim
31822 :nl
31823 h
31824 s/\(.\{148\}\)..*/\1/
31825 t more1
31826 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31827 p
31828 n
31829 b repl
31830 :more1
31831 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31832 p
31833 g
31834 s/.\{148\}//
31835 t nl
31836 :delim
31837 h
31838 s/\(.\{148\}\)..*/\1/
31839 t more2
31840 s/["\\]/\\&/g; s/^/"/; s/$/"/
31841 p
31842 b
31843 :more2
31844 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31845 p
31846 g
31847 s/.\{148\}//
31848 t delim
31849 ' <conf$$subs.awk | sed '
31850 /^[^""]/{
31851 N
31852 s/\n//
31853 }
31854 ' >>$CONFIG_STATUS || ac_write_fail=1
31855 rm -f conf$$subs.awk
31856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31857 _ACAWK
31858 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31859 for (key in S) S_is_set[key] = 1
31860 FS = "\a"
31861 \$ac_cs_awk_pipe_init
31862 }
31863 {
31864 line = $ 0
31865 nfields = split(line, field, "@")
31866 substed = 0
31867 len = length(field[1])
31868 for (i = 2; i < nfields; i++) {
31869 key = field[i]
31870 keylen = length(key)
31871 if (S_is_set[key]) {
31872 value = S[key]
31873 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31874 len += length(value) + length(field[++i])
31875 substed = 1
31876 } else
31877 len += 1 + keylen
31878 }
31879 if (nfields == 3 && !substed) {
31880 key = field[2]
31881 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31882 \$ac_cs_awk_read_file
31883 next
31884 }
31885 }
31886 print line
31887 }
31888 \$ac_cs_awk_pipe_fini
31889 _ACAWK
31890 _ACEOF
31891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31892 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31893 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31894 else
31895 cat
31896 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31897 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31898 _ACEOF
31899
31900 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31901 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31902 # trailing colons and then remove the whole line if VPATH becomes empty
31903 # (actually we leave an empty line to preserve line numbers).
31904 if test "x$srcdir" = x.; then
31905 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31906 h
31907 s///
31908 s/^/:/
31909 s/[ ]*$/:/
31910 s/:\$(srcdir):/:/g
31911 s/:\${srcdir}:/:/g
31912 s/:@srcdir@:/:/g
31913 s/^:*//
31914 s/:*$//
31915 x
31916 s/\(=[ ]*\).*/\1/
31917 G
31918 s/\n//
31919 s/^[^=]*=[ ]*$//
31920 }'
31921 fi
31922
31923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31924 fi # test -n "$CONFIG_FILES"
31925
31926 # Set up the scripts for CONFIG_HEADERS section.
31927 # No need to generate them if there are no CONFIG_HEADERS.
31928 # This happens for instance with `./config.status Makefile'.
31929 if test -n "$CONFIG_HEADERS"; then
31930 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31931 BEGIN {
31932 _ACEOF
31933
31934 # Transform confdefs.h into an awk script `defines.awk', embedded as
31935 # here-document in config.status, that substitutes the proper values into
31936 # config.h.in to produce config.h.
31937
31938 # Create a delimiter string that does not exist in confdefs.h, to ease
31939 # handling of long lines.
31940 ac_delim='%!_!# '
31941 for ac_last_try in false false :; do
31942 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31943 if test -z "$ac_tt"; then
31944 break
31945 elif $ac_last_try; then
31946 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31947 else
31948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31949 fi
31950 done
31951
31952 # For the awk script, D is an array of macro values keyed by name,
31953 # likewise P contains macro parameters if any. Preserve backslash
31954 # newline sequences.
31955
31956 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31957 sed -n '
31958 s/.\{148\}/&'"$ac_delim"'/g
31959 t rset
31960 :rset
31961 s/^[ ]*#[ ]*define[ ][ ]*/ /
31962 t def
31963 d
31964 :def
31965 s/\\$//
31966 t bsnl
31967 s/["\\]/\\&/g
31968 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31969 D["\1"]=" \3"/p
31970 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31971 d
31972 :bsnl
31973 s/["\\]/\\&/g
31974 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31975 D["\1"]=" \3\\\\\\n"\\/p
31976 t cont
31977 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31978 t cont
31979 d
31980 :cont
31981 n
31982 s/.\{148\}/&'"$ac_delim"'/g
31983 t clear
31984 :clear
31985 s/\\$//
31986 t bsnlc
31987 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31988 d
31989 :bsnlc
31990 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31991 b cont
31992 ' <confdefs.h | sed '
31993 s/'"$ac_delim"'/"\\\
31994 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31995
31996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31997 for (key in D) D_is_set[key] = 1
31998 FS = "\a"
31999 }
32000 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32001 line = \$ 0
32002 split(line, arg, " ")
32003 if (arg[1] == "#") {
32004 defundef = arg[2]
32005 mac1 = arg[3]
32006 } else {
32007 defundef = substr(arg[1], 2)
32008 mac1 = arg[2]
32009 }
32010 split(mac1, mac2, "(") #)
32011 macro = mac2[1]
32012 prefix = substr(line, 1, index(line, defundef) - 1)
32013 if (D_is_set[macro]) {
32014 # Preserve the white space surrounding the "#".
32015 print prefix "define", macro P[macro] D[macro]
32016 next
32017 } else {
32018 # Replace #undef with comments. This is necessary, for example,
32019 # in the case of _POSIX_SOURCE, which is predefined and required
32020 # on some systems where configure will not decide to define it.
32021 if (defundef == "undef") {
32022 print "/*", prefix defundef, macro, "*/"
32023 next
32024 }
32025 }
32026 }
32027 { print }
32028 _ACAWK
32029 _ACEOF
32030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32031 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32032 fi # test -n "$CONFIG_HEADERS"
32033
32034
32035 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
32036 shift
32037 for ac_tag
32038 do
32039 case $ac_tag in
32040 :[FHLC]) ac_mode=$ac_tag; continue;;
32041 esac
32042 case $ac_mode$ac_tag in
32043 :[FHL]*:*);;
32044 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32045 :[FH]-) ac_tag=-:-;;
32046 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32047 esac
32048 ac_save_IFS=$IFS
32049 IFS=:
32050 set x $ac_tag
32051 IFS=$ac_save_IFS
32052 shift
32053 ac_file=$1
32054 shift
32055
32056 case $ac_mode in
32057 :L) ac_source=$1;;
32058 :[FH])
32059 ac_file_inputs=
32060 for ac_f
32061 do
32062 case $ac_f in
32063 -) ac_f="$ac_tmp/stdin";;
32064 *) # Look for the file first in the build tree, then in the source tree
32065 # (if the path is not absolute). The absolute path cannot be DOS-style,
32066 # because $ac_f cannot contain `:'.
32067 test -f "$ac_f" ||
32068 case $ac_f in
32069 [\\/$]*) false;;
32070 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32071 esac ||
32072 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32073 esac
32074 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32075 as_fn_append ac_file_inputs " '$ac_f'"
32076 done
32077
32078 # Let's still pretend it is `configure' which instantiates (i.e., don't
32079 # use $as_me), people would be surprised to read:
32080 # /* config.h. Generated by config.status. */
32081 configure_input='Generated from '`
32082 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32083 `' by configure.'
32084 if test x"$ac_file" != x-; then
32085 configure_input="$ac_file. $configure_input"
32086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32087 $as_echo "$as_me: creating $ac_file" >&6;}
32088 fi
32089 # Neutralize special characters interpreted by sed in replacement strings.
32090 case $configure_input in #(
32091 *\&* | *\|* | *\\* )
32092 ac_sed_conf_input=`$as_echo "$configure_input" |
32093 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32094 *) ac_sed_conf_input=$configure_input;;
32095 esac
32096
32097 case $ac_tag in
32098 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32099 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32100 esac
32101 ;;
32102 esac
32103
32104 ac_dir=`$as_dirname -- "$ac_file" ||
32105 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32106 X"$ac_file" : 'X\(//\)[^/]' \| \
32107 X"$ac_file" : 'X\(//\)$' \| \
32108 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32109 $as_echo X"$ac_file" |
32110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32111 s//\1/
32112 q
32113 }
32114 /^X\(\/\/\)[^/].*/{
32115 s//\1/
32116 q
32117 }
32118 /^X\(\/\/\)$/{
32119 s//\1/
32120 q
32121 }
32122 /^X\(\/\).*/{
32123 s//\1/
32124 q
32125 }
32126 s/.*/./; q'`
32127 as_dir="$ac_dir"; as_fn_mkdir_p
32128 ac_builddir=.
32129
32130 case "$ac_dir" in
32131 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32132 *)
32133 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32134 # A ".." for each directory in $ac_dir_suffix.
32135 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32136 case $ac_top_builddir_sub in
32137 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32138 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32139 esac ;;
32140 esac
32141 ac_abs_top_builddir=$ac_pwd
32142 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32143 # for backward compatibility:
32144 ac_top_builddir=$ac_top_build_prefix
32145
32146 case $srcdir in
32147 .) # We are building in place.
32148 ac_srcdir=.
32149 ac_top_srcdir=$ac_top_builddir_sub
32150 ac_abs_top_srcdir=$ac_pwd ;;
32151 [\\/]* | ?:[\\/]* ) # Absolute name.
32152 ac_srcdir=$srcdir$ac_dir_suffix;
32153 ac_top_srcdir=$srcdir
32154 ac_abs_top_srcdir=$srcdir ;;
32155 *) # Relative name.
32156 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32157 ac_top_srcdir=$ac_top_build_prefix$srcdir
32158 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32159 esac
32160 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32161
32162
32163 case $ac_mode in
32164 :F)
32165 #
32166 # CONFIG_FILE
32167 #
32168
32169 _ACEOF
32170
32171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32172 # If the template does not know about datarootdir, expand it.
32173 # FIXME: This hack should be removed a few years after 2.60.
32174 ac_datarootdir_hack=; ac_datarootdir_seen=
32175 ac_sed_dataroot='
32176 /datarootdir/ {
32177 p
32178 q
32179 }
32180 /@datadir@/p
32181 /@docdir@/p
32182 /@infodir@/p
32183 /@localedir@/p
32184 /@mandir@/p'
32185 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32186 *datarootdir*) ac_datarootdir_seen=yes;;
32187 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32189 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32190 _ACEOF
32191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32192 ac_datarootdir_hack='
32193 s&@datadir@&$datadir&g
32194 s&@docdir@&$docdir&g
32195 s&@infodir@&$infodir&g
32196 s&@localedir@&$localedir&g
32197 s&@mandir@&$mandir&g
32198 s&\\\${datarootdir}&$datarootdir&g' ;;
32199 esac
32200 _ACEOF
32201
32202 # Neutralize VPATH when `$srcdir' = `.'.
32203 # Shell code in configure.ac might set extrasub.
32204 # FIXME: do we really want to maintain this feature?
32205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32206 ac_sed_extra="$ac_vpsub
32207 $extrasub
32208 _ACEOF
32209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32210 :t
32211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32212 s|@configure_input@|$ac_sed_conf_input|;t t
32213 s&@top_builddir@&$ac_top_builddir_sub&;t t
32214 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32215 s&@srcdir@&$ac_srcdir&;t t
32216 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32217 s&@top_srcdir@&$ac_top_srcdir&;t t
32218 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32219 s&@builddir@&$ac_builddir&;t t
32220 s&@abs_builddir@&$ac_abs_builddir&;t t
32221 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32222 $ac_datarootdir_hack
32223 "
32224 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32225 if $ac_cs_awk_getline; then
32226 $AWK -f "$ac_tmp/subs.awk"
32227 else
32228 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32229 fi \
32230 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32231
32232 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32233 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32234 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32235 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32237 which seems to be undefined. Please make sure it is defined" >&5
32238 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32239 which seems to be undefined. Please make sure it is defined" >&2;}
32240
32241 rm -f "$ac_tmp/stdin"
32242 case $ac_file in
32243 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32244 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32245 esac \
32246 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32247 ;;
32248 :H)
32249 #
32250 # CONFIG_HEADER
32251 #
32252 if test x"$ac_file" != x-; then
32253 {
32254 $as_echo "/* $configure_input */" \
32255 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32256 } >"$ac_tmp/config.h" \
32257 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32258 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32259 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32260 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32261 else
32262 rm -f "$ac_file"
32263 mv "$ac_tmp/config.h" "$ac_file" \
32264 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32265 fi
32266 else
32267 $as_echo "/* $configure_input */" \
32268 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32269 || as_fn_error $? "could not create -" "$LINENO" 5
32270 fi
32271 ;;
32272 :L)
32273 #
32274 # CONFIG_LINK
32275 #
32276
32277 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
32278 :
32279 else
32280 # Prefer the file from the source tree if names are identical.
32281 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
32282 ac_source=$srcdir/$ac_source
32283 fi
32284
32285 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
32286 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
32287
32288 if test ! -r "$ac_source"; then
32289 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
32290 fi
32291 rm -f "$ac_file"
32292
32293 # Try a relative symlink, then a hard link, then a copy.
32294 case $ac_source in
32295 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
32296 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
32297 esac
32298 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32299 ln "$ac_source" "$ac_file" 2>/dev/null ||
32300 cp -p "$ac_source" "$ac_file" ||
32301 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32302 fi
32303 ;;
32304 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32305 $as_echo "$as_me: executing $ac_file commands" >&6;}
32306 ;;
32307 esac
32308
32309
32310 case $ac_file$ac_mode in
32311 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
32312 "gccdepdir":C)
32313 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
32314 for lang in $subdirs c-family common analyzer
32315 do
32316 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
32317 done ;;
32318 "as":F) chmod +x as ;;
32319 "collect-ld":F) chmod +x collect-ld ;;
32320 "nm":F) chmod +x nm ;;
32321 "default":C)
32322 case ${CONFIG_HEADERS} in
32323 *auto-host.h:config.in*)
32324 echo > cstamp-h ;;
32325 esac
32326 # Make sure all the subdirs exist.
32327 for d in $subdirs doc build common c-family
32328 do
32329 test -d $d || mkdir $d
32330 done
32331 ;;
32332
32333 esac
32334 done # for ac_tag
32335
32336
32337 as_fn_exit 0
32338 _ACEOF
32339 ac_clean_files=$ac_clean_files_save
32340
32341 test $ac_write_fail = 0 ||
32342 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32343
32344
32345 # configure is writing to config.log, and then calls config.status.
32346 # config.status does its own redirection, appending to config.log.
32347 # Unfortunately, on DOS this fails, as config.log is still kept open
32348 # by configure, so config.status won't be able to write to it; its
32349 # output is simply discarded. So we exec the FD to /dev/null,
32350 # effectively closing config.log, so it can be properly (re)opened and
32351 # appended to by config.status. When coming back to configure, we
32352 # need to make the FD available again.
32353 if test "$no_create" != yes; then
32354 ac_cs_success=:
32355 ac_config_status_args=
32356 test "$silent" = yes &&
32357 ac_config_status_args="$ac_config_status_args --quiet"
32358 exec 5>/dev/null
32359 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32360 exec 5>>config.log
32361 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32362 # would make configure fail if this is the last instruction.
32363 $ac_cs_success || as_fn_exit 1
32364 fi
32365 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32367 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32368 fi
32369
32370