]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
Fixes after recent configure changes relating to static libraries
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="tree.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 NO_PIE_FLAG
635 NO_PIE_CFLAGS
636 enable_default_pie
637 PICFLAG
638 enable_host_shared
639 enable_plugin
640 pluginlibs
641 ISLINC
642 ISLLIBS
643 GMPINC
644 GMPLIBS
645 target_cpu_default
646 d_target_objs
647 fortran_target_objs
648 cxx_target_objs
649 c_target_objs
650 use_gcc_stdint
651 xm_defines
652 xm_include_list
653 xm_file_list
654 tm_d_include_list
655 tm_d_file_list
656 tm_p_include_list
657 tm_p_file_list
658 tm_defines
659 tm_include_list
660 tm_file_list
661 common_out_object_file
662 common_out_file
663 out_object_file
664 out_file
665 objc_boehm_gc
666 md_file
667 local_prefix
668 lang_tree_files
669 lang_specs_files
670 lang_opt_files
671 install
672 out_host_hook_obj
673 host_xm_defines
674 host_xm_include_list
675 host_xm_file_list
676 host_exeext
677 gcc_gxx_include_dir_add_sysroot
678 gcc_gxx_include_dir
679 gcc_config_arguments
680 float_h_file
681 extra_programs
682 extra_objs
683 extra_headers_list
684 user_headers_inc_next_post
685 user_headers_inc_next_pre
686 extra_gcc_objs
687 TM_MULTILIB_EXCEPTIONS_CONFIG
688 TM_MULTILIB_CONFIG
689 TM_ENDIAN_CONFIG
690 tmake_file
691 xmake_file
692 cpp_install_dir
693 selftest_languages
694 check_languages
695 build_file_translate
696 build_xm_defines
697 build_xm_include_list
698 build_xm_file_list
699 build_install_headers_dir
700 build_exeext
701 all_selected_languages
702 all_languages
703 all_lang_makefrags
704 all_lang_configurefrags
705 all_gtfiles
706 all_compilers
707 srcdir
708 subdirs
709 dollar
710 gcc_tooldir
711 enable_lto
712 DO_LINK_MUTEX
713 MAINT
714 zlibinc
715 zlibdir
716 HOST_LIBS
717 enable_default_ssp
718 thin_archive_support
719 ld_soname_option
720 ld_version_script_option
721 libgcc_visibility
722 gcc_cv_otool
723 gcc_cv_readelf
724 gcc_cv_objdump
725 ORIGINAL_NM_FOR_TARGET
726 gcc_cv_nm
727 ORIGINAL_LD_GOLD_FOR_TARGET
728 ORIGINAL_LD_BFD_FOR_TARGET
729 ORIGINAL_LD_FOR_TARGET
730 ORIGINAL_PLUGIN_LD_FOR_TARGET
731 gcc_cv_ld
732 ORIGINAL_AS_FOR_TARGET
733 gcc_cv_as
734 enable_fast_install
735 objdir
736 OTOOL64
737 OTOOL
738 LIPO
739 NMEDIT
740 DSYMUTIL
741 STRIP
742 OBJDUMP
743 ac_ct_DUMPBIN
744 DUMPBIN
745 LD
746 FGREP
747 SED
748 LIBTOOL
749 collect2
750 NO_PIE_FLAG_FOR_BUILD
751 NO_PIE_CFLAGS_FOR_BUILD
752 BUILD_NO_PIE_FLAG
753 BUILD_NO_PIE_CFLAGS
754 STMP_FIXINC
755 BUILD_LDFLAGS
756 BUILD_CXXFLAGS
757 BUILD_CFLAGS
758 CXX_FOR_BUILD
759 CC_FOR_BUILD
760 inhibit_libc
761 BUILD_SYSTEM_HEADER_DIR
762 SYSTEM_HEADER_DIR
763 ALL
764 CROSS
765 CATOBJEXT
766 GENCAT
767 INSTOBJEXT
768 DATADIRNAME
769 CATALOGS
770 POSUB
771 GMSGFMT
772 XGETTEXT
773 INCINTL
774 LIBINTL_DEP
775 LIBINTL
776 USE_NLS
777 get_gcc_base_ver
778 HAVE_AUTO_BUILD
779 extra_opt_files
780 extra_modes_file
781 NATIVE_SYSTEM_HEADER_DIR
782 objext
783 manext
784 LIBICONV_DEP
785 LTLIBICONV
786 LIBICONV
787 ZSTD_LIB
788 ZSTD_INCLUDE
789 DL_LIB
790 LDEXP_LIB
791 EXTRA_GCC_LIBS
792 GNAT_LIBEXC
793 COLLECT2_LIBS
794 CXXDEPMODE
795 DEPDIR
796 am__leading_dot
797 doc_build_sys
798 AR
799 NM
800 BISON
801 FLEX
802 GENERATED_MANPAGES
803 BUILD_INFO
804 MAKEINFO
805 have_mktemp_command
806 make_compare_target
807 INSTALL_DATA
808 INSTALL_PROGRAM
809 INSTALL
810 ranlib_flags
811 RANLIB
812 LN
813 LN_S
814 AWK
815 SET_MAKE
816 omp_device_property_deps
817 omp_device_properties
818 accel_dir_suffix
819 real_target_noncanonical
820 enable_as_accelerator
821 gnat_install_lib
822 DOCUMENTATION_ROOT_URL
823 REPORT_BUGS_TEXI
824 REPORT_BUGS_TO
825 PKGVERSION
826 CONFIGURE_SPECS
827 enable_gcov
828 enable_shared
829 enable_fixed_point
830 enable_decimal_float
831 with_float
832 with_cpu
833 enable_multiarch
834 enable_multilib
835 coverage_flags
836 valgrind_command
837 valgrind_path_defines
838 valgrind_path
839 TREECHECKING
840 nocommon_flag
841 noexception_flags
842 warn_cxxflags
843 warn_cflags
844 c_strict_warn
845 strict_warn
846 c_loose_warn
847 loose_warn
848 aliasing_flags
849 CPP
850 EGREP
851 GREP
852 CXXCPP
853 PICFLAG_FOR_TARGET
854 GNATMAKE
855 GNATBIND
856 ac_ct_CXX
857 CXXFLAGS
858 CXX
859 OBJEXT
860 EXEEXT
861 ac_ct_CC
862 CPPFLAGS
863 LDFLAGS
864 CFLAGS
865 CC
866 GENINSRC
867 CROSS_SYSTEM_HEADER_DIR
868 TARGET_SYSTEM_ROOT_DEFINE
869 TARGET_SYSTEM_ROOT
870 SYSROOT_CFLAGS_FOR_TARGET
871 target_subdir
872 host_subdir
873 build_subdir
874 build_libsubdir
875 target_noncanonical
876 host_noncanonical
877 target_os
878 target_vendor
879 target_cpu
880 target
881 host_os
882 host_vendor
883 host_cpu
884 host
885 build_os
886 build_vendor
887 build_cpu
888 build
889 target_alias
890 host_alias
891 build_alias
892 LIBS
893 ECHO_T
894 ECHO_N
895 ECHO_C
896 DEFS
897 mandir
898 localedir
899 libdir
900 psdir
901 pdfdir
902 dvidir
903 htmldir
904 infodir
905 docdir
906 oldincludedir
907 includedir
908 localstatedir
909 sharedstatedir
910 sysconfdir
911 datadir
912 datarootdir
913 libexecdir
914 sbindir
915 bindir
916 program_transform_name
917 prefix
918 exec_prefix
919 PACKAGE_URL
920 PACKAGE_BUGREPORT
921 PACKAGE_STRING
922 PACKAGE_VERSION
923 PACKAGE_TARNAME
924 PACKAGE_NAME
925 PATH_SEPARATOR
926 SHELL'
927 ac_subst_files='option_includes
928 language_hooks'
929 ac_user_opts='
930 enable_option_checking
931 with_build_libsubdir
932 with_local_prefix
933 with_native_system_header_dir
934 with_build_sysroot
935 with_sysroot
936 with_gxx_include_dir
937 with_cpp_install_dir
938 enable_generated_files_in_srcdir
939 with_gnu_ld
940 with_ld
941 with_demangler_in_ld
942 with_gnu_as
943 with_as
944 enable_largefile
945 enable_build_format_warnings
946 enable_werror_always
947 enable_checking
948 enable_coverage
949 enable_gather_detailed_mem_stats
950 enable_valgrind_annotations
951 with_stabs
952 enable_multilib
953 enable_multiarch
954 with_stack_clash_protection_guard_size
955 enable___cxa_atexit
956 enable_decimal_float
957 enable_fixed_point
958 enable_threads
959 enable_tls
960 enable_vtable_verify
961 enable_analyzer
962 enable_objc_gc
963 with_dwarf2
964 enable_shared
965 enable_gcov
966 with_specs
967 with_pkgversion
968 with_bugurl
969 with_documentation_root_url
970 enable_languages
971 with_multilib_list
972 with_zstd
973 with_zstd_include
974 with_zstd_lib
975 enable_rpath
976 with_libiconv_prefix
977 with_libiconv_type
978 enable_sjlj_exceptions
979 with_gcc_major_version_only
980 enable_secureplt
981 enable_mingw_wildcard
982 enable_large_address_aware
983 enable_leading_mingw64_underscores
984 enable_cld
985 enable_frame_pointer
986 enable_win32_registry
987 enable_static
988 with_pic
989 enable_fast_install
990 enable_libtool_lock
991 enable_ld
992 enable_gold
993 with_plugin_ld
994 enable_gnu_indirect_function
995 enable_initfini_array
996 enable_comdat
997 enable_newlib_nano_formatted_io
998 enable_standard_branch_protection
999 enable_fix_cortex_a53_835769
1000 enable_fix_cortex_a53_843419
1001 with_glibc_version
1002 enable_gnu_unique_object
1003 enable_linker_build_id
1004 enable_libssp
1005 enable_default_ssp
1006 with_long_double_128
1007 with_long_double_format
1008 with_gc
1009 with_system_zlib
1010 enable_maintainer_mode
1011 enable_link_mutex
1012 enable_version_specific_runtime_libs
1013 enable_plugin
1014 enable_host_shared
1015 enable_libquadmath_support
1016 with_linker_hash_style
1017 with_diagnostics_color
1018 enable_default_pie
1019 '
1020 ac_precious_vars='build_alias
1021 host_alias
1022 target_alias
1023 CC
1024 CFLAGS
1025 LDFLAGS
1026 LIBS
1027 CPPFLAGS
1028 CXX
1029 CXXFLAGS
1030 CCC
1031 CXXCPP
1032 CPP
1033 GMPLIBS
1034 GMPINC
1035 ISLLIBS
1036 ISLINC'
1037
1038
1039 # Initialize some variables set by options.
1040 ac_init_help=
1041 ac_init_version=false
1042 ac_unrecognized_opts=
1043 ac_unrecognized_sep=
1044 # The variables have the same names as the options, with
1045 # dashes changed to underlines.
1046 cache_file=/dev/null
1047 exec_prefix=NONE
1048 no_create=
1049 no_recursion=
1050 prefix=NONE
1051 program_prefix=NONE
1052 program_suffix=NONE
1053 program_transform_name=s,x,x,
1054 silent=
1055 site=
1056 srcdir=
1057 verbose=
1058 x_includes=NONE
1059 x_libraries=NONE
1060
1061 # Installation directory options.
1062 # These are left unexpanded so users can "make install exec_prefix=/foo"
1063 # and all the variables that are supposed to be based on exec_prefix
1064 # by default will actually change.
1065 # Use braces instead of parens because sh, perl, etc. also accept them.
1066 # (The list follows the same order as the GNU Coding Standards.)
1067 bindir='${exec_prefix}/bin'
1068 sbindir='${exec_prefix}/sbin'
1069 libexecdir='${exec_prefix}/libexec'
1070 datarootdir='${prefix}/share'
1071 datadir='${datarootdir}'
1072 sysconfdir='${prefix}/etc'
1073 sharedstatedir='${prefix}/com'
1074 localstatedir='${prefix}/var'
1075 includedir='${prefix}/include'
1076 oldincludedir='/usr/include'
1077 docdir='${datarootdir}/doc/${PACKAGE}'
1078 infodir='${datarootdir}/info'
1079 htmldir='${docdir}'
1080 dvidir='${docdir}'
1081 pdfdir='${docdir}'
1082 psdir='${docdir}'
1083 libdir='${exec_prefix}/lib'
1084 localedir='${datarootdir}/locale'
1085 mandir='${datarootdir}/man'
1086
1087 ac_prev=
1088 ac_dashdash=
1089 for ac_option
1090 do
1091 # If the previous option needs an argument, assign it.
1092 if test -n "$ac_prev"; then
1093 eval $ac_prev=\$ac_option
1094 ac_prev=
1095 continue
1096 fi
1097
1098 case $ac_option in
1099 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1100 *=) ac_optarg= ;;
1101 *) ac_optarg=yes ;;
1102 esac
1103
1104 # Accept the important Cygnus configure options, so we can diagnose typos.
1105
1106 case $ac_dashdash$ac_option in
1107 --)
1108 ac_dashdash=yes ;;
1109
1110 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1111 ac_prev=bindir ;;
1112 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1113 bindir=$ac_optarg ;;
1114
1115 -build | --build | --buil | --bui | --bu)
1116 ac_prev=build_alias ;;
1117 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1118 build_alias=$ac_optarg ;;
1119
1120 -cache-file | --cache-file | --cache-fil | --cache-fi \
1121 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1122 ac_prev=cache_file ;;
1123 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1124 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1125 cache_file=$ac_optarg ;;
1126
1127 --config-cache | -C)
1128 cache_file=config.cache ;;
1129
1130 -datadir | --datadir | --datadi | --datad)
1131 ac_prev=datadir ;;
1132 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1133 datadir=$ac_optarg ;;
1134
1135 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1136 | --dataroo | --dataro | --datar)
1137 ac_prev=datarootdir ;;
1138 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1139 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1140 datarootdir=$ac_optarg ;;
1141
1142 -disable-* | --disable-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid feature name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "enable_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval enable_$ac_useropt=no ;;
1157
1158 -docdir | --docdir | --docdi | --doc | --do)
1159 ac_prev=docdir ;;
1160 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1161 docdir=$ac_optarg ;;
1162
1163 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1164 ac_prev=dvidir ;;
1165 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1166 dvidir=$ac_optarg ;;
1167
1168 -enable-* | --enable-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid feature name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "enable_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval enable_$ac_useropt=\$ac_optarg ;;
1183
1184 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1185 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1186 | --exec | --exe | --ex)
1187 ac_prev=exec_prefix ;;
1188 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1189 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1190 | --exec=* | --exe=* | --ex=*)
1191 exec_prefix=$ac_optarg ;;
1192
1193 -gas | --gas | --ga | --g)
1194 # Obsolete; use --with-gas.
1195 with_gas=yes ;;
1196
1197 -help | --help | --hel | --he | -h)
1198 ac_init_help=long ;;
1199 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1200 ac_init_help=recursive ;;
1201 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1202 ac_init_help=short ;;
1203
1204 -host | --host | --hos | --ho)
1205 ac_prev=host_alias ;;
1206 -host=* | --host=* | --hos=* | --ho=*)
1207 host_alias=$ac_optarg ;;
1208
1209 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1210 ac_prev=htmldir ;;
1211 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1212 | --ht=*)
1213 htmldir=$ac_optarg ;;
1214
1215 -includedir | --includedir | --includedi | --included | --include \
1216 | --includ | --inclu | --incl | --inc)
1217 ac_prev=includedir ;;
1218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1219 | --includ=* | --inclu=* | --incl=* | --inc=*)
1220 includedir=$ac_optarg ;;
1221
1222 -infodir | --infodir | --infodi | --infod | --info | --inf)
1223 ac_prev=infodir ;;
1224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1225 infodir=$ac_optarg ;;
1226
1227 -libdir | --libdir | --libdi | --libd)
1228 ac_prev=libdir ;;
1229 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1230 libdir=$ac_optarg ;;
1231
1232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1233 | --libexe | --libex | --libe)
1234 ac_prev=libexecdir ;;
1235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1236 | --libexe=* | --libex=* | --libe=*)
1237 libexecdir=$ac_optarg ;;
1238
1239 -localedir | --localedir | --localedi | --localed | --locale)
1240 ac_prev=localedir ;;
1241 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1242 localedir=$ac_optarg ;;
1243
1244 -localstatedir | --localstatedir | --localstatedi | --localstated \
1245 | --localstate | --localstat | --localsta | --localst | --locals)
1246 ac_prev=localstatedir ;;
1247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1248 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1249 localstatedir=$ac_optarg ;;
1250
1251 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1252 ac_prev=mandir ;;
1253 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1254 mandir=$ac_optarg ;;
1255
1256 -nfp | --nfp | --nf)
1257 # Obsolete; use --without-fp.
1258 with_fp=no ;;
1259
1260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1261 | --no-cr | --no-c | -n)
1262 no_create=yes ;;
1263
1264 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1265 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1266 no_recursion=yes ;;
1267
1268 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1269 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1270 | --oldin | --oldi | --old | --ol | --o)
1271 ac_prev=oldincludedir ;;
1272 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1273 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1274 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1275 oldincludedir=$ac_optarg ;;
1276
1277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1278 ac_prev=prefix ;;
1279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1280 prefix=$ac_optarg ;;
1281
1282 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1283 | --program-pre | --program-pr | --program-p)
1284 ac_prev=program_prefix ;;
1285 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1286 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1287 program_prefix=$ac_optarg ;;
1288
1289 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1290 | --program-suf | --program-su | --program-s)
1291 ac_prev=program_suffix ;;
1292 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1294 program_suffix=$ac_optarg ;;
1295
1296 -program-transform-name | --program-transform-name \
1297 | --program-transform-nam | --program-transform-na \
1298 | --program-transform-n | --program-transform- \
1299 | --program-transform | --program-transfor \
1300 | --program-transfo | --program-transf \
1301 | --program-trans | --program-tran \
1302 | --progr-tra | --program-tr | --program-t)
1303 ac_prev=program_transform_name ;;
1304 -program-transform-name=* | --program-transform-name=* \
1305 | --program-transform-nam=* | --program-transform-na=* \
1306 | --program-transform-n=* | --program-transform-=* \
1307 | --program-transform=* | --program-transfor=* \
1308 | --program-transfo=* | --program-transf=* \
1309 | --program-trans=* | --program-tran=* \
1310 | --progr-tra=* | --program-tr=* | --program-t=*)
1311 program_transform_name=$ac_optarg ;;
1312
1313 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1314 ac_prev=pdfdir ;;
1315 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1316 pdfdir=$ac_optarg ;;
1317
1318 -psdir | --psdir | --psdi | --psd | --ps)
1319 ac_prev=psdir ;;
1320 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1321 psdir=$ac_optarg ;;
1322
1323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1324 | -silent | --silent | --silen | --sile | --sil)
1325 silent=yes ;;
1326
1327 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1328 ac_prev=sbindir ;;
1329 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1330 | --sbi=* | --sb=*)
1331 sbindir=$ac_optarg ;;
1332
1333 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1334 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1335 | --sharedst | --shareds | --shared | --share | --shar \
1336 | --sha | --sh)
1337 ac_prev=sharedstatedir ;;
1338 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1339 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1340 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1341 | --sha=* | --sh=*)
1342 sharedstatedir=$ac_optarg ;;
1343
1344 -site | --site | --sit)
1345 ac_prev=site ;;
1346 -site=* | --site=* | --sit=*)
1347 site=$ac_optarg ;;
1348
1349 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1350 ac_prev=srcdir ;;
1351 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1352 srcdir=$ac_optarg ;;
1353
1354 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1355 | --syscon | --sysco | --sysc | --sys | --sy)
1356 ac_prev=sysconfdir ;;
1357 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1358 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1359 sysconfdir=$ac_optarg ;;
1360
1361 -target | --target | --targe | --targ | --tar | --ta | --t)
1362 ac_prev=target_alias ;;
1363 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1364 target_alias=$ac_optarg ;;
1365
1366 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1367 verbose=yes ;;
1368
1369 -version | --version | --versio | --versi | --vers | -V)
1370 ac_init_version=: ;;
1371
1372 -with-* | --with-*)
1373 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1374 # Reject names that are not valid shell variable names.
1375 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1376 as_fn_error $? "invalid package name: $ac_useropt"
1377 ac_useropt_orig=$ac_useropt
1378 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1379 case $ac_user_opts in
1380 *"
1381 "with_$ac_useropt"
1382 "*) ;;
1383 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1384 ac_unrecognized_sep=', ';;
1385 esac
1386 eval with_$ac_useropt=\$ac_optarg ;;
1387
1388 -without-* | --without-*)
1389 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1390 # Reject names that are not valid shell variable names.
1391 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1392 as_fn_error $? "invalid package name: $ac_useropt"
1393 ac_useropt_orig=$ac_useropt
1394 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1395 case $ac_user_opts in
1396 *"
1397 "with_$ac_useropt"
1398 "*) ;;
1399 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1400 ac_unrecognized_sep=', ';;
1401 esac
1402 eval with_$ac_useropt=no ;;
1403
1404 --x)
1405 # Obsolete; use --with-x.
1406 with_x=yes ;;
1407
1408 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1409 | --x-incl | --x-inc | --x-in | --x-i)
1410 ac_prev=x_includes ;;
1411 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1412 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1413 x_includes=$ac_optarg ;;
1414
1415 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1416 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1417 ac_prev=x_libraries ;;
1418 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1419 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1420 x_libraries=$ac_optarg ;;
1421
1422 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1423 Try \`$0 --help' for more information"
1424 ;;
1425
1426 *=*)
1427 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1428 # Reject names that are not valid shell variable names.
1429 case $ac_envvar in #(
1430 '' | [0-9]* | *[!_$as_cr_alnum]* )
1431 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1432 esac
1433 eval $ac_envvar=\$ac_optarg
1434 export $ac_envvar ;;
1435
1436 *)
1437 # FIXME: should be removed in autoconf 3.0.
1438 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1439 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1440 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1441 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1442 ;;
1443
1444 esac
1445 done
1446
1447 if test -n "$ac_prev"; then
1448 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1449 as_fn_error $? "missing argument to $ac_option"
1450 fi
1451
1452 if test -n "$ac_unrecognized_opts"; then
1453 case $enable_option_checking in
1454 no) ;;
1455 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1456 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1457 esac
1458 fi
1459
1460 # Check all directory arguments for consistency.
1461 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1462 datadir sysconfdir sharedstatedir localstatedir includedir \
1463 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1464 libdir localedir mandir
1465 do
1466 eval ac_val=\$$ac_var
1467 # Remove trailing slashes.
1468 case $ac_val in
1469 */ )
1470 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1471 eval $ac_var=\$ac_val;;
1472 esac
1473 # Be sure to have absolute directory names.
1474 case $ac_val in
1475 [\\/$]* | ?:[\\/]* ) continue;;
1476 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1477 esac
1478 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1479 done
1480
1481 # There might be people who depend on the old broken behavior: `$host'
1482 # used to hold the argument of --host etc.
1483 # FIXME: To remove some day.
1484 build=$build_alias
1485 host=$host_alias
1486 target=$target_alias
1487
1488 # FIXME: To remove some day.
1489 if test "x$host_alias" != x; then
1490 if test "x$build_alias" = x; then
1491 cross_compiling=maybe
1492 elif test "x$build_alias" != "x$host_alias"; then
1493 cross_compiling=yes
1494 fi
1495 fi
1496
1497 ac_tool_prefix=
1498 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1499
1500 test "$silent" = yes && exec 6>/dev/null
1501
1502
1503 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1504 ac_ls_di=`ls -di .` &&
1505 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1506 as_fn_error $? "working directory cannot be determined"
1507 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1508 as_fn_error $? "pwd does not report name of working directory"
1509
1510
1511 # Find the source files, if location was not specified.
1512 if test -z "$srcdir"; then
1513 ac_srcdir_defaulted=yes
1514 # Try the directory containing this script, then the parent directory.
1515 ac_confdir=`$as_dirname -- "$as_myself" ||
1516 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1517 X"$as_myself" : 'X\(//\)[^/]' \| \
1518 X"$as_myself" : 'X\(//\)$' \| \
1519 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1520 $as_echo X"$as_myself" |
1521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1522 s//\1/
1523 q
1524 }
1525 /^X\(\/\/\)[^/].*/{
1526 s//\1/
1527 q
1528 }
1529 /^X\(\/\/\)$/{
1530 s//\1/
1531 q
1532 }
1533 /^X\(\/\).*/{
1534 s//\1/
1535 q
1536 }
1537 s/.*/./; q'`
1538 srcdir=$ac_confdir
1539 if test ! -r "$srcdir/$ac_unique_file"; then
1540 srcdir=..
1541 fi
1542 else
1543 ac_srcdir_defaulted=no
1544 fi
1545 if test ! -r "$srcdir/$ac_unique_file"; then
1546 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1547 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1548 fi
1549 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1550 ac_abs_confdir=`(
1551 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1552 pwd)`
1553 # When building in place, set srcdir=.
1554 if test "$ac_abs_confdir" = "$ac_pwd"; then
1555 srcdir=.
1556 fi
1557 # Remove unnecessary trailing slashes from srcdir.
1558 # Double slashes in file names in object file debugging info
1559 # mess up M-x gdb in Emacs.
1560 case $srcdir in
1561 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1562 esac
1563 for ac_var in $ac_precious_vars; do
1564 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1565 eval ac_env_${ac_var}_value=\$${ac_var}
1566 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1567 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1568 done
1569
1570 #
1571 # Report the --help message.
1572 #
1573 if test "$ac_init_help" = "long"; then
1574 # Omit some internal or obsolete options to make the list less imposing.
1575 # This message is too long to be a string in the A/UX 3.1 sh.
1576 cat <<_ACEOF
1577 \`configure' configures this package to adapt to many kinds of systems.
1578
1579 Usage: $0 [OPTION]... [VAR=VALUE]...
1580
1581 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1582 VAR=VALUE. See below for descriptions of some of the useful variables.
1583
1584 Defaults for the options are specified in brackets.
1585
1586 Configuration:
1587 -h, --help display this help and exit
1588 --help=short display options specific to this package
1589 --help=recursive display the short help of all the included packages
1590 -V, --version display version information and exit
1591 -q, --quiet, --silent do not print \`checking ...' messages
1592 --cache-file=FILE cache test results in FILE [disabled]
1593 -C, --config-cache alias for \`--cache-file=config.cache'
1594 -n, --no-create do not create output files
1595 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1596
1597 Installation directories:
1598 --prefix=PREFIX install architecture-independent files in PREFIX
1599 [$ac_default_prefix]
1600 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1601 [PREFIX]
1602
1603 By default, \`make install' will install all the files in
1604 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1605 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1606 for instance \`--prefix=\$HOME'.
1607
1608 For better control, use the options below.
1609
1610 Fine tuning of the installation directories:
1611 --bindir=DIR user executables [EPREFIX/bin]
1612 --sbindir=DIR system admin executables [EPREFIX/sbin]
1613 --libexecdir=DIR program executables [EPREFIX/libexec]
1614 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1615 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1616 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1617 --libdir=DIR object code libraries [EPREFIX/lib]
1618 --includedir=DIR C header files [PREFIX/include]
1619 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1620 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1621 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1622 --infodir=DIR info documentation [DATAROOTDIR/info]
1623 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1624 --mandir=DIR man documentation [DATAROOTDIR/man]
1625 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1626 --htmldir=DIR html documentation [DOCDIR]
1627 --dvidir=DIR dvi documentation [DOCDIR]
1628 --pdfdir=DIR pdf documentation [DOCDIR]
1629 --psdir=DIR ps documentation [DOCDIR]
1630 _ACEOF
1631
1632 cat <<\_ACEOF
1633
1634 Program names:
1635 --program-prefix=PREFIX prepend PREFIX to installed program names
1636 --program-suffix=SUFFIX append SUFFIX to installed program names
1637 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1638
1639 System types:
1640 --build=BUILD configure for building on BUILD [guessed]
1641 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1642 --target=TARGET configure for building compilers for TARGET [HOST]
1643 _ACEOF
1644 fi
1645
1646 if test -n "$ac_init_help"; then
1647
1648 cat <<\_ACEOF
1649
1650 Optional Features:
1651 --disable-option-checking ignore unrecognized --enable/--with options
1652 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1653 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1654 --enable-generated-files-in-srcdir
1655 put copies of generated files in source dir intended
1656 for creating source tarballs for users without
1657 texinfo bison or flex
1658 --disable-largefile omit support for large files
1659 --disable-build-format-warnings
1660 don't use -Wformat while building GCC
1661 --enable-werror-always enable -Werror despite compiler version
1662 --enable-checking[=LIST]
1663 enable expensive run-time checks. With LIST, enable
1664 only specific categories of checks. Categories are:
1665 yes,no,all,none,release. Flags are:
1666 assert,df,extra,fold,gc,gcac,gimple,misc,
1667 rtlflag,rtl,runtime,tree,valgrind,types
1668 --enable-coverage[=LEVEL]
1669 enable compiler's code coverage collection. Use to
1670 measure compiler performance and locate unused parts
1671 of the compiler. With LEVEL, specify optimization.
1672 Values are opt, noopt, default is noopt
1673 --enable-gather-detailed-mem-stats
1674 enable detailed memory allocation stats gathering
1675 --enable-valgrind-annotations
1676 enable valgrind runtime interaction
1677 --enable-multilib enable library support for multiple ABIs
1678 --enable-multiarch enable support for multiarch paths
1679 --enable-__cxa_atexit enable __cxa_atexit for C++
1680 --enable-decimal-float={no,yes,bid,dpd}
1681 enable decimal float extension to C. Selecting 'bid'
1682 or 'dpd' choses which decimal floating point format
1683 to use
1684 --enable-fixed-point enable fixed-point arithmetic extension to C
1685 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1686 package
1687 --enable-tls enable or disable generation of tls code overriding
1688 the assembler check for tls support
1689 --enable-vtable-verify enable vtable verification feature
1690 --disable-analyzer disable -fanalyzer static analyzer
1691 --enable-objc-gc enable the use of Boehm's garbage collector with the
1692 GNU Objective-C runtime
1693 --disable-shared don't provide a shared libgcc
1694 --disable-gcov don't provide libgcov and related host tools
1695 --enable-languages=LIST specify which front-ends to build
1696 --disable-rpath do not hardcode runtime library paths
1697 --enable-sjlj-exceptions
1698 arrange to use setjmp/longjmp exception handling
1699 --enable-secureplt enable -msecure-plt by default for PowerPC
1700 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1701 Default to platform configuration
1702 --enable-large-address-aware
1703 Link mingw executables with --large-address-aware
1704 --enable-leading-mingw64-underscores
1705 enable leading underscores on 64 bit mingw targets
1706 --enable-cld enable -mcld by default for 32bit x86
1707 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1708 --disable-win32-registry
1709 disable lookup of installation paths in the Registry
1710 on Windows hosts
1711 --enable-win32-registry enable registry lookup (default)
1712 --enable-win32-registry=KEY
1713 use KEY instead of GCC version as the last portion
1714 of the registry key
1715 --enable-shared[=PKGS] build shared libraries [default=yes]
1716 --enable-static[=PKGS] build static libraries [default=yes]
1717 --enable-fast-install[=PKGS]
1718 optimize for fast installation [default=yes]
1719 --disable-libtool-lock avoid locking (might break parallel builds)
1720 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1721 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1722 --enable-gnu-indirect-function
1723 enable the use of the @gnu_indirect_function to
1724 glibc systems
1725 --enable-initfini-array use .init_array/.fini_array sections
1726 --enable-comdat enable COMDAT group support
1727 --enable-newlib-nano-formatted-io
1728 Use nano version formatted IO
1729
1730 --enable-standard-branch-protection
1731 enable Branch Target Identification Mechanism and
1732 Return Address Signing by default for AArch64
1733 --disable-standard-branch-protection
1734 disable Branch Target Identification Mechanism and
1735 Return Address Signing by default for AArch64
1736
1737
1738 --enable-fix-cortex-a53-835769
1739 enable workaround for AArch64 Cortex-A53 erratum
1740 835769 by default
1741 --disable-fix-cortex-a53-835769
1742 disable workaround for AArch64 Cortex-A53 erratum
1743 835769 by default
1744
1745
1746 --enable-fix-cortex-a53-843419
1747 enable workaround for AArch64 Cortex-A53 erratum
1748 843419 by default
1749 --disable-fix-cortex-a53-843419
1750 disable workaround for AArch64 Cortex-A53 erratum
1751 843419 by default
1752
1753 --enable-gnu-unique-object
1754 enable the use of the @gnu_unique_object ELF
1755 extension on glibc systems
1756 --enable-linker-build-id
1757 compiler will always pass --build-id to linker
1758 --enable-libssp enable linking against libssp
1759 --enable-default-ssp enable Stack Smashing Protection as default
1760 --enable-maintainer-mode
1761 enable make rules and dependencies not useful (and
1762 sometimes confusing) to the casual installer
1763 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1764 thrashing on the build machine
1765 --enable-version-specific-runtime-libs
1766 specify that runtime libraries should be installed
1767 in a compiler-specific directory
1768 --enable-plugin enable plugin support
1769 --enable-host-shared build host code as shared libraries
1770 --disable-libquadmath-support
1771 disable libquadmath support for Fortran
1772 --enable-default-pie enable Position Independent Executable as default
1773
1774 Optional Packages:
1775 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1776 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1777 --with-build-libsubdir=DIR Directory where to find libraries for build system
1778 --with-local-prefix=DIR specifies directory to put local include
1779 --with-native-system-header-dir=dir
1780 use dir as the directory to look for standard
1781 system header files in. Defaults to /usr/include.
1782 --with-build-sysroot=sysroot
1783 use sysroot as the system root during the build
1784 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1785 --with-gxx-include-dir=DIR
1786 specifies directory to put g++ header files
1787 --with-cpp-install-dir=DIR
1788 install the user visible C preprocessor in DIR
1789 (relative to PREFIX) as well as PREFIX/bin
1790 --with-gnu-ld arrange to work with GNU ld
1791 --with-ld arrange to use the specified ld (full pathname)
1792 --with-demangler-in-ld try to use demangler in GNU ld
1793 --with-gnu-as arrange to work with GNU as
1794 --with-as arrange to use the specified as (full pathname)
1795 --with-stabs arrange to use stabs instead of host debug format
1796 --with-stack-clash-protection-guard-size=size
1797 Set the default stack clash protection guard size
1798 for specific targets as a power of two in bytes.
1799 --with-dwarf2 force the default debug format to be DWARF 2
1800 --with-specs=SPECS add SPECS to driver command-line processing
1801 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1802 --with-bugurl=URL Direct users to URL to report a bug
1803 --with-documentation-root-url=URL
1804 Root for documentation URLs
1805 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1806 --with-zstd=PATH specify prefix directory for installed zstd library.
1807 Equivalent to --with-zstd-include=PATH/include plus
1808 --with-zstd-lib=PATH/lib
1809 --with-zstd-include=PATH
1810 specify directory for installed zstd include files
1811 --with-zstd-lib=PATH specify directory for the installed zstd library
1812 --with-gnu-ld assume the C compiler uses GNU ld default=no
1813 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1814 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1815 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1816 --with-gcc-major-version-only
1817 use only GCC major number in filesystem paths
1818 --with-pic try to use only PIC/non-PIC objects [default=use
1819 both]
1820 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1821 --with-plugin-ld=[ARG] specify the plugin linker
1822 --with-glibc-version=M.N
1823 assume GCC used with glibc version M.N or later
1824 --with-long-double-128 use 128-bit long double by default
1825 --with-long-double-format={ieee,ibm}
1826 Specify whether PowerPC long double uses IEEE or IBM format
1827
1828 --with-gc={page,zone} this option is not supported anymore. It used to
1829 choose the garbage collection mechanism to use with
1830 the compiler
1831 --with-system-zlib use installed libz
1832 --with-linker-hash-style={sysv,gnu,both}
1833 specify the linker hash style
1834 --with-diagnostics-color={never,auto,auto-if-env,always}
1835 specify the default of -fdiagnostics-color option
1836 auto-if-env stands for -fdiagnostics-color=auto if
1837 GCC_COLOR environment variable is present and
1838 -fdiagnostics-color=never otherwise
1839
1840 Some influential environment variables:
1841 CC C compiler command
1842 CFLAGS C compiler flags
1843 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1844 nonstandard directory <lib dir>
1845 LIBS libraries to pass to the linker, e.g. -l<library>
1846 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1847 you have headers in a nonstandard directory <include dir>
1848 CXX C++ compiler command
1849 CXXFLAGS C++ compiler flags
1850 CXXCPP C++ preprocessor
1851 CPP C preprocessor
1852 GMPLIBS How to link GMP
1853 GMPINC How to find GMP include files
1854 ISLLIBS How to link isl
1855 ISLINC How to find isl include files
1856
1857 Use these variables to override the choices made by `configure' or to help
1858 it to find libraries and programs with nonstandard names/locations.
1859
1860 Report bugs to the package provider.
1861 _ACEOF
1862 ac_status=$?
1863 fi
1864
1865 if test "$ac_init_help" = "recursive"; then
1866 # If there are subdirs, report their specific --help.
1867 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1868 test -d "$ac_dir" ||
1869 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1870 continue
1871 ac_builddir=.
1872
1873 case "$ac_dir" in
1874 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1875 *)
1876 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1877 # A ".." for each directory in $ac_dir_suffix.
1878 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1879 case $ac_top_builddir_sub in
1880 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1881 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1882 esac ;;
1883 esac
1884 ac_abs_top_builddir=$ac_pwd
1885 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1886 # for backward compatibility:
1887 ac_top_builddir=$ac_top_build_prefix
1888
1889 case $srcdir in
1890 .) # We are building in place.
1891 ac_srcdir=.
1892 ac_top_srcdir=$ac_top_builddir_sub
1893 ac_abs_top_srcdir=$ac_pwd ;;
1894 [\\/]* | ?:[\\/]* ) # Absolute name.
1895 ac_srcdir=$srcdir$ac_dir_suffix;
1896 ac_top_srcdir=$srcdir
1897 ac_abs_top_srcdir=$srcdir ;;
1898 *) # Relative name.
1899 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1900 ac_top_srcdir=$ac_top_build_prefix$srcdir
1901 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1902 esac
1903 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1904
1905 cd "$ac_dir" || { ac_status=$?; continue; }
1906 # Check for guested configure.
1907 if test -f "$ac_srcdir/configure.gnu"; then
1908 echo &&
1909 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1910 elif test -f "$ac_srcdir/configure"; then
1911 echo &&
1912 $SHELL "$ac_srcdir/configure" --help=recursive
1913 else
1914 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1915 fi || ac_status=$?
1916 cd "$ac_pwd" || { ac_status=$?; break; }
1917 done
1918 fi
1919
1920 test -n "$ac_init_help" && exit $ac_status
1921 if $ac_init_version; then
1922 cat <<\_ACEOF
1923 configure
1924 generated by GNU Autoconf 2.69
1925
1926 Copyright (C) 2012 Free Software Foundation, Inc.
1927 This configure script is free software; the Free Software Foundation
1928 gives unlimited permission to copy, distribute and modify it.
1929 _ACEOF
1930 exit
1931 fi
1932
1933 ## ------------------------ ##
1934 ## Autoconf initialization. ##
1935 ## ------------------------ ##
1936
1937 # ac_fn_c_try_compile LINENO
1938 # --------------------------
1939 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1940 ac_fn_c_try_compile ()
1941 {
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 rm -f conftest.$ac_objext
1944 if { { ac_try="$ac_compile"
1945 case "(($ac_try" in
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1948 esac
1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_compile") 2>conftest.err
1952 ac_status=$?
1953 if test -s conftest.err; then
1954 grep -v '^ *+' conftest.err >conftest.er1
1955 cat conftest.er1 >&5
1956 mv -f conftest.er1 conftest.err
1957 fi
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } && {
1960 test -z "$ac_c_werror_flag" ||
1961 test ! -s conftest.err
1962 } && test -s conftest.$ac_objext; then :
1963 ac_retval=0
1964 else
1965 $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1967
1968 ac_retval=1
1969 fi
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 as_fn_set_status $ac_retval
1972
1973 } # ac_fn_c_try_compile
1974
1975 # ac_fn_cxx_try_compile LINENO
1976 # ----------------------------
1977 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1978 ac_fn_cxx_try_compile ()
1979 {
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 rm -f conftest.$ac_objext
1982 if { { ac_try="$ac_compile"
1983 case "(($ac_try" in
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1986 esac
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_compile") 2>conftest.err
1990 ac_status=$?
1991 if test -s conftest.err; then
1992 grep -v '^ *+' conftest.err >conftest.er1
1993 cat conftest.er1 >&5
1994 mv -f conftest.er1 conftest.err
1995 fi
1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; } && {
1998 test -z "$ac_cxx_werror_flag" ||
1999 test ! -s conftest.err
2000 } && test -s conftest.$ac_objext; then :
2001 ac_retval=0
2002 else
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2005
2006 ac_retval=1
2007 fi
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 as_fn_set_status $ac_retval
2010
2011 } # ac_fn_cxx_try_compile
2012
2013 # ac_fn_cxx_try_cpp LINENO
2014 # ------------------------
2015 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2016 ac_fn_cxx_try_cpp ()
2017 {
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 if { { ac_try="$ac_cpp conftest.$ac_ext"
2020 case "(($ac_try" in
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2023 esac
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2027 ac_status=$?
2028 if test -s conftest.err; then
2029 grep -v '^ *+' conftest.err >conftest.er1
2030 cat conftest.er1 >&5
2031 mv -f conftest.er1 conftest.err
2032 fi
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } > conftest.i && {
2035 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2036 test ! -s conftest.err
2037 }; then :
2038 ac_retval=0
2039 else
2040 $as_echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2042
2043 ac_retval=1
2044 fi
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 as_fn_set_status $ac_retval
2047
2048 } # ac_fn_cxx_try_cpp
2049
2050 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2051 # ---------------------------------------------------------
2052 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2053 # the include files in INCLUDES and setting the cache variable VAR
2054 # accordingly.
2055 ac_fn_cxx_check_header_mongrel ()
2056 {
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 if eval \${$3+:} false; then :
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if eval \${$3+:} false; then :
2062 $as_echo_n "(cached) " >&6
2063 fi
2064 eval ac_res=\$$3
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 $as_echo "$ac_res" >&6; }
2067 else
2068 # Is the header compilable?
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2070 $as_echo_n "checking $2 usability... " >&6; }
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2073 $4
2074 #include <$2>
2075 _ACEOF
2076 if ac_fn_cxx_try_compile "$LINENO"; then :
2077 ac_header_compiler=yes
2078 else
2079 ac_header_compiler=no
2080 fi
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2083 $as_echo "$ac_header_compiler" >&6; }
2084
2085 # Is the header present?
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2087 $as_echo_n "checking $2 presence... " >&6; }
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2090 #include <$2>
2091 _ACEOF
2092 if ac_fn_cxx_try_cpp "$LINENO"; then :
2093 ac_header_preproc=yes
2094 else
2095 ac_header_preproc=no
2096 fi
2097 rm -f conftest.err conftest.i conftest.$ac_ext
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2099 $as_echo "$ac_header_preproc" >&6; }
2100
2101 # So? What about this header?
2102 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2103 yes:no: )
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2105 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2107 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2108 ;;
2109 no:yes:* )
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2111 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2113 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2115 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2117 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2119 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2120 ;;
2121 esac
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123 $as_echo_n "checking for $2... " >&6; }
2124 if eval \${$3+:} false; then :
2125 $as_echo_n "(cached) " >&6
2126 else
2127 eval "$3=\$ac_header_compiler"
2128 fi
2129 eval ac_res=\$$3
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2132 fi
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134
2135 } # ac_fn_cxx_check_header_mongrel
2136
2137 # ac_fn_cxx_try_run LINENO
2138 # ------------------------
2139 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2140 # that executables *can* be run.
2141 ac_fn_cxx_try_run ()
2142 {
2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2144 if { { ac_try="$ac_link"
2145 case "(($ac_try" in
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2148 esac
2149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2150 $as_echo "$ac_try_echo"; } >&5
2151 (eval "$ac_link") 2>&5
2152 ac_status=$?
2153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2155 { { case "(($ac_try" in
2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157 *) ac_try_echo=$ac_try;;
2158 esac
2159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2160 $as_echo "$ac_try_echo"; } >&5
2161 (eval "$ac_try") 2>&5
2162 ac_status=$?
2163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2164 test $ac_status = 0; }; }; then :
2165 ac_retval=0
2166 else
2167 $as_echo "$as_me: program exited with status $ac_status" >&5
2168 $as_echo "$as_me: failed program was:" >&5
2169 sed 's/^/| /' conftest.$ac_ext >&5
2170
2171 ac_retval=$ac_status
2172 fi
2173 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175 as_fn_set_status $ac_retval
2176
2177 } # ac_fn_cxx_try_run
2178
2179 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2180 # ---------------------------------------------------------
2181 # Tests whether HEADER exists and can be compiled using the include files in
2182 # INCLUDES, setting the cache variable VAR accordingly.
2183 ac_fn_cxx_check_header_compile ()
2184 {
2185 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2187 $as_echo_n "checking for $2... " >&6; }
2188 if eval \${$3+:} false; then :
2189 $as_echo_n "(cached) " >&6
2190 else
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2193 $4
2194 #include <$2>
2195 _ACEOF
2196 if ac_fn_cxx_try_compile "$LINENO"; then :
2197 eval "$3=yes"
2198 else
2199 eval "$3=no"
2200 fi
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 fi
2203 eval ac_res=\$$3
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2205 $as_echo "$ac_res" >&6; }
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207
2208 } # ac_fn_cxx_check_header_compile
2209
2210 # ac_fn_c_try_cpp LINENO
2211 # ----------------------
2212 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2213 ac_fn_c_try_cpp ()
2214 {
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 if { { ac_try="$ac_cpp conftest.$ac_ext"
2217 case "(($ac_try" in
2218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219 *) ac_try_echo=$ac_try;;
2220 esac
2221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2222 $as_echo "$ac_try_echo"; } >&5
2223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2224 ac_status=$?
2225 if test -s conftest.err; then
2226 grep -v '^ *+' conftest.err >conftest.er1
2227 cat conftest.er1 >&5
2228 mv -f conftest.er1 conftest.err
2229 fi
2230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2231 test $ac_status = 0; } > conftest.i && {
2232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2233 test ! -s conftest.err
2234 }; then :
2235 ac_retval=0
2236 else
2237 $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240 ac_retval=1
2241 fi
2242 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2243 as_fn_set_status $ac_retval
2244
2245 } # ac_fn_c_try_cpp
2246
2247 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2248 # ----------------------------------------------
2249 # Tries to find the compile-time value of EXPR in a program that includes
2250 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2251 # computed
2252 ac_fn_cxx_compute_int ()
2253 {
2254 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2255 if test "$cross_compiling" = yes; then
2256 # Depending upon the size, compute the lo and hi bounds.
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2259 $4
2260 int
2261 main ()
2262 {
2263 static int test_array [1 - 2 * !(($2) >= 0)];
2264 test_array [0] = 0;
2265 return test_array [0];
2266
2267 ;
2268 return 0;
2269 }
2270 _ACEOF
2271 if ac_fn_cxx_try_compile "$LINENO"; then :
2272 ac_lo=0 ac_mid=0
2273 while :; do
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2276 $4
2277 int
2278 main ()
2279 {
2280 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2281 test_array [0] = 0;
2282 return test_array [0];
2283
2284 ;
2285 return 0;
2286 }
2287 _ACEOF
2288 if ac_fn_cxx_try_compile "$LINENO"; then :
2289 ac_hi=$ac_mid; break
2290 else
2291 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2292 if test $ac_lo -le $ac_mid; then
2293 ac_lo= ac_hi=
2294 break
2295 fi
2296 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 done
2300 else
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2303 $4
2304 int
2305 main ()
2306 {
2307 static int test_array [1 - 2 * !(($2) < 0)];
2308 test_array [0] = 0;
2309 return test_array [0];
2310
2311 ;
2312 return 0;
2313 }
2314 _ACEOF
2315 if ac_fn_cxx_try_compile "$LINENO"; then :
2316 ac_hi=-1 ac_mid=-1
2317 while :; do
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2320 $4
2321 int
2322 main ()
2323 {
2324 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2325 test_array [0] = 0;
2326 return test_array [0];
2327
2328 ;
2329 return 0;
2330 }
2331 _ACEOF
2332 if ac_fn_cxx_try_compile "$LINENO"; then :
2333 ac_lo=$ac_mid; break
2334 else
2335 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2336 if test $ac_mid -le $ac_hi; then
2337 ac_lo= ac_hi=
2338 break
2339 fi
2340 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2341 fi
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 done
2344 else
2345 ac_lo= ac_hi=
2346 fi
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 fi
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 # Binary search between lo and hi bounds.
2351 while test "x$ac_lo" != "x$ac_hi"; do
2352 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2355 $4
2356 int
2357 main ()
2358 {
2359 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2360 test_array [0] = 0;
2361 return test_array [0];
2362
2363 ;
2364 return 0;
2365 }
2366 _ACEOF
2367 if ac_fn_cxx_try_compile "$LINENO"; then :
2368 ac_hi=$ac_mid
2369 else
2370 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2371 fi
2372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 done
2374 case $ac_lo in #((
2375 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2376 '') ac_retval=1 ;;
2377 esac
2378 else
2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h. */
2381 $4
2382 static long int longval () { return $2; }
2383 static unsigned long int ulongval () { return $2; }
2384 #include <stdio.h>
2385 #include <stdlib.h>
2386 int
2387 main ()
2388 {
2389
2390 FILE *f = fopen ("conftest.val", "w");
2391 if (! f)
2392 return 1;
2393 if (($2) < 0)
2394 {
2395 long int i = longval ();
2396 if (i != ($2))
2397 return 1;
2398 fprintf (f, "%ld", i);
2399 }
2400 else
2401 {
2402 unsigned long int i = ulongval ();
2403 if (i != ($2))
2404 return 1;
2405 fprintf (f, "%lu", i);
2406 }
2407 /* Do not output a trailing newline, as this causes \r\n confusion
2408 on some platforms. */
2409 return ferror (f) || fclose (f) != 0;
2410
2411 ;
2412 return 0;
2413 }
2414 _ACEOF
2415 if ac_fn_cxx_try_run "$LINENO"; then :
2416 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2417 else
2418 ac_retval=1
2419 fi
2420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2421 conftest.$ac_objext conftest.beam conftest.$ac_ext
2422 rm -f conftest.val
2423
2424 fi
2425 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2426 as_fn_set_status $ac_retval
2427
2428 } # ac_fn_cxx_compute_int
2429
2430 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2431 # ---------------------------------------------
2432 # Tests whether TYPE exists after having included INCLUDES, setting cache
2433 # variable VAR accordingly.
2434 ac_fn_cxx_check_type ()
2435 {
2436 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2438 $as_echo_n "checking for $2... " >&6; }
2439 if eval \${$3+:} false; then :
2440 $as_echo_n "(cached) " >&6
2441 else
2442 eval "$3=no"
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2445 $4
2446 int
2447 main ()
2448 {
2449 if (sizeof ($2))
2450 return 0;
2451 ;
2452 return 0;
2453 }
2454 _ACEOF
2455 if ac_fn_cxx_try_compile "$LINENO"; then :
2456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457 /* end confdefs.h. */
2458 $4
2459 int
2460 main ()
2461 {
2462 if (sizeof (($2)))
2463 return 0;
2464 ;
2465 return 0;
2466 }
2467 _ACEOF
2468 if ac_fn_cxx_try_compile "$LINENO"; then :
2469
2470 else
2471 eval "$3=yes"
2472 fi
2473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2474 fi
2475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2476 fi
2477 eval ac_res=\$$3
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2479 $as_echo "$ac_res" >&6; }
2480 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2481
2482 } # ac_fn_cxx_check_type
2483
2484 # ac_fn_c_find_intX_t LINENO BITS VAR
2485 # -----------------------------------
2486 # Finds a signed integer type with width BITS, setting cache variable VAR
2487 # accordingly.
2488 ac_fn_c_find_intX_t ()
2489 {
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2492 $as_echo_n "checking for int$2_t... " >&6; }
2493 if eval \${$3+:} false; then :
2494 $as_echo_n "(cached) " >&6
2495 else
2496 eval "$3=no"
2497 # Order is important - never check a type that is potentially smaller
2498 # than half of the expected target width.
2499 for ac_type in int$2_t 'int' 'long int' \
2500 'long long int' 'short int' 'signed char'; do
2501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2502 /* end confdefs.h. */
2503 $ac_includes_default
2504 enum { N = $2 / 2 - 1 };
2505 int
2506 main ()
2507 {
2508 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2509 test_array [0] = 0;
2510 return test_array [0];
2511
2512 ;
2513 return 0;
2514 }
2515 _ACEOF
2516 if ac_fn_cxx_try_compile "$LINENO"; then :
2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h. */
2519 $ac_includes_default
2520 enum { N = $2 / 2 - 1 };
2521 int
2522 main ()
2523 {
2524 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2525 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2526 test_array [0] = 0;
2527 return test_array [0];
2528
2529 ;
2530 return 0;
2531 }
2532 _ACEOF
2533 if ac_fn_cxx_try_compile "$LINENO"; then :
2534
2535 else
2536 case $ac_type in #(
2537 int$2_t) :
2538 eval "$3=yes" ;; #(
2539 *) :
2540 eval "$3=\$ac_type" ;;
2541 esac
2542 fi
2543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2544 fi
2545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546 if eval test \"x\$"$3"\" = x"no"; then :
2547
2548 else
2549 break
2550 fi
2551 done
2552 fi
2553 eval ac_res=\$$3
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555 $as_echo "$ac_res" >&6; }
2556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2557
2558 } # ac_fn_c_find_intX_t
2559
2560 # ac_fn_cxx_try_link LINENO
2561 # -------------------------
2562 # Try to link conftest.$ac_ext, and return whether this succeeded.
2563 ac_fn_cxx_try_link ()
2564 {
2565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566 rm -f conftest.$ac_objext conftest$ac_exeext
2567 if { { ac_try="$ac_link"
2568 case "(($ac_try" in
2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 *) ac_try_echo=$ac_try;;
2571 esac
2572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2573 $as_echo "$ac_try_echo"; } >&5
2574 (eval "$ac_link") 2>conftest.err
2575 ac_status=$?
2576 if test -s conftest.err; then
2577 grep -v '^ *+' conftest.err >conftest.er1
2578 cat conftest.er1 >&5
2579 mv -f conftest.er1 conftest.err
2580 fi
2581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2582 test $ac_status = 0; } && {
2583 test -z "$ac_cxx_werror_flag" ||
2584 test ! -s conftest.err
2585 } && test -s conftest$ac_exeext && {
2586 test "$cross_compiling" = yes ||
2587 test -x conftest$ac_exeext
2588 }; then :
2589 ac_retval=0
2590 else
2591 $as_echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593
2594 ac_retval=1
2595 fi
2596 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2597 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2598 # interfere with the next link command; also delete a directory that is
2599 # left behind by Apple's compiler. We do this before executing the actions.
2600 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2602 as_fn_set_status $ac_retval
2603
2604 } # ac_fn_cxx_try_link
2605
2606 # ac_fn_c_find_uintX_t LINENO BITS VAR
2607 # ------------------------------------
2608 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2609 # accordingly.
2610 ac_fn_c_find_uintX_t ()
2611 {
2612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2614 $as_echo_n "checking for uint$2_t... " >&6; }
2615 if eval \${$3+:} false; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 eval "$3=no"
2619 # Order is important - never check a type that is potentially smaller
2620 # than half of the expected target width.
2621 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2622 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2625 $ac_includes_default
2626 int
2627 main ()
2628 {
2629 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2630 test_array [0] = 0;
2631 return test_array [0];
2632
2633 ;
2634 return 0;
2635 }
2636 _ACEOF
2637 if ac_fn_cxx_try_compile "$LINENO"; then :
2638 case $ac_type in #(
2639 uint$2_t) :
2640 eval "$3=yes" ;; #(
2641 *) :
2642 eval "$3=\$ac_type" ;;
2643 esac
2644 fi
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 if eval test \"x\$"$3"\" = x"no"; then :
2647
2648 else
2649 break
2650 fi
2651 done
2652 fi
2653 eval ac_res=\$$3
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2655 $as_echo "$ac_res" >&6; }
2656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2657
2658 } # ac_fn_c_find_uintX_t
2659
2660 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2661 # ------------------------------------------------
2662 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2663 ac_fn_cxx_check_header_preproc ()
2664 {
2665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2667 $as_echo_n "checking for $2... " >&6; }
2668 if eval \${$3+:} false; then :
2669 $as_echo_n "(cached) " >&6
2670 else
2671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2672 /* end confdefs.h. */
2673 #include <$2>
2674 _ACEOF
2675 if ac_fn_cxx_try_cpp "$LINENO"; then :
2676 eval "$3=yes"
2677 else
2678 eval "$3=no"
2679 fi
2680 rm -f conftest.err conftest.i conftest.$ac_ext
2681 fi
2682 eval ac_res=\$$3
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2684 $as_echo "$ac_res" >&6; }
2685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2686
2687 } # ac_fn_cxx_check_header_preproc
2688
2689 # ac_fn_cxx_check_func LINENO FUNC VAR
2690 # ------------------------------------
2691 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2692 ac_fn_cxx_check_func ()
2693 {
2694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2696 $as_echo_n "checking for $2... " >&6; }
2697 if eval \${$3+:} false; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701 /* end confdefs.h. */
2702 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2704 #define $2 innocuous_$2
2705
2706 /* System header to define __stub macros and hopefully few prototypes,
2707 which can conflict with char $2 (); below.
2708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2709 <limits.h> exists even on freestanding compilers. */
2710
2711 #ifdef __STDC__
2712 # include <limits.h>
2713 #else
2714 # include <assert.h>
2715 #endif
2716
2717 #undef $2
2718
2719 /* Override any GCC internal prototype to avoid an error.
2720 Use char because int might match the return type of a GCC
2721 builtin and then its argument prototype would still apply. */
2722 #ifdef __cplusplus
2723 extern "C"
2724 #endif
2725 char $2 ();
2726 /* The GNU C library defines this for functions which it implements
2727 to always fail with ENOSYS. Some functions are actually named
2728 something starting with __ and the normal name is an alias. */
2729 #if defined __stub_$2 || defined __stub___$2
2730 choke me
2731 #endif
2732
2733 int
2734 main ()
2735 {
2736 return $2 ();
2737 ;
2738 return 0;
2739 }
2740 _ACEOF
2741 if ac_fn_cxx_try_link "$LINENO"; then :
2742 eval "$3=yes"
2743 else
2744 eval "$3=no"
2745 fi
2746 rm -f core conftest.err conftest.$ac_objext \
2747 conftest$ac_exeext conftest.$ac_ext
2748 fi
2749 eval ac_res=\$$3
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2751 $as_echo "$ac_res" >&6; }
2752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2753
2754 } # ac_fn_cxx_check_func
2755
2756 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2757 # -----------------------------------------------
2758 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2759 # accordingly.
2760 ac_fn_cxx_check_decl ()
2761 {
2762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2763 as_decl_name=`echo $2|sed 's/ *(.*//'`
2764 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2766 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2767 if eval \${$3+:} false; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2771 /* end confdefs.h. */
2772 $4
2773 int
2774 main ()
2775 {
2776 #ifndef $as_decl_name
2777 #ifdef __cplusplus
2778 (void) $as_decl_use;
2779 #else
2780 (void) $as_decl_name;
2781 #endif
2782 #endif
2783
2784 ;
2785 return 0;
2786 }
2787 _ACEOF
2788 if ac_fn_cxx_try_compile "$LINENO"; then :
2789 eval "$3=yes"
2790 else
2791 eval "$3=no"
2792 fi
2793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2794 fi
2795 eval ac_res=\$$3
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2797 $as_echo "$ac_res" >&6; }
2798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2799
2800 } # ac_fn_cxx_check_decl
2801
2802 # ac_fn_c_try_link LINENO
2803 # -----------------------
2804 # Try to link conftest.$ac_ext, and return whether this succeeded.
2805 ac_fn_c_try_link ()
2806 {
2807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2808 rm -f conftest.$ac_objext conftest$ac_exeext
2809 if { { ac_try="$ac_link"
2810 case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2813 esac
2814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2815 $as_echo "$ac_try_echo"; } >&5
2816 (eval "$ac_link") 2>conftest.err
2817 ac_status=$?
2818 if test -s conftest.err; then
2819 grep -v '^ *+' conftest.err >conftest.er1
2820 cat conftest.er1 >&5
2821 mv -f conftest.er1 conftest.err
2822 fi
2823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2824 test $ac_status = 0; } && {
2825 test -z "$ac_c_werror_flag" ||
2826 test ! -s conftest.err
2827 } && test -s conftest$ac_exeext && {
2828 test "$cross_compiling" = yes ||
2829 test -x conftest$ac_exeext
2830 }; then :
2831 ac_retval=0
2832 else
2833 $as_echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2835
2836 ac_retval=1
2837 fi
2838 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2839 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2840 # interfere with the next link command; also delete a directory that is
2841 # left behind by Apple's compiler. We do this before executing the actions.
2842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2844 as_fn_set_status $ac_retval
2845
2846 } # ac_fn_c_try_link
2847
2848 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2849 # ----------------------------------------------
2850 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2851 ac_fn_c_check_header_preproc ()
2852 {
2853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2855 $as_echo_n "checking for $2... " >&6; }
2856 if eval \${$3+:} false; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860 /* end confdefs.h. */
2861 #include <$2>
2862 _ACEOF
2863 if ac_fn_c_try_cpp "$LINENO"; then :
2864 eval "$3=yes"
2865 else
2866 eval "$3=no"
2867 fi
2868 rm -f conftest.err conftest.i conftest.$ac_ext
2869 fi
2870 eval ac_res=\$$3
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2872 $as_echo "$ac_res" >&6; }
2873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2874
2875 } # ac_fn_c_check_header_preproc
2876
2877 # ac_fn_c_check_func LINENO FUNC VAR
2878 # ----------------------------------
2879 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2880 ac_fn_c_check_func ()
2881 {
2882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2884 $as_echo_n "checking for $2... " >&6; }
2885 if eval \${$3+:} false; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889 /* end confdefs.h. */
2890 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2892 #define $2 innocuous_$2
2893
2894 /* System header to define __stub macros and hopefully few prototypes,
2895 which can conflict with char $2 (); below.
2896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2897 <limits.h> exists even on freestanding compilers. */
2898
2899 #ifdef __STDC__
2900 # include <limits.h>
2901 #else
2902 # include <assert.h>
2903 #endif
2904
2905 #undef $2
2906
2907 /* Override any GCC internal prototype to avoid an error.
2908 Use char because int might match the return type of a GCC
2909 builtin and then its argument prototype would still apply. */
2910 #ifdef __cplusplus
2911 extern "C"
2912 #endif
2913 char $2 ();
2914 /* The GNU C library defines this for functions which it implements
2915 to always fail with ENOSYS. Some functions are actually named
2916 something starting with __ and the normal name is an alias. */
2917 #if defined __stub_$2 || defined __stub___$2
2918 choke me
2919 #endif
2920
2921 int
2922 main ()
2923 {
2924 return $2 ();
2925 ;
2926 return 0;
2927 }
2928 _ACEOF
2929 if ac_fn_c_try_link "$LINENO"; then :
2930 eval "$3=yes"
2931 else
2932 eval "$3=no"
2933 fi
2934 rm -f core conftest.err conftest.$ac_objext \
2935 conftest$ac_exeext conftest.$ac_ext
2936 fi
2937 eval ac_res=\$$3
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2939 $as_echo "$ac_res" >&6; }
2940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2941
2942 } # ac_fn_c_check_func
2943 cat >config.log <<_ACEOF
2944 This file contains any messages produced by compilers while
2945 running configure, to aid debugging if configure makes a mistake.
2946
2947 It was created by $as_me, which was
2948 generated by GNU Autoconf 2.69. Invocation command line was
2949
2950 $ $0 $@
2951
2952 _ACEOF
2953 exec 5>>config.log
2954 {
2955 cat <<_ASUNAME
2956 ## --------- ##
2957 ## Platform. ##
2958 ## --------- ##
2959
2960 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2961 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2962 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2963 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2964 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2965
2966 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2967 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2968
2969 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2970 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2971 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2972 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2973 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2974 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2975 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2976
2977 _ASUNAME
2978
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 $as_echo "PATH: $as_dir"
2985 done
2986 IFS=$as_save_IFS
2987
2988 } >&5
2989
2990 cat >&5 <<_ACEOF
2991
2992
2993 ## ----------- ##
2994 ## Core tests. ##
2995 ## ----------- ##
2996
2997 _ACEOF
2998
2999
3000 # Keep a trace of the command line.
3001 # Strip out --no-create and --no-recursion so they do not pile up.
3002 # Strip out --silent because we don't want to record it for future runs.
3003 # Also quote any args containing shell meta-characters.
3004 # Make two passes to allow for proper duplicate-argument suppression.
3005 ac_configure_args=
3006 ac_configure_args0=
3007 ac_configure_args1=
3008 ac_must_keep_next=false
3009 for ac_pass in 1 2
3010 do
3011 for ac_arg
3012 do
3013 case $ac_arg in
3014 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3016 | -silent | --silent | --silen | --sile | --sil)
3017 continue ;;
3018 *\'*)
3019 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3020 esac
3021 case $ac_pass in
3022 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3023 2)
3024 as_fn_append ac_configure_args1 " '$ac_arg'"
3025 if test $ac_must_keep_next = true; then
3026 ac_must_keep_next=false # Got value, back to normal.
3027 else
3028 case $ac_arg in
3029 *=* | --config-cache | -C | -disable-* | --disable-* \
3030 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3031 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3032 | -with-* | --with-* | -without-* | --without-* | --x)
3033 case "$ac_configure_args0 " in
3034 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3035 esac
3036 ;;
3037 -* ) ac_must_keep_next=true ;;
3038 esac
3039 fi
3040 as_fn_append ac_configure_args " '$ac_arg'"
3041 ;;
3042 esac
3043 done
3044 done
3045 { ac_configure_args0=; unset ac_configure_args0;}
3046 { ac_configure_args1=; unset ac_configure_args1;}
3047
3048 # When interrupted or exit'd, cleanup temporary files, and complete
3049 # config.log. We remove comments because anyway the quotes in there
3050 # would cause problems or look ugly.
3051 # WARNING: Use '\'' to represent an apostrophe within the trap.
3052 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3053 trap 'exit_status=$?
3054 # Save into config.log some information that might help in debugging.
3055 {
3056 echo
3057
3058 $as_echo "## ---------------- ##
3059 ## Cache variables. ##
3060 ## ---------------- ##"
3061 echo
3062 # The following way of writing the cache mishandles newlines in values,
3063 (
3064 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3065 eval ac_val=\$$ac_var
3066 case $ac_val in #(
3067 *${as_nl}*)
3068 case $ac_var in #(
3069 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3070 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3071 esac
3072 case $ac_var in #(
3073 _ | IFS | as_nl) ;; #(
3074 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3075 *) { eval $ac_var=; unset $ac_var;} ;;
3076 esac ;;
3077 esac
3078 done
3079 (set) 2>&1 |
3080 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3081 *${as_nl}ac_space=\ *)
3082 sed -n \
3083 "s/'\''/'\''\\\\'\'''\''/g;
3084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3085 ;; #(
3086 *)
3087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3088 ;;
3089 esac |
3090 sort
3091 )
3092 echo
3093
3094 $as_echo "## ----------------- ##
3095 ## Output variables. ##
3096 ## ----------------- ##"
3097 echo
3098 for ac_var in $ac_subst_vars
3099 do
3100 eval ac_val=\$$ac_var
3101 case $ac_val in
3102 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3103 esac
3104 $as_echo "$ac_var='\''$ac_val'\''"
3105 done | sort
3106 echo
3107
3108 if test -n "$ac_subst_files"; then
3109 $as_echo "## ------------------- ##
3110 ## File substitutions. ##
3111 ## ------------------- ##"
3112 echo
3113 for ac_var in $ac_subst_files
3114 do
3115 eval ac_val=\$$ac_var
3116 case $ac_val in
3117 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3118 esac
3119 $as_echo "$ac_var='\''$ac_val'\''"
3120 done | sort
3121 echo
3122 fi
3123
3124 if test -s confdefs.h; then
3125 $as_echo "## ----------- ##
3126 ## confdefs.h. ##
3127 ## ----------- ##"
3128 echo
3129 cat confdefs.h
3130 echo
3131 fi
3132 test "$ac_signal" != 0 &&
3133 $as_echo "$as_me: caught signal $ac_signal"
3134 $as_echo "$as_me: exit $exit_status"
3135 } >&5
3136 rm -f core *.core core.conftest.* &&
3137 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3138 exit $exit_status
3139 ' 0
3140 for ac_signal in 1 2 13 15; do
3141 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3142 done
3143 ac_signal=0
3144
3145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3146 rm -f -r conftest* confdefs.h
3147
3148 $as_echo "/* confdefs.h */" > confdefs.h
3149
3150 # Predefined preprocessor variables.
3151
3152 cat >>confdefs.h <<_ACEOF
3153 #define PACKAGE_NAME "$PACKAGE_NAME"
3154 _ACEOF
3155
3156 cat >>confdefs.h <<_ACEOF
3157 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3158 _ACEOF
3159
3160 cat >>confdefs.h <<_ACEOF
3161 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3162 _ACEOF
3163
3164 cat >>confdefs.h <<_ACEOF
3165 #define PACKAGE_STRING "$PACKAGE_STRING"
3166 _ACEOF
3167
3168 cat >>confdefs.h <<_ACEOF
3169 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3170 _ACEOF
3171
3172 cat >>confdefs.h <<_ACEOF
3173 #define PACKAGE_URL "$PACKAGE_URL"
3174 _ACEOF
3175
3176
3177 # Let the site file select an alternate cache file if it wants to.
3178 # Prefer an explicitly selected file to automatically selected ones.
3179 ac_site_file1=NONE
3180 ac_site_file2=NONE
3181 if test -n "$CONFIG_SITE"; then
3182 # We do not want a PATH search for config.site.
3183 case $CONFIG_SITE in #((
3184 -*) ac_site_file1=./$CONFIG_SITE;;
3185 */*) ac_site_file1=$CONFIG_SITE;;
3186 *) ac_site_file1=./$CONFIG_SITE;;
3187 esac
3188 elif test "x$prefix" != xNONE; then
3189 ac_site_file1=$prefix/share/config.site
3190 ac_site_file2=$prefix/etc/config.site
3191 else
3192 ac_site_file1=$ac_default_prefix/share/config.site
3193 ac_site_file2=$ac_default_prefix/etc/config.site
3194 fi
3195 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3196 do
3197 test "x$ac_site_file" = xNONE && continue
3198 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3200 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3201 sed 's/^/| /' "$ac_site_file" >&5
3202 . "$ac_site_file" \
3203 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205 as_fn_error $? "failed to load site script $ac_site_file
3206 See \`config.log' for more details" "$LINENO" 5; }
3207 fi
3208 done
3209
3210 if test -r "$cache_file"; then
3211 # Some versions of bash will fail to source /dev/null (special files
3212 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3213 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3215 $as_echo "$as_me: loading cache $cache_file" >&6;}
3216 case $cache_file in
3217 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3218 *) . "./$cache_file";;
3219 esac
3220 fi
3221 else
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3223 $as_echo "$as_me: creating cache $cache_file" >&6;}
3224 >$cache_file
3225 fi
3226
3227 # Check that the precious variables saved in the cache have kept the same
3228 # value.
3229 ac_cache_corrupted=false
3230 for ac_var in $ac_precious_vars; do
3231 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3232 eval ac_new_set=\$ac_env_${ac_var}_set
3233 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3234 eval ac_new_val=\$ac_env_${ac_var}_value
3235 case $ac_old_set,$ac_new_set in
3236 set,)
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3238 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3239 ac_cache_corrupted=: ;;
3240 ,set)
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3242 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3243 ac_cache_corrupted=: ;;
3244 ,);;
3245 *)
3246 if test "x$ac_old_val" != "x$ac_new_val"; then
3247 # differences in whitespace do not lead to failure.
3248 ac_old_val_w=`echo x $ac_old_val`
3249 ac_new_val_w=`echo x $ac_new_val`
3250 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3252 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3253 ac_cache_corrupted=:
3254 else
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3256 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3257 eval $ac_var=\$ac_old_val
3258 fi
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3260 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3262 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3263 fi;;
3264 esac
3265 # Pass precious variables to config.status.
3266 if test "$ac_new_set" = set; then
3267 case $ac_new_val in
3268 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3269 *) ac_arg=$ac_var=$ac_new_val ;;
3270 esac
3271 case " $ac_configure_args " in
3272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3273 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3274 esac
3275 fi
3276 done
3277 if $ac_cache_corrupted; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3281 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3282 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3283 fi
3284 ## -------------------- ##
3285 ## Main body of script. ##
3286 ## -------------------- ##
3287
3288 ac_ext=c
3289 ac_cpp='$CPP $CPPFLAGS'
3290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3293
3294
3295
3296
3297
3298
3299 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3300
3301
3302 gcc_version=`cat $srcdir/BASE-VER`
3303
3304 # Determine the host, build, and target systems
3305 ac_aux_dir=
3306 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3307 if test -f "$ac_dir/install-sh"; then
3308 ac_aux_dir=$ac_dir
3309 ac_install_sh="$ac_aux_dir/install-sh -c"
3310 break
3311 elif test -f "$ac_dir/install.sh"; then
3312 ac_aux_dir=$ac_dir
3313 ac_install_sh="$ac_aux_dir/install.sh -c"
3314 break
3315 elif test -f "$ac_dir/shtool"; then
3316 ac_aux_dir=$ac_dir
3317 ac_install_sh="$ac_aux_dir/shtool install -c"
3318 break
3319 fi
3320 done
3321 if test -z "$ac_aux_dir"; then
3322 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3323 fi
3324
3325 # These three variables are undocumented and unsupported,
3326 # and are intended to be withdrawn in a future Autoconf release.
3327 # They can cause serious problems if a builder's source tree is in a directory
3328 # whose full name contains unusual characters.
3329 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3330 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3331 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3332
3333
3334 # Make sure we can run config.sub.
3335 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3336 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3337
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3339 $as_echo_n "checking build system type... " >&6; }
3340 if ${ac_cv_build+:} false; then :
3341 $as_echo_n "(cached) " >&6
3342 else
3343 ac_build_alias=$build_alias
3344 test "x$ac_build_alias" = x &&
3345 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3346 test "x$ac_build_alias" = x &&
3347 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3348 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3349 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3350
3351 fi
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3353 $as_echo "$ac_cv_build" >&6; }
3354 case $ac_cv_build in
3355 *-*-*) ;;
3356 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3357 esac
3358 build=$ac_cv_build
3359 ac_save_IFS=$IFS; IFS='-'
3360 set x $ac_cv_build
3361 shift
3362 build_cpu=$1
3363 build_vendor=$2
3364 shift; shift
3365 # Remember, the first character of IFS is used to create $*,
3366 # except with old shells:
3367 build_os=$*
3368 IFS=$ac_save_IFS
3369 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3370
3371
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3373 $as_echo_n "checking host system type... " >&6; }
3374 if ${ac_cv_host+:} false; then :
3375 $as_echo_n "(cached) " >&6
3376 else
3377 if test "x$host_alias" = x; then
3378 ac_cv_host=$ac_cv_build
3379 else
3380 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3381 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3382 fi
3383
3384 fi
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3386 $as_echo "$ac_cv_host" >&6; }
3387 case $ac_cv_host in
3388 *-*-*) ;;
3389 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3390 esac
3391 host=$ac_cv_host
3392 ac_save_IFS=$IFS; IFS='-'
3393 set x $ac_cv_host
3394 shift
3395 host_cpu=$1
3396 host_vendor=$2
3397 shift; shift
3398 # Remember, the first character of IFS is used to create $*,
3399 # except with old shells:
3400 host_os=$*
3401 IFS=$ac_save_IFS
3402 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3403
3404
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3406 $as_echo_n "checking target system type... " >&6; }
3407 if ${ac_cv_target+:} false; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 if test "x$target_alias" = x; then
3411 ac_cv_target=$ac_cv_host
3412 else
3413 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3414 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3415 fi
3416
3417 fi
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3419 $as_echo "$ac_cv_target" >&6; }
3420 case $ac_cv_target in
3421 *-*-*) ;;
3422 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3423 esac
3424 target=$ac_cv_target
3425 ac_save_IFS=$IFS; IFS='-'
3426 set x $ac_cv_target
3427 shift
3428 target_cpu=$1
3429 target_vendor=$2
3430 shift; shift
3431 # Remember, the first character of IFS is used to create $*,
3432 # except with old shells:
3433 target_os=$*
3434 IFS=$ac_save_IFS
3435 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3436
3437
3438 # The aliases save the names the user supplied, while $host etc.
3439 # will get canonicalized.
3440 test -n "$target_alias" &&
3441 test "$program_prefix$program_suffix$program_transform_name" = \
3442 NONENONEs,x,x, &&
3443 program_prefix=${target_alias}-
3444
3445 # Determine the noncanonical host name, for Ada.
3446 case ${build_alias} in
3447 "") build_noncanonical=${build} ;;
3448 *) build_noncanonical=${build_alias} ;;
3449 esac
3450
3451 case ${host_alias} in
3452 "") host_noncanonical=${build_noncanonical} ;;
3453 *) host_noncanonical=${host_alias} ;;
3454 esac
3455
3456
3457
3458
3459 # Determine the noncanonical target name, for directory use.
3460 case ${target_alias} in
3461 "") target_noncanonical=${host_noncanonical} ;;
3462 *) target_noncanonical=${target_alias} ;;
3463 esac
3464
3465
3466
3467
3468 # Used for constructing correct paths for offload compilers.
3469 real_target_noncanonical=${target_noncanonical}
3470 accel_dir_suffix=
3471
3472 # Determine the target- and build-specific subdirectories
3473
3474 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3475 # have matching libraries, they should use host libraries: Makefile.tpl
3476 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3477 # However, they still use the build modules, because the corresponding
3478 # host modules (e.g. bison) are only built for the host when bootstrap
3479 # finishes. So:
3480 # - build_subdir is where we find build modules, and never changes.
3481 # - build_libsubdir is where we find build libraries, and can be overridden.
3482
3483 # Prefix 'build-' so this never conflicts with target_subdir.
3484 build_subdir="build-${build_noncanonical}"
3485
3486 # Check whether --with-build-libsubdir was given.
3487 if test "${with_build_libsubdir+set}" = set; then :
3488 withval=$with_build_libsubdir; build_libsubdir="$withval"
3489 else
3490 build_libsubdir="$build_subdir"
3491 fi
3492
3493 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3494 if ( test $srcdir = . && test -d gcc ) \
3495 || test -d $srcdir/../host-${host_noncanonical}; then
3496 host_subdir="host-${host_noncanonical}"
3497 else
3498 host_subdir=.
3499 fi
3500 # No prefix.
3501 target_subdir=${target_noncanonical}
3502
3503
3504 # Set program_transform_name
3505 test "$program_prefix" != NONE &&
3506 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3507 # Use a double $ so make ignores it.
3508 test "$program_suffix" != NONE &&
3509 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3510 # Double any \ or $.
3511 # By default was `s,x,x', remove it if useless.
3512 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3513 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3514
3515
3516 # Check for bogus environment variables.
3517 # Test if LIBRARY_PATH contains the notation for the current directory
3518 # since this would lead to problems installing/building glibc.
3519 # LIBRARY_PATH contains the current directory if one of the following
3520 # is true:
3521 # - one of the terminals (":" and ";") is the first or last sign
3522 # - two terminals occur directly after each other
3523 # - the path contains an element with a dot in it
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3525 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3526 case ${LIBRARY_PATH} in
3527 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3528 library_path_setting="contains current directory"
3529 ;;
3530 *)
3531 library_path_setting="ok"
3532 ;;
3533 esac
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3535 $as_echo "$library_path_setting" >&6; }
3536 if test "$library_path_setting" != "ok"; then
3537 as_fn_error $? "
3538 *** LIBRARY_PATH shouldn't contain the current directory when
3539 *** building gcc. Please change the environment variable
3540 *** and run configure again." "$LINENO" 5
3541 fi
3542
3543 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3544 # since this would lead to problems installing/building glibc.
3545 # GCC_EXEC_PREFIX contains the current directory if one of the following
3546 # is true:
3547 # - one of the terminals (":" and ";") is the first or last sign
3548 # - two terminals occur directly after each other
3549 # - the path contains an element with a dot in it
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3551 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3552 case ${GCC_EXEC_PREFIX} in
3553 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3554 gcc_exec_prefix_setting="contains current directory"
3555 ;;
3556 *)
3557 gcc_exec_prefix_setting="ok"
3558 ;;
3559 esac
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3561 $as_echo "$gcc_exec_prefix_setting" >&6; }
3562 if test "$gcc_exec_prefix_setting" != "ok"; then
3563 as_fn_error $? "
3564 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3565 *** building gcc. Please change the environment variable
3566 *** and run configure again." "$LINENO" 5
3567 fi
3568
3569 # -----------
3570 # Directories
3571 # -----------
3572
3573 # Specify the local prefix
3574 local_prefix=
3575
3576 # Check whether --with-local-prefix was given.
3577 if test "${with_local_prefix+set}" = set; then :
3578 withval=$with_local_prefix; case "${withval}" in
3579 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3580 no) ;;
3581 *) local_prefix=$with_local_prefix ;;
3582 esac
3583 fi
3584
3585
3586 # Default local prefix if it is empty
3587 if test x$local_prefix = x; then
3588 local_prefix=/usr/local
3589 fi
3590
3591
3592 # Check whether --with-native-system-header-dir was given.
3593 if test "${with_native_system_header_dir+set}" = set; then :
3594 withval=$with_native_system_header_dir;
3595 case ${with_native_system_header_dir} in
3596 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3597 /* | [A-Za-z]:[\\/]*) ;;
3598 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3599 esac
3600 configured_native_system_header_dir="${withval}"
3601
3602 else
3603 configured_native_system_header_dir=
3604 fi
3605
3606
3607
3608 # Check whether --with-build-sysroot was given.
3609 if test "${with_build_sysroot+set}" = set; then :
3610 withval=$with_build_sysroot; if test x"$withval" != x ; then
3611 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3612 fi
3613 else
3614 SYSROOT_CFLAGS_FOR_TARGET=
3615 fi
3616
3617
3618
3619 if test "x$prefix" = xNONE; then
3620 test_prefix=/usr/local
3621 else
3622 test_prefix=$prefix
3623 fi
3624 if test "x$exec_prefix" = xNONE; then
3625 test_exec_prefix=$test_prefix
3626 else
3627 test_exec_prefix=$exec_prefix
3628 fi
3629
3630
3631 # Check whether --with-sysroot was given.
3632 if test "${with_sysroot+set}" = set; then :
3633 withval=$with_sysroot;
3634 case ${with_sysroot} in
3635 /) ;;
3636 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3637 esac
3638 case ${with_sysroot} in
3639 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3640 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3641 esac
3642
3643 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3644 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3645
3646 case ${TARGET_SYSTEM_ROOT} in
3647 "${test_prefix}"|"${test_prefix}/"*|\
3648 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3649 '${prefix}'|'${prefix}/'*|\
3650 '${exec_prefix}'|'${exec_prefix}/'*)
3651 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3652 TARGET_SYSTEM_ROOT_DEFINE="$t"
3653 ;;
3654 esac
3655
3656 else
3657
3658 TARGET_SYSTEM_ROOT=
3659 TARGET_SYSTEM_ROOT_DEFINE=
3660 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3661
3662 fi
3663
3664
3665
3666
3667
3668 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3669 # passed in by the toplevel make and thus we'd get different behavior
3670 # depending on where we built the sources.
3671 gcc_gxx_include_dir=
3672 # Specify the g++ header file directory
3673
3674 # Check whether --with-gxx-include-dir was given.
3675 if test "${with_gxx_include_dir+set}" = set; then :
3676 withval=$with_gxx_include_dir; case "${withval}" in
3677 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3678 no) ;;
3679 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3680 esac
3681 fi
3682
3683
3684 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3685 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3686 # relative to the sysroot.
3687 gcc_gxx_include_dir_add_sysroot=0
3688
3689 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3690 if test x${gcc_gxx_include_dir} = x; then
3691 if test x${enable_version_specific_runtime_libs} = xyes; then
3692 gcc_gxx_include_dir='${libsubdir}/include/c++'
3693 else
3694 libstdcxx_incdir='include/c++/$(version)'
3695 if test x$host != x$target; then
3696 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3697 fi
3698 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3699 fi
3700 elif test "${with_sysroot+set}" = set; then
3701 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3702 if test "${gcc_gxx_without_sysroot}"; then
3703 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3704 gcc_gxx_include_dir_add_sysroot=1
3705 fi
3706 fi
3707
3708
3709 # Check whether --with-cpp_install_dir was given.
3710 if test "${with_cpp_install_dir+set}" = set; then :
3711 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3712 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3713 elif test x$withval != xno; then
3714 cpp_install_dir=$withval
3715 fi
3716 fi
3717
3718
3719 # We would like to our source tree to be readonly. However when releases or
3720 # pre-releases are generated, the flex/bison generated files as well as the
3721 # various formats of manuals need to be included along with the rest of the
3722 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3723 # just that.
3724
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3726 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3727 # Check whether --enable-generated-files-in-srcdir was given.
3728 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3729 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3730 else
3731 generated_files_in_srcdir=no
3732 fi
3733
3734
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3736 $as_echo "$generated_files_in_srcdir" >&6; }
3737
3738 if test "$generated_files_in_srcdir" = "yes"; then
3739 GENINSRC=''
3740 else
3741 GENINSRC='#'
3742 fi
3743
3744
3745 # -------------------
3746 # Find default linker
3747 # -------------------
3748
3749 # With GNU ld
3750
3751 # Check whether --with-gnu-ld was given.
3752 if test "${with_gnu_ld+set}" = set; then :
3753 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3754 else
3755 gnu_ld_flag=no
3756 fi
3757
3758
3759 case $target in
3760 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3761 *) ld64_flag=no;;
3762 esac
3763
3764 # With pre-defined ld
3765
3766 # Check whether --with-ld was given.
3767 if test "${with_ld+set}" = set; then :
3768 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3769 fi
3770
3771 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3772 if test ! -x "$DEFAULT_LINKER"; then
3773 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3774 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3775 gnu_ld_flag=yes
3776 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3777 ld64_flag=yes
3778 fi
3779
3780 cat >>confdefs.h <<_ACEOF
3781 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3782 _ACEOF
3783
3784 fi
3785
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3787 $as_echo_n "checking whether a default linker was specified... " >&6; }
3788 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3789 if test x"$gnu_ld_flag" = x"no"; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3791 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3792 else
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3794 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3795 fi
3796 else
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3798 $as_echo "no" >&6; }
3799 fi
3800
3801 # With demangler in GNU ld
3802
3803 # Check whether --with-demangler-in-ld was given.
3804 if test "${with_demangler_in_ld+set}" = set; then :
3805 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3806 else
3807 demangler_in_ld=yes
3808 fi
3809
3810
3811 # ----------------------
3812 # Find default assembler
3813 # ----------------------
3814
3815 # With GNU as
3816
3817 # Check whether --with-gnu-as was given.
3818 if test "${with_gnu_as+set}" = set; then :
3819 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3820 else
3821 gas_flag=no
3822 fi
3823
3824
3825
3826 # Check whether --with-as was given.
3827 if test "${with_as+set}" = set; then :
3828 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3829 fi
3830
3831 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3832 if test ! -x "$DEFAULT_ASSEMBLER"; then
3833 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3834 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3835 gas_flag=yes
3836 fi
3837
3838 cat >>confdefs.h <<_ACEOF
3839 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3840 _ACEOF
3841
3842 fi
3843
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3845 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3846 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3847 if test x"$gas_flag" = x"no"; then
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3849 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3850 else
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3852 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3853 fi
3854 else
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856 $as_echo "no" >&6; }
3857 fi
3858
3859 # ---------------
3860 # Find C compiler
3861 # ---------------
3862
3863 # If a non-executable a.out is present (e.g. created by GNU as above even if
3864 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3865 # file, even when creating an executable, so an execution test fails.
3866 # Remove possible default executable files to avoid this.
3867 #
3868 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3869 # Autoconf includes it.
3870 rm -f a.out a.exe b.out
3871
3872 # Find the native compiler
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 if test -n "$ac_tool_prefix"; then
3879 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3880 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 $as_echo_n "checking for $ac_word... " >&6; }
3883 if ${ac_cv_prog_CC+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 if test -n "$CC"; then
3887 ac_cv_prog_CC="$CC" # Let the user override the test.
3888 else
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3891 do
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 break 2
3899 fi
3900 done
3901 done
3902 IFS=$as_save_IFS
3903
3904 fi
3905 fi
3906 CC=$ac_cv_prog_CC
3907 if test -n "$CC"; then
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3909 $as_echo "$CC" >&6; }
3910 else
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912 $as_echo "no" >&6; }
3913 fi
3914
3915
3916 fi
3917 if test -z "$ac_cv_prog_CC"; then
3918 ac_ct_CC=$CC
3919 # Extract the first word of "gcc", so it can be a program name with args.
3920 set dummy gcc; ac_word=$2
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922 $as_echo_n "checking for $ac_word... " >&6; }
3923 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 if test -n "$ac_ct_CC"; then
3927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3931 do
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_ac_ct_CC="gcc"
3937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3939 fi
3940 done
3941 done
3942 IFS=$as_save_IFS
3943
3944 fi
3945 fi
3946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3947 if test -n "$ac_ct_CC"; then
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3949 $as_echo "$ac_ct_CC" >&6; }
3950 else
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952 $as_echo "no" >&6; }
3953 fi
3954
3955 if test "x$ac_ct_CC" = x; then
3956 CC=""
3957 else
3958 case $cross_compiling:$ac_tool_warned in
3959 yes:)
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3962 ac_tool_warned=yes ;;
3963 esac
3964 CC=$ac_ct_CC
3965 fi
3966 else
3967 CC="$ac_cv_prog_CC"
3968 fi
3969
3970 if test -z "$CC"; then
3971 if test -n "$ac_tool_prefix"; then
3972 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3973 set dummy ${ac_tool_prefix}cc; ac_word=$2
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975 $as_echo_n "checking for $ac_word... " >&6; }
3976 if ${ac_cv_prog_CC+:} false; then :
3977 $as_echo_n "(cached) " >&6
3978 else
3979 if test -n "$CC"; then
3980 ac_cv_prog_CC="$CC" # Let the user override the test.
3981 else
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH
3984 do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3989 ac_cv_prog_CC="${ac_tool_prefix}cc"
3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 break 2
3992 fi
3993 done
3994 done
3995 IFS=$as_save_IFS
3996
3997 fi
3998 fi
3999 CC=$ac_cv_prog_CC
4000 if test -n "$CC"; then
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4002 $as_echo "$CC" >&6; }
4003 else
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 $as_echo "no" >&6; }
4006 fi
4007
4008
4009 fi
4010 fi
4011 if test -z "$CC"; then
4012 # Extract the first word of "cc", so it can be a program name with args.
4013 set dummy cc; ac_word=$2
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015 $as_echo_n "checking for $ac_word... " >&6; }
4016 if ${ac_cv_prog_CC+:} false; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 if test -n "$CC"; then
4020 ac_cv_prog_CC="$CC" # Let the user override the test.
4021 else
4022 ac_prog_rejected=no
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4025 do
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4031 ac_prog_rejected=yes
4032 continue
4033 fi
4034 ac_cv_prog_CC="cc"
4035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4036 break 2
4037 fi
4038 done
4039 done
4040 IFS=$as_save_IFS
4041
4042 if test $ac_prog_rejected = yes; then
4043 # We found a bogon in the path, so make sure we never use it.
4044 set dummy $ac_cv_prog_CC
4045 shift
4046 if test $# != 0; then
4047 # We chose a different compiler from the bogus one.
4048 # However, it has the same basename, so the bogon will be chosen
4049 # first if we set CC to just the basename; use the full file name.
4050 shift
4051 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4052 fi
4053 fi
4054 fi
4055 fi
4056 CC=$ac_cv_prog_CC
4057 if test -n "$CC"; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4059 $as_echo "$CC" >&6; }
4060 else
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4063 fi
4064
4065
4066 fi
4067 if test -z "$CC"; then
4068 if test -n "$ac_tool_prefix"; then
4069 for ac_prog in cl.exe
4070 do
4071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074 $as_echo_n "checking for $ac_word... " >&6; }
4075 if ${ac_cv_prog_CC+:} false; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 if test -n "$CC"; then
4079 ac_cv_prog_CC="$CC" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4083 do
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4090 break 2
4091 fi
4092 done
4093 done
4094 IFS=$as_save_IFS
4095
4096 fi
4097 fi
4098 CC=$ac_cv_prog_CC
4099 if test -n "$CC"; then
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4101 $as_echo "$CC" >&6; }
4102 else
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 $as_echo "no" >&6; }
4105 fi
4106
4107
4108 test -n "$CC" && break
4109 done
4110 fi
4111 if test -z "$CC"; then
4112 ac_ct_CC=$CC
4113 for ac_prog in cl.exe
4114 do
4115 # Extract the first word of "$ac_prog", so it can be a program name with args.
4116 set dummy $ac_prog; ac_word=$2
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118 $as_echo_n "checking for $ac_word... " >&6; }
4119 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 if test -n "$ac_ct_CC"; then
4123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4124 else
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4127 do
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_prog_ac_ct_CC="$ac_prog"
4133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4135 fi
4136 done
4137 done
4138 IFS=$as_save_IFS
4139
4140 fi
4141 fi
4142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4143 if test -n "$ac_ct_CC"; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4145 $as_echo "$ac_ct_CC" >&6; }
4146 else
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4149 fi
4150
4151
4152 test -n "$ac_ct_CC" && break
4153 done
4154
4155 if test "x$ac_ct_CC" = x; then
4156 CC=""
4157 else
4158 case $cross_compiling:$ac_tool_warned in
4159 yes:)
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4162 ac_tool_warned=yes ;;
4163 esac
4164 CC=$ac_ct_CC
4165 fi
4166 fi
4167
4168 fi
4169
4170
4171 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4173 as_fn_error $? "no acceptable C compiler found in \$PATH
4174 See \`config.log' for more details" "$LINENO" 5; }
4175
4176 # Provide some information about the compiler.
4177 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4178 set X $ac_compile
4179 ac_compiler=$2
4180 for ac_option in --version -v -V -qversion; do
4181 { { ac_try="$ac_compiler $ac_option >&5"
4182 case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185 esac
4186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4187 $as_echo "$ac_try_echo"; } >&5
4188 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4189 ac_status=$?
4190 if test -s conftest.err; then
4191 sed '10a\
4192 ... rest of stderr output deleted ...
4193 10q' conftest.err >conftest.er1
4194 cat conftest.er1 >&5
4195 fi
4196 rm -f conftest.er1 conftest.err
4197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4198 test $ac_status = 0; }
4199 done
4200
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4203
4204 int
4205 main ()
4206 {
4207
4208 ;
4209 return 0;
4210 }
4211 _ACEOF
4212 ac_clean_files_save=$ac_clean_files
4213 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4214 # Try to create an executable without -o first, disregard a.out.
4215 # It will help us diagnose broken compilers, and finding out an intuition
4216 # of exeext.
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4218 $as_echo_n "checking whether the C compiler works... " >&6; }
4219 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4220
4221 # The possible output files:
4222 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4223
4224 ac_rmfiles=
4225 for ac_file in $ac_files
4226 do
4227 case $ac_file in
4228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4229 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4230 esac
4231 done
4232 rm -f $ac_rmfiles
4233
4234 if { { ac_try="$ac_link_default"
4235 case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238 esac
4239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4240 $as_echo "$ac_try_echo"; } >&5
4241 (eval "$ac_link_default") 2>&5
4242 ac_status=$?
4243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4244 test $ac_status = 0; }; then :
4245 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4246 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4247 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4248 # so that the user can short-circuit this test for compilers unknown to
4249 # Autoconf.
4250 for ac_file in $ac_files ''
4251 do
4252 test -f "$ac_file" || continue
4253 case $ac_file in
4254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4255 ;;
4256 [ab].out )
4257 # We found the default executable, but exeext='' is most
4258 # certainly right.
4259 break;;
4260 *.* )
4261 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4262 then :; else
4263 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4264 fi
4265 # We set ac_cv_exeext here because the later test for it is not
4266 # safe: cross compilers may not add the suffix if given an `-o'
4267 # argument, so we may need to know it at that point already.
4268 # Even if this section looks crufty: it has the advantage of
4269 # actually working.
4270 break;;
4271 * )
4272 break;;
4273 esac
4274 done
4275 test "$ac_cv_exeext" = no && ac_cv_exeext=
4276
4277 else
4278 ac_file=''
4279 fi
4280 if test -z "$ac_file"; then :
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 $as_echo "no" >&6; }
4283 $as_echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4288 as_fn_error 77 "C compiler cannot create executables
4289 See \`config.log' for more details" "$LINENO" 5; }
4290 else
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4292 $as_echo "yes" >&6; }
4293 fi
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4295 $as_echo_n "checking for C compiler default output file name... " >&6; }
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4297 $as_echo "$ac_file" >&6; }
4298 ac_exeext=$ac_cv_exeext
4299
4300 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4301 ac_clean_files=$ac_clean_files_save
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4303 $as_echo_n "checking for suffix of executables... " >&6; }
4304 if { { ac_try="$ac_link"
4305 case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308 esac
4309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_link") 2>&5
4312 ac_status=$?
4313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314 test $ac_status = 0; }; then :
4315 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4316 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4317 # work properly (i.e., refer to `conftest.exe'), while it won't with
4318 # `rm'.
4319 for ac_file in conftest.exe conftest conftest.*; do
4320 test -f "$ac_file" || continue
4321 case $ac_file in
4322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4323 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4324 break;;
4325 * ) break;;
4326 esac
4327 done
4328 else
4329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4331 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4332 See \`config.log' for more details" "$LINENO" 5; }
4333 fi
4334 rm -f conftest conftest$ac_cv_exeext
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4336 $as_echo "$ac_cv_exeext" >&6; }
4337
4338 rm -f conftest.$ac_ext
4339 EXEEXT=$ac_cv_exeext
4340 ac_exeext=$EXEEXT
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4343 #include <stdio.h>
4344 int
4345 main ()
4346 {
4347 FILE *f = fopen ("conftest.out", "w");
4348 return ferror (f) || fclose (f) != 0;
4349
4350 ;
4351 return 0;
4352 }
4353 _ACEOF
4354 ac_clean_files="$ac_clean_files conftest.out"
4355 # Check that the compiler produces executables we can run. If not, either
4356 # the compiler is broken, or we cross compile.
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4358 $as_echo_n "checking whether we are cross compiling... " >&6; }
4359 if test "$cross_compiling" != yes; then
4360 { { ac_try="$ac_link"
4361 case "(($ac_try" in
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4364 esac
4365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4366 $as_echo "$ac_try_echo"; } >&5
4367 (eval "$ac_link") 2>&5
4368 ac_status=$?
4369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4370 test $ac_status = 0; }
4371 if { ac_try='./conftest$ac_cv_exeext'
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_try") 2>&5
4379 ac_status=$?
4380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4381 test $ac_status = 0; }; }; then
4382 cross_compiling=no
4383 else
4384 if test "$cross_compiling" = maybe; then
4385 cross_compiling=yes
4386 else
4387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4389 as_fn_error $? "cannot run C compiled programs.
4390 If you meant to cross compile, use \`--host'.
4391 See \`config.log' for more details" "$LINENO" 5; }
4392 fi
4393 fi
4394 fi
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4396 $as_echo "$cross_compiling" >&6; }
4397
4398 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4399 ac_clean_files=$ac_clean_files_save
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4401 $as_echo_n "checking for suffix of object files... " >&6; }
4402 if ${ac_cv_objext+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4407
4408 int
4409 main ()
4410 {
4411
4412 ;
4413 return 0;
4414 }
4415 _ACEOF
4416 rm -f conftest.o conftest.obj
4417 if { { ac_try="$ac_compile"
4418 case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4421 esac
4422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4423 $as_echo "$ac_try_echo"; } >&5
4424 (eval "$ac_compile") 2>&5
4425 ac_status=$?
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }; then :
4428 for ac_file in conftest.o conftest.obj conftest.*; do
4429 test -f "$ac_file" || continue;
4430 case $ac_file in
4431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4432 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4433 break;;
4434 esac
4435 done
4436 else
4437 $as_echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4439
4440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4442 as_fn_error $? "cannot compute suffix of object files: cannot compile
4443 See \`config.log' for more details" "$LINENO" 5; }
4444 fi
4445 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4446 fi
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4448 $as_echo "$ac_cv_objext" >&6; }
4449 OBJEXT=$ac_cv_objext
4450 ac_objext=$OBJEXT
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4452 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4453 if ${ac_cv_c_compiler_gnu+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4458
4459 int
4460 main ()
4461 {
4462 #ifndef __GNUC__
4463 choke me
4464 #endif
4465
4466 ;
4467 return 0;
4468 }
4469 _ACEOF
4470 if ac_fn_c_try_compile "$LINENO"; then :
4471 ac_compiler_gnu=yes
4472 else
4473 ac_compiler_gnu=no
4474 fi
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4477
4478 fi
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4480 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4481 if test $ac_compiler_gnu = yes; then
4482 GCC=yes
4483 else
4484 GCC=
4485 fi
4486 ac_test_CFLAGS=${CFLAGS+set}
4487 ac_save_CFLAGS=$CFLAGS
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4489 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4490 if ${ac_cv_prog_cc_g+:} false; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 ac_save_c_werror_flag=$ac_c_werror_flag
4494 ac_c_werror_flag=yes
4495 ac_cv_prog_cc_g=no
4496 CFLAGS="-g"
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4499
4500 int
4501 main ()
4502 {
4503
4504 ;
4505 return 0;
4506 }
4507 _ACEOF
4508 if ac_fn_c_try_compile "$LINENO"; then :
4509 ac_cv_prog_cc_g=yes
4510 else
4511 CFLAGS=""
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4514
4515 int
4516 main ()
4517 {
4518
4519 ;
4520 return 0;
4521 }
4522 _ACEOF
4523 if ac_fn_c_try_compile "$LINENO"; then :
4524
4525 else
4526 ac_c_werror_flag=$ac_save_c_werror_flag
4527 CFLAGS="-g"
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4530
4531 int
4532 main ()
4533 {
4534
4535 ;
4536 return 0;
4537 }
4538 _ACEOF
4539 if ac_fn_c_try_compile "$LINENO"; then :
4540 ac_cv_prog_cc_g=yes
4541 fi
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 fi
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 fi
4546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547 ac_c_werror_flag=$ac_save_c_werror_flag
4548 fi
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4550 $as_echo "$ac_cv_prog_cc_g" >&6; }
4551 if test "$ac_test_CFLAGS" = set; then
4552 CFLAGS=$ac_save_CFLAGS
4553 elif test $ac_cv_prog_cc_g = yes; then
4554 if test "$GCC" = yes; then
4555 CFLAGS="-g -O2"
4556 else
4557 CFLAGS="-g"
4558 fi
4559 else
4560 if test "$GCC" = yes; then
4561 CFLAGS="-O2"
4562 else
4563 CFLAGS=
4564 fi
4565 fi
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4567 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4568 if ${ac_cv_prog_cc_c89+:} false; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 ac_cv_prog_cc_c89=no
4572 ac_save_CC=$CC
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575 #include <stdarg.h>
4576 #include <stdio.h>
4577 struct stat;
4578 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4579 struct buf { int x; };
4580 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4581 static char *e (p, i)
4582 char **p;
4583 int i;
4584 {
4585 return p[i];
4586 }
4587 static char *f (char * (*g) (char **, int), char **p, ...)
4588 {
4589 char *s;
4590 va_list v;
4591 va_start (v,p);
4592 s = g (p, va_arg (v,int));
4593 va_end (v);
4594 return s;
4595 }
4596
4597 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4598 function prototypes and stuff, but not '\xHH' hex character constants.
4599 These don't provoke an error unfortunately, instead are silently treated
4600 as 'x'. The following induces an error, until -std is added to get
4601 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4602 array size at least. It's necessary to write '\x00'==0 to get something
4603 that's true only with -std. */
4604 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4605
4606 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4607 inside strings and character constants. */
4608 #define FOO(x) 'x'
4609 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4610
4611 int test (int i, double x);
4612 struct s1 {int (*f) (int a);};
4613 struct s2 {int (*f) (double a);};
4614 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4615 int argc;
4616 char **argv;
4617 int
4618 main ()
4619 {
4620 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4621 ;
4622 return 0;
4623 }
4624 _ACEOF
4625 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4626 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4627 do
4628 CC="$ac_save_CC $ac_arg"
4629 if ac_fn_c_try_compile "$LINENO"; then :
4630 ac_cv_prog_cc_c89=$ac_arg
4631 fi
4632 rm -f core conftest.err conftest.$ac_objext
4633 test "x$ac_cv_prog_cc_c89" != "xno" && break
4634 done
4635 rm -f conftest.$ac_ext
4636 CC=$ac_save_CC
4637
4638 fi
4639 # AC_CACHE_VAL
4640 case "x$ac_cv_prog_cc_c89" in
4641 x)
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4643 $as_echo "none needed" >&6; } ;;
4644 xno)
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4646 $as_echo "unsupported" >&6; } ;;
4647 *)
4648 CC="$CC $ac_cv_prog_cc_c89"
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4650 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4651 esac
4652 if test "x$ac_cv_prog_cc_c89" != xno; then :
4653
4654 fi
4655
4656 ac_ext=c
4657 ac_cpp='$CPP $CPPFLAGS'
4658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4661
4662 ac_ext=cpp
4663 ac_cpp='$CXXCPP $CPPFLAGS'
4664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4667 if test -z "$CXX"; then
4668 if test -n "$CCC"; then
4669 CXX=$CCC
4670 else
4671 if test -n "$ac_tool_prefix"; then
4672 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4673 do
4674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677 $as_echo_n "checking for $ac_word... " >&6; }
4678 if ${ac_cv_prog_CXX+:} false; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 if test -n "$CXX"; then
4682 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4683 else
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4686 do
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 break 2
4694 fi
4695 done
4696 done
4697 IFS=$as_save_IFS
4698
4699 fi
4700 fi
4701 CXX=$ac_cv_prog_CXX
4702 if test -n "$CXX"; then
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4704 $as_echo "$CXX" >&6; }
4705 else
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4707 $as_echo "no" >&6; }
4708 fi
4709
4710
4711 test -n "$CXX" && break
4712 done
4713 fi
4714 if test -z "$CXX"; then
4715 ac_ct_CXX=$CXX
4716 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4717 do
4718 # Extract the first word of "$ac_prog", so it can be a program name with args.
4719 set dummy $ac_prog; ac_word=$2
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721 $as_echo_n "checking for $ac_word... " >&6; }
4722 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 if test -n "$ac_ct_CXX"; then
4726 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4727 else
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4730 do
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4735 ac_cv_prog_ac_ct_CXX="$ac_prog"
4736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4738 fi
4739 done
4740 done
4741 IFS=$as_save_IFS
4742
4743 fi
4744 fi
4745 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4746 if test -n "$ac_ct_CXX"; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4748 $as_echo "$ac_ct_CXX" >&6; }
4749 else
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4752 fi
4753
4754
4755 test -n "$ac_ct_CXX" && break
4756 done
4757
4758 if test "x$ac_ct_CXX" = x; then
4759 CXX="g++"
4760 else
4761 case $cross_compiling:$ac_tool_warned in
4762 yes:)
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4765 ac_tool_warned=yes ;;
4766 esac
4767 CXX=$ac_ct_CXX
4768 fi
4769 fi
4770
4771 fi
4772 fi
4773 # Provide some information about the compiler.
4774 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4775 set X $ac_compile
4776 ac_compiler=$2
4777 for ac_option in --version -v -V -qversion; do
4778 { { ac_try="$ac_compiler $ac_option >&5"
4779 case "(($ac_try" in
4780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4781 *) ac_try_echo=$ac_try;;
4782 esac
4783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4784 $as_echo "$ac_try_echo"; } >&5
4785 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4786 ac_status=$?
4787 if test -s conftest.err; then
4788 sed '10a\
4789 ... rest of stderr output deleted ...
4790 10q' conftest.err >conftest.er1
4791 cat conftest.er1 >&5
4792 fi
4793 rm -f conftest.er1 conftest.err
4794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4795 test $ac_status = 0; }
4796 done
4797
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4799 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4800 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4805
4806 int
4807 main ()
4808 {
4809 #ifndef __GNUC__
4810 choke me
4811 #endif
4812
4813 ;
4814 return 0;
4815 }
4816 _ACEOF
4817 if ac_fn_cxx_try_compile "$LINENO"; then :
4818 ac_compiler_gnu=yes
4819 else
4820 ac_compiler_gnu=no
4821 fi
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4824
4825 fi
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4827 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4828 if test $ac_compiler_gnu = yes; then
4829 GXX=yes
4830 else
4831 GXX=
4832 fi
4833 ac_test_CXXFLAGS=${CXXFLAGS+set}
4834 ac_save_CXXFLAGS=$CXXFLAGS
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4836 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4837 if ${ac_cv_prog_cxx_g+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4841 ac_cxx_werror_flag=yes
4842 ac_cv_prog_cxx_g=no
4843 CXXFLAGS="-g"
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4846
4847 int
4848 main ()
4849 {
4850
4851 ;
4852 return 0;
4853 }
4854 _ACEOF
4855 if ac_fn_cxx_try_compile "$LINENO"; then :
4856 ac_cv_prog_cxx_g=yes
4857 else
4858 CXXFLAGS=""
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4861
4862 int
4863 main ()
4864 {
4865
4866 ;
4867 return 0;
4868 }
4869 _ACEOF
4870 if ac_fn_cxx_try_compile "$LINENO"; then :
4871
4872 else
4873 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4874 CXXFLAGS="-g"
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4877
4878 int
4879 main ()
4880 {
4881
4882 ;
4883 return 0;
4884 }
4885 _ACEOF
4886 if ac_fn_cxx_try_compile "$LINENO"; then :
4887 ac_cv_prog_cxx_g=yes
4888 fi
4889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890 fi
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 fi
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4895 fi
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4897 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4898 if test "$ac_test_CXXFLAGS" = set; then
4899 CXXFLAGS=$ac_save_CXXFLAGS
4900 elif test $ac_cv_prog_cxx_g = yes; then
4901 if test "$GXX" = yes; then
4902 CXXFLAGS="-g -O2"
4903 else
4904 CXXFLAGS="-g"
4905 fi
4906 else
4907 if test "$GXX" = yes; then
4908 CXXFLAGS="-O2"
4909 else
4910 CXXFLAGS=
4911 fi
4912 fi
4913 ac_ext=c
4914 ac_cpp='$CPP $CPPFLAGS'
4915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918
4919
4920
4921
4922 if test -n "$ac_tool_prefix"; then
4923 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4924 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926 $as_echo_n "checking for $ac_word... " >&6; }
4927 if ${ac_cv_prog_GNATBIND+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 if test -n "$GNATBIND"; then
4931 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4932 else
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4935 do
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4940 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4943 fi
4944 done
4945 done
4946 IFS=$as_save_IFS
4947
4948 fi
4949 fi
4950 GNATBIND=$ac_cv_prog_GNATBIND
4951 if test -n "$GNATBIND"; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4953 $as_echo "$GNATBIND" >&6; }
4954 else
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956 $as_echo "no" >&6; }
4957 fi
4958
4959
4960 fi
4961 if test -z "$ac_cv_prog_GNATBIND"; then
4962 ac_ct_GNATBIND=$GNATBIND
4963 # Extract the first word of "gnatbind", so it can be a program name with args.
4964 set dummy gnatbind; ac_word=$2
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966 $as_echo_n "checking for $ac_word... " >&6; }
4967 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 if test -n "$ac_ct_GNATBIND"; then
4971 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4972 else
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4975 do
4976 IFS=$as_save_IFS
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4980 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 break 2
4983 fi
4984 done
4985 done
4986 IFS=$as_save_IFS
4987
4988 fi
4989 fi
4990 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4991 if test -n "$ac_ct_GNATBIND"; then
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4993 $as_echo "$ac_ct_GNATBIND" >&6; }
4994 else
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996 $as_echo "no" >&6; }
4997 fi
4998
4999 if test "x$ac_ct_GNATBIND" = x; then
5000 GNATBIND="no"
5001 else
5002 case $cross_compiling:$ac_tool_warned in
5003 yes:)
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5006 ac_tool_warned=yes ;;
5007 esac
5008 GNATBIND=$ac_ct_GNATBIND
5009 fi
5010 else
5011 GNATBIND="$ac_cv_prog_GNATBIND"
5012 fi
5013
5014 if test -n "$ac_tool_prefix"; then
5015 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5016 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if ${ac_cv_prog_GNATMAKE+:} false; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 if test -n "$GNATMAKE"; then
5023 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5027 do
5028 IFS=$as_save_IFS
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5032 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 break 2
5035 fi
5036 done
5037 done
5038 IFS=$as_save_IFS
5039
5040 fi
5041 fi
5042 GNATMAKE=$ac_cv_prog_GNATMAKE
5043 if test -n "$GNATMAKE"; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5045 $as_echo "$GNATMAKE" >&6; }
5046 else
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5049 fi
5050
5051
5052 fi
5053 if test -z "$ac_cv_prog_GNATMAKE"; then
5054 ac_ct_GNATMAKE=$GNATMAKE
5055 # Extract the first word of "gnatmake", so it can be a program name with args.
5056 set dummy gnatmake; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if test -n "$ac_ct_GNATMAKE"; then
5063 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5067 do
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5072 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 break 2
5075 fi
5076 done
5077 done
5078 IFS=$as_save_IFS
5079
5080 fi
5081 fi
5082 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5083 if test -n "$ac_ct_GNATMAKE"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5085 $as_echo "$ac_ct_GNATMAKE" >&6; }
5086 else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5089 fi
5090
5091 if test "x$ac_ct_GNATMAKE" = x; then
5092 GNATMAKE="no"
5093 else
5094 case $cross_compiling:$ac_tool_warned in
5095 yes:)
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5098 ac_tool_warned=yes ;;
5099 esac
5100 GNATMAKE=$ac_ct_GNATMAKE
5101 fi
5102 else
5103 GNATMAKE="$ac_cv_prog_GNATMAKE"
5104 fi
5105
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5107 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5108 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 cat >conftest.adb <<EOF
5112 procedure conftest is begin null; end conftest;
5113 EOF
5114 acx_cv_cc_gcc_supports_ada=no
5115 # There is a bug in old released versions of GCC which causes the
5116 # driver to exit successfully when the appropriate language module
5117 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5118 # Therefore we must check for the error message as well as an
5119 # unsuccessful exit.
5120 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5121 # given a .adb file, but produce no object file. So we must check
5122 # if an object file was really produced to guard against this.
5123 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5124 if test x"$errors" = x && test -f conftest.$ac_objext; then
5125 acx_cv_cc_gcc_supports_ada=yes
5126 fi
5127 rm -f conftest.*
5128 fi
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5130 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5131
5132 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5133 have_gnat=yes
5134 else
5135 have_gnat=no
5136 fi
5137
5138
5139 # Do configure tests with the C++ compiler, since that's what we build with.
5140 ac_ext=cpp
5141 ac_cpp='$CXXCPP $CPPFLAGS'
5142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5145
5146
5147 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5148 # optimizations to be activated explicitly by the toplevel.
5149 case "$CC" in
5150 */prev-gcc/xgcc*) ;;
5151 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5152 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5153 esac
5154
5155
5156
5157 # Determine PICFLAG for target gnatlib.
5158
5159
5160
5161
5162 case "${target}" in
5163 # PIC is the default on some targets or must not be used.
5164 *-*-darwin*)
5165 # For darwin, common symbols are not allowed in MH_DYLIB files
5166 case "${CFLAGS}" in
5167 # If we are using a compiler supporting mdynamic-no-pic
5168 # and the option has been tested as safe to add, then cancel
5169 # it here, since the code generated is incompatible with shared
5170 # libs.
5171 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5172 *) PICFLAG_FOR_TARGET=-fno-common ;;
5173 esac
5174 ;;
5175 alpha*-dec-osf5*)
5176 # PIC is the default.
5177 ;;
5178 hppa*64*-*-hpux*)
5179 # PIC is the default for 64-bit PA HP-UX.
5180 ;;
5181 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5182 ;;
5183 i[34567]86-*-mingw* | x86_64-*-mingw*)
5184 ;;
5185 i[34567]86-*-interix[3-9]*)
5186 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5187 # Instead, we relocate shared libraries at runtime.
5188 ;;
5189 i[34567]86-*-nto-qnx*)
5190 # QNX uses GNU C++, but need to define -shared option too, otherwise
5191 # it will coredump.
5192 PICFLAG_FOR_TARGET='-fPIC -shared'
5193 ;;
5194 i[34567]86-pc-msdosdjgpp*)
5195 # DJGPP does not support shared libraries at all.
5196 ;;
5197 ia64*-*-hpux*)
5198 # On IA64 HP-UX, PIC is the default but the pic flag
5199 # sets the default TLS model and affects inlining.
5200 PICFLAG_FOR_TARGET=-fPIC
5201 ;;
5202 mips-sgi-irix6*)
5203 # PIC is the default.
5204 ;;
5205 rs6000-ibm-aix* | powerpc-ibm-aix*)
5206 # All AIX code is PIC.
5207 ;;
5208
5209 # Some targets support both -fPIC and -fpic, but prefer the latter.
5210 # FIXME: Why?
5211 i[34567]86-*-* | x86_64-*-*)
5212 PICFLAG_FOR_TARGET=-fpic
5213 ;;
5214 # FIXME: Override -fPIC default in libgcc only?
5215 sh-*-linux* | sh[2346lbe]*-*-linux*)
5216 PICFLAG_FOR_TARGET=-fpic
5217 ;;
5218 # FIXME: Simplify to sh*-*-netbsd*?
5219 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5220 sh64-*-netbsd* | sh64l*-*-netbsd*)
5221 PICFLAG_FOR_TARGET=-fpic
5222 ;;
5223 # Default to -fPIC unless specified otherwise.
5224 *)
5225 PICFLAG_FOR_TARGET=-fPIC
5226 ;;
5227 esac
5228
5229 # If the user explicitly uses -fpic/-fPIC, keep that.
5230 case "${CFLAGS_FOR_TARGET}" in
5231 *-fpic*)
5232 PICFLAG_FOR_TARGET=-fpic
5233 ;;
5234 *-fPIC*)
5235 PICFLAG_FOR_TARGET=-fPIC
5236 ;;
5237 esac
5238
5239
5240
5241 # -------------------------
5242 # Check C compiler features
5243 # -------------------------
5244
5245
5246 ac_ext=cpp
5247 ac_cpp='$CXXCPP $CPPFLAGS'
5248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5252 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5253 if test -z "$CXXCPP"; then
5254 if ${ac_cv_prog_CXXCPP+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 # Double quotes because CXXCPP needs to be expanded
5258 for CXXCPP in "$CXX -E" "/lib/cpp"
5259 do
5260 ac_preproc_ok=false
5261 for ac_cxx_preproc_warn_flag in '' yes
5262 do
5263 # Use a header file that comes with gcc, so configuring glibc
5264 # with a fresh cross-compiler works.
5265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5266 # <limits.h> exists even on freestanding compilers.
5267 # On the NeXT, cc -E runs the code through the compiler's parser,
5268 # not just through cpp. "Syntax error" is here to catch this case.
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271 #ifdef __STDC__
5272 # include <limits.h>
5273 #else
5274 # include <assert.h>
5275 #endif
5276 Syntax error
5277 _ACEOF
5278 if ac_fn_cxx_try_cpp "$LINENO"; then :
5279
5280 else
5281 # Broken: fails on valid input.
5282 continue
5283 fi
5284 rm -f conftest.err conftest.i conftest.$ac_ext
5285
5286 # OK, works on sane cases. Now check whether nonexistent headers
5287 # can be detected and how.
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5290 #include <ac_nonexistent.h>
5291 _ACEOF
5292 if ac_fn_cxx_try_cpp "$LINENO"; then :
5293 # Broken: success on invalid input.
5294 continue
5295 else
5296 # Passes both tests.
5297 ac_preproc_ok=:
5298 break
5299 fi
5300 rm -f conftest.err conftest.i conftest.$ac_ext
5301
5302 done
5303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5304 rm -f conftest.i conftest.err conftest.$ac_ext
5305 if $ac_preproc_ok; then :
5306 break
5307 fi
5308
5309 done
5310 ac_cv_prog_CXXCPP=$CXXCPP
5311
5312 fi
5313 CXXCPP=$ac_cv_prog_CXXCPP
5314 else
5315 ac_cv_prog_CXXCPP=$CXXCPP
5316 fi
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5318 $as_echo "$CXXCPP" >&6; }
5319 ac_preproc_ok=false
5320 for ac_cxx_preproc_warn_flag in '' yes
5321 do
5322 # Use a header file that comes with gcc, so configuring glibc
5323 # with a fresh cross-compiler works.
5324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5325 # <limits.h> exists even on freestanding compilers.
5326 # On the NeXT, cc -E runs the code through the compiler's parser,
5327 # not just through cpp. "Syntax error" is here to catch this case.
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5330 #ifdef __STDC__
5331 # include <limits.h>
5332 #else
5333 # include <assert.h>
5334 #endif
5335 Syntax error
5336 _ACEOF
5337 if ac_fn_cxx_try_cpp "$LINENO"; then :
5338
5339 else
5340 # Broken: fails on valid input.
5341 continue
5342 fi
5343 rm -f conftest.err conftest.i conftest.$ac_ext
5344
5345 # OK, works on sane cases. Now check whether nonexistent headers
5346 # can be detected and how.
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5349 #include <ac_nonexistent.h>
5350 _ACEOF
5351 if ac_fn_cxx_try_cpp "$LINENO"; then :
5352 # Broken: success on invalid input.
5353 continue
5354 else
5355 # Passes both tests.
5356 ac_preproc_ok=:
5357 break
5358 fi
5359 rm -f conftest.err conftest.i conftest.$ac_ext
5360
5361 done
5362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5363 rm -f conftest.i conftest.err conftest.$ac_ext
5364 if $ac_preproc_ok; then :
5365
5366 else
5367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5369 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5370 See \`config.log' for more details" "$LINENO" 5; }
5371 fi
5372
5373 ac_ext=cpp
5374 ac_cpp='$CXXCPP $CPPFLAGS'
5375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5378
5379
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5381 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5382 if ${ac_cv_path_GREP+:} false; then :
5383 $as_echo_n "(cached) " >&6
5384 else
5385 if test -z "$GREP"; then
5386 ac_path_GREP_found=false
5387 # Loop through the user's path and test for each of PROGNAME-LIST
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5390 do
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_prog in grep ggrep; do
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5396 as_fn_executable_p "$ac_path_GREP" || continue
5397 # Check for GNU ac_path_GREP and select it if it is found.
5398 # Check for GNU $ac_path_GREP
5399 case `"$ac_path_GREP" --version 2>&1` in
5400 *GNU*)
5401 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5402 *)
5403 ac_count=0
5404 $as_echo_n 0123456789 >"conftest.in"
5405 while :
5406 do
5407 cat "conftest.in" "conftest.in" >"conftest.tmp"
5408 mv "conftest.tmp" "conftest.in"
5409 cp "conftest.in" "conftest.nl"
5410 $as_echo 'GREP' >> "conftest.nl"
5411 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5412 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5413 as_fn_arith $ac_count + 1 && ac_count=$as_val
5414 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5415 # Best one so far, save it but keep looking for a better one
5416 ac_cv_path_GREP="$ac_path_GREP"
5417 ac_path_GREP_max=$ac_count
5418 fi
5419 # 10*(2^10) chars as input seems more than enough
5420 test $ac_count -gt 10 && break
5421 done
5422 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5423 esac
5424
5425 $ac_path_GREP_found && break 3
5426 done
5427 done
5428 done
5429 IFS=$as_save_IFS
5430 if test -z "$ac_cv_path_GREP"; then
5431 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5432 fi
5433 else
5434 ac_cv_path_GREP=$GREP
5435 fi
5436
5437 fi
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5439 $as_echo "$ac_cv_path_GREP" >&6; }
5440 GREP="$ac_cv_path_GREP"
5441
5442
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5444 $as_echo_n "checking for egrep... " >&6; }
5445 if ${ac_cv_path_EGREP+:} false; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5449 then ac_cv_path_EGREP="$GREP -E"
5450 else
5451 if test -z "$EGREP"; then
5452 ac_path_EGREP_found=false
5453 # Loop through the user's path and test for each of PROGNAME-LIST
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5456 do
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_prog in egrep; do
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5462 as_fn_executable_p "$ac_path_EGREP" || continue
5463 # Check for GNU ac_path_EGREP and select it if it is found.
5464 # Check for GNU $ac_path_EGREP
5465 case `"$ac_path_EGREP" --version 2>&1` in
5466 *GNU*)
5467 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5468 *)
5469 ac_count=0
5470 $as_echo_n 0123456789 >"conftest.in"
5471 while :
5472 do
5473 cat "conftest.in" "conftest.in" >"conftest.tmp"
5474 mv "conftest.tmp" "conftest.in"
5475 cp "conftest.in" "conftest.nl"
5476 $as_echo 'EGREP' >> "conftest.nl"
5477 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5478 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5479 as_fn_arith $ac_count + 1 && ac_count=$as_val
5480 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5481 # Best one so far, save it but keep looking for a better one
5482 ac_cv_path_EGREP="$ac_path_EGREP"
5483 ac_path_EGREP_max=$ac_count
5484 fi
5485 # 10*(2^10) chars as input seems more than enough
5486 test $ac_count -gt 10 && break
5487 done
5488 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5489 esac
5490
5491 $ac_path_EGREP_found && break 3
5492 done
5493 done
5494 done
5495 IFS=$as_save_IFS
5496 if test -z "$ac_cv_path_EGREP"; then
5497 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5498 fi
5499 else
5500 ac_cv_path_EGREP=$EGREP
5501 fi
5502
5503 fi
5504 fi
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5506 $as_echo "$ac_cv_path_EGREP" >&6; }
5507 EGREP="$ac_cv_path_EGREP"
5508
5509
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5511 $as_echo_n "checking for ANSI C header files... " >&6; }
5512 if ${ac_cv_header_stdc+:} false; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h. */
5517 #include <stdlib.h>
5518 #include <stdarg.h>
5519 #include <string.h>
5520 #include <float.h>
5521
5522 int
5523 main ()
5524 {
5525
5526 ;
5527 return 0;
5528 }
5529 _ACEOF
5530 if ac_fn_cxx_try_compile "$LINENO"; then :
5531 ac_cv_header_stdc=yes
5532 else
5533 ac_cv_header_stdc=no
5534 fi
5535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536
5537 if test $ac_cv_header_stdc = yes; then
5538 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541 #include <string.h>
5542
5543 _ACEOF
5544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5545 $EGREP "memchr" >/dev/null 2>&1; then :
5546
5547 else
5548 ac_cv_header_stdc=no
5549 fi
5550 rm -f conftest*
5551
5552 fi
5553
5554 if test $ac_cv_header_stdc = yes; then
5555 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h. */
5558 #include <stdlib.h>
5559
5560 _ACEOF
5561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5562 $EGREP "free" >/dev/null 2>&1; then :
5563
5564 else
5565 ac_cv_header_stdc=no
5566 fi
5567 rm -f conftest*
5568
5569 fi
5570
5571 if test $ac_cv_header_stdc = yes; then
5572 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5573 if test "$cross_compiling" = yes; then :
5574 :
5575 else
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5578 #include <ctype.h>
5579 #include <stdlib.h>
5580 #if ((' ' & 0x0FF) == 0x020)
5581 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5582 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5583 #else
5584 # define ISLOWER(c) \
5585 (('a' <= (c) && (c) <= 'i') \
5586 || ('j' <= (c) && (c) <= 'r') \
5587 || ('s' <= (c) && (c) <= 'z'))
5588 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5589 #endif
5590
5591 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5592 int
5593 main ()
5594 {
5595 int i;
5596 for (i = 0; i < 256; i++)
5597 if (XOR (islower (i), ISLOWER (i))
5598 || toupper (i) != TOUPPER (i))
5599 return 2;
5600 return 0;
5601 }
5602 _ACEOF
5603 if ac_fn_cxx_try_run "$LINENO"; then :
5604
5605 else
5606 ac_cv_header_stdc=no
5607 fi
5608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5609 conftest.$ac_objext conftest.beam conftest.$ac_ext
5610 fi
5611
5612 fi
5613 fi
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5615 $as_echo "$ac_cv_header_stdc" >&6; }
5616 if test $ac_cv_header_stdc = yes; then
5617
5618 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5619
5620 fi
5621
5622 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5623 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5624 inttypes.h stdint.h unistd.h
5625 do :
5626 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5627 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5628 "
5629 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5630 cat >>confdefs.h <<_ACEOF
5631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5632 _ACEOF
5633
5634 fi
5635
5636 done
5637
5638
5639
5640 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5641 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5642 MINIX=yes
5643 else
5644 MINIX=
5645 fi
5646
5647
5648 if test "$MINIX" = yes; then
5649
5650 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5651
5652
5653 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5654
5655
5656 $as_echo "#define _MINIX 1" >>confdefs.h
5657
5658 fi
5659
5660
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5662 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5663 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668
5669 # define __EXTENSIONS__ 1
5670 $ac_includes_default
5671 int
5672 main ()
5673 {
5674
5675 ;
5676 return 0;
5677 }
5678 _ACEOF
5679 if ac_fn_cxx_try_compile "$LINENO"; then :
5680 ac_cv_safe_to_define___extensions__=yes
5681 else
5682 ac_cv_safe_to_define___extensions__=no
5683 fi
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685 fi
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5687 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5688 test $ac_cv_safe_to_define___extensions__ = yes &&
5689 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5690
5691 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5692
5693 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5694
5695 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5696
5697 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5698
5699
5700 ac_ext=c
5701 ac_cpp='$CPP $CPPFLAGS'
5702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5706 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5707 # On Suns, sometimes $CPP names a directory.
5708 if test -n "$CPP" && test -d "$CPP"; then
5709 CPP=
5710 fi
5711 if test -z "$CPP"; then
5712 if ${ac_cv_prog_CPP+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 # Double quotes because CPP needs to be expanded
5716 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5717 do
5718 ac_preproc_ok=false
5719 for ac_c_preproc_warn_flag in '' yes
5720 do
5721 # Use a header file that comes with gcc, so configuring glibc
5722 # with a fresh cross-compiler works.
5723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5724 # <limits.h> exists even on freestanding compilers.
5725 # On the NeXT, cc -E runs the code through the compiler's parser,
5726 # not just through cpp. "Syntax error" is here to catch this case.
5727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728 /* end confdefs.h. */
5729 #ifdef __STDC__
5730 # include <limits.h>
5731 #else
5732 # include <assert.h>
5733 #endif
5734 Syntax error
5735 _ACEOF
5736 if ac_fn_c_try_cpp "$LINENO"; then :
5737
5738 else
5739 # Broken: fails on valid input.
5740 continue
5741 fi
5742 rm -f conftest.err conftest.i conftest.$ac_ext
5743
5744 # OK, works on sane cases. Now check whether nonexistent headers
5745 # can be detected and how.
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748 #include <ac_nonexistent.h>
5749 _ACEOF
5750 if ac_fn_c_try_cpp "$LINENO"; then :
5751 # Broken: success on invalid input.
5752 continue
5753 else
5754 # Passes both tests.
5755 ac_preproc_ok=:
5756 break
5757 fi
5758 rm -f conftest.err conftest.i conftest.$ac_ext
5759
5760 done
5761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5762 rm -f conftest.i conftest.err conftest.$ac_ext
5763 if $ac_preproc_ok; then :
5764 break
5765 fi
5766
5767 done
5768 ac_cv_prog_CPP=$CPP
5769
5770 fi
5771 CPP=$ac_cv_prog_CPP
5772 else
5773 ac_cv_prog_CPP=$CPP
5774 fi
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5776 $as_echo "$CPP" >&6; }
5777 ac_preproc_ok=false
5778 for ac_c_preproc_warn_flag in '' yes
5779 do
5780 # Use a header file that comes with gcc, so configuring glibc
5781 # with a fresh cross-compiler works.
5782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5783 # <limits.h> exists even on freestanding compilers.
5784 # On the NeXT, cc -E runs the code through the compiler's parser,
5785 # not just through cpp. "Syntax error" is here to catch this case.
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5788 #ifdef __STDC__
5789 # include <limits.h>
5790 #else
5791 # include <assert.h>
5792 #endif
5793 Syntax error
5794 _ACEOF
5795 if ac_fn_c_try_cpp "$LINENO"; then :
5796
5797 else
5798 # Broken: fails on valid input.
5799 continue
5800 fi
5801 rm -f conftest.err conftest.i conftest.$ac_ext
5802
5803 # OK, works on sane cases. Now check whether nonexistent headers
5804 # can be detected and how.
5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806 /* end confdefs.h. */
5807 #include <ac_nonexistent.h>
5808 _ACEOF
5809 if ac_fn_c_try_cpp "$LINENO"; then :
5810 # Broken: success on invalid input.
5811 continue
5812 else
5813 # Passes both tests.
5814 ac_preproc_ok=:
5815 break
5816 fi
5817 rm -f conftest.err conftest.i conftest.$ac_ext
5818
5819 done
5820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5821 rm -f conftest.i conftest.err conftest.$ac_ext
5822 if $ac_preproc_ok; then :
5823
5824 else
5825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5827 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5828 See \`config.log' for more details" "$LINENO" 5; }
5829 fi
5830
5831 ac_ext=cpp
5832 ac_cpp='$CXXCPP $CPPFLAGS'
5833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5836
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5838 $as_echo_n "checking for inline... " >&6; }
5839 if ${ac_cv_c_inline+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 ac_cv_c_inline=no
5843 for ac_kw in inline __inline__ __inline; do
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h. */
5846 #ifndef __cplusplus
5847 typedef int foo_t;
5848 static $ac_kw foo_t static_foo () {return 0; }
5849 $ac_kw foo_t foo () {return 0; }
5850 #endif
5851
5852 _ACEOF
5853 if ac_fn_cxx_try_compile "$LINENO"; then :
5854 ac_cv_c_inline=$ac_kw
5855 fi
5856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857 test "$ac_cv_c_inline" != no && break
5858 done
5859
5860 fi
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5862 $as_echo "$ac_cv_c_inline" >&6; }
5863
5864 case $ac_cv_c_inline in
5865 inline | yes) ;;
5866 *)
5867 case $ac_cv_c_inline in
5868 no) ac_val=;;
5869 *) ac_val=$ac_cv_c_inline;;
5870 esac
5871 cat >>confdefs.h <<_ACEOF
5872 #ifndef __cplusplus
5873 #define inline $ac_val
5874 #endif
5875 _ACEOF
5876 ;;
5877 esac
5878
5879
5880 # Check whether --enable-largefile was given.
5881 if test "${enable_largefile+set}" = set; then :
5882 enableval=$enable_largefile;
5883 fi
5884
5885 if test "$enable_largefile" != no; then
5886
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5888 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5889 if ${ac_cv_sys_largefile_CC+:} false; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5892 ac_cv_sys_largefile_CC=no
5893 if test "$GCC" != yes; then
5894 ac_save_CC=$CC
5895 while :; do
5896 # IRIX 6.2 and later do not support large files by default,
5897 # so use the C compiler's -n32 option if that helps.
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5900 #include <sys/types.h>
5901 /* Check that off_t can represent 2**63 - 1 correctly.
5902 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5903 since some C++ compilers masquerading as C compilers
5904 incorrectly reject 9223372036854775807. */
5905 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5906 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5907 && LARGE_OFF_T % 2147483647 == 1)
5908 ? 1 : -1];
5909 int
5910 main ()
5911 {
5912
5913 ;
5914 return 0;
5915 }
5916 _ACEOF
5917 if ac_fn_cxx_try_compile "$LINENO"; then :
5918 break
5919 fi
5920 rm -f core conftest.err conftest.$ac_objext
5921 CC="$CC -n32"
5922 if ac_fn_cxx_try_compile "$LINENO"; then :
5923 ac_cv_sys_largefile_CC=' -n32'; break
5924 fi
5925 rm -f core conftest.err conftest.$ac_objext
5926 break
5927 done
5928 CC=$ac_save_CC
5929 rm -f conftest.$ac_ext
5930 fi
5931 fi
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5933 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5934 if test "$ac_cv_sys_largefile_CC" != no; then
5935 CC=$CC$ac_cv_sys_largefile_CC
5936 fi
5937
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5939 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5940 if ${ac_cv_sys_file_offset_bits+:} false; then :
5941 $as_echo_n "(cached) " >&6
5942 else
5943 while :; do
5944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945 /* end confdefs.h. */
5946 #include <sys/types.h>
5947 /* Check that off_t can represent 2**63 - 1 correctly.
5948 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5949 since some C++ compilers masquerading as C compilers
5950 incorrectly reject 9223372036854775807. */
5951 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5952 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5953 && LARGE_OFF_T % 2147483647 == 1)
5954 ? 1 : -1];
5955 int
5956 main ()
5957 {
5958
5959 ;
5960 return 0;
5961 }
5962 _ACEOF
5963 if ac_fn_cxx_try_compile "$LINENO"; then :
5964 ac_cv_sys_file_offset_bits=no; break
5965 fi
5966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5969 #define _FILE_OFFSET_BITS 64
5970 #include <sys/types.h>
5971 /* Check that off_t can represent 2**63 - 1 correctly.
5972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5973 since some C++ compilers masquerading as C compilers
5974 incorrectly reject 9223372036854775807. */
5975 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5977 && LARGE_OFF_T % 2147483647 == 1)
5978 ? 1 : -1];
5979 int
5980 main ()
5981 {
5982
5983 ;
5984 return 0;
5985 }
5986 _ACEOF
5987 if ac_fn_cxx_try_compile "$LINENO"; then :
5988 ac_cv_sys_file_offset_bits=64; break
5989 fi
5990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991 ac_cv_sys_file_offset_bits=unknown
5992 break
5993 done
5994 fi
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5996 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5997 case $ac_cv_sys_file_offset_bits in #(
5998 no | unknown) ;;
5999 *)
6000 cat >>confdefs.h <<_ACEOF
6001 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6002 _ACEOF
6003 ;;
6004 esac
6005 rm -rf conftest*
6006 if test $ac_cv_sys_file_offset_bits = unknown; then
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6008 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6009 if ${ac_cv_sys_large_files+:} false; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 while :; do
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6015 #include <sys/types.h>
6016 /* Check that off_t can represent 2**63 - 1 correctly.
6017 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6018 since some C++ compilers masquerading as C compilers
6019 incorrectly reject 9223372036854775807. */
6020 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6021 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6022 && LARGE_OFF_T % 2147483647 == 1)
6023 ? 1 : -1];
6024 int
6025 main ()
6026 {
6027
6028 ;
6029 return 0;
6030 }
6031 _ACEOF
6032 if ac_fn_cxx_try_compile "$LINENO"; then :
6033 ac_cv_sys_large_files=no; break
6034 fi
6035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 #define _LARGE_FILES 1
6039 #include <sys/types.h>
6040 /* Check that off_t can represent 2**63 - 1 correctly.
6041 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6042 since some C++ compilers masquerading as C compilers
6043 incorrectly reject 9223372036854775807. */
6044 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6045 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6046 && LARGE_OFF_T % 2147483647 == 1)
6047 ? 1 : -1];
6048 int
6049 main ()
6050 {
6051
6052 ;
6053 return 0;
6054 }
6055 _ACEOF
6056 if ac_fn_cxx_try_compile "$LINENO"; then :
6057 ac_cv_sys_large_files=1; break
6058 fi
6059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060 ac_cv_sys_large_files=unknown
6061 break
6062 done
6063 fi
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6065 $as_echo "$ac_cv_sys_large_files" >&6; }
6066 case $ac_cv_sys_large_files in #(
6067 no | unknown) ;;
6068 *)
6069 cat >>confdefs.h <<_ACEOF
6070 #define _LARGE_FILES $ac_cv_sys_large_files
6071 _ACEOF
6072 ;;
6073 esac
6074 rm -rf conftest*
6075 fi
6076
6077
6078 fi
6079
6080
6081 # sizeof(char) is 1 by definition.
6082 # The cast to long int works around a bug in the HP C Compiler
6083 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6084 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6085 # This bug is HP SR number 8606223364.
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6087 $as_echo_n "checking size of void *... " >&6; }
6088 if ${ac_cv_sizeof_void_p+:} false; then :
6089 $as_echo_n "(cached) " >&6
6090 else
6091 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6092
6093 else
6094 if test "$ac_cv_type_void_p" = yes; then
6095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6097 as_fn_error 77 "cannot compute sizeof (void *)
6098 See \`config.log' for more details" "$LINENO" 5; }
6099 else
6100 ac_cv_sizeof_void_p=0
6101 fi
6102 fi
6103
6104 fi
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6106 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6107
6108
6109
6110 cat >>confdefs.h <<_ACEOF
6111 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6112 _ACEOF
6113
6114
6115 # The cast to long int works around a bug in the HP C Compiler
6116 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6117 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6118 # This bug is HP SR number 8606223364.
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6120 $as_echo_n "checking size of short... " >&6; }
6121 if ${ac_cv_sizeof_short+:} false; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6125
6126 else
6127 if test "$ac_cv_type_short" = yes; then
6128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6130 as_fn_error 77 "cannot compute sizeof (short)
6131 See \`config.log' for more details" "$LINENO" 5; }
6132 else
6133 ac_cv_sizeof_short=0
6134 fi
6135 fi
6136
6137 fi
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6139 $as_echo "$ac_cv_sizeof_short" >&6; }
6140
6141
6142
6143 cat >>confdefs.h <<_ACEOF
6144 #define SIZEOF_SHORT $ac_cv_sizeof_short
6145 _ACEOF
6146
6147
6148 # The cast to long int works around a bug in the HP C Compiler
6149 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6150 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6151 # This bug is HP SR number 8606223364.
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6153 $as_echo_n "checking size of int... " >&6; }
6154 if ${ac_cv_sizeof_int+:} false; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6158
6159 else
6160 if test "$ac_cv_type_int" = yes; then
6161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6163 as_fn_error 77 "cannot compute sizeof (int)
6164 See \`config.log' for more details" "$LINENO" 5; }
6165 else
6166 ac_cv_sizeof_int=0
6167 fi
6168 fi
6169
6170 fi
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6172 $as_echo "$ac_cv_sizeof_int" >&6; }
6173
6174
6175
6176 cat >>confdefs.h <<_ACEOF
6177 #define SIZEOF_INT $ac_cv_sizeof_int
6178 _ACEOF
6179
6180
6181 # The cast to long int works around a bug in the HP C Compiler
6182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6184 # This bug is HP SR number 8606223364.
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6186 $as_echo_n "checking size of long... " >&6; }
6187 if ${ac_cv_sizeof_long+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6191
6192 else
6193 if test "$ac_cv_type_long" = yes; then
6194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6196 as_fn_error 77 "cannot compute sizeof (long)
6197 See \`config.log' for more details" "$LINENO" 5; }
6198 else
6199 ac_cv_sizeof_long=0
6200 fi
6201 fi
6202
6203 fi
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6205 $as_echo "$ac_cv_sizeof_long" >&6; }
6206
6207
6208
6209 cat >>confdefs.h <<_ACEOF
6210 #define SIZEOF_LONG $ac_cv_sizeof_long
6211 _ACEOF
6212
6213
6214 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6215 if test "x$ac_cv_type_long_long" = xyes; then :
6216
6217 cat >>confdefs.h <<_ACEOF
6218 #define HAVE_LONG_LONG 1
6219 _ACEOF
6220
6221 # The cast to long int works around a bug in the HP C Compiler
6222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6224 # This bug is HP SR number 8606223364.
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6226 $as_echo_n "checking size of long long... " >&6; }
6227 if ${ac_cv_sizeof_long_long+:} false; then :
6228 $as_echo_n "(cached) " >&6
6229 else
6230 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6231
6232 else
6233 if test "$ac_cv_type_long_long" = yes; then
6234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6236 as_fn_error 77 "cannot compute sizeof (long long)
6237 See \`config.log' for more details" "$LINENO" 5; }
6238 else
6239 ac_cv_sizeof_long_long=0
6240 fi
6241 fi
6242
6243 fi
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6245 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6246
6247
6248
6249 cat >>confdefs.h <<_ACEOF
6250 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6251 _ACEOF
6252
6253
6254 fi
6255
6256 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6257 case $ac_cv_c_int8_t in #(
6258 no|yes) ;; #(
6259 *)
6260
6261 cat >>confdefs.h <<_ACEOF
6262 #define int8_t $ac_cv_c_int8_t
6263 _ACEOF
6264 ;;
6265 esac
6266
6267 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6268 case $ac_cv_c_int16_t in #(
6269 no|yes) ;; #(
6270 *)
6271
6272 cat >>confdefs.h <<_ACEOF
6273 #define int16_t $ac_cv_c_int16_t
6274 _ACEOF
6275 ;;
6276 esac
6277
6278 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6279 case $ac_cv_c_int32_t in #(
6280 no|yes) ;; #(
6281 *)
6282
6283 cat >>confdefs.h <<_ACEOF
6284 #define int32_t $ac_cv_c_int32_t
6285 _ACEOF
6286 ;;
6287 esac
6288
6289 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6290 case $ac_cv_c_int64_t in #(
6291 no|yes) ;; #(
6292 *)
6293
6294 cat >>confdefs.h <<_ACEOF
6295 #define int64_t $ac_cv_c_int64_t
6296 _ACEOF
6297 ;;
6298 esac
6299
6300
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6302 $as_echo_n "checking for unsigned long long int... " >&6; }
6303 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6304 $as_echo_n "(cached) " >&6
6305 else
6306 ac_cv_type_unsigned_long_long_int=yes
6307 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6310
6311 /* For now, do not test the preprocessor; as of 2007 there are too many
6312 implementations with broken preprocessors. Perhaps this can
6313 be revisited in 2012. In the meantime, code should not expect
6314 #if to work with literals wider than 32 bits. */
6315 /* Test literals. */
6316 long long int ll = 9223372036854775807ll;
6317 long long int nll = -9223372036854775807LL;
6318 unsigned long long int ull = 18446744073709551615ULL;
6319 /* Test constant expressions. */
6320 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6321 ? 1 : -1)];
6322 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6323 ? 1 : -1)];
6324 int i = 63;
6325 int
6326 main ()
6327 {
6328 /* Test availability of runtime routines for shift and division. */
6329 long long int llmax = 9223372036854775807ll;
6330 unsigned long long int ullmax = 18446744073709551615ull;
6331 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6332 | (llmax / ll) | (llmax % ll)
6333 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6334 | (ullmax / ull) | (ullmax % ull));
6335 ;
6336 return 0;
6337 }
6338
6339 _ACEOF
6340 if ac_fn_cxx_try_link "$LINENO"; then :
6341
6342 else
6343 ac_cv_type_unsigned_long_long_int=no
6344 fi
6345 rm -f core conftest.err conftest.$ac_objext \
6346 conftest$ac_exeext conftest.$ac_ext
6347 fi
6348 fi
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6350 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6351 if test $ac_cv_type_unsigned_long_long_int = yes; then
6352
6353 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6354
6355 fi
6356
6357
6358
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6360 $as_echo_n "checking for long long int... " >&6; }
6361 if ${ac_cv_type_long_long_int+:} false; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 ac_cv_type_long_long_int=yes
6365 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6366 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6367 if test $ac_cv_type_long_long_int = yes; then
6368 if test "$cross_compiling" = yes; then :
6369 :
6370 else
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6373 #include <limits.h>
6374 #ifndef LLONG_MAX
6375 # define HALF \
6376 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6377 # define LLONG_MAX (HALF - 1 + HALF)
6378 #endif
6379 int
6380 main ()
6381 {
6382 long long int n = 1;
6383 int i;
6384 for (i = 0; ; i++)
6385 {
6386 long long int m = n << i;
6387 if (m >> i != n)
6388 return 1;
6389 if (LLONG_MAX / 2 < m)
6390 break;
6391 }
6392 return 0;
6393 ;
6394 return 0;
6395 }
6396 _ACEOF
6397 if ac_fn_cxx_try_run "$LINENO"; then :
6398
6399 else
6400 ac_cv_type_long_long_int=no
6401 fi
6402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6403 conftest.$ac_objext conftest.beam conftest.$ac_ext
6404 fi
6405
6406 fi
6407 fi
6408 fi
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6410 $as_echo "$ac_cv_type_long_long_int" >&6; }
6411 if test $ac_cv_type_long_long_int = yes; then
6412
6413 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6414
6415 fi
6416
6417
6418
6419 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6420 if test "x$ac_cv_type_intmax_t" = xyes; then :
6421
6422 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6423
6424 else
6425 test $ac_cv_type_long_long_int = yes \
6426 && ac_type='long long int' \
6427 || ac_type='long int'
6428
6429 cat >>confdefs.h <<_ACEOF
6430 #define intmax_t $ac_type
6431 _ACEOF
6432
6433 fi
6434
6435
6436
6437 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6438 if test "x$ac_cv_type_intptr_t" = xyes; then :
6439
6440 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6441
6442 else
6443 for ac_type in 'int' 'long int' 'long long int'; do
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6446 $ac_includes_default
6447 int
6448 main ()
6449 {
6450 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6451 test_array [0] = 0;
6452 return test_array [0];
6453
6454 ;
6455 return 0;
6456 }
6457 _ACEOF
6458 if ac_fn_cxx_try_compile "$LINENO"; then :
6459
6460 cat >>confdefs.h <<_ACEOF
6461 #define intptr_t $ac_type
6462 _ACEOF
6463
6464 ac_type=
6465 fi
6466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6467 test -z "$ac_type" && break
6468 done
6469 fi
6470
6471
6472 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6473 case $ac_cv_c_uint8_t in #(
6474 no|yes) ;; #(
6475 *)
6476
6477 $as_echo "#define _UINT8_T 1" >>confdefs.h
6478
6479
6480 cat >>confdefs.h <<_ACEOF
6481 #define uint8_t $ac_cv_c_uint8_t
6482 _ACEOF
6483 ;;
6484 esac
6485
6486 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6487 case $ac_cv_c_uint16_t in #(
6488 no|yes) ;; #(
6489 *)
6490
6491
6492 cat >>confdefs.h <<_ACEOF
6493 #define uint16_t $ac_cv_c_uint16_t
6494 _ACEOF
6495 ;;
6496 esac
6497
6498 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6499 case $ac_cv_c_uint32_t in #(
6500 no|yes) ;; #(
6501 *)
6502
6503 $as_echo "#define _UINT32_T 1" >>confdefs.h
6504
6505
6506 cat >>confdefs.h <<_ACEOF
6507 #define uint32_t $ac_cv_c_uint32_t
6508 _ACEOF
6509 ;;
6510 esac
6511
6512 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6513 case $ac_cv_c_uint64_t in #(
6514 no|yes) ;; #(
6515 *)
6516
6517 $as_echo "#define _UINT64_T 1" >>confdefs.h
6518
6519
6520 cat >>confdefs.h <<_ACEOF
6521 #define uint64_t $ac_cv_c_uint64_t
6522 _ACEOF
6523 ;;
6524 esac
6525
6526
6527
6528 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6529 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6530
6531 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6532
6533 else
6534 test $ac_cv_type_unsigned_long_long_int = yes \
6535 && ac_type='unsigned long long int' \
6536 || ac_type='unsigned long int'
6537
6538 cat >>confdefs.h <<_ACEOF
6539 #define uintmax_t $ac_type
6540 _ACEOF
6541
6542 fi
6543
6544
6545
6546 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6547 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6548
6549 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6550
6551 else
6552 for ac_type in 'unsigned int' 'unsigned long int' \
6553 'unsigned long long int'; do
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6556 $ac_includes_default
6557 int
6558 main ()
6559 {
6560 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6561 test_array [0] = 0;
6562 return test_array [0];
6563
6564 ;
6565 return 0;
6566 }
6567 _ACEOF
6568 if ac_fn_cxx_try_compile "$LINENO"; then :
6569
6570 cat >>confdefs.h <<_ACEOF
6571 #define uintptr_t $ac_type
6572 _ACEOF
6573
6574 ac_type=
6575 fi
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 test -z "$ac_type" && break
6578 done
6579 fi
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6595 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6596 fi
6597
6598 # check what underlying integer type int64_t uses
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6600 $as_echo_n "checking for int64_t underlying type... " >&6; }
6601 if ${ac_cv_int64_t_type+:} false; then :
6602 $as_echo_n "(cached) " >&6
6603 else
6604
6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h. */
6607
6608 #ifdef HAVE_STDINT_H
6609 #include <stdint.h>
6610 #endif
6611 template <typename T> struct X { };
6612 template <>
6613 struct X<long> { typedef long t; };
6614
6615 int
6616 main ()
6617 {
6618 X<int64_t>::t x;
6619 ;
6620 return 0;
6621 }
6622 _ACEOF
6623 if ac_fn_cxx_try_compile "$LINENO"; then :
6624 ac_cv_int64_t_type=long
6625 else
6626 ac_cv_int64_t_type="long long"
6627 fi
6628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629 fi
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6631 $as_echo "$ac_cv_int64_t_type" >&6; }
6632 if test "$ac_cv_int64_t_type" = "long"; then
6633
6634 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6635
6636 else
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639
6640 #ifdef HAVE_STDINT_H
6641 #include <stdint.h>
6642 #endif
6643 template <typename T> struct X { };
6644 template <>
6645 struct X<long long> { typedef long long t; };
6646
6647 int
6648 main ()
6649 {
6650 X<int64_t>::t x;
6651 ;
6652 return 0;
6653 }
6654 _ACEOF
6655 if ac_fn_cxx_try_compile "$LINENO"; then :
6656
6657 else
6658 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6659 fi
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661 fi
6662
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6664 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6665 if ${ac_cv_std_swap_in_utility+:} false; then :
6666 $as_echo_n "(cached) " >&6
6667 else
6668
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6671
6672 #include <utility>
6673
6674 int
6675 main ()
6676 {
6677 int a, b; std::swap(a,b);
6678 ;
6679 return 0;
6680 }
6681 _ACEOF
6682 if ac_fn_cxx_try_compile "$LINENO"; then :
6683 ac_cv_std_swap_in_utility=yes
6684 else
6685 ac_cv_std_swap_in_utility=no
6686 fi
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 fi
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6690 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6691 if test $ac_cv_std_swap_in_utility = yes; then
6692
6693 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6694
6695 fi
6696
6697 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6698 # If the host compiler is affected by the bug, and we build with optimization
6699 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6700 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6701 # Since there is no reliable feature check for the presence of this bug,
6702 # we simply use a GCC version number check. (This should never trigger for
6703 # stages 2 or 3 of a native bootstrap.)
6704 aliasing_flags=
6705 if test "$GCC" = yes; then
6706 saved_CXXFLAGS="$CXXFLAGS"
6707
6708 # The following test compilation will succeed if and only if $CXX accepts
6709 # -fno-strict-aliasing *and* is older than GCC 4.3.
6710 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6712 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6715
6716 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6717 #error compiler not affected by placement new aliasing bug
6718 #endif
6719
6720 _ACEOF
6721 if ac_fn_cxx_try_compile "$LINENO"; then :
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6723 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6724 else
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6727 fi
6728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729
6730 CXXFLAGS="$saved_CXXFLAGS"
6731 fi
6732
6733
6734
6735
6736 # ---------------------
6737 # Warnings and checking
6738 # ---------------------
6739
6740 # Check $CC warning features (if it's GCC).
6741 # We want to use -pedantic, but we don't want warnings about
6742 # * 'long long'
6743 # * variadic macros
6744 # * overlong strings
6745 # * C++11 narrowing conversions in { }
6746 # So, we only use -pedantic if we can disable those warnings.
6747
6748 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6749 # Check whether --enable-build-format-warnings was given.
6750 if test "${enable_build_format_warnings+set}" = set; then :
6751 enableval=$enable_build_format_warnings;
6752 else
6753 enable_build_format_warnings=yes
6754 fi
6755
6756 if test $enable_build_format_warnings = no; then :
6757 wf_opt=-Wno-format
6758 else
6759 wf_opt=
6760 fi
6761 ac_ext=cpp
6762 ac_cpp='$CXXCPP $CPPFLAGS'
6763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6766
6767 loose_warn=
6768 save_CXXFLAGS="$CXXFLAGS"
6769 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6770 # Do the check with the no- prefix removed since gcc silently
6771 # accepts any -Wno-* option on purpose
6772 case $real_option in
6773 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6774 *) option=$real_option ;;
6775 esac
6776 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6777
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6779 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6780 if eval \${$as_acx_Woption+:} false; then :
6781 $as_echo_n "(cached) " >&6
6782 else
6783 CXXFLAGS="$option"
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786
6787 int
6788 main ()
6789 {
6790
6791 ;
6792 return 0;
6793 }
6794 _ACEOF
6795 if ac_fn_cxx_try_compile "$LINENO"; then :
6796 eval "$as_acx_Woption=yes"
6797 else
6798 eval "$as_acx_Woption=no"
6799 fi
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6801
6802 fi
6803 eval ac_res=\$$as_acx_Woption
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6805 $as_echo "$ac_res" >&6; }
6806 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6807 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6808 fi
6809 done
6810 CXXFLAGS="$save_CXXFLAGS"
6811 ac_ext=cpp
6812 ac_cpp='$CXXCPP $CPPFLAGS'
6813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6816
6817
6818
6819 ac_ext=c
6820 ac_cpp='$CPP $CPPFLAGS'
6821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6824
6825 c_loose_warn=
6826 save_CFLAGS="$CFLAGS"
6827 for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
6828 # Do the check with the no- prefix removed since gcc silently
6829 # accepts any -Wno-* option on purpose
6830 case $real_option in
6831 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6832 *) option=$real_option ;;
6833 esac
6834 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6835
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6837 $as_echo_n "checking whether $CC supports $option... " >&6; }
6838 if eval \${$as_acx_Woption+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 CFLAGS="$option"
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6844
6845 int
6846 main ()
6847 {
6848
6849 ;
6850 return 0;
6851 }
6852 _ACEOF
6853 if ac_fn_c_try_compile "$LINENO"; then :
6854 eval "$as_acx_Woption=yes"
6855 else
6856 eval "$as_acx_Woption=no"
6857 fi
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859
6860 fi
6861 eval ac_res=\$$as_acx_Woption
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6863 $as_echo "$ac_res" >&6; }
6864 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6865 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6866 fi
6867 done
6868 CFLAGS="$save_CFLAGS"
6869 ac_ext=cpp
6870 ac_cpp='$CXXCPP $CPPFLAGS'
6871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6874
6875
6876 ac_ext=cpp
6877 ac_cpp='$CXXCPP $CPPFLAGS'
6878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6881
6882 strict_warn=
6883 save_CXXFLAGS="$CXXFLAGS"
6884 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6885 # Do the check with the no- prefix removed since gcc silently
6886 # accepts any -Wno-* option on purpose
6887 case $real_option in
6888 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6889 *) option=$real_option ;;
6890 esac
6891 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6892
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6894 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6895 if eval \${$as_acx_Woption+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 CXXFLAGS="$option"
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6901
6902 int
6903 main ()
6904 {
6905
6906 ;
6907 return 0;
6908 }
6909 _ACEOF
6910 if ac_fn_cxx_try_compile "$LINENO"; then :
6911 eval "$as_acx_Woption=yes"
6912 else
6913 eval "$as_acx_Woption=no"
6914 fi
6915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6916
6917 fi
6918 eval ac_res=\$$as_acx_Woption
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6920 $as_echo "$ac_res" >&6; }
6921 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6922 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6923 fi
6924 done
6925 CXXFLAGS="$save_CXXFLAGS"
6926 ac_ext=cpp
6927 ac_cpp='$CXXCPP $CPPFLAGS'
6928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6931
6932
6933 ac_ext=c
6934 ac_cpp='$CPP $CPPFLAGS'
6935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6938
6939 c_strict_warn=
6940 save_CFLAGS="$CFLAGS"
6941 for real_option in -Wold-style-definition -Wc++-compat; do
6942 # Do the check with the no- prefix removed since gcc silently
6943 # accepts any -Wno-* option on purpose
6944 case $real_option in
6945 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6946 *) option=$real_option ;;
6947 esac
6948 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6949
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6951 $as_echo_n "checking whether $CC supports $option... " >&6; }
6952 if eval \${$as_acx_Woption+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 CFLAGS="$option"
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6958
6959 int
6960 main ()
6961 {
6962
6963 ;
6964 return 0;
6965 }
6966 _ACEOF
6967 if ac_fn_c_try_compile "$LINENO"; then :
6968 eval "$as_acx_Woption=yes"
6969 else
6970 eval "$as_acx_Woption=no"
6971 fi
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973
6974 fi
6975 eval ac_res=\$$as_acx_Woption
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6977 $as_echo "$ac_res" >&6; }
6978 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6979 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6980 fi
6981 done
6982 CFLAGS="$save_CFLAGS"
6983 ac_ext=cpp
6984 ac_cpp='$CXXCPP $CPPFLAGS'
6985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6988
6989
6990 ac_ext=cpp
6991 ac_cpp='$CXXCPP $CPPFLAGS'
6992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6995
6996 # Do the check with the no- prefix removed from the warning options
6997 # since gcc silently accepts any -Wno-* option on purpose
6998 if test "$GXX" = yes; then :
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7000 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7001 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7002 $as_echo_n "(cached) " >&6
7003 else
7004 save_CXXFLAGS="$CXXFLAGS"
7005 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7008
7009 int
7010 main ()
7011 {
7012
7013 ;
7014 return 0;
7015 }
7016 _ACEOF
7017 if ac_fn_cxx_try_compile "$LINENO"; then :
7018 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7019 else
7020 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7021 fi
7022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7023 CXXFLAGS="$save_CXXFLAGS"
7024 fi
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7026 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7027 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7028 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7029 fi
7030
7031 fi
7032 ac_ext=cpp
7033 ac_cpp='$CXXCPP $CPPFLAGS'
7034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7037
7038
7039 ac_ext=cpp
7040 ac_cpp='$CXXCPP $CPPFLAGS'
7041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7044
7045 # Check whether --enable-werror-always was given.
7046 if test "${enable_werror_always+set}" = set; then :
7047 enableval=$enable_werror_always;
7048 else
7049 enable_werror_always=no
7050 fi
7051
7052 if test $enable_werror_always = yes; then :
7053 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7054 fi
7055
7056 ac_ext=cpp
7057 ac_cpp='$CXXCPP $CPPFLAGS'
7058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7061
7062
7063
7064 # The above macros do nothing if the compiler is not GCC. However, the
7065 # Makefile has more goo to add other flags, so these variables are used
7066 # to enable warnings only for GCC.
7067 warn_cflags=
7068 warn_cxxflags=
7069 if test "x$GCC" = "xyes"; then
7070 warn_cflags='$(GCC_WARN_CFLAGS)'
7071 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7072 fi
7073
7074
7075
7076 # Disable exceptions and RTTI if building with g++
7077 ac_ext=c
7078 ac_cpp='$CPP $CPPFLAGS'
7079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7082
7083 noexception_flags=
7084 save_CFLAGS="$CFLAGS"
7085 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7086 # Do the check with the no- prefix removed since gcc silently
7087 # accepts any -Wno-* option on purpose
7088 case $real_option in
7089 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7090 *) option=$real_option ;;
7091 esac
7092 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7093
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7095 $as_echo_n "checking whether $CC supports $option... " >&6; }
7096 if eval \${$as_acx_Woption+:} false; then :
7097 $as_echo_n "(cached) " >&6
7098 else
7099 CFLAGS="$option"
7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h. */
7102
7103 int
7104 main ()
7105 {
7106
7107 ;
7108 return 0;
7109 }
7110 _ACEOF
7111 if ac_fn_c_try_compile "$LINENO"; then :
7112 eval "$as_acx_Woption=yes"
7113 else
7114 eval "$as_acx_Woption=no"
7115 fi
7116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117
7118 fi
7119 eval ac_res=\$$as_acx_Woption
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7121 $as_echo "$ac_res" >&6; }
7122 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7123 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7124 fi
7125 done
7126 CFLAGS="$save_CFLAGS"
7127 ac_ext=cpp
7128 ac_cpp='$CXXCPP $CPPFLAGS'
7129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7132
7133
7134
7135 # Enable expensive internal checks
7136 is_release=
7137 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7138 is_release=yes
7139 fi
7140
7141 # Check whether --enable-checking was given.
7142 if test "${enable_checking+set}" = set; then :
7143 enableval=$enable_checking; ac_checking_flags="${enableval}"
7144 else
7145
7146 # Determine the default checks.
7147 if test x$is_release = x ; then
7148 ac_checking_flags=yes,extra
7149 else
7150 ac_checking_flags=release
7151 fi
7152 fi
7153
7154 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7155 for check in release $ac_checking_flags
7156 do
7157 case $check in
7158 # these set all the flags to specific states
7159 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7160 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7161 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7162 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7163 ac_tree_checking=1 ; ac_valgrind_checking= ;
7164 ac_types_checking=1 ;;
7165 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7166 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7167 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7168 ac_rtlflag_checking= ; ac_runtime_checking= ;
7169 ac_tree_checking= ; ac_valgrind_checking= ;
7170 ac_types_checking= ;;
7171 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7172 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7173 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7174 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7175 ac_tree_checking=1 ; ac_valgrind_checking= ;
7176 ac_types_checking=1 ;;
7177 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7178 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7179 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7180 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7181 ac_tree_checking= ; ac_valgrind_checking= ;
7182 ac_types_checking= ;;
7183 # these enable particular checks
7184 assert) ac_assert_checking=1 ;;
7185 df) ac_df_checking=1 ;;
7186 extra) ac_extra_checking=1 ;;
7187 fold) ac_fold_checking=1 ;;
7188 gc) ac_gc_checking=1 ;;
7189 gcac) ac_gc_always_collect=1 ;;
7190 gimple) ac_gimple_checking=1 ;;
7191 misc) ac_checking=1 ;;
7192 rtl) ac_rtl_checking=1 ;;
7193 rtlflag) ac_rtlflag_checking=1 ;;
7194 runtime) ac_runtime_checking=1 ;;
7195 tree) ac_tree_checking=1 ;;
7196 types) ac_types_checking=1 ;;
7197 valgrind) ac_valgrind_checking=1 ;;
7198 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7199 esac
7200 done
7201 IFS="$ac_save_IFS"
7202
7203 nocommon_flag=""
7204 if test x$ac_checking != x ; then
7205
7206 $as_echo "#define CHECKING_P 1" >>confdefs.h
7207
7208 nocommon_flag=-fno-common
7209 else
7210 $as_echo "#define CHECKING_P 0" >>confdefs.h
7211
7212 fi
7213
7214 if test x$ac_extra_checking != x ; then
7215
7216 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7217
7218 else
7219 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7220
7221 fi
7222 if test x$ac_df_checking != x ; then
7223
7224 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7225
7226 fi
7227 if test x$ac_assert_checking != x ; then
7228
7229 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7230
7231 fi
7232 if test x$ac_gimple_checking != x ; then
7233
7234 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7235
7236 fi
7237
7238 if test x$ac_runtime_checking != x ; then
7239
7240 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7241
7242 fi
7243 if test x$ac_tree_checking != x ; then
7244
7245 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7246
7247 TREECHECKING=yes
7248 fi
7249 if test x$ac_types_checking != x ; then
7250
7251 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7252
7253 fi
7254
7255 if test x$ac_rtl_checking != x ; then
7256
7257 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7258
7259 fi
7260 if test x$ac_rtlflag_checking != x ; then
7261
7262 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7263
7264 fi
7265 if test x$ac_gc_checking != x ; then
7266
7267 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7268
7269 fi
7270 if test x$ac_gc_always_collect != x ; then
7271
7272 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7273
7274 fi
7275 if test x$ac_fold_checking != x ; then
7276
7277 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7278
7279 fi
7280 valgrind_path_defines=
7281 valgrind_command=
7282
7283 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7284 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7285 have_valgrind_h=yes
7286 else
7287 have_valgrind_h=no
7288 fi
7289
7290
7291
7292 # It is certainly possible that there's valgrind but no valgrind.h.
7293 # GCC relies on making annotations so we must have both.
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7295 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h. */
7298 #include <valgrind/memcheck.h>
7299 #ifndef VALGRIND_DISCARD
7300 #error VALGRIND_DISCARD not defined
7301 #endif
7302 _ACEOF
7303 if ac_fn_cxx_try_cpp "$LINENO"; then :
7304 gcc_cv_header_valgrind_memcheck_h=yes
7305 else
7306 gcc_cv_header_valgrind_memcheck_h=no
7307 fi
7308 rm -f conftest.err conftest.i conftest.$ac_ext
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7310 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7312 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315 #include <memcheck.h>
7316 #ifndef VALGRIND_DISCARD
7317 #error VALGRIND_DISCARD not defined
7318 #endif
7319 _ACEOF
7320 if ac_fn_cxx_try_cpp "$LINENO"; then :
7321 gcc_cv_header_memcheck_h=yes
7322 else
7323 gcc_cv_header_memcheck_h=no
7324 fi
7325 rm -f conftest.err conftest.i conftest.$ac_ext
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7327 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7328 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7329
7330 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7331
7332 fi
7333 if test $gcc_cv_header_memcheck_h = yes; then
7334
7335 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7336
7337 fi
7338
7339 if test x$ac_valgrind_checking != x ; then
7340
7341 # Prepare PATH_SEPARATOR.
7342 # The user is always right.
7343 if test "${PATH_SEPARATOR+set}" != set; then
7344 echo "#! /bin/sh" >conf$$.sh
7345 echo "exit 0" >>conf$$.sh
7346 chmod +x conf$$.sh
7347 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7348 PATH_SEPARATOR=';'
7349 else
7350 PATH_SEPARATOR=:
7351 fi
7352 rm -f conf$$.sh
7353 fi
7354
7355 # Find out how to test for executable files. Don't use a zero-byte file,
7356 # as systems may use methods other than mode bits to determine executability.
7357 cat >conf$$.file <<_ASEOF
7358 #! /bin/sh
7359 exit 0
7360 _ASEOF
7361 chmod +x conf$$.file
7362 if test -x conf$$.file >/dev/null 2>&1; then
7363 ac_executable_p="test -x"
7364 else
7365 ac_executable_p="test -f"
7366 fi
7367 rm -f conf$$.file
7368
7369 # Extract the first word of "valgrind", so it can be a program name with args.
7370 set dummy valgrind; ac_word=$2
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372 $as_echo_n "checking for $ac_word... " >&6; }
7373 if ${ac_cv_path_valgrind_path+:} false; then :
7374 $as_echo_n "(cached) " >&6
7375 else
7376 case "$valgrind_path" in
7377 [\\/]* | ?:[\\/]*)
7378 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7379 ;;
7380 *)
7381 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7382 for ac_dir in $PATH; do
7383 IFS="$ac_save_IFS"
7384 test -z "$ac_dir" && ac_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7387 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7388 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7389 break 2
7390 fi
7391 fi
7392 done
7393 done
7394 IFS="$ac_save_IFS"
7395 ;;
7396 esac
7397 fi
7398 valgrind_path="$ac_cv_path_valgrind_path"
7399 if test -n "$valgrind_path"; then
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7401 $as_echo "$valgrind_path" >&6; }
7402 else
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404 $as_echo "no" >&6; }
7405 fi
7406
7407 if test "x$valgrind_path" = "x" \
7408 || (test $have_valgrind_h = no \
7409 && test $gcc_cv_header_memcheck_h = no \
7410 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7411 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7412 fi
7413 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7414 valgrind_command="$valgrind_path -q"
7415
7416 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7417
7418 fi
7419
7420
7421
7422 # Enable code coverage collection
7423 # Check whether --enable-coverage was given.
7424 if test "${enable_coverage+set}" = set; then :
7425 enableval=$enable_coverage; case "${enableval}" in
7426 yes|noopt)
7427 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7428 ;;
7429 opt)
7430 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7431 ;;
7432 no)
7433 # a.k.a. --disable-coverage
7434 coverage_flags=""
7435 ;;
7436 *)
7437 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7438 ;;
7439 esac
7440 else
7441 coverage_flags=""
7442 fi
7443
7444
7445
7446 # Check whether --enable-gather-detailed-mem-stats was given.
7447 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7448 enableval=$enable_gather_detailed_mem_stats;
7449 else
7450 enable_gather_detailed_mem_stats=no
7451 fi
7452
7453 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7454
7455 cat >>confdefs.h <<_ACEOF
7456 #define GATHER_STATISTICS $gather_stats
7457 _ACEOF
7458
7459
7460 # Check whether --enable-valgrind-annotations was given.
7461 if test "${enable_valgrind_annotations+set}" = set; then :
7462 enableval=$enable_valgrind_annotations;
7463 else
7464 enable_valgrind_annotations=no
7465 fi
7466
7467 if test x$enable_valgrind_annotations != xno \
7468 || test x$ac_valgrind_checking != x; then
7469 if (test $have_valgrind_h = no \
7470 && test $gcc_cv_header_memcheck_h = no \
7471 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7472 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7473 fi
7474
7475 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7476
7477 fi
7478
7479 # -------------------------------
7480 # Miscenalleous configure options
7481 # -------------------------------
7482
7483 # With stabs
7484
7485 # Check whether --with-stabs was given.
7486 if test "${with_stabs+set}" = set; then :
7487 withval=$with_stabs; stabs="$with_stabs"
7488 else
7489 stabs=no
7490 fi
7491
7492
7493 # Determine whether or not multilibs are enabled.
7494 # Check whether --enable-multilib was given.
7495 if test "${enable_multilib+set}" = set; then :
7496 enableval=$enable_multilib;
7497 else
7498 enable_multilib=yes
7499 fi
7500
7501
7502
7503 # Determine whether or not multiarch is enabled.
7504 # Check whether --enable-multiarch was given.
7505 if test "${enable_multiarch+set}" = set; then :
7506 enableval=$enable_multiarch; case "${enableval}" in
7507 yes|no|auto) enable_multiarch=$enableval;;
7508 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7509 esac
7510 else
7511 enable_multiarch=auto
7512 fi
7513
7514 if test x${enable_multiarch} = xauto; then
7515 if test x${with_native_system_header_dir} != x; then
7516 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7517 enable_multiarch=no
7518 fi
7519 if test x$host != x$target && test "x$with_sysroot" = x; then
7520 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7521 enable_multiarch=no
7522 fi
7523 fi
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7525 $as_echo_n "checking for multiarch configuration... " >&6; }
7526
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7528 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7529
7530 # needed for setting the multiarch name for soft-float/hard-float ABIs
7531
7532
7533
7534 # default stack clash protection guard size as power of twos in bytes.
7535 # Please keep these in sync with params.def.
7536 stk_clash_min=12
7537 stk_clash_max=30
7538
7539 # Keep the default value when the option is not used to 0, this allows us to
7540 # distinguish between the cases where the user specifially set a value via
7541 # configure and when the normal default value is used.
7542
7543 # Check whether --with-stack-clash-protection-guard-size was given.
7544 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7545 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7546 else
7547 DEFAULT_STK_CLASH_GUARD_SIZE=0
7548 fi
7549
7550 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7551 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7552 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7553 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
7554 fi
7555
7556
7557 cat >>confdefs.h <<_ACEOF
7558 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7559 _ACEOF
7560
7561
7562 # Enable __cxa_atexit for C++.
7563 # Check whether --enable-__cxa_atexit was given.
7564 if test "${enable___cxa_atexit+set}" = set; then :
7565 enableval=$enable___cxa_atexit;
7566 fi
7567
7568
7569 # Enable C extension for decimal float if target supports it.
7570
7571 # Check whether --enable-decimal-float was given.
7572 if test "${enable_decimal_float+set}" = set; then :
7573 enableval=$enable_decimal_float;
7574 case $enable_decimal_float in
7575 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7576 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7577 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7578 esac
7579
7580 else
7581
7582 case $target in
7583 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7584 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7585 i?86*-*-mingw* | x86_64*-*-mingw* | \
7586 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7587 enable_decimal_float=yes
7588 ;;
7589 *)
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7591 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7592 enable_decimal_float=no
7593 ;;
7594 esac
7595
7596 fi
7597
7598
7599 # x86's use BID format instead of DPD
7600 case x$enable_decimal_float in
7601 xyes)
7602 case $target in
7603 i?86*-*-* | x86_64*-*-*)
7604 enable_decimal_float=bid
7605 ;;
7606 *)
7607 enable_decimal_float=dpd
7608 ;;
7609 esac
7610 default_decimal_float=$enable_decimal_float
7611 ;;
7612 xno)
7613 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7614 # dependency on libdecnumber.
7615 default_decimal_float=dpd
7616 ;;
7617 esac
7618
7619
7620
7621
7622 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7623
7624 cat >>confdefs.h <<_ACEOF
7625 #define ENABLE_DECIMAL_FLOAT $dfp
7626 _ACEOF
7627
7628
7629 # Use default_decimal_float for dependency.
7630 enable_decimal_float=$default_decimal_float
7631
7632 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7633
7634 cat >>confdefs.h <<_ACEOF
7635 #define ENABLE_DECIMAL_BID_FORMAT $bid
7636 _ACEOF
7637
7638
7639 # Enable C extension for fixed-point arithmetic.
7640 # Check whether --enable-fixed-point was given.
7641 if test "${enable_fixed_point+set}" = set; then :
7642 enableval=$enable_fixed_point;
7643 else
7644
7645 case $target in
7646 arm*)
7647 enable_fixed_point=yes
7648 ;;
7649
7650 mips*-*-*)
7651 enable_fixed_point=yes
7652 ;;
7653 *)
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7655 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7656 enable_fixed_point=no
7657 ;;
7658 esac
7659
7660 fi
7661
7662
7663
7664 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7665
7666 cat >>confdefs.h <<_ACEOF
7667 #define ENABLE_FIXED_POINT $fixedpoint
7668 _ACEOF
7669
7670
7671 # Enable threads
7672 # Pass with no value to take the default
7673 # Pass with a value to specify a thread package
7674 # Check whether --enable-threads was given.
7675 if test "${enable_threads+set}" = set; then :
7676 enableval=$enable_threads;
7677 else
7678 enable_threads=''
7679 fi
7680
7681
7682 # Check whether --enable-tls was given.
7683 if test "${enable_tls+set}" = set; then :
7684 enableval=$enable_tls;
7685 case $enable_tls in
7686 yes | no) ;;
7687 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7688 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7689 esac
7690
7691 else
7692 enable_tls=''
7693 fi
7694
7695
7696 # Check whether --enable-vtable-verify was given.
7697 if test "${enable_vtable_verify+set}" = set; then :
7698 enableval=$enable_vtable_verify;
7699 else
7700 enable_vtable_verify=no
7701 fi
7702
7703 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7704
7705 cat >>confdefs.h <<_ACEOF
7706 #define ENABLE_VTABLE_VERIFY $vtable_verify
7707 _ACEOF
7708
7709
7710 # Check whether --enable-analyzer was given.
7711 if test "${enable_analyzer+set}" = set; then :
7712 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
7713 analyzer=0
7714 else
7715 analyzer=1
7716 fi
7717 else
7718 analyzer=1
7719 fi
7720
7721
7722 cat >>confdefs.h <<_ACEOF
7723 #define ENABLE_ANALYZER $analyzer
7724 _ACEOF
7725
7726
7727 # Check whether --enable-objc-gc was given.
7728 if test "${enable_objc_gc+set}" = set; then :
7729 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7730 objc_boehm_gc=''
7731 else
7732 objc_boehm_gc=1
7733 fi
7734 else
7735 objc_boehm_gc=''
7736 fi
7737
7738
7739
7740 # Check whether --with-dwarf2 was given.
7741 if test "${with_dwarf2+set}" = set; then :
7742 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7743 else
7744 dwarf2=no
7745 fi
7746
7747
7748 # Check whether --enable-shared was given.
7749 if test "${enable_shared+set}" = set; then :
7750 enableval=$enable_shared;
7751 case $enable_shared in
7752 yes | no) ;;
7753 *)
7754 enable_shared=no
7755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7756 for pkg in $enableval; do
7757 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7758 enable_shared=yes
7759 fi
7760 done
7761 IFS="$ac_save_ifs"
7762 ;;
7763 esac
7764
7765 else
7766 enable_shared=yes
7767 fi
7768
7769
7770
7771 # Check whether --enable-gcov was given.
7772 if test "${enable_gcov+set}" = set; then :
7773 enableval=$enable_gcov;
7774 else
7775 enable_gcov=yes
7776 fi
7777
7778
7779
7780
7781 # Check whether --with-specs was given.
7782 if test "${with_specs+set}" = set; then :
7783 withval=$with_specs; CONFIGURE_SPECS=$withval
7784 else
7785 CONFIGURE_SPECS=
7786
7787 fi
7788
7789
7790
7791
7792
7793 # Check whether --with-pkgversion was given.
7794 if test "${with_pkgversion+set}" = set; then :
7795 withval=$with_pkgversion; case "$withval" in
7796 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7797 no) PKGVERSION= ;;
7798 *) PKGVERSION="($withval) " ;;
7799 esac
7800 else
7801 PKGVERSION="(GCC) "
7802
7803 fi
7804
7805
7806
7807
7808
7809 # Check whether --with-bugurl was given.
7810 if test "${with_bugurl+set}" = set; then :
7811 withval=$with_bugurl; case "$withval" in
7812 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7813 no) BUGURL=
7814 ;;
7815 *) BUGURL="$withval"
7816 ;;
7817 esac
7818 else
7819 BUGURL="https://gcc.gnu.org/bugs/"
7820
7821 fi
7822
7823 case ${BUGURL} in
7824 "")
7825 REPORT_BUGS_TO=
7826 REPORT_BUGS_TEXI=
7827 ;;
7828 *)
7829 REPORT_BUGS_TO="<$BUGURL>"
7830 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7831 ;;
7832 esac;
7833
7834
7835
7836
7837 # Allow overriding the default URL for documentation
7838
7839 # Check whether --with-documentation-root-url was given.
7840 if test "${with_documentation_root_url+set}" = set; then :
7841 withval=$with_documentation_root_url; case "$withval" in
7842 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7843 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7844 *) DOCUMENTATION_ROOT_URL="$withval"
7845 ;;
7846 esac
7847 else
7848 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/gcc/"
7849
7850 fi
7851
7852
7853
7854 # Sanity check enable_languages in case someone does not run the toplevel
7855 # configure # script.
7856 # Check whether --enable-languages was given.
7857 if test "${enable_languages+set}" = set; then :
7858 enableval=$enable_languages; case ,${enable_languages}, in
7859 ,,|,yes,)
7860 # go safe -- we cannot be much sure without the toplevel
7861 # configure's
7862 # analysis of which target libs are present and usable
7863 enable_languages=c
7864 ;;
7865 *,all,*)
7866 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7867 ;;
7868 *,c,*)
7869 ;;
7870 *)
7871 enable_languages=c,${enable_languages}
7872 ;;
7873 esac
7874 else
7875 enable_languages=c
7876 fi
7877
7878
7879 # If top-level libada has been disabled, then wire in install-gnatlib
7880 # invocation with `make install', so that one can build and install
7881 # the library manually with `make -C gcc all gnatlib gnattools install'.
7882 if test x"$enable_libada" = xno; then
7883 gnat_install_lib=gnat-install-lib
7884 else
7885 gnat_install_lib=
7886 fi
7887
7888
7889 if test x"$enable_as_accelerator_for" != x; then
7890
7891 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7892
7893 enable_as_accelerator=yes
7894 case "${target}" in
7895 *-intelmicemul-*)
7896 # In this case we expect offload compiler to be built as native, so we
7897 # need to rename the driver to avoid clashes with host's drivers.
7898 program_transform_name="s&^&${target}-&" ;;
7899 esac
7900 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7901 program_transform_name=`echo $program_transform_name | sed $sedscript`
7902 accel_dir_suffix=/accel/${target_noncanonical}
7903 real_target_noncanonical=${enable_as_accelerator_for}
7904 fi
7905
7906
7907
7908
7909 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7910 tgt=`echo $tgt | sed 's/=.*//'`
7911
7912 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7913 enable_hsa=1
7914 else
7915 enable_offloading=1
7916 case "$tgt" in
7917 *-intelmicemul-*)
7918 omp_device_property=omp-device-properties-i386
7919 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
7920 ;;
7921 gcn*-*)
7922 omp_device_property=omp-device-properties-gcn
7923 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
7924 ;;
7925 nvptx*-*)
7926 omp_device_property=omp-device-properties-nvptx
7927 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
7928 ;;
7929 esac
7930 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
7931 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
7932 fi
7933
7934 if test x"$offload_targets" = x; then
7935 offload_targets=$tgt
7936 else
7937 offload_targets="$offload_targets,$tgt"
7938 fi
7939 done
7940
7941
7942
7943
7944 cat >>confdefs.h <<_ACEOF
7945 #define OFFLOAD_TARGETS "$offload_targets"
7946 _ACEOF
7947
7948 if test x"$enable_offloading" != x; then
7949
7950 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7951
7952 else
7953
7954 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7955
7956 fi
7957
7958 if test x"$enable_hsa" = x1 ; then
7959
7960 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7961
7962 fi
7963
7964
7965 # Check whether --with-multilib-list was given.
7966 if test "${with_multilib_list+set}" = set; then :
7967 withval=$with_multilib_list; :
7968 else
7969 with_multilib_list=default
7970 fi
7971
7972
7973 # -------------------------
7974 # Checks for other programs
7975 # -------------------------
7976
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7978 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7979 set x ${MAKE-make}
7980 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7981 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 cat >conftest.make <<\_ACEOF
7985 SHELL = /bin/sh
7986 all:
7987 @echo '@@@%%%=$(MAKE)=@@@%%%'
7988 _ACEOF
7989 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7990 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7991 *@@@%%%=?*=@@@%%%*)
7992 eval ac_cv_prog_make_${ac_make}_set=yes;;
7993 *)
7994 eval ac_cv_prog_make_${ac_make}_set=no;;
7995 esac
7996 rm -f conftest.make
7997 fi
7998 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8000 $as_echo "yes" >&6; }
8001 SET_MAKE=
8002 else
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005 SET_MAKE="MAKE=${MAKE-make}"
8006 fi
8007
8008
8009 # Find some useful tools
8010 for ac_prog in gawk mawk nawk awk
8011 do
8012 # Extract the first word of "$ac_prog", so it can be a program name with args.
8013 set dummy $ac_prog; ac_word=$2
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015 $as_echo_n "checking for $ac_word... " >&6; }
8016 if ${ac_cv_prog_AWK+:} false; then :
8017 $as_echo_n "(cached) " >&6
8018 else
8019 if test -n "$AWK"; then
8020 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8021 else
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 for as_dir in $PATH
8024 do
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8029 ac_cv_prog_AWK="$ac_prog"
8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 break 2
8032 fi
8033 done
8034 done
8035 IFS=$as_save_IFS
8036
8037 fi
8038 fi
8039 AWK=$ac_cv_prog_AWK
8040 if test -n "$AWK"; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8042 $as_echo "$AWK" >&6; }
8043 else
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 $as_echo "no" >&6; }
8046 fi
8047
8048
8049 test -n "$AWK" && break
8050 done
8051
8052 # We need awk to create options.c and options.h.
8053 # Bail out if it's missing.
8054 case ${AWK} in
8055 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8056 esac
8057
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8059 $as_echo_n "checking whether ln -s works... " >&6; }
8060 if ${gcc_cv_prog_LN_S+:} false; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 rm -f conftestdata_t
8064 echo >conftestdata_f
8065 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8066 then
8067 gcc_cv_prog_LN_S="ln -s"
8068 else
8069 if ln conftestdata_f conftestdata_t 2>/dev/null
8070 then
8071 gcc_cv_prog_LN_S=ln
8072 else
8073 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8074 then
8075 gcc_cv_prog_LN_S="cp -p"
8076 else
8077 gcc_cv_prog_LN_S=cp
8078 fi
8079 fi
8080 fi
8081 rm -f conftestdata_f conftestdata_t
8082
8083 fi
8084 LN_S="$gcc_cv_prog_LN_S"
8085 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8087 $as_echo "yes" >&6; }
8088 else
8089 if test "$gcc_cv_prog_LN_S" = "ln"; then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8091 $as_echo "no, using ln" >&6; }
8092 else
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8094 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8095 fi
8096 fi
8097
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8099 $as_echo_n "checking whether ln works... " >&6; }
8100 if ${acx_cv_prog_LN+:} false; then :
8101 $as_echo_n "(cached) " >&6
8102 else
8103 rm -f conftestdata_t
8104 echo >conftestdata_f
8105 if ln conftestdata_f conftestdata_t 2>/dev/null
8106 then
8107 acx_cv_prog_LN=ln
8108 else
8109 acx_cv_prog_LN=no
8110 fi
8111 rm -f conftestdata_f conftestdata_t
8112
8113 fi
8114 if test $acx_cv_prog_LN = no; then
8115 LN="$LN_S"
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8117 $as_echo "no, using $LN" >&6; }
8118 else
8119 LN="$acx_cv_prog_LN"
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8121 $as_echo "yes" >&6; }
8122 fi
8123
8124 if test -n "$ac_tool_prefix"; then
8125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128 $as_echo_n "checking for $ac_word... " >&6; }
8129 if ${ac_cv_prog_RANLIB+:} false; then :
8130 $as_echo_n "(cached) " >&6
8131 else
8132 if test -n "$RANLIB"; then
8133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8137 do
8138 IFS=$as_save_IFS
8139 test -z "$as_dir" && as_dir=.
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8142 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144 break 2
8145 fi
8146 done
8147 done
8148 IFS=$as_save_IFS
8149
8150 fi
8151 fi
8152 RANLIB=$ac_cv_prog_RANLIB
8153 if test -n "$RANLIB"; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8155 $as_echo "$RANLIB" >&6; }
8156 else
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8159 fi
8160
8161
8162 fi
8163 if test -z "$ac_cv_prog_RANLIB"; then
8164 ac_ct_RANLIB=$RANLIB
8165 # Extract the first word of "ranlib", so it can be a program name with args.
8166 set dummy ranlib; ac_word=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8170 $as_echo_n "(cached) " >&6
8171 else
8172 if test -n "$ac_ct_RANLIB"; then
8173 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8174 else
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8177 do
8178 IFS=$as_save_IFS
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182 ac_cv_prog_ac_ct_RANLIB="ranlib"
8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 break 2
8185 fi
8186 done
8187 done
8188 IFS=$as_save_IFS
8189
8190 fi
8191 fi
8192 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8193 if test -n "$ac_ct_RANLIB"; then
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8195 $as_echo "$ac_ct_RANLIB" >&6; }
8196 else
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8199 fi
8200
8201 if test "x$ac_ct_RANLIB" = x; then
8202 RANLIB=":"
8203 else
8204 case $cross_compiling:$ac_tool_warned in
8205 yes:)
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8208 ac_tool_warned=yes ;;
8209 esac
8210 RANLIB=$ac_ct_RANLIB
8211 fi
8212 else
8213 RANLIB="$ac_cv_prog_RANLIB"
8214 fi
8215
8216 ranlib_flags=""
8217
8218
8219 # Find a good install program. We prefer a C program (faster),
8220 # so one script is as good as another. But avoid the broken or
8221 # incompatible versions:
8222 # SysV /etc/install, /usr/sbin/install
8223 # SunOS /usr/etc/install
8224 # IRIX /sbin/install
8225 # AIX /bin/install
8226 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8227 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8228 # ./install, which can be erroneously created by make from ./install.sh.
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8230 $as_echo_n "checking for a BSD compatible install... " >&6; }
8231 if test -z "$INSTALL"; then
8232 if ${ac_cv_path_install+:} false; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8236 for ac_dir in $PATH; do
8237 # Account for people who put trailing slashes in PATH elements.
8238 case "$ac_dir/" in
8239 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8240 *)
8241 # OSF1 and SCO ODT 3.0 have their own names for install.
8242 for ac_prog in ginstall scoinst install; do
8243 if test -f $ac_dir/$ac_prog; then
8244 if test $ac_prog = install &&
8245 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8246 # AIX install. It has an incompatible calling convention.
8247 # OSF/1 installbsd also uses dspmsg, but is usable.
8248 :
8249 else
8250 ac_cv_path_install="$ac_dir/$ac_prog -c"
8251 break 2
8252 fi
8253 fi
8254 done
8255 ;;
8256 esac
8257 done
8258 IFS="$ac_save_IFS"
8259
8260 fi
8261 if test "${ac_cv_path_install+set}" = set; then
8262 INSTALL="$ac_cv_path_install"
8263 else
8264 # As a last resort, use the slow shell script. We don't cache a
8265 # path for INSTALL within a source directory, because that will
8266 # break other packages using the cache if that directory is
8267 # removed, or if the path is relative.
8268 INSTALL="$ac_install_sh"
8269 fi
8270 fi
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8272 $as_echo "$INSTALL" >&6; }
8273
8274 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8275 # It thinks the first close brace ends the variable substitution.
8276 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8277
8278 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8279
8280
8281 # See if cmp has --ignore-initial.
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8283 $as_echo_n "checking for cmp's capabilities... " >&6; }
8284 if ${gcc_cv_prog_cmp_skip+:} false; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8287 echo abfoo >t1
8288 echo cdfoo >t2
8289 gcc_cv_prog_cmp_skip=slowcompare
8290 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8291 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8292 :
8293 else
8294 gcc_cv_prog_cmp_skip=gnucompare
8295 fi
8296 fi
8297 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8298 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8299 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8300 :
8301 else
8302 gcc_cv_prog_cmp_skip=fastcompare
8303 fi
8304 fi
8305 fi
8306 rm t1 t2
8307
8308 fi
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8310 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8311 make_compare_target=$gcc_cv_prog_cmp_skip
8312
8313
8314
8315 # See if we have the mktemp command.
8316 # Extract the first word of "mktemp", so it can be a program name with args.
8317 set dummy mktemp; ac_word=$2
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319 $as_echo_n "checking for $ac_word... " >&6; }
8320 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 if test -n "$have_mktemp_command"; then
8324 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8325 else
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in $PATH
8328 do
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8333 ac_cv_prog_have_mktemp_command="yes"
8334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 break 2
8336 fi
8337 done
8338 done
8339 IFS=$as_save_IFS
8340
8341 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8342 fi
8343 fi
8344 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8345 if test -n "$have_mktemp_command"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8347 $as_echo "$have_mktemp_command" >&6; }
8348 else
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 $as_echo "no" >&6; }
8351 fi
8352
8353
8354
8355 # See if makeinfo has been installed and is modern enough
8356 # that we can use it.
8357
8358 # Extract the first word of "makeinfo", so it can be a program name with args.
8359 set dummy makeinfo; ac_word=$2
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8361 $as_echo_n "checking for $ac_word... " >&6; }
8362 if ${ac_cv_prog_MAKEINFO+:} false; then :
8363 $as_echo_n "(cached) " >&6
8364 else
8365 if test -n "$MAKEINFO"; then
8366 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8367 else
8368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8369 for as_dir in $PATH
8370 do
8371 IFS=$as_save_IFS
8372 test -z "$as_dir" && as_dir=.
8373 for ac_exec_ext in '' $ac_executable_extensions; do
8374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8375 ac_cv_prog_MAKEINFO="makeinfo"
8376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8377 break 2
8378 fi
8379 done
8380 done
8381 IFS=$as_save_IFS
8382
8383 fi
8384 fi
8385 MAKEINFO=$ac_cv_prog_MAKEINFO
8386 if test -n "$MAKEINFO"; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8388 $as_echo "$MAKEINFO" >&6; }
8389 else
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391 $as_echo "no" >&6; }
8392 fi
8393
8394
8395 if test -n "$MAKEINFO"; then
8396 # Found it, now check the version.
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8398 $as_echo_n "checking for modern makeinfo... " >&6; }
8399 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8400 $as_echo_n "(cached) " >&6
8401 else
8402 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8403 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8404
8405 case $ac_prog_version in
8406 '') gcc_cv_prog_makeinfo_modern=no;;
8407 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8408 *) gcc_cv_prog_makeinfo_modern=no;;
8409 esac
8410
8411 fi
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8413 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8414 else
8415 gcc_cv_prog_makeinfo_modern=no
8416 fi
8417 if test $gcc_cv_prog_makeinfo_modern = no; then
8418 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8419 fi
8420
8421 if test $gcc_cv_prog_makeinfo_modern = no; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8423 *** Makeinfo is missing or too old.
8424 *** Info documentation will not be built." >&5
8425 $as_echo "$as_me: WARNING:
8426 *** Makeinfo is missing or too old.
8427 *** Info documentation will not be built." >&2;}
8428 BUILD_INFO=
8429 else
8430 BUILD_INFO=info
8431 fi
8432
8433
8434 # Is pod2man recent enough to regenerate manpages?
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8436 $as_echo_n "checking for recent Pod::Man... " >&6; }
8437 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8439 $as_echo "yes" >&6; }
8440 GENERATED_MANPAGES=generated-manpages
8441 else
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8444 GENERATED_MANPAGES=
8445 fi
8446
8447
8448 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8449
8450 # How about lex?
8451 for ac_prog in flex
8452 do
8453 # Extract the first word of "$ac_prog", so it can be a program name with args.
8454 set dummy $ac_prog; ac_word=$2
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456 $as_echo_n "checking for $ac_word... " >&6; }
8457 if ${ac_cv_prog_FLEX+:} false; then :
8458 $as_echo_n "(cached) " >&6
8459 else
8460 if test -n "$FLEX"; then
8461 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8462 else
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 for as_dir in $PATH
8465 do
8466 IFS=$as_save_IFS
8467 test -z "$as_dir" && as_dir=.
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8470 ac_cv_prog_FLEX="$ac_prog"
8471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8472 break 2
8473 fi
8474 done
8475 done
8476 IFS=$as_save_IFS
8477
8478 fi
8479 fi
8480 FLEX=$ac_cv_prog_FLEX
8481 if test -n "$FLEX"; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8483 $as_echo "$FLEX" >&6; }
8484 else
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8487 fi
8488
8489
8490 test -n "$FLEX" && break
8491 done
8492 test -n "$FLEX" || FLEX="$MISSING flex"
8493
8494
8495 # Bison?
8496 for ac_prog in bison
8497 do
8498 # Extract the first word of "$ac_prog", so it can be a program name with args.
8499 set dummy $ac_prog; ac_word=$2
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8501 $as_echo_n "checking for $ac_word... " >&6; }
8502 if ${ac_cv_prog_BISON+:} false; then :
8503 $as_echo_n "(cached) " >&6
8504 else
8505 if test -n "$BISON"; then
8506 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8507 else
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 for as_dir in $PATH
8510 do
8511 IFS=$as_save_IFS
8512 test -z "$as_dir" && as_dir=.
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8515 ac_cv_prog_BISON="$ac_prog"
8516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8517 break 2
8518 fi
8519 done
8520 done
8521 IFS=$as_save_IFS
8522
8523 fi
8524 fi
8525 BISON=$ac_cv_prog_BISON
8526 if test -n "$BISON"; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8528 $as_echo "$BISON" >&6; }
8529 else
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531 $as_echo "no" >&6; }
8532 fi
8533
8534
8535 test -n "$BISON" && break
8536 done
8537 test -n "$BISON" || BISON="$MISSING bison"
8538
8539
8540 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8541 # check for build == host before using them.
8542
8543 # NM
8544 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8545 && test -d ../binutils ; then
8546 NM='${objdir}/../binutils/nm-new'
8547 else
8548 # Extract the first word of "nm", so it can be a program name with args.
8549 set dummy nm; ac_word=$2
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8551 $as_echo_n "checking for $ac_word... " >&6; }
8552 if ${ac_cv_prog_NM+:} false; then :
8553 $as_echo_n "(cached) " >&6
8554 else
8555 if test -n "$NM"; then
8556 ac_cv_prog_NM="$NM" # Let the user override the test.
8557 else
8558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559 for as_dir in $PATH
8560 do
8561 IFS=$as_save_IFS
8562 test -z "$as_dir" && as_dir=.
8563 for ac_exec_ext in '' $ac_executable_extensions; do
8564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8565 ac_cv_prog_NM="nm"
8566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8567 break 2
8568 fi
8569 done
8570 done
8571 IFS=$as_save_IFS
8572
8573 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8574 fi
8575 fi
8576 NM=$ac_cv_prog_NM
8577 if test -n "$NM"; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8579 $as_echo "$NM" >&6; }
8580 else
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582 $as_echo "no" >&6; }
8583 fi
8584
8585
8586 fi
8587
8588 # AR
8589 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8590 && test -d ../binutils ; then
8591 AR='${objdir}/../binutils/ar'
8592 else
8593 # Extract the first word of "ar", so it can be a program name with args.
8594 set dummy ar; ac_word=$2
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8596 $as_echo_n "checking for $ac_word... " >&6; }
8597 if ${ac_cv_prog_AR+:} false; then :
8598 $as_echo_n "(cached) " >&6
8599 else
8600 if test -n "$AR"; then
8601 ac_cv_prog_AR="$AR" # Let the user override the test.
8602 else
8603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604 for as_dir in $PATH
8605 do
8606 IFS=$as_save_IFS
8607 test -z "$as_dir" && as_dir=.
8608 for ac_exec_ext in '' $ac_executable_extensions; do
8609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8610 ac_cv_prog_AR="ar"
8611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8612 break 2
8613 fi
8614 done
8615 done
8616 IFS=$as_save_IFS
8617
8618 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8619 fi
8620 fi
8621 AR=$ac_cv_prog_AR
8622 if test -n "$AR"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8624 $as_echo "$AR" >&6; }
8625 else
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8628 fi
8629
8630
8631 fi
8632
8633 # The jit documentation looks better if built with sphinx, but can be
8634 # built with texinfo if sphinx is not available.
8635 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8636 # Extract the first word of "sphinx-build", so it can be a program name with args.
8637 set dummy sphinx-build; ac_word=$2
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8639 $as_echo_n "checking for $ac_word... " >&6; }
8640 if ${ac_cv_prog_doc_build_sys+:} false; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 if test -n "$doc_build_sys"; then
8644 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8645 else
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647 for as_dir in $PATH
8648 do
8649 IFS=$as_save_IFS
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8653 ac_cv_prog_doc_build_sys="sphinx"
8654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8655 break 2
8656 fi
8657 done
8658 done
8659 IFS=$as_save_IFS
8660
8661 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8662 fi
8663 fi
8664 doc_build_sys=$ac_cv_prog_doc_build_sys
8665 if test -n "$doc_build_sys"; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8667 $as_echo "$doc_build_sys" >&6; }
8668 else
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8670 $as_echo "no" >&6; }
8671 fi
8672
8673
8674
8675 # --------------------
8676 # Checks for C headers
8677 # --------------------
8678
8679 # Need to reject headers which give warnings, so that the -Werror bootstrap
8680 # works later. *sigh* This needs to come before all header checks.
8681
8682 ac_c_preproc_warn_flag=yes
8683
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8685 $as_echo_n "checking for ANSI C header files... " >&6; }
8686 if ${ac_cv_header_stdc+:} false; then :
8687 $as_echo_n "(cached) " >&6
8688 else
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8691 #include <stdlib.h>
8692 #include <stdarg.h>
8693 #include <string.h>
8694 #include <float.h>
8695
8696 int
8697 main ()
8698 {
8699
8700 ;
8701 return 0;
8702 }
8703 _ACEOF
8704 if ac_fn_cxx_try_compile "$LINENO"; then :
8705 ac_cv_header_stdc=yes
8706 else
8707 ac_cv_header_stdc=no
8708 fi
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710
8711 if test $ac_cv_header_stdc = yes; then
8712 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714 /* end confdefs.h. */
8715 #include <string.h>
8716
8717 _ACEOF
8718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8719 $EGREP "memchr" >/dev/null 2>&1; then :
8720
8721 else
8722 ac_cv_header_stdc=no
8723 fi
8724 rm -f conftest*
8725
8726 fi
8727
8728 if test $ac_cv_header_stdc = yes; then
8729 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8732 #include <stdlib.h>
8733
8734 _ACEOF
8735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8736 $EGREP "free" >/dev/null 2>&1; then :
8737
8738 else
8739 ac_cv_header_stdc=no
8740 fi
8741 rm -f conftest*
8742
8743 fi
8744
8745 if test $ac_cv_header_stdc = yes; then
8746 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8747 if test "$cross_compiling" = yes; then :
8748 :
8749 else
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8752 #include <ctype.h>
8753 #include <stdlib.h>
8754 #if ((' ' & 0x0FF) == 0x020)
8755 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8756 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8757 #else
8758 # define ISLOWER(c) \
8759 (('a' <= (c) && (c) <= 'i') \
8760 || ('j' <= (c) && (c) <= 'r') \
8761 || ('s' <= (c) && (c) <= 'z'))
8762 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8763 #endif
8764
8765 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8766 int
8767 main ()
8768 {
8769 int i;
8770 for (i = 0; i < 256; i++)
8771 if (XOR (islower (i), ISLOWER (i))
8772 || toupper (i) != TOUPPER (i))
8773 return 2;
8774 return 0;
8775 }
8776 _ACEOF
8777 if ac_fn_cxx_try_run "$LINENO"; then :
8778
8779 else
8780 ac_cv_header_stdc=no
8781 fi
8782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8783 conftest.$ac_objext conftest.beam conftest.$ac_ext
8784 fi
8785
8786 fi
8787 fi
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8789 $as_echo "$ac_cv_header_stdc" >&6; }
8790 if test $ac_cv_header_stdc = yes; then
8791
8792 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8793
8794 fi
8795
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8797 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8798 if ${ac_cv_header_time+:} false; then :
8799 $as_echo_n "(cached) " >&6
8800 else
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8803 #include <sys/types.h>
8804 #include <sys/time.h>
8805 #include <time.h>
8806
8807 int
8808 main ()
8809 {
8810 if ((struct tm *) 0)
8811 return 0;
8812 ;
8813 return 0;
8814 }
8815 _ACEOF
8816 if ac_fn_cxx_try_compile "$LINENO"; then :
8817 ac_cv_header_time=yes
8818 else
8819 ac_cv_header_time=no
8820 fi
8821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8822 fi
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8824 $as_echo "$ac_cv_header_time" >&6; }
8825 if test $ac_cv_header_time = yes; then
8826
8827 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8828
8829 fi
8830
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8832 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8833 if ${gcc_cv_header_string+:} false; then :
8834 $as_echo_n "(cached) " >&6
8835 else
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8838 #include <string.h>
8839 #include <strings.h>
8840 int
8841 main ()
8842 {
8843
8844 ;
8845 return 0;
8846 }
8847 _ACEOF
8848 if ac_fn_cxx_try_compile "$LINENO"; then :
8849 gcc_cv_header_string=yes
8850 else
8851 gcc_cv_header_string=no
8852 fi
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854 fi
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8856 $as_echo "$gcc_cv_header_string" >&6; }
8857 if test $gcc_cv_header_string = yes; then
8858
8859 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8860
8861 fi
8862
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8864 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8865 if ${ac_cv_header_sys_wait_h+:} false; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8870 #include <sys/types.h>
8871 #include <sys/wait.h>
8872 #ifndef WEXITSTATUS
8873 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8874 #endif
8875 #ifndef WIFEXITED
8876 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8877 #endif
8878
8879 int
8880 main ()
8881 {
8882 int s;
8883 wait (&s);
8884 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8885 ;
8886 return 0;
8887 }
8888 _ACEOF
8889 if ac_fn_cxx_try_compile "$LINENO"; then :
8890 ac_cv_header_sys_wait_h=yes
8891 else
8892 ac_cv_header_sys_wait_h=no
8893 fi
8894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8895 fi
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8897 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8898 if test $ac_cv_header_sys_wait_h = yes; then
8899
8900 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8901
8902 fi
8903
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8905 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8906 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8907 $as_echo_n "(cached) " >&6
8908 else
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911 #include <sys/types.h>
8912 #include <termios.h>
8913 #ifdef TIOCGWINSZ
8914 yes
8915 #endif
8916
8917 _ACEOF
8918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8919 $EGREP "yes" >/dev/null 2>&1; then :
8920 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8921 else
8922 ac_cv_sys_tiocgwinsz_in_termios_h=no
8923 fi
8924 rm -f conftest*
8925
8926 fi
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8928 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8929
8930 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8932 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8933 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8934 $as_echo_n "(cached) " >&6
8935 else
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8938 #include <sys/types.h>
8939 #include <sys/ioctl.h>
8940 #ifdef TIOCGWINSZ
8941 yes
8942 #endif
8943
8944 _ACEOF
8945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8946 $EGREP "yes" >/dev/null 2>&1; then :
8947 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8948 else
8949 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8950 fi
8951 rm -f conftest*
8952
8953 fi
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8955 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8956
8957 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8958
8959 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8960
8961 fi
8962 fi
8963
8964 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8965 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8966 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8967 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8968 do :
8969 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8970 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8971 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8972 cat >>confdefs.h <<_ACEOF
8973 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8974 _ACEOF
8975
8976 fi
8977 done
8978
8979
8980 # Check for thread headers.
8981 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8982 if test "x$ac_cv_header_thread_h" = xyes; then :
8983 have_thread_h=yes
8984 else
8985 have_thread_h=
8986 fi
8987
8988 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8989 if test "x$ac_cv_header_pthread_h" = xyes; then :
8990 have_pthread_h=yes
8991 else
8992 have_pthread_h=
8993 fi
8994
8995
8996 # These tests can't be done till we know if we have limits.h.
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8998 $as_echo_n "checking for CHAR_BIT... " >&6; }
8999 if ${gcc_cv_decl_char_bit+:} false; then :
9000 $as_echo_n "(cached) " >&6
9001 else
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9004 #ifdef HAVE_LIMITS_H
9005 #include <limits.h>
9006 #endif
9007 #ifdef CHAR_BIT
9008 found
9009 #endif
9010 _ACEOF
9011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9012 $EGREP "found" >/dev/null 2>&1; then :
9013 gcc_cv_decl_char_bit=yes
9014 else
9015 gcc_cv_decl_char_bit=no
9016 fi
9017 rm -f conftest*
9018
9019
9020 fi
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9022 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9023 if test $gcc_cv_decl_char_bit = no; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9025 $as_echo_n "checking number of bits in a byte... " >&6; }
9026 if ${gcc_cv_c_nbby+:} false; then :
9027 $as_echo_n "(cached) " >&6
9028 else
9029 i=8
9030 gcc_cv_c_nbby=
9031 while test $i -lt 65; do
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9034
9035 int
9036 main ()
9037 {
9038 switch(0) {
9039 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9040 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9041 ; }
9042 ;
9043 return 0;
9044 }
9045 _ACEOF
9046 if ac_fn_cxx_try_compile "$LINENO"; then :
9047 gcc_cv_c_nbby=$i; break
9048 fi
9049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9050 i=`expr $i + 1`
9051 done
9052 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9053
9054 fi
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9056 $as_echo "$gcc_cv_c_nbby" >&6; }
9057 if test $gcc_cv_c_nbby = failed; then
9058 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9059 else
9060
9061 cat >>confdefs.h <<_ACEOF
9062 #define CHAR_BIT $gcc_cv_c_nbby
9063 _ACEOF
9064
9065 fi
9066 fi
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9068 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9069 if ${ac_cv_c_bigendian+:} false; then :
9070 $as_echo_n "(cached) " >&6
9071 else
9072 ac_cv_c_bigendian=unknown
9073 # See if we're dealing with a universal compiler.
9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9076 #ifndef __APPLE_CC__
9077 not a universal capable compiler
9078 #endif
9079 typedef int dummy;
9080
9081 _ACEOF
9082 if ac_fn_cxx_try_compile "$LINENO"; then :
9083
9084 # Check for potential -arch flags. It is not universal unless
9085 # there are at least two -arch flags with different values.
9086 ac_arch=
9087 ac_prev=
9088 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9089 if test -n "$ac_prev"; then
9090 case $ac_word in
9091 i?86 | x86_64 | ppc | ppc64)
9092 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9093 ac_arch=$ac_word
9094 else
9095 ac_cv_c_bigendian=universal
9096 break
9097 fi
9098 ;;
9099 esac
9100 ac_prev=
9101 elif test "x$ac_word" = "x-arch"; then
9102 ac_prev=arch
9103 fi
9104 done
9105 fi
9106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9107 if test $ac_cv_c_bigendian = unknown; then
9108 # See if sys/param.h defines the BYTE_ORDER macro.
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9111 #include <sys/types.h>
9112 #include <sys/param.h>
9113
9114 int
9115 main ()
9116 {
9117 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9118 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9119 && LITTLE_ENDIAN)
9120 bogus endian macros
9121 #endif
9122
9123 ;
9124 return 0;
9125 }
9126 _ACEOF
9127 if ac_fn_cxx_try_compile "$LINENO"; then :
9128 # It does; now see whether it defined to BIG_ENDIAN or not.
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9131 #include <sys/types.h>
9132 #include <sys/param.h>
9133
9134 int
9135 main ()
9136 {
9137 #if BYTE_ORDER != BIG_ENDIAN
9138 not big endian
9139 #endif
9140
9141 ;
9142 return 0;
9143 }
9144 _ACEOF
9145 if ac_fn_cxx_try_compile "$LINENO"; then :
9146 ac_cv_c_bigendian=yes
9147 else
9148 ac_cv_c_bigendian=no
9149 fi
9150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9151 fi
9152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153 fi
9154 if test $ac_cv_c_bigendian = unknown; then
9155 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9158 #include <limits.h>
9159
9160 int
9161 main ()
9162 {
9163 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9164 bogus endian macros
9165 #endif
9166
9167 ;
9168 return 0;
9169 }
9170 _ACEOF
9171 if ac_fn_cxx_try_compile "$LINENO"; then :
9172 # It does; now see whether it defined to _BIG_ENDIAN or not.
9173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h. */
9175 #include <limits.h>
9176
9177 int
9178 main ()
9179 {
9180 #ifndef _BIG_ENDIAN
9181 not big endian
9182 #endif
9183
9184 ;
9185 return 0;
9186 }
9187 _ACEOF
9188 if ac_fn_cxx_try_compile "$LINENO"; then :
9189 ac_cv_c_bigendian=yes
9190 else
9191 ac_cv_c_bigendian=no
9192 fi
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 fi
9195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9196 fi
9197 if test $ac_cv_c_bigendian = unknown; then
9198 # Compile a test program.
9199 if test "$cross_compiling" = yes; then :
9200 # Try to guess by grepping values from an object file.
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9203 short int ascii_mm[] =
9204 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9205 short int ascii_ii[] =
9206 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9207 int use_ascii (int i) {
9208 return ascii_mm[i] + ascii_ii[i];
9209 }
9210 short int ebcdic_ii[] =
9211 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9212 short int ebcdic_mm[] =
9213 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9214 int use_ebcdic (int i) {
9215 return ebcdic_mm[i] + ebcdic_ii[i];
9216 }
9217 extern int foo;
9218
9219 int
9220 main ()
9221 {
9222 return use_ascii (foo) == use_ebcdic (foo);
9223 ;
9224 return 0;
9225 }
9226 _ACEOF
9227 if ac_fn_cxx_try_compile "$LINENO"; then :
9228 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9229 ac_cv_c_bigendian=yes
9230 fi
9231 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9232 if test "$ac_cv_c_bigendian" = unknown; then
9233 ac_cv_c_bigendian=no
9234 else
9235 # finding both strings is unlikely to happen, but who knows?
9236 ac_cv_c_bigendian=unknown
9237 fi
9238 fi
9239 fi
9240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9241 else
9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h. */
9244 $ac_includes_default
9245 int
9246 main ()
9247 {
9248
9249 /* Are we little or big endian? From Harbison&Steele. */
9250 union
9251 {
9252 long int l;
9253 char c[sizeof (long int)];
9254 } u;
9255 u.l = 1;
9256 return u.c[sizeof (long int) - 1] == 1;
9257
9258 ;
9259 return 0;
9260 }
9261 _ACEOF
9262 if ac_fn_cxx_try_run "$LINENO"; then :
9263 ac_cv_c_bigendian=no
9264 else
9265 ac_cv_c_bigendian=yes
9266 fi
9267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9268 conftest.$ac_objext conftest.beam conftest.$ac_ext
9269 fi
9270
9271 fi
9272 fi
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9274 $as_echo "$ac_cv_c_bigendian" >&6; }
9275 case $ac_cv_c_bigendian in #(
9276 yes)
9277 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9278 ;; #(
9279 no)
9280 ;; #(
9281 universal)
9282
9283 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9284
9285 ;; #(
9286 *)
9287 as_fn_error $? "unknown endianness
9288 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9289 esac
9290
9291
9292 # ----------------------
9293 # Checks for C++ headers
9294 # ----------------------
9295
9296 ac_ext=cpp
9297 ac_cpp='$CXXCPP $CPPFLAGS'
9298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9302 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9303 if test -z "$CXXCPP"; then
9304 if ${ac_cv_prog_CXXCPP+:} false; then :
9305 $as_echo_n "(cached) " >&6
9306 else
9307 # Double quotes because CXXCPP needs to be expanded
9308 for CXXCPP in "$CXX -E" "/lib/cpp"
9309 do
9310 ac_preproc_ok=false
9311 for ac_cxx_preproc_warn_flag in '' yes
9312 do
9313 # Use a header file that comes with gcc, so configuring glibc
9314 # with a fresh cross-compiler works.
9315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9316 # <limits.h> exists even on freestanding compilers.
9317 # On the NeXT, cc -E runs the code through the compiler's parser,
9318 # not just through cpp. "Syntax error" is here to catch this case.
9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320 /* end confdefs.h. */
9321 #ifdef __STDC__
9322 # include <limits.h>
9323 #else
9324 # include <assert.h>
9325 #endif
9326 Syntax error
9327 _ACEOF
9328 if ac_fn_cxx_try_cpp "$LINENO"; then :
9329
9330 else
9331 # Broken: fails on valid input.
9332 continue
9333 fi
9334 rm -f conftest.err conftest.i conftest.$ac_ext
9335
9336 # OK, works on sane cases. Now check whether nonexistent headers
9337 # can be detected and how.
9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h. */
9340 #include <ac_nonexistent.h>
9341 _ACEOF
9342 if ac_fn_cxx_try_cpp "$LINENO"; then :
9343 # Broken: success on invalid input.
9344 continue
9345 else
9346 # Passes both tests.
9347 ac_preproc_ok=:
9348 break
9349 fi
9350 rm -f conftest.err conftest.i conftest.$ac_ext
9351
9352 done
9353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9354 rm -f conftest.i conftest.err conftest.$ac_ext
9355 if $ac_preproc_ok; then :
9356 break
9357 fi
9358
9359 done
9360 ac_cv_prog_CXXCPP=$CXXCPP
9361
9362 fi
9363 CXXCPP=$ac_cv_prog_CXXCPP
9364 else
9365 ac_cv_prog_CXXCPP=$CXXCPP
9366 fi
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9368 $as_echo "$CXXCPP" >&6; }
9369 ac_preproc_ok=false
9370 for ac_cxx_preproc_warn_flag in '' yes
9371 do
9372 # Use a header file that comes with gcc, so configuring glibc
9373 # with a fresh cross-compiler works.
9374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9375 # <limits.h> exists even on freestanding compilers.
9376 # On the NeXT, cc -E runs the code through the compiler's parser,
9377 # not just through cpp. "Syntax error" is here to catch this case.
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h. */
9380 #ifdef __STDC__
9381 # include <limits.h>
9382 #else
9383 # include <assert.h>
9384 #endif
9385 Syntax error
9386 _ACEOF
9387 if ac_fn_cxx_try_cpp "$LINENO"; then :
9388
9389 else
9390 # Broken: fails on valid input.
9391 continue
9392 fi
9393 rm -f conftest.err conftest.i conftest.$ac_ext
9394
9395 # OK, works on sane cases. Now check whether nonexistent headers
9396 # can be detected and how.
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9399 #include <ac_nonexistent.h>
9400 _ACEOF
9401 if ac_fn_cxx_try_cpp "$LINENO"; then :
9402 # Broken: success on invalid input.
9403 continue
9404 else
9405 # Passes both tests.
9406 ac_preproc_ok=:
9407 break
9408 fi
9409 rm -f conftest.err conftest.i conftest.$ac_ext
9410
9411 done
9412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9413 rm -f conftest.i conftest.err conftest.$ac_ext
9414 if $ac_preproc_ok; then :
9415
9416 else
9417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9420 See \`config.log' for more details" >&5
9421 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9422 See \`config.log' for more details" >&2;}; }
9423 fi
9424
9425 ac_ext=cpp
9426 ac_cpp='$CXXCPP $CPPFLAGS'
9427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9430
9431
9432 for ac_header in unordered_map
9433 do :
9434 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9435 if test "x$ac_cv_header_unordered_map" = xyes; then :
9436 cat >>confdefs.h <<_ACEOF
9437 #define HAVE_UNORDERED_MAP 1
9438 _ACEOF
9439
9440 fi
9441 done
9442
9443 for ac_header in tr1/unordered_map
9444 do :
9445 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9446 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9447 cat >>confdefs.h <<_ACEOF
9448 #define HAVE_TR1_UNORDERED_MAP 1
9449 _ACEOF
9450
9451 fi
9452 done
9453
9454 for ac_header in ext/hash_map
9455 do :
9456 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9457 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9458 cat >>confdefs.h <<_ACEOF
9459 #define HAVE_EXT_HASH_MAP 1
9460 _ACEOF
9461
9462 fi
9463 done
9464
9465
9466 # --------
9467 # Dependency checking.
9468 # --------
9469
9470 rm -rf .tst 2>/dev/null
9471 mkdir .tst 2>/dev/null
9472 if test -d .tst; then
9473 am__leading_dot=.
9474 else
9475 am__leading_dot=_
9476 fi
9477 rmdir .tst 2>/dev/null
9478
9479 DEPDIR="${am__leading_dot}deps"
9480
9481 ac_config_commands="$ac_config_commands depdir"
9482
9483
9484 ac_config_commands="$ac_config_commands gccdepdir"
9485
9486
9487 depcc="$CXX" am_compiler_list=
9488
9489 am_depcomp=$ac_aux_dir/depcomp
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9491 $as_echo_n "checking dependency style of $depcc... " >&6; }
9492 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 if test -f "$am_depcomp"; then
9496 # We make a subdir and do the tests there. Otherwise we can end up
9497 # making bogus files that we don't know about and never remove. For
9498 # instance it was reported that on HP-UX the gcc test will end up
9499 # making a dummy file named `D' -- because `-MD' means `put the output
9500 # in D'.
9501 mkdir conftest.dir
9502 # Copy depcomp to subdir because otherwise we won't find it if we're
9503 # using a relative directory.
9504 cp "$am_depcomp" conftest.dir
9505 cd conftest.dir
9506 # We will build objects and dependencies in a subdirectory because
9507 # it helps to detect inapplicable dependency modes. For instance
9508 # both Tru64's cc and ICC support -MD to output dependencies as a
9509 # side effect of compilation, but ICC will put the dependencies in
9510 # the current directory while Tru64 will put them in the object
9511 # directory.
9512 mkdir sub
9513
9514 am_cv_CXX_dependencies_compiler_type=none
9515 if test "$am_compiler_list" = ""; then
9516 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9517 fi
9518 for depmode in $am_compiler_list; do
9519 if test $depmode = none; then break; fi
9520
9521 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9522 # Setup a source with many dependencies, because some compilers
9523 # like to wrap large dependency lists on column 80 (with \), and
9524 # we should not choose a depcomp mode which is confused by this.
9525 #
9526 # We need to recreate these files for each test, as the compiler may
9527 # overwrite some of them when testing with obscure command lines.
9528 # This happens at least with the AIX C compiler.
9529 : > sub/conftest.c
9530 for i in 1 2 3 4 5 6; do
9531 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9532 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9533 # Solaris 8's {/usr,}/bin/sh.
9534 touch sub/conftst$i.h
9535 done
9536 echo "include sub/conftest.Po" > confmf
9537
9538 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9539 # mode. It turns out that the SunPro C++ compiler does not properly
9540 # handle `-M -o', and we need to detect this.
9541 depcmd="depmode=$depmode \
9542 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9543 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9544 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9545 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9546 if env $depcmd > conftest.err 2>&1 &&
9547 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9548 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9549 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9550 # icc doesn't choke on unknown options, it will just issue warnings
9551 # or remarks (even with -Werror). So we grep stderr for any message
9552 # that says an option was ignored or not supported.
9553 # When given -MP, icc 7.0 and 7.1 complain thusly:
9554 # icc: Command line warning: ignoring option '-M'; no argument required
9555 # The diagnosis changed in icc 8.0:
9556 # icc: Command line remark: option '-MP' not supported
9557 if (grep 'ignoring option' conftest.err ||
9558 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9559 am_cv_CXX_dependencies_compiler_type=$depmode
9560 $as_echo "$as_me:$LINENO: success" >&5
9561 break
9562 fi
9563 fi
9564 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9565 sed -e 's/^/| /' < conftest.err >&5
9566 done
9567
9568 cd ..
9569 rm -rf conftest.dir
9570 else
9571 am_cv_CXX_dependencies_compiler_type=none
9572 fi
9573
9574 fi
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9576 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9577 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9578 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9579 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9580
9581 fi
9582
9583
9584 # --------
9585 # UNSORTED
9586 # --------
9587
9588
9589 # These libraries may be used by collect2.
9590 # We may need a special search path to get them linked.
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9592 $as_echo_n "checking for collect2 libraries... " >&6; }
9593 if ${gcc_cv_collect2_libs+:} false; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 save_LIBS="$LIBS"
9597 for libs in '' -lld -lmld \
9598 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9599 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9600 do
9601 LIBS="$libs"
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9604
9605 /* Override any GCC internal prototype to avoid an error.
9606 Use char because int might match the return type of a GCC
9607 builtin and then its argument prototype would still apply. */
9608 #ifdef __cplusplus
9609 extern "C"
9610 #endif
9611 char ldopen ();
9612 int
9613 main ()
9614 {
9615 return ldopen ();
9616 ;
9617 return 0;
9618 }
9619 _ACEOF
9620 if ac_fn_cxx_try_link "$LINENO"; then :
9621 gcc_cv_collect2_libs="$libs"; break
9622 fi
9623 rm -f core conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
9625 done
9626 LIBS="$save_LIBS"
9627 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9628 fi
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9630 $as_echo "$gcc_cv_collect2_libs" >&6; }
9631 case $gcc_cv_collect2_libs in
9632 "none required") ;;
9633 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9634 esac
9635
9636
9637 # When building Ada code on Alpha, we need exc_resume which is usually in
9638 # -lexc. So test for it.
9639 save_LIBS="$LIBS"
9640 LIBS=
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9642 $as_echo_n "checking for library containing exc_resume... " >&6; }
9643 if ${ac_cv_search_exc_resume+:} false; then :
9644 $as_echo_n "(cached) " >&6
9645 else
9646 ac_func_search_save_LIBS=$LIBS
9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648 /* end confdefs.h. */
9649
9650 /* Override any GCC internal prototype to avoid an error.
9651 Use char because int might match the return type of a GCC
9652 builtin and then its argument prototype would still apply. */
9653 #ifdef __cplusplus
9654 extern "C"
9655 #endif
9656 char exc_resume ();
9657 int
9658 main ()
9659 {
9660 return exc_resume ();
9661 ;
9662 return 0;
9663 }
9664 _ACEOF
9665 for ac_lib in '' exc; do
9666 if test -z "$ac_lib"; then
9667 ac_res="none required"
9668 else
9669 ac_res=-l$ac_lib
9670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9671 fi
9672 if ac_fn_cxx_try_link "$LINENO"; then :
9673 ac_cv_search_exc_resume=$ac_res
9674 fi
9675 rm -f core conftest.err conftest.$ac_objext \
9676 conftest$ac_exeext
9677 if ${ac_cv_search_exc_resume+:} false; then :
9678 break
9679 fi
9680 done
9681 if ${ac_cv_search_exc_resume+:} false; then :
9682
9683 else
9684 ac_cv_search_exc_resume=no
9685 fi
9686 rm conftest.$ac_ext
9687 LIBS=$ac_func_search_save_LIBS
9688 fi
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9690 $as_echo "$ac_cv_search_exc_resume" >&6; }
9691 ac_res=$ac_cv_search_exc_resume
9692 if test "$ac_res" != no; then :
9693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9694
9695 fi
9696
9697 GNAT_LIBEXC="$LIBS"
9698 LIBS="$save_LIBS"
9699
9700
9701 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9702 save_LIBS="$LIBS"
9703 LIBS=
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9705 $as_echo_n "checking for library containing kstat_open... " >&6; }
9706 if ${ac_cv_search_kstat_open+:} false; then :
9707 $as_echo_n "(cached) " >&6
9708 else
9709 ac_func_search_save_LIBS=$LIBS
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9712
9713 /* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
9716 #ifdef __cplusplus
9717 extern "C"
9718 #endif
9719 char kstat_open ();
9720 int
9721 main ()
9722 {
9723 return kstat_open ();
9724 ;
9725 return 0;
9726 }
9727 _ACEOF
9728 for ac_lib in '' kstat; do
9729 if test -z "$ac_lib"; then
9730 ac_res="none required"
9731 else
9732 ac_res=-l$ac_lib
9733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9734 fi
9735 if ac_fn_cxx_try_link "$LINENO"; then :
9736 ac_cv_search_kstat_open=$ac_res
9737 fi
9738 rm -f core conftest.err conftest.$ac_objext \
9739 conftest$ac_exeext
9740 if ${ac_cv_search_kstat_open+:} false; then :
9741 break
9742 fi
9743 done
9744 if ${ac_cv_search_kstat_open+:} false; then :
9745
9746 else
9747 ac_cv_search_kstat_open=no
9748 fi
9749 rm conftest.$ac_ext
9750 LIBS=$ac_func_search_save_LIBS
9751 fi
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9753 $as_echo "$ac_cv_search_kstat_open" >&6; }
9754 ac_res=$ac_cv_search_kstat_open
9755 if test "$ac_res" != no; then :
9756 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9757
9758 fi
9759
9760 EXTRA_GCC_LIBS="$LIBS"
9761 LIBS="$save_LIBS"
9762
9763
9764 # Some systems put ldexp and frexp in libm instead of libc; assume
9765 # they're both in the same place. jcf-dump needs them.
9766 save_LIBS="$LIBS"
9767 LIBS=
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9769 $as_echo_n "checking for library containing ldexp... " >&6; }
9770 if ${ac_cv_search_ldexp+:} false; then :
9771 $as_echo_n "(cached) " >&6
9772 else
9773 ac_func_search_save_LIBS=$LIBS
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776
9777 /* Override any GCC internal prototype to avoid an error.
9778 Use char because int might match the return type of a GCC
9779 builtin and then its argument prototype would still apply. */
9780 #ifdef __cplusplus
9781 extern "C"
9782 #endif
9783 char ldexp ();
9784 int
9785 main ()
9786 {
9787 return ldexp ();
9788 ;
9789 return 0;
9790 }
9791 _ACEOF
9792 for ac_lib in '' m; do
9793 if test -z "$ac_lib"; then
9794 ac_res="none required"
9795 else
9796 ac_res=-l$ac_lib
9797 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9798 fi
9799 if ac_fn_cxx_try_link "$LINENO"; then :
9800 ac_cv_search_ldexp=$ac_res
9801 fi
9802 rm -f core conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext
9804 if ${ac_cv_search_ldexp+:} false; then :
9805 break
9806 fi
9807 done
9808 if ${ac_cv_search_ldexp+:} false; then :
9809
9810 else
9811 ac_cv_search_ldexp=no
9812 fi
9813 rm conftest.$ac_ext
9814 LIBS=$ac_func_search_save_LIBS
9815 fi
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9817 $as_echo "$ac_cv_search_ldexp" >&6; }
9818 ac_res=$ac_cv_search_ldexp
9819 if test "$ac_res" != no; then :
9820 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9821
9822 fi
9823
9824 LDEXP_LIB="$LIBS"
9825 LIBS="$save_LIBS"
9826
9827
9828 # Some systems need dlopen
9829 save_LIBS="$LIBS"
9830 LIBS=
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9832 $as_echo_n "checking for library containing dlopen... " >&6; }
9833 if ${ac_cv_search_dlopen+:} false; then :
9834 $as_echo_n "(cached) " >&6
9835 else
9836 ac_func_search_save_LIBS=$LIBS
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9839
9840 /* Override any GCC internal prototype to avoid an error.
9841 Use char because int might match the return type of a GCC
9842 builtin and then its argument prototype would still apply. */
9843 #ifdef __cplusplus
9844 extern "C"
9845 #endif
9846 char dlopen ();
9847 int
9848 main ()
9849 {
9850 return dlopen ();
9851 ;
9852 return 0;
9853 }
9854 _ACEOF
9855 for ac_lib in '' dl; do
9856 if test -z "$ac_lib"; then
9857 ac_res="none required"
9858 else
9859 ac_res=-l$ac_lib
9860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9861 fi
9862 if ac_fn_cxx_try_link "$LINENO"; then :
9863 ac_cv_search_dlopen=$ac_res
9864 fi
9865 rm -f core conftest.err conftest.$ac_objext \
9866 conftest$ac_exeext
9867 if ${ac_cv_search_dlopen+:} false; then :
9868 break
9869 fi
9870 done
9871 if ${ac_cv_search_dlopen+:} false; then :
9872
9873 else
9874 ac_cv_search_dlopen=no
9875 fi
9876 rm conftest.$ac_ext
9877 LIBS=$ac_func_search_save_LIBS
9878 fi
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9880 $as_echo "$ac_cv_search_dlopen" >&6; }
9881 ac_res=$ac_cv_search_dlopen
9882 if test "$ac_res" != no; then :
9883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9884
9885 fi
9886
9887 DL_LIB="$LIBS"
9888 LIBS="$save_LIBS"
9889
9890
9891 # Use <inttypes.h> only if it exists,
9892 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9893 # PRId64
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9895 $as_echo_n "checking for inttypes.h... " >&6; }
9896 if ${gcc_cv_header_inttypes_h+:} false; then :
9897 $as_echo_n "(cached) " >&6
9898 else
9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900 /* end confdefs.h. */
9901 #define __STDC_FORMAT_MACROS
9902 #include <sys/types.h>
9903 #include <inttypes.h>
9904 int
9905 main ()
9906 {
9907 intmax_t i = -1;
9908 #ifndef PRId64
9909 choke me
9910 #endif
9911 ;
9912 return 0;
9913 }
9914 _ACEOF
9915 if ac_fn_cxx_try_compile "$LINENO"; then :
9916 gcc_cv_header_inttypes_h=yes
9917 else
9918 gcc_cv_header_inttypes_h=no
9919 fi
9920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921 fi
9922
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9924 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9925 if test $gcc_cv_header_inttypes_h = yes; then
9926
9927 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9928
9929 fi
9930
9931 # Look for the ZSTD package.
9932 ZSTD_INCLUDE=
9933 ZSTD_LIB=
9934
9935
9936 ZSTD_CPPFLAGS=
9937 ZSTD_LDFLAGS=
9938
9939 # Check whether --with-zstd was given.
9940 if test "${with_zstd+set}" = set; then :
9941 withval=$with_zstd;
9942 fi
9943
9944
9945 # Check whether --with-zstd-include was given.
9946 if test "${with_zstd_include+set}" = set; then :
9947 withval=$with_zstd_include;
9948 fi
9949
9950
9951 # Check whether --with-zstd-lib was given.
9952 if test "${with_zstd_lib+set}" = set; then :
9953 withval=$with_zstd_lib;
9954 fi
9955
9956 case "x$with_zstd" in
9957 x) ;;
9958 xno)
9959 ZSTD_INCLUDE=no
9960 ZSTD_LIB=no
9961 ;;
9962 *) ZSTD_INCLUDE=$with_zstd/include
9963 ZSTD_LIB=$with_zstd/lib
9964 ;;
9965 esac
9966 if test "x$with_zstd_include" != x; then
9967 ZSTD_INCLUDE=$with_zstd_include
9968 fi
9969 if test "x$with_zstd_lib" != x; then
9970 ZSTD_LIB=$with_zstd_lib
9971 fi
9972 if test "x$ZSTD_INCLUDE" != x \
9973 && test "x$ZSTD_INCLUDE" != xno; then
9974 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
9975 fi
9976 if test "x$ZSTD_LIB" != x \
9977 && test "x$ZSTD_LIB" != xno; then
9978 ZSTD_LDFLAGS=-L$ZSTD_LIB
9979 fi
9980
9981 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
9982 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
9983
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
9985 $as_echo_n "checking for zstd.h... " >&6; }
9986 if ${gcc_cv_header_zstd_h+:} false; then :
9987 $as_echo_n "(cached) " >&6
9988 else
9989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990 /* end confdefs.h. */
9991 #include <zstd.h>
9992 int
9993 main ()
9994 {
9995
9996 ;
9997 return 0;
9998 }
9999 _ACEOF
10000 if ac_fn_cxx_try_compile "$LINENO"; then :
10001 gcc_cv_header_zstd_h=yes
10002 else
10003 gcc_cv_header_zstd_h=no
10004 fi
10005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10006 fi
10007
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10009 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10010 if test $gcc_cv_header_zstd_h = yes; then
10011
10012 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10013
10014 fi
10015
10016 # LTO can use zstd compression algorithm
10017 save_LIBS="$LIBS"
10018 LIBS=
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10020 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10021 if ${ac_cv_search_ZSTD_compress+:} false; then :
10022 $as_echo_n "(cached) " >&6
10023 else
10024 ac_func_search_save_LIBS=$LIBS
10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026 /* end confdefs.h. */
10027
10028 /* Override any GCC internal prototype to avoid an error.
10029 Use char because int might match the return type of a GCC
10030 builtin and then its argument prototype would still apply. */
10031 #ifdef __cplusplus
10032 extern "C"
10033 #endif
10034 char ZSTD_compress ();
10035 int
10036 main ()
10037 {
10038 return ZSTD_compress ();
10039 ;
10040 return 0;
10041 }
10042 _ACEOF
10043 for ac_lib in '' zstd; do
10044 if test -z "$ac_lib"; then
10045 ac_res="none required"
10046 else
10047 ac_res=-l$ac_lib
10048 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10049 fi
10050 if ac_fn_cxx_try_link "$LINENO"; then :
10051 ac_cv_search_ZSTD_compress=$ac_res
10052 fi
10053 rm -f core conftest.err conftest.$ac_objext \
10054 conftest$ac_exeext
10055 if ${ac_cv_search_ZSTD_compress+:} false; then :
10056 break
10057 fi
10058 done
10059 if ${ac_cv_search_ZSTD_compress+:} false; then :
10060
10061 else
10062 ac_cv_search_ZSTD_compress=no
10063 fi
10064 rm conftest.$ac_ext
10065 LIBS=$ac_func_search_save_LIBS
10066 fi
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10068 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10069 ac_res=$ac_cv_search_ZSTD_compress
10070 if test "$ac_res" != no; then :
10071 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10072
10073 fi
10074
10075 ZSTD_LIB="$LIBS"
10076 LIBS="$save_LIBS"
10077
10078
10079
10080
10081 for ac_func in times clock kill getrlimit setrlimit atoq \
10082 popen sysconf strsignal getrusage nl_langinfo \
10083 gettimeofday mbstowcs wcswidth mmap setlocale \
10084 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
10085 do :
10086 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10087 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10088 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10089 cat >>confdefs.h <<_ACEOF
10090 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10091 _ACEOF
10092
10093 fi
10094 done
10095
10096
10097 if test x$ac_cv_func_mbstowcs = xyes; then
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10099 $as_echo_n "checking whether mbstowcs works... " >&6; }
10100 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10101 $as_echo_n "(cached) " >&6
10102 else
10103 if test "$cross_compiling" = yes; then :
10104 gcc_cv_func_mbstowcs_works=yes
10105 else
10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107 /* end confdefs.h. */
10108 #include <stdlib.h>
10109 int main()
10110 {
10111 mbstowcs(0, "", 0);
10112 return 0;
10113 }
10114 _ACEOF
10115 if ac_fn_cxx_try_run "$LINENO"; then :
10116 gcc_cv_func_mbstowcs_works=yes
10117 else
10118 gcc_cv_func_mbstowcs_works=no
10119 fi
10120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10121 conftest.$ac_objext conftest.beam conftest.$ac_ext
10122 fi
10123
10124 fi
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10126 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10127 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10128
10129 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10130
10131 fi
10132 fi
10133
10134 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10135 if test "x$ac_cv_type_ssize_t" = xyes; then :
10136
10137 else
10138
10139 cat >>confdefs.h <<_ACEOF
10140 #define ssize_t int
10141 _ACEOF
10142
10143 fi
10144
10145 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10146 if test "x$ac_cv_type_caddr_t" = xyes; then :
10147
10148 else
10149
10150 cat >>confdefs.h <<_ACEOF
10151 #define caddr_t char *
10152 _ACEOF
10153
10154 fi
10155
10156
10157
10158 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10159 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10160 gcc_header_sys_mman_h=yes
10161 else
10162 gcc_header_sys_mman_h=no
10163 fi
10164
10165 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10166 if test "x$ac_cv_func_mmap" = xyes; then :
10167 gcc_func_mmap=yes
10168 else
10169 gcc_func_mmap=no
10170 fi
10171
10172 if test "$gcc_header_sys_mman_h" != yes \
10173 || test "$gcc_func_mmap" != yes; then
10174 gcc_cv_func_mmap_file=no
10175 gcc_cv_func_mmap_dev_zero=no
10176 gcc_cv_func_mmap_anon=no
10177 else
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10179 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10180 if ${gcc_cv_func_mmap_file+:} false; then :
10181 $as_echo_n "(cached) " >&6
10182 else
10183 # Add a system to this blacklist if
10184 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10185 # memory area containing the same data that you'd get if you applied
10186 # read() to the same fd. The only system known to have a problem here
10187 # is VMS, where text files have record structure.
10188 case "$host_os" in
10189 *vms* | ultrix*)
10190 gcc_cv_func_mmap_file=no ;;
10191 *)
10192 gcc_cv_func_mmap_file=yes;;
10193 esac
10194 fi
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10196 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10198 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10199 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10200 $as_echo_n "(cached) " >&6
10201 else
10202 # Add a system to this blacklist if it has mmap() but /dev/zero
10203 # does not exist, or if mmapping /dev/zero does not give anonymous
10204 # zeroed pages with both the following properties:
10205 # 1. If you map N consecutive pages in with one call, and then
10206 # unmap any subset of those pages, the pages that were not
10207 # explicitly unmapped remain accessible.
10208 # 2. If you map two adjacent blocks of memory and then unmap them
10209 # both at once, they must both go away.
10210 # Systems known to be in this category are Windows (all variants),
10211 # VMS, and Darwin.
10212 case "$host_os" in
10213 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10214 gcc_cv_func_mmap_dev_zero=no ;;
10215 *)
10216 gcc_cv_func_mmap_dev_zero=yes;;
10217 esac
10218 fi
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10220 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10221
10222 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10224 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10225 if ${gcc_cv_decl_map_anon+:} false; then :
10226 $as_echo_n "(cached) " >&6
10227 else
10228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h. */
10230 #include <sys/types.h>
10231 #include <sys/mman.h>
10232 #include <unistd.h>
10233
10234 #ifndef MAP_ANONYMOUS
10235 #define MAP_ANONYMOUS MAP_ANON
10236 #endif
10237
10238 int
10239 main ()
10240 {
10241 int n = MAP_ANONYMOUS;
10242 ;
10243 return 0;
10244 }
10245 _ACEOF
10246 if ac_fn_cxx_try_compile "$LINENO"; then :
10247 gcc_cv_decl_map_anon=yes
10248 else
10249 gcc_cv_decl_map_anon=no
10250 fi
10251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10252 fi
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10254 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10255
10256 if test $gcc_cv_decl_map_anon = no; then
10257 gcc_cv_func_mmap_anon=no
10258 else
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10260 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10261 if ${gcc_cv_func_mmap_anon+:} false; then :
10262 $as_echo_n "(cached) " >&6
10263 else
10264 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10265 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10266 # doesn't give anonymous zeroed pages with the same properties listed
10267 # above for use of /dev/zero.
10268 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10269 case "$host_os" in
10270 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10271 gcc_cv_func_mmap_anon=no ;;
10272 *)
10273 gcc_cv_func_mmap_anon=yes;;
10274 esac
10275 fi
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10277 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10278 fi
10279 fi
10280
10281 if test $gcc_cv_func_mmap_file = yes; then
10282
10283 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10284
10285 fi
10286 if test $gcc_cv_func_mmap_dev_zero = yes; then
10287
10288 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10289
10290 fi
10291 if test $gcc_cv_func_mmap_anon = yes; then
10292
10293 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10294
10295 fi
10296
10297
10298 case "${host}" in
10299 *-*-*vms*)
10300 # Under VMS, vfork works very differently than on Unix. The standard test
10301 # won't work, and it isn't easily adaptable. It makes more sense to
10302 # just force it.
10303 ac_cv_func_vfork_works=yes
10304 ;;
10305 esac
10306 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10307 if test "x$ac_cv_type_pid_t" = xyes; then :
10308
10309 else
10310
10311 cat >>confdefs.h <<_ACEOF
10312 #define pid_t int
10313 _ACEOF
10314
10315 fi
10316
10317 for ac_header in vfork.h
10318 do :
10319 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10320 if test "x$ac_cv_header_vfork_h" = xyes; then :
10321 cat >>confdefs.h <<_ACEOF
10322 #define HAVE_VFORK_H 1
10323 _ACEOF
10324
10325 fi
10326 done
10327
10328 for ac_func in fork vfork
10329 do :
10330 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10331 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10332 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10333 cat >>confdefs.h <<_ACEOF
10334 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10335 _ACEOF
10336
10337 fi
10338 done
10339
10340 if test "x$ac_cv_func_fork" = xyes; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10342 $as_echo_n "checking for working fork... " >&6; }
10343 if ${ac_cv_func_fork_works+:} false; then :
10344 $as_echo_n "(cached) " >&6
10345 else
10346 if test "$cross_compiling" = yes; then :
10347 ac_cv_func_fork_works=cross
10348 else
10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h. */
10351 $ac_includes_default
10352 int
10353 main ()
10354 {
10355
10356 /* By Ruediger Kuhlmann. */
10357 return fork () < 0;
10358
10359 ;
10360 return 0;
10361 }
10362 _ACEOF
10363 if ac_fn_cxx_try_run "$LINENO"; then :
10364 ac_cv_func_fork_works=yes
10365 else
10366 ac_cv_func_fork_works=no
10367 fi
10368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10369 conftest.$ac_objext conftest.beam conftest.$ac_ext
10370 fi
10371
10372 fi
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10374 $as_echo "$ac_cv_func_fork_works" >&6; }
10375
10376 else
10377 ac_cv_func_fork_works=$ac_cv_func_fork
10378 fi
10379 if test "x$ac_cv_func_fork_works" = xcross; then
10380 case $host in
10381 *-*-amigaos* | *-*-msdosdjgpp*)
10382 # Override, as these systems have only a dummy fork() stub
10383 ac_cv_func_fork_works=no
10384 ;;
10385 *)
10386 ac_cv_func_fork_works=yes
10387 ;;
10388 esac
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10390 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10391 fi
10392 ac_cv_func_vfork_works=$ac_cv_func_vfork
10393 if test "x$ac_cv_func_vfork" = xyes; then
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10395 $as_echo_n "checking for working vfork... " >&6; }
10396 if ${ac_cv_func_vfork_works+:} false; then :
10397 $as_echo_n "(cached) " >&6
10398 else
10399 if test "$cross_compiling" = yes; then :
10400 ac_cv_func_vfork_works=cross
10401 else
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10404 /* Thanks to Paul Eggert for this test. */
10405 $ac_includes_default
10406 #include <sys/wait.h>
10407 #ifdef HAVE_VFORK_H
10408 # include <vfork.h>
10409 #endif
10410 /* On some sparc systems, changes by the child to local and incoming
10411 argument registers are propagated back to the parent. The compiler
10412 is told about this with #include <vfork.h>, but some compilers
10413 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10414 static variable whose address is put into a register that is
10415 clobbered by the vfork. */
10416 static void
10417 #ifdef __cplusplus
10418 sparc_address_test (int arg)
10419 # else
10420 sparc_address_test (arg) int arg;
10421 #endif
10422 {
10423 static pid_t child;
10424 if (!child) {
10425 child = vfork ();
10426 if (child < 0) {
10427 perror ("vfork");
10428 _exit(2);
10429 }
10430 if (!child) {
10431 arg = getpid();
10432 write(-1, "", 0);
10433 _exit (arg);
10434 }
10435 }
10436 }
10437
10438 int
10439 main ()
10440 {
10441 pid_t parent = getpid ();
10442 pid_t child;
10443
10444 sparc_address_test (0);
10445
10446 child = vfork ();
10447
10448 if (child == 0) {
10449 /* Here is another test for sparc vfork register problems. This
10450 test uses lots of local variables, at least as many local
10451 variables as main has allocated so far including compiler
10452 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10453 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10454 reuse the register of parent for one of the local variables,
10455 since it will think that parent can't possibly be used any more
10456 in this routine. Assigning to the local variable will thus
10457 munge parent in the parent process. */
10458 pid_t
10459 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10460 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10461 /* Convince the compiler that p..p7 are live; otherwise, it might
10462 use the same hardware register for all 8 local variables. */
10463 if (p != p1 || p != p2 || p != p3 || p != p4
10464 || p != p5 || p != p6 || p != p7)
10465 _exit(1);
10466
10467 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10468 from child file descriptors. If the child closes a descriptor
10469 before it execs or exits, this munges the parent's descriptor
10470 as well. Test for this by closing stdout in the child. */
10471 _exit(close(fileno(stdout)) != 0);
10472 } else {
10473 int status;
10474 struct stat st;
10475
10476 while (wait(&status) != child)
10477 ;
10478 return (
10479 /* Was there some problem with vforking? */
10480 child < 0
10481
10482 /* Did the child fail? (This shouldn't happen.) */
10483 || status
10484
10485 /* Did the vfork/compiler bug occur? */
10486 || parent != getpid()
10487
10488 /* Did the file descriptor bug occur? */
10489 || fstat(fileno(stdout), &st) != 0
10490 );
10491 }
10492 }
10493 _ACEOF
10494 if ac_fn_cxx_try_run "$LINENO"; then :
10495 ac_cv_func_vfork_works=yes
10496 else
10497 ac_cv_func_vfork_works=no
10498 fi
10499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10500 conftest.$ac_objext conftest.beam conftest.$ac_ext
10501 fi
10502
10503 fi
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10505 $as_echo "$ac_cv_func_vfork_works" >&6; }
10506
10507 fi;
10508 if test "x$ac_cv_func_fork_works" = xcross; then
10509 ac_cv_func_vfork_works=$ac_cv_func_vfork
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10511 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10512 fi
10513
10514 if test "x$ac_cv_func_vfork_works" = xyes; then
10515
10516 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10517
10518 else
10519
10520 $as_echo "#define vfork fork" >>confdefs.h
10521
10522 fi
10523 if test "x$ac_cv_func_fork_works" = xyes; then
10524
10525 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10526
10527 fi
10528
10529
10530
10531 if test "X$prefix" = "XNONE"; then
10532 acl_final_prefix="$ac_default_prefix"
10533 else
10534 acl_final_prefix="$prefix"
10535 fi
10536 if test "X$exec_prefix" = "XNONE"; then
10537 acl_final_exec_prefix='${prefix}'
10538 else
10539 acl_final_exec_prefix="$exec_prefix"
10540 fi
10541 acl_save_prefix="$prefix"
10542 prefix="$acl_final_prefix"
10543 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10544 prefix="$acl_save_prefix"
10545
10546
10547 # Check whether --with-gnu-ld was given.
10548 if test "${with_gnu_ld+set}" = set; then :
10549 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10550 else
10551 with_gnu_ld=no
10552 fi
10553
10554 # Prepare PATH_SEPARATOR.
10555 # The user is always right.
10556 if test "${PATH_SEPARATOR+set}" != set; then
10557 echo "#! /bin/sh" >conf$$.sh
10558 echo "exit 0" >>conf$$.sh
10559 chmod +x conf$$.sh
10560 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10561 PATH_SEPARATOR=';'
10562 else
10563 PATH_SEPARATOR=:
10564 fi
10565 rm -f conf$$.sh
10566 fi
10567 ac_prog=ld
10568 if test "$GCC" = yes; then
10569 # Check if gcc -print-prog-name=ld gives a path.
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10571 $as_echo_n "checking for ld used by GCC... " >&6; }
10572 case $host in
10573 *-*-mingw*)
10574 # gcc leaves a trailing carriage return which upsets mingw
10575 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10576 *)
10577 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10578 esac
10579 case $ac_prog in
10580 # Accept absolute paths.
10581 [\\/]* | [A-Za-z]:[\\/]*)
10582 re_direlt='/[^/][^/]*/\.\./'
10583 # Canonicalize the path of ld
10584 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10585 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10586 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10587 done
10588 test -z "$LD" && LD="$ac_prog"
10589 ;;
10590 "")
10591 # If it fails, then pretend we aren't using GCC.
10592 ac_prog=ld
10593 ;;
10594 *)
10595 # If it is relative, then search for the first ld in PATH.
10596 with_gnu_ld=unknown
10597 ;;
10598 esac
10599 elif test "$with_gnu_ld" = yes; then
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10601 $as_echo_n "checking for GNU ld... " >&6; }
10602 else
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10604 $as_echo_n "checking for non-GNU ld... " >&6; }
10605 fi
10606 if ${acl_cv_path_LD+:} false; then :
10607 $as_echo_n "(cached) " >&6
10608 else
10609 if test -z "$LD"; then
10610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10611 for ac_dir in $PATH; do
10612 test -z "$ac_dir" && ac_dir=.
10613 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10614 acl_cv_path_LD="$ac_dir/$ac_prog"
10615 # Check to see if the program is GNU ld. I'd rather use --version,
10616 # but apparently some GNU ld's only accept -v.
10617 # Break only if it was the GNU/non-GNU ld that we prefer.
10618 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10619 test "$with_gnu_ld" != no && break
10620 else
10621 test "$with_gnu_ld" != yes && break
10622 fi
10623 fi
10624 done
10625 IFS="$ac_save_ifs"
10626 else
10627 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10628 fi
10629 fi
10630
10631 LD="$acl_cv_path_LD"
10632 if test -n "$LD"; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10634 $as_echo "$LD" >&6; }
10635 else
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 $as_echo "no" >&6; }
10638 fi
10639 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10641 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10642 if ${acl_cv_prog_gnu_ld+:} false; then :
10643 $as_echo_n "(cached) " >&6
10644 else
10645 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10646 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10647 acl_cv_prog_gnu_ld=yes
10648 else
10649 acl_cv_prog_gnu_ld=no
10650 fi
10651 fi
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10653 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10654 with_gnu_ld=$acl_cv_prog_gnu_ld
10655
10656
10657
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10659 $as_echo_n "checking for shared library run path origin... " >&6; }
10660 if ${acl_cv_rpath+:} false; then :
10661 $as_echo_n "(cached) " >&6
10662 else
10663
10664 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10665 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10666 . ./conftest.sh
10667 rm -f ./conftest.sh
10668 acl_cv_rpath=done
10669
10670 fi
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10672 $as_echo "$acl_cv_rpath" >&6; }
10673 wl="$acl_cv_wl"
10674 libext="$acl_cv_libext"
10675 shlibext="$acl_cv_shlibext"
10676 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10677 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10678 hardcode_direct="$acl_cv_hardcode_direct"
10679 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10680 # Check whether --enable-rpath was given.
10681 if test "${enable_rpath+set}" = set; then :
10682 enableval=$enable_rpath; :
10683 else
10684 enable_rpath=yes
10685 fi
10686
10687
10688
10689
10690
10691
10692
10693
10694 use_additional=yes
10695
10696 acl_save_prefix="$prefix"
10697 prefix="$acl_final_prefix"
10698 acl_save_exec_prefix="$exec_prefix"
10699 exec_prefix="$acl_final_exec_prefix"
10700
10701 eval additional_includedir=\"$includedir\"
10702 eval additional_libdir=\"$libdir\"
10703
10704 exec_prefix="$acl_save_exec_prefix"
10705 prefix="$acl_save_prefix"
10706
10707
10708 # Check whether --with-libiconv-prefix was given.
10709 if test "${with_libiconv_prefix+set}" = set; then :
10710 withval=$with_libiconv_prefix;
10711 if test "X$withval" = "Xno"; then
10712 use_additional=no
10713 else
10714 if test "X$withval" = "X"; then
10715
10716 acl_save_prefix="$prefix"
10717 prefix="$acl_final_prefix"
10718 acl_save_exec_prefix="$exec_prefix"
10719 exec_prefix="$acl_final_exec_prefix"
10720
10721 eval additional_includedir=\"$includedir\"
10722 eval additional_libdir=\"$libdir\"
10723
10724 exec_prefix="$acl_save_exec_prefix"
10725 prefix="$acl_save_prefix"
10726
10727 else
10728 additional_includedir="$withval/include"
10729 additional_libdir="$withval/lib"
10730 fi
10731 fi
10732
10733 fi
10734
10735
10736 # Check whether --with-libiconv-type was given.
10737 if test "${with_libiconv_type+set}" = set; then :
10738 withval=$with_libiconv_type; with_libiconv_type=$withval
10739 else
10740 with_libiconv_type=auto
10741 fi
10742
10743 lib_type=`eval echo \$with_libiconv_type`
10744
10745 LIBICONV=
10746 LTLIBICONV=
10747 INCICONV=
10748 rpathdirs=
10749 ltrpathdirs=
10750 names_already_handled=
10751 names_next_round='iconv '
10752 while test -n "$names_next_round"; do
10753 names_this_round="$names_next_round"
10754 names_next_round=
10755 for name in $names_this_round; do
10756 already_handled=
10757 for n in $names_already_handled; do
10758 if test "$n" = "$name"; then
10759 already_handled=yes
10760 break
10761 fi
10762 done
10763 if test -z "$already_handled"; then
10764 names_already_handled="$names_already_handled $name"
10765 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10766 eval value=\"\$HAVE_LIB$uppername\"
10767 if test -n "$value"; then
10768 if test "$value" = yes; then
10769 eval value=\"\$LIB$uppername\"
10770 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10771 eval value=\"\$LTLIB$uppername\"
10772 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10773 else
10774 :
10775 fi
10776 else
10777 found_dir=
10778 found_la=
10779 found_so=
10780 found_a=
10781 if test $use_additional = yes; then
10782 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10783 found_dir="$additional_libdir"
10784 found_so="$additional_libdir/lib$name.$shlibext"
10785 if test -f "$additional_libdir/lib$name.la"; then
10786 found_la="$additional_libdir/lib$name.la"
10787 fi
10788 elif test x$lib_type != xshared; then
10789 if test -f "$additional_libdir/lib$name.$libext"; then
10790 found_dir="$additional_libdir"
10791 found_a="$additional_libdir/lib$name.$libext"
10792 if test -f "$additional_libdir/lib$name.la"; then
10793 found_la="$additional_libdir/lib$name.la"
10794 fi
10795 fi
10796 fi
10797 fi
10798 if test "X$found_dir" = "X"; then
10799 for x in $LDFLAGS $LTLIBICONV; do
10800
10801 acl_save_prefix="$prefix"
10802 prefix="$acl_final_prefix"
10803 acl_save_exec_prefix="$exec_prefix"
10804 exec_prefix="$acl_final_exec_prefix"
10805 eval x=\"$x\"
10806 exec_prefix="$acl_save_exec_prefix"
10807 prefix="$acl_save_prefix"
10808
10809 case "$x" in
10810 -L*)
10811 dir=`echo "X$x" | sed -e 's/^X-L//'`
10812 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10813 found_dir="$dir"
10814 found_so="$dir/lib$name.$shlibext"
10815 if test -f "$dir/lib$name.la"; then
10816 found_la="$dir/lib$name.la"
10817 fi
10818 elif test x$lib_type != xshared; then
10819 if test -f "$dir/lib$name.$libext"; then
10820 found_dir="$dir"
10821 found_a="$dir/lib$name.$libext"
10822 if test -f "$dir/lib$name.la"; then
10823 found_la="$dir/lib$name.la"
10824 fi
10825 fi
10826 fi
10827 ;;
10828 esac
10829 if test "X$found_dir" != "X"; then
10830 break
10831 fi
10832 done
10833 fi
10834 if test "X$found_dir" != "X"; then
10835 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10836 if test "X$found_so" != "X"; then
10837 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10838 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10839 else
10840 haveit=
10841 for x in $ltrpathdirs; do
10842 if test "X$x" = "X$found_dir"; then
10843 haveit=yes
10844 break
10845 fi
10846 done
10847 if test -z "$haveit"; then
10848 ltrpathdirs="$ltrpathdirs $found_dir"
10849 fi
10850 if test "$hardcode_direct" = yes; then
10851 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10852 else
10853 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10854 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10855 haveit=
10856 for x in $rpathdirs; do
10857 if test "X$x" = "X$found_dir"; then
10858 haveit=yes
10859 break
10860 fi
10861 done
10862 if test -z "$haveit"; then
10863 rpathdirs="$rpathdirs $found_dir"
10864 fi
10865 else
10866 haveit=
10867 for x in $LDFLAGS $LIBICONV; do
10868
10869 acl_save_prefix="$prefix"
10870 prefix="$acl_final_prefix"
10871 acl_save_exec_prefix="$exec_prefix"
10872 exec_prefix="$acl_final_exec_prefix"
10873 eval x=\"$x\"
10874 exec_prefix="$acl_save_exec_prefix"
10875 prefix="$acl_save_prefix"
10876
10877 if test "X$x" = "X-L$found_dir"; then
10878 haveit=yes
10879 break
10880 fi
10881 done
10882 if test -z "$haveit"; then
10883 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10884 fi
10885 if test "$hardcode_minus_L" != no; then
10886 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10887 else
10888 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10889 fi
10890 fi
10891 fi
10892 fi
10893 else
10894 if test "X$found_a" != "X"; then
10895 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10896 else
10897 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10898 fi
10899 fi
10900 additional_includedir=
10901 case "$found_dir" in
10902 */lib | */lib/)
10903 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10904 additional_includedir="$basedir/include"
10905 ;;
10906 esac
10907 if test "X$additional_includedir" != "X"; then
10908 if test "X$additional_includedir" != "X/usr/include"; then
10909 haveit=
10910 if test "X$additional_includedir" = "X/usr/local/include"; then
10911 if test -n "$GCC"; then
10912 case $host_os in
10913 linux*) haveit=yes;;
10914 esac
10915 fi
10916 fi
10917 if test -z "$haveit"; then
10918 for x in $CPPFLAGS $INCICONV; do
10919
10920 acl_save_prefix="$prefix"
10921 prefix="$acl_final_prefix"
10922 acl_save_exec_prefix="$exec_prefix"
10923 exec_prefix="$acl_final_exec_prefix"
10924 eval x=\"$x\"
10925 exec_prefix="$acl_save_exec_prefix"
10926 prefix="$acl_save_prefix"
10927
10928 if test "X$x" = "X-I$additional_includedir"; then
10929 haveit=yes
10930 break
10931 fi
10932 done
10933 if test -z "$haveit"; then
10934 if test -d "$additional_includedir"; then
10935 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10936 fi
10937 fi
10938 fi
10939 fi
10940 fi
10941 if test -n "$found_la"; then
10942 save_libdir="$libdir"
10943 case "$found_la" in
10944 */* | *\\*) . "$found_la" ;;
10945 *) . "./$found_la" ;;
10946 esac
10947 libdir="$save_libdir"
10948 for dep in $dependency_libs; do
10949 case "$dep" in
10950 -L*)
10951 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10952 if test "X$additional_libdir" != "X/usr/lib"; then
10953 haveit=
10954 if test "X$additional_libdir" = "X/usr/local/lib"; 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 haveit=
10963 for x in $LDFLAGS $LIBICONV; do
10964
10965 acl_save_prefix="$prefix"
10966 prefix="$acl_final_prefix"
10967 acl_save_exec_prefix="$exec_prefix"
10968 exec_prefix="$acl_final_exec_prefix"
10969 eval x=\"$x\"
10970 exec_prefix="$acl_save_exec_prefix"
10971 prefix="$acl_save_prefix"
10972
10973 if test "X$x" = "X-L$additional_libdir"; then
10974 haveit=yes
10975 break
10976 fi
10977 done
10978 if test -z "$haveit"; then
10979 if test -d "$additional_libdir"; then
10980 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10981 fi
10982 fi
10983 haveit=
10984 for x in $LDFLAGS $LTLIBICONV; do
10985
10986 acl_save_prefix="$prefix"
10987 prefix="$acl_final_prefix"
10988 acl_save_exec_prefix="$exec_prefix"
10989 exec_prefix="$acl_final_exec_prefix"
10990 eval x=\"$x\"
10991 exec_prefix="$acl_save_exec_prefix"
10992 prefix="$acl_save_prefix"
10993
10994 if test "X$x" = "X-L$additional_libdir"; then
10995 haveit=yes
10996 break
10997 fi
10998 done
10999 if test -z "$haveit"; then
11000 if test -d "$additional_libdir"; then
11001 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11002 fi
11003 fi
11004 fi
11005 fi
11006 ;;
11007 -R*)
11008 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11009 if test "$enable_rpath" != no; then
11010 haveit=
11011 for x in $rpathdirs; do
11012 if test "X$x" = "X$dir"; then
11013 haveit=yes
11014 break
11015 fi
11016 done
11017 if test -z "$haveit"; then
11018 rpathdirs="$rpathdirs $dir"
11019 fi
11020 haveit=
11021 for x in $ltrpathdirs; do
11022 if test "X$x" = "X$dir"; then
11023 haveit=yes
11024 break
11025 fi
11026 done
11027 if test -z "$haveit"; then
11028 ltrpathdirs="$ltrpathdirs $dir"
11029 fi
11030 fi
11031 ;;
11032 -l*)
11033 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11034 ;;
11035 *.la)
11036 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11037 ;;
11038 *)
11039 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11040 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11041 ;;
11042 esac
11043 done
11044 fi
11045 else
11046 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11047 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11048 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11049 else
11050 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11051 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11052 fi
11053 fi
11054 fi
11055 fi
11056 done
11057 done
11058 if test "X$rpathdirs" != "X"; then
11059 if test -n "$hardcode_libdir_separator"; then
11060 alldirs=
11061 for found_dir in $rpathdirs; do
11062 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11063 done
11064 acl_save_libdir="$libdir"
11065 libdir="$alldirs"
11066 eval flag=\"$hardcode_libdir_flag_spec\"
11067 libdir="$acl_save_libdir"
11068 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11069 else
11070 for found_dir in $rpathdirs; do
11071 acl_save_libdir="$libdir"
11072 libdir="$found_dir"
11073 eval flag=\"$hardcode_libdir_flag_spec\"
11074 libdir="$acl_save_libdir"
11075 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11076 done
11077 fi
11078 fi
11079 if test "X$ltrpathdirs" != "X"; then
11080 for found_dir in $ltrpathdirs; do
11081 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11082 done
11083 fi
11084
11085
11086
11087
11088
11089
11090
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11092 $as_echo_n "checking for iconv... " >&6; }
11093 if ${am_cv_func_iconv+:} false; then :
11094 $as_echo_n "(cached) " >&6
11095 else
11096
11097 am_cv_func_iconv="no, consider installing GNU libiconv"
11098 am_cv_lib_iconv=no
11099 am_save_CPPFLAGS="$CPPFLAGS"
11100 CPPFLAGS="$CPPFLAGS $INCICONV"
11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102 /* end confdefs.h. */
11103 #include <stdlib.h>
11104 #include <iconv.h>
11105 int
11106 main ()
11107 {
11108 iconv_t cd = iconv_open("","");
11109 iconv(cd,NULL,NULL,NULL,NULL);
11110 iconv_close(cd);
11111 ;
11112 return 0;
11113 }
11114 _ACEOF
11115 if ac_fn_cxx_try_link "$LINENO"; then :
11116 am_cv_func_iconv=yes
11117 fi
11118 rm -f core conftest.err conftest.$ac_objext \
11119 conftest$ac_exeext conftest.$ac_ext
11120 CPPFLAGS="$am_save_CPPFLAGS"
11121
11122 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11123 for _libs in .libs _libs; do
11124 am_save_CPPFLAGS="$CPPFLAGS"
11125 am_save_LIBS="$LIBS"
11126 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11127 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11129 /* end confdefs.h. */
11130 #include <stdlib.h>
11131 #include <iconv.h>
11132 int
11133 main ()
11134 {
11135 iconv_t cd = iconv_open("","");
11136 iconv(cd,NULL,NULL,NULL,NULL);
11137 iconv_close(cd);
11138 ;
11139 return 0;
11140 }
11141 _ACEOF
11142 if ac_fn_cxx_try_link "$LINENO"; then :
11143 INCICONV="-I../libiconv/include"
11144 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11145 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11146 am_cv_lib_iconv=yes
11147 am_cv_func_iconv=yes
11148 fi
11149 rm -f core conftest.err conftest.$ac_objext \
11150 conftest$ac_exeext conftest.$ac_ext
11151 CPPFLAGS="$am_save_CPPFLAGS"
11152 LIBS="$am_save_LIBS"
11153 if test "$am_cv_func_iconv" = "yes"; then
11154 break
11155 fi
11156 done
11157 fi
11158
11159 if test "$am_cv_func_iconv" != yes; then
11160 am_save_CPPFLAGS="$CPPFLAGS"
11161 am_save_LIBS="$LIBS"
11162 CPPFLAGS="$CPPFLAGS $INCICONV"
11163 LIBS="$LIBS $LIBICONV"
11164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11165 /* end confdefs.h. */
11166 #include <stdlib.h>
11167 #include <iconv.h>
11168 int
11169 main ()
11170 {
11171 iconv_t cd = iconv_open("","");
11172 iconv(cd,NULL,NULL,NULL,NULL);
11173 iconv_close(cd);
11174 ;
11175 return 0;
11176 }
11177 _ACEOF
11178 if ac_fn_cxx_try_link "$LINENO"; then :
11179 am_cv_lib_iconv=yes
11180 am_cv_func_iconv=yes
11181 fi
11182 rm -f core conftest.err conftest.$ac_objext \
11183 conftest$ac_exeext conftest.$ac_ext
11184 CPPFLAGS="$am_save_CPPFLAGS"
11185 LIBS="$am_save_LIBS"
11186 fi
11187
11188 fi
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11190 $as_echo "$am_cv_func_iconv" >&6; }
11191 if test "$am_cv_func_iconv" = yes; then
11192
11193 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11194
11195 fi
11196 if test "$am_cv_lib_iconv" = yes; then
11197
11198 for element in $INCICONV; do
11199 haveit=
11200 for x in $CPPFLAGS; do
11201
11202 acl_save_prefix="$prefix"
11203 prefix="$acl_final_prefix"
11204 acl_save_exec_prefix="$exec_prefix"
11205 exec_prefix="$acl_final_exec_prefix"
11206 eval x=\"$x\"
11207 exec_prefix="$acl_save_exec_prefix"
11208 prefix="$acl_save_prefix"
11209
11210 if test "X$x" = "X$element"; then
11211 haveit=yes
11212 break
11213 fi
11214 done
11215 if test -z "$haveit"; then
11216 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11217 fi
11218 done
11219
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11221 $as_echo_n "checking how to link with libiconv... " >&6; }
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11223 $as_echo "$LIBICONV" >&6; }
11224 else
11225 LIBICONV=
11226 LTLIBICONV=
11227 fi
11228
11229
11230
11231 if test "$am_cv_func_iconv" = yes; then
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11233 $as_echo_n "checking for iconv declaration... " >&6; }
11234 if ${am_cv_proto_iconv+:} false; then :
11235 $as_echo_n "(cached) " >&6
11236 else
11237
11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11240
11241 #include <stdlib.h>
11242 #include <iconv.h>
11243 extern
11244 #ifdef __cplusplus
11245 "C"
11246 #endif
11247 #if defined(__STDC__) || defined(__cplusplus)
11248 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11249 #else
11250 size_t iconv();
11251 #endif
11252
11253 int
11254 main ()
11255 {
11256
11257 ;
11258 return 0;
11259 }
11260 _ACEOF
11261 if ac_fn_cxx_try_compile "$LINENO"; then :
11262 am_cv_proto_iconv_arg1=""
11263 else
11264 am_cv_proto_iconv_arg1="const"
11265 fi
11266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11267 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);"
11268 fi
11269
11270 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11272 }$am_cv_proto_iconv" >&5
11273 $as_echo "${ac_t:-
11274 }$am_cv_proto_iconv" >&6; }
11275
11276 cat >>confdefs.h <<_ACEOF
11277 #define ICONV_CONST $am_cv_proto_iconv_arg1
11278 _ACEOF
11279
11280 fi
11281
11282
11283 # Until we have in-tree GNU iconv:
11284 LIBICONV_DEP=
11285 if test -f "$LTLIBICONV"; then
11286 LIBICONV_DEP=$LTLIBICONV
11287 fi
11288
11289
11290
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11292 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11293 if ${am_cv_val_LC_MESSAGES+:} false; then :
11294 $as_echo_n "(cached) " >&6
11295 else
11296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297 /* end confdefs.h. */
11298 #include <locale.h>
11299 int
11300 main ()
11301 {
11302 return LC_MESSAGES
11303 ;
11304 return 0;
11305 }
11306 _ACEOF
11307 if ac_fn_cxx_try_link "$LINENO"; then :
11308 am_cv_val_LC_MESSAGES=yes
11309 else
11310 am_cv_val_LC_MESSAGES=no
11311 fi
11312 rm -f core conftest.err conftest.$ac_objext \
11313 conftest$ac_exeext conftest.$ac_ext
11314 fi
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11316 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11317 if test $am_cv_val_LC_MESSAGES = yes; then
11318
11319 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11320
11321 fi
11322
11323
11324
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11326 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11327 if ${am_cv_langinfo_codeset+:} false; then :
11328 $as_echo_n "(cached) " >&6
11329 else
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11332 #include <langinfo.h>
11333 int
11334 main ()
11335 {
11336 char* cs = nl_langinfo(CODESET);
11337 ;
11338 return 0;
11339 }
11340 _ACEOF
11341 if ac_fn_cxx_try_link "$LINENO"; then :
11342 am_cv_langinfo_codeset=yes
11343 else
11344 am_cv_langinfo_codeset=no
11345 fi
11346 rm -f core conftest.err conftest.$ac_objext \
11347 conftest$ac_exeext conftest.$ac_ext
11348
11349 fi
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11351 $as_echo "$am_cv_langinfo_codeset" >&6; }
11352 if test $am_cv_langinfo_codeset = yes; then
11353
11354 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11355
11356 fi
11357
11358
11359 # We will need to find libiberty.h and ansidecl.h
11360 saved_CFLAGS="$CFLAGS"
11361 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11362 saved_CXXFLAGS="$CXXFLAGS"
11363 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11364
11365 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11366 # normal autoconf function for these. But force definition of
11367 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11368 # basename handling in libiberty.h.
11369 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11370 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11371 #undef HAVE_DECL_BASENAME
11372 #define HAVE_DECL_BASENAME 1
11373 #include \"ansidecl.h\"
11374 #include \"system.h\"
11375 "
11376 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11377 ac_have_decl=1
11378 else
11379 ac_have_decl=0
11380 fi
11381
11382 cat >>confdefs.h <<_ACEOF
11383 #define HAVE_DECL_BASENAME $ac_have_decl
11384 _ACEOF
11385 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11386 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11387 #undef HAVE_DECL_BASENAME
11388 #define HAVE_DECL_BASENAME 1
11389 #include \"ansidecl.h\"
11390 #include \"system.h\"
11391 "
11392 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11393 ac_have_decl=1
11394 else
11395 ac_have_decl=0
11396 fi
11397
11398 cat >>confdefs.h <<_ACEOF
11399 #define HAVE_DECL_STRSTR $ac_have_decl
11400 _ACEOF
11401
11402
11403 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11404 madvise stpcpy strnlen strsignal strverscmp \
11405 strtol strtoul strtoll strtoull setenv unsetenv \
11406 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11407 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
11408 do
11409 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11411 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11412 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11413 $as_echo_n "(cached) " >&6
11414 else
11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11417 #undef $ac_tr_decl
11418 #define $ac_tr_decl 1
11419
11420 #include "ansidecl.h"
11421 #include "system.h"
11422
11423 int
11424 main ()
11425 {
11426 #ifndef $ac_func
11427 char *(*pfn) = (char *(*)) $ac_func ;
11428 #endif
11429 ;
11430 return 0;
11431 }
11432 _ACEOF
11433 if ac_fn_cxx_try_compile "$LINENO"; then :
11434 eval "gcc_cv_have_decl_$ac_func=yes"
11435 else
11436 eval "gcc_cv_have_decl_$ac_func=no"
11437 fi
11438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11439 fi
11440
11441 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11443 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11444 #define $ac_tr_decl 1
11445 _ACEOF
11446
11447 else
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11449 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11450 #define $ac_tr_decl 0
11451 _ACEOF
11452
11453 fi
11454
11455 done
11456
11457
11458 for ac_func in getrlimit setrlimit getrusage
11459 do
11460 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11462 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11463 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11464 $as_echo_n "(cached) " >&6
11465 else
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11468 #undef $ac_tr_decl
11469 #define $ac_tr_decl 1
11470
11471 #include "ansidecl.h"
11472 #include "system.h"
11473 #ifdef HAVE_SYS_RESOURCE_H
11474 #include <sys/resource.h>
11475 #endif
11476
11477
11478 int
11479 main ()
11480 {
11481 #ifndef $ac_func
11482 char *(*pfn) = (char *(*)) $ac_func ;
11483 #endif
11484 ;
11485 return 0;
11486 }
11487 _ACEOF
11488 if ac_fn_cxx_try_compile "$LINENO"; then :
11489 eval "gcc_cv_have_decl_$ac_func=yes"
11490 else
11491 eval "gcc_cv_have_decl_$ac_func=no"
11492 fi
11493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11494 fi
11495
11496 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11498 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11499 #define $ac_tr_decl 1
11500 _ACEOF
11501
11502 else
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11505 #define $ac_tr_decl 0
11506 _ACEOF
11507
11508 fi
11509
11510 done
11511
11512
11513 for ac_func in mallinfo
11514 do
11515 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11517 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11518 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11519 $as_echo_n "(cached) " >&6
11520 else
11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h. */
11523 #undef $ac_tr_decl
11524 #define $ac_tr_decl 1
11525
11526 #include "ansidecl.h"
11527 #include "system.h"
11528 #ifdef HAVE_MALLOC_H
11529 #include <malloc.h>
11530 #endif
11531
11532
11533 int
11534 main ()
11535 {
11536 #ifndef $ac_func
11537 char *(*pfn) = (char *(*)) $ac_func ;
11538 #endif
11539 ;
11540 return 0;
11541 }
11542 _ACEOF
11543 if ac_fn_cxx_try_compile "$LINENO"; then :
11544 eval "gcc_cv_have_decl_$ac_func=yes"
11545 else
11546 eval "gcc_cv_have_decl_$ac_func=no"
11547 fi
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 fi
11550
11551 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11553 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11554 #define $ac_tr_decl 1
11555 _ACEOF
11556
11557 else
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11560 #define $ac_tr_decl 0
11561 _ACEOF
11562
11563 fi
11564
11565 done
11566
11567
11568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569 /* end confdefs.h. */
11570
11571 #include "ansidecl.h"
11572 #include "system.h"
11573 #ifdef HAVE_SYS_RESOURCE_H
11574 #include <sys/resource.h>
11575 #endif
11576
11577 int
11578 main ()
11579 {
11580 rlim_t l = 0;
11581 ;
11582 return 0;
11583 }
11584 _ACEOF
11585 if ac_fn_cxx_try_compile "$LINENO"; then :
11586
11587 else
11588
11589 $as_echo "#define rlim_t long" >>confdefs.h
11590
11591 fi
11592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11593
11594 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11595 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11596 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11597 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11598 for ac_func in ldgetname
11599 do
11600 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11602 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11603 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11604 $as_echo_n "(cached) " >&6
11605 else
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11608 #undef $ac_tr_decl
11609 #define $ac_tr_decl 1
11610
11611 #include "ansidecl.h"
11612 #include "system.h"
11613 #ifdef HAVE_LDFCN_H
11614 #undef FREAD
11615 #undef FWRITE
11616 #include <ldfcn.h>
11617 #endif
11618
11619
11620 int
11621 main ()
11622 {
11623 #ifndef $ac_func
11624 char *(*pfn) = (char *(*)) $ac_func ;
11625 #endif
11626 ;
11627 return 0;
11628 }
11629 _ACEOF
11630 if ac_fn_cxx_try_compile "$LINENO"; then :
11631 eval "gcc_cv_have_decl_$ac_func=yes"
11632 else
11633 eval "gcc_cv_have_decl_$ac_func=no"
11634 fi
11635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11636 fi
11637
11638 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11640 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11641 #define $ac_tr_decl 1
11642 _ACEOF
11643
11644 else
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11647 #define $ac_tr_decl 0
11648 _ACEOF
11649
11650 fi
11651
11652 done
11653
11654
11655 for ac_func in times
11656 do
11657 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11659 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11660 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11661 $as_echo_n "(cached) " >&6
11662 else
11663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11664 /* end confdefs.h. */
11665 #undef $ac_tr_decl
11666 #define $ac_tr_decl 1
11667
11668 #include "ansidecl.h"
11669 #include "system.h"
11670 #ifdef HAVE_SYS_TIMES_H
11671 #include <sys/times.h>
11672 #endif
11673
11674
11675 int
11676 main ()
11677 {
11678 #ifndef $ac_func
11679 char *(*pfn) = (char *(*)) $ac_func ;
11680 #endif
11681 ;
11682 return 0;
11683 }
11684 _ACEOF
11685 if ac_fn_cxx_try_compile "$LINENO"; then :
11686 eval "gcc_cv_have_decl_$ac_func=yes"
11687 else
11688 eval "gcc_cv_have_decl_$ac_func=no"
11689 fi
11690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11691 fi
11692
11693 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11695 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11696 #define $ac_tr_decl 1
11697 _ACEOF
11698
11699 else
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11702 #define $ac_tr_decl 0
11703 _ACEOF
11704
11705 fi
11706
11707 done
11708
11709
11710 for ac_func in sigaltstack
11711 do
11712 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11714 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11715 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11716 $as_echo_n "(cached) " >&6
11717 else
11718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h. */
11720 #undef $ac_tr_decl
11721 #define $ac_tr_decl 1
11722
11723 #include "ansidecl.h"
11724 #include "system.h"
11725 #include <signal.h>
11726
11727
11728 int
11729 main ()
11730 {
11731 #ifndef $ac_func
11732 char *(*pfn) = (char *(*)) $ac_func ;
11733 #endif
11734 ;
11735 return 0;
11736 }
11737 _ACEOF
11738 if ac_fn_cxx_try_compile "$LINENO"; then :
11739 eval "gcc_cv_have_decl_$ac_func=yes"
11740 else
11741 eval "gcc_cv_have_decl_$ac_func=no"
11742 fi
11743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11744 fi
11745
11746 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11748 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11749 #define $ac_tr_decl 1
11750 _ACEOF
11751
11752 else
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11755 #define $ac_tr_decl 0
11756 _ACEOF
11757
11758 fi
11759
11760 done
11761
11762
11763 # More time-related stuff.
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11765 $as_echo_n "checking for struct tms... " >&6; }
11766 if ${ac_cv_struct_tms+:} false; then :
11767 $as_echo_n "(cached) " >&6
11768 else
11769
11770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11771 /* end confdefs.h. */
11772
11773 #include "ansidecl.h"
11774 #include "system.h"
11775 #ifdef HAVE_SYS_TIMES_H
11776 #include <sys/times.h>
11777 #endif
11778
11779 int
11780 main ()
11781 {
11782 struct tms tms;
11783 ;
11784 return 0;
11785 }
11786 _ACEOF
11787 if ac_fn_cxx_try_compile "$LINENO"; then :
11788 ac_cv_struct_tms=yes
11789 else
11790 ac_cv_struct_tms=no
11791 fi
11792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11793 fi
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11795 $as_echo "$ac_cv_struct_tms" >&6; }
11796 if test $ac_cv_struct_tms = yes; then
11797
11798 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11799
11800 fi
11801
11802 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11803 # revisit after autoconf 2.50.
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11805 $as_echo_n "checking for clock_t... " >&6; }
11806 if ${gcc_cv_type_clock_t+:} false; then :
11807 $as_echo_n "(cached) " >&6
11808 else
11809
11810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11811 /* end confdefs.h. */
11812
11813 #include "ansidecl.h"
11814 #include "system.h"
11815
11816 int
11817 main ()
11818 {
11819 clock_t x;
11820 ;
11821 return 0;
11822 }
11823 _ACEOF
11824 if ac_fn_cxx_try_compile "$LINENO"; then :
11825 gcc_cv_type_clock_t=yes
11826 else
11827 gcc_cv_type_clock_t=no
11828 fi
11829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11830 fi
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11832 $as_echo "$gcc_cv_type_clock_t" >&6; }
11833 if test $gcc_cv_type_clock_t = yes; then
11834
11835 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11836
11837 fi
11838
11839 # Check if F_SETLKW is supported by fcntl.
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11841 $as_echo_n "checking for F_SETLKW... " >&6; }
11842 if ${ac_cv_f_setlkw+:} false; then :
11843 $as_echo_n "(cached) " >&6
11844 else
11845
11846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h. */
11848
11849 #include <fcntl.h>
11850 int
11851 main ()
11852 {
11853
11854 struct flock fl;
11855 fl.l_whence = 0;
11856 fl.l_start = 0;
11857 fl.l_len = 0;
11858 fl.l_pid = 0;
11859 return fcntl (1, F_SETLKW, &fl);
11860 ;
11861 return 0;
11862 }
11863 _ACEOF
11864 if ac_fn_cxx_try_compile "$LINENO"; then :
11865 ac_cv_f_setlkw=yes
11866 else
11867 ac_cv_f_setlkw=no
11868 fi
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870 fi
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11872 $as_echo "$ac_cv_f_setlkw" >&6; }
11873 if test $ac_cv_f_setlkw = yes; then
11874
11875 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11876
11877 fi
11878
11879 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11880 CFLAGS="$saved_CFLAGS"
11881 CXXFLAGS="$saved_CXXFLAGS"
11882
11883 # mkdir takes a single argument on some systems.
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11885 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11886 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h. */
11891
11892 #include <sys/types.h>
11893 #ifdef HAVE_SYS_STAT_H
11894 # include <sys/stat.h>
11895 #endif
11896 #ifdef HAVE_UNISTD_H
11897 # include <unistd.h>
11898 #endif
11899 #ifdef HAVE_DIRECT_H
11900 # include <direct.h>
11901 #endif
11902 int
11903 main ()
11904 {
11905 mkdir ("foo", 0);
11906 ;
11907 return 0;
11908 }
11909 _ACEOF
11910 if ac_fn_cxx_try_compile "$LINENO"; then :
11911 gcc_cv_mkdir_takes_one_arg=no
11912 else
11913 gcc_cv_mkdir_takes_one_arg=yes
11914 fi
11915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11916 fi
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11918 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11919 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11920
11921 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11922
11923 fi
11924
11925
11926 # File extensions
11927 manext='.1'
11928 objext='.o'
11929
11930
11931
11932 # With Setjmp/Longjmp based exception handling.
11933 # Check whether --enable-sjlj-exceptions was given.
11934 if test "${enable_sjlj_exceptions+set}" = set; then :
11935 enableval=$enable_sjlj_exceptions; case $target in
11936 *-*-hpux10*)
11937 if test $enableval != yes; then
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11939 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11940 enableval=yes
11941 fi
11942 ;;
11943 esac
11944 force_sjlj_exceptions=yes
11945 else
11946 case $target in
11947 *-*-hpux10*)
11948 force_sjlj_exceptions=yes
11949 enableval=yes
11950 ;;
11951 lm32*-*-*)
11952 force_sjlj_exceptions=yes
11953 enableval=yes
11954 ;;
11955 *)
11956 force_sjlj_exceptions=no
11957 ;;
11958 esac
11959 fi
11960
11961 if test $force_sjlj_exceptions = yes; then
11962 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11963
11964 cat >>confdefs.h <<_ACEOF
11965 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11966 _ACEOF
11967
11968 fi
11969
11970 # --------------------------------------------------------
11971 # Build, host, and target specific configuration fragments
11972 # --------------------------------------------------------
11973
11974 # Collect build-machine-specific information.
11975 . ${srcdir}/config.build || exit 1
11976
11977 # Collect host-machine-specific information.
11978 . ${srcdir}/config.host || exit 1
11979
11980 target_gtfiles=
11981
11982 # Collect target-machine-specific information.
11983 . ${srcdir}/config.gcc || exit 1
11984
11985 extra_objs="${host_extra_objs} ${extra_objs}"
11986 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11987
11988 # Default the target-machine variables that were not explicitly set.
11989 if test x"$tm_file" = x
11990 then tm_file=$cpu_type/$cpu_type.h; fi
11991
11992 if test x"$extra_headers" = x
11993 then extra_headers=; fi
11994
11995 if test x$md_file = x
11996 then md_file=$cpu_type/$cpu_type.md; fi
11997
11998 if test x$out_file = x
11999 then out_file=$cpu_type/$cpu_type.c; fi
12000
12001 if test x"$tmake_file" = x
12002 then tmake_file=$cpu_type/t-$cpu_type
12003 fi
12004
12005 # Support --enable-initfini-array.
12006 if test x$enable_initfini_array != xno; then
12007 tm_file="${tm_file} initfini-array.h"
12008 fi
12009
12010 if test x"$dwarf2" = xyes
12011 then tm_file="$tm_file tm-dwarf2.h"
12012 fi
12013
12014 # Say what files are being used for the output code and MD file.
12015 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12016 echo "Using \`$srcdir/config/$md_file' as machine description file."
12017
12018 # If any of the xm_file variables contain nonexistent files, warn
12019 # about them and drop them.
12020
12021 bx=
12022 for x in $build_xm_file; do
12023 if test -f $srcdir/config/$x
12024 then bx="$bx $x"
12025 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12026 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12027 fi
12028 done
12029 build_xm_file="$bx"
12030
12031 hx=
12032 for x in $host_xm_file; do
12033 if test -f $srcdir/config/$x
12034 then hx="$hx $x"
12035 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12036 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12037 fi
12038 done
12039 host_xm_file="$hx"
12040
12041 tx=
12042 for x in $xm_file; do
12043 if test -f $srcdir/config/$x
12044 then tx="$tx $x"
12045 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12046 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12047 fi
12048 done
12049 xm_file="$tx"
12050
12051 count=a
12052 for f in $tm_file; do
12053 count=${count}x
12054 done
12055 if test $count = ax; then
12056 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12057 else
12058 echo "Using the following target machine macro files:"
12059 for f in $tm_file; do
12060 echo " $srcdir/config/$f"
12061 done
12062 fi
12063
12064 if test x$use_long_long_for_widest_fast_int = xyes; then
12065
12066 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12067
12068 fi
12069
12070 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12071
12072 cat >>confdefs.h <<_ACEOF
12073 #define HAVE_GNU_LD $gnu_ld_bool
12074 _ACEOF
12075
12076
12077 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12078
12079 cat >>confdefs.h <<_ACEOF
12080 #define HAVE_GNU_AS $gnu_as_bool
12081 _ACEOF
12082
12083
12084 count=a
12085 for f in $host_xm_file; do
12086 count=${count}x
12087 done
12088 if test $count = a; then
12089 :
12090 elif test $count = ax; then
12091 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12092 else
12093 echo "Using the following host machine macro files:"
12094 for f in $host_xm_file; do
12095 echo " $srcdir/config/$f"
12096 done
12097 fi
12098 echo "Using ${out_host_hook_obj} for host machine hooks."
12099
12100 if test "$host_xm_file" != "$build_xm_file"; then
12101 count=a
12102 for f in $build_xm_file; do
12103 count=${count}x
12104 done
12105 if test $count = a; then
12106 :
12107 elif test $count = ax; then
12108 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12109 else
12110 echo "Using the following build machine macro files:"
12111 for f in $build_xm_file; do
12112 echo " $srcdir/config/$f"
12113 done
12114 fi
12115 fi
12116
12117 if test -n "$configured_native_system_header_dir"; then
12118 native_system_header_dir=$configured_native_system_header_dir
12119 fi
12120 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12121
12122
12123 case ${host} in
12124 powerpc*-*-darwin*)
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12126 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12127 if ${gcc_cv_mcontext_underscores+:} false; then :
12128 $as_echo_n "(cached) " >&6
12129 else
12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12131 /* end confdefs.h. */
12132
12133 #include <sys/cdefs.h>
12134 #include <sys/signal.h>
12135 #include <ucontext.h>
12136 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12137
12138 _ACEOF
12139 if ac_fn_cxx_try_compile "$LINENO"; then :
12140 gcc_cv_mcontext_underscores=no
12141 else
12142 gcc_cv_mcontext_underscores=yes
12143 fi
12144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12145 fi
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12147 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12148 if test $gcc_cv_mcontext_underscores = yes; then
12149
12150 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12151
12152 fi
12153 ;;
12154 esac
12155
12156 # ---------
12157 # Threading
12158 # ---------
12159
12160 # Check if a valid thread package
12161 case ${enable_threads} in
12162 "" | no)
12163 # No threads
12164 target_thread_file='single'
12165 ;;
12166 yes)
12167 # default
12168 target_thread_file='single'
12169 ;;
12170 aix | dce | lynx | mipssde | posix | rtems | \
12171 single | tpf | vxworks | win32)
12172 target_thread_file=${enable_threads}
12173 ;;
12174 *)
12175 echo "${enable_threads} is an unknown thread package" 1>&2
12176 exit 1
12177 ;;
12178 esac
12179
12180 if test x${thread_file} = x; then
12181 # No thread file set by target-specific clauses in config.gcc,
12182 # so use file chosen by default logic above
12183 thread_file=${target_thread_file}
12184 fi
12185
12186 # --------
12187 # UNSORTED
12188 # --------
12189
12190 use_cxa_atexit=no
12191 if test x$enable___cxa_atexit = xyes || \
12192 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12193 if test x$host = x$target; then
12194 case $host in
12195 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12196 # keyed to flag_use_cxa_atexit
12197 *-*-mingw32*)
12198 use_cxa_atexit=yes
12199 ;;
12200 powerpc-ibm-aix*)
12201 use_cxa_atexit=yes
12202 ;;
12203 *)
12204 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12205 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12206 use_cxa_atexit=yes
12207 else
12208 echo "__cxa_atexit can't be enabled on this target"
12209 fi
12210
12211 ;;
12212 esac
12213 else
12214 # We can't check for __cxa_atexit when building a cross, so assume
12215 # it is available
12216 use_cxa_atexit=yes
12217 fi
12218 if test x$use_cxa_atexit = xyes; then
12219
12220 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12221
12222 fi
12223 fi
12224
12225 # Look for a file containing extra machine modes.
12226 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12227 extra_modes_file='$(srcdir)'/config/${extra_modes}
12228
12229
12230 cat >>confdefs.h <<_ACEOF
12231 #define EXTRA_MODES_FILE "config/$extra_modes"
12232 _ACEOF
12233
12234 fi
12235
12236 # Convert extra_options into a form suitable for Makefile use.
12237 extra_opt_files=
12238 all_opt_files=
12239 for f in $extra_options; do
12240 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12241 all_opt_files="$all_opt_files $srcdir/config/$f"
12242 done
12243
12244
12245 # auto-host.h is the file containing items generated by autoconf and is
12246 # the first file included by config.h.
12247 # If host=build, it is correct to have bconfig include auto-host.h
12248 # as well. If host!=build, we are in error and need to do more
12249 # work to find out the build config parameters.
12250 if test x$host = x$build
12251 then
12252 build_auto=auto-host.h
12253 HAVE_AUTO_BUILD='# '
12254 else
12255 # We create a subdir, then run autoconf in the subdir.
12256 # To prevent recursion we set host and build for the new
12257 # invocation of configure to the build for this invocation
12258 # of configure.
12259 tempdir=build.$$
12260 rm -rf $tempdir
12261 mkdir $tempdir
12262 cd $tempdir
12263 case ${srcdir} in
12264 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12265 *) realsrcdir=../${srcdir};;
12266 esac
12267 # Clearing GMPINC is necessary to prevent host headers being
12268 # used by the build compiler. Defining GENERATOR_FILE stops
12269 # system.h from including gmp.h.
12270 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12271 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12272 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12273 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
12274 ${realsrcdir}/configure \
12275 --enable-languages=${enable_languages-all} \
12276 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12277 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12278 --target=$target_alias --host=$build_alias \
12279 --build=$build_alias || exit # retaining $tempdir
12280
12281 # We just finished tests for the build machine, so rename
12282 # the file auto-build.h in the gcc directory.
12283 mv auto-host.h ../auto-build.h
12284 cd ..
12285 rm -rf $tempdir
12286 build_auto=auto-build.h
12287 HAVE_AUTO_BUILD=
12288 fi
12289
12290
12291
12292 tm_file="${tm_file} defaults.h"
12293 tm_p_file="${tm_p_file} tm-preds.h"
12294 tm_d_file="${tm_d_file} defaults.h"
12295 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12296 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12297 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12298 # put this back in temporarily.
12299 xm_file="auto-host.h ansidecl.h ${xm_file}"
12300
12301 # --------
12302 # UNSORTED
12303 # --------
12304
12305 # Compile in configure arguments.
12306 if test -f configargs.h ; then
12307 # Being re-configured.
12308 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12309 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12310 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12311 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12312 fi
12313 else
12314 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12315 fi
12316
12317 # Double all backslashes and backslash all quotes to turn
12318 # gcc_config_arguments into a C string.
12319 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12320 $gcc_config_arguments
12321 EOF
12322 gcc_config_arguments_str=`cat conftest.out`
12323 rm -f conftest.out
12324
12325 cat > configargs.h <<EOF
12326 /* Generated automatically. */
12327 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12328 static const char thread_model[] = "$thread_file";
12329
12330 static const struct {
12331 const char *name, *value;
12332 } configure_default_options[] = $configure_default_options;
12333 EOF
12334
12335 gcc_BASEVER=`cat $srcdir/BASE-VER`
12336 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12337 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12338 if test -f $srcdir/REVISION ; then
12339 gcc_REVISION=`cat $srcdir/REVISION`
12340 else
12341 gcc_REVISION=""
12342 fi
12343 cat > plugin-version.h <<EOF
12344 #include "configargs.h"
12345
12346 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12347 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12348 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12349 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12350
12351 static char basever[] = "$gcc_BASEVER";
12352 static char datestamp[] = "$gcc_DATESTAMP";
12353 static char devphase[] = "$gcc_DEVPHASE";
12354 static char revision[] = "$gcc_REVISION";
12355
12356 /* FIXME plugins: We should make the version information more precise.
12357 One way to do is to add a checksum. */
12358
12359 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12360 devphase, revision,
12361 configuration_arguments};
12362 EOF
12363
12364 # Determine what GCC version number to use in filesystem paths.
12365
12366 get_gcc_base_ver="cat"
12367
12368 # Check whether --with-gcc-major-version-only was given.
12369 if test "${with_gcc_major_version_only+set}" = set; then :
12370 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12371 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12372 fi
12373
12374 fi
12375
12376
12377
12378
12379 # Internationalization
12380 # If we haven't got the data from the intl directory,
12381 # assume NLS is disabled.
12382 USE_NLS=no
12383 LIBINTL=
12384 LIBINTL_DEP=
12385 INCINTL=
12386 XGETTEXT=
12387 GMSGFMT=
12388 POSUB=
12389
12390 if test -f ../intl/config.intl; then
12391 . ../intl/config.intl
12392 fi
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12394 $as_echo_n "checking whether NLS is requested... " >&6; }
12395 if test x"$USE_NLS" != xyes; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12398 else
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12400 $as_echo "yes" >&6; }
12401
12402 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12403
12404
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12406 $as_echo_n "checking for catalogs to be installed... " >&6; }
12407 # Look for .po and .gmo files in the source directory.
12408 CATALOGS=
12409 XLINGUAS=
12410 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12411 # If there aren't any .gmo files the shell will give us the
12412 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12413 # weeded out.
12414 case "$cat" in *\**)
12415 continue;;
12416 esac
12417 # The quadruple backslash is collapsed to a double backslash
12418 # by the backticks, then collapsed again by the double quotes,
12419 # leaving us with one backslash in the sed expression (right
12420 # before the dot that mustn't act as a wildcard).
12421 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12422 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12423 # The user is allowed to set LINGUAS to a list of languages to
12424 # install catalogs for. If it's empty that means "all of them."
12425 if test "x$LINGUAS" = x; then
12426 CATALOGS="$CATALOGS $cat"
12427 XLINGUAS="$XLINGUAS $lang"
12428 else
12429 case "$LINGUAS" in *$lang*)
12430 CATALOGS="$CATALOGS $cat"
12431 XLINGUAS="$XLINGUAS $lang"
12432 ;;
12433 esac
12434 fi
12435 done
12436 LINGUAS="$XLINGUAS"
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12438 $as_echo "$LINGUAS" >&6; }
12439
12440
12441 DATADIRNAME=share
12442
12443 INSTOBJEXT=.mo
12444
12445 GENCAT=gencat
12446
12447 CATOBJEXT=.gmo
12448
12449 fi
12450
12451 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12452 # -liconv on the link line twice.
12453 case "$LIBINTL" in *$LIBICONV*)
12454 LIBICONV= ;;
12455 esac
12456
12457 # Check whether --enable-secureplt was given.
12458 if test "${enable_secureplt+set}" = set; then :
12459 enableval=$enable_secureplt;
12460 fi
12461
12462
12463 # Check whether --enable-mingw-wildcard was given.
12464 if test "${enable_mingw_wildcard+set}" = set; then :
12465 enableval=$enable_mingw_wildcard;
12466 else
12467 enable_mingw_wildcard=platform
12468 fi
12469
12470 if test x"$enable_mingw_wildcard" != xplatform ; then :
12471
12472 cat >>confdefs.h <<_ACEOF
12473 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12474 _ACEOF
12475
12476 fi
12477
12478 # Check whether --enable-large-address-aware was given.
12479 if test "${enable_large_address_aware+set}" = set; then :
12480 enableval=$enable_large_address_aware;
12481 fi
12482
12483 if test x"$enable_large_address_aware" = xyes; then :
12484
12485 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12486
12487 fi
12488
12489 # Check whether --enable-leading-mingw64-underscores was given.
12490 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12491 enableval=$enable_leading_mingw64_underscores;
12492 fi
12493
12494 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12495
12496 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12497
12498 fi
12499
12500 # Check whether --enable-cld was given.
12501 if test "${enable_cld+set}" = set; then :
12502 enableval=$enable_cld;
12503 else
12504 enable_cld=no
12505 fi
12506
12507
12508 # Check whether --enable-frame-pointer was given.
12509 if test "${enable_frame_pointer+set}" = set; then :
12510 enableval=$enable_frame_pointer;
12511 else
12512
12513 case $target_os in
12514 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
12515 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12516 enable_frame_pointer=no
12517 ;;
12518 *)
12519 enable_frame_pointer=yes
12520 ;;
12521 esac
12522
12523 fi
12524
12525
12526 case $target in
12527 i[34567]86-*-* | x86_64-*-*)
12528 if test "x$enable_cld" = xyes; then
12529 tm_defines="${tm_defines} USE_IX86_CLD=1"
12530 fi
12531 if test "x$enable_frame_pointer" = xyes; then
12532 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
12533 fi
12534 ;;
12535 esac
12536
12537 # Windows32 Registry support for specifying GCC installation paths.
12538 # Check whether --enable-win32-registry was given.
12539 if test "${enable_win32_registry+set}" = set; then :
12540 enableval=$enable_win32_registry;
12541 fi
12542
12543
12544 case $host_os in
12545 win32 | pe | cygwin* | mingw32*)
12546 if test "x$enable_win32_registry" != xno; then
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12548 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12549 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12550 $as_echo_n "(cached) " >&6
12551 else
12552 ac_func_search_save_LIBS=$LIBS
12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12555
12556 /* Override any GCC internal prototype to avoid an error.
12557 Use char because int might match the return type of a GCC
12558 builtin and then its argument prototype would still apply. */
12559 #ifdef __cplusplus
12560 extern "C"
12561 #endif
12562 char RegOpenKeyExA ();
12563 int
12564 main ()
12565 {
12566 return RegOpenKeyExA ();
12567 ;
12568 return 0;
12569 }
12570 _ACEOF
12571 for ac_lib in '' advapi32; do
12572 if test -z "$ac_lib"; then
12573 ac_res="none required"
12574 else
12575 ac_res=-l$ac_lib
12576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12577 fi
12578 if ac_fn_cxx_try_link "$LINENO"; then :
12579 ac_cv_search_RegOpenKeyExA=$ac_res
12580 fi
12581 rm -f core conftest.err conftest.$ac_objext \
12582 conftest$ac_exeext
12583 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12584 break
12585 fi
12586 done
12587 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12588
12589 else
12590 ac_cv_search_RegOpenKeyExA=no
12591 fi
12592 rm conftest.$ac_ext
12593 LIBS=$ac_func_search_save_LIBS
12594 fi
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12596 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12597 ac_res=$ac_cv_search_RegOpenKeyExA
12598 if test "$ac_res" != no; then :
12599 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12600
12601 else
12602 enable_win32_registry=no
12603 fi
12604
12605 fi
12606
12607 if test "x$enable_win32_registry" != xno; then
12608
12609 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12610
12611
12612 if test "x$enable_win32_registry" != xyes \
12613 && test "x$enable_win32_registry" != x; then
12614
12615 cat >>confdefs.h <<_ACEOF
12616 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12617 _ACEOF
12618
12619 fi
12620 fi
12621 ;;
12622 esac
12623
12624 # Get an absolute path to the GCC top-level source directory
12625 holddir=`${PWDCMD-pwd}`
12626 cd $srcdir
12627 topdir=`${PWDCMD-pwd}`
12628 cd $holddir
12629
12630 # Conditionalize the makefile for this host machine.
12631 xmake_file=
12632 for f in ${host_xmake_file}
12633 do
12634 if test -f ${srcdir}/config/$f
12635 then
12636 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12637 fi
12638 done
12639
12640 # Conditionalize the makefile for this target machine.
12641 tmake_file_=
12642 for f in ${tmake_file}
12643 do
12644 if test -f ${srcdir}/config/$f
12645 then
12646 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12647 fi
12648 done
12649 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
12650
12651 out_object_file=`basename $out_file .c`.o
12652 common_out_object_file=`basename $common_out_file .c`.o
12653
12654 tm_file_list="options.h"
12655 tm_include_list="options.h insn-constants.h"
12656 for f in $tm_file; do
12657 case $f in
12658 ./* )
12659 f=`echo $f | sed 's/^..//'`
12660 tm_file_list="${tm_file_list} $f"
12661 tm_include_list="${tm_include_list} $f"
12662 ;;
12663 defaults.h )
12664 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12665 tm_include_list="${tm_include_list} $f"
12666 ;;
12667 * )
12668 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12669 tm_include_list="${tm_include_list} config/$f"
12670 ;;
12671 esac
12672 done
12673
12674 tm_p_file_list=
12675 tm_p_include_list=
12676 for f in $tm_p_file; do
12677 case $f in
12678 tm-preds.h )
12679 tm_p_file_list="${tm_p_file_list} $f"
12680 tm_p_include_list="${tm_p_include_list} $f"
12681 ;;
12682 * )
12683 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12684 tm_p_include_list="${tm_p_include_list} config/$f"
12685 esac
12686 done
12687
12688 tm_d_file_list=
12689 tm_d_include_list="options.h insn-constants.h"
12690 for f in $tm_d_file; do
12691 case $f in
12692 defaults.h )
12693 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12694 tm_d_include_list="${tm_d_include_list} $f"
12695 ;;
12696 * )
12697 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12698 tm_d_include_list="${tm_d_include_list} config/$f"
12699 ;;
12700 esac
12701 done
12702
12703 xm_file_list=
12704 xm_include_list=
12705 for f in $xm_file; do
12706 case $f in
12707 ansidecl.h )
12708 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12709 xm_include_list="${xm_include_list} $f"
12710 ;;
12711 auto-host.h )
12712 xm_file_list="${xm_file_list} $f"
12713 xm_include_list="${xm_include_list} $f"
12714 ;;
12715 * )
12716 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12717 xm_include_list="${xm_include_list} config/$f"
12718 ;;
12719 esac
12720 done
12721
12722 host_xm_file_list=
12723 host_xm_include_list=
12724 for f in $host_xm_file; do
12725 case $f in
12726 ansidecl.h )
12727 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12728 host_xm_include_list="${host_xm_include_list} $f"
12729 ;;
12730 auto-host.h )
12731 host_xm_file_list="${host_xm_file_list} $f"
12732 host_xm_include_list="${host_xm_include_list} $f"
12733 ;;
12734 * )
12735 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12736 host_xm_include_list="${host_xm_include_list} config/$f"
12737 ;;
12738 esac
12739 done
12740
12741 build_xm_file_list=
12742 for f in $build_xm_file; do
12743 case $f in
12744 ansidecl.h )
12745 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12746 build_xm_include_list="${build_xm_include_list} $f"
12747 ;;
12748 auto-build.h | auto-host.h )
12749 build_xm_file_list="${build_xm_file_list} $f"
12750 build_xm_include_list="${build_xm_include_list} $f"
12751 ;;
12752 * )
12753 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12754 build_xm_include_list="${build_xm_include_list} config/$f"
12755 ;;
12756 esac
12757 done
12758
12759 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12760 # cross-compiler which does not use the native headers and libraries.
12761 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12762 CROSS=
12763 ALL=all.internal
12764 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12765 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12766
12767 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12768 test x$build != x$host || test "x$with_build_sysroot" != x; then
12769 if test "x$with_build_sysroot" != x; then
12770 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12771 else
12772 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12773 fi
12774
12775 if test x$host != x$target
12776 then
12777 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12778 ALL=all.cross
12779 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12780 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12781 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12782 fi
12783
12784 if test "x$with_build_sysroot" != "x"; then
12785 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12786 elif test "x$with_sysroot" = x; then
12787 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12788 elif test "x$with_sysroot" = xyes; then
12789 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12790 else
12791 target_header_dir="${with_sysroot}${native_system_header_dir}"
12792 fi
12793 else
12794 target_header_dir=${native_system_header_dir}
12795 fi
12796
12797 # If this is a cross-compiler that does not
12798 # have its own set of headers then define
12799 # inhibit_libc
12800
12801 # If this is using newlib, without having the headers available now,
12802 # then define inhibit_libc in LIBGCC2_CFLAGS.
12803 # This prevents libgcc2 from containing any code which requires libc
12804 # support.
12805 : ${inhibit_libc=false}
12806 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12807 test x$with_newlib = xyes ; } &&
12808 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12809 inhibit_libc=true
12810 fi
12811
12812
12813 # When building gcc with a cross-compiler, we need to adjust things so
12814 # that the generator programs are still built with the native compiler.
12815 # Also, we cannot run fixincludes.
12816
12817 # These are the normal (build=host) settings:
12818 CC_FOR_BUILD='$(CC)'
12819 CXX_FOR_BUILD='$(CXX)'
12820 BUILD_CFLAGS='$(ALL_CFLAGS)'
12821 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12822 BUILD_LDFLAGS='$(LDFLAGS)'
12823 STMP_FIXINC=stmp-fixinc
12824
12825 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12826 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12827
12828 # And these apply if build != host, or we are generating coverage data
12829 if test x$build != x$host || test "x$coverage_flags" != x
12830 then
12831 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12832 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12833 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12834
12835 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12836 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12837 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12838 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12839 fi
12840
12841
12842
12843 # Expand extra_headers to include complete path.
12844 # This substitutes for lots of t-* files.
12845 extra_headers_list=
12846 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12847 for file in ${extra_headers} ; do
12848 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12849 done
12850
12851 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12852 if test x"$use_gcc_tgmath" = xyes
12853 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12854 fi
12855
12856 # Define collect2 in Makefile.
12857 case $host_can_use_collect2 in
12858 no) collect2= ;;
12859 *) collect2='collect2$(exeext)' ;;
12860 esac
12861
12862
12863 # Add a definition of USE_COLLECT2 if system wants one.
12864 case $use_collect2 in
12865 no) use_collect2= ;;
12866 "") ;;
12867 *)
12868 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12869 xm_defines="${xm_defines} USE_COLLECT2"
12870 case $host_can_use_collect2 in
12871 no)
12872 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12873 ;;
12874 esac
12875 ;;
12876 esac
12877
12878
12879 cat >>confdefs.h <<_ACEOF
12880 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12881 _ACEOF
12882
12883
12884 # ---------------------------
12885 # Assembler & linker features
12886 # ---------------------------
12887
12888 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12889 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12890 # However when ld-new is first executed from the build tree, libtool will
12891 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12892 # to the build tree. While doing this we need to use the previous-stage
12893 # linker, or we have an infinite loop. The presence of a shell script as
12894 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12895 # the gcc/collect-ld script. So we need to know how libtool works, or
12896 # exec-tool will fail.
12897
12898
12899 case `pwd` in
12900 *\ * | *\ *)
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12902 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12903 esac
12904
12905
12906
12907 macro_version='2.2.7a'
12908 macro_revision='1.3134'
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922 ltmain="$ac_aux_dir/ltmain.sh"
12923
12924 # Backslashify metacharacters that are still active within
12925 # double-quoted strings.
12926 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12927
12928 # Same as above, but do not quote variable references.
12929 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12930
12931 # Sed substitution to delay expansion of an escaped shell variable in a
12932 # double_quote_subst'ed string.
12933 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12934
12935 # Sed substitution to delay expansion of an escaped single quote.
12936 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12937
12938 # Sed substitution to avoid accidental globbing in evaled expressions
12939 no_glob_subst='s/\*/\\\*/g'
12940
12941 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12942 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12943 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12944
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12946 $as_echo_n "checking how to print strings... " >&6; }
12947 # Test print first, because it will be a builtin if present.
12948 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12949 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12950 ECHO='print -r --'
12951 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12952 ECHO='printf %s\n'
12953 else
12954 # Use this function as a fallback that always works.
12955 func_fallback_echo ()
12956 {
12957 eval 'cat <<_LTECHO_EOF
12958 $1
12959 _LTECHO_EOF'
12960 }
12961 ECHO='func_fallback_echo'
12962 fi
12963
12964 # func_echo_all arg...
12965 # Invoke $ECHO with all args, space-separated.
12966 func_echo_all ()
12967 {
12968 $ECHO ""
12969 }
12970
12971 case "$ECHO" in
12972 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12973 $as_echo "printf" >&6; } ;;
12974 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12975 $as_echo "print -r" >&6; } ;;
12976 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12977 $as_echo "cat" >&6; } ;;
12978 esac
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12994 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12995 if ${ac_cv_path_SED+:} false; then :
12996 $as_echo_n "(cached) " >&6
12997 else
12998 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12999 for ac_i in 1 2 3 4 5 6 7; do
13000 ac_script="$ac_script$as_nl$ac_script"
13001 done
13002 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13003 { ac_script=; unset ac_script;}
13004 if test -z "$SED"; then
13005 ac_path_SED_found=false
13006 # Loop through the user's path and test for each of PROGNAME-LIST
13007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008 for as_dir in $PATH
13009 do
13010 IFS=$as_save_IFS
13011 test -z "$as_dir" && as_dir=.
13012 for ac_prog in sed gsed; do
13013 for ac_exec_ext in '' $ac_executable_extensions; do
13014 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13015 as_fn_executable_p "$ac_path_SED" || continue
13016 # Check for GNU ac_path_SED and select it if it is found.
13017 # Check for GNU $ac_path_SED
13018 case `"$ac_path_SED" --version 2>&1` in
13019 *GNU*)
13020 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13021 *)
13022 ac_count=0
13023 $as_echo_n 0123456789 >"conftest.in"
13024 while :
13025 do
13026 cat "conftest.in" "conftest.in" >"conftest.tmp"
13027 mv "conftest.tmp" "conftest.in"
13028 cp "conftest.in" "conftest.nl"
13029 $as_echo '' >> "conftest.nl"
13030 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13032 as_fn_arith $ac_count + 1 && ac_count=$as_val
13033 if test $ac_count -gt ${ac_path_SED_max-0}; then
13034 # Best one so far, save it but keep looking for a better one
13035 ac_cv_path_SED="$ac_path_SED"
13036 ac_path_SED_max=$ac_count
13037 fi
13038 # 10*(2^10) chars as input seems more than enough
13039 test $ac_count -gt 10 && break
13040 done
13041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13042 esac
13043
13044 $ac_path_SED_found && break 3
13045 done
13046 done
13047 done
13048 IFS=$as_save_IFS
13049 if test -z "$ac_cv_path_SED"; then
13050 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13051 fi
13052 else
13053 ac_cv_path_SED=$SED
13054 fi
13055
13056 fi
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13058 $as_echo "$ac_cv_path_SED" >&6; }
13059 SED="$ac_cv_path_SED"
13060 rm -f conftest.sed
13061
13062 test -z "$SED" && SED=sed
13063 Xsed="$SED -e 1s/^X//"
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13076 $as_echo_n "checking for fgrep... " >&6; }
13077 if ${ac_cv_path_FGREP+:} false; then :
13078 $as_echo_n "(cached) " >&6
13079 else
13080 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13081 then ac_cv_path_FGREP="$GREP -F"
13082 else
13083 if test -z "$FGREP"; then
13084 ac_path_FGREP_found=false
13085 # Loop through the user's path and test for each of PROGNAME-LIST
13086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13088 do
13089 IFS=$as_save_IFS
13090 test -z "$as_dir" && as_dir=.
13091 for ac_prog in fgrep; do
13092 for ac_exec_ext in '' $ac_executable_extensions; do
13093 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13094 as_fn_executable_p "$ac_path_FGREP" || continue
13095 # Check for GNU ac_path_FGREP and select it if it is found.
13096 # Check for GNU $ac_path_FGREP
13097 case `"$ac_path_FGREP" --version 2>&1` in
13098 *GNU*)
13099 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13100 *)
13101 ac_count=0
13102 $as_echo_n 0123456789 >"conftest.in"
13103 while :
13104 do
13105 cat "conftest.in" "conftest.in" >"conftest.tmp"
13106 mv "conftest.tmp" "conftest.in"
13107 cp "conftest.in" "conftest.nl"
13108 $as_echo 'FGREP' >> "conftest.nl"
13109 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13110 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13111 as_fn_arith $ac_count + 1 && ac_count=$as_val
13112 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13113 # Best one so far, save it but keep looking for a better one
13114 ac_cv_path_FGREP="$ac_path_FGREP"
13115 ac_path_FGREP_max=$ac_count
13116 fi
13117 # 10*(2^10) chars as input seems more than enough
13118 test $ac_count -gt 10 && break
13119 done
13120 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13121 esac
13122
13123 $ac_path_FGREP_found && break 3
13124 done
13125 done
13126 done
13127 IFS=$as_save_IFS
13128 if test -z "$ac_cv_path_FGREP"; then
13129 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13130 fi
13131 else
13132 ac_cv_path_FGREP=$FGREP
13133 fi
13134
13135 fi
13136 fi
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13138 $as_echo "$ac_cv_path_FGREP" >&6; }
13139 FGREP="$ac_cv_path_FGREP"
13140
13141
13142 test -z "$GREP" && GREP=grep
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162 # Check whether --with-gnu-ld was given.
13163 if test "${with_gnu_ld+set}" = set; then :
13164 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13165 else
13166 with_gnu_ld=no
13167 fi
13168
13169 ac_prog=ld
13170 if test "$GCC" = yes; then
13171 # Check if gcc -print-prog-name=ld gives a path.
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13173 $as_echo_n "checking for ld used by $CC... " >&6; }
13174 case $host in
13175 *-*-mingw*)
13176 # gcc leaves a trailing carriage return which upsets mingw
13177 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13178 *)
13179 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13180 esac
13181 case $ac_prog in
13182 # Accept absolute paths.
13183 [\\/]* | ?:[\\/]*)
13184 re_direlt='/[^/][^/]*/\.\./'
13185 # Canonicalize the pathname of ld
13186 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13187 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13188 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13189 done
13190 test -z "$LD" && LD="$ac_prog"
13191 ;;
13192 "")
13193 # If it fails, then pretend we aren't using GCC.
13194 ac_prog=ld
13195 ;;
13196 *)
13197 # If it is relative, then search for the first ld in PATH.
13198 with_gnu_ld=unknown
13199 ;;
13200 esac
13201 elif test "$with_gnu_ld" = yes; then
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13203 $as_echo_n "checking for GNU ld... " >&6; }
13204 else
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13206 $as_echo_n "checking for non-GNU ld... " >&6; }
13207 fi
13208 if ${lt_cv_path_LD+:} false; then :
13209 $as_echo_n "(cached) " >&6
13210 else
13211 if test -z "$LD"; then
13212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13213 for ac_dir in $PATH; do
13214 IFS="$lt_save_ifs"
13215 test -z "$ac_dir" && ac_dir=.
13216 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13217 lt_cv_path_LD="$ac_dir/$ac_prog"
13218 # Check to see if the program is GNU ld. I'd rather use --version,
13219 # but apparently some variants of GNU ld only accept -v.
13220 # Break only if it was the GNU/non-GNU ld that we prefer.
13221 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13222 *GNU* | *'with BFD'*)
13223 test "$with_gnu_ld" != no && break
13224 ;;
13225 *)
13226 test "$with_gnu_ld" != yes && break
13227 ;;
13228 esac
13229 fi
13230 done
13231 IFS="$lt_save_ifs"
13232 else
13233 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13234 fi
13235 fi
13236
13237 LD="$lt_cv_path_LD"
13238 if test -n "$LD"; then
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13240 $as_echo "$LD" >&6; }
13241 else
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243 $as_echo "no" >&6; }
13244 fi
13245 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13247 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13248 if ${lt_cv_prog_gnu_ld+:} false; then :
13249 $as_echo_n "(cached) " >&6
13250 else
13251 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13252 case `$LD -v 2>&1 </dev/null` in
13253 *GNU* | *'with BFD'*)
13254 lt_cv_prog_gnu_ld=yes
13255 ;;
13256 *)
13257 lt_cv_prog_gnu_ld=no
13258 ;;
13259 esac
13260 fi
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13262 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13263 with_gnu_ld=$lt_cv_prog_gnu_ld
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13274 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13275 if ${lt_cv_path_NM+:} false; then :
13276 $as_echo_n "(cached) " >&6
13277 else
13278 if test -n "$NM"; then
13279 # Let the user override the test.
13280 lt_cv_path_NM="$NM"
13281 else
13282 lt_nm_to_check="${ac_tool_prefix}nm"
13283 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13284 lt_nm_to_check="$lt_nm_to_check nm"
13285 fi
13286 for lt_tmp_nm in $lt_nm_to_check; do
13287 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13288 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13289 IFS="$lt_save_ifs"
13290 test -z "$ac_dir" && ac_dir=.
13291 tmp_nm="$ac_dir/$lt_tmp_nm"
13292 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13293 # Check to see if the nm accepts a BSD-compat flag.
13294 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13295 # nm: unknown option "B" ignored
13296 # Tru64's nm complains that /dev/null is an invalid object file
13297 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13298 */dev/null* | *'Invalid file or object type'*)
13299 lt_cv_path_NM="$tmp_nm -B"
13300 break
13301 ;;
13302 *)
13303 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13304 */dev/null*)
13305 lt_cv_path_NM="$tmp_nm -p"
13306 break
13307 ;;
13308 *)
13309 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13310 continue # so that we can try to find one that supports BSD flags
13311 ;;
13312 esac
13313 ;;
13314 esac
13315 fi
13316 done
13317 IFS="$lt_save_ifs"
13318 done
13319 : ${lt_cv_path_NM=no}
13320 fi
13321 fi
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13323 $as_echo "$lt_cv_path_NM" >&6; }
13324 if test "$lt_cv_path_NM" != "no"; then
13325 NM="$lt_cv_path_NM"
13326 else
13327 # Didn't find any BSD compatible name lister, look for dumpbin.
13328 if test -n "$DUMPBIN"; then :
13329 # Let the user override the test.
13330 else
13331 if test -n "$ac_tool_prefix"; then
13332 for ac_prog in dumpbin "link -dump"
13333 do
13334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13337 $as_echo_n "checking for $ac_word... " >&6; }
13338 if ${ac_cv_prog_DUMPBIN+:} false; then :
13339 $as_echo_n "(cached) " >&6
13340 else
13341 if test -n "$DUMPBIN"; then
13342 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13343 else
13344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13345 for as_dir in $PATH
13346 do
13347 IFS=$as_save_IFS
13348 test -z "$as_dir" && as_dir=.
13349 for ac_exec_ext in '' $ac_executable_extensions; do
13350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13351 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13353 break 2
13354 fi
13355 done
13356 done
13357 IFS=$as_save_IFS
13358
13359 fi
13360 fi
13361 DUMPBIN=$ac_cv_prog_DUMPBIN
13362 if test -n "$DUMPBIN"; then
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13364 $as_echo "$DUMPBIN" >&6; }
13365 else
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13367 $as_echo "no" >&6; }
13368 fi
13369
13370
13371 test -n "$DUMPBIN" && break
13372 done
13373 fi
13374 if test -z "$DUMPBIN"; then
13375 ac_ct_DUMPBIN=$DUMPBIN
13376 for ac_prog in dumpbin "link -dump"
13377 do
13378 # Extract the first word of "$ac_prog", so it can be a program name with args.
13379 set dummy $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_ac_ct_DUMPBIN+:} false; then :
13383 $as_echo_n "(cached) " >&6
13384 else
13385 if test -n "$ac_ct_DUMPBIN"; then
13386 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_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_ac_ct_DUMPBIN="$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 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13406 if test -n "$ac_ct_DUMPBIN"; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13408 $as_echo "$ac_ct_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 "$ac_ct_DUMPBIN" && break
13416 done
13417
13418 if test "x$ac_ct_DUMPBIN" = x; then
13419 DUMPBIN=":"
13420 else
13421 case $cross_compiling:$ac_tool_warned in
13422 yes:)
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13425 ac_tool_warned=yes ;;
13426 esac
13427 DUMPBIN=$ac_ct_DUMPBIN
13428 fi
13429 fi
13430
13431 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13432 *COFF*)
13433 DUMPBIN="$DUMPBIN -symbols"
13434 ;;
13435 *)
13436 DUMPBIN=:
13437 ;;
13438 esac
13439 fi
13440
13441 if test "$DUMPBIN" != ":"; then
13442 NM="$DUMPBIN"
13443 fi
13444 fi
13445 test -z "$NM" && NM=nm
13446
13447
13448
13449
13450
13451
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13453 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13454 if ${lt_cv_nm_interface+:} false; then :
13455 $as_echo_n "(cached) " >&6
13456 else
13457 lt_cv_nm_interface="BSD nm"
13458 echo "int some_variable = 0;" > conftest.$ac_ext
13459 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13460 (eval "$ac_compile" 2>conftest.err)
13461 cat conftest.err >&5
13462 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13463 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13464 cat conftest.err >&5
13465 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13466 cat conftest.out >&5
13467 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13468 lt_cv_nm_interface="MS dumpbin"
13469 fi
13470 rm -f conftest*
13471 fi
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13473 $as_echo "$lt_cv_nm_interface" >&6; }
13474
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13476 $as_echo_n "checking whether ln -s works... " >&6; }
13477 LN_S=$as_ln_s
13478 if test "$LN_S" = "ln -s"; then
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13480 $as_echo "yes" >&6; }
13481 else
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13483 $as_echo "no, using $LN_S" >&6; }
13484 fi
13485
13486 # find the maximum length of command line arguments
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13488 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13489 if ${lt_cv_sys_max_cmd_len+:} false; then :
13490 $as_echo_n "(cached) " >&6
13491 else
13492 i=0
13493 teststring="ABCD"
13494
13495 case $build_os in
13496 msdosdjgpp*)
13497 # On DJGPP, this test can blow up pretty badly due to problems in libc
13498 # (any single argument exceeding 2000 bytes causes a buffer overrun
13499 # during glob expansion). Even if it were fixed, the result of this
13500 # check would be larger than it should be.
13501 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13502 ;;
13503
13504 gnu*)
13505 # Under GNU Hurd, this test is not required because there is
13506 # no limit to the length of command line arguments.
13507 # Libtool will interpret -1 as no limit whatsoever
13508 lt_cv_sys_max_cmd_len=-1;
13509 ;;
13510
13511 cygwin* | mingw* | cegcc*)
13512 # On Win9x/ME, this test blows up -- it succeeds, but takes
13513 # about 5 minutes as the teststring grows exponentially.
13514 # Worse, since 9x/ME are not pre-emptively multitasking,
13515 # you end up with a "frozen" computer, even though with patience
13516 # the test eventually succeeds (with a max line length of 256k).
13517 # Instead, let's just punt: use the minimum linelength reported by
13518 # all of the supported platforms: 8192 (on NT/2K/XP).
13519 lt_cv_sys_max_cmd_len=8192;
13520 ;;
13521
13522 mint*)
13523 # On MiNT this can take a long time and run out of memory.
13524 lt_cv_sys_max_cmd_len=8192;
13525 ;;
13526
13527 amigaos*)
13528 # On AmigaOS with pdksh, this test takes hours, literally.
13529 # So we just punt and use a minimum line length of 8192.
13530 lt_cv_sys_max_cmd_len=8192;
13531 ;;
13532
13533 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13534 # This has been around since 386BSD, at least. Likely further.
13535 if test -x /sbin/sysctl; then
13536 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13537 elif test -x /usr/sbin/sysctl; then
13538 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13539 else
13540 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13541 fi
13542 # And add a safety zone
13543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13544 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13545 ;;
13546
13547 interix*)
13548 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13549 lt_cv_sys_max_cmd_len=196608
13550 ;;
13551
13552 osf*)
13553 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13554 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13555 # nice to cause kernel panics so lets avoid the loop below.
13556 # First set a reasonable default.
13557 lt_cv_sys_max_cmd_len=16384
13558 #
13559 if test -x /sbin/sysconfig; then
13560 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13561 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13562 esac
13563 fi
13564 ;;
13565 sco3.2v5*)
13566 lt_cv_sys_max_cmd_len=102400
13567 ;;
13568 sysv5* | sco5v6* | sysv4.2uw2*)
13569 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13570 if test -n "$kargmax"; then
13571 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13572 else
13573 lt_cv_sys_max_cmd_len=32768
13574 fi
13575 ;;
13576 *)
13577 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13578 if test -n "$lt_cv_sys_max_cmd_len"; then
13579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13581 else
13582 # Make teststring a little bigger before we do anything with it.
13583 # a 1K string should be a reasonable start.
13584 for i in 1 2 3 4 5 6 7 8 ; do
13585 teststring=$teststring$teststring
13586 done
13587 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13588 # If test is not a shell built-in, we'll probably end up computing a
13589 # maximum length that is only half of the actual maximum length, but
13590 # we can't tell.
13591 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13592 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13593 test $i != 17 # 1/2 MB should be enough
13594 do
13595 i=`expr $i + 1`
13596 teststring=$teststring$teststring
13597 done
13598 # Only check the string length outside the loop.
13599 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13600 teststring=
13601 # Add a significant safety factor because C++ compilers can tack on
13602 # massive amounts of additional arguments before passing them to the
13603 # linker. It appears as though 1/2 is a usable value.
13604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13605 fi
13606 ;;
13607 esac
13608
13609 fi
13610
13611 if test -n $lt_cv_sys_max_cmd_len ; then
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13613 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13614 else
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13616 $as_echo "none" >&6; }
13617 fi
13618 max_cmd_len=$lt_cv_sys_max_cmd_len
13619
13620
13621
13622
13623
13624
13625 : ${CP="cp -f"}
13626 : ${MV="mv -f"}
13627 : ${RM="rm -f"}
13628
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13630 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13631 # Try some XSI features
13632 xsi_shell=no
13633 ( _lt_dummy="a/b/c"
13634 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13635 = c,a/b,, \
13636 && eval 'test $(( 1 + 1 )) -eq 2 \
13637 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13638 && xsi_shell=yes
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13640 $as_echo "$xsi_shell" >&6; }
13641
13642
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13644 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13645 lt_shell_append=no
13646 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13647 >/dev/null 2>&1 \
13648 && lt_shell_append=yes
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13650 $as_echo "$lt_shell_append" >&6; }
13651
13652
13653 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13654 lt_unset=unset
13655 else
13656 lt_unset=false
13657 fi
13658
13659
13660
13661
13662
13663 # test EBCDIC or ASCII
13664 case `echo X|tr X '\101'` in
13665 A) # ASCII based system
13666 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13667 lt_SP2NL='tr \040 \012'
13668 lt_NL2SP='tr \015\012 \040\040'
13669 ;;
13670 *) # EBCDIC based system
13671 lt_SP2NL='tr \100 \n'
13672 lt_NL2SP='tr \r\n \100\100'
13673 ;;
13674 esac
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13685 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13686 if ${lt_cv_ld_reload_flag+:} false; then :
13687 $as_echo_n "(cached) " >&6
13688 else
13689 lt_cv_ld_reload_flag='-r'
13690 fi
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13692 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13693 reload_flag=$lt_cv_ld_reload_flag
13694 case $reload_flag in
13695 "" | " "*) ;;
13696 *) reload_flag=" $reload_flag" ;;
13697 esac
13698 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13699 case $host_os in
13700 darwin*)
13701 if test "$GCC" = yes; then
13702 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13703 else
13704 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13705 fi
13706 ;;
13707 esac
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717 if test -n "$ac_tool_prefix"; then
13718 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13719 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13721 $as_echo_n "checking for $ac_word... " >&6; }
13722 if ${ac_cv_prog_OBJDUMP+:} false; then :
13723 $as_echo_n "(cached) " >&6
13724 else
13725 if test -n "$OBJDUMP"; then
13726 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13727 else
13728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13729 for as_dir in $PATH
13730 do
13731 IFS=$as_save_IFS
13732 test -z "$as_dir" && as_dir=.
13733 for ac_exec_ext in '' $ac_executable_extensions; do
13734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13735 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13737 break 2
13738 fi
13739 done
13740 done
13741 IFS=$as_save_IFS
13742
13743 fi
13744 fi
13745 OBJDUMP=$ac_cv_prog_OBJDUMP
13746 if test -n "$OBJDUMP"; then
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13748 $as_echo "$OBJDUMP" >&6; }
13749 else
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13751 $as_echo "no" >&6; }
13752 fi
13753
13754
13755 fi
13756 if test -z "$ac_cv_prog_OBJDUMP"; then
13757 ac_ct_OBJDUMP=$OBJDUMP
13758 # Extract the first word of "objdump", so it can be a program name with args.
13759 set dummy objdump; ac_word=$2
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13761 $as_echo_n "checking for $ac_word... " >&6; }
13762 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13763 $as_echo_n "(cached) " >&6
13764 else
13765 if test -n "$ac_ct_OBJDUMP"; then
13766 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13767 else
13768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13769 for as_dir in $PATH
13770 do
13771 IFS=$as_save_IFS
13772 test -z "$as_dir" && as_dir=.
13773 for ac_exec_ext in '' $ac_executable_extensions; do
13774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13775 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13777 break 2
13778 fi
13779 done
13780 done
13781 IFS=$as_save_IFS
13782
13783 fi
13784 fi
13785 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13786 if test -n "$ac_ct_OBJDUMP"; then
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13788 $as_echo "$ac_ct_OBJDUMP" >&6; }
13789 else
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13791 $as_echo "no" >&6; }
13792 fi
13793
13794 if test "x$ac_ct_OBJDUMP" = x; then
13795 OBJDUMP="false"
13796 else
13797 case $cross_compiling:$ac_tool_warned in
13798 yes:)
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13801 ac_tool_warned=yes ;;
13802 esac
13803 OBJDUMP=$ac_ct_OBJDUMP
13804 fi
13805 else
13806 OBJDUMP="$ac_cv_prog_OBJDUMP"
13807 fi
13808
13809 test -z "$OBJDUMP" && OBJDUMP=objdump
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13820 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13821 if ${lt_cv_deplibs_check_method+:} false; then :
13822 $as_echo_n "(cached) " >&6
13823 else
13824 lt_cv_file_magic_cmd='$MAGIC_CMD'
13825 lt_cv_file_magic_test_file=
13826 lt_cv_deplibs_check_method='unknown'
13827 # Need to set the preceding variable on all platforms that support
13828 # interlibrary dependencies.
13829 # 'none' -- dependencies not supported.
13830 # `unknown' -- same as none, but documents that we really don't know.
13831 # 'pass_all' -- all dependencies passed with no checks.
13832 # 'test_compile' -- check by making test program.
13833 # 'file_magic [[regex]]' -- check by looking for files in library path
13834 # which responds to the $file_magic_cmd with a given extended regex.
13835 # If you have `file' or equivalent on your system and you're not sure
13836 # whether `pass_all' will *always* work, you probably want this one.
13837
13838 case $host_os in
13839 aix[4-9]*)
13840 lt_cv_deplibs_check_method=pass_all
13841 ;;
13842
13843 beos*)
13844 lt_cv_deplibs_check_method=pass_all
13845 ;;
13846
13847 bsdi[45]*)
13848 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13849 lt_cv_file_magic_cmd='/usr/bin/file -L'
13850 lt_cv_file_magic_test_file=/shlib/libc.so
13851 ;;
13852
13853 cygwin*)
13854 # func_win32_libid is a shell function defined in ltmain.sh
13855 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13856 lt_cv_file_magic_cmd='func_win32_libid'
13857 ;;
13858
13859 mingw* | pw32*)
13860 # Base MSYS/MinGW do not provide the 'file' command needed by
13861 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13862 # unless we find 'file', for example because we are cross-compiling.
13863 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13864 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13865 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13866 lt_cv_file_magic_cmd='func_win32_libid'
13867 else
13868 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13869 lt_cv_file_magic_cmd='$OBJDUMP -f'
13870 fi
13871 ;;
13872
13873 cegcc*)
13874 # use the weaker test based on 'objdump'. See mingw*.
13875 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13876 lt_cv_file_magic_cmd='$OBJDUMP -f'
13877 ;;
13878
13879 darwin* | rhapsody*)
13880 lt_cv_deplibs_check_method=pass_all
13881 ;;
13882
13883 freebsd* | dragonfly*)
13884 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13885 case $host_cpu in
13886 i*86 )
13887 # Not sure whether the presence of OpenBSD here was a mistake.
13888 # Let's accept both of them until this is cleared up.
13889 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13890 lt_cv_file_magic_cmd=/usr/bin/file
13891 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13892 ;;
13893 esac
13894 else
13895 lt_cv_deplibs_check_method=pass_all
13896 fi
13897 ;;
13898
13899 gnu*)
13900 lt_cv_deplibs_check_method=pass_all
13901 ;;
13902
13903 haiku*)
13904 lt_cv_deplibs_check_method=pass_all
13905 ;;
13906
13907 hpux10.20* | hpux11*)
13908 lt_cv_file_magic_cmd=/usr/bin/file
13909 case $host_cpu in
13910 ia64*)
13911 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13912 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13913 ;;
13914 hppa*64*)
13915 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]'
13916 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13917 ;;
13918 *)
13919 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13920 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13921 ;;
13922 esac
13923 ;;
13924
13925 interix[3-9]*)
13926 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13928 ;;
13929
13930 irix5* | irix6* | nonstopux*)
13931 case $LD in
13932 *-32|*"-32 ") libmagic=32-bit;;
13933 *-n32|*"-n32 ") libmagic=N32;;
13934 *-64|*"-64 ") libmagic=64-bit;;
13935 *) libmagic=never-match;;
13936 esac
13937 lt_cv_deplibs_check_method=pass_all
13938 ;;
13939
13940 # This must be Linux ELF.
13941 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13942 lt_cv_deplibs_check_method=pass_all
13943 ;;
13944
13945 netbsd*)
13946 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13948 else
13949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13950 fi
13951 ;;
13952
13953 newos6*)
13954 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13955 lt_cv_file_magic_cmd=/usr/bin/file
13956 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13957 ;;
13958
13959 *nto* | *qnx*)
13960 lt_cv_deplibs_check_method=pass_all
13961 ;;
13962
13963 openbsd*)
13964 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13966 else
13967 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13968 fi
13969 ;;
13970
13971 osf3* | osf4* | osf5*)
13972 lt_cv_deplibs_check_method=pass_all
13973 ;;
13974
13975 rdos*)
13976 lt_cv_deplibs_check_method=pass_all
13977 ;;
13978
13979 solaris*)
13980 lt_cv_deplibs_check_method=pass_all
13981 ;;
13982
13983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13984 lt_cv_deplibs_check_method=pass_all
13985 ;;
13986
13987 sysv4 | sysv4.3*)
13988 case $host_vendor in
13989 motorola)
13990 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]'
13991 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13992 ;;
13993 ncr)
13994 lt_cv_deplibs_check_method=pass_all
13995 ;;
13996 sequent)
13997 lt_cv_file_magic_cmd='/bin/file'
13998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13999 ;;
14000 sni)
14001 lt_cv_file_magic_cmd='/bin/file'
14002 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14003 lt_cv_file_magic_test_file=/lib/libc.so
14004 ;;
14005 siemens)
14006 lt_cv_deplibs_check_method=pass_all
14007 ;;
14008 pc)
14009 lt_cv_deplibs_check_method=pass_all
14010 ;;
14011 esac
14012 ;;
14013
14014 tpf*)
14015 lt_cv_deplibs_check_method=pass_all
14016 ;;
14017 esac
14018
14019 fi
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14021 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14022 file_magic_cmd=$lt_cv_file_magic_cmd
14023 deplibs_check_method=$lt_cv_deplibs_check_method
14024 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037 if test -n "$ac_tool_prefix"; then
14038 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14039 set dummy ${ac_tool_prefix}ar; ac_word=$2
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14041 $as_echo_n "checking for $ac_word... " >&6; }
14042 if ${ac_cv_prog_AR+:} false; then :
14043 $as_echo_n "(cached) " >&6
14044 else
14045 if test -n "$AR"; then
14046 ac_cv_prog_AR="$AR" # Let the user override the test.
14047 else
14048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14049 for as_dir in $PATH
14050 do
14051 IFS=$as_save_IFS
14052 test -z "$as_dir" && as_dir=.
14053 for ac_exec_ext in '' $ac_executable_extensions; do
14054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14055 ac_cv_prog_AR="${ac_tool_prefix}ar"
14056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14057 break 2
14058 fi
14059 done
14060 done
14061 IFS=$as_save_IFS
14062
14063 fi
14064 fi
14065 AR=$ac_cv_prog_AR
14066 if test -n "$AR"; then
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14068 $as_echo "$AR" >&6; }
14069 else
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14071 $as_echo "no" >&6; }
14072 fi
14073
14074
14075 fi
14076 if test -z "$ac_cv_prog_AR"; then
14077 ac_ct_AR=$AR
14078 # Extract the first word of "ar", so it can be a program name with args.
14079 set dummy ar; ac_word=$2
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14081 $as_echo_n "checking for $ac_word... " >&6; }
14082 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14083 $as_echo_n "(cached) " >&6
14084 else
14085 if test -n "$ac_ct_AR"; then
14086 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14087 else
14088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14089 for as_dir in $PATH
14090 do
14091 IFS=$as_save_IFS
14092 test -z "$as_dir" && as_dir=.
14093 for ac_exec_ext in '' $ac_executable_extensions; do
14094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14095 ac_cv_prog_ac_ct_AR="ar"
14096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14097 break 2
14098 fi
14099 done
14100 done
14101 IFS=$as_save_IFS
14102
14103 fi
14104 fi
14105 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14106 if test -n "$ac_ct_AR"; then
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14108 $as_echo "$ac_ct_AR" >&6; }
14109 else
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14111 $as_echo "no" >&6; }
14112 fi
14113
14114 if test "x$ac_ct_AR" = x; then
14115 AR="false"
14116 else
14117 case $cross_compiling:$ac_tool_warned in
14118 yes:)
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14121 ac_tool_warned=yes ;;
14122 esac
14123 AR=$ac_ct_AR
14124 fi
14125 else
14126 AR="$ac_cv_prog_AR"
14127 fi
14128
14129 test -z "$AR" && AR=ar
14130 test -z "$AR_FLAGS" && AR_FLAGS=cru
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142 if test -n "$ac_tool_prefix"; then
14143 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14144 set dummy ${ac_tool_prefix}strip; ac_word=$2
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14146 $as_echo_n "checking for $ac_word... " >&6; }
14147 if ${ac_cv_prog_STRIP+:} false; then :
14148 $as_echo_n "(cached) " >&6
14149 else
14150 if test -n "$STRIP"; then
14151 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14152 else
14153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14154 for as_dir in $PATH
14155 do
14156 IFS=$as_save_IFS
14157 test -z "$as_dir" && as_dir=.
14158 for ac_exec_ext in '' $ac_executable_extensions; do
14159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14160 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14162 break 2
14163 fi
14164 done
14165 done
14166 IFS=$as_save_IFS
14167
14168 fi
14169 fi
14170 STRIP=$ac_cv_prog_STRIP
14171 if test -n "$STRIP"; then
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14173 $as_echo "$STRIP" >&6; }
14174 else
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14176 $as_echo "no" >&6; }
14177 fi
14178
14179
14180 fi
14181 if test -z "$ac_cv_prog_STRIP"; then
14182 ac_ct_STRIP=$STRIP
14183 # Extract the first word of "strip", so it can be a program name with args.
14184 set dummy strip; ac_word=$2
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14186 $as_echo_n "checking for $ac_word... " >&6; }
14187 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14188 $as_echo_n "(cached) " >&6
14189 else
14190 if test -n "$ac_ct_STRIP"; then
14191 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14192 else
14193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14194 for as_dir in $PATH
14195 do
14196 IFS=$as_save_IFS
14197 test -z "$as_dir" && as_dir=.
14198 for ac_exec_ext in '' $ac_executable_extensions; do
14199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14200 ac_cv_prog_ac_ct_STRIP="strip"
14201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14202 break 2
14203 fi
14204 done
14205 done
14206 IFS=$as_save_IFS
14207
14208 fi
14209 fi
14210 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14211 if test -n "$ac_ct_STRIP"; then
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14213 $as_echo "$ac_ct_STRIP" >&6; }
14214 else
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14216 $as_echo "no" >&6; }
14217 fi
14218
14219 if test "x$ac_ct_STRIP" = x; then
14220 STRIP=":"
14221 else
14222 case $cross_compiling:$ac_tool_warned in
14223 yes:)
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14226 ac_tool_warned=yes ;;
14227 esac
14228 STRIP=$ac_ct_STRIP
14229 fi
14230 else
14231 STRIP="$ac_cv_prog_STRIP"
14232 fi
14233
14234 test -z "$STRIP" && STRIP=:
14235
14236
14237
14238
14239
14240
14241 if test -n "$ac_tool_prefix"; then
14242 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14243 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14245 $as_echo_n "checking for $ac_word... " >&6; }
14246 if ${ac_cv_prog_RANLIB+:} false; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14249 if test -n "$RANLIB"; then
14250 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14251 else
14252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14253 for as_dir in $PATH
14254 do
14255 IFS=$as_save_IFS
14256 test -z "$as_dir" && as_dir=.
14257 for ac_exec_ext in '' $ac_executable_extensions; do
14258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14259 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14261 break 2
14262 fi
14263 done
14264 done
14265 IFS=$as_save_IFS
14266
14267 fi
14268 fi
14269 RANLIB=$ac_cv_prog_RANLIB
14270 if test -n "$RANLIB"; then
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14272 $as_echo "$RANLIB" >&6; }
14273 else
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14275 $as_echo "no" >&6; }
14276 fi
14277
14278
14279 fi
14280 if test -z "$ac_cv_prog_RANLIB"; then
14281 ac_ct_RANLIB=$RANLIB
14282 # Extract the first word of "ranlib", so it can be a program name with args.
14283 set dummy ranlib; ac_word=$2
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14285 $as_echo_n "checking for $ac_word... " >&6; }
14286 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14287 $as_echo_n "(cached) " >&6
14288 else
14289 if test -n "$ac_ct_RANLIB"; then
14290 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14291 else
14292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14293 for as_dir in $PATH
14294 do
14295 IFS=$as_save_IFS
14296 test -z "$as_dir" && as_dir=.
14297 for ac_exec_ext in '' $ac_executable_extensions; do
14298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14299 ac_cv_prog_ac_ct_RANLIB="ranlib"
14300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14301 break 2
14302 fi
14303 done
14304 done
14305 IFS=$as_save_IFS
14306
14307 fi
14308 fi
14309 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14310 if test -n "$ac_ct_RANLIB"; then
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14312 $as_echo "$ac_ct_RANLIB" >&6; }
14313 else
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315 $as_echo "no" >&6; }
14316 fi
14317
14318 if test "x$ac_ct_RANLIB" = x; then
14319 RANLIB=":"
14320 else
14321 case $cross_compiling:$ac_tool_warned in
14322 yes:)
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14325 ac_tool_warned=yes ;;
14326 esac
14327 RANLIB=$ac_ct_RANLIB
14328 fi
14329 else
14330 RANLIB="$ac_cv_prog_RANLIB"
14331 fi
14332
14333 test -z "$RANLIB" && RANLIB=:
14334
14335
14336
14337
14338
14339
14340 # Determine commands to create old-style static archives.
14341 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14342 old_postinstall_cmds='chmod 644 $oldlib'
14343 old_postuninstall_cmds=
14344
14345 if test -n "$RANLIB"; then
14346 case $host_os in
14347 openbsd*)
14348 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14349 ;;
14350 *)
14351 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14352 ;;
14353 esac
14354 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14355 fi
14356
14357 case $host_os in
14358 darwin*)
14359 lock_old_archive_extraction=yes ;;
14360 *)
14361 lock_old_archive_extraction=no ;;
14362 esac
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402 # If no C compiler was specified, use CC.
14403 LTCC=${LTCC-"$CC"}
14404
14405 # If no C compiler flags were specified, use CFLAGS.
14406 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14407
14408 # Allow CC to be a program name with arguments.
14409 compiler=$CC
14410
14411
14412 # Check for command to grab the raw symbol name followed by C symbol from nm.
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14414 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14415 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14416 $as_echo_n "(cached) " >&6
14417 else
14418
14419 # These are sane defaults that work on at least a few old systems.
14420 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14421
14422 # Character class describing NM global symbol codes.
14423 symcode='[BCDEGRST]'
14424
14425 # Regexp to match symbols that can be accessed directly from C.
14426 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14427
14428 # Define system-specific variables.
14429 case $host_os in
14430 aix*)
14431 symcode='[BCDT]'
14432 ;;
14433 cygwin* | mingw* | pw32* | cegcc*)
14434 symcode='[ABCDGISTW]'
14435 ;;
14436 hpux*)
14437 if test "$host_cpu" = ia64; then
14438 symcode='[ABCDEGRST]'
14439 fi
14440 ;;
14441 irix* | nonstopux*)
14442 symcode='[BCDEGRST]'
14443 ;;
14444 osf*)
14445 symcode='[BCDEGQRST]'
14446 ;;
14447 solaris*)
14448 symcode='[BDRT]'
14449 ;;
14450 sco3.2v5*)
14451 symcode='[DT]'
14452 ;;
14453 sysv4.2uw2*)
14454 symcode='[DT]'
14455 ;;
14456 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14457 symcode='[ABDT]'
14458 ;;
14459 sysv4)
14460 symcode='[DFNSTU]'
14461 ;;
14462 esac
14463
14464 # If we're using GNU nm, then use its standard symbol codes.
14465 case `$NM -V 2>&1` in
14466 *GNU* | *'with BFD'*)
14467 symcode='[ABCDGIRSTW]' ;;
14468 esac
14469
14470 # Transform an extracted symbol line into a proper C declaration.
14471 # Some systems (esp. on ia64) link data and code symbols differently,
14472 # so use this general approach.
14473 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14474
14475 # Transform an extracted symbol line into symbol name and symbol address
14476 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14477 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'"
14478
14479 # Handle CRLF in mingw tool chain
14480 opt_cr=
14481 case $build_os in
14482 mingw*)
14483 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14484 ;;
14485 esac
14486
14487 # Try without a prefix underscore, then with it.
14488 for ac_symprfx in "" "_"; do
14489
14490 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14491 symxfrm="\\1 $ac_symprfx\\2 \\2"
14492
14493 # Write the raw and C identifiers.
14494 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14495 # Fake it for dumpbin and say T for any non-static function
14496 # and D for any global variable.
14497 # Also find C++ and __fastcall symbols from MSVC++,
14498 # which start with @ or ?.
14499 lt_cv_sys_global_symbol_pipe="$AWK '"\
14500 " {last_section=section; section=\$ 3};"\
14501 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14502 " \$ 0!~/External *\|/{next};"\
14503 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14504 " {if(hide[section]) next};"\
14505 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14506 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14507 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14508 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14509 " ' prfx=^$ac_symprfx"
14510 else
14511 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14512 fi
14513
14514 # Check to see that the pipe works correctly.
14515 pipe_works=no
14516
14517 rm -f conftest*
14518 cat > conftest.$ac_ext <<_LT_EOF
14519 #ifdef __cplusplus
14520 extern "C" {
14521 #endif
14522 char nm_test_var;
14523 void nm_test_func(void);
14524 void nm_test_func(void){}
14525 #ifdef __cplusplus
14526 }
14527 #endif
14528 int main(){nm_test_var='a';nm_test_func();return(0);}
14529 _LT_EOF
14530
14531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14532 (eval $ac_compile) 2>&5
14533 ac_status=$?
14534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14535 test $ac_status = 0; }; then
14536 # Now try to grab the symbols.
14537 nlist=conftest.nm
14538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14539 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14540 ac_status=$?
14541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14542 test $ac_status = 0; } && test -s "$nlist"; then
14543 # Try sorting and uniquifying the output.
14544 if sort "$nlist" | uniq > "$nlist"T; then
14545 mv -f "$nlist"T "$nlist"
14546 else
14547 rm -f "$nlist"T
14548 fi
14549
14550 # Make sure that we snagged all the symbols we need.
14551 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14552 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14553 cat <<_LT_EOF > conftest.$ac_ext
14554 #ifdef __cplusplus
14555 extern "C" {
14556 #endif
14557
14558 _LT_EOF
14559 # Now generate the symbol file.
14560 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14561
14562 cat <<_LT_EOF >> conftest.$ac_ext
14563
14564 /* The mapping between symbol names and symbols. */
14565 const struct {
14566 const char *name;
14567 void *address;
14568 }
14569 lt__PROGRAM__LTX_preloaded_symbols[] =
14570 {
14571 { "@PROGRAM@", (void *) 0 },
14572 _LT_EOF
14573 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14574 cat <<\_LT_EOF >> conftest.$ac_ext
14575 {0, (void *) 0}
14576 };
14577
14578 /* This works around a problem in FreeBSD linker */
14579 #ifdef FREEBSD_WORKAROUND
14580 static const void *lt_preloaded_setup() {
14581 return lt__PROGRAM__LTX_preloaded_symbols;
14582 }
14583 #endif
14584
14585 #ifdef __cplusplus
14586 }
14587 #endif
14588 _LT_EOF
14589 # Now try linking the two files.
14590 mv conftest.$ac_objext conftstm.$ac_objext
14591 lt_save_LIBS="$LIBS"
14592 lt_save_CFLAGS="$CFLAGS"
14593 LIBS="conftstm.$ac_objext"
14594 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14596 (eval $ac_link) 2>&5
14597 ac_status=$?
14598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14599 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14600 pipe_works=yes
14601 fi
14602 LIBS="$lt_save_LIBS"
14603 CFLAGS="$lt_save_CFLAGS"
14604 else
14605 echo "cannot find nm_test_func in $nlist" >&5
14606 fi
14607 else
14608 echo "cannot find nm_test_var in $nlist" >&5
14609 fi
14610 else
14611 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14612 fi
14613 else
14614 echo "$progname: failed program was:" >&5
14615 cat conftest.$ac_ext >&5
14616 fi
14617 rm -rf conftest* conftst*
14618
14619 # Do not use the global_symbol_pipe unless it works.
14620 if test "$pipe_works" = yes; then
14621 break
14622 else
14623 lt_cv_sys_global_symbol_pipe=
14624 fi
14625 done
14626
14627 fi
14628
14629 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14630 lt_cv_sys_global_symbol_to_cdecl=
14631 fi
14632 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14634 $as_echo "failed" >&6; }
14635 else
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14637 $as_echo "ok" >&6; }
14638 fi
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661 # Check whether --enable-libtool-lock was given.
14662 if test "${enable_libtool_lock+set}" = set; then :
14663 enableval=$enable_libtool_lock;
14664 fi
14665
14666 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14667
14668 # Some flags need to be propagated to the compiler or linker for good
14669 # libtool support.
14670 case $host in
14671 ia64-*-hpux*)
14672 # Find out which ABI we are using.
14673 echo 'int i;' > conftest.$ac_ext
14674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14675 (eval $ac_compile) 2>&5
14676 ac_status=$?
14677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14678 test $ac_status = 0; }; then
14679 case `/usr/bin/file conftest.$ac_objext` in
14680 *ELF-32*)
14681 HPUX_IA64_MODE="32"
14682 ;;
14683 *ELF-64*)
14684 HPUX_IA64_MODE="64"
14685 ;;
14686 esac
14687 fi
14688 rm -rf conftest*
14689 ;;
14690 *-*-irix6*)
14691 # Find out which ABI we are using.
14692 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14694 (eval $ac_compile) 2>&5
14695 ac_status=$?
14696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14697 test $ac_status = 0; }; then
14698 if test "$lt_cv_prog_gnu_ld" = yes; then
14699 case `/usr/bin/file conftest.$ac_objext` in
14700 *32-bit*)
14701 LD="${LD-ld} -melf32bsmip"
14702 ;;
14703 *N32*)
14704 LD="${LD-ld} -melf32bmipn32"
14705 ;;
14706 *64-bit*)
14707 LD="${LD-ld} -melf64bmip"
14708 ;;
14709 esac
14710 else
14711 case `/usr/bin/file conftest.$ac_objext` in
14712 *32-bit*)
14713 LD="${LD-ld} -32"
14714 ;;
14715 *N32*)
14716 LD="${LD-ld} -n32"
14717 ;;
14718 *64-bit*)
14719 LD="${LD-ld} -64"
14720 ;;
14721 esac
14722 fi
14723 fi
14724 rm -rf conftest*
14725 ;;
14726
14727 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14728 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14729 # Find out which ABI we are using.
14730 echo 'int i;' > conftest.$ac_ext
14731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14732 (eval $ac_compile) 2>&5
14733 ac_status=$?
14734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14735 test $ac_status = 0; }; then
14736 case `/usr/bin/file conftest.o` in
14737 *32-bit*)
14738 case $host in
14739 x86_64-*kfreebsd*-gnu)
14740 LD="${LD-ld} -m elf_i386_fbsd"
14741 ;;
14742 x86_64-*linux*)
14743 case `/usr/bin/file conftest.o` in
14744 *x86-64*)
14745 LD="${LD-ld} -m elf32_x86_64"
14746 ;;
14747 *)
14748 LD="${LD-ld} -m elf_i386"
14749 ;;
14750 esac
14751 ;;
14752 powerpc64le-*linux*)
14753 LD="${LD-ld} -m elf32lppclinux"
14754 ;;
14755 powerpc64-*linux*)
14756 LD="${LD-ld} -m elf32ppclinux"
14757 ;;
14758 s390x-*linux*)
14759 LD="${LD-ld} -m elf_s390"
14760 ;;
14761 sparc64-*linux*)
14762 LD="${LD-ld} -m elf32_sparc"
14763 ;;
14764 esac
14765 ;;
14766 *64-bit*)
14767 case $host in
14768 x86_64-*kfreebsd*-gnu)
14769 LD="${LD-ld} -m elf_x86_64_fbsd"
14770 ;;
14771 x86_64-*linux*)
14772 LD="${LD-ld} -m elf_x86_64"
14773 ;;
14774 powerpcle-*linux*)
14775 LD="${LD-ld} -m elf64lppc"
14776 ;;
14777 powerpc-*linux*)
14778 LD="${LD-ld} -m elf64ppc"
14779 ;;
14780 s390*-*linux*|s390*-*tpf*)
14781 LD="${LD-ld} -m elf64_s390"
14782 ;;
14783 sparc*-*linux*)
14784 LD="${LD-ld} -m elf64_sparc"
14785 ;;
14786 esac
14787 ;;
14788 esac
14789 fi
14790 rm -rf conftest*
14791 ;;
14792
14793 *-*-sco3.2v5*)
14794 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14795 SAVE_CFLAGS="$CFLAGS"
14796 CFLAGS="$CFLAGS -belf"
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14798 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14799 if ${lt_cv_cc_needs_belf+:} false; then :
14800 $as_echo_n "(cached) " >&6
14801 else
14802 ac_ext=c
14803 ac_cpp='$CPP $CPPFLAGS'
14804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14807
14808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14809 /* end confdefs.h. */
14810
14811 int
14812 main ()
14813 {
14814
14815 ;
14816 return 0;
14817 }
14818 _ACEOF
14819 if ac_fn_c_try_link "$LINENO"; then :
14820 lt_cv_cc_needs_belf=yes
14821 else
14822 lt_cv_cc_needs_belf=no
14823 fi
14824 rm -f core conftest.err conftest.$ac_objext \
14825 conftest$ac_exeext conftest.$ac_ext
14826 ac_ext=c
14827 ac_cpp='$CPP $CPPFLAGS'
14828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14831
14832 fi
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14834 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14835 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14836 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14837 CFLAGS="$SAVE_CFLAGS"
14838 fi
14839 ;;
14840 sparc*-*solaris*)
14841 # Find out which ABI we are using.
14842 echo 'int i;' > conftest.$ac_ext
14843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14844 (eval $ac_compile) 2>&5
14845 ac_status=$?
14846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14847 test $ac_status = 0; }; then
14848 case `/usr/bin/file conftest.o` in
14849 *64-bit*)
14850 case $lt_cv_prog_gnu_ld in
14851 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14852 *)
14853 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14854 LD="${LD-ld} -64"
14855 fi
14856 ;;
14857 esac
14858 ;;
14859 esac
14860 fi
14861 rm -rf conftest*
14862 ;;
14863 esac
14864
14865 need_locks="$enable_libtool_lock"
14866
14867
14868 case $host_os in
14869 rhapsody* | darwin*)
14870 if test -n "$ac_tool_prefix"; then
14871 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14872 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14874 $as_echo_n "checking for $ac_word... " >&6; }
14875 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14876 $as_echo_n "(cached) " >&6
14877 else
14878 if test -n "$DSYMUTIL"; then
14879 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14880 else
14881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14882 for as_dir in $PATH
14883 do
14884 IFS=$as_save_IFS
14885 test -z "$as_dir" && as_dir=.
14886 for ac_exec_ext in '' $ac_executable_extensions; do
14887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14888 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14890 break 2
14891 fi
14892 done
14893 done
14894 IFS=$as_save_IFS
14895
14896 fi
14897 fi
14898 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14899 if test -n "$DSYMUTIL"; then
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14901 $as_echo "$DSYMUTIL" >&6; }
14902 else
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14904 $as_echo "no" >&6; }
14905 fi
14906
14907
14908 fi
14909 if test -z "$ac_cv_prog_DSYMUTIL"; then
14910 ac_ct_DSYMUTIL=$DSYMUTIL
14911 # Extract the first word of "dsymutil", so it can be a program name with args.
14912 set dummy dsymutil; ac_word=$2
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14914 $as_echo_n "checking for $ac_word... " >&6; }
14915 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14916 $as_echo_n "(cached) " >&6
14917 else
14918 if test -n "$ac_ct_DSYMUTIL"; then
14919 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14920 else
14921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14922 for as_dir in $PATH
14923 do
14924 IFS=$as_save_IFS
14925 test -z "$as_dir" && as_dir=.
14926 for ac_exec_ext in '' $ac_executable_extensions; do
14927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14928 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14930 break 2
14931 fi
14932 done
14933 done
14934 IFS=$as_save_IFS
14935
14936 fi
14937 fi
14938 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14939 if test -n "$ac_ct_DSYMUTIL"; then
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14941 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14942 else
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14944 $as_echo "no" >&6; }
14945 fi
14946
14947 if test "x$ac_ct_DSYMUTIL" = x; then
14948 DSYMUTIL=":"
14949 else
14950 case $cross_compiling:$ac_tool_warned in
14951 yes:)
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14954 ac_tool_warned=yes ;;
14955 esac
14956 DSYMUTIL=$ac_ct_DSYMUTIL
14957 fi
14958 else
14959 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14960 fi
14961
14962 if test -n "$ac_tool_prefix"; then
14963 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14964 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14966 $as_echo_n "checking for $ac_word... " >&6; }
14967 if ${ac_cv_prog_NMEDIT+:} false; then :
14968 $as_echo_n "(cached) " >&6
14969 else
14970 if test -n "$NMEDIT"; then
14971 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14972 else
14973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14974 for as_dir in $PATH
14975 do
14976 IFS=$as_save_IFS
14977 test -z "$as_dir" && as_dir=.
14978 for ac_exec_ext in '' $ac_executable_extensions; do
14979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14980 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14982 break 2
14983 fi
14984 done
14985 done
14986 IFS=$as_save_IFS
14987
14988 fi
14989 fi
14990 NMEDIT=$ac_cv_prog_NMEDIT
14991 if test -n "$NMEDIT"; then
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14993 $as_echo "$NMEDIT" >&6; }
14994 else
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14996 $as_echo "no" >&6; }
14997 fi
14998
14999
15000 fi
15001 if test -z "$ac_cv_prog_NMEDIT"; then
15002 ac_ct_NMEDIT=$NMEDIT
15003 # Extract the first word of "nmedit", so it can be a program name with args.
15004 set dummy nmedit; ac_word=$2
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15006 $as_echo_n "checking for $ac_word... " >&6; }
15007 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15008 $as_echo_n "(cached) " >&6
15009 else
15010 if test -n "$ac_ct_NMEDIT"; then
15011 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15012 else
15013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15014 for as_dir in $PATH
15015 do
15016 IFS=$as_save_IFS
15017 test -z "$as_dir" && as_dir=.
15018 for ac_exec_ext in '' $ac_executable_extensions; do
15019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15020 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15022 break 2
15023 fi
15024 done
15025 done
15026 IFS=$as_save_IFS
15027
15028 fi
15029 fi
15030 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15031 if test -n "$ac_ct_NMEDIT"; then
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15033 $as_echo "$ac_ct_NMEDIT" >&6; }
15034 else
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15036 $as_echo "no" >&6; }
15037 fi
15038
15039 if test "x$ac_ct_NMEDIT" = x; then
15040 NMEDIT=":"
15041 else
15042 case $cross_compiling:$ac_tool_warned in
15043 yes:)
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15046 ac_tool_warned=yes ;;
15047 esac
15048 NMEDIT=$ac_ct_NMEDIT
15049 fi
15050 else
15051 NMEDIT="$ac_cv_prog_NMEDIT"
15052 fi
15053
15054 if test -n "$ac_tool_prefix"; then
15055 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15056 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15058 $as_echo_n "checking for $ac_word... " >&6; }
15059 if ${ac_cv_prog_LIPO+:} false; then :
15060 $as_echo_n "(cached) " >&6
15061 else
15062 if test -n "$LIPO"; then
15063 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15064 else
15065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15066 for as_dir in $PATH
15067 do
15068 IFS=$as_save_IFS
15069 test -z "$as_dir" && as_dir=.
15070 for ac_exec_ext in '' $ac_executable_extensions; do
15071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15072 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15074 break 2
15075 fi
15076 done
15077 done
15078 IFS=$as_save_IFS
15079
15080 fi
15081 fi
15082 LIPO=$ac_cv_prog_LIPO
15083 if test -n "$LIPO"; then
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15085 $as_echo "$LIPO" >&6; }
15086 else
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15088 $as_echo "no" >&6; }
15089 fi
15090
15091
15092 fi
15093 if test -z "$ac_cv_prog_LIPO"; then
15094 ac_ct_LIPO=$LIPO
15095 # Extract the first word of "lipo", so it can be a program name with args.
15096 set dummy lipo; ac_word=$2
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15098 $as_echo_n "checking for $ac_word... " >&6; }
15099 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15100 $as_echo_n "(cached) " >&6
15101 else
15102 if test -n "$ac_ct_LIPO"; then
15103 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15104 else
15105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15106 for as_dir in $PATH
15107 do
15108 IFS=$as_save_IFS
15109 test -z "$as_dir" && as_dir=.
15110 for ac_exec_ext in '' $ac_executable_extensions; do
15111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15112 ac_cv_prog_ac_ct_LIPO="lipo"
15113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15114 break 2
15115 fi
15116 done
15117 done
15118 IFS=$as_save_IFS
15119
15120 fi
15121 fi
15122 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15123 if test -n "$ac_ct_LIPO"; then
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15125 $as_echo "$ac_ct_LIPO" >&6; }
15126 else
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15128 $as_echo "no" >&6; }
15129 fi
15130
15131 if test "x$ac_ct_LIPO" = x; then
15132 LIPO=":"
15133 else
15134 case $cross_compiling:$ac_tool_warned in
15135 yes:)
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15138 ac_tool_warned=yes ;;
15139 esac
15140 LIPO=$ac_ct_LIPO
15141 fi
15142 else
15143 LIPO="$ac_cv_prog_LIPO"
15144 fi
15145
15146 if test -n "$ac_tool_prefix"; then
15147 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15148 set dummy ${ac_tool_prefix}otool; ac_word=$2
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15150 $as_echo_n "checking for $ac_word... " >&6; }
15151 if ${ac_cv_prog_OTOOL+:} false; then :
15152 $as_echo_n "(cached) " >&6
15153 else
15154 if test -n "$OTOOL"; then
15155 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15156 else
15157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15158 for as_dir in $PATH
15159 do
15160 IFS=$as_save_IFS
15161 test -z "$as_dir" && as_dir=.
15162 for ac_exec_ext in '' $ac_executable_extensions; do
15163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15164 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15166 break 2
15167 fi
15168 done
15169 done
15170 IFS=$as_save_IFS
15171
15172 fi
15173 fi
15174 OTOOL=$ac_cv_prog_OTOOL
15175 if test -n "$OTOOL"; then
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15177 $as_echo "$OTOOL" >&6; }
15178 else
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15180 $as_echo "no" >&6; }
15181 fi
15182
15183
15184 fi
15185 if test -z "$ac_cv_prog_OTOOL"; then
15186 ac_ct_OTOOL=$OTOOL
15187 # Extract the first word of "otool", so it can be a program name with args.
15188 set dummy otool; ac_word=$2
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15190 $as_echo_n "checking for $ac_word... " >&6; }
15191 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15192 $as_echo_n "(cached) " >&6
15193 else
15194 if test -n "$ac_ct_OTOOL"; then
15195 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15196 else
15197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15198 for as_dir in $PATH
15199 do
15200 IFS=$as_save_IFS
15201 test -z "$as_dir" && as_dir=.
15202 for ac_exec_ext in '' $ac_executable_extensions; do
15203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15204 ac_cv_prog_ac_ct_OTOOL="otool"
15205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15206 break 2
15207 fi
15208 done
15209 done
15210 IFS=$as_save_IFS
15211
15212 fi
15213 fi
15214 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15215 if test -n "$ac_ct_OTOOL"; then
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15217 $as_echo "$ac_ct_OTOOL" >&6; }
15218 else
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15220 $as_echo "no" >&6; }
15221 fi
15222
15223 if test "x$ac_ct_OTOOL" = x; then
15224 OTOOL=":"
15225 else
15226 case $cross_compiling:$ac_tool_warned in
15227 yes:)
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15230 ac_tool_warned=yes ;;
15231 esac
15232 OTOOL=$ac_ct_OTOOL
15233 fi
15234 else
15235 OTOOL="$ac_cv_prog_OTOOL"
15236 fi
15237
15238 if test -n "$ac_tool_prefix"; then
15239 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15240 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15242 $as_echo_n "checking for $ac_word... " >&6; }
15243 if ${ac_cv_prog_OTOOL64+:} false; then :
15244 $as_echo_n "(cached) " >&6
15245 else
15246 if test -n "$OTOOL64"; then
15247 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15248 else
15249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15250 for as_dir in $PATH
15251 do
15252 IFS=$as_save_IFS
15253 test -z "$as_dir" && as_dir=.
15254 for ac_exec_ext in '' $ac_executable_extensions; do
15255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15256 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15258 break 2
15259 fi
15260 done
15261 done
15262 IFS=$as_save_IFS
15263
15264 fi
15265 fi
15266 OTOOL64=$ac_cv_prog_OTOOL64
15267 if test -n "$OTOOL64"; then
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15269 $as_echo "$OTOOL64" >&6; }
15270 else
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15272 $as_echo "no" >&6; }
15273 fi
15274
15275
15276 fi
15277 if test -z "$ac_cv_prog_OTOOL64"; then
15278 ac_ct_OTOOL64=$OTOOL64
15279 # Extract the first word of "otool64", so it can be a program name with args.
15280 set dummy otool64; ac_word=$2
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15282 $as_echo_n "checking for $ac_word... " >&6; }
15283 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15284 $as_echo_n "(cached) " >&6
15285 else
15286 if test -n "$ac_ct_OTOOL64"; then
15287 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15288 else
15289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15290 for as_dir in $PATH
15291 do
15292 IFS=$as_save_IFS
15293 test -z "$as_dir" && as_dir=.
15294 for ac_exec_ext in '' $ac_executable_extensions; do
15295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15296 ac_cv_prog_ac_ct_OTOOL64="otool64"
15297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15298 break 2
15299 fi
15300 done
15301 done
15302 IFS=$as_save_IFS
15303
15304 fi
15305 fi
15306 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15307 if test -n "$ac_ct_OTOOL64"; then
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15309 $as_echo "$ac_ct_OTOOL64" >&6; }
15310 else
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15312 $as_echo "no" >&6; }
15313 fi
15314
15315 if test "x$ac_ct_OTOOL64" = x; then
15316 OTOOL64=":"
15317 else
15318 case $cross_compiling:$ac_tool_warned in
15319 yes:)
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15322 ac_tool_warned=yes ;;
15323 esac
15324 OTOOL64=$ac_ct_OTOOL64
15325 fi
15326 else
15327 OTOOL64="$ac_cv_prog_OTOOL64"
15328 fi
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15357 $as_echo_n "checking for -single_module linker flag... " >&6; }
15358 if ${lt_cv_apple_cc_single_mod+:} false; then :
15359 $as_echo_n "(cached) " >&6
15360 else
15361 lt_cv_apple_cc_single_mod=no
15362 if test -z "${LT_MULTI_MODULE}"; then
15363 # By default we will add the -single_module flag. You can override
15364 # by either setting the environment variable LT_MULTI_MODULE
15365 # non-empty at configure time, or by adding -multi_module to the
15366 # link flags.
15367 rm -rf libconftest.dylib*
15368 echo "int foo(void){return 1;}" > conftest.c
15369 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15370 -dynamiclib -Wl,-single_module conftest.c" >&5
15371 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15372 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15373 _lt_result=$?
15374 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15375 lt_cv_apple_cc_single_mod=yes
15376 else
15377 cat conftest.err >&5
15378 fi
15379 rm -rf libconftest.dylib*
15380 rm -f conftest.*
15381 fi
15382 fi
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15384 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15386 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15387 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15388 $as_echo_n "(cached) " >&6
15389 else
15390 lt_cv_ld_exported_symbols_list=no
15391 save_LDFLAGS=$LDFLAGS
15392 echo "_main" > conftest.sym
15393 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15395 /* end confdefs.h. */
15396
15397 int
15398 main ()
15399 {
15400
15401 ;
15402 return 0;
15403 }
15404 _ACEOF
15405 if ac_fn_c_try_link "$LINENO"; then :
15406 lt_cv_ld_exported_symbols_list=yes
15407 else
15408 lt_cv_ld_exported_symbols_list=no
15409 fi
15410 rm -f core conftest.err conftest.$ac_objext \
15411 conftest$ac_exeext conftest.$ac_ext
15412 LDFLAGS="$save_LDFLAGS"
15413
15414 fi
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15416 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15418 $as_echo_n "checking for -force_load linker flag... " >&6; }
15419 if ${lt_cv_ld_force_load+:} false; then :
15420 $as_echo_n "(cached) " >&6
15421 else
15422 lt_cv_ld_force_load=no
15423 cat > conftest.c << _LT_EOF
15424 int forced_loaded() { return 2;}
15425 _LT_EOF
15426 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15427 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15428 echo "$AR cru libconftest.a conftest.o" >&5
15429 $AR cru libconftest.a conftest.o 2>&5
15430 cat > conftest.c << _LT_EOF
15431 int main() { return 0;}
15432 _LT_EOF
15433 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15434 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15435 _lt_result=$?
15436 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15437 lt_cv_ld_force_load=yes
15438 else
15439 cat conftest.err >&5
15440 fi
15441 rm -f conftest.err libconftest.a conftest conftest.c
15442 rm -rf conftest.dSYM
15443
15444 fi
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15446 $as_echo "$lt_cv_ld_force_load" >&6; }
15447 case $host_os in
15448 rhapsody* | darwin1.[012])
15449 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15450 darwin1.*)
15451 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15452 darwin*) # darwin 5.x on
15453 # if running on 10.5 or later, the deployment target defaults
15454 # to the OS version, if on x86, and 10.4, the deployment
15455 # target defaults to 10.4. Don't you love it?
15456 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15457 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15458 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15459 10.[012][,.]*)
15460 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15461 10.*)
15462 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15463 esac
15464 ;;
15465 esac
15466 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15467 _lt_dar_single_mod='$single_module'
15468 fi
15469 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15470 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15471 else
15472 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15473 fi
15474 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15475 _lt_dsymutil='~$DSYMUTIL $lib || :'
15476 else
15477 _lt_dsymutil=
15478 fi
15479 ;;
15480 esac
15481
15482
15483 for ac_header in dlfcn.h
15484 do :
15485 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15486 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15487 cat >>confdefs.h <<_ACEOF
15488 #define HAVE_DLFCN_H 1
15489 _ACEOF
15490
15491 fi
15492 done
15493
15494
15495
15496
15497
15498 # Set options
15499
15500
15501
15502 enable_dlopen=no
15503
15504
15505 enable_win32_dll=no
15506
15507
15508 # Check whether --enable-shared was given.
15509 if test "${enable_shared+set}" = set; then :
15510 enableval=$enable_shared; p=${PACKAGE-default}
15511 case $enableval in
15512 yes) enable_shared=yes ;;
15513 no) enable_shared=no ;;
15514 *)
15515 enable_shared=no
15516 # Look at the argument we got. We use all the common list separators.
15517 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15518 for pkg in $enableval; do
15519 IFS="$lt_save_ifs"
15520 if test "X$pkg" = "X$p"; then
15521 enable_shared=yes
15522 fi
15523 done
15524 IFS="$lt_save_ifs"
15525 ;;
15526 esac
15527 else
15528 enable_shared=yes
15529 fi
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539 # Check whether --enable-static was given.
15540 if test "${enable_static+set}" = set; then :
15541 enableval=$enable_static; p=${PACKAGE-default}
15542 case $enableval in
15543 yes) enable_static=yes ;;
15544 no) enable_static=no ;;
15545 *)
15546 enable_static=no
15547 # Look at the argument we got. We use all the common list separators.
15548 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15549 for pkg in $enableval; do
15550 IFS="$lt_save_ifs"
15551 if test "X$pkg" = "X$p"; then
15552 enable_static=yes
15553 fi
15554 done
15555 IFS="$lt_save_ifs"
15556 ;;
15557 esac
15558 else
15559 enable_static=yes
15560 fi
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571 # Check whether --with-pic was given.
15572 if test "${with_pic+set}" = set; then :
15573 withval=$with_pic; pic_mode="$withval"
15574 else
15575 pic_mode=default
15576 fi
15577
15578
15579 test -z "$pic_mode" && pic_mode=default
15580
15581
15582
15583
15584
15585
15586
15587 # Check whether --enable-fast-install was given.
15588 if test "${enable_fast_install+set}" = set; then :
15589 enableval=$enable_fast_install; p=${PACKAGE-default}
15590 case $enableval in
15591 yes) enable_fast_install=yes ;;
15592 no) enable_fast_install=no ;;
15593 *)
15594 enable_fast_install=no
15595 # Look at the argument we got. We use all the common list separators.
15596 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15597 for pkg in $enableval; do
15598 IFS="$lt_save_ifs"
15599 if test "X$pkg" = "X$p"; then
15600 enable_fast_install=yes
15601 fi
15602 done
15603 IFS="$lt_save_ifs"
15604 ;;
15605 esac
15606 else
15607 enable_fast_install=yes
15608 fi
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620 # This can be used to rebuild libtool when needed
15621 LIBTOOL_DEPS="$ltmain"
15622
15623 # Always use our own libtool.
15624 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651 test -z "$LN_S" && LN_S="ln -s"
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666 if test -n "${ZSH_VERSION+set}" ; then
15667 setopt NO_GLOB_SUBST
15668 fi
15669
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15671 $as_echo_n "checking for objdir... " >&6; }
15672 if ${lt_cv_objdir+:} false; then :
15673 $as_echo_n "(cached) " >&6
15674 else
15675 rm -f .libs 2>/dev/null
15676 mkdir .libs 2>/dev/null
15677 if test -d .libs; then
15678 lt_cv_objdir=.libs
15679 else
15680 # MS-DOS does not allow filenames that begin with a dot.
15681 lt_cv_objdir=_libs
15682 fi
15683 rmdir .libs 2>/dev/null
15684 fi
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15686 $as_echo "$lt_cv_objdir" >&6; }
15687 objdir=$lt_cv_objdir
15688
15689
15690
15691
15692
15693 cat >>confdefs.h <<_ACEOF
15694 #define LT_OBJDIR "$lt_cv_objdir/"
15695 _ACEOF
15696
15697
15698
15699
15700 case $host_os in
15701 aix3*)
15702 # AIX sometimes has problems with the GCC collect2 program. For some
15703 # reason, if we set the COLLECT_NAMES environment variable, the problems
15704 # vanish in a puff of smoke.
15705 if test "X${COLLECT_NAMES+set}" != Xset; then
15706 COLLECT_NAMES=
15707 export COLLECT_NAMES
15708 fi
15709 ;;
15710 esac
15711
15712 # Global variables:
15713 ofile=libtool
15714 can_build_shared=yes
15715
15716 # All known linkers require a `.a' archive for static linking (except MSVC,
15717 # which needs '.lib').
15718 libext=a
15719
15720 with_gnu_ld="$lt_cv_prog_gnu_ld"
15721
15722 old_CC="$CC"
15723 old_CFLAGS="$CFLAGS"
15724
15725 # Set sane defaults for various variables
15726 test -z "$CC" && CC=cc
15727 test -z "$LTCC" && LTCC=$CC
15728 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15729 test -z "$LD" && LD=ld
15730 test -z "$ac_objext" && ac_objext=o
15731
15732 for cc_temp in $compiler""; do
15733 case $cc_temp in
15734 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15735 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15736 \-*) ;;
15737 *) break;;
15738 esac
15739 done
15740 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15741
15742
15743 # Only perform the check for file, if the check method requires it
15744 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15745 case $deplibs_check_method in
15746 file_magic*)
15747 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15749 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15750 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15751 $as_echo_n "(cached) " >&6
15752 else
15753 case $MAGIC_CMD in
15754 [\\/*] | ?:[\\/]*)
15755 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15756 ;;
15757 *)
15758 lt_save_MAGIC_CMD="$MAGIC_CMD"
15759 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15760 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15761 for ac_dir in $ac_dummy; do
15762 IFS="$lt_save_ifs"
15763 test -z "$ac_dir" && ac_dir=.
15764 if test -f $ac_dir/${ac_tool_prefix}file; then
15765 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15766 if test -n "$file_magic_test_file"; then
15767 case $deplibs_check_method in
15768 "file_magic "*)
15769 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15770 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15771 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15772 $EGREP "$file_magic_regex" > /dev/null; then
15773 :
15774 else
15775 cat <<_LT_EOF 1>&2
15776
15777 *** Warning: the command libtool uses to detect shared libraries,
15778 *** $file_magic_cmd, produces output that libtool cannot recognize.
15779 *** The result is that libtool may fail to recognize shared libraries
15780 *** as such. This will affect the creation of libtool libraries that
15781 *** depend on shared libraries, but programs linked with such libtool
15782 *** libraries will work regardless of this problem. Nevertheless, you
15783 *** may want to report the problem to your system manager and/or to
15784 *** bug-libtool@gnu.org
15785
15786 _LT_EOF
15787 fi ;;
15788 esac
15789 fi
15790 break
15791 fi
15792 done
15793 IFS="$lt_save_ifs"
15794 MAGIC_CMD="$lt_save_MAGIC_CMD"
15795 ;;
15796 esac
15797 fi
15798
15799 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15800 if test -n "$MAGIC_CMD"; then
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15802 $as_echo "$MAGIC_CMD" >&6; }
15803 else
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15805 $as_echo "no" >&6; }
15806 fi
15807
15808
15809
15810
15811
15812 if test -z "$lt_cv_path_MAGIC_CMD"; then
15813 if test -n "$ac_tool_prefix"; then
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15815 $as_echo_n "checking for file... " >&6; }
15816 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15817 $as_echo_n "(cached) " >&6
15818 else
15819 case $MAGIC_CMD in
15820 [\\/*] | ?:[\\/]*)
15821 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15822 ;;
15823 *)
15824 lt_save_MAGIC_CMD="$MAGIC_CMD"
15825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15826 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15827 for ac_dir in $ac_dummy; do
15828 IFS="$lt_save_ifs"
15829 test -z "$ac_dir" && ac_dir=.
15830 if test -f $ac_dir/file; then
15831 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15832 if test -n "$file_magic_test_file"; then
15833 case $deplibs_check_method in
15834 "file_magic "*)
15835 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15836 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15837 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15838 $EGREP "$file_magic_regex" > /dev/null; then
15839 :
15840 else
15841 cat <<_LT_EOF 1>&2
15842
15843 *** Warning: the command libtool uses to detect shared libraries,
15844 *** $file_magic_cmd, produces output that libtool cannot recognize.
15845 *** The result is that libtool may fail to recognize shared libraries
15846 *** as such. This will affect the creation of libtool libraries that
15847 *** depend on shared libraries, but programs linked with such libtool
15848 *** libraries will work regardless of this problem. Nevertheless, you
15849 *** may want to report the problem to your system manager and/or to
15850 *** bug-libtool@gnu.org
15851
15852 _LT_EOF
15853 fi ;;
15854 esac
15855 fi
15856 break
15857 fi
15858 done
15859 IFS="$lt_save_ifs"
15860 MAGIC_CMD="$lt_save_MAGIC_CMD"
15861 ;;
15862 esac
15863 fi
15864
15865 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15866 if test -n "$MAGIC_CMD"; then
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15868 $as_echo "$MAGIC_CMD" >&6; }
15869 else
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15871 $as_echo "no" >&6; }
15872 fi
15873
15874
15875 else
15876 MAGIC_CMD=:
15877 fi
15878 fi
15879
15880 fi
15881 ;;
15882 esac
15883
15884 # Use C for the default configuration in the libtool script
15885
15886 lt_save_CC="$CC"
15887 ac_ext=c
15888 ac_cpp='$CPP $CPPFLAGS'
15889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15892
15893
15894 # Source file extension for C test sources.
15895 ac_ext=c
15896
15897 # Object file extension for compiled C test sources.
15898 objext=o
15899 objext=$objext
15900
15901 # Code to be used in simple compile tests
15902 lt_simple_compile_test_code="int some_variable = 0;"
15903
15904 # Code to be used in simple link tests
15905 lt_simple_link_test_code='int main(){return(0);}'
15906
15907
15908
15909
15910
15911
15912
15913 # If no C compiler was specified, use CC.
15914 LTCC=${LTCC-"$CC"}
15915
15916 # If no C compiler flags were specified, use CFLAGS.
15917 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15918
15919 # Allow CC to be a program name with arguments.
15920 compiler=$CC
15921
15922 # Save the default compiler, since it gets overwritten when the other
15923 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15924 compiler_DEFAULT=$CC
15925
15926 # save warnings/boilerplate of simple test code
15927 ac_outfile=conftest.$ac_objext
15928 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15929 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15930 _lt_compiler_boilerplate=`cat conftest.err`
15931 $RM conftest*
15932
15933 ac_outfile=conftest.$ac_objext
15934 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15935 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15936 _lt_linker_boilerplate=`cat conftest.err`
15937 $RM -r conftest*
15938
15939
15940 ## CAVEAT EMPTOR:
15941 ## There is no encapsulation within the following macros, do not change
15942 ## the running order or otherwise move them around unless you know exactly
15943 ## what you are doing...
15944 if test -n "$compiler"; then
15945
15946 lt_prog_compiler_no_builtin_flag=
15947
15948 if test "$GCC" = yes; then
15949 case $cc_basename in
15950 nvcc*)
15951 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15952 *)
15953 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15954 esac
15955
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15957 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15958 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15959 $as_echo_n "(cached) " >&6
15960 else
15961 lt_cv_prog_compiler_rtti_exceptions=no
15962 ac_outfile=conftest.$ac_objext
15963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15964 lt_compiler_flag="-fno-rtti -fno-exceptions"
15965 # Insert the option either (1) after the last *FLAGS variable, or
15966 # (2) before a word containing "conftest.", or (3) at the end.
15967 # Note that $ac_compile itself does not contain backslashes and begins
15968 # with a dollar sign (not a hyphen), so the echo should work correctly.
15969 # The option is referenced via a variable to avoid confusing sed.
15970 lt_compile=`echo "$ac_compile" | $SED \
15971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15973 -e 's:$: $lt_compiler_flag:'`
15974 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15975 (eval "$lt_compile" 2>conftest.err)
15976 ac_status=$?
15977 cat conftest.err >&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 if (exit $ac_status) && test -s "$ac_outfile"; then
15980 # The compiler can only warn and ignore the option if not recognized
15981 # So say no if there are warnings other than the usual output.
15982 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15984 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15985 lt_cv_prog_compiler_rtti_exceptions=yes
15986 fi
15987 fi
15988 $RM conftest*
15989
15990 fi
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15992 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15993
15994 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15995 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15996 else
15997 :
15998 fi
15999
16000 fi
16001
16002
16003
16004
16005
16006
16007 lt_prog_compiler_wl=
16008 lt_prog_compiler_pic=
16009 lt_prog_compiler_static=
16010
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16012 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16013
16014 if test "$GCC" = yes; then
16015 lt_prog_compiler_wl='-Wl,'
16016 lt_prog_compiler_static='-static'
16017
16018 case $host_os in
16019 aix*)
16020 # All AIX code is PIC.
16021 if test "$host_cpu" = ia64; then
16022 # AIX 5 now supports IA64 processor
16023 lt_prog_compiler_static='-Bstatic'
16024 fi
16025 lt_prog_compiler_pic='-fPIC'
16026 ;;
16027
16028 amigaos*)
16029 case $host_cpu in
16030 powerpc)
16031 # see comment about AmigaOS4 .so support
16032 lt_prog_compiler_pic='-fPIC'
16033 ;;
16034 m68k)
16035 # FIXME: we need at least 68020 code to build shared libraries, but
16036 # adding the `-m68020' flag to GCC prevents building anything better,
16037 # like `-m68040'.
16038 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16039 ;;
16040 esac
16041 ;;
16042
16043 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16044 # PIC is the default for these OSes.
16045 ;;
16046
16047 mingw* | cygwin* | pw32* | os2* | cegcc*)
16048 # This hack is so that the source file can tell whether it is being
16049 # built for inclusion in a dll (and should export symbols for example).
16050 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16051 # (--disable-auto-import) libraries
16052 lt_prog_compiler_pic='-DDLL_EXPORT'
16053 ;;
16054
16055 darwin* | rhapsody*)
16056 # PIC is the default on this platform
16057 # Common symbols not allowed in MH_DYLIB files
16058 lt_prog_compiler_pic='-fno-common'
16059 ;;
16060
16061 haiku*)
16062 # PIC is the default for Haiku.
16063 # The "-static" flag exists, but is broken.
16064 lt_prog_compiler_static=
16065 ;;
16066
16067 hpux*)
16068 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16069 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16070 # sets the default TLS model and affects inlining.
16071 case $host_cpu in
16072 hppa*64*)
16073 # +Z the default
16074 ;;
16075 *)
16076 lt_prog_compiler_pic='-fPIC'
16077 ;;
16078 esac
16079 ;;
16080
16081 interix[3-9]*)
16082 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16083 # Instead, we relocate shared libraries at runtime.
16084 ;;
16085
16086 msdosdjgpp*)
16087 # Just because we use GCC doesn't mean we suddenly get shared libraries
16088 # on systems that don't support them.
16089 lt_prog_compiler_can_build_shared=no
16090 enable_shared=no
16091 ;;
16092
16093 *nto* | *qnx*)
16094 # QNX uses GNU C++, but need to define -shared option too, otherwise
16095 # it will coredump.
16096 lt_prog_compiler_pic='-fPIC -shared'
16097 ;;
16098
16099 sysv4*MP*)
16100 if test -d /usr/nec; then
16101 lt_prog_compiler_pic=-Kconform_pic
16102 fi
16103 ;;
16104
16105 *)
16106 lt_prog_compiler_pic='-fPIC'
16107 ;;
16108 esac
16109
16110 case $cc_basename in
16111 nvcc*) # Cuda Compiler Driver 2.2
16112 lt_prog_compiler_wl='-Xlinker '
16113 lt_prog_compiler_pic='-Xcompiler -fPIC'
16114 ;;
16115 esac
16116 else
16117 # PORTME Check for flag to pass linker flags through the system compiler.
16118 case $host_os in
16119 aix*)
16120 lt_prog_compiler_wl='-Wl,'
16121 if test "$host_cpu" = ia64; then
16122 # AIX 5 now supports IA64 processor
16123 lt_prog_compiler_static='-Bstatic'
16124 else
16125 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16126 fi
16127 ;;
16128
16129 mingw* | cygwin* | pw32* | os2* | cegcc*)
16130 # This hack is so that the source file can tell whether it is being
16131 # built for inclusion in a dll (and should export symbols for example).
16132 lt_prog_compiler_pic='-DDLL_EXPORT'
16133 ;;
16134
16135 hpux9* | hpux10* | hpux11*)
16136 lt_prog_compiler_wl='-Wl,'
16137 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16138 # not for PA HP-UX.
16139 case $host_cpu in
16140 hppa*64*|ia64*)
16141 # +Z the default
16142 ;;
16143 *)
16144 lt_prog_compiler_pic='+Z'
16145 ;;
16146 esac
16147 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16148 lt_prog_compiler_static='${wl}-a ${wl}archive'
16149 ;;
16150
16151 irix5* | irix6* | nonstopux*)
16152 lt_prog_compiler_wl='-Wl,'
16153 # PIC (with -KPIC) is the default.
16154 lt_prog_compiler_static='-non_shared'
16155 ;;
16156
16157 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16158 case $cc_basename in
16159 # old Intel for x86_64 which still supported -KPIC.
16160 ecc*)
16161 lt_prog_compiler_wl='-Wl,'
16162 lt_prog_compiler_pic='-KPIC'
16163 lt_prog_compiler_static='-static'
16164 ;;
16165 # icc used to be incompatible with GCC.
16166 # ICC 10 doesn't accept -KPIC any more.
16167 icc* | ifort*)
16168 lt_prog_compiler_wl='-Wl,'
16169 lt_prog_compiler_pic='-fPIC'
16170 lt_prog_compiler_static='-static'
16171 ;;
16172 # Lahey Fortran 8.1.
16173 lf95*)
16174 lt_prog_compiler_wl='-Wl,'
16175 lt_prog_compiler_pic='--shared'
16176 lt_prog_compiler_static='--static'
16177 ;;
16178 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16179 # Portland Group compilers (*not* the Pentium gcc compiler,
16180 # which looks to be a dead project)
16181 lt_prog_compiler_wl='-Wl,'
16182 lt_prog_compiler_pic='-fpic'
16183 lt_prog_compiler_static='-Bstatic'
16184 ;;
16185 ccc*)
16186 lt_prog_compiler_wl='-Wl,'
16187 # All Alpha code is PIC.
16188 lt_prog_compiler_static='-non_shared'
16189 ;;
16190 xl* | bgxl* | bgf* | mpixl*)
16191 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16192 lt_prog_compiler_wl='-Wl,'
16193 lt_prog_compiler_pic='-qpic'
16194 lt_prog_compiler_static='-qstaticlink'
16195 ;;
16196 *)
16197 case `$CC -V 2>&1 | sed 5q` in
16198 *Sun\ F* | *Sun*Fortran*)
16199 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16200 lt_prog_compiler_pic='-KPIC'
16201 lt_prog_compiler_static='-Bstatic'
16202 lt_prog_compiler_wl=''
16203 ;;
16204 *Sun\ C*)
16205 # Sun C 5.9
16206 lt_prog_compiler_pic='-KPIC'
16207 lt_prog_compiler_static='-Bstatic'
16208 lt_prog_compiler_wl='-Wl,'
16209 ;;
16210 esac
16211 ;;
16212 esac
16213 ;;
16214
16215 newsos6)
16216 lt_prog_compiler_pic='-KPIC'
16217 lt_prog_compiler_static='-Bstatic'
16218 ;;
16219
16220 *nto* | *qnx*)
16221 # QNX uses GNU C++, but need to define -shared option too, otherwise
16222 # it will coredump.
16223 lt_prog_compiler_pic='-fPIC -shared'
16224 ;;
16225
16226 osf3* | osf4* | osf5*)
16227 lt_prog_compiler_wl='-Wl,'
16228 # All OSF/1 code is PIC.
16229 lt_prog_compiler_static='-non_shared'
16230 ;;
16231
16232 rdos*)
16233 lt_prog_compiler_static='-non_shared'
16234 ;;
16235
16236 solaris*)
16237 lt_prog_compiler_pic='-KPIC'
16238 lt_prog_compiler_static='-Bstatic'
16239 case $cc_basename in
16240 f77* | f90* | f95*)
16241 lt_prog_compiler_wl='-Qoption ld ';;
16242 *)
16243 lt_prog_compiler_wl='-Wl,';;
16244 esac
16245 ;;
16246
16247 sunos4*)
16248 lt_prog_compiler_wl='-Qoption ld '
16249 lt_prog_compiler_pic='-PIC'
16250 lt_prog_compiler_static='-Bstatic'
16251 ;;
16252
16253 sysv4 | sysv4.2uw2* | sysv4.3*)
16254 lt_prog_compiler_wl='-Wl,'
16255 lt_prog_compiler_pic='-KPIC'
16256 lt_prog_compiler_static='-Bstatic'
16257 ;;
16258
16259 sysv4*MP*)
16260 if test -d /usr/nec ;then
16261 lt_prog_compiler_pic='-Kconform_pic'
16262 lt_prog_compiler_static='-Bstatic'
16263 fi
16264 ;;
16265
16266 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16267 lt_prog_compiler_wl='-Wl,'
16268 lt_prog_compiler_pic='-KPIC'
16269 lt_prog_compiler_static='-Bstatic'
16270 ;;
16271
16272 unicos*)
16273 lt_prog_compiler_wl='-Wl,'
16274 lt_prog_compiler_can_build_shared=no
16275 ;;
16276
16277 uts4*)
16278 lt_prog_compiler_pic='-pic'
16279 lt_prog_compiler_static='-Bstatic'
16280 ;;
16281
16282 *)
16283 lt_prog_compiler_can_build_shared=no
16284 ;;
16285 esac
16286 fi
16287
16288 case $host_os in
16289 # For platforms which do not support PIC, -DPIC is meaningless:
16290 *djgpp*)
16291 lt_prog_compiler_pic=
16292 ;;
16293 *)
16294 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16295 ;;
16296 esac
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16298 $as_echo "$lt_prog_compiler_pic" >&6; }
16299
16300
16301
16302
16303
16304
16305 #
16306 # Check to make sure the PIC flag actually works.
16307 #
16308 if test -n "$lt_prog_compiler_pic"; then
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16310 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16311 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16312 $as_echo_n "(cached) " >&6
16313 else
16314 lt_cv_prog_compiler_pic_works=no
16315 ac_outfile=conftest.$ac_objext
16316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16317 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16318 # Insert the option either (1) after the last *FLAGS variable, or
16319 # (2) before a word containing "conftest.", or (3) at the end.
16320 # Note that $ac_compile itself does not contain backslashes and begins
16321 # with a dollar sign (not a hyphen), so the echo should work correctly.
16322 # The option is referenced via a variable to avoid confusing sed.
16323 lt_compile=`echo "$ac_compile" | $SED \
16324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16326 -e 's:$: $lt_compiler_flag:'`
16327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16328 (eval "$lt_compile" 2>conftest.err)
16329 ac_status=$?
16330 cat conftest.err >&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 if (exit $ac_status) && test -s "$ac_outfile"; then
16333 # The compiler can only warn and ignore the option if not recognized
16334 # So say no if there are warnings other than the usual output.
16335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16337 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16338 lt_cv_prog_compiler_pic_works=yes
16339 fi
16340 fi
16341 $RM conftest*
16342
16343 fi
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16345 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16346
16347 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16348 case $lt_prog_compiler_pic in
16349 "" | " "*) ;;
16350 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16351 esac
16352 else
16353 lt_prog_compiler_pic=
16354 lt_prog_compiler_can_build_shared=no
16355 fi
16356
16357 fi
16358
16359
16360
16361
16362
16363
16364 #
16365 # Check to make sure the static flag actually works.
16366 #
16367 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16369 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16370 if ${lt_cv_prog_compiler_static_works+:} false; then :
16371 $as_echo_n "(cached) " >&6
16372 else
16373 lt_cv_prog_compiler_static_works=no
16374 save_LDFLAGS="$LDFLAGS"
16375 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16376 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16377 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16378 # The linker can only warn and ignore the option if not recognized
16379 # So say no if there are warnings
16380 if test -s conftest.err; then
16381 # Append any errors to the config.log.
16382 cat conftest.err 1>&5
16383 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16385 if diff conftest.exp conftest.er2 >/dev/null; then
16386 lt_cv_prog_compiler_static_works=yes
16387 fi
16388 else
16389 lt_cv_prog_compiler_static_works=yes
16390 fi
16391 fi
16392 $RM -r conftest*
16393 LDFLAGS="$save_LDFLAGS"
16394
16395 fi
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16397 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16398
16399 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16400 :
16401 else
16402 lt_prog_compiler_static=
16403 fi
16404
16405
16406
16407
16408
16409
16410
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16412 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16413 if ${lt_cv_prog_compiler_c_o+:} false; then :
16414 $as_echo_n "(cached) " >&6
16415 else
16416 lt_cv_prog_compiler_c_o=no
16417 $RM -r conftest 2>/dev/null
16418 mkdir conftest
16419 cd conftest
16420 mkdir out
16421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16422
16423 lt_compiler_flag="-o out/conftest2.$ac_objext"
16424 # Insert the option either (1) after the last *FLAGS variable, or
16425 # (2) before a word containing "conftest.", or (3) at the end.
16426 # Note that $ac_compile itself does not contain backslashes and begins
16427 # with a dollar sign (not a hyphen), so the echo should work correctly.
16428 lt_compile=`echo "$ac_compile" | $SED \
16429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16431 -e 's:$: $lt_compiler_flag:'`
16432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16433 (eval "$lt_compile" 2>out/conftest.err)
16434 ac_status=$?
16435 cat out/conftest.err >&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16438 then
16439 # The compiler can only warn and ignore the option if not recognized
16440 # So say no if there are warnings
16441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16442 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16443 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16444 lt_cv_prog_compiler_c_o=yes
16445 fi
16446 fi
16447 chmod u+w . 2>&5
16448 $RM conftest*
16449 # SGI C++ compiler will create directory out/ii_files/ for
16450 # template instantiation
16451 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16452 $RM out/* && rmdir out
16453 cd ..
16454 $RM -r conftest
16455 $RM conftest*
16456
16457 fi
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16459 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16460
16461
16462
16463
16464
16465
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16467 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16468 if ${lt_cv_prog_compiler_c_o+:} false; then :
16469 $as_echo_n "(cached) " >&6
16470 else
16471 lt_cv_prog_compiler_c_o=no
16472 $RM -r conftest 2>/dev/null
16473 mkdir conftest
16474 cd conftest
16475 mkdir out
16476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16477
16478 lt_compiler_flag="-o out/conftest2.$ac_objext"
16479 # Insert the option either (1) after the last *FLAGS variable, or
16480 # (2) before a word containing "conftest.", or (3) at the end.
16481 # Note that $ac_compile itself does not contain backslashes and begins
16482 # with a dollar sign (not a hyphen), so the echo should work correctly.
16483 lt_compile=`echo "$ac_compile" | $SED \
16484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16486 -e 's:$: $lt_compiler_flag:'`
16487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16488 (eval "$lt_compile" 2>out/conftest.err)
16489 ac_status=$?
16490 cat out/conftest.err >&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16493 then
16494 # The compiler can only warn and ignore the option if not recognized
16495 # So say no if there are warnings
16496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16497 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16498 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16499 lt_cv_prog_compiler_c_o=yes
16500 fi
16501 fi
16502 chmod u+w . 2>&5
16503 $RM conftest*
16504 # SGI C++ compiler will create directory out/ii_files/ for
16505 # template instantiation
16506 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16507 $RM out/* && rmdir out
16508 cd ..
16509 $RM -r conftest
16510 $RM conftest*
16511
16512 fi
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16514 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16515
16516
16517
16518
16519 hard_links="nottested"
16520 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16521 # do not overwrite the value of need_locks provided by the user
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16523 $as_echo_n "checking if we can lock with hard links... " >&6; }
16524 hard_links=yes
16525 $RM conftest*
16526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16527 touch conftest.a
16528 ln conftest.a conftest.b 2>&5 || hard_links=no
16529 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16531 $as_echo "$hard_links" >&6; }
16532 if test "$hard_links" = no; then
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16534 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16535 need_locks=warn
16536 fi
16537 else
16538 need_locks=no
16539 fi
16540
16541
16542
16543
16544
16545
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16547 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16548
16549 runpath_var=
16550 allow_undefined_flag=
16551 always_export_symbols=no
16552 archive_cmds=
16553 archive_expsym_cmds=
16554 compiler_needs_object=no
16555 enable_shared_with_static_runtimes=no
16556 export_dynamic_flag_spec=
16557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16558 hardcode_automatic=no
16559 hardcode_direct=no
16560 hardcode_direct_absolute=no
16561 hardcode_libdir_flag_spec=
16562 hardcode_libdir_flag_spec_ld=
16563 hardcode_libdir_separator=
16564 hardcode_minus_L=no
16565 hardcode_shlibpath_var=unsupported
16566 inherit_rpath=no
16567 link_all_deplibs=unknown
16568 module_cmds=
16569 module_expsym_cmds=
16570 old_archive_from_new_cmds=
16571 old_archive_from_expsyms_cmds=
16572 thread_safe_flag_spec=
16573 whole_archive_flag_spec=
16574 # include_expsyms should be a list of space-separated symbols to be *always*
16575 # included in the symbol list
16576 include_expsyms=
16577 # exclude_expsyms can be an extended regexp of symbols to exclude
16578 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16579 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16580 # as well as any symbol that contains `d'.
16581 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16582 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16583 # platforms (ab)use it in PIC code, but their linkers get confused if
16584 # the symbol is explicitly referenced. Since portable code cannot
16585 # rely on this symbol name, it's probably fine to never include it in
16586 # preloaded symbol tables.
16587 # Exclude shared library initialization/finalization symbols.
16588 extract_expsyms_cmds=
16589
16590 case $host_os in
16591 cygwin* | mingw* | pw32* | cegcc*)
16592 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16593 # When not using gcc, we currently assume that we are using
16594 # Microsoft Visual C++.
16595 if test "$GCC" != yes; then
16596 with_gnu_ld=no
16597 fi
16598 ;;
16599 interix*)
16600 # we just hope/assume this is gcc and not c89 (= MSVC++)
16601 with_gnu_ld=yes
16602 ;;
16603 openbsd*)
16604 with_gnu_ld=no
16605 ;;
16606 esac
16607
16608 ld_shlibs=yes
16609
16610 # On some targets, GNU ld is compatible enough with the native linker
16611 # that we're better off using the native interface for both.
16612 lt_use_gnu_ld_interface=no
16613 if test "$with_gnu_ld" = yes; then
16614 case $host_os in
16615 aix*)
16616 # The AIX port of GNU ld has always aspired to compatibility
16617 # with the native linker. However, as the warning in the GNU ld
16618 # block says, versions before 2.19.5* couldn't really create working
16619 # shared libraries, regardless of the interface used.
16620 case `$LD -v 2>&1` in
16621 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16622 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16623 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16624 *)
16625 lt_use_gnu_ld_interface=yes
16626 ;;
16627 esac
16628 ;;
16629 *)
16630 lt_use_gnu_ld_interface=yes
16631 ;;
16632 esac
16633 fi
16634
16635 if test "$lt_use_gnu_ld_interface" = yes; then
16636 # If archive_cmds runs LD, not CC, wlarc should be empty
16637 wlarc='${wl}'
16638
16639 # Set some defaults for GNU ld with shared library support. These
16640 # are reset later if shared libraries are not supported. Putting them
16641 # here allows them to be overridden if necessary.
16642 runpath_var=LD_RUN_PATH
16643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16644 export_dynamic_flag_spec='${wl}--export-dynamic'
16645 # ancient GNU ld didn't support --whole-archive et. al.
16646 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16647 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16648 else
16649 whole_archive_flag_spec=
16650 fi
16651 supports_anon_versioning=no
16652 case `$LD -v 2>&1` in
16653 *GNU\ gold*) supports_anon_versioning=yes ;;
16654 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16655 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16656 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16657 *\ 2.11.*) ;; # other 2.11 versions
16658 *) supports_anon_versioning=yes ;;
16659 esac
16660
16661 # See if GNU ld supports shared libraries.
16662 case $host_os in
16663 aix[3-9]*)
16664 # On AIX/PPC, the GNU linker is very broken
16665 if test "$host_cpu" != ia64; then
16666 ld_shlibs=no
16667 cat <<_LT_EOF 1>&2
16668
16669 *** Warning: the GNU linker, at least up to release 2.19, is reported
16670 *** to be unable to reliably create shared libraries on AIX.
16671 *** Therefore, libtool is disabling shared libraries support. If you
16672 *** really care for shared libraries, you may want to install binutils
16673 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16674 *** You will then need to restart the configuration process.
16675
16676 _LT_EOF
16677 fi
16678 ;;
16679
16680 amigaos*)
16681 case $host_cpu in
16682 powerpc)
16683 # see comment about AmigaOS4 .so support
16684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16685 archive_expsym_cmds=''
16686 ;;
16687 m68k)
16688 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)'
16689 hardcode_libdir_flag_spec='-L$libdir'
16690 hardcode_minus_L=yes
16691 ;;
16692 esac
16693 ;;
16694
16695 beos*)
16696 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16697 allow_undefined_flag=unsupported
16698 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16699 # support --undefined. This deserves some investigation. FIXME
16700 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16701 else
16702 ld_shlibs=no
16703 fi
16704 ;;
16705
16706 cygwin* | mingw* | pw32* | cegcc*)
16707 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16708 # as there is no search path for DLLs.
16709 hardcode_libdir_flag_spec='-L$libdir'
16710 export_dynamic_flag_spec='${wl}--export-all-symbols'
16711 allow_undefined_flag=unsupported
16712 always_export_symbols=no
16713 enable_shared_with_static_runtimes=yes
16714 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16715
16716 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16718 # If the export-symbols file already is a .def file (1st line
16719 # is EXPORTS), use it as is; otherwise, prepend...
16720 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16721 cp $export_symbols $output_objdir/$soname.def;
16722 else
16723 echo EXPORTS > $output_objdir/$soname.def;
16724 cat $export_symbols >> $output_objdir/$soname.def;
16725 fi~
16726 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16727 else
16728 ld_shlibs=no
16729 fi
16730 ;;
16731
16732 haiku*)
16733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16734 link_all_deplibs=yes
16735 ;;
16736
16737 interix[3-9]*)
16738 hardcode_direct=no
16739 hardcode_shlibpath_var=no
16740 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16741 export_dynamic_flag_spec='${wl}-E'
16742 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16743 # Instead, shared libraries are loaded at an image base (0x10000000 by
16744 # default) and relocated if they conflict, which is a slow very memory
16745 # consuming and fragmenting process. To avoid this, we pick a random,
16746 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16747 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16748 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16749 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'
16750 ;;
16751
16752 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16753 tmp_diet=no
16754 if test "$host_os" = linux-dietlibc; then
16755 case $cc_basename in
16756 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16757 esac
16758 fi
16759 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16760 && test "$tmp_diet" = no
16761 then
16762 tmp_addflag=' $pic_flag'
16763 tmp_sharedflag='-shared'
16764 case $cc_basename,$host_cpu in
16765 pgcc*) # Portland Group C compiler
16766 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'
16767 tmp_addflag=' $pic_flag'
16768 ;;
16769 pgf77* | pgf90* | pgf95* | pgfortran*)
16770 # Portland Group f77 and f90 compilers
16771 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'
16772 tmp_addflag=' $pic_flag -Mnomain' ;;
16773 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16774 tmp_addflag=' -i_dynamic' ;;
16775 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16776 tmp_addflag=' -i_dynamic -nofor_main' ;;
16777 ifc* | ifort*) # Intel Fortran compiler
16778 tmp_addflag=' -nofor_main' ;;
16779 lf95*) # Lahey Fortran 8.1
16780 whole_archive_flag_spec=
16781 tmp_sharedflag='--shared' ;;
16782 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16783 tmp_sharedflag='-qmkshrobj'
16784 tmp_addflag= ;;
16785 nvcc*) # Cuda Compiler Driver 2.2
16786 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'
16787 compiler_needs_object=yes
16788 ;;
16789 esac
16790 case `$CC -V 2>&1 | sed 5q` in
16791 *Sun\ C*) # Sun C 5.9
16792 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'
16793 compiler_needs_object=yes
16794 tmp_sharedflag='-G' ;;
16795 *Sun\ F*) # Sun Fortran 8.3
16796 tmp_sharedflag='-G' ;;
16797 esac
16798 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16799
16800 if test "x$supports_anon_versioning" = xyes; then
16801 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16802 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16803 echo "local: *; };" >> $output_objdir/$libname.ver~
16804 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16805 fi
16806
16807 case $cc_basename in
16808 xlf* | bgf* | bgxlf* | mpixlf*)
16809 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16810 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16811 hardcode_libdir_flag_spec=
16812 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16813 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16814 if test "x$supports_anon_versioning" = xyes; then
16815 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16816 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16817 echo "local: *; };" >> $output_objdir/$libname.ver~
16818 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16819 fi
16820 ;;
16821 esac
16822 else
16823 ld_shlibs=no
16824 fi
16825 ;;
16826
16827 netbsd*)
16828 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16829 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16830 wlarc=
16831 else
16832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16833 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16834 fi
16835 ;;
16836
16837 solaris*)
16838 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16839 ld_shlibs=no
16840 cat <<_LT_EOF 1>&2
16841
16842 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16843 *** create shared libraries on Solaris systems. Therefore, libtool
16844 *** is disabling shared libraries support. We urge you to upgrade GNU
16845 *** binutils to release 2.9.1 or newer. Another option is to modify
16846 *** your PATH or compiler configuration so that the native linker is
16847 *** used, and then restart.
16848
16849 _LT_EOF
16850 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16852 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16853 else
16854 ld_shlibs=no
16855 fi
16856 ;;
16857
16858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16859 case `$LD -v 2>&1` in
16860 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16861 ld_shlibs=no
16862 cat <<_LT_EOF 1>&2
16863
16864 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16865 *** reliably create shared libraries on SCO systems. Therefore, libtool
16866 *** is disabling shared libraries support. We urge you to upgrade GNU
16867 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16868 *** your PATH or compiler configuration so that the native linker is
16869 *** used, and then restart.
16870
16871 _LT_EOF
16872 ;;
16873 *)
16874 # For security reasons, it is highly recommended that you always
16875 # use absolute paths for naming shared libraries, and exclude the
16876 # DT_RUNPATH tag from executables and libraries. But doing so
16877 # requires that you compile everything twice, which is a pain.
16878 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16881 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16882 else
16883 ld_shlibs=no
16884 fi
16885 ;;
16886 esac
16887 ;;
16888
16889 sunos4*)
16890 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16891 wlarc=
16892 hardcode_direct=yes
16893 hardcode_shlibpath_var=no
16894 ;;
16895
16896 *)
16897 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16899 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16900 else
16901 ld_shlibs=no
16902 fi
16903 ;;
16904 esac
16905
16906 if test "$ld_shlibs" = no; then
16907 runpath_var=
16908 hardcode_libdir_flag_spec=
16909 export_dynamic_flag_spec=
16910 whole_archive_flag_spec=
16911 fi
16912 else
16913 # PORTME fill in a description of your system's linker (not GNU ld)
16914 case $host_os in
16915 aix3*)
16916 allow_undefined_flag=unsupported
16917 always_export_symbols=yes
16918 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'
16919 # Note: this linker hardcodes the directories in LIBPATH if there
16920 # are no directories specified by -L.
16921 hardcode_minus_L=yes
16922 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16923 # Neither direct hardcoding nor static linking is supported with a
16924 # broken collect2.
16925 hardcode_direct=unsupported
16926 fi
16927 ;;
16928
16929 aix[4-9]*)
16930 if test "$host_cpu" = ia64; then
16931 # On IA64, the linker does run time linking by default, so we don't
16932 # have to do anything special.
16933 aix_use_runtimelinking=no
16934 exp_sym_flag='-Bexport'
16935 no_entry_flag=""
16936 else
16937 # If we're using GNU nm, then we don't want the "-C" option.
16938 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16939 # Also, AIX nm treats weak defined symbols like other global
16940 # defined symbols, whereas GNU nm marks them as "W".
16941 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16942 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'
16943 else
16944 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'
16945 fi
16946 aix_use_runtimelinking=no
16947
16948 # Test if we are trying to use run time linking or normal
16949 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16950 # need to do runtime linking.
16951 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16952 for ld_flag in $LDFLAGS; do
16953 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16954 aix_use_runtimelinking=yes
16955 break
16956 fi
16957 done
16958 ;;
16959 esac
16960
16961 exp_sym_flag='-bexport'
16962 no_entry_flag='-bnoentry'
16963 fi
16964
16965 # When large executables or shared objects are built, AIX ld can
16966 # have problems creating the table of contents. If linking a library
16967 # or program results in "error TOC overflow" add -mminimal-toc to
16968 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16969 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16970
16971 archive_cmds=''
16972 hardcode_direct=yes
16973 hardcode_direct_absolute=yes
16974 hardcode_libdir_separator=':'
16975 link_all_deplibs=yes
16976 file_list_spec='${wl}-f,'
16977
16978 if test "$GCC" = yes; then
16979 case $host_os in aix4.[012]|aix4.[012].*)
16980 # We only want to do this on AIX 4.2 and lower, the check
16981 # below for broken collect2 doesn't work under 4.3+
16982 collect2name=`${CC} -print-prog-name=collect2`
16983 if test -f "$collect2name" &&
16984 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16985 then
16986 # We have reworked collect2
16987 :
16988 else
16989 # We have old collect2
16990 hardcode_direct=unsupported
16991 # It fails to find uninstalled libraries when the uninstalled
16992 # path is not listed in the libpath. Setting hardcode_minus_L
16993 # to unsupported forces relinking
16994 hardcode_minus_L=yes
16995 hardcode_libdir_flag_spec='-L$libdir'
16996 hardcode_libdir_separator=
16997 fi
16998 ;;
16999 esac
17000 shared_flag='-shared'
17001 if test "$aix_use_runtimelinking" = yes; then
17002 shared_flag="$shared_flag "'${wl}-G'
17003 fi
17004 else
17005 # not using gcc
17006 if test "$host_cpu" = ia64; then
17007 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17008 # chokes on -Wl,-G. The following line is correct:
17009 shared_flag='-G'
17010 else
17011 if test "$aix_use_runtimelinking" = yes; then
17012 shared_flag='${wl}-G'
17013 else
17014 shared_flag='${wl}-bM:SRE'
17015 fi
17016 fi
17017 fi
17018
17019 export_dynamic_flag_spec='${wl}-bexpall'
17020 # It seems that -bexpall does not export symbols beginning with
17021 # underscore (_), so it is better to generate a list of symbols to export.
17022 always_export_symbols=yes
17023 if test "$aix_use_runtimelinking" = yes; then
17024 # Warning - without using the other runtime loading flags (-brtl),
17025 # -berok will link without error, but may produce a broken library.
17026 allow_undefined_flag='-berok'
17027 # Determine the default libpath from the value encoded in an
17028 # empty executable.
17029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17030 /* end confdefs.h. */
17031
17032 int
17033 main ()
17034 {
17035
17036 ;
17037 return 0;
17038 }
17039 _ACEOF
17040 if ac_fn_c_try_link "$LINENO"; then :
17041
17042 lt_aix_libpath_sed='
17043 /Import File Strings/,/^$/ {
17044 /^0/ {
17045 s/^0 *\(.*\)$/\1/
17046 p
17047 }
17048 }'
17049 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17050 # Check for a 64-bit object if we didn't find anything.
17051 if test -z "$aix_libpath"; then
17052 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17053 fi
17054 fi
17055 rm -f core conftest.err conftest.$ac_objext \
17056 conftest$ac_exeext conftest.$ac_ext
17057 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17058
17059 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17060 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"
17061 else
17062 if test "$host_cpu" = ia64; then
17063 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17064 allow_undefined_flag="-z nodefs"
17065 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"
17066 else
17067 # Determine the default libpath from the value encoded in an
17068 # empty executable.
17069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17070 /* end confdefs.h. */
17071
17072 int
17073 main ()
17074 {
17075
17076 ;
17077 return 0;
17078 }
17079 _ACEOF
17080 if ac_fn_c_try_link "$LINENO"; then :
17081
17082 lt_aix_libpath_sed='
17083 /Import File Strings/,/^$/ {
17084 /^0/ {
17085 s/^0 *\(.*\)$/\1/
17086 p
17087 }
17088 }'
17089 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17090 # Check for a 64-bit object if we didn't find anything.
17091 if test -z "$aix_libpath"; then
17092 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17093 fi
17094 fi
17095 rm -f core conftest.err conftest.$ac_objext \
17096 conftest$ac_exeext conftest.$ac_ext
17097 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17098
17099 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17100 # Warning - without using the other run time loading flags,
17101 # -berok will link without error, but may produce a broken library.
17102 no_undefined_flag=' ${wl}-bernotok'
17103 allow_undefined_flag=' ${wl}-berok'
17104 if test "$with_gnu_ld" = yes; then
17105 # We only use this code for GNU lds that support --whole-archive.
17106 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17107 else
17108 # Exported symbols can be pulled into shared objects from archives
17109 whole_archive_flag_spec='$convenience'
17110 fi
17111 archive_cmds_need_lc=yes
17112 # This is similar to how AIX traditionally builds its shared libraries.
17113 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'
17114 fi
17115 fi
17116 ;;
17117
17118 amigaos*)
17119 case $host_cpu in
17120 powerpc)
17121 # see comment about AmigaOS4 .so support
17122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17123 archive_expsym_cmds=''
17124 ;;
17125 m68k)
17126 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)'
17127 hardcode_libdir_flag_spec='-L$libdir'
17128 hardcode_minus_L=yes
17129 ;;
17130 esac
17131 ;;
17132
17133 bsdi[45]*)
17134 export_dynamic_flag_spec=-rdynamic
17135 ;;
17136
17137 cygwin* | mingw* | pw32* | cegcc*)
17138 # When not using gcc, we currently assume that we are using
17139 # Microsoft Visual C++.
17140 # hardcode_libdir_flag_spec is actually meaningless, as there is
17141 # no search path for DLLs.
17142 hardcode_libdir_flag_spec=' '
17143 allow_undefined_flag=unsupported
17144 # Tell ltmain to make .lib files, not .a files.
17145 libext=lib
17146 # Tell ltmain to make .dll files, not .so files.
17147 shrext_cmds=".dll"
17148 # FIXME: Setting linknames here is a bad hack.
17149 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17150 # The linker will automatically build a .lib file if we build a DLL.
17151 old_archive_from_new_cmds='true'
17152 # FIXME: Should let the user specify the lib program.
17153 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17154 fix_srcfile_path='`cygpath -w "$srcfile"`'
17155 enable_shared_with_static_runtimes=yes
17156 ;;
17157
17158 darwin* | rhapsody*)
17159
17160
17161 archive_cmds_need_lc=no
17162 hardcode_direct=no
17163 hardcode_automatic=yes
17164 hardcode_shlibpath_var=unsupported
17165 if test "$lt_cv_ld_force_load" = "yes"; then
17166 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\"`'
17167 else
17168 whole_archive_flag_spec=''
17169 fi
17170 link_all_deplibs=yes
17171 allow_undefined_flag="$_lt_dar_allow_undefined"
17172 case $cc_basename in
17173 ifort*) _lt_dar_can_shared=yes ;;
17174 *) _lt_dar_can_shared=$GCC ;;
17175 esac
17176 if test "$_lt_dar_can_shared" = "yes"; then
17177 output_verbose_link_cmd=func_echo_all
17178 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17179 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17180 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}"
17181 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}"
17182
17183 else
17184 ld_shlibs=no
17185 fi
17186
17187 ;;
17188
17189 dgux*)
17190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17191 hardcode_libdir_flag_spec='-L$libdir'
17192 hardcode_shlibpath_var=no
17193 ;;
17194
17195 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17196 # support. Future versions do this automatically, but an explicit c++rt0.o
17197 # does not break anything, and helps significantly (at the cost of a little
17198 # extra space).
17199 freebsd2.2*)
17200 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17201 hardcode_libdir_flag_spec='-R$libdir'
17202 hardcode_direct=yes
17203 hardcode_shlibpath_var=no
17204 ;;
17205
17206 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17207 freebsd2.*)
17208 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17209 hardcode_direct=yes
17210 hardcode_minus_L=yes
17211 hardcode_shlibpath_var=no
17212 ;;
17213
17214 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17215 freebsd* | dragonfly*)
17216 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17217 hardcode_libdir_flag_spec='-R$libdir'
17218 hardcode_direct=yes
17219 hardcode_shlibpath_var=no
17220 ;;
17221
17222 hpux9*)
17223 if test "$GCC" = yes; then
17224 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'
17225 else
17226 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'
17227 fi
17228 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17229 hardcode_libdir_separator=:
17230 hardcode_direct=yes
17231
17232 # hardcode_minus_L: Not really in the search PATH,
17233 # but as the default location of the library.
17234 hardcode_minus_L=yes
17235 export_dynamic_flag_spec='${wl}-E'
17236 ;;
17237
17238 hpux10*)
17239 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17240 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17241 else
17242 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17243 fi
17244 if test "$with_gnu_ld" = no; then
17245 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17246 hardcode_libdir_flag_spec_ld='+b $libdir'
17247 hardcode_libdir_separator=:
17248 hardcode_direct=yes
17249 hardcode_direct_absolute=yes
17250 export_dynamic_flag_spec='${wl}-E'
17251 # hardcode_minus_L: Not really in the search PATH,
17252 # but as the default location of the library.
17253 hardcode_minus_L=yes
17254 fi
17255 ;;
17256
17257 hpux11*)
17258 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17259 case $host_cpu in
17260 hppa*64*)
17261 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17262 ;;
17263 ia64*)
17264 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17265 ;;
17266 *)
17267 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17268 ;;
17269 esac
17270 else
17271 case $host_cpu in
17272 hppa*64*)
17273 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17274 ;;
17275 ia64*)
17276 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17277 ;;
17278 *)
17279
17280 # Older versions of the 11.00 compiler do not understand -b yet
17281 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17283 $as_echo_n "checking if $CC understands -b... " >&6; }
17284 if ${lt_cv_prog_compiler__b+:} false; then :
17285 $as_echo_n "(cached) " >&6
17286 else
17287 lt_cv_prog_compiler__b=no
17288 save_LDFLAGS="$LDFLAGS"
17289 LDFLAGS="$LDFLAGS -b"
17290 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17291 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17292 # The linker can only warn and ignore the option if not recognized
17293 # So say no if there are warnings
17294 if test -s conftest.err; then
17295 # Append any errors to the config.log.
17296 cat conftest.err 1>&5
17297 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17299 if diff conftest.exp conftest.er2 >/dev/null; then
17300 lt_cv_prog_compiler__b=yes
17301 fi
17302 else
17303 lt_cv_prog_compiler__b=yes
17304 fi
17305 fi
17306 $RM -r conftest*
17307 LDFLAGS="$save_LDFLAGS"
17308
17309 fi
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17311 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17312
17313 if test x"$lt_cv_prog_compiler__b" = xyes; then
17314 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17315 else
17316 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17317 fi
17318
17319 ;;
17320 esac
17321 fi
17322 if test "$with_gnu_ld" = no; then
17323 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17324 hardcode_libdir_separator=:
17325
17326 case $host_cpu in
17327 hppa*64*|ia64*)
17328 hardcode_direct=no
17329 hardcode_shlibpath_var=no
17330 ;;
17331 *)
17332 hardcode_direct=yes
17333 hardcode_direct_absolute=yes
17334 export_dynamic_flag_spec='${wl}-E'
17335
17336 # hardcode_minus_L: Not really in the search PATH,
17337 # but as the default location of the library.
17338 hardcode_minus_L=yes
17339 ;;
17340 esac
17341 fi
17342 ;;
17343
17344 irix5* | irix6* | nonstopux*)
17345 if test "$GCC" = yes; then
17346 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'
17347 # Try to use the -exported_symbol ld option, if it does not
17348 # work, assume that -exports_file does not work either and
17349 # implicitly export all symbols.
17350 save_LDFLAGS="$LDFLAGS"
17351 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17353 /* end confdefs.h. */
17354 int foo(void) {}
17355 _ACEOF
17356 if ac_fn_c_try_link "$LINENO"; then :
17357 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'
17358
17359 fi
17360 rm -f core conftest.err conftest.$ac_objext \
17361 conftest$ac_exeext conftest.$ac_ext
17362 LDFLAGS="$save_LDFLAGS"
17363 else
17364 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'
17365 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'
17366 fi
17367 archive_cmds_need_lc='no'
17368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17369 hardcode_libdir_separator=:
17370 inherit_rpath=yes
17371 link_all_deplibs=yes
17372 ;;
17373
17374 netbsd*)
17375 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17376 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17377 else
17378 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17379 fi
17380 hardcode_libdir_flag_spec='-R$libdir'
17381 hardcode_direct=yes
17382 hardcode_shlibpath_var=no
17383 ;;
17384
17385 newsos6)
17386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17387 hardcode_direct=yes
17388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17389 hardcode_libdir_separator=:
17390 hardcode_shlibpath_var=no
17391 ;;
17392
17393 *nto* | *qnx*)
17394 ;;
17395
17396 openbsd*)
17397 if test -f /usr/libexec/ld.so; then
17398 hardcode_direct=yes
17399 hardcode_shlibpath_var=no
17400 hardcode_direct_absolute=yes
17401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17402 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17403 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17404 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17405 export_dynamic_flag_spec='${wl}-E'
17406 else
17407 case $host_os in
17408 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17410 hardcode_libdir_flag_spec='-R$libdir'
17411 ;;
17412 *)
17413 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17414 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17415 ;;
17416 esac
17417 fi
17418 else
17419 ld_shlibs=no
17420 fi
17421 ;;
17422
17423 os2*)
17424 hardcode_libdir_flag_spec='-L$libdir'
17425 hardcode_minus_L=yes
17426 allow_undefined_flag=unsupported
17427 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'
17428 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17429 ;;
17430
17431 osf3*)
17432 if test "$GCC" = yes; then
17433 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17434 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'
17435 else
17436 allow_undefined_flag=' -expect_unresolved \*'
17437 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'
17438 fi
17439 archive_cmds_need_lc='no'
17440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17441 hardcode_libdir_separator=:
17442 ;;
17443
17444 osf4* | osf5*) # as osf3* with the addition of -msym flag
17445 if test "$GCC" = yes; then
17446 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17447 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'
17448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17449 else
17450 allow_undefined_flag=' -expect_unresolved \*'
17451 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'
17452 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~
17453 $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'
17454
17455 # Both c and cxx compiler support -rpath directly
17456 hardcode_libdir_flag_spec='-rpath $libdir'
17457 fi
17458 archive_cmds_need_lc='no'
17459 hardcode_libdir_separator=:
17460 ;;
17461
17462 solaris*)
17463 no_undefined_flag=' -z defs'
17464 if test "$GCC" = yes; then
17465 wlarc='${wl}'
17466 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17467 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17468 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17469 else
17470 case `$CC -V 2>&1` in
17471 *"Compilers 5.0"*)
17472 wlarc=''
17473 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17474 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17475 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17476 ;;
17477 *)
17478 wlarc='${wl}'
17479 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17480 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17481 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17482 ;;
17483 esac
17484 fi
17485 hardcode_libdir_flag_spec='-R$libdir'
17486 hardcode_shlibpath_var=no
17487 case $host_os in
17488 solaris2.[0-5] | solaris2.[0-5].*) ;;
17489 *)
17490 # The compiler driver will combine and reorder linker options,
17491 # but understands `-z linker_flag'. GCC discards it without `$wl',
17492 # but is careful enough not to reorder.
17493 # Supported since Solaris 2.6 (maybe 2.5.1?)
17494 if test "$GCC" = yes; then
17495 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17496 else
17497 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17498 fi
17499 ;;
17500 esac
17501 link_all_deplibs=yes
17502 ;;
17503
17504 sunos4*)
17505 if test "x$host_vendor" = xsequent; then
17506 # Use $CC to link under sequent, because it throws in some extra .o
17507 # files that make .init and .fini sections work.
17508 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17509 else
17510 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17511 fi
17512 hardcode_libdir_flag_spec='-L$libdir'
17513 hardcode_direct=yes
17514 hardcode_minus_L=yes
17515 hardcode_shlibpath_var=no
17516 ;;
17517
17518 sysv4)
17519 case $host_vendor in
17520 sni)
17521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17522 hardcode_direct=yes # is this really true???
17523 ;;
17524 siemens)
17525 ## LD is ld it makes a PLAMLIB
17526 ## CC just makes a GrossModule.
17527 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17528 reload_cmds='$CC -r -o $output$reload_objs'
17529 hardcode_direct=no
17530 ;;
17531 motorola)
17532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17533 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17534 ;;
17535 esac
17536 runpath_var='LD_RUN_PATH'
17537 hardcode_shlibpath_var=no
17538 ;;
17539
17540 sysv4.3*)
17541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17542 hardcode_shlibpath_var=no
17543 export_dynamic_flag_spec='-Bexport'
17544 ;;
17545
17546 sysv4*MP*)
17547 if test -d /usr/nec; then
17548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17549 hardcode_shlibpath_var=no
17550 runpath_var=LD_RUN_PATH
17551 hardcode_runpath_var=yes
17552 ld_shlibs=yes
17553 fi
17554 ;;
17555
17556 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17557 no_undefined_flag='${wl}-z,text'
17558 archive_cmds_need_lc=no
17559 hardcode_shlibpath_var=no
17560 runpath_var='LD_RUN_PATH'
17561
17562 if test "$GCC" = yes; then
17563 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17564 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17565 else
17566 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17567 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17568 fi
17569 ;;
17570
17571 sysv5* | sco3.2v5* | sco5v6*)
17572 # Note: We can NOT use -z defs as we might desire, because we do not
17573 # link with -lc, and that would cause any symbols used from libc to
17574 # always be unresolved, which means just about no library would
17575 # ever link correctly. If we're not using GNU ld we use -z text
17576 # though, which does catch some bad symbols but isn't as heavy-handed
17577 # as -z defs.
17578 no_undefined_flag='${wl}-z,text'
17579 allow_undefined_flag='${wl}-z,nodefs'
17580 archive_cmds_need_lc=no
17581 hardcode_shlibpath_var=no
17582 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17583 hardcode_libdir_separator=':'
17584 link_all_deplibs=yes
17585 export_dynamic_flag_spec='${wl}-Bexport'
17586 runpath_var='LD_RUN_PATH'
17587
17588 if test "$GCC" = yes; then
17589 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17590 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17591 else
17592 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17593 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17594 fi
17595 ;;
17596
17597 uts4*)
17598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17599 hardcode_libdir_flag_spec='-L$libdir'
17600 hardcode_shlibpath_var=no
17601 ;;
17602
17603 *)
17604 ld_shlibs=no
17605 ;;
17606 esac
17607
17608 if test x$host_vendor = xsni; then
17609 case $host in
17610 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17611 export_dynamic_flag_spec='${wl}-Blargedynsym'
17612 ;;
17613 esac
17614 fi
17615 fi
17616
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17618 $as_echo "$ld_shlibs" >&6; }
17619 test "$ld_shlibs" = no && can_build_shared=no
17620
17621 with_gnu_ld=$with_gnu_ld
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637 #
17638 # Do we need to explicitly link libc?
17639 #
17640 case "x$archive_cmds_need_lc" in
17641 x|xyes)
17642 # Assume -lc should be added
17643 archive_cmds_need_lc=yes
17644
17645 if test "$enable_shared" = yes && test "$GCC" = yes; then
17646 case $archive_cmds in
17647 *'~'*)
17648 # FIXME: we may have to deal with multi-command sequences.
17649 ;;
17650 '$CC '*)
17651 # Test whether the compiler implicitly links with -lc since on some
17652 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17653 # to ld, don't add -lc before -lgcc.
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17655 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17656 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17657 $as_echo_n "(cached) " >&6
17658 else
17659 $RM conftest*
17660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17661
17662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17663 (eval $ac_compile) 2>&5
17664 ac_status=$?
17665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17666 test $ac_status = 0; } 2>conftest.err; then
17667 soname=conftest
17668 lib=conftest
17669 libobjs=conftest.$ac_objext
17670 deplibs=
17671 wl=$lt_prog_compiler_wl
17672 pic_flag=$lt_prog_compiler_pic
17673 compiler_flags=-v
17674 linker_flags=-v
17675 verstring=
17676 output_objdir=.
17677 libname=conftest
17678 lt_save_allow_undefined_flag=$allow_undefined_flag
17679 allow_undefined_flag=
17680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17681 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17682 ac_status=$?
17683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17684 test $ac_status = 0; }
17685 then
17686 lt_cv_archive_cmds_need_lc=no
17687 else
17688 lt_cv_archive_cmds_need_lc=yes
17689 fi
17690 allow_undefined_flag=$lt_save_allow_undefined_flag
17691 else
17692 cat conftest.err 1>&5
17693 fi
17694 $RM conftest*
17695
17696 fi
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17698 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17699 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17700 ;;
17701 esac
17702 fi
17703 ;;
17704 esac
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17863 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17864
17865 if test "$GCC" = yes; then
17866 case $host_os in
17867 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17868 *) lt_awk_arg="/^libraries:/" ;;
17869 esac
17870 case $host_os in
17871 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17872 *) lt_sed_strip_eq="s,=/,/,g" ;;
17873 esac
17874 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17875 case $lt_search_path_spec in
17876 *\;*)
17877 # if the path contains ";" then we assume it to be the separator
17878 # otherwise default to the standard path separator (i.e. ":") - it is
17879 # assumed that no part of a normal pathname contains ";" but that should
17880 # okay in the real world where ";" in dirpaths is itself problematic.
17881 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17882 ;;
17883 *)
17884 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17885 ;;
17886 esac
17887 # Ok, now we have the path, separated by spaces, we can step through it
17888 # and add multilib dir if necessary.
17889 lt_tmp_lt_search_path_spec=
17890 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17891 for lt_sys_path in $lt_search_path_spec; do
17892 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17893 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17894 else
17895 test -d "$lt_sys_path" && \
17896 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17897 fi
17898 done
17899 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17900 BEGIN {RS=" "; FS="/|\n";} {
17901 lt_foo="";
17902 lt_count=0;
17903 for (lt_i = NF; lt_i > 0; lt_i--) {
17904 if ($lt_i != "" && $lt_i != ".") {
17905 if ($lt_i == "..") {
17906 lt_count++;
17907 } else {
17908 if (lt_count == 0) {
17909 lt_foo="/" $lt_i lt_foo;
17910 } else {
17911 lt_count--;
17912 }
17913 }
17914 }
17915 }
17916 if (lt_foo != "") { lt_freq[lt_foo]++; }
17917 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17918 }'`
17919 # AWK program above erroneously prepends '/' to C:/dos/paths
17920 # for these hosts.
17921 case $host_os in
17922 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17923 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17924 esac
17925 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17926 else
17927 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17928 fi
17929 library_names_spec=
17930 libname_spec='lib$name'
17931 soname_spec=
17932 shrext_cmds=".so"
17933 postinstall_cmds=
17934 postuninstall_cmds=
17935 finish_cmds=
17936 finish_eval=
17937 shlibpath_var=
17938 shlibpath_overrides_runpath=unknown
17939 version_type=none
17940 dynamic_linker="$host_os ld.so"
17941 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17942 need_lib_prefix=unknown
17943 hardcode_into_libs=no
17944
17945 # when you set need_version to no, make sure it does not cause -set_version
17946 # flags to be left without arguments
17947 need_version=unknown
17948
17949 case $host_os in
17950 aix3*)
17951 version_type=linux
17952 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17953 shlibpath_var=LIBPATH
17954
17955 # AIX 3 has no versioning support, so we append a major version to the name.
17956 soname_spec='${libname}${release}${shared_ext}$major'
17957 ;;
17958
17959 aix[4-9]*)
17960 version_type=linux
17961 need_lib_prefix=no
17962 need_version=no
17963 hardcode_into_libs=yes
17964 if test "$host_cpu" = ia64; then
17965 # AIX 5 supports IA64
17966 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17967 shlibpath_var=LD_LIBRARY_PATH
17968 else
17969 # With GCC up to 2.95.x, collect2 would create an import file
17970 # for dependence libraries. The import file would start with
17971 # the line `#! .'. This would cause the generated library to
17972 # depend on `.', always an invalid library. This was fixed in
17973 # development snapshots of GCC prior to 3.0.
17974 case $host_os in
17975 aix4 | aix4.[01] | aix4.[01].*)
17976 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17977 echo ' yes '
17978 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17979 :
17980 else
17981 can_build_shared=no
17982 fi
17983 ;;
17984 esac
17985 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17986 # soname into executable. Probably we can add versioning support to
17987 # collect2, so additional links can be useful in future.
17988 if test "$aix_use_runtimelinking" = yes; then
17989 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17990 # instead of lib<name>.a to let people know that these are not
17991 # typical AIX shared libraries.
17992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17993 else
17994 # We preserve .a as extension for shared libraries through AIX4.2
17995 # and later when we are not doing run time linking.
17996 library_names_spec='${libname}${release}.a $libname.a'
17997 soname_spec='${libname}${release}${shared_ext}$major'
17998 fi
17999 shlibpath_var=LIBPATH
18000 fi
18001 ;;
18002
18003 amigaos*)
18004 case $host_cpu in
18005 powerpc)
18006 # Since July 2007 AmigaOS4 officially supports .so libraries.
18007 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18009 ;;
18010 m68k)
18011 library_names_spec='$libname.ixlibrary $libname.a'
18012 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18013 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'
18014 ;;
18015 esac
18016 ;;
18017
18018 beos*)
18019 library_names_spec='${libname}${shared_ext}'
18020 dynamic_linker="$host_os ld.so"
18021 shlibpath_var=LIBRARY_PATH
18022 ;;
18023
18024 bsdi[45]*)
18025 version_type=linux
18026 need_version=no
18027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18028 soname_spec='${libname}${release}${shared_ext}$major'
18029 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18030 shlibpath_var=LD_LIBRARY_PATH
18031 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18032 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18033 # the default ld.so.conf also contains /usr/contrib/lib and
18034 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18035 # libtool to hard-code these into programs
18036 ;;
18037
18038 cygwin* | mingw* | pw32* | cegcc*)
18039 version_type=windows
18040 shrext_cmds=".dll"
18041 need_version=no
18042 need_lib_prefix=no
18043
18044 case $GCC,$host_os in
18045 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18046 library_names_spec='$libname.dll.a'
18047 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18048 postinstall_cmds='base_file=`basename \${file}`~
18049 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18050 dldir=$destdir/`dirname \$dlpath`~
18051 test -d \$dldir || mkdir -p \$dldir~
18052 $install_prog $dir/$dlname \$dldir/$dlname~
18053 chmod a+x \$dldir/$dlname~
18054 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18055 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18056 fi'
18057 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18058 dlpath=$dir/\$dldll~
18059 $RM \$dlpath'
18060 shlibpath_overrides_runpath=yes
18061
18062 case $host_os in
18063 cygwin*)
18064 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18065 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18066
18067 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18068 ;;
18069 mingw* | cegcc*)
18070 # MinGW DLLs use traditional 'lib' prefix
18071 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18072 ;;
18073 pw32*)
18074 # pw32 DLLs use 'pw' prefix rather than 'lib'
18075 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18076 ;;
18077 esac
18078 ;;
18079
18080 *)
18081 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18082 ;;
18083 esac
18084 dynamic_linker='Win32 ld.exe'
18085 # FIXME: first we should search . and the directory the executable is in
18086 shlibpath_var=PATH
18087 ;;
18088
18089 darwin* | rhapsody*)
18090 dynamic_linker="$host_os dyld"
18091 version_type=darwin
18092 need_lib_prefix=no
18093 need_version=no
18094 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18095 soname_spec='${libname}${release}${major}$shared_ext'
18096 shlibpath_overrides_runpath=yes
18097 shlibpath_var=DYLD_LIBRARY_PATH
18098 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18099
18100 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18101 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18102 ;;
18103
18104 dgux*)
18105 version_type=linux
18106 need_lib_prefix=no
18107 need_version=no
18108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18109 soname_spec='${libname}${release}${shared_ext}$major'
18110 shlibpath_var=LD_LIBRARY_PATH
18111 ;;
18112
18113 freebsd* | dragonfly*)
18114 # DragonFly does not have aout. When/if they implement a new
18115 # versioning mechanism, adjust this.
18116 if test -x /usr/bin/objformat; then
18117 objformat=`/usr/bin/objformat`
18118 else
18119 case $host_os in
18120 freebsd[23].*) objformat=aout ;;
18121 *) objformat=elf ;;
18122 esac
18123 fi
18124 version_type=freebsd-$objformat
18125 case $version_type in
18126 freebsd-elf*)
18127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18128 need_version=no
18129 need_lib_prefix=no
18130 ;;
18131 freebsd-*)
18132 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18133 need_version=yes
18134 ;;
18135 esac
18136 shlibpath_var=LD_LIBRARY_PATH
18137 case $host_os in
18138 freebsd2.*)
18139 shlibpath_overrides_runpath=yes
18140 ;;
18141 freebsd3.[01]* | freebsdelf3.[01]*)
18142 shlibpath_overrides_runpath=yes
18143 hardcode_into_libs=yes
18144 ;;
18145 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18146 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18147 shlibpath_overrides_runpath=no
18148 hardcode_into_libs=yes
18149 ;;
18150 *) # from 4.6 on, and DragonFly
18151 shlibpath_overrides_runpath=yes
18152 hardcode_into_libs=yes
18153 ;;
18154 esac
18155 ;;
18156
18157 gnu*)
18158 version_type=linux
18159 need_lib_prefix=no
18160 need_version=no
18161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18162 soname_spec='${libname}${release}${shared_ext}$major'
18163 shlibpath_var=LD_LIBRARY_PATH
18164 hardcode_into_libs=yes
18165 ;;
18166
18167 haiku*)
18168 version_type=linux
18169 need_lib_prefix=no
18170 need_version=no
18171 dynamic_linker="$host_os runtime_loader"
18172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18173 soname_spec='${libname}${release}${shared_ext}$major'
18174 shlibpath_var=LIBRARY_PATH
18175 shlibpath_overrides_runpath=yes
18176 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18177 hardcode_into_libs=yes
18178 ;;
18179
18180 hpux9* | hpux10* | hpux11*)
18181 # Give a soname corresponding to the major version so that dld.sl refuses to
18182 # link against other versions.
18183 version_type=sunos
18184 need_lib_prefix=no
18185 need_version=no
18186 case $host_cpu in
18187 ia64*)
18188 shrext_cmds='.so'
18189 hardcode_into_libs=yes
18190 dynamic_linker="$host_os dld.so"
18191 shlibpath_var=LD_LIBRARY_PATH
18192 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18194 soname_spec='${libname}${release}${shared_ext}$major'
18195 if test "X$HPUX_IA64_MODE" = X32; then
18196 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18197 else
18198 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18199 fi
18200 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18201 ;;
18202 hppa*64*)
18203 shrext_cmds='.sl'
18204 hardcode_into_libs=yes
18205 dynamic_linker="$host_os dld.sl"
18206 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18209 soname_spec='${libname}${release}${shared_ext}$major'
18210 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18212 ;;
18213 *)
18214 shrext_cmds='.sl'
18215 dynamic_linker="$host_os dld.sl"
18216 shlibpath_var=SHLIB_PATH
18217 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18219 soname_spec='${libname}${release}${shared_ext}$major'
18220 ;;
18221 esac
18222 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18223 postinstall_cmds='chmod 555 $lib'
18224 # or fails outright, so override atomically:
18225 install_override_mode=555
18226 ;;
18227
18228 interix[3-9]*)
18229 version_type=linux
18230 need_lib_prefix=no
18231 need_version=no
18232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18233 soname_spec='${libname}${release}${shared_ext}$major'
18234 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18235 shlibpath_var=LD_LIBRARY_PATH
18236 shlibpath_overrides_runpath=no
18237 hardcode_into_libs=yes
18238 ;;
18239
18240 irix5* | irix6* | nonstopux*)
18241 case $host_os in
18242 nonstopux*) version_type=nonstopux ;;
18243 *)
18244 if test "$lt_cv_prog_gnu_ld" = yes; then
18245 version_type=linux
18246 else
18247 version_type=irix
18248 fi ;;
18249 esac
18250 need_lib_prefix=no
18251 need_version=no
18252 soname_spec='${libname}${release}${shared_ext}$major'
18253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18254 case $host_os in
18255 irix5* | nonstopux*)
18256 libsuff= shlibsuff=
18257 ;;
18258 *)
18259 case $LD in # libtool.m4 will add one of these switches to LD
18260 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18261 libsuff= shlibsuff= libmagic=32-bit;;
18262 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18263 libsuff=32 shlibsuff=N32 libmagic=N32;;
18264 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18265 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18266 *) libsuff= shlibsuff= libmagic=never-match;;
18267 esac
18268 ;;
18269 esac
18270 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18271 shlibpath_overrides_runpath=no
18272 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18273 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18274 hardcode_into_libs=yes
18275 ;;
18276
18277 # No shared lib support for Linux oldld, aout, or coff.
18278 linux*oldld* | linux*aout* | linux*coff*)
18279 dynamic_linker=no
18280 ;;
18281
18282 # This must be Linux ELF.
18283
18284 # uclinux* changes (here and below) have been submitted to the libtool
18285 # project, but have not yet been accepted: they are GCC-local changes
18286 # for the time being. (See
18287 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18288 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
18289 version_type=linux
18290 need_lib_prefix=no
18291 need_version=no
18292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18293 soname_spec='${libname}${release}${shared_ext}$major'
18294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18295 shlibpath_var=LD_LIBRARY_PATH
18296 shlibpath_overrides_runpath=no
18297
18298 # Some binutils ld are patched to set DT_RUNPATH
18299 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18300 $as_echo_n "(cached) " >&6
18301 else
18302 lt_cv_shlibpath_overrides_runpath=no
18303 save_LDFLAGS=$LDFLAGS
18304 save_libdir=$libdir
18305 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18306 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308 /* end confdefs.h. */
18309
18310 int
18311 main ()
18312 {
18313
18314 ;
18315 return 0;
18316 }
18317 _ACEOF
18318 if ac_fn_c_try_link "$LINENO"; then :
18319 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18320 lt_cv_shlibpath_overrides_runpath=yes
18321 fi
18322 fi
18323 rm -f core conftest.err conftest.$ac_objext \
18324 conftest$ac_exeext conftest.$ac_ext
18325 LDFLAGS=$save_LDFLAGS
18326 libdir=$save_libdir
18327
18328 fi
18329
18330 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18331
18332 # This implies no fast_install, which is unacceptable.
18333 # Some rework will be needed to allow for fast_install
18334 # before this can be enabled.
18335 hardcode_into_libs=yes
18336
18337 # Append ld.so.conf contents to the search path
18338 if test -f /etc/ld.so.conf; then
18339 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' ' '`
18340 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18341 fi
18342
18343 # We used to test for /lib/ld.so.1 and disable shared libraries on
18344 # powerpc, because MkLinux only supported shared libraries with the
18345 # GNU dynamic linker. Since this was broken with cross compilers,
18346 # most powerpc-linux boxes support dynamic linking these days and
18347 # people can always --disable-shared, the test was removed, and we
18348 # assume the GNU/Linux dynamic linker is in use.
18349 dynamic_linker='GNU/Linux ld.so'
18350 ;;
18351
18352 netbsd*)
18353 version_type=sunos
18354 need_lib_prefix=no
18355 need_version=no
18356 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18359 dynamic_linker='NetBSD (a.out) ld.so'
18360 else
18361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18362 soname_spec='${libname}${release}${shared_ext}$major'
18363 dynamic_linker='NetBSD ld.elf_so'
18364 fi
18365 shlibpath_var=LD_LIBRARY_PATH
18366 shlibpath_overrides_runpath=yes
18367 hardcode_into_libs=yes
18368 ;;
18369
18370 newsos6)
18371 version_type=linux
18372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18373 shlibpath_var=LD_LIBRARY_PATH
18374 shlibpath_overrides_runpath=yes
18375 ;;
18376
18377 *nto* | *qnx*)
18378 version_type=qnx
18379 need_lib_prefix=no
18380 need_version=no
18381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18382 soname_spec='${libname}${release}${shared_ext}$major'
18383 shlibpath_var=LD_LIBRARY_PATH
18384 shlibpath_overrides_runpath=no
18385 hardcode_into_libs=yes
18386 dynamic_linker='ldqnx.so'
18387 ;;
18388
18389 openbsd*)
18390 version_type=sunos
18391 sys_lib_dlsearch_path_spec="/usr/lib"
18392 need_lib_prefix=no
18393 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18394 case $host_os in
18395 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18396 *) need_version=no ;;
18397 esac
18398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18400 shlibpath_var=LD_LIBRARY_PATH
18401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18402 case $host_os in
18403 openbsd2.[89] | openbsd2.[89].*)
18404 shlibpath_overrides_runpath=no
18405 ;;
18406 *)
18407 shlibpath_overrides_runpath=yes
18408 ;;
18409 esac
18410 else
18411 shlibpath_overrides_runpath=yes
18412 fi
18413 ;;
18414
18415 os2*)
18416 libname_spec='$name'
18417 shrext_cmds=".dll"
18418 need_lib_prefix=no
18419 library_names_spec='$libname${shared_ext} $libname.a'
18420 dynamic_linker='OS/2 ld.exe'
18421 shlibpath_var=LIBPATH
18422 ;;
18423
18424 osf3* | osf4* | osf5*)
18425 version_type=osf
18426 need_lib_prefix=no
18427 need_version=no
18428 soname_spec='${libname}${release}${shared_ext}$major'
18429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18430 shlibpath_var=LD_LIBRARY_PATH
18431 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18432 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18433 ;;
18434
18435 rdos*)
18436 dynamic_linker=no
18437 ;;
18438
18439 solaris*)
18440 version_type=linux
18441 need_lib_prefix=no
18442 need_version=no
18443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18444 soname_spec='${libname}${release}${shared_ext}$major'
18445 shlibpath_var=LD_LIBRARY_PATH
18446 shlibpath_overrides_runpath=yes
18447 hardcode_into_libs=yes
18448 # ldd complains unless libraries are executable
18449 postinstall_cmds='chmod +x $lib'
18450 ;;
18451
18452 sunos4*)
18453 version_type=sunos
18454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18455 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18456 shlibpath_var=LD_LIBRARY_PATH
18457 shlibpath_overrides_runpath=yes
18458 if test "$with_gnu_ld" = yes; then
18459 need_lib_prefix=no
18460 fi
18461 need_version=yes
18462 ;;
18463
18464 sysv4 | sysv4.3*)
18465 version_type=linux
18466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18467 soname_spec='${libname}${release}${shared_ext}$major'
18468 shlibpath_var=LD_LIBRARY_PATH
18469 case $host_vendor in
18470 sni)
18471 shlibpath_overrides_runpath=no
18472 need_lib_prefix=no
18473 runpath_var=LD_RUN_PATH
18474 ;;
18475 siemens)
18476 need_lib_prefix=no
18477 ;;
18478 motorola)
18479 need_lib_prefix=no
18480 need_version=no
18481 shlibpath_overrides_runpath=no
18482 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18483 ;;
18484 esac
18485 ;;
18486
18487 sysv4*MP*)
18488 if test -d /usr/nec ;then
18489 version_type=linux
18490 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18491 soname_spec='$libname${shared_ext}.$major'
18492 shlibpath_var=LD_LIBRARY_PATH
18493 fi
18494 ;;
18495
18496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18497 version_type=freebsd-elf
18498 need_lib_prefix=no
18499 need_version=no
18500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18501 soname_spec='${libname}${release}${shared_ext}$major'
18502 shlibpath_var=LD_LIBRARY_PATH
18503 shlibpath_overrides_runpath=yes
18504 hardcode_into_libs=yes
18505 if test "$with_gnu_ld" = yes; then
18506 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18507 else
18508 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18509 case $host_os in
18510 sco3.2v5*)
18511 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18512 ;;
18513 esac
18514 fi
18515 sys_lib_dlsearch_path_spec='/usr/lib'
18516 ;;
18517
18518 tpf*)
18519 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18520 version_type=linux
18521 need_lib_prefix=no
18522 need_version=no
18523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18524 shlibpath_var=LD_LIBRARY_PATH
18525 shlibpath_overrides_runpath=no
18526 hardcode_into_libs=yes
18527 ;;
18528
18529 uts4*)
18530 version_type=linux
18531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18532 soname_spec='${libname}${release}${shared_ext}$major'
18533 shlibpath_var=LD_LIBRARY_PATH
18534 ;;
18535
18536 *)
18537 dynamic_linker=no
18538 ;;
18539 esac
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18541 $as_echo "$dynamic_linker" >&6; }
18542 test "$dynamic_linker" = no && can_build_shared=no
18543
18544 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18545 if test "$GCC" = yes; then
18546 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18547 fi
18548
18549 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18550 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18551 fi
18552 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18553 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18554 fi
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18648 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18649 hardcode_action=
18650 if test -n "$hardcode_libdir_flag_spec" ||
18651 test -n "$runpath_var" ||
18652 test "X$hardcode_automatic" = "Xyes" ; then
18653
18654 # We can hardcode non-existent directories.
18655 if test "$hardcode_direct" != no &&
18656 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18657 # have to relink, otherwise we might link with an installed library
18658 # when we should be linking with a yet-to-be-installed one
18659 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18660 test "$hardcode_minus_L" != no; then
18661 # Linking always hardcodes the temporary library directory.
18662 hardcode_action=relink
18663 else
18664 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18665 hardcode_action=immediate
18666 fi
18667 else
18668 # We cannot hardcode anything, or else we can only hardcode existing
18669 # directories.
18670 hardcode_action=unsupported
18671 fi
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18673 $as_echo "$hardcode_action" >&6; }
18674
18675 if test "$hardcode_action" = relink ||
18676 test "$inherit_rpath" = yes; then
18677 # Fast installation is not supported
18678 enable_fast_install=no
18679 elif test "$shlibpath_overrides_runpath" = yes ||
18680 test "$enable_shared" = no; then
18681 # Fast installation is not necessary
18682 enable_fast_install=needless
18683 fi
18684
18685
18686
18687
18688
18689
18690 if test "x$enable_dlopen" != xyes; then
18691 enable_dlopen=unknown
18692 enable_dlopen_self=unknown
18693 enable_dlopen_self_static=unknown
18694 else
18695 lt_cv_dlopen=no
18696 lt_cv_dlopen_libs=
18697
18698 case $host_os in
18699 beos*)
18700 lt_cv_dlopen="load_add_on"
18701 lt_cv_dlopen_libs=
18702 lt_cv_dlopen_self=yes
18703 ;;
18704
18705 mingw* | pw32* | cegcc*)
18706 lt_cv_dlopen="LoadLibrary"
18707 lt_cv_dlopen_libs=
18708 ;;
18709
18710 cygwin*)
18711 lt_cv_dlopen="dlopen"
18712 lt_cv_dlopen_libs=
18713 ;;
18714
18715 darwin*)
18716 # if libdl is installed we need to link against it
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18718 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18719 if ${ac_cv_lib_dl_dlopen+:} false; then :
18720 $as_echo_n "(cached) " >&6
18721 else
18722 ac_check_lib_save_LIBS=$LIBS
18723 LIBS="-ldl $LIBS"
18724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18725 /* end confdefs.h. */
18726
18727 /* Override any GCC internal prototype to avoid an error.
18728 Use char because int might match the return type of a GCC
18729 builtin and then its argument prototype would still apply. */
18730 #ifdef __cplusplus
18731 extern "C"
18732 #endif
18733 char dlopen ();
18734 int
18735 main ()
18736 {
18737 return dlopen ();
18738 ;
18739 return 0;
18740 }
18741 _ACEOF
18742 if ac_fn_c_try_link "$LINENO"; then :
18743 ac_cv_lib_dl_dlopen=yes
18744 else
18745 ac_cv_lib_dl_dlopen=no
18746 fi
18747 rm -f core conftest.err conftest.$ac_objext \
18748 conftest$ac_exeext conftest.$ac_ext
18749 LIBS=$ac_check_lib_save_LIBS
18750 fi
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18752 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18753 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18754 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18755 else
18756
18757 lt_cv_dlopen="dyld"
18758 lt_cv_dlopen_libs=
18759 lt_cv_dlopen_self=yes
18760
18761 fi
18762
18763 ;;
18764
18765 *)
18766 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18767 if test "x$ac_cv_func_shl_load" = xyes; then :
18768 lt_cv_dlopen="shl_load"
18769 else
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18771 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18772 if ${ac_cv_lib_dld_shl_load+:} false; then :
18773 $as_echo_n "(cached) " >&6
18774 else
18775 ac_check_lib_save_LIBS=$LIBS
18776 LIBS="-ldld $LIBS"
18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18778 /* end confdefs.h. */
18779
18780 /* Override any GCC internal prototype to avoid an error.
18781 Use char because int might match the return type of a GCC
18782 builtin and then its argument prototype would still apply. */
18783 #ifdef __cplusplus
18784 extern "C"
18785 #endif
18786 char shl_load ();
18787 int
18788 main ()
18789 {
18790 return shl_load ();
18791 ;
18792 return 0;
18793 }
18794 _ACEOF
18795 if ac_fn_c_try_link "$LINENO"; then :
18796 ac_cv_lib_dld_shl_load=yes
18797 else
18798 ac_cv_lib_dld_shl_load=no
18799 fi
18800 rm -f core conftest.err conftest.$ac_objext \
18801 conftest$ac_exeext conftest.$ac_ext
18802 LIBS=$ac_check_lib_save_LIBS
18803 fi
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18805 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18806 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18807 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18808 else
18809 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18810 if test "x$ac_cv_func_dlopen" = xyes; then :
18811 lt_cv_dlopen="dlopen"
18812 else
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18814 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18815 if ${ac_cv_lib_dl_dlopen+:} false; then :
18816 $as_echo_n "(cached) " >&6
18817 else
18818 ac_check_lib_save_LIBS=$LIBS
18819 LIBS="-ldl $LIBS"
18820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18821 /* end confdefs.h. */
18822
18823 /* Override any GCC internal prototype to avoid an error.
18824 Use char because int might match the return type of a GCC
18825 builtin and then its argument prototype would still apply. */
18826 #ifdef __cplusplus
18827 extern "C"
18828 #endif
18829 char dlopen ();
18830 int
18831 main ()
18832 {
18833 return dlopen ();
18834 ;
18835 return 0;
18836 }
18837 _ACEOF
18838 if ac_fn_c_try_link "$LINENO"; then :
18839 ac_cv_lib_dl_dlopen=yes
18840 else
18841 ac_cv_lib_dl_dlopen=no
18842 fi
18843 rm -f core conftest.err conftest.$ac_objext \
18844 conftest$ac_exeext conftest.$ac_ext
18845 LIBS=$ac_check_lib_save_LIBS
18846 fi
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18848 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18849 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18850 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18851 else
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18853 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18854 if ${ac_cv_lib_svld_dlopen+:} false; then :
18855 $as_echo_n "(cached) " >&6
18856 else
18857 ac_check_lib_save_LIBS=$LIBS
18858 LIBS="-lsvld $LIBS"
18859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18860 /* end confdefs.h. */
18861
18862 /* Override any GCC internal prototype to avoid an error.
18863 Use char because int might match the return type of a GCC
18864 builtin and then its argument prototype would still apply. */
18865 #ifdef __cplusplus
18866 extern "C"
18867 #endif
18868 char dlopen ();
18869 int
18870 main ()
18871 {
18872 return dlopen ();
18873 ;
18874 return 0;
18875 }
18876 _ACEOF
18877 if ac_fn_c_try_link "$LINENO"; then :
18878 ac_cv_lib_svld_dlopen=yes
18879 else
18880 ac_cv_lib_svld_dlopen=no
18881 fi
18882 rm -f core conftest.err conftest.$ac_objext \
18883 conftest$ac_exeext conftest.$ac_ext
18884 LIBS=$ac_check_lib_save_LIBS
18885 fi
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18887 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18888 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18889 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18890 else
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18892 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18893 if ${ac_cv_lib_dld_dld_link+:} false; then :
18894 $as_echo_n "(cached) " >&6
18895 else
18896 ac_check_lib_save_LIBS=$LIBS
18897 LIBS="-ldld $LIBS"
18898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18899 /* end confdefs.h. */
18900
18901 /* Override any GCC internal prototype to avoid an error.
18902 Use char because int might match the return type of a GCC
18903 builtin and then its argument prototype would still apply. */
18904 #ifdef __cplusplus
18905 extern "C"
18906 #endif
18907 char dld_link ();
18908 int
18909 main ()
18910 {
18911 return dld_link ();
18912 ;
18913 return 0;
18914 }
18915 _ACEOF
18916 if ac_fn_c_try_link "$LINENO"; then :
18917 ac_cv_lib_dld_dld_link=yes
18918 else
18919 ac_cv_lib_dld_dld_link=no
18920 fi
18921 rm -f core conftest.err conftest.$ac_objext \
18922 conftest$ac_exeext conftest.$ac_ext
18923 LIBS=$ac_check_lib_save_LIBS
18924 fi
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18926 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18927 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18928 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18929 fi
18930
18931
18932 fi
18933
18934
18935 fi
18936
18937
18938 fi
18939
18940
18941 fi
18942
18943
18944 fi
18945
18946 ;;
18947 esac
18948
18949 if test "x$lt_cv_dlopen" != xno; then
18950 enable_dlopen=yes
18951 else
18952 enable_dlopen=no
18953 fi
18954
18955 case $lt_cv_dlopen in
18956 dlopen)
18957 save_CPPFLAGS="$CPPFLAGS"
18958 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18959
18960 save_LDFLAGS="$LDFLAGS"
18961 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18962
18963 save_LIBS="$LIBS"
18964 LIBS="$lt_cv_dlopen_libs $LIBS"
18965
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18967 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18968 if ${lt_cv_dlopen_self+:} false; then :
18969 $as_echo_n "(cached) " >&6
18970 else
18971 if test "$cross_compiling" = yes; then :
18972 lt_cv_dlopen_self=cross
18973 else
18974 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18975 lt_status=$lt_dlunknown
18976 cat > conftest.$ac_ext <<_LT_EOF
18977 #line 18977 "configure"
18978 #include "confdefs.h"
18979
18980 #if HAVE_DLFCN_H
18981 #include <dlfcn.h>
18982 #endif
18983
18984 #include <stdio.h>
18985
18986 #ifdef RTLD_GLOBAL
18987 # define LT_DLGLOBAL RTLD_GLOBAL
18988 #else
18989 # ifdef DL_GLOBAL
18990 # define LT_DLGLOBAL DL_GLOBAL
18991 # else
18992 # define LT_DLGLOBAL 0
18993 # endif
18994 #endif
18995
18996 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18997 find out it does not work in some platform. */
18998 #ifndef LT_DLLAZY_OR_NOW
18999 # ifdef RTLD_LAZY
19000 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19001 # else
19002 # ifdef DL_LAZY
19003 # define LT_DLLAZY_OR_NOW DL_LAZY
19004 # else
19005 # ifdef RTLD_NOW
19006 # define LT_DLLAZY_OR_NOW RTLD_NOW
19007 # else
19008 # ifdef DL_NOW
19009 # define LT_DLLAZY_OR_NOW DL_NOW
19010 # else
19011 # define LT_DLLAZY_OR_NOW 0
19012 # endif
19013 # endif
19014 # endif
19015 # endif
19016 #endif
19017
19018 /* When -fvisbility=hidden is used, assume the code has been annotated
19019 correspondingly for the symbols needed. */
19020 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19021 void fnord () __attribute__((visibility("default")));
19022 #endif
19023
19024 void fnord () { int i=42; }
19025 int main ()
19026 {
19027 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19028 int status = $lt_dlunknown;
19029
19030 if (self)
19031 {
19032 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19033 else
19034 {
19035 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19036 else puts (dlerror ());
19037 }
19038 /* dlclose (self); */
19039 }
19040 else
19041 puts (dlerror ());
19042
19043 return status;
19044 }
19045 _LT_EOF
19046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19047 (eval $ac_link) 2>&5
19048 ac_status=$?
19049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19050 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19051 (./conftest; exit; ) >&5 2>/dev/null
19052 lt_status=$?
19053 case x$lt_status in
19054 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19055 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19056 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19057 esac
19058 else :
19059 # compilation failed
19060 lt_cv_dlopen_self=no
19061 fi
19062 fi
19063 rm -fr conftest*
19064
19065
19066 fi
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19068 $as_echo "$lt_cv_dlopen_self" >&6; }
19069
19070 if test "x$lt_cv_dlopen_self" = xyes; then
19071 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19073 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19074 if ${lt_cv_dlopen_self_static+:} false; then :
19075 $as_echo_n "(cached) " >&6
19076 else
19077 if test "$cross_compiling" = yes; then :
19078 lt_cv_dlopen_self_static=cross
19079 else
19080 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19081 lt_status=$lt_dlunknown
19082 cat > conftest.$ac_ext <<_LT_EOF
19083 #line 19083 "configure"
19084 #include "confdefs.h"
19085
19086 #if HAVE_DLFCN_H
19087 #include <dlfcn.h>
19088 #endif
19089
19090 #include <stdio.h>
19091
19092 #ifdef RTLD_GLOBAL
19093 # define LT_DLGLOBAL RTLD_GLOBAL
19094 #else
19095 # ifdef DL_GLOBAL
19096 # define LT_DLGLOBAL DL_GLOBAL
19097 # else
19098 # define LT_DLGLOBAL 0
19099 # endif
19100 #endif
19101
19102 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19103 find out it does not work in some platform. */
19104 #ifndef LT_DLLAZY_OR_NOW
19105 # ifdef RTLD_LAZY
19106 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19107 # else
19108 # ifdef DL_LAZY
19109 # define LT_DLLAZY_OR_NOW DL_LAZY
19110 # else
19111 # ifdef RTLD_NOW
19112 # define LT_DLLAZY_OR_NOW RTLD_NOW
19113 # else
19114 # ifdef DL_NOW
19115 # define LT_DLLAZY_OR_NOW DL_NOW
19116 # else
19117 # define LT_DLLAZY_OR_NOW 0
19118 # endif
19119 # endif
19120 # endif
19121 # endif
19122 #endif
19123
19124 /* When -fvisbility=hidden is used, assume the code has been annotated
19125 correspondingly for the symbols needed. */
19126 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19127 void fnord () __attribute__((visibility("default")));
19128 #endif
19129
19130 void fnord () { int i=42; }
19131 int main ()
19132 {
19133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19134 int status = $lt_dlunknown;
19135
19136 if (self)
19137 {
19138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19139 else
19140 {
19141 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19142 else puts (dlerror ());
19143 }
19144 /* dlclose (self); */
19145 }
19146 else
19147 puts (dlerror ());
19148
19149 return status;
19150 }
19151 _LT_EOF
19152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19153 (eval $ac_link) 2>&5
19154 ac_status=$?
19155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19156 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19157 (./conftest; exit; ) >&5 2>/dev/null
19158 lt_status=$?
19159 case x$lt_status in
19160 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19161 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19162 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19163 esac
19164 else :
19165 # compilation failed
19166 lt_cv_dlopen_self_static=no
19167 fi
19168 fi
19169 rm -fr conftest*
19170
19171
19172 fi
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19174 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19175 fi
19176
19177 CPPFLAGS="$save_CPPFLAGS"
19178 LDFLAGS="$save_LDFLAGS"
19179 LIBS="$save_LIBS"
19180 ;;
19181 esac
19182
19183 case $lt_cv_dlopen_self in
19184 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19185 *) enable_dlopen_self=unknown ;;
19186 esac
19187
19188 case $lt_cv_dlopen_self_static in
19189 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19190 *) enable_dlopen_self_static=unknown ;;
19191 esac
19192 fi
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210 striplib=
19211 old_striplib=
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19213 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19214 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19215 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19216 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19218 $as_echo "yes" >&6; }
19219 else
19220 # FIXME - insert some real tests, host_os isn't really good enough
19221 case $host_os in
19222 darwin*)
19223 if test -n "$STRIP" ; then
19224 striplib="$STRIP -x"
19225 old_striplib="$STRIP -S"
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19227 $as_echo "yes" >&6; }
19228 else
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19230 $as_echo "no" >&6; }
19231 fi
19232 ;;
19233 *)
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19235 $as_echo "no" >&6; }
19236 ;;
19237 esac
19238 fi
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251 # Report which library types will actually be built
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19253 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19255 $as_echo "$can_build_shared" >&6; }
19256
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19258 $as_echo_n "checking whether to build shared libraries... " >&6; }
19259 test "$can_build_shared" = "no" && enable_shared=no
19260
19261 # On AIX, shared libraries and static libraries use the same namespace, and
19262 # are all built from PIC.
19263 case $host_os in
19264 aix3*)
19265 test "$enable_shared" = yes && enable_static=no
19266 if test -n "$RANLIB"; then
19267 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19268 postinstall_cmds='$RANLIB $lib'
19269 fi
19270 ;;
19271
19272 aix[4-9]*)
19273 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19274 test "$enable_shared" = yes && enable_static=no
19275 fi
19276 ;;
19277 esac
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19279 $as_echo "$enable_shared" >&6; }
19280
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19282 $as_echo_n "checking whether to build static libraries... " >&6; }
19283 # Make sure either enable_shared or enable_static is yes.
19284 test "$enable_shared" = yes || enable_static=yes
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19286 $as_echo "$enable_static" >&6; }
19287
19288
19289
19290
19291 fi
19292 ac_ext=cpp
19293 ac_cpp='$CXXCPP $CPPFLAGS'
19294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19297
19298 CC="$lt_save_CC"
19299
19300 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19301 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19302 (test "X$CXX" != "Xg++"))) ; then
19303 ac_ext=cpp
19304 ac_cpp='$CXXCPP $CPPFLAGS'
19305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19309 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19310 if test -z "$CXXCPP"; then
19311 if ${ac_cv_prog_CXXCPP+:} false; then :
19312 $as_echo_n "(cached) " >&6
19313 else
19314 # Double quotes because CXXCPP needs to be expanded
19315 for CXXCPP in "$CXX -E" "/lib/cpp"
19316 do
19317 ac_preproc_ok=false
19318 for ac_cxx_preproc_warn_flag in '' yes
19319 do
19320 # Use a header file that comes with gcc, so configuring glibc
19321 # with a fresh cross-compiler works.
19322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19323 # <limits.h> exists even on freestanding compilers.
19324 # On the NeXT, cc -E runs the code through the compiler's parser,
19325 # not just through cpp. "Syntax error" is here to catch this case.
19326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19327 /* end confdefs.h. */
19328 #ifdef __STDC__
19329 # include <limits.h>
19330 #else
19331 # include <assert.h>
19332 #endif
19333 Syntax error
19334 _ACEOF
19335 if ac_fn_cxx_try_cpp "$LINENO"; then :
19336
19337 else
19338 # Broken: fails on valid input.
19339 continue
19340 fi
19341 rm -f conftest.err conftest.i conftest.$ac_ext
19342
19343 # OK, works on sane cases. Now check whether nonexistent headers
19344 # can be detected and how.
19345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19346 /* end confdefs.h. */
19347 #include <ac_nonexistent.h>
19348 _ACEOF
19349 if ac_fn_cxx_try_cpp "$LINENO"; then :
19350 # Broken: success on invalid input.
19351 continue
19352 else
19353 # Passes both tests.
19354 ac_preproc_ok=:
19355 break
19356 fi
19357 rm -f conftest.err conftest.i conftest.$ac_ext
19358
19359 done
19360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19361 rm -f conftest.i conftest.err conftest.$ac_ext
19362 if $ac_preproc_ok; then :
19363 break
19364 fi
19365
19366 done
19367 ac_cv_prog_CXXCPP=$CXXCPP
19368
19369 fi
19370 CXXCPP=$ac_cv_prog_CXXCPP
19371 else
19372 ac_cv_prog_CXXCPP=$CXXCPP
19373 fi
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19375 $as_echo "$CXXCPP" >&6; }
19376 ac_preproc_ok=false
19377 for ac_cxx_preproc_warn_flag in '' yes
19378 do
19379 # Use a header file that comes with gcc, so configuring glibc
19380 # with a fresh cross-compiler works.
19381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19382 # <limits.h> exists even on freestanding compilers.
19383 # On the NeXT, cc -E runs the code through the compiler's parser,
19384 # not just through cpp. "Syntax error" is here to catch this case.
19385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19386 /* end confdefs.h. */
19387 #ifdef __STDC__
19388 # include <limits.h>
19389 #else
19390 # include <assert.h>
19391 #endif
19392 Syntax error
19393 _ACEOF
19394 if ac_fn_cxx_try_cpp "$LINENO"; then :
19395
19396 else
19397 # Broken: fails on valid input.
19398 continue
19399 fi
19400 rm -f conftest.err conftest.i conftest.$ac_ext
19401
19402 # OK, works on sane cases. Now check whether nonexistent headers
19403 # can be detected and how.
19404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19405 /* end confdefs.h. */
19406 #include <ac_nonexistent.h>
19407 _ACEOF
19408 if ac_fn_cxx_try_cpp "$LINENO"; then :
19409 # Broken: success on invalid input.
19410 continue
19411 else
19412 # Passes both tests.
19413 ac_preproc_ok=:
19414 break
19415 fi
19416 rm -f conftest.err conftest.i conftest.$ac_ext
19417
19418 done
19419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19420 rm -f conftest.i conftest.err conftest.$ac_ext
19421 if $ac_preproc_ok; then :
19422
19423 else
19424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19426 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19427 See \`config.log' for more details" "$LINENO" 5; }
19428 fi
19429
19430 ac_ext=cpp
19431 ac_cpp='$CXXCPP $CPPFLAGS'
19432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19435
19436 else
19437 _lt_caught_CXX_error=yes
19438 fi
19439
19440 ac_ext=cpp
19441 ac_cpp='$CXXCPP $CPPFLAGS'
19442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19445
19446 archive_cmds_need_lc_CXX=no
19447 allow_undefined_flag_CXX=
19448 always_export_symbols_CXX=no
19449 archive_expsym_cmds_CXX=
19450 compiler_needs_object_CXX=no
19451 export_dynamic_flag_spec_CXX=
19452 hardcode_direct_CXX=no
19453 hardcode_direct_absolute_CXX=no
19454 hardcode_libdir_flag_spec_CXX=
19455 hardcode_libdir_flag_spec_ld_CXX=
19456 hardcode_libdir_separator_CXX=
19457 hardcode_minus_L_CXX=no
19458 hardcode_shlibpath_var_CXX=unsupported
19459 hardcode_automatic_CXX=no
19460 inherit_rpath_CXX=no
19461 module_cmds_CXX=
19462 module_expsym_cmds_CXX=
19463 link_all_deplibs_CXX=unknown
19464 old_archive_cmds_CXX=$old_archive_cmds
19465 reload_flag_CXX=$reload_flag
19466 reload_cmds_CXX=$reload_cmds
19467 no_undefined_flag_CXX=
19468 whole_archive_flag_spec_CXX=
19469 enable_shared_with_static_runtimes_CXX=no
19470
19471 # Source file extension for C++ test sources.
19472 ac_ext=cpp
19473
19474 # Object file extension for compiled C++ test sources.
19475 objext=o
19476 objext_CXX=$objext
19477
19478 # No sense in running all these tests if we already determined that
19479 # the CXX compiler isn't working. Some variables (like enable_shared)
19480 # are currently assumed to apply to all compilers on this platform,
19481 # and will be corrupted by setting them based on a non-working compiler.
19482 if test "$_lt_caught_CXX_error" != yes; then
19483 # Code to be used in simple compile tests
19484 lt_simple_compile_test_code="int some_variable = 0;"
19485
19486 # Code to be used in simple link tests
19487 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19488
19489 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19490
19491
19492
19493
19494
19495
19496 # If no C compiler was specified, use CC.
19497 LTCC=${LTCC-"$CC"}
19498
19499 # If no C compiler flags were specified, use CFLAGS.
19500 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19501
19502 # Allow CC to be a program name with arguments.
19503 compiler=$CC
19504
19505
19506 # save warnings/boilerplate of simple test code
19507 ac_outfile=conftest.$ac_objext
19508 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19509 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19510 _lt_compiler_boilerplate=`cat conftest.err`
19511 $RM conftest*
19512
19513 ac_outfile=conftest.$ac_objext
19514 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19515 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19516 _lt_linker_boilerplate=`cat conftest.err`
19517 $RM -r conftest*
19518
19519
19520 # Allow CC to be a program name with arguments.
19521 lt_save_CC=$CC
19522 lt_save_LD=$LD
19523 lt_save_GCC=$GCC
19524 GCC=$GXX
19525 lt_save_with_gnu_ld=$with_gnu_ld
19526 lt_save_path_LD=$lt_cv_path_LD
19527 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19528 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19529 else
19530 $as_unset lt_cv_prog_gnu_ld
19531 fi
19532 if test -n "${lt_cv_path_LDCXX+set}"; then
19533 lt_cv_path_LD=$lt_cv_path_LDCXX
19534 else
19535 $as_unset lt_cv_path_LD
19536 fi
19537 test -z "${LDCXX+set}" || LD=$LDCXX
19538 CC=${CXX-"c++"}
19539 compiler=$CC
19540 compiler_CXX=$CC
19541 for cc_temp in $compiler""; do
19542 case $cc_temp in
19543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19545 \-*) ;;
19546 *) break;;
19547 esac
19548 done
19549 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19550
19551
19552 if test -n "$compiler"; then
19553 # We don't want -fno-exception when compiling C++ code, so set the
19554 # no_builtin_flag separately
19555 if test "$GXX" = yes; then
19556 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19557 else
19558 lt_prog_compiler_no_builtin_flag_CXX=
19559 fi
19560
19561 if test "$GXX" = yes; then
19562 # Set up default GNU C++ configuration
19563
19564
19565
19566 # Check whether --with-gnu-ld was given.
19567 if test "${with_gnu_ld+set}" = set; then :
19568 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19569 else
19570 with_gnu_ld=no
19571 fi
19572
19573 ac_prog=ld
19574 if test "$GCC" = yes; then
19575 # Check if gcc -print-prog-name=ld gives a path.
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19577 $as_echo_n "checking for ld used by $CC... " >&6; }
19578 case $host in
19579 *-*-mingw*)
19580 # gcc leaves a trailing carriage return which upsets mingw
19581 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19582 *)
19583 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19584 esac
19585 case $ac_prog in
19586 # Accept absolute paths.
19587 [\\/]* | ?:[\\/]*)
19588 re_direlt='/[^/][^/]*/\.\./'
19589 # Canonicalize the pathname of ld
19590 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19591 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19592 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19593 done
19594 test -z "$LD" && LD="$ac_prog"
19595 ;;
19596 "")
19597 # If it fails, then pretend we aren't using GCC.
19598 ac_prog=ld
19599 ;;
19600 *)
19601 # If it is relative, then search for the first ld in PATH.
19602 with_gnu_ld=unknown
19603 ;;
19604 esac
19605 elif test "$with_gnu_ld" = yes; then
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19607 $as_echo_n "checking for GNU ld... " >&6; }
19608 else
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19610 $as_echo_n "checking for non-GNU ld... " >&6; }
19611 fi
19612 if ${lt_cv_path_LD+:} false; then :
19613 $as_echo_n "(cached) " >&6
19614 else
19615 if test -z "$LD"; then
19616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19617 for ac_dir in $PATH; do
19618 IFS="$lt_save_ifs"
19619 test -z "$ac_dir" && ac_dir=.
19620 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19621 lt_cv_path_LD="$ac_dir/$ac_prog"
19622 # Check to see if the program is GNU ld. I'd rather use --version,
19623 # but apparently some variants of GNU ld only accept -v.
19624 # Break only if it was the GNU/non-GNU ld that we prefer.
19625 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19626 *GNU* | *'with BFD'*)
19627 test "$with_gnu_ld" != no && break
19628 ;;
19629 *)
19630 test "$with_gnu_ld" != yes && break
19631 ;;
19632 esac
19633 fi
19634 done
19635 IFS="$lt_save_ifs"
19636 else
19637 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19638 fi
19639 fi
19640
19641 LD="$lt_cv_path_LD"
19642 if test -n "$LD"; then
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19644 $as_echo "$LD" >&6; }
19645 else
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19647 $as_echo "no" >&6; }
19648 fi
19649 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19651 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19652 if ${lt_cv_prog_gnu_ld+:} false; then :
19653 $as_echo_n "(cached) " >&6
19654 else
19655 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19656 case `$LD -v 2>&1 </dev/null` in
19657 *GNU* | *'with BFD'*)
19658 lt_cv_prog_gnu_ld=yes
19659 ;;
19660 *)
19661 lt_cv_prog_gnu_ld=no
19662 ;;
19663 esac
19664 fi
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19666 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19667 with_gnu_ld=$lt_cv_prog_gnu_ld
19668
19669
19670
19671
19672
19673
19674
19675 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19676 # archiving commands below assume that GNU ld is being used.
19677 if test "$with_gnu_ld" = yes; then
19678 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19679 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'
19680
19681 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19682 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19683
19684 # If archive_cmds runs LD, not CC, wlarc should be empty
19685 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19686 # investigate it a little bit more. (MM)
19687 wlarc='${wl}'
19688
19689 # ancient GNU ld didn't support --whole-archive et. al.
19690 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19691 $GREP 'no-whole-archive' > /dev/null; then
19692 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19693 else
19694 whole_archive_flag_spec_CXX=
19695 fi
19696 else
19697 with_gnu_ld=no
19698 wlarc=
19699
19700 # A generic and very simple default shared library creation
19701 # command for GNU C++ for the case where it uses the native
19702 # linker, instead of GNU ld. If possible, this setting should
19703 # overridden to take advantage of the native linker features on
19704 # the platform it is being used on.
19705 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19706 fi
19707
19708 # Commands to make compiler produce verbose output that lists
19709 # what "hidden" libraries, object files and flags are used when
19710 # linking a shared library.
19711 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19712
19713 else
19714 GXX=no
19715 with_gnu_ld=no
19716 wlarc=
19717 fi
19718
19719 # PORTME: fill in a description of your system's C++ link characteristics
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19721 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19722 ld_shlibs_CXX=yes
19723 case $host_os in
19724 aix3*)
19725 # FIXME: insert proper C++ library support
19726 ld_shlibs_CXX=no
19727 ;;
19728 aix[4-9]*)
19729 if test "$host_cpu" = ia64; then
19730 # On IA64, the linker does run time linking by default, so we don't
19731 # have to do anything special.
19732 aix_use_runtimelinking=no
19733 exp_sym_flag='-Bexport'
19734 no_entry_flag=""
19735 else
19736 aix_use_runtimelinking=no
19737
19738 # Test if we are trying to use run time linking or normal
19739 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19740 # need to do runtime linking.
19741 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19742 for ld_flag in $LDFLAGS; do
19743 case $ld_flag in
19744 *-brtl*)
19745 aix_use_runtimelinking=yes
19746 break
19747 ;;
19748 esac
19749 done
19750 ;;
19751 esac
19752
19753 exp_sym_flag='-bexport'
19754 no_entry_flag='-bnoentry'
19755 fi
19756
19757 # When large executables or shared objects are built, AIX ld can
19758 # have problems creating the table of contents. If linking a library
19759 # or program results in "error TOC overflow" add -mminimal-toc to
19760 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19761 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19762
19763 archive_cmds_CXX=''
19764 hardcode_direct_CXX=yes
19765 hardcode_direct_absolute_CXX=yes
19766 hardcode_libdir_separator_CXX=':'
19767 link_all_deplibs_CXX=yes
19768 file_list_spec_CXX='${wl}-f,'
19769
19770 if test "$GXX" = yes; then
19771 case $host_os in aix4.[012]|aix4.[012].*)
19772 # We only want to do this on AIX 4.2 and lower, the check
19773 # below for broken collect2 doesn't work under 4.3+
19774 collect2name=`${CC} -print-prog-name=collect2`
19775 if test -f "$collect2name" &&
19776 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19777 then
19778 # We have reworked collect2
19779 :
19780 else
19781 # We have old collect2
19782 hardcode_direct_CXX=unsupported
19783 # It fails to find uninstalled libraries when the uninstalled
19784 # path is not listed in the libpath. Setting hardcode_minus_L
19785 # to unsupported forces relinking
19786 hardcode_minus_L_CXX=yes
19787 hardcode_libdir_flag_spec_CXX='-L$libdir'
19788 hardcode_libdir_separator_CXX=
19789 fi
19790 esac
19791 shared_flag='-shared'
19792 if test "$aix_use_runtimelinking" = yes; then
19793 shared_flag="$shared_flag "'${wl}-G'
19794 fi
19795 else
19796 # not using gcc
19797 if test "$host_cpu" = ia64; then
19798 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19799 # chokes on -Wl,-G. The following line is correct:
19800 shared_flag='-G'
19801 else
19802 if test "$aix_use_runtimelinking" = yes; then
19803 shared_flag='${wl}-G'
19804 else
19805 shared_flag='${wl}-bM:SRE'
19806 fi
19807 fi
19808 fi
19809
19810 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19811 # It seems that -bexpall does not export symbols beginning with
19812 # underscore (_), so it is better to generate a list of symbols to
19813 # export.
19814 always_export_symbols_CXX=yes
19815 if test "$aix_use_runtimelinking" = yes; then
19816 # Warning - without using the other runtime loading flags (-brtl),
19817 # -berok will link without error, but may produce a broken library.
19818 allow_undefined_flag_CXX='-berok'
19819 # Determine the default libpath from the value encoded in an empty
19820 # executable.
19821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19822 /* end confdefs.h. */
19823
19824 int
19825 main ()
19826 {
19827
19828 ;
19829 return 0;
19830 }
19831 _ACEOF
19832 if ac_fn_cxx_try_link "$LINENO"; then :
19833
19834 lt_aix_libpath_sed='
19835 /Import File Strings/,/^$/ {
19836 /^0/ {
19837 s/^0 *\(.*\)$/\1/
19838 p
19839 }
19840 }'
19841 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19842 # Check for a 64-bit object if we didn't find anything.
19843 if test -z "$aix_libpath"; then
19844 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19845 fi
19846 fi
19847 rm -f core conftest.err conftest.$ac_objext \
19848 conftest$ac_exeext conftest.$ac_ext
19849 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19850
19851 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19852
19853 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"
19854 else
19855 if test "$host_cpu" = ia64; then
19856 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19857 allow_undefined_flag_CXX="-z nodefs"
19858 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"
19859 else
19860 # Determine the default libpath from the value encoded in an
19861 # empty executable.
19862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19863 /* end confdefs.h. */
19864
19865 int
19866 main ()
19867 {
19868
19869 ;
19870 return 0;
19871 }
19872 _ACEOF
19873 if ac_fn_cxx_try_link "$LINENO"; then :
19874
19875 lt_aix_libpath_sed='
19876 /Import File Strings/,/^$/ {
19877 /^0/ {
19878 s/^0 *\(.*\)$/\1/
19879 p
19880 }
19881 }'
19882 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19883 # Check for a 64-bit object if we didn't find anything.
19884 if test -z "$aix_libpath"; then
19885 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19886 fi
19887 fi
19888 rm -f core conftest.err conftest.$ac_objext \
19889 conftest$ac_exeext conftest.$ac_ext
19890 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19891
19892 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19893 # Warning - without using the other run time loading flags,
19894 # -berok will link without error, but may produce a broken library.
19895 no_undefined_flag_CXX=' ${wl}-bernotok'
19896 allow_undefined_flag_CXX=' ${wl}-berok'
19897 if test "$with_gnu_ld" = yes; then
19898 # We only use this code for GNU lds that support --whole-archive.
19899 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19900 else
19901 # Exported symbols can be pulled into shared objects from archives
19902 whole_archive_flag_spec_CXX='$convenience'
19903 fi
19904 archive_cmds_need_lc_CXX=yes
19905 # This is similar to how AIX traditionally builds its shared
19906 # libraries.
19907 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'
19908 fi
19909 fi
19910 ;;
19911
19912 beos*)
19913 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19914 allow_undefined_flag_CXX=unsupported
19915 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19916 # support --undefined. This deserves some investigation. FIXME
19917 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19918 else
19919 ld_shlibs_CXX=no
19920 fi
19921 ;;
19922
19923 chorus*)
19924 case $cc_basename in
19925 *)
19926 # FIXME: insert proper C++ library support
19927 ld_shlibs_CXX=no
19928 ;;
19929 esac
19930 ;;
19931
19932 cygwin* | mingw* | pw32* | cegcc*)
19933 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19934 # as there is no search path for DLLs.
19935 hardcode_libdir_flag_spec_CXX='-L$libdir'
19936 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19937 allow_undefined_flag_CXX=unsupported
19938 always_export_symbols_CXX=no
19939 enable_shared_with_static_runtimes_CXX=yes
19940
19941 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19942 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'
19943 # If the export-symbols file already is a .def file (1st line
19944 # is EXPORTS), use it as is; otherwise, prepend...
19945 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19946 cp $export_symbols $output_objdir/$soname.def;
19947 else
19948 echo EXPORTS > $output_objdir/$soname.def;
19949 cat $export_symbols >> $output_objdir/$soname.def;
19950 fi~
19951 $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'
19952 else
19953 ld_shlibs_CXX=no
19954 fi
19955 ;;
19956 darwin* | rhapsody*)
19957
19958
19959 archive_cmds_need_lc_CXX=no
19960 hardcode_direct_CXX=no
19961 hardcode_automatic_CXX=yes
19962 hardcode_shlibpath_var_CXX=unsupported
19963 if test "$lt_cv_ld_force_load" = "yes"; then
19964 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\"`'
19965 else
19966 whole_archive_flag_spec_CXX=''
19967 fi
19968 link_all_deplibs_CXX=yes
19969 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19970 case $cc_basename in
19971 ifort*) _lt_dar_can_shared=yes ;;
19972 *) _lt_dar_can_shared=$GCC ;;
19973 esac
19974 if test "$_lt_dar_can_shared" = "yes"; then
19975 output_verbose_link_cmd=func_echo_all
19976 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}"
19977 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19978 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}"
19979 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}"
19980 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19981 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}"
19982 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}"
19983 fi
19984
19985 else
19986 ld_shlibs_CXX=no
19987 fi
19988
19989 ;;
19990
19991 dgux*)
19992 case $cc_basename in
19993 ec++*)
19994 # FIXME: insert proper C++ library support
19995 ld_shlibs_CXX=no
19996 ;;
19997 ghcx*)
19998 # Green Hills C++ Compiler
19999 # FIXME: insert proper C++ library support
20000 ld_shlibs_CXX=no
20001 ;;
20002 *)
20003 # FIXME: insert proper C++ library support
20004 ld_shlibs_CXX=no
20005 ;;
20006 esac
20007 ;;
20008
20009 freebsd2.*)
20010 # C++ shared libraries reported to be fairly broken before
20011 # switch to ELF
20012 ld_shlibs_CXX=no
20013 ;;
20014
20015 freebsd-elf*)
20016 archive_cmds_need_lc_CXX=no
20017 ;;
20018
20019 freebsd* | dragonfly*)
20020 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20021 # conventions
20022 ld_shlibs_CXX=yes
20023 ;;
20024
20025 gnu*)
20026 ;;
20027
20028 haiku*)
20029 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20030 link_all_deplibs_CXX=yes
20031 ;;
20032
20033 hpux9*)
20034 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20035 hardcode_libdir_separator_CXX=:
20036 export_dynamic_flag_spec_CXX='${wl}-E'
20037 hardcode_direct_CXX=yes
20038 hardcode_minus_L_CXX=yes # Not in the search PATH,
20039 # but as the default
20040 # location of the library.
20041
20042 case $cc_basename in
20043 CC*)
20044 # FIXME: insert proper C++ library support
20045 ld_shlibs_CXX=no
20046 ;;
20047 aCC*)
20048 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'
20049 # Commands to make compiler produce verbose output that lists
20050 # what "hidden" libraries, object files and flags are used when
20051 # linking a shared library.
20052 #
20053 # There doesn't appear to be a way to prevent this compiler from
20054 # explicitly linking system object files so we need to strip them
20055 # from the output so that they don't get included in the library
20056 # dependencies.
20057 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"'
20058 ;;
20059 *)
20060 if test "$GXX" = yes; then
20061 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'
20062 else
20063 # FIXME: insert proper C++ library support
20064 ld_shlibs_CXX=no
20065 fi
20066 ;;
20067 esac
20068 ;;
20069
20070 hpux10*|hpux11*)
20071 if test $with_gnu_ld = no; then
20072 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20073 hardcode_libdir_separator_CXX=:
20074
20075 case $host_cpu in
20076 hppa*64*|ia64*)
20077 ;;
20078 *)
20079 export_dynamic_flag_spec_CXX='${wl}-E'
20080 ;;
20081 esac
20082 fi
20083 case $host_cpu in
20084 hppa*64*|ia64*)
20085 hardcode_direct_CXX=no
20086 hardcode_shlibpath_var_CXX=no
20087 ;;
20088 *)
20089 hardcode_direct_CXX=yes
20090 hardcode_direct_absolute_CXX=yes
20091 hardcode_minus_L_CXX=yes # Not in the search PATH,
20092 # but as the default
20093 # location of the library.
20094 ;;
20095 esac
20096
20097 case $cc_basename in
20098 CC*)
20099 # FIXME: insert proper C++ library support
20100 ld_shlibs_CXX=no
20101 ;;
20102 aCC*)
20103 case $host_cpu in
20104 hppa*64*)
20105 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20106 ;;
20107 ia64*)
20108 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20109 ;;
20110 *)
20111 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20112 ;;
20113 esac
20114 # Commands to make compiler produce verbose output that lists
20115 # what "hidden" libraries, object files and flags are used when
20116 # linking a shared library.
20117 #
20118 # There doesn't appear to be a way to prevent this compiler from
20119 # explicitly linking system object files so we need to strip them
20120 # from the output so that they don't get included in the library
20121 # dependencies.
20122 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"'
20123 ;;
20124 *)
20125 if test "$GXX" = yes; then
20126 if test $with_gnu_ld = no; then
20127 case $host_cpu in
20128 hppa*64*)
20129 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20130 ;;
20131 ia64*)
20132 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20133 ;;
20134 *)
20135 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'
20136 ;;
20137 esac
20138 fi
20139 else
20140 # FIXME: insert proper C++ library support
20141 ld_shlibs_CXX=no
20142 fi
20143 ;;
20144 esac
20145 ;;
20146
20147 interix[3-9]*)
20148 hardcode_direct_CXX=no
20149 hardcode_shlibpath_var_CXX=no
20150 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20151 export_dynamic_flag_spec_CXX='${wl}-E'
20152 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20153 # Instead, shared libraries are loaded at an image base (0x10000000 by
20154 # default) and relocated if they conflict, which is a slow very memory
20155 # consuming and fragmenting process. To avoid this, we pick a random,
20156 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20157 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20158 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'
20159 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'
20160 ;;
20161 irix5* | irix6*)
20162 case $cc_basename in
20163 CC*)
20164 # SGI C++
20165 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'
20166
20167 # Archives containing C++ object files must be created using
20168 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20169 # necessary to make sure instantiated templates are included
20170 # in the archive.
20171 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20172 ;;
20173 *)
20174 if test "$GXX" = yes; then
20175 if test "$with_gnu_ld" = no; then
20176 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'
20177 else
20178 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'
20179 fi
20180 fi
20181 link_all_deplibs_CXX=yes
20182 ;;
20183 esac
20184 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20185 hardcode_libdir_separator_CXX=:
20186 inherit_rpath_CXX=yes
20187 ;;
20188
20189 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20190 case $cc_basename in
20191 KCC*)
20192 # Kuck and Associates, Inc. (KAI) C++ Compiler
20193
20194 # KCC will only create a shared library if the output file
20195 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20196 # to its proper name (with version) after linking.
20197 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'
20198 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'
20199 # Commands to make compiler produce verbose output that lists
20200 # what "hidden" libraries, object files and flags are used when
20201 # linking a shared library.
20202 #
20203 # There doesn't appear to be a way to prevent this compiler from
20204 # explicitly linking system object files so we need to strip them
20205 # from the output so that they don't get included in the library
20206 # dependencies.
20207 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"'
20208
20209 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20210 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20211
20212 # Archives containing C++ object files must be created using
20213 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20214 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20215 ;;
20216 icpc* | ecpc* )
20217 # Intel C++
20218 with_gnu_ld=yes
20219 # version 8.0 and above of icpc choke on multiply defined symbols
20220 # if we add $predep_objects and $postdep_objects, however 7.1 and
20221 # earlier do not add the objects themselves.
20222 case `$CC -V 2>&1` in
20223 *"Version 7."*)
20224 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20225 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'
20226 ;;
20227 *) # Version 8.0 or newer
20228 tmp_idyn=
20229 case $host_cpu in
20230 ia64*) tmp_idyn=' -i_dynamic';;
20231 esac
20232 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20233 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'
20234 ;;
20235 esac
20236 archive_cmds_need_lc_CXX=no
20237 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20238 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20239 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20240 ;;
20241 pgCC* | pgcpp*)
20242 # Portland Group C++ compiler
20243 case `$CC -V` in
20244 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20245 prelink_cmds_CXX='tpldir=Template.dir~
20246 rm -rf $tpldir~
20247 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20248 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20249 old_archive_cmds_CXX='tpldir=Template.dir~
20250 rm -rf $tpldir~
20251 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20252 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20253 $RANLIB $oldlib'
20254 archive_cmds_CXX='tpldir=Template.dir~
20255 rm -rf $tpldir~
20256 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20257 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20258 archive_expsym_cmds_CXX='tpldir=Template.dir~
20259 rm -rf $tpldir~
20260 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20261 $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'
20262 ;;
20263 *) # Version 6 and above use weak symbols
20264 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20265 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'
20266 ;;
20267 esac
20268
20269 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20270 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20271 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'
20272 ;;
20273 cxx*)
20274 # Compaq C++
20275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20276 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'
20277
20278 runpath_var=LD_RUN_PATH
20279 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20280 hardcode_libdir_separator_CXX=:
20281
20282 # Commands to make compiler produce verbose output that lists
20283 # what "hidden" libraries, object files and flags are used when
20284 # linking a shared library.
20285 #
20286 # There doesn't appear to be a way to prevent this compiler from
20287 # explicitly linking system object files so we need to strip them
20288 # from the output so that they don't get included in the library
20289 # dependencies.
20290 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'
20291 ;;
20292 xl* | mpixl* | bgxl*)
20293 # IBM XL 8.0 on PPC, with GNU ld
20294 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20295 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20296 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20297 if test "x$supports_anon_versioning" = xyes; then
20298 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20299 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20300 echo "local: *; };" >> $output_objdir/$libname.ver~
20301 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20302 fi
20303 ;;
20304 *)
20305 case `$CC -V 2>&1 | sed 5q` in
20306 *Sun\ C*)
20307 # Sun C++ 5.9
20308 no_undefined_flag_CXX=' -zdefs'
20309 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20310 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'
20311 hardcode_libdir_flag_spec_CXX='-R$libdir'
20312 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'
20313 compiler_needs_object_CXX=yes
20314
20315 # Not sure whether something based on
20316 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20317 # would be better.
20318 output_verbose_link_cmd='func_echo_all'
20319
20320 # Archives containing C++ object files must be created using
20321 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20322 # necessary to make sure instantiated templates are included
20323 # in the archive.
20324 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20325 ;;
20326 esac
20327 ;;
20328 esac
20329 ;;
20330
20331 lynxos*)
20332 # FIXME: insert proper C++ library support
20333 ld_shlibs_CXX=no
20334 ;;
20335
20336 m88k*)
20337 # FIXME: insert proper C++ library support
20338 ld_shlibs_CXX=no
20339 ;;
20340
20341 mvs*)
20342 case $cc_basename in
20343 cxx*)
20344 # FIXME: insert proper C++ library support
20345 ld_shlibs_CXX=no
20346 ;;
20347 *)
20348 # FIXME: insert proper C++ library support
20349 ld_shlibs_CXX=no
20350 ;;
20351 esac
20352 ;;
20353
20354 netbsd*)
20355 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20356 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20357 wlarc=
20358 hardcode_libdir_flag_spec_CXX='-R$libdir'
20359 hardcode_direct_CXX=yes
20360 hardcode_shlibpath_var_CXX=no
20361 fi
20362 # Workaround some broken pre-1.5 toolchains
20363 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20364 ;;
20365
20366 *nto* | *qnx*)
20367 ld_shlibs_CXX=yes
20368 ;;
20369
20370 openbsd2*)
20371 # C++ shared libraries are fairly broken
20372 ld_shlibs_CXX=no
20373 ;;
20374
20375 openbsd*)
20376 if test -f /usr/libexec/ld.so; then
20377 hardcode_direct_CXX=yes
20378 hardcode_shlibpath_var_CXX=no
20379 hardcode_direct_absolute_CXX=yes
20380 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20381 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20382 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20383 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20384 export_dynamic_flag_spec_CXX='${wl}-E'
20385 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20386 fi
20387 output_verbose_link_cmd=func_echo_all
20388 else
20389 ld_shlibs_CXX=no
20390 fi
20391 ;;
20392
20393 osf3* | osf4* | osf5*)
20394 case $cc_basename in
20395 KCC*)
20396 # Kuck and Associates, Inc. (KAI) C++ Compiler
20397
20398 # KCC will only create a shared library if the output file
20399 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20400 # to its proper name (with version) after linking.
20401 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'
20402
20403 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20404 hardcode_libdir_separator_CXX=:
20405
20406 # Archives containing C++ object files must be created using
20407 # the KAI C++ compiler.
20408 case $host in
20409 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20410 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20411 esac
20412 ;;
20413 RCC*)
20414 # Rational C++ 2.4.1
20415 # FIXME: insert proper C++ library support
20416 ld_shlibs_CXX=no
20417 ;;
20418 cxx*)
20419 case $host in
20420 osf3*)
20421 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20422 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'
20423 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20424 ;;
20425 *)
20426 allow_undefined_flag_CXX=' -expect_unresolved \*'
20427 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'
20428 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20429 echo "-hidden">> $lib.exp~
20430 $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~
20431 $RM $lib.exp'
20432 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20433 ;;
20434 esac
20435
20436 hardcode_libdir_separator_CXX=:
20437
20438 # Commands to make compiler produce verbose output that lists
20439 # what "hidden" libraries, object files and flags are used when
20440 # linking a shared library.
20441 #
20442 # There doesn't appear to be a way to prevent this compiler from
20443 # explicitly linking system object files so we need to strip them
20444 # from the output so that they don't get included in the library
20445 # dependencies.
20446 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"'
20447 ;;
20448 *)
20449 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20450 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20451 case $host in
20452 osf3*)
20453 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'
20454 ;;
20455 *)
20456 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'
20457 ;;
20458 esac
20459
20460 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20461 hardcode_libdir_separator_CXX=:
20462
20463 # Commands to make compiler produce verbose output that lists
20464 # what "hidden" libraries, object files and flags are used when
20465 # linking a shared library.
20466 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20467
20468 else
20469 # FIXME: insert proper C++ library support
20470 ld_shlibs_CXX=no
20471 fi
20472 ;;
20473 esac
20474 ;;
20475
20476 psos*)
20477 # FIXME: insert proper C++ library support
20478 ld_shlibs_CXX=no
20479 ;;
20480
20481 sunos4*)
20482 case $cc_basename in
20483 CC*)
20484 # Sun C++ 4.x
20485 # FIXME: insert proper C++ library support
20486 ld_shlibs_CXX=no
20487 ;;
20488 lcc*)
20489 # Lucid
20490 # FIXME: insert proper C++ library support
20491 ld_shlibs_CXX=no
20492 ;;
20493 *)
20494 # FIXME: insert proper C++ library support
20495 ld_shlibs_CXX=no
20496 ;;
20497 esac
20498 ;;
20499
20500 solaris*)
20501 case $cc_basename in
20502 CC*)
20503 # Sun C++ 4.2, 5.x and Centerline C++
20504 archive_cmds_need_lc_CXX=yes
20505 no_undefined_flag_CXX=' -zdefs'
20506 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20507 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20508 $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'
20509
20510 hardcode_libdir_flag_spec_CXX='-R$libdir'
20511 hardcode_shlibpath_var_CXX=no
20512 case $host_os in
20513 solaris2.[0-5] | solaris2.[0-5].*) ;;
20514 *)
20515 # The compiler driver will combine and reorder linker options,
20516 # but understands `-z linker_flag'.
20517 # Supported since Solaris 2.6 (maybe 2.5.1?)
20518 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20519 ;;
20520 esac
20521 link_all_deplibs_CXX=yes
20522
20523 output_verbose_link_cmd='func_echo_all'
20524
20525 # Archives containing C++ object files must be created using
20526 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20527 # necessary to make sure instantiated templates are included
20528 # in the archive.
20529 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20530 ;;
20531 gcx*)
20532 # Green Hills C++ Compiler
20533 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20534
20535 # The C++ compiler must be used to create the archive.
20536 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20537 ;;
20538 *)
20539 # GNU C++ compiler with Solaris linker
20540 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20541 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20542 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20543 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20544 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20545 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20546
20547 # Commands to make compiler produce verbose output that lists
20548 # what "hidden" libraries, object files and flags are used when
20549 # linking a shared library.
20550 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20551 else
20552 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20553 # platform.
20554 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20555 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20556 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20557
20558 # Commands to make compiler produce verbose output that lists
20559 # what "hidden" libraries, object files and flags are used when
20560 # linking a shared library.
20561 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20562 fi
20563
20564 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20565 case $host_os in
20566 solaris2.[0-5] | solaris2.[0-5].*) ;;
20567 *)
20568 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20569 ;;
20570 esac
20571 fi
20572 ;;
20573 esac
20574 ;;
20575
20576 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20577 no_undefined_flag_CXX='${wl}-z,text'
20578 archive_cmds_need_lc_CXX=no
20579 hardcode_shlibpath_var_CXX=no
20580 runpath_var='LD_RUN_PATH'
20581
20582 case $cc_basename in
20583 CC*)
20584 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20585 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20586 ;;
20587 *)
20588 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20589 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20590 ;;
20591 esac
20592 ;;
20593
20594 sysv5* | sco3.2v5* | sco5v6*)
20595 # Note: We can NOT use -z defs as we might desire, because we do not
20596 # link with -lc, and that would cause any symbols used from libc to
20597 # always be unresolved, which means just about no library would
20598 # ever link correctly. If we're not using GNU ld we use -z text
20599 # though, which does catch some bad symbols but isn't as heavy-handed
20600 # as -z defs.
20601 no_undefined_flag_CXX='${wl}-z,text'
20602 allow_undefined_flag_CXX='${wl}-z,nodefs'
20603 archive_cmds_need_lc_CXX=no
20604 hardcode_shlibpath_var_CXX=no
20605 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20606 hardcode_libdir_separator_CXX=':'
20607 link_all_deplibs_CXX=yes
20608 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20609 runpath_var='LD_RUN_PATH'
20610
20611 case $cc_basename in
20612 CC*)
20613 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20614 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20615 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20616 '"$old_archive_cmds_CXX"
20617 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20618 '"$reload_cmds_CXX"
20619 ;;
20620 *)
20621 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20622 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20623 ;;
20624 esac
20625 ;;
20626
20627 tandem*)
20628 case $cc_basename in
20629 NCC*)
20630 # NonStop-UX NCC 3.20
20631 # FIXME: insert proper C++ library support
20632 ld_shlibs_CXX=no
20633 ;;
20634 *)
20635 # FIXME: insert proper C++ library support
20636 ld_shlibs_CXX=no
20637 ;;
20638 esac
20639 ;;
20640
20641 vxworks*)
20642 # FIXME: insert proper C++ library support
20643 ld_shlibs_CXX=no
20644 ;;
20645
20646 *)
20647 # FIXME: insert proper C++ library support
20648 ld_shlibs_CXX=no
20649 ;;
20650 esac
20651
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20653 $as_echo "$ld_shlibs_CXX" >&6; }
20654 test "$ld_shlibs_CXX" = no && can_build_shared=no
20655
20656 GCC_CXX="$GXX"
20657 LD_CXX="$LD"
20658
20659 ## CAVEAT EMPTOR:
20660 ## There is no encapsulation within the following macros, do not change
20661 ## the running order or otherwise move them around unless you know exactly
20662 ## what you are doing...
20663 # Dependencies to place before and after the object being linked:
20664 predep_objects_CXX=
20665 postdep_objects_CXX=
20666 predeps_CXX=
20667 postdeps_CXX=
20668 compiler_lib_search_path_CXX=
20669
20670 cat > conftest.$ac_ext <<_LT_EOF
20671 class Foo
20672 {
20673 public:
20674 Foo (void) { a = 0; }
20675 private:
20676 int a;
20677 };
20678 _LT_EOF
20679
20680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20681 (eval $ac_compile) 2>&5
20682 ac_status=$?
20683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20684 test $ac_status = 0; }; then
20685 # Parse the compiler output and extract the necessary
20686 # objects, libraries and library flags.
20687
20688 # Sentinel used to keep track of whether or not we are before
20689 # the conftest object file.
20690 pre_test_object_deps_done=no
20691
20692 for p in `eval "$output_verbose_link_cmd"`; do
20693 case $p in
20694
20695 -L* | -R* | -l*)
20696 # Some compilers place space between "-{L,R}" and the path.
20697 # Remove the space.
20698 if test $p = "-L" ||
20699 test $p = "-R"; then
20700 prev=$p
20701 continue
20702 else
20703 prev=
20704 fi
20705
20706 if test "$pre_test_object_deps_done" = no; then
20707 case $p in
20708 -L* | -R*)
20709 # Internal compiler library paths should come after those
20710 # provided the user. The postdeps already come after the
20711 # user supplied libs so there is no need to process them.
20712 if test -z "$compiler_lib_search_path_CXX"; then
20713 compiler_lib_search_path_CXX="${prev}${p}"
20714 else
20715 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20716 fi
20717 ;;
20718 # The "-l" case would never come before the object being
20719 # linked, so don't bother handling this case.
20720 esac
20721 else
20722 if test -z "$postdeps_CXX"; then
20723 postdeps_CXX="${prev}${p}"
20724 else
20725 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20726 fi
20727 fi
20728 ;;
20729
20730 *.$objext)
20731 # This assumes that the test object file only shows up
20732 # once in the compiler output.
20733 if test "$p" = "conftest.$objext"; then
20734 pre_test_object_deps_done=yes
20735 continue
20736 fi
20737
20738 if test "$pre_test_object_deps_done" = no; then
20739 if test -z "$predep_objects_CXX"; then
20740 predep_objects_CXX="$p"
20741 else
20742 predep_objects_CXX="$predep_objects_CXX $p"
20743 fi
20744 else
20745 if test -z "$postdep_objects_CXX"; then
20746 postdep_objects_CXX="$p"
20747 else
20748 postdep_objects_CXX="$postdep_objects_CXX $p"
20749 fi
20750 fi
20751 ;;
20752
20753 *) ;; # Ignore the rest.
20754
20755 esac
20756 done
20757
20758 # Clean up.
20759 rm -f a.out a.exe
20760 else
20761 echo "libtool.m4: error: problem compiling CXX test program"
20762 fi
20763
20764 $RM -f confest.$objext
20765
20766 # PORTME: override above test on systems where it is broken
20767 case $host_os in
20768 interix[3-9]*)
20769 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20770 # hack all around it, let's just trust "g++" to DTRT.
20771 predep_objects_CXX=
20772 postdep_objects_CXX=
20773 postdeps_CXX=
20774 ;;
20775
20776 linux*)
20777 case `$CC -V 2>&1 | sed 5q` in
20778 *Sun\ C*)
20779 # Sun C++ 5.9
20780
20781 # The more standards-conforming stlport4 library is
20782 # incompatible with the Cstd library. Avoid specifying
20783 # it if it's in CXXFLAGS. Ignore libCrun as
20784 # -library=stlport4 depends on it.
20785 case " $CXX $CXXFLAGS " in
20786 *" -library=stlport4 "*)
20787 solaris_use_stlport4=yes
20788 ;;
20789 esac
20790
20791 if test "$solaris_use_stlport4" != yes; then
20792 postdeps_CXX='-library=Cstd -library=Crun'
20793 fi
20794 ;;
20795 esac
20796 ;;
20797
20798 solaris*)
20799 case $cc_basename in
20800 CC*)
20801 # The more standards-conforming stlport4 library is
20802 # incompatible with the Cstd library. Avoid specifying
20803 # it if it's in CXXFLAGS. Ignore libCrun as
20804 # -library=stlport4 depends on it.
20805 case " $CXX $CXXFLAGS " in
20806 *" -library=stlport4 "*)
20807 solaris_use_stlport4=yes
20808 ;;
20809 esac
20810
20811 # Adding this requires a known-good setup of shared libraries for
20812 # Sun compiler versions before 5.6, else PIC objects from an old
20813 # archive will be linked into the output, leading to subtle bugs.
20814 if test "$solaris_use_stlport4" != yes; then
20815 postdeps_CXX='-library=Cstd -library=Crun'
20816 fi
20817 ;;
20818 esac
20819 ;;
20820 esac
20821
20822
20823 case " $postdeps_CXX " in
20824 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20825 esac
20826 compiler_lib_search_dirs_CXX=
20827 if test -n "${compiler_lib_search_path_CXX}"; then
20828 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20829 fi
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861 lt_prog_compiler_wl_CXX=
20862 lt_prog_compiler_pic_CXX=
20863 lt_prog_compiler_static_CXX=
20864
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20866 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20867
20868 # C++ specific cases for pic, static, wl, etc.
20869 if test "$GXX" = yes; then
20870 lt_prog_compiler_wl_CXX='-Wl,'
20871 lt_prog_compiler_static_CXX='-static'
20872
20873 case $host_os in
20874 aix*)
20875 # All AIX code is PIC.
20876 if test "$host_cpu" = ia64; then
20877 # AIX 5 now supports IA64 processor
20878 lt_prog_compiler_static_CXX='-Bstatic'
20879 fi
20880 lt_prog_compiler_pic_CXX='-fPIC'
20881 ;;
20882
20883 amigaos*)
20884 case $host_cpu in
20885 powerpc)
20886 # see comment about AmigaOS4 .so support
20887 lt_prog_compiler_pic_CXX='-fPIC'
20888 ;;
20889 m68k)
20890 # FIXME: we need at least 68020 code to build shared libraries, but
20891 # adding the `-m68020' flag to GCC prevents building anything better,
20892 # like `-m68040'.
20893 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20894 ;;
20895 esac
20896 ;;
20897
20898 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20899 # PIC is the default for these OSes.
20900 ;;
20901 mingw* | cygwin* | os2* | pw32* | cegcc*)
20902 # This hack is so that the source file can tell whether it is being
20903 # built for inclusion in a dll (and should export symbols for example).
20904 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20905 # (--disable-auto-import) libraries
20906 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20907 ;;
20908 darwin* | rhapsody*)
20909 # PIC is the default on this platform
20910 # Common symbols not allowed in MH_DYLIB files
20911 lt_prog_compiler_pic_CXX='-fno-common'
20912 ;;
20913 *djgpp*)
20914 # DJGPP does not support shared libraries at all
20915 lt_prog_compiler_pic_CXX=
20916 ;;
20917 haiku*)
20918 # PIC is the default for Haiku.
20919 # The "-static" flag exists, but is broken.
20920 lt_prog_compiler_static_CXX=
20921 ;;
20922 interix[3-9]*)
20923 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20924 # Instead, we relocate shared libraries at runtime.
20925 ;;
20926 sysv4*MP*)
20927 if test -d /usr/nec; then
20928 lt_prog_compiler_pic_CXX=-Kconform_pic
20929 fi
20930 ;;
20931 hpux*)
20932 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20933 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20934 # sets the default TLS model and affects inlining.
20935 case $host_cpu in
20936 hppa*64*)
20937 ;;
20938 *)
20939 lt_prog_compiler_pic_CXX='-fPIC'
20940 ;;
20941 esac
20942 ;;
20943 *qnx* | *nto*)
20944 # QNX uses GNU C++, but need to define -shared option too, otherwise
20945 # it will coredump.
20946 lt_prog_compiler_pic_CXX='-fPIC -shared'
20947 ;;
20948 *)
20949 lt_prog_compiler_pic_CXX='-fPIC'
20950 ;;
20951 esac
20952 else
20953 case $host_os in
20954 aix[4-9]*)
20955 # All AIX code is PIC.
20956 if test "$host_cpu" = ia64; then
20957 # AIX 5 now supports IA64 processor
20958 lt_prog_compiler_static_CXX='-Bstatic'
20959 else
20960 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20961 fi
20962 ;;
20963 chorus*)
20964 case $cc_basename in
20965 cxch68*)
20966 # Green Hills C++ Compiler
20967 # _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"
20968 ;;
20969 esac
20970 ;;
20971 dgux*)
20972 case $cc_basename in
20973 ec++*)
20974 lt_prog_compiler_pic_CXX='-KPIC'
20975 ;;
20976 ghcx*)
20977 # Green Hills C++ Compiler
20978 lt_prog_compiler_pic_CXX='-pic'
20979 ;;
20980 *)
20981 ;;
20982 esac
20983 ;;
20984 freebsd* | dragonfly*)
20985 # FreeBSD uses GNU C++
20986 ;;
20987 hpux9* | hpux10* | hpux11*)
20988 case $cc_basename in
20989 CC*)
20990 lt_prog_compiler_wl_CXX='-Wl,'
20991 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20992 if test "$host_cpu" != ia64; then
20993 lt_prog_compiler_pic_CXX='+Z'
20994 fi
20995 ;;
20996 aCC*)
20997 lt_prog_compiler_wl_CXX='-Wl,'
20998 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20999 case $host_cpu in
21000 hppa*64*|ia64*)
21001 # +Z the default
21002 ;;
21003 *)
21004 lt_prog_compiler_pic_CXX='+Z'
21005 ;;
21006 esac
21007 ;;
21008 *)
21009 ;;
21010 esac
21011 ;;
21012 interix*)
21013 # This is c89, which is MS Visual C++ (no shared libs)
21014 # Anyone wants to do a port?
21015 ;;
21016 irix5* | irix6* | nonstopux*)
21017 case $cc_basename in
21018 CC*)
21019 lt_prog_compiler_wl_CXX='-Wl,'
21020 lt_prog_compiler_static_CXX='-non_shared'
21021 # CC pic flag -KPIC is the default.
21022 ;;
21023 *)
21024 ;;
21025 esac
21026 ;;
21027 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21028 case $cc_basename in
21029 KCC*)
21030 # KAI C++ Compiler
21031 lt_prog_compiler_wl_CXX='--backend -Wl,'
21032 lt_prog_compiler_pic_CXX='-fPIC'
21033 ;;
21034 ecpc* )
21035 # old Intel C++ for x86_64 which still supported -KPIC.
21036 lt_prog_compiler_wl_CXX='-Wl,'
21037 lt_prog_compiler_pic_CXX='-KPIC'
21038 lt_prog_compiler_static_CXX='-static'
21039 ;;
21040 icpc* )
21041 # Intel C++, used to be incompatible with GCC.
21042 # ICC 10 doesn't accept -KPIC any more.
21043 lt_prog_compiler_wl_CXX='-Wl,'
21044 lt_prog_compiler_pic_CXX='-fPIC'
21045 lt_prog_compiler_static_CXX='-static'
21046 ;;
21047 pgCC* | pgcpp*)
21048 # Portland Group C++ compiler
21049 lt_prog_compiler_wl_CXX='-Wl,'
21050 lt_prog_compiler_pic_CXX='-fpic'
21051 lt_prog_compiler_static_CXX='-Bstatic'
21052 ;;
21053 cxx*)
21054 # Compaq C++
21055 # Make sure the PIC flag is empty. It appears that all Alpha
21056 # Linux and Compaq Tru64 Unix objects are PIC.
21057 lt_prog_compiler_pic_CXX=
21058 lt_prog_compiler_static_CXX='-non_shared'
21059 ;;
21060 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21061 # IBM XL 8.0, 9.0 on PPC and BlueGene
21062 lt_prog_compiler_wl_CXX='-Wl,'
21063 lt_prog_compiler_pic_CXX='-qpic'
21064 lt_prog_compiler_static_CXX='-qstaticlink'
21065 ;;
21066 *)
21067 case `$CC -V 2>&1 | sed 5q` in
21068 *Sun\ C*)
21069 # Sun C++ 5.9
21070 lt_prog_compiler_pic_CXX='-KPIC'
21071 lt_prog_compiler_static_CXX='-Bstatic'
21072 lt_prog_compiler_wl_CXX='-Qoption ld '
21073 ;;
21074 esac
21075 ;;
21076 esac
21077 ;;
21078 lynxos*)
21079 ;;
21080 m88k*)
21081 ;;
21082 mvs*)
21083 case $cc_basename in
21084 cxx*)
21085 lt_prog_compiler_pic_CXX='-W c,exportall'
21086 ;;
21087 *)
21088 ;;
21089 esac
21090 ;;
21091 netbsd*)
21092 ;;
21093 *qnx* | *nto*)
21094 # QNX uses GNU C++, but need to define -shared option too, otherwise
21095 # it will coredump.
21096 lt_prog_compiler_pic_CXX='-fPIC -shared'
21097 ;;
21098 osf3* | osf4* | osf5*)
21099 case $cc_basename in
21100 KCC*)
21101 lt_prog_compiler_wl_CXX='--backend -Wl,'
21102 ;;
21103 RCC*)
21104 # Rational C++ 2.4.1
21105 lt_prog_compiler_pic_CXX='-pic'
21106 ;;
21107 cxx*)
21108 # Digital/Compaq C++
21109 lt_prog_compiler_wl_CXX='-Wl,'
21110 # Make sure the PIC flag is empty. It appears that all Alpha
21111 # Linux and Compaq Tru64 Unix objects are PIC.
21112 lt_prog_compiler_pic_CXX=
21113 lt_prog_compiler_static_CXX='-non_shared'
21114 ;;
21115 *)
21116 ;;
21117 esac
21118 ;;
21119 psos*)
21120 ;;
21121 solaris*)
21122 case $cc_basename in
21123 CC*)
21124 # Sun C++ 4.2, 5.x and Centerline C++
21125 lt_prog_compiler_pic_CXX='-KPIC'
21126 lt_prog_compiler_static_CXX='-Bstatic'
21127 lt_prog_compiler_wl_CXX='-Qoption ld '
21128 ;;
21129 gcx*)
21130 # Green Hills C++ Compiler
21131 lt_prog_compiler_pic_CXX='-PIC'
21132 ;;
21133 *)
21134 ;;
21135 esac
21136 ;;
21137 sunos4*)
21138 case $cc_basename in
21139 CC*)
21140 # Sun C++ 4.x
21141 lt_prog_compiler_pic_CXX='-pic'
21142 lt_prog_compiler_static_CXX='-Bstatic'
21143 ;;
21144 lcc*)
21145 # Lucid
21146 lt_prog_compiler_pic_CXX='-pic'
21147 ;;
21148 *)
21149 ;;
21150 esac
21151 ;;
21152 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21153 case $cc_basename in
21154 CC*)
21155 lt_prog_compiler_wl_CXX='-Wl,'
21156 lt_prog_compiler_pic_CXX='-KPIC'
21157 lt_prog_compiler_static_CXX='-Bstatic'
21158 ;;
21159 esac
21160 ;;
21161 tandem*)
21162 case $cc_basename in
21163 NCC*)
21164 # NonStop-UX NCC 3.20
21165 lt_prog_compiler_pic_CXX='-KPIC'
21166 ;;
21167 *)
21168 ;;
21169 esac
21170 ;;
21171 vxworks*)
21172 ;;
21173 *)
21174 lt_prog_compiler_can_build_shared_CXX=no
21175 ;;
21176 esac
21177 fi
21178
21179 case $host_os in
21180 # For platforms which do not support PIC, -DPIC is meaningless:
21181 *djgpp*)
21182 lt_prog_compiler_pic_CXX=
21183 ;;
21184 *)
21185 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21186 ;;
21187 esac
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21189 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21190
21191
21192
21193 #
21194 # Check to make sure the PIC flag actually works.
21195 #
21196 if test -n "$lt_prog_compiler_pic_CXX"; then
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21198 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21199 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21200 $as_echo_n "(cached) " >&6
21201 else
21202 lt_cv_prog_compiler_pic_works_CXX=no
21203 ac_outfile=conftest.$ac_objext
21204 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21205 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21206 # Insert the option either (1) after the last *FLAGS variable, or
21207 # (2) before a word containing "conftest.", or (3) at the end.
21208 # Note that $ac_compile itself does not contain backslashes and begins
21209 # with a dollar sign (not a hyphen), so the echo should work correctly.
21210 # The option is referenced via a variable to avoid confusing sed.
21211 lt_compile=`echo "$ac_compile" | $SED \
21212 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21213 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21214 -e 's:$: $lt_compiler_flag:'`
21215 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21216 (eval "$lt_compile" 2>conftest.err)
21217 ac_status=$?
21218 cat conftest.err >&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 if (exit $ac_status) && test -s "$ac_outfile"; then
21221 # The compiler can only warn and ignore the option if not recognized
21222 # So say no if there are warnings other than the usual output.
21223 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21224 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21225 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21226 lt_cv_prog_compiler_pic_works_CXX=yes
21227 fi
21228 fi
21229 $RM conftest*
21230
21231 fi
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21233 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21234
21235 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21236 case $lt_prog_compiler_pic_CXX in
21237 "" | " "*) ;;
21238 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21239 esac
21240 else
21241 lt_prog_compiler_pic_CXX=
21242 lt_prog_compiler_can_build_shared_CXX=no
21243 fi
21244
21245 fi
21246
21247
21248
21249 #
21250 # Check to make sure the static flag actually works.
21251 #
21252 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21254 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21255 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21256 $as_echo_n "(cached) " >&6
21257 else
21258 lt_cv_prog_compiler_static_works_CXX=no
21259 save_LDFLAGS="$LDFLAGS"
21260 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21261 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21262 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21263 # The linker can only warn and ignore the option if not recognized
21264 # So say no if there are warnings
21265 if test -s conftest.err; then
21266 # Append any errors to the config.log.
21267 cat conftest.err 1>&5
21268 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21269 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21270 if diff conftest.exp conftest.er2 >/dev/null; then
21271 lt_cv_prog_compiler_static_works_CXX=yes
21272 fi
21273 else
21274 lt_cv_prog_compiler_static_works_CXX=yes
21275 fi
21276 fi
21277 $RM -r conftest*
21278 LDFLAGS="$save_LDFLAGS"
21279
21280 fi
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21282 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21283
21284 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21285 :
21286 else
21287 lt_prog_compiler_static_CXX=
21288 fi
21289
21290
21291
21292
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21294 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21295 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21296 $as_echo_n "(cached) " >&6
21297 else
21298 lt_cv_prog_compiler_c_o_CXX=no
21299 $RM -r conftest 2>/dev/null
21300 mkdir conftest
21301 cd conftest
21302 mkdir out
21303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21304
21305 lt_compiler_flag="-o out/conftest2.$ac_objext"
21306 # Insert the option either (1) after the last *FLAGS variable, or
21307 # (2) before a word containing "conftest.", or (3) at the end.
21308 # Note that $ac_compile itself does not contain backslashes and begins
21309 # with a dollar sign (not a hyphen), so the echo should work correctly.
21310 lt_compile=`echo "$ac_compile" | $SED \
21311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21313 -e 's:$: $lt_compiler_flag:'`
21314 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21315 (eval "$lt_compile" 2>out/conftest.err)
21316 ac_status=$?
21317 cat out/conftest.err >&5
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21320 then
21321 # The compiler can only warn and ignore the option if not recognized
21322 # So say no if there are warnings
21323 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21324 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21325 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21326 lt_cv_prog_compiler_c_o_CXX=yes
21327 fi
21328 fi
21329 chmod u+w . 2>&5
21330 $RM conftest*
21331 # SGI C++ compiler will create directory out/ii_files/ for
21332 # template instantiation
21333 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21334 $RM out/* && rmdir out
21335 cd ..
21336 $RM -r conftest
21337 $RM conftest*
21338
21339 fi
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21341 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21342
21343
21344
21345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21346 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21347 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21348 $as_echo_n "(cached) " >&6
21349 else
21350 lt_cv_prog_compiler_c_o_CXX=no
21351 $RM -r conftest 2>/dev/null
21352 mkdir conftest
21353 cd conftest
21354 mkdir out
21355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21356
21357 lt_compiler_flag="-o out/conftest2.$ac_objext"
21358 # Insert the option either (1) after the last *FLAGS variable, or
21359 # (2) before a word containing "conftest.", or (3) at the end.
21360 # Note that $ac_compile itself does not contain backslashes and begins
21361 # with a dollar sign (not a hyphen), so the echo should work correctly.
21362 lt_compile=`echo "$ac_compile" | $SED \
21363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21365 -e 's:$: $lt_compiler_flag:'`
21366 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21367 (eval "$lt_compile" 2>out/conftest.err)
21368 ac_status=$?
21369 cat out/conftest.err >&5
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21372 then
21373 # The compiler can only warn and ignore the option if not recognized
21374 # So say no if there are warnings
21375 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21376 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21377 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21378 lt_cv_prog_compiler_c_o_CXX=yes
21379 fi
21380 fi
21381 chmod u+w . 2>&5
21382 $RM conftest*
21383 # SGI C++ compiler will create directory out/ii_files/ for
21384 # template instantiation
21385 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21386 $RM out/* && rmdir out
21387 cd ..
21388 $RM -r conftest
21389 $RM conftest*
21390
21391 fi
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21393 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21394
21395
21396
21397
21398 hard_links="nottested"
21399 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21400 # do not overwrite the value of need_locks provided by the user
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21402 $as_echo_n "checking if we can lock with hard links... " >&6; }
21403 hard_links=yes
21404 $RM conftest*
21405 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21406 touch conftest.a
21407 ln conftest.a conftest.b 2>&5 || hard_links=no
21408 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21410 $as_echo "$hard_links" >&6; }
21411 if test "$hard_links" = no; then
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21413 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21414 need_locks=warn
21415 fi
21416 else
21417 need_locks=no
21418 fi
21419
21420
21421
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21423 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21424
21425 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21426 case $host_os in
21427 aix[4-9]*)
21428 # If we're using GNU nm, then we don't want the "-C" option.
21429 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21430 # Also, AIX nm treats weak defined symbols like other global defined
21431 # symbols, whereas GNU nm marks them as "W".
21432 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21433 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'
21434 else
21435 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'
21436 fi
21437 ;;
21438 pw32*)
21439 export_symbols_cmds_CXX="$ltdll_cmds"
21440 ;;
21441 cygwin* | mingw* | cegcc*)
21442 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'
21443 ;;
21444 *)
21445 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21446 ;;
21447 esac
21448 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21449
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21451 $as_echo "$ld_shlibs_CXX" >&6; }
21452 test "$ld_shlibs_CXX" = no && can_build_shared=no
21453
21454 with_gnu_ld_CXX=$with_gnu_ld
21455
21456
21457
21458
21459
21460
21461 #
21462 # Do we need to explicitly link libc?
21463 #
21464 case "x$archive_cmds_need_lc_CXX" in
21465 x|xyes)
21466 # Assume -lc should be added
21467 archive_cmds_need_lc_CXX=yes
21468
21469 if test "$enable_shared" = yes && test "$GCC" = yes; then
21470 case $archive_cmds_CXX in
21471 *'~'*)
21472 # FIXME: we may have to deal with multi-command sequences.
21473 ;;
21474 '$CC '*)
21475 # Test whether the compiler implicitly links with -lc since on some
21476 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21477 # to ld, don't add -lc before -lgcc.
21478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21479 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21480 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21481 $as_echo_n "(cached) " >&6
21482 else
21483 $RM conftest*
21484 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21485
21486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21487 (eval $ac_compile) 2>&5
21488 ac_status=$?
21489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21490 test $ac_status = 0; } 2>conftest.err; then
21491 soname=conftest
21492 lib=conftest
21493 libobjs=conftest.$ac_objext
21494 deplibs=
21495 wl=$lt_prog_compiler_wl_CXX
21496 pic_flag=$lt_prog_compiler_pic_CXX
21497 compiler_flags=-v
21498 linker_flags=-v
21499 verstring=
21500 output_objdir=.
21501 libname=conftest
21502 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21503 allow_undefined_flag_CXX=
21504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21505 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21506 ac_status=$?
21507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21508 test $ac_status = 0; }
21509 then
21510 lt_cv_archive_cmds_need_lc_CXX=no
21511 else
21512 lt_cv_archive_cmds_need_lc_CXX=yes
21513 fi
21514 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21515 else
21516 cat conftest.err 1>&5
21517 fi
21518 $RM conftest*
21519
21520 fi
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21522 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21523 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21524 ;;
21525 esac
21526 fi
21527 ;;
21528 esac
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21594 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21595
21596 library_names_spec=
21597 libname_spec='lib$name'
21598 soname_spec=
21599 shrext_cmds=".so"
21600 postinstall_cmds=
21601 postuninstall_cmds=
21602 finish_cmds=
21603 finish_eval=
21604 shlibpath_var=
21605 shlibpath_overrides_runpath=unknown
21606 version_type=none
21607 dynamic_linker="$host_os ld.so"
21608 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21609 need_lib_prefix=unknown
21610 hardcode_into_libs=no
21611
21612 # when you set need_version to no, make sure it does not cause -set_version
21613 # flags to be left without arguments
21614 need_version=unknown
21615
21616 case $host_os in
21617 aix3*)
21618 version_type=linux
21619 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21620 shlibpath_var=LIBPATH
21621
21622 # AIX 3 has no versioning support, so we append a major version to the name.
21623 soname_spec='${libname}${release}${shared_ext}$major'
21624 ;;
21625
21626 aix[4-9]*)
21627 version_type=linux
21628 need_lib_prefix=no
21629 need_version=no
21630 hardcode_into_libs=yes
21631 if test "$host_cpu" = ia64; then
21632 # AIX 5 supports IA64
21633 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21634 shlibpath_var=LD_LIBRARY_PATH
21635 else
21636 # With GCC up to 2.95.x, collect2 would create an import file
21637 # for dependence libraries. The import file would start with
21638 # the line `#! .'. This would cause the generated library to
21639 # depend on `.', always an invalid library. This was fixed in
21640 # development snapshots of GCC prior to 3.0.
21641 case $host_os in
21642 aix4 | aix4.[01] | aix4.[01].*)
21643 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21644 echo ' yes '
21645 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21646 :
21647 else
21648 can_build_shared=no
21649 fi
21650 ;;
21651 esac
21652 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21653 # soname into executable. Probably we can add versioning support to
21654 # collect2, so additional links can be useful in future.
21655 if test "$aix_use_runtimelinking" = yes; then
21656 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21657 # instead of lib<name>.a to let people know that these are not
21658 # typical AIX shared libraries.
21659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21660 else
21661 # We preserve .a as extension for shared libraries through AIX4.2
21662 # and later when we are not doing run time linking.
21663 library_names_spec='${libname}${release}.a $libname.a'
21664 soname_spec='${libname}${release}${shared_ext}$major'
21665 fi
21666 shlibpath_var=LIBPATH
21667 fi
21668 ;;
21669
21670 amigaos*)
21671 case $host_cpu in
21672 powerpc)
21673 # Since July 2007 AmigaOS4 officially supports .so libraries.
21674 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21676 ;;
21677 m68k)
21678 library_names_spec='$libname.ixlibrary $libname.a'
21679 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21680 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'
21681 ;;
21682 esac
21683 ;;
21684
21685 beos*)
21686 library_names_spec='${libname}${shared_ext}'
21687 dynamic_linker="$host_os ld.so"
21688 shlibpath_var=LIBRARY_PATH
21689 ;;
21690
21691 bsdi[45]*)
21692 version_type=linux
21693 need_version=no
21694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21695 soname_spec='${libname}${release}${shared_ext}$major'
21696 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21697 shlibpath_var=LD_LIBRARY_PATH
21698 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21699 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21700 # the default ld.so.conf also contains /usr/contrib/lib and
21701 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21702 # libtool to hard-code these into programs
21703 ;;
21704
21705 cygwin* | mingw* | pw32* | cegcc*)
21706 version_type=windows
21707 shrext_cmds=".dll"
21708 need_version=no
21709 need_lib_prefix=no
21710
21711 case $GCC,$host_os in
21712 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21713 library_names_spec='$libname.dll.a'
21714 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21715 postinstall_cmds='base_file=`basename \${file}`~
21716 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21717 dldir=$destdir/`dirname \$dlpath`~
21718 test -d \$dldir || mkdir -p \$dldir~
21719 $install_prog $dir/$dlname \$dldir/$dlname~
21720 chmod a+x \$dldir/$dlname~
21721 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21722 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21723 fi'
21724 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21725 dlpath=$dir/\$dldll~
21726 $RM \$dlpath'
21727 shlibpath_overrides_runpath=yes
21728
21729 case $host_os in
21730 cygwin*)
21731 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21732 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21733
21734 ;;
21735 mingw* | cegcc*)
21736 # MinGW DLLs use traditional 'lib' prefix
21737 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21738 ;;
21739 pw32*)
21740 # pw32 DLLs use 'pw' prefix rather than 'lib'
21741 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21742 ;;
21743 esac
21744 ;;
21745
21746 *)
21747 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21748 ;;
21749 esac
21750 dynamic_linker='Win32 ld.exe'
21751 # FIXME: first we should search . and the directory the executable is in
21752 shlibpath_var=PATH
21753 ;;
21754
21755 darwin* | rhapsody*)
21756 dynamic_linker="$host_os dyld"
21757 version_type=darwin
21758 need_lib_prefix=no
21759 need_version=no
21760 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21761 soname_spec='${libname}${release}${major}$shared_ext'
21762 shlibpath_overrides_runpath=yes
21763 shlibpath_var=DYLD_LIBRARY_PATH
21764 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21765
21766 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21767 ;;
21768
21769 dgux*)
21770 version_type=linux
21771 need_lib_prefix=no
21772 need_version=no
21773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21774 soname_spec='${libname}${release}${shared_ext}$major'
21775 shlibpath_var=LD_LIBRARY_PATH
21776 ;;
21777
21778 freebsd* | dragonfly*)
21779 # DragonFly does not have aout. When/if they implement a new
21780 # versioning mechanism, adjust this.
21781 if test -x /usr/bin/objformat; then
21782 objformat=`/usr/bin/objformat`
21783 else
21784 case $host_os in
21785 freebsd[23].*) objformat=aout ;;
21786 *) objformat=elf ;;
21787 esac
21788 fi
21789 version_type=freebsd-$objformat
21790 case $version_type in
21791 freebsd-elf*)
21792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21793 need_version=no
21794 need_lib_prefix=no
21795 ;;
21796 freebsd-*)
21797 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21798 need_version=yes
21799 ;;
21800 esac
21801 shlibpath_var=LD_LIBRARY_PATH
21802 case $host_os in
21803 freebsd2.*)
21804 shlibpath_overrides_runpath=yes
21805 ;;
21806 freebsd3.[01]* | freebsdelf3.[01]*)
21807 shlibpath_overrides_runpath=yes
21808 hardcode_into_libs=yes
21809 ;;
21810 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21811 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21812 shlibpath_overrides_runpath=no
21813 hardcode_into_libs=yes
21814 ;;
21815 *) # from 4.6 on, and DragonFly
21816 shlibpath_overrides_runpath=yes
21817 hardcode_into_libs=yes
21818 ;;
21819 esac
21820 ;;
21821
21822 gnu*)
21823 version_type=linux
21824 need_lib_prefix=no
21825 need_version=no
21826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21827 soname_spec='${libname}${release}${shared_ext}$major'
21828 shlibpath_var=LD_LIBRARY_PATH
21829 hardcode_into_libs=yes
21830 ;;
21831
21832 haiku*)
21833 version_type=linux
21834 need_lib_prefix=no
21835 need_version=no
21836 dynamic_linker="$host_os runtime_loader"
21837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21838 soname_spec='${libname}${release}${shared_ext}$major'
21839 shlibpath_var=LIBRARY_PATH
21840 shlibpath_overrides_runpath=yes
21841 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21842 hardcode_into_libs=yes
21843 ;;
21844
21845 hpux9* | hpux10* | hpux11*)
21846 # Give a soname corresponding to the major version so that dld.sl refuses to
21847 # link against other versions.
21848 version_type=sunos
21849 need_lib_prefix=no
21850 need_version=no
21851 case $host_cpu in
21852 ia64*)
21853 shrext_cmds='.so'
21854 hardcode_into_libs=yes
21855 dynamic_linker="$host_os dld.so"
21856 shlibpath_var=LD_LIBRARY_PATH
21857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21859 soname_spec='${libname}${release}${shared_ext}$major'
21860 if test "X$HPUX_IA64_MODE" = X32; then
21861 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21862 else
21863 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21864 fi
21865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21866 ;;
21867 hppa*64*)
21868 shrext_cmds='.sl'
21869 hardcode_into_libs=yes
21870 dynamic_linker="$host_os dld.sl"
21871 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21872 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21874 soname_spec='${libname}${release}${shared_ext}$major'
21875 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21877 ;;
21878 *)
21879 shrext_cmds='.sl'
21880 dynamic_linker="$host_os dld.sl"
21881 shlibpath_var=SHLIB_PATH
21882 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21884 soname_spec='${libname}${release}${shared_ext}$major'
21885 ;;
21886 esac
21887 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21888 postinstall_cmds='chmod 555 $lib'
21889 # or fails outright, so override atomically:
21890 install_override_mode=555
21891 ;;
21892
21893 interix[3-9]*)
21894 version_type=linux
21895 need_lib_prefix=no
21896 need_version=no
21897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21898 soname_spec='${libname}${release}${shared_ext}$major'
21899 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21900 shlibpath_var=LD_LIBRARY_PATH
21901 shlibpath_overrides_runpath=no
21902 hardcode_into_libs=yes
21903 ;;
21904
21905 irix5* | irix6* | nonstopux*)
21906 case $host_os in
21907 nonstopux*) version_type=nonstopux ;;
21908 *)
21909 if test "$lt_cv_prog_gnu_ld" = yes; then
21910 version_type=linux
21911 else
21912 version_type=irix
21913 fi ;;
21914 esac
21915 need_lib_prefix=no
21916 need_version=no
21917 soname_spec='${libname}${release}${shared_ext}$major'
21918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21919 case $host_os in
21920 irix5* | nonstopux*)
21921 libsuff= shlibsuff=
21922 ;;
21923 *)
21924 case $LD in # libtool.m4 will add one of these switches to LD
21925 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21926 libsuff= shlibsuff= libmagic=32-bit;;
21927 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21928 libsuff=32 shlibsuff=N32 libmagic=N32;;
21929 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21930 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21931 *) libsuff= shlibsuff= libmagic=never-match;;
21932 esac
21933 ;;
21934 esac
21935 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21936 shlibpath_overrides_runpath=no
21937 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21938 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21939 hardcode_into_libs=yes
21940 ;;
21941
21942 # No shared lib support for Linux oldld, aout, or coff.
21943 linux*oldld* | linux*aout* | linux*coff*)
21944 dynamic_linker=no
21945 ;;
21946
21947 # This must be Linux ELF.
21948
21949 # uclinux* changes (here and below) have been submitted to the libtool
21950 # project, but have not yet been accepted: they are GCC-local changes
21951 # for the time being. (See
21952 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
21953 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
21954 version_type=linux
21955 need_lib_prefix=no
21956 need_version=no
21957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21958 soname_spec='${libname}${release}${shared_ext}$major'
21959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21960 shlibpath_var=LD_LIBRARY_PATH
21961 shlibpath_overrides_runpath=no
21962
21963 # Some binutils ld are patched to set DT_RUNPATH
21964 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21965 $as_echo_n "(cached) " >&6
21966 else
21967 lt_cv_shlibpath_overrides_runpath=no
21968 save_LDFLAGS=$LDFLAGS
21969 save_libdir=$libdir
21970 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21971 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21973 /* end confdefs.h. */
21974
21975 int
21976 main ()
21977 {
21978
21979 ;
21980 return 0;
21981 }
21982 _ACEOF
21983 if ac_fn_cxx_try_link "$LINENO"; then :
21984 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21985 lt_cv_shlibpath_overrides_runpath=yes
21986 fi
21987 fi
21988 rm -f core conftest.err conftest.$ac_objext \
21989 conftest$ac_exeext conftest.$ac_ext
21990 LDFLAGS=$save_LDFLAGS
21991 libdir=$save_libdir
21992
21993 fi
21994
21995 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21996
21997 # This implies no fast_install, which is unacceptable.
21998 # Some rework will be needed to allow for fast_install
21999 # before this can be enabled.
22000 hardcode_into_libs=yes
22001
22002 # Append ld.so.conf contents to the search path
22003 if test -f /etc/ld.so.conf; then
22004 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' ' '`
22005 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22006 fi
22007
22008 # We used to test for /lib/ld.so.1 and disable shared libraries on
22009 # powerpc, because MkLinux only supported shared libraries with the
22010 # GNU dynamic linker. Since this was broken with cross compilers,
22011 # most powerpc-linux boxes support dynamic linking these days and
22012 # people can always --disable-shared, the test was removed, and we
22013 # assume the GNU/Linux dynamic linker is in use.
22014 dynamic_linker='GNU/Linux ld.so'
22015 ;;
22016
22017 netbsd*)
22018 version_type=sunos
22019 need_lib_prefix=no
22020 need_version=no
22021 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22024 dynamic_linker='NetBSD (a.out) ld.so'
22025 else
22026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22027 soname_spec='${libname}${release}${shared_ext}$major'
22028 dynamic_linker='NetBSD ld.elf_so'
22029 fi
22030 shlibpath_var=LD_LIBRARY_PATH
22031 shlibpath_overrides_runpath=yes
22032 hardcode_into_libs=yes
22033 ;;
22034
22035 newsos6)
22036 version_type=linux
22037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22038 shlibpath_var=LD_LIBRARY_PATH
22039 shlibpath_overrides_runpath=yes
22040 ;;
22041
22042 *nto* | *qnx*)
22043 version_type=qnx
22044 need_lib_prefix=no
22045 need_version=no
22046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22047 soname_spec='${libname}${release}${shared_ext}$major'
22048 shlibpath_var=LD_LIBRARY_PATH
22049 shlibpath_overrides_runpath=no
22050 hardcode_into_libs=yes
22051 dynamic_linker='ldqnx.so'
22052 ;;
22053
22054 openbsd*)
22055 version_type=sunos
22056 sys_lib_dlsearch_path_spec="/usr/lib"
22057 need_lib_prefix=no
22058 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22059 case $host_os in
22060 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22061 *) need_version=no ;;
22062 esac
22063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22065 shlibpath_var=LD_LIBRARY_PATH
22066 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22067 case $host_os in
22068 openbsd2.[89] | openbsd2.[89].*)
22069 shlibpath_overrides_runpath=no
22070 ;;
22071 *)
22072 shlibpath_overrides_runpath=yes
22073 ;;
22074 esac
22075 else
22076 shlibpath_overrides_runpath=yes
22077 fi
22078 ;;
22079
22080 os2*)
22081 libname_spec='$name'
22082 shrext_cmds=".dll"
22083 need_lib_prefix=no
22084 library_names_spec='$libname${shared_ext} $libname.a'
22085 dynamic_linker='OS/2 ld.exe'
22086 shlibpath_var=LIBPATH
22087 ;;
22088
22089 osf3* | osf4* | osf5*)
22090 version_type=osf
22091 need_lib_prefix=no
22092 need_version=no
22093 soname_spec='${libname}${release}${shared_ext}$major'
22094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22095 shlibpath_var=LD_LIBRARY_PATH
22096 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22097 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22098 ;;
22099
22100 rdos*)
22101 dynamic_linker=no
22102 ;;
22103
22104 solaris*)
22105 version_type=linux
22106 need_lib_prefix=no
22107 need_version=no
22108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22109 soname_spec='${libname}${release}${shared_ext}$major'
22110 shlibpath_var=LD_LIBRARY_PATH
22111 shlibpath_overrides_runpath=yes
22112 hardcode_into_libs=yes
22113 # ldd complains unless libraries are executable
22114 postinstall_cmds='chmod +x $lib'
22115 ;;
22116
22117 sunos4*)
22118 version_type=sunos
22119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22120 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22121 shlibpath_var=LD_LIBRARY_PATH
22122 shlibpath_overrides_runpath=yes
22123 if test "$with_gnu_ld" = yes; then
22124 need_lib_prefix=no
22125 fi
22126 need_version=yes
22127 ;;
22128
22129 sysv4 | sysv4.3*)
22130 version_type=linux
22131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22132 soname_spec='${libname}${release}${shared_ext}$major'
22133 shlibpath_var=LD_LIBRARY_PATH
22134 case $host_vendor in
22135 sni)
22136 shlibpath_overrides_runpath=no
22137 need_lib_prefix=no
22138 runpath_var=LD_RUN_PATH
22139 ;;
22140 siemens)
22141 need_lib_prefix=no
22142 ;;
22143 motorola)
22144 need_lib_prefix=no
22145 need_version=no
22146 shlibpath_overrides_runpath=no
22147 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22148 ;;
22149 esac
22150 ;;
22151
22152 sysv4*MP*)
22153 if test -d /usr/nec ;then
22154 version_type=linux
22155 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22156 soname_spec='$libname${shared_ext}.$major'
22157 shlibpath_var=LD_LIBRARY_PATH
22158 fi
22159 ;;
22160
22161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22162 version_type=freebsd-elf
22163 need_lib_prefix=no
22164 need_version=no
22165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22166 soname_spec='${libname}${release}${shared_ext}$major'
22167 shlibpath_var=LD_LIBRARY_PATH
22168 shlibpath_overrides_runpath=yes
22169 hardcode_into_libs=yes
22170 if test "$with_gnu_ld" = yes; then
22171 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22172 else
22173 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22174 case $host_os in
22175 sco3.2v5*)
22176 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22177 ;;
22178 esac
22179 fi
22180 sys_lib_dlsearch_path_spec='/usr/lib'
22181 ;;
22182
22183 tpf*)
22184 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22185 version_type=linux
22186 need_lib_prefix=no
22187 need_version=no
22188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22189 shlibpath_var=LD_LIBRARY_PATH
22190 shlibpath_overrides_runpath=no
22191 hardcode_into_libs=yes
22192 ;;
22193
22194 uts4*)
22195 version_type=linux
22196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22197 soname_spec='${libname}${release}${shared_ext}$major'
22198 shlibpath_var=LD_LIBRARY_PATH
22199 ;;
22200
22201 *)
22202 dynamic_linker=no
22203 ;;
22204 esac
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22206 $as_echo "$dynamic_linker" >&6; }
22207 test "$dynamic_linker" = no && can_build_shared=no
22208
22209 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22210 if test "$GCC" = yes; then
22211 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22212 fi
22213
22214 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22215 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22216 fi
22217 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22218 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22219 fi
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22259 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22260 hardcode_action_CXX=
22261 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22262 test -n "$runpath_var_CXX" ||
22263 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22264
22265 # We can hardcode non-existent directories.
22266 if test "$hardcode_direct_CXX" != no &&
22267 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22268 # have to relink, otherwise we might link with an installed library
22269 # when we should be linking with a yet-to-be-installed one
22270 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22271 test "$hardcode_minus_L_CXX" != no; then
22272 # Linking always hardcodes the temporary library directory.
22273 hardcode_action_CXX=relink
22274 else
22275 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22276 hardcode_action_CXX=immediate
22277 fi
22278 else
22279 # We cannot hardcode anything, or else we can only hardcode existing
22280 # directories.
22281 hardcode_action_CXX=unsupported
22282 fi
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22284 $as_echo "$hardcode_action_CXX" >&6; }
22285
22286 if test "$hardcode_action_CXX" = relink ||
22287 test "$inherit_rpath_CXX" = yes; then
22288 # Fast installation is not supported
22289 enable_fast_install=no
22290 elif test "$shlibpath_overrides_runpath" = yes ||
22291 test "$enable_shared" = no; then
22292 # Fast installation is not necessary
22293 enable_fast_install=needless
22294 fi
22295
22296
22297
22298
22299
22300
22301
22302 fi # test -n "$compiler"
22303
22304 CC=$lt_save_CC
22305 LDCXX=$LD
22306 LD=$lt_save_LD
22307 GCC=$lt_save_GCC
22308 with_gnu_ld=$lt_save_with_gnu_ld
22309 lt_cv_path_LDCXX=$lt_cv_path_LD
22310 lt_cv_path_LD=$lt_save_path_LD
22311 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22312 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22313 fi # test "$_lt_caught_CXX_error" != yes
22314
22315 ac_ext=cpp
22316 ac_cpp='$CXXCPP $CPPFLAGS'
22317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336 # Only expand once:
22337
22338
22339
22340
22341
22342 # Identify the assembler which will work hand-in-glove with the newly
22343 # built GCC, so that we can examine its features. This is the assembler
22344 # which will be driven by the driver program.
22345 #
22346 # If build != host, and we aren't building gas in-tree, we identify a
22347 # build->target assembler and hope that it will have the same features
22348 # as the host->target assembler we'll be using.
22349 gcc_cv_gas_major_version=
22350 gcc_cv_gas_minor_version=
22351 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22352
22353 if ${gcc_cv_as+:} false; then :
22354
22355 else
22356
22357 if test -x "$DEFAULT_ASSEMBLER"; then
22358 gcc_cv_as="$DEFAULT_ASSEMBLER"
22359 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22360 && test -f ../gas/Makefile \
22361 && test x$build = x$host; then
22362 gcc_cv_as=../gas/as-new$build_exeext
22363 elif test -x as$build_exeext; then
22364 # Build using assembler in the current directory.
22365 gcc_cv_as=./as$build_exeext
22366 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22367 gcc_cv_as="$AS_FOR_TARGET"
22368 else
22369 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22370 set dummy $AS_FOR_TARGET; ac_word=$2
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22372 $as_echo_n "checking for $ac_word... " >&6; }
22373 if ${ac_cv_path_gcc_cv_as+:} false; then :
22374 $as_echo_n "(cached) " >&6
22375 else
22376 case $gcc_cv_as in
22377 [\\/]* | ?:[\\/]*)
22378 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22379 ;;
22380 *)
22381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22382 for as_dir in $PATH
22383 do
22384 IFS=$as_save_IFS
22385 test -z "$as_dir" && as_dir=.
22386 for ac_exec_ext in '' $ac_executable_extensions; do
22387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22388 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22390 break 2
22391 fi
22392 done
22393 done
22394 IFS=$as_save_IFS
22395
22396 ;;
22397 esac
22398 fi
22399 gcc_cv_as=$ac_cv_path_gcc_cv_as
22400 if test -n "$gcc_cv_as"; then
22401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22402 $as_echo "$gcc_cv_as" >&6; }
22403 else
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22405 $as_echo "no" >&6; }
22406 fi
22407
22408
22409 fi
22410 fi
22411
22412 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22413
22414 case "$ORIGINAL_AS_FOR_TARGET" in
22415 ./as | ./as$build_exeext) ;;
22416 *) ac_config_files="$ac_config_files as:exec-tool.in"
22417 ;;
22418 esac
22419
22420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22421 $as_echo_n "checking what assembler to use... " >&6; }
22422 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22423 # Single tree build which includes gas. We want to prefer it
22424 # over whatever linker top-level may have detected, since
22425 # we'll use what we're building after installation anyway.
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22427 $as_echo "newly built gas" >&6; }
22428 in_tree_gas=yes
22429 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22430 for f in $gcc_cv_as_bfd_srcdir/configure \
22431 $gcc_cv_as_gas_srcdir/configure \
22432 $gcc_cv_as_gas_srcdir/configure.ac \
22433 $gcc_cv_as_gas_srcdir/Makefile.in ; do
22434 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22435 if test x$gcc_cv_gas_version != x; then
22436 break
22437 fi
22438 done
22439 case $gcc_cv_gas_version in
22440 VERSION=[0-9]*) ;;
22441 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22442 esac
22443 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22444 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22445 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22446 case $gcc_cv_gas_patch_version in
22447 "") gcc_cv_gas_patch_version="0" ;;
22448 esac
22449 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22450 + $gcc_cv_gas_minor_version \) \* 1000 \
22451 + $gcc_cv_gas_patch_version`
22452
22453 in_tree_gas_is_elf=no
22454 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22455 || (grep 'obj_format = multi' ../gas/Makefile \
22456 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22457 then
22458 in_tree_gas_is_elf=yes
22459 fi
22460 else
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22462 $as_echo "$gcc_cv_as" >&6; }
22463 in_tree_gas=no
22464 fi
22465
22466 default_ld=
22467 # Check whether --enable-ld was given.
22468 if test "${enable_ld+set}" = set; then :
22469 enableval=$enable_ld; case "${enableval}" in
22470 no)
22471 default_ld=ld.gold
22472 ;;
22473 esac
22474 fi
22475
22476
22477 install_gold_as_default=no
22478 # Check whether --enable-gold was given.
22479 if test "${enable_gold+set}" = set; then :
22480 enableval=$enable_gold; case "${enableval}" in
22481 default)
22482 install_gold_as_default=yes
22483 ;;
22484 yes)
22485 if test x${default_ld} != x; then
22486 install_gold_as_default=yes
22487 fi
22488 ;;
22489 no)
22490 ;;
22491 *)
22492 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22493 ;;
22494 esac
22495 fi
22496
22497
22498 # Identify the linker which will work hand-in-glove with the newly
22499 # built GCC, so that we can examine its features. This is the linker
22500 # which will be driven by the driver program.
22501 #
22502 # If build != host, and we aren't building gas in-tree, we identify a
22503 # build->target linker and hope that it will have the same features
22504 # as the host->target linker we'll be using.
22505 gcc_cv_gld_major_version=
22506 gcc_cv_gld_minor_version=
22507 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22508 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22509 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22510
22511 if ${gcc_cv_ld+:} false; then :
22512
22513 else
22514
22515 if test -x "$DEFAULT_LINKER"; then
22516 gcc_cv_ld="$DEFAULT_LINKER"
22517 elif test $install_gold_as_default = yes \
22518 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22519 && test -f ../gold/Makefile \
22520 && test x$build = x$host; then
22521 gcc_cv_ld=../gold/ld-new$build_exeext
22522 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22523 && test -f ../ld/Makefile \
22524 && test x$build = x$host; then
22525 gcc_cv_ld=../ld/ld-new$build_exeext
22526 elif test -x collect-ld$build_exeext; then
22527 # Build using linker in the current directory.
22528 gcc_cv_ld=./collect-ld$build_exeext
22529 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22530 gcc_cv_ld="$LD_FOR_TARGET"
22531 else
22532 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22533 set dummy $LD_FOR_TARGET; ac_word=$2
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22535 $as_echo_n "checking for $ac_word... " >&6; }
22536 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22537 $as_echo_n "(cached) " >&6
22538 else
22539 case $gcc_cv_ld in
22540 [\\/]* | ?:[\\/]*)
22541 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22542 ;;
22543 *)
22544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22545 for as_dir in $PATH
22546 do
22547 IFS=$as_save_IFS
22548 test -z "$as_dir" && as_dir=.
22549 for ac_exec_ext in '' $ac_executable_extensions; do
22550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22551 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22553 break 2
22554 fi
22555 done
22556 done
22557 IFS=$as_save_IFS
22558
22559 ;;
22560 esac
22561 fi
22562 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22563 if test -n "$gcc_cv_ld"; then
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22565 $as_echo "$gcc_cv_ld" >&6; }
22566 else
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22568 $as_echo "no" >&6; }
22569 fi
22570
22571
22572 fi
22573 fi
22574
22575 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22576 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22577 # if the PLUGIN_LD is set ld-new, just have it as ld
22578 # as that is the installed named.
22579 if test x$PLUGIN_LD_SUFFIX = xld-new \
22580 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22581 PLUGIN_LD_SUFFIX=ld
22582 fi
22583
22584 # Check whether --with-plugin-ld was given.
22585 if test "${with_plugin_ld+set}" = set; then :
22586 withval=$with_plugin_ld; if test x"$withval" != x; then
22587 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22588 PLUGIN_LD_SUFFIX="$withval"
22589 fi
22590 fi
22591
22592
22593
22594 cat >>confdefs.h <<_ACEOF
22595 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22596 _ACEOF
22597
22598
22599 # Check to see if we are using gold instead of ld
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22601 $as_echo_n "checking whether we are using gold... " >&6; }
22602 ld_is_gold=no
22603 if test x$gcc_cv_ld != x; then
22604 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22605 | grep "GNU gold" > /dev/null; then
22606 ld_is_gold=yes
22607 fi
22608 fi
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22610 $as_echo "$ld_is_gold" >&6; }
22611
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22613 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22614 # Check to see if default ld is not gold, but gold is
22615 # available and has support for split stack. If gcc was configured
22616 # with gold then no checking is done.
22617 #
22618 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22619
22620 # For platforms other than powerpc64*, enable as appropriate.
22621
22622 gold_non_default=no
22623 ld_gold=`which ${gcc_cv_ld}.gold`
22624 # Make sure this gold has minimal split stack support
22625 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22626 ld_vers=`$ld_gold --version | sed 1q`
22627 gold_vers=`echo $ld_vers | sed -n \
22628 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22629 case $target in
22630 # check that the gold version contains the complete split stack support
22631 # on powerpc64 big and little endian
22632 powerpc64*-*-*)
22633 case "$gold_vers" in
22634 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22635 ;;
22636 *) gold_non_default=no
22637 ;;
22638 esac
22639 ;;
22640 esac
22641 fi
22642 if test $gold_non_default = yes; then
22643
22644 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22645
22646 fi
22647 fi
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22649 $as_echo "$gold_non_default" >&6; }
22650
22651 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22652
22653 case "$ORIGINAL_LD_FOR_TARGET" in
22654 ./collect-ld | ./collect-ld$build_exeext) ;;
22655 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22656 ;;
22657 esac
22658
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22660 $as_echo_n "checking what linker to use... " >&6; }
22661 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22662 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22663 # Single tree build which includes ld. We want to prefer it
22664 # over whatever linker top-level may have detected, since
22665 # we'll use what we're building after installation anyway.
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22667 $as_echo "newly built ld" >&6; }
22668 in_tree_ld=yes
22669 in_tree_ld_is_elf=no
22670 if (grep 'EMUL = .*elf' ../ld/Makefile \
22671 || grep 'EMUL = .*linux' ../ld/Makefile \
22672 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22673 in_tree_ld_is_elf=yes
22674 elif test "$ld_is_gold" = yes; then
22675 in_tree_ld_is_elf=yes
22676 fi
22677 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
22678 do
22679 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22680 if test x$gcc_cv_gld_version != x; then
22681 break
22682 fi
22683 done
22684 case $gcc_cv_gld_version in
22685 VERSION=[0-9]*) ;;
22686 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22687 esac
22688 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22689 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22690 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22691 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22692 else
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22694 $as_echo "$gcc_cv_ld" >&6; }
22695 in_tree_ld=no
22696 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22697 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22698 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22699 fi
22700
22701
22702
22703
22704 # Figure out what nm we will be using.
22705 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22706 if ${gcc_cv_nm+:} false; then :
22707
22708 else
22709
22710 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22711 && test -f ../binutils/Makefile \
22712 && test x$build = x$host; then
22713 gcc_cv_nm=../binutils/nm-new$build_exeext
22714 elif test -x nm$build_exeext; then
22715 gcc_cv_nm=./nm$build_exeext
22716 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22717 gcc_cv_nm="$NM_FOR_TARGET"
22718 else
22719 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22720 set dummy $NM_FOR_TARGET; ac_word=$2
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22722 $as_echo_n "checking for $ac_word... " >&6; }
22723 if ${ac_cv_path_gcc_cv_nm+:} false; then :
22724 $as_echo_n "(cached) " >&6
22725 else
22726 case $gcc_cv_nm in
22727 [\\/]* | ?:[\\/]*)
22728 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22729 ;;
22730 *)
22731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22732 for as_dir in $PATH
22733 do
22734 IFS=$as_save_IFS
22735 test -z "$as_dir" && as_dir=.
22736 for ac_exec_ext in '' $ac_executable_extensions; do
22737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22738 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22740 break 2
22741 fi
22742 done
22743 done
22744 IFS=$as_save_IFS
22745
22746 ;;
22747 esac
22748 fi
22749 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22750 if test -n "$gcc_cv_nm"; then
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22752 $as_echo "$gcc_cv_nm" >&6; }
22753 else
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22755 $as_echo "no" >&6; }
22756 fi
22757
22758
22759 fi
22760 fi
22761
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22763 $as_echo_n "checking what nm to use... " >&6; }
22764 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22765 # Single tree build which includes binutils.
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22767 $as_echo "newly built nm" >&6; }
22768 in_tree_nm=yes
22769 else
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22771 $as_echo "$gcc_cv_nm" >&6; }
22772 in_tree_nm=no
22773 fi
22774
22775 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22776
22777 case "$ORIGINAL_NM_FOR_TARGET" in
22778 ./nm | ./nm$build_exeext) ;;
22779 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22780 ;;
22781 esac
22782
22783
22784 # Figure out what objdump we will be using.
22785 if ${gcc_cv_objdump+:} false; then :
22786
22787 else
22788
22789 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22790 && test -f ../binutils/Makefile \
22791 && test x$build = x$host; then
22792 # Single tree build which includes binutils.
22793 gcc_cv_objdump=../binutils/objdump$build_exeext
22794 elif test -x objdump$build_exeext; then
22795 gcc_cv_objdump=./objdump$build_exeext
22796 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22797 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22798 else
22799 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22800 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22802 $as_echo_n "checking for $ac_word... " >&6; }
22803 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22804 $as_echo_n "(cached) " >&6
22805 else
22806 case $gcc_cv_objdump in
22807 [\\/]* | ?:[\\/]*)
22808 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22809 ;;
22810 *)
22811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22812 for as_dir in $PATH
22813 do
22814 IFS=$as_save_IFS
22815 test -z "$as_dir" && as_dir=.
22816 for ac_exec_ext in '' $ac_executable_extensions; do
22817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22818 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22820 break 2
22821 fi
22822 done
22823 done
22824 IFS=$as_save_IFS
22825
22826 ;;
22827 esac
22828 fi
22829 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22830 if test -n "$gcc_cv_objdump"; then
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22832 $as_echo "$gcc_cv_objdump" >&6; }
22833 else
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22835 $as_echo "no" >&6; }
22836 fi
22837
22838
22839 fi
22840 fi
22841
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22843 $as_echo_n "checking what objdump to use... " >&6; }
22844 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22845 # Single tree build which includes binutils.
22846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22847 $as_echo "newly built objdump" >&6; }
22848 elif test x$gcc_cv_objdump = x; then
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22850 $as_echo "not found" >&6; }
22851 else
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22853 $as_echo "$gcc_cv_objdump" >&6; }
22854 fi
22855
22856 # Figure out what readelf we will be using.
22857 if ${gcc_cv_readelf+:} false; then :
22858
22859 else
22860
22861 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22862 && test -f ../binutils/Makefile \
22863 && test x$build = x$host; then
22864 # Single tree build which includes binutils.
22865 gcc_cv_readelf=../binutils/readelf$build_exeext
22866 elif test -x readelf$build_exeext; then
22867 gcc_cv_readelf=./readelf$build_exeext
22868 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22869 gcc_cv_readelf="$READELF_FOR_TARGET"
22870 else
22871 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22872 set dummy $READELF_FOR_TARGET; ac_word=$2
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22874 $as_echo_n "checking for $ac_word... " >&6; }
22875 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22876 $as_echo_n "(cached) " >&6
22877 else
22878 case $gcc_cv_readelf in
22879 [\\/]* | ?:[\\/]*)
22880 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22881 ;;
22882 *)
22883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22884 for as_dir in $PATH
22885 do
22886 IFS=$as_save_IFS
22887 test -z "$as_dir" && as_dir=.
22888 for ac_exec_ext in '' $ac_executable_extensions; do
22889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22890 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22892 break 2
22893 fi
22894 done
22895 done
22896 IFS=$as_save_IFS
22897
22898 ;;
22899 esac
22900 fi
22901 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22902 if test -n "$gcc_cv_readelf"; then
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22904 $as_echo "$gcc_cv_readelf" >&6; }
22905 else
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22907 $as_echo "no" >&6; }
22908 fi
22909
22910
22911 fi
22912 fi
22913
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22915 $as_echo_n "checking what readelf to use... " >&6; }
22916 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22917 # Single tree build which includes binutils.
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22919 $as_echo "newly built readelf" >&6; }
22920 elif test x$gcc_cv_readelf = x; then
22921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22922 $as_echo "not found" >&6; }
22923 else
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22925 $as_echo "$gcc_cv_readelf" >&6; }
22926 fi
22927
22928 # Figure out what otool we will be using.
22929 if ${gcc_cv_otool+:} false; then :
22930
22931 else
22932
22933 if test -x otool$build_exeext; then
22934 gcc_cv_otool=./otool$build_exeext
22935 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
22936 gcc_cv_otool="$OTOOL_FOR_TARGET"
22937 else
22938 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22939 set dummy $OTOOL_FOR_TARGET; ac_word=$2
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22941 $as_echo_n "checking for $ac_word... " >&6; }
22942 if ${ac_cv_path_gcc_cv_otool+:} false; then :
22943 $as_echo_n "(cached) " >&6
22944 else
22945 case $gcc_cv_otool in
22946 [\\/]* | ?:[\\/]*)
22947 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
22948 ;;
22949 *)
22950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22951 for as_dir in $PATH
22952 do
22953 IFS=$as_save_IFS
22954 test -z "$as_dir" && as_dir=.
22955 for ac_exec_ext in '' $ac_executable_extensions; do
22956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22957 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
22958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22959 break 2
22960 fi
22961 done
22962 done
22963 IFS=$as_save_IFS
22964
22965 ;;
22966 esac
22967 fi
22968 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
22969 if test -n "$gcc_cv_otool"; then
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22971 $as_echo "$gcc_cv_otool" >&6; }
22972 else
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22974 $as_echo "no" >&6; }
22975 fi
22976
22977
22978 fi
22979 fi
22980
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22982 $as_echo_n "checking what otool to use... " >&6; }
22983 if test x$gcc_cv_otool = x; then
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22985 $as_echo "not found" >&6; }
22986 else
22987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22988 $as_echo "$gcc_cv_otool" >&6; }
22989 fi
22990
22991 # Figure out what assembler alignment features are present.
22992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22993 $as_echo_n "checking assembler flags... " >&6; }
22994 if ${gcc_cv_as_flags+:} false; then :
22995 $as_echo_n "(cached) " >&6
22996 else
22997 case "$target" in
22998 i[34567]86-*-linux*)
22999 gcc_cv_as_flags=--32
23000 ;;
23001 x86_64-*-linux-gnux32)
23002 gcc_cv_as_flags=--x32
23003 ;;
23004 x86_64-*-linux*)
23005 gcc_cv_as_flags=--64
23006 ;;
23007 powerpc*-*-darwin*)
23008 gcc_cv_as_flags="-arch ppc"
23009 ;;
23010 *)
23011 gcc_cv_as_flags=" "
23012 ;;
23013 esac
23014 fi
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23016 $as_echo "$gcc_cv_as_flags" >&6; }
23017
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23019 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23020 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23021 $as_echo_n "(cached) " >&6
23022 else
23023 gcc_cv_as_balign_and_p2align=no
23024 if test $in_tree_gas = yes; then
23025 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
23026 then gcc_cv_as_balign_and_p2align=yes
23027 fi
23028 elif test x$gcc_cv_as != x; then
23029 $as_echo '.balign 4
23030 .p2align 2' > conftest.s
23031 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23033 (eval $ac_try) 2>&5
23034 ac_status=$?
23035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23036 test $ac_status = 0; }; }
23037 then
23038 gcc_cv_as_balign_and_p2align=yes
23039 else
23040 echo "configure: failed program was" >&5
23041 cat conftest.s >&5
23042 fi
23043 rm -f conftest.o conftest.s
23044 fi
23045 fi
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23047 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23048 if test $gcc_cv_as_balign_and_p2align = yes; then
23049
23050 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23051
23052 fi
23053
23054
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23056 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23057 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23058 $as_echo_n "(cached) " >&6
23059 else
23060 gcc_cv_as_max_skip_p2align=no
23061 if test $in_tree_gas = yes; then
23062 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23063 then gcc_cv_as_max_skip_p2align=yes
23064 fi
23065 elif test x$gcc_cv_as != x; then
23066 $as_echo '.p2align 4,,7' > conftest.s
23067 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23069 (eval $ac_try) 2>&5
23070 ac_status=$?
23071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23072 test $ac_status = 0; }; }
23073 then
23074 gcc_cv_as_max_skip_p2align=yes
23075 else
23076 echo "configure: failed program was" >&5
23077 cat conftest.s >&5
23078 fi
23079 rm -f conftest.o conftest.s
23080 fi
23081 fi
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23083 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23084 if test $gcc_cv_as_max_skip_p2align = yes; then
23085
23086 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23087
23088 fi
23089
23090
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23092 $as_echo_n "checking assembler for .literal16... " >&6; }
23093 if ${gcc_cv_as_literal16+:} false; then :
23094 $as_echo_n "(cached) " >&6
23095 else
23096 gcc_cv_as_literal16=no
23097 if test $in_tree_gas = yes; then
23098 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23099 then gcc_cv_as_literal16=yes
23100 fi
23101 elif test x$gcc_cv_as != x; then
23102 $as_echo '.literal16' > conftest.s
23103 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23105 (eval $ac_try) 2>&5
23106 ac_status=$?
23107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23108 test $ac_status = 0; }; }
23109 then
23110 gcc_cv_as_literal16=yes
23111 else
23112 echo "configure: failed program was" >&5
23113 cat conftest.s >&5
23114 fi
23115 rm -f conftest.o conftest.s
23116 fi
23117 fi
23118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23119 $as_echo "$gcc_cv_as_literal16" >&6; }
23120 if test $gcc_cv_as_literal16 = yes; then
23121
23122 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23123
23124 fi
23125
23126
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23128 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23129 if ${gcc_cv_as_subsection_m1+:} false; then :
23130 $as_echo_n "(cached) " >&6
23131 else
23132 gcc_cv_as_subsection_m1=no
23133 if test $in_tree_gas = yes; then
23134 if test $in_tree_gas_is_elf = yes \
23135 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23136 then gcc_cv_as_subsection_m1=yes
23137 fi
23138 elif test x$gcc_cv_as != x; then
23139 $as_echo 'conftest_label1: .word 0
23140 .subsection -1
23141 conftest_label2: .word 0
23142 .previous' > conftest.s
23143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23145 (eval $ac_try) 2>&5
23146 ac_status=$?
23147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23148 test $ac_status = 0; }; }
23149 then
23150 if test x$gcc_cv_nm != x; then
23151 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23152 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23153 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23154 then :
23155 else gcc_cv_as_subsection_m1=yes
23156 fi
23157 rm -f conftest.nm1 conftest.nm2
23158 fi
23159 else
23160 echo "configure: failed program was" >&5
23161 cat conftest.s >&5
23162 fi
23163 rm -f conftest.o conftest.s
23164 fi
23165 fi
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23167 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23168 if test $gcc_cv_as_subsection_m1 = yes; then
23169
23170 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23171
23172 fi
23173
23174
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23176 $as_echo_n "checking assembler for .weak... " >&6; }
23177 if ${gcc_cv_as_weak+:} false; then :
23178 $as_echo_n "(cached) " >&6
23179 else
23180 gcc_cv_as_weak=no
23181 if test $in_tree_gas = yes; then
23182 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23183 then gcc_cv_as_weak=yes
23184 fi
23185 elif test x$gcc_cv_as != x; then
23186 $as_echo ' .weak foobar' > 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 gcc_cv_as_weak=yes
23195 else
23196 echo "configure: failed program was" >&5
23197 cat conftest.s >&5
23198 fi
23199 rm -f conftest.o conftest.s
23200 fi
23201 fi
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23203 $as_echo "$gcc_cv_as_weak" >&6; }
23204 if test $gcc_cv_as_weak = yes; then
23205
23206 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23207
23208 fi
23209
23210
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23212 $as_echo_n "checking assembler for .weakref... " >&6; }
23213 if ${gcc_cv_as_weakref+:} false; then :
23214 $as_echo_n "(cached) " >&6
23215 else
23216 gcc_cv_as_weakref=no
23217 if test $in_tree_gas = yes; then
23218 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23219 then gcc_cv_as_weakref=yes
23220 fi
23221 elif test x$gcc_cv_as != x; then
23222 $as_echo ' .weakref foobar, barfnot' > conftest.s
23223 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23225 (eval $ac_try) 2>&5
23226 ac_status=$?
23227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23228 test $ac_status = 0; }; }
23229 then
23230 gcc_cv_as_weakref=yes
23231 else
23232 echo "configure: failed program was" >&5
23233 cat conftest.s >&5
23234 fi
23235 rm -f conftest.o conftest.s
23236 fi
23237 fi
23238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23239 $as_echo "$gcc_cv_as_weakref" >&6; }
23240 if test $gcc_cv_as_weakref = yes; then
23241
23242 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23243
23244 fi
23245
23246
23247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23248 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23249 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23250 $as_echo_n "(cached) " >&6
23251 else
23252 gcc_cv_as_nsubspa_comdat=no
23253 if test $in_tree_gas = yes; then
23254 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23255 then gcc_cv_as_nsubspa_comdat=yes
23256 fi
23257 elif test x$gcc_cv_as != x; then
23258 $as_echo ' .SPACE $TEXT$
23259 .NSUBSPA $CODE$,COMDAT' > conftest.s
23260 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23262 (eval $ac_try) 2>&5
23263 ac_status=$?
23264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23265 test $ac_status = 0; }; }
23266 then
23267 gcc_cv_as_nsubspa_comdat=yes
23268 else
23269 echo "configure: failed program was" >&5
23270 cat conftest.s >&5
23271 fi
23272 rm -f conftest.o conftest.s
23273 fi
23274 fi
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23276 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23277 if test $gcc_cv_as_nsubspa_comdat = yes; then
23278
23279 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23280
23281 fi
23282
23283
23284 # .hidden needs to be supported in both the assembler and the linker,
23285 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23286 # This is irritatingly difficult to feature test for; we have to check the
23287 # date string after the version number. If we've got an in-tree
23288 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23289 # to be safe.
23290 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23291 case "${target}" in
23292 *-*-aix*)
23293 conftest_s=' .globl foobar,hidden'
23294 ;;
23295 *)
23296 conftest_s=' .hidden foobar
23297 foobar:'
23298 ;;
23299 esac
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23301 $as_echo_n "checking assembler for .hidden... " >&6; }
23302 if ${gcc_cv_as_hidden+:} false; then :
23303 $as_echo_n "(cached) " >&6
23304 else
23305 gcc_cv_as_hidden=no
23306 if test $in_tree_gas = yes; then
23307 if test $in_tree_gas_is_elf = yes \
23308 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23309 then gcc_cv_as_hidden=yes
23310 fi
23311 elif test x$gcc_cv_as != x; then
23312 $as_echo "$conftest_s" > conftest.s
23313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23315 (eval $ac_try) 2>&5
23316 ac_status=$?
23317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23318 test $ac_status = 0; }; }
23319 then
23320 gcc_cv_as_hidden=yes
23321 else
23322 echo "configure: failed program was" >&5
23323 cat conftest.s >&5
23324 fi
23325 rm -f conftest.o conftest.s
23326 fi
23327 fi
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23329 $as_echo "$gcc_cv_as_hidden" >&6; }
23330
23331
23332 case "${target}" in
23333 *-*-darwin*)
23334 # Darwin as has some visibility support, though with a different syntax.
23335 gcc_cv_as_hidden=yes
23336 ;;
23337 esac
23338
23339 # gnu_indirect_function type is an extension proposed at
23340 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23341 # selection of function implementation
23342 # Check whether --enable-gnu-indirect-function was given.
23343 if test "${enable_gnu_indirect_function+set}" = set; then :
23344 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23345 yes | no) ;;
23346 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23347 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23348 esac
23349 else
23350 enable_gnu_indirect_function="$default_gnu_indirect_function"
23351 fi
23352
23353
23354 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23355
23356 cat >>confdefs.h <<_ACEOF
23357 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23358 _ACEOF
23359
23360
23361
23362 if test $in_tree_ld != yes ; then
23363 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23364 if echo "$ld_ver" | grep GNU > /dev/null; then
23365 if test x"$ld_is_gold" = xyes; then
23366 # GNU gold --version looks like this:
23367 #
23368 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23369 #
23370 # We extract the binutils version which is more familiar and specific
23371 # than the gold version.
23372 ld_vers=`echo $ld_ver | sed -n \
23373 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23374 else
23375 # GNU ld --version looks like this:
23376 #
23377 # GNU ld (GNU Binutils) 2.21.51.20110225
23378 ld_vers=`echo $ld_ver | sed -n \
23379 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23380 fi
23381 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
23382 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23383 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23384 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23385 else
23386 case "${target}" in
23387 *-*-solaris2*)
23388 # Solaris 2 ld -V output looks like this for a regular version:
23389 #
23390 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23391 #
23392 # but test versions add stuff at the end:
23393 #
23394 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23395 #
23396 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23397 # numbers can be used in ld.so.1 feature checks even if a different
23398 # linker is configured.
23399 ld_ver=`$gcc_cv_ld -V 2>&1`
23400 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23401 ld_vers=`echo $ld_ver | sed -n \
23402 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23403 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23404 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23405 fi
23406 ;;
23407 esac
23408 fi
23409 fi
23410
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23412 $as_echo_n "checking linker for .hidden support... " >&6; }
23413 if ${gcc_cv_ld_hidden+:} false; then :
23414 $as_echo_n "(cached) " >&6
23415 else
23416 if test $in_tree_ld = yes ; then
23417 gcc_cv_ld_hidden=no
23418 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 \
23419 && test $in_tree_ld_is_elf = yes; then
23420 gcc_cv_ld_hidden=yes
23421 fi
23422 else
23423 gcc_cv_ld_hidden=yes
23424 if test x"$ld_is_gold" = xyes; then
23425 :
23426 elif echo "$ld_ver" | grep GNU > /dev/null; then
23427 case "${target}" in
23428 mmix-knuth-mmixware)
23429 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23430 gcc_cv_ld_hidden=no
23431 ;;
23432 esac
23433 if test 0"$ld_date" -lt 20020404; then
23434 if test -n "$ld_date"; then
23435 # If there was date string, but was earlier than 2002-04-04, fail
23436 gcc_cv_ld_hidden=no
23437 elif test -z "$ld_vers"; then
23438 # If there was no date string nor ld version number, something is wrong
23439 gcc_cv_ld_hidden=no
23440 else
23441 test -z "$ld_vers_patch" && ld_vers_patch=0
23442 if test "$ld_vers_major" -lt 2; then
23443 gcc_cv_ld_hidden=no
23444 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23445 gcc_cv_ld_hidden="no"
23446 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23447 gcc_cv_ld_hidden=no
23448 fi
23449 fi
23450 fi
23451 else
23452 case "${target}" in
23453 *-*-aix[789]*)
23454 gcc_cv_ld_hidden=yes
23455 ;;
23456 *-*-darwin*)
23457 # Darwin ld has some visibility support.
23458 gcc_cv_ld_hidden=yes
23459 ;;
23460 hppa64*-*-hpux* | ia64*-*-hpux*)
23461 gcc_cv_ld_hidden=yes
23462 ;;
23463 *-*-solaris2*)
23464 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23465 # .symbolic was only added in Solaris 9 12/02.
23466 gcc_cv_ld_hidden=yes
23467 ;;
23468 *)
23469 gcc_cv_ld_hidden=no
23470 ;;
23471 esac
23472 fi
23473 fi
23474 fi
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23476 $as_echo "$gcc_cv_ld_hidden" >&6; }
23477 libgcc_visibility=no
23478
23479
23480 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23481 libgcc_visibility=yes
23482
23483 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23484
23485 fi
23486
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23488 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23489 gcc_cv_ld_ro_rw_mix=unknown
23490 if test $in_tree_ld = yes ; then
23491 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 \
23492 && test $in_tree_ld_is_elf = yes; then
23493 gcc_cv_ld_ro_rw_mix=read-write
23494 fi
23495 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23496 echo '.section myfoosect, "a"' > conftest1.s
23497 echo '.section myfoosect, "aw"' > conftest2.s
23498 echo '.byte 1' >> conftest2.s
23499 echo '.section myfoosect, "a"' > conftest3.s
23500 echo '.byte 0' >> conftest3.s
23501 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23502 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23503 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23504 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23505 conftest2.o conftest3.o > /dev/null 2>&1; then
23506 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23507 | sed -e '/myfoosect/!d' -e N`
23508 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23509 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23510 gcc_cv_ld_ro_rw_mix=read-only
23511 else
23512 gcc_cv_ld_ro_rw_mix=read-write
23513 fi
23514 fi
23515 fi
23516 rm -f conftest.* conftest[123].*
23517 fi
23518 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23519
23520 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23521
23522 fi
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23524 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23525
23526 # Check whether --enable-initfini-array was given.
23527 if test "${enable_initfini_array+set}" = set; then :
23528 enableval=$enable_initfini_array;
23529 else
23530
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23532 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23533 if ${gcc_cv_initfini_array+:} false; then :
23534 $as_echo_n "(cached) " >&6
23535 else
23536 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23537 case "${target}" in
23538 ia64-*)
23539 if test "$cross_compiling" = yes; then :
23540 gcc_cv_initfini_array=no
23541 else
23542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23543 /* end confdefs.h. */
23544
23545 #ifndef __ELF__
23546 #error Not an ELF OS
23547 #endif
23548 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23549 if it can be used. */
23550 static int x = -1;
23551 int main (void) { return x; }
23552 int foo (void) { x = 0; }
23553 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23554
23555 _ACEOF
23556 if ac_fn_cxx_try_run "$LINENO"; then :
23557 gcc_cv_initfini_array=yes
23558 else
23559 gcc_cv_initfini_array=no
23560 fi
23561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23562 conftest.$ac_objext conftest.beam conftest.$ac_ext
23563 fi
23564 ;;
23565 *)
23566 gcc_cv_initfini_array=no
23567 if test $in_tree_ld = yes ; then
23568 if test "$gcc_cv_gld_major_version" -eq 2 \
23569 -a "$gcc_cv_gld_minor_version" -ge 22 \
23570 -o "$gcc_cv_gld_major_version" -gt 2 \
23571 && test $in_tree_ld_is_elf = yes; then
23572 gcc_cv_initfini_array=yes
23573 fi
23574 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23575 case $target:$gas in
23576 *:yes)
23577 sh_flags='"a"'
23578 sh_type='%progbits'
23579 ;;
23580 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23581 sh_flags='"a"'
23582 sh_type='@progbits'
23583 ;;
23584 sparc*-*-solaris2*:no)
23585 sh_flags='#alloc'
23586 sh_type='#progbits'
23587 sh_quote='"'
23588 ;;
23589 esac
23590 case "$target:$gnu_ld" in
23591 *:yes)
23592 cat > conftest.s <<EOF
23593 .section .dtors,$sh_flags,$sh_type
23594 .balign 4
23595 .byte 'A', 'A', 'A', 'A'
23596 .section .ctors,$sh_flags,$sh_type
23597 .balign 4
23598 .byte 'B', 'B', 'B', 'B'
23599 .section .fini_array.65530,$sh_flags,$sh_type
23600 .balign 4
23601 .byte 'C', 'C', 'C', 'C'
23602 .section .init_array.65530,$sh_flags,$sh_type
23603 .balign 4
23604 .byte 'D', 'D', 'D', 'D'
23605 .section .dtors.64528,$sh_flags,$sh_type
23606 .balign 4
23607 .byte 'E', 'E', 'E', 'E'
23608 .section .ctors.64528,$sh_flags,$sh_type
23609 .balign 4
23610 .byte 'F', 'F', 'F', 'F'
23611 .section .fini_array.01005,$sh_flags,$sh_type
23612 .balign 4
23613 .byte 'G', 'G', 'G', 'G'
23614 .section .init_array.01005,$sh_flags,$sh_type
23615 .balign 4
23616 .byte 'H', 'H', 'H', 'H'
23617 .text
23618 .globl _start
23619 _start:
23620 EOF
23621 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23622 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23623 && $gcc_cv_objdump -s -j .init_array conftest \
23624 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23625 && $gcc_cv_objdump -s -j .fini_array conftest \
23626 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23627 gcc_cv_initfini_array=yes
23628 fi
23629 ;;
23630 *-*-solaris2*:no)
23631 # When Solaris ld added constructor priority support, it was
23632 # decided to only handle .init_array.N/.fini_array.N since
23633 # there was no need for backwards compatibility with
23634 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23635 # sections with correct execution order resp. to
23636 # .init_array/.fini_array, while gld merges them into
23637 # .init_array/.fini_array.
23638 cat > conftest.s <<EOF
23639 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23640 .align 4
23641 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23642 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23643 .align 4
23644 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23645 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23646 .align 4
23647 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23648 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23649 .align 4
23650 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23651 .text
23652 .globl _start
23653 _start:
23654 EOF
23655 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23656 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23657 && $gcc_cv_objdump -s -j .init_array conftest \
23658 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
23659 && $gcc_cv_objdump -s -j .fini_array conftest \
23660 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
23661 gcc_cv_initfini_array=yes
23662 fi
23663 ;;
23664 esac
23665 rm -f conftest conftest.*
23666 fi
23667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23668 /* end confdefs.h. */
23669
23670 #ifndef __ELF__
23671 # error Not an ELF OS
23672 #endif
23673 #include <stdlib.h>
23674 #if defined __GLIBC_PREREQ
23675 # if __GLIBC_PREREQ (2, 4)
23676 # else
23677 # error GLIBC 2.4 required
23678 # endif
23679 #else
23680 # if defined __sun__ && defined __svr4__
23681 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23682 # else
23683 # error The C library not known to support .init_array/.fini_array
23684 # endif
23685 #endif
23686
23687 _ACEOF
23688 if ac_fn_cxx_try_cpp "$LINENO"; then :
23689
23690 else
23691 gcc_cv_initfini_array=no
23692 fi
23693 rm -f conftest.err conftest.i conftest.$ac_ext;;
23694 esac
23695 else
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23697 $as_echo_n "checking cross compile... guessing... " >&6; }
23698 gcc_cv_initfini_array=no
23699 fi
23700 fi
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23702 $as_echo "$gcc_cv_initfini_array" >&6; }
23703 enable_initfini_array=$gcc_cv_initfini_array
23704
23705 fi
23706
23707
23708 cat >>confdefs.h <<_ACEOF
23709 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23710 _ACEOF
23711
23712
23713
23714 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23716 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23717 if ${gcc_cv_as_leb128+:} false; then :
23718 $as_echo_n "(cached) " >&6
23719 else
23720 gcc_cv_as_leb128=no
23721 if test $in_tree_gas = yes; then
23722 if test $in_tree_gas_is_elf = yes \
23723 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23724 then gcc_cv_as_leb128=yes
23725 fi
23726 elif test x$gcc_cv_as != x; then
23727 $as_echo ' .data
23728 .uleb128 L2 - L1
23729 L1:
23730 .uleb128 1280
23731 .sleb128 -1010
23732 L2:' > conftest.s
23733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23735 (eval $ac_try) 2>&5
23736 ac_status=$?
23737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23738 test $ac_status = 0; }; }
23739 then
23740 # GAS versions before 2.11 do not support uleb128,
23741 # despite appearing to.
23742 # ??? There exists an elf-specific test that will crash
23743 # the assembler. Perhaps it's better to figure out whether
23744 # arbitrary sections are supported and try the test.
23745 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23746 if echo "$as_ver" | grep GNU > /dev/null; then
23747 as_vers=`echo $as_ver | sed -n \
23748 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23749 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23750 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23751 if test $as_major -eq 2 && test $as_minor -lt 11
23752 then :
23753 else gcc_cv_as_leb128=yes
23754 fi
23755 fi
23756 else
23757 echo "configure: failed program was" >&5
23758 cat conftest.s >&5
23759 fi
23760 rm -f conftest.o conftest.s
23761 fi
23762 fi
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23764 $as_echo "$gcc_cv_as_leb128" >&6; }
23765 if test $gcc_cv_as_leb128 = yes; then
23766
23767 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23768
23769 fi
23770 if test $gcc_cv_as_leb128 != yes; then
23771
23772 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23773
23774 fi
23775
23776 # Determine if an .eh_frame section is read-only.
23777 gcc_fn_eh_frame_ro () {
23778 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23779 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23780 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23781 }
23782
23783 # Check if we have assembler support for unwind directives.
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23785 $as_echo_n "checking assembler for cfi directives... " >&6; }
23786 if ${gcc_cv_as_cfi_directive+:} false; then :
23787 $as_echo_n "(cached) " >&6
23788 else
23789 gcc_cv_as_cfi_directive=no
23790 if test x$gcc_cv_as != x; then
23791 $as_echo ' .text
23792 .cfi_startproc
23793 .cfi_offset 0, 0
23794 .cfi_same_value 1
23795 .cfi_def_cfa 1, 2
23796 .cfi_escape 1, 2, 3, 4, 5
23797 .cfi_endproc' > conftest.s
23798 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23800 (eval $ac_try) 2>&5
23801 ac_status=$?
23802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23803 test $ac_status = 0; }; }
23804 then
23805 case "$target" in
23806 *-*-solaris*)
23807 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23808 # read-only and read-write sections, we need to make sure that the
23809 # assembler used emits read-write .eh_frame sections.
23810 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23811 gcc_cv_as_cfi_directive=yes
23812 elif test "x$gcc_cv_objdump" = x; then
23813 # No objdump, err on the side of caution.
23814 gcc_cv_as_cfi_directive=no
23815 else
23816 if test x$gas = xyes; then
23817 as_32_opt="--32"
23818 as_64_opt="--64"
23819 else
23820 as_32_opt="-m32"
23821 as_64_opt="-m64"
23822 fi
23823 case "$target" in
23824 sparc*-*-solaris2.*)
23825 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23826 if gcc_fn_eh_frame_ro $as_32_opt \
23827 || gcc_fn_eh_frame_ro $as_64_opt; then
23828 gcc_cv_as_cfi_directive=no
23829 else
23830 gcc_cv_as_cfi_directive=yes
23831 fi
23832 ;;
23833 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23834 # On Solaris/x86, make sure that GCC and assembler agree on using
23835 # read-only .eh_frame sections for 64-bit.
23836 if gcc_fn_eh_frame_ro $as_32_opt; then
23837 gcc_cv_as_cfi_directive=no
23838 elif gcc_fn_eh_frame_ro $as_64_opt; then
23839 gcc_cv_as_cfi_directive=yes
23840 else
23841 gcc_cv_as_cfi_directive=no
23842 fi
23843 ;;
23844 esac
23845 fi
23846 ;;
23847 *-*-*)
23848 gcc_cv_as_cfi_directive=yes
23849 ;;
23850 esac
23851 else
23852 echo "configure: failed program was" >&5
23853 cat conftest.s >&5
23854 fi
23855 rm -f conftest.o conftest.s
23856 fi
23857 fi
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23859 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23860
23861
23862 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23864 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23865 if ${gcc_cv_as_cfi_advance_working+:} false; then :
23866 $as_echo_n "(cached) " >&6
23867 else
23868 gcc_cv_as_cfi_advance_working=no
23869 if test x$gcc_cv_as != x; then
23870 $as_echo ' .text
23871 .cfi_startproc
23872 .cfi_adjust_cfa_offset 64
23873 .skip 75040, 0
23874 .cfi_adjust_cfa_offset 128
23875 .cfi_endproc' > conftest.s
23876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23878 (eval $ac_try) 2>&5
23879 ac_status=$?
23880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23881 test $ac_status = 0; }; }
23882 then
23883
23884 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23885 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23886 gcc_cv_as_cfi_advance_working=yes
23887 fi
23888
23889 else
23890 echo "configure: failed program was" >&5
23891 cat conftest.s >&5
23892 fi
23893 rm -f conftest.o conftest.s
23894 fi
23895 fi
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23897 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23898
23899
23900 else
23901 # no objdump, err on the side of caution
23902 gcc_cv_as_cfi_advance_working=no
23903 fi
23904
23905
23906 cat >>confdefs.h <<_ACEOF
23907 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23908 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23909 _ACEOF
23910
23911
23912
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23914 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23915 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23916 $as_echo_n "(cached) " >&6
23917 else
23918 gcc_cv_as_cfi_personality_directive=no
23919 if test x$gcc_cv_as != x; then
23920 $as_echo ' .text
23921 .cfi_startproc
23922 .cfi_personality 0, symbol
23923 .cfi_endproc' > conftest.s
23924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23926 (eval $ac_try) 2>&5
23927 ac_status=$?
23928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23929 test $ac_status = 0; }; }
23930 then
23931 gcc_cv_as_cfi_personality_directive=yes
23932 else
23933 echo "configure: failed program was" >&5
23934 cat conftest.s >&5
23935 fi
23936 rm -f conftest.o conftest.s
23937 fi
23938 fi
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23940 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23941
23942
23943
23944 cat >>confdefs.h <<_ACEOF
23945 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23946 _ACEOF
23947
23948
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23950 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23951 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
23952 $as_echo_n "(cached) " >&6
23953 else
23954 gcc_cv_as_cfi_sections_directive=no
23955 if test x$gcc_cv_as != x; then
23956 $as_echo ' .text
23957 .cfi_sections .debug_frame, .eh_frame
23958 .cfi_startproc
23959 .cfi_endproc' > conftest.s
23960 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23962 (eval $ac_try) 2>&5
23963 ac_status=$?
23964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23965 test $ac_status = 0; }; }
23966 then
23967 case $target_os in
23968 win32 | pe | cygwin* | mingw32*)
23969 # Need to check that we generated the correct relocation for the
23970 # .debug_frame section. This was fixed for binutils 2.21.
23971 gcc_cv_as_cfi_sections_directive=no
23972 if test "x$gcc_cv_objdump" != x; then
23973 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23974 grep secrel > /dev/null; then
23975 gcc_cv_as_cfi_sections_directive=yes
23976 fi
23977 fi
23978 ;;
23979 *)
23980 gcc_cv_as_cfi_sections_directive=yes
23981 ;;
23982 esac
23983 else
23984 echo "configure: failed program was" >&5
23985 cat conftest.s >&5
23986 fi
23987 rm -f conftest.o conftest.s
23988 fi
23989 fi
23990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23991 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23992
23993
23994
23995
23996 cat >>confdefs.h <<_ACEOF
23997 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
23998 _ACEOF
23999
24000
24001 # GAS versions up to and including 2.11.0 may mis-optimize
24002 # .eh_frame data.
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24004 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24005 if ${gcc_cv_as_eh_frame+:} false; then :
24006 $as_echo_n "(cached) " >&6
24007 else
24008 gcc_cv_as_eh_frame=no
24009 if test $in_tree_gas = yes; then
24010 if test $in_tree_gas_is_elf = yes \
24011 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24012 then gcc_cv_as_eh_frame=yes
24013 fi
24014 elif test x$gcc_cv_as != x; then
24015 $as_echo ' .text
24016 .LFB1:
24017 .4byte 0
24018 .L1:
24019 .4byte 0
24020 .LFE1:
24021 .section .eh_frame,"aw",@progbits
24022 __FRAME_BEGIN__:
24023 .4byte .LECIE1-.LSCIE1
24024 .LSCIE1:
24025 .4byte 0x0
24026 .byte 0x1
24027 .ascii "z\0"
24028 .byte 0x1
24029 .byte 0x78
24030 .byte 0x1a
24031 .byte 0x0
24032 .byte 0x4
24033 .4byte 1
24034 .p2align 1
24035 .LECIE1:
24036 .LSFDE1:
24037 .4byte .LEFDE1-.LASFDE1
24038 .LASFDE1:
24039 .4byte .LASFDE1-__FRAME_BEGIN__
24040 .4byte .LFB1
24041 .4byte .LFE1-.LFB1
24042 .byte 0x4
24043 .4byte .LFE1-.LFB1
24044 .byte 0x4
24045 .4byte .L1-.LFB1
24046 .LEFDE1:' > conftest.s
24047 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24049 (eval $ac_try) 2>&5
24050 ac_status=$?
24051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24052 test $ac_status = 0; }; }
24053 then
24054 cat > conftest.lit <<EOF
24055 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24056 0010 01000000 12000000 18000000 00000000 ................
24057 0020 08000000 04080000 0044 .........D
24058 EOF
24059 cat > conftest.big <<EOF
24060 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24061 0010 00000001 00000012 00000018 00000000 ................
24062 0020 00000008 04000000 0844 .........D
24063 EOF
24064 # If the assembler didn't choke, and we can objdump,
24065 # and we got the correct data, then succeed.
24066 # The text in the here-document typically retains its unix-style line
24067 # endings, while the output of objdump will use host line endings.
24068 # Therefore, use diff -b for the comparisons.
24069 if test x$gcc_cv_objdump != x \
24070 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24071 | tail -3 > conftest.got \
24072 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24073 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24074 then
24075 gcc_cv_as_eh_frame=yes
24076 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24078 (eval $ac_try) 2>&5
24079 ac_status=$?
24080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24081 test $ac_status = 0; }; }; then
24082 gcc_cv_as_eh_frame=buggy
24083 else
24084 # Uh oh, what do we do now?
24085 gcc_cv_as_eh_frame=no
24086 fi
24087 else
24088 echo "configure: failed program was" >&5
24089 cat conftest.s >&5
24090 fi
24091 rm -f conftest.o conftest.s
24092 fi
24093 fi
24094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24095 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24096
24097
24098
24099 if test $gcc_cv_as_eh_frame = buggy; then
24100
24101 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24102
24103 fi
24104
24105 # Test if the assembler supports the section flag 'e' or #exclude for
24106 # specifying an excluded section.
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24108 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24109 if ${gcc_cv_as_section_exclude_e+:} false; then :
24110 $as_echo_n "(cached) " >&6
24111 else
24112 gcc_cv_as_section_exclude_e=no
24113 if test $in_tree_gas = yes; then
24114 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24115 then gcc_cv_as_section_exclude_e=yes
24116 fi
24117 elif test x$gcc_cv_as != x; then
24118 $as_echo '.section foo1,"e"
24119 .byte 0,0,0,0' > conftest.s
24120 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
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; }; }
24126 then
24127 gcc_cv_as_section_exclude_e=yes
24128 else
24129 echo "configure: failed program was" >&5
24130 cat conftest.s >&5
24131 fi
24132 rm -f conftest.o conftest.s
24133 fi
24134 fi
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24136 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24137
24138
24139 if test $gcc_cv_as_section_exclude_e = no; then
24140 case "${target}" in
24141 # Solaris as uses #exclude instead.
24142 *-*-solaris2*)
24143 case "${target}" in
24144 sparc*-*-solaris2*)
24145 conftest_s='.section "foo1", #exclude'
24146 ;;
24147 i?86-*-solaris2* | x86_64-*-solaris2*)
24148 conftest_s='.section foo1, #exclude'
24149 ;;
24150 esac
24151 ;;
24152 esac
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24154 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24155 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24156 $as_echo_n "(cached) " >&6
24157 else
24158 gcc_cv_as_section_exclude_hash=no
24159 if test x$gcc_cv_as != x; then
24160 $as_echo "$conftest_s
24161 .byte 0,0,0,0" > conftest.s
24162 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24164 (eval $ac_try) 2>&5
24165 ac_status=$?
24166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24167 test $ac_status = 0; }; }
24168 then
24169 gcc_cv_as_section_exclude_hash=yes
24170 else
24171 echo "configure: failed program was" >&5
24172 cat conftest.s >&5
24173 fi
24174 rm -f conftest.o conftest.s
24175 fi
24176 fi
24177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24178 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24179
24180
24181 fi
24182
24183 cat >>confdefs.h <<_ACEOF
24184 #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`
24185 _ACEOF
24186
24187
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24189 $as_echo_n "checking assembler for section merging support... " >&6; }
24190 if ${gcc_cv_as_shf_merge+:} false; then :
24191 $as_echo_n "(cached) " >&6
24192 else
24193 gcc_cv_as_shf_merge=no
24194 if test $in_tree_gas = yes; then
24195 if test $in_tree_gas_is_elf = yes \
24196 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24197 then gcc_cv_as_shf_merge=yes
24198 fi
24199 elif test x$gcc_cv_as != x; then
24200 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24203 (eval $ac_try) 2>&5
24204 ac_status=$?
24205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24206 test $ac_status = 0; }; }
24207 then
24208 gcc_cv_as_shf_merge=yes
24209 else
24210 echo "configure: failed program was" >&5
24211 cat conftest.s >&5
24212 fi
24213 rm -f conftest.o conftest.s
24214 fi
24215 fi
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24217 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24218
24219
24220 if test $gcc_cv_as_shf_merge = no; then
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24222 $as_echo_n "checking assembler for section merging support... " >&6; }
24223 if ${gcc_cv_as_shf_merge+:} false; then :
24224 $as_echo_n "(cached) " >&6
24225 else
24226 gcc_cv_as_shf_merge=no
24227 if test $in_tree_gas = yes; then
24228 if test $in_tree_gas_is_elf = yes \
24229 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24230 then gcc_cv_as_shf_merge=yes
24231 fi
24232 elif test x$gcc_cv_as != x; then
24233 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24234 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24236 (eval $ac_try) 2>&5
24237 ac_status=$?
24238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24239 test $ac_status = 0; }; }
24240 then
24241 gcc_cv_as_shf_merge=yes
24242 else
24243 echo "configure: failed program was" >&5
24244 cat conftest.s >&5
24245 fi
24246 rm -f conftest.o conftest.s
24247 fi
24248 fi
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24250 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24251
24252
24253 fi
24254
24255 cat >>confdefs.h <<_ACEOF
24256 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24257 _ACEOF
24258
24259
24260 gcc_cv_ld_aligned_shf_merge=yes
24261 case "$target" in
24262 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24263 # alignment > 1.
24264 sparc*-*-solaris2.11*)
24265 if test x"$gnu_ld" = xno \
24266 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24267 gcc_cv_ld_aligned_shf_merge=no
24268 fi
24269 ;;
24270 esac
24271
24272 cat >>confdefs.h <<_ACEOF
24273 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24274 _ACEOF
24275
24276
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24278 $as_echo_n "checking assembler for stabs directive... " >&6; }
24279 if ${gcc_cv_as_stabs_directive+:} false; then :
24280 $as_echo_n "(cached) " >&6
24281 else
24282 gcc_cv_as_stabs_directive=no
24283 if test x$gcc_cv_as != x; then
24284 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24285 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24287 (eval $ac_try) 2>&5
24288 ac_status=$?
24289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24290 test $ac_status = 0; }; }
24291 then
24292 gcc_cv_as_stabs_directive=yes
24293 else
24294 echo "configure: failed program was" >&5
24295 cat conftest.s >&5
24296 fi
24297 rm -f conftest.o conftest.s
24298 fi
24299 fi
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24301 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24302 if test $gcc_cv_as_stabs_directive = yes; then
24303
24304 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24305
24306 fi
24307
24308
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24310 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24311 if ${gcc_cv_as_comdat_group+:} false; then :
24312 $as_echo_n "(cached) " >&6
24313 else
24314 gcc_cv_as_comdat_group=no
24315 if test $in_tree_gas = yes; then
24316 if test $in_tree_gas_is_elf = yes \
24317 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24318 then gcc_cv_as_comdat_group=yes
24319 fi
24320 elif test x$gcc_cv_as != x; then
24321 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24324 (eval $ac_try) 2>&5
24325 ac_status=$?
24326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24327 test $ac_status = 0; }; }
24328 then
24329 gcc_cv_as_comdat_group=yes
24330 else
24331 echo "configure: failed program was" >&5
24332 cat conftest.s >&5
24333 fi
24334 rm -f conftest.o conftest.s
24335 fi
24336 fi
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24338 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24339
24340
24341 if test $gcc_cv_as_comdat_group = yes; then
24342 gcc_cv_as_comdat_group_percent=no
24343 gcc_cv_as_comdat_group_group=no
24344 else
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24346 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24347 if ${gcc_cv_as_comdat_group_percent+:} false; then :
24348 $as_echo_n "(cached) " >&6
24349 else
24350 gcc_cv_as_comdat_group_percent=no
24351 if test $in_tree_gas = yes; then
24352 if test $in_tree_gas_is_elf = yes \
24353 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24354 then gcc_cv_as_comdat_group_percent=yes
24355 fi
24356 elif test x$gcc_cv_as != x; then
24357 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24358 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24360 (eval $ac_try) 2>&5
24361 ac_status=$?
24362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24363 test $ac_status = 0; }; }
24364 then
24365 gcc_cv_as_comdat_group_percent=yes
24366 else
24367 echo "configure: failed program was" >&5
24368 cat conftest.s >&5
24369 fi
24370 rm -f conftest.o conftest.s
24371 fi
24372 fi
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24374 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24375
24376
24377 if test $gcc_cv_as_comdat_group_percent = yes; then
24378 gcc_cv_as_comdat_group_group=no
24379 else
24380 case "${target}" in
24381 # Sun as uses a completely different syntax.
24382 *-*-solaris2*)
24383 case "${target}" in
24384 sparc*-*-solaris2*)
24385 conftest_s='
24386 .group foo,".text%foo",#comdat
24387 .section ".text%foo", #alloc,#execinstr,#progbits
24388 .globl foo
24389 foo:
24390 '
24391 ;;
24392 i?86-*-solaris2* | x86_64-*-solaris2*)
24393 conftest_s='
24394 .group foo,.text%foo,#comdat
24395 .section .text%foo, "ax", @progbits
24396 .globl foo
24397 foo:
24398 '
24399 ;;
24400 esac
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24402 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24403 if ${gcc_cv_as_comdat_group_group+:} false; then :
24404 $as_echo_n "(cached) " >&6
24405 else
24406 gcc_cv_as_comdat_group_group=no
24407 if test x$gcc_cv_as != x; then
24408 $as_echo "$conftest_s" > conftest.s
24409 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24411 (eval $ac_try) 2>&5
24412 ac_status=$?
24413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24414 test $ac_status = 0; }; }
24415 then
24416 gcc_cv_as_comdat_group_group=yes
24417 else
24418 echo "configure: failed program was" >&5
24419 cat conftest.s >&5
24420 fi
24421 rm -f conftest.o conftest.s
24422 fi
24423 fi
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24425 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24426
24427
24428 ;;
24429 esac
24430 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24431 gcc_cv_as_comdat_group_group=no
24432 fi
24433 fi
24434 fi
24435 if test x"$ld_is_gold" = xyes; then
24436 comdat_group=yes
24437 elif test $in_tree_ld = yes ; then
24438 comdat_group=no
24439 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 \
24440 && test $in_tree_ld_is_elf = yes; then
24441 comdat_group=yes
24442 fi
24443 elif echo "$ld_ver" | grep GNU > /dev/null; then
24444 comdat_group=yes
24445 if test 0"$ld_date" -lt 20050308; then
24446 if test -n "$ld_date"; then
24447 # If there was date string, but was earlier than 2005-03-08, fail
24448 comdat_group=no
24449 elif test "$ld_vers_major" -lt 2; then
24450 comdat_group=no
24451 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24452 comdat_group=no
24453 fi
24454 fi
24455 else
24456 case "${target}" in
24457 *-*-solaris2.1[1-9]*)
24458 comdat_group=no
24459 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24460 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24461 # version 1.688.
24462 #
24463 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24464 # least ld version 1.2267.
24465 if test "$ld_vers_major" -gt 1; then
24466 comdat_group=yes
24467 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24468 comdat_group=yes
24469 elif test "$ld_vers_minor" -ge 2267; then
24470 comdat_group=yes
24471 fi
24472 ;;
24473 *)
24474 # Assume linkers other than GNU ld don't support COMDAT group.
24475 comdat_group=no
24476 ;;
24477 esac
24478 fi
24479 # Allow overriding the automatic COMDAT group tests above.
24480 # Check whether --enable-comdat was given.
24481 if test "${enable_comdat+set}" = set; then :
24482 enableval=$enable_comdat; comdat_group="$enable_comdat"
24483 fi
24484
24485 if test $comdat_group = no; then
24486 gcc_cv_as_comdat_group=no
24487 gcc_cv_as_comdat_group_percent=no
24488 gcc_cv_as_comdat_group_group=no
24489 fi
24490
24491 cat >>confdefs.h <<_ACEOF
24492 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24493 || test $gcc_cv_as_comdat_group_percent = yes \
24494 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24495 _ACEOF
24496
24497
24498 # Restrict this test to Solaris/x86: other targets define this statically.
24499 case "${target}" in
24500 i?86-*-solaris2* | x86_64-*-solaris2*)
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24502 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24503 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24504 hidden_linkonce=yes
24505 else
24506 case "${target}" in
24507 # Full support for hidden thunks in linkonce sections only appeared in
24508 # Solaris 11/OpenSolaris.
24509 *-*-solaris2.1[1-9]*)
24510 hidden_linkonce=yes
24511 ;;
24512 *)
24513 hidden_linkonce=no
24514 ;;
24515 esac
24516 fi
24517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24518 $as_echo "$hidden_linkonce" >&6; }
24519
24520 cat >>confdefs.h <<_ACEOF
24521 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24522 _ACEOF
24523
24524 ;;
24525 esac
24526
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24528 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24529 if ${gcc_cv_as_is_stmt+:} false; then :
24530 $as_echo_n "(cached) " >&6
24531 else
24532 gcc_cv_as_is_stmt=no
24533 if test $in_tree_gas = yes; then
24534 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24535 then gcc_cv_as_is_stmt=yes
24536 fi
24537 elif test x$gcc_cv_as != x; then
24538 $as_echo ' .text
24539 .file 1 "conf.c"
24540 .loc 1 1 0 is_stmt 1' > conftest.s
24541 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24543 (eval $ac_try) 2>&5
24544 ac_status=$?
24545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24546 test $ac_status = 0; }; }
24547 then
24548 gcc_cv_as_is_stmt=yes
24549 else
24550 echo "configure: failed program was" >&5
24551 cat conftest.s >&5
24552 fi
24553 rm -f conftest.o conftest.s
24554 fi
24555 fi
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24557 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24558 if test $gcc_cv_as_is_stmt = yes; then
24559
24560 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24561
24562 fi
24563
24564
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24566 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24567 if ${gcc_cv_as_discriminator+:} false; then :
24568 $as_echo_n "(cached) " >&6
24569 else
24570 gcc_cv_as_discriminator=no
24571 if test $in_tree_gas = yes; then
24572 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24573 then gcc_cv_as_discriminator=yes
24574 fi
24575 elif test x$gcc_cv_as != x; then
24576 $as_echo ' .text
24577 .file 1 "conf.c"
24578 .loc 1 1 0 discriminator 1' > conftest.s
24579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24581 (eval $ac_try) 2>&5
24582 ac_status=$?
24583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24584 test $ac_status = 0; }; }
24585 then
24586 gcc_cv_as_discriminator=yes
24587 else
24588 echo "configure: failed program was" >&5
24589 cat conftest.s >&5
24590 fi
24591 rm -f conftest.o conftest.s
24592 fi
24593 fi
24594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24595 $as_echo "$gcc_cv_as_discriminator" >&6; }
24596 if test $gcc_cv_as_discriminator = yes; then
24597
24598 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24599
24600 fi
24601
24602
24603 # Catch the newlib flag of the same name so we can gate GCC features on it.
24604 # Check whether --enable-newlib-nano-formatted-io was given.
24605 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
24606 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
24607 yes|no)
24608 ;;
24609 *)
24610 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
24611 ;;
24612 esac
24613 fi
24614
24615
24616 # Thread-local storage - the check is heavily parameterized.
24617 conftest_s=
24618 tls_first_major=
24619 tls_first_minor=
24620 tls_as_opt=
24621 case "$target" in
24622 alpha*-*-*)
24623 conftest_s='
24624 .section ".tdata","awT",@progbits
24625 foo: .long 25
24626 .text
24627 ldq $27,__tls_get_addr($29) !literal!1
24628 lda $16,foo($29) !tlsgd!1
24629 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24630 ldq $27,__tls_get_addr($29) !literal!2
24631 lda $16,foo($29) !tlsldm!2
24632 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24633 ldq $1,foo($29) !gotdtprel
24634 ldah $2,foo($29) !dtprelhi
24635 lda $3,foo($2) !dtprello
24636 lda $4,foo($29) !dtprel
24637 ldq $1,foo($29) !gottprel
24638 ldah $2,foo($29) !tprelhi
24639 lda $3,foo($2) !tprello
24640 lda $4,foo($29) !tprel'
24641 tls_first_major=2
24642 tls_first_minor=13
24643 tls_as_opt=--fatal-warnings
24644 ;;
24645 arc*-*-*)
24646 conftest_s='
24647 add_s r0,r0, @foo@tpoff'
24648 tls_first_major=2
24649 tls_first_minor=23
24650 ;;
24651 cris-*-*|crisv32-*-*)
24652 conftest_s='
24653 .section ".tdata","awT",@progbits
24654 x: .long 25
24655 .text
24656 move.d x:IE,$r10
24657 nop'
24658 tls_first_major=2
24659 tls_first_minor=20
24660 tls_as_opt=--fatal-warnings
24661 ;;
24662 frv*-*-*)
24663 conftest_s='
24664 .section ".tdata","awT",@progbits
24665 x: .long 25
24666 .text
24667 call #gettlsoff(x)'
24668 tls_first_major=2
24669 tls_first_minor=14
24670 ;;
24671 hppa*-*-linux*)
24672 conftest_s='
24673 t1: .reg %r20
24674 t2: .reg %r21
24675 gp: .reg %r19
24676 .section ".tdata","awT",@progbits
24677 foo: .long 25
24678 .text
24679 .align 4
24680 addil LT%foo-$tls_gdidx$,gp
24681 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24682 b __tls_get_addr
24683 nop
24684 addil LT%foo-$tls_ldidx$,gp
24685 b __tls_get_addr
24686 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24687 addil LR%foo-$tls_dtpoff$,%ret0
24688 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24689 mfctl %cr27,%t1
24690 addil LT%foo-$tls_ieoff$,gp
24691 ldw RT%foo-$tls_ieoff$(%r1),%t2
24692 add %t1,%t2,%t3
24693 mfctl %cr27,%t1
24694 addil LR%foo-$tls_leoff$,%t1
24695 ldo RR%foo-$tls_leoff$(%r1),%t2'
24696 tls_first_major=2
24697 tls_first_minor=15
24698 tls_as_opt=--fatal-warnings
24699 ;;
24700 arm*-*-*)
24701 conftest_s='
24702 .section ".tdata","awT",%progbits
24703 foo: .long 25
24704 .text
24705 .word foo(gottpoff)
24706 .word foo(tpoff)
24707 .word foo(tlsgd)
24708 .word foo(tlsldm)
24709 .word foo(tlsldo)'
24710 tls_first_major=2
24711 tls_first_minor=17
24712 ;;
24713 i[34567]86-*-* | x86_64-*-*)
24714 case "$target" in
24715 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
24716 on_solaris=yes
24717 ;;
24718 *)
24719 on_solaris=no
24720 ;;
24721 esac
24722 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24723 conftest_s='
24724 .section .tdata,"awt",@progbits'
24725 tls_first_major=0
24726 tls_first_minor=0
24727 tls_section_flag=t
24728
24729 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24730
24731 else
24732 conftest_s='
24733 .section ".tdata","awT",@progbits'
24734 tls_first_major=2
24735 tls_first_minor=14
24736 tls_section_flag=T
24737 tls_as_opt="--fatal-warnings"
24738 fi
24739 case "$target" in
24740 i[34567]86-*-*)
24741 conftest_s="$conftest_s
24742 foo: .long 25
24743 .text
24744 movl %gs:0, %eax
24745 leal foo@tlsgd(,%ebx,1), %eax
24746 leal foo@tlsldm(%ebx), %eax
24747 leal foo@dtpoff(%eax), %edx
24748 movl foo@gottpoff(%ebx), %eax
24749 subl foo@gottpoff(%ebx), %eax
24750 addl foo@gotntpoff(%ebx), %eax
24751 movl foo@indntpoff, %eax
24752 movl \$foo@tpoff, %eax
24753 subl \$foo@tpoff, %eax
24754 leal foo@ntpoff(%ecx), %eax"
24755 ;;
24756 x86_64-*-*)
24757 if test x$on_solaris = xyes; then
24758 case $gas_flag in
24759 yes) tls_as_opt="$tls_as_opt --64" ;;
24760 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24761 esac
24762 fi
24763 conftest_s="$conftest_s
24764 foo: .long 25
24765 .text
24766 movq %fs:0, %rax
24767 leaq foo@tlsgd(%rip), %rdi
24768 leaq foo@tlsld(%rip), %rdi
24769 leaq foo@dtpoff(%rax), %rdx
24770 movq foo@gottpoff(%rip), %rax
24771 movq \$foo@tpoff, %rax"
24772 ;;
24773 esac
24774 ;;
24775 ia64-*-*)
24776 conftest_s='
24777 .section ".tdata","awT",@progbits
24778 foo: data8 25
24779 .text
24780 addl r16 = @ltoff(@dtpmod(foo#)), gp
24781 addl r17 = @ltoff(@dtprel(foo#)), gp
24782 addl r18 = @ltoff(@tprel(foo#)), gp
24783 addl r19 = @dtprel(foo#), gp
24784 adds r21 = @dtprel(foo#), r13
24785 movl r23 = @dtprel(foo#)
24786 addl r20 = @tprel(foo#), gp
24787 adds r22 = @tprel(foo#), r13
24788 movl r24 = @tprel(foo#)'
24789 tls_first_major=2
24790 tls_first_minor=13
24791 tls_as_opt=--fatal-warnings
24792 ;;
24793 microblaze*-*-*)
24794 conftest_s='
24795 .section .tdata,"awT",@progbits
24796 x:
24797 .word 2
24798 .text
24799 addik r5,r20,x@TLSGD
24800 addik r5,r20,x@TLSLDM'
24801 tls_first_major=2
24802 tls_first_minor=20
24803 tls_as_opt='--fatal-warnings'
24804 ;;
24805 mips*-*-*)
24806 conftest_s='
24807 .section .tdata,"awT",@progbits
24808 x:
24809 .word 2
24810 .text
24811 addiu $4, $28, %tlsgd(x)
24812 addiu $4, $28, %tlsldm(x)
24813 lui $4, %dtprel_hi(x)
24814 addiu $4, $4, %dtprel_lo(x)
24815 lw $4, %gottprel(x)($28)
24816 lui $4, %tprel_hi(x)
24817 addiu $4, $4, %tprel_lo(x)'
24818 tls_first_major=2
24819 tls_first_minor=16
24820 tls_as_opt='-32 --fatal-warnings'
24821 ;;
24822 m68k-*-*)
24823 conftest_s='
24824 .section .tdata,"awT",@progbits
24825 x:
24826 .word 2
24827 .text
24828 foo:
24829 move.l x@TLSGD(%a5),%a0
24830 move.l x@TLSLDM(%a5),%a0
24831 move.l x@TLSLDO(%a5),%a0
24832 move.l x@TLSIE(%a5),%a0
24833 move.l x@TLSLE(%a5),%a0'
24834 tls_first_major=2
24835 tls_first_minor=19
24836 tls_as_opt='--fatal-warnings'
24837 ;;
24838 nios2-*-*)
24839 conftest_s='
24840 .section ".tdata","awT",@progbits'
24841 tls_first_major=2
24842 tls_first_minor=23
24843 tls_as_opt="--fatal-warnings"
24844 ;;
24845 aarch64*-*-*)
24846 conftest_s='
24847 .section ".tdata","awT",%progbits
24848 foo: .long 25
24849 .text
24850 adrp x0, :tlsgd:x
24851 add x0, x0, #:tlsgd_lo12:x
24852 bl __tls_get_addr
24853 nop'
24854 tls_first_major=2
24855 tls_first_minor=20
24856 tls_as_opt='--fatal-warnings'
24857 ;;
24858 or1k*-*-*)
24859 conftest_s='
24860 .section ".tdata","awT",@progbits
24861 foo: .long 25
24862 .text
24863 l.movhi r3, tpoffha(foo)
24864 l.add r3, r3, r10
24865 l.lwz r4, tpofflo(foo)(r3)'
24866 tls_first_major=2
24867 tls_first_minor=30
24868 tls_as_opt=--fatal-warnings
24869 ;;
24870 powerpc-ibm-aix*)
24871 conftest_s='
24872 .extern __get_tpointer
24873 .toc
24874 LC..1:
24875 .tc a[TC],a[TL]@le
24876 .csect .text[PR]
24877 .tlstest:
24878 lwz 9,LC..1(2)
24879 bla __get_tpointer
24880 lwzx 3,9,3
24881 .globl a
24882 .csect a[TL],4
24883 a:
24884 .space 4'
24885 tls_first_major=0
24886 tls_first_minor=0
24887 ;;
24888 powerpc64*-*-*)
24889 conftest_s='
24890 .section ".tdata","awT",@progbits
24891 .align 3
24892 ld0: .space 8
24893 ld1: .space 8
24894 x1: .space 8
24895 x2: .space 8
24896 x3: .space 8
24897 .text
24898 addi 3,2,ld0@got@tlsgd
24899 bl .__tls_get_addr
24900 nop
24901 addi 3,2,ld1@toc
24902 bl .__tls_get_addr
24903 nop
24904 addi 3,2,x1@got@tlsld
24905 bl .__tls_get_addr
24906 nop
24907 addi 9,3,x1@dtprel
24908 bl .__tls_get_addr
24909 nop
24910 addis 9,3,x2@dtprel@ha
24911 addi 9,9,x2@dtprel@l
24912 bl .__tls_get_addr
24913 nop
24914 ld 9,x3@got@dtprel(2)
24915 add 9,9,3
24916 bl .__tls_get_addr
24917 nop'
24918 tls_first_major=2
24919 tls_first_minor=14
24920 tls_as_opt="-a64 --fatal-warnings"
24921 ;;
24922 powerpc*-*-*)
24923 conftest_s='
24924 .section ".tdata","awT",@progbits
24925 .align 2
24926 ld0: .space 4
24927 ld1: .space 4
24928 x1: .space 4
24929 x2: .space 4
24930 x3: .space 4
24931 .text
24932 addi 3,31,ld0@got@tlsgd
24933 bl __tls_get_addr
24934 addi 3,31,x1@got@tlsld
24935 bl __tls_get_addr
24936 addi 9,3,x1@dtprel
24937 addis 9,3,x2@dtprel@ha
24938 addi 9,9,x2@dtprel@l
24939 lwz 9,x3@got@tprel(31)
24940 add 9,9,x@tls
24941 addi 9,2,x1@tprel
24942 addis 9,2,x2@tprel@ha
24943 addi 9,9,x2@tprel@l'
24944 tls_first_major=2
24945 tls_first_minor=14
24946 tls_as_opt="-a32 --fatal-warnings"
24947 ;;
24948 riscv*-*-*)
24949 conftest_s='
24950 .section .tdata,"awT",@progbits
24951 x: .word 2
24952 .text
24953 la.tls.gd a0,x
24954 call __tls_get_addr'
24955 tls_first_major=2
24956 tls_first_minor=21
24957 tls_as_opt='--fatal-warnings'
24958 ;;
24959 s390-*-*)
24960 conftest_s='
24961 .section ".tdata","awT",@progbits
24962 foo: .long 25
24963 .text
24964 .long foo@TLSGD
24965 .long foo@TLSLDM
24966 .long foo@DTPOFF
24967 .long foo@NTPOFF
24968 .long foo@GOTNTPOFF
24969 .long foo@INDNTPOFF
24970 l %r1,foo@GOTNTPOFF(%r12)
24971 l %r1,0(%r1):tls_load:foo
24972 bas %r14,0(%r1,%r13):tls_gdcall:foo
24973 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24974 tls_first_major=2
24975 tls_first_minor=14
24976 tls_as_opt="-m31 --fatal-warnings"
24977 ;;
24978 s390x-*-*)
24979 conftest_s='
24980 .section ".tdata","awT",@progbits
24981 foo: .long 25
24982 .text
24983 .quad foo@TLSGD
24984 .quad foo@TLSLDM
24985 .quad foo@DTPOFF
24986 .quad foo@NTPOFF
24987 .quad foo@GOTNTPOFF
24988 lg %r1,foo@GOTNTPOFF(%r12)
24989 larl %r1,foo@INDNTPOFF
24990 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24991 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24992 tls_first_major=2
24993 tls_first_minor=14
24994 tls_as_opt="-m64 -Aesame --fatal-warnings"
24995 ;;
24996 sh-*-* | sh[123456789lbe]*-*-*)
24997 conftest_s='
24998 .section ".tdata","awT",@progbits
24999 foo: .long 25
25000 .text
25001 .long foo@TLSGD
25002 .long foo@TLSLDM
25003 .long foo@DTPOFF
25004 .long foo@GOTTPOFF
25005 .long foo@TPOFF'
25006 tls_first_major=2
25007 tls_first_minor=13
25008 tls_as_opt=--fatal-warnings
25009 ;;
25010 sparc*-*-*)
25011 case "$target" in
25012 sparc*-sun-solaris2.*)
25013 on_solaris=yes
25014 ;;
25015 *)
25016 on_solaris=no
25017 ;;
25018 esac
25019 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25020 conftest_s='
25021 .section ".tdata",#alloc,#write,#tls'
25022 tls_first_major=0
25023 tls_first_minor=0
25024 else
25025 conftest_s='
25026 .section ".tdata","awT",@progbits'
25027 tls_first_major=2
25028 tls_first_minor=14
25029 tls_as_opt="-32 --fatal-warnings"
25030 fi
25031 conftest_s="$conftest_s
25032 foo: .long 25
25033 .text
25034 sethi %tgd_hi22(foo), %o0
25035 add %o0, %tgd_lo10(foo), %o1
25036 add %l7, %o1, %o0, %tgd_add(foo)
25037 call __tls_get_addr, %tgd_call(foo)
25038 sethi %tldm_hi22(foo), %l1
25039 add %l1, %tldm_lo10(foo), %l2
25040 add %l7, %l2, %o0, %tldm_add(foo)
25041 call __tls_get_addr, %tldm_call(foo)
25042 sethi %tldo_hix22(foo), %l3
25043 xor %l3, %tldo_lox10(foo), %l4
25044 add %o0, %l4, %l5, %tldo_add(foo)
25045 sethi %tie_hi22(foo), %o3
25046 add %o3, %tie_lo10(foo), %o3
25047 ld [%l7 + %o3], %o2, %tie_ld(foo)
25048 add %g7, %o2, %o4, %tie_add(foo)
25049 sethi %tle_hix22(foo), %l1
25050 xor %l1, %tle_lox10(foo), %o5
25051 ld [%g7 + %o5], %o1"
25052 ;;
25053 tilepro*-*-*)
25054 conftest_s='
25055 .section ".tdata","awT",@progbits
25056 foo: .long 25
25057 .text
25058 addli r0, zero, tls_gd(foo)
25059 auli r0, zero, tls_gd_ha16(foo)
25060 addli r0, r0, tls_gd_lo16(foo)
25061 jal __tls_get_addr
25062 addli r0, zero, tls_ie(foo)
25063 auli r0, r0, tls_ie_ha16(foo)
25064 addli r0, r0, tls_ie_lo16(foo)'
25065 tls_first_major=2
25066 tls_first_minor=22
25067 tls_as_opt="--fatal-warnings"
25068 ;;
25069 tilegx*-*-*)
25070 conftest_s='
25071 .section ".tdata","awT",@progbits
25072 foo: .long 25
25073 .text
25074 shl16insli r0, zero, hw0_last_tls_gd(foo)
25075 shl16insli r0, zero, hw1_last_tls_gd(foo)
25076 shl16insli r0, r0, hw0_tls_gd(foo)
25077 jal __tls_get_addr
25078 shl16insli r0, zero, hw1_last_tls_ie(foo)
25079 shl16insli r0, r0, hw0_tls_ie(foo)'
25080 tls_first_major=2
25081 tls_first_minor=22
25082 tls_as_opt="--fatal-warnings"
25083 ;;
25084 xtensa*-*-*)
25085 conftest_s='
25086 .section ".tdata","awT",@progbits
25087 foo: .long 25
25088 .text
25089 movi a8, foo@TLSFUNC
25090 movi a10, foo@TLSARG
25091 callx8.tls a8, foo@TLSCALL'
25092 tls_first_major=2
25093 tls_first_minor=19
25094 ;;
25095 esac
25096 set_have_as_tls=no
25097 if test "x$enable_tls" = xno ; then
25098 : # TLS explicitly disabled.
25099 elif test "x$enable_tls" = xyes ; then
25100 set_have_as_tls=yes # TLS explicitly enabled.
25101 elif test -z "$tls_first_major"; then
25102 : # If we don't have a check, assume no support.
25103 else
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25105 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25106 if ${gcc_cv_as_tls+:} false; then :
25107 $as_echo_n "(cached) " >&6
25108 else
25109 gcc_cv_as_tls=no
25110 if test $in_tree_gas = yes; then
25111 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25112 then gcc_cv_as_tls=yes
25113 fi
25114 elif test x$gcc_cv_as != x; then
25115 $as_echo "$conftest_s" > conftest.s
25116 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25118 (eval $ac_try) 2>&5
25119 ac_status=$?
25120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25121 test $ac_status = 0; }; }
25122 then
25123 gcc_cv_as_tls=yes
25124 else
25125 echo "configure: failed program was" >&5
25126 cat conftest.s >&5
25127 fi
25128 rm -f conftest.o conftest.s
25129 fi
25130 fi
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25132 $as_echo "$gcc_cv_as_tls" >&6; }
25133 if test $gcc_cv_as_tls = yes; then
25134 set_have_as_tls=yes
25135 fi
25136
25137 fi
25138 if test $set_have_as_tls = yes ; then
25139
25140 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25141
25142 fi
25143
25144 # Target-specific assembler checks.
25145
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25147 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25148 gcc_cv_ld_static_dynamic=no
25149 gcc_cv_ld_static_option='-Bstatic'
25150 gcc_cv_ld_dynamic_option='-Bdynamic'
25151 if test $in_tree_ld = yes ; then
25152 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
25153 gcc_cv_ld_static_dynamic=yes
25154 fi
25155 elif test x$gcc_cv_ld != x; then
25156 # Check if linker supports -Bstatic/-Bdynamic option
25157 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25158 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25159 gcc_cv_ld_static_dynamic=yes
25160 else
25161 case "$target" in
25162 # AIX ld uses -b flags
25163 *-*-aix4.[23]* | *-*-aix[5-9]*)
25164 gcc_cv_ld_static_dynamic=yes
25165 gcc_cv_ld_static_option="-bstatic"
25166 gcc_cv_ld_dynamic_option="-bdynamic"
25167 ;;
25168 # HP-UX ld uses -a flags to select between shared and archive.
25169 *-*-hpux*)
25170 if test x"$gnu_ld" = xno; then
25171 gcc_cv_ld_static_dynamic=yes
25172 gcc_cv_ld_static_option="-aarchive_shared"
25173 gcc_cv_ld_dynamic_option="-adefault"
25174 fi
25175 ;;
25176 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25177 *-*-solaris2*)
25178 gcc_cv_ld_static_dynamic=yes
25179 ;;
25180 esac
25181 fi
25182 fi
25183 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25184
25185 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25186
25187
25188 cat >>confdefs.h <<_ACEOF
25189 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25190 _ACEOF
25191
25192
25193 cat >>confdefs.h <<_ACEOF
25194 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25195 _ACEOF
25196
25197 fi
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25199 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25200
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25202 $as_echo_n "checking linker --version-script option... " >&6; }
25203 gcc_cv_ld_version_script=no
25204 ld_version_script_option=''
25205 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25206 gcc_cv_ld_version_script=yes
25207 ld_version_script_option='--version-script'
25208 elif test x$gcc_cv_ld != x; then
25209 case "$target" in
25210 # Solaris 2 ld always supports -M. It also supports a subset of
25211 # --version-script since Solaris 11.4, but requires
25212 # -z gnu-version-script-compat to activate.
25213 *-*-solaris2*)
25214 gcc_cv_ld_version_script=yes
25215 ld_version_script_option='-M'
25216 ;;
25217 esac
25218 fi
25219 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25221 $as_echo "$gcc_cv_ld_version_script" >&6; }
25222
25223
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25225 $as_echo_n "checking linker soname option... " >&6; }
25226 gcc_cv_ld_soname=no
25227 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25228 gcc_cv_ld_soname=yes
25229 ld_soname_option='-soname'
25230 elif test x$gcc_cv_ld != x; then
25231 case "$target" in
25232 *-*-darwin*)
25233 gcc_cv_ld_soname=yes
25234 ld_soname_option='-install_name'
25235 ;;
25236 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25237 # ld compatiblity since some Solaris 10 update.
25238 *-*-solaris2*)
25239 gcc_cv_ld_soname=yes
25240 ld_soname_option='-h'
25241 ;;
25242 esac
25243 fi
25244 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25246 $as_echo "$gcc_cv_ld_soname" >&6; }
25247
25248
25249 if test x"$demangler_in_ld" = xyes; then
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25251 $as_echo_n "checking linker --demangle support... " >&6; }
25252 gcc_cv_ld_demangle=no
25253 if test $in_tree_ld = yes; then
25254 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 \
25255 gcc_cv_ld_demangle=yes
25256 fi
25257 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25258 # Check if the GNU linker supports --demangle option
25259 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25260 gcc_cv_ld_demangle=yes
25261 fi
25262 fi
25263 if test x"$gcc_cv_ld_demangle" = xyes; then
25264
25265 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25266
25267 fi
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25269 $as_echo "$gcc_cv_ld_demangle" >&6; }
25270 fi
25271
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25273 $as_echo_n "checking linker plugin support... " >&6; }
25274 gcc_cv_lto_plugin=0
25275 if test -f liblto_plugin.la; then
25276 save_ld_ver="$ld_ver"
25277 save_ld_vers_major="$ld_vers_major"
25278 save_ld_vers_minor="$ld_vers_minor"
25279 save_ld_is_gold="$ld_is_gold"
25280
25281 ld_is_gold=no
25282
25283 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25284 ld_ver="GNU ld"
25285 # FIXME: ld_is_gold?
25286 ld_vers_major="$gcc_cv_gld_major_version"
25287 ld_vers_minor="$gcc_cv_gld_minor_version"
25288 else
25289 # Determine plugin linker version.
25290 # FIXME: Partial duplicate from above, generalize.
25291 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25292 if echo "$ld_ver" | grep GNU > /dev/null; then
25293 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25294 ld_is_gold=yes
25295 ld_vers=`echo $ld_ver | sed -n \
25296 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25297 else
25298 ld_vers=`echo $ld_ver | sed -n \
25299 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25300 fi
25301 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25302 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25303 fi
25304 fi
25305
25306 # Determine plugin support.
25307 if echo "$ld_ver" | grep GNU > /dev/null; then
25308 # Require GNU ld or gold 2.21+ for plugin support by default.
25309 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25310 gcc_cv_lto_plugin=2
25311 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25312 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25313 gcc_cv_lto_plugin=1
25314 fi
25315 fi
25316
25317 ld_ver="$save_ld_ver"
25318 ld_vers_major="$save_ld_vers_major"
25319 ld_vers_minor="$save_ld_vers_minor"
25320 ld_is_gold="$save_ld_is_gold"
25321 fi
25322
25323 cat >>confdefs.h <<_ACEOF
25324 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25325 _ACEOF
25326
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25328 $as_echo "$gcc_cv_lto_plugin" >&6; }
25329
25330 # Target OS-specific assembler checks.
25331
25332 case "$target_os" in
25333 darwin*)
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25335 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25336 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25337 $as_echo_n "(cached) " >&6
25338 else
25339 gcc_cv_as_mmacosx_version_min=no
25340 if test x$gcc_cv_as != x; then
25341 $as_echo '.text' > conftest.s
25342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25344 (eval $ac_try) 2>&5
25345 ac_status=$?
25346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25347 test $ac_status = 0; }; }
25348 then
25349 gcc_cv_as_mmacosx_version_min=yes
25350 else
25351 echo "configure: failed program was" >&5
25352 cat conftest.s >&5
25353 fi
25354 rm -f conftest.o conftest.s
25355 fi
25356 fi
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25358 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25359 if test $gcc_cv_as_mmacosx_version_min = yes; then
25360
25361 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25362
25363 fi
25364
25365 ;;
25366 esac
25367
25368 # Target CPU-specific assembler checks.
25369
25370 case "$target" in
25371 aarch64*-*-*)
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25373 $as_echo_n "checking assembler for -mabi option... " >&6; }
25374 if ${gcc_cv_as_aarch64_mabi+:} false; then :
25375 $as_echo_n "(cached) " >&6
25376 else
25377 gcc_cv_as_aarch64_mabi=no
25378 if test x$gcc_cv_as != x; then
25379 $as_echo '.text' > conftest.s
25380 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25382 (eval $ac_try) 2>&5
25383 ac_status=$?
25384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25385 test $ac_status = 0; }; }
25386 then
25387 gcc_cv_as_aarch64_mabi=yes
25388 else
25389 echo "configure: failed program was" >&5
25390 cat conftest.s >&5
25391 fi
25392 rm -f conftest.o conftest.s
25393 fi
25394 fi
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25396 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25397
25398
25399 if test x$gcc_cv_as_aarch64_mabi = xyes; then
25400
25401 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25402
25403 else
25404 if test x$with_abi = xilp32; then
25405 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25406 Upgrade the Assembler." "$LINENO" 5
25407 fi
25408 if test x"$with_multilib_list" = xdefault; then
25409 TM_MULTILIB_CONFIG=lp64
25410 else
25411 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25412 for aarch64_multilib in ${aarch64_multilibs}; do
25413 case ${aarch64_multilib} in
25414 ilp32)
25415 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25416 Upgrade the Assembler." "$LINENO" 5
25417 ;;
25418 *)
25419 ;;
25420 esac
25421 done
25422 fi
25423 fi
25424 # Check if we have binutils support for relocations types needed by -fpic
25425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25426 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25427 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25428 $as_echo_n "(cached) " >&6
25429 else
25430 gcc_cv_as_aarch64_picreloc=no
25431 if test x$gcc_cv_as != x; then
25432 $as_echo '
25433 .text
25434 ldr x0, [x2, #:gotpage_lo15:globalsym]
25435 ' > conftest.s
25436 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25438 (eval $ac_try) 2>&5
25439 ac_status=$?
25440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25441 test $ac_status = 0; }; }
25442 then
25443 gcc_cv_as_aarch64_picreloc=yes
25444 else
25445 echo "configure: failed program was" >&5
25446 cat conftest.s >&5
25447 fi
25448 rm -f conftest.o conftest.s
25449 fi
25450 fi
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25452 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25453 if test $gcc_cv_as_aarch64_picreloc = yes; then
25454
25455 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25456
25457 fi
25458
25459 # Enable Branch Target Identification Mechanism and Return Address
25460 # Signing by default.
25461 # Check whether --enable-standard-branch-protection was given.
25462 if test "${enable_standard_branch_protection+set}" = set; then :
25463 enableval=$enable_standard_branch_protection;
25464 case $enableval in
25465 yes)
25466 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25467 ;;
25468 no)
25469 ;;
25470 *)
25471 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25472 Valid choices are 'yes' and 'no'." "$LINENO" 5
25473 ;;
25474 esac
25475
25476 fi
25477
25478 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25479 # Check whether --enable-fix-cortex-a53-835769 was given.
25480 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25481 enableval=$enable_fix_cortex_a53_835769;
25482 case $enableval in
25483 yes)
25484 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25485 ;;
25486 no)
25487 ;;
25488 *)
25489 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25490 Valid choices are 'yes' and 'no'." "$LINENO" 5
25491 ;;
25492
25493 esac
25494
25495 fi
25496
25497 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25498 # Check whether --enable-fix-cortex-a53-843419 was given.
25499 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25500 enableval=$enable_fix_cortex_a53_843419;
25501 case $enableval in
25502 yes)
25503 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25504 ;;
25505 no)
25506 ;;
25507 *)
25508 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25509 Valid choices are 'yes' and 'no'." "$LINENO" 5
25510 ;;
25511
25512 esac
25513
25514 fi
25515
25516 ;;
25517
25518 # All TARGET_ABI_OSF targets.
25519 alpha*-*-linux* | alpha*-*-*bsd*)
25520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25521 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25522 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25523 $as_echo_n "(cached) " >&6
25524 else
25525 gcc_cv_as_alpha_explicit_relocs=no
25526 if test $in_tree_gas = yes; then
25527 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25528 then gcc_cv_as_alpha_explicit_relocs=yes
25529 fi
25530 elif test x$gcc_cv_as != x; then
25531 $as_echo ' .set nomacro
25532 .text
25533 extbl $3, $2, $3 !lituse_bytoff!1
25534 ldq $2, a($29) !literal!1
25535 ldq $4, b($29) !literal!2
25536 ldq_u $3, 0($2) !lituse_base!1
25537 ldq $27, f($29) !literal!5
25538 jsr $26, ($27), f !lituse_jsr!5
25539 ldah $29, 0($26) !gpdisp!3
25540 lda $0, c($29) !gprel
25541 ldah $1, d($29) !gprelhigh
25542 lda $1, d($1) !gprellow
25543 lda $29, 0($29) !gpdisp!3' > conftest.s
25544 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25546 (eval $ac_try) 2>&5
25547 ac_status=$?
25548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25549 test $ac_status = 0; }; }
25550 then
25551 gcc_cv_as_alpha_explicit_relocs=yes
25552 else
25553 echo "configure: failed program was" >&5
25554 cat conftest.s >&5
25555 fi
25556 rm -f conftest.o conftest.s
25557 fi
25558 fi
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25560 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25561 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25562
25563 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25564
25565 fi
25566
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25568 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25569 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25570 $as_echo_n "(cached) " >&6
25571 else
25572 gcc_cv_as_alpha_jsrdirect_relocs=no
25573 if test $in_tree_gas = yes; then
25574 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25575 then gcc_cv_as_alpha_jsrdirect_relocs=yes
25576 fi
25577 elif test x$gcc_cv_as != x; then
25578 $as_echo ' .set nomacro
25579 .text
25580 ldq $27, a($29) !literal!1
25581 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25582 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25584 (eval $ac_try) 2>&5
25585 ac_status=$?
25586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25587 test $ac_status = 0; }; }
25588 then
25589 gcc_cv_as_alpha_jsrdirect_relocs=yes
25590 else
25591 echo "configure: failed program was" >&5
25592 cat conftest.s >&5
25593 fi
25594 rm -f conftest.o conftest.s
25595 fi
25596 fi
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25598 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25599 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25600
25601 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25602
25603 fi
25604
25605 ;;
25606
25607 avr-*-*)
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25609 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25610 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25611 $as_echo_n "(cached) " >&6
25612 else
25613 gcc_cv_as_avr_mlink_relax=no
25614 if test x$gcc_cv_as != x; then
25615 $as_echo '.text' > conftest.s
25616 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25618 (eval $ac_try) 2>&5
25619 ac_status=$?
25620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25621 test $ac_status = 0; }; }
25622 then
25623 gcc_cv_as_avr_mlink_relax=yes
25624 else
25625 echo "configure: failed program was" >&5
25626 cat conftest.s >&5
25627 fi
25628 rm -f conftest.o conftest.s
25629 fi
25630 fi
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25632 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25633 if test $gcc_cv_as_avr_mlink_relax = yes; then
25634
25635 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25636
25637 fi
25638
25639
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25641 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25642 if ${gcc_cv_as_avr_mrmw+:} false; then :
25643 $as_echo_n "(cached) " >&6
25644 else
25645 gcc_cv_as_avr_mrmw=no
25646 if test x$gcc_cv_as != x; then
25647 $as_echo '.text' > conftest.s
25648 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25650 (eval $ac_try) 2>&5
25651 ac_status=$?
25652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25653 test $ac_status = 0; }; }
25654 then
25655 gcc_cv_as_avr_mrmw=yes
25656 else
25657 echo "configure: failed program was" >&5
25658 cat conftest.s >&5
25659 fi
25660 rm -f conftest.o conftest.s
25661 fi
25662 fi
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25664 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25665 if test $gcc_cv_as_avr_mrmw = yes; then
25666
25667 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25668
25669 fi
25670
25671
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25673 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25674 if ${gcc_cv_as_avr_mgccisr+:} false; then :
25675 $as_echo_n "(cached) " >&6
25676 else
25677 gcc_cv_as_avr_mgccisr=no
25678 if test x$gcc_cv_as != x; then
25679 $as_echo '.text
25680 __gcc_isr 1
25681 __gcc_isr 2
25682 __gcc_isr 0,r24
25683 ' > conftest.s
25684 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25686 (eval $ac_try) 2>&5
25687 ac_status=$?
25688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25689 test $ac_status = 0; }; }
25690 then
25691 gcc_cv_as_avr_mgccisr=yes
25692 else
25693 echo "configure: failed program was" >&5
25694 cat conftest.s >&5
25695 fi
25696 rm -f conftest.o conftest.s
25697 fi
25698 fi
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25700 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25701 if test $gcc_cv_as_avr_mgccisr = yes; then
25702
25703 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25704
25705 fi
25706
25707
25708 # Check how default linker description file implements .rodata for
25709 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25710 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25712 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25713 cat > conftest.s <<EOF
25714 .section .rodata,"a",@progbits
25715 .global xxvaryy
25716 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25717 xxvaryy:
25718 .word 1
25719 EOF
25720 rm -f conftest.nm
25721 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25723 (eval $ac_try) 2>&5
25724 ac_status=$?
25725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25726 test $ac_status = 0; }; }
25727 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25729 (eval $ac_try) 2>&5
25730 ac_status=$?
25731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25732 test $ac_status = 0; }; }
25733 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
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 if test -s conftest.nm
25740 then
25741 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25743 $as_echo "yes" >&6; }
25744
25745 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25746
25747 else
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25749 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25750 echo "$as_me: nm output was" >&5
25751 cat conftest.nm >&5
25752 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25753 { $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
25754 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25755 fi
25756 else
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25758 $as_echo "test failed" >&6; }
25759 echo "$as_me: failed program was" >&5
25760 cat conftest.s >&5
25761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25762 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25763 fi
25764 rm -f conftest.s conftest.o conftest.elf conftest.nm
25765 ;;
25766
25767 cris-*-*)
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25769 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25770 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25771 $as_echo_n "(cached) " >&6
25772 else
25773 gcc_cv_as_cris_no_mul_bug=no
25774 if test $in_tree_gas = yes; then
25775 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25776 then gcc_cv_as_cris_no_mul_bug=yes
25777 fi
25778 elif test x$gcc_cv_as != x; then
25779 $as_echo '.text' > conftest.s
25780 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25782 (eval $ac_try) 2>&5
25783 ac_status=$?
25784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25785 test $ac_status = 0; }; }
25786 then
25787 gcc_cv_as_cris_no_mul_bug=yes
25788 else
25789 echo "configure: failed program was" >&5
25790 cat conftest.s >&5
25791 fi
25792 rm -f conftest.o conftest.s
25793 fi
25794 fi
25795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25796 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25797 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25798
25799 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25800
25801 fi
25802
25803 ;;
25804
25805 sparc*-*-*)
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25807 $as_echo_n "checking assembler for -relax option... " >&6; }
25808 if ${gcc_cv_as_sparc_relax+:} false; then :
25809 $as_echo_n "(cached) " >&6
25810 else
25811 gcc_cv_as_sparc_relax=no
25812 if test x$gcc_cv_as != x; then
25813 $as_echo '.text' > conftest.s
25814 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25816 (eval $ac_try) 2>&5
25817 ac_status=$?
25818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25819 test $ac_status = 0; }; }
25820 then
25821 gcc_cv_as_sparc_relax=yes
25822 else
25823 echo "configure: failed program was" >&5
25824 cat conftest.s >&5
25825 fi
25826 rm -f conftest.o conftest.s
25827 fi
25828 fi
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25830 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25831 if test $gcc_cv_as_sparc_relax = yes; then
25832
25833 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25834
25835 fi
25836
25837
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25839 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25840 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25841 $as_echo_n "(cached) " >&6
25842 else
25843 gcc_cv_as_sparc_gotdata_op=no
25844 if test x$gcc_cv_as != x; then
25845 $as_echo '.text
25846 .align 4
25847 foo:
25848 nop
25849 bar:
25850 sethi %gdop_hix22(foo), %g1
25851 xor %g1, %gdop_lox10(foo), %g1
25852 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25853 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25855 (eval $ac_try) 2>&5
25856 ac_status=$?
25857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25858 test $ac_status = 0; }; }
25859 then
25860 if test x$gcc_cv_ld != x \
25861 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25862 if test x$gcc_cv_objdump != x; then
25863 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25864 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25865 gcc_cv_as_sparc_gotdata_op=no
25866 else
25867 gcc_cv_as_sparc_gotdata_op=yes
25868 fi
25869 fi
25870 fi
25871 rm -f conftest
25872 else
25873 echo "configure: failed program was" >&5
25874 cat conftest.s >&5
25875 fi
25876 rm -f conftest.o conftest.s
25877 fi
25878 fi
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25880 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25881 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25882
25883 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25884
25885 fi
25886
25887
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25889 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25890 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25891 $as_echo_n "(cached) " >&6
25892 else
25893 gcc_cv_as_sparc_ua_pcrel=no
25894 if test x$gcc_cv_as != x; then
25895 $as_echo '.text
25896 foo:
25897 nop
25898 .data
25899 .align 4
25900 .byte 0
25901 .uaword %r_disp32(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 gcc_cv_as_sparc_ua_pcrel=yes
25912 fi
25913 rm -f conftest
25914 else
25915 echo "configure: failed program was" >&5
25916 cat conftest.s >&5
25917 fi
25918 rm -f conftest.o conftest.s
25919 fi
25920 fi
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25922 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25923 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25924
25925 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25926
25927
25928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25929 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25930 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25931 $as_echo_n "(cached) " >&6
25932 else
25933 gcc_cv_as_sparc_ua_pcrel_hidden=no
25934 if test x$gcc_cv_as != x; then
25935 $as_echo '.data
25936 .align 4
25937 .byte 0x31
25938 .uaword %r_disp32(foo)
25939 .byte 0x32, 0x33, 0x34
25940 .global foo
25941 .hidden foo
25942 foo:
25943 .skip 4' > conftest.s
25944 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25946 (eval $ac_try) 2>&5
25947 ac_status=$?
25948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25949 test $ac_status = 0; }; }
25950 then
25951 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25952 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25953 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25954 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25955 if $gcc_cv_objdump -R conftest 2> /dev/null \
25956 | grep 'DISP32' > /dev/null 2>&1; then
25957 :
25958 else
25959 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25960 fi
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_hidden" >&5
25971 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25972 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25973
25974 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25975
25976 fi
25977
25978
25979 fi
25980 # unaligned pcrel relocs
25981
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25983 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25984 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
25985 $as_echo_n "(cached) " >&6
25986 else
25987 gcc_cv_as_sparc_offsetable_lo10=no
25988 if test x$gcc_cv_as != x; then
25989 $as_echo '.text
25990 or %g1, %lo(ab) + 12, %g1
25991 or %g1, %lo(ab + 12), %g1' > conftest.s
25992 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25994 (eval $ac_try) 2>&5
25995 ac_status=$?
25996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25997 test $ac_status = 0; }; }
25998 then
25999 if test x$gcc_cv_objdump != x \
26000 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26001 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26002 gcc_cv_as_sparc_offsetable_lo10=yes
26003 fi
26004 else
26005 echo "configure: failed program was" >&5
26006 cat conftest.s >&5
26007 fi
26008 rm -f conftest.o conftest.s
26009 fi
26010 fi
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26012 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26013 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26014
26015 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26016
26017 fi
26018
26019
26020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26021 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26022 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26023 $as_echo_n "(cached) " >&6
26024 else
26025 gcc_cv_as_sparc_fmaf=no
26026 if test x$gcc_cv_as != x; then
26027 $as_echo '.text
26028 .register %g2, #scratch
26029 .register %g3, #scratch
26030 .align 4
26031 fmaddd %f0, %f2, %f4, %f6
26032 addxccc %g1, %g2, %g3
26033 fsrl32 %f2, %f4, %f8
26034 fnaddd %f10, %f12, %f14' > conftest.s
26035 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26037 (eval $ac_try) 2>&5
26038 ac_status=$?
26039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26040 test $ac_status = 0; }; }
26041 then
26042 gcc_cv_as_sparc_fmaf=yes
26043 else
26044 echo "configure: failed program was" >&5
26045 cat conftest.s >&5
26046 fi
26047 rm -f conftest.o conftest.s
26048 fi
26049 fi
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26051 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26052 if test $gcc_cv_as_sparc_fmaf = yes; then
26053
26054 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26055
26056 fi
26057
26058
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26060 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26061 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26062 $as_echo_n "(cached) " >&6
26063 else
26064 gcc_cv_as_sparc_sparc4=no
26065 if test x$gcc_cv_as != x; then
26066 $as_echo '.text
26067 .register %g2, #scratch
26068 .register %g3, #scratch
26069 .align 4
26070 cxbe %g2, %g3, 1f
26071 1: cwbneg %g2, %g3, 1f
26072 1: sha1
26073 md5
26074 aes_kexpand0 %f4, %f6, %f8
26075 des_round %f38, %f40, %f42, %f44
26076 camellia_f %f54, %f56, %f58, %f60
26077 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26078 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26080 (eval $ac_try) 2>&5
26081 ac_status=$?
26082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26083 test $ac_status = 0; }; }
26084 then
26085 gcc_cv_as_sparc_sparc4=yes
26086 else
26087 echo "configure: failed program was" >&5
26088 cat conftest.s >&5
26089 fi
26090 rm -f conftest.o conftest.s
26091 fi
26092 fi
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26094 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26095 if test $gcc_cv_as_sparc_sparc4 = yes; then
26096
26097 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26098
26099 fi
26100
26101
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26103 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26104 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26105 $as_echo_n "(cached) " >&6
26106 else
26107 gcc_cv_as_sparc_sparc5=no
26108 if test x$gcc_cv_as != x; then
26109 $as_echo '.text
26110 .register %g2, #scratch
26111 .register %g3, #scratch
26112 .align 4
26113 subxc %g1, %g2, %g3
26114 fpadd8 %f0, %f2, %f4' > conftest.s
26115 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26117 (eval $ac_try) 2>&5
26118 ac_status=$?
26119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26120 test $ac_status = 0; }; }
26121 then
26122 gcc_cv_as_sparc_sparc5=yes
26123 else
26124 echo "configure: failed program was" >&5
26125 cat conftest.s >&5
26126 fi
26127 rm -f conftest.o conftest.s
26128 fi
26129 fi
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26131 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26132 if test $gcc_cv_as_sparc_sparc5 = yes; then
26133
26134 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26135
26136 fi
26137
26138
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26140 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26141 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26142 $as_echo_n "(cached) " >&6
26143 else
26144 gcc_cv_as_sparc_sparc6=no
26145 if test x$gcc_cv_as != x; then
26146 $as_echo '.text
26147 .register %g2, #scratch
26148 .register %g3, #scratch
26149 .align 4
26150 rd %entropy, %g1
26151 fpsll64x %f0, %f2, %f4' > conftest.s
26152 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26154 (eval $ac_try) 2>&5
26155 ac_status=$?
26156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26157 test $ac_status = 0; }; }
26158 then
26159 gcc_cv_as_sparc_sparc6=yes
26160 else
26161 echo "configure: failed program was" >&5
26162 cat conftest.s >&5
26163 fi
26164 rm -f conftest.o conftest.s
26165 fi
26166 fi
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26168 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26169 if test $gcc_cv_as_sparc_sparc6 = yes; then
26170
26171 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26172
26173 fi
26174
26175
26176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26177 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26178 if ${gcc_cv_as_sparc_leon+:} false; then :
26179 $as_echo_n "(cached) " >&6
26180 else
26181 gcc_cv_as_sparc_leon=no
26182 if test x$gcc_cv_as != x; then
26183 $as_echo '.text
26184 .register %g2, #scratch
26185 .register %g3, #scratch
26186 .align 4
26187 smac %g2, %g3, %g1
26188 umac %g2, %g3, %g1
26189 casa [%g2] 0xb, %g3, %g1' > conftest.s
26190 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26192 (eval $ac_try) 2>&5
26193 ac_status=$?
26194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26195 test $ac_status = 0; }; }
26196 then
26197 gcc_cv_as_sparc_leon=yes
26198 else
26199 echo "configure: failed program was" >&5
26200 cat conftest.s >&5
26201 fi
26202 rm -f conftest.o conftest.s
26203 fi
26204 fi
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26206 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26207 if test $gcc_cv_as_sparc_leon = yes; then
26208
26209 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26210
26211 fi
26212
26213 ;;
26214
26215 i[34567]86-*-* | x86_64-*-*)
26216 case $target_os in
26217 cygwin*)
26218 # Full C++ conformance when using a shared libstdc++-v3 requires some
26219 # support from the Cygwin DLL, which in more recent versions exports
26220 # wrappers to aid in interposing and redirecting operators new, delete,
26221 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26222 # are configuring for a version of Cygwin that exports the wrappers.
26223 if test x$host = x$target && test x$host_cpu = xi686; then
26224 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26225 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26226 gcc_ac_cygwin_dll_wrappers=yes
26227 else
26228 gcc_ac_cygwin_dll_wrappers=no
26229 fi
26230
26231 else
26232 # Can't check presence of libc functions during cross-compile, so
26233 # we just have to assume we're building for an up-to-date target.
26234 gcc_ac_cygwin_dll_wrappers=yes
26235 fi
26236
26237 cat >>confdefs.h <<_ACEOF
26238 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26239 _ACEOF
26240
26241 esac
26242 case $target_os in
26243 cygwin* | pe | mingw32*)
26244 # Recent binutils allows the three-operand form of ".comm" on PE. This
26245 # definition is used unconditionally to initialise the default state of
26246 # the target option variable that governs usage of the feature.
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26248 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26249 if ${gcc_cv_as_comm_has_align+:} false; then :
26250 $as_echo_n "(cached) " >&6
26251 else
26252 gcc_cv_as_comm_has_align=no
26253 if test $in_tree_gas = yes; then
26254 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26255 then gcc_cv_as_comm_has_align=yes
26256 fi
26257 elif test x$gcc_cv_as != x; then
26258 $as_echo '.comm foo,1,32' > conftest.s
26259 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26261 (eval $ac_try) 2>&5
26262 ac_status=$?
26263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26264 test $ac_status = 0; }; }
26265 then
26266 gcc_cv_as_comm_has_align=yes
26267 else
26268 echo "configure: failed program was" >&5
26269 cat conftest.s >&5
26270 fi
26271 rm -f conftest.o conftest.s
26272 fi
26273 fi
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26275 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26276
26277
26278
26279 cat >>confdefs.h <<_ACEOF
26280 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26281 _ACEOF
26282
26283 # Used for DWARF 2 in PE
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26285 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26286 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26287 $as_echo_n "(cached) " >&6
26288 else
26289 gcc_cv_as_ix86_pe_secrel32=no
26290 if test $in_tree_gas = yes; then
26291 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26292 then gcc_cv_as_ix86_pe_secrel32=yes
26293 fi
26294 elif test x$gcc_cv_as != x; then
26295 $as_echo '.text
26296 foo: nop
26297 .data
26298 .secrel32 foo' > conftest.s
26299 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26301 (eval $ac_try) 2>&5
26302 ac_status=$?
26303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26304 test $ac_status = 0; }; }
26305 then
26306 if test x$gcc_cv_ld != x \
26307 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26308 gcc_cv_as_ix86_pe_secrel32=yes
26309 fi
26310 rm -f conftest
26311 else
26312 echo "configure: failed program was" >&5
26313 cat conftest.s >&5
26314 fi
26315 rm -f conftest.o conftest.s
26316 fi
26317 fi
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26319 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26320 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26321
26322 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26323
26324 fi
26325
26326 # Test if the assembler supports the extended form of the .section
26327 # directive that specifies section alignment. LTO support uses this,
26328 # but normally only after installation, so we warn but don't fail the
26329 # configure if LTO is enabled but the assembler does not support it.
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26331 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26332 if ${gcc_cv_as_section_has_align+:} false; then :
26333 $as_echo_n "(cached) " >&6
26334 else
26335 gcc_cv_as_section_has_align=no
26336 if test $in_tree_gas = yes; then
26337 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26338 then gcc_cv_as_section_has_align=yes
26339 fi
26340 elif test x$gcc_cv_as != x; then
26341 $as_echo '.section lto_test,"dr0"' > conftest.s
26342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26344 (eval $ac_try) 2>&5
26345 ac_status=$?
26346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26347 test $ac_status = 0; }; }
26348 then
26349 gcc_cv_as_section_has_align=yes
26350 else
26351 echo "configure: failed program was" >&5
26352 cat conftest.s >&5
26353 fi
26354 rm -f conftest.o conftest.s
26355 fi
26356 fi
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26358 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26359
26360
26361 if test x$gcc_cv_as_section_has_align != xyes; then
26362 case ",$enable_languages," in
26363 *,lto,*)
26364 { $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
26365 $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;}
26366 ;;
26367 esac
26368 fi
26369 ;;
26370 esac
26371
26372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26373 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26374 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26375 $as_echo_n "(cached) " >&6
26376 else
26377 gcc_cv_as_ix86_xbrace_comment=no
26378 if test x$gcc_cv_as != x; then
26379 $as_echo '.text' > conftest.s
26380 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26382 (eval $ac_try) 2>&5
26383 ac_status=$?
26384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26385 test $ac_status = 0; }; }
26386 then
26387 gcc_cv_as_ix86_xbrace_comment=yes
26388 else
26389 echo "configure: failed program was" >&5
26390 cat conftest.s >&5
26391 fi
26392 rm -f conftest.o conftest.s
26393 fi
26394 fi
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26396 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26397 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26398
26399 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26400
26401 fi
26402
26403
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26405 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26406 if ${gcc_cv_as_ix86_filds+:} false; then :
26407 $as_echo_n "(cached) " >&6
26408 else
26409 gcc_cv_as_ix86_filds=no
26410 if test x$gcc_cv_as != x; then
26411 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26412 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26414 (eval $ac_try) 2>&5
26415 ac_status=$?
26416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26417 test $ac_status = 0; }; }
26418 then
26419 gcc_cv_as_ix86_filds=yes
26420 else
26421 echo "configure: failed program was" >&5
26422 cat conftest.s >&5
26423 fi
26424 rm -f conftest.o conftest.s
26425 fi
26426 fi
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26428 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26429 if test $gcc_cv_as_ix86_filds = yes; then
26430
26431 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26432
26433 fi
26434
26435
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26437 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26438 if ${gcc_cv_as_ix86_fildq+:} false; then :
26439 $as_echo_n "(cached) " >&6
26440 else
26441 gcc_cv_as_ix86_fildq=no
26442 if test x$gcc_cv_as != x; then
26443 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26446 (eval $ac_try) 2>&5
26447 ac_status=$?
26448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26449 test $ac_status = 0; }; }
26450 then
26451 gcc_cv_as_ix86_fildq=yes
26452 else
26453 echo "configure: failed program was" >&5
26454 cat conftest.s >&5
26455 fi
26456 rm -f conftest.o conftest.s
26457 fi
26458 fi
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26460 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26461 if test $gcc_cv_as_ix86_fildq = yes; then
26462
26463 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26464
26465 fi
26466
26467
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26469 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26470 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26471 $as_echo_n "(cached) " >&6
26472 else
26473 gcc_cv_as_ix86_cmov_sun_syntax=no
26474 if test x$gcc_cv_as != x; then
26475 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26476 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26478 (eval $ac_try) 2>&5
26479 ac_status=$?
26480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26481 test $ac_status = 0; }; }
26482 then
26483 gcc_cv_as_ix86_cmov_sun_syntax=yes
26484 else
26485 echo "configure: failed program was" >&5
26486 cat conftest.s >&5
26487 fi
26488 rm -f conftest.o conftest.s
26489 fi
26490 fi
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26492 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26493 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26494
26495 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26496
26497 fi
26498
26499
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26501 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26502 if ${gcc_cv_as_ix86_ffreep+:} false; then :
26503 $as_echo_n "(cached) " >&6
26504 else
26505 gcc_cv_as_ix86_ffreep=no
26506 if test x$gcc_cv_as != x; then
26507 $as_echo 'ffreep %st(1)' > conftest.s
26508 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26510 (eval $ac_try) 2>&5
26511 ac_status=$?
26512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26513 test $ac_status = 0; }; }
26514 then
26515 gcc_cv_as_ix86_ffreep=yes
26516 else
26517 echo "configure: failed program was" >&5
26518 cat conftest.s >&5
26519 fi
26520 rm -f conftest.o conftest.s
26521 fi
26522 fi
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26524 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26525 if test $gcc_cv_as_ix86_ffreep = yes; then
26526
26527 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26528
26529 fi
26530
26531
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26533 $as_echo_n "checking assembler for .quad directive... " >&6; }
26534 if ${gcc_cv_as_ix86_quad+:} false; then :
26535 $as_echo_n "(cached) " >&6
26536 else
26537 gcc_cv_as_ix86_quad=no
26538 if test x$gcc_cv_as != x; then
26539 $as_echo '.quad 0' > conftest.s
26540 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26542 (eval $ac_try) 2>&5
26543 ac_status=$?
26544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26545 test $ac_status = 0; }; }
26546 then
26547 gcc_cv_as_ix86_quad=yes
26548 else
26549 echo "configure: failed program was" >&5
26550 cat conftest.s >&5
26551 fi
26552 rm -f conftest.o conftest.s
26553 fi
26554 fi
26555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26556 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26557 if test $gcc_cv_as_ix86_quad = yes; then
26558
26559 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26560
26561 fi
26562
26563
26564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26565 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26566 if ${gcc_cv_as_ix86_sahf+:} false; then :
26567 $as_echo_n "(cached) " >&6
26568 else
26569 gcc_cv_as_ix86_sahf=no
26570 if test x$gcc_cv_as != x; then
26571 $as_echo '.code64
26572 sahf' > conftest.s
26573 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26575 (eval $ac_try) 2>&5
26576 ac_status=$?
26577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26578 test $ac_status = 0; }; }
26579 then
26580 gcc_cv_as_ix86_sahf=yes
26581 else
26582 echo "configure: failed program was" >&5
26583 cat conftest.s >&5
26584 fi
26585 rm -f conftest.o conftest.s
26586 fi
26587 fi
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26589 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26590 if test $gcc_cv_as_ix86_sahf = yes; then
26591
26592 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26593
26594 fi
26595
26596
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26598 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26599 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26600 $as_echo_n "(cached) " >&6
26601 else
26602 gcc_cv_as_ix86_interunit_movq=no
26603 if test x$gcc_cv_as != x; then
26604 $as_echo '.code64
26605 movq %mm0, %rax
26606 movq %rax, %xmm0' > conftest.s
26607 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26609 (eval $ac_try) 2>&5
26610 ac_status=$?
26611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26612 test $ac_status = 0; }; }
26613 then
26614 gcc_cv_as_ix86_interunit_movq=yes
26615 else
26616 echo "configure: failed program was" >&5
26617 cat conftest.s >&5
26618 fi
26619 rm -f conftest.o conftest.s
26620 fi
26621 fi
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26623 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26624
26625
26626
26627 cat >>confdefs.h <<_ACEOF
26628 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26629 _ACEOF
26630
26631
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26633 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26634 if ${gcc_cv_as_ix86_hle+:} false; then :
26635 $as_echo_n "(cached) " >&6
26636 else
26637 gcc_cv_as_ix86_hle=no
26638 if test x$gcc_cv_as != x; then
26639 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26640 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26642 (eval $ac_try) 2>&5
26643 ac_status=$?
26644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26645 test $ac_status = 0; }; }
26646 then
26647 gcc_cv_as_ix86_hle=yes
26648 else
26649 echo "configure: failed program was" >&5
26650 cat conftest.s >&5
26651 fi
26652 rm -f conftest.o conftest.s
26653 fi
26654 fi
26655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26656 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26657 if test $gcc_cv_as_ix86_hle = yes; then
26658
26659 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26660
26661 fi
26662
26663
26664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26665 $as_echo_n "checking assembler for swap suffix... " >&6; }
26666 if ${gcc_cv_as_ix86_swap+:} false; then :
26667 $as_echo_n "(cached) " >&6
26668 else
26669 gcc_cv_as_ix86_swap=no
26670 if test x$gcc_cv_as != x; then
26671 $as_echo 'movl.s %esp, %ebp' > conftest.s
26672 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26674 (eval $ac_try) 2>&5
26675 ac_status=$?
26676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26677 test $ac_status = 0; }; }
26678 then
26679 gcc_cv_as_ix86_swap=yes
26680 else
26681 echo "configure: failed program was" >&5
26682 cat conftest.s >&5
26683 fi
26684 rm -f conftest.o conftest.s
26685 fi
26686 fi
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26688 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26689 if test $gcc_cv_as_ix86_swap = yes; then
26690
26691 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26692
26693 fi
26694
26695
26696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26697 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26698 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26699 $as_echo_n "(cached) " >&6
26700 else
26701 gcc_cv_as_ix86_diff_sect_delta=no
26702 if test x$gcc_cv_as != x; then
26703 $as_echo '.section .rodata
26704 .L1:
26705 .long .L2-.L1
26706 .long .L3-.L1
26707 .text
26708 .L3: nop
26709 .L2: nop' > conftest.s
26710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26712 (eval $ac_try) 2>&5
26713 ac_status=$?
26714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26715 test $ac_status = 0; }; }
26716 then
26717 gcc_cv_as_ix86_diff_sect_delta=yes
26718 else
26719 echo "configure: failed program was" >&5
26720 cat conftest.s >&5
26721 fi
26722 rm -f conftest.o conftest.s
26723 fi
26724 fi
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26726 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26727 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26728
26729 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26730
26731 fi
26732
26733
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26735 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26736 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26737 $as_echo_n "(cached) " >&6
26738 else
26739 gcc_cv_as_ix86_rep_lock_prefix=no
26740 if test x$gcc_cv_as != x; then
26741 $as_echo 'rep movsl
26742 rep ret
26743 rep nop
26744 rep bsf %ecx, %eax
26745 rep bsr %ecx, %eax
26746 lock addl %edi, (%eax,%esi)
26747 lock orl $0, (%esp)' > conftest.s
26748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26750 (eval $ac_try) 2>&5
26751 ac_status=$?
26752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26753 test $ac_status = 0; }; }
26754 then
26755 gcc_cv_as_ix86_rep_lock_prefix=yes
26756 else
26757 echo "configure: failed program was" >&5
26758 cat conftest.s >&5
26759 fi
26760 rm -f conftest.o conftest.s
26761 fi
26762 fi
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26764 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26765 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26766
26767 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26768
26769 fi
26770
26771
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26773 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26774 if ${gcc_cv_as_ix86_ud2+:} false; then :
26775 $as_echo_n "(cached) " >&6
26776 else
26777 gcc_cv_as_ix86_ud2=no
26778 if test x$gcc_cv_as != x; then
26779 $as_echo 'ud2' > conftest.s
26780 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26782 (eval $ac_try) 2>&5
26783 ac_status=$?
26784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26785 test $ac_status = 0; }; }
26786 then
26787 gcc_cv_as_ix86_ud2=yes
26788 else
26789 echo "configure: failed program was" >&5
26790 cat conftest.s >&5
26791 fi
26792 rm -f conftest.o conftest.s
26793 fi
26794 fi
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26796 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26797 if test $gcc_cv_as_ix86_ud2 = yes; then
26798
26799 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26800
26801 fi
26802
26803
26804 # Enforce 32-bit output with gas and gld.
26805 if test x$gas = xyes; then
26806 as_ix86_gas_32_opt="--32"
26807 fi
26808 if echo "$ld_ver" | grep GNU > /dev/null; then
26809 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26810 ld_ix86_gld_32_opt="-melf_i386_sol2"
26811 else
26812 ld_ix86_gld_32_opt="-melf_i386"
26813 fi
26814 fi
26815
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26817 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26818 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26819 $as_echo_n "(cached) " >&6
26820 else
26821 gcc_cv_as_ix86_tlsgdplt=no
26822 if test x$gcc_cv_as != x; then
26823 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26824 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26826 (eval $ac_try) 2>&5
26827 ac_status=$?
26828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26829 test $ac_status = 0; }; }
26830 then
26831 if test x$gcc_cv_ld != x \
26832 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26833 gcc_cv_as_ix86_tlsgdplt=yes
26834 fi
26835 rm -f conftest
26836 else
26837 echo "configure: failed program was" >&5
26838 cat conftest.s >&5
26839 fi
26840 rm -f conftest.o conftest.s
26841 fi
26842 fi
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26844 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26845 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26846
26847 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26848
26849 fi
26850
26851
26852 conftest_s='
26853 .section .tdata,"aw'$tls_section_flag'",@progbits
26854 tls_ld:
26855 .section .text,"ax",@progbits
26856 call tls_ld@tlsldmplt'
26857
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26859 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26860 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26861 $as_echo_n "(cached) " >&6
26862 else
26863 gcc_cv_as_ix86_tlsldmplt=no
26864 if test x$gcc_cv_as != x; then
26865 $as_echo "$conftest_s" > conftest.s
26866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26868 (eval $ac_try) 2>&5
26869 ac_status=$?
26870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26871 test $ac_status = 0; }; }
26872 then
26873 if test x$gcc_cv_ld != x \
26874 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26875 gcc_cv_as_ix86_tlsldmplt=yes
26876 fi
26877 rm -f conftest
26878 else
26879 echo "configure: failed program was" >&5
26880 cat conftest.s >&5
26881 fi
26882 rm -f conftest.o conftest.s
26883 fi
26884 fi
26885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26886 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26887
26888
26889
26890 cat >>confdefs.h <<_ACEOF
26891 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26892 _ACEOF
26893
26894
26895 conftest_s='
26896 .section .text,"ax",@progbits
26897 .globl _start
26898 .type _start, @function
26899 _start:
26900 leal value@tlsldm(%ebx), %eax
26901 call ___tls_get_addr@plt
26902
26903 .section .tdata,"aw'$tls_section_flag'",@progbits
26904 .type value, @object
26905 value:'
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26907 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26908 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26909 $as_echo_n "(cached) " >&6
26910 else
26911 gcc_cv_as_ix86_tlsldm=no
26912 if test x$gcc_cv_as != x; then
26913 $as_echo "$conftest_s" > conftest.s
26914 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26916 (eval $ac_try) 2>&5
26917 ac_status=$?
26918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26919 test $ac_status = 0; }; }
26920 then
26921 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26922 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26923 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26924 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26925 gcc_cv_as_ix86_tlsldm=yes
26926 fi
26927 fi
26928 rm -f conftest
26929 else
26930 echo "configure: failed program was" >&5
26931 cat conftest.s >&5
26932 fi
26933 rm -f conftest.o conftest.s
26934 fi
26935 fi
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26937 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26938
26939
26940
26941 cat >>confdefs.h <<_ACEOF
26942 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26943 _ACEOF
26944
26945
26946 conftest_s='
26947 .data
26948 bar:
26949 .byte 1
26950 .text
26951 .global _start
26952 _start:
26953 cmpl $0, bar@GOT
26954 jmp *_start@GOT'
26955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26956 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26957 if ${gcc_cv_as_ix86_got32x+:} false; then :
26958 $as_echo_n "(cached) " >&6
26959 else
26960 gcc_cv_as_ix86_got32x=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 && test x$gcc_cv_readelf != x \
26972 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26973 | grep R_386_GOT32X > /dev/null 2>&1 \
26974 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26975 if $gcc_cv_objdump -dw conftest 2>&1 \
26976 | grep 0xffffff > /dev/null 2>&1; then
26977 gcc_cv_as_ix86_got32x=no
26978 else
26979 gcc_cv_as_ix86_got32x=yes
26980 fi
26981 fi
26982 rm -f conftest
26983 else
26984 echo "configure: failed program was" >&5
26985 cat conftest.s >&5
26986 fi
26987 rm -f conftest.o conftest.s
26988 fi
26989 fi
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26991 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26992
26993
26994
26995 cat >>confdefs.h <<_ACEOF
26996 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26997 _ACEOF
26998
26999
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27001 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27002 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27003 $as_echo_n "(cached) " >&6
27004 else
27005 gcc_cv_as_ix86_gotoff_in_data=no
27006 if test $in_tree_gas = yes; then
27007 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27008 then gcc_cv_as_ix86_gotoff_in_data=yes
27009 fi
27010 elif test x$gcc_cv_as != x; then
27011 $as_echo ' .text
27012 .L0:
27013 nop
27014 .data
27015 .long .L0@GOTOFF' > conftest.s
27016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27018 (eval $ac_try) 2>&5
27019 ac_status=$?
27020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27021 test $ac_status = 0; }; }
27022 then
27023 gcc_cv_as_ix86_gotoff_in_data=yes
27024 else
27025 echo "configure: failed program was" >&5
27026 cat conftest.s >&5
27027 fi
27028 rm -f conftest.o conftest.s
27029 fi
27030 fi
27031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27032 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27033
27034
27035
27036 cat >>confdefs.h <<_ACEOF
27037 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27038 _ACEOF
27039
27040
27041 conftest_s='
27042 .section .text,"ax",@progbits
27043 .globl _start
27044 .type _start, @function
27045 _start:
27046 leal ld@tlsldm(%ecx), %eax
27047 call *___tls_get_addr@GOT(%ecx)
27048 leal gd@tlsgd(%ecx), %eax
27049 call *___tls_get_addr@GOT(%ecx)
27050
27051 .section .tdata,"aw'$tls_section_flag'",@progbits
27052 .type ld, @object
27053 ld:
27054 .byte 0
27055 .globl gd
27056 .type gd, @object
27057 gd:
27058 .byte 0'
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27060 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27061 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27062 $as_echo_n "(cached) " >&6
27063 else
27064 gcc_cv_as_ix86_tls_get_addr_via_got=no
27065 if test x$gcc_cv_as != x; then
27066 $as_echo "$conftest_s" > conftest.s
27067 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27069 (eval $ac_try) 2>&5
27070 ac_status=$?
27071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27072 test $ac_status = 0; }; }
27073 then
27074 if test x$gcc_cv_ld != x \
27075 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27076 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27077 fi
27078 rm -f conftest
27079 else
27080 echo "configure: failed program was" >&5
27081 cat conftest.s >&5
27082 fi
27083 rm -f conftest.o conftest.s
27084 fi
27085 fi
27086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27087 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27088
27089
27090
27091 cat >>confdefs.h <<_ACEOF
27092 #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`
27093 _ACEOF
27094
27095 ;;
27096
27097 ia64*-*-*)
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27099 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27100 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27101 $as_echo_n "(cached) " >&6
27102 else
27103 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27104 if test $in_tree_gas = yes; then
27105 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27106 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27107 fi
27108 elif test x$gcc_cv_as != x; then
27109 $as_echo ' .text
27110 addl r15 = @ltoffx(x#), gp
27111 ;;
27112 ld8.mov r16 = [r15], x#
27113 ' > conftest.s
27114 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27116 (eval $ac_try) 2>&5
27117 ac_status=$?
27118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27119 test $ac_status = 0; }; }
27120 then
27121 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27122 else
27123 echo "configure: failed program was" >&5
27124 cat conftest.s >&5
27125 fi
27126 rm -f conftest.o conftest.s
27127 fi
27128 fi
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27130 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27131 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27132
27133 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27134
27135 fi
27136
27137
27138 ;;
27139
27140 powerpc*-*-*)
27141
27142 case $target in
27143 *-*-darwin*)
27144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27145 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27146 if ${gcc_cv_as_machine_directive+:} false; then :
27147 $as_echo_n "(cached) " >&6
27148 else
27149 gcc_cv_as_machine_directive=no
27150 if test x$gcc_cv_as != x; then
27151 $as_echo ' .machine ppc7400' > conftest.s
27152 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27154 (eval $ac_try) 2>&5
27155 ac_status=$?
27156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27157 test $ac_status = 0; }; }
27158 then
27159 gcc_cv_as_machine_directive=yes
27160 else
27161 echo "configure: failed program was" >&5
27162 cat conftest.s >&5
27163 fi
27164 rm -f conftest.o conftest.s
27165 fi
27166 fi
27167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27168 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27169
27170
27171 if test x$gcc_cv_as_machine_directive != xyes; then
27172 echo "*** This target requires an assembler supporting \".machine\"" >&2
27173 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27174 test x$build = x$target && exit 1
27175 fi
27176 ;;
27177 esac
27178
27179 case $target in
27180 *-*-aix*) conftest_s=' .machine "pwr5"
27181 .csect .text[PR]
27182 mfcr 3,128';;
27183 *-*-darwin*) conftest_s=' .text
27184 mfcr r3,128';;
27185 *) conftest_s=' .machine power4
27186 .text
27187 mfcr 3,128';;
27188 esac
27189
27190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27191 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27192 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27193 $as_echo_n "(cached) " >&6
27194 else
27195 gcc_cv_as_powerpc_mfcrf=no
27196 if test $in_tree_gas = yes; then
27197 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27198 then gcc_cv_as_powerpc_mfcrf=yes
27199 fi
27200 elif test x$gcc_cv_as != x; then
27201 $as_echo "$conftest_s" > conftest.s
27202 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27204 (eval $ac_try) 2>&5
27205 ac_status=$?
27206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27207 test $ac_status = 0; }; }
27208 then
27209 gcc_cv_as_powerpc_mfcrf=yes
27210 else
27211 echo "configure: failed program was" >&5
27212 cat conftest.s >&5
27213 fi
27214 rm -f conftest.o conftest.s
27215 fi
27216 fi
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27218 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27219 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27220
27221 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27222
27223 fi
27224
27225
27226 case $target in
27227 *-*-aix*) conftest_s=' .csect .text[PR]
27228 LCF..0:
27229 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27230 *-*-darwin*)
27231 conftest_s=' .text
27232 LCF0:
27233 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27234 *) conftest_s=' .text
27235 .LCF0:
27236 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27237 esac
27238
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27240 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27241 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27242 $as_echo_n "(cached) " >&6
27243 else
27244 gcc_cv_as_powerpc_rel16=no
27245 if test $in_tree_gas = yes; then
27246 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27247 then gcc_cv_as_powerpc_rel16=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 -a32 -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_rel16=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_rel16" >&5
27267 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27268 if test $gcc_cv_as_powerpc_rel16 = yes; then
27269
27270 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27271
27272 fi
27273
27274
27275 case $target in
27276 *-*-aix*) conftest_s=' .machine "pwr7"
27277 .csect .text[PR]
27278 lxvd2x 1,2,3';;
27279 *) conftest_s=' .machine power7
27280 .text
27281 lxvd2x 1,2,3';;
27282 esac
27283
27284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27285 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27286 if ${gcc_cv_as_powerpc_vsx+:} false; then :
27287 $as_echo_n "(cached) " >&6
27288 else
27289 gcc_cv_as_powerpc_vsx=no
27290 if test $in_tree_gas = yes; then
27291 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27292 then gcc_cv_as_powerpc_vsx=yes
27293 fi
27294 elif test x$gcc_cv_as != x; then
27295 $as_echo "$conftest_s" > conftest.s
27296 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27298 (eval $ac_try) 2>&5
27299 ac_status=$?
27300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27301 test $ac_status = 0; }; }
27302 then
27303 gcc_cv_as_powerpc_vsx=yes
27304 else
27305 echo "configure: failed program was" >&5
27306 cat conftest.s >&5
27307 fi
27308 rm -f conftest.o conftest.s
27309 fi
27310 fi
27311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27312 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27313 if test $gcc_cv_as_powerpc_vsx = yes; then
27314
27315 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27316
27317 fi
27318
27319
27320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27321 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27322 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
27323 $as_echo_n "(cached) " >&6
27324 else
27325 gcc_cv_as_powerpc_gnu_attribute=no
27326 if test $in_tree_gas = yes; then
27327 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27328 then gcc_cv_as_powerpc_gnu_attribute=yes
27329 fi
27330 elif test x$gcc_cv_as != x; then
27331 $as_echo '.gnu_attribute 4,1' > conftest.s
27332 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27334 (eval $ac_try) 2>&5
27335 ac_status=$?
27336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27337 test $ac_status = 0; }; }
27338 then
27339 gcc_cv_as_powerpc_gnu_attribute=yes
27340 else
27341 echo "configure: failed program was" >&5
27342 cat conftest.s >&5
27343 fi
27344 rm -f conftest.o conftest.s
27345 fi
27346 fi
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27348 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27349 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27350
27351 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27352
27353 fi
27354
27355
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27357 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27358 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27359 $as_echo_n "(cached) " >&6
27360 else
27361 gcc_cv_as_powerpc_entry_markers=no
27362 if test $in_tree_gas = yes; then
27363 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27364 then gcc_cv_as_powerpc_entry_markers=yes
27365 fi
27366 elif test x$gcc_cv_as != x; then
27367 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27368 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27370 (eval $ac_try) 2>&5
27371 ac_status=$?
27372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27373 test $ac_status = 0; }; }
27374 then
27375 gcc_cv_as_powerpc_entry_markers=yes
27376 else
27377 echo "configure: failed program was" >&5
27378 cat conftest.s >&5
27379 fi
27380 rm -f conftest.o conftest.s
27381 fi
27382 fi
27383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27384 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27385 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27386
27387 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27388
27389 fi
27390
27391
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27393 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27394 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27395 $as_echo_n "(cached) " >&6
27396 else
27397 gcc_cv_as_powerpc_pltseq_markers=no
27398 if test $in_tree_gas = yes; then
27399 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27400 then gcc_cv_as_powerpc_pltseq_markers=yes
27401 fi
27402 elif test x$gcc_cv_as != x; then
27403 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27406 (eval $ac_try) 2>&5
27407 ac_status=$?
27408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27409 test $ac_status = 0; }; }
27410 then
27411 gcc_cv_as_powerpc_pltseq_markers=yes
27412 else
27413 echo "configure: failed program was" >&5
27414 cat conftest.s >&5
27415 fi
27416 rm -f conftest.o conftest.s
27417 fi
27418 fi
27419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27420 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27421 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27422
27423 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27424
27425 fi
27426
27427
27428 case $target in
27429 *-*-aix*)
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27431 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27432 if ${gcc_cv_as_aix_ref+:} false; then :
27433 $as_echo_n "(cached) " >&6
27434 else
27435 gcc_cv_as_aix_ref=no
27436 if test $in_tree_gas = yes; then
27437 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27438 then gcc_cv_as_aix_ref=yes
27439 fi
27440 elif test x$gcc_cv_as != x; then
27441 $as_echo ' .csect stuff[rw]
27442 stuff:
27443 .long 1
27444 .extern sym
27445 .ref sym
27446 ' > conftest.s
27447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27449 (eval $ac_try) 2>&5
27450 ac_status=$?
27451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27452 test $ac_status = 0; }; }
27453 then
27454 gcc_cv_as_aix_ref=yes
27455 else
27456 echo "configure: failed program was" >&5
27457 cat conftest.s >&5
27458 fi
27459 rm -f conftest.o conftest.s
27460 fi
27461 fi
27462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27463 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27464 if test $gcc_cv_as_aix_ref = yes; then
27465
27466 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27467
27468 fi
27469
27470
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27472 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27473 if ${gcc_cv_as_aix_dwloc+:} false; then :
27474 $as_echo_n "(cached) " >&6
27475 else
27476 gcc_cv_as_aix_dwloc=no
27477 if test $in_tree_gas = yes; then
27478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27479 then gcc_cv_as_aix_dwloc=yes
27480 fi
27481 elif test x$gcc_cv_as != x; then
27482 $as_echo ' .dwsect 0xA0000
27483 Lframe..0:
27484 .vbyte 4,Lframe..0
27485 ' > conftest.s
27486 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27488 (eval $ac_try) 2>&5
27489 ac_status=$?
27490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27491 test $ac_status = 0; }; }
27492 then
27493 gcc_cv_as_aix_dwloc=yes
27494 else
27495 echo "configure: failed program was" >&5
27496 cat conftest.s >&5
27497 fi
27498 rm -f conftest.o conftest.s
27499 fi
27500 fi
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27502 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27503 if test $gcc_cv_as_aix_dwloc = yes; then
27504
27505 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27506
27507 fi
27508
27509 ;;
27510 esac
27511 ;;
27512
27513 mips*-*-*)
27514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27515 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27516 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27517 $as_echo_n "(cached) " >&6
27518 else
27519 gcc_cv_as_mips_explicit_relocs=no
27520 if test $in_tree_gas = yes; then
27521 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27522 then gcc_cv_as_mips_explicit_relocs=yes
27523 fi
27524 elif test x$gcc_cv_as != x; then
27525 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27526 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27528 (eval $ac_try) 2>&5
27529 ac_status=$?
27530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27531 test $ac_status = 0; }; }
27532 then
27533 gcc_cv_as_mips_explicit_relocs=yes
27534 else
27535 echo "configure: failed program was" >&5
27536 cat conftest.s >&5
27537 fi
27538 rm -f conftest.o conftest.s
27539 fi
27540 fi
27541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27542 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27543 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27544 if test x$target_cpu_default = x
27545 then target_cpu_default=MASK_EXPLICIT_RELOCS
27546 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27547 fi
27548 fi
27549
27550
27551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27552 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27553 if ${gcc_cv_as_mips_no_shared+:} false; then :
27554 $as_echo_n "(cached) " >&6
27555 else
27556 gcc_cv_as_mips_no_shared=no
27557 if test $in_tree_gas = yes; then
27558 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27559 then gcc_cv_as_mips_no_shared=yes
27560 fi
27561 elif test x$gcc_cv_as != x; then
27562 $as_echo 'nop' > conftest.s
27563 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27565 (eval $ac_try) 2>&5
27566 ac_status=$?
27567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27568 test $ac_status = 0; }; }
27569 then
27570 gcc_cv_as_mips_no_shared=yes
27571 else
27572 echo "configure: failed program was" >&5
27573 cat conftest.s >&5
27574 fi
27575 rm -f conftest.o conftest.s
27576 fi
27577 fi
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27579 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27580 if test $gcc_cv_as_mips_no_shared = yes; then
27581
27582 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27583
27584 fi
27585
27586
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27588 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27589 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27590 $as_echo_n "(cached) " >&6
27591 else
27592 gcc_cv_as_mips_gnu_attribute=no
27593 if test $in_tree_gas = yes; then
27594 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27595 then gcc_cv_as_mips_gnu_attribute=yes
27596 fi
27597 elif test x$gcc_cv_as != x; then
27598 $as_echo '.gnu_attribute 4,1' > conftest.s
27599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27601 (eval $ac_try) 2>&5
27602 ac_status=$?
27603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27604 test $ac_status = 0; }; }
27605 then
27606 gcc_cv_as_mips_gnu_attribute=yes
27607 else
27608 echo "configure: failed program was" >&5
27609 cat conftest.s >&5
27610 fi
27611 rm -f conftest.o conftest.s
27612 fi
27613 fi
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27615 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27616 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27617
27618 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27619
27620 fi
27621
27622
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27624 $as_echo_n "checking assembler for .module support... " >&6; }
27625 if ${gcc_cv_as_mips_dot_module+:} false; then :
27626 $as_echo_n "(cached) " >&6
27627 else
27628 gcc_cv_as_mips_dot_module=no
27629 if test x$gcc_cv_as != x; then
27630 $as_echo '.module mips2
27631 .module fp=xx' > conftest.s
27632 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27634 (eval $ac_try) 2>&5
27635 ac_status=$?
27636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27637 test $ac_status = 0; }; }
27638 then
27639 gcc_cv_as_mips_dot_module=yes
27640 else
27641 echo "configure: failed program was" >&5
27642 cat conftest.s >&5
27643 fi
27644 rm -f conftest.o conftest.s
27645 fi
27646 fi
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27648 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27649 if test $gcc_cv_as_mips_dot_module = yes; then
27650
27651 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27652
27653 fi
27654
27655 if test x$gcc_cv_as_mips_dot_module = xno \
27656 && test x$with_fp_32 != x; then
27657 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27658 fi
27659
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27661 $as_echo_n "checking assembler for .micromips support... " >&6; }
27662 if ${gcc_cv_as_micromips_support+:} false; then :
27663 $as_echo_n "(cached) " >&6
27664 else
27665 gcc_cv_as_micromips_support=no
27666 if test x$gcc_cv_as != x; then
27667 $as_echo '.set micromips' > conftest.s
27668 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27670 (eval $ac_try) 2>&5
27671 ac_status=$?
27672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27673 test $ac_status = 0; }; }
27674 then
27675 gcc_cv_as_micromips_support=yes
27676 else
27677 echo "configure: failed program was" >&5
27678 cat conftest.s >&5
27679 fi
27680 rm -f conftest.o conftest.s
27681 fi
27682 fi
27683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27684 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27685 if test $gcc_cv_as_micromips_support = yes; then
27686
27687 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27688
27689 fi
27690
27691
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27693 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27694 if ${gcc_cv_as_mips_dtprelword+:} false; then :
27695 $as_echo_n "(cached) " >&6
27696 else
27697 gcc_cv_as_mips_dtprelword=no
27698 if test $in_tree_gas = yes; then
27699 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27700 then gcc_cv_as_mips_dtprelword=yes
27701 fi
27702 elif test x$gcc_cv_as != x; then
27703 $as_echo '.section .tdata,"awT",@progbits
27704 x:
27705 .word 2
27706 .text
27707 .dtprelword x+0x8000' > conftest.s
27708 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27710 (eval $ac_try) 2>&5
27711 ac_status=$?
27712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27713 test $ac_status = 0; }; }
27714 then
27715 gcc_cv_as_mips_dtprelword=yes
27716 else
27717 echo "configure: failed program was" >&5
27718 cat conftest.s >&5
27719 fi
27720 rm -f conftest.o conftest.s
27721 fi
27722 fi
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27724 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27725 if test $gcc_cv_as_mips_dtprelword = yes; then
27726
27727 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27728
27729 fi
27730
27731
27732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27733 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27734 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27735 $as_echo_n "(cached) " >&6
27736 else
27737 gcc_cv_as_mips_dspr1_mult=no
27738 if test x$gcc_cv_as != x; then
27739 $as_echo ' .set mips32r2
27740 .set nodspr2
27741 .set dsp
27742 madd $ac3,$4,$5
27743 maddu $ac3,$4,$5
27744 msub $ac3,$4,$5
27745 msubu $ac3,$4,$5
27746 mult $ac3,$4,$5
27747 multu $ac3,$4,$5' > conftest.s
27748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27750 (eval $ac_try) 2>&5
27751 ac_status=$?
27752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27753 test $ac_status = 0; }; }
27754 then
27755 gcc_cv_as_mips_dspr1_mult=yes
27756 else
27757 echo "configure: failed program was" >&5
27758 cat conftest.s >&5
27759 fi
27760 rm -f conftest.o conftest.s
27761 fi
27762 fi
27763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27764 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27765 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27766
27767 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27768
27769 fi
27770
27771
27772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27773 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27774 gcc_cv_as_ld_jalr_reloc=no
27775 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27776 if test $in_tree_ld = yes ; then
27777 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 \
27778 && test $in_tree_ld_is_elf = yes; then
27779 gcc_cv_as_ld_jalr_reloc=yes
27780 fi
27781 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27782 echo ' .ent x' > conftest.s
27783 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27784 echo ' lw $25,%call16(y)($28)' >> conftest.s
27785 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27786 echo '1: jalr $25' >> conftest.s
27787 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27788 echo '1: jalr $25' >> conftest.s
27789 echo ' .end x' >> conftest.s
27790 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27791 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27792 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27793 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27794 gcc_cv_as_ld_jalr_reloc=yes
27795 fi
27796 fi
27797 rm -f conftest.*
27798 fi
27799 fi
27800 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27801 if test x$target_cpu_default = x; then
27802 target_cpu_default=MASK_RELAX_PIC_CALLS
27803 else
27804 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27805 fi
27806 fi
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27808 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27809
27810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27811 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27812 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27813 $as_echo_n "(cached) " >&6
27814 else
27815 gcc_cv_ld_mips_personality_relaxation=no
27816 if test $in_tree_ld = yes ; then
27817 if test "$gcc_cv_gld_major_version" -eq 2 \
27818 -a "$gcc_cv_gld_minor_version" -ge 21 \
27819 -o "$gcc_cv_gld_major_version" -gt 2; then
27820 gcc_cv_ld_mips_personality_relaxation=yes
27821 fi
27822 elif test x$gcc_cv_as != x \
27823 -a x$gcc_cv_ld != x \
27824 -a x$gcc_cv_readelf != x ; then
27825 cat > conftest.s <<EOF
27826 .cfi_startproc
27827 .cfi_personality 0x80,indirect_ptr
27828 .ent test
27829 test:
27830 nop
27831 .end test
27832 .cfi_endproc
27833
27834 .section .data,"aw",@progbits
27835 indirect_ptr:
27836 .dc.a personality
27837 EOF
27838 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27839 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27840 if $gcc_cv_readelf -d conftest 2>&1 \
27841 | grep TEXTREL > /dev/null 2>&1; then
27842 :
27843 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27844 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27845 :
27846 else
27847 gcc_cv_ld_mips_personality_relaxation=yes
27848 fi
27849 fi
27850 fi
27851 rm -f conftest.s conftest.o conftest
27852 fi
27853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27854 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27855 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27856
27857 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27858
27859 fi
27860
27861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27862 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27863 if ${gcc_cv_as_mips_nan+:} false; then :
27864 $as_echo_n "(cached) " >&6
27865 else
27866 gcc_cv_as_mips_nan=no
27867 if test x$gcc_cv_as != x; then
27868 $as_echo '' > conftest.s
27869 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27871 (eval $ac_try) 2>&5
27872 ac_status=$?
27873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27874 test $ac_status = 0; }; }
27875 then
27876 gcc_cv_as_mips_nan=yes
27877 else
27878 echo "configure: failed program was" >&5
27879 cat conftest.s >&5
27880 fi
27881 rm -f conftest.o conftest.s
27882 fi
27883 fi
27884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27885 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27886 if test $gcc_cv_as_mips_nan = yes; then
27887
27888 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27889
27890 fi
27891
27892 if test x$gcc_cv_as_mips_nan = xno \
27893 && test x$with_nan != x; then
27894 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27895 fi
27896 ;;
27897 msp430-*-*)
27898 # Earlier GAS versions generically support .gnu_attribute, but the
27899 # msp430 assembler will not do anything with it.
27900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27901 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27902 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
27903 $as_echo_n "(cached) " >&6
27904 else
27905 gcc_cv_as_msp430_gnu_attribute=no
27906 if test $in_tree_gas = yes; then
27907 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27908 then gcc_cv_as_msp430_gnu_attribute=yes
27909 fi
27910 elif test x$gcc_cv_as != x; then
27911 $as_echo '.gnu_attribute 4,1' > conftest.s
27912 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27914 (eval $ac_try) 2>&5
27915 ac_status=$?
27916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27917 test $ac_status = 0; }; }
27918 then
27919 gcc_cv_as_msp430_gnu_attribute=yes
27920 else
27921 echo "configure: failed program was" >&5
27922 cat conftest.s >&5
27923 fi
27924 rm -f conftest.o conftest.s
27925 fi
27926 fi
27927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
27928 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
27929 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
27930
27931 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27932
27933 fi
27934
27935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
27936 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
27937 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
27938 $as_echo_n "(cached) " >&6
27939 else
27940 gcc_cv_as_msp430_mspabi_attribute=no
27941 if test $in_tree_gas = yes; then
27942 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27943 then gcc_cv_as_msp430_mspabi_attribute=yes
27944 fi
27945 elif test x$gcc_cv_as != x; then
27946 $as_echo '.mspabi_attribute 4,1' > conftest.s
27947 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27949 (eval $ac_try) 2>&5
27950 ac_status=$?
27951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27952 test $ac_status = 0; }; }
27953 then
27954 gcc_cv_as_msp430_mspabi_attribute=yes
27955 else
27956 echo "configure: failed program was" >&5
27957 cat conftest.s >&5
27958 fi
27959 rm -f conftest.o conftest.s
27960 fi
27961 fi
27962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
27963 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
27964 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
27965
27966 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
27967
27968 fi
27969
27970 if test x$enable_newlib_nano_formatted_io = xyes; then
27971
27972 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
27973
27974 fi
27975 ;;
27976 riscv*-*-*)
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
27978 $as_echo_n "checking assembler for .attribute support... " >&6; }
27979 if ${gcc_cv_as_riscv_attribute+:} false; then :
27980 $as_echo_n "(cached) " >&6
27981 else
27982 gcc_cv_as_riscv_attribute=no
27983 if test $in_tree_gas = yes; then
27984 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
27985 then gcc_cv_as_riscv_attribute=yes
27986 fi
27987 elif test x$gcc_cv_as != x; then
27988 $as_echo '.attribute stack_align,4' > conftest.s
27989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27991 (eval $ac_try) 2>&5
27992 ac_status=$?
27993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27994 test $ac_status = 0; }; }
27995 then
27996 gcc_cv_as_riscv_attribute=yes
27997 else
27998 echo "configure: failed program was" >&5
27999 cat conftest.s >&5
28000 fi
28001 rm -f conftest.o conftest.s
28002 fi
28003 fi
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28005 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28006 if test $gcc_cv_as_riscv_attribute = yes; then
28007
28008 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28009
28010 fi
28011
28012 ;;
28013 s390*-*-*)
28014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28015 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28016 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28017 $as_echo_n "(cached) " >&6
28018 else
28019 gcc_cv_as_s390_gnu_attribute=no
28020 if test $in_tree_gas = yes; then
28021 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28022 then gcc_cv_as_s390_gnu_attribute=yes
28023 fi
28024 elif test x$gcc_cv_as != x; then
28025 $as_echo '.gnu_attribute 8,1' > conftest.s
28026 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28028 (eval $ac_try) 2>&5
28029 ac_status=$?
28030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28031 test $ac_status = 0; }; }
28032 then
28033 gcc_cv_as_s390_gnu_attribute=yes
28034 else
28035 echo "configure: failed program was" >&5
28036 cat conftest.s >&5
28037 fi
28038 rm -f conftest.o conftest.s
28039 fi
28040 fi
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28042 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28043 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28044
28045 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28046
28047 fi
28048
28049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28050 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28051 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28052 $as_echo_n "(cached) " >&6
28053 else
28054 gcc_cv_as_s390_machine_machinemode=no
28055 if test $in_tree_gas = yes; then
28056 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28057 then gcc_cv_as_s390_machine_machinemode=yes
28058 fi
28059 elif test x$gcc_cv_as != x; then
28060 $as_echo ' .machinemode push
28061 .machinemode pop
28062 .machine push
28063 .machine pop' > conftest.s
28064 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28066 (eval $ac_try) 2>&5
28067 ac_status=$?
28068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28069 test $ac_status = 0; }; }
28070 then
28071 gcc_cv_as_s390_machine_machinemode=yes
28072 else
28073 echo "configure: failed program was" >&5
28074 cat conftest.s >&5
28075 fi
28076 rm -f conftest.o conftest.s
28077 fi
28078 fi
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28080 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28081 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28082
28083 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28084
28085 fi
28086
28087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28088 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28089 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28090 $as_echo_n "(cached) " >&6
28091 else
28092 gcc_cv_as_s390_architecture_modifiers=no
28093 if test $in_tree_gas = yes; then
28094 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28095 then gcc_cv_as_s390_architecture_modifiers=yes
28096 fi
28097 elif test x$gcc_cv_as != x; then
28098 $as_echo ' .machine z13+vx ' > conftest.s
28099 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28101 (eval $ac_try) 2>&5
28102 ac_status=$?
28103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28104 test $ac_status = 0; }; }
28105 then
28106 gcc_cv_as_s390_architecture_modifiers=yes
28107 else
28108 echo "configure: failed program was" >&5
28109 cat conftest.s >&5
28110 fi
28111 rm -f conftest.o conftest.s
28112 fi
28113 fi
28114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28115 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28116 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28117
28118 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28119
28120 fi
28121
28122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28123 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28124 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28125 $as_echo_n "(cached) " >&6
28126 else
28127 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28128 if test $in_tree_gas = yes; then
28129 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28130 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28131 fi
28132 elif test x$gcc_cv_as != x; then
28133 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28134 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28136 (eval $ac_try) 2>&5
28137 ac_status=$?
28138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28139 test $ac_status = 0; }; }
28140 then
28141 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28142 else
28143 echo "configure: failed program was" >&5
28144 cat conftest.s >&5
28145 fi
28146 rm -f conftest.o conftest.s
28147 fi
28148 fi
28149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28150 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28151 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28152
28153 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28154
28155 fi
28156
28157
28158 ;;
28159 esac
28160
28161 # Mips and HP-UX need the GNU assembler.
28162 # Linux on IA64 might be able to use the Intel assembler.
28163
28164 case "$target" in
28165 mips*-*-* | *-*-hpux* )
28166 if test x$gas_flag = xyes \
28167 || test x"$host" != x"$build" \
28168 || test ! -x "$gcc_cv_as" \
28169 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28170 :
28171 else
28172 echo "*** This configuration requires the GNU assembler" >&2
28173 exit 1
28174 fi
28175 ;;
28176 esac
28177
28178 # ??? Not all targets support dwarf2 debug_line, even within a version
28179 # of gas. Moreover, we need to emit a valid instruction to trigger any
28180 # info to the output file. So, as supported targets are added to gas 2.11,
28181 # add some instruction here to (also) show we expect this might work.
28182 # ??? Once 2.11 is released, probably need to add first known working
28183 # version to the per-target configury.
28184 case "$cpu_type" in
28185 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28186 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28187 | tilegx | tilepro | visium | xstormy16 | xtensa)
28188 insn="nop"
28189 ;;
28190 ia64 | s390)
28191 insn="nop 0"
28192 ;;
28193 mmix)
28194 insn="swym 0"
28195 ;;
28196 esac
28197 if test x"$insn" != x; then
28198 conftest_s="\
28199 .file 1 \"conftest.s\"
28200 .loc 1 3 0
28201 $insn"
28202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28203 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28204 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
28205 $as_echo_n "(cached) " >&6
28206 else
28207 gcc_cv_as_dwarf2_debug_line=no
28208 if test $in_tree_gas = yes; then
28209 if test $in_tree_gas_is_elf = yes \
28210 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28211 then gcc_cv_as_dwarf2_debug_line=yes
28212 fi
28213 elif test x$gcc_cv_as != x; then
28214 $as_echo "$conftest_s" > conftest.s
28215 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28217 (eval $ac_try) 2>&5
28218 ac_status=$?
28219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28220 test $ac_status = 0; }; }
28221 then
28222 if test x$gcc_cv_objdump != x \
28223 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
28224 | grep debug_line > /dev/null 2>&1; then
28225 gcc_cv_as_dwarf2_debug_line=yes
28226 elif test x$gcc_cv_otool != x \
28227 && $gcc_cv_otool -l conftest.o 2> /dev/null \
28228 | grep debug_line > /dev/null 2>&1; then
28229 gcc_cv_as_dwarf2_debug_line=yes
28230 fi
28231 else
28232 echo "configure: failed program was" >&5
28233 cat conftest.s >&5
28234 fi
28235 rm -f conftest.o conftest.s
28236 fi
28237 fi
28238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28239 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28240
28241
28242
28243 # The .debug_line file table must be in the exact order that
28244 # we specified the files, since these indices are also used
28245 # by DW_AT_decl_file. Approximate this test by testing if
28246 # the assembler bitches if the same index is assigned twice.
28247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28248 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28249 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
28250 $as_echo_n "(cached) " >&6
28251 else
28252 gcc_cv_as_dwarf2_file_buggy=no
28253 if test x$gcc_cv_as != x; then
28254 $as_echo ' .file 1 "foo.s"
28255 .file 1 "bar.s"' > conftest.s
28256 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28258 (eval $ac_try) 2>&5
28259 ac_status=$?
28260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28261 test $ac_status = 0; }; }
28262 then
28263 gcc_cv_as_dwarf2_file_buggy=yes
28264 else
28265 echo "configure: failed program was" >&5
28266 cat conftest.s >&5
28267 fi
28268 rm -f conftest.o conftest.s
28269 fi
28270 fi
28271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28272 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28273
28274
28275
28276 if test $gcc_cv_as_dwarf2_debug_line = yes \
28277 && test $gcc_cv_as_dwarf2_file_buggy = no; then
28278
28279 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28280
28281
28282 if test $gcc_cv_as_leb128 = yes; then
28283 conftest_s="\
28284 .file 1 \"conftest.s\"
28285 .loc 1 3 0 view .LVU1
28286 $insn
28287 .data
28288 .uleb128 .LVU1
28289 .uleb128 .LVU1
28290 "
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28292 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28293 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
28294 $as_echo_n "(cached) " >&6
28295 else
28296 gcc_cv_as_dwarf2_debug_view=no
28297 if test $in_tree_gas = yes; then
28298 if test $in_tree_gas_is_elf = yes \
28299 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28300 then gcc_cv_as_dwarf2_debug_view=yes
28301 fi
28302 elif test x$gcc_cv_as != x; then
28303 $as_echo "$conftest_s" > conftest.s
28304 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28306 (eval $ac_try) 2>&5
28307 ac_status=$?
28308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28309 test $ac_status = 0; }; }
28310 then
28311 gcc_cv_as_dwarf2_debug_view=yes
28312 else
28313 echo "configure: failed program was" >&5
28314 cat conftest.s >&5
28315 fi
28316 rm -f conftest.o conftest.s
28317 fi
28318 fi
28319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28320 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28321 if test $gcc_cv_as_dwarf2_debug_view = yes; then
28322
28323 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28324
28325 fi
28326
28327 fi
28328 fi
28329
28330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28331 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28332 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
28333 $as_echo_n "(cached) " >&6
28334 else
28335 gcc_cv_as_gdwarf2_flag=no
28336 if test $in_tree_gas = yes; then
28337 if test $in_tree_gas_is_elf = yes \
28338 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28339 then gcc_cv_as_gdwarf2_flag=yes
28340 fi
28341 elif test x$gcc_cv_as != x; then
28342 $as_echo "$insn" > conftest.s
28343 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28345 (eval $ac_try) 2>&5
28346 ac_status=$?
28347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28348 test $ac_status = 0; }; }
28349 then
28350 gcc_cv_as_gdwarf2_flag=yes
28351 else
28352 echo "configure: failed program was" >&5
28353 cat conftest.s >&5
28354 fi
28355 rm -f conftest.o conftest.s
28356 fi
28357 fi
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28359 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28360 if test $gcc_cv_as_gdwarf2_flag = yes; then
28361
28362 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28363
28364 fi
28365
28366
28367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28368 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28369 if ${gcc_cv_as_gstabs_flag+:} false; then :
28370 $as_echo_n "(cached) " >&6
28371 else
28372 gcc_cv_as_gstabs_flag=no
28373 if test $in_tree_gas = yes; then
28374 if test $in_tree_gas_is_elf = yes \
28375 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28376 then gcc_cv_as_gstabs_flag=yes
28377 fi
28378 elif test x$gcc_cv_as != x; then
28379 $as_echo "$insn" > conftest.s
28380 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28382 (eval $ac_try) 2>&5
28383 ac_status=$?
28384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28385 test $ac_status = 0; }; }
28386 then
28387 gcc_cv_as_gstabs_flag=yes
28388 else
28389 echo "configure: failed program was" >&5
28390 cat conftest.s >&5
28391 fi
28392 rm -f conftest.o conftest.s
28393 fi
28394 fi
28395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28396 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28397 if test $gcc_cv_as_gstabs_flag = yes; then
28398
28399 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28400
28401 fi
28402
28403
28404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28405 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28406 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
28407 $as_echo_n "(cached) " >&6
28408 else
28409 gcc_cv_as_debug_prefix_map_flag=no
28410 if test $in_tree_gas = yes; then
28411 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28412 then gcc_cv_as_debug_prefix_map_flag=yes
28413 fi
28414 elif test x$gcc_cv_as != x; then
28415 $as_echo "$insn" > conftest.s
28416 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28418 (eval $ac_try) 2>&5
28419 ac_status=$?
28420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28421 test $ac_status = 0; }; }
28422 then
28423 gcc_cv_as_debug_prefix_map_flag=yes
28424 else
28425 echo "configure: failed program was" >&5
28426 cat conftest.s >&5
28427 fi
28428 rm -f conftest.o conftest.s
28429 fi
28430 fi
28431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28432 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28433 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28434
28435 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28436
28437 fi
28438
28439 fi
28440
28441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28442 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28443 if ${gcc_cv_as_compress_debug+:} false; then :
28444 $as_echo_n "(cached) " >&6
28445 else
28446 gcc_cv_as_compress_debug=no
28447 if test x$gcc_cv_as != x; then
28448 $as_echo '' > conftest.s
28449 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28451 (eval $ac_try) 2>&5
28452 ac_status=$?
28453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28454 test $ac_status = 0; }; }
28455 then
28456 # gas compiled without zlib cannot compress debug sections and warns
28457 # about it, but still exits successfully. So check for this, too.
28458 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28459 then
28460 gcc_cv_as_compress_debug=0
28461 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28462 # defaulting to the ELF gABI format.
28463 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28464 then
28465 gcc_cv_as_compress_debug=2
28466 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28467 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28468 # Before binutils 2.26, gas only supported --compress-debug-options and
28469 # emitted the traditional GNU format.
28470 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28471 then
28472 gcc_cv_as_compress_debug=1
28473 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28474 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28475 else
28476 gcc_cv_as_compress_debug=0
28477 fi
28478 else
28479 echo "configure: failed program was" >&5
28480 cat conftest.s >&5
28481 fi
28482 rm -f conftest.o conftest.s
28483 fi
28484 fi
28485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28486 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28487
28488
28489
28490 cat >>confdefs.h <<_ACEOF
28491 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28492 _ACEOF
28493
28494
28495 cat >>confdefs.h <<_ACEOF
28496 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28497 _ACEOF
28498
28499
28500 cat >>confdefs.h <<_ACEOF
28501 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28502 _ACEOF
28503
28504
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28506 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28507 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
28508 $as_echo_n "(cached) " >&6
28509 else
28510 gcc_cv_as_lcomm_with_alignment=no
28511 if test x$gcc_cv_as != x; then
28512 $as_echo '.lcomm bar,4,16' > conftest.s
28513 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28515 (eval $ac_try) 2>&5
28516 ac_status=$?
28517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28518 test $ac_status = 0; }; }
28519 then
28520 gcc_cv_as_lcomm_with_alignment=yes
28521 else
28522 echo "configure: failed program was" >&5
28523 cat conftest.s >&5
28524 fi
28525 rm -f conftest.o conftest.s
28526 fi
28527 fi
28528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28529 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28530 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28531
28532 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28533
28534 fi
28535
28536
28537 if test x$with_sysroot = x && test x$host = x$target \
28538 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28539 && test "$prefix" != "NONE"; then
28540
28541 cat >>confdefs.h <<_ACEOF
28542 #define PREFIX_INCLUDE_DIR "$prefix/include"
28543 _ACEOF
28544
28545 fi
28546
28547 # Determine the version of glibc, if any, used on the target.
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28549 $as_echo_n "checking for target glibc version... " >&6; }
28550
28551 # Check whether --with-glibc-version was given.
28552 if test "${with_glibc_version+set}" = set; then :
28553 withval=$with_glibc_version;
28554 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28555 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28556 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28557 else
28558 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28559 fi
28560 else
28561
28562 glibc_version_major=0
28563 glibc_version_minor=0
28564 if test -f $target_header_dir/features.h \
28565 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28566 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28567 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28568 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28569 fi
28570 fi
28571
28572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28573 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28574
28575 cat >>confdefs.h <<_ACEOF
28576 #define TARGET_GLIBC_MAJOR $glibc_version_major
28577 _ACEOF
28578
28579
28580 cat >>confdefs.h <<_ACEOF
28581 #define TARGET_GLIBC_MINOR $glibc_version_minor
28582 _ACEOF
28583
28584
28585 # Check whether --enable-gnu-unique-object was given.
28586 if test "${enable_gnu_unique_object+set}" = set; then :
28587 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28588 yes | no) ;;
28589 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28590 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28591 esac
28592 else
28593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28594 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28595 if ${gcc_cv_as_gnu_unique_object+:} false; then :
28596 $as_echo_n "(cached) " >&6
28597 else
28598 gcc_cv_as_gnu_unique_object=no
28599 if test $in_tree_gas = yes; then
28600 if test $in_tree_gas_is_elf = yes \
28601 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28602 then gcc_cv_as_gnu_unique_object=yes
28603 fi
28604 elif test x$gcc_cv_as != x; then
28605 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28606 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28608 (eval $ac_try) 2>&5
28609 ac_status=$?
28610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28611 test $ac_status = 0; }; }
28612 then
28613 gcc_cv_as_gnu_unique_object=yes
28614 else
28615 echo "configure: failed program was" >&5
28616 cat conftest.s >&5
28617 fi
28618 rm -f conftest.o conftest.s
28619 fi
28620 fi
28621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28622 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28623 if test $gcc_cv_as_gnu_unique_object = yes; then
28624 # We need to unquote above to to use the definition from config.gcc.
28625 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28626
28627 if test $glibc_version_major -gt 2 \
28628 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28629 enable_gnu_unique_object=yes
28630 fi
28631
28632 fi
28633
28634 fi
28635
28636 if test x$enable_gnu_unique_object = xyes; then
28637
28638 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28639
28640 fi
28641
28642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28643 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28644 if ${gcc_cv_as_line_zero+:} false; then :
28645 $as_echo_n "(cached) " >&6
28646 else
28647 gcc_cv_as_line_zero=no
28648 if test $in_tree_gas = yes; then
28649 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28650 then gcc_cv_as_line_zero=yes
28651 fi
28652 elif test "x$gcc_cv_as" != x; then
28653 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28654 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28656 (eval $ac_try) 2>&5
28657 ac_status=$?
28658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28659 test $ac_status = 0; }; } &&
28660 test "x`cat conftest.out`" = x
28661 then
28662 gcc_cv_as_line_zero=yes
28663 else
28664 echo "configure: failed program was" >&5
28665 cat conftest.s >&5
28666 echo "configure: error output was" >&5
28667 cat conftest.out >&5
28668 fi
28669 rm -f conftest.o conftest.s conftest.out
28670 fi
28671 fi
28672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28673 $as_echo "$gcc_cv_as_line_zero" >&6; }
28674 if test "x$gcc_cv_as_line_zero" = xyes; then
28675
28676 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28677
28678 fi
28679
28680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28681 $as_echo_n "checking support for thin archives... " >&6; }
28682 thin_archive_support=no
28683 echo 'int main (void) { return 0; }' > conftest.c
28684 if ($AR --version | sed 1q | grep "GNU ar" \
28685 && $CC $CFLAGS -c conftest.c \
28686 && $AR rcT conftest.a conftest.o \
28687 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28688 thin_archive_support=yes
28689 fi
28690 rm -f conftest.c conftest.o conftest.a conftest
28691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28692 $as_echo "$thin_archive_support" >&6; }
28693
28694
28695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28696 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28697 gcc_cv_ld_eh_frame_hdr=no
28698 if test $in_tree_ld = yes ; then
28699 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 \
28700 && test $in_tree_ld_is_elf = yes; then
28701 gcc_cv_ld_eh_frame_hdr=yes
28702 fi
28703 elif test x$gcc_cv_ld != x; then
28704 if echo "$ld_ver" | grep GNU > /dev/null; then
28705 # Check if linker supports --eh-frame-hdr option
28706 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28707 gcc_cv_ld_eh_frame_hdr=yes
28708 fi
28709 else
28710 case "$target" in
28711 *-*-solaris2*)
28712 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28713 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28714 gcc_cv_ld_eh_frame_hdr=yes
28715 fi
28716 ;;
28717 esac
28718 fi
28719 fi
28720
28721 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28722
28723 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28724
28725 fi
28726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28727 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28728
28729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28730 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28731 gcc_cv_ld_eh_frame_ciev3=no
28732 if test $in_tree_ld = yes ; then
28733 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 \
28734 && test $in_tree_ld_is_elf = yes; then
28735 gcc_cv_ld_eh_frame_ciev3=yes
28736 fi
28737 elif test x$gcc_cv_ld != x; then
28738 if echo "$ld_ver" | grep GNU > /dev/null; then
28739 gcc_cv_ld_eh_frame_ciev3=yes
28740 if test 0"$ld_date" -lt 20040513; then
28741 if test -n "$ld_date"; then
28742 # If there was date string, but was earlier than 2004-05-13, fail
28743 gcc_cv_ld_eh_frame_ciev3=no
28744 elif test "$ld_vers_major" -lt 2; then
28745 gcc_cv_ld_eh_frame_ciev3=no
28746 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28747 gcc_cv_ld_eh_frame_ciev3=no
28748 fi
28749 fi
28750 else
28751 case "$target" in
28752 *-*-solaris2*)
28753 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28754 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28755 gcc_cv_ld_eh_frame_ciev3=yes
28756 fi
28757 ;;
28758 esac
28759 fi
28760 fi
28761
28762 cat >>confdefs.h <<_ACEOF
28763 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28764 _ACEOF
28765
28766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28767 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28768
28769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28770 $as_echo_n "checking linker position independent executable support... " >&6; }
28771 gcc_cv_ld_pie=no
28772 if test $in_tree_ld = yes ; then
28773 case "$target" in
28774 # Full PIE support on Solaris was only introduced in gld 2.26.
28775 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28776 *) gcc_gld_pie_min_version=15 ;;
28777 esac
28778 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 \
28779 && test $in_tree_ld_is_elf = yes; then
28780 gcc_cv_ld_pie=yes
28781 fi
28782 elif test x$gcc_cv_ld != x; then
28783 # Check if linker supports -pie option
28784 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28785 gcc_cv_ld_pie=yes
28786 case "$target" in
28787 *-*-solaris2*)
28788 if echo "$ld_ver" | grep GNU > /dev/null \
28789 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28790 gcc_cv_ld_pie=no
28791 fi
28792 ;;
28793 esac
28794 else
28795 case "$target" in
28796 *-*-solaris2.1[1-9]*)
28797 # Solaris 11.3 added PIE support.
28798 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28799 gcc_cv_ld_pie=yes
28800 fi
28801 ;;
28802 esac
28803 fi
28804 fi
28805 if test x"$gcc_cv_ld_pie" = xyes; then
28806
28807 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28808
28809 fi
28810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28811 $as_echo "$gcc_cv_ld_pie" >&6; }
28812
28813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28814 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28815 gcc_cv_ld_pie_copyreloc=no
28816 if test $gcc_cv_ld_pie = yes ; then
28817 if test $in_tree_ld = yes ; then
28818 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
28819 gcc_cv_ld_pie_copyreloc=yes
28820 fi
28821 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28822 # Check if linker supports -pie option with copy reloc
28823 case "$target" in
28824 i?86-*-linux* | x86_64-*-linux*)
28825 cat > conftest1.s <<EOF
28826 .globl a_glob
28827 .data
28828 .type a_glob, @object
28829 .size a_glob, 4
28830 a_glob:
28831 .long 2
28832 EOF
28833 cat > conftest2.s <<EOF
28834 .text
28835 .globl main
28836 .type main, @function
28837 main:
28838 movl %eax, a_glob(%rip)
28839 .size main, .-main
28840 .globl ptr
28841 .section .data.rel,"aw",@progbits
28842 .type ptr, @object
28843 ptr:
28844 .quad a_glob
28845 EOF
28846 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28847 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28848 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28849 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28850 gcc_cv_ld_pie_copyreloc=yes
28851 fi
28852 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28853 ;;
28854 esac
28855 fi
28856 fi
28857
28858 cat >>confdefs.h <<_ACEOF
28859 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28860 _ACEOF
28861
28862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28863 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28864
28865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28866 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28867 gcc_cv_ld_eh_gc_sections=no
28868 if test $in_tree_ld = yes ; then
28869 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
28870 && test $in_tree_ld_is_elf = yes; then
28871 gcc_cv_ld_eh_gc_sections=yes
28872 fi
28873 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28874 cat > conftest.s <<EOF
28875 .section .text
28876 .globl _start
28877 .type _start, @function
28878 _start:
28879 .long foo
28880 .size _start, .-_start
28881 .section .text.foo,"ax",@progbits
28882 .type foo, @function
28883 foo:
28884 .long 0
28885 .size foo, .-foo
28886 .section .gcc_except_table.foo,"a",@progbits
28887 .L0:
28888 .long 0
28889 .section .eh_frame,"a",@progbits
28890 .long .L0
28891 EOF
28892 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28893 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28894 | grep "gc-sections option ignored" > /dev/null; then
28895 gcc_cv_ld_eh_gc_sections=no
28896 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28897 | grep gcc_except_table > /dev/null; then
28898 gcc_cv_ld_eh_gc_sections=yes
28899 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28900 if test x$gcc_cv_as_comdat_group != xyes; then
28901 gcc_cv_ld_eh_gc_sections=no
28902 cat > conftest.s <<EOF
28903 .section .text
28904 .globl _start
28905 .type _start, @function
28906 _start:
28907 .long foo
28908 .size _start, .-_start
28909 .section .gnu.linkonce.t.foo,"ax",@progbits
28910 .type foo, @function
28911 foo:
28912 .long 0
28913 .size foo, .-foo
28914 .section .gcc_except_table.foo,"a",@progbits
28915 .L0:
28916 .long 0
28917 .section .eh_frame,"a",@progbits
28918 .long .L0
28919 EOF
28920 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28921 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28922 | grep "gc-sections option ignored" > /dev/null; then
28923 gcc_cv_ld_eh_gc_sections=no
28924 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28925 | grep gcc_except_table > /dev/null; then
28926 gcc_cv_ld_eh_gc_sections=yes
28927 fi
28928 fi
28929 fi
28930 fi
28931 fi
28932 rm -f conftest.s conftest.o conftest
28933 fi
28934 case "$target" in
28935 hppa*-*-linux*)
28936 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28937 gcc_cv_ld_eh_gc_sections=no
28938 ;;
28939 esac
28940 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28941
28942 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28943
28944 fi
28945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28946 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28947
28948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28949 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28950 gcc_cv_ld_eh_gc_sections_bug=no
28951 if test $in_tree_ld = yes ; then
28952 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 \
28953 && test $in_tree_ld_is_elf = yes; then
28954 gcc_cv_ld_eh_gc_sections_bug=yes
28955 fi
28956 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
28957 gcc_cv_ld_eh_gc_sections_bug=yes
28958 cat > conftest.s <<EOF
28959 .section .text
28960 .globl _start
28961 .type _start, @function
28962 _start:
28963 .long foo
28964 .size _start, .-_start
28965 .section .text.startup.foo,"ax",@progbits
28966 .type foo, @function
28967 foo:
28968 .long 0
28969 .size foo, .-foo
28970 .section .gcc_except_table.foo,"a",@progbits
28971 .L0:
28972 .long 0
28973 .section .eh_frame,"a",@progbits
28974 .long .L0
28975 EOF
28976 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28977 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28978 | grep "gc-sections option ignored" > /dev/null; then
28979 :
28980 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28981 | grep gcc_except_table > /dev/null; then
28982 gcc_cv_ld_eh_gc_sections_bug=no
28983 fi
28984 fi
28985 rm -f conftest.s conftest.o conftest
28986 fi
28987 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28988
28989 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28990
28991 fi
28992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28993 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28994
28995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28996 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28997 # gold/gld support compressed debug sections since binutils 2.19/2.21
28998 # In binutils 2.26, gld gained support for the ELF gABI format.
28999 if test $in_tree_ld = yes ; then
29000 gcc_cv_ld_compress_debug=0
29001 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 \
29002 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
29003 gcc_cv_ld_compress_debug=2
29004 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29005 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 \
29006 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
29007 gcc_cv_ld_compress_debug=3
29008 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29009 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 \
29010 && test $in_tree_ld_is_elf = yes; then
29011 gcc_cv_ld_compress_debug=1
29012 fi
29013 elif echo "$ld_ver" | grep GNU > /dev/null; then
29014 if test "$ld_vers_major" -lt 2 \
29015 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
29016 gcc_cv_ld_compress_debug=0
29017 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29018 gcc_cv_ld_compress_debug=1
29019 else
29020 gcc_cv_ld_compress_debug=3
29021 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29022 fi
29023 if test $ld_is_gold = yes; then
29024 gcc_cv_ld_compress_debug=2
29025 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29026 fi
29027 else
29028 case "${target}" in
29029 *-*-solaris2*)
29030 # Introduced in Solaris 11.2.
29031 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
29032 gcc_cv_ld_compress_debug=3
29033 gcc_cv_ld_compress_debug_option="-z compress-sections"
29034 else
29035 gcc_cv_ld_compress_debug=0
29036 fi
29037 ;;
29038 *)
29039 # Assume linkers other than GNU ld don't support compessed debug
29040 # sections.
29041 gcc_cv_ld_compress_debug=0
29042 ;;
29043 esac
29044 fi
29045
29046 cat >>confdefs.h <<_ACEOF
29047 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
29048 _ACEOF
29049
29050
29051 cat >>confdefs.h <<_ACEOF
29052 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
29053 _ACEOF
29054
29055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
29056 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
29057
29058 if test x"$ld64_flag" = x"yes"; then
29059
29060 # Set defaults for possibly untestable items.
29061 gcc_cv_ld64_export_dynamic=0
29062
29063 if test "$build" = "$host"; then
29064 darwin_try_test=1
29065 else
29066 darwin_try_test=0
29067 fi
29068
29069 # On Darwin, because of FAT library support, it is often possible to execute
29070 # exes from compatible archs even when the host differs from the build system.
29071 case "$build","$host" in
29072 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
29073 darwin_try_test=1;;
29074 *) ;;
29075 esac
29076
29077 # If the configurer specified a minimum ld64 version to be supported, then use
29078 # that to determine feature support.
29079 if test x"${gcc_cv_ld64_version}" != x; then
29080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
29081 $as_echo_n "checking ld64 specified version... " >&6; }
29082 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
29083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
29084 $as_echo "$gcc_cv_ld64_major" >&6; }
29085 if test "$gcc_cv_ld64_major" -ge 236; then
29086 gcc_cv_ld64_export_dynamic=1
29087 fi
29088 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
29089 # If the version was not specified, try to find it.
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
29091 $as_echo_n "checking linker version... " >&6; }
29092 if test x"${gcc_cv_ld64_version}" = x; then
29093 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
29094 fi
29095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
29096 $as_echo "$gcc_cv_ld64_version" >&6; }
29097
29098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
29099 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
29100 gcc_cv_ld64_export_dynamic=1
29101 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
29102 gcc_cv_ld64_export_dynamic=0
29103 fi
29104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
29105 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
29106 fi
29107
29108 if test x"${gcc_cv_ld64_version}" != x; then
29109
29110 cat >>confdefs.h <<_ACEOF
29111 #define LD64_VERSION "${gcc_cv_ld64_version}"
29112 _ACEOF
29113
29114 fi
29115
29116
29117 cat >>confdefs.h <<_ACEOF
29118 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
29119 _ACEOF
29120
29121 fi
29122
29123 # --------
29124 # UNSORTED
29125 # --------
29126
29127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
29128 $as_echo_n "checking linker --as-needed support... " >&6; }
29129 if ${gcc_cv_ld_as_needed+:} false; then :
29130 $as_echo_n "(cached) " >&6
29131 else
29132 gcc_cv_ld_as_needed=no
29133 gcc_cv_ld_as_needed_option='--as-needed'
29134 gcc_cv_ld_no_as_needed_option='--no-as-needed'
29135 if test $in_tree_ld = yes ; then
29136 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 \
29137 && test $in_tree_ld_is_elf = yes; then
29138 gcc_cv_ld_as_needed=yes
29139 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
29140 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29141 gcc_cv_ld_no_as_needed_option='--pop-state'
29142 fi
29143 fi
29144 elif test x$gcc_cv_ld != x; then
29145 # Check if linker supports --as-needed and --no-as-needed options
29146 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
29147 gcc_cv_ld_as_needed=yes
29148 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
29149 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
29150 && echo "$ld_ver" | grep GNU > /dev/null \
29151 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
29152 # Use these options only when both ld.bfd and ld.gold support
29153 # --push-state/--pop-state, which unfortunately wasn't added
29154 # at the same time.
29155 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29156 gcc_cv_ld_no_as_needed_option='--pop-state'
29157 fi
29158 fi
29159 case "$target:$gnu_ld" in
29160 *-*-solaris2*:no)
29161 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
29162 # forms.
29163 gcc_cv_ld_as_needed=yes
29164 gcc_cv_ld_as_needed_option="-z ignore"
29165 gcc_cv_ld_no_as_needed_option="-z record"
29166 ;;
29167 esac
29168 fi
29169 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
29170 # dl_iterate_phdr, i.e. since Solaris 11.
29171 case "$target" in
29172 *-*-solaris2.1[1-9]*)
29173 case "$target" in
29174 i?86-*-* | x86_64-*-*)
29175 if echo "$ld_ver" | grep GNU > /dev/null; then
29176 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
29177 gcc_cv_ld_as_needed=no
29178 fi
29179 ;;
29180 esac
29181 ;;
29182 *-*-solaris2*)
29183 gcc_cv_ld_as_needed=no
29184 ;;
29185 esac
29186
29187 fi
29188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
29189 $as_echo "$gcc_cv_ld_as_needed" >&6; }
29190 if test x"$gcc_cv_ld_as_needed" = xyes; then
29191
29192 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
29193
29194
29195 cat >>confdefs.h <<_ACEOF
29196 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
29197 _ACEOF
29198
29199
29200 cat >>confdefs.h <<_ACEOF
29201 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
29202 _ACEOF
29203
29204 fi
29205
29206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
29207 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
29208 saved_LDFLAGS="$LDFLAGS"
29209 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
29210 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
29211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29212 /* end confdefs.h. */
29213 int main(void) {return 0;}
29214 _ACEOF
29215 if ac_fn_cxx_try_link "$LINENO"; then :
29216 gcc_cv_ld_clearcap=yes; break
29217 else
29218 gcc_cv_ld_clearcap=no
29219 fi
29220 rm -f core conftest.err conftest.$ac_objext \
29221 conftest$ac_exeext conftest.$ac_ext
29222 done
29223 LDFLAGS="$saved_LDFLAGS"
29224 if test "x$gcc_cv_ld_clearcap" = xyes; then
29225
29226 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29227
29228 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29229
29230 fi
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29232 $as_echo "$gcc_cv_ld_clearcap" >&6; }
29233
29234 case "$target" in
29235 powerpc*-*-*)
29236 case "$target" in
29237 *le-*-linux*)
29238 emul_name="-melf32lppc"
29239 ;;
29240 *)
29241 emul_name="-melf32ppc"
29242 ;;
29243 esac
29244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29245 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29246 if ${gcc_cv_ld_ppc_attr+:} false; then :
29247 $as_echo_n "(cached) " >&6
29248 else
29249 gcc_cv_ld_ppc_attr=no
29250 if test x"$ld_is_gold" = xyes; then
29251 gcc_cv_ld_ppc_attr=yes
29252 elif test $in_tree_ld = yes ; then
29253 if test "$gcc_cv_gld_major_version" -eq 2 \
29254 -a "$gcc_cv_gld_minor_version" -ge 28 \
29255 -o "$gcc_cv_gld_major_version" -gt 2; then
29256 gcc_cv_ld_ppc_attr=yes
29257 fi
29258 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29259 # check that merging the long double .gnu_attribute doesn't warn
29260 cat > conftest1.s <<EOF
29261 .gnu_attribute 4,1
29262 EOF
29263 cat > conftest2.s <<EOF
29264 .gnu_attribute 4,9
29265 EOF
29266 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29267 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29268 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
29269 && test ! -s conftest.err; then
29270 gcc_cv_ld_ppc_attr=yes
29271 fi
29272 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29273 fi
29274
29275 fi
29276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29277 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29278 if test x$gcc_cv_ld_ppc_attr = xyes; then
29279
29280 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29281
29282 fi
29283 ;;
29284 esac
29285
29286 case "$target:$tm_file" in
29287 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
29288 case "$target" in
29289 *le-*-linux*)
29290 emul_name="-melf64lppc"
29291 ;;
29292 *-*-linux*)
29293 emul_name="-melf64ppc"
29294 ;;
29295 *-*-freebsd*)
29296 emul_name="-melf64ppc_fbsd"
29297 ;;
29298 esac
29299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29300 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29301 if ${gcc_cv_ld_no_dot_syms+:} false; then :
29302 $as_echo_n "(cached) " >&6
29303 else
29304 gcc_cv_ld_no_dot_syms=no
29305 if test x"$ld_is_gold" = xyes; then
29306 gcc_cv_ld_no_dot_syms=yes
29307 elif test $in_tree_ld = yes ; then
29308 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
29309 gcc_cv_ld_no_dot_syms=yes
29310 fi
29311 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29312 cat > conftest1.s <<EOF
29313 .text
29314 bl .foo
29315 EOF
29316 cat > conftest2.s <<EOF
29317 .section ".opd","aw"
29318 .align 3
29319 .globl foo
29320 .type foo,@function
29321 foo:
29322 .quad .LEfoo,.TOC.@tocbase,0
29323 .text
29324 .LEfoo:
29325 blr
29326 .size foo,.-.LEfoo
29327 EOF
29328 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29329 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29330 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
29331 gcc_cv_ld_no_dot_syms=yes
29332 fi
29333 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29334 fi
29335
29336 fi
29337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29338 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29339 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
29340
29341 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29342
29343 fi
29344
29345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29346 $as_echo_n "checking linker large toc support... " >&6; }
29347 if ${gcc_cv_ld_large_toc+:} false; then :
29348 $as_echo_n "(cached) " >&6
29349 else
29350 gcc_cv_ld_large_toc=no
29351 if test x"$ld_is_gold" = xyes; then
29352 gcc_cv_ld_large_toc=yes
29353 elif test $in_tree_ld = yes ; then
29354 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
29355 gcc_cv_ld_large_toc=yes
29356 fi
29357 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29358 cat > conftest.s <<EOF
29359 .section ".tbss","awT",@nobits
29360 .align 3
29361 ie0: .space 8
29362 .global _start
29363 .text
29364 _start:
29365 addis 9,13,ie0@got@tprel@ha
29366 ld 9,ie0@got@tprel@l(9)
29367 EOF
29368 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29369 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
29370 gcc_cv_ld_large_toc=yes
29371 fi
29372 rm -f conftest conftest.o conftest.s
29373 fi
29374
29375 fi
29376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29377 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29378 if test x"$gcc_cv_ld_large_toc" = xyes; then
29379
29380 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29381
29382 fi
29383
29384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29385 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29386 if ${gcc_cv_ld_toc_align+:} false; then :
29387 $as_echo_n "(cached) " >&6
29388 else
29389 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
29390 cat > conftest.s <<EOF
29391 .global _start
29392 .text
29393 _start:
29394 addis 9,2,x@got@ha
29395 .section .data.rel.ro,"aw",@progbits
29396 .p2align 16
29397 .space 32768
29398 x: .quad .TOC.
29399 EOF
29400 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29401 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
29402 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)) }'`
29403 fi
29404 rm -f conftest conftest.o conftest.s
29405 fi
29406
29407 fi
29408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29409 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29410 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29411
29412 cat >>confdefs.h <<_ACEOF
29413 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29414 _ACEOF
29415
29416 fi
29417 ;;
29418 esac
29419
29420 case "$target" in
29421 *-*-aix*)
29422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29423 $as_echo_n "checking linker large toc support... " >&6; }
29424 if ${gcc_cv_ld_large_toc+:} false; then :
29425 $as_echo_n "(cached) " >&6
29426 else
29427 gcc_cv_ld_large_toc=no
29428 if test x$gcc_cv_as != x ; then
29429 cat > conftest.s <<EOF
29430 .toc
29431 LC..1:
29432 .tc a[TC],a[RW]
29433 .extern a[RW]
29434 .csect .text[PR]
29435 .largetoctest:
29436 addis 9,LC..1@u(2)
29437 ld 3,LC..1@l(9)
29438 EOF
29439 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29440 gcc_cv_ld_large_toc=yes
29441 fi
29442 rm -f conftest conftest.o conftest.s
29443 fi
29444
29445 fi
29446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29447 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29448 if test x"$gcc_cv_ld_large_toc" = xyes; then
29449
29450 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29451
29452 fi
29453 ;;
29454 esac
29455
29456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29457 $as_echo_n "checking linker --build-id support... " >&6; }
29458 if ${gcc_cv_ld_buildid+:} false; then :
29459 $as_echo_n "(cached) " >&6
29460 else
29461 gcc_cv_ld_buildid=no
29462 if test $in_tree_ld = yes ; then
29463 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29464 "$gcc_cv_gld_minor_version" -ge 18 -o \
29465 "$gcc_cv_gld_major_version" -gt 2 \
29466 && test $in_tree_ld_is_elf = yes; then
29467 gcc_cv_ld_buildid=yes
29468 fi
29469 elif test x$gcc_cv_ld != x; then
29470 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29471 gcc_cv_ld_buildid=yes
29472 fi
29473 fi
29474 fi
29475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29476 $as_echo "$gcc_cv_ld_buildid" >&6; }
29477 if test x"$gcc_cv_ld_buildid" = xyes; then
29478
29479 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29480
29481 fi
29482
29483 # Check whether --enable-linker-build-id was given.
29484 if test "${enable_linker_build_id+set}" = set; then :
29485 enableval=$enable_linker_build_id;
29486 else
29487 enable_linker_build_id=no
29488 fi
29489
29490
29491 if test x"$enable_linker_build_id" = xyes; then
29492 if test x"$gcc_cv_ld_buildid" = xyes; then
29493
29494 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29495
29496 else
29497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29498 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29499 fi
29500 fi
29501
29502 # In binutils 2.21, GNU ld gained support for new emulations fully
29503 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29505 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29506 if ${gcc_cv_ld_sol2_emulation+:} false; then :
29507 $as_echo_n "(cached) " >&6
29508 else
29509 gcc_cv_ld_sol2_emulation=no
29510 if test $in_tree_ld = yes ; then
29511 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29512 "$gcc_cv_gld_minor_version" -ge 21 -o \
29513 "$gcc_cv_gld_major_version" -gt 2 \
29514 && test $in_tree_ld_is_elf = yes; then
29515 gcc_cv_ld_sol2_emulation=yes
29516 fi
29517 elif test x$gcc_cv_ld != x; then
29518 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29519 grep _sol2 > /dev/null; then
29520 gcc_cv_ld_sol2_emulation=yes
29521 fi
29522 fi
29523 fi
29524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29525 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29526 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29527
29528 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29529
29530 fi
29531
29532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29533 $as_echo_n "checking linker --sysroot support... " >&6; }
29534 if ${gcc_cv_ld_sysroot+:} false; then :
29535 $as_echo_n "(cached) " >&6
29536 else
29537 gcc_cv_ld_sysroot=no
29538 if test $in_tree_ld = yes ; then
29539 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
29540 gcc_cv_ld_sysroot=yes
29541 fi
29542 elif test x$gcc_cv_ld != x; then
29543 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29544 gcc_cv_ld_sysroot=yes
29545 fi
29546 fi
29547 fi
29548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29549 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29550 if test x"$gcc_cv_ld_sysroot" = xyes; then
29551
29552 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29553
29554 fi
29555
29556 case $target in
29557 *-*-solaris2*)
29558 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29560 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29561 if ${gcc_cv_solaris_crts+:} false; then :
29562 $as_echo_n "(cached) " >&6
29563 else
29564 gcc_cv_solaris_crts=no
29565 if test x$host != x$target; then
29566 if test "x$with_sysroot" = xyes; then
29567 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29568 else
29569 target_sysroot="${with_sysroot}"
29570 fi
29571 fi
29572 target_libdir="$target_sysroot/usr/lib"
29573 # At the time they were added, gcrt1.o became a symlink for backwards
29574 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29575 case $target in
29576 i?86-*-solaris2* | x86_64-*-solaris2*)
29577 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29578 ;;
29579 sparc*-*-solaris2*)
29580 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29581 ;;
29582 esac
29583 fi
29584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29585 $as_echo "$gcc_cv_solaris_crts" >&6; }
29586 ;;
29587 esac
29588 if test x$gcc_cv_solaris_crts = xyes; then
29589
29590 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29591
29592 fi
29593
29594 # Check whether --enable-libssp was given.
29595 if test "${enable_libssp+set}" = set; then :
29596 enableval=$enable_libssp; case "${enableval}" in
29597 yes|no)
29598 ;;
29599 *)
29600 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
29601 ;;
29602 esac
29603 fi
29604
29605
29606 # Test for stack protector support in target C library.
29607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29608 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29609 if ${gcc_cv_libc_provides_ssp+:} false; then :
29610 $as_echo_n "(cached) " >&6
29611 else
29612 gcc_cv_libc_provides_ssp=no
29613 if test "x$enable_libssp" = "xno"; then
29614 gcc_cv_libc_provides_ssp=yes
29615 elif test "x$enable_libssp" = "xyes"; then
29616 gcc_cv_libc_provides_ssp=no
29617 else
29618 case "$target" in
29619 *-*-musl*)
29620 # All versions of musl provide stack protector
29621 gcc_cv_libc_provides_ssp=yes;;
29622 *-*-linux* | *-*-kfreebsd*-gnu)
29623 # glibc 2.4 and later provides __stack_chk_fail and
29624 # either __stack_chk_guard, or TLS access to stack guard canary.
29625
29626 if test $glibc_version_major -gt 2 \
29627 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29628 gcc_cv_libc_provides_ssp=yes
29629 else
29630
29631 if test -f $target_header_dir/features.h \
29632 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29633 $target_header_dir/features.h > /dev/null; then
29634 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29635 $target_header_dir/features.h > /dev/null && \
29636 test -f $target_header_dir/bits/uClibc_config.h && \
29637 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29638 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29639 gcc_cv_libc_provides_ssp=yes
29640 fi
29641 # all versions of Bionic support stack protector
29642 elif test -f $target_header_dir/sys/cdefs.h \
29643 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29644 $target_header_dir/sys/cdefs.h > /dev/null; then
29645 gcc_cv_libc_provides_ssp=yes
29646 fi
29647 fi
29648 ;;
29649 *-*-gnu*)
29650 # Avoid complicated tests (see
29651 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29652 # simply assert that glibc does provide this, which is true for all
29653 # realistically usable GNU/Hurd configurations.
29654 # All supported versions of musl provide it as well
29655 gcc_cv_libc_provides_ssp=yes;;
29656 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29657 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29658 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
29659 gcc_cv_libc_provides_ssp=yes
29660 else
29661 echo "no __stack_chk_fail on this target"
29662 fi
29663
29664 ;;
29665 *) gcc_cv_libc_provides_ssp=no ;;
29666 esac
29667 fi
29668 fi
29669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29670 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29671
29672 if test x$gcc_cv_libc_provides_ssp = xyes; then
29673
29674 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29675
29676 fi
29677
29678 # Check whether --enable-default-ssp was given.
29679 # Check whether --enable-default-ssp was given.
29680 if test "${enable_default_ssp+set}" = set; then :
29681 enableval=$enable_default_ssp;
29682 if test x$gcc_cv_libc_provides_ssp = xyes; then
29683 case "$target" in
29684 ia64*-*-*) enable_default_ssp=no ;;
29685 *) enable_default_ssp=$enableval ;;
29686 esac
29687 else
29688 enable_default_ssp=no
29689 fi
29690 else
29691 enable_default_ssp=no
29692 fi
29693
29694 if test x$enable_default_ssp = xyes ; then
29695
29696 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29697
29698 fi
29699
29700
29701 # Test for <sys/sdt.h> on the target.
29702
29703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29704 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29705 have_sys_sdt_h=no
29706 if test -f $target_header_dir/sys/sdt.h; then
29707 have_sys_sdt_h=yes
29708
29709 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29710
29711 fi
29712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29713 $as_echo "$have_sys_sdt_h" >&6; }
29714
29715 # Check if TFmode long double should be used by default or not.
29716 # Some glibc targets used DFmode long double, but with glibc 2.4
29717 # and later they can use TFmode.
29718 case "$target" in
29719 powerpc*-*-linux* | \
29720 sparc*-*-linux* | \
29721 s390*-*-linux* | \
29722 alpha*-*-linux*)
29723
29724 # Check whether --with-long-double-128 was given.
29725 if test "${with_long_double_128+set}" = set; then :
29726 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29727 else
29728
29729 case "$target" in
29730 s390*-*-linux-musl*)
29731 gcc_cv_target_ldbl128=yes
29732 ;;
29733 powerpc*-*-linux-musl*)
29734 gcc_cv_target_ldbl128=no
29735 ;;
29736 *)
29737
29738 if test $glibc_version_major -gt 2 \
29739 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29740 gcc_cv_target_ldbl128=yes
29741 else
29742
29743 gcc_cv_target_ldbl128=no
29744 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29745 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29746 && gcc_cv_target_ldbl128=yes
29747
29748 fi
29749
29750 ;;
29751 esac
29752
29753 fi
29754
29755 ;;
29756 esac
29757 if test x$gcc_cv_target_ldbl128 = xyes; then
29758
29759 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29760
29761 fi
29762
29763 # Check if TFmode long double target should use the IBM extended double or IEEE
29764 # 128-bit floating point formats if long doubles are 128-bits long. The long
29765 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29766 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29767 # libgcc.
29768
29769 # Check whether --with-long-double-format was given.
29770 if test "${with_long_double_format+set}" = set; then :
29771 withval=$with_long_double_format;
29772 case "$target:$with_long_double_format" in
29773 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29774 :
29775 ;;
29776 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29777 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29778 case "$with_cpu" in
29779 power7 | power8 | power9 | power1*)
29780 :
29781 ;;
29782 *)
29783 as_fn_error $? "Configuration option --with-long-double-format is only \
29784 supported if the default cpu is power7 or newer" "$LINENO" 5
29785 with_long_double_format=""
29786 ;;
29787 esac
29788 ;;
29789 xpowerpc64*-*-linux*:*)
29790 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29791 with_long_double_format=""
29792 ;;
29793 *)
29794 as_fn_error $? "Configure option --with-long-double-format is only supported \
29795 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29796 with_long_double_format=""
29797 ;;
29798 esac
29799 fi
29800
29801
29802 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29803 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29804 gcc_cv_libc_provides_hwcap_in_tcb=no
29805 case "$target" in
29806 powerpc*-*-linux*)
29807
29808 if test $glibc_version_major -gt 2 \
29809 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29810 gcc_cv_libc_provides_hwcap_in_tcb=yes
29811 fi
29812 ;;
29813 esac
29814 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29815
29816 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29817
29818 fi
29819
29820 # Check if the target LIBC handles PT_GNU_STACK.
29821 gcc_cv_libc_gnustack=unknown
29822 case "$target" in
29823 mips*-*-linux*)
29824
29825 if test $glibc_version_major -gt 2 \
29826 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
29827 gcc_cv_libc_gnustack=yes
29828 fi
29829 ;;
29830 esac
29831 if test x$gcc_cv_libc_gnustack = xyes; then
29832
29833 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
29834
29835 fi
29836
29837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29838 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29839 gcc_cv_target_dl_iterate_phdr=unknown
29840 case "$target" in
29841 *-*-solaris2*)
29842 # <link.h> needs both a dl_iterate_phdr declaration and support for
29843 # compilation with largefile support.
29844 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29845 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29846 gcc_cv_target_dl_iterate_phdr=yes
29847 else
29848 gcc_cv_target_dl_iterate_phdr=no
29849 fi
29850 ;;
29851 *-*-dragonfly* | *-*-freebsd*)
29852 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29853 gcc_cv_target_dl_iterate_phdr=yes
29854 else
29855 gcc_cv_target_dl_iterate_phdr=no
29856 fi
29857 ;;
29858 *-linux-musl*)
29859 gcc_cv_target_dl_iterate_phdr=yes
29860 ;;
29861 esac
29862
29863 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29864
29865 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29866
29867 fi
29868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29869 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29870
29871 # We no longer support different GC mechanisms. Emit an error if
29872 # the user configures with --with-gc.
29873
29874 # Check whether --with-gc was given.
29875 if test "${with_gc+set}" = set; then :
29876 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29877 fi
29878
29879
29880 # Libraries to use on the host. This will normally be set by the top
29881 # level Makefile. Here we simply capture the value for our Makefile.
29882 if test -z "${HOST_LIBS+set}"; then
29883 HOST_LIBS=
29884 fi
29885
29886
29887 # Use the system's zlib library.
29888
29889 # Use the system's zlib library.
29890 zlibdir="-L\$(top_builddir)/../zlib"
29891 zlibinc="-I\$(top_srcdir)/../zlib"
29892
29893 # Check whether --with-system-zlib was given.
29894 if test "${with_system_zlib+set}" = set; then :
29895 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29896 zlibdir=
29897 zlibinc=
29898 fi
29899
29900 fi
29901
29902
29903
29904
29905
29906
29907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29908 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29909 # Check whether --enable-maintainer-mode was given.
29910 if test "${enable_maintainer_mode+set}" = set; then :
29911 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29912 else
29913 maintainer_mode=no
29914 fi
29915
29916
29917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29918 $as_echo "$maintainer_mode" >&6; }
29919
29920 if test "$maintainer_mode" = "yes"; then
29921 MAINT=''
29922 else
29923 MAINT='#'
29924 fi
29925
29926
29927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29928 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29929 # Check whether --enable-link-mutex was given.
29930 if test "${enable_link_mutex+set}" = set; then :
29931 enableval=$enable_link_mutex; do_link_mutex=$enableval
29932 else
29933 do_link_mutex=no
29934 fi
29935
29936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29937 $as_echo "$do_link_mutex" >&6; }
29938
29939 if test "$do_link_mutex" = "yes"; then
29940 DO_LINK_MUTEX=true
29941 else
29942 DO_LINK_MUTEX=false
29943 fi
29944
29945
29946 # --------------
29947 # Language hooks
29948 # --------------
29949
29950 # Make empty files to contain the specs and options for each language.
29951 # Then add #include lines to for a compiler that has specs and/or options.
29952
29953 subdirs=
29954 lang_opt_files=
29955 lang_specs_files=
29956 lang_tree_files=
29957 # These (without "all_") are set in each config-lang.in.
29958 # `language' must be a single word so is spelled singularly.
29959 all_languages=
29960 all_compilers=
29961 all_outputs='Makefile'
29962 # List of language configure and makefile fragments.
29963 all_lang_configurefrags=
29964 all_lang_makefrags=
29965 # Additional files for gengtype
29966 all_gtfiles="$target_gtfiles"
29967
29968 # These are the languages that are set in --enable-languages,
29969 # and are available in the GCC tree.
29970 all_selected_languages=
29971
29972 # Add the language fragments.
29973 # Languages are added via two mechanisms. Some information must be
29974 # recorded in makefile variables, these are defined in config-lang.in.
29975 # We accumulate them and plug them into the main Makefile.
29976 # The other mechanism is a set of hooks for each of the main targets
29977 # like `clean', `install', etc.
29978
29979 language_hooks="Make-hooks"
29980
29981 for lang in ${srcdir}/*/config-lang.in
29982 do
29983 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29984
29985 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29986 if test "x$lang_alias" = x
29987 then
29988 echo "$lang doesn't set \$language." 1>&2
29989 exit 1
29990 fi
29991 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29992 subdirs="$subdirs $subdir"
29993
29994 # $gcc_subdir is where the gcc integration files are to be found
29995 # for a language, both for internal compiler purposes (compiler
29996 # sources implementing front-end to GCC tree converters), and for
29997 # build infrastructure purposes (Make-lang.in, etc.)
29998 #
29999 # This will be <subdir> (relative to $srcdir) if a line like
30000 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
30001 # is found in <langdir>/config-lang.in, and will remain <langdir>
30002 # otherwise.
30003 #
30004 # Except for the language alias (fetched above), the regular
30005 # "config-lang.in" contents are always retrieved from $gcc_subdir,
30006 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
30007 # only this and the language alias.
30008
30009 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
30010 if [ "$gcc_subdir" = "" ]; then
30011 gcc_subdir="$subdir"
30012 fi
30013
30014 case ",$enable_languages," in
30015 *,$lang_alias,*)
30016 all_selected_languages="$all_selected_languages $lang_alias"
30017 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
30018 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
30019 fi
30020 ;;
30021 esac
30022
30023 language=
30024 boot_language=
30025 compilers=
30026 outputs=
30027 gtfiles=
30028 subdir_requires=
30029 . ${srcdir}/$gcc_subdir/config-lang.in
30030 if test "x$language" = x
30031 then
30032 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
30033 exit 1
30034 fi
30035
30036 ok=:
30037 case ",$enable_languages," in
30038 *,$lang_alias,*) ;;
30039 *)
30040 for i in $subdir_requires; do
30041 test -f "${srcdir}/$i/config-lang.in" && continue
30042 ok=false
30043 break
30044 done
30045 ;;
30046 esac
30047 $ok || continue
30048
30049 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
30050 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
30051 if test -f $srcdir/$gcc_subdir/lang.opt; then
30052 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
30053 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
30054 fi
30055 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
30056 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
30057 fi
30058 all_languages="$all_languages $language"
30059 all_compilers="$all_compilers $compilers"
30060 all_outputs="$all_outputs $outputs"
30061 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
30062 case ",$enable_languages," in
30063 *,lto,*)
30064
30065 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
30066
30067 enable_lto=yes
30068
30069 ;;
30070 *) ;;
30071 esac
30072 done
30073
30074 check_languages=
30075 for language in $all_selected_languages
30076 do
30077 check_languages="$check_languages check-$language"
30078 done
30079
30080 selftest_languages=
30081 for language in $all_selected_languages
30082 do
30083 selftest_languages="$selftest_languages selftest-$language"
30084 done
30085
30086 # We link each language in with a set of hooks, reached indirectly via
30087 # lang.${target}. Only do so for selected languages.
30088
30089 rm -f Make-hooks
30090 touch Make-hooks
30091 target_list="all.cross start.encap rest.encap tags \
30092 install-common install-man install-info install-pdf install-html dvi \
30093 pdf html uninstall info man srcextra srcman srcinfo \
30094 mostlyclean clean distclean maintainer-clean install-plugin"
30095
30096 for t in $target_list
30097 do
30098 x=
30099 for lang in $all_selected_languages
30100 do
30101 x="$x $lang.$t"
30102 done
30103 echo "lang.$t: $x" >> Make-hooks
30104 done
30105
30106 # --------
30107 # Option include files
30108 # --------
30109
30110 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
30111 option_includes="option-includes.mk"
30112
30113
30114 # --------
30115 # UNSORTED
30116 # --------
30117
30118 # Create .gdbinit.
30119
30120 echo "dir ." > .gdbinit
30121 echo "dir ${srcdir}" >> .gdbinit
30122 if test x$gdb_needs_out_file_path = xyes
30123 then
30124 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
30125 fi
30126 if test "x$subdirs" != x; then
30127 for s in $subdirs
30128 do
30129 echo "dir ${srcdir}/$s" >> .gdbinit
30130 done
30131 fi
30132 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
30133 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
30134
30135 # Put a breakpoint on __asan_report_error to help with debugging buffer
30136 # overflow.
30137 case "$CFLAGS" in
30138 *-fsanitize=address*)
30139 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
30140 ;;
30141 esac
30142
30143 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
30144
30145
30146
30147 # Find a directory in which to install a shared libgcc.
30148
30149 # Check whether --enable-version-specific-runtime-libs was given.
30150 if test "${enable_version_specific_runtime_libs+set}" = set; then :
30151 enableval=$enable_version_specific_runtime_libs;
30152 fi
30153
30154
30155 # Substitute configuration variables
30156
30157
30158
30159
30160
30161
30162
30163
30164
30165
30166
30167
30168
30169
30170
30171
30172
30173
30174
30175
30176
30177
30178
30179
30180
30181
30182
30183
30184
30185
30186
30187
30188
30189
30190
30191
30192
30193
30194
30195
30196
30197
30198
30199
30200
30201
30202
30203
30204
30205
30206
30207
30208
30209
30210
30211
30212
30213
30214
30215
30216
30217
30218
30219
30220
30221
30222
30223 # Echo link setup.
30224 if test x${build} = x${host} ; then
30225 if test x${host} = x${target} ; then
30226 echo "Links are now set up to build a native compiler for ${target}." 1>&2
30227 else
30228 echo "Links are now set up to build a cross-compiler" 1>&2
30229 echo " from ${host} to ${target}." 1>&2
30230 fi
30231 else
30232 if test x${host} = x${target} ; then
30233 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
30234 echo " for ${target}." 1>&2
30235 else
30236 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
30237 echo " from ${host} to ${target}." 1>&2
30238 fi
30239 fi
30240
30241
30242
30243
30244
30245
30246 if test "x${ISLLIBS}" != "x" ; then
30247
30248 $as_echo "#define HAVE_isl 1" >>confdefs.h
30249
30250 fi
30251
30252 # Check for plugin support
30253 # Check whether --enable-plugin was given.
30254 if test "${enable_plugin+set}" = set; then :
30255 enableval=$enable_plugin; enable_plugin=$enableval
30256 else
30257 enable_plugin=yes; default_plugin=yes
30258 fi
30259
30260
30261 pluginlibs=
30262 plugin_check=yes
30263
30264 case "${host}" in
30265 *-*-mingw*)
30266 # Since plugin support under MinGW is not as straightforward as on
30267 # other platforms (e.g., we have to link import library, etc), we
30268 # only enable it if explicitly requested.
30269 if test x"$default_plugin" = x"yes"; then
30270 enable_plugin=no
30271 elif test x"$enable_plugin" = x"yes"; then
30272 # Use make's target variable to derive import library name.
30273 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30274 plugin_check=no
30275 fi
30276 ;;
30277 *-*-darwin*)
30278 if test x$build = x$host; then
30279 export_sym_check="nm${exeext} -g"
30280 elif test x$host = x$target; then
30281 export_sym_check="$gcc_cv_nm -g"
30282 else
30283 export_sym_check=
30284 fi
30285 ;;
30286 *)
30287 if test x$build = x$host; then
30288 export_sym_check="objdump${exeext} -T"
30289 elif test x$host = x$target; then
30290 export_sym_check="$gcc_cv_objdump -T"
30291 else
30292 export_sym_check=
30293 fi
30294 ;;
30295 esac
30296
30297 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
30298
30299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30300 $as_echo_n "checking for exported symbols... " >&6; }
30301 if test "x$export_sym_check" != x; then
30302 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30303 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30304 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30305 : # No need to use a flag
30306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30307 $as_echo "yes" >&6; }
30308 else
30309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30310 $as_echo "yes" >&6; }
30311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30312 $as_echo_n "checking for -rdynamic... " >&6; }
30313 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30314 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30315 plugin_rdynamic=yes
30316 pluginlibs="-rdynamic"
30317 else
30318 plugin_rdynamic=no
30319 enable_plugin=no
30320 fi
30321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30322 $as_echo "$plugin_rdynamic" >&6; }
30323 fi
30324 else
30325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30326 $as_echo "unable to check" >&6; }
30327 fi
30328
30329 # Check -ldl
30330 saved_LIBS="$LIBS"
30331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30332 $as_echo_n "checking for library containing dlopen... " >&6; }
30333 if ${ac_cv_search_dlopen+:} false; then :
30334 $as_echo_n "(cached) " >&6
30335 else
30336 ac_func_search_save_LIBS=$LIBS
30337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30338 /* end confdefs.h. */
30339
30340 /* Override any GCC internal prototype to avoid an error.
30341 Use char because int might match the return type of a GCC
30342 builtin and then its argument prototype would still apply. */
30343 #ifdef __cplusplus
30344 extern "C"
30345 #endif
30346 char dlopen ();
30347 int
30348 main ()
30349 {
30350 return dlopen ();
30351 ;
30352 return 0;
30353 }
30354 _ACEOF
30355 for ac_lib in '' dl; do
30356 if test -z "$ac_lib"; then
30357 ac_res="none required"
30358 else
30359 ac_res=-l$ac_lib
30360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30361 fi
30362 if ac_fn_cxx_try_link "$LINENO"; then :
30363 ac_cv_search_dlopen=$ac_res
30364 fi
30365 rm -f core conftest.err conftest.$ac_objext \
30366 conftest$ac_exeext
30367 if ${ac_cv_search_dlopen+:} false; then :
30368 break
30369 fi
30370 done
30371 if ${ac_cv_search_dlopen+:} false; then :
30372
30373 else
30374 ac_cv_search_dlopen=no
30375 fi
30376 rm conftest.$ac_ext
30377 LIBS=$ac_func_search_save_LIBS
30378 fi
30379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30380 $as_echo "$ac_cv_search_dlopen" >&6; }
30381 ac_res=$ac_cv_search_dlopen
30382 if test "$ac_res" != no; then :
30383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30384
30385 fi
30386
30387 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
30388 pluginlibs="$pluginlibs -ldl"
30389 fi
30390 LIBS="$saved_LIBS"
30391
30392 # Check that we can build shared objects with -fPIC -shared
30393 saved_LDFLAGS="$LDFLAGS"
30394 saved_CFLAGS="$CFLAGS"
30395 case "${host}" in
30396 *-*-darwin*)
30397 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30398 CFLAGS="$CFLAGS -fPIC"
30399 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
30400 ;;
30401 *)
30402 CFLAGS="$CFLAGS -fPIC"
30403 LDFLAGS="$LDFLAGS -fPIC -shared"
30404 ;;
30405 esac
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30407 $as_echo_n "checking for -fPIC -shared... " >&6; }
30408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30409 /* end confdefs.h. */
30410 extern int X;
30411 int
30412 main ()
30413 {
30414 return X == 0;
30415 ;
30416 return 0;
30417 }
30418 _ACEOF
30419 if ac_fn_cxx_try_link "$LINENO"; then :
30420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30421 $as_echo "yes" >&6; }; have_pic_shared=yes
30422 else
30423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30424 $as_echo "no" >&6; }; have_pic_shared=no
30425 fi
30426 rm -f core conftest.err conftest.$ac_objext \
30427 conftest$ac_exeext conftest.$ac_ext
30428 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
30429 pluginlibs=
30430 enable_plugin=no
30431 fi
30432 LDFLAGS="$saved_LDFLAGS"
30433 CFLAGS="$saved_CFLAGS"
30434
30435 # If plugin support had been requested but not available, fail.
30436 if test x"$enable_plugin" = x"no" ; then
30437 if test x"$default_plugin" != x"yes"; then
30438 as_fn_error $? "
30439 Building GCC with plugin support requires a host that supports
30440 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30441 fi
30442 fi
30443 fi
30444
30445
30446
30447 if test x"$enable_plugin" = x"yes"; then
30448
30449 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30450
30451 fi
30452
30453
30454 # Enable --enable-host-shared
30455 # Check whether --enable-host-shared was given.
30456 if test "${enable_host_shared+set}" = set; then :
30457 enableval=$enable_host_shared; PICFLAG=-fPIC
30458 else
30459 PICFLAG=
30460 fi
30461
30462
30463
30464
30465
30466 # Check whether --enable-libquadmath-support was given.
30467 if test "${enable_libquadmath_support+set}" = set; then :
30468 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30469 else
30470 ENABLE_LIBQUADMATH_SUPPORT=yes
30471 fi
30472
30473 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30474
30475 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30476
30477 fi
30478
30479
30480 # Specify what hash style to use by default.
30481
30482 # Check whether --with-linker-hash-style was given.
30483 if test "${with_linker_hash_style+set}" = set; then :
30484 withval=$with_linker_hash_style; case x"$withval" in
30485 xsysv)
30486 LINKER_HASH_STYLE=sysv
30487 ;;
30488 xgnu)
30489 LINKER_HASH_STYLE=gnu
30490 ;;
30491 xboth)
30492 LINKER_HASH_STYLE=both
30493 ;;
30494 *)
30495 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30496 ;;
30497 esac
30498 else
30499 LINKER_HASH_STYLE=''
30500 fi
30501
30502 if test x"${LINKER_HASH_STYLE}" != x; then
30503
30504 cat >>confdefs.h <<_ACEOF
30505 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30506 _ACEOF
30507
30508 fi
30509
30510 # Specify what should be the default of -fdiagnostics-color option.
30511
30512 # Check whether --with-diagnostics-color was given.
30513 if test "${with_diagnostics_color+set}" = set; then :
30514 withval=$with_diagnostics_color; case x"$withval" in
30515 xnever)
30516 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30517 ;;
30518 xauto)
30519 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30520 ;;
30521 xauto-if-env)
30522 DIAGNOSTICS_COLOR_DEFAULT=-1
30523 ;;
30524 xalways)
30525 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30526 ;;
30527 *)
30528 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30529 ;;
30530 esac
30531 else
30532 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30533 fi
30534
30535
30536 cat >>confdefs.h <<_ACEOF
30537 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30538 _ACEOF
30539
30540
30541 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30542 # of jit/jit-playback.c.
30543 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30544 echo "gcc_driver_version: ${gcc_driver_version}"
30545 cat > gcc-driver-name.h <<EOF
30546 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30547 EOF
30548
30549 # Check whether --enable-default-pie was given.
30550 # Check whether --enable-default-pie was given.
30551 if test "${enable_default_pie+set}" = set; then :
30552 enableval=$enable_default_pie; enable_default_pie=$enableval
30553 else
30554 enable_default_pie=no
30555 fi
30556
30557 if test x$enable_default_pie = xyes ; then
30558
30559 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30560
30561 fi
30562
30563
30564 # Check if -fno-PIE works.
30565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30566 $as_echo_n "checking for -fno-PIE option... " >&6; }
30567 if ${gcc_cv_c_no_fpie+:} false; then :
30568 $as_echo_n "(cached) " >&6
30569 else
30570 saved_CXXFLAGS="$CXXFLAGS"
30571 CXXFLAGS="$CXXFLAGS -fno-PIE"
30572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30573 /* end confdefs.h. */
30574 int main(void) {return 0;}
30575 _ACEOF
30576 if ac_fn_cxx_try_compile "$LINENO"; then :
30577 gcc_cv_c_no_fpie=yes
30578 else
30579 gcc_cv_c_no_fpie=no
30580 fi
30581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30582 CXXFLAGS="$saved_CXXFLAGS"
30583 fi
30584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30585 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30586 if test "$gcc_cv_c_no_fpie" = "yes"; then
30587 NO_PIE_CFLAGS="-fno-PIE"
30588 fi
30589
30590
30591 # Check if -no-pie works.
30592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30593 $as_echo_n "checking for -no-pie option... " >&6; }
30594 if ${gcc_cv_no_pie+:} false; then :
30595 $as_echo_n "(cached) " >&6
30596 else
30597 saved_LDFLAGS="$LDFLAGS"
30598 LDFLAGS="$LDFLAGS -no-pie"
30599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30600 /* end confdefs.h. */
30601 int main(void) {return 0;}
30602 _ACEOF
30603 if ac_fn_cxx_try_link "$LINENO"; then :
30604 gcc_cv_no_pie=yes
30605 else
30606 gcc_cv_no_pie=no
30607 fi
30608 rm -f core conftest.err conftest.$ac_objext \
30609 conftest$ac_exeext conftest.$ac_ext
30610 LDFLAGS="$saved_LDFLAGS"
30611 fi
30612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30613 $as_echo "$gcc_cv_no_pie" >&6; }
30614 if test "$gcc_cv_no_pie" = "yes"; then
30615 NO_PIE_FLAG="-no-pie"
30616 fi
30617
30618
30619 # Check linker supports '-z bndplt'
30620 ld_bndplt_support=no
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30622 $as_echo_n "checking linker -z bndplt option... " >&6; }
30623 if test x"$ld_is_gold" = xno; then
30624 if test $in_tree_ld = yes ; then
30625 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
30626 ld_bndplt_support=yes
30627 fi
30628 elif test x$gcc_cv_ld != x; then
30629 # Check if linker supports -a bndplt option
30630 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30631 ld_bndplt_support=yes
30632 fi
30633 fi
30634 fi
30635 if test x"$ld_bndplt_support" = xyes; then
30636
30637 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30638
30639 fi
30640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30641 $as_echo "$ld_bndplt_support" >&6; }
30642
30643 # Check linker supports '--push-state'/'--pop-state'
30644 ld_pushpopstate_support=no
30645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30646 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30647 if test x"$ld_is_gold" = xno; then
30648 if test $in_tree_ld = yes ; then
30649 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
30650 ld_pushpopstate_support=yes
30651 fi
30652 elif test x$gcc_cv_ld != x; then
30653 # Check if linker supports --push-state/--pop-state options
30654 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30655 ld_pushpopstate_support=yes
30656 fi
30657 fi
30658 fi
30659 if test x"$ld_pushpopstate_support" = xyes; then
30660
30661 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30662
30663 fi
30664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30665 $as_echo "$ld_pushpopstate_support" >&6; }
30666
30667 # Configure the subdirectories
30668 # AC_CONFIG_SUBDIRS($subdirs)
30669
30670 # Create the Makefile
30671 # and configure language subdirectories
30672 ac_config_files="$ac_config_files $all_outputs"
30673
30674
30675 ac_config_commands="$ac_config_commands default"
30676
30677 cat >confcache <<\_ACEOF
30678 # This file is a shell script that caches the results of configure
30679 # tests run on this system so they can be shared between configure
30680 # scripts and configure runs, see configure's option --config-cache.
30681 # It is not useful on other systems. If it contains results you don't
30682 # want to keep, you may remove or edit it.
30683 #
30684 # config.status only pays attention to the cache file if you give it
30685 # the --recheck option to rerun configure.
30686 #
30687 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30688 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30689 # following values.
30690
30691 _ACEOF
30692
30693 # The following way of writing the cache mishandles newlines in values,
30694 # but we know of no workaround that is simple, portable, and efficient.
30695 # So, we kill variables containing newlines.
30696 # Ultrix sh set writes to stderr and can't be redirected directly,
30697 # and sets the high bit in the cache file unless we assign to the vars.
30698 (
30699 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30700 eval ac_val=\$$ac_var
30701 case $ac_val in #(
30702 *${as_nl}*)
30703 case $ac_var in #(
30704 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30705 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30706 esac
30707 case $ac_var in #(
30708 _ | IFS | as_nl) ;; #(
30709 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30710 *) { eval $ac_var=; unset $ac_var;} ;;
30711 esac ;;
30712 esac
30713 done
30714
30715 (set) 2>&1 |
30716 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30717 *${as_nl}ac_space=\ *)
30718 # `set' does not quote correctly, so add quotes: double-quote
30719 # substitution turns \\\\ into \\, and sed turns \\ into \.
30720 sed -n \
30721 "s/'/'\\\\''/g;
30722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30723 ;; #(
30724 *)
30725 # `set' quotes correctly as required by POSIX, so do not add quotes.
30726 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30727 ;;
30728 esac |
30729 sort
30730 ) |
30731 sed '
30732 /^ac_cv_env_/b end
30733 t clear
30734 :clear
30735 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30736 t end
30737 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30738 :end' >>confcache
30739 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30740 if test -w "$cache_file"; then
30741 if test "x$cache_file" != "x/dev/null"; then
30742 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30743 $as_echo "$as_me: updating cache $cache_file" >&6;}
30744 if test ! -f "$cache_file" || test -h "$cache_file"; then
30745 cat confcache >"$cache_file"
30746 else
30747 case $cache_file in #(
30748 */* | ?:*)
30749 mv -f confcache "$cache_file"$$ &&
30750 mv -f "$cache_file"$$ "$cache_file" ;; #(
30751 *)
30752 mv -f confcache "$cache_file" ;;
30753 esac
30754 fi
30755 fi
30756 else
30757 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30758 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30759 fi
30760 fi
30761 rm -f confcache
30762
30763 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30764 # Let make expand exec_prefix.
30765 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30766
30767 DEFS=-DHAVE_CONFIG_H
30768
30769 ac_libobjs=
30770 ac_ltlibobjs=
30771 U=
30772 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30773 # 1. Remove the extension, and $U if already installed.
30774 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30775 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30776 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30777 # will be set to the directory where LIBOBJS objects are built.
30778 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30779 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30780 done
30781 LIBOBJS=$ac_libobjs
30782
30783 LTLIBOBJS=$ac_ltlibobjs
30784
30785
30786
30787
30788 : "${CONFIG_STATUS=./config.status}"
30789 ac_write_fail=0
30790 ac_clean_files_save=$ac_clean_files
30791 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30792 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30793 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30794 as_write_fail=0
30795 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30796 #! $SHELL
30797 # Generated by $as_me.
30798 # Run this file to recreate the current configuration.
30799 # Compiler output produced by configure, useful for debugging
30800 # configure, is in config.log if it exists.
30801
30802 debug=false
30803 ac_cs_recheck=false
30804 ac_cs_silent=false
30805
30806 SHELL=\${CONFIG_SHELL-$SHELL}
30807 export SHELL
30808 _ASEOF
30809 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30810 ## -------------------- ##
30811 ## M4sh Initialization. ##
30812 ## -------------------- ##
30813
30814 # Be more Bourne compatible
30815 DUALCASE=1; export DUALCASE # for MKS sh
30816 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30817 emulate sh
30818 NULLCMD=:
30819 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30820 # is contrary to our usage. Disable this feature.
30821 alias -g '${1+"$@"}'='"$@"'
30822 setopt NO_GLOB_SUBST
30823 else
30824 case `(set -o) 2>/dev/null` in #(
30825 *posix*) :
30826 set -o posix ;; #(
30827 *) :
30828 ;;
30829 esac
30830 fi
30831
30832
30833 as_nl='
30834 '
30835 export as_nl
30836 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30837 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30838 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30839 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30840 # Prefer a ksh shell builtin over an external printf program on Solaris,
30841 # but without wasting forks for bash or zsh.
30842 if test -z "$BASH_VERSION$ZSH_VERSION" \
30843 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30844 as_echo='print -r --'
30845 as_echo_n='print -rn --'
30846 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30847 as_echo='printf %s\n'
30848 as_echo_n='printf %s'
30849 else
30850 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30851 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30852 as_echo_n='/usr/ucb/echo -n'
30853 else
30854 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30855 as_echo_n_body='eval
30856 arg=$1;
30857 case $arg in #(
30858 *"$as_nl"*)
30859 expr "X$arg" : "X\\(.*\\)$as_nl";
30860 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30861 esac;
30862 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30863 '
30864 export as_echo_n_body
30865 as_echo_n='sh -c $as_echo_n_body as_echo'
30866 fi
30867 export as_echo_body
30868 as_echo='sh -c $as_echo_body as_echo'
30869 fi
30870
30871 # The user is always right.
30872 if test "${PATH_SEPARATOR+set}" != set; then
30873 PATH_SEPARATOR=:
30874 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30875 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30876 PATH_SEPARATOR=';'
30877 }
30878 fi
30879
30880
30881 # IFS
30882 # We need space, tab and new line, in precisely that order. Quoting is
30883 # there to prevent editors from complaining about space-tab.
30884 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30885 # splitting by setting IFS to empty value.)
30886 IFS=" "" $as_nl"
30887
30888 # Find who we are. Look in the path if we contain no directory separator.
30889 as_myself=
30890 case $0 in #((
30891 *[\\/]* ) as_myself=$0 ;;
30892 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30893 for as_dir in $PATH
30894 do
30895 IFS=$as_save_IFS
30896 test -z "$as_dir" && as_dir=.
30897 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30898 done
30899 IFS=$as_save_IFS
30900
30901 ;;
30902 esac
30903 # We did not find ourselves, most probably we were run as `sh COMMAND'
30904 # in which case we are not to be found in the path.
30905 if test "x$as_myself" = x; then
30906 as_myself=$0
30907 fi
30908 if test ! -f "$as_myself"; then
30909 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30910 exit 1
30911 fi
30912
30913 # Unset variables that we do not need and which cause bugs (e.g. in
30914 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30915 # suppresses any "Segmentation fault" message there. '((' could
30916 # trigger a bug in pdksh 5.2.14.
30917 for as_var in BASH_ENV ENV MAIL MAILPATH
30918 do eval test x\${$as_var+set} = xset \
30919 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30920 done
30921 PS1='$ '
30922 PS2='> '
30923 PS4='+ '
30924
30925 # NLS nuisances.
30926 LC_ALL=C
30927 export LC_ALL
30928 LANGUAGE=C
30929 export LANGUAGE
30930
30931 # CDPATH.
30932 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30933
30934
30935 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30936 # ----------------------------------------
30937 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30938 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30939 # script with STATUS, using 1 if that was 0.
30940 as_fn_error ()
30941 {
30942 as_status=$1; test $as_status -eq 0 && as_status=1
30943 if test "$4"; then
30944 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30945 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30946 fi
30947 $as_echo "$as_me: error: $2" >&2
30948 as_fn_exit $as_status
30949 } # as_fn_error
30950
30951
30952 # as_fn_set_status STATUS
30953 # -----------------------
30954 # Set $? to STATUS, without forking.
30955 as_fn_set_status ()
30956 {
30957 return $1
30958 } # as_fn_set_status
30959
30960 # as_fn_exit STATUS
30961 # -----------------
30962 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30963 as_fn_exit ()
30964 {
30965 set +e
30966 as_fn_set_status $1
30967 exit $1
30968 } # as_fn_exit
30969
30970 # as_fn_unset VAR
30971 # ---------------
30972 # Portably unset VAR.
30973 as_fn_unset ()
30974 {
30975 { eval $1=; unset $1;}
30976 }
30977 as_unset=as_fn_unset
30978 # as_fn_append VAR VALUE
30979 # ----------------------
30980 # Append the text in VALUE to the end of the definition contained in VAR. Take
30981 # advantage of any shell optimizations that allow amortized linear growth over
30982 # repeated appends, instead of the typical quadratic growth present in naive
30983 # implementations.
30984 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30985 eval 'as_fn_append ()
30986 {
30987 eval $1+=\$2
30988 }'
30989 else
30990 as_fn_append ()
30991 {
30992 eval $1=\$$1\$2
30993 }
30994 fi # as_fn_append
30995
30996 # as_fn_arith ARG...
30997 # ------------------
30998 # Perform arithmetic evaluation on the ARGs, and store the result in the
30999 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31000 # must be portable across $(()) and expr.
31001 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31002 eval 'as_fn_arith ()
31003 {
31004 as_val=$(( $* ))
31005 }'
31006 else
31007 as_fn_arith ()
31008 {
31009 as_val=`expr "$@" || test $? -eq 1`
31010 }
31011 fi # as_fn_arith
31012
31013
31014 if expr a : '\(a\)' >/dev/null 2>&1 &&
31015 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31016 as_expr=expr
31017 else
31018 as_expr=false
31019 fi
31020
31021 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31022 as_basename=basename
31023 else
31024 as_basename=false
31025 fi
31026
31027 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31028 as_dirname=dirname
31029 else
31030 as_dirname=false
31031 fi
31032
31033 as_me=`$as_basename -- "$0" ||
31034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31035 X"$0" : 'X\(//\)$' \| \
31036 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31037 $as_echo X/"$0" |
31038 sed '/^.*\/\([^/][^/]*\)\/*$/{
31039 s//\1/
31040 q
31041 }
31042 /^X\/\(\/\/\)$/{
31043 s//\1/
31044 q
31045 }
31046 /^X\/\(\/\).*/{
31047 s//\1/
31048 q
31049 }
31050 s/.*/./; q'`
31051
31052 # Avoid depending upon Character Ranges.
31053 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31054 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31055 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31056 as_cr_digits='0123456789'
31057 as_cr_alnum=$as_cr_Letters$as_cr_digits
31058
31059 ECHO_C= ECHO_N= ECHO_T=
31060 case `echo -n x` in #(((((
31061 -n*)
31062 case `echo 'xy\c'` in
31063 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31064 xy) ECHO_C='\c';;
31065 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31066 ECHO_T=' ';;
31067 esac;;
31068 *)
31069 ECHO_N='-n';;
31070 esac
31071
31072 rm -f conf$$ conf$$.exe conf$$.file
31073 if test -d conf$$.dir; then
31074 rm -f conf$$.dir/conf$$.file
31075 else
31076 rm -f conf$$.dir
31077 mkdir conf$$.dir 2>/dev/null
31078 fi
31079 if (echo >conf$$.file) 2>/dev/null; then
31080 if ln -s conf$$.file conf$$ 2>/dev/null; then
31081 as_ln_s='ln -s'
31082 # ... but there are two gotchas:
31083 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31084 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31085 # In both cases, we have to default to `cp -pR'.
31086 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31087 as_ln_s='cp -pR'
31088 elif ln conf$$.file conf$$ 2>/dev/null; then
31089 as_ln_s=ln
31090 else
31091 as_ln_s='cp -pR'
31092 fi
31093 else
31094 as_ln_s='cp -pR'
31095 fi
31096 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31097 rmdir conf$$.dir 2>/dev/null
31098
31099
31100 # as_fn_mkdir_p
31101 # -------------
31102 # Create "$as_dir" as a directory, including parents if necessary.
31103 as_fn_mkdir_p ()
31104 {
31105
31106 case $as_dir in #(
31107 -*) as_dir=./$as_dir;;
31108 esac
31109 test -d "$as_dir" || eval $as_mkdir_p || {
31110 as_dirs=
31111 while :; do
31112 case $as_dir in #(
31113 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31114 *) as_qdir=$as_dir;;
31115 esac
31116 as_dirs="'$as_qdir' $as_dirs"
31117 as_dir=`$as_dirname -- "$as_dir" ||
31118 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31119 X"$as_dir" : 'X\(//\)[^/]' \| \
31120 X"$as_dir" : 'X\(//\)$' \| \
31121 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31122 $as_echo X"$as_dir" |
31123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31124 s//\1/
31125 q
31126 }
31127 /^X\(\/\/\)[^/].*/{
31128 s//\1/
31129 q
31130 }
31131 /^X\(\/\/\)$/{
31132 s//\1/
31133 q
31134 }
31135 /^X\(\/\).*/{
31136 s//\1/
31137 q
31138 }
31139 s/.*/./; q'`
31140 test -d "$as_dir" && break
31141 done
31142 test -z "$as_dirs" || eval "mkdir $as_dirs"
31143 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31144
31145
31146 } # as_fn_mkdir_p
31147 if mkdir -p . 2>/dev/null; then
31148 as_mkdir_p='mkdir -p "$as_dir"'
31149 else
31150 test -d ./-p && rmdir ./-p
31151 as_mkdir_p=false
31152 fi
31153
31154
31155 # as_fn_executable_p FILE
31156 # -----------------------
31157 # Test if FILE is an executable regular file.
31158 as_fn_executable_p ()
31159 {
31160 test -f "$1" && test -x "$1"
31161 } # as_fn_executable_p
31162 as_test_x='test -x'
31163 as_executable_p=as_fn_executable_p
31164
31165 # Sed expression to map a string onto a valid CPP name.
31166 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31167
31168 # Sed expression to map a string onto a valid variable name.
31169 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31170
31171
31172 exec 6>&1
31173 ## ----------------------------------- ##
31174 ## Main body of $CONFIG_STATUS script. ##
31175 ## ----------------------------------- ##
31176 _ASEOF
31177 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31178
31179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31180 # Save the log message, to keep $0 and so on meaningful, and to
31181 # report actual input values of CONFIG_FILES etc. instead of their
31182 # values after options handling.
31183 ac_log="
31184 This file was extended by $as_me, which was
31185 generated by GNU Autoconf 2.69. Invocation command line was
31186
31187 CONFIG_FILES = $CONFIG_FILES
31188 CONFIG_HEADERS = $CONFIG_HEADERS
31189 CONFIG_LINKS = $CONFIG_LINKS
31190 CONFIG_COMMANDS = $CONFIG_COMMANDS
31191 $ $0 $@
31192
31193 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31194 "
31195
31196 _ACEOF
31197
31198 case $ac_config_files in *"
31199 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31200 esac
31201
31202 case $ac_config_headers in *"
31203 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31204 esac
31205
31206
31207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31208 # Files that config.status was made for.
31209 config_files="$ac_config_files"
31210 config_headers="$ac_config_headers"
31211 config_links="$ac_config_links"
31212 config_commands="$ac_config_commands"
31213
31214 _ACEOF
31215
31216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31217 ac_cs_usage="\
31218 \`$as_me' instantiates files and other configuration actions
31219 from templates according to the current configuration. Unless the files
31220 and actions are specified as TAGs, all are instantiated by default.
31221
31222 Usage: $0 [OPTION]... [TAG]...
31223
31224 -h, --help print this help, then exit
31225 -V, --version print version number and configuration settings, then exit
31226 --config print configuration, then exit
31227 -q, --quiet, --silent
31228 do not print progress messages
31229 -d, --debug don't remove temporary files
31230 --recheck update $as_me by reconfiguring in the same conditions
31231 --file=FILE[:TEMPLATE]
31232 instantiate the configuration file FILE
31233 --header=FILE[:TEMPLATE]
31234 instantiate the configuration header FILE
31235
31236 Configuration files:
31237 $config_files
31238
31239 Configuration headers:
31240 $config_headers
31241
31242 Configuration links:
31243 $config_links
31244
31245 Configuration commands:
31246 $config_commands
31247
31248 Report bugs to the package provider."
31249
31250 _ACEOF
31251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31252 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31253 ac_cs_version="\\
31254 config.status
31255 configured by $0, generated by GNU Autoconf 2.69,
31256 with options \\"\$ac_cs_config\\"
31257
31258 Copyright (C) 2012 Free Software Foundation, Inc.
31259 This config.status script is free software; the Free Software Foundation
31260 gives unlimited permission to copy, distribute and modify it."
31261
31262 ac_pwd='$ac_pwd'
31263 srcdir='$srcdir'
31264 AWK='$AWK'
31265 test -n "\$AWK" || AWK=awk
31266 _ACEOF
31267
31268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31269 # The default lists apply if the user does not specify any file.
31270 ac_need_defaults=:
31271 while test $# != 0
31272 do
31273 case $1 in
31274 --*=?*)
31275 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31276 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31277 ac_shift=:
31278 ;;
31279 --*=)
31280 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31281 ac_optarg=
31282 ac_shift=:
31283 ;;
31284 *)
31285 ac_option=$1
31286 ac_optarg=$2
31287 ac_shift=shift
31288 ;;
31289 esac
31290
31291 case $ac_option in
31292 # Handling of the options.
31293 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31294 ac_cs_recheck=: ;;
31295 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31296 $as_echo "$ac_cs_version"; exit ;;
31297 --config | --confi | --conf | --con | --co | --c )
31298 $as_echo "$ac_cs_config"; exit ;;
31299 --debug | --debu | --deb | --de | --d | -d )
31300 debug=: ;;
31301 --file | --fil | --fi | --f )
31302 $ac_shift
31303 case $ac_optarg in
31304 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31305 '') as_fn_error $? "missing file argument" ;;
31306 esac
31307 as_fn_append CONFIG_FILES " '$ac_optarg'"
31308 ac_need_defaults=false;;
31309 --header | --heade | --head | --hea )
31310 $ac_shift
31311 case $ac_optarg in
31312 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31313 esac
31314 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31315 ac_need_defaults=false;;
31316 --he | --h)
31317 # Conflict between --help and --header
31318 as_fn_error $? "ambiguous option: \`$1'
31319 Try \`$0 --help' for more information.";;
31320 --help | --hel | -h )
31321 $as_echo "$ac_cs_usage"; exit ;;
31322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31323 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31324 ac_cs_silent=: ;;
31325
31326 # This is an error.
31327 -*) as_fn_error $? "unrecognized option: \`$1'
31328 Try \`$0 --help' for more information." ;;
31329
31330 *) as_fn_append ac_config_targets " $1"
31331 ac_need_defaults=false ;;
31332
31333 esac
31334 shift
31335 done
31336
31337 ac_configure_extra_args=
31338
31339 if $ac_cs_silent; then
31340 exec 6>/dev/null
31341 ac_configure_extra_args="$ac_configure_extra_args --silent"
31342 fi
31343
31344 _ACEOF
31345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31346 if \$ac_cs_recheck; then
31347 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31348 shift
31349 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31350 CONFIG_SHELL='$SHELL'
31351 export CONFIG_SHELL
31352 exec "\$@"
31353 fi
31354
31355 _ACEOF
31356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31357 exec 5>>config.log
31358 {
31359 echo
31360 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31361 ## Running $as_me. ##
31362 _ASBOX
31363 $as_echo "$ac_log"
31364 } >&5
31365
31366 _ACEOF
31367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31368 #
31369 # INIT-COMMANDS
31370 #
31371 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31372 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31373 subdirs='$subdirs'
31374
31375 _ACEOF
31376
31377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31378
31379 # Handling of arguments.
31380 for ac_config_target in $ac_config_targets
31381 do
31382 case $ac_config_target in
31383 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
31384 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
31385 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
31386 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
31387 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
31388 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
31389 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
31390 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
31391 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31392
31393 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31394 esac
31395 done
31396
31397
31398 # If the user did not use the arguments to specify the items to instantiate,
31399 # then the envvar interface is used. Set only those that are not.
31400 # We use the long form for the default assignment because of an extremely
31401 # bizarre bug on SunOS 4.1.3.
31402 if $ac_need_defaults; then
31403 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31404 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31405 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31406 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31407 fi
31408
31409 # Have a temporary directory for convenience. Make it in the build tree
31410 # simply because there is no reason against having it here, and in addition,
31411 # creating and moving files from /tmp can sometimes cause problems.
31412 # Hook for its removal unless debugging.
31413 # Note that there is a small window in which the directory will not be cleaned:
31414 # after its creation but before its name has been assigned to `$tmp'.
31415 $debug ||
31416 {
31417 tmp= ac_tmp=
31418 trap 'exit_status=$?
31419 : "${ac_tmp:=$tmp}"
31420 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31421 ' 0
31422 trap 'as_fn_exit 1' 1 2 13 15
31423 }
31424 # Create a (secure) tmp directory for tmp files.
31425
31426 {
31427 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31428 test -d "$tmp"
31429 } ||
31430 {
31431 tmp=./conf$$-$RANDOM
31432 (umask 077 && mkdir "$tmp")
31433 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31434 ac_tmp=$tmp
31435
31436 # Set up the scripts for CONFIG_FILES section.
31437 # No need to generate them if there are no CONFIG_FILES.
31438 # This happens for instance with `./config.status config.h'.
31439 if test -n "$CONFIG_FILES"; then
31440
31441 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31442 ac_cs_awk_getline=:
31443 ac_cs_awk_pipe_init=
31444 ac_cs_awk_read_file='
31445 while ((getline aline < (F[key])) > 0)
31446 print(aline)
31447 close(F[key])'
31448 ac_cs_awk_pipe_fini=
31449 else
31450 ac_cs_awk_getline=false
31451 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31452 ac_cs_awk_read_file='
31453 print "|#_!!_#|"
31454 print "cat " F[key] " &&"
31455 '$ac_cs_awk_pipe_init
31456 # The final `:' finishes the AND list.
31457 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31458 fi
31459 ac_cr=`echo X | tr X '\015'`
31460 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31461 # But we know of no other shell where ac_cr would be empty at this
31462 # point, so we can use a bashism as a fallback.
31463 if test "x$ac_cr" = x; then
31464 eval ac_cr=\$\'\\r\'
31465 fi
31466 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31467 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31468 ac_cs_awk_cr='\\r'
31469 else
31470 ac_cs_awk_cr=$ac_cr
31471 fi
31472
31473 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31474 _ACEOF
31475
31476 # Create commands to substitute file output variables.
31477 {
31478 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31479 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31480 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31481 echo "_ACAWK" &&
31482 echo "_ACEOF"
31483 } >conf$$files.sh &&
31484 . ./conf$$files.sh ||
31485 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31486 rm -f conf$$files.sh
31487
31488 {
31489 echo "cat >conf$$subs.awk <<_ACEOF" &&
31490 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31491 echo "_ACEOF"
31492 } >conf$$subs.sh ||
31493 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31494 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31495 ac_delim='%!_!# '
31496 for ac_last_try in false false false false false :; do
31497 . ./conf$$subs.sh ||
31498 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31499
31500 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31501 if test $ac_delim_n = $ac_delim_num; then
31502 break
31503 elif $ac_last_try; then
31504 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31505 else
31506 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31507 fi
31508 done
31509 rm -f conf$$subs.sh
31510
31511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31512 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31513 _ACEOF
31514 sed -n '
31515 h
31516 s/^/S["/; s/!.*/"]=/
31517 p
31518 g
31519 s/^[^!]*!//
31520 :repl
31521 t repl
31522 s/'"$ac_delim"'$//
31523 t delim
31524 :nl
31525 h
31526 s/\(.\{148\}\)..*/\1/
31527 t more1
31528 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31529 p
31530 n
31531 b repl
31532 :more1
31533 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31534 p
31535 g
31536 s/.\{148\}//
31537 t nl
31538 :delim
31539 h
31540 s/\(.\{148\}\)..*/\1/
31541 t more2
31542 s/["\\]/\\&/g; s/^/"/; s/$/"/
31543 p
31544 b
31545 :more2
31546 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31547 p
31548 g
31549 s/.\{148\}//
31550 t delim
31551 ' <conf$$subs.awk | sed '
31552 /^[^""]/{
31553 N
31554 s/\n//
31555 }
31556 ' >>$CONFIG_STATUS || ac_write_fail=1
31557 rm -f conf$$subs.awk
31558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31559 _ACAWK
31560 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31561 for (key in S) S_is_set[key] = 1
31562 FS = "\a"
31563 \$ac_cs_awk_pipe_init
31564 }
31565 {
31566 line = $ 0
31567 nfields = split(line, field, "@")
31568 substed = 0
31569 len = length(field[1])
31570 for (i = 2; i < nfields; i++) {
31571 key = field[i]
31572 keylen = length(key)
31573 if (S_is_set[key]) {
31574 value = S[key]
31575 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31576 len += length(value) + length(field[++i])
31577 substed = 1
31578 } else
31579 len += 1 + keylen
31580 }
31581 if (nfields == 3 && !substed) {
31582 key = field[2]
31583 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31584 \$ac_cs_awk_read_file
31585 next
31586 }
31587 }
31588 print line
31589 }
31590 \$ac_cs_awk_pipe_fini
31591 _ACAWK
31592 _ACEOF
31593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31594 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31595 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31596 else
31597 cat
31598 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31599 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31600 _ACEOF
31601
31602 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31603 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31604 # trailing colons and then remove the whole line if VPATH becomes empty
31605 # (actually we leave an empty line to preserve line numbers).
31606 if test "x$srcdir" = x.; then
31607 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31608 h
31609 s///
31610 s/^/:/
31611 s/[ ]*$/:/
31612 s/:\$(srcdir):/:/g
31613 s/:\${srcdir}:/:/g
31614 s/:@srcdir@:/:/g
31615 s/^:*//
31616 s/:*$//
31617 x
31618 s/\(=[ ]*\).*/\1/
31619 G
31620 s/\n//
31621 s/^[^=]*=[ ]*$//
31622 }'
31623 fi
31624
31625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31626 fi # test -n "$CONFIG_FILES"
31627
31628 # Set up the scripts for CONFIG_HEADERS section.
31629 # No need to generate them if there are no CONFIG_HEADERS.
31630 # This happens for instance with `./config.status Makefile'.
31631 if test -n "$CONFIG_HEADERS"; then
31632 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31633 BEGIN {
31634 _ACEOF
31635
31636 # Transform confdefs.h into an awk script `defines.awk', embedded as
31637 # here-document in config.status, that substitutes the proper values into
31638 # config.h.in to produce config.h.
31639
31640 # Create a delimiter string that does not exist in confdefs.h, to ease
31641 # handling of long lines.
31642 ac_delim='%!_!# '
31643 for ac_last_try in false false :; do
31644 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31645 if test -z "$ac_tt"; then
31646 break
31647 elif $ac_last_try; then
31648 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31649 else
31650 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31651 fi
31652 done
31653
31654 # For the awk script, D is an array of macro values keyed by name,
31655 # likewise P contains macro parameters if any. Preserve backslash
31656 # newline sequences.
31657
31658 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31659 sed -n '
31660 s/.\{148\}/&'"$ac_delim"'/g
31661 t rset
31662 :rset
31663 s/^[ ]*#[ ]*define[ ][ ]*/ /
31664 t def
31665 d
31666 :def
31667 s/\\$//
31668 t bsnl
31669 s/["\\]/\\&/g
31670 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31671 D["\1"]=" \3"/p
31672 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31673 d
31674 :bsnl
31675 s/["\\]/\\&/g
31676 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31677 D["\1"]=" \3\\\\\\n"\\/p
31678 t cont
31679 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31680 t cont
31681 d
31682 :cont
31683 n
31684 s/.\{148\}/&'"$ac_delim"'/g
31685 t clear
31686 :clear
31687 s/\\$//
31688 t bsnlc
31689 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31690 d
31691 :bsnlc
31692 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31693 b cont
31694 ' <confdefs.h | sed '
31695 s/'"$ac_delim"'/"\\\
31696 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31697
31698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31699 for (key in D) D_is_set[key] = 1
31700 FS = "\a"
31701 }
31702 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31703 line = \$ 0
31704 split(line, arg, " ")
31705 if (arg[1] == "#") {
31706 defundef = arg[2]
31707 mac1 = arg[3]
31708 } else {
31709 defundef = substr(arg[1], 2)
31710 mac1 = arg[2]
31711 }
31712 split(mac1, mac2, "(") #)
31713 macro = mac2[1]
31714 prefix = substr(line, 1, index(line, defundef) - 1)
31715 if (D_is_set[macro]) {
31716 # Preserve the white space surrounding the "#".
31717 print prefix "define", macro P[macro] D[macro]
31718 next
31719 } else {
31720 # Replace #undef with comments. This is necessary, for example,
31721 # in the case of _POSIX_SOURCE, which is predefined and required
31722 # on some systems where configure will not decide to define it.
31723 if (defundef == "undef") {
31724 print "/*", prefix defundef, macro, "*/"
31725 next
31726 }
31727 }
31728 }
31729 { print }
31730 _ACAWK
31731 _ACEOF
31732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31733 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31734 fi # test -n "$CONFIG_HEADERS"
31735
31736
31737 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31738 shift
31739 for ac_tag
31740 do
31741 case $ac_tag in
31742 :[FHLC]) ac_mode=$ac_tag; continue;;
31743 esac
31744 case $ac_mode$ac_tag in
31745 :[FHL]*:*);;
31746 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31747 :[FH]-) ac_tag=-:-;;
31748 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31749 esac
31750 ac_save_IFS=$IFS
31751 IFS=:
31752 set x $ac_tag
31753 IFS=$ac_save_IFS
31754 shift
31755 ac_file=$1
31756 shift
31757
31758 case $ac_mode in
31759 :L) ac_source=$1;;
31760 :[FH])
31761 ac_file_inputs=
31762 for ac_f
31763 do
31764 case $ac_f in
31765 -) ac_f="$ac_tmp/stdin";;
31766 *) # Look for the file first in the build tree, then in the source tree
31767 # (if the path is not absolute). The absolute path cannot be DOS-style,
31768 # because $ac_f cannot contain `:'.
31769 test -f "$ac_f" ||
31770 case $ac_f in
31771 [\\/$]*) false;;
31772 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31773 esac ||
31774 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31775 esac
31776 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31777 as_fn_append ac_file_inputs " '$ac_f'"
31778 done
31779
31780 # Let's still pretend it is `configure' which instantiates (i.e., don't
31781 # use $as_me), people would be surprised to read:
31782 # /* config.h. Generated by config.status. */
31783 configure_input='Generated from '`
31784 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31785 `' by configure.'
31786 if test x"$ac_file" != x-; then
31787 configure_input="$ac_file. $configure_input"
31788 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31789 $as_echo "$as_me: creating $ac_file" >&6;}
31790 fi
31791 # Neutralize special characters interpreted by sed in replacement strings.
31792 case $configure_input in #(
31793 *\&* | *\|* | *\\* )
31794 ac_sed_conf_input=`$as_echo "$configure_input" |
31795 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31796 *) ac_sed_conf_input=$configure_input;;
31797 esac
31798
31799 case $ac_tag in
31800 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31801 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31802 esac
31803 ;;
31804 esac
31805
31806 ac_dir=`$as_dirname -- "$ac_file" ||
31807 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31808 X"$ac_file" : 'X\(//\)[^/]' \| \
31809 X"$ac_file" : 'X\(//\)$' \| \
31810 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31811 $as_echo X"$ac_file" |
31812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31813 s//\1/
31814 q
31815 }
31816 /^X\(\/\/\)[^/].*/{
31817 s//\1/
31818 q
31819 }
31820 /^X\(\/\/\)$/{
31821 s//\1/
31822 q
31823 }
31824 /^X\(\/\).*/{
31825 s//\1/
31826 q
31827 }
31828 s/.*/./; q'`
31829 as_dir="$ac_dir"; as_fn_mkdir_p
31830 ac_builddir=.
31831
31832 case "$ac_dir" in
31833 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31834 *)
31835 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31836 # A ".." for each directory in $ac_dir_suffix.
31837 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31838 case $ac_top_builddir_sub in
31839 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31840 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31841 esac ;;
31842 esac
31843 ac_abs_top_builddir=$ac_pwd
31844 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31845 # for backward compatibility:
31846 ac_top_builddir=$ac_top_build_prefix
31847
31848 case $srcdir in
31849 .) # We are building in place.
31850 ac_srcdir=.
31851 ac_top_srcdir=$ac_top_builddir_sub
31852 ac_abs_top_srcdir=$ac_pwd ;;
31853 [\\/]* | ?:[\\/]* ) # Absolute name.
31854 ac_srcdir=$srcdir$ac_dir_suffix;
31855 ac_top_srcdir=$srcdir
31856 ac_abs_top_srcdir=$srcdir ;;
31857 *) # Relative name.
31858 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31859 ac_top_srcdir=$ac_top_build_prefix$srcdir
31860 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31861 esac
31862 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31863
31864
31865 case $ac_mode in
31866 :F)
31867 #
31868 # CONFIG_FILE
31869 #
31870
31871 _ACEOF
31872
31873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31874 # If the template does not know about datarootdir, expand it.
31875 # FIXME: This hack should be removed a few years after 2.60.
31876 ac_datarootdir_hack=; ac_datarootdir_seen=
31877 ac_sed_dataroot='
31878 /datarootdir/ {
31879 p
31880 q
31881 }
31882 /@datadir@/p
31883 /@docdir@/p
31884 /@infodir@/p
31885 /@localedir@/p
31886 /@mandir@/p'
31887 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31888 *datarootdir*) ac_datarootdir_seen=yes;;
31889 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31891 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31892 _ACEOF
31893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31894 ac_datarootdir_hack='
31895 s&@datadir@&$datadir&g
31896 s&@docdir@&$docdir&g
31897 s&@infodir@&$infodir&g
31898 s&@localedir@&$localedir&g
31899 s&@mandir@&$mandir&g
31900 s&\\\${datarootdir}&$datarootdir&g' ;;
31901 esac
31902 _ACEOF
31903
31904 # Neutralize VPATH when `$srcdir' = `.'.
31905 # Shell code in configure.ac might set extrasub.
31906 # FIXME: do we really want to maintain this feature?
31907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31908 ac_sed_extra="$ac_vpsub
31909 $extrasub
31910 _ACEOF
31911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31912 :t
31913 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31914 s|@configure_input@|$ac_sed_conf_input|;t t
31915 s&@top_builddir@&$ac_top_builddir_sub&;t t
31916 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31917 s&@srcdir@&$ac_srcdir&;t t
31918 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31919 s&@top_srcdir@&$ac_top_srcdir&;t t
31920 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31921 s&@builddir@&$ac_builddir&;t t
31922 s&@abs_builddir@&$ac_abs_builddir&;t t
31923 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31924 $ac_datarootdir_hack
31925 "
31926 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31927 if $ac_cs_awk_getline; then
31928 $AWK -f "$ac_tmp/subs.awk"
31929 else
31930 $AWK -f "$ac_tmp/subs.awk" | $SHELL
31931 fi \
31932 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31933
31934 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31935 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31936 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31937 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31939 which seems to be undefined. Please make sure it is defined" >&5
31940 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31941 which seems to be undefined. Please make sure it is defined" >&2;}
31942
31943 rm -f "$ac_tmp/stdin"
31944 case $ac_file in
31945 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31946 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31947 esac \
31948 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31949 ;;
31950 :H)
31951 #
31952 # CONFIG_HEADER
31953 #
31954 if test x"$ac_file" != x-; then
31955 {
31956 $as_echo "/* $configure_input */" \
31957 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31958 } >"$ac_tmp/config.h" \
31959 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31960 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31961 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31962 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31963 else
31964 rm -f "$ac_file"
31965 mv "$ac_tmp/config.h" "$ac_file" \
31966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31967 fi
31968 else
31969 $as_echo "/* $configure_input */" \
31970 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31971 || as_fn_error $? "could not create -" "$LINENO" 5
31972 fi
31973 ;;
31974 :L)
31975 #
31976 # CONFIG_LINK
31977 #
31978
31979 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31980 :
31981 else
31982 # Prefer the file from the source tree if names are identical.
31983 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31984 ac_source=$srcdir/$ac_source
31985 fi
31986
31987 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31988 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31989
31990 if test ! -r "$ac_source"; then
31991 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31992 fi
31993 rm -f "$ac_file"
31994
31995 # Try a relative symlink, then a hard link, then a copy.
31996 case $ac_source in
31997 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31998 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31999 esac
32000 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32001 ln "$ac_source" "$ac_file" 2>/dev/null ||
32002 cp -p "$ac_source" "$ac_file" ||
32003 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32004 fi
32005 ;;
32006 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32007 $as_echo "$as_me: executing $ac_file commands" >&6;}
32008 ;;
32009 esac
32010
32011
32012 case $ac_file$ac_mode in
32013 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
32014 "gccdepdir":C)
32015 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
32016 for lang in $subdirs c-family common analyzer
32017 do
32018 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
32019 done ;;
32020 "as":F) chmod +x as ;;
32021 "collect-ld":F) chmod +x collect-ld ;;
32022 "nm":F) chmod +x nm ;;
32023 "default":C)
32024 case ${CONFIG_HEADERS} in
32025 *auto-host.h:config.in*)
32026 echo > cstamp-h ;;
32027 esac
32028 # Make sure all the subdirs exist.
32029 for d in $subdirs doc build common c-family
32030 do
32031 test -d $d || mkdir $d
32032 done
32033 ;;
32034
32035 esac
32036 done # for ac_tag
32037
32038
32039 as_fn_exit 0
32040 _ACEOF
32041 ac_clean_files=$ac_clean_files_save
32042
32043 test $ac_write_fail = 0 ||
32044 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32045
32046
32047 # configure is writing to config.log, and then calls config.status.
32048 # config.status does its own redirection, appending to config.log.
32049 # Unfortunately, on DOS this fails, as config.log is still kept open
32050 # by configure, so config.status won't be able to write to it; its
32051 # output is simply discarded. So we exec the FD to /dev/null,
32052 # effectively closing config.log, so it can be properly (re)opened and
32053 # appended to by config.status. When coming back to configure, we
32054 # need to make the FD available again.
32055 if test "$no_create" != yes; then
32056 ac_cs_success=:
32057 ac_config_status_args=
32058 test "$silent" = yes &&
32059 ac_config_status_args="$ac_config_status_args --quiet"
32060 exec 5>/dev/null
32061 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32062 exec 5>>config.log
32063 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32064 # would make configure fail if this is the last instruction.
32065 $ac_cs_success || as_fn_exit 1
32066 fi
32067 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32069 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32070 fi
32071
32072