]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
configure.ac: Compute and substitute omp_device_properties and omp_device_property_deps.
[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_gtfiles
705 all_compilers
706 srcdir
707 subdirs
708 dollar
709 gcc_tooldir
710 enable_lto
711 DO_LINK_MUTEX
712 MAINT
713 zlibinc
714 zlibdir
715 HOST_LIBS
716 enable_default_ssp
717 thin_archive_support
718 ld_soname_option
719 ld_version_script_option
720 libgcc_visibility
721 gcc_cv_otool
722 gcc_cv_readelf
723 gcc_cv_objdump
724 ORIGINAL_NM_FOR_TARGET
725 gcc_cv_nm
726 ORIGINAL_LD_GOLD_FOR_TARGET
727 ORIGINAL_LD_BFD_FOR_TARGET
728 ORIGINAL_LD_FOR_TARGET
729 ORIGINAL_PLUGIN_LD_FOR_TARGET
730 gcc_cv_ld
731 ORIGINAL_AS_FOR_TARGET
732 gcc_cv_as
733 enable_fast_install
734 objdir
735 OTOOL64
736 OTOOL
737 LIPO
738 NMEDIT
739 DSYMUTIL
740 STRIP
741 OBJDUMP
742 ac_ct_DUMPBIN
743 DUMPBIN
744 LD
745 FGREP
746 SED
747 LIBTOOL
748 collect2
749 NO_PIE_FLAG_FOR_BUILD
750 NO_PIE_CFLAGS_FOR_BUILD
751 BUILD_NO_PIE_FLAG
752 BUILD_NO_PIE_CFLAGS
753 STMP_FIXINC
754 BUILD_LDFLAGS
755 BUILD_CXXFLAGS
756 BUILD_CFLAGS
757 CXX_FOR_BUILD
758 CC_FOR_BUILD
759 inhibit_libc
760 BUILD_SYSTEM_HEADER_DIR
761 SYSTEM_HEADER_DIR
762 ALL
763 CROSS
764 CATOBJEXT
765 GENCAT
766 INSTOBJEXT
767 DATADIRNAME
768 CATALOGS
769 POSUB
770 GMSGFMT
771 XGETTEXT
772 INCINTL
773 LIBINTL_DEP
774 LIBINTL
775 USE_NLS
776 get_gcc_base_ver
777 extra_opt_files
778 extra_modes_file
779 NATIVE_SYSTEM_HEADER_DIR
780 objext
781 manext
782 LIBICONV_DEP
783 LTLIBICONV
784 LIBICONV
785 ZSTD_LIB
786 ZSTD_INCLUDE
787 DL_LIB
788 LDEXP_LIB
789 EXTRA_GCC_LIBS
790 GNAT_LIBEXC
791 COLLECT2_LIBS
792 CXXDEPMODE
793 DEPDIR
794 am__leading_dot
795 doc_build_sys
796 AR
797 NM
798 BISON
799 FLEX
800 GENERATED_MANPAGES
801 BUILD_INFO
802 MAKEINFO
803 have_mktemp_command
804 make_compare_target
805 INSTALL_DATA
806 INSTALL_PROGRAM
807 INSTALL
808 ranlib_flags
809 RANLIB
810 LN
811 LN_S
812 AWK
813 SET_MAKE
814 omp_device_property_deps
815 omp_device_properties
816 accel_dir_suffix
817 real_target_noncanonical
818 enable_as_accelerator
819 gnat_install_lib
820 DOCUMENTATION_ROOT_URL
821 REPORT_BUGS_TEXI
822 REPORT_BUGS_TO
823 PKGVERSION
824 CONFIGURE_SPECS
825 enable_gcov
826 enable_shared
827 enable_fixed_point
828 enable_decimal_float
829 with_float
830 with_cpu
831 enable_multiarch
832 enable_multilib
833 coverage_flags
834 valgrind_command
835 valgrind_path_defines
836 valgrind_path
837 TREECHECKING
838 nocommon_flag
839 noexception_flags
840 warn_cxxflags
841 warn_cflags
842 c_strict_warn
843 strict_warn
844 c_loose_warn
845 loose_warn
846 aliasing_flags
847 CPP
848 EGREP
849 GREP
850 CXXCPP
851 PICFLAG_FOR_TARGET
852 GNATMAKE
853 GNATBIND
854 ac_ct_CXX
855 CXXFLAGS
856 CXX
857 OBJEXT
858 EXEEXT
859 ac_ct_CC
860 CPPFLAGS
861 LDFLAGS
862 CFLAGS
863 CC
864 GENINSRC
865 CROSS_SYSTEM_HEADER_DIR
866 TARGET_SYSTEM_ROOT_DEFINE
867 TARGET_SYSTEM_ROOT
868 SYSROOT_CFLAGS_FOR_TARGET
869 target_subdir
870 host_subdir
871 build_subdir
872 build_libsubdir
873 target_noncanonical
874 host_noncanonical
875 target_os
876 target_vendor
877 target_cpu
878 target
879 host_os
880 host_vendor
881 host_cpu
882 host
883 build_os
884 build_vendor
885 build_cpu
886 build
887 target_alias
888 host_alias
889 build_alias
890 LIBS
891 ECHO_T
892 ECHO_N
893 ECHO_C
894 DEFS
895 mandir
896 localedir
897 libdir
898 psdir
899 pdfdir
900 dvidir
901 htmldir
902 infodir
903 docdir
904 oldincludedir
905 includedir
906 localstatedir
907 sharedstatedir
908 sysconfdir
909 datadir
910 datarootdir
911 libexecdir
912 sbindir
913 bindir
914 program_transform_name
915 prefix
916 exec_prefix
917 PACKAGE_URL
918 PACKAGE_BUGREPORT
919 PACKAGE_STRING
920 PACKAGE_VERSION
921 PACKAGE_TARNAME
922 PACKAGE_NAME
923 PATH_SEPARATOR
924 SHELL'
925 ac_subst_files='option_includes
926 language_hooks'
927 ac_user_opts='
928 enable_option_checking
929 with_build_libsubdir
930 with_local_prefix
931 with_native_system_header_dir
932 with_build_sysroot
933 with_sysroot
934 with_gxx_include_dir
935 with_cpp_install_dir
936 enable_generated_files_in_srcdir
937 with_gnu_ld
938 with_ld
939 with_demangler_in_ld
940 with_gnu_as
941 with_as
942 enable_largefile
943 enable_build_format_warnings
944 enable_werror_always
945 enable_checking
946 enable_coverage
947 enable_gather_detailed_mem_stats
948 enable_valgrind_annotations
949 with_stabs
950 enable_multilib
951 enable_multiarch
952 with_stack_clash_protection_guard_size
953 enable___cxa_atexit
954 enable_decimal_float
955 enable_fixed_point
956 enable_threads
957 enable_tls
958 enable_vtable_verify
959 enable_objc_gc
960 with_dwarf2
961 enable_shared
962 enable_gcov
963 with_specs
964 with_pkgversion
965 with_bugurl
966 with_documentation_root_url
967 enable_languages
968 with_multilib_list
969 with_zstd
970 with_zstd_include
971 with_zstd_lib
972 enable_rpath
973 with_libiconv_prefix
974 enable_sjlj_exceptions
975 with_gcc_major_version_only
976 enable_secureplt
977 enable_mingw_wildcard
978 enable_large_address_aware
979 enable_leading_mingw64_underscores
980 enable_cld
981 enable_frame_pointer
982 enable_win32_registry
983 enable_static
984 with_pic
985 enable_fast_install
986 enable_libtool_lock
987 enable_ld
988 enable_gold
989 with_plugin_ld
990 enable_gnu_indirect_function
991 enable_initfini_array
992 enable_comdat
993 enable_standard_branch_protection
994 enable_fix_cortex_a53_835769
995 enable_fix_cortex_a53_843419
996 with_glibc_version
997 enable_gnu_unique_object
998 enable_linker_build_id
999 enable_libssp
1000 enable_default_ssp
1001 with_long_double_128
1002 with_long_double_format
1003 with_gc
1004 with_system_zlib
1005 enable_maintainer_mode
1006 enable_link_mutex
1007 enable_version_specific_runtime_libs
1008 enable_plugin
1009 enable_host_shared
1010 enable_libquadmath_support
1011 with_linker_hash_style
1012 with_diagnostics_color
1013 enable_default_pie
1014 '
1015 ac_precious_vars='build_alias
1016 host_alias
1017 target_alias
1018 CC
1019 CFLAGS
1020 LDFLAGS
1021 LIBS
1022 CPPFLAGS
1023 CXX
1024 CXXFLAGS
1025 CCC
1026 CXXCPP
1027 CPP
1028 GMPLIBS
1029 GMPINC
1030 ISLLIBS
1031 ISLINC'
1032
1033
1034 # Initialize some variables set by options.
1035 ac_init_help=
1036 ac_init_version=false
1037 ac_unrecognized_opts=
1038 ac_unrecognized_sep=
1039 # The variables have the same names as the options, with
1040 # dashes changed to underlines.
1041 cache_file=/dev/null
1042 exec_prefix=NONE
1043 no_create=
1044 no_recursion=
1045 prefix=NONE
1046 program_prefix=NONE
1047 program_suffix=NONE
1048 program_transform_name=s,x,x,
1049 silent=
1050 site=
1051 srcdir=
1052 verbose=
1053 x_includes=NONE
1054 x_libraries=NONE
1055
1056 # Installation directory options.
1057 # These are left unexpanded so users can "make install exec_prefix=/foo"
1058 # and all the variables that are supposed to be based on exec_prefix
1059 # by default will actually change.
1060 # Use braces instead of parens because sh, perl, etc. also accept them.
1061 # (The list follows the same order as the GNU Coding Standards.)
1062 bindir='${exec_prefix}/bin'
1063 sbindir='${exec_prefix}/sbin'
1064 libexecdir='${exec_prefix}/libexec'
1065 datarootdir='${prefix}/share'
1066 datadir='${datarootdir}'
1067 sysconfdir='${prefix}/etc'
1068 sharedstatedir='${prefix}/com'
1069 localstatedir='${prefix}/var'
1070 includedir='${prefix}/include'
1071 oldincludedir='/usr/include'
1072 docdir='${datarootdir}/doc/${PACKAGE}'
1073 infodir='${datarootdir}/info'
1074 htmldir='${docdir}'
1075 dvidir='${docdir}'
1076 pdfdir='${docdir}'
1077 psdir='${docdir}'
1078 libdir='${exec_prefix}/lib'
1079 localedir='${datarootdir}/locale'
1080 mandir='${datarootdir}/man'
1081
1082 ac_prev=
1083 ac_dashdash=
1084 for ac_option
1085 do
1086 # If the previous option needs an argument, assign it.
1087 if test -n "$ac_prev"; then
1088 eval $ac_prev=\$ac_option
1089 ac_prev=
1090 continue
1091 fi
1092
1093 case $ac_option in
1094 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1095 *=) ac_optarg= ;;
1096 *) ac_optarg=yes ;;
1097 esac
1098
1099 # Accept the important Cygnus configure options, so we can diagnose typos.
1100
1101 case $ac_dashdash$ac_option in
1102 --)
1103 ac_dashdash=yes ;;
1104
1105 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1106 ac_prev=bindir ;;
1107 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1108 bindir=$ac_optarg ;;
1109
1110 -build | --build | --buil | --bui | --bu)
1111 ac_prev=build_alias ;;
1112 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1113 build_alias=$ac_optarg ;;
1114
1115 -cache-file | --cache-file | --cache-fil | --cache-fi \
1116 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1117 ac_prev=cache_file ;;
1118 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1119 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1120 cache_file=$ac_optarg ;;
1121
1122 --config-cache | -C)
1123 cache_file=config.cache ;;
1124
1125 -datadir | --datadir | --datadi | --datad)
1126 ac_prev=datadir ;;
1127 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1128 datadir=$ac_optarg ;;
1129
1130 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1131 | --dataroo | --dataro | --datar)
1132 ac_prev=datarootdir ;;
1133 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1134 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1135 datarootdir=$ac_optarg ;;
1136
1137 -disable-* | --disable-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid feature name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146 "enable_$ac_useropt"
1147 "*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval enable_$ac_useropt=no ;;
1152
1153 -docdir | --docdir | --docdi | --doc | --do)
1154 ac_prev=docdir ;;
1155 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1156 docdir=$ac_optarg ;;
1157
1158 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1159 ac_prev=dvidir ;;
1160 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1161 dvidir=$ac_optarg ;;
1162
1163 -enable-* | --enable-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid feature name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172 "enable_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval enable_$ac_useropt=\$ac_optarg ;;
1178
1179 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1180 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1181 | --exec | --exe | --ex)
1182 ac_prev=exec_prefix ;;
1183 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1184 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1185 | --exec=* | --exe=* | --ex=*)
1186 exec_prefix=$ac_optarg ;;
1187
1188 -gas | --gas | --ga | --g)
1189 # Obsolete; use --with-gas.
1190 with_gas=yes ;;
1191
1192 -help | --help | --hel | --he | -h)
1193 ac_init_help=long ;;
1194 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1195 ac_init_help=recursive ;;
1196 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1197 ac_init_help=short ;;
1198
1199 -host | --host | --hos | --ho)
1200 ac_prev=host_alias ;;
1201 -host=* | --host=* | --hos=* | --ho=*)
1202 host_alias=$ac_optarg ;;
1203
1204 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1205 ac_prev=htmldir ;;
1206 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1207 | --ht=*)
1208 htmldir=$ac_optarg ;;
1209
1210 -includedir | --includedir | --includedi | --included | --include \
1211 | --includ | --inclu | --incl | --inc)
1212 ac_prev=includedir ;;
1213 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1214 | --includ=* | --inclu=* | --incl=* | --inc=*)
1215 includedir=$ac_optarg ;;
1216
1217 -infodir | --infodir | --infodi | --infod | --info | --inf)
1218 ac_prev=infodir ;;
1219 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1220 infodir=$ac_optarg ;;
1221
1222 -libdir | --libdir | --libdi | --libd)
1223 ac_prev=libdir ;;
1224 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1225 libdir=$ac_optarg ;;
1226
1227 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1228 | --libexe | --libex | --libe)
1229 ac_prev=libexecdir ;;
1230 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1231 | --libexe=* | --libex=* | --libe=*)
1232 libexecdir=$ac_optarg ;;
1233
1234 -localedir | --localedir | --localedi | --localed | --locale)
1235 ac_prev=localedir ;;
1236 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1237 localedir=$ac_optarg ;;
1238
1239 -localstatedir | --localstatedir | --localstatedi | --localstated \
1240 | --localstate | --localstat | --localsta | --localst | --locals)
1241 ac_prev=localstatedir ;;
1242 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1243 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1244 localstatedir=$ac_optarg ;;
1245
1246 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1247 ac_prev=mandir ;;
1248 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1249 mandir=$ac_optarg ;;
1250
1251 -nfp | --nfp | --nf)
1252 # Obsolete; use --without-fp.
1253 with_fp=no ;;
1254
1255 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1256 | --no-cr | --no-c | -n)
1257 no_create=yes ;;
1258
1259 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1260 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1261 no_recursion=yes ;;
1262
1263 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1264 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1265 | --oldin | --oldi | --old | --ol | --o)
1266 ac_prev=oldincludedir ;;
1267 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1268 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1269 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1270 oldincludedir=$ac_optarg ;;
1271
1272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1273 ac_prev=prefix ;;
1274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1275 prefix=$ac_optarg ;;
1276
1277 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1278 | --program-pre | --program-pr | --program-p)
1279 ac_prev=program_prefix ;;
1280 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1281 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1282 program_prefix=$ac_optarg ;;
1283
1284 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1285 | --program-suf | --program-su | --program-s)
1286 ac_prev=program_suffix ;;
1287 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1288 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1289 program_suffix=$ac_optarg ;;
1290
1291 -program-transform-name | --program-transform-name \
1292 | --program-transform-nam | --program-transform-na \
1293 | --program-transform-n | --program-transform- \
1294 | --program-transform | --program-transfor \
1295 | --program-transfo | --program-transf \
1296 | --program-trans | --program-tran \
1297 | --progr-tra | --program-tr | --program-t)
1298 ac_prev=program_transform_name ;;
1299 -program-transform-name=* | --program-transform-name=* \
1300 | --program-transform-nam=* | --program-transform-na=* \
1301 | --program-transform-n=* | --program-transform-=* \
1302 | --program-transform=* | --program-transfor=* \
1303 | --program-transfo=* | --program-transf=* \
1304 | --program-trans=* | --program-tran=* \
1305 | --progr-tra=* | --program-tr=* | --program-t=*)
1306 program_transform_name=$ac_optarg ;;
1307
1308 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1309 ac_prev=pdfdir ;;
1310 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1311 pdfdir=$ac_optarg ;;
1312
1313 -psdir | --psdir | --psdi | --psd | --ps)
1314 ac_prev=psdir ;;
1315 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1316 psdir=$ac_optarg ;;
1317
1318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1319 | -silent | --silent | --silen | --sile | --sil)
1320 silent=yes ;;
1321
1322 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1323 ac_prev=sbindir ;;
1324 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1325 | --sbi=* | --sb=*)
1326 sbindir=$ac_optarg ;;
1327
1328 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1329 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1330 | --sharedst | --shareds | --shared | --share | --shar \
1331 | --sha | --sh)
1332 ac_prev=sharedstatedir ;;
1333 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1334 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1335 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1336 | --sha=* | --sh=*)
1337 sharedstatedir=$ac_optarg ;;
1338
1339 -site | --site | --sit)
1340 ac_prev=site ;;
1341 -site=* | --site=* | --sit=*)
1342 site=$ac_optarg ;;
1343
1344 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1345 ac_prev=srcdir ;;
1346 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1347 srcdir=$ac_optarg ;;
1348
1349 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1350 | --syscon | --sysco | --sysc | --sys | --sy)
1351 ac_prev=sysconfdir ;;
1352 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1353 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1354 sysconfdir=$ac_optarg ;;
1355
1356 -target | --target | --targe | --targ | --tar | --ta | --t)
1357 ac_prev=target_alias ;;
1358 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1359 target_alias=$ac_optarg ;;
1360
1361 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1362 verbose=yes ;;
1363
1364 -version | --version | --versio | --versi | --vers | -V)
1365 ac_init_version=: ;;
1366
1367 -with-* | --with-*)
1368 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1369 # Reject names that are not valid shell variable names.
1370 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1371 as_fn_error $? "invalid package name: $ac_useropt"
1372 ac_useropt_orig=$ac_useropt
1373 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1374 case $ac_user_opts in
1375 *"
1376 "with_$ac_useropt"
1377 "*) ;;
1378 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1379 ac_unrecognized_sep=', ';;
1380 esac
1381 eval with_$ac_useropt=\$ac_optarg ;;
1382
1383 -without-* | --without-*)
1384 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1385 # Reject names that are not valid shell variable names.
1386 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1387 as_fn_error $? "invalid package name: $ac_useropt"
1388 ac_useropt_orig=$ac_useropt
1389 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1390 case $ac_user_opts in
1391 *"
1392 "with_$ac_useropt"
1393 "*) ;;
1394 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1395 ac_unrecognized_sep=', ';;
1396 esac
1397 eval with_$ac_useropt=no ;;
1398
1399 --x)
1400 # Obsolete; use --with-x.
1401 with_x=yes ;;
1402
1403 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1404 | --x-incl | --x-inc | --x-in | --x-i)
1405 ac_prev=x_includes ;;
1406 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1407 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1408 x_includes=$ac_optarg ;;
1409
1410 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1411 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1412 ac_prev=x_libraries ;;
1413 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1414 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1415 x_libraries=$ac_optarg ;;
1416
1417 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1418 Try \`$0 --help' for more information"
1419 ;;
1420
1421 *=*)
1422 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1423 # Reject names that are not valid shell variable names.
1424 case $ac_envvar in #(
1425 '' | [0-9]* | *[!_$as_cr_alnum]* )
1426 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1427 esac
1428 eval $ac_envvar=\$ac_optarg
1429 export $ac_envvar ;;
1430
1431 *)
1432 # FIXME: should be removed in autoconf 3.0.
1433 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1434 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1435 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1436 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1437 ;;
1438
1439 esac
1440 done
1441
1442 if test -n "$ac_prev"; then
1443 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1444 as_fn_error $? "missing argument to $ac_option"
1445 fi
1446
1447 if test -n "$ac_unrecognized_opts"; then
1448 case $enable_option_checking in
1449 no) ;;
1450 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1451 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1452 esac
1453 fi
1454
1455 # Check all directory arguments for consistency.
1456 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1457 datadir sysconfdir sharedstatedir localstatedir includedir \
1458 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1459 libdir localedir mandir
1460 do
1461 eval ac_val=\$$ac_var
1462 # Remove trailing slashes.
1463 case $ac_val in
1464 */ )
1465 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1466 eval $ac_var=\$ac_val;;
1467 esac
1468 # Be sure to have absolute directory names.
1469 case $ac_val in
1470 [\\/$]* | ?:[\\/]* ) continue;;
1471 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1472 esac
1473 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1474 done
1475
1476 # There might be people who depend on the old broken behavior: `$host'
1477 # used to hold the argument of --host etc.
1478 # FIXME: To remove some day.
1479 build=$build_alias
1480 host=$host_alias
1481 target=$target_alias
1482
1483 # FIXME: To remove some day.
1484 if test "x$host_alias" != x; then
1485 if test "x$build_alias" = x; then
1486 cross_compiling=maybe
1487 elif test "x$build_alias" != "x$host_alias"; then
1488 cross_compiling=yes
1489 fi
1490 fi
1491
1492 ac_tool_prefix=
1493 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1494
1495 test "$silent" = yes && exec 6>/dev/null
1496
1497
1498 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1499 ac_ls_di=`ls -di .` &&
1500 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1501 as_fn_error $? "working directory cannot be determined"
1502 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1503 as_fn_error $? "pwd does not report name of working directory"
1504
1505
1506 # Find the source files, if location was not specified.
1507 if test -z "$srcdir"; then
1508 ac_srcdir_defaulted=yes
1509 # Try the directory containing this script, then the parent directory.
1510 ac_confdir=`$as_dirname -- "$as_myself" ||
1511 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1512 X"$as_myself" : 'X\(//\)[^/]' \| \
1513 X"$as_myself" : 'X\(//\)$' \| \
1514 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1515 $as_echo X"$as_myself" |
1516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1517 s//\1/
1518 q
1519 }
1520 /^X\(\/\/\)[^/].*/{
1521 s//\1/
1522 q
1523 }
1524 /^X\(\/\/\)$/{
1525 s//\1/
1526 q
1527 }
1528 /^X\(\/\).*/{
1529 s//\1/
1530 q
1531 }
1532 s/.*/./; q'`
1533 srcdir=$ac_confdir
1534 if test ! -r "$srcdir/$ac_unique_file"; then
1535 srcdir=..
1536 fi
1537 else
1538 ac_srcdir_defaulted=no
1539 fi
1540 if test ! -r "$srcdir/$ac_unique_file"; then
1541 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1542 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1543 fi
1544 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1545 ac_abs_confdir=`(
1546 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1547 pwd)`
1548 # When building in place, set srcdir=.
1549 if test "$ac_abs_confdir" = "$ac_pwd"; then
1550 srcdir=.
1551 fi
1552 # Remove unnecessary trailing slashes from srcdir.
1553 # Double slashes in file names in object file debugging info
1554 # mess up M-x gdb in Emacs.
1555 case $srcdir in
1556 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1557 esac
1558 for ac_var in $ac_precious_vars; do
1559 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1560 eval ac_env_${ac_var}_value=\$${ac_var}
1561 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1562 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1563 done
1564
1565 #
1566 # Report the --help message.
1567 #
1568 if test "$ac_init_help" = "long"; then
1569 # Omit some internal or obsolete options to make the list less imposing.
1570 # This message is too long to be a string in the A/UX 3.1 sh.
1571 cat <<_ACEOF
1572 \`configure' configures this package to adapt to many kinds of systems.
1573
1574 Usage: $0 [OPTION]... [VAR=VALUE]...
1575
1576 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1577 VAR=VALUE. See below for descriptions of some of the useful variables.
1578
1579 Defaults for the options are specified in brackets.
1580
1581 Configuration:
1582 -h, --help display this help and exit
1583 --help=short display options specific to this package
1584 --help=recursive display the short help of all the included packages
1585 -V, --version display version information and exit
1586 -q, --quiet, --silent do not print \`checking ...' messages
1587 --cache-file=FILE cache test results in FILE [disabled]
1588 -C, --config-cache alias for \`--cache-file=config.cache'
1589 -n, --no-create do not create output files
1590 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1591
1592 Installation directories:
1593 --prefix=PREFIX install architecture-independent files in PREFIX
1594 [$ac_default_prefix]
1595 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1596 [PREFIX]
1597
1598 By default, \`make install' will install all the files in
1599 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1600 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1601 for instance \`--prefix=\$HOME'.
1602
1603 For better control, use the options below.
1604
1605 Fine tuning of the installation directories:
1606 --bindir=DIR user executables [EPREFIX/bin]
1607 --sbindir=DIR system admin executables [EPREFIX/sbin]
1608 --libexecdir=DIR program executables [EPREFIX/libexec]
1609 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1610 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1611 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1612 --libdir=DIR object code libraries [EPREFIX/lib]
1613 --includedir=DIR C header files [PREFIX/include]
1614 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1615 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1616 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1617 --infodir=DIR info documentation [DATAROOTDIR/info]
1618 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1619 --mandir=DIR man documentation [DATAROOTDIR/man]
1620 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1621 --htmldir=DIR html documentation [DOCDIR]
1622 --dvidir=DIR dvi documentation [DOCDIR]
1623 --pdfdir=DIR pdf documentation [DOCDIR]
1624 --psdir=DIR ps documentation [DOCDIR]
1625 _ACEOF
1626
1627 cat <<\_ACEOF
1628
1629 Program names:
1630 --program-prefix=PREFIX prepend PREFIX to installed program names
1631 --program-suffix=SUFFIX append SUFFIX to installed program names
1632 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1633
1634 System types:
1635 --build=BUILD configure for building on BUILD [guessed]
1636 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1637 --target=TARGET configure for building compilers for TARGET [HOST]
1638 _ACEOF
1639 fi
1640
1641 if test -n "$ac_init_help"; then
1642
1643 cat <<\_ACEOF
1644
1645 Optional Features:
1646 --disable-option-checking ignore unrecognized --enable/--with options
1647 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1648 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1649 --enable-generated-files-in-srcdir
1650 put copies of generated files in source dir intended
1651 for creating source tarballs for users without
1652 texinfo bison or flex
1653 --disable-largefile omit support for large files
1654 --disable-build-format-warnings
1655 don't use -Wformat while building GCC
1656 --enable-werror-always enable -Werror despite compiler version
1657 --enable-checking[=LIST]
1658 enable expensive run-time checks. With LIST, enable
1659 only specific categories of checks. Categories are:
1660 yes,no,all,none,release. Flags are:
1661 assert,df,extra,fold,gc,gcac,gimple,misc,
1662 rtlflag,rtl,runtime,tree,valgrind,types
1663 --enable-coverage[=LEVEL]
1664 enable compiler's code coverage collection. Use to
1665 measure compiler performance and locate unused parts
1666 of the compiler. With LEVEL, specify optimization.
1667 Values are opt, noopt, default is noopt
1668 --enable-gather-detailed-mem-stats
1669 enable detailed memory allocation stats gathering
1670 --enable-valgrind-annotations
1671 enable valgrind runtime interaction
1672 --enable-multilib enable library support for multiple ABIs
1673 --enable-multiarch enable support for multiarch paths
1674 --enable-__cxa_atexit enable __cxa_atexit for C++
1675 --enable-decimal-float={no,yes,bid,dpd}
1676 enable decimal float extension to C. Selecting 'bid'
1677 or 'dpd' choses which decimal floating point format
1678 to use
1679 --enable-fixed-point enable fixed-point arithmetic extension to C
1680 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1681 package
1682 --enable-tls enable or disable generation of tls code overriding
1683 the assembler check for tls support
1684 --enable-vtable-verify enable vtable verification feature
1685 --enable-objc-gc enable the use of Boehm's garbage collector with the
1686 GNU Objective-C runtime
1687 --disable-shared don't provide a shared libgcc
1688 --disable-gcov don't provide libgcov and related host tools
1689 --enable-languages=LIST specify which front-ends to build
1690 --disable-rpath do not hardcode runtime library paths
1691 --enable-sjlj-exceptions
1692 arrange to use setjmp/longjmp exception handling
1693 --enable-secureplt enable -msecure-plt by default for PowerPC
1694 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1695 Default to platform configuration
1696 --enable-large-address-aware
1697 Link mingw executables with --large-address-aware
1698 --enable-leading-mingw64-underscores
1699 enable leading underscores on 64 bit mingw targets
1700 --enable-cld enable -mcld by default for 32bit x86
1701 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1702 --disable-win32-registry
1703 disable lookup of installation paths in the Registry
1704 on Windows hosts
1705 --enable-win32-registry enable registry lookup (default)
1706 --enable-win32-registry=KEY
1707 use KEY instead of GCC version as the last portion
1708 of the registry key
1709 --enable-shared[=PKGS] build shared libraries [default=yes]
1710 --enable-static[=PKGS] build static libraries [default=yes]
1711 --enable-fast-install[=PKGS]
1712 optimize for fast installation [default=yes]
1713 --disable-libtool-lock avoid locking (might break parallel builds)
1714 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1715 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1716 --enable-gnu-indirect-function
1717 enable the use of the @gnu_indirect_function to
1718 glibc systems
1719 --enable-initfini-array use .init_array/.fini_array sections
1720 --enable-comdat enable COMDAT group support
1721
1722 --enable-standard-branch-protection
1723 enable Branch Target Identification Mechanism and
1724 Return Address Signing by default for AArch64
1725 --disable-standard-branch-protection
1726 disable Branch Target Identification Mechanism and
1727 Return Address Signing by default for AArch64
1728
1729
1730 --enable-fix-cortex-a53-835769
1731 enable workaround for AArch64 Cortex-A53 erratum
1732 835769 by default
1733 --disable-fix-cortex-a53-835769
1734 disable workaround for AArch64 Cortex-A53 erratum
1735 835769 by default
1736
1737
1738 --enable-fix-cortex-a53-843419
1739 enable workaround for AArch64 Cortex-A53 erratum
1740 843419 by default
1741 --disable-fix-cortex-a53-843419
1742 disable workaround for AArch64 Cortex-A53 erratum
1743 843419 by default
1744
1745 --enable-gnu-unique-object
1746 enable the use of the @gnu_unique_object ELF
1747 extension on glibc systems
1748 --enable-linker-build-id
1749 compiler will always pass --build-id to linker
1750 --enable-libssp enable linking against libssp
1751 --enable-default-ssp enable Stack Smashing Protection as default
1752 --enable-maintainer-mode
1753 enable make rules and dependencies not useful (and
1754 sometimes confusing) to the casual installer
1755 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1756 thrashing on the build machine
1757 --enable-version-specific-runtime-libs
1758 specify that runtime libraries should be installed
1759 in a compiler-specific directory
1760 --enable-plugin enable plugin support
1761 --enable-host-shared build host code as shared libraries
1762 --disable-libquadmath-support
1763 disable libquadmath support for Fortran
1764 --enable-default-pie enable Position Independent Executable as default
1765
1766 Optional Packages:
1767 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1768 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1769 --with-build-libsubdir=DIR Directory where to find libraries for build system
1770 --with-local-prefix=DIR specifies directory to put local include
1771 --with-native-system-header-dir=dir
1772 use dir as the directory to look for standard
1773 system header files in. Defaults to /usr/include.
1774 --with-build-sysroot=sysroot
1775 use sysroot as the system root during the build
1776 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1777 --with-gxx-include-dir=DIR
1778 specifies directory to put g++ header files
1779 --with-cpp-install-dir=DIR
1780 install the user visible C preprocessor in DIR
1781 (relative to PREFIX) as well as PREFIX/bin
1782 --with-gnu-ld arrange to work with GNU ld
1783 --with-ld arrange to use the specified ld (full pathname)
1784 --with-demangler-in-ld try to use demangler in GNU ld
1785 --with-gnu-as arrange to work with GNU as
1786 --with-as arrange to use the specified as (full pathname)
1787 --with-stabs arrange to use stabs instead of host debug format
1788 --with-stack-clash-protection-guard-size=size
1789 Set the default stack clash protection guard size
1790 for specific targets as a power of two in bytes.
1791 --with-dwarf2 force the default debug format to be DWARF 2
1792 --with-specs=SPECS add SPECS to driver command-line processing
1793 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1794 --with-bugurl=URL Direct users to URL to report a bug
1795 --with-documentation-root-url=URL
1796 Root for documentation URLs
1797 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1798 --with-zstd=PATH specify prefix directory for installed zstd library.
1799 Equivalent to --with-zstd-include=PATH/include plus
1800 --with-zstd-lib=PATH/lib
1801 --with-zstd-include=PATH
1802 specify directory for installed zstd include files
1803 --with-zstd-lib=PATH specify directory for the installed zstd library
1804 --with-gnu-ld assume the C compiler uses GNU ld default=no
1805 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1806 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1807 --with-gcc-major-version-only
1808 use only GCC major number in filesystem paths
1809 --with-pic try to use only PIC/non-PIC objects [default=use
1810 both]
1811 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1812 --with-plugin-ld=[ARG] specify the plugin linker
1813 --with-glibc-version=M.N
1814 assume GCC used with glibc version M.N or later
1815 --with-long-double-128 use 128-bit long double by default
1816 --with-long-double-format={ieee,ibm}
1817 Specify whether PowerPC long double uses IEEE or IBM format
1818
1819 --with-gc={page,zone} this option is not supported anymore. It used to
1820 choose the garbage collection mechanism to use with
1821 the compiler
1822 --with-system-zlib use installed libz
1823 --with-linker-hash-style={sysv,gnu,both}
1824 specify the linker hash style
1825 --with-diagnostics-color={never,auto,auto-if-env,always}
1826 specify the default of -fdiagnostics-color option
1827 auto-if-env stands for -fdiagnostics-color=auto if
1828 GCC_COLOR environment variable is present and
1829 -fdiagnostics-color=never otherwise
1830
1831 Some influential environment variables:
1832 CC C compiler command
1833 CFLAGS C compiler flags
1834 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1835 nonstandard directory <lib dir>
1836 LIBS libraries to pass to the linker, e.g. -l<library>
1837 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1838 you have headers in a nonstandard directory <include dir>
1839 CXX C++ compiler command
1840 CXXFLAGS C++ compiler flags
1841 CXXCPP C++ preprocessor
1842 CPP C preprocessor
1843 GMPLIBS How to link GMP
1844 GMPINC How to find GMP include files
1845 ISLLIBS How to link isl
1846 ISLINC How to find isl include files
1847
1848 Use these variables to override the choices made by `configure' or to help
1849 it to find libraries and programs with nonstandard names/locations.
1850
1851 Report bugs to the package provider.
1852 _ACEOF
1853 ac_status=$?
1854 fi
1855
1856 if test "$ac_init_help" = "recursive"; then
1857 # If there are subdirs, report their specific --help.
1858 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1859 test -d "$ac_dir" ||
1860 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1861 continue
1862 ac_builddir=.
1863
1864 case "$ac_dir" in
1865 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1866 *)
1867 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1868 # A ".." for each directory in $ac_dir_suffix.
1869 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1870 case $ac_top_builddir_sub in
1871 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1872 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1873 esac ;;
1874 esac
1875 ac_abs_top_builddir=$ac_pwd
1876 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1877 # for backward compatibility:
1878 ac_top_builddir=$ac_top_build_prefix
1879
1880 case $srcdir in
1881 .) # We are building in place.
1882 ac_srcdir=.
1883 ac_top_srcdir=$ac_top_builddir_sub
1884 ac_abs_top_srcdir=$ac_pwd ;;
1885 [\\/]* | ?:[\\/]* ) # Absolute name.
1886 ac_srcdir=$srcdir$ac_dir_suffix;
1887 ac_top_srcdir=$srcdir
1888 ac_abs_top_srcdir=$srcdir ;;
1889 *) # Relative name.
1890 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1891 ac_top_srcdir=$ac_top_build_prefix$srcdir
1892 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1893 esac
1894 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1895
1896 cd "$ac_dir" || { ac_status=$?; continue; }
1897 # Check for guested configure.
1898 if test -f "$ac_srcdir/configure.gnu"; then
1899 echo &&
1900 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1901 elif test -f "$ac_srcdir/configure"; then
1902 echo &&
1903 $SHELL "$ac_srcdir/configure" --help=recursive
1904 else
1905 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1906 fi || ac_status=$?
1907 cd "$ac_pwd" || { ac_status=$?; break; }
1908 done
1909 fi
1910
1911 test -n "$ac_init_help" && exit $ac_status
1912 if $ac_init_version; then
1913 cat <<\_ACEOF
1914 configure
1915 generated by GNU Autoconf 2.69
1916
1917 Copyright (C) 2012 Free Software Foundation, Inc.
1918 This configure script is free software; the Free Software Foundation
1919 gives unlimited permission to copy, distribute and modify it.
1920 _ACEOF
1921 exit
1922 fi
1923
1924 ## ------------------------ ##
1925 ## Autoconf initialization. ##
1926 ## ------------------------ ##
1927
1928 # ac_fn_c_try_compile LINENO
1929 # --------------------------
1930 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1931 ac_fn_c_try_compile ()
1932 {
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext
1935 if { { ac_try="$ac_compile"
1936 case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_compile") 2>conftest.err
1943 ac_status=$?
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1948 fi
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_c_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest.$ac_objext; then :
1954 ac_retval=0
1955 else
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1958
1959 ac_retval=1
1960 fi
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status $ac_retval
1963
1964 } # ac_fn_c_try_compile
1965
1966 # ac_fn_cxx_try_compile LINENO
1967 # ----------------------------
1968 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1969 ac_fn_cxx_try_compile ()
1970 {
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 rm -f conftest.$ac_objext
1973 if { { ac_try="$ac_compile"
1974 case "(($ac_try" in
1975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976 *) ac_try_echo=$ac_try;;
1977 esac
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980 (eval "$ac_compile") 2>conftest.err
1981 ac_status=$?
1982 if test -s conftest.err; then
1983 grep -v '^ *+' conftest.err >conftest.er1
1984 cat conftest.er1 >&5
1985 mv -f conftest.er1 conftest.err
1986 fi
1987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988 test $ac_status = 0; } && {
1989 test -z "$ac_cxx_werror_flag" ||
1990 test ! -s conftest.err
1991 } && test -s conftest.$ac_objext; then :
1992 ac_retval=0
1993 else
1994 $as_echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1996
1997 ac_retval=1
1998 fi
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 as_fn_set_status $ac_retval
2001
2002 } # ac_fn_cxx_try_compile
2003
2004 # ac_fn_cxx_try_cpp LINENO
2005 # ------------------------
2006 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2007 ac_fn_cxx_try_cpp ()
2008 {
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 if { { ac_try="$ac_cpp conftest.$ac_ext"
2011 case "(($ac_try" in
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2014 esac
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2018 ac_status=$?
2019 if test -s conftest.err; then
2020 grep -v '^ *+' conftest.err >conftest.er1
2021 cat conftest.er1 >&5
2022 mv -f conftest.er1 conftest.err
2023 fi
2024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025 test $ac_status = 0; } > conftest.i && {
2026 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2027 test ! -s conftest.err
2028 }; then :
2029 ac_retval=0
2030 else
2031 $as_echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2033
2034 ac_retval=1
2035 fi
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037 as_fn_set_status $ac_retval
2038
2039 } # ac_fn_cxx_try_cpp
2040
2041 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2042 # ---------------------------------------------------------
2043 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2044 # the include files in INCLUDES and setting the cache variable VAR
2045 # accordingly.
2046 ac_fn_cxx_check_header_mongrel ()
2047 {
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 if eval \${$3+:} false; then :
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 $as_echo_n "checking for $2... " >&6; }
2052 if eval \${$3+:} false; then :
2053 $as_echo_n "(cached) " >&6
2054 fi
2055 eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 else
2059 # Is the header compilable?
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2061 $as_echo_n "checking $2 usability... " >&6; }
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2064 $4
2065 #include <$2>
2066 _ACEOF
2067 if ac_fn_cxx_try_compile "$LINENO"; then :
2068 ac_header_compiler=yes
2069 else
2070 ac_header_compiler=no
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2074 $as_echo "$ac_header_compiler" >&6; }
2075
2076 # Is the header present?
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2078 $as_echo_n "checking $2 presence... " >&6; }
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2081 #include <$2>
2082 _ACEOF
2083 if ac_fn_cxx_try_cpp "$LINENO"; then :
2084 ac_header_preproc=yes
2085 else
2086 ac_header_preproc=no
2087 fi
2088 rm -f conftest.err conftest.i conftest.$ac_ext
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2090 $as_echo "$ac_header_preproc" >&6; }
2091
2092 # So? What about this header?
2093 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2094 yes:no: )
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2096 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2098 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2099 ;;
2100 no:yes:* )
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2102 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2104 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2106 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2108 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2110 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2111 ;;
2112 esac
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2114 $as_echo_n "checking for $2... " >&6; }
2115 if eval \${$3+:} false; then :
2116 $as_echo_n "(cached) " >&6
2117 else
2118 eval "$3=\$ac_header_compiler"
2119 fi
2120 eval ac_res=\$$3
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2123 fi
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125
2126 } # ac_fn_cxx_check_header_mongrel
2127
2128 # ac_fn_cxx_try_run LINENO
2129 # ------------------------
2130 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2131 # that executables *can* be run.
2132 ac_fn_cxx_try_run ()
2133 {
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 if { { ac_try="$ac_link"
2136 case "(($ac_try" in
2137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2138 *) ac_try_echo=$ac_try;;
2139 esac
2140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2141 $as_echo "$ac_try_echo"; } >&5
2142 (eval "$ac_link") 2>&5
2143 ac_status=$?
2144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2145 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2146 { { case "(($ac_try" in
2147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2148 *) ac_try_echo=$ac_try;;
2149 esac
2150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2151 $as_echo "$ac_try_echo"; } >&5
2152 (eval "$ac_try") 2>&5
2153 ac_status=$?
2154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2155 test $ac_status = 0; }; }; then :
2156 ac_retval=0
2157 else
2158 $as_echo "$as_me: program exited with status $ac_status" >&5
2159 $as_echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2161
2162 ac_retval=$ac_status
2163 fi
2164 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 as_fn_set_status $ac_retval
2167
2168 } # ac_fn_cxx_try_run
2169
2170 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2171 # ---------------------------------------------------------
2172 # Tests whether HEADER exists and can be compiled using the include files in
2173 # INCLUDES, setting the cache variable VAR accordingly.
2174 ac_fn_cxx_check_header_compile ()
2175 {
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2178 $as_echo_n "checking for $2... " >&6; }
2179 if eval \${$3+:} false; then :
2180 $as_echo_n "(cached) " >&6
2181 else
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2184 $4
2185 #include <$2>
2186 _ACEOF
2187 if ac_fn_cxx_try_compile "$LINENO"; then :
2188 eval "$3=yes"
2189 else
2190 eval "$3=no"
2191 fi
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 fi
2194 eval ac_res=\$$3
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196 $as_echo "$ac_res" >&6; }
2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198
2199 } # ac_fn_cxx_check_header_compile
2200
2201 # ac_fn_c_try_cpp LINENO
2202 # ----------------------
2203 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2204 ac_fn_c_try_cpp ()
2205 {
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 if { { ac_try="$ac_cpp conftest.$ac_ext"
2208 case "(($ac_try" in
2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2211 esac
2212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2213 $as_echo "$ac_try_echo"; } >&5
2214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2215 ac_status=$?
2216 if test -s conftest.err; then
2217 grep -v '^ *+' conftest.err >conftest.er1
2218 cat conftest.er1 >&5
2219 mv -f conftest.er1 conftest.err
2220 fi
2221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2222 test $ac_status = 0; } > conftest.i && {
2223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2224 test ! -s conftest.err
2225 }; then :
2226 ac_retval=0
2227 else
2228 $as_echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2230
2231 ac_retval=1
2232 fi
2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2234 as_fn_set_status $ac_retval
2235
2236 } # ac_fn_c_try_cpp
2237
2238 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2239 # ----------------------------------------------
2240 # Tries to find the compile-time value of EXPR in a program that includes
2241 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2242 # computed
2243 ac_fn_cxx_compute_int ()
2244 {
2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246 if test "$cross_compiling" = yes; then
2247 # Depending upon the size, compute the lo and hi bounds.
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2250 $4
2251 int
2252 main ()
2253 {
2254 static int test_array [1 - 2 * !(($2) >= 0)];
2255 test_array [0] = 0;
2256 return test_array [0];
2257
2258 ;
2259 return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_cxx_try_compile "$LINENO"; then :
2263 ac_lo=0 ac_mid=0
2264 while :; do
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2267 $4
2268 int
2269 main ()
2270 {
2271 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2272 test_array [0] = 0;
2273 return test_array [0];
2274
2275 ;
2276 return 0;
2277 }
2278 _ACEOF
2279 if ac_fn_cxx_try_compile "$LINENO"; then :
2280 ac_hi=$ac_mid; break
2281 else
2282 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2283 if test $ac_lo -le $ac_mid; then
2284 ac_lo= ac_hi=
2285 break
2286 fi
2287 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2288 fi
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 done
2291 else
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2294 $4
2295 int
2296 main ()
2297 {
2298 static int test_array [1 - 2 * !(($2) < 0)];
2299 test_array [0] = 0;
2300 return test_array [0];
2301
2302 ;
2303 return 0;
2304 }
2305 _ACEOF
2306 if ac_fn_cxx_try_compile "$LINENO"; then :
2307 ac_hi=-1 ac_mid=-1
2308 while :; do
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2311 $4
2312 int
2313 main ()
2314 {
2315 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2316 test_array [0] = 0;
2317 return test_array [0];
2318
2319 ;
2320 return 0;
2321 }
2322 _ACEOF
2323 if ac_fn_cxx_try_compile "$LINENO"; then :
2324 ac_lo=$ac_mid; break
2325 else
2326 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2327 if test $ac_mid -le $ac_hi; then
2328 ac_lo= ac_hi=
2329 break
2330 fi
2331 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2332 fi
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 done
2335 else
2336 ac_lo= ac_hi=
2337 fi
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 fi
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341 # Binary search between lo and hi bounds.
2342 while test "x$ac_lo" != "x$ac_hi"; do
2343 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345 /* end confdefs.h. */
2346 $4
2347 int
2348 main ()
2349 {
2350 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2351 test_array [0] = 0;
2352 return test_array [0];
2353
2354 ;
2355 return 0;
2356 }
2357 _ACEOF
2358 if ac_fn_cxx_try_compile "$LINENO"; then :
2359 ac_hi=$ac_mid
2360 else
2361 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2362 fi
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 done
2365 case $ac_lo in #((
2366 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2367 '') ac_retval=1 ;;
2368 esac
2369 else
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2372 $4
2373 static long int longval () { return $2; }
2374 static unsigned long int ulongval () { return $2; }
2375 #include <stdio.h>
2376 #include <stdlib.h>
2377 int
2378 main ()
2379 {
2380
2381 FILE *f = fopen ("conftest.val", "w");
2382 if (! f)
2383 return 1;
2384 if (($2) < 0)
2385 {
2386 long int i = longval ();
2387 if (i != ($2))
2388 return 1;
2389 fprintf (f, "%ld", i);
2390 }
2391 else
2392 {
2393 unsigned long int i = ulongval ();
2394 if (i != ($2))
2395 return 1;
2396 fprintf (f, "%lu", i);
2397 }
2398 /* Do not output a trailing newline, as this causes \r\n confusion
2399 on some platforms. */
2400 return ferror (f) || fclose (f) != 0;
2401
2402 ;
2403 return 0;
2404 }
2405 _ACEOF
2406 if ac_fn_cxx_try_run "$LINENO"; then :
2407 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2408 else
2409 ac_retval=1
2410 fi
2411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2412 conftest.$ac_objext conftest.beam conftest.$ac_ext
2413 rm -f conftest.val
2414
2415 fi
2416 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2417 as_fn_set_status $ac_retval
2418
2419 } # ac_fn_cxx_compute_int
2420
2421 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2422 # ---------------------------------------------
2423 # Tests whether TYPE exists after having included INCLUDES, setting cache
2424 # variable VAR accordingly.
2425 ac_fn_cxx_check_type ()
2426 {
2427 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2429 $as_echo_n "checking for $2... " >&6; }
2430 if eval \${$3+:} false; then :
2431 $as_echo_n "(cached) " >&6
2432 else
2433 eval "$3=no"
2434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2435 /* end confdefs.h. */
2436 $4
2437 int
2438 main ()
2439 {
2440 if (sizeof ($2))
2441 return 0;
2442 ;
2443 return 0;
2444 }
2445 _ACEOF
2446 if ac_fn_cxx_try_compile "$LINENO"; then :
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h. */
2449 $4
2450 int
2451 main ()
2452 {
2453 if (sizeof (($2)))
2454 return 0;
2455 ;
2456 return 0;
2457 }
2458 _ACEOF
2459 if ac_fn_cxx_try_compile "$LINENO"; then :
2460
2461 else
2462 eval "$3=yes"
2463 fi
2464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465 fi
2466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467 fi
2468 eval ac_res=\$$3
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2471 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2472
2473 } # ac_fn_cxx_check_type
2474
2475 # ac_fn_c_find_intX_t LINENO BITS VAR
2476 # -----------------------------------
2477 # Finds a signed integer type with width BITS, setting cache variable VAR
2478 # accordingly.
2479 ac_fn_c_find_intX_t ()
2480 {
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2483 $as_echo_n "checking for int$2_t... " >&6; }
2484 if eval \${$3+:} false; then :
2485 $as_echo_n "(cached) " >&6
2486 else
2487 eval "$3=no"
2488 # Order is important - never check a type that is potentially smaller
2489 # than half of the expected target width.
2490 for ac_type in int$2_t 'int' 'long int' \
2491 'long long int' 'short int' 'signed char'; do
2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493 /* end confdefs.h. */
2494 $ac_includes_default
2495 enum { N = $2 / 2 - 1 };
2496 int
2497 main ()
2498 {
2499 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2500 test_array [0] = 0;
2501 return test_array [0];
2502
2503 ;
2504 return 0;
2505 }
2506 _ACEOF
2507 if ac_fn_cxx_try_compile "$LINENO"; then :
2508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2509 /* end confdefs.h. */
2510 $ac_includes_default
2511 enum { N = $2 / 2 - 1 };
2512 int
2513 main ()
2514 {
2515 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2516 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2517 test_array [0] = 0;
2518 return test_array [0];
2519
2520 ;
2521 return 0;
2522 }
2523 _ACEOF
2524 if ac_fn_cxx_try_compile "$LINENO"; then :
2525
2526 else
2527 case $ac_type in #(
2528 int$2_t) :
2529 eval "$3=yes" ;; #(
2530 *) :
2531 eval "$3=\$ac_type" ;;
2532 esac
2533 fi
2534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2535 fi
2536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2537 if eval test \"x\$"$3"\" = x"no"; then :
2538
2539 else
2540 break
2541 fi
2542 done
2543 fi
2544 eval ac_res=\$$3
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2546 $as_echo "$ac_res" >&6; }
2547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2548
2549 } # ac_fn_c_find_intX_t
2550
2551 # ac_fn_cxx_try_link LINENO
2552 # -------------------------
2553 # Try to link conftest.$ac_ext, and return whether this succeeded.
2554 ac_fn_cxx_try_link ()
2555 {
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 rm -f conftest.$ac_objext conftest$ac_exeext
2558 if { { ac_try="$ac_link"
2559 case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2562 esac
2563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2564 $as_echo "$ac_try_echo"; } >&5
2565 (eval "$ac_link") 2>conftest.err
2566 ac_status=$?
2567 if test -s conftest.err; then
2568 grep -v '^ *+' conftest.err >conftest.er1
2569 cat conftest.er1 >&5
2570 mv -f conftest.er1 conftest.err
2571 fi
2572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2573 test $ac_status = 0; } && {
2574 test -z "$ac_cxx_werror_flag" ||
2575 test ! -s conftest.err
2576 } && test -s conftest$ac_exeext && {
2577 test "$cross_compiling" = yes ||
2578 test -x conftest$ac_exeext
2579 }; then :
2580 ac_retval=0
2581 else
2582 $as_echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2584
2585 ac_retval=1
2586 fi
2587 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2588 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2589 # interfere with the next link command; also delete a directory that is
2590 # left behind by Apple's compiler. We do this before executing the actions.
2591 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2593 as_fn_set_status $ac_retval
2594
2595 } # ac_fn_cxx_try_link
2596
2597 # ac_fn_c_find_uintX_t LINENO BITS VAR
2598 # ------------------------------------
2599 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2600 # accordingly.
2601 ac_fn_c_find_uintX_t ()
2602 {
2603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2605 $as_echo_n "checking for uint$2_t... " >&6; }
2606 if eval \${$3+:} false; then :
2607 $as_echo_n "(cached) " >&6
2608 else
2609 eval "$3=no"
2610 # Order is important - never check a type that is potentially smaller
2611 # than half of the expected target width.
2612 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2613 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h. */
2616 $ac_includes_default
2617 int
2618 main ()
2619 {
2620 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2621 test_array [0] = 0;
2622 return test_array [0];
2623
2624 ;
2625 return 0;
2626 }
2627 _ACEOF
2628 if ac_fn_cxx_try_compile "$LINENO"; then :
2629 case $ac_type in #(
2630 uint$2_t) :
2631 eval "$3=yes" ;; #(
2632 *) :
2633 eval "$3=\$ac_type" ;;
2634 esac
2635 fi
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 if eval test \"x\$"$3"\" = x"no"; then :
2638
2639 else
2640 break
2641 fi
2642 done
2643 fi
2644 eval ac_res=\$$3
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646 $as_echo "$ac_res" >&6; }
2647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2648
2649 } # ac_fn_c_find_uintX_t
2650
2651 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2652 # ------------------------------------------------
2653 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2654 ac_fn_cxx_check_header_preproc ()
2655 {
2656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2658 $as_echo_n "checking for $2... " >&6; }
2659 if eval \${$3+:} false; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663 /* end confdefs.h. */
2664 #include <$2>
2665 _ACEOF
2666 if ac_fn_cxx_try_cpp "$LINENO"; then :
2667 eval "$3=yes"
2668 else
2669 eval "$3=no"
2670 fi
2671 rm -f conftest.err conftest.i conftest.$ac_ext
2672 fi
2673 eval ac_res=\$$3
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2675 $as_echo "$ac_res" >&6; }
2676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2677
2678 } # ac_fn_cxx_check_header_preproc
2679
2680 # ac_fn_cxx_check_func LINENO FUNC VAR
2681 # ------------------------------------
2682 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2683 ac_fn_cxx_check_func ()
2684 {
2685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2687 $as_echo_n "checking for $2... " >&6; }
2688 if eval \${$3+:} false; then :
2689 $as_echo_n "(cached) " >&6
2690 else
2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692 /* end confdefs.h. */
2693 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2695 #define $2 innocuous_$2
2696
2697 /* System header to define __stub macros and hopefully few prototypes,
2698 which can conflict with char $2 (); below.
2699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2700 <limits.h> exists even on freestanding compilers. */
2701
2702 #ifdef __STDC__
2703 # include <limits.h>
2704 #else
2705 # include <assert.h>
2706 #endif
2707
2708 #undef $2
2709
2710 /* Override any GCC internal prototype to avoid an error.
2711 Use char because int might match the return type of a GCC
2712 builtin and then its argument prototype would still apply. */
2713 #ifdef __cplusplus
2714 extern "C"
2715 #endif
2716 char $2 ();
2717 /* The GNU C library defines this for functions which it implements
2718 to always fail with ENOSYS. Some functions are actually named
2719 something starting with __ and the normal name is an alias. */
2720 #if defined __stub_$2 || defined __stub___$2
2721 choke me
2722 #endif
2723
2724 int
2725 main ()
2726 {
2727 return $2 ();
2728 ;
2729 return 0;
2730 }
2731 _ACEOF
2732 if ac_fn_cxx_try_link "$LINENO"; then :
2733 eval "$3=yes"
2734 else
2735 eval "$3=no"
2736 fi
2737 rm -f core conftest.err conftest.$ac_objext \
2738 conftest$ac_exeext conftest.$ac_ext
2739 fi
2740 eval ac_res=\$$3
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2742 $as_echo "$ac_res" >&6; }
2743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2744
2745 } # ac_fn_cxx_check_func
2746
2747 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2748 # -----------------------------------------------
2749 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2750 # accordingly.
2751 ac_fn_cxx_check_decl ()
2752 {
2753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2754 as_decl_name=`echo $2|sed 's/ *(.*//'`
2755 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2757 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2758 if eval \${$3+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2762 /* end confdefs.h. */
2763 $4
2764 int
2765 main ()
2766 {
2767 #ifndef $as_decl_name
2768 #ifdef __cplusplus
2769 (void) $as_decl_use;
2770 #else
2771 (void) $as_decl_name;
2772 #endif
2773 #endif
2774
2775 ;
2776 return 0;
2777 }
2778 _ACEOF
2779 if ac_fn_cxx_try_compile "$LINENO"; then :
2780 eval "$3=yes"
2781 else
2782 eval "$3=no"
2783 fi
2784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2785 fi
2786 eval ac_res=\$$3
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2790
2791 } # ac_fn_cxx_check_decl
2792
2793 # ac_fn_c_try_link LINENO
2794 # -----------------------
2795 # Try to link conftest.$ac_ext, and return whether this succeeded.
2796 ac_fn_c_try_link ()
2797 {
2798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2799 rm -f conftest.$ac_objext conftest$ac_exeext
2800 if { { ac_try="$ac_link"
2801 case "(($ac_try" in
2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2804 esac
2805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2806 $as_echo "$ac_try_echo"; } >&5
2807 (eval "$ac_link") 2>conftest.err
2808 ac_status=$?
2809 if test -s conftest.err; then
2810 grep -v '^ *+' conftest.err >conftest.er1
2811 cat conftest.er1 >&5
2812 mv -f conftest.er1 conftest.err
2813 fi
2814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2815 test $ac_status = 0; } && {
2816 test -z "$ac_c_werror_flag" ||
2817 test ! -s conftest.err
2818 } && test -s conftest$ac_exeext && {
2819 test "$cross_compiling" = yes ||
2820 test -x conftest$ac_exeext
2821 }; then :
2822 ac_retval=0
2823 else
2824 $as_echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2826
2827 ac_retval=1
2828 fi
2829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2831 # interfere with the next link command; also delete a directory that is
2832 # left behind by Apple's compiler. We do this before executing the actions.
2833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2835 as_fn_set_status $ac_retval
2836
2837 } # ac_fn_c_try_link
2838
2839 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2840 # ----------------------------------------------
2841 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2842 ac_fn_c_check_header_preproc ()
2843 {
2844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2846 $as_echo_n "checking for $2... " >&6; }
2847 if eval \${$3+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2851 /* end confdefs.h. */
2852 #include <$2>
2853 _ACEOF
2854 if ac_fn_c_try_cpp "$LINENO"; then :
2855 eval "$3=yes"
2856 else
2857 eval "$3=no"
2858 fi
2859 rm -f conftest.err conftest.i conftest.$ac_ext
2860 fi
2861 eval ac_res=\$$3
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2863 $as_echo "$ac_res" >&6; }
2864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2865
2866 } # ac_fn_c_check_header_preproc
2867
2868 # ac_fn_c_check_func LINENO FUNC VAR
2869 # ----------------------------------
2870 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2871 ac_fn_c_check_func ()
2872 {
2873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2875 $as_echo_n "checking for $2... " >&6; }
2876 if eval \${$3+:} false; then :
2877 $as_echo_n "(cached) " >&6
2878 else
2879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2880 /* end confdefs.h. */
2881 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2883 #define $2 innocuous_$2
2884
2885 /* System header to define __stub macros and hopefully few prototypes,
2886 which can conflict with char $2 (); below.
2887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2888 <limits.h> exists even on freestanding compilers. */
2889
2890 #ifdef __STDC__
2891 # include <limits.h>
2892 #else
2893 # include <assert.h>
2894 #endif
2895
2896 #undef $2
2897
2898 /* Override any GCC internal prototype to avoid an error.
2899 Use char because int might match the return type of a GCC
2900 builtin and then its argument prototype would still apply. */
2901 #ifdef __cplusplus
2902 extern "C"
2903 #endif
2904 char $2 ();
2905 /* The GNU C library defines this for functions which it implements
2906 to always fail with ENOSYS. Some functions are actually named
2907 something starting with __ and the normal name is an alias. */
2908 #if defined __stub_$2 || defined __stub___$2
2909 choke me
2910 #endif
2911
2912 int
2913 main ()
2914 {
2915 return $2 ();
2916 ;
2917 return 0;
2918 }
2919 _ACEOF
2920 if ac_fn_c_try_link "$LINENO"; then :
2921 eval "$3=yes"
2922 else
2923 eval "$3=no"
2924 fi
2925 rm -f core conftest.err conftest.$ac_objext \
2926 conftest$ac_exeext conftest.$ac_ext
2927 fi
2928 eval ac_res=\$$3
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2930 $as_echo "$ac_res" >&6; }
2931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2932
2933 } # ac_fn_c_check_func
2934 cat >config.log <<_ACEOF
2935 This file contains any messages produced by compilers while
2936 running configure, to aid debugging if configure makes a mistake.
2937
2938 It was created by $as_me, which was
2939 generated by GNU Autoconf 2.69. Invocation command line was
2940
2941 $ $0 $@
2942
2943 _ACEOF
2944 exec 5>>config.log
2945 {
2946 cat <<_ASUNAME
2947 ## --------- ##
2948 ## Platform. ##
2949 ## --------- ##
2950
2951 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2952 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2953 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2954 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2955 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2956
2957 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2958 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2959
2960 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2961 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2962 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2963 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2964 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2965 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2966 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2967
2968 _ASUNAME
2969
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2972 do
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 $as_echo "PATH: $as_dir"
2976 done
2977 IFS=$as_save_IFS
2978
2979 } >&5
2980
2981 cat >&5 <<_ACEOF
2982
2983
2984 ## ----------- ##
2985 ## Core tests. ##
2986 ## ----------- ##
2987
2988 _ACEOF
2989
2990
2991 # Keep a trace of the command line.
2992 # Strip out --no-create and --no-recursion so they do not pile up.
2993 # Strip out --silent because we don't want to record it for future runs.
2994 # Also quote any args containing shell meta-characters.
2995 # Make two passes to allow for proper duplicate-argument suppression.
2996 ac_configure_args=
2997 ac_configure_args0=
2998 ac_configure_args1=
2999 ac_must_keep_next=false
3000 for ac_pass in 1 2
3001 do
3002 for ac_arg
3003 do
3004 case $ac_arg in
3005 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3007 | -silent | --silent | --silen | --sile | --sil)
3008 continue ;;
3009 *\'*)
3010 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3011 esac
3012 case $ac_pass in
3013 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3014 2)
3015 as_fn_append ac_configure_args1 " '$ac_arg'"
3016 if test $ac_must_keep_next = true; then
3017 ac_must_keep_next=false # Got value, back to normal.
3018 else
3019 case $ac_arg in
3020 *=* | --config-cache | -C | -disable-* | --disable-* \
3021 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3022 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3023 | -with-* | --with-* | -without-* | --without-* | --x)
3024 case "$ac_configure_args0 " in
3025 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3026 esac
3027 ;;
3028 -* ) ac_must_keep_next=true ;;
3029 esac
3030 fi
3031 as_fn_append ac_configure_args " '$ac_arg'"
3032 ;;
3033 esac
3034 done
3035 done
3036 { ac_configure_args0=; unset ac_configure_args0;}
3037 { ac_configure_args1=; unset ac_configure_args1;}
3038
3039 # When interrupted or exit'd, cleanup temporary files, and complete
3040 # config.log. We remove comments because anyway the quotes in there
3041 # would cause problems or look ugly.
3042 # WARNING: Use '\'' to represent an apostrophe within the trap.
3043 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3044 trap 'exit_status=$?
3045 # Save into config.log some information that might help in debugging.
3046 {
3047 echo
3048
3049 $as_echo "## ---------------- ##
3050 ## Cache variables. ##
3051 ## ---------------- ##"
3052 echo
3053 # The following way of writing the cache mishandles newlines in values,
3054 (
3055 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3056 eval ac_val=\$$ac_var
3057 case $ac_val in #(
3058 *${as_nl}*)
3059 case $ac_var in #(
3060 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3061 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3062 esac
3063 case $ac_var in #(
3064 _ | IFS | as_nl) ;; #(
3065 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3066 *) { eval $ac_var=; unset $ac_var;} ;;
3067 esac ;;
3068 esac
3069 done
3070 (set) 2>&1 |
3071 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3072 *${as_nl}ac_space=\ *)
3073 sed -n \
3074 "s/'\''/'\''\\\\'\'''\''/g;
3075 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3076 ;; #(
3077 *)
3078 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3079 ;;
3080 esac |
3081 sort
3082 )
3083 echo
3084
3085 $as_echo "## ----------------- ##
3086 ## Output variables. ##
3087 ## ----------------- ##"
3088 echo
3089 for ac_var in $ac_subst_vars
3090 do
3091 eval ac_val=\$$ac_var
3092 case $ac_val in
3093 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3094 esac
3095 $as_echo "$ac_var='\''$ac_val'\''"
3096 done | sort
3097 echo
3098
3099 if test -n "$ac_subst_files"; then
3100 $as_echo "## ------------------- ##
3101 ## File substitutions. ##
3102 ## ------------------- ##"
3103 echo
3104 for ac_var in $ac_subst_files
3105 do
3106 eval ac_val=\$$ac_var
3107 case $ac_val in
3108 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3109 esac
3110 $as_echo "$ac_var='\''$ac_val'\''"
3111 done | sort
3112 echo
3113 fi
3114
3115 if test -s confdefs.h; then
3116 $as_echo "## ----------- ##
3117 ## confdefs.h. ##
3118 ## ----------- ##"
3119 echo
3120 cat confdefs.h
3121 echo
3122 fi
3123 test "$ac_signal" != 0 &&
3124 $as_echo "$as_me: caught signal $ac_signal"
3125 $as_echo "$as_me: exit $exit_status"
3126 } >&5
3127 rm -f core *.core core.conftest.* &&
3128 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3129 exit $exit_status
3130 ' 0
3131 for ac_signal in 1 2 13 15; do
3132 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3133 done
3134 ac_signal=0
3135
3136 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3137 rm -f -r conftest* confdefs.h
3138
3139 $as_echo "/* confdefs.h */" > confdefs.h
3140
3141 # Predefined preprocessor variables.
3142
3143 cat >>confdefs.h <<_ACEOF
3144 #define PACKAGE_NAME "$PACKAGE_NAME"
3145 _ACEOF
3146
3147 cat >>confdefs.h <<_ACEOF
3148 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3149 _ACEOF
3150
3151 cat >>confdefs.h <<_ACEOF
3152 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3153 _ACEOF
3154
3155 cat >>confdefs.h <<_ACEOF
3156 #define PACKAGE_STRING "$PACKAGE_STRING"
3157 _ACEOF
3158
3159 cat >>confdefs.h <<_ACEOF
3160 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3161 _ACEOF
3162
3163 cat >>confdefs.h <<_ACEOF
3164 #define PACKAGE_URL "$PACKAGE_URL"
3165 _ACEOF
3166
3167
3168 # Let the site file select an alternate cache file if it wants to.
3169 # Prefer an explicitly selected file to automatically selected ones.
3170 ac_site_file1=NONE
3171 ac_site_file2=NONE
3172 if test -n "$CONFIG_SITE"; then
3173 # We do not want a PATH search for config.site.
3174 case $CONFIG_SITE in #((
3175 -*) ac_site_file1=./$CONFIG_SITE;;
3176 */*) ac_site_file1=$CONFIG_SITE;;
3177 *) ac_site_file1=./$CONFIG_SITE;;
3178 esac
3179 elif test "x$prefix" != xNONE; then
3180 ac_site_file1=$prefix/share/config.site
3181 ac_site_file2=$prefix/etc/config.site
3182 else
3183 ac_site_file1=$ac_default_prefix/share/config.site
3184 ac_site_file2=$ac_default_prefix/etc/config.site
3185 fi
3186 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3187 do
3188 test "x$ac_site_file" = xNONE && continue
3189 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3191 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3192 sed 's/^/| /' "$ac_site_file" >&5
3193 . "$ac_site_file" \
3194 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error $? "failed to load site script $ac_site_file
3197 See \`config.log' for more details" "$LINENO" 5; }
3198 fi
3199 done
3200
3201 if test -r "$cache_file"; then
3202 # Some versions of bash will fail to source /dev/null (special files
3203 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3204 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3206 $as_echo "$as_me: loading cache $cache_file" >&6;}
3207 case $cache_file in
3208 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3209 *) . "./$cache_file";;
3210 esac
3211 fi
3212 else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3214 $as_echo "$as_me: creating cache $cache_file" >&6;}
3215 >$cache_file
3216 fi
3217
3218 # Check that the precious variables saved in the cache have kept the same
3219 # value.
3220 ac_cache_corrupted=false
3221 for ac_var in $ac_precious_vars; do
3222 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3223 eval ac_new_set=\$ac_env_${ac_var}_set
3224 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3225 eval ac_new_val=\$ac_env_${ac_var}_value
3226 case $ac_old_set,$ac_new_set in
3227 set,)
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3229 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3230 ac_cache_corrupted=: ;;
3231 ,set)
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3233 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3234 ac_cache_corrupted=: ;;
3235 ,);;
3236 *)
3237 if test "x$ac_old_val" != "x$ac_new_val"; then
3238 # differences in whitespace do not lead to failure.
3239 ac_old_val_w=`echo x $ac_old_val`
3240 ac_new_val_w=`echo x $ac_new_val`
3241 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3243 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3244 ac_cache_corrupted=:
3245 else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3247 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3248 eval $ac_var=\$ac_old_val
3249 fi
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3251 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3253 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3254 fi;;
3255 esac
3256 # Pass precious variables to config.status.
3257 if test "$ac_new_set" = set; then
3258 case $ac_new_val in
3259 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3260 *) ac_arg=$ac_var=$ac_new_val ;;
3261 esac
3262 case " $ac_configure_args " in
3263 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3264 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3265 esac
3266 fi
3267 done
3268 if $ac_cache_corrupted; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3272 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3273 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3274 fi
3275 ## -------------------- ##
3276 ## Main body of script. ##
3277 ## -------------------- ##
3278
3279 ac_ext=c
3280 ac_cpp='$CPP $CPPFLAGS'
3281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284
3285
3286
3287
3288
3289
3290 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3291
3292
3293 gcc_version=`cat $srcdir/BASE-VER`
3294
3295 # Determine the host, build, and target systems
3296 ac_aux_dir=
3297 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3298 if test -f "$ac_dir/install-sh"; then
3299 ac_aux_dir=$ac_dir
3300 ac_install_sh="$ac_aux_dir/install-sh -c"
3301 break
3302 elif test -f "$ac_dir/install.sh"; then
3303 ac_aux_dir=$ac_dir
3304 ac_install_sh="$ac_aux_dir/install.sh -c"
3305 break
3306 elif test -f "$ac_dir/shtool"; then
3307 ac_aux_dir=$ac_dir
3308 ac_install_sh="$ac_aux_dir/shtool install -c"
3309 break
3310 fi
3311 done
3312 if test -z "$ac_aux_dir"; then
3313 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3314 fi
3315
3316 # These three variables are undocumented and unsupported,
3317 # and are intended to be withdrawn in a future Autoconf release.
3318 # They can cause serious problems if a builder's source tree is in a directory
3319 # whose full name contains unusual characters.
3320 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3321 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3322 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3323
3324
3325 # Make sure we can run config.sub.
3326 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3327 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3328
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3330 $as_echo_n "checking build system type... " >&6; }
3331 if ${ac_cv_build+:} false; then :
3332 $as_echo_n "(cached) " >&6
3333 else
3334 ac_build_alias=$build_alias
3335 test "x$ac_build_alias" = x &&
3336 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3337 test "x$ac_build_alias" = x &&
3338 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3339 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3340 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3341
3342 fi
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3344 $as_echo "$ac_cv_build" >&6; }
3345 case $ac_cv_build in
3346 *-*-*) ;;
3347 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3348 esac
3349 build=$ac_cv_build
3350 ac_save_IFS=$IFS; IFS='-'
3351 set x $ac_cv_build
3352 shift
3353 build_cpu=$1
3354 build_vendor=$2
3355 shift; shift
3356 # Remember, the first character of IFS is used to create $*,
3357 # except with old shells:
3358 build_os=$*
3359 IFS=$ac_save_IFS
3360 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3361
3362
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3364 $as_echo_n "checking host system type... " >&6; }
3365 if ${ac_cv_host+:} false; then :
3366 $as_echo_n "(cached) " >&6
3367 else
3368 if test "x$host_alias" = x; then
3369 ac_cv_host=$ac_cv_build
3370 else
3371 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3372 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3373 fi
3374
3375 fi
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3377 $as_echo "$ac_cv_host" >&6; }
3378 case $ac_cv_host in
3379 *-*-*) ;;
3380 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3381 esac
3382 host=$ac_cv_host
3383 ac_save_IFS=$IFS; IFS='-'
3384 set x $ac_cv_host
3385 shift
3386 host_cpu=$1
3387 host_vendor=$2
3388 shift; shift
3389 # Remember, the first character of IFS is used to create $*,
3390 # except with old shells:
3391 host_os=$*
3392 IFS=$ac_save_IFS
3393 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3394
3395
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3397 $as_echo_n "checking target system type... " >&6; }
3398 if ${ac_cv_target+:} false; then :
3399 $as_echo_n "(cached) " >&6
3400 else
3401 if test "x$target_alias" = x; then
3402 ac_cv_target=$ac_cv_host
3403 else
3404 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3405 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3406 fi
3407
3408 fi
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3410 $as_echo "$ac_cv_target" >&6; }
3411 case $ac_cv_target in
3412 *-*-*) ;;
3413 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3414 esac
3415 target=$ac_cv_target
3416 ac_save_IFS=$IFS; IFS='-'
3417 set x $ac_cv_target
3418 shift
3419 target_cpu=$1
3420 target_vendor=$2
3421 shift; shift
3422 # Remember, the first character of IFS is used to create $*,
3423 # except with old shells:
3424 target_os=$*
3425 IFS=$ac_save_IFS
3426 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3427
3428
3429 # The aliases save the names the user supplied, while $host etc.
3430 # will get canonicalized.
3431 test -n "$target_alias" &&
3432 test "$program_prefix$program_suffix$program_transform_name" = \
3433 NONENONEs,x,x, &&
3434 program_prefix=${target_alias}-
3435
3436 # Determine the noncanonical host name, for Ada.
3437 case ${build_alias} in
3438 "") build_noncanonical=${build} ;;
3439 *) build_noncanonical=${build_alias} ;;
3440 esac
3441
3442 case ${host_alias} in
3443 "") host_noncanonical=${build_noncanonical} ;;
3444 *) host_noncanonical=${host_alias} ;;
3445 esac
3446
3447
3448
3449
3450 # Determine the noncanonical target name, for directory use.
3451 case ${target_alias} in
3452 "") target_noncanonical=${host_noncanonical} ;;
3453 *) target_noncanonical=${target_alias} ;;
3454 esac
3455
3456
3457
3458
3459 # Used for constructing correct paths for offload compilers.
3460 real_target_noncanonical=${target_noncanonical}
3461 accel_dir_suffix=
3462
3463 # Determine the target- and build-specific subdirectories
3464
3465 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3466 # have matching libraries, they should use host libraries: Makefile.tpl
3467 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3468 # However, they still use the build modules, because the corresponding
3469 # host modules (e.g. bison) are only built for the host when bootstrap
3470 # finishes. So:
3471 # - build_subdir is where we find build modules, and never changes.
3472 # - build_libsubdir is where we find build libraries, and can be overridden.
3473
3474 # Prefix 'build-' so this never conflicts with target_subdir.
3475 build_subdir="build-${build_noncanonical}"
3476
3477 # Check whether --with-build-libsubdir was given.
3478 if test "${with_build_libsubdir+set}" = set; then :
3479 withval=$with_build_libsubdir; build_libsubdir="$withval"
3480 else
3481 build_libsubdir="$build_subdir"
3482 fi
3483
3484 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3485 if ( test $srcdir = . && test -d gcc ) \
3486 || test -d $srcdir/../host-${host_noncanonical}; then
3487 host_subdir="host-${host_noncanonical}"
3488 else
3489 host_subdir=.
3490 fi
3491 # No prefix.
3492 target_subdir=${target_noncanonical}
3493
3494
3495 # Set program_transform_name
3496 test "$program_prefix" != NONE &&
3497 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3498 # Use a double $ so make ignores it.
3499 test "$program_suffix" != NONE &&
3500 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3501 # Double any \ or $.
3502 # By default was `s,x,x', remove it if useless.
3503 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3504 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3505
3506
3507 # Check for bogus environment variables.
3508 # Test if LIBRARY_PATH contains the notation for the current directory
3509 # since this would lead to problems installing/building glibc.
3510 # LIBRARY_PATH contains the current directory if one of the following
3511 # is true:
3512 # - one of the terminals (":" and ";") is the first or last sign
3513 # - two terminals occur directly after each other
3514 # - the path contains an element with a dot in it
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3516 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3517 case ${LIBRARY_PATH} in
3518 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3519 library_path_setting="contains current directory"
3520 ;;
3521 *)
3522 library_path_setting="ok"
3523 ;;
3524 esac
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3526 $as_echo "$library_path_setting" >&6; }
3527 if test "$library_path_setting" != "ok"; then
3528 as_fn_error $? "
3529 *** LIBRARY_PATH shouldn't contain the current directory when
3530 *** building gcc. Please change the environment variable
3531 *** and run configure again." "$LINENO" 5
3532 fi
3533
3534 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3535 # since this would lead to problems installing/building glibc.
3536 # GCC_EXEC_PREFIX contains the current directory if one of the following
3537 # is true:
3538 # - one of the terminals (":" and ";") is the first or last sign
3539 # - two terminals occur directly after each other
3540 # - the path contains an element with a dot in it
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3542 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3543 case ${GCC_EXEC_PREFIX} in
3544 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3545 gcc_exec_prefix_setting="contains current directory"
3546 ;;
3547 *)
3548 gcc_exec_prefix_setting="ok"
3549 ;;
3550 esac
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3552 $as_echo "$gcc_exec_prefix_setting" >&6; }
3553 if test "$gcc_exec_prefix_setting" != "ok"; then
3554 as_fn_error $? "
3555 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3556 *** building gcc. Please change the environment variable
3557 *** and run configure again." "$LINENO" 5
3558 fi
3559
3560 # -----------
3561 # Directories
3562 # -----------
3563
3564 # Specify the local prefix
3565 local_prefix=
3566
3567 # Check whether --with-local-prefix was given.
3568 if test "${with_local_prefix+set}" = set; then :
3569 withval=$with_local_prefix; case "${withval}" in
3570 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3571 no) ;;
3572 *) local_prefix=$with_local_prefix ;;
3573 esac
3574 fi
3575
3576
3577 # Default local prefix if it is empty
3578 if test x$local_prefix = x; then
3579 local_prefix=/usr/local
3580 fi
3581
3582
3583 # Check whether --with-native-system-header-dir was given.
3584 if test "${with_native_system_header_dir+set}" = set; then :
3585 withval=$with_native_system_header_dir;
3586 case ${with_native_system_header_dir} in
3587 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3588 /* | [A-Za-z]:[\\/]*) ;;
3589 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3590 esac
3591 configured_native_system_header_dir="${withval}"
3592
3593 else
3594 configured_native_system_header_dir=
3595 fi
3596
3597
3598
3599 # Check whether --with-build-sysroot was given.
3600 if test "${with_build_sysroot+set}" = set; then :
3601 withval=$with_build_sysroot; if test x"$withval" != x ; then
3602 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3603 fi
3604 else
3605 SYSROOT_CFLAGS_FOR_TARGET=
3606 fi
3607
3608
3609
3610 if test "x$prefix" = xNONE; then
3611 test_prefix=/usr/local
3612 else
3613 test_prefix=$prefix
3614 fi
3615 if test "x$exec_prefix" = xNONE; then
3616 test_exec_prefix=$test_prefix
3617 else
3618 test_exec_prefix=$exec_prefix
3619 fi
3620
3621
3622 # Check whether --with-sysroot was given.
3623 if test "${with_sysroot+set}" = set; then :
3624 withval=$with_sysroot;
3625 case ${with_sysroot} in
3626 /) ;;
3627 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3628 esac
3629 case ${with_sysroot} in
3630 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3631 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3632 esac
3633
3634 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3635 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3636
3637 case ${TARGET_SYSTEM_ROOT} in
3638 "${test_prefix}"|"${test_prefix}/"*|\
3639 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3640 '${prefix}'|'${prefix}/'*|\
3641 '${exec_prefix}'|'${exec_prefix}/'*)
3642 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3643 TARGET_SYSTEM_ROOT_DEFINE="$t"
3644 ;;
3645 esac
3646
3647 else
3648
3649 TARGET_SYSTEM_ROOT=
3650 TARGET_SYSTEM_ROOT_DEFINE=
3651 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3652
3653 fi
3654
3655
3656
3657
3658
3659 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3660 # passed in by the toplevel make and thus we'd get different behavior
3661 # depending on where we built the sources.
3662 gcc_gxx_include_dir=
3663 # Specify the g++ header file directory
3664
3665 # Check whether --with-gxx-include-dir was given.
3666 if test "${with_gxx_include_dir+set}" = set; then :
3667 withval=$with_gxx_include_dir; case "${withval}" in
3668 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3669 no) ;;
3670 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3671 esac
3672 fi
3673
3674
3675 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3676 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3677 # relative to the sysroot.
3678 gcc_gxx_include_dir_add_sysroot=0
3679
3680 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3681 if test x${gcc_gxx_include_dir} = x; then
3682 if test x${enable_version_specific_runtime_libs} = xyes; then
3683 gcc_gxx_include_dir='${libsubdir}/include/c++'
3684 else
3685 libstdcxx_incdir='include/c++/$(version)'
3686 if test x$host != x$target; then
3687 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3688 fi
3689 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3690 fi
3691 elif test "${with_sysroot+set}" = set; then
3692 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3693 if test "${gcc_gxx_without_sysroot}"; then
3694 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3695 gcc_gxx_include_dir_add_sysroot=1
3696 fi
3697 fi
3698
3699
3700 # Check whether --with-cpp_install_dir was given.
3701 if test "${with_cpp_install_dir+set}" = set; then :
3702 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3703 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3704 elif test x$withval != xno; then
3705 cpp_install_dir=$withval
3706 fi
3707 fi
3708
3709
3710 # We would like to our source tree to be readonly. However when releases or
3711 # pre-releases are generated, the flex/bison generated files as well as the
3712 # various formats of manuals need to be included along with the rest of the
3713 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3714 # just that.
3715
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3717 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3718 # Check whether --enable-generated-files-in-srcdir was given.
3719 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3720 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3721 else
3722 generated_files_in_srcdir=no
3723 fi
3724
3725
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3727 $as_echo "$generated_files_in_srcdir" >&6; }
3728
3729 if test "$generated_files_in_srcdir" = "yes"; then
3730 GENINSRC=''
3731 else
3732 GENINSRC='#'
3733 fi
3734
3735
3736 # -------------------
3737 # Find default linker
3738 # -------------------
3739
3740 # With GNU ld
3741
3742 # Check whether --with-gnu-ld was given.
3743 if test "${with_gnu_ld+set}" = set; then :
3744 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3745 else
3746 gnu_ld_flag=no
3747 fi
3748
3749
3750 case $target in
3751 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3752 *) ld64_flag=no;;
3753 esac
3754
3755 # With pre-defined ld
3756
3757 # Check whether --with-ld was given.
3758 if test "${with_ld+set}" = set; then :
3759 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3760 fi
3761
3762 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3763 if test ! -x "$DEFAULT_LINKER"; then
3764 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3765 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3766 gnu_ld_flag=yes
3767 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3768 ld64_flag=yes
3769 fi
3770
3771 cat >>confdefs.h <<_ACEOF
3772 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3773 _ACEOF
3774
3775 fi
3776
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3778 $as_echo_n "checking whether a default linker was specified... " >&6; }
3779 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3780 if test x"$gnu_ld_flag" = x"no"; then
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3782 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3783 else
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3785 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3786 fi
3787 else
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3790 fi
3791
3792 # With demangler in GNU ld
3793
3794 # Check whether --with-demangler-in-ld was given.
3795 if test "${with_demangler_in_ld+set}" = set; then :
3796 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3797 else
3798 demangler_in_ld=yes
3799 fi
3800
3801
3802 # ----------------------
3803 # Find default assembler
3804 # ----------------------
3805
3806 # With GNU as
3807
3808 # Check whether --with-gnu-as was given.
3809 if test "${with_gnu_as+set}" = set; then :
3810 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3811 else
3812 gas_flag=no
3813 fi
3814
3815
3816
3817 # Check whether --with-as was given.
3818 if test "${with_as+set}" = set; then :
3819 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3820 fi
3821
3822 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3823 if test ! -x "$DEFAULT_ASSEMBLER"; then
3824 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3825 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3826 gas_flag=yes
3827 fi
3828
3829 cat >>confdefs.h <<_ACEOF
3830 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3831 _ACEOF
3832
3833 fi
3834
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3836 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3837 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3838 if test x"$gas_flag" = x"no"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3840 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3841 else
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3843 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3844 fi
3845 else
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847 $as_echo "no" >&6; }
3848 fi
3849
3850 # ---------------
3851 # Find C compiler
3852 # ---------------
3853
3854 # If a non-executable a.out is present (e.g. created by GNU as above even if
3855 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3856 # file, even when creating an executable, so an execution test fails.
3857 # Remove possible default executable files to avoid this.
3858 #
3859 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3860 # Autoconf includes it.
3861 rm -f a.out a.exe b.out
3862
3863 # Find the native compiler
3864 ac_ext=c
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869 if test -n "$ac_tool_prefix"; then
3870 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3871 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3873 $as_echo_n "checking for $ac_word... " >&6; }
3874 if ${ac_cv_prog_CC+:} false; then :
3875 $as_echo_n "(cached) " >&6
3876 else
3877 if test -n "$CC"; then
3878 ac_cv_prog_CC="$CC" # Let the user override the test.
3879 else
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 for as_dir in $PATH
3882 do
3883 IFS=$as_save_IFS
3884 test -z "$as_dir" && as_dir=.
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3887 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3889 break 2
3890 fi
3891 done
3892 done
3893 IFS=$as_save_IFS
3894
3895 fi
3896 fi
3897 CC=$ac_cv_prog_CC
3898 if test -n "$CC"; then
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3900 $as_echo "$CC" >&6; }
3901 else
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903 $as_echo "no" >&6; }
3904 fi
3905
3906
3907 fi
3908 if test -z "$ac_cv_prog_CC"; then
3909 ac_ct_CC=$CC
3910 # Extract the first word of "gcc", so it can be a program name with args.
3911 set dummy gcc; ac_word=$2
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913 $as_echo_n "checking for $ac_word... " >&6; }
3914 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3915 $as_echo_n "(cached) " >&6
3916 else
3917 if test -n "$ac_ct_CC"; then
3918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3919 else
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927 ac_cv_prog_ac_ct_CC="gcc"
3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 break 2
3930 fi
3931 done
3932 done
3933 IFS=$as_save_IFS
3934
3935 fi
3936 fi
3937 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3938 if test -n "$ac_ct_CC"; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3940 $as_echo "$ac_ct_CC" >&6; }
3941 else
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3944 fi
3945
3946 if test "x$ac_ct_CC" = x; then
3947 CC=""
3948 else
3949 case $cross_compiling:$ac_tool_warned in
3950 yes:)
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3953 ac_tool_warned=yes ;;
3954 esac
3955 CC=$ac_ct_CC
3956 fi
3957 else
3958 CC="$ac_cv_prog_CC"
3959 fi
3960
3961 if test -z "$CC"; then
3962 if test -n "$ac_tool_prefix"; then
3963 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3964 set dummy ${ac_tool_prefix}cc; ac_word=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if ${ac_cv_prog_CC+:} false; then :
3968 $as_echo_n "(cached) " >&6
3969 else
3970 if test -n "$CC"; then
3971 ac_cv_prog_CC="$CC" # Let the user override the test.
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3975 do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_prog_CC="${ac_tool_prefix}cc"
3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3983 fi
3984 done
3985 done
3986 IFS=$as_save_IFS
3987
3988 fi
3989 fi
3990 CC=$ac_cv_prog_CC
3991 if test -n "$CC"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3993 $as_echo "$CC" >&6; }
3994 else
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
3997 fi
3998
3999
4000 fi
4001 fi
4002 if test -z "$CC"; then
4003 # Extract the first word of "cc", so it can be a program name with args.
4004 set dummy cc; ac_word=$2
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if ${ac_cv_prog_CC+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 if test -n "$CC"; then
4011 ac_cv_prog_CC="$CC" # Let the user override the test.
4012 else
4013 ac_prog_rejected=no
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4016 do
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4022 ac_prog_rejected=yes
4023 continue
4024 fi
4025 ac_cv_prog_CC="cc"
4026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 break 2
4028 fi
4029 done
4030 done
4031 IFS=$as_save_IFS
4032
4033 if test $ac_prog_rejected = yes; then
4034 # We found a bogon in the path, so make sure we never use it.
4035 set dummy $ac_cv_prog_CC
4036 shift
4037 if test $# != 0; then
4038 # We chose a different compiler from the bogus one.
4039 # However, it has the same basename, so the bogon will be chosen
4040 # first if we set CC to just the basename; use the full file name.
4041 shift
4042 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4043 fi
4044 fi
4045 fi
4046 fi
4047 CC=$ac_cv_prog_CC
4048 if test -n "$CC"; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4050 $as_echo "$CC" >&6; }
4051 else
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4054 fi
4055
4056
4057 fi
4058 if test -z "$CC"; then
4059 if test -n "$ac_tool_prefix"; then
4060 for ac_prog in cl.exe
4061 do
4062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065 $as_echo_n "checking for $ac_word... " >&6; }
4066 if ${ac_cv_prog_CC+:} false; then :
4067 $as_echo_n "(cached) " >&6
4068 else
4069 if test -n "$CC"; then
4070 ac_cv_prog_CC="$CC" # Let the user override the test.
4071 else
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4074 do
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 break 2
4082 fi
4083 done
4084 done
4085 IFS=$as_save_IFS
4086
4087 fi
4088 fi
4089 CC=$ac_cv_prog_CC
4090 if test -n "$CC"; then
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4092 $as_echo "$CC" >&6; }
4093 else
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095 $as_echo "no" >&6; }
4096 fi
4097
4098
4099 test -n "$CC" && break
4100 done
4101 fi
4102 if test -z "$CC"; then
4103 ac_ct_CC=$CC
4104 for ac_prog in cl.exe
4105 do
4106 # Extract the first word of "$ac_prog", so it can be a program name with args.
4107 set dummy $ac_prog; ac_word=$2
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109 $as_echo_n "checking for $ac_word... " >&6; }
4110 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 if test -n "$ac_ct_CC"; then
4114 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4115 else
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4118 do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_prog_ac_ct_CC="$ac_prog"
4124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 break 2
4126 fi
4127 done
4128 done
4129 IFS=$as_save_IFS
4130
4131 fi
4132 fi
4133 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4134 if test -n "$ac_ct_CC"; then
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4136 $as_echo "$ac_ct_CC" >&6; }
4137 else
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139 $as_echo "no" >&6; }
4140 fi
4141
4142
4143 test -n "$ac_ct_CC" && break
4144 done
4145
4146 if test "x$ac_ct_CC" = x; then
4147 CC=""
4148 else
4149 case $cross_compiling:$ac_tool_warned in
4150 yes:)
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4153 ac_tool_warned=yes ;;
4154 esac
4155 CC=$ac_ct_CC
4156 fi
4157 fi
4158
4159 fi
4160
4161
4162 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164 as_fn_error $? "no acceptable C compiler found in \$PATH
4165 See \`config.log' for more details" "$LINENO" 5; }
4166
4167 # Provide some information about the compiler.
4168 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4169 set X $ac_compile
4170 ac_compiler=$2
4171 for ac_option in --version -v -V -qversion; do
4172 { { ac_try="$ac_compiler $ac_option >&5"
4173 case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176 esac
4177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4178 $as_echo "$ac_try_echo"; } >&5
4179 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4180 ac_status=$?
4181 if test -s conftest.err; then
4182 sed '10a\
4183 ... rest of stderr output deleted ...
4184 10q' conftest.err >conftest.er1
4185 cat conftest.er1 >&5
4186 fi
4187 rm -f conftest.er1 conftest.err
4188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4189 test $ac_status = 0; }
4190 done
4191
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4194
4195 int
4196 main ()
4197 {
4198
4199 ;
4200 return 0;
4201 }
4202 _ACEOF
4203 ac_clean_files_save=$ac_clean_files
4204 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4205 # Try to create an executable without -o first, disregard a.out.
4206 # It will help us diagnose broken compilers, and finding out an intuition
4207 # of exeext.
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4209 $as_echo_n "checking whether the C compiler works... " >&6; }
4210 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4211
4212 # The possible output files:
4213 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4214
4215 ac_rmfiles=
4216 for ac_file in $ac_files
4217 do
4218 case $ac_file in
4219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4220 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4221 esac
4222 done
4223 rm -f $ac_rmfiles
4224
4225 if { { ac_try="$ac_link_default"
4226 case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4229 esac
4230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4231 $as_echo "$ac_try_echo"; } >&5
4232 (eval "$ac_link_default") 2>&5
4233 ac_status=$?
4234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4235 test $ac_status = 0; }; then :
4236 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4237 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4238 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4239 # so that the user can short-circuit this test for compilers unknown to
4240 # Autoconf.
4241 for ac_file in $ac_files ''
4242 do
4243 test -f "$ac_file" || continue
4244 case $ac_file in
4245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4246 ;;
4247 [ab].out )
4248 # We found the default executable, but exeext='' is most
4249 # certainly right.
4250 break;;
4251 *.* )
4252 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4253 then :; else
4254 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4255 fi
4256 # We set ac_cv_exeext here because the later test for it is not
4257 # safe: cross compilers may not add the suffix if given an `-o'
4258 # argument, so we may need to know it at that point already.
4259 # Even if this section looks crufty: it has the advantage of
4260 # actually working.
4261 break;;
4262 * )
4263 break;;
4264 esac
4265 done
4266 test "$ac_cv_exeext" = no && ac_cv_exeext=
4267
4268 else
4269 ac_file=''
4270 fi
4271 if test -z "$ac_file"; then :
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 $as_echo "no" >&6; }
4274 $as_echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4276
4277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4279 as_fn_error 77 "C compiler cannot create executables
4280 See \`config.log' for more details" "$LINENO" 5; }
4281 else
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4283 $as_echo "yes" >&6; }
4284 fi
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4286 $as_echo_n "checking for C compiler default output file name... " >&6; }
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4288 $as_echo "$ac_file" >&6; }
4289 ac_exeext=$ac_cv_exeext
4290
4291 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4292 ac_clean_files=$ac_clean_files_save
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4294 $as_echo_n "checking for suffix of executables... " >&6; }
4295 if { { ac_try="$ac_link"
4296 case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299 esac
4300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301 $as_echo "$ac_try_echo"; } >&5
4302 (eval "$ac_link") 2>&5
4303 ac_status=$?
4304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4305 test $ac_status = 0; }; then :
4306 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4307 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4308 # work properly (i.e., refer to `conftest.exe'), while it won't with
4309 # `rm'.
4310 for ac_file in conftest.exe conftest conftest.*; do
4311 test -f "$ac_file" || continue
4312 case $ac_file in
4313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4314 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4315 break;;
4316 * ) break;;
4317 esac
4318 done
4319 else
4320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4322 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4323 See \`config.log' for more details" "$LINENO" 5; }
4324 fi
4325 rm -f conftest conftest$ac_cv_exeext
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4327 $as_echo "$ac_cv_exeext" >&6; }
4328
4329 rm -f conftest.$ac_ext
4330 EXEEXT=$ac_cv_exeext
4331 ac_exeext=$EXEEXT
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334 #include <stdio.h>
4335 int
4336 main ()
4337 {
4338 FILE *f = fopen ("conftest.out", "w");
4339 return ferror (f) || fclose (f) != 0;
4340
4341 ;
4342 return 0;
4343 }
4344 _ACEOF
4345 ac_clean_files="$ac_clean_files conftest.out"
4346 # Check that the compiler produces executables we can run. If not, either
4347 # the compiler is broken, or we cross compile.
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4349 $as_echo_n "checking whether we are cross compiling... " >&6; }
4350 if test "$cross_compiling" != yes; then
4351 { { ac_try="$ac_link"
4352 case "(($ac_try" in
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4355 esac
4356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4357 $as_echo "$ac_try_echo"; } >&5
4358 (eval "$ac_link") 2>&5
4359 ac_status=$?
4360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4361 test $ac_status = 0; }
4362 if { ac_try='./conftest$ac_cv_exeext'
4363 { { case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4366 esac
4367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368 $as_echo "$ac_try_echo"; } >&5
4369 (eval "$ac_try") 2>&5
4370 ac_status=$?
4371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372 test $ac_status = 0; }; }; then
4373 cross_compiling=no
4374 else
4375 if test "$cross_compiling" = maybe; then
4376 cross_compiling=yes
4377 else
4378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4380 as_fn_error $? "cannot run C compiled programs.
4381 If you meant to cross compile, use \`--host'.
4382 See \`config.log' for more details" "$LINENO" 5; }
4383 fi
4384 fi
4385 fi
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4387 $as_echo "$cross_compiling" >&6; }
4388
4389 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4390 ac_clean_files=$ac_clean_files_save
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4392 $as_echo_n "checking for suffix of object files... " >&6; }
4393 if ${ac_cv_objext+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398
4399 int
4400 main ()
4401 {
4402
4403 ;
4404 return 0;
4405 }
4406 _ACEOF
4407 rm -f conftest.o conftest.obj
4408 if { { ac_try="$ac_compile"
4409 case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412 esac
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 $as_echo "$ac_try_echo"; } >&5
4415 (eval "$ac_compile") 2>&5
4416 ac_status=$?
4417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418 test $ac_status = 0; }; then :
4419 for ac_file in conftest.o conftest.obj conftest.*; do
4420 test -f "$ac_file" || continue;
4421 case $ac_file in
4422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4423 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4424 break;;
4425 esac
4426 done
4427 else
4428 $as_echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4430
4431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4433 as_fn_error $? "cannot compute suffix of object files: cannot compile
4434 See \`config.log' for more details" "$LINENO" 5; }
4435 fi
4436 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4439 $as_echo "$ac_cv_objext" >&6; }
4440 OBJEXT=$ac_cv_objext
4441 ac_objext=$OBJEXT
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4443 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4444 if ${ac_cv_c_compiler_gnu+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4449
4450 int
4451 main ()
4452 {
4453 #ifndef __GNUC__
4454 choke me
4455 #endif
4456
4457 ;
4458 return 0;
4459 }
4460 _ACEOF
4461 if ac_fn_c_try_compile "$LINENO"; then :
4462 ac_compiler_gnu=yes
4463 else
4464 ac_compiler_gnu=no
4465 fi
4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4468
4469 fi
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4471 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4472 if test $ac_compiler_gnu = yes; then
4473 GCC=yes
4474 else
4475 GCC=
4476 fi
4477 ac_test_CFLAGS=${CFLAGS+set}
4478 ac_save_CFLAGS=$CFLAGS
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4480 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4481 if ${ac_cv_prog_cc_g+:} false; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 ac_save_c_werror_flag=$ac_c_werror_flag
4485 ac_c_werror_flag=yes
4486 ac_cv_prog_cc_g=no
4487 CFLAGS="-g"
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4490
4491 int
4492 main ()
4493 {
4494
4495 ;
4496 return 0;
4497 }
4498 _ACEOF
4499 if ac_fn_c_try_compile "$LINENO"; then :
4500 ac_cv_prog_cc_g=yes
4501 else
4502 CFLAGS=""
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4505
4506 int
4507 main ()
4508 {
4509
4510 ;
4511 return 0;
4512 }
4513 _ACEOF
4514 if ac_fn_c_try_compile "$LINENO"; then :
4515
4516 else
4517 ac_c_werror_flag=$ac_save_c_werror_flag
4518 CFLAGS="-g"
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4521
4522 int
4523 main ()
4524 {
4525
4526 ;
4527 return 0;
4528 }
4529 _ACEOF
4530 if ac_fn_c_try_compile "$LINENO"; then :
4531 ac_cv_prog_cc_g=yes
4532 fi
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534 fi
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 fi
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 ac_c_werror_flag=$ac_save_c_werror_flag
4539 fi
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4541 $as_echo "$ac_cv_prog_cc_g" >&6; }
4542 if test "$ac_test_CFLAGS" = set; then
4543 CFLAGS=$ac_save_CFLAGS
4544 elif test $ac_cv_prog_cc_g = yes; then
4545 if test "$GCC" = yes; then
4546 CFLAGS="-g -O2"
4547 else
4548 CFLAGS="-g"
4549 fi
4550 else
4551 if test "$GCC" = yes; then
4552 CFLAGS="-O2"
4553 else
4554 CFLAGS=
4555 fi
4556 fi
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4558 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4559 if ${ac_cv_prog_cc_c89+:} false; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 ac_cv_prog_cc_c89=no
4563 ac_save_CC=$CC
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566 #include <stdarg.h>
4567 #include <stdio.h>
4568 struct stat;
4569 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4570 struct buf { int x; };
4571 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4572 static char *e (p, i)
4573 char **p;
4574 int i;
4575 {
4576 return p[i];
4577 }
4578 static char *f (char * (*g) (char **, int), char **p, ...)
4579 {
4580 char *s;
4581 va_list v;
4582 va_start (v,p);
4583 s = g (p, va_arg (v,int));
4584 va_end (v);
4585 return s;
4586 }
4587
4588 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4589 function prototypes and stuff, but not '\xHH' hex character constants.
4590 These don't provoke an error unfortunately, instead are silently treated
4591 as 'x'. The following induces an error, until -std is added to get
4592 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4593 array size at least. It's necessary to write '\x00'==0 to get something
4594 that's true only with -std. */
4595 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4596
4597 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4598 inside strings and character constants. */
4599 #define FOO(x) 'x'
4600 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4601
4602 int test (int i, double x);
4603 struct s1 {int (*f) (int a);};
4604 struct s2 {int (*f) (double a);};
4605 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4606 int argc;
4607 char **argv;
4608 int
4609 main ()
4610 {
4611 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4612 ;
4613 return 0;
4614 }
4615 _ACEOF
4616 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4617 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4618 do
4619 CC="$ac_save_CC $ac_arg"
4620 if ac_fn_c_try_compile "$LINENO"; then :
4621 ac_cv_prog_cc_c89=$ac_arg
4622 fi
4623 rm -f core conftest.err conftest.$ac_objext
4624 test "x$ac_cv_prog_cc_c89" != "xno" && break
4625 done
4626 rm -f conftest.$ac_ext
4627 CC=$ac_save_CC
4628
4629 fi
4630 # AC_CACHE_VAL
4631 case "x$ac_cv_prog_cc_c89" in
4632 x)
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4634 $as_echo "none needed" >&6; } ;;
4635 xno)
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4637 $as_echo "unsupported" >&6; } ;;
4638 *)
4639 CC="$CC $ac_cv_prog_cc_c89"
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4641 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4642 esac
4643 if test "x$ac_cv_prog_cc_c89" != xno; then :
4644
4645 fi
4646
4647 ac_ext=c
4648 ac_cpp='$CPP $CPPFLAGS'
4649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4652
4653 ac_ext=cpp
4654 ac_cpp='$CXXCPP $CPPFLAGS'
4655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4658 if test -z "$CXX"; then
4659 if test -n "$CCC"; then
4660 CXX=$CCC
4661 else
4662 if test -n "$ac_tool_prefix"; then
4663 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4664 do
4665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668 $as_echo_n "checking for $ac_word... " >&6; }
4669 if ${ac_cv_prog_CXX+:} false; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 if test -n "$CXX"; then
4673 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4674 else
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH
4677 do
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4682 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 break 2
4685 fi
4686 done
4687 done
4688 IFS=$as_save_IFS
4689
4690 fi
4691 fi
4692 CXX=$ac_cv_prog_CXX
4693 if test -n "$CXX"; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4695 $as_echo "$CXX" >&6; }
4696 else
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4699 fi
4700
4701
4702 test -n "$CXX" && break
4703 done
4704 fi
4705 if test -z "$CXX"; then
4706 ac_ct_CXX=$CXX
4707 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4708 do
4709 # Extract the first word of "$ac_prog", so it can be a program name with args.
4710 set dummy $ac_prog; ac_word=$2
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4712 $as_echo_n "checking for $ac_word... " >&6; }
4713 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4714 $as_echo_n "(cached) " >&6
4715 else
4716 if test -n "$ac_ct_CXX"; then
4717 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4718 else
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4721 do
4722 IFS=$as_save_IFS
4723 test -z "$as_dir" && as_dir=.
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4726 ac_cv_prog_ac_ct_CXX="$ac_prog"
4727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4728 break 2
4729 fi
4730 done
4731 done
4732 IFS=$as_save_IFS
4733
4734 fi
4735 fi
4736 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4737 if test -n "$ac_ct_CXX"; then
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4739 $as_echo "$ac_ct_CXX" >&6; }
4740 else
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4743 fi
4744
4745
4746 test -n "$ac_ct_CXX" && break
4747 done
4748
4749 if test "x$ac_ct_CXX" = x; then
4750 CXX="g++"
4751 else
4752 case $cross_compiling:$ac_tool_warned in
4753 yes:)
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4756 ac_tool_warned=yes ;;
4757 esac
4758 CXX=$ac_ct_CXX
4759 fi
4760 fi
4761
4762 fi
4763 fi
4764 # Provide some information about the compiler.
4765 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4766 set X $ac_compile
4767 ac_compiler=$2
4768 for ac_option in --version -v -V -qversion; do
4769 { { ac_try="$ac_compiler $ac_option >&5"
4770 case "(($ac_try" in
4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772 *) ac_try_echo=$ac_try;;
4773 esac
4774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4775 $as_echo "$ac_try_echo"; } >&5
4776 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4777 ac_status=$?
4778 if test -s conftest.err; then
4779 sed '10a\
4780 ... rest of stderr output deleted ...
4781 10q' conftest.err >conftest.er1
4782 cat conftest.er1 >&5
4783 fi
4784 rm -f conftest.er1 conftest.err
4785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4786 test $ac_status = 0; }
4787 done
4788
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4790 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4791 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4796
4797 int
4798 main ()
4799 {
4800 #ifndef __GNUC__
4801 choke me
4802 #endif
4803
4804 ;
4805 return 0;
4806 }
4807 _ACEOF
4808 if ac_fn_cxx_try_compile "$LINENO"; then :
4809 ac_compiler_gnu=yes
4810 else
4811 ac_compiler_gnu=no
4812 fi
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4815
4816 fi
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4818 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4819 if test $ac_compiler_gnu = yes; then
4820 GXX=yes
4821 else
4822 GXX=
4823 fi
4824 ac_test_CXXFLAGS=${CXXFLAGS+set}
4825 ac_save_CXXFLAGS=$CXXFLAGS
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4827 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4828 if ${ac_cv_prog_cxx_g+:} false; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4832 ac_cxx_werror_flag=yes
4833 ac_cv_prog_cxx_g=no
4834 CXXFLAGS="-g"
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4837
4838 int
4839 main ()
4840 {
4841
4842 ;
4843 return 0;
4844 }
4845 _ACEOF
4846 if ac_fn_cxx_try_compile "$LINENO"; then :
4847 ac_cv_prog_cxx_g=yes
4848 else
4849 CXXFLAGS=""
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4852
4853 int
4854 main ()
4855 {
4856
4857 ;
4858 return 0;
4859 }
4860 _ACEOF
4861 if ac_fn_cxx_try_compile "$LINENO"; then :
4862
4863 else
4864 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4865 CXXFLAGS="-g"
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4868
4869 int
4870 main ()
4871 {
4872
4873 ;
4874 return 0;
4875 }
4876 _ACEOF
4877 if ac_fn_cxx_try_compile "$LINENO"; then :
4878 ac_cv_prog_cxx_g=yes
4879 fi
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881 fi
4882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883 fi
4884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4886 fi
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4888 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4889 if test "$ac_test_CXXFLAGS" = set; then
4890 CXXFLAGS=$ac_save_CXXFLAGS
4891 elif test $ac_cv_prog_cxx_g = yes; then
4892 if test "$GXX" = yes; then
4893 CXXFLAGS="-g -O2"
4894 else
4895 CXXFLAGS="-g"
4896 fi
4897 else
4898 if test "$GXX" = yes; then
4899 CXXFLAGS="-O2"
4900 else
4901 CXXFLAGS=
4902 fi
4903 fi
4904 ac_ext=c
4905 ac_cpp='$CPP $CPPFLAGS'
4906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4909
4910
4911
4912
4913 if test -n "$ac_tool_prefix"; then
4914 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4915 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if ${ac_cv_prog_GNATBIND+:} false; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 if test -n "$GNATBIND"; then
4922 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4923 else
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4926 do
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4931 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4934 fi
4935 done
4936 done
4937 IFS=$as_save_IFS
4938
4939 fi
4940 fi
4941 GNATBIND=$ac_cv_prog_GNATBIND
4942 if test -n "$GNATBIND"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4944 $as_echo "$GNATBIND" >&6; }
4945 else
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4948 fi
4949
4950
4951 fi
4952 if test -z "$ac_cv_prog_GNATBIND"; then
4953 ac_ct_GNATBIND=$GNATBIND
4954 # Extract the first word of "gnatbind", so it can be a program name with args.
4955 set dummy gnatbind; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4959 $as_echo_n "(cached) " >&6
4960 else
4961 if test -n "$ac_ct_GNATBIND"; then
4962 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4963 else
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 break 2
4974 fi
4975 done
4976 done
4977 IFS=$as_save_IFS
4978
4979 fi
4980 fi
4981 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4982 if test -n "$ac_ct_GNATBIND"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4984 $as_echo "$ac_ct_GNATBIND" >&6; }
4985 else
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4988 fi
4989
4990 if test "x$ac_ct_GNATBIND" = x; then
4991 GNATBIND="no"
4992 else
4993 case $cross_compiling:$ac_tool_warned in
4994 yes:)
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4997 ac_tool_warned=yes ;;
4998 esac
4999 GNATBIND=$ac_ct_GNATBIND
5000 fi
5001 else
5002 GNATBIND="$ac_cv_prog_GNATBIND"
5003 fi
5004
5005 if test -n "$ac_tool_prefix"; then
5006 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5007 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009 $as_echo_n "checking for $ac_word... " >&6; }
5010 if ${ac_cv_prog_GNATMAKE+:} false; then :
5011 $as_echo_n "(cached) " >&6
5012 else
5013 if test -n "$GNATMAKE"; then
5014 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5015 else
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5018 do
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5026 fi
5027 done
5028 done
5029 IFS=$as_save_IFS
5030
5031 fi
5032 fi
5033 GNATMAKE=$ac_cv_prog_GNATMAKE
5034 if test -n "$GNATMAKE"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5036 $as_echo "$GNATMAKE" >&6; }
5037 else
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5040 fi
5041
5042
5043 fi
5044 if test -z "$ac_cv_prog_GNATMAKE"; then
5045 ac_ct_GNATMAKE=$GNATMAKE
5046 # Extract the first word of "gnatmake", so it can be a program name with args.
5047 set dummy gnatmake; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if test -n "$ac_ct_GNATMAKE"; then
5054 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5066 fi
5067 done
5068 done
5069 IFS=$as_save_IFS
5070
5071 fi
5072 fi
5073 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5074 if test -n "$ac_ct_GNATMAKE"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5076 $as_echo "$ac_ct_GNATMAKE" >&6; }
5077 else
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5080 fi
5081
5082 if test "x$ac_ct_GNATMAKE" = x; then
5083 GNATMAKE="no"
5084 else
5085 case $cross_compiling:$ac_tool_warned in
5086 yes:)
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5089 ac_tool_warned=yes ;;
5090 esac
5091 GNATMAKE=$ac_ct_GNATMAKE
5092 fi
5093 else
5094 GNATMAKE="$ac_cv_prog_GNATMAKE"
5095 fi
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5098 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5099 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 cat >conftest.adb <<EOF
5103 procedure conftest is begin null; end conftest;
5104 EOF
5105 acx_cv_cc_gcc_supports_ada=no
5106 # There is a bug in old released versions of GCC which causes the
5107 # driver to exit successfully when the appropriate language module
5108 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5109 # Therefore we must check for the error message as well as an
5110 # unsuccessful exit.
5111 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5112 # given a .adb file, but produce no object file. So we must check
5113 # if an object file was really produced to guard against this.
5114 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5115 if test x"$errors" = x && test -f conftest.$ac_objext; then
5116 acx_cv_cc_gcc_supports_ada=yes
5117 fi
5118 rm -f conftest.*
5119 fi
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5121 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5122
5123 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5124 have_gnat=yes
5125 else
5126 have_gnat=no
5127 fi
5128
5129
5130 # Do configure tests with the C++ compiler, since that's what we build with.
5131 ac_ext=cpp
5132 ac_cpp='$CXXCPP $CPPFLAGS'
5133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5136
5137
5138 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5139 # optimizations to be activated explicitly by the toplevel.
5140 case "$CC" in
5141 */prev-gcc/xgcc*) ;;
5142 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5143 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5144 esac
5145
5146
5147
5148 # Determine PICFLAG for target gnatlib.
5149
5150
5151
5152
5153 case "${target}" in
5154 # PIC is the default on some targets or must not be used.
5155 *-*-darwin*)
5156 # For darwin, common symbols are not allowed in MH_DYLIB files
5157 case "${CFLAGS}" in
5158 # If we are using a compiler supporting mdynamic-no-pic
5159 # and the option has been tested as safe to add, then cancel
5160 # it here, since the code generated is incompatible with shared
5161 # libs.
5162 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5163 *) PICFLAG_FOR_TARGET=-fno-common ;;
5164 esac
5165 ;;
5166 alpha*-dec-osf5*)
5167 # PIC is the default.
5168 ;;
5169 hppa*64*-*-hpux*)
5170 # PIC is the default for 64-bit PA HP-UX.
5171 ;;
5172 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5173 ;;
5174 i[34567]86-*-mingw* | x86_64-*-mingw*)
5175 ;;
5176 i[34567]86-*-interix[3-9]*)
5177 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5178 # Instead, we relocate shared libraries at runtime.
5179 ;;
5180 i[34567]86-*-nto-qnx*)
5181 # QNX uses GNU C++, but need to define -shared option too, otherwise
5182 # it will coredump.
5183 PICFLAG_FOR_TARGET='-fPIC -shared'
5184 ;;
5185 i[34567]86-pc-msdosdjgpp*)
5186 # DJGPP does not support shared libraries at all.
5187 ;;
5188 ia64*-*-hpux*)
5189 # On IA64 HP-UX, PIC is the default but the pic flag
5190 # sets the default TLS model and affects inlining.
5191 PICFLAG_FOR_TARGET=-fPIC
5192 ;;
5193 mips-sgi-irix6*)
5194 # PIC is the default.
5195 ;;
5196 rs6000-ibm-aix* | powerpc-ibm-aix*)
5197 # All AIX code is PIC.
5198 ;;
5199
5200 # Some targets support both -fPIC and -fpic, but prefer the latter.
5201 # FIXME: Why?
5202 i[34567]86-*-* | x86_64-*-*)
5203 PICFLAG_FOR_TARGET=-fpic
5204 ;;
5205 # FIXME: Override -fPIC default in libgcc only?
5206 sh-*-linux* | sh[2346lbe]*-*-linux*)
5207 PICFLAG_FOR_TARGET=-fpic
5208 ;;
5209 # FIXME: Simplify to sh*-*-netbsd*?
5210 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5211 sh64-*-netbsd* | sh64l*-*-netbsd*)
5212 PICFLAG_FOR_TARGET=-fpic
5213 ;;
5214 # Default to -fPIC unless specified otherwise.
5215 *)
5216 PICFLAG_FOR_TARGET=-fPIC
5217 ;;
5218 esac
5219
5220 # If the user explicitly uses -fpic/-fPIC, keep that.
5221 case "${CFLAGS_FOR_TARGET}" in
5222 *-fpic*)
5223 PICFLAG_FOR_TARGET=-fpic
5224 ;;
5225 *-fPIC*)
5226 PICFLAG_FOR_TARGET=-fPIC
5227 ;;
5228 esac
5229
5230
5231
5232 # -------------------------
5233 # Check C compiler features
5234 # -------------------------
5235
5236
5237 ac_ext=cpp
5238 ac_cpp='$CXXCPP $CPPFLAGS'
5239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5243 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5244 if test -z "$CXXCPP"; then
5245 if ${ac_cv_prog_CXXCPP+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 # Double quotes because CXXCPP needs to be expanded
5249 for CXXCPP in "$CXX -E" "/lib/cpp"
5250 do
5251 ac_preproc_ok=false
5252 for ac_cxx_preproc_warn_flag in '' yes
5253 do
5254 # Use a header file that comes with gcc, so configuring glibc
5255 # with a fresh cross-compiler works.
5256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5257 # <limits.h> exists even on freestanding compilers.
5258 # On the NeXT, cc -E runs the code through the compiler's parser,
5259 # not just through cpp. "Syntax error" is here to catch this case.
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5262 #ifdef __STDC__
5263 # include <limits.h>
5264 #else
5265 # include <assert.h>
5266 #endif
5267 Syntax error
5268 _ACEOF
5269 if ac_fn_cxx_try_cpp "$LINENO"; then :
5270
5271 else
5272 # Broken: fails on valid input.
5273 continue
5274 fi
5275 rm -f conftest.err conftest.i conftest.$ac_ext
5276
5277 # OK, works on sane cases. Now check whether nonexistent headers
5278 # can be detected and how.
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5281 #include <ac_nonexistent.h>
5282 _ACEOF
5283 if ac_fn_cxx_try_cpp "$LINENO"; then :
5284 # Broken: success on invalid input.
5285 continue
5286 else
5287 # Passes both tests.
5288 ac_preproc_ok=:
5289 break
5290 fi
5291 rm -f conftest.err conftest.i conftest.$ac_ext
5292
5293 done
5294 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5295 rm -f conftest.i conftest.err conftest.$ac_ext
5296 if $ac_preproc_ok; then :
5297 break
5298 fi
5299
5300 done
5301 ac_cv_prog_CXXCPP=$CXXCPP
5302
5303 fi
5304 CXXCPP=$ac_cv_prog_CXXCPP
5305 else
5306 ac_cv_prog_CXXCPP=$CXXCPP
5307 fi
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5309 $as_echo "$CXXCPP" >&6; }
5310 ac_preproc_ok=false
5311 for ac_cxx_preproc_warn_flag in '' yes
5312 do
5313 # Use a header file that comes with gcc, so configuring glibc
5314 # with a fresh cross-compiler works.
5315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5316 # <limits.h> exists even on freestanding compilers.
5317 # On the NeXT, cc -E runs the code through the compiler's parser,
5318 # not just through cpp. "Syntax error" is here to catch this case.
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5321 #ifdef __STDC__
5322 # include <limits.h>
5323 #else
5324 # include <assert.h>
5325 #endif
5326 Syntax error
5327 _ACEOF
5328 if ac_fn_cxx_try_cpp "$LINENO"; then :
5329
5330 else
5331 # Broken: fails on valid input.
5332 continue
5333 fi
5334 rm -f conftest.err conftest.i conftest.$ac_ext
5335
5336 # OK, works on sane cases. Now check whether nonexistent headers
5337 # can be detected and how.
5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h. */
5340 #include <ac_nonexistent.h>
5341 _ACEOF
5342 if ac_fn_cxx_try_cpp "$LINENO"; then :
5343 # Broken: success on invalid input.
5344 continue
5345 else
5346 # Passes both tests.
5347 ac_preproc_ok=:
5348 break
5349 fi
5350 rm -f conftest.err conftest.i conftest.$ac_ext
5351
5352 done
5353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5354 rm -f conftest.i conftest.err conftest.$ac_ext
5355 if $ac_preproc_ok; then :
5356
5357 else
5358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5360 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5361 See \`config.log' for more details" "$LINENO" 5; }
5362 fi
5363
5364 ac_ext=cpp
5365 ac_cpp='$CXXCPP $CPPFLAGS'
5366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5369
5370
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5372 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5373 if ${ac_cv_path_GREP+:} false; then :
5374 $as_echo_n "(cached) " >&6
5375 else
5376 if test -z "$GREP"; then
5377 ac_path_GREP_found=false
5378 # Loop through the user's path and test for each of PROGNAME-LIST
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5381 do
5382 IFS=$as_save_IFS
5383 test -z "$as_dir" && as_dir=.
5384 for ac_prog in grep ggrep; do
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5387 as_fn_executable_p "$ac_path_GREP" || continue
5388 # Check for GNU ac_path_GREP and select it if it is found.
5389 # Check for GNU $ac_path_GREP
5390 case `"$ac_path_GREP" --version 2>&1` in
5391 *GNU*)
5392 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5393 *)
5394 ac_count=0
5395 $as_echo_n 0123456789 >"conftest.in"
5396 while :
5397 do
5398 cat "conftest.in" "conftest.in" >"conftest.tmp"
5399 mv "conftest.tmp" "conftest.in"
5400 cp "conftest.in" "conftest.nl"
5401 $as_echo 'GREP' >> "conftest.nl"
5402 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5404 as_fn_arith $ac_count + 1 && ac_count=$as_val
5405 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5406 # Best one so far, save it but keep looking for a better one
5407 ac_cv_path_GREP="$ac_path_GREP"
5408 ac_path_GREP_max=$ac_count
5409 fi
5410 # 10*(2^10) chars as input seems more than enough
5411 test $ac_count -gt 10 && break
5412 done
5413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5414 esac
5415
5416 $ac_path_GREP_found && break 3
5417 done
5418 done
5419 done
5420 IFS=$as_save_IFS
5421 if test -z "$ac_cv_path_GREP"; then
5422 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5423 fi
5424 else
5425 ac_cv_path_GREP=$GREP
5426 fi
5427
5428 fi
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5430 $as_echo "$ac_cv_path_GREP" >&6; }
5431 GREP="$ac_cv_path_GREP"
5432
5433
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5435 $as_echo_n "checking for egrep... " >&6; }
5436 if ${ac_cv_path_EGREP+:} false; then :
5437 $as_echo_n "(cached) " >&6
5438 else
5439 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5440 then ac_cv_path_EGREP="$GREP -E"
5441 else
5442 if test -z "$EGREP"; then
5443 ac_path_EGREP_found=false
5444 # Loop through the user's path and test for each of PROGNAME-LIST
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5447 do
5448 IFS=$as_save_IFS
5449 test -z "$as_dir" && as_dir=.
5450 for ac_prog in egrep; do
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5453 as_fn_executable_p "$ac_path_EGREP" || continue
5454 # Check for GNU ac_path_EGREP and select it if it is found.
5455 # Check for GNU $ac_path_EGREP
5456 case `"$ac_path_EGREP" --version 2>&1` in
5457 *GNU*)
5458 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5459 *)
5460 ac_count=0
5461 $as_echo_n 0123456789 >"conftest.in"
5462 while :
5463 do
5464 cat "conftest.in" "conftest.in" >"conftest.tmp"
5465 mv "conftest.tmp" "conftest.in"
5466 cp "conftest.in" "conftest.nl"
5467 $as_echo 'EGREP' >> "conftest.nl"
5468 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5469 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5470 as_fn_arith $ac_count + 1 && ac_count=$as_val
5471 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5472 # Best one so far, save it but keep looking for a better one
5473 ac_cv_path_EGREP="$ac_path_EGREP"
5474 ac_path_EGREP_max=$ac_count
5475 fi
5476 # 10*(2^10) chars as input seems more than enough
5477 test $ac_count -gt 10 && break
5478 done
5479 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5480 esac
5481
5482 $ac_path_EGREP_found && break 3
5483 done
5484 done
5485 done
5486 IFS=$as_save_IFS
5487 if test -z "$ac_cv_path_EGREP"; then
5488 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5489 fi
5490 else
5491 ac_cv_path_EGREP=$EGREP
5492 fi
5493
5494 fi
5495 fi
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5497 $as_echo "$ac_cv_path_EGREP" >&6; }
5498 EGREP="$ac_cv_path_EGREP"
5499
5500
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5502 $as_echo_n "checking for ANSI C header files... " >&6; }
5503 if ${ac_cv_header_stdc+:} false; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5508 #include <stdlib.h>
5509 #include <stdarg.h>
5510 #include <string.h>
5511 #include <float.h>
5512
5513 int
5514 main ()
5515 {
5516
5517 ;
5518 return 0;
5519 }
5520 _ACEOF
5521 if ac_fn_cxx_try_compile "$LINENO"; then :
5522 ac_cv_header_stdc=yes
5523 else
5524 ac_cv_header_stdc=no
5525 fi
5526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527
5528 if test $ac_cv_header_stdc = yes; then
5529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5532 #include <string.h>
5533
5534 _ACEOF
5535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5536 $EGREP "memchr" >/dev/null 2>&1; then :
5537
5538 else
5539 ac_cv_header_stdc=no
5540 fi
5541 rm -f conftest*
5542
5543 fi
5544
5545 if test $ac_cv_header_stdc = yes; then
5546 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5549 #include <stdlib.h>
5550
5551 _ACEOF
5552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5553 $EGREP "free" >/dev/null 2>&1; then :
5554
5555 else
5556 ac_cv_header_stdc=no
5557 fi
5558 rm -f conftest*
5559
5560 fi
5561
5562 if test $ac_cv_header_stdc = yes; then
5563 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5564 if test "$cross_compiling" = yes; then :
5565 :
5566 else
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 #include <ctype.h>
5570 #include <stdlib.h>
5571 #if ((' ' & 0x0FF) == 0x020)
5572 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5573 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5574 #else
5575 # define ISLOWER(c) \
5576 (('a' <= (c) && (c) <= 'i') \
5577 || ('j' <= (c) && (c) <= 'r') \
5578 || ('s' <= (c) && (c) <= 'z'))
5579 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5580 #endif
5581
5582 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5583 int
5584 main ()
5585 {
5586 int i;
5587 for (i = 0; i < 256; i++)
5588 if (XOR (islower (i), ISLOWER (i))
5589 || toupper (i) != TOUPPER (i))
5590 return 2;
5591 return 0;
5592 }
5593 _ACEOF
5594 if ac_fn_cxx_try_run "$LINENO"; then :
5595
5596 else
5597 ac_cv_header_stdc=no
5598 fi
5599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5600 conftest.$ac_objext conftest.beam conftest.$ac_ext
5601 fi
5602
5603 fi
5604 fi
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5606 $as_echo "$ac_cv_header_stdc" >&6; }
5607 if test $ac_cv_header_stdc = yes; then
5608
5609 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5610
5611 fi
5612
5613 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5614 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5615 inttypes.h stdint.h unistd.h
5616 do :
5617 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5618 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5619 "
5620 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5621 cat >>confdefs.h <<_ACEOF
5622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5623 _ACEOF
5624
5625 fi
5626
5627 done
5628
5629
5630
5631 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5632 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5633 MINIX=yes
5634 else
5635 MINIX=
5636 fi
5637
5638
5639 if test "$MINIX" = yes; then
5640
5641 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5642
5643
5644 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5645
5646
5647 $as_echo "#define _MINIX 1" >>confdefs.h
5648
5649 fi
5650
5651
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5653 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5654 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659
5660 # define __EXTENSIONS__ 1
5661 $ac_includes_default
5662 int
5663 main ()
5664 {
5665
5666 ;
5667 return 0;
5668 }
5669 _ACEOF
5670 if ac_fn_cxx_try_compile "$LINENO"; then :
5671 ac_cv_safe_to_define___extensions__=yes
5672 else
5673 ac_cv_safe_to_define___extensions__=no
5674 fi
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676 fi
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5678 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5679 test $ac_cv_safe_to_define___extensions__ = yes &&
5680 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5681
5682 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5683
5684 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5685
5686 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5687
5688 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5689
5690
5691 ac_ext=c
5692 ac_cpp='$CPP $CPPFLAGS'
5693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5697 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5698 # On Suns, sometimes $CPP names a directory.
5699 if test -n "$CPP" && test -d "$CPP"; then
5700 CPP=
5701 fi
5702 if test -z "$CPP"; then
5703 if ${ac_cv_prog_CPP+:} false; then :
5704 $as_echo_n "(cached) " >&6
5705 else
5706 # Double quotes because CPP needs to be expanded
5707 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5708 do
5709 ac_preproc_ok=false
5710 for ac_c_preproc_warn_flag in '' yes
5711 do
5712 # Use a header file that comes with gcc, so configuring glibc
5713 # with a fresh cross-compiler works.
5714 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5715 # <limits.h> exists even on freestanding compilers.
5716 # On the NeXT, cc -E runs the code through the compiler's parser,
5717 # not just through cpp. "Syntax error" is here to catch this case.
5718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5720 #ifdef __STDC__
5721 # include <limits.h>
5722 #else
5723 # include <assert.h>
5724 #endif
5725 Syntax error
5726 _ACEOF
5727 if ac_fn_c_try_cpp "$LINENO"; then :
5728
5729 else
5730 # Broken: fails on valid input.
5731 continue
5732 fi
5733 rm -f conftest.err conftest.i conftest.$ac_ext
5734
5735 # OK, works on sane cases. Now check whether nonexistent headers
5736 # can be detected and how.
5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738 /* end confdefs.h. */
5739 #include <ac_nonexistent.h>
5740 _ACEOF
5741 if ac_fn_c_try_cpp "$LINENO"; then :
5742 # Broken: success on invalid input.
5743 continue
5744 else
5745 # Passes both tests.
5746 ac_preproc_ok=:
5747 break
5748 fi
5749 rm -f conftest.err conftest.i conftest.$ac_ext
5750
5751 done
5752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5753 rm -f conftest.i conftest.err conftest.$ac_ext
5754 if $ac_preproc_ok; then :
5755 break
5756 fi
5757
5758 done
5759 ac_cv_prog_CPP=$CPP
5760
5761 fi
5762 CPP=$ac_cv_prog_CPP
5763 else
5764 ac_cv_prog_CPP=$CPP
5765 fi
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5767 $as_echo "$CPP" >&6; }
5768 ac_preproc_ok=false
5769 for ac_c_preproc_warn_flag in '' yes
5770 do
5771 # Use a header file that comes with gcc, so configuring glibc
5772 # with a fresh cross-compiler works.
5773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5774 # <limits.h> exists even on freestanding compilers.
5775 # On the NeXT, cc -E runs the code through the compiler's parser,
5776 # not just through cpp. "Syntax error" is here to catch this case.
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 #ifdef __STDC__
5780 # include <limits.h>
5781 #else
5782 # include <assert.h>
5783 #endif
5784 Syntax error
5785 _ACEOF
5786 if ac_fn_c_try_cpp "$LINENO"; then :
5787
5788 else
5789 # Broken: fails on valid input.
5790 continue
5791 fi
5792 rm -f conftest.err conftest.i conftest.$ac_ext
5793
5794 # OK, works on sane cases. Now check whether nonexistent headers
5795 # can be detected and how.
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798 #include <ac_nonexistent.h>
5799 _ACEOF
5800 if ac_fn_c_try_cpp "$LINENO"; then :
5801 # Broken: success on invalid input.
5802 continue
5803 else
5804 # Passes both tests.
5805 ac_preproc_ok=:
5806 break
5807 fi
5808 rm -f conftest.err conftest.i conftest.$ac_ext
5809
5810 done
5811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5812 rm -f conftest.i conftest.err conftest.$ac_ext
5813 if $ac_preproc_ok; then :
5814
5815 else
5816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5818 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5819 See \`config.log' for more details" "$LINENO" 5; }
5820 fi
5821
5822 ac_ext=cpp
5823 ac_cpp='$CXXCPP $CPPFLAGS'
5824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5827
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5829 $as_echo_n "checking for inline... " >&6; }
5830 if ${ac_cv_c_inline+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 ac_cv_c_inline=no
5834 for ac_kw in inline __inline__ __inline; do
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837 #ifndef __cplusplus
5838 typedef int foo_t;
5839 static $ac_kw foo_t static_foo () {return 0; }
5840 $ac_kw foo_t foo () {return 0; }
5841 #endif
5842
5843 _ACEOF
5844 if ac_fn_cxx_try_compile "$LINENO"; then :
5845 ac_cv_c_inline=$ac_kw
5846 fi
5847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5848 test "$ac_cv_c_inline" != no && break
5849 done
5850
5851 fi
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5853 $as_echo "$ac_cv_c_inline" >&6; }
5854
5855 case $ac_cv_c_inline in
5856 inline | yes) ;;
5857 *)
5858 case $ac_cv_c_inline in
5859 no) ac_val=;;
5860 *) ac_val=$ac_cv_c_inline;;
5861 esac
5862 cat >>confdefs.h <<_ACEOF
5863 #ifndef __cplusplus
5864 #define inline $ac_val
5865 #endif
5866 _ACEOF
5867 ;;
5868 esac
5869
5870
5871 # Check whether --enable-largefile was given.
5872 if test "${enable_largefile+set}" = set; then :
5873 enableval=$enable_largefile;
5874 fi
5875
5876 if test "$enable_largefile" != no; then
5877
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5879 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5880 if ${ac_cv_sys_largefile_CC+:} false; then :
5881 $as_echo_n "(cached) " >&6
5882 else
5883 ac_cv_sys_largefile_CC=no
5884 if test "$GCC" != yes; then
5885 ac_save_CC=$CC
5886 while :; do
5887 # IRIX 6.2 and later do not support large files by default,
5888 # so use the C compiler's -n32 option if that helps.
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5891 #include <sys/types.h>
5892 /* Check that off_t can represent 2**63 - 1 correctly.
5893 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5894 since some C++ compilers masquerading as C compilers
5895 incorrectly reject 9223372036854775807. */
5896 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5897 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5898 && LARGE_OFF_T % 2147483647 == 1)
5899 ? 1 : -1];
5900 int
5901 main ()
5902 {
5903
5904 ;
5905 return 0;
5906 }
5907 _ACEOF
5908 if ac_fn_cxx_try_compile "$LINENO"; then :
5909 break
5910 fi
5911 rm -f core conftest.err conftest.$ac_objext
5912 CC="$CC -n32"
5913 if ac_fn_cxx_try_compile "$LINENO"; then :
5914 ac_cv_sys_largefile_CC=' -n32'; break
5915 fi
5916 rm -f core conftest.err conftest.$ac_objext
5917 break
5918 done
5919 CC=$ac_save_CC
5920 rm -f conftest.$ac_ext
5921 fi
5922 fi
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5924 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5925 if test "$ac_cv_sys_largefile_CC" != no; then
5926 CC=$CC$ac_cv_sys_largefile_CC
5927 fi
5928
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5930 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5931 if ${ac_cv_sys_file_offset_bits+:} false; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 while :; do
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937 #include <sys/types.h>
5938 /* Check that off_t can represent 2**63 - 1 correctly.
5939 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5940 since some C++ compilers masquerading as C compilers
5941 incorrectly reject 9223372036854775807. */
5942 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5943 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5944 && LARGE_OFF_T % 2147483647 == 1)
5945 ? 1 : -1];
5946 int
5947 main ()
5948 {
5949
5950 ;
5951 return 0;
5952 }
5953 _ACEOF
5954 if ac_fn_cxx_try_compile "$LINENO"; then :
5955 ac_cv_sys_file_offset_bits=no; break
5956 fi
5957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5960 #define _FILE_OFFSET_BITS 64
5961 #include <sys/types.h>
5962 /* Check that off_t can represent 2**63 - 1 correctly.
5963 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5964 since some C++ compilers masquerading as C compilers
5965 incorrectly reject 9223372036854775807. */
5966 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5968 && LARGE_OFF_T % 2147483647 == 1)
5969 ? 1 : -1];
5970 int
5971 main ()
5972 {
5973
5974 ;
5975 return 0;
5976 }
5977 _ACEOF
5978 if ac_fn_cxx_try_compile "$LINENO"; then :
5979 ac_cv_sys_file_offset_bits=64; break
5980 fi
5981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982 ac_cv_sys_file_offset_bits=unknown
5983 break
5984 done
5985 fi
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5987 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5988 case $ac_cv_sys_file_offset_bits in #(
5989 no | unknown) ;;
5990 *)
5991 cat >>confdefs.h <<_ACEOF
5992 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5993 _ACEOF
5994 ;;
5995 esac
5996 rm -rf conftest*
5997 if test $ac_cv_sys_file_offset_bits = unknown; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5999 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6000 if ${ac_cv_sys_large_files+:} false; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 while :; do
6004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005 /* end confdefs.h. */
6006 #include <sys/types.h>
6007 /* Check that off_t can represent 2**63 - 1 correctly.
6008 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6009 since some C++ compilers masquerading as C compilers
6010 incorrectly reject 9223372036854775807. */
6011 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6012 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6013 && LARGE_OFF_T % 2147483647 == 1)
6014 ? 1 : -1];
6015 int
6016 main ()
6017 {
6018
6019 ;
6020 return 0;
6021 }
6022 _ACEOF
6023 if ac_fn_cxx_try_compile "$LINENO"; then :
6024 ac_cv_sys_large_files=no; break
6025 fi
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 #define _LARGE_FILES 1
6030 #include <sys/types.h>
6031 /* Check that off_t can represent 2**63 - 1 correctly.
6032 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6033 since some C++ compilers masquerading as C compilers
6034 incorrectly reject 9223372036854775807. */
6035 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6036 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6037 && LARGE_OFF_T % 2147483647 == 1)
6038 ? 1 : -1];
6039 int
6040 main ()
6041 {
6042
6043 ;
6044 return 0;
6045 }
6046 _ACEOF
6047 if ac_fn_cxx_try_compile "$LINENO"; then :
6048 ac_cv_sys_large_files=1; break
6049 fi
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 ac_cv_sys_large_files=unknown
6052 break
6053 done
6054 fi
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6056 $as_echo "$ac_cv_sys_large_files" >&6; }
6057 case $ac_cv_sys_large_files in #(
6058 no | unknown) ;;
6059 *)
6060 cat >>confdefs.h <<_ACEOF
6061 #define _LARGE_FILES $ac_cv_sys_large_files
6062 _ACEOF
6063 ;;
6064 esac
6065 rm -rf conftest*
6066 fi
6067
6068
6069 fi
6070
6071
6072 # sizeof(char) is 1 by definition.
6073 # The cast to long int works around a bug in the HP C Compiler
6074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6076 # This bug is HP SR number 8606223364.
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6078 $as_echo_n "checking size of void *... " >&6; }
6079 if ${ac_cv_sizeof_void_p+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6083
6084 else
6085 if test "$ac_cv_type_void_p" = yes; then
6086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6088 as_fn_error 77 "cannot compute sizeof (void *)
6089 See \`config.log' for more details" "$LINENO" 5; }
6090 else
6091 ac_cv_sizeof_void_p=0
6092 fi
6093 fi
6094
6095 fi
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6097 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6098
6099
6100
6101 cat >>confdefs.h <<_ACEOF
6102 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6103 _ACEOF
6104
6105
6106 # The cast to long int works around a bug in the HP C Compiler
6107 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6108 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6109 # This bug is HP SR number 8606223364.
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6111 $as_echo_n "checking size of short... " >&6; }
6112 if ${ac_cv_sizeof_short+:} false; then :
6113 $as_echo_n "(cached) " >&6
6114 else
6115 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6116
6117 else
6118 if test "$ac_cv_type_short" = yes; then
6119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6121 as_fn_error 77 "cannot compute sizeof (short)
6122 See \`config.log' for more details" "$LINENO" 5; }
6123 else
6124 ac_cv_sizeof_short=0
6125 fi
6126 fi
6127
6128 fi
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6130 $as_echo "$ac_cv_sizeof_short" >&6; }
6131
6132
6133
6134 cat >>confdefs.h <<_ACEOF
6135 #define SIZEOF_SHORT $ac_cv_sizeof_short
6136 _ACEOF
6137
6138
6139 # The cast to long int works around a bug in the HP C Compiler
6140 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6141 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6142 # This bug is HP SR number 8606223364.
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6144 $as_echo_n "checking size of int... " >&6; }
6145 if ${ac_cv_sizeof_int+:} false; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6148 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6149
6150 else
6151 if test "$ac_cv_type_int" = yes; then
6152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6154 as_fn_error 77 "cannot compute sizeof (int)
6155 See \`config.log' for more details" "$LINENO" 5; }
6156 else
6157 ac_cv_sizeof_int=0
6158 fi
6159 fi
6160
6161 fi
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6163 $as_echo "$ac_cv_sizeof_int" >&6; }
6164
6165
6166
6167 cat >>confdefs.h <<_ACEOF
6168 #define SIZEOF_INT $ac_cv_sizeof_int
6169 _ACEOF
6170
6171
6172 # The cast to long int works around a bug in the HP C Compiler
6173 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6174 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6175 # This bug is HP SR number 8606223364.
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6177 $as_echo_n "checking size of long... " >&6; }
6178 if ${ac_cv_sizeof_long+:} false; then :
6179 $as_echo_n "(cached) " >&6
6180 else
6181 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6182
6183 else
6184 if test "$ac_cv_type_long" = yes; then
6185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6187 as_fn_error 77 "cannot compute sizeof (long)
6188 See \`config.log' for more details" "$LINENO" 5; }
6189 else
6190 ac_cv_sizeof_long=0
6191 fi
6192 fi
6193
6194 fi
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6196 $as_echo "$ac_cv_sizeof_long" >&6; }
6197
6198
6199
6200 cat >>confdefs.h <<_ACEOF
6201 #define SIZEOF_LONG $ac_cv_sizeof_long
6202 _ACEOF
6203
6204
6205 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6206 if test "x$ac_cv_type_long_long" = xyes; then :
6207
6208 cat >>confdefs.h <<_ACEOF
6209 #define HAVE_LONG_LONG 1
6210 _ACEOF
6211
6212 # The cast to long int works around a bug in the HP C Compiler
6213 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6214 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6215 # This bug is HP SR number 8606223364.
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6217 $as_echo_n "checking size of long long... " >&6; }
6218 if ${ac_cv_sizeof_long_long+:} false; then :
6219 $as_echo_n "(cached) " >&6
6220 else
6221 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6222
6223 else
6224 if test "$ac_cv_type_long_long" = yes; then
6225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6227 as_fn_error 77 "cannot compute sizeof (long long)
6228 See \`config.log' for more details" "$LINENO" 5; }
6229 else
6230 ac_cv_sizeof_long_long=0
6231 fi
6232 fi
6233
6234 fi
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6236 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6237
6238
6239
6240 cat >>confdefs.h <<_ACEOF
6241 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6242 _ACEOF
6243
6244
6245 fi
6246
6247 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6248 case $ac_cv_c_int8_t in #(
6249 no|yes) ;; #(
6250 *)
6251
6252 cat >>confdefs.h <<_ACEOF
6253 #define int8_t $ac_cv_c_int8_t
6254 _ACEOF
6255 ;;
6256 esac
6257
6258 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6259 case $ac_cv_c_int16_t in #(
6260 no|yes) ;; #(
6261 *)
6262
6263 cat >>confdefs.h <<_ACEOF
6264 #define int16_t $ac_cv_c_int16_t
6265 _ACEOF
6266 ;;
6267 esac
6268
6269 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6270 case $ac_cv_c_int32_t in #(
6271 no|yes) ;; #(
6272 *)
6273
6274 cat >>confdefs.h <<_ACEOF
6275 #define int32_t $ac_cv_c_int32_t
6276 _ACEOF
6277 ;;
6278 esac
6279
6280 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6281 case $ac_cv_c_int64_t in #(
6282 no|yes) ;; #(
6283 *)
6284
6285 cat >>confdefs.h <<_ACEOF
6286 #define int64_t $ac_cv_c_int64_t
6287 _ACEOF
6288 ;;
6289 esac
6290
6291
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6293 $as_echo_n "checking for unsigned long long int... " >&6; }
6294 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6295 $as_echo_n "(cached) " >&6
6296 else
6297 ac_cv_type_unsigned_long_long_int=yes
6298 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6301
6302 /* For now, do not test the preprocessor; as of 2007 there are too many
6303 implementations with broken preprocessors. Perhaps this can
6304 be revisited in 2012. In the meantime, code should not expect
6305 #if to work with literals wider than 32 bits. */
6306 /* Test literals. */
6307 long long int ll = 9223372036854775807ll;
6308 long long int nll = -9223372036854775807LL;
6309 unsigned long long int ull = 18446744073709551615ULL;
6310 /* Test constant expressions. */
6311 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6312 ? 1 : -1)];
6313 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6314 ? 1 : -1)];
6315 int i = 63;
6316 int
6317 main ()
6318 {
6319 /* Test availability of runtime routines for shift and division. */
6320 long long int llmax = 9223372036854775807ll;
6321 unsigned long long int ullmax = 18446744073709551615ull;
6322 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6323 | (llmax / ll) | (llmax % ll)
6324 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6325 | (ullmax / ull) | (ullmax % ull));
6326 ;
6327 return 0;
6328 }
6329
6330 _ACEOF
6331 if ac_fn_cxx_try_link "$LINENO"; then :
6332
6333 else
6334 ac_cv_type_unsigned_long_long_int=no
6335 fi
6336 rm -f core conftest.err conftest.$ac_objext \
6337 conftest$ac_exeext conftest.$ac_ext
6338 fi
6339 fi
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6341 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6342 if test $ac_cv_type_unsigned_long_long_int = yes; then
6343
6344 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6345
6346 fi
6347
6348
6349
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6351 $as_echo_n "checking for long long int... " >&6; }
6352 if ${ac_cv_type_long_long_int+:} false; then :
6353 $as_echo_n "(cached) " >&6
6354 else
6355 ac_cv_type_long_long_int=yes
6356 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6357 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6358 if test $ac_cv_type_long_long_int = yes; then
6359 if test "$cross_compiling" = yes; then :
6360 :
6361 else
6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6364 #include <limits.h>
6365 #ifndef LLONG_MAX
6366 # define HALF \
6367 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6368 # define LLONG_MAX (HALF - 1 + HALF)
6369 #endif
6370 int
6371 main ()
6372 {
6373 long long int n = 1;
6374 int i;
6375 for (i = 0; ; i++)
6376 {
6377 long long int m = n << i;
6378 if (m >> i != n)
6379 return 1;
6380 if (LLONG_MAX / 2 < m)
6381 break;
6382 }
6383 return 0;
6384 ;
6385 return 0;
6386 }
6387 _ACEOF
6388 if ac_fn_cxx_try_run "$LINENO"; then :
6389
6390 else
6391 ac_cv_type_long_long_int=no
6392 fi
6393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6394 conftest.$ac_objext conftest.beam conftest.$ac_ext
6395 fi
6396
6397 fi
6398 fi
6399 fi
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6401 $as_echo "$ac_cv_type_long_long_int" >&6; }
6402 if test $ac_cv_type_long_long_int = yes; then
6403
6404 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6405
6406 fi
6407
6408
6409
6410 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6411 if test "x$ac_cv_type_intmax_t" = xyes; then :
6412
6413 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6414
6415 else
6416 test $ac_cv_type_long_long_int = yes \
6417 && ac_type='long long int' \
6418 || ac_type='long int'
6419
6420 cat >>confdefs.h <<_ACEOF
6421 #define intmax_t $ac_type
6422 _ACEOF
6423
6424 fi
6425
6426
6427
6428 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6429 if test "x$ac_cv_type_intptr_t" = xyes; then :
6430
6431 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6432
6433 else
6434 for ac_type in 'int' 'long int' 'long long int'; do
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6437 $ac_includes_default
6438 int
6439 main ()
6440 {
6441 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6442 test_array [0] = 0;
6443 return test_array [0];
6444
6445 ;
6446 return 0;
6447 }
6448 _ACEOF
6449 if ac_fn_cxx_try_compile "$LINENO"; then :
6450
6451 cat >>confdefs.h <<_ACEOF
6452 #define intptr_t $ac_type
6453 _ACEOF
6454
6455 ac_type=
6456 fi
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 test -z "$ac_type" && break
6459 done
6460 fi
6461
6462
6463 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6464 case $ac_cv_c_uint8_t in #(
6465 no|yes) ;; #(
6466 *)
6467
6468 $as_echo "#define _UINT8_T 1" >>confdefs.h
6469
6470
6471 cat >>confdefs.h <<_ACEOF
6472 #define uint8_t $ac_cv_c_uint8_t
6473 _ACEOF
6474 ;;
6475 esac
6476
6477 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6478 case $ac_cv_c_uint16_t in #(
6479 no|yes) ;; #(
6480 *)
6481
6482
6483 cat >>confdefs.h <<_ACEOF
6484 #define uint16_t $ac_cv_c_uint16_t
6485 _ACEOF
6486 ;;
6487 esac
6488
6489 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6490 case $ac_cv_c_uint32_t in #(
6491 no|yes) ;; #(
6492 *)
6493
6494 $as_echo "#define _UINT32_T 1" >>confdefs.h
6495
6496
6497 cat >>confdefs.h <<_ACEOF
6498 #define uint32_t $ac_cv_c_uint32_t
6499 _ACEOF
6500 ;;
6501 esac
6502
6503 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6504 case $ac_cv_c_uint64_t in #(
6505 no|yes) ;; #(
6506 *)
6507
6508 $as_echo "#define _UINT64_T 1" >>confdefs.h
6509
6510
6511 cat >>confdefs.h <<_ACEOF
6512 #define uint64_t $ac_cv_c_uint64_t
6513 _ACEOF
6514 ;;
6515 esac
6516
6517
6518
6519 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6520 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6521
6522 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6523
6524 else
6525 test $ac_cv_type_unsigned_long_long_int = yes \
6526 && ac_type='unsigned long long int' \
6527 || ac_type='unsigned long int'
6528
6529 cat >>confdefs.h <<_ACEOF
6530 #define uintmax_t $ac_type
6531 _ACEOF
6532
6533 fi
6534
6535
6536
6537 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6538 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6539
6540 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6541
6542 else
6543 for ac_type in 'unsigned int' 'unsigned long int' \
6544 'unsigned long long int'; do
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6547 $ac_includes_default
6548 int
6549 main ()
6550 {
6551 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6552 test_array [0] = 0;
6553 return test_array [0];
6554
6555 ;
6556 return 0;
6557 }
6558 _ACEOF
6559 if ac_fn_cxx_try_compile "$LINENO"; then :
6560
6561 cat >>confdefs.h <<_ACEOF
6562 #define uintptr_t $ac_type
6563 _ACEOF
6564
6565 ac_type=
6566 fi
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568 test -z "$ac_type" && break
6569 done
6570 fi
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6586 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6587 fi
6588
6589 # check what underlying integer type int64_t uses
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6591 $as_echo_n "checking for int64_t underlying type... " >&6; }
6592 if ${ac_cv_int64_t_type+:} false; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598
6599 #ifdef HAVE_STDINT_H
6600 #include <stdint.h>
6601 #endif
6602 template <typename T> struct X { };
6603 template <>
6604 struct X<long> { typedef long t; };
6605
6606 int
6607 main ()
6608 {
6609 X<int64_t>::t x;
6610 ;
6611 return 0;
6612 }
6613 _ACEOF
6614 if ac_fn_cxx_try_compile "$LINENO"; then :
6615 ac_cv_int64_t_type=long
6616 else
6617 ac_cv_int64_t_type="long long"
6618 fi
6619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620 fi
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6622 $as_echo "$ac_cv_int64_t_type" >&6; }
6623 if test "$ac_cv_int64_t_type" = "long"; then
6624
6625 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6626
6627 else
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6630
6631 #ifdef HAVE_STDINT_H
6632 #include <stdint.h>
6633 #endif
6634 template <typename T> struct X { };
6635 template <>
6636 struct X<long long> { typedef long long t; };
6637
6638 int
6639 main ()
6640 {
6641 X<int64_t>::t x;
6642 ;
6643 return 0;
6644 }
6645 _ACEOF
6646 if ac_fn_cxx_try_compile "$LINENO"; then :
6647
6648 else
6649 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6650 fi
6651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652 fi
6653
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6655 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6656 if ${ac_cv_std_swap_in_utility+:} false; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6662
6663 #include <utility>
6664
6665 int
6666 main ()
6667 {
6668 int a, b; std::swap(a,b);
6669 ;
6670 return 0;
6671 }
6672 _ACEOF
6673 if ac_fn_cxx_try_compile "$LINENO"; then :
6674 ac_cv_std_swap_in_utility=yes
6675 else
6676 ac_cv_std_swap_in_utility=no
6677 fi
6678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679 fi
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6681 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6682 if test $ac_cv_std_swap_in_utility = yes; then
6683
6684 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6685
6686 fi
6687
6688 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6689 # If the host compiler is affected by the bug, and we build with optimization
6690 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6691 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6692 # Since there is no reliable feature check for the presence of this bug,
6693 # we simply use a GCC version number check. (This should never trigger for
6694 # stages 2 or 3 of a native bootstrap.)
6695 aliasing_flags=
6696 if test "$GCC" = yes; then
6697 saved_CXXFLAGS="$CXXFLAGS"
6698
6699 # The following test compilation will succeed if and only if $CXX accepts
6700 # -fno-strict-aliasing *and* is older than GCC 4.3.
6701 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6703 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6706
6707 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6708 #error compiler not affected by placement new aliasing bug
6709 #endif
6710
6711 _ACEOF
6712 if ac_fn_cxx_try_compile "$LINENO"; then :
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6714 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6715 else
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717 $as_echo "no" >&6; }
6718 fi
6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720
6721 CXXFLAGS="$saved_CXXFLAGS"
6722 fi
6723
6724
6725
6726
6727 # ---------------------
6728 # Warnings and checking
6729 # ---------------------
6730
6731 # Check $CC warning features (if it's GCC).
6732 # We want to use -pedantic, but we don't want warnings about
6733 # * 'long long'
6734 # * variadic macros
6735 # * overlong strings
6736 # * C++11 narrowing conversions in { }
6737 # So, we only use -pedantic if we can disable those warnings.
6738
6739 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6740 # Check whether --enable-build-format-warnings was given.
6741 if test "${enable_build_format_warnings+set}" = set; then :
6742 enableval=$enable_build_format_warnings;
6743 else
6744 enable_build_format_warnings=yes
6745 fi
6746
6747 if test $enable_build_format_warnings = no; then :
6748 wf_opt=-Wno-format
6749 else
6750 wf_opt=
6751 fi
6752 ac_ext=cpp
6753 ac_cpp='$CXXCPP $CPPFLAGS'
6754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6757
6758 loose_warn=
6759 save_CXXFLAGS="$CXXFLAGS"
6760 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6761 # Do the check with the no- prefix removed since gcc silently
6762 # accepts any -Wno-* option on purpose
6763 case $real_option in
6764 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6765 *) option=$real_option ;;
6766 esac
6767 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6768
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6770 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6771 if eval \${$as_acx_Woption+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 CXXFLAGS="$option"
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777
6778 int
6779 main ()
6780 {
6781
6782 ;
6783 return 0;
6784 }
6785 _ACEOF
6786 if ac_fn_cxx_try_compile "$LINENO"; then :
6787 eval "$as_acx_Woption=yes"
6788 else
6789 eval "$as_acx_Woption=no"
6790 fi
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792
6793 fi
6794 eval ac_res=\$$as_acx_Woption
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6796 $as_echo "$ac_res" >&6; }
6797 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6798 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6799 fi
6800 done
6801 CXXFLAGS="$save_CXXFLAGS"
6802 ac_ext=cpp
6803 ac_cpp='$CXXCPP $CPPFLAGS'
6804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6807
6808
6809
6810 ac_ext=c
6811 ac_cpp='$CPP $CPPFLAGS'
6812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6815
6816 c_loose_warn=
6817 save_CFLAGS="$CFLAGS"
6818 for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
6819 # Do the check with the no- prefix removed since gcc silently
6820 # accepts any -Wno-* option on purpose
6821 case $real_option in
6822 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6823 *) option=$real_option ;;
6824 esac
6825 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6826
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6828 $as_echo_n "checking whether $CC supports $option... " >&6; }
6829 if eval \${$as_acx_Woption+:} false; then :
6830 $as_echo_n "(cached) " >&6
6831 else
6832 CFLAGS="$option"
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835
6836 int
6837 main ()
6838 {
6839
6840 ;
6841 return 0;
6842 }
6843 _ACEOF
6844 if ac_fn_c_try_compile "$LINENO"; then :
6845 eval "$as_acx_Woption=yes"
6846 else
6847 eval "$as_acx_Woption=no"
6848 fi
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6850
6851 fi
6852 eval ac_res=\$$as_acx_Woption
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6854 $as_echo "$ac_res" >&6; }
6855 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6856 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6857 fi
6858 done
6859 CFLAGS="$save_CFLAGS"
6860 ac_ext=cpp
6861 ac_cpp='$CXXCPP $CPPFLAGS'
6862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6865
6866
6867 ac_ext=cpp
6868 ac_cpp='$CXXCPP $CPPFLAGS'
6869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6872
6873 strict_warn=
6874 save_CXXFLAGS="$CXXFLAGS"
6875 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6876 # Do the check with the no- prefix removed since gcc silently
6877 # accepts any -Wno-* option on purpose
6878 case $real_option in
6879 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6880 *) option=$real_option ;;
6881 esac
6882 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6883
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6885 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6886 if eval \${$as_acx_Woption+:} false; then :
6887 $as_echo_n "(cached) " >&6
6888 else
6889 CXXFLAGS="$option"
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6892
6893 int
6894 main ()
6895 {
6896
6897 ;
6898 return 0;
6899 }
6900 _ACEOF
6901 if ac_fn_cxx_try_compile "$LINENO"; then :
6902 eval "$as_acx_Woption=yes"
6903 else
6904 eval "$as_acx_Woption=no"
6905 fi
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907
6908 fi
6909 eval ac_res=\$$as_acx_Woption
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6911 $as_echo "$ac_res" >&6; }
6912 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6913 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6914 fi
6915 done
6916 CXXFLAGS="$save_CXXFLAGS"
6917 ac_ext=cpp
6918 ac_cpp='$CXXCPP $CPPFLAGS'
6919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6922
6923
6924 ac_ext=c
6925 ac_cpp='$CPP $CPPFLAGS'
6926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6929
6930 c_strict_warn=
6931 save_CFLAGS="$CFLAGS"
6932 for real_option in -Wold-style-definition -Wc++-compat; do
6933 # Do the check with the no- prefix removed since gcc silently
6934 # accepts any -Wno-* option on purpose
6935 case $real_option in
6936 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6937 *) option=$real_option ;;
6938 esac
6939 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6940
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6942 $as_echo_n "checking whether $CC supports $option... " >&6; }
6943 if eval \${$as_acx_Woption+:} false; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 CFLAGS="$option"
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6949
6950 int
6951 main ()
6952 {
6953
6954 ;
6955 return 0;
6956 }
6957 _ACEOF
6958 if ac_fn_c_try_compile "$LINENO"; then :
6959 eval "$as_acx_Woption=yes"
6960 else
6961 eval "$as_acx_Woption=no"
6962 fi
6963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6964
6965 fi
6966 eval ac_res=\$$as_acx_Woption
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6968 $as_echo "$ac_res" >&6; }
6969 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6970 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6971 fi
6972 done
6973 CFLAGS="$save_CFLAGS"
6974 ac_ext=cpp
6975 ac_cpp='$CXXCPP $CPPFLAGS'
6976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6979
6980
6981 ac_ext=cpp
6982 ac_cpp='$CXXCPP $CPPFLAGS'
6983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6986
6987 # Do the check with the no- prefix removed from the warning options
6988 # since gcc silently accepts any -Wno-* option on purpose
6989 if test "$GXX" = yes; then :
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6991 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6992 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995 save_CXXFLAGS="$CXXFLAGS"
6996 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
6999
7000 int
7001 main ()
7002 {
7003
7004 ;
7005 return 0;
7006 }
7007 _ACEOF
7008 if ac_fn_cxx_try_compile "$LINENO"; then :
7009 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7010 else
7011 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7012 fi
7013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014 CXXFLAGS="$save_CXXFLAGS"
7015 fi
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7017 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7018 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7019 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7020 fi
7021
7022 fi
7023 ac_ext=cpp
7024 ac_cpp='$CXXCPP $CPPFLAGS'
7025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7028
7029
7030 ac_ext=cpp
7031 ac_cpp='$CXXCPP $CPPFLAGS'
7032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7035
7036 # Check whether --enable-werror-always was given.
7037 if test "${enable_werror_always+set}" = set; then :
7038 enableval=$enable_werror_always;
7039 else
7040 enable_werror_always=no
7041 fi
7042
7043 if test $enable_werror_always = yes; then :
7044 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7045 fi
7046
7047 ac_ext=cpp
7048 ac_cpp='$CXXCPP $CPPFLAGS'
7049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7052
7053
7054
7055 # The above macros do nothing if the compiler is not GCC. However, the
7056 # Makefile has more goo to add other flags, so these variables are used
7057 # to enable warnings only for GCC.
7058 warn_cflags=
7059 warn_cxxflags=
7060 if test "x$GCC" = "xyes"; then
7061 warn_cflags='$(GCC_WARN_CFLAGS)'
7062 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7063 fi
7064
7065
7066
7067 # Disable exceptions and RTTI if building with g++
7068 ac_ext=c
7069 ac_cpp='$CPP $CPPFLAGS'
7070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7073
7074 noexception_flags=
7075 save_CFLAGS="$CFLAGS"
7076 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7077 # Do the check with the no- prefix removed since gcc silently
7078 # accepts any -Wno-* option on purpose
7079 case $real_option in
7080 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7081 *) option=$real_option ;;
7082 esac
7083 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7084
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7086 $as_echo_n "checking whether $CC supports $option... " >&6; }
7087 if eval \${$as_acx_Woption+:} false; then :
7088 $as_echo_n "(cached) " >&6
7089 else
7090 CFLAGS="$option"
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7093
7094 int
7095 main ()
7096 {
7097
7098 ;
7099 return 0;
7100 }
7101 _ACEOF
7102 if ac_fn_c_try_compile "$LINENO"; then :
7103 eval "$as_acx_Woption=yes"
7104 else
7105 eval "$as_acx_Woption=no"
7106 fi
7107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7108
7109 fi
7110 eval ac_res=\$$as_acx_Woption
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7112 $as_echo "$ac_res" >&6; }
7113 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7114 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7115 fi
7116 done
7117 CFLAGS="$save_CFLAGS"
7118 ac_ext=cpp
7119 ac_cpp='$CXXCPP $CPPFLAGS'
7120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7123
7124
7125
7126 # Enable expensive internal checks
7127 is_release=
7128 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7129 is_release=yes
7130 fi
7131
7132 # Check whether --enable-checking was given.
7133 if test "${enable_checking+set}" = set; then :
7134 enableval=$enable_checking; ac_checking_flags="${enableval}"
7135 else
7136
7137 # Determine the default checks.
7138 if test x$is_release = x ; then
7139 ac_checking_flags=yes,extra
7140 else
7141 ac_checking_flags=release
7142 fi
7143 fi
7144
7145 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7146 for check in release $ac_checking_flags
7147 do
7148 case $check in
7149 # these set all the flags to specific states
7150 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7151 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7152 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7153 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7154 ac_tree_checking=1 ; ac_valgrind_checking= ;
7155 ac_types_checking=1 ;;
7156 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7157 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7158 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7159 ac_rtlflag_checking= ; ac_runtime_checking= ;
7160 ac_tree_checking= ; ac_valgrind_checking= ;
7161 ac_types_checking= ;;
7162 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7163 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7164 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7165 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7166 ac_tree_checking=1 ; ac_valgrind_checking= ;
7167 ac_types_checking=1 ;;
7168 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7169 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7170 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7171 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7172 ac_tree_checking= ; ac_valgrind_checking= ;
7173 ac_types_checking= ;;
7174 # these enable particular checks
7175 assert) ac_assert_checking=1 ;;
7176 df) ac_df_checking=1 ;;
7177 extra) ac_extra_checking=1 ;;
7178 fold) ac_fold_checking=1 ;;
7179 gc) ac_gc_checking=1 ;;
7180 gcac) ac_gc_always_collect=1 ;;
7181 gimple) ac_gimple_checking=1 ;;
7182 misc) ac_checking=1 ;;
7183 rtl) ac_rtl_checking=1 ;;
7184 rtlflag) ac_rtlflag_checking=1 ;;
7185 runtime) ac_runtime_checking=1 ;;
7186 tree) ac_tree_checking=1 ;;
7187 types) ac_types_checking=1 ;;
7188 valgrind) ac_valgrind_checking=1 ;;
7189 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7190 esac
7191 done
7192 IFS="$ac_save_IFS"
7193
7194 nocommon_flag=""
7195 if test x$ac_checking != x ; then
7196
7197 $as_echo "#define CHECKING_P 1" >>confdefs.h
7198
7199 nocommon_flag=-fno-common
7200 else
7201 $as_echo "#define CHECKING_P 0" >>confdefs.h
7202
7203 fi
7204
7205 if test x$ac_extra_checking != x ; then
7206
7207 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7208
7209 else
7210 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7211
7212 fi
7213 if test x$ac_df_checking != x ; then
7214
7215 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7216
7217 fi
7218 if test x$ac_assert_checking != x ; then
7219
7220 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7221
7222 fi
7223 if test x$ac_gimple_checking != x ; then
7224
7225 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7226
7227 fi
7228
7229 if test x$ac_runtime_checking != x ; then
7230
7231 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7232
7233 fi
7234 if test x$ac_tree_checking != x ; then
7235
7236 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7237
7238 TREECHECKING=yes
7239 fi
7240 if test x$ac_types_checking != x ; then
7241
7242 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7243
7244 fi
7245
7246 if test x$ac_rtl_checking != x ; then
7247
7248 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7249
7250 fi
7251 if test x$ac_rtlflag_checking != x ; then
7252
7253 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7254
7255 fi
7256 if test x$ac_gc_checking != x ; then
7257
7258 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7259
7260 fi
7261 if test x$ac_gc_always_collect != x ; then
7262
7263 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7264
7265 fi
7266 if test x$ac_fold_checking != x ; then
7267
7268 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7269
7270 fi
7271 valgrind_path_defines=
7272 valgrind_command=
7273
7274 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7275 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7276 have_valgrind_h=yes
7277 else
7278 have_valgrind_h=no
7279 fi
7280
7281
7282
7283 # It is certainly possible that there's valgrind but no valgrind.h.
7284 # GCC relies on making annotations so we must have both.
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7286 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h. */
7289 #include <valgrind/memcheck.h>
7290 #ifndef VALGRIND_DISCARD
7291 #error VALGRIND_DISCARD not defined
7292 #endif
7293 _ACEOF
7294 if ac_fn_cxx_try_cpp "$LINENO"; then :
7295 gcc_cv_header_valgrind_memcheck_h=yes
7296 else
7297 gcc_cv_header_valgrind_memcheck_h=no
7298 fi
7299 rm -f conftest.err conftest.i conftest.$ac_ext
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7301 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7303 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7306 #include <memcheck.h>
7307 #ifndef VALGRIND_DISCARD
7308 #error VALGRIND_DISCARD not defined
7309 #endif
7310 _ACEOF
7311 if ac_fn_cxx_try_cpp "$LINENO"; then :
7312 gcc_cv_header_memcheck_h=yes
7313 else
7314 gcc_cv_header_memcheck_h=no
7315 fi
7316 rm -f conftest.err conftest.i conftest.$ac_ext
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7318 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7319 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7320
7321 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7322
7323 fi
7324 if test $gcc_cv_header_memcheck_h = yes; then
7325
7326 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7327
7328 fi
7329
7330 if test x$ac_valgrind_checking != x ; then
7331
7332 # Prepare PATH_SEPARATOR.
7333 # The user is always right.
7334 if test "${PATH_SEPARATOR+set}" != set; then
7335 echo "#! /bin/sh" >conf$$.sh
7336 echo "exit 0" >>conf$$.sh
7337 chmod +x conf$$.sh
7338 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7339 PATH_SEPARATOR=';'
7340 else
7341 PATH_SEPARATOR=:
7342 fi
7343 rm -f conf$$.sh
7344 fi
7345
7346 # Find out how to test for executable files. Don't use a zero-byte file,
7347 # as systems may use methods other than mode bits to determine executability.
7348 cat >conf$$.file <<_ASEOF
7349 #! /bin/sh
7350 exit 0
7351 _ASEOF
7352 chmod +x conf$$.file
7353 if test -x conf$$.file >/dev/null 2>&1; then
7354 ac_executable_p="test -x"
7355 else
7356 ac_executable_p="test -f"
7357 fi
7358 rm -f conf$$.file
7359
7360 # Extract the first word of "valgrind", so it can be a program name with args.
7361 set dummy valgrind; ac_word=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if ${ac_cv_path_valgrind_path+:} false; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 case "$valgrind_path" in
7368 [\\/]* | ?:[\\/]*)
7369 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7370 ;;
7371 *)
7372 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7373 for ac_dir in $PATH; do
7374 IFS="$ac_save_IFS"
7375 test -z "$ac_dir" && ac_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7378 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7379 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7380 break 2
7381 fi
7382 fi
7383 done
7384 done
7385 IFS="$ac_save_IFS"
7386 ;;
7387 esac
7388 fi
7389 valgrind_path="$ac_cv_path_valgrind_path"
7390 if test -n "$valgrind_path"; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7392 $as_echo "$valgrind_path" >&6; }
7393 else
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7396 fi
7397
7398 if test "x$valgrind_path" = "x" \
7399 || (test $have_valgrind_h = no \
7400 && test $gcc_cv_header_memcheck_h = no \
7401 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7402 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7403 fi
7404 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7405 valgrind_command="$valgrind_path -q"
7406
7407 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7408
7409 fi
7410
7411
7412
7413 # Enable code coverage collection
7414 # Check whether --enable-coverage was given.
7415 if test "${enable_coverage+set}" = set; then :
7416 enableval=$enable_coverage; case "${enableval}" in
7417 yes|noopt)
7418 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7419 ;;
7420 opt)
7421 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7422 ;;
7423 no)
7424 # a.k.a. --disable-coverage
7425 coverage_flags=""
7426 ;;
7427 *)
7428 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7429 ;;
7430 esac
7431 else
7432 coverage_flags=""
7433 fi
7434
7435
7436
7437 # Check whether --enable-gather-detailed-mem-stats was given.
7438 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7439 enableval=$enable_gather_detailed_mem_stats;
7440 else
7441 enable_gather_detailed_mem_stats=no
7442 fi
7443
7444 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7445
7446 cat >>confdefs.h <<_ACEOF
7447 #define GATHER_STATISTICS $gather_stats
7448 _ACEOF
7449
7450
7451 # Check whether --enable-valgrind-annotations was given.
7452 if test "${enable_valgrind_annotations+set}" = set; then :
7453 enableval=$enable_valgrind_annotations;
7454 else
7455 enable_valgrind_annotations=no
7456 fi
7457
7458 if test x$enable_valgrind_annotations != xno \
7459 || test x$ac_valgrind_checking != x; then
7460 if (test $have_valgrind_h = no \
7461 && test $gcc_cv_header_memcheck_h = no \
7462 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7463 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7464 fi
7465
7466 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7467
7468 fi
7469
7470 # -------------------------------
7471 # Miscenalleous configure options
7472 # -------------------------------
7473
7474 # With stabs
7475
7476 # Check whether --with-stabs was given.
7477 if test "${with_stabs+set}" = set; then :
7478 withval=$with_stabs; stabs="$with_stabs"
7479 else
7480 stabs=no
7481 fi
7482
7483
7484 # Determine whether or not multilibs are enabled.
7485 # Check whether --enable-multilib was given.
7486 if test "${enable_multilib+set}" = set; then :
7487 enableval=$enable_multilib;
7488 else
7489 enable_multilib=yes
7490 fi
7491
7492
7493
7494 # Determine whether or not multiarch is enabled.
7495 # Check whether --enable-multiarch was given.
7496 if test "${enable_multiarch+set}" = set; then :
7497 enableval=$enable_multiarch; case "${enableval}" in
7498 yes|no|auto) enable_multiarch=$enableval;;
7499 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7500 esac
7501 else
7502 enable_multiarch=auto
7503 fi
7504
7505 if test x${enable_multiarch} = xauto; then
7506 if test x${with_native_system_header_dir} != x; then
7507 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7508 enable_multiarch=no
7509 fi
7510 if test x$host != x$target && test "x$with_sysroot" = x; then
7511 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7512 enable_multiarch=no
7513 fi
7514 fi
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7516 $as_echo_n "checking for multiarch configuration... " >&6; }
7517
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7519 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7520
7521 # needed for setting the multiarch name for soft-float/hard-float ABIs
7522
7523
7524
7525 # default stack clash protection guard size as power of twos in bytes.
7526 # Please keep these in sync with params.def.
7527 stk_clash_min=12
7528 stk_clash_max=30
7529
7530 # Keep the default value when the option is not used to 0, this allows us to
7531 # distinguish between the cases where the user specifially set a value via
7532 # configure and when the normal default value is used.
7533
7534 # Check whether --with-stack-clash-protection-guard-size was given.
7535 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7536 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7537 else
7538 DEFAULT_STK_CLASH_GUARD_SIZE=0
7539 fi
7540
7541 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7542 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7543 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7544 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
7545 fi
7546
7547
7548 cat >>confdefs.h <<_ACEOF
7549 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7550 _ACEOF
7551
7552
7553 # Enable __cxa_atexit for C++.
7554 # Check whether --enable-__cxa_atexit was given.
7555 if test "${enable___cxa_atexit+set}" = set; then :
7556 enableval=$enable___cxa_atexit;
7557 fi
7558
7559
7560 # Enable C extension for decimal float if target supports it.
7561
7562 # Check whether --enable-decimal-float was given.
7563 if test "${enable_decimal_float+set}" = set; then :
7564 enableval=$enable_decimal_float;
7565 case $enable_decimal_float in
7566 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7567 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7568 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7569 esac
7570
7571 else
7572
7573 case $target in
7574 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7575 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7576 i?86*-*-mingw* | x86_64*-*-mingw* | \
7577 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7578 enable_decimal_float=yes
7579 ;;
7580 *)
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7582 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7583 enable_decimal_float=no
7584 ;;
7585 esac
7586
7587 fi
7588
7589
7590 # x86's use BID format instead of DPD
7591 case x$enable_decimal_float in
7592 xyes)
7593 case $target in
7594 i?86*-*-* | x86_64*-*-*)
7595 enable_decimal_float=bid
7596 ;;
7597 *)
7598 enable_decimal_float=dpd
7599 ;;
7600 esac
7601 default_decimal_float=$enable_decimal_float
7602 ;;
7603 xno)
7604 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7605 # dependency on libdecnumber.
7606 default_decimal_float=dpd
7607 ;;
7608 esac
7609
7610
7611
7612
7613 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7614
7615 cat >>confdefs.h <<_ACEOF
7616 #define ENABLE_DECIMAL_FLOAT $dfp
7617 _ACEOF
7618
7619
7620 # Use default_decimal_float for dependency.
7621 enable_decimal_float=$default_decimal_float
7622
7623 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7624
7625 cat >>confdefs.h <<_ACEOF
7626 #define ENABLE_DECIMAL_BID_FORMAT $bid
7627 _ACEOF
7628
7629
7630 # Enable C extension for fixed-point arithmetic.
7631 # Check whether --enable-fixed-point was given.
7632 if test "${enable_fixed_point+set}" = set; then :
7633 enableval=$enable_fixed_point;
7634 else
7635
7636 case $target in
7637 arm*)
7638 enable_fixed_point=yes
7639 ;;
7640
7641 mips*-*-*)
7642 enable_fixed_point=yes
7643 ;;
7644 *)
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7646 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7647 enable_fixed_point=no
7648 ;;
7649 esac
7650
7651 fi
7652
7653
7654
7655 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7656
7657 cat >>confdefs.h <<_ACEOF
7658 #define ENABLE_FIXED_POINT $fixedpoint
7659 _ACEOF
7660
7661
7662 # Enable threads
7663 # Pass with no value to take the default
7664 # Pass with a value to specify a thread package
7665 # Check whether --enable-threads was given.
7666 if test "${enable_threads+set}" = set; then :
7667 enableval=$enable_threads;
7668 else
7669 enable_threads=''
7670 fi
7671
7672
7673 # Check whether --enable-tls was given.
7674 if test "${enable_tls+set}" = set; then :
7675 enableval=$enable_tls;
7676 case $enable_tls in
7677 yes | no) ;;
7678 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7679 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7680 esac
7681
7682 else
7683 enable_tls=''
7684 fi
7685
7686
7687 # Check whether --enable-vtable-verify was given.
7688 if test "${enable_vtable_verify+set}" = set; then :
7689 enableval=$enable_vtable_verify;
7690 else
7691 enable_vtable_verify=no
7692 fi
7693
7694 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7695
7696 cat >>confdefs.h <<_ACEOF
7697 #define ENABLE_VTABLE_VERIFY $vtable_verify
7698 _ACEOF
7699
7700
7701 # Check whether --enable-objc-gc was given.
7702 if test "${enable_objc_gc+set}" = set; then :
7703 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7704 objc_boehm_gc=''
7705 else
7706 objc_boehm_gc=1
7707 fi
7708 else
7709 objc_boehm_gc=''
7710 fi
7711
7712
7713
7714 # Check whether --with-dwarf2 was given.
7715 if test "${with_dwarf2+set}" = set; then :
7716 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7717 else
7718 dwarf2=no
7719 fi
7720
7721
7722 # Check whether --enable-shared was given.
7723 if test "${enable_shared+set}" = set; then :
7724 enableval=$enable_shared;
7725 case $enable_shared in
7726 yes | no) ;;
7727 *)
7728 enable_shared=no
7729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7730 for pkg in $enableval; do
7731 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7732 enable_shared=yes
7733 fi
7734 done
7735 IFS="$ac_save_ifs"
7736 ;;
7737 esac
7738
7739 else
7740 enable_shared=yes
7741 fi
7742
7743
7744
7745 # Check whether --enable-gcov was given.
7746 if test "${enable_gcov+set}" = set; then :
7747 enableval=$enable_gcov;
7748 else
7749 enable_gcov=yes
7750 fi
7751
7752
7753
7754
7755 # Check whether --with-specs was given.
7756 if test "${with_specs+set}" = set; then :
7757 withval=$with_specs; CONFIGURE_SPECS=$withval
7758 else
7759 CONFIGURE_SPECS=
7760
7761 fi
7762
7763
7764
7765
7766
7767 # Check whether --with-pkgversion was given.
7768 if test "${with_pkgversion+set}" = set; then :
7769 withval=$with_pkgversion; case "$withval" in
7770 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7771 no) PKGVERSION= ;;
7772 *) PKGVERSION="($withval) " ;;
7773 esac
7774 else
7775 PKGVERSION="(GCC) "
7776
7777 fi
7778
7779
7780
7781
7782
7783 # Check whether --with-bugurl was given.
7784 if test "${with_bugurl+set}" = set; then :
7785 withval=$with_bugurl; case "$withval" in
7786 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7787 no) BUGURL=
7788 ;;
7789 *) BUGURL="$withval"
7790 ;;
7791 esac
7792 else
7793 BUGURL="https://gcc.gnu.org/bugs/"
7794
7795 fi
7796
7797 case ${BUGURL} in
7798 "")
7799 REPORT_BUGS_TO=
7800 REPORT_BUGS_TEXI=
7801 ;;
7802 *)
7803 REPORT_BUGS_TO="<$BUGURL>"
7804 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7805 ;;
7806 esac;
7807
7808
7809
7810
7811 # Allow overriding the default URL for documentation
7812
7813 # Check whether --with-documentation-root-url was given.
7814 if test "${with_documentation_root_url+set}" = set; then :
7815 withval=$with_documentation_root_url; case "$withval" in
7816 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7817 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7818 *) DOCUMENTATION_ROOT_URL="$withval"
7819 ;;
7820 esac
7821 else
7822 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/gcc/"
7823
7824 fi
7825
7826
7827
7828 # Sanity check enable_languages in case someone does not run the toplevel
7829 # configure # script.
7830 # Check whether --enable-languages was given.
7831 if test "${enable_languages+set}" = set; then :
7832 enableval=$enable_languages; case ,${enable_languages}, in
7833 ,,|,yes,)
7834 # go safe -- we cannot be much sure without the toplevel
7835 # configure's
7836 # analysis of which target libs are present and usable
7837 enable_languages=c
7838 ;;
7839 *,all,*)
7840 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7841 ;;
7842 *,c,*)
7843 ;;
7844 *)
7845 enable_languages=c,${enable_languages}
7846 ;;
7847 esac
7848 else
7849 enable_languages=c
7850 fi
7851
7852
7853 # If top-level libada has been disabled, then wire in install-gnatlib
7854 # invocation with `make install', so that one can build and install
7855 # the library manually with `make -C gcc all gnatlib gnattools install'.
7856 if test x"$enable_libada" = xno; then
7857 gnat_install_lib=gnat-install-lib
7858 else
7859 gnat_install_lib=
7860 fi
7861
7862
7863 if test x"$enable_as_accelerator_for" != x; then
7864
7865 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7866
7867 enable_as_accelerator=yes
7868 case "${target}" in
7869 *-intelmicemul-*)
7870 # In this case we expect offload compiler to be built as native, so we
7871 # need to rename the driver to avoid clashes with host's drivers.
7872 program_transform_name="s&^&${target}-&" ;;
7873 esac
7874 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7875 program_transform_name=`echo $program_transform_name | sed $sedscript`
7876 accel_dir_suffix=/accel/${target_noncanonical}
7877 real_target_noncanonical=${enable_as_accelerator_for}
7878 fi
7879
7880
7881
7882
7883 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7884 tgt_dir=`echo $tgt | sed -n 's/.*=//p'`
7885 tgt=`echo $tgt | sed 's/=.*//'`
7886
7887 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7888 enable_hsa=1
7889 else
7890 enable_offloading=1
7891 if test -n "$tgt_dir"; then
7892 omp_device_property="${tgt_dir}/lib/gcc/\$(real_target_noncanonical)/\$(version)/accel/${tgt}/omp-device-properties"
7893 else
7894 omp_device_property="\$(libsubdir)/accel/${tgt}/omp-device-properties"
7895 fi
7896 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
7897 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
7898 fi
7899
7900 if test x"$offload_targets" = x; then
7901 offload_targets=$tgt
7902 else
7903 offload_targets="$offload_targets,$tgt"
7904 fi
7905 done
7906
7907
7908
7909
7910 cat >>confdefs.h <<_ACEOF
7911 #define OFFLOAD_TARGETS "$offload_targets"
7912 _ACEOF
7913
7914 if test x"$enable_offloading" != x; then
7915
7916 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7917
7918 else
7919
7920 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7921
7922 fi
7923
7924 if test x"$enable_hsa" = x1 ; then
7925
7926 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7927
7928 fi
7929
7930
7931 # Check whether --with-multilib-list was given.
7932 if test "${with_multilib_list+set}" = set; then :
7933 withval=$with_multilib_list; :
7934 else
7935 with_multilib_list=default
7936 fi
7937
7938
7939 # -------------------------
7940 # Checks for other programs
7941 # -------------------------
7942
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7944 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7945 set x ${MAKE-make}
7946 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7947 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7948 $as_echo_n "(cached) " >&6
7949 else
7950 cat >conftest.make <<\_ACEOF
7951 SHELL = /bin/sh
7952 all:
7953 @echo '@@@%%%=$(MAKE)=@@@%%%'
7954 _ACEOF
7955 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7956 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7957 *@@@%%%=?*=@@@%%%*)
7958 eval ac_cv_prog_make_${ac_make}_set=yes;;
7959 *)
7960 eval ac_cv_prog_make_${ac_make}_set=no;;
7961 esac
7962 rm -f conftest.make
7963 fi
7964 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7966 $as_echo "yes" >&6; }
7967 SET_MAKE=
7968 else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 SET_MAKE="MAKE=${MAKE-make}"
7972 fi
7973
7974
7975 # Find some useful tools
7976 for ac_prog in gawk mawk nawk awk
7977 do
7978 # Extract the first word of "$ac_prog", so it can be a program name with args.
7979 set dummy $ac_prog; ac_word=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if ${ac_cv_prog_AWK+:} false; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 if test -n "$AWK"; then
7986 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7990 do
7991 IFS=$as_save_IFS
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7995 ac_cv_prog_AWK="$ac_prog"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 break 2
7998 fi
7999 done
8000 done
8001 IFS=$as_save_IFS
8002
8003 fi
8004 fi
8005 AWK=$ac_cv_prog_AWK
8006 if test -n "$AWK"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8008 $as_echo "$AWK" >&6; }
8009 else
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8012 fi
8013
8014
8015 test -n "$AWK" && break
8016 done
8017
8018 # We need awk to create options.c and options.h.
8019 # Bail out if it's missing.
8020 case ${AWK} in
8021 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8022 esac
8023
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8025 $as_echo_n "checking whether ln -s works... " >&6; }
8026 if ${gcc_cv_prog_LN_S+:} false; then :
8027 $as_echo_n "(cached) " >&6
8028 else
8029 rm -f conftestdata_t
8030 echo >conftestdata_f
8031 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8032 then
8033 gcc_cv_prog_LN_S="ln -s"
8034 else
8035 if ln conftestdata_f conftestdata_t 2>/dev/null
8036 then
8037 gcc_cv_prog_LN_S=ln
8038 else
8039 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8040 then
8041 gcc_cv_prog_LN_S="cp -p"
8042 else
8043 gcc_cv_prog_LN_S=cp
8044 fi
8045 fi
8046 fi
8047 rm -f conftestdata_f conftestdata_t
8048
8049 fi
8050 LN_S="$gcc_cv_prog_LN_S"
8051 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8053 $as_echo "yes" >&6; }
8054 else
8055 if test "$gcc_cv_prog_LN_S" = "ln"; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8057 $as_echo "no, using ln" >&6; }
8058 else
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8060 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8061 fi
8062 fi
8063
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8065 $as_echo_n "checking whether ln works... " >&6; }
8066 if ${acx_cv_prog_LN+:} false; then :
8067 $as_echo_n "(cached) " >&6
8068 else
8069 rm -f conftestdata_t
8070 echo >conftestdata_f
8071 if ln conftestdata_f conftestdata_t 2>/dev/null
8072 then
8073 acx_cv_prog_LN=ln
8074 else
8075 acx_cv_prog_LN=no
8076 fi
8077 rm -f conftestdata_f conftestdata_t
8078
8079 fi
8080 if test $acx_cv_prog_LN = no; then
8081 LN="$LN_S"
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8083 $as_echo "no, using $LN" >&6; }
8084 else
8085 LN="$acx_cv_prog_LN"
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8087 $as_echo "yes" >&6; }
8088 fi
8089
8090 if test -n "$ac_tool_prefix"; then
8091 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8092 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8094 $as_echo_n "checking for $ac_word... " >&6; }
8095 if ${ac_cv_prog_RANLIB+:} false; then :
8096 $as_echo_n "(cached) " >&6
8097 else
8098 if test -n "$RANLIB"; then
8099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8100 else
8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102 for as_dir in $PATH
8103 do
8104 IFS=$as_save_IFS
8105 test -z "$as_dir" && as_dir=.
8106 for ac_exec_ext in '' $ac_executable_extensions; do
8107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8108 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8110 break 2
8111 fi
8112 done
8113 done
8114 IFS=$as_save_IFS
8115
8116 fi
8117 fi
8118 RANLIB=$ac_cv_prog_RANLIB
8119 if test -n "$RANLIB"; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8121 $as_echo "$RANLIB" >&6; }
8122 else
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124 $as_echo "no" >&6; }
8125 fi
8126
8127
8128 fi
8129 if test -z "$ac_cv_prog_RANLIB"; then
8130 ac_ct_RANLIB=$RANLIB
8131 # Extract the first word of "ranlib", so it can be a program name with args.
8132 set dummy ranlib; ac_word=$2
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8136 $as_echo_n "(cached) " >&6
8137 else
8138 if test -n "$ac_ct_RANLIB"; then
8139 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8140 else
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8143 do
8144 IFS=$as_save_IFS
8145 test -z "$as_dir" && as_dir=.
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8148 ac_cv_prog_ac_ct_RANLIB="ranlib"
8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 break 2
8151 fi
8152 done
8153 done
8154 IFS=$as_save_IFS
8155
8156 fi
8157 fi
8158 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8159 if test -n "$ac_ct_RANLIB"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8161 $as_echo "$ac_ct_RANLIB" >&6; }
8162 else
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8165 fi
8166
8167 if test "x$ac_ct_RANLIB" = x; then
8168 RANLIB=":"
8169 else
8170 case $cross_compiling:$ac_tool_warned in
8171 yes:)
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8174 ac_tool_warned=yes ;;
8175 esac
8176 RANLIB=$ac_ct_RANLIB
8177 fi
8178 else
8179 RANLIB="$ac_cv_prog_RANLIB"
8180 fi
8181
8182 ranlib_flags=""
8183
8184
8185 # Find a good install program. We prefer a C program (faster),
8186 # so one script is as good as another. But avoid the broken or
8187 # incompatible versions:
8188 # SysV /etc/install, /usr/sbin/install
8189 # SunOS /usr/etc/install
8190 # IRIX /sbin/install
8191 # AIX /bin/install
8192 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8193 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8194 # ./install, which can be erroneously created by make from ./install.sh.
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8196 $as_echo_n "checking for a BSD compatible install... " >&6; }
8197 if test -z "$INSTALL"; then
8198 if ${ac_cv_path_install+:} false; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8202 for ac_dir in $PATH; do
8203 # Account for people who put trailing slashes in PATH elements.
8204 case "$ac_dir/" in
8205 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8206 *)
8207 # OSF1 and SCO ODT 3.0 have their own names for install.
8208 for ac_prog in ginstall scoinst install; do
8209 if test -f $ac_dir/$ac_prog; then
8210 if test $ac_prog = install &&
8211 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8212 # AIX install. It has an incompatible calling convention.
8213 # OSF/1 installbsd also uses dspmsg, but is usable.
8214 :
8215 else
8216 ac_cv_path_install="$ac_dir/$ac_prog -c"
8217 break 2
8218 fi
8219 fi
8220 done
8221 ;;
8222 esac
8223 done
8224 IFS="$ac_save_IFS"
8225
8226 fi
8227 if test "${ac_cv_path_install+set}" = set; then
8228 INSTALL="$ac_cv_path_install"
8229 else
8230 # As a last resort, use the slow shell script. We don't cache a
8231 # path for INSTALL within a source directory, because that will
8232 # break other packages using the cache if that directory is
8233 # removed, or if the path is relative.
8234 INSTALL="$ac_install_sh"
8235 fi
8236 fi
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8238 $as_echo "$INSTALL" >&6; }
8239
8240 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8241 # It thinks the first close brace ends the variable substitution.
8242 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8243
8244 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8245
8246
8247 # See if cmp has --ignore-initial.
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8249 $as_echo_n "checking for cmp's capabilities... " >&6; }
8250 if ${gcc_cv_prog_cmp_skip+:} false; then :
8251 $as_echo_n "(cached) " >&6
8252 else
8253 echo abfoo >t1
8254 echo cdfoo >t2
8255 gcc_cv_prog_cmp_skip=slowcompare
8256 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8257 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8258 :
8259 else
8260 gcc_cv_prog_cmp_skip=gnucompare
8261 fi
8262 fi
8263 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8264 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8265 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8266 :
8267 else
8268 gcc_cv_prog_cmp_skip=fastcompare
8269 fi
8270 fi
8271 fi
8272 rm t1 t2
8273
8274 fi
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8276 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8277 make_compare_target=$gcc_cv_prog_cmp_skip
8278
8279
8280
8281 # See if we have the mktemp command.
8282 # Extract the first word of "mktemp", so it can be a program name with args.
8283 set dummy mktemp; ac_word=$2
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285 $as_echo_n "checking for $ac_word... " >&6; }
8286 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8287 $as_echo_n "(cached) " >&6
8288 else
8289 if test -n "$have_mktemp_command"; then
8290 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8291 else
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 for as_dir in $PATH
8294 do
8295 IFS=$as_save_IFS
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8299 ac_cv_prog_have_mktemp_command="yes"
8300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 break 2
8302 fi
8303 done
8304 done
8305 IFS=$as_save_IFS
8306
8307 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8308 fi
8309 fi
8310 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8311 if test -n "$have_mktemp_command"; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8313 $as_echo "$have_mktemp_command" >&6; }
8314 else
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316 $as_echo "no" >&6; }
8317 fi
8318
8319
8320
8321 # See if makeinfo has been installed and is modern enough
8322 # that we can use it.
8323
8324 # Extract the first word of "makeinfo", so it can be a program name with args.
8325 set dummy makeinfo; ac_word=$2
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327 $as_echo_n "checking for $ac_word... " >&6; }
8328 if ${ac_cv_prog_MAKEINFO+:} false; then :
8329 $as_echo_n "(cached) " >&6
8330 else
8331 if test -n "$MAKEINFO"; then
8332 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8333 else
8334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335 for as_dir in $PATH
8336 do
8337 IFS=$as_save_IFS
8338 test -z "$as_dir" && as_dir=.
8339 for ac_exec_ext in '' $ac_executable_extensions; do
8340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8341 ac_cv_prog_MAKEINFO="makeinfo"
8342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8343 break 2
8344 fi
8345 done
8346 done
8347 IFS=$as_save_IFS
8348
8349 fi
8350 fi
8351 MAKEINFO=$ac_cv_prog_MAKEINFO
8352 if test -n "$MAKEINFO"; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8354 $as_echo "$MAKEINFO" >&6; }
8355 else
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357 $as_echo "no" >&6; }
8358 fi
8359
8360
8361 if test -n "$MAKEINFO"; then
8362 # Found it, now check the version.
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8364 $as_echo_n "checking for modern makeinfo... " >&6; }
8365 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8366 $as_echo_n "(cached) " >&6
8367 else
8368 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8369 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8370
8371 case $ac_prog_version in
8372 '') gcc_cv_prog_makeinfo_modern=no;;
8373 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8374 *) gcc_cv_prog_makeinfo_modern=no;;
8375 esac
8376
8377 fi
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8379 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8380 else
8381 gcc_cv_prog_makeinfo_modern=no
8382 fi
8383 if test $gcc_cv_prog_makeinfo_modern = no; then
8384 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8385 fi
8386
8387 if test $gcc_cv_prog_makeinfo_modern = no; then
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8389 *** Makeinfo is missing or too old.
8390 *** Info documentation will not be built." >&5
8391 $as_echo "$as_me: WARNING:
8392 *** Makeinfo is missing or too old.
8393 *** Info documentation will not be built." >&2;}
8394 BUILD_INFO=
8395 else
8396 BUILD_INFO=info
8397 fi
8398
8399
8400 # Is pod2man recent enough to regenerate manpages?
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8402 $as_echo_n "checking for recent Pod::Man... " >&6; }
8403 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8405 $as_echo "yes" >&6; }
8406 GENERATED_MANPAGES=generated-manpages
8407 else
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8410 GENERATED_MANPAGES=
8411 fi
8412
8413
8414 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8415
8416 # How about lex?
8417 for ac_prog in flex
8418 do
8419 # Extract the first word of "$ac_prog", so it can be a program name with args.
8420 set dummy $ac_prog; ac_word=$2
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8422 $as_echo_n "checking for $ac_word... " >&6; }
8423 if ${ac_cv_prog_FLEX+:} false; then :
8424 $as_echo_n "(cached) " >&6
8425 else
8426 if test -n "$FLEX"; then
8427 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8428 else
8429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430 for as_dir in $PATH
8431 do
8432 IFS=$as_save_IFS
8433 test -z "$as_dir" && as_dir=.
8434 for ac_exec_ext in '' $ac_executable_extensions; do
8435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8436 ac_cv_prog_FLEX="$ac_prog"
8437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8438 break 2
8439 fi
8440 done
8441 done
8442 IFS=$as_save_IFS
8443
8444 fi
8445 fi
8446 FLEX=$ac_cv_prog_FLEX
8447 if test -n "$FLEX"; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8449 $as_echo "$FLEX" >&6; }
8450 else
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452 $as_echo "no" >&6; }
8453 fi
8454
8455
8456 test -n "$FLEX" && break
8457 done
8458 test -n "$FLEX" || FLEX="$MISSING flex"
8459
8460
8461 # Bison?
8462 for ac_prog in bison
8463 do
8464 # Extract the first word of "$ac_prog", so it can be a program name with args.
8465 set dummy $ac_prog; ac_word=$2
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 $as_echo_n "checking for $ac_word... " >&6; }
8468 if ${ac_cv_prog_BISON+:} false; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 if test -n "$BISON"; then
8472 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8473 else
8474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 for as_dir in $PATH
8476 do
8477 IFS=$as_save_IFS
8478 test -z "$as_dir" && as_dir=.
8479 for ac_exec_ext in '' $ac_executable_extensions; do
8480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8481 ac_cv_prog_BISON="$ac_prog"
8482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8483 break 2
8484 fi
8485 done
8486 done
8487 IFS=$as_save_IFS
8488
8489 fi
8490 fi
8491 BISON=$ac_cv_prog_BISON
8492 if test -n "$BISON"; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8494 $as_echo "$BISON" >&6; }
8495 else
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
8498 fi
8499
8500
8501 test -n "$BISON" && break
8502 done
8503 test -n "$BISON" || BISON="$MISSING bison"
8504
8505
8506 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8507 # check for build == host before using them.
8508
8509 # NM
8510 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8511 && test -d ../binutils ; then
8512 NM='${objdir}/../binutils/nm-new'
8513 else
8514 # Extract the first word of "nm", so it can be a program name with args.
8515 set dummy nm; ac_word=$2
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517 $as_echo_n "checking for $ac_word... " >&6; }
8518 if ${ac_cv_prog_NM+:} false; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 if test -n "$NM"; then
8522 ac_cv_prog_NM="$NM" # Let the user override the test.
8523 else
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525 for as_dir in $PATH
8526 do
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8531 ac_cv_prog_NM="nm"
8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 break 2
8534 fi
8535 done
8536 done
8537 IFS=$as_save_IFS
8538
8539 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8540 fi
8541 fi
8542 NM=$ac_cv_prog_NM
8543 if test -n "$NM"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8545 $as_echo "$NM" >&6; }
8546 else
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8549 fi
8550
8551
8552 fi
8553
8554 # AR
8555 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8556 && test -d ../binutils ; then
8557 AR='${objdir}/../binutils/ar'
8558 else
8559 # Extract the first word of "ar", so it can be a program name with args.
8560 set dummy ar; ac_word=$2
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8562 $as_echo_n "checking for $ac_word... " >&6; }
8563 if ${ac_cv_prog_AR+:} false; then :
8564 $as_echo_n "(cached) " >&6
8565 else
8566 if test -n "$AR"; then
8567 ac_cv_prog_AR="$AR" # Let the user override the test.
8568 else
8569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570 for as_dir in $PATH
8571 do
8572 IFS=$as_save_IFS
8573 test -z "$as_dir" && as_dir=.
8574 for ac_exec_ext in '' $ac_executable_extensions; do
8575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8576 ac_cv_prog_AR="ar"
8577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8578 break 2
8579 fi
8580 done
8581 done
8582 IFS=$as_save_IFS
8583
8584 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8585 fi
8586 fi
8587 AR=$ac_cv_prog_AR
8588 if test -n "$AR"; then
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8590 $as_echo "$AR" >&6; }
8591 else
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593 $as_echo "no" >&6; }
8594 fi
8595
8596
8597 fi
8598
8599 # The jit documentation looks better if built with sphinx, but can be
8600 # built with texinfo if sphinx is not available.
8601 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8602 # Extract the first word of "sphinx-build", so it can be a program name with args.
8603 set dummy sphinx-build; ac_word=$2
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8605 $as_echo_n "checking for $ac_word... " >&6; }
8606 if ${ac_cv_prog_doc_build_sys+:} false; then :
8607 $as_echo_n "(cached) " >&6
8608 else
8609 if test -n "$doc_build_sys"; then
8610 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8611 else
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613 for as_dir in $PATH
8614 do
8615 IFS=$as_save_IFS
8616 test -z "$as_dir" && as_dir=.
8617 for ac_exec_ext in '' $ac_executable_extensions; do
8618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8619 ac_cv_prog_doc_build_sys="sphinx"
8620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8621 break 2
8622 fi
8623 done
8624 done
8625 IFS=$as_save_IFS
8626
8627 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8628 fi
8629 fi
8630 doc_build_sys=$ac_cv_prog_doc_build_sys
8631 if test -n "$doc_build_sys"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8633 $as_echo "$doc_build_sys" >&6; }
8634 else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8637 fi
8638
8639
8640
8641 # --------------------
8642 # Checks for C headers
8643 # --------------------
8644
8645 # Need to reject headers which give warnings, so that the -Werror bootstrap
8646 # works later. *sigh* This needs to come before all header checks.
8647
8648 ac_c_preproc_warn_flag=yes
8649
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8651 $as_echo_n "checking for ANSI C header files... " >&6; }
8652 if ${ac_cv_header_stdc+:} false; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8657 #include <stdlib.h>
8658 #include <stdarg.h>
8659 #include <string.h>
8660 #include <float.h>
8661
8662 int
8663 main ()
8664 {
8665
8666 ;
8667 return 0;
8668 }
8669 _ACEOF
8670 if ac_fn_cxx_try_compile "$LINENO"; then :
8671 ac_cv_header_stdc=yes
8672 else
8673 ac_cv_header_stdc=no
8674 fi
8675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8676
8677 if test $ac_cv_header_stdc = yes; then
8678 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8681 #include <string.h>
8682
8683 _ACEOF
8684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8685 $EGREP "memchr" >/dev/null 2>&1; then :
8686
8687 else
8688 ac_cv_header_stdc=no
8689 fi
8690 rm -f conftest*
8691
8692 fi
8693
8694 if test $ac_cv_header_stdc = yes; then
8695 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8698 #include <stdlib.h>
8699
8700 _ACEOF
8701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8702 $EGREP "free" >/dev/null 2>&1; then :
8703
8704 else
8705 ac_cv_header_stdc=no
8706 fi
8707 rm -f conftest*
8708
8709 fi
8710
8711 if test $ac_cv_header_stdc = yes; then
8712 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8713 if test "$cross_compiling" = yes; then :
8714 :
8715 else
8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h. */
8718 #include <ctype.h>
8719 #include <stdlib.h>
8720 #if ((' ' & 0x0FF) == 0x020)
8721 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8722 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8723 #else
8724 # define ISLOWER(c) \
8725 (('a' <= (c) && (c) <= 'i') \
8726 || ('j' <= (c) && (c) <= 'r') \
8727 || ('s' <= (c) && (c) <= 'z'))
8728 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8729 #endif
8730
8731 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8732 int
8733 main ()
8734 {
8735 int i;
8736 for (i = 0; i < 256; i++)
8737 if (XOR (islower (i), ISLOWER (i))
8738 || toupper (i) != TOUPPER (i))
8739 return 2;
8740 return 0;
8741 }
8742 _ACEOF
8743 if ac_fn_cxx_try_run "$LINENO"; then :
8744
8745 else
8746 ac_cv_header_stdc=no
8747 fi
8748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8749 conftest.$ac_objext conftest.beam conftest.$ac_ext
8750 fi
8751
8752 fi
8753 fi
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8755 $as_echo "$ac_cv_header_stdc" >&6; }
8756 if test $ac_cv_header_stdc = yes; then
8757
8758 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8759
8760 fi
8761
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8763 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8764 if ${ac_cv_header_time+:} false; then :
8765 $as_echo_n "(cached) " >&6
8766 else
8767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h. */
8769 #include <sys/types.h>
8770 #include <sys/time.h>
8771 #include <time.h>
8772
8773 int
8774 main ()
8775 {
8776 if ((struct tm *) 0)
8777 return 0;
8778 ;
8779 return 0;
8780 }
8781 _ACEOF
8782 if ac_fn_cxx_try_compile "$LINENO"; then :
8783 ac_cv_header_time=yes
8784 else
8785 ac_cv_header_time=no
8786 fi
8787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8788 fi
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8790 $as_echo "$ac_cv_header_time" >&6; }
8791 if test $ac_cv_header_time = yes; then
8792
8793 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8794
8795 fi
8796
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8798 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8799 if ${gcc_cv_header_string+:} false; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h. */
8804 #include <string.h>
8805 #include <strings.h>
8806 int
8807 main ()
8808 {
8809
8810 ;
8811 return 0;
8812 }
8813 _ACEOF
8814 if ac_fn_cxx_try_compile "$LINENO"; then :
8815 gcc_cv_header_string=yes
8816 else
8817 gcc_cv_header_string=no
8818 fi
8819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820 fi
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8822 $as_echo "$gcc_cv_header_string" >&6; }
8823 if test $gcc_cv_header_string = yes; then
8824
8825 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8826
8827 fi
8828
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8830 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8831 if ${ac_cv_header_sys_wait_h+:} false; then :
8832 $as_echo_n "(cached) " >&6
8833 else
8834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h. */
8836 #include <sys/types.h>
8837 #include <sys/wait.h>
8838 #ifndef WEXITSTATUS
8839 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8840 #endif
8841 #ifndef WIFEXITED
8842 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8843 #endif
8844
8845 int
8846 main ()
8847 {
8848 int s;
8849 wait (&s);
8850 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8851 ;
8852 return 0;
8853 }
8854 _ACEOF
8855 if ac_fn_cxx_try_compile "$LINENO"; then :
8856 ac_cv_header_sys_wait_h=yes
8857 else
8858 ac_cv_header_sys_wait_h=no
8859 fi
8860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861 fi
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8863 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8864 if test $ac_cv_header_sys_wait_h = yes; then
8865
8866 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8867
8868 fi
8869
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8871 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8872 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8873 $as_echo_n "(cached) " >&6
8874 else
8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876 /* end confdefs.h. */
8877 #include <sys/types.h>
8878 #include <termios.h>
8879 #ifdef TIOCGWINSZ
8880 yes
8881 #endif
8882
8883 _ACEOF
8884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8885 $EGREP "yes" >/dev/null 2>&1; then :
8886 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8887 else
8888 ac_cv_sys_tiocgwinsz_in_termios_h=no
8889 fi
8890 rm -f conftest*
8891
8892 fi
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8894 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8895
8896 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8898 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8899 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8900 $as_echo_n "(cached) " >&6
8901 else
8902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903 /* end confdefs.h. */
8904 #include <sys/types.h>
8905 #include <sys/ioctl.h>
8906 #ifdef TIOCGWINSZ
8907 yes
8908 #endif
8909
8910 _ACEOF
8911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8912 $EGREP "yes" >/dev/null 2>&1; then :
8913 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8914 else
8915 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8916 fi
8917 rm -f conftest*
8918
8919 fi
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8921 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8922
8923 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8924
8925 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8926
8927 fi
8928 fi
8929
8930 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8931 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8932 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8933 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8934 do :
8935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8936 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8937 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8938 cat >>confdefs.h <<_ACEOF
8939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8940 _ACEOF
8941
8942 fi
8943 done
8944
8945
8946 # Check for thread headers.
8947 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8948 if test "x$ac_cv_header_thread_h" = xyes; then :
8949 have_thread_h=yes
8950 else
8951 have_thread_h=
8952 fi
8953
8954 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8955 if test "x$ac_cv_header_pthread_h" = xyes; then :
8956 have_pthread_h=yes
8957 else
8958 have_pthread_h=
8959 fi
8960
8961
8962 # These tests can't be done till we know if we have limits.h.
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8964 $as_echo_n "checking for CHAR_BIT... " >&6; }
8965 if ${gcc_cv_decl_char_bit+:} false; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8970 #ifdef HAVE_LIMITS_H
8971 #include <limits.h>
8972 #endif
8973 #ifdef CHAR_BIT
8974 found
8975 #endif
8976 _ACEOF
8977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8978 $EGREP "found" >/dev/null 2>&1; then :
8979 gcc_cv_decl_char_bit=yes
8980 else
8981 gcc_cv_decl_char_bit=no
8982 fi
8983 rm -f conftest*
8984
8985
8986 fi
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8988 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8989 if test $gcc_cv_decl_char_bit = no; then
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8991 $as_echo_n "checking number of bits in a byte... " >&6; }
8992 if ${gcc_cv_c_nbby+:} false; then :
8993 $as_echo_n "(cached) " >&6
8994 else
8995 i=8
8996 gcc_cv_c_nbby=
8997 while test $i -lt 65; do
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9000
9001 int
9002 main ()
9003 {
9004 switch(0) {
9005 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9006 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9007 ; }
9008 ;
9009 return 0;
9010 }
9011 _ACEOF
9012 if ac_fn_cxx_try_compile "$LINENO"; then :
9013 gcc_cv_c_nbby=$i; break
9014 fi
9015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9016 i=`expr $i + 1`
9017 done
9018 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9019
9020 fi
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9022 $as_echo "$gcc_cv_c_nbby" >&6; }
9023 if test $gcc_cv_c_nbby = failed; then
9024 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9025 else
9026
9027 cat >>confdefs.h <<_ACEOF
9028 #define CHAR_BIT $gcc_cv_c_nbby
9029 _ACEOF
9030
9031 fi
9032 fi
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9034 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9035 if ${ac_cv_c_bigendian+:} false; then :
9036 $as_echo_n "(cached) " >&6
9037 else
9038 ac_cv_c_bigendian=unknown
9039 # See if we're dealing with a universal compiler.
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9042 #ifndef __APPLE_CC__
9043 not a universal capable compiler
9044 #endif
9045 typedef int dummy;
9046
9047 _ACEOF
9048 if ac_fn_cxx_try_compile "$LINENO"; then :
9049
9050 # Check for potential -arch flags. It is not universal unless
9051 # there are at least two -arch flags with different values.
9052 ac_arch=
9053 ac_prev=
9054 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9055 if test -n "$ac_prev"; then
9056 case $ac_word in
9057 i?86 | x86_64 | ppc | ppc64)
9058 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9059 ac_arch=$ac_word
9060 else
9061 ac_cv_c_bigendian=universal
9062 break
9063 fi
9064 ;;
9065 esac
9066 ac_prev=
9067 elif test "x$ac_word" = "x-arch"; then
9068 ac_prev=arch
9069 fi
9070 done
9071 fi
9072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9073 if test $ac_cv_c_bigendian = unknown; then
9074 # See if sys/param.h defines the BYTE_ORDER macro.
9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076 /* end confdefs.h. */
9077 #include <sys/types.h>
9078 #include <sys/param.h>
9079
9080 int
9081 main ()
9082 {
9083 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9084 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9085 && LITTLE_ENDIAN)
9086 bogus endian macros
9087 #endif
9088
9089 ;
9090 return 0;
9091 }
9092 _ACEOF
9093 if ac_fn_cxx_try_compile "$LINENO"; then :
9094 # It does; now see whether it defined to BIG_ENDIAN or not.
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9097 #include <sys/types.h>
9098 #include <sys/param.h>
9099
9100 int
9101 main ()
9102 {
9103 #if BYTE_ORDER != BIG_ENDIAN
9104 not big endian
9105 #endif
9106
9107 ;
9108 return 0;
9109 }
9110 _ACEOF
9111 if ac_fn_cxx_try_compile "$LINENO"; then :
9112 ac_cv_c_bigendian=yes
9113 else
9114 ac_cv_c_bigendian=no
9115 fi
9116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9117 fi
9118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119 fi
9120 if test $ac_cv_c_bigendian = unknown; then
9121 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123 /* end confdefs.h. */
9124 #include <limits.h>
9125
9126 int
9127 main ()
9128 {
9129 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9130 bogus endian macros
9131 #endif
9132
9133 ;
9134 return 0;
9135 }
9136 _ACEOF
9137 if ac_fn_cxx_try_compile "$LINENO"; then :
9138 # It does; now see whether it defined to _BIG_ENDIAN or not.
9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h. */
9141 #include <limits.h>
9142
9143 int
9144 main ()
9145 {
9146 #ifndef _BIG_ENDIAN
9147 not big endian
9148 #endif
9149
9150 ;
9151 return 0;
9152 }
9153 _ACEOF
9154 if ac_fn_cxx_try_compile "$LINENO"; then :
9155 ac_cv_c_bigendian=yes
9156 else
9157 ac_cv_c_bigendian=no
9158 fi
9159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9160 fi
9161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9162 fi
9163 if test $ac_cv_c_bigendian = unknown; then
9164 # Compile a test program.
9165 if test "$cross_compiling" = yes; then :
9166 # Try to guess by grepping values from an object file.
9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9169 short int ascii_mm[] =
9170 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9171 short int ascii_ii[] =
9172 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9173 int use_ascii (int i) {
9174 return ascii_mm[i] + ascii_ii[i];
9175 }
9176 short int ebcdic_ii[] =
9177 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9178 short int ebcdic_mm[] =
9179 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9180 int use_ebcdic (int i) {
9181 return ebcdic_mm[i] + ebcdic_ii[i];
9182 }
9183 extern int foo;
9184
9185 int
9186 main ()
9187 {
9188 return use_ascii (foo) == use_ebcdic (foo);
9189 ;
9190 return 0;
9191 }
9192 _ACEOF
9193 if ac_fn_cxx_try_compile "$LINENO"; then :
9194 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9195 ac_cv_c_bigendian=yes
9196 fi
9197 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9198 if test "$ac_cv_c_bigendian" = unknown; then
9199 ac_cv_c_bigendian=no
9200 else
9201 # finding both strings is unlikely to happen, but who knows?
9202 ac_cv_c_bigendian=unknown
9203 fi
9204 fi
9205 fi
9206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9207 else
9208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209 /* end confdefs.h. */
9210 $ac_includes_default
9211 int
9212 main ()
9213 {
9214
9215 /* Are we little or big endian? From Harbison&Steele. */
9216 union
9217 {
9218 long int l;
9219 char c[sizeof (long int)];
9220 } u;
9221 u.l = 1;
9222 return u.c[sizeof (long int) - 1] == 1;
9223
9224 ;
9225 return 0;
9226 }
9227 _ACEOF
9228 if ac_fn_cxx_try_run "$LINENO"; then :
9229 ac_cv_c_bigendian=no
9230 else
9231 ac_cv_c_bigendian=yes
9232 fi
9233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9234 conftest.$ac_objext conftest.beam conftest.$ac_ext
9235 fi
9236
9237 fi
9238 fi
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9240 $as_echo "$ac_cv_c_bigendian" >&6; }
9241 case $ac_cv_c_bigendian in #(
9242 yes)
9243 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9244 ;; #(
9245 no)
9246 ;; #(
9247 universal)
9248
9249 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9250
9251 ;; #(
9252 *)
9253 as_fn_error $? "unknown endianness
9254 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9255 esac
9256
9257
9258 # ----------------------
9259 # Checks for C++ headers
9260 # ----------------------
9261
9262 ac_ext=cpp
9263 ac_cpp='$CXXCPP $CPPFLAGS'
9264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9268 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9269 if test -z "$CXXCPP"; then
9270 if ${ac_cv_prog_CXXCPP+:} false; then :
9271 $as_echo_n "(cached) " >&6
9272 else
9273 # Double quotes because CXXCPP needs to be expanded
9274 for CXXCPP in "$CXX -E" "/lib/cpp"
9275 do
9276 ac_preproc_ok=false
9277 for ac_cxx_preproc_warn_flag in '' yes
9278 do
9279 # Use a header file that comes with gcc, so configuring glibc
9280 # with a fresh cross-compiler works.
9281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9282 # <limits.h> exists even on freestanding compilers.
9283 # On the NeXT, cc -E runs the code through the compiler's parser,
9284 # not just through cpp. "Syntax error" is here to catch this case.
9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9287 #ifdef __STDC__
9288 # include <limits.h>
9289 #else
9290 # include <assert.h>
9291 #endif
9292 Syntax error
9293 _ACEOF
9294 if ac_fn_cxx_try_cpp "$LINENO"; then :
9295
9296 else
9297 # Broken: fails on valid input.
9298 continue
9299 fi
9300 rm -f conftest.err conftest.i conftest.$ac_ext
9301
9302 # OK, works on sane cases. Now check whether nonexistent headers
9303 # can be detected and how.
9304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h. */
9306 #include <ac_nonexistent.h>
9307 _ACEOF
9308 if ac_fn_cxx_try_cpp "$LINENO"; then :
9309 # Broken: success on invalid input.
9310 continue
9311 else
9312 # Passes both tests.
9313 ac_preproc_ok=:
9314 break
9315 fi
9316 rm -f conftest.err conftest.i conftest.$ac_ext
9317
9318 done
9319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9320 rm -f conftest.i conftest.err conftest.$ac_ext
9321 if $ac_preproc_ok; then :
9322 break
9323 fi
9324
9325 done
9326 ac_cv_prog_CXXCPP=$CXXCPP
9327
9328 fi
9329 CXXCPP=$ac_cv_prog_CXXCPP
9330 else
9331 ac_cv_prog_CXXCPP=$CXXCPP
9332 fi
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9334 $as_echo "$CXXCPP" >&6; }
9335 ac_preproc_ok=false
9336 for ac_cxx_preproc_warn_flag in '' yes
9337 do
9338 # Use a header file that comes with gcc, so configuring glibc
9339 # with a fresh cross-compiler works.
9340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9341 # <limits.h> exists even on freestanding compilers.
9342 # On the NeXT, cc -E runs the code through the compiler's parser,
9343 # not just through cpp. "Syntax error" is here to catch this case.
9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9346 #ifdef __STDC__
9347 # include <limits.h>
9348 #else
9349 # include <assert.h>
9350 #endif
9351 Syntax error
9352 _ACEOF
9353 if ac_fn_cxx_try_cpp "$LINENO"; then :
9354
9355 else
9356 # Broken: fails on valid input.
9357 continue
9358 fi
9359 rm -f conftest.err conftest.i conftest.$ac_ext
9360
9361 # OK, works on sane cases. Now check whether nonexistent headers
9362 # can be detected and how.
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9365 #include <ac_nonexistent.h>
9366 _ACEOF
9367 if ac_fn_cxx_try_cpp "$LINENO"; then :
9368 # Broken: success on invalid input.
9369 continue
9370 else
9371 # Passes both tests.
9372 ac_preproc_ok=:
9373 break
9374 fi
9375 rm -f conftest.err conftest.i conftest.$ac_ext
9376
9377 done
9378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9379 rm -f conftest.i conftest.err conftest.$ac_ext
9380 if $ac_preproc_ok; then :
9381
9382 else
9383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9386 See \`config.log' for more details" >&5
9387 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9388 See \`config.log' for more details" >&2;}; }
9389 fi
9390
9391 ac_ext=cpp
9392 ac_cpp='$CXXCPP $CPPFLAGS'
9393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9396
9397
9398 for ac_header in unordered_map
9399 do :
9400 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9401 if test "x$ac_cv_header_unordered_map" = xyes; then :
9402 cat >>confdefs.h <<_ACEOF
9403 #define HAVE_UNORDERED_MAP 1
9404 _ACEOF
9405
9406 fi
9407 done
9408
9409 for ac_header in tr1/unordered_map
9410 do :
9411 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9412 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9413 cat >>confdefs.h <<_ACEOF
9414 #define HAVE_TR1_UNORDERED_MAP 1
9415 _ACEOF
9416
9417 fi
9418 done
9419
9420 for ac_header in ext/hash_map
9421 do :
9422 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9423 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9424 cat >>confdefs.h <<_ACEOF
9425 #define HAVE_EXT_HASH_MAP 1
9426 _ACEOF
9427
9428 fi
9429 done
9430
9431
9432 # --------
9433 # Dependency checking.
9434 # --------
9435
9436 rm -rf .tst 2>/dev/null
9437 mkdir .tst 2>/dev/null
9438 if test -d .tst; then
9439 am__leading_dot=.
9440 else
9441 am__leading_dot=_
9442 fi
9443 rmdir .tst 2>/dev/null
9444
9445 DEPDIR="${am__leading_dot}deps"
9446
9447 ac_config_commands="$ac_config_commands depdir"
9448
9449
9450 ac_config_commands="$ac_config_commands gccdepdir"
9451
9452
9453 depcc="$CXX" am_compiler_list=
9454
9455 am_depcomp=$ac_aux_dir/depcomp
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9457 $as_echo_n "checking dependency style of $depcc... " >&6; }
9458 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9459 $as_echo_n "(cached) " >&6
9460 else
9461 if test -f "$am_depcomp"; then
9462 # We make a subdir and do the tests there. Otherwise we can end up
9463 # making bogus files that we don't know about and never remove. For
9464 # instance it was reported that on HP-UX the gcc test will end up
9465 # making a dummy file named `D' -- because `-MD' means `put the output
9466 # in D'.
9467 mkdir conftest.dir
9468 # Copy depcomp to subdir because otherwise we won't find it if we're
9469 # using a relative directory.
9470 cp "$am_depcomp" conftest.dir
9471 cd conftest.dir
9472 # We will build objects and dependencies in a subdirectory because
9473 # it helps to detect inapplicable dependency modes. For instance
9474 # both Tru64's cc and ICC support -MD to output dependencies as a
9475 # side effect of compilation, but ICC will put the dependencies in
9476 # the current directory while Tru64 will put them in the object
9477 # directory.
9478 mkdir sub
9479
9480 am_cv_CXX_dependencies_compiler_type=none
9481 if test "$am_compiler_list" = ""; then
9482 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9483 fi
9484 for depmode in $am_compiler_list; do
9485 if test $depmode = none; then break; fi
9486
9487 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9488 # Setup a source with many dependencies, because some compilers
9489 # like to wrap large dependency lists on column 80 (with \), and
9490 # we should not choose a depcomp mode which is confused by this.
9491 #
9492 # We need to recreate these files for each test, as the compiler may
9493 # overwrite some of them when testing with obscure command lines.
9494 # This happens at least with the AIX C compiler.
9495 : > sub/conftest.c
9496 for i in 1 2 3 4 5 6; do
9497 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9498 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9499 # Solaris 8's {/usr,}/bin/sh.
9500 touch sub/conftst$i.h
9501 done
9502 echo "include sub/conftest.Po" > confmf
9503
9504 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9505 # mode. It turns out that the SunPro C++ compiler does not properly
9506 # handle `-M -o', and we need to detect this.
9507 depcmd="depmode=$depmode \
9508 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9509 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9510 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9511 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9512 if env $depcmd > conftest.err 2>&1 &&
9513 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9514 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9515 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9516 # icc doesn't choke on unknown options, it will just issue warnings
9517 # or remarks (even with -Werror). So we grep stderr for any message
9518 # that says an option was ignored or not supported.
9519 # When given -MP, icc 7.0 and 7.1 complain thusly:
9520 # icc: Command line warning: ignoring option '-M'; no argument required
9521 # The diagnosis changed in icc 8.0:
9522 # icc: Command line remark: option '-MP' not supported
9523 if (grep 'ignoring option' conftest.err ||
9524 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9525 am_cv_CXX_dependencies_compiler_type=$depmode
9526 $as_echo "$as_me:$LINENO: success" >&5
9527 break
9528 fi
9529 fi
9530 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9531 sed -e 's/^/| /' < conftest.err >&5
9532 done
9533
9534 cd ..
9535 rm -rf conftest.dir
9536 else
9537 am_cv_CXX_dependencies_compiler_type=none
9538 fi
9539
9540 fi
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9542 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9543 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9544 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9545 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9546
9547 fi
9548
9549
9550 # --------
9551 # UNSORTED
9552 # --------
9553
9554
9555 # These libraries may be used by collect2.
9556 # We may need a special search path to get them linked.
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9558 $as_echo_n "checking for collect2 libraries... " >&6; }
9559 if ${gcc_cv_collect2_libs+:} false; then :
9560 $as_echo_n "(cached) " >&6
9561 else
9562 save_LIBS="$LIBS"
9563 for libs in '' -lld -lmld \
9564 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9565 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9566 do
9567 LIBS="$libs"
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9570
9571 /* Override any GCC internal prototype to avoid an error.
9572 Use char because int might match the return type of a GCC
9573 builtin and then its argument prototype would still apply. */
9574 #ifdef __cplusplus
9575 extern "C"
9576 #endif
9577 char ldopen ();
9578 int
9579 main ()
9580 {
9581 return ldopen ();
9582 ;
9583 return 0;
9584 }
9585 _ACEOF
9586 if ac_fn_cxx_try_link "$LINENO"; then :
9587 gcc_cv_collect2_libs="$libs"; break
9588 fi
9589 rm -f core conftest.err conftest.$ac_objext \
9590 conftest$ac_exeext conftest.$ac_ext
9591 done
9592 LIBS="$save_LIBS"
9593 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9594 fi
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9596 $as_echo "$gcc_cv_collect2_libs" >&6; }
9597 case $gcc_cv_collect2_libs in
9598 "none required") ;;
9599 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9600 esac
9601
9602
9603 # When building Ada code on Alpha, we need exc_resume which is usually in
9604 # -lexc. So test for it.
9605 save_LIBS="$LIBS"
9606 LIBS=
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9608 $as_echo_n "checking for library containing exc_resume... " >&6; }
9609 if ${ac_cv_search_exc_resume+:} false; then :
9610 $as_echo_n "(cached) " >&6
9611 else
9612 ac_func_search_save_LIBS=$LIBS
9613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h. */
9615
9616 /* Override any GCC internal prototype to avoid an error.
9617 Use char because int might match the return type of a GCC
9618 builtin and then its argument prototype would still apply. */
9619 #ifdef __cplusplus
9620 extern "C"
9621 #endif
9622 char exc_resume ();
9623 int
9624 main ()
9625 {
9626 return exc_resume ();
9627 ;
9628 return 0;
9629 }
9630 _ACEOF
9631 for ac_lib in '' exc; do
9632 if test -z "$ac_lib"; then
9633 ac_res="none required"
9634 else
9635 ac_res=-l$ac_lib
9636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9637 fi
9638 if ac_fn_cxx_try_link "$LINENO"; then :
9639 ac_cv_search_exc_resume=$ac_res
9640 fi
9641 rm -f core conftest.err conftest.$ac_objext \
9642 conftest$ac_exeext
9643 if ${ac_cv_search_exc_resume+:} false; then :
9644 break
9645 fi
9646 done
9647 if ${ac_cv_search_exc_resume+:} false; then :
9648
9649 else
9650 ac_cv_search_exc_resume=no
9651 fi
9652 rm conftest.$ac_ext
9653 LIBS=$ac_func_search_save_LIBS
9654 fi
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9656 $as_echo "$ac_cv_search_exc_resume" >&6; }
9657 ac_res=$ac_cv_search_exc_resume
9658 if test "$ac_res" != no; then :
9659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9660
9661 fi
9662
9663 GNAT_LIBEXC="$LIBS"
9664 LIBS="$save_LIBS"
9665
9666
9667 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9668 save_LIBS="$LIBS"
9669 LIBS=
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9671 $as_echo_n "checking for library containing kstat_open... " >&6; }
9672 if ${ac_cv_search_kstat_open+:} false; then :
9673 $as_echo_n "(cached) " >&6
9674 else
9675 ac_func_search_save_LIBS=$LIBS
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9678
9679 /* Override any GCC internal prototype to avoid an error.
9680 Use char because int might match the return type of a GCC
9681 builtin and then its argument prototype would still apply. */
9682 #ifdef __cplusplus
9683 extern "C"
9684 #endif
9685 char kstat_open ();
9686 int
9687 main ()
9688 {
9689 return kstat_open ();
9690 ;
9691 return 0;
9692 }
9693 _ACEOF
9694 for ac_lib in '' kstat; do
9695 if test -z "$ac_lib"; then
9696 ac_res="none required"
9697 else
9698 ac_res=-l$ac_lib
9699 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9700 fi
9701 if ac_fn_cxx_try_link "$LINENO"; then :
9702 ac_cv_search_kstat_open=$ac_res
9703 fi
9704 rm -f core conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext
9706 if ${ac_cv_search_kstat_open+:} false; then :
9707 break
9708 fi
9709 done
9710 if ${ac_cv_search_kstat_open+:} false; then :
9711
9712 else
9713 ac_cv_search_kstat_open=no
9714 fi
9715 rm conftest.$ac_ext
9716 LIBS=$ac_func_search_save_LIBS
9717 fi
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9719 $as_echo "$ac_cv_search_kstat_open" >&6; }
9720 ac_res=$ac_cv_search_kstat_open
9721 if test "$ac_res" != no; then :
9722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9723
9724 fi
9725
9726 EXTRA_GCC_LIBS="$LIBS"
9727 LIBS="$save_LIBS"
9728
9729
9730 # Some systems put ldexp and frexp in libm instead of libc; assume
9731 # they're both in the same place. jcf-dump needs them.
9732 save_LIBS="$LIBS"
9733 LIBS=
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9735 $as_echo_n "checking for library containing ldexp... " >&6; }
9736 if ${ac_cv_search_ldexp+:} false; then :
9737 $as_echo_n "(cached) " >&6
9738 else
9739 ac_func_search_save_LIBS=$LIBS
9740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741 /* end confdefs.h. */
9742
9743 /* Override any GCC internal prototype to avoid an error.
9744 Use char because int might match the return type of a GCC
9745 builtin and then its argument prototype would still apply. */
9746 #ifdef __cplusplus
9747 extern "C"
9748 #endif
9749 char ldexp ();
9750 int
9751 main ()
9752 {
9753 return ldexp ();
9754 ;
9755 return 0;
9756 }
9757 _ACEOF
9758 for ac_lib in '' m; do
9759 if test -z "$ac_lib"; then
9760 ac_res="none required"
9761 else
9762 ac_res=-l$ac_lib
9763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9764 fi
9765 if ac_fn_cxx_try_link "$LINENO"; then :
9766 ac_cv_search_ldexp=$ac_res
9767 fi
9768 rm -f core conftest.err conftest.$ac_objext \
9769 conftest$ac_exeext
9770 if ${ac_cv_search_ldexp+:} false; then :
9771 break
9772 fi
9773 done
9774 if ${ac_cv_search_ldexp+:} false; then :
9775
9776 else
9777 ac_cv_search_ldexp=no
9778 fi
9779 rm conftest.$ac_ext
9780 LIBS=$ac_func_search_save_LIBS
9781 fi
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9783 $as_echo "$ac_cv_search_ldexp" >&6; }
9784 ac_res=$ac_cv_search_ldexp
9785 if test "$ac_res" != no; then :
9786 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9787
9788 fi
9789
9790 LDEXP_LIB="$LIBS"
9791 LIBS="$save_LIBS"
9792
9793
9794 # Some systems need dlopen
9795 save_LIBS="$LIBS"
9796 LIBS=
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9798 $as_echo_n "checking for library containing dlopen... " >&6; }
9799 if ${ac_cv_search_dlopen+:} false; then :
9800 $as_echo_n "(cached) " >&6
9801 else
9802 ac_func_search_save_LIBS=$LIBS
9803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9804 /* end confdefs.h. */
9805
9806 /* Override any GCC internal prototype to avoid an error.
9807 Use char because int might match the return type of a GCC
9808 builtin and then its argument prototype would still apply. */
9809 #ifdef __cplusplus
9810 extern "C"
9811 #endif
9812 char dlopen ();
9813 int
9814 main ()
9815 {
9816 return dlopen ();
9817 ;
9818 return 0;
9819 }
9820 _ACEOF
9821 for ac_lib in '' dl; do
9822 if test -z "$ac_lib"; then
9823 ac_res="none required"
9824 else
9825 ac_res=-l$ac_lib
9826 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9827 fi
9828 if ac_fn_cxx_try_link "$LINENO"; then :
9829 ac_cv_search_dlopen=$ac_res
9830 fi
9831 rm -f core conftest.err conftest.$ac_objext \
9832 conftest$ac_exeext
9833 if ${ac_cv_search_dlopen+:} false; then :
9834 break
9835 fi
9836 done
9837 if ${ac_cv_search_dlopen+:} false; then :
9838
9839 else
9840 ac_cv_search_dlopen=no
9841 fi
9842 rm conftest.$ac_ext
9843 LIBS=$ac_func_search_save_LIBS
9844 fi
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9846 $as_echo "$ac_cv_search_dlopen" >&6; }
9847 ac_res=$ac_cv_search_dlopen
9848 if test "$ac_res" != no; then :
9849 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9850
9851 fi
9852
9853 DL_LIB="$LIBS"
9854 LIBS="$save_LIBS"
9855
9856
9857 # Use <inttypes.h> only if it exists,
9858 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9859 # PRId64
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9861 $as_echo_n "checking for inttypes.h... " >&6; }
9862 if ${gcc_cv_header_inttypes_h+:} false; then :
9863 $as_echo_n "(cached) " >&6
9864 else
9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h. */
9867 #define __STDC_FORMAT_MACROS
9868 #include <sys/types.h>
9869 #include <inttypes.h>
9870 int
9871 main ()
9872 {
9873 intmax_t i = -1;
9874 #ifndef PRId64
9875 choke me
9876 #endif
9877 ;
9878 return 0;
9879 }
9880 _ACEOF
9881 if ac_fn_cxx_try_compile "$LINENO"; then :
9882 gcc_cv_header_inttypes_h=yes
9883 else
9884 gcc_cv_header_inttypes_h=no
9885 fi
9886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9887 fi
9888
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9890 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9891 if test $gcc_cv_header_inttypes_h = yes; then
9892
9893 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9894
9895 fi
9896
9897 # Look for the ZSTD package.
9898 ZSTD_INCLUDE=
9899 ZSTD_LIB=
9900
9901
9902 ZSTD_CPPFLAGS=
9903 ZSTD_LDFLAGS=
9904
9905 # Check whether --with-zstd was given.
9906 if test "${with_zstd+set}" = set; then :
9907 withval=$with_zstd;
9908 fi
9909
9910
9911 # Check whether --with-zstd-include was given.
9912 if test "${with_zstd_include+set}" = set; then :
9913 withval=$with_zstd_include;
9914 fi
9915
9916
9917 # Check whether --with-zstd-lib was given.
9918 if test "${with_zstd_lib+set}" = set; then :
9919 withval=$with_zstd_lib;
9920 fi
9921
9922 case "x$with_zstd" in
9923 x) ;;
9924 xno)
9925 ZSTD_INCLUDE=no
9926 ZSTD_LIB=no
9927 ;;
9928 *) ZSTD_INCLUDE=$with_zstd/include
9929 ZSTD_LIB=$with_zstd/lib
9930 ;;
9931 esac
9932 if test "x$with_zstd_include" != x; then
9933 ZSTD_INCLUDE=$with_zstd_include
9934 fi
9935 if test "x$with_zstd_lib" != x; then
9936 ZSTD_LIB=$with_zstd_lib
9937 fi
9938 if test "x$ZSTD_INCLUDE" != x \
9939 && test "x$ZSTD_INCLUDE" != xno; then
9940 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
9941 fi
9942 if test "x$ZSTD_LIB" != x \
9943 && test "x$ZSTD_LIB" != xno; then
9944 ZSTD_LDFLAGS=-L$ZSTD_LIB
9945 fi
9946
9947 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
9948 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
9949
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
9951 $as_echo_n "checking for zstd.h... " >&6; }
9952 if ${gcc_cv_header_zstd_h+:} false; then :
9953 $as_echo_n "(cached) " >&6
9954 else
9955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h. */
9957 #include <zstd.h>
9958 int
9959 main ()
9960 {
9961
9962 ;
9963 return 0;
9964 }
9965 _ACEOF
9966 if ac_fn_cxx_try_compile "$LINENO"; then :
9967 gcc_cv_header_zstd_h=yes
9968 else
9969 gcc_cv_header_zstd_h=no
9970 fi
9971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9972 fi
9973
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
9975 $as_echo "$gcc_cv_header_zstd_h" >&6; }
9976 if test $gcc_cv_header_zstd_h = yes; then
9977
9978 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
9979
9980 fi
9981
9982 # LTO can use zstd compression algorithm
9983 save_LIBS="$LIBS"
9984 LIBS=
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
9986 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
9987 if ${ac_cv_search_ZSTD_compress+:} false; then :
9988 $as_echo_n "(cached) " >&6
9989 else
9990 ac_func_search_save_LIBS=$LIBS
9991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9992 /* end confdefs.h. */
9993
9994 /* Override any GCC internal prototype to avoid an error.
9995 Use char because int might match the return type of a GCC
9996 builtin and then its argument prototype would still apply. */
9997 #ifdef __cplusplus
9998 extern "C"
9999 #endif
10000 char ZSTD_compress ();
10001 int
10002 main ()
10003 {
10004 return ZSTD_compress ();
10005 ;
10006 return 0;
10007 }
10008 _ACEOF
10009 for ac_lib in '' zstd; do
10010 if test -z "$ac_lib"; then
10011 ac_res="none required"
10012 else
10013 ac_res=-l$ac_lib
10014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10015 fi
10016 if ac_fn_cxx_try_link "$LINENO"; then :
10017 ac_cv_search_ZSTD_compress=$ac_res
10018 fi
10019 rm -f core conftest.err conftest.$ac_objext \
10020 conftest$ac_exeext
10021 if ${ac_cv_search_ZSTD_compress+:} false; then :
10022 break
10023 fi
10024 done
10025 if ${ac_cv_search_ZSTD_compress+:} false; then :
10026
10027 else
10028 ac_cv_search_ZSTD_compress=no
10029 fi
10030 rm conftest.$ac_ext
10031 LIBS=$ac_func_search_save_LIBS
10032 fi
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10034 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10035 ac_res=$ac_cv_search_ZSTD_compress
10036 if test "$ac_res" != no; then :
10037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10038
10039 fi
10040
10041 ZSTD_LIB="$LIBS"
10042 LIBS="$save_LIBS"
10043
10044
10045
10046
10047 for ac_func in times clock kill getrlimit setrlimit atoq \
10048 popen sysconf strsignal getrusage nl_langinfo \
10049 gettimeofday mbstowcs wcswidth mmap setlocale \
10050 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
10051 do :
10052 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10053 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10054 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10055 cat >>confdefs.h <<_ACEOF
10056 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10057 _ACEOF
10058
10059 fi
10060 done
10061
10062
10063 if test x$ac_cv_func_mbstowcs = xyes; then
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10065 $as_echo_n "checking whether mbstowcs works... " >&6; }
10066 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10067 $as_echo_n "(cached) " >&6
10068 else
10069 if test "$cross_compiling" = yes; then :
10070 gcc_cv_func_mbstowcs_works=yes
10071 else
10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073 /* end confdefs.h. */
10074 #include <stdlib.h>
10075 int main()
10076 {
10077 mbstowcs(0, "", 0);
10078 return 0;
10079 }
10080 _ACEOF
10081 if ac_fn_cxx_try_run "$LINENO"; then :
10082 gcc_cv_func_mbstowcs_works=yes
10083 else
10084 gcc_cv_func_mbstowcs_works=no
10085 fi
10086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10087 conftest.$ac_objext conftest.beam conftest.$ac_ext
10088 fi
10089
10090 fi
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10092 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10093 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10094
10095 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10096
10097 fi
10098 fi
10099
10100 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10101 if test "x$ac_cv_type_ssize_t" = xyes; then :
10102
10103 else
10104
10105 cat >>confdefs.h <<_ACEOF
10106 #define ssize_t int
10107 _ACEOF
10108
10109 fi
10110
10111 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10112 if test "x$ac_cv_type_caddr_t" = xyes; then :
10113
10114 else
10115
10116 cat >>confdefs.h <<_ACEOF
10117 #define caddr_t char *
10118 _ACEOF
10119
10120 fi
10121
10122
10123
10124 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10125 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10126 gcc_header_sys_mman_h=yes
10127 else
10128 gcc_header_sys_mman_h=no
10129 fi
10130
10131 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10132 if test "x$ac_cv_func_mmap" = xyes; then :
10133 gcc_func_mmap=yes
10134 else
10135 gcc_func_mmap=no
10136 fi
10137
10138 if test "$gcc_header_sys_mman_h" != yes \
10139 || test "$gcc_func_mmap" != yes; then
10140 gcc_cv_func_mmap_file=no
10141 gcc_cv_func_mmap_dev_zero=no
10142 gcc_cv_func_mmap_anon=no
10143 else
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10145 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10146 if ${gcc_cv_func_mmap_file+:} false; then :
10147 $as_echo_n "(cached) " >&6
10148 else
10149 # Add a system to this blacklist if
10150 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10151 # memory area containing the same data that you'd get if you applied
10152 # read() to the same fd. The only system known to have a problem here
10153 # is VMS, where text files have record structure.
10154 case "$host_os" in
10155 *vms* | ultrix*)
10156 gcc_cv_func_mmap_file=no ;;
10157 *)
10158 gcc_cv_func_mmap_file=yes;;
10159 esac
10160 fi
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10162 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10164 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10165 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10166 $as_echo_n "(cached) " >&6
10167 else
10168 # Add a system to this blacklist if it has mmap() but /dev/zero
10169 # does not exist, or if mmapping /dev/zero does not give anonymous
10170 # zeroed pages with both the following properties:
10171 # 1. If you map N consecutive pages in with one call, and then
10172 # unmap any subset of those pages, the pages that were not
10173 # explicitly unmapped remain accessible.
10174 # 2. If you map two adjacent blocks of memory and then unmap them
10175 # both at once, they must both go away.
10176 # Systems known to be in this category are Windows (all variants),
10177 # VMS, and Darwin.
10178 case "$host_os" in
10179 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10180 gcc_cv_func_mmap_dev_zero=no ;;
10181 *)
10182 gcc_cv_func_mmap_dev_zero=yes;;
10183 esac
10184 fi
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10186 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10187
10188 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10190 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10191 if ${gcc_cv_decl_map_anon+:} false; then :
10192 $as_echo_n "(cached) " >&6
10193 else
10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h. */
10196 #include <sys/types.h>
10197 #include <sys/mman.h>
10198 #include <unistd.h>
10199
10200 #ifndef MAP_ANONYMOUS
10201 #define MAP_ANONYMOUS MAP_ANON
10202 #endif
10203
10204 int
10205 main ()
10206 {
10207 int n = MAP_ANONYMOUS;
10208 ;
10209 return 0;
10210 }
10211 _ACEOF
10212 if ac_fn_cxx_try_compile "$LINENO"; then :
10213 gcc_cv_decl_map_anon=yes
10214 else
10215 gcc_cv_decl_map_anon=no
10216 fi
10217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10218 fi
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10220 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10221
10222 if test $gcc_cv_decl_map_anon = no; then
10223 gcc_cv_func_mmap_anon=no
10224 else
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10226 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10227 if ${gcc_cv_func_mmap_anon+:} false; then :
10228 $as_echo_n "(cached) " >&6
10229 else
10230 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10231 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10232 # doesn't give anonymous zeroed pages with the same properties listed
10233 # above for use of /dev/zero.
10234 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10235 case "$host_os" in
10236 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10237 gcc_cv_func_mmap_anon=no ;;
10238 *)
10239 gcc_cv_func_mmap_anon=yes;;
10240 esac
10241 fi
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10243 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10244 fi
10245 fi
10246
10247 if test $gcc_cv_func_mmap_file = yes; then
10248
10249 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10250
10251 fi
10252 if test $gcc_cv_func_mmap_dev_zero = yes; then
10253
10254 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10255
10256 fi
10257 if test $gcc_cv_func_mmap_anon = yes; then
10258
10259 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10260
10261 fi
10262
10263
10264 case "${host}" in
10265 *-*-*vms*)
10266 # Under VMS, vfork works very differently than on Unix. The standard test
10267 # won't work, and it isn't easily adaptable. It makes more sense to
10268 # just force it.
10269 ac_cv_func_vfork_works=yes
10270 ;;
10271 esac
10272 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10273 if test "x$ac_cv_type_pid_t" = xyes; then :
10274
10275 else
10276
10277 cat >>confdefs.h <<_ACEOF
10278 #define pid_t int
10279 _ACEOF
10280
10281 fi
10282
10283 for ac_header in vfork.h
10284 do :
10285 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10286 if test "x$ac_cv_header_vfork_h" = xyes; then :
10287 cat >>confdefs.h <<_ACEOF
10288 #define HAVE_VFORK_H 1
10289 _ACEOF
10290
10291 fi
10292 done
10293
10294 for ac_func in fork vfork
10295 do :
10296 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10297 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10298 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10299 cat >>confdefs.h <<_ACEOF
10300 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10301 _ACEOF
10302
10303 fi
10304 done
10305
10306 if test "x$ac_cv_func_fork" = xyes; then
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10308 $as_echo_n "checking for working fork... " >&6; }
10309 if ${ac_cv_func_fork_works+:} false; then :
10310 $as_echo_n "(cached) " >&6
10311 else
10312 if test "$cross_compiling" = yes; then :
10313 ac_cv_func_fork_works=cross
10314 else
10315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10317 $ac_includes_default
10318 int
10319 main ()
10320 {
10321
10322 /* By Ruediger Kuhlmann. */
10323 return fork () < 0;
10324
10325 ;
10326 return 0;
10327 }
10328 _ACEOF
10329 if ac_fn_cxx_try_run "$LINENO"; then :
10330 ac_cv_func_fork_works=yes
10331 else
10332 ac_cv_func_fork_works=no
10333 fi
10334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10335 conftest.$ac_objext conftest.beam conftest.$ac_ext
10336 fi
10337
10338 fi
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10340 $as_echo "$ac_cv_func_fork_works" >&6; }
10341
10342 else
10343 ac_cv_func_fork_works=$ac_cv_func_fork
10344 fi
10345 if test "x$ac_cv_func_fork_works" = xcross; then
10346 case $host in
10347 *-*-amigaos* | *-*-msdosdjgpp*)
10348 # Override, as these systems have only a dummy fork() stub
10349 ac_cv_func_fork_works=no
10350 ;;
10351 *)
10352 ac_cv_func_fork_works=yes
10353 ;;
10354 esac
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10356 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10357 fi
10358 ac_cv_func_vfork_works=$ac_cv_func_vfork
10359 if test "x$ac_cv_func_vfork" = xyes; then
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10361 $as_echo_n "checking for working vfork... " >&6; }
10362 if ${ac_cv_func_vfork_works+:} false; then :
10363 $as_echo_n "(cached) " >&6
10364 else
10365 if test "$cross_compiling" = yes; then :
10366 ac_cv_func_vfork_works=cross
10367 else
10368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10369 /* end confdefs.h. */
10370 /* Thanks to Paul Eggert for this test. */
10371 $ac_includes_default
10372 #include <sys/wait.h>
10373 #ifdef HAVE_VFORK_H
10374 # include <vfork.h>
10375 #endif
10376 /* On some sparc systems, changes by the child to local and incoming
10377 argument registers are propagated back to the parent. The compiler
10378 is told about this with #include <vfork.h>, but some compilers
10379 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10380 static variable whose address is put into a register that is
10381 clobbered by the vfork. */
10382 static void
10383 #ifdef __cplusplus
10384 sparc_address_test (int arg)
10385 # else
10386 sparc_address_test (arg) int arg;
10387 #endif
10388 {
10389 static pid_t child;
10390 if (!child) {
10391 child = vfork ();
10392 if (child < 0) {
10393 perror ("vfork");
10394 _exit(2);
10395 }
10396 if (!child) {
10397 arg = getpid();
10398 write(-1, "", 0);
10399 _exit (arg);
10400 }
10401 }
10402 }
10403
10404 int
10405 main ()
10406 {
10407 pid_t parent = getpid ();
10408 pid_t child;
10409
10410 sparc_address_test (0);
10411
10412 child = vfork ();
10413
10414 if (child == 0) {
10415 /* Here is another test for sparc vfork register problems. This
10416 test uses lots of local variables, at least as many local
10417 variables as main has allocated so far including compiler
10418 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10419 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10420 reuse the register of parent for one of the local variables,
10421 since it will think that parent can't possibly be used any more
10422 in this routine. Assigning to the local variable will thus
10423 munge parent in the parent process. */
10424 pid_t
10425 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10426 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10427 /* Convince the compiler that p..p7 are live; otherwise, it might
10428 use the same hardware register for all 8 local variables. */
10429 if (p != p1 || p != p2 || p != p3 || p != p4
10430 || p != p5 || p != p6 || p != p7)
10431 _exit(1);
10432
10433 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10434 from child file descriptors. If the child closes a descriptor
10435 before it execs or exits, this munges the parent's descriptor
10436 as well. Test for this by closing stdout in the child. */
10437 _exit(close(fileno(stdout)) != 0);
10438 } else {
10439 int status;
10440 struct stat st;
10441
10442 while (wait(&status) != child)
10443 ;
10444 return (
10445 /* Was there some problem with vforking? */
10446 child < 0
10447
10448 /* Did the child fail? (This shouldn't happen.) */
10449 || status
10450
10451 /* Did the vfork/compiler bug occur? */
10452 || parent != getpid()
10453
10454 /* Did the file descriptor bug occur? */
10455 || fstat(fileno(stdout), &st) != 0
10456 );
10457 }
10458 }
10459 _ACEOF
10460 if ac_fn_cxx_try_run "$LINENO"; then :
10461 ac_cv_func_vfork_works=yes
10462 else
10463 ac_cv_func_vfork_works=no
10464 fi
10465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10466 conftest.$ac_objext conftest.beam conftest.$ac_ext
10467 fi
10468
10469 fi
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10471 $as_echo "$ac_cv_func_vfork_works" >&6; }
10472
10473 fi;
10474 if test "x$ac_cv_func_fork_works" = xcross; then
10475 ac_cv_func_vfork_works=$ac_cv_func_vfork
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10477 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10478 fi
10479
10480 if test "x$ac_cv_func_vfork_works" = xyes; then
10481
10482 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10483
10484 else
10485
10486 $as_echo "#define vfork fork" >>confdefs.h
10487
10488 fi
10489 if test "x$ac_cv_func_fork_works" = xyes; then
10490
10491 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10492
10493 fi
10494
10495
10496
10497 if test "X$prefix" = "XNONE"; then
10498 acl_final_prefix="$ac_default_prefix"
10499 else
10500 acl_final_prefix="$prefix"
10501 fi
10502 if test "X$exec_prefix" = "XNONE"; then
10503 acl_final_exec_prefix='${prefix}'
10504 else
10505 acl_final_exec_prefix="$exec_prefix"
10506 fi
10507 acl_save_prefix="$prefix"
10508 prefix="$acl_final_prefix"
10509 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10510 prefix="$acl_save_prefix"
10511
10512
10513 # Check whether --with-gnu-ld was given.
10514 if test "${with_gnu_ld+set}" = set; then :
10515 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10516 else
10517 with_gnu_ld=no
10518 fi
10519
10520 # Prepare PATH_SEPARATOR.
10521 # The user is always right.
10522 if test "${PATH_SEPARATOR+set}" != set; then
10523 echo "#! /bin/sh" >conf$$.sh
10524 echo "exit 0" >>conf$$.sh
10525 chmod +x conf$$.sh
10526 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10527 PATH_SEPARATOR=';'
10528 else
10529 PATH_SEPARATOR=:
10530 fi
10531 rm -f conf$$.sh
10532 fi
10533 ac_prog=ld
10534 if test "$GCC" = yes; then
10535 # Check if gcc -print-prog-name=ld gives a path.
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10537 $as_echo_n "checking for ld used by GCC... " >&6; }
10538 case $host in
10539 *-*-mingw*)
10540 # gcc leaves a trailing carriage return which upsets mingw
10541 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10542 *)
10543 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10544 esac
10545 case $ac_prog in
10546 # Accept absolute paths.
10547 [\\/]* | [A-Za-z]:[\\/]*)
10548 re_direlt='/[^/][^/]*/\.\./'
10549 # Canonicalize the path of ld
10550 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10551 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10552 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10553 done
10554 test -z "$LD" && LD="$ac_prog"
10555 ;;
10556 "")
10557 # If it fails, then pretend we aren't using GCC.
10558 ac_prog=ld
10559 ;;
10560 *)
10561 # If it is relative, then search for the first ld in PATH.
10562 with_gnu_ld=unknown
10563 ;;
10564 esac
10565 elif test "$with_gnu_ld" = yes; then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10567 $as_echo_n "checking for GNU ld... " >&6; }
10568 else
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10570 $as_echo_n "checking for non-GNU ld... " >&6; }
10571 fi
10572 if ${acl_cv_path_LD+:} false; then :
10573 $as_echo_n "(cached) " >&6
10574 else
10575 if test -z "$LD"; then
10576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10577 for ac_dir in $PATH; do
10578 test -z "$ac_dir" && ac_dir=.
10579 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10580 acl_cv_path_LD="$ac_dir/$ac_prog"
10581 # Check to see if the program is GNU ld. I'd rather use --version,
10582 # but apparently some GNU ld's only accept -v.
10583 # Break only if it was the GNU/non-GNU ld that we prefer.
10584 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10585 test "$with_gnu_ld" != no && break
10586 else
10587 test "$with_gnu_ld" != yes && break
10588 fi
10589 fi
10590 done
10591 IFS="$ac_save_ifs"
10592 else
10593 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10594 fi
10595 fi
10596
10597 LD="$acl_cv_path_LD"
10598 if test -n "$LD"; then
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10600 $as_echo "$LD" >&6; }
10601 else
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603 $as_echo "no" >&6; }
10604 fi
10605 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10607 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10608 if ${acl_cv_prog_gnu_ld+:} false; then :
10609 $as_echo_n "(cached) " >&6
10610 else
10611 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10612 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10613 acl_cv_prog_gnu_ld=yes
10614 else
10615 acl_cv_prog_gnu_ld=no
10616 fi
10617 fi
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10619 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10620 with_gnu_ld=$acl_cv_prog_gnu_ld
10621
10622
10623
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10625 $as_echo_n "checking for shared library run path origin... " >&6; }
10626 if ${acl_cv_rpath+:} false; then :
10627 $as_echo_n "(cached) " >&6
10628 else
10629
10630 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10631 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10632 . ./conftest.sh
10633 rm -f ./conftest.sh
10634 acl_cv_rpath=done
10635
10636 fi
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10638 $as_echo "$acl_cv_rpath" >&6; }
10639 wl="$acl_cv_wl"
10640 libext="$acl_cv_libext"
10641 shlibext="$acl_cv_shlibext"
10642 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10643 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10644 hardcode_direct="$acl_cv_hardcode_direct"
10645 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10646 # Check whether --enable-rpath was given.
10647 if test "${enable_rpath+set}" = set; then :
10648 enableval=$enable_rpath; :
10649 else
10650 enable_rpath=yes
10651 fi
10652
10653
10654
10655
10656
10657
10658
10659
10660 use_additional=yes
10661
10662 acl_save_prefix="$prefix"
10663 prefix="$acl_final_prefix"
10664 acl_save_exec_prefix="$exec_prefix"
10665 exec_prefix="$acl_final_exec_prefix"
10666
10667 eval additional_includedir=\"$includedir\"
10668 eval additional_libdir=\"$libdir\"
10669
10670 exec_prefix="$acl_save_exec_prefix"
10671 prefix="$acl_save_prefix"
10672
10673
10674 # Check whether --with-libiconv-prefix was given.
10675 if test "${with_libiconv_prefix+set}" = set; then :
10676 withval=$with_libiconv_prefix;
10677 if test "X$withval" = "Xno"; then
10678 use_additional=no
10679 else
10680 if test "X$withval" = "X"; then
10681
10682 acl_save_prefix="$prefix"
10683 prefix="$acl_final_prefix"
10684 acl_save_exec_prefix="$exec_prefix"
10685 exec_prefix="$acl_final_exec_prefix"
10686
10687 eval additional_includedir=\"$includedir\"
10688 eval additional_libdir=\"$libdir\"
10689
10690 exec_prefix="$acl_save_exec_prefix"
10691 prefix="$acl_save_prefix"
10692
10693 else
10694 additional_includedir="$withval/include"
10695 additional_libdir="$withval/lib"
10696 fi
10697 fi
10698
10699 fi
10700
10701 LIBICONV=
10702 LTLIBICONV=
10703 INCICONV=
10704 rpathdirs=
10705 ltrpathdirs=
10706 names_already_handled=
10707 names_next_round='iconv '
10708 while test -n "$names_next_round"; do
10709 names_this_round="$names_next_round"
10710 names_next_round=
10711 for name in $names_this_round; do
10712 already_handled=
10713 for n in $names_already_handled; do
10714 if test "$n" = "$name"; then
10715 already_handled=yes
10716 break
10717 fi
10718 done
10719 if test -z "$already_handled"; then
10720 names_already_handled="$names_already_handled $name"
10721 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10722 eval value=\"\$HAVE_LIB$uppername\"
10723 if test -n "$value"; then
10724 if test "$value" = yes; then
10725 eval value=\"\$LIB$uppername\"
10726 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10727 eval value=\"\$LTLIB$uppername\"
10728 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10729 else
10730 :
10731 fi
10732 else
10733 found_dir=
10734 found_la=
10735 found_so=
10736 found_a=
10737 if test $use_additional = yes; then
10738 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10739 found_dir="$additional_libdir"
10740 found_so="$additional_libdir/lib$name.$shlibext"
10741 if test -f "$additional_libdir/lib$name.la"; then
10742 found_la="$additional_libdir/lib$name.la"
10743 fi
10744 else
10745 if test -f "$additional_libdir/lib$name.$libext"; then
10746 found_dir="$additional_libdir"
10747 found_a="$additional_libdir/lib$name.$libext"
10748 if test -f "$additional_libdir/lib$name.la"; then
10749 found_la="$additional_libdir/lib$name.la"
10750 fi
10751 fi
10752 fi
10753 fi
10754 if test "X$found_dir" = "X"; then
10755 for x in $LDFLAGS $LTLIBICONV; do
10756
10757 acl_save_prefix="$prefix"
10758 prefix="$acl_final_prefix"
10759 acl_save_exec_prefix="$exec_prefix"
10760 exec_prefix="$acl_final_exec_prefix"
10761 eval x=\"$x\"
10762 exec_prefix="$acl_save_exec_prefix"
10763 prefix="$acl_save_prefix"
10764
10765 case "$x" in
10766 -L*)
10767 dir=`echo "X$x" | sed -e 's/^X-L//'`
10768 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10769 found_dir="$dir"
10770 found_so="$dir/lib$name.$shlibext"
10771 if test -f "$dir/lib$name.la"; then
10772 found_la="$dir/lib$name.la"
10773 fi
10774 else
10775 if test -f "$dir/lib$name.$libext"; then
10776 found_dir="$dir"
10777 found_a="$dir/lib$name.$libext"
10778 if test -f "$dir/lib$name.la"; then
10779 found_la="$dir/lib$name.la"
10780 fi
10781 fi
10782 fi
10783 ;;
10784 esac
10785 if test "X$found_dir" != "X"; then
10786 break
10787 fi
10788 done
10789 fi
10790 if test "X$found_dir" != "X"; then
10791 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10792 if test "X$found_so" != "X"; then
10793 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10794 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10795 else
10796 haveit=
10797 for x in $ltrpathdirs; do
10798 if test "X$x" = "X$found_dir"; then
10799 haveit=yes
10800 break
10801 fi
10802 done
10803 if test -z "$haveit"; then
10804 ltrpathdirs="$ltrpathdirs $found_dir"
10805 fi
10806 if test "$hardcode_direct" = yes; then
10807 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10808 else
10809 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10810 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10811 haveit=
10812 for x in $rpathdirs; do
10813 if test "X$x" = "X$found_dir"; then
10814 haveit=yes
10815 break
10816 fi
10817 done
10818 if test -z "$haveit"; then
10819 rpathdirs="$rpathdirs $found_dir"
10820 fi
10821 else
10822 haveit=
10823 for x in $LDFLAGS $LIBICONV; do
10824
10825 acl_save_prefix="$prefix"
10826 prefix="$acl_final_prefix"
10827 acl_save_exec_prefix="$exec_prefix"
10828 exec_prefix="$acl_final_exec_prefix"
10829 eval x=\"$x\"
10830 exec_prefix="$acl_save_exec_prefix"
10831 prefix="$acl_save_prefix"
10832
10833 if test "X$x" = "X-L$found_dir"; then
10834 haveit=yes
10835 break
10836 fi
10837 done
10838 if test -z "$haveit"; then
10839 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10840 fi
10841 if test "$hardcode_minus_L" != no; then
10842 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10843 else
10844 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10845 fi
10846 fi
10847 fi
10848 fi
10849 else
10850 if test "X$found_a" != "X"; then
10851 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10852 else
10853 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10854 fi
10855 fi
10856 additional_includedir=
10857 case "$found_dir" in
10858 */lib | */lib/)
10859 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10860 additional_includedir="$basedir/include"
10861 ;;
10862 esac
10863 if test "X$additional_includedir" != "X"; then
10864 if test "X$additional_includedir" != "X/usr/include"; then
10865 haveit=
10866 if test "X$additional_includedir" = "X/usr/local/include"; then
10867 if test -n "$GCC"; then
10868 case $host_os in
10869 linux*) haveit=yes;;
10870 esac
10871 fi
10872 fi
10873 if test -z "$haveit"; then
10874 for x in $CPPFLAGS $INCICONV; do
10875
10876 acl_save_prefix="$prefix"
10877 prefix="$acl_final_prefix"
10878 acl_save_exec_prefix="$exec_prefix"
10879 exec_prefix="$acl_final_exec_prefix"
10880 eval x=\"$x\"
10881 exec_prefix="$acl_save_exec_prefix"
10882 prefix="$acl_save_prefix"
10883
10884 if test "X$x" = "X-I$additional_includedir"; then
10885 haveit=yes
10886 break
10887 fi
10888 done
10889 if test -z "$haveit"; then
10890 if test -d "$additional_includedir"; then
10891 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10892 fi
10893 fi
10894 fi
10895 fi
10896 fi
10897 if test -n "$found_la"; then
10898 save_libdir="$libdir"
10899 case "$found_la" in
10900 */* | *\\*) . "$found_la" ;;
10901 *) . "./$found_la" ;;
10902 esac
10903 libdir="$save_libdir"
10904 for dep in $dependency_libs; do
10905 case "$dep" in
10906 -L*)
10907 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10908 if test "X$additional_libdir" != "X/usr/lib"; then
10909 haveit=
10910 if test "X$additional_libdir" = "X/usr/local/lib"; 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 haveit=
10919 for x in $LDFLAGS $LIBICONV; do
10920
10921 acl_save_prefix="$prefix"
10922 prefix="$acl_final_prefix"
10923 acl_save_exec_prefix="$exec_prefix"
10924 exec_prefix="$acl_final_exec_prefix"
10925 eval x=\"$x\"
10926 exec_prefix="$acl_save_exec_prefix"
10927 prefix="$acl_save_prefix"
10928
10929 if test "X$x" = "X-L$additional_libdir"; then
10930 haveit=yes
10931 break
10932 fi
10933 done
10934 if test -z "$haveit"; then
10935 if test -d "$additional_libdir"; then
10936 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10937 fi
10938 fi
10939 haveit=
10940 for x in $LDFLAGS $LTLIBICONV; do
10941
10942 acl_save_prefix="$prefix"
10943 prefix="$acl_final_prefix"
10944 acl_save_exec_prefix="$exec_prefix"
10945 exec_prefix="$acl_final_exec_prefix"
10946 eval x=\"$x\"
10947 exec_prefix="$acl_save_exec_prefix"
10948 prefix="$acl_save_prefix"
10949
10950 if test "X$x" = "X-L$additional_libdir"; then
10951 haveit=yes
10952 break
10953 fi
10954 done
10955 if test -z "$haveit"; then
10956 if test -d "$additional_libdir"; then
10957 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10958 fi
10959 fi
10960 fi
10961 fi
10962 ;;
10963 -R*)
10964 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10965 if test "$enable_rpath" != no; then
10966 haveit=
10967 for x in $rpathdirs; do
10968 if test "X$x" = "X$dir"; then
10969 haveit=yes
10970 break
10971 fi
10972 done
10973 if test -z "$haveit"; then
10974 rpathdirs="$rpathdirs $dir"
10975 fi
10976 haveit=
10977 for x in $ltrpathdirs; do
10978 if test "X$x" = "X$dir"; then
10979 haveit=yes
10980 break
10981 fi
10982 done
10983 if test -z "$haveit"; then
10984 ltrpathdirs="$ltrpathdirs $dir"
10985 fi
10986 fi
10987 ;;
10988 -l*)
10989 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10990 ;;
10991 *.la)
10992 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10993 ;;
10994 *)
10995 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10996 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10997 ;;
10998 esac
10999 done
11000 fi
11001 else
11002 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11003 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11004 fi
11005 fi
11006 fi
11007 done
11008 done
11009 if test "X$rpathdirs" != "X"; then
11010 if test -n "$hardcode_libdir_separator"; then
11011 alldirs=
11012 for found_dir in $rpathdirs; do
11013 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11014 done
11015 acl_save_libdir="$libdir"
11016 libdir="$alldirs"
11017 eval flag=\"$hardcode_libdir_flag_spec\"
11018 libdir="$acl_save_libdir"
11019 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11020 else
11021 for found_dir in $rpathdirs; do
11022 acl_save_libdir="$libdir"
11023 libdir="$found_dir"
11024 eval flag=\"$hardcode_libdir_flag_spec\"
11025 libdir="$acl_save_libdir"
11026 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11027 done
11028 fi
11029 fi
11030 if test "X$ltrpathdirs" != "X"; then
11031 for found_dir in $ltrpathdirs; do
11032 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11033 done
11034 fi
11035
11036
11037
11038
11039
11040
11041
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11043 $as_echo_n "checking for iconv... " >&6; }
11044 if ${am_cv_func_iconv+:} false; then :
11045 $as_echo_n "(cached) " >&6
11046 else
11047
11048 am_cv_func_iconv="no, consider installing GNU libiconv"
11049 am_cv_lib_iconv=no
11050 am_save_CPPFLAGS="$CPPFLAGS"
11051 CPPFLAGS="$CPPFLAGS $INCICONV"
11052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11053 /* end confdefs.h. */
11054 #include <stdlib.h>
11055 #include <iconv.h>
11056 int
11057 main ()
11058 {
11059 iconv_t cd = iconv_open("","");
11060 iconv(cd,NULL,NULL,NULL,NULL);
11061 iconv_close(cd);
11062 ;
11063 return 0;
11064 }
11065 _ACEOF
11066 if ac_fn_cxx_try_link "$LINENO"; then :
11067 am_cv_func_iconv=yes
11068 fi
11069 rm -f core conftest.err conftest.$ac_objext \
11070 conftest$ac_exeext conftest.$ac_ext
11071 CPPFLAGS="$am_save_CPPFLAGS"
11072
11073 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11074 for _libs in .libs _libs; do
11075 am_save_CPPFLAGS="$CPPFLAGS"
11076 am_save_LIBS="$LIBS"
11077 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11078 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11081 #include <stdlib.h>
11082 #include <iconv.h>
11083 int
11084 main ()
11085 {
11086 iconv_t cd = iconv_open("","");
11087 iconv(cd,NULL,NULL,NULL,NULL);
11088 iconv_close(cd);
11089 ;
11090 return 0;
11091 }
11092 _ACEOF
11093 if ac_fn_cxx_try_link "$LINENO"; then :
11094 INCICONV="-I../libiconv/include"
11095 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11096 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11097 am_cv_lib_iconv=yes
11098 am_cv_func_iconv=yes
11099 fi
11100 rm -f core conftest.err conftest.$ac_objext \
11101 conftest$ac_exeext conftest.$ac_ext
11102 CPPFLAGS="$am_save_CPPFLAGS"
11103 LIBS="$am_save_LIBS"
11104 if test "$am_cv_func_iconv" = "yes"; then
11105 break
11106 fi
11107 done
11108 fi
11109
11110 if test "$am_cv_func_iconv" != yes; then
11111 am_save_CPPFLAGS="$CPPFLAGS"
11112 am_save_LIBS="$LIBS"
11113 CPPFLAGS="$CPPFLAGS $INCICONV"
11114 LIBS="$LIBS $LIBICONV"
11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11117 #include <stdlib.h>
11118 #include <iconv.h>
11119 int
11120 main ()
11121 {
11122 iconv_t cd = iconv_open("","");
11123 iconv(cd,NULL,NULL,NULL,NULL);
11124 iconv_close(cd);
11125 ;
11126 return 0;
11127 }
11128 _ACEOF
11129 if ac_fn_cxx_try_link "$LINENO"; then :
11130 am_cv_lib_iconv=yes
11131 am_cv_func_iconv=yes
11132 fi
11133 rm -f core conftest.err conftest.$ac_objext \
11134 conftest$ac_exeext conftest.$ac_ext
11135 CPPFLAGS="$am_save_CPPFLAGS"
11136 LIBS="$am_save_LIBS"
11137 fi
11138
11139 fi
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11141 $as_echo "$am_cv_func_iconv" >&6; }
11142 if test "$am_cv_func_iconv" = yes; then
11143
11144 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11145
11146 fi
11147 if test "$am_cv_lib_iconv" = yes; then
11148
11149 for element in $INCICONV; do
11150 haveit=
11151 for x in $CPPFLAGS; do
11152
11153 acl_save_prefix="$prefix"
11154 prefix="$acl_final_prefix"
11155 acl_save_exec_prefix="$exec_prefix"
11156 exec_prefix="$acl_final_exec_prefix"
11157 eval x=\"$x\"
11158 exec_prefix="$acl_save_exec_prefix"
11159 prefix="$acl_save_prefix"
11160
11161 if test "X$x" = "X$element"; then
11162 haveit=yes
11163 break
11164 fi
11165 done
11166 if test -z "$haveit"; then
11167 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11168 fi
11169 done
11170
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11172 $as_echo_n "checking how to link with libiconv... " >&6; }
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11174 $as_echo "$LIBICONV" >&6; }
11175 else
11176 LIBICONV=
11177 LTLIBICONV=
11178 fi
11179
11180
11181
11182 if test "$am_cv_func_iconv" = yes; then
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11184 $as_echo_n "checking for iconv declaration... " >&6; }
11185 if ${am_cv_proto_iconv+:} false; then :
11186 $as_echo_n "(cached) " >&6
11187 else
11188
11189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190 /* end confdefs.h. */
11191
11192 #include <stdlib.h>
11193 #include <iconv.h>
11194 extern
11195 #ifdef __cplusplus
11196 "C"
11197 #endif
11198 #if defined(__STDC__) || defined(__cplusplus)
11199 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11200 #else
11201 size_t iconv();
11202 #endif
11203
11204 int
11205 main ()
11206 {
11207
11208 ;
11209 return 0;
11210 }
11211 _ACEOF
11212 if ac_fn_cxx_try_compile "$LINENO"; then :
11213 am_cv_proto_iconv_arg1=""
11214 else
11215 am_cv_proto_iconv_arg1="const"
11216 fi
11217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11218 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);"
11219 fi
11220
11221 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11223 }$am_cv_proto_iconv" >&5
11224 $as_echo "${ac_t:-
11225 }$am_cv_proto_iconv" >&6; }
11226
11227 cat >>confdefs.h <<_ACEOF
11228 #define ICONV_CONST $am_cv_proto_iconv_arg1
11229 _ACEOF
11230
11231 fi
11232
11233
11234 # Until we have in-tree GNU iconv:
11235 LIBICONV_DEP=
11236 if test -f "$LTLIBICONV"; then
11237 LIBICONV_DEP=$LTLIBICONV
11238 fi
11239
11240
11241
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11243 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11244 if ${am_cv_val_LC_MESSAGES+:} false; then :
11245 $as_echo_n "(cached) " >&6
11246 else
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11249 #include <locale.h>
11250 int
11251 main ()
11252 {
11253 return LC_MESSAGES
11254 ;
11255 return 0;
11256 }
11257 _ACEOF
11258 if ac_fn_cxx_try_link "$LINENO"; then :
11259 am_cv_val_LC_MESSAGES=yes
11260 else
11261 am_cv_val_LC_MESSAGES=no
11262 fi
11263 rm -f core conftest.err conftest.$ac_objext \
11264 conftest$ac_exeext conftest.$ac_ext
11265 fi
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11267 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11268 if test $am_cv_val_LC_MESSAGES = yes; then
11269
11270 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11271
11272 fi
11273
11274
11275
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11277 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11278 if ${am_cv_langinfo_codeset+:} false; then :
11279 $as_echo_n "(cached) " >&6
11280 else
11281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11282 /* end confdefs.h. */
11283 #include <langinfo.h>
11284 int
11285 main ()
11286 {
11287 char* cs = nl_langinfo(CODESET);
11288 ;
11289 return 0;
11290 }
11291 _ACEOF
11292 if ac_fn_cxx_try_link "$LINENO"; then :
11293 am_cv_langinfo_codeset=yes
11294 else
11295 am_cv_langinfo_codeset=no
11296 fi
11297 rm -f core conftest.err conftest.$ac_objext \
11298 conftest$ac_exeext conftest.$ac_ext
11299
11300 fi
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11302 $as_echo "$am_cv_langinfo_codeset" >&6; }
11303 if test $am_cv_langinfo_codeset = yes; then
11304
11305 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11306
11307 fi
11308
11309
11310 # We will need to find libiberty.h and ansidecl.h
11311 saved_CFLAGS="$CFLAGS"
11312 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11313 saved_CXXFLAGS="$CXXFLAGS"
11314 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11315
11316 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11317 # normal autoconf function for these. But force definition of
11318 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11319 # basename handling in libiberty.h.
11320 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11321 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11322 #undef HAVE_DECL_BASENAME
11323 #define HAVE_DECL_BASENAME 1
11324 #include \"ansidecl.h\"
11325 #include \"system.h\"
11326 "
11327 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11328 ac_have_decl=1
11329 else
11330 ac_have_decl=0
11331 fi
11332
11333 cat >>confdefs.h <<_ACEOF
11334 #define HAVE_DECL_BASENAME $ac_have_decl
11335 _ACEOF
11336 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11337 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11338 #undef HAVE_DECL_BASENAME
11339 #define HAVE_DECL_BASENAME 1
11340 #include \"ansidecl.h\"
11341 #include \"system.h\"
11342 "
11343 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11344 ac_have_decl=1
11345 else
11346 ac_have_decl=0
11347 fi
11348
11349 cat >>confdefs.h <<_ACEOF
11350 #define HAVE_DECL_STRSTR $ac_have_decl
11351 _ACEOF
11352
11353
11354 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11355 madvise stpcpy strnlen strsignal strverscmp \
11356 strtol strtoul strtoll strtoull setenv unsetenv \
11357 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11358 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
11359 do
11360 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11362 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11363 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11364 $as_echo_n "(cached) " >&6
11365 else
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11368 #undef $ac_tr_decl
11369 #define $ac_tr_decl 1
11370
11371 #include "ansidecl.h"
11372 #include "system.h"
11373
11374 int
11375 main ()
11376 {
11377 #ifndef $ac_func
11378 char *(*pfn) = (char *(*)) $ac_func ;
11379 #endif
11380 ;
11381 return 0;
11382 }
11383 _ACEOF
11384 if ac_fn_cxx_try_compile "$LINENO"; then :
11385 eval "gcc_cv_have_decl_$ac_func=yes"
11386 else
11387 eval "gcc_cv_have_decl_$ac_func=no"
11388 fi
11389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11390 fi
11391
11392 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11394 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11395 #define $ac_tr_decl 1
11396 _ACEOF
11397
11398 else
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11401 #define $ac_tr_decl 0
11402 _ACEOF
11403
11404 fi
11405
11406 done
11407
11408
11409 for ac_func in getrlimit setrlimit getrusage
11410 do
11411 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11413 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11414 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11415 $as_echo_n "(cached) " >&6
11416 else
11417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11418 /* end confdefs.h. */
11419 #undef $ac_tr_decl
11420 #define $ac_tr_decl 1
11421
11422 #include "ansidecl.h"
11423 #include "system.h"
11424 #ifdef HAVE_SYS_RESOURCE_H
11425 #include <sys/resource.h>
11426 #endif
11427
11428
11429 int
11430 main ()
11431 {
11432 #ifndef $ac_func
11433 char *(*pfn) = (char *(*)) $ac_func ;
11434 #endif
11435 ;
11436 return 0;
11437 }
11438 _ACEOF
11439 if ac_fn_cxx_try_compile "$LINENO"; then :
11440 eval "gcc_cv_have_decl_$ac_func=yes"
11441 else
11442 eval "gcc_cv_have_decl_$ac_func=no"
11443 fi
11444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11445 fi
11446
11447 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11449 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11450 #define $ac_tr_decl 1
11451 _ACEOF
11452
11453 else
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11456 #define $ac_tr_decl 0
11457 _ACEOF
11458
11459 fi
11460
11461 done
11462
11463
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11466
11467 #include "ansidecl.h"
11468 #include "system.h"
11469 #ifdef HAVE_SYS_RESOURCE_H
11470 #include <sys/resource.h>
11471 #endif
11472
11473 int
11474 main ()
11475 {
11476 rlim_t l = 0;
11477 ;
11478 return 0;
11479 }
11480 _ACEOF
11481 if ac_fn_cxx_try_compile "$LINENO"; then :
11482
11483 else
11484
11485 $as_echo "#define rlim_t long" >>confdefs.h
11486
11487 fi
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489
11490 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11491 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11492 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11493 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11494 for ac_func in ldgetname
11495 do
11496 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11498 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11499 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11500 $as_echo_n "(cached) " >&6
11501 else
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11504 #undef $ac_tr_decl
11505 #define $ac_tr_decl 1
11506
11507 #include "ansidecl.h"
11508 #include "system.h"
11509 #ifdef HAVE_LDFCN_H
11510 #undef FREAD
11511 #undef FWRITE
11512 #include <ldfcn.h>
11513 #endif
11514
11515
11516 int
11517 main ()
11518 {
11519 #ifndef $ac_func
11520 char *(*pfn) = (char *(*)) $ac_func ;
11521 #endif
11522 ;
11523 return 0;
11524 }
11525 _ACEOF
11526 if ac_fn_cxx_try_compile "$LINENO"; then :
11527 eval "gcc_cv_have_decl_$ac_func=yes"
11528 else
11529 eval "gcc_cv_have_decl_$ac_func=no"
11530 fi
11531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11532 fi
11533
11534 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11536 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11537 #define $ac_tr_decl 1
11538 _ACEOF
11539
11540 else
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11543 #define $ac_tr_decl 0
11544 _ACEOF
11545
11546 fi
11547
11548 done
11549
11550
11551 for ac_func in times
11552 do
11553 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11555 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11556 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11557 $as_echo_n "(cached) " >&6
11558 else
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11561 #undef $ac_tr_decl
11562 #define $ac_tr_decl 1
11563
11564 #include "ansidecl.h"
11565 #include "system.h"
11566 #ifdef HAVE_SYS_TIMES_H
11567 #include <sys/times.h>
11568 #endif
11569
11570
11571 int
11572 main ()
11573 {
11574 #ifndef $ac_func
11575 char *(*pfn) = (char *(*)) $ac_func ;
11576 #endif
11577 ;
11578 return 0;
11579 }
11580 _ACEOF
11581 if ac_fn_cxx_try_compile "$LINENO"; then :
11582 eval "gcc_cv_have_decl_$ac_func=yes"
11583 else
11584 eval "gcc_cv_have_decl_$ac_func=no"
11585 fi
11586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11587 fi
11588
11589 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11591 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11592 #define $ac_tr_decl 1
11593 _ACEOF
11594
11595 else
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11598 #define $ac_tr_decl 0
11599 _ACEOF
11600
11601 fi
11602
11603 done
11604
11605
11606 for ac_func in sigaltstack
11607 do
11608 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11610 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11611 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11612 $as_echo_n "(cached) " >&6
11613 else
11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h. */
11616 #undef $ac_tr_decl
11617 #define $ac_tr_decl 1
11618
11619 #include "ansidecl.h"
11620 #include "system.h"
11621 #include <signal.h>
11622
11623
11624 int
11625 main ()
11626 {
11627 #ifndef $ac_func
11628 char *(*pfn) = (char *(*)) $ac_func ;
11629 #endif
11630 ;
11631 return 0;
11632 }
11633 _ACEOF
11634 if ac_fn_cxx_try_compile "$LINENO"; then :
11635 eval "gcc_cv_have_decl_$ac_func=yes"
11636 else
11637 eval "gcc_cv_have_decl_$ac_func=no"
11638 fi
11639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11640 fi
11641
11642 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11644 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11645 #define $ac_tr_decl 1
11646 _ACEOF
11647
11648 else
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11651 #define $ac_tr_decl 0
11652 _ACEOF
11653
11654 fi
11655
11656 done
11657
11658
11659 # More time-related stuff.
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11661 $as_echo_n "checking for struct tms... " >&6; }
11662 if ${ac_cv_struct_tms+:} false; then :
11663 $as_echo_n "(cached) " >&6
11664 else
11665
11666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h. */
11668
11669 #include "ansidecl.h"
11670 #include "system.h"
11671 #ifdef HAVE_SYS_TIMES_H
11672 #include <sys/times.h>
11673 #endif
11674
11675 int
11676 main ()
11677 {
11678 struct tms tms;
11679 ;
11680 return 0;
11681 }
11682 _ACEOF
11683 if ac_fn_cxx_try_compile "$LINENO"; then :
11684 ac_cv_struct_tms=yes
11685 else
11686 ac_cv_struct_tms=no
11687 fi
11688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11689 fi
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11691 $as_echo "$ac_cv_struct_tms" >&6; }
11692 if test $ac_cv_struct_tms = yes; then
11693
11694 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11695
11696 fi
11697
11698 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11699 # revisit after autoconf 2.50.
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11701 $as_echo_n "checking for clock_t... " >&6; }
11702 if ${gcc_cv_type_clock_t+:} false; then :
11703 $as_echo_n "(cached) " >&6
11704 else
11705
11706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h. */
11708
11709 #include "ansidecl.h"
11710 #include "system.h"
11711
11712 int
11713 main ()
11714 {
11715 clock_t x;
11716 ;
11717 return 0;
11718 }
11719 _ACEOF
11720 if ac_fn_cxx_try_compile "$LINENO"; then :
11721 gcc_cv_type_clock_t=yes
11722 else
11723 gcc_cv_type_clock_t=no
11724 fi
11725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11726 fi
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11728 $as_echo "$gcc_cv_type_clock_t" >&6; }
11729 if test $gcc_cv_type_clock_t = yes; then
11730
11731 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11732
11733 fi
11734
11735 # Check if F_SETLKW is supported by fcntl.
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11737 $as_echo_n "checking for F_SETLKW... " >&6; }
11738 if ${ac_cv_f_setlkw+:} false; then :
11739 $as_echo_n "(cached) " >&6
11740 else
11741
11742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743 /* end confdefs.h. */
11744
11745 #include <fcntl.h>
11746 int
11747 main ()
11748 {
11749
11750 struct flock fl;
11751 fl.l_whence = 0;
11752 fl.l_start = 0;
11753 fl.l_len = 0;
11754 fl.l_pid = 0;
11755 return fcntl (1, F_SETLKW, &fl);
11756 ;
11757 return 0;
11758 }
11759 _ACEOF
11760 if ac_fn_cxx_try_compile "$LINENO"; then :
11761 ac_cv_f_setlkw=yes
11762 else
11763 ac_cv_f_setlkw=no
11764 fi
11765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11766 fi
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11768 $as_echo "$ac_cv_f_setlkw" >&6; }
11769 if test $ac_cv_f_setlkw = yes; then
11770
11771 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11772
11773 fi
11774
11775 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11776 CFLAGS="$saved_CFLAGS"
11777 CXXFLAGS="$saved_CXXFLAGS"
11778
11779 # mkdir takes a single argument on some systems.
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11781 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11782 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11783 $as_echo_n "(cached) " >&6
11784 else
11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786 /* end confdefs.h. */
11787
11788 #include <sys/types.h>
11789 #ifdef HAVE_SYS_STAT_H
11790 # include <sys/stat.h>
11791 #endif
11792 #ifdef HAVE_UNISTD_H
11793 # include <unistd.h>
11794 #endif
11795 #ifdef HAVE_DIRECT_H
11796 # include <direct.h>
11797 #endif
11798 int
11799 main ()
11800 {
11801 mkdir ("foo", 0);
11802 ;
11803 return 0;
11804 }
11805 _ACEOF
11806 if ac_fn_cxx_try_compile "$LINENO"; then :
11807 gcc_cv_mkdir_takes_one_arg=no
11808 else
11809 gcc_cv_mkdir_takes_one_arg=yes
11810 fi
11811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11812 fi
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11814 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11815 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11816
11817 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11818
11819 fi
11820
11821
11822 # File extensions
11823 manext='.1'
11824 objext='.o'
11825
11826
11827
11828 # With Setjmp/Longjmp based exception handling.
11829 # Check whether --enable-sjlj-exceptions was given.
11830 if test "${enable_sjlj_exceptions+set}" = set; then :
11831 enableval=$enable_sjlj_exceptions; case $target in
11832 *-*-hpux10*)
11833 if test $enableval != yes; then
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11835 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11836 enableval=yes
11837 fi
11838 ;;
11839 esac
11840 force_sjlj_exceptions=yes
11841 else
11842 case $target in
11843 *-*-hpux10*)
11844 force_sjlj_exceptions=yes
11845 enableval=yes
11846 ;;
11847 lm32*-*-*)
11848 force_sjlj_exceptions=yes
11849 enableval=yes
11850 ;;
11851 *)
11852 force_sjlj_exceptions=no
11853 ;;
11854 esac
11855 fi
11856
11857 if test $force_sjlj_exceptions = yes; then
11858 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11859
11860 cat >>confdefs.h <<_ACEOF
11861 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11862 _ACEOF
11863
11864 fi
11865
11866 # --------------------------------------------------------
11867 # Build, host, and target specific configuration fragments
11868 # --------------------------------------------------------
11869
11870 # Collect build-machine-specific information.
11871 . ${srcdir}/config.build || exit 1
11872
11873 # Collect host-machine-specific information.
11874 . ${srcdir}/config.host || exit 1
11875
11876 target_gtfiles=
11877
11878 # Collect target-machine-specific information.
11879 . ${srcdir}/config.gcc || exit 1
11880
11881 extra_objs="${host_extra_objs} ${extra_objs}"
11882 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11883
11884 # Default the target-machine variables that were not explicitly set.
11885 if test x"$tm_file" = x
11886 then tm_file=$cpu_type/$cpu_type.h; fi
11887
11888 if test x"$extra_headers" = x
11889 then extra_headers=; fi
11890
11891 if test x$md_file = x
11892 then md_file=$cpu_type/$cpu_type.md; fi
11893
11894 if test x$out_file = x
11895 then out_file=$cpu_type/$cpu_type.c; fi
11896
11897 if test x"$tmake_file" = x
11898 then tmake_file=$cpu_type/t-$cpu_type
11899 fi
11900
11901 # Support --enable-initfini-array.
11902 if test x$enable_initfini_array != xno; then
11903 tm_file="${tm_file} initfini-array.h"
11904 fi
11905
11906 if test x"$dwarf2" = xyes
11907 then tm_file="$tm_file tm-dwarf2.h"
11908 fi
11909
11910 # Say what files are being used for the output code and MD file.
11911 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11912 echo "Using \`$srcdir/config/$md_file' as machine description file."
11913
11914 # If any of the xm_file variables contain nonexistent files, warn
11915 # about them and drop them.
11916
11917 bx=
11918 for x in $build_xm_file; do
11919 if test -f $srcdir/config/$x
11920 then bx="$bx $x"
11921 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11922 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11923 fi
11924 done
11925 build_xm_file="$bx"
11926
11927 hx=
11928 for x in $host_xm_file; do
11929 if test -f $srcdir/config/$x
11930 then hx="$hx $x"
11931 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11932 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11933 fi
11934 done
11935 host_xm_file="$hx"
11936
11937 tx=
11938 for x in $xm_file; do
11939 if test -f $srcdir/config/$x
11940 then tx="$tx $x"
11941 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11942 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11943 fi
11944 done
11945 xm_file="$tx"
11946
11947 count=a
11948 for f in $tm_file; do
11949 count=${count}x
11950 done
11951 if test $count = ax; then
11952 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11953 else
11954 echo "Using the following target machine macro files:"
11955 for f in $tm_file; do
11956 echo " $srcdir/config/$f"
11957 done
11958 fi
11959
11960 if test x$use_long_long_for_widest_fast_int = xyes; then
11961
11962 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11963
11964 fi
11965
11966 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11967
11968 cat >>confdefs.h <<_ACEOF
11969 #define HAVE_GNU_LD $gnu_ld_bool
11970 _ACEOF
11971
11972
11973 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11974
11975 cat >>confdefs.h <<_ACEOF
11976 #define HAVE_GNU_AS $gnu_as_bool
11977 _ACEOF
11978
11979
11980 count=a
11981 for f in $host_xm_file; do
11982 count=${count}x
11983 done
11984 if test $count = a; then
11985 :
11986 elif test $count = ax; then
11987 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11988 else
11989 echo "Using the following host machine macro files:"
11990 for f in $host_xm_file; do
11991 echo " $srcdir/config/$f"
11992 done
11993 fi
11994 echo "Using ${out_host_hook_obj} for host machine hooks."
11995
11996 if test "$host_xm_file" != "$build_xm_file"; then
11997 count=a
11998 for f in $build_xm_file; do
11999 count=${count}x
12000 done
12001 if test $count = a; then
12002 :
12003 elif test $count = ax; then
12004 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12005 else
12006 echo "Using the following build machine macro files:"
12007 for f in $build_xm_file; do
12008 echo " $srcdir/config/$f"
12009 done
12010 fi
12011 fi
12012
12013 if test -n "$configured_native_system_header_dir"; then
12014 native_system_header_dir=$configured_native_system_header_dir
12015 fi
12016 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12017
12018
12019 case ${host} in
12020 powerpc*-*-darwin*)
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12022 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12023 if ${gcc_cv_mcontext_underscores+:} false; then :
12024 $as_echo_n "(cached) " >&6
12025 else
12026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12027 /* end confdefs.h. */
12028
12029 #include <sys/cdefs.h>
12030 #include <sys/signal.h>
12031 #include <ucontext.h>
12032 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12033
12034 _ACEOF
12035 if ac_fn_cxx_try_compile "$LINENO"; then :
12036 gcc_cv_mcontext_underscores=no
12037 else
12038 gcc_cv_mcontext_underscores=yes
12039 fi
12040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041 fi
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12043 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12044 if test $gcc_cv_mcontext_underscores = yes; then
12045
12046 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12047
12048 fi
12049 ;;
12050 esac
12051
12052 # ---------
12053 # Threading
12054 # ---------
12055
12056 # Check if a valid thread package
12057 case ${enable_threads} in
12058 "" | no)
12059 # No threads
12060 target_thread_file='single'
12061 ;;
12062 yes)
12063 # default
12064 target_thread_file='single'
12065 ;;
12066 aix | dce | lynx | mipssde | posix | rtems | \
12067 single | tpf | vxworks | win32)
12068 target_thread_file=${enable_threads}
12069 ;;
12070 *)
12071 echo "${enable_threads} is an unknown thread package" 1>&2
12072 exit 1
12073 ;;
12074 esac
12075
12076 if test x${thread_file} = x; then
12077 # No thread file set by target-specific clauses in config.gcc,
12078 # so use file chosen by default logic above
12079 thread_file=${target_thread_file}
12080 fi
12081
12082 # --------
12083 # UNSORTED
12084 # --------
12085
12086 use_cxa_atexit=no
12087 if test x$enable___cxa_atexit = xyes || \
12088 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12089 if test x$host = x$target; then
12090 case $host in
12091 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12092 # keyed to flag_use_cxa_atexit
12093 *-*-mingw32*)
12094 use_cxa_atexit=yes
12095 ;;
12096 powerpc-ibm-aix*)
12097 use_cxa_atexit=yes
12098 ;;
12099 *)
12100 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12101 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12102 use_cxa_atexit=yes
12103 else
12104 echo "__cxa_atexit can't be enabled on this target"
12105 fi
12106
12107 ;;
12108 esac
12109 else
12110 # We can't check for __cxa_atexit when building a cross, so assume
12111 # it is available
12112 use_cxa_atexit=yes
12113 fi
12114 if test x$use_cxa_atexit = xyes; then
12115
12116 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12117
12118 fi
12119 fi
12120
12121 # Look for a file containing extra machine modes.
12122 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12123 extra_modes_file='$(srcdir)'/config/${extra_modes}
12124
12125
12126 cat >>confdefs.h <<_ACEOF
12127 #define EXTRA_MODES_FILE "config/$extra_modes"
12128 _ACEOF
12129
12130 fi
12131
12132 # Convert extra_options into a form suitable for Makefile use.
12133 extra_opt_files=
12134 all_opt_files=
12135 for f in $extra_options; do
12136 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12137 all_opt_files="$all_opt_files $srcdir/config/$f"
12138 done
12139
12140
12141 # auto-host.h is the file containing items generated by autoconf and is
12142 # the first file included by config.h.
12143 # If host=build, it is correct to have bconfig include auto-host.h
12144 # as well. If host!=build, we are in error and need to do more
12145 # work to find out the build config parameters.
12146 if test x$host = x$build
12147 then
12148 build_auto=auto-host.h
12149 else
12150 # We create a subdir, then run autoconf in the subdir.
12151 # To prevent recursion we set host and build for the new
12152 # invocation of configure to the build for this invocation
12153 # of configure.
12154 tempdir=build.$$
12155 rm -rf $tempdir
12156 mkdir $tempdir
12157 cd $tempdir
12158 case ${srcdir} in
12159 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12160 *) realsrcdir=../${srcdir};;
12161 esac
12162 # Clearing GMPINC is necessary to prevent host headers being
12163 # used by the build compiler. Defining GENERATOR_FILE stops
12164 # system.h from including gmp.h.
12165 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12166 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12167 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12168 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
12169 ${realsrcdir}/configure \
12170 --enable-languages=${enable_languages-all} \
12171 --target=$target_alias --host=$build_alias --build=$build_alias
12172
12173 # We just finished tests for the build machine, so rename
12174 # the file auto-build.h in the gcc directory.
12175 mv auto-host.h ../auto-build.h
12176 cd ..
12177 rm -rf $tempdir
12178 build_auto=auto-build.h
12179 fi
12180
12181
12182 tm_file="${tm_file} defaults.h"
12183 tm_p_file="${tm_p_file} tm-preds.h"
12184 tm_d_file="${tm_d_file} defaults.h"
12185 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12186 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12187 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12188 # put this back in temporarily.
12189 xm_file="auto-host.h ansidecl.h ${xm_file}"
12190
12191 # --------
12192 # UNSORTED
12193 # --------
12194
12195 # Compile in configure arguments.
12196 if test -f configargs.h ; then
12197 # Being re-configured.
12198 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12199 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12200 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12201 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12202 fi
12203 else
12204 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12205 fi
12206
12207 # Double all backslashes and backslash all quotes to turn
12208 # gcc_config_arguments into a C string.
12209 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12210 $gcc_config_arguments
12211 EOF
12212 gcc_config_arguments_str=`cat conftest.out`
12213 rm -f conftest.out
12214
12215 cat > configargs.h <<EOF
12216 /* Generated automatically. */
12217 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12218 static const char thread_model[] = "$thread_file";
12219
12220 static const struct {
12221 const char *name, *value;
12222 } configure_default_options[] = $configure_default_options;
12223 EOF
12224
12225 gcc_BASEVER=`cat $srcdir/BASE-VER`
12226 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12227 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12228 if test -f $srcdir/REVISION ; then
12229 gcc_REVISION=`cat $srcdir/REVISION`
12230 else
12231 gcc_REVISION=""
12232 fi
12233 cat > plugin-version.h <<EOF
12234 #include "configargs.h"
12235
12236 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12237 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12238 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12239 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12240
12241 static char basever[] = "$gcc_BASEVER";
12242 static char datestamp[] = "$gcc_DATESTAMP";
12243 static char devphase[] = "$gcc_DEVPHASE";
12244 static char revision[] = "$gcc_REVISION";
12245
12246 /* FIXME plugins: We should make the version information more precise.
12247 One way to do is to add a checksum. */
12248
12249 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12250 devphase, revision,
12251 configuration_arguments};
12252 EOF
12253
12254 # Determine what GCC version number to use in filesystem paths.
12255
12256 get_gcc_base_ver="cat"
12257
12258 # Check whether --with-gcc-major-version-only was given.
12259 if test "${with_gcc_major_version_only+set}" = set; then :
12260 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12261 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12262 fi
12263
12264 fi
12265
12266
12267
12268
12269 # Internationalization
12270 # If we haven't got the data from the intl directory,
12271 # assume NLS is disabled.
12272 USE_NLS=no
12273 LIBINTL=
12274 LIBINTL_DEP=
12275 INCINTL=
12276 XGETTEXT=
12277 GMSGFMT=
12278 POSUB=
12279
12280 if test -f ../intl/config.intl; then
12281 . ../intl/config.intl
12282 fi
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12284 $as_echo_n "checking whether NLS is requested... " >&6; }
12285 if test x"$USE_NLS" != xyes; then
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12288 else
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12290 $as_echo "yes" >&6; }
12291
12292 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12293
12294
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12296 $as_echo_n "checking for catalogs to be installed... " >&6; }
12297 # Look for .po and .gmo files in the source directory.
12298 CATALOGS=
12299 XLINGUAS=
12300 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12301 # If there aren't any .gmo files the shell will give us the
12302 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12303 # weeded out.
12304 case "$cat" in *\**)
12305 continue;;
12306 esac
12307 # The quadruple backslash is collapsed to a double backslash
12308 # by the backticks, then collapsed again by the double quotes,
12309 # leaving us with one backslash in the sed expression (right
12310 # before the dot that mustn't act as a wildcard).
12311 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12312 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12313 # The user is allowed to set LINGUAS to a list of languages to
12314 # install catalogs for. If it's empty that means "all of them."
12315 if test "x$LINGUAS" = x; then
12316 CATALOGS="$CATALOGS $cat"
12317 XLINGUAS="$XLINGUAS $lang"
12318 else
12319 case "$LINGUAS" in *$lang*)
12320 CATALOGS="$CATALOGS $cat"
12321 XLINGUAS="$XLINGUAS $lang"
12322 ;;
12323 esac
12324 fi
12325 done
12326 LINGUAS="$XLINGUAS"
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12328 $as_echo "$LINGUAS" >&6; }
12329
12330
12331 DATADIRNAME=share
12332
12333 INSTOBJEXT=.mo
12334
12335 GENCAT=gencat
12336
12337 CATOBJEXT=.gmo
12338
12339 fi
12340
12341 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12342 # -liconv on the link line twice.
12343 case "$LIBINTL" in *$LIBICONV*)
12344 LIBICONV= ;;
12345 esac
12346
12347 # Check whether --enable-secureplt was given.
12348 if test "${enable_secureplt+set}" = set; then :
12349 enableval=$enable_secureplt;
12350 fi
12351
12352
12353 # Check whether --enable-mingw-wildcard was given.
12354 if test "${enable_mingw_wildcard+set}" = set; then :
12355 enableval=$enable_mingw_wildcard;
12356 else
12357 enable_mingw_wildcard=platform
12358 fi
12359
12360 if test x"$enable_mingw_wildcard" != xplatform ; then :
12361
12362 cat >>confdefs.h <<_ACEOF
12363 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12364 _ACEOF
12365
12366 fi
12367
12368 # Check whether --enable-large-address-aware was given.
12369 if test "${enable_large_address_aware+set}" = set; then :
12370 enableval=$enable_large_address_aware;
12371 fi
12372
12373 if test x"$enable_large_address_aware" = xyes; then :
12374
12375 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12376
12377 fi
12378
12379 # Check whether --enable-leading-mingw64-underscores was given.
12380 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12381 enableval=$enable_leading_mingw64_underscores;
12382 fi
12383
12384 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12385
12386 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12387
12388 fi
12389
12390 # Check whether --enable-cld was given.
12391 if test "${enable_cld+set}" = set; then :
12392 enableval=$enable_cld;
12393 else
12394 enable_cld=no
12395 fi
12396
12397
12398 # Check whether --enable-frame-pointer was given.
12399 if test "${enable_frame_pointer+set}" = set; then :
12400 enableval=$enable_frame_pointer;
12401 else
12402
12403 case $target_os in
12404 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
12405 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12406 enable_frame_pointer=no
12407 ;;
12408 *)
12409 enable_frame_pointer=yes
12410 ;;
12411 esac
12412
12413 fi
12414
12415
12416 case $target in
12417 i[34567]86-*-* | x86_64-*-*)
12418 if test "x$enable_cld" = xyes; then
12419 tm_defines="${tm_defines} USE_IX86_CLD=1"
12420 fi
12421 if test "x$enable_frame_pointer" = xyes; then
12422 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
12423 fi
12424 ;;
12425 esac
12426
12427 # Windows32 Registry support for specifying GCC installation paths.
12428 # Check whether --enable-win32-registry was given.
12429 if test "${enable_win32_registry+set}" = set; then :
12430 enableval=$enable_win32_registry;
12431 fi
12432
12433
12434 case $host_os in
12435 win32 | pe | cygwin* | mingw32*)
12436 if test "x$enable_win32_registry" != xno; then
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12438 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12439 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12440 $as_echo_n "(cached) " >&6
12441 else
12442 ac_func_search_save_LIBS=$LIBS
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12445
12446 /* Override any GCC internal prototype to avoid an error.
12447 Use char because int might match the return type of a GCC
12448 builtin and then its argument prototype would still apply. */
12449 #ifdef __cplusplus
12450 extern "C"
12451 #endif
12452 char RegOpenKeyExA ();
12453 int
12454 main ()
12455 {
12456 return RegOpenKeyExA ();
12457 ;
12458 return 0;
12459 }
12460 _ACEOF
12461 for ac_lib in '' advapi32; do
12462 if test -z "$ac_lib"; then
12463 ac_res="none required"
12464 else
12465 ac_res=-l$ac_lib
12466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12467 fi
12468 if ac_fn_cxx_try_link "$LINENO"; then :
12469 ac_cv_search_RegOpenKeyExA=$ac_res
12470 fi
12471 rm -f core conftest.err conftest.$ac_objext \
12472 conftest$ac_exeext
12473 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12474 break
12475 fi
12476 done
12477 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12478
12479 else
12480 ac_cv_search_RegOpenKeyExA=no
12481 fi
12482 rm conftest.$ac_ext
12483 LIBS=$ac_func_search_save_LIBS
12484 fi
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12486 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12487 ac_res=$ac_cv_search_RegOpenKeyExA
12488 if test "$ac_res" != no; then :
12489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12490
12491 else
12492 enable_win32_registry=no
12493 fi
12494
12495 fi
12496
12497 if test "x$enable_win32_registry" != xno; then
12498
12499 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12500
12501
12502 if test "x$enable_win32_registry" != xyes \
12503 && test "x$enable_win32_registry" != x; then
12504
12505 cat >>confdefs.h <<_ACEOF
12506 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12507 _ACEOF
12508
12509 fi
12510 fi
12511 ;;
12512 esac
12513
12514 # Get an absolute path to the GCC top-level source directory
12515 holddir=`${PWDCMD-pwd}`
12516 cd $srcdir
12517 topdir=`${PWDCMD-pwd}`
12518 cd $holddir
12519
12520 # Conditionalize the makefile for this host machine.
12521 xmake_file=
12522 for f in ${host_xmake_file}
12523 do
12524 if test -f ${srcdir}/config/$f
12525 then
12526 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12527 fi
12528 done
12529
12530 # Conditionalize the makefile for this target machine.
12531 tmake_file_=
12532 for f in ${tmake_file}
12533 do
12534 if test -f ${srcdir}/config/$f
12535 then
12536 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12537 fi
12538 done
12539 tmake_file="${tmake_file_}"
12540
12541 out_object_file=`basename $out_file .c`.o
12542 common_out_object_file=`basename $common_out_file .c`.o
12543
12544 tm_file_list="options.h"
12545 tm_include_list="options.h insn-constants.h"
12546 for f in $tm_file; do
12547 case $f in
12548 ./* )
12549 f=`echo $f | sed 's/^..//'`
12550 tm_file_list="${tm_file_list} $f"
12551 tm_include_list="${tm_include_list} $f"
12552 ;;
12553 defaults.h )
12554 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12555 tm_include_list="${tm_include_list} $f"
12556 ;;
12557 * )
12558 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12559 tm_include_list="${tm_include_list} config/$f"
12560 ;;
12561 esac
12562 done
12563
12564 tm_p_file_list=
12565 tm_p_include_list=
12566 for f in $tm_p_file; do
12567 case $f in
12568 tm-preds.h )
12569 tm_p_file_list="${tm_p_file_list} $f"
12570 tm_p_include_list="${tm_p_include_list} $f"
12571 ;;
12572 * )
12573 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12574 tm_p_include_list="${tm_p_include_list} config/$f"
12575 esac
12576 done
12577
12578 tm_d_file_list=
12579 tm_d_include_list="options.h insn-constants.h"
12580 for f in $tm_d_file; do
12581 case $f in
12582 defaults.h )
12583 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12584 tm_d_include_list="${tm_d_include_list} $f"
12585 ;;
12586 * )
12587 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12588 tm_d_include_list="${tm_d_include_list} config/$f"
12589 ;;
12590 esac
12591 done
12592
12593 xm_file_list=
12594 xm_include_list=
12595 for f in $xm_file; do
12596 case $f in
12597 ansidecl.h )
12598 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12599 xm_include_list="${xm_include_list} $f"
12600 ;;
12601 auto-host.h )
12602 xm_file_list="${xm_file_list} $f"
12603 xm_include_list="${xm_include_list} $f"
12604 ;;
12605 * )
12606 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12607 xm_include_list="${xm_include_list} config/$f"
12608 ;;
12609 esac
12610 done
12611
12612 host_xm_file_list=
12613 host_xm_include_list=
12614 for f in $host_xm_file; do
12615 case $f in
12616 ansidecl.h )
12617 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12618 host_xm_include_list="${host_xm_include_list} $f"
12619 ;;
12620 auto-host.h )
12621 host_xm_file_list="${host_xm_file_list} $f"
12622 host_xm_include_list="${host_xm_include_list} $f"
12623 ;;
12624 * )
12625 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12626 host_xm_include_list="${host_xm_include_list} config/$f"
12627 ;;
12628 esac
12629 done
12630
12631 build_xm_file_list=
12632 for f in $build_xm_file; do
12633 case $f in
12634 ansidecl.h )
12635 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12636 build_xm_include_list="${build_xm_include_list} $f"
12637 ;;
12638 auto-build.h | auto-host.h )
12639 build_xm_file_list="${build_xm_file_list} $f"
12640 build_xm_include_list="${build_xm_include_list} $f"
12641 ;;
12642 * )
12643 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12644 build_xm_include_list="${build_xm_include_list} config/$f"
12645 ;;
12646 esac
12647 done
12648
12649 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12650 # cross-compiler which does not use the native headers and libraries.
12651 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12652 CROSS=
12653 ALL=all.internal
12654 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12655 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12656
12657 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12658 test x$build != x$host || test "x$with_build_sysroot" != x; then
12659 if test "x$with_build_sysroot" != x; then
12660 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12661 else
12662 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12663 fi
12664
12665 if test x$host != x$target
12666 then
12667 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12668 ALL=all.cross
12669 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12670 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12671 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12672 fi
12673
12674 if test "x$with_build_sysroot" != "x"; then
12675 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12676 elif test "x$with_sysroot" = x; then
12677 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12678 elif test "x$with_sysroot" = xyes; then
12679 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12680 else
12681 target_header_dir="${with_sysroot}${native_system_header_dir}"
12682 fi
12683 else
12684 target_header_dir=${native_system_header_dir}
12685 fi
12686
12687 # If this is a cross-compiler that does not
12688 # have its own set of headers then define
12689 # inhibit_libc
12690
12691 # If this is using newlib, without having the headers available now,
12692 # then define inhibit_libc in LIBGCC2_CFLAGS.
12693 # This prevents libgcc2 from containing any code which requires libc
12694 # support.
12695 : ${inhibit_libc=false}
12696 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12697 test x$with_newlib = xyes ; } &&
12698 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12699 inhibit_libc=true
12700 fi
12701
12702
12703 # When building gcc with a cross-compiler, we need to adjust things so
12704 # that the generator programs are still built with the native compiler.
12705 # Also, we cannot run fixincludes.
12706
12707 # These are the normal (build=host) settings:
12708 CC_FOR_BUILD='$(CC)'
12709 CXX_FOR_BUILD='$(CXX)'
12710 BUILD_CFLAGS='$(ALL_CFLAGS)'
12711 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12712 BUILD_LDFLAGS='$(LDFLAGS)'
12713 STMP_FIXINC=stmp-fixinc
12714
12715 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12716 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12717
12718 # And these apply if build != host, or we are generating coverage data
12719 if test x$build != x$host || test "x$coverage_flags" != x
12720 then
12721 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12722 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12723 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12724
12725 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12726 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12727 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12728 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12729 fi
12730
12731
12732
12733 # Expand extra_headers to include complete path.
12734 # This substitutes for lots of t-* files.
12735 extra_headers_list=
12736 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12737 for file in ${extra_headers} ; do
12738 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12739 done
12740
12741 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12742 if test x"$use_gcc_tgmath" = xyes
12743 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12744 fi
12745
12746 # Define collect2 in Makefile.
12747 case $host_can_use_collect2 in
12748 no) collect2= ;;
12749 *) collect2='collect2$(exeext)' ;;
12750 esac
12751
12752
12753 # Add a definition of USE_COLLECT2 if system wants one.
12754 case $use_collect2 in
12755 no) use_collect2= ;;
12756 "") ;;
12757 *)
12758 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12759 xm_defines="${xm_defines} USE_COLLECT2"
12760 case $host_can_use_collect2 in
12761 no)
12762 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12763 ;;
12764 esac
12765 ;;
12766 esac
12767
12768
12769 cat >>confdefs.h <<_ACEOF
12770 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12771 _ACEOF
12772
12773
12774 # ---------------------------
12775 # Assembler & linker features
12776 # ---------------------------
12777
12778 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12779 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12780 # However when ld-new is first executed from the build tree, libtool will
12781 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12782 # to the build tree. While doing this we need to use the previous-stage
12783 # linker, or we have an infinite loop. The presence of a shell script as
12784 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12785 # the gcc/collect-ld script. So we need to know how libtool works, or
12786 # exec-tool will fail.
12787
12788
12789 case `pwd` in
12790 *\ * | *\ *)
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12792 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12793 esac
12794
12795
12796
12797 macro_version='2.2.7a'
12798 macro_revision='1.3134'
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812 ltmain="$ac_aux_dir/ltmain.sh"
12813
12814 # Backslashify metacharacters that are still active within
12815 # double-quoted strings.
12816 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12817
12818 # Same as above, but do not quote variable references.
12819 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12820
12821 # Sed substitution to delay expansion of an escaped shell variable in a
12822 # double_quote_subst'ed string.
12823 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12824
12825 # Sed substitution to delay expansion of an escaped single quote.
12826 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12827
12828 # Sed substitution to avoid accidental globbing in evaled expressions
12829 no_glob_subst='s/\*/\\\*/g'
12830
12831 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12832 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12833 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12834
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12836 $as_echo_n "checking how to print strings... " >&6; }
12837 # Test print first, because it will be a builtin if present.
12838 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12839 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12840 ECHO='print -r --'
12841 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12842 ECHO='printf %s\n'
12843 else
12844 # Use this function as a fallback that always works.
12845 func_fallback_echo ()
12846 {
12847 eval 'cat <<_LTECHO_EOF
12848 $1
12849 _LTECHO_EOF'
12850 }
12851 ECHO='func_fallback_echo'
12852 fi
12853
12854 # func_echo_all arg...
12855 # Invoke $ECHO with all args, space-separated.
12856 func_echo_all ()
12857 {
12858 $ECHO ""
12859 }
12860
12861 case "$ECHO" in
12862 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12863 $as_echo "printf" >&6; } ;;
12864 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12865 $as_echo "print -r" >&6; } ;;
12866 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12867 $as_echo "cat" >&6; } ;;
12868 esac
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12884 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12885 if ${ac_cv_path_SED+:} false; then :
12886 $as_echo_n "(cached) " >&6
12887 else
12888 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12889 for ac_i in 1 2 3 4 5 6 7; do
12890 ac_script="$ac_script$as_nl$ac_script"
12891 done
12892 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12893 { ac_script=; unset ac_script;}
12894 if test -z "$SED"; then
12895 ac_path_SED_found=false
12896 # Loop through the user's path and test for each of PROGNAME-LIST
12897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12898 for as_dir in $PATH
12899 do
12900 IFS=$as_save_IFS
12901 test -z "$as_dir" && as_dir=.
12902 for ac_prog in sed gsed; do
12903 for ac_exec_ext in '' $ac_executable_extensions; do
12904 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12905 as_fn_executable_p "$ac_path_SED" || continue
12906 # Check for GNU ac_path_SED and select it if it is found.
12907 # Check for GNU $ac_path_SED
12908 case `"$ac_path_SED" --version 2>&1` in
12909 *GNU*)
12910 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12911 *)
12912 ac_count=0
12913 $as_echo_n 0123456789 >"conftest.in"
12914 while :
12915 do
12916 cat "conftest.in" "conftest.in" >"conftest.tmp"
12917 mv "conftest.tmp" "conftest.in"
12918 cp "conftest.in" "conftest.nl"
12919 $as_echo '' >> "conftest.nl"
12920 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12922 as_fn_arith $ac_count + 1 && ac_count=$as_val
12923 if test $ac_count -gt ${ac_path_SED_max-0}; then
12924 # Best one so far, save it but keep looking for a better one
12925 ac_cv_path_SED="$ac_path_SED"
12926 ac_path_SED_max=$ac_count
12927 fi
12928 # 10*(2^10) chars as input seems more than enough
12929 test $ac_count -gt 10 && break
12930 done
12931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12932 esac
12933
12934 $ac_path_SED_found && break 3
12935 done
12936 done
12937 done
12938 IFS=$as_save_IFS
12939 if test -z "$ac_cv_path_SED"; then
12940 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12941 fi
12942 else
12943 ac_cv_path_SED=$SED
12944 fi
12945
12946 fi
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12948 $as_echo "$ac_cv_path_SED" >&6; }
12949 SED="$ac_cv_path_SED"
12950 rm -f conftest.sed
12951
12952 test -z "$SED" && SED=sed
12953 Xsed="$SED -e 1s/^X//"
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12966 $as_echo_n "checking for fgrep... " >&6; }
12967 if ${ac_cv_path_FGREP+:} false; then :
12968 $as_echo_n "(cached) " >&6
12969 else
12970 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12971 then ac_cv_path_FGREP="$GREP -F"
12972 else
12973 if test -z "$FGREP"; then
12974 ac_path_FGREP_found=false
12975 # Loop through the user's path and test for each of PROGNAME-LIST
12976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12977 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12978 do
12979 IFS=$as_save_IFS
12980 test -z "$as_dir" && as_dir=.
12981 for ac_prog in fgrep; do
12982 for ac_exec_ext in '' $ac_executable_extensions; do
12983 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12984 as_fn_executable_p "$ac_path_FGREP" || continue
12985 # Check for GNU ac_path_FGREP and select it if it is found.
12986 # Check for GNU $ac_path_FGREP
12987 case `"$ac_path_FGREP" --version 2>&1` in
12988 *GNU*)
12989 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12990 *)
12991 ac_count=0
12992 $as_echo_n 0123456789 >"conftest.in"
12993 while :
12994 do
12995 cat "conftest.in" "conftest.in" >"conftest.tmp"
12996 mv "conftest.tmp" "conftest.in"
12997 cp "conftest.in" "conftest.nl"
12998 $as_echo 'FGREP' >> "conftest.nl"
12999 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13000 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13001 as_fn_arith $ac_count + 1 && ac_count=$as_val
13002 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13003 # Best one so far, save it but keep looking for a better one
13004 ac_cv_path_FGREP="$ac_path_FGREP"
13005 ac_path_FGREP_max=$ac_count
13006 fi
13007 # 10*(2^10) chars as input seems more than enough
13008 test $ac_count -gt 10 && break
13009 done
13010 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13011 esac
13012
13013 $ac_path_FGREP_found && break 3
13014 done
13015 done
13016 done
13017 IFS=$as_save_IFS
13018 if test -z "$ac_cv_path_FGREP"; then
13019 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13020 fi
13021 else
13022 ac_cv_path_FGREP=$FGREP
13023 fi
13024
13025 fi
13026 fi
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13028 $as_echo "$ac_cv_path_FGREP" >&6; }
13029 FGREP="$ac_cv_path_FGREP"
13030
13031
13032 test -z "$GREP" && GREP=grep
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052 # Check whether --with-gnu-ld was given.
13053 if test "${with_gnu_ld+set}" = set; then :
13054 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13055 else
13056 with_gnu_ld=no
13057 fi
13058
13059 ac_prog=ld
13060 if test "$GCC" = yes; then
13061 # Check if gcc -print-prog-name=ld gives a path.
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13063 $as_echo_n "checking for ld used by $CC... " >&6; }
13064 case $host in
13065 *-*-mingw*)
13066 # gcc leaves a trailing carriage return which upsets mingw
13067 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13068 *)
13069 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13070 esac
13071 case $ac_prog in
13072 # Accept absolute paths.
13073 [\\/]* | ?:[\\/]*)
13074 re_direlt='/[^/][^/]*/\.\./'
13075 # Canonicalize the pathname of ld
13076 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13077 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13078 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13079 done
13080 test -z "$LD" && LD="$ac_prog"
13081 ;;
13082 "")
13083 # If it fails, then pretend we aren't using GCC.
13084 ac_prog=ld
13085 ;;
13086 *)
13087 # If it is relative, then search for the first ld in PATH.
13088 with_gnu_ld=unknown
13089 ;;
13090 esac
13091 elif test "$with_gnu_ld" = yes; then
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13093 $as_echo_n "checking for GNU ld... " >&6; }
13094 else
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13096 $as_echo_n "checking for non-GNU ld... " >&6; }
13097 fi
13098 if ${lt_cv_path_LD+:} false; then :
13099 $as_echo_n "(cached) " >&6
13100 else
13101 if test -z "$LD"; then
13102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13103 for ac_dir in $PATH; do
13104 IFS="$lt_save_ifs"
13105 test -z "$ac_dir" && ac_dir=.
13106 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13107 lt_cv_path_LD="$ac_dir/$ac_prog"
13108 # Check to see if the program is GNU ld. I'd rather use --version,
13109 # but apparently some variants of GNU ld only accept -v.
13110 # Break only if it was the GNU/non-GNU ld that we prefer.
13111 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13112 *GNU* | *'with BFD'*)
13113 test "$with_gnu_ld" != no && break
13114 ;;
13115 *)
13116 test "$with_gnu_ld" != yes && break
13117 ;;
13118 esac
13119 fi
13120 done
13121 IFS="$lt_save_ifs"
13122 else
13123 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13124 fi
13125 fi
13126
13127 LD="$lt_cv_path_LD"
13128 if test -n "$LD"; then
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13130 $as_echo "$LD" >&6; }
13131 else
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133 $as_echo "no" >&6; }
13134 fi
13135 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13137 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13138 if ${lt_cv_prog_gnu_ld+:} false; then :
13139 $as_echo_n "(cached) " >&6
13140 else
13141 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13142 case `$LD -v 2>&1 </dev/null` in
13143 *GNU* | *'with BFD'*)
13144 lt_cv_prog_gnu_ld=yes
13145 ;;
13146 *)
13147 lt_cv_prog_gnu_ld=no
13148 ;;
13149 esac
13150 fi
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13152 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13153 with_gnu_ld=$lt_cv_prog_gnu_ld
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13164 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13165 if ${lt_cv_path_NM+:} false; then :
13166 $as_echo_n "(cached) " >&6
13167 else
13168 if test -n "$NM"; then
13169 # Let the user override the test.
13170 lt_cv_path_NM="$NM"
13171 else
13172 lt_nm_to_check="${ac_tool_prefix}nm"
13173 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13174 lt_nm_to_check="$lt_nm_to_check nm"
13175 fi
13176 for lt_tmp_nm in $lt_nm_to_check; do
13177 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13178 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13179 IFS="$lt_save_ifs"
13180 test -z "$ac_dir" && ac_dir=.
13181 tmp_nm="$ac_dir/$lt_tmp_nm"
13182 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13183 # Check to see if the nm accepts a BSD-compat flag.
13184 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13185 # nm: unknown option "B" ignored
13186 # Tru64's nm complains that /dev/null is an invalid object file
13187 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13188 */dev/null* | *'Invalid file or object type'*)
13189 lt_cv_path_NM="$tmp_nm -B"
13190 break
13191 ;;
13192 *)
13193 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13194 */dev/null*)
13195 lt_cv_path_NM="$tmp_nm -p"
13196 break
13197 ;;
13198 *)
13199 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13200 continue # so that we can try to find one that supports BSD flags
13201 ;;
13202 esac
13203 ;;
13204 esac
13205 fi
13206 done
13207 IFS="$lt_save_ifs"
13208 done
13209 : ${lt_cv_path_NM=no}
13210 fi
13211 fi
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13213 $as_echo "$lt_cv_path_NM" >&6; }
13214 if test "$lt_cv_path_NM" != "no"; then
13215 NM="$lt_cv_path_NM"
13216 else
13217 # Didn't find any BSD compatible name lister, look for dumpbin.
13218 if test -n "$DUMPBIN"; then :
13219 # Let the user override the test.
13220 else
13221 if test -n "$ac_tool_prefix"; then
13222 for ac_prog in dumpbin "link -dump"
13223 do
13224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13227 $as_echo_n "checking for $ac_word... " >&6; }
13228 if ${ac_cv_prog_DUMPBIN+:} false; then :
13229 $as_echo_n "(cached) " >&6
13230 else
13231 if test -n "$DUMPBIN"; then
13232 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13233 else
13234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235 for as_dir in $PATH
13236 do
13237 IFS=$as_save_IFS
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13241 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 break 2
13244 fi
13245 done
13246 done
13247 IFS=$as_save_IFS
13248
13249 fi
13250 fi
13251 DUMPBIN=$ac_cv_prog_DUMPBIN
13252 if test -n "$DUMPBIN"; then
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13254 $as_echo "$DUMPBIN" >&6; }
13255 else
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13257 $as_echo "no" >&6; }
13258 fi
13259
13260
13261 test -n "$DUMPBIN" && break
13262 done
13263 fi
13264 if test -z "$DUMPBIN"; then
13265 ac_ct_DUMPBIN=$DUMPBIN
13266 for ac_prog in dumpbin "link -dump"
13267 do
13268 # Extract the first word of "$ac_prog", so it can be a program name with args.
13269 set dummy $ac_prog; ac_word=$2
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13271 $as_echo_n "checking for $ac_word... " >&6; }
13272 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13273 $as_echo_n "(cached) " >&6
13274 else
13275 if test -n "$ac_ct_DUMPBIN"; then
13276 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13277 else
13278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279 for as_dir in $PATH
13280 do
13281 IFS=$as_save_IFS
13282 test -z "$as_dir" && as_dir=.
13283 for ac_exec_ext in '' $ac_executable_extensions; do
13284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13285 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13287 break 2
13288 fi
13289 done
13290 done
13291 IFS=$as_save_IFS
13292
13293 fi
13294 fi
13295 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13296 if test -n "$ac_ct_DUMPBIN"; then
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13298 $as_echo "$ac_ct_DUMPBIN" >&6; }
13299 else
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301 $as_echo "no" >&6; }
13302 fi
13303
13304
13305 test -n "$ac_ct_DUMPBIN" && break
13306 done
13307
13308 if test "x$ac_ct_DUMPBIN" = x; then
13309 DUMPBIN=":"
13310 else
13311 case $cross_compiling:$ac_tool_warned in
13312 yes:)
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13315 ac_tool_warned=yes ;;
13316 esac
13317 DUMPBIN=$ac_ct_DUMPBIN
13318 fi
13319 fi
13320
13321 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13322 *COFF*)
13323 DUMPBIN="$DUMPBIN -symbols"
13324 ;;
13325 *)
13326 DUMPBIN=:
13327 ;;
13328 esac
13329 fi
13330
13331 if test "$DUMPBIN" != ":"; then
13332 NM="$DUMPBIN"
13333 fi
13334 fi
13335 test -z "$NM" && NM=nm
13336
13337
13338
13339
13340
13341
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13343 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13344 if ${lt_cv_nm_interface+:} false; then :
13345 $as_echo_n "(cached) " >&6
13346 else
13347 lt_cv_nm_interface="BSD nm"
13348 echo "int some_variable = 0;" > conftest.$ac_ext
13349 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13350 (eval "$ac_compile" 2>conftest.err)
13351 cat conftest.err >&5
13352 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13353 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13354 cat conftest.err >&5
13355 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13356 cat conftest.out >&5
13357 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13358 lt_cv_nm_interface="MS dumpbin"
13359 fi
13360 rm -f conftest*
13361 fi
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13363 $as_echo "$lt_cv_nm_interface" >&6; }
13364
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13366 $as_echo_n "checking whether ln -s works... " >&6; }
13367 LN_S=$as_ln_s
13368 if test "$LN_S" = "ln -s"; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13370 $as_echo "yes" >&6; }
13371 else
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13373 $as_echo "no, using $LN_S" >&6; }
13374 fi
13375
13376 # find the maximum length of command line arguments
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13378 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13379 if ${lt_cv_sys_max_cmd_len+:} false; then :
13380 $as_echo_n "(cached) " >&6
13381 else
13382 i=0
13383 teststring="ABCD"
13384
13385 case $build_os in
13386 msdosdjgpp*)
13387 # On DJGPP, this test can blow up pretty badly due to problems in libc
13388 # (any single argument exceeding 2000 bytes causes a buffer overrun
13389 # during glob expansion). Even if it were fixed, the result of this
13390 # check would be larger than it should be.
13391 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13392 ;;
13393
13394 gnu*)
13395 # Under GNU Hurd, this test is not required because there is
13396 # no limit to the length of command line arguments.
13397 # Libtool will interpret -1 as no limit whatsoever
13398 lt_cv_sys_max_cmd_len=-1;
13399 ;;
13400
13401 cygwin* | mingw* | cegcc*)
13402 # On Win9x/ME, this test blows up -- it succeeds, but takes
13403 # about 5 minutes as the teststring grows exponentially.
13404 # Worse, since 9x/ME are not pre-emptively multitasking,
13405 # you end up with a "frozen" computer, even though with patience
13406 # the test eventually succeeds (with a max line length of 256k).
13407 # Instead, let's just punt: use the minimum linelength reported by
13408 # all of the supported platforms: 8192 (on NT/2K/XP).
13409 lt_cv_sys_max_cmd_len=8192;
13410 ;;
13411
13412 mint*)
13413 # On MiNT this can take a long time and run out of memory.
13414 lt_cv_sys_max_cmd_len=8192;
13415 ;;
13416
13417 amigaos*)
13418 # On AmigaOS with pdksh, this test takes hours, literally.
13419 # So we just punt and use a minimum line length of 8192.
13420 lt_cv_sys_max_cmd_len=8192;
13421 ;;
13422
13423 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13424 # This has been around since 386BSD, at least. Likely further.
13425 if test -x /sbin/sysctl; then
13426 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13427 elif test -x /usr/sbin/sysctl; then
13428 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13429 else
13430 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13431 fi
13432 # And add a safety zone
13433 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13434 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13435 ;;
13436
13437 interix*)
13438 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13439 lt_cv_sys_max_cmd_len=196608
13440 ;;
13441
13442 osf*)
13443 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13444 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13445 # nice to cause kernel panics so lets avoid the loop below.
13446 # First set a reasonable default.
13447 lt_cv_sys_max_cmd_len=16384
13448 #
13449 if test -x /sbin/sysconfig; then
13450 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13451 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13452 esac
13453 fi
13454 ;;
13455 sco3.2v5*)
13456 lt_cv_sys_max_cmd_len=102400
13457 ;;
13458 sysv5* | sco5v6* | sysv4.2uw2*)
13459 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13460 if test -n "$kargmax"; then
13461 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13462 else
13463 lt_cv_sys_max_cmd_len=32768
13464 fi
13465 ;;
13466 *)
13467 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13468 if test -n "$lt_cv_sys_max_cmd_len"; then
13469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13470 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13471 else
13472 # Make teststring a little bigger before we do anything with it.
13473 # a 1K string should be a reasonable start.
13474 for i in 1 2 3 4 5 6 7 8 ; do
13475 teststring=$teststring$teststring
13476 done
13477 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13478 # If test is not a shell built-in, we'll probably end up computing a
13479 # maximum length that is only half of the actual maximum length, but
13480 # we can't tell.
13481 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13482 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13483 test $i != 17 # 1/2 MB should be enough
13484 do
13485 i=`expr $i + 1`
13486 teststring=$teststring$teststring
13487 done
13488 # Only check the string length outside the loop.
13489 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13490 teststring=
13491 # Add a significant safety factor because C++ compilers can tack on
13492 # massive amounts of additional arguments before passing them to the
13493 # linker. It appears as though 1/2 is a usable value.
13494 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13495 fi
13496 ;;
13497 esac
13498
13499 fi
13500
13501 if test -n $lt_cv_sys_max_cmd_len ; then
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13503 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13504 else
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13506 $as_echo "none" >&6; }
13507 fi
13508 max_cmd_len=$lt_cv_sys_max_cmd_len
13509
13510
13511
13512
13513
13514
13515 : ${CP="cp -f"}
13516 : ${MV="mv -f"}
13517 : ${RM="rm -f"}
13518
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13520 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13521 # Try some XSI features
13522 xsi_shell=no
13523 ( _lt_dummy="a/b/c"
13524 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13525 = c,a/b,, \
13526 && eval 'test $(( 1 + 1 )) -eq 2 \
13527 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13528 && xsi_shell=yes
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13530 $as_echo "$xsi_shell" >&6; }
13531
13532
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13534 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13535 lt_shell_append=no
13536 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13537 >/dev/null 2>&1 \
13538 && lt_shell_append=yes
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13540 $as_echo "$lt_shell_append" >&6; }
13541
13542
13543 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13544 lt_unset=unset
13545 else
13546 lt_unset=false
13547 fi
13548
13549
13550
13551
13552
13553 # test EBCDIC or ASCII
13554 case `echo X|tr X '\101'` in
13555 A) # ASCII based system
13556 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13557 lt_SP2NL='tr \040 \012'
13558 lt_NL2SP='tr \015\012 \040\040'
13559 ;;
13560 *) # EBCDIC based system
13561 lt_SP2NL='tr \100 \n'
13562 lt_NL2SP='tr \r\n \100\100'
13563 ;;
13564 esac
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13575 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13576 if ${lt_cv_ld_reload_flag+:} false; then :
13577 $as_echo_n "(cached) " >&6
13578 else
13579 lt_cv_ld_reload_flag='-r'
13580 fi
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13582 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13583 reload_flag=$lt_cv_ld_reload_flag
13584 case $reload_flag in
13585 "" | " "*) ;;
13586 *) reload_flag=" $reload_flag" ;;
13587 esac
13588 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13589 case $host_os in
13590 darwin*)
13591 if test "$GCC" = yes; then
13592 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13593 else
13594 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13595 fi
13596 ;;
13597 esac
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607 if test -n "$ac_tool_prefix"; then
13608 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13609 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13611 $as_echo_n "checking for $ac_word... " >&6; }
13612 if ${ac_cv_prog_OBJDUMP+:} false; then :
13613 $as_echo_n "(cached) " >&6
13614 else
13615 if test -n "$OBJDUMP"; then
13616 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13617 else
13618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619 for as_dir in $PATH
13620 do
13621 IFS=$as_save_IFS
13622 test -z "$as_dir" && as_dir=.
13623 for ac_exec_ext in '' $ac_executable_extensions; do
13624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13625 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13627 break 2
13628 fi
13629 done
13630 done
13631 IFS=$as_save_IFS
13632
13633 fi
13634 fi
13635 OBJDUMP=$ac_cv_prog_OBJDUMP
13636 if test -n "$OBJDUMP"; then
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13638 $as_echo "$OBJDUMP" >&6; }
13639 else
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641 $as_echo "no" >&6; }
13642 fi
13643
13644
13645 fi
13646 if test -z "$ac_cv_prog_OBJDUMP"; then
13647 ac_ct_OBJDUMP=$OBJDUMP
13648 # Extract the first word of "objdump", so it can be a program name with args.
13649 set dummy objdump; ac_word=$2
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13651 $as_echo_n "checking for $ac_word... " >&6; }
13652 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13653 $as_echo_n "(cached) " >&6
13654 else
13655 if test -n "$ac_ct_OBJDUMP"; then
13656 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13657 else
13658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659 for as_dir in $PATH
13660 do
13661 IFS=$as_save_IFS
13662 test -z "$as_dir" && as_dir=.
13663 for ac_exec_ext in '' $ac_executable_extensions; do
13664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13665 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13667 break 2
13668 fi
13669 done
13670 done
13671 IFS=$as_save_IFS
13672
13673 fi
13674 fi
13675 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13676 if test -n "$ac_ct_OBJDUMP"; then
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13678 $as_echo "$ac_ct_OBJDUMP" >&6; }
13679 else
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13681 $as_echo "no" >&6; }
13682 fi
13683
13684 if test "x$ac_ct_OBJDUMP" = x; then
13685 OBJDUMP="false"
13686 else
13687 case $cross_compiling:$ac_tool_warned in
13688 yes:)
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13691 ac_tool_warned=yes ;;
13692 esac
13693 OBJDUMP=$ac_ct_OBJDUMP
13694 fi
13695 else
13696 OBJDUMP="$ac_cv_prog_OBJDUMP"
13697 fi
13698
13699 test -z "$OBJDUMP" && OBJDUMP=objdump
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13710 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13711 if ${lt_cv_deplibs_check_method+:} false; then :
13712 $as_echo_n "(cached) " >&6
13713 else
13714 lt_cv_file_magic_cmd='$MAGIC_CMD'
13715 lt_cv_file_magic_test_file=
13716 lt_cv_deplibs_check_method='unknown'
13717 # Need to set the preceding variable on all platforms that support
13718 # interlibrary dependencies.
13719 # 'none' -- dependencies not supported.
13720 # `unknown' -- same as none, but documents that we really don't know.
13721 # 'pass_all' -- all dependencies passed with no checks.
13722 # 'test_compile' -- check by making test program.
13723 # 'file_magic [[regex]]' -- check by looking for files in library path
13724 # which responds to the $file_magic_cmd with a given extended regex.
13725 # If you have `file' or equivalent on your system and you're not sure
13726 # whether `pass_all' will *always* work, you probably want this one.
13727
13728 case $host_os in
13729 aix[4-9]*)
13730 lt_cv_deplibs_check_method=pass_all
13731 ;;
13732
13733 beos*)
13734 lt_cv_deplibs_check_method=pass_all
13735 ;;
13736
13737 bsdi[45]*)
13738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13739 lt_cv_file_magic_cmd='/usr/bin/file -L'
13740 lt_cv_file_magic_test_file=/shlib/libc.so
13741 ;;
13742
13743 cygwin*)
13744 # func_win32_libid is a shell function defined in ltmain.sh
13745 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13746 lt_cv_file_magic_cmd='func_win32_libid'
13747 ;;
13748
13749 mingw* | pw32*)
13750 # Base MSYS/MinGW do not provide the 'file' command needed by
13751 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13752 # unless we find 'file', for example because we are cross-compiling.
13753 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13754 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13755 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13756 lt_cv_file_magic_cmd='func_win32_libid'
13757 else
13758 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13759 lt_cv_file_magic_cmd='$OBJDUMP -f'
13760 fi
13761 ;;
13762
13763 cegcc*)
13764 # use the weaker test based on 'objdump'. See mingw*.
13765 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13766 lt_cv_file_magic_cmd='$OBJDUMP -f'
13767 ;;
13768
13769 darwin* | rhapsody*)
13770 lt_cv_deplibs_check_method=pass_all
13771 ;;
13772
13773 freebsd* | dragonfly*)
13774 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13775 case $host_cpu in
13776 i*86 )
13777 # Not sure whether the presence of OpenBSD here was a mistake.
13778 # Let's accept both of them until this is cleared up.
13779 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13780 lt_cv_file_magic_cmd=/usr/bin/file
13781 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13782 ;;
13783 esac
13784 else
13785 lt_cv_deplibs_check_method=pass_all
13786 fi
13787 ;;
13788
13789 gnu*)
13790 lt_cv_deplibs_check_method=pass_all
13791 ;;
13792
13793 haiku*)
13794 lt_cv_deplibs_check_method=pass_all
13795 ;;
13796
13797 hpux10.20* | hpux11*)
13798 lt_cv_file_magic_cmd=/usr/bin/file
13799 case $host_cpu in
13800 ia64*)
13801 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13802 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13803 ;;
13804 hppa*64*)
13805 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]'
13806 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13807 ;;
13808 *)
13809 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13810 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13811 ;;
13812 esac
13813 ;;
13814
13815 interix[3-9]*)
13816 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13817 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13818 ;;
13819
13820 irix5* | irix6* | nonstopux*)
13821 case $LD in
13822 *-32|*"-32 ") libmagic=32-bit;;
13823 *-n32|*"-n32 ") libmagic=N32;;
13824 *-64|*"-64 ") libmagic=64-bit;;
13825 *) libmagic=never-match;;
13826 esac
13827 lt_cv_deplibs_check_method=pass_all
13828 ;;
13829
13830 # This must be Linux ELF.
13831 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13832 lt_cv_deplibs_check_method=pass_all
13833 ;;
13834
13835 netbsd*)
13836 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13838 else
13839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13840 fi
13841 ;;
13842
13843 newos6*)
13844 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13845 lt_cv_file_magic_cmd=/usr/bin/file
13846 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13847 ;;
13848
13849 *nto* | *qnx*)
13850 lt_cv_deplibs_check_method=pass_all
13851 ;;
13852
13853 openbsd*)
13854 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13855 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13856 else
13857 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13858 fi
13859 ;;
13860
13861 osf3* | osf4* | osf5*)
13862 lt_cv_deplibs_check_method=pass_all
13863 ;;
13864
13865 rdos*)
13866 lt_cv_deplibs_check_method=pass_all
13867 ;;
13868
13869 solaris*)
13870 lt_cv_deplibs_check_method=pass_all
13871 ;;
13872
13873 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13874 lt_cv_deplibs_check_method=pass_all
13875 ;;
13876
13877 sysv4 | sysv4.3*)
13878 case $host_vendor in
13879 motorola)
13880 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]'
13881 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13882 ;;
13883 ncr)
13884 lt_cv_deplibs_check_method=pass_all
13885 ;;
13886 sequent)
13887 lt_cv_file_magic_cmd='/bin/file'
13888 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13889 ;;
13890 sni)
13891 lt_cv_file_magic_cmd='/bin/file'
13892 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13893 lt_cv_file_magic_test_file=/lib/libc.so
13894 ;;
13895 siemens)
13896 lt_cv_deplibs_check_method=pass_all
13897 ;;
13898 pc)
13899 lt_cv_deplibs_check_method=pass_all
13900 ;;
13901 esac
13902 ;;
13903
13904 tpf*)
13905 lt_cv_deplibs_check_method=pass_all
13906 ;;
13907 esac
13908
13909 fi
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13911 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13912 file_magic_cmd=$lt_cv_file_magic_cmd
13913 deplibs_check_method=$lt_cv_deplibs_check_method
13914 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927 if test -n "$ac_tool_prefix"; then
13928 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13929 set dummy ${ac_tool_prefix}ar; ac_word=$2
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13931 $as_echo_n "checking for $ac_word... " >&6; }
13932 if ${ac_cv_prog_AR+:} false; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935 if test -n "$AR"; then
13936 ac_cv_prog_AR="$AR" # Let the user override the test.
13937 else
13938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 for as_dir in $PATH
13940 do
13941 IFS=$as_save_IFS
13942 test -z "$as_dir" && as_dir=.
13943 for ac_exec_ext in '' $ac_executable_extensions; do
13944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13945 ac_cv_prog_AR="${ac_tool_prefix}ar"
13946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13947 break 2
13948 fi
13949 done
13950 done
13951 IFS=$as_save_IFS
13952
13953 fi
13954 fi
13955 AR=$ac_cv_prog_AR
13956 if test -n "$AR"; then
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13958 $as_echo "$AR" >&6; }
13959 else
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13961 $as_echo "no" >&6; }
13962 fi
13963
13964
13965 fi
13966 if test -z "$ac_cv_prog_AR"; then
13967 ac_ct_AR=$AR
13968 # Extract the first word of "ar", so it can be a program name with args.
13969 set dummy ar; ac_word=$2
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13971 $as_echo_n "checking for $ac_word... " >&6; }
13972 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13973 $as_echo_n "(cached) " >&6
13974 else
13975 if test -n "$ac_ct_AR"; then
13976 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13977 else
13978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13979 for as_dir in $PATH
13980 do
13981 IFS=$as_save_IFS
13982 test -z "$as_dir" && as_dir=.
13983 for ac_exec_ext in '' $ac_executable_extensions; do
13984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13985 ac_cv_prog_ac_ct_AR="ar"
13986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13987 break 2
13988 fi
13989 done
13990 done
13991 IFS=$as_save_IFS
13992
13993 fi
13994 fi
13995 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13996 if test -n "$ac_ct_AR"; then
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13998 $as_echo "$ac_ct_AR" >&6; }
13999 else
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14001 $as_echo "no" >&6; }
14002 fi
14003
14004 if test "x$ac_ct_AR" = x; then
14005 AR="false"
14006 else
14007 case $cross_compiling:$ac_tool_warned in
14008 yes:)
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14011 ac_tool_warned=yes ;;
14012 esac
14013 AR=$ac_ct_AR
14014 fi
14015 else
14016 AR="$ac_cv_prog_AR"
14017 fi
14018
14019 test -z "$AR" && AR=ar
14020 test -z "$AR_FLAGS" && AR_FLAGS=cru
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032 if test -n "$ac_tool_prefix"; then
14033 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14034 set dummy ${ac_tool_prefix}strip; ac_word=$2
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14036 $as_echo_n "checking for $ac_word... " >&6; }
14037 if ${ac_cv_prog_STRIP+:} false; then :
14038 $as_echo_n "(cached) " >&6
14039 else
14040 if test -n "$STRIP"; then
14041 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14042 else
14043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14044 for as_dir in $PATH
14045 do
14046 IFS=$as_save_IFS
14047 test -z "$as_dir" && as_dir=.
14048 for ac_exec_ext in '' $ac_executable_extensions; do
14049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14050 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14052 break 2
14053 fi
14054 done
14055 done
14056 IFS=$as_save_IFS
14057
14058 fi
14059 fi
14060 STRIP=$ac_cv_prog_STRIP
14061 if test -n "$STRIP"; then
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14063 $as_echo "$STRIP" >&6; }
14064 else
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14066 $as_echo "no" >&6; }
14067 fi
14068
14069
14070 fi
14071 if test -z "$ac_cv_prog_STRIP"; then
14072 ac_ct_STRIP=$STRIP
14073 # Extract the first word of "strip", so it can be a program name with args.
14074 set dummy strip; ac_word=$2
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14076 $as_echo_n "checking for $ac_word... " >&6; }
14077 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14078 $as_echo_n "(cached) " >&6
14079 else
14080 if test -n "$ac_ct_STRIP"; then
14081 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14082 else
14083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14084 for as_dir in $PATH
14085 do
14086 IFS=$as_save_IFS
14087 test -z "$as_dir" && as_dir=.
14088 for ac_exec_ext in '' $ac_executable_extensions; do
14089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14090 ac_cv_prog_ac_ct_STRIP="strip"
14091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14092 break 2
14093 fi
14094 done
14095 done
14096 IFS=$as_save_IFS
14097
14098 fi
14099 fi
14100 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14101 if test -n "$ac_ct_STRIP"; then
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14103 $as_echo "$ac_ct_STRIP" >&6; }
14104 else
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14106 $as_echo "no" >&6; }
14107 fi
14108
14109 if test "x$ac_ct_STRIP" = x; then
14110 STRIP=":"
14111 else
14112 case $cross_compiling:$ac_tool_warned in
14113 yes:)
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14116 ac_tool_warned=yes ;;
14117 esac
14118 STRIP=$ac_ct_STRIP
14119 fi
14120 else
14121 STRIP="$ac_cv_prog_STRIP"
14122 fi
14123
14124 test -z "$STRIP" && STRIP=:
14125
14126
14127
14128
14129
14130
14131 if test -n "$ac_tool_prefix"; then
14132 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14133 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14135 $as_echo_n "checking for $ac_word... " >&6; }
14136 if ${ac_cv_prog_RANLIB+:} false; then :
14137 $as_echo_n "(cached) " >&6
14138 else
14139 if test -n "$RANLIB"; then
14140 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14141 else
14142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143 for as_dir in $PATH
14144 do
14145 IFS=$as_save_IFS
14146 test -z "$as_dir" && as_dir=.
14147 for ac_exec_ext in '' $ac_executable_extensions; do
14148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14149 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14151 break 2
14152 fi
14153 done
14154 done
14155 IFS=$as_save_IFS
14156
14157 fi
14158 fi
14159 RANLIB=$ac_cv_prog_RANLIB
14160 if test -n "$RANLIB"; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14162 $as_echo "$RANLIB" >&6; }
14163 else
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14165 $as_echo "no" >&6; }
14166 fi
14167
14168
14169 fi
14170 if test -z "$ac_cv_prog_RANLIB"; then
14171 ac_ct_RANLIB=$RANLIB
14172 # Extract the first word of "ranlib", so it can be a program name with args.
14173 set dummy ranlib; ac_word=$2
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14175 $as_echo_n "checking for $ac_word... " >&6; }
14176 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14177 $as_echo_n "(cached) " >&6
14178 else
14179 if test -n "$ac_ct_RANLIB"; then
14180 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14181 else
14182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183 for as_dir in $PATH
14184 do
14185 IFS=$as_save_IFS
14186 test -z "$as_dir" && as_dir=.
14187 for ac_exec_ext in '' $ac_executable_extensions; do
14188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14189 ac_cv_prog_ac_ct_RANLIB="ranlib"
14190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14191 break 2
14192 fi
14193 done
14194 done
14195 IFS=$as_save_IFS
14196
14197 fi
14198 fi
14199 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14200 if test -n "$ac_ct_RANLIB"; then
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14202 $as_echo "$ac_ct_RANLIB" >&6; }
14203 else
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14205 $as_echo "no" >&6; }
14206 fi
14207
14208 if test "x$ac_ct_RANLIB" = x; then
14209 RANLIB=":"
14210 else
14211 case $cross_compiling:$ac_tool_warned in
14212 yes:)
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14215 ac_tool_warned=yes ;;
14216 esac
14217 RANLIB=$ac_ct_RANLIB
14218 fi
14219 else
14220 RANLIB="$ac_cv_prog_RANLIB"
14221 fi
14222
14223 test -z "$RANLIB" && RANLIB=:
14224
14225
14226
14227
14228
14229
14230 # Determine commands to create old-style static archives.
14231 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14232 old_postinstall_cmds='chmod 644 $oldlib'
14233 old_postuninstall_cmds=
14234
14235 if test -n "$RANLIB"; then
14236 case $host_os in
14237 openbsd*)
14238 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14239 ;;
14240 *)
14241 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14242 ;;
14243 esac
14244 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14245 fi
14246
14247 case $host_os in
14248 darwin*)
14249 lock_old_archive_extraction=yes ;;
14250 *)
14251 lock_old_archive_extraction=no ;;
14252 esac
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292 # If no C compiler was specified, use CC.
14293 LTCC=${LTCC-"$CC"}
14294
14295 # If no C compiler flags were specified, use CFLAGS.
14296 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14297
14298 # Allow CC to be a program name with arguments.
14299 compiler=$CC
14300
14301
14302 # Check for command to grab the raw symbol name followed by C symbol from nm.
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14304 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14305 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14306 $as_echo_n "(cached) " >&6
14307 else
14308
14309 # These are sane defaults that work on at least a few old systems.
14310 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14311
14312 # Character class describing NM global symbol codes.
14313 symcode='[BCDEGRST]'
14314
14315 # Regexp to match symbols that can be accessed directly from C.
14316 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14317
14318 # Define system-specific variables.
14319 case $host_os in
14320 aix*)
14321 symcode='[BCDT]'
14322 ;;
14323 cygwin* | mingw* | pw32* | cegcc*)
14324 symcode='[ABCDGISTW]'
14325 ;;
14326 hpux*)
14327 if test "$host_cpu" = ia64; then
14328 symcode='[ABCDEGRST]'
14329 fi
14330 ;;
14331 irix* | nonstopux*)
14332 symcode='[BCDEGRST]'
14333 ;;
14334 osf*)
14335 symcode='[BCDEGQRST]'
14336 ;;
14337 solaris*)
14338 symcode='[BDRT]'
14339 ;;
14340 sco3.2v5*)
14341 symcode='[DT]'
14342 ;;
14343 sysv4.2uw2*)
14344 symcode='[DT]'
14345 ;;
14346 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14347 symcode='[ABDT]'
14348 ;;
14349 sysv4)
14350 symcode='[DFNSTU]'
14351 ;;
14352 esac
14353
14354 # If we're using GNU nm, then use its standard symbol codes.
14355 case `$NM -V 2>&1` in
14356 *GNU* | *'with BFD'*)
14357 symcode='[ABCDGIRSTW]' ;;
14358 esac
14359
14360 # Transform an extracted symbol line into a proper C declaration.
14361 # Some systems (esp. on ia64) link data and code symbols differently,
14362 # so use this general approach.
14363 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14364
14365 # Transform an extracted symbol line into symbol name and symbol address
14366 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14367 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'"
14368
14369 # Handle CRLF in mingw tool chain
14370 opt_cr=
14371 case $build_os in
14372 mingw*)
14373 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14374 ;;
14375 esac
14376
14377 # Try without a prefix underscore, then with it.
14378 for ac_symprfx in "" "_"; do
14379
14380 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14381 symxfrm="\\1 $ac_symprfx\\2 \\2"
14382
14383 # Write the raw and C identifiers.
14384 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14385 # Fake it for dumpbin and say T for any non-static function
14386 # and D for any global variable.
14387 # Also find C++ and __fastcall symbols from MSVC++,
14388 # which start with @ or ?.
14389 lt_cv_sys_global_symbol_pipe="$AWK '"\
14390 " {last_section=section; section=\$ 3};"\
14391 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14392 " \$ 0!~/External *\|/{next};"\
14393 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14394 " {if(hide[section]) next};"\
14395 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14396 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14397 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14398 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14399 " ' prfx=^$ac_symprfx"
14400 else
14401 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14402 fi
14403
14404 # Check to see that the pipe works correctly.
14405 pipe_works=no
14406
14407 rm -f conftest*
14408 cat > conftest.$ac_ext <<_LT_EOF
14409 #ifdef __cplusplus
14410 extern "C" {
14411 #endif
14412 char nm_test_var;
14413 void nm_test_func(void);
14414 void nm_test_func(void){}
14415 #ifdef __cplusplus
14416 }
14417 #endif
14418 int main(){nm_test_var='a';nm_test_func();return(0);}
14419 _LT_EOF
14420
14421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14422 (eval $ac_compile) 2>&5
14423 ac_status=$?
14424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14425 test $ac_status = 0; }; then
14426 # Now try to grab the symbols.
14427 nlist=conftest.nm
14428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14429 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14430 ac_status=$?
14431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14432 test $ac_status = 0; } && test -s "$nlist"; then
14433 # Try sorting and uniquifying the output.
14434 if sort "$nlist" | uniq > "$nlist"T; then
14435 mv -f "$nlist"T "$nlist"
14436 else
14437 rm -f "$nlist"T
14438 fi
14439
14440 # Make sure that we snagged all the symbols we need.
14441 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14442 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14443 cat <<_LT_EOF > conftest.$ac_ext
14444 #ifdef __cplusplus
14445 extern "C" {
14446 #endif
14447
14448 _LT_EOF
14449 # Now generate the symbol file.
14450 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14451
14452 cat <<_LT_EOF >> conftest.$ac_ext
14453
14454 /* The mapping between symbol names and symbols. */
14455 const struct {
14456 const char *name;
14457 void *address;
14458 }
14459 lt__PROGRAM__LTX_preloaded_symbols[] =
14460 {
14461 { "@PROGRAM@", (void *) 0 },
14462 _LT_EOF
14463 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14464 cat <<\_LT_EOF >> conftest.$ac_ext
14465 {0, (void *) 0}
14466 };
14467
14468 /* This works around a problem in FreeBSD linker */
14469 #ifdef FREEBSD_WORKAROUND
14470 static const void *lt_preloaded_setup() {
14471 return lt__PROGRAM__LTX_preloaded_symbols;
14472 }
14473 #endif
14474
14475 #ifdef __cplusplus
14476 }
14477 #endif
14478 _LT_EOF
14479 # Now try linking the two files.
14480 mv conftest.$ac_objext conftstm.$ac_objext
14481 lt_save_LIBS="$LIBS"
14482 lt_save_CFLAGS="$CFLAGS"
14483 LIBS="conftstm.$ac_objext"
14484 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14486 (eval $ac_link) 2>&5
14487 ac_status=$?
14488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14489 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14490 pipe_works=yes
14491 fi
14492 LIBS="$lt_save_LIBS"
14493 CFLAGS="$lt_save_CFLAGS"
14494 else
14495 echo "cannot find nm_test_func in $nlist" >&5
14496 fi
14497 else
14498 echo "cannot find nm_test_var in $nlist" >&5
14499 fi
14500 else
14501 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14502 fi
14503 else
14504 echo "$progname: failed program was:" >&5
14505 cat conftest.$ac_ext >&5
14506 fi
14507 rm -rf conftest* conftst*
14508
14509 # Do not use the global_symbol_pipe unless it works.
14510 if test "$pipe_works" = yes; then
14511 break
14512 else
14513 lt_cv_sys_global_symbol_pipe=
14514 fi
14515 done
14516
14517 fi
14518
14519 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14520 lt_cv_sys_global_symbol_to_cdecl=
14521 fi
14522 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14524 $as_echo "failed" >&6; }
14525 else
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14527 $as_echo "ok" >&6; }
14528 fi
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551 # Check whether --enable-libtool-lock was given.
14552 if test "${enable_libtool_lock+set}" = set; then :
14553 enableval=$enable_libtool_lock;
14554 fi
14555
14556 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14557
14558 # Some flags need to be propagated to the compiler or linker for good
14559 # libtool support.
14560 case $host in
14561 ia64-*-hpux*)
14562 # Find out which ABI we are using.
14563 echo 'int i;' > conftest.$ac_ext
14564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14565 (eval $ac_compile) 2>&5
14566 ac_status=$?
14567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14568 test $ac_status = 0; }; then
14569 case `/usr/bin/file conftest.$ac_objext` in
14570 *ELF-32*)
14571 HPUX_IA64_MODE="32"
14572 ;;
14573 *ELF-64*)
14574 HPUX_IA64_MODE="64"
14575 ;;
14576 esac
14577 fi
14578 rm -rf conftest*
14579 ;;
14580 *-*-irix6*)
14581 # Find out which ABI we are using.
14582 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14584 (eval $ac_compile) 2>&5
14585 ac_status=$?
14586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14587 test $ac_status = 0; }; then
14588 if test "$lt_cv_prog_gnu_ld" = yes; then
14589 case `/usr/bin/file conftest.$ac_objext` in
14590 *32-bit*)
14591 LD="${LD-ld} -melf32bsmip"
14592 ;;
14593 *N32*)
14594 LD="${LD-ld} -melf32bmipn32"
14595 ;;
14596 *64-bit*)
14597 LD="${LD-ld} -melf64bmip"
14598 ;;
14599 esac
14600 else
14601 case `/usr/bin/file conftest.$ac_objext` in
14602 *32-bit*)
14603 LD="${LD-ld} -32"
14604 ;;
14605 *N32*)
14606 LD="${LD-ld} -n32"
14607 ;;
14608 *64-bit*)
14609 LD="${LD-ld} -64"
14610 ;;
14611 esac
14612 fi
14613 fi
14614 rm -rf conftest*
14615 ;;
14616
14617 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14618 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14619 # Find out which ABI we are using.
14620 echo 'int i;' > conftest.$ac_ext
14621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14622 (eval $ac_compile) 2>&5
14623 ac_status=$?
14624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14625 test $ac_status = 0; }; then
14626 case `/usr/bin/file conftest.o` in
14627 *32-bit*)
14628 case $host in
14629 x86_64-*kfreebsd*-gnu)
14630 LD="${LD-ld} -m elf_i386_fbsd"
14631 ;;
14632 x86_64-*linux*)
14633 case `/usr/bin/file conftest.o` in
14634 *x86-64*)
14635 LD="${LD-ld} -m elf32_x86_64"
14636 ;;
14637 *)
14638 LD="${LD-ld} -m elf_i386"
14639 ;;
14640 esac
14641 ;;
14642 powerpc64le-*linux*)
14643 LD="${LD-ld} -m elf32lppclinux"
14644 ;;
14645 powerpc64-*linux*)
14646 LD="${LD-ld} -m elf32ppclinux"
14647 ;;
14648 s390x-*linux*)
14649 LD="${LD-ld} -m elf_s390"
14650 ;;
14651 sparc64-*linux*)
14652 LD="${LD-ld} -m elf32_sparc"
14653 ;;
14654 esac
14655 ;;
14656 *64-bit*)
14657 case $host in
14658 x86_64-*kfreebsd*-gnu)
14659 LD="${LD-ld} -m elf_x86_64_fbsd"
14660 ;;
14661 x86_64-*linux*)
14662 LD="${LD-ld} -m elf_x86_64"
14663 ;;
14664 powerpcle-*linux*)
14665 LD="${LD-ld} -m elf64lppc"
14666 ;;
14667 powerpc-*linux*)
14668 LD="${LD-ld} -m elf64ppc"
14669 ;;
14670 s390*-*linux*|s390*-*tpf*)
14671 LD="${LD-ld} -m elf64_s390"
14672 ;;
14673 sparc*-*linux*)
14674 LD="${LD-ld} -m elf64_sparc"
14675 ;;
14676 esac
14677 ;;
14678 esac
14679 fi
14680 rm -rf conftest*
14681 ;;
14682
14683 *-*-sco3.2v5*)
14684 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14685 SAVE_CFLAGS="$CFLAGS"
14686 CFLAGS="$CFLAGS -belf"
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14688 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14689 if ${lt_cv_cc_needs_belf+:} false; then :
14690 $as_echo_n "(cached) " >&6
14691 else
14692 ac_ext=c
14693 ac_cpp='$CPP $CPPFLAGS'
14694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14697
14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699 /* end confdefs.h. */
14700
14701 int
14702 main ()
14703 {
14704
14705 ;
14706 return 0;
14707 }
14708 _ACEOF
14709 if ac_fn_c_try_link "$LINENO"; then :
14710 lt_cv_cc_needs_belf=yes
14711 else
14712 lt_cv_cc_needs_belf=no
14713 fi
14714 rm -f core conftest.err conftest.$ac_objext \
14715 conftest$ac_exeext conftest.$ac_ext
14716 ac_ext=c
14717 ac_cpp='$CPP $CPPFLAGS'
14718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14721
14722 fi
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14724 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14725 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14726 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14727 CFLAGS="$SAVE_CFLAGS"
14728 fi
14729 ;;
14730 sparc*-*solaris*)
14731 # Find out which ABI we are using.
14732 echo 'int i;' > conftest.$ac_ext
14733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14734 (eval $ac_compile) 2>&5
14735 ac_status=$?
14736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14737 test $ac_status = 0; }; then
14738 case `/usr/bin/file conftest.o` in
14739 *64-bit*)
14740 case $lt_cv_prog_gnu_ld in
14741 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14742 *)
14743 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14744 LD="${LD-ld} -64"
14745 fi
14746 ;;
14747 esac
14748 ;;
14749 esac
14750 fi
14751 rm -rf conftest*
14752 ;;
14753 esac
14754
14755 need_locks="$enable_libtool_lock"
14756
14757
14758 case $host_os in
14759 rhapsody* | darwin*)
14760 if test -n "$ac_tool_prefix"; then
14761 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14762 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14764 $as_echo_n "checking for $ac_word... " >&6; }
14765 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14766 $as_echo_n "(cached) " >&6
14767 else
14768 if test -n "$DSYMUTIL"; then
14769 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14770 else
14771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14772 for as_dir in $PATH
14773 do
14774 IFS=$as_save_IFS
14775 test -z "$as_dir" && as_dir=.
14776 for ac_exec_ext in '' $ac_executable_extensions; do
14777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14778 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14780 break 2
14781 fi
14782 done
14783 done
14784 IFS=$as_save_IFS
14785
14786 fi
14787 fi
14788 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14789 if test -n "$DSYMUTIL"; then
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14791 $as_echo "$DSYMUTIL" >&6; }
14792 else
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14794 $as_echo "no" >&6; }
14795 fi
14796
14797
14798 fi
14799 if test -z "$ac_cv_prog_DSYMUTIL"; then
14800 ac_ct_DSYMUTIL=$DSYMUTIL
14801 # Extract the first word of "dsymutil", so it can be a program name with args.
14802 set dummy dsymutil; ac_word=$2
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14804 $as_echo_n "checking for $ac_word... " >&6; }
14805 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14806 $as_echo_n "(cached) " >&6
14807 else
14808 if test -n "$ac_ct_DSYMUTIL"; then
14809 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14810 else
14811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14812 for as_dir in $PATH
14813 do
14814 IFS=$as_save_IFS
14815 test -z "$as_dir" && as_dir=.
14816 for ac_exec_ext in '' $ac_executable_extensions; do
14817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14818 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14820 break 2
14821 fi
14822 done
14823 done
14824 IFS=$as_save_IFS
14825
14826 fi
14827 fi
14828 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14829 if test -n "$ac_ct_DSYMUTIL"; then
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14831 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14832 else
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14834 $as_echo "no" >&6; }
14835 fi
14836
14837 if test "x$ac_ct_DSYMUTIL" = x; then
14838 DSYMUTIL=":"
14839 else
14840 case $cross_compiling:$ac_tool_warned in
14841 yes:)
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14844 ac_tool_warned=yes ;;
14845 esac
14846 DSYMUTIL=$ac_ct_DSYMUTIL
14847 fi
14848 else
14849 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14850 fi
14851
14852 if test -n "$ac_tool_prefix"; then
14853 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14854 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14856 $as_echo_n "checking for $ac_word... " >&6; }
14857 if ${ac_cv_prog_NMEDIT+:} false; then :
14858 $as_echo_n "(cached) " >&6
14859 else
14860 if test -n "$NMEDIT"; then
14861 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14862 else
14863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14864 for as_dir in $PATH
14865 do
14866 IFS=$as_save_IFS
14867 test -z "$as_dir" && as_dir=.
14868 for ac_exec_ext in '' $ac_executable_extensions; do
14869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14870 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14872 break 2
14873 fi
14874 done
14875 done
14876 IFS=$as_save_IFS
14877
14878 fi
14879 fi
14880 NMEDIT=$ac_cv_prog_NMEDIT
14881 if test -n "$NMEDIT"; then
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14883 $as_echo "$NMEDIT" >&6; }
14884 else
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14886 $as_echo "no" >&6; }
14887 fi
14888
14889
14890 fi
14891 if test -z "$ac_cv_prog_NMEDIT"; then
14892 ac_ct_NMEDIT=$NMEDIT
14893 # Extract the first word of "nmedit", so it can be a program name with args.
14894 set dummy nmedit; ac_word=$2
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14896 $as_echo_n "checking for $ac_word... " >&6; }
14897 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14898 $as_echo_n "(cached) " >&6
14899 else
14900 if test -n "$ac_ct_NMEDIT"; then
14901 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14902 else
14903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14904 for as_dir in $PATH
14905 do
14906 IFS=$as_save_IFS
14907 test -z "$as_dir" && as_dir=.
14908 for ac_exec_ext in '' $ac_executable_extensions; do
14909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14910 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14912 break 2
14913 fi
14914 done
14915 done
14916 IFS=$as_save_IFS
14917
14918 fi
14919 fi
14920 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14921 if test -n "$ac_ct_NMEDIT"; then
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14923 $as_echo "$ac_ct_NMEDIT" >&6; }
14924 else
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14926 $as_echo "no" >&6; }
14927 fi
14928
14929 if test "x$ac_ct_NMEDIT" = x; then
14930 NMEDIT=":"
14931 else
14932 case $cross_compiling:$ac_tool_warned in
14933 yes:)
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14936 ac_tool_warned=yes ;;
14937 esac
14938 NMEDIT=$ac_ct_NMEDIT
14939 fi
14940 else
14941 NMEDIT="$ac_cv_prog_NMEDIT"
14942 fi
14943
14944 if test -n "$ac_tool_prefix"; then
14945 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14946 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14948 $as_echo_n "checking for $ac_word... " >&6; }
14949 if ${ac_cv_prog_LIPO+:} false; then :
14950 $as_echo_n "(cached) " >&6
14951 else
14952 if test -n "$LIPO"; then
14953 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14954 else
14955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14956 for as_dir in $PATH
14957 do
14958 IFS=$as_save_IFS
14959 test -z "$as_dir" && as_dir=.
14960 for ac_exec_ext in '' $ac_executable_extensions; do
14961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14962 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14964 break 2
14965 fi
14966 done
14967 done
14968 IFS=$as_save_IFS
14969
14970 fi
14971 fi
14972 LIPO=$ac_cv_prog_LIPO
14973 if test -n "$LIPO"; then
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14975 $as_echo "$LIPO" >&6; }
14976 else
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14978 $as_echo "no" >&6; }
14979 fi
14980
14981
14982 fi
14983 if test -z "$ac_cv_prog_LIPO"; then
14984 ac_ct_LIPO=$LIPO
14985 # Extract the first word of "lipo", so it can be a program name with args.
14986 set dummy lipo; ac_word=$2
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14988 $as_echo_n "checking for $ac_word... " >&6; }
14989 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14990 $as_echo_n "(cached) " >&6
14991 else
14992 if test -n "$ac_ct_LIPO"; then
14993 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14994 else
14995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14996 for as_dir in $PATH
14997 do
14998 IFS=$as_save_IFS
14999 test -z "$as_dir" && as_dir=.
15000 for ac_exec_ext in '' $ac_executable_extensions; do
15001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15002 ac_cv_prog_ac_ct_LIPO="lipo"
15003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15004 break 2
15005 fi
15006 done
15007 done
15008 IFS=$as_save_IFS
15009
15010 fi
15011 fi
15012 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15013 if test -n "$ac_ct_LIPO"; then
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15015 $as_echo "$ac_ct_LIPO" >&6; }
15016 else
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15018 $as_echo "no" >&6; }
15019 fi
15020
15021 if test "x$ac_ct_LIPO" = x; then
15022 LIPO=":"
15023 else
15024 case $cross_compiling:$ac_tool_warned in
15025 yes:)
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15028 ac_tool_warned=yes ;;
15029 esac
15030 LIPO=$ac_ct_LIPO
15031 fi
15032 else
15033 LIPO="$ac_cv_prog_LIPO"
15034 fi
15035
15036 if test -n "$ac_tool_prefix"; then
15037 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15038 set dummy ${ac_tool_prefix}otool; ac_word=$2
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15040 $as_echo_n "checking for $ac_word... " >&6; }
15041 if ${ac_cv_prog_OTOOL+:} false; then :
15042 $as_echo_n "(cached) " >&6
15043 else
15044 if test -n "$OTOOL"; then
15045 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15046 else
15047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15048 for as_dir in $PATH
15049 do
15050 IFS=$as_save_IFS
15051 test -z "$as_dir" && as_dir=.
15052 for ac_exec_ext in '' $ac_executable_extensions; do
15053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15054 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15056 break 2
15057 fi
15058 done
15059 done
15060 IFS=$as_save_IFS
15061
15062 fi
15063 fi
15064 OTOOL=$ac_cv_prog_OTOOL
15065 if test -n "$OTOOL"; then
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15067 $as_echo "$OTOOL" >&6; }
15068 else
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15070 $as_echo "no" >&6; }
15071 fi
15072
15073
15074 fi
15075 if test -z "$ac_cv_prog_OTOOL"; then
15076 ac_ct_OTOOL=$OTOOL
15077 # Extract the first word of "otool", so it can be a program name with args.
15078 set dummy otool; ac_word=$2
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15080 $as_echo_n "checking for $ac_word... " >&6; }
15081 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15082 $as_echo_n "(cached) " >&6
15083 else
15084 if test -n "$ac_ct_OTOOL"; then
15085 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15086 else
15087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15088 for as_dir in $PATH
15089 do
15090 IFS=$as_save_IFS
15091 test -z "$as_dir" && as_dir=.
15092 for ac_exec_ext in '' $ac_executable_extensions; do
15093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15094 ac_cv_prog_ac_ct_OTOOL="otool"
15095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15096 break 2
15097 fi
15098 done
15099 done
15100 IFS=$as_save_IFS
15101
15102 fi
15103 fi
15104 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15105 if test -n "$ac_ct_OTOOL"; then
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15107 $as_echo "$ac_ct_OTOOL" >&6; }
15108 else
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15110 $as_echo "no" >&6; }
15111 fi
15112
15113 if test "x$ac_ct_OTOOL" = x; then
15114 OTOOL=":"
15115 else
15116 case $cross_compiling:$ac_tool_warned in
15117 yes:)
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15120 ac_tool_warned=yes ;;
15121 esac
15122 OTOOL=$ac_ct_OTOOL
15123 fi
15124 else
15125 OTOOL="$ac_cv_prog_OTOOL"
15126 fi
15127
15128 if test -n "$ac_tool_prefix"; then
15129 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15130 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15132 $as_echo_n "checking for $ac_word... " >&6; }
15133 if ${ac_cv_prog_OTOOL64+:} false; then :
15134 $as_echo_n "(cached) " >&6
15135 else
15136 if test -n "$OTOOL64"; then
15137 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15138 else
15139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15140 for as_dir in $PATH
15141 do
15142 IFS=$as_save_IFS
15143 test -z "$as_dir" && as_dir=.
15144 for ac_exec_ext in '' $ac_executable_extensions; do
15145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15146 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15148 break 2
15149 fi
15150 done
15151 done
15152 IFS=$as_save_IFS
15153
15154 fi
15155 fi
15156 OTOOL64=$ac_cv_prog_OTOOL64
15157 if test -n "$OTOOL64"; then
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15159 $as_echo "$OTOOL64" >&6; }
15160 else
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15162 $as_echo "no" >&6; }
15163 fi
15164
15165
15166 fi
15167 if test -z "$ac_cv_prog_OTOOL64"; then
15168 ac_ct_OTOOL64=$OTOOL64
15169 # Extract the first word of "otool64", so it can be a program name with args.
15170 set dummy otool64; ac_word=$2
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15172 $as_echo_n "checking for $ac_word... " >&6; }
15173 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15174 $as_echo_n "(cached) " >&6
15175 else
15176 if test -n "$ac_ct_OTOOL64"; then
15177 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15178 else
15179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15180 for as_dir in $PATH
15181 do
15182 IFS=$as_save_IFS
15183 test -z "$as_dir" && as_dir=.
15184 for ac_exec_ext in '' $ac_executable_extensions; do
15185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15186 ac_cv_prog_ac_ct_OTOOL64="otool64"
15187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15188 break 2
15189 fi
15190 done
15191 done
15192 IFS=$as_save_IFS
15193
15194 fi
15195 fi
15196 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15197 if test -n "$ac_ct_OTOOL64"; then
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15199 $as_echo "$ac_ct_OTOOL64" >&6; }
15200 else
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15202 $as_echo "no" >&6; }
15203 fi
15204
15205 if test "x$ac_ct_OTOOL64" = x; then
15206 OTOOL64=":"
15207 else
15208 case $cross_compiling:$ac_tool_warned in
15209 yes:)
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15212 ac_tool_warned=yes ;;
15213 esac
15214 OTOOL64=$ac_ct_OTOOL64
15215 fi
15216 else
15217 OTOOL64="$ac_cv_prog_OTOOL64"
15218 fi
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15247 $as_echo_n "checking for -single_module linker flag... " >&6; }
15248 if ${lt_cv_apple_cc_single_mod+:} false; then :
15249 $as_echo_n "(cached) " >&6
15250 else
15251 lt_cv_apple_cc_single_mod=no
15252 if test -z "${LT_MULTI_MODULE}"; then
15253 # By default we will add the -single_module flag. You can override
15254 # by either setting the environment variable LT_MULTI_MODULE
15255 # non-empty at configure time, or by adding -multi_module to the
15256 # link flags.
15257 rm -rf libconftest.dylib*
15258 echo "int foo(void){return 1;}" > conftest.c
15259 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15260 -dynamiclib -Wl,-single_module conftest.c" >&5
15261 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15262 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15263 _lt_result=$?
15264 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15265 lt_cv_apple_cc_single_mod=yes
15266 else
15267 cat conftest.err >&5
15268 fi
15269 rm -rf libconftest.dylib*
15270 rm -f conftest.*
15271 fi
15272 fi
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15274 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15276 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15277 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15278 $as_echo_n "(cached) " >&6
15279 else
15280 lt_cv_ld_exported_symbols_list=no
15281 save_LDFLAGS=$LDFLAGS
15282 echo "_main" > conftest.sym
15283 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285 /* end confdefs.h. */
15286
15287 int
15288 main ()
15289 {
15290
15291 ;
15292 return 0;
15293 }
15294 _ACEOF
15295 if ac_fn_c_try_link "$LINENO"; then :
15296 lt_cv_ld_exported_symbols_list=yes
15297 else
15298 lt_cv_ld_exported_symbols_list=no
15299 fi
15300 rm -f core conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
15302 LDFLAGS="$save_LDFLAGS"
15303
15304 fi
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15306 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15308 $as_echo_n "checking for -force_load linker flag... " >&6; }
15309 if ${lt_cv_ld_force_load+:} false; then :
15310 $as_echo_n "(cached) " >&6
15311 else
15312 lt_cv_ld_force_load=no
15313 cat > conftest.c << _LT_EOF
15314 int forced_loaded() { return 2;}
15315 _LT_EOF
15316 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15317 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15318 echo "$AR cru libconftest.a conftest.o" >&5
15319 $AR cru libconftest.a conftest.o 2>&5
15320 cat > conftest.c << _LT_EOF
15321 int main() { return 0;}
15322 _LT_EOF
15323 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15324 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15325 _lt_result=$?
15326 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15327 lt_cv_ld_force_load=yes
15328 else
15329 cat conftest.err >&5
15330 fi
15331 rm -f conftest.err libconftest.a conftest conftest.c
15332 rm -rf conftest.dSYM
15333
15334 fi
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15336 $as_echo "$lt_cv_ld_force_load" >&6; }
15337 case $host_os in
15338 rhapsody* | darwin1.[012])
15339 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15340 darwin1.*)
15341 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15342 darwin*) # darwin 5.x on
15343 # if running on 10.5 or later, the deployment target defaults
15344 # to the OS version, if on x86, and 10.4, the deployment
15345 # target defaults to 10.4. Don't you love it?
15346 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15347 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15348 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15349 10.[012][,.]*)
15350 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15351 10.*)
15352 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15353 esac
15354 ;;
15355 esac
15356 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15357 _lt_dar_single_mod='$single_module'
15358 fi
15359 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15360 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15361 else
15362 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15363 fi
15364 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15365 _lt_dsymutil='~$DSYMUTIL $lib || :'
15366 else
15367 _lt_dsymutil=
15368 fi
15369 ;;
15370 esac
15371
15372
15373 for ac_header in dlfcn.h
15374 do :
15375 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15376 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15377 cat >>confdefs.h <<_ACEOF
15378 #define HAVE_DLFCN_H 1
15379 _ACEOF
15380
15381 fi
15382 done
15383
15384
15385
15386
15387
15388 # Set options
15389
15390
15391
15392 enable_dlopen=no
15393
15394
15395 enable_win32_dll=no
15396
15397
15398 # Check whether --enable-shared was given.
15399 if test "${enable_shared+set}" = set; then :
15400 enableval=$enable_shared; p=${PACKAGE-default}
15401 case $enableval in
15402 yes) enable_shared=yes ;;
15403 no) enable_shared=no ;;
15404 *)
15405 enable_shared=no
15406 # Look at the argument we got. We use all the common list separators.
15407 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15408 for pkg in $enableval; do
15409 IFS="$lt_save_ifs"
15410 if test "X$pkg" = "X$p"; then
15411 enable_shared=yes
15412 fi
15413 done
15414 IFS="$lt_save_ifs"
15415 ;;
15416 esac
15417 else
15418 enable_shared=yes
15419 fi
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429 # Check whether --enable-static was given.
15430 if test "${enable_static+set}" = set; then :
15431 enableval=$enable_static; p=${PACKAGE-default}
15432 case $enableval in
15433 yes) enable_static=yes ;;
15434 no) enable_static=no ;;
15435 *)
15436 enable_static=no
15437 # Look at the argument we got. We use all the common list separators.
15438 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15439 for pkg in $enableval; do
15440 IFS="$lt_save_ifs"
15441 if test "X$pkg" = "X$p"; then
15442 enable_static=yes
15443 fi
15444 done
15445 IFS="$lt_save_ifs"
15446 ;;
15447 esac
15448 else
15449 enable_static=yes
15450 fi
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461 # Check whether --with-pic was given.
15462 if test "${with_pic+set}" = set; then :
15463 withval=$with_pic; pic_mode="$withval"
15464 else
15465 pic_mode=default
15466 fi
15467
15468
15469 test -z "$pic_mode" && pic_mode=default
15470
15471
15472
15473
15474
15475
15476
15477 # Check whether --enable-fast-install was given.
15478 if test "${enable_fast_install+set}" = set; then :
15479 enableval=$enable_fast_install; p=${PACKAGE-default}
15480 case $enableval in
15481 yes) enable_fast_install=yes ;;
15482 no) enable_fast_install=no ;;
15483 *)
15484 enable_fast_install=no
15485 # Look at the argument we got. We use all the common list separators.
15486 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15487 for pkg in $enableval; do
15488 IFS="$lt_save_ifs"
15489 if test "X$pkg" = "X$p"; then
15490 enable_fast_install=yes
15491 fi
15492 done
15493 IFS="$lt_save_ifs"
15494 ;;
15495 esac
15496 else
15497 enable_fast_install=yes
15498 fi
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510 # This can be used to rebuild libtool when needed
15511 LIBTOOL_DEPS="$ltmain"
15512
15513 # Always use our own libtool.
15514 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541 test -z "$LN_S" && LN_S="ln -s"
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556 if test -n "${ZSH_VERSION+set}" ; then
15557 setopt NO_GLOB_SUBST
15558 fi
15559
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15561 $as_echo_n "checking for objdir... " >&6; }
15562 if ${lt_cv_objdir+:} false; then :
15563 $as_echo_n "(cached) " >&6
15564 else
15565 rm -f .libs 2>/dev/null
15566 mkdir .libs 2>/dev/null
15567 if test -d .libs; then
15568 lt_cv_objdir=.libs
15569 else
15570 # MS-DOS does not allow filenames that begin with a dot.
15571 lt_cv_objdir=_libs
15572 fi
15573 rmdir .libs 2>/dev/null
15574 fi
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15576 $as_echo "$lt_cv_objdir" >&6; }
15577 objdir=$lt_cv_objdir
15578
15579
15580
15581
15582
15583 cat >>confdefs.h <<_ACEOF
15584 #define LT_OBJDIR "$lt_cv_objdir/"
15585 _ACEOF
15586
15587
15588
15589
15590 case $host_os in
15591 aix3*)
15592 # AIX sometimes has problems with the GCC collect2 program. For some
15593 # reason, if we set the COLLECT_NAMES environment variable, the problems
15594 # vanish in a puff of smoke.
15595 if test "X${COLLECT_NAMES+set}" != Xset; then
15596 COLLECT_NAMES=
15597 export COLLECT_NAMES
15598 fi
15599 ;;
15600 esac
15601
15602 # Global variables:
15603 ofile=libtool
15604 can_build_shared=yes
15605
15606 # All known linkers require a `.a' archive for static linking (except MSVC,
15607 # which needs '.lib').
15608 libext=a
15609
15610 with_gnu_ld="$lt_cv_prog_gnu_ld"
15611
15612 old_CC="$CC"
15613 old_CFLAGS="$CFLAGS"
15614
15615 # Set sane defaults for various variables
15616 test -z "$CC" && CC=cc
15617 test -z "$LTCC" && LTCC=$CC
15618 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15619 test -z "$LD" && LD=ld
15620 test -z "$ac_objext" && ac_objext=o
15621
15622 for cc_temp in $compiler""; do
15623 case $cc_temp in
15624 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15625 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15626 \-*) ;;
15627 *) break;;
15628 esac
15629 done
15630 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15631
15632
15633 # Only perform the check for file, if the check method requires it
15634 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15635 case $deplibs_check_method in
15636 file_magic*)
15637 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15639 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15640 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15641 $as_echo_n "(cached) " >&6
15642 else
15643 case $MAGIC_CMD in
15644 [\\/*] | ?:[\\/]*)
15645 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15646 ;;
15647 *)
15648 lt_save_MAGIC_CMD="$MAGIC_CMD"
15649 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15650 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15651 for ac_dir in $ac_dummy; do
15652 IFS="$lt_save_ifs"
15653 test -z "$ac_dir" && ac_dir=.
15654 if test -f $ac_dir/${ac_tool_prefix}file; then
15655 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15656 if test -n "$file_magic_test_file"; then
15657 case $deplibs_check_method in
15658 "file_magic "*)
15659 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15661 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15662 $EGREP "$file_magic_regex" > /dev/null; then
15663 :
15664 else
15665 cat <<_LT_EOF 1>&2
15666
15667 *** Warning: the command libtool uses to detect shared libraries,
15668 *** $file_magic_cmd, produces output that libtool cannot recognize.
15669 *** The result is that libtool may fail to recognize shared libraries
15670 *** as such. This will affect the creation of libtool libraries that
15671 *** depend on shared libraries, but programs linked with such libtool
15672 *** libraries will work regardless of this problem. Nevertheless, you
15673 *** may want to report the problem to your system manager and/or to
15674 *** bug-libtool@gnu.org
15675
15676 _LT_EOF
15677 fi ;;
15678 esac
15679 fi
15680 break
15681 fi
15682 done
15683 IFS="$lt_save_ifs"
15684 MAGIC_CMD="$lt_save_MAGIC_CMD"
15685 ;;
15686 esac
15687 fi
15688
15689 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15690 if test -n "$MAGIC_CMD"; then
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15692 $as_echo "$MAGIC_CMD" >&6; }
15693 else
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15695 $as_echo "no" >&6; }
15696 fi
15697
15698
15699
15700
15701
15702 if test -z "$lt_cv_path_MAGIC_CMD"; then
15703 if test -n "$ac_tool_prefix"; then
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15705 $as_echo_n "checking for file... " >&6; }
15706 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15707 $as_echo_n "(cached) " >&6
15708 else
15709 case $MAGIC_CMD in
15710 [\\/*] | ?:[\\/]*)
15711 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15712 ;;
15713 *)
15714 lt_save_MAGIC_CMD="$MAGIC_CMD"
15715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15716 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15717 for ac_dir in $ac_dummy; do
15718 IFS="$lt_save_ifs"
15719 test -z "$ac_dir" && ac_dir=.
15720 if test -f $ac_dir/file; then
15721 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15722 if test -n "$file_magic_test_file"; then
15723 case $deplibs_check_method in
15724 "file_magic "*)
15725 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15727 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15728 $EGREP "$file_magic_regex" > /dev/null; then
15729 :
15730 else
15731 cat <<_LT_EOF 1>&2
15732
15733 *** Warning: the command libtool uses to detect shared libraries,
15734 *** $file_magic_cmd, produces output that libtool cannot recognize.
15735 *** The result is that libtool may fail to recognize shared libraries
15736 *** as such. This will affect the creation of libtool libraries that
15737 *** depend on shared libraries, but programs linked with such libtool
15738 *** libraries will work regardless of this problem. Nevertheless, you
15739 *** may want to report the problem to your system manager and/or to
15740 *** bug-libtool@gnu.org
15741
15742 _LT_EOF
15743 fi ;;
15744 esac
15745 fi
15746 break
15747 fi
15748 done
15749 IFS="$lt_save_ifs"
15750 MAGIC_CMD="$lt_save_MAGIC_CMD"
15751 ;;
15752 esac
15753 fi
15754
15755 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15756 if test -n "$MAGIC_CMD"; then
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15758 $as_echo "$MAGIC_CMD" >&6; }
15759 else
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15761 $as_echo "no" >&6; }
15762 fi
15763
15764
15765 else
15766 MAGIC_CMD=:
15767 fi
15768 fi
15769
15770 fi
15771 ;;
15772 esac
15773
15774 # Use C for the default configuration in the libtool script
15775
15776 lt_save_CC="$CC"
15777 ac_ext=c
15778 ac_cpp='$CPP $CPPFLAGS'
15779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15782
15783
15784 # Source file extension for C test sources.
15785 ac_ext=c
15786
15787 # Object file extension for compiled C test sources.
15788 objext=o
15789 objext=$objext
15790
15791 # Code to be used in simple compile tests
15792 lt_simple_compile_test_code="int some_variable = 0;"
15793
15794 # Code to be used in simple link tests
15795 lt_simple_link_test_code='int main(){return(0);}'
15796
15797
15798
15799
15800
15801
15802
15803 # If no C compiler was specified, use CC.
15804 LTCC=${LTCC-"$CC"}
15805
15806 # If no C compiler flags were specified, use CFLAGS.
15807 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15808
15809 # Allow CC to be a program name with arguments.
15810 compiler=$CC
15811
15812 # Save the default compiler, since it gets overwritten when the other
15813 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15814 compiler_DEFAULT=$CC
15815
15816 # save warnings/boilerplate of simple test code
15817 ac_outfile=conftest.$ac_objext
15818 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15819 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15820 _lt_compiler_boilerplate=`cat conftest.err`
15821 $RM conftest*
15822
15823 ac_outfile=conftest.$ac_objext
15824 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15825 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15826 _lt_linker_boilerplate=`cat conftest.err`
15827 $RM -r conftest*
15828
15829
15830 ## CAVEAT EMPTOR:
15831 ## There is no encapsulation within the following macros, do not change
15832 ## the running order or otherwise move them around unless you know exactly
15833 ## what you are doing...
15834 if test -n "$compiler"; then
15835
15836 lt_prog_compiler_no_builtin_flag=
15837
15838 if test "$GCC" = yes; then
15839 case $cc_basename in
15840 nvcc*)
15841 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15842 *)
15843 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15844 esac
15845
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15847 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15848 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15849 $as_echo_n "(cached) " >&6
15850 else
15851 lt_cv_prog_compiler_rtti_exceptions=no
15852 ac_outfile=conftest.$ac_objext
15853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15854 lt_compiler_flag="-fno-rtti -fno-exceptions"
15855 # Insert the option either (1) after the last *FLAGS variable, or
15856 # (2) before a word containing "conftest.", or (3) at the end.
15857 # Note that $ac_compile itself does not contain backslashes and begins
15858 # with a dollar sign (not a hyphen), so the echo should work correctly.
15859 # The option is referenced via a variable to avoid confusing sed.
15860 lt_compile=`echo "$ac_compile" | $SED \
15861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15863 -e 's:$: $lt_compiler_flag:'`
15864 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15865 (eval "$lt_compile" 2>conftest.err)
15866 ac_status=$?
15867 cat conftest.err >&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 if (exit $ac_status) && test -s "$ac_outfile"; then
15870 # The compiler can only warn and ignore the option if not recognized
15871 # So say no if there are warnings other than the usual output.
15872 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15874 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15875 lt_cv_prog_compiler_rtti_exceptions=yes
15876 fi
15877 fi
15878 $RM conftest*
15879
15880 fi
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15882 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15883
15884 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15885 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15886 else
15887 :
15888 fi
15889
15890 fi
15891
15892
15893
15894
15895
15896
15897 lt_prog_compiler_wl=
15898 lt_prog_compiler_pic=
15899 lt_prog_compiler_static=
15900
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15902 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15903
15904 if test "$GCC" = yes; then
15905 lt_prog_compiler_wl='-Wl,'
15906 lt_prog_compiler_static='-static'
15907
15908 case $host_os in
15909 aix*)
15910 # All AIX code is PIC.
15911 if test "$host_cpu" = ia64; then
15912 # AIX 5 now supports IA64 processor
15913 lt_prog_compiler_static='-Bstatic'
15914 fi
15915 lt_prog_compiler_pic='-fPIC'
15916 ;;
15917
15918 amigaos*)
15919 case $host_cpu in
15920 powerpc)
15921 # see comment about AmigaOS4 .so support
15922 lt_prog_compiler_pic='-fPIC'
15923 ;;
15924 m68k)
15925 # FIXME: we need at least 68020 code to build shared libraries, but
15926 # adding the `-m68020' flag to GCC prevents building anything better,
15927 # like `-m68040'.
15928 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15929 ;;
15930 esac
15931 ;;
15932
15933 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15934 # PIC is the default for these OSes.
15935 ;;
15936
15937 mingw* | cygwin* | pw32* | os2* | cegcc*)
15938 # This hack is so that the source file can tell whether it is being
15939 # built for inclusion in a dll (and should export symbols for example).
15940 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15941 # (--disable-auto-import) libraries
15942 lt_prog_compiler_pic='-DDLL_EXPORT'
15943 ;;
15944
15945 darwin* | rhapsody*)
15946 # PIC is the default on this platform
15947 # Common symbols not allowed in MH_DYLIB files
15948 lt_prog_compiler_pic='-fno-common'
15949 ;;
15950
15951 haiku*)
15952 # PIC is the default for Haiku.
15953 # The "-static" flag exists, but is broken.
15954 lt_prog_compiler_static=
15955 ;;
15956
15957 hpux*)
15958 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15959 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15960 # sets the default TLS model and affects inlining.
15961 case $host_cpu in
15962 hppa*64*)
15963 # +Z the default
15964 ;;
15965 *)
15966 lt_prog_compiler_pic='-fPIC'
15967 ;;
15968 esac
15969 ;;
15970
15971 interix[3-9]*)
15972 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15973 # Instead, we relocate shared libraries at runtime.
15974 ;;
15975
15976 msdosdjgpp*)
15977 # Just because we use GCC doesn't mean we suddenly get shared libraries
15978 # on systems that don't support them.
15979 lt_prog_compiler_can_build_shared=no
15980 enable_shared=no
15981 ;;
15982
15983 *nto* | *qnx*)
15984 # QNX uses GNU C++, but need to define -shared option too, otherwise
15985 # it will coredump.
15986 lt_prog_compiler_pic='-fPIC -shared'
15987 ;;
15988
15989 sysv4*MP*)
15990 if test -d /usr/nec; then
15991 lt_prog_compiler_pic=-Kconform_pic
15992 fi
15993 ;;
15994
15995 *)
15996 lt_prog_compiler_pic='-fPIC'
15997 ;;
15998 esac
15999
16000 case $cc_basename in
16001 nvcc*) # Cuda Compiler Driver 2.2
16002 lt_prog_compiler_wl='-Xlinker '
16003 lt_prog_compiler_pic='-Xcompiler -fPIC'
16004 ;;
16005 esac
16006 else
16007 # PORTME Check for flag to pass linker flags through the system compiler.
16008 case $host_os in
16009 aix*)
16010 lt_prog_compiler_wl='-Wl,'
16011 if test "$host_cpu" = ia64; then
16012 # AIX 5 now supports IA64 processor
16013 lt_prog_compiler_static='-Bstatic'
16014 else
16015 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16016 fi
16017 ;;
16018
16019 mingw* | cygwin* | pw32* | os2* | cegcc*)
16020 # This hack is so that the source file can tell whether it is being
16021 # built for inclusion in a dll (and should export symbols for example).
16022 lt_prog_compiler_pic='-DDLL_EXPORT'
16023 ;;
16024
16025 hpux9* | hpux10* | hpux11*)
16026 lt_prog_compiler_wl='-Wl,'
16027 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16028 # not for PA HP-UX.
16029 case $host_cpu in
16030 hppa*64*|ia64*)
16031 # +Z the default
16032 ;;
16033 *)
16034 lt_prog_compiler_pic='+Z'
16035 ;;
16036 esac
16037 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16038 lt_prog_compiler_static='${wl}-a ${wl}archive'
16039 ;;
16040
16041 irix5* | irix6* | nonstopux*)
16042 lt_prog_compiler_wl='-Wl,'
16043 # PIC (with -KPIC) is the default.
16044 lt_prog_compiler_static='-non_shared'
16045 ;;
16046
16047 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16048 case $cc_basename in
16049 # old Intel for x86_64 which still supported -KPIC.
16050 ecc*)
16051 lt_prog_compiler_wl='-Wl,'
16052 lt_prog_compiler_pic='-KPIC'
16053 lt_prog_compiler_static='-static'
16054 ;;
16055 # icc used to be incompatible with GCC.
16056 # ICC 10 doesn't accept -KPIC any more.
16057 icc* | ifort*)
16058 lt_prog_compiler_wl='-Wl,'
16059 lt_prog_compiler_pic='-fPIC'
16060 lt_prog_compiler_static='-static'
16061 ;;
16062 # Lahey Fortran 8.1.
16063 lf95*)
16064 lt_prog_compiler_wl='-Wl,'
16065 lt_prog_compiler_pic='--shared'
16066 lt_prog_compiler_static='--static'
16067 ;;
16068 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16069 # Portland Group compilers (*not* the Pentium gcc compiler,
16070 # which looks to be a dead project)
16071 lt_prog_compiler_wl='-Wl,'
16072 lt_prog_compiler_pic='-fpic'
16073 lt_prog_compiler_static='-Bstatic'
16074 ;;
16075 ccc*)
16076 lt_prog_compiler_wl='-Wl,'
16077 # All Alpha code is PIC.
16078 lt_prog_compiler_static='-non_shared'
16079 ;;
16080 xl* | bgxl* | bgf* | mpixl*)
16081 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16082 lt_prog_compiler_wl='-Wl,'
16083 lt_prog_compiler_pic='-qpic'
16084 lt_prog_compiler_static='-qstaticlink'
16085 ;;
16086 *)
16087 case `$CC -V 2>&1 | sed 5q` in
16088 *Sun\ F* | *Sun*Fortran*)
16089 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16090 lt_prog_compiler_pic='-KPIC'
16091 lt_prog_compiler_static='-Bstatic'
16092 lt_prog_compiler_wl=''
16093 ;;
16094 *Sun\ C*)
16095 # Sun C 5.9
16096 lt_prog_compiler_pic='-KPIC'
16097 lt_prog_compiler_static='-Bstatic'
16098 lt_prog_compiler_wl='-Wl,'
16099 ;;
16100 esac
16101 ;;
16102 esac
16103 ;;
16104
16105 newsos6)
16106 lt_prog_compiler_pic='-KPIC'
16107 lt_prog_compiler_static='-Bstatic'
16108 ;;
16109
16110 *nto* | *qnx*)
16111 # QNX uses GNU C++, but need to define -shared option too, otherwise
16112 # it will coredump.
16113 lt_prog_compiler_pic='-fPIC -shared'
16114 ;;
16115
16116 osf3* | osf4* | osf5*)
16117 lt_prog_compiler_wl='-Wl,'
16118 # All OSF/1 code is PIC.
16119 lt_prog_compiler_static='-non_shared'
16120 ;;
16121
16122 rdos*)
16123 lt_prog_compiler_static='-non_shared'
16124 ;;
16125
16126 solaris*)
16127 lt_prog_compiler_pic='-KPIC'
16128 lt_prog_compiler_static='-Bstatic'
16129 case $cc_basename in
16130 f77* | f90* | f95*)
16131 lt_prog_compiler_wl='-Qoption ld ';;
16132 *)
16133 lt_prog_compiler_wl='-Wl,';;
16134 esac
16135 ;;
16136
16137 sunos4*)
16138 lt_prog_compiler_wl='-Qoption ld '
16139 lt_prog_compiler_pic='-PIC'
16140 lt_prog_compiler_static='-Bstatic'
16141 ;;
16142
16143 sysv4 | sysv4.2uw2* | sysv4.3*)
16144 lt_prog_compiler_wl='-Wl,'
16145 lt_prog_compiler_pic='-KPIC'
16146 lt_prog_compiler_static='-Bstatic'
16147 ;;
16148
16149 sysv4*MP*)
16150 if test -d /usr/nec ;then
16151 lt_prog_compiler_pic='-Kconform_pic'
16152 lt_prog_compiler_static='-Bstatic'
16153 fi
16154 ;;
16155
16156 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16157 lt_prog_compiler_wl='-Wl,'
16158 lt_prog_compiler_pic='-KPIC'
16159 lt_prog_compiler_static='-Bstatic'
16160 ;;
16161
16162 unicos*)
16163 lt_prog_compiler_wl='-Wl,'
16164 lt_prog_compiler_can_build_shared=no
16165 ;;
16166
16167 uts4*)
16168 lt_prog_compiler_pic='-pic'
16169 lt_prog_compiler_static='-Bstatic'
16170 ;;
16171
16172 *)
16173 lt_prog_compiler_can_build_shared=no
16174 ;;
16175 esac
16176 fi
16177
16178 case $host_os in
16179 # For platforms which do not support PIC, -DPIC is meaningless:
16180 *djgpp*)
16181 lt_prog_compiler_pic=
16182 ;;
16183 *)
16184 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16185 ;;
16186 esac
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16188 $as_echo "$lt_prog_compiler_pic" >&6; }
16189
16190
16191
16192
16193
16194
16195 #
16196 # Check to make sure the PIC flag actually works.
16197 #
16198 if test -n "$lt_prog_compiler_pic"; then
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16200 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16201 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16202 $as_echo_n "(cached) " >&6
16203 else
16204 lt_cv_prog_compiler_pic_works=no
16205 ac_outfile=conftest.$ac_objext
16206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16207 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16208 # Insert the option either (1) after the last *FLAGS variable, or
16209 # (2) before a word containing "conftest.", or (3) at the end.
16210 # Note that $ac_compile itself does not contain backslashes and begins
16211 # with a dollar sign (not a hyphen), so the echo should work correctly.
16212 # The option is referenced via a variable to avoid confusing sed.
16213 lt_compile=`echo "$ac_compile" | $SED \
16214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16216 -e 's:$: $lt_compiler_flag:'`
16217 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16218 (eval "$lt_compile" 2>conftest.err)
16219 ac_status=$?
16220 cat conftest.err >&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 if (exit $ac_status) && test -s "$ac_outfile"; then
16223 # The compiler can only warn and ignore the option if not recognized
16224 # So say no if there are warnings other than the usual output.
16225 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16227 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16228 lt_cv_prog_compiler_pic_works=yes
16229 fi
16230 fi
16231 $RM conftest*
16232
16233 fi
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16235 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16236
16237 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16238 case $lt_prog_compiler_pic in
16239 "" | " "*) ;;
16240 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16241 esac
16242 else
16243 lt_prog_compiler_pic=
16244 lt_prog_compiler_can_build_shared=no
16245 fi
16246
16247 fi
16248
16249
16250
16251
16252
16253
16254 #
16255 # Check to make sure the static flag actually works.
16256 #
16257 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16259 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16260 if ${lt_cv_prog_compiler_static_works+:} false; then :
16261 $as_echo_n "(cached) " >&6
16262 else
16263 lt_cv_prog_compiler_static_works=no
16264 save_LDFLAGS="$LDFLAGS"
16265 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16266 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16267 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16268 # The linker can only warn and ignore the option if not recognized
16269 # So say no if there are warnings
16270 if test -s conftest.err; then
16271 # Append any errors to the config.log.
16272 cat conftest.err 1>&5
16273 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16275 if diff conftest.exp conftest.er2 >/dev/null; then
16276 lt_cv_prog_compiler_static_works=yes
16277 fi
16278 else
16279 lt_cv_prog_compiler_static_works=yes
16280 fi
16281 fi
16282 $RM -r conftest*
16283 LDFLAGS="$save_LDFLAGS"
16284
16285 fi
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16287 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16288
16289 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16290 :
16291 else
16292 lt_prog_compiler_static=
16293 fi
16294
16295
16296
16297
16298
16299
16300
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16302 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16303 if ${lt_cv_prog_compiler_c_o+:} false; then :
16304 $as_echo_n "(cached) " >&6
16305 else
16306 lt_cv_prog_compiler_c_o=no
16307 $RM -r conftest 2>/dev/null
16308 mkdir conftest
16309 cd conftest
16310 mkdir out
16311 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16312
16313 lt_compiler_flag="-o out/conftest2.$ac_objext"
16314 # Insert the option either (1) after the last *FLAGS variable, or
16315 # (2) before a word containing "conftest.", or (3) at the end.
16316 # Note that $ac_compile itself does not contain backslashes and begins
16317 # with a dollar sign (not a hyphen), so the echo should work correctly.
16318 lt_compile=`echo "$ac_compile" | $SED \
16319 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16321 -e 's:$: $lt_compiler_flag:'`
16322 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16323 (eval "$lt_compile" 2>out/conftest.err)
16324 ac_status=$?
16325 cat out/conftest.err >&5
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16328 then
16329 # The compiler can only warn and ignore the option if not recognized
16330 # So say no if there are warnings
16331 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16332 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16333 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16334 lt_cv_prog_compiler_c_o=yes
16335 fi
16336 fi
16337 chmod u+w . 2>&5
16338 $RM conftest*
16339 # SGI C++ compiler will create directory out/ii_files/ for
16340 # template instantiation
16341 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16342 $RM out/* && rmdir out
16343 cd ..
16344 $RM -r conftest
16345 $RM conftest*
16346
16347 fi
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16349 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16350
16351
16352
16353
16354
16355
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16357 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16358 if ${lt_cv_prog_compiler_c_o+:} false; then :
16359 $as_echo_n "(cached) " >&6
16360 else
16361 lt_cv_prog_compiler_c_o=no
16362 $RM -r conftest 2>/dev/null
16363 mkdir conftest
16364 cd conftest
16365 mkdir out
16366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16367
16368 lt_compiler_flag="-o out/conftest2.$ac_objext"
16369 # Insert the option either (1) after the last *FLAGS variable, or
16370 # (2) before a word containing "conftest.", or (3) at the end.
16371 # Note that $ac_compile itself does not contain backslashes and begins
16372 # with a dollar sign (not a hyphen), so the echo should work correctly.
16373 lt_compile=`echo "$ac_compile" | $SED \
16374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16376 -e 's:$: $lt_compiler_flag:'`
16377 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16378 (eval "$lt_compile" 2>out/conftest.err)
16379 ac_status=$?
16380 cat out/conftest.err >&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16383 then
16384 # The compiler can only warn and ignore the option if not recognized
16385 # So say no if there are warnings
16386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16387 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16388 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16389 lt_cv_prog_compiler_c_o=yes
16390 fi
16391 fi
16392 chmod u+w . 2>&5
16393 $RM conftest*
16394 # SGI C++ compiler will create directory out/ii_files/ for
16395 # template instantiation
16396 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16397 $RM out/* && rmdir out
16398 cd ..
16399 $RM -r conftest
16400 $RM conftest*
16401
16402 fi
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16404 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16405
16406
16407
16408
16409 hard_links="nottested"
16410 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16411 # do not overwrite the value of need_locks provided by the user
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16413 $as_echo_n "checking if we can lock with hard links... " >&6; }
16414 hard_links=yes
16415 $RM conftest*
16416 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16417 touch conftest.a
16418 ln conftest.a conftest.b 2>&5 || hard_links=no
16419 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16421 $as_echo "$hard_links" >&6; }
16422 if test "$hard_links" = no; then
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16424 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16425 need_locks=warn
16426 fi
16427 else
16428 need_locks=no
16429 fi
16430
16431
16432
16433
16434
16435
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16437 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16438
16439 runpath_var=
16440 allow_undefined_flag=
16441 always_export_symbols=no
16442 archive_cmds=
16443 archive_expsym_cmds=
16444 compiler_needs_object=no
16445 enable_shared_with_static_runtimes=no
16446 export_dynamic_flag_spec=
16447 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16448 hardcode_automatic=no
16449 hardcode_direct=no
16450 hardcode_direct_absolute=no
16451 hardcode_libdir_flag_spec=
16452 hardcode_libdir_flag_spec_ld=
16453 hardcode_libdir_separator=
16454 hardcode_minus_L=no
16455 hardcode_shlibpath_var=unsupported
16456 inherit_rpath=no
16457 link_all_deplibs=unknown
16458 module_cmds=
16459 module_expsym_cmds=
16460 old_archive_from_new_cmds=
16461 old_archive_from_expsyms_cmds=
16462 thread_safe_flag_spec=
16463 whole_archive_flag_spec=
16464 # include_expsyms should be a list of space-separated symbols to be *always*
16465 # included in the symbol list
16466 include_expsyms=
16467 # exclude_expsyms can be an extended regexp of symbols to exclude
16468 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16469 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16470 # as well as any symbol that contains `d'.
16471 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16472 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16473 # platforms (ab)use it in PIC code, but their linkers get confused if
16474 # the symbol is explicitly referenced. Since portable code cannot
16475 # rely on this symbol name, it's probably fine to never include it in
16476 # preloaded symbol tables.
16477 # Exclude shared library initialization/finalization symbols.
16478 extract_expsyms_cmds=
16479
16480 case $host_os in
16481 cygwin* | mingw* | pw32* | cegcc*)
16482 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16483 # When not using gcc, we currently assume that we are using
16484 # Microsoft Visual C++.
16485 if test "$GCC" != yes; then
16486 with_gnu_ld=no
16487 fi
16488 ;;
16489 interix*)
16490 # we just hope/assume this is gcc and not c89 (= MSVC++)
16491 with_gnu_ld=yes
16492 ;;
16493 openbsd*)
16494 with_gnu_ld=no
16495 ;;
16496 esac
16497
16498 ld_shlibs=yes
16499
16500 # On some targets, GNU ld is compatible enough with the native linker
16501 # that we're better off using the native interface for both.
16502 lt_use_gnu_ld_interface=no
16503 if test "$with_gnu_ld" = yes; then
16504 case $host_os in
16505 aix*)
16506 # The AIX port of GNU ld has always aspired to compatibility
16507 # with the native linker. However, as the warning in the GNU ld
16508 # block says, versions before 2.19.5* couldn't really create working
16509 # shared libraries, regardless of the interface used.
16510 case `$LD -v 2>&1` in
16511 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16512 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16513 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16514 *)
16515 lt_use_gnu_ld_interface=yes
16516 ;;
16517 esac
16518 ;;
16519 *)
16520 lt_use_gnu_ld_interface=yes
16521 ;;
16522 esac
16523 fi
16524
16525 if test "$lt_use_gnu_ld_interface" = yes; then
16526 # If archive_cmds runs LD, not CC, wlarc should be empty
16527 wlarc='${wl}'
16528
16529 # Set some defaults for GNU ld with shared library support. These
16530 # are reset later if shared libraries are not supported. Putting them
16531 # here allows them to be overridden if necessary.
16532 runpath_var=LD_RUN_PATH
16533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16534 export_dynamic_flag_spec='${wl}--export-dynamic'
16535 # ancient GNU ld didn't support --whole-archive et. al.
16536 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16537 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16538 else
16539 whole_archive_flag_spec=
16540 fi
16541 supports_anon_versioning=no
16542 case `$LD -v 2>&1` in
16543 *GNU\ gold*) supports_anon_versioning=yes ;;
16544 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16545 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16546 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16547 *\ 2.11.*) ;; # other 2.11 versions
16548 *) supports_anon_versioning=yes ;;
16549 esac
16550
16551 # See if GNU ld supports shared libraries.
16552 case $host_os in
16553 aix[3-9]*)
16554 # On AIX/PPC, the GNU linker is very broken
16555 if test "$host_cpu" != ia64; then
16556 ld_shlibs=no
16557 cat <<_LT_EOF 1>&2
16558
16559 *** Warning: the GNU linker, at least up to release 2.19, is reported
16560 *** to be unable to reliably create shared libraries on AIX.
16561 *** Therefore, libtool is disabling shared libraries support. If you
16562 *** really care for shared libraries, you may want to install binutils
16563 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16564 *** You will then need to restart the configuration process.
16565
16566 _LT_EOF
16567 fi
16568 ;;
16569
16570 amigaos*)
16571 case $host_cpu in
16572 powerpc)
16573 # see comment about AmigaOS4 .so support
16574 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16575 archive_expsym_cmds=''
16576 ;;
16577 m68k)
16578 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)'
16579 hardcode_libdir_flag_spec='-L$libdir'
16580 hardcode_minus_L=yes
16581 ;;
16582 esac
16583 ;;
16584
16585 beos*)
16586 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16587 allow_undefined_flag=unsupported
16588 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16589 # support --undefined. This deserves some investigation. FIXME
16590 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16591 else
16592 ld_shlibs=no
16593 fi
16594 ;;
16595
16596 cygwin* | mingw* | pw32* | cegcc*)
16597 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16598 # as there is no search path for DLLs.
16599 hardcode_libdir_flag_spec='-L$libdir'
16600 export_dynamic_flag_spec='${wl}--export-all-symbols'
16601 allow_undefined_flag=unsupported
16602 always_export_symbols=no
16603 enable_shared_with_static_runtimes=yes
16604 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16605
16606 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16608 # If the export-symbols file already is a .def file (1st line
16609 # is EXPORTS), use it as is; otherwise, prepend...
16610 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16611 cp $export_symbols $output_objdir/$soname.def;
16612 else
16613 echo EXPORTS > $output_objdir/$soname.def;
16614 cat $export_symbols >> $output_objdir/$soname.def;
16615 fi~
16616 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16617 else
16618 ld_shlibs=no
16619 fi
16620 ;;
16621
16622 haiku*)
16623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16624 link_all_deplibs=yes
16625 ;;
16626
16627 interix[3-9]*)
16628 hardcode_direct=no
16629 hardcode_shlibpath_var=no
16630 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16631 export_dynamic_flag_spec='${wl}-E'
16632 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16633 # Instead, shared libraries are loaded at an image base (0x10000000 by
16634 # default) and relocated if they conflict, which is a slow very memory
16635 # consuming and fragmenting process. To avoid this, we pick a random,
16636 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16637 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16638 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16639 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'
16640 ;;
16641
16642 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16643 tmp_diet=no
16644 if test "$host_os" = linux-dietlibc; then
16645 case $cc_basename in
16646 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16647 esac
16648 fi
16649 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16650 && test "$tmp_diet" = no
16651 then
16652 tmp_addflag=' $pic_flag'
16653 tmp_sharedflag='-shared'
16654 case $cc_basename,$host_cpu in
16655 pgcc*) # Portland Group C compiler
16656 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'
16657 tmp_addflag=' $pic_flag'
16658 ;;
16659 pgf77* | pgf90* | pgf95* | pgfortran*)
16660 # Portland Group f77 and f90 compilers
16661 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'
16662 tmp_addflag=' $pic_flag -Mnomain' ;;
16663 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16664 tmp_addflag=' -i_dynamic' ;;
16665 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16666 tmp_addflag=' -i_dynamic -nofor_main' ;;
16667 ifc* | ifort*) # Intel Fortran compiler
16668 tmp_addflag=' -nofor_main' ;;
16669 lf95*) # Lahey Fortran 8.1
16670 whole_archive_flag_spec=
16671 tmp_sharedflag='--shared' ;;
16672 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16673 tmp_sharedflag='-qmkshrobj'
16674 tmp_addflag= ;;
16675 nvcc*) # Cuda Compiler Driver 2.2
16676 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'
16677 compiler_needs_object=yes
16678 ;;
16679 esac
16680 case `$CC -V 2>&1 | sed 5q` in
16681 *Sun\ C*) # Sun C 5.9
16682 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'
16683 compiler_needs_object=yes
16684 tmp_sharedflag='-G' ;;
16685 *Sun\ F*) # Sun Fortran 8.3
16686 tmp_sharedflag='-G' ;;
16687 esac
16688 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16689
16690 if test "x$supports_anon_versioning" = xyes; then
16691 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16692 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16693 echo "local: *; };" >> $output_objdir/$libname.ver~
16694 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16695 fi
16696
16697 case $cc_basename in
16698 xlf* | bgf* | bgxlf* | mpixlf*)
16699 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16700 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16701 hardcode_libdir_flag_spec=
16702 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16703 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16704 if test "x$supports_anon_versioning" = xyes; then
16705 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16706 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16707 echo "local: *; };" >> $output_objdir/$libname.ver~
16708 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16709 fi
16710 ;;
16711 esac
16712 else
16713 ld_shlibs=no
16714 fi
16715 ;;
16716
16717 netbsd*)
16718 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16719 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16720 wlarc=
16721 else
16722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16723 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16724 fi
16725 ;;
16726
16727 solaris*)
16728 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16729 ld_shlibs=no
16730 cat <<_LT_EOF 1>&2
16731
16732 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16733 *** create shared libraries on Solaris systems. Therefore, libtool
16734 *** is disabling shared libraries support. We urge you to upgrade GNU
16735 *** binutils to release 2.9.1 or newer. Another option is to modify
16736 *** your PATH or compiler configuration so that the native linker is
16737 *** used, and then restart.
16738
16739 _LT_EOF
16740 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16742 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16743 else
16744 ld_shlibs=no
16745 fi
16746 ;;
16747
16748 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16749 case `$LD -v 2>&1` in
16750 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16751 ld_shlibs=no
16752 cat <<_LT_EOF 1>&2
16753
16754 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16755 *** reliably create shared libraries on SCO systems. Therefore, libtool
16756 *** is disabling shared libraries support. We urge you to upgrade GNU
16757 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16758 *** your PATH or compiler configuration so that the native linker is
16759 *** used, and then restart.
16760
16761 _LT_EOF
16762 ;;
16763 *)
16764 # For security reasons, it is highly recommended that you always
16765 # use absolute paths for naming shared libraries, and exclude the
16766 # DT_RUNPATH tag from executables and libraries. But doing so
16767 # requires that you compile everything twice, which is a pain.
16768 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16769 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16771 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16772 else
16773 ld_shlibs=no
16774 fi
16775 ;;
16776 esac
16777 ;;
16778
16779 sunos4*)
16780 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16781 wlarc=
16782 hardcode_direct=yes
16783 hardcode_shlibpath_var=no
16784 ;;
16785
16786 *)
16787 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16789 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16790 else
16791 ld_shlibs=no
16792 fi
16793 ;;
16794 esac
16795
16796 if test "$ld_shlibs" = no; then
16797 runpath_var=
16798 hardcode_libdir_flag_spec=
16799 export_dynamic_flag_spec=
16800 whole_archive_flag_spec=
16801 fi
16802 else
16803 # PORTME fill in a description of your system's linker (not GNU ld)
16804 case $host_os in
16805 aix3*)
16806 allow_undefined_flag=unsupported
16807 always_export_symbols=yes
16808 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'
16809 # Note: this linker hardcodes the directories in LIBPATH if there
16810 # are no directories specified by -L.
16811 hardcode_minus_L=yes
16812 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16813 # Neither direct hardcoding nor static linking is supported with a
16814 # broken collect2.
16815 hardcode_direct=unsupported
16816 fi
16817 ;;
16818
16819 aix[4-9]*)
16820 if test "$host_cpu" = ia64; then
16821 # On IA64, the linker does run time linking by default, so we don't
16822 # have to do anything special.
16823 aix_use_runtimelinking=no
16824 exp_sym_flag='-Bexport'
16825 no_entry_flag=""
16826 else
16827 # If we're using GNU nm, then we don't want the "-C" option.
16828 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16829 # Also, AIX nm treats weak defined symbols like other global
16830 # defined symbols, whereas GNU nm marks them as "W".
16831 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16832 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'
16833 else
16834 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'
16835 fi
16836 aix_use_runtimelinking=no
16837
16838 # Test if we are trying to use run time linking or normal
16839 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16840 # need to do runtime linking.
16841 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16842 for ld_flag in $LDFLAGS; do
16843 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16844 aix_use_runtimelinking=yes
16845 break
16846 fi
16847 done
16848 ;;
16849 esac
16850
16851 exp_sym_flag='-bexport'
16852 no_entry_flag='-bnoentry'
16853 fi
16854
16855 # When large executables or shared objects are built, AIX ld can
16856 # have problems creating the table of contents. If linking a library
16857 # or program results in "error TOC overflow" add -mminimal-toc to
16858 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16859 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16860
16861 archive_cmds=''
16862 hardcode_direct=yes
16863 hardcode_direct_absolute=yes
16864 hardcode_libdir_separator=':'
16865 link_all_deplibs=yes
16866 file_list_spec='${wl}-f,'
16867
16868 if test "$GCC" = yes; then
16869 case $host_os in aix4.[012]|aix4.[012].*)
16870 # We only want to do this on AIX 4.2 and lower, the check
16871 # below for broken collect2 doesn't work under 4.3+
16872 collect2name=`${CC} -print-prog-name=collect2`
16873 if test -f "$collect2name" &&
16874 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16875 then
16876 # We have reworked collect2
16877 :
16878 else
16879 # We have old collect2
16880 hardcode_direct=unsupported
16881 # It fails to find uninstalled libraries when the uninstalled
16882 # path is not listed in the libpath. Setting hardcode_minus_L
16883 # to unsupported forces relinking
16884 hardcode_minus_L=yes
16885 hardcode_libdir_flag_spec='-L$libdir'
16886 hardcode_libdir_separator=
16887 fi
16888 ;;
16889 esac
16890 shared_flag='-shared'
16891 if test "$aix_use_runtimelinking" = yes; then
16892 shared_flag="$shared_flag "'${wl}-G'
16893 fi
16894 else
16895 # not using gcc
16896 if test "$host_cpu" = ia64; then
16897 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16898 # chokes on -Wl,-G. The following line is correct:
16899 shared_flag='-G'
16900 else
16901 if test "$aix_use_runtimelinking" = yes; then
16902 shared_flag='${wl}-G'
16903 else
16904 shared_flag='${wl}-bM:SRE'
16905 fi
16906 fi
16907 fi
16908
16909 export_dynamic_flag_spec='${wl}-bexpall'
16910 # It seems that -bexpall does not export symbols beginning with
16911 # underscore (_), so it is better to generate a list of symbols to export.
16912 always_export_symbols=yes
16913 if test "$aix_use_runtimelinking" = yes; then
16914 # Warning - without using the other runtime loading flags (-brtl),
16915 # -berok will link without error, but may produce a broken library.
16916 allow_undefined_flag='-berok'
16917 # Determine the default libpath from the value encoded in an
16918 # empty executable.
16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920 /* end confdefs.h. */
16921
16922 int
16923 main ()
16924 {
16925
16926 ;
16927 return 0;
16928 }
16929 _ACEOF
16930 if ac_fn_c_try_link "$LINENO"; then :
16931
16932 lt_aix_libpath_sed='
16933 /Import File Strings/,/^$/ {
16934 /^0/ {
16935 s/^0 *\(.*\)$/\1/
16936 p
16937 }
16938 }'
16939 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16940 # Check for a 64-bit object if we didn't find anything.
16941 if test -z "$aix_libpath"; then
16942 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16943 fi
16944 fi
16945 rm -f core conftest.err conftest.$ac_objext \
16946 conftest$ac_exeext conftest.$ac_ext
16947 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16948
16949 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16950 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"
16951 else
16952 if test "$host_cpu" = ia64; then
16953 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16954 allow_undefined_flag="-z nodefs"
16955 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"
16956 else
16957 # Determine the default libpath from the value encoded in an
16958 # empty executable.
16959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16960 /* end confdefs.h. */
16961
16962 int
16963 main ()
16964 {
16965
16966 ;
16967 return 0;
16968 }
16969 _ACEOF
16970 if ac_fn_c_try_link "$LINENO"; then :
16971
16972 lt_aix_libpath_sed='
16973 /Import File Strings/,/^$/ {
16974 /^0/ {
16975 s/^0 *\(.*\)$/\1/
16976 p
16977 }
16978 }'
16979 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16980 # Check for a 64-bit object if we didn't find anything.
16981 if test -z "$aix_libpath"; then
16982 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16983 fi
16984 fi
16985 rm -f core conftest.err conftest.$ac_objext \
16986 conftest$ac_exeext conftest.$ac_ext
16987 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16988
16989 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16990 # Warning - without using the other run time loading flags,
16991 # -berok will link without error, but may produce a broken library.
16992 no_undefined_flag=' ${wl}-bernotok'
16993 allow_undefined_flag=' ${wl}-berok'
16994 if test "$with_gnu_ld" = yes; then
16995 # We only use this code for GNU lds that support --whole-archive.
16996 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16997 else
16998 # Exported symbols can be pulled into shared objects from archives
16999 whole_archive_flag_spec='$convenience'
17000 fi
17001 archive_cmds_need_lc=yes
17002 # This is similar to how AIX traditionally builds its shared libraries.
17003 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'
17004 fi
17005 fi
17006 ;;
17007
17008 amigaos*)
17009 case $host_cpu in
17010 powerpc)
17011 # see comment about AmigaOS4 .so support
17012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17013 archive_expsym_cmds=''
17014 ;;
17015 m68k)
17016 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)'
17017 hardcode_libdir_flag_spec='-L$libdir'
17018 hardcode_minus_L=yes
17019 ;;
17020 esac
17021 ;;
17022
17023 bsdi[45]*)
17024 export_dynamic_flag_spec=-rdynamic
17025 ;;
17026
17027 cygwin* | mingw* | pw32* | cegcc*)
17028 # When not using gcc, we currently assume that we are using
17029 # Microsoft Visual C++.
17030 # hardcode_libdir_flag_spec is actually meaningless, as there is
17031 # no search path for DLLs.
17032 hardcode_libdir_flag_spec=' '
17033 allow_undefined_flag=unsupported
17034 # Tell ltmain to make .lib files, not .a files.
17035 libext=lib
17036 # Tell ltmain to make .dll files, not .so files.
17037 shrext_cmds=".dll"
17038 # FIXME: Setting linknames here is a bad hack.
17039 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17040 # The linker will automatically build a .lib file if we build a DLL.
17041 old_archive_from_new_cmds='true'
17042 # FIXME: Should let the user specify the lib program.
17043 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17044 fix_srcfile_path='`cygpath -w "$srcfile"`'
17045 enable_shared_with_static_runtimes=yes
17046 ;;
17047
17048 darwin* | rhapsody*)
17049
17050
17051 archive_cmds_need_lc=no
17052 hardcode_direct=no
17053 hardcode_automatic=yes
17054 hardcode_shlibpath_var=unsupported
17055 if test "$lt_cv_ld_force_load" = "yes"; then
17056 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\"`'
17057 else
17058 whole_archive_flag_spec=''
17059 fi
17060 link_all_deplibs=yes
17061 allow_undefined_flag="$_lt_dar_allow_undefined"
17062 case $cc_basename in
17063 ifort*) _lt_dar_can_shared=yes ;;
17064 *) _lt_dar_can_shared=$GCC ;;
17065 esac
17066 if test "$_lt_dar_can_shared" = "yes"; then
17067 output_verbose_link_cmd=func_echo_all
17068 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17069 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17070 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}"
17071 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}"
17072
17073 else
17074 ld_shlibs=no
17075 fi
17076
17077 ;;
17078
17079 dgux*)
17080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17081 hardcode_libdir_flag_spec='-L$libdir'
17082 hardcode_shlibpath_var=no
17083 ;;
17084
17085 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17086 # support. Future versions do this automatically, but an explicit c++rt0.o
17087 # does not break anything, and helps significantly (at the cost of a little
17088 # extra space).
17089 freebsd2.2*)
17090 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17091 hardcode_libdir_flag_spec='-R$libdir'
17092 hardcode_direct=yes
17093 hardcode_shlibpath_var=no
17094 ;;
17095
17096 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17097 freebsd2.*)
17098 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17099 hardcode_direct=yes
17100 hardcode_minus_L=yes
17101 hardcode_shlibpath_var=no
17102 ;;
17103
17104 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17105 freebsd* | dragonfly*)
17106 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17107 hardcode_libdir_flag_spec='-R$libdir'
17108 hardcode_direct=yes
17109 hardcode_shlibpath_var=no
17110 ;;
17111
17112 hpux9*)
17113 if test "$GCC" = yes; then
17114 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'
17115 else
17116 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'
17117 fi
17118 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17119 hardcode_libdir_separator=:
17120 hardcode_direct=yes
17121
17122 # hardcode_minus_L: Not really in the search PATH,
17123 # but as the default location of the library.
17124 hardcode_minus_L=yes
17125 export_dynamic_flag_spec='${wl}-E'
17126 ;;
17127
17128 hpux10*)
17129 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17130 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17131 else
17132 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17133 fi
17134 if test "$with_gnu_ld" = no; then
17135 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17136 hardcode_libdir_flag_spec_ld='+b $libdir'
17137 hardcode_libdir_separator=:
17138 hardcode_direct=yes
17139 hardcode_direct_absolute=yes
17140 export_dynamic_flag_spec='${wl}-E'
17141 # hardcode_minus_L: Not really in the search PATH,
17142 # but as the default location of the library.
17143 hardcode_minus_L=yes
17144 fi
17145 ;;
17146
17147 hpux11*)
17148 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17149 case $host_cpu in
17150 hppa*64*)
17151 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17152 ;;
17153 ia64*)
17154 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17155 ;;
17156 *)
17157 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17158 ;;
17159 esac
17160 else
17161 case $host_cpu in
17162 hppa*64*)
17163 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17164 ;;
17165 ia64*)
17166 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17167 ;;
17168 *)
17169
17170 # Older versions of the 11.00 compiler do not understand -b yet
17171 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17173 $as_echo_n "checking if $CC understands -b... " >&6; }
17174 if ${lt_cv_prog_compiler__b+:} false; then :
17175 $as_echo_n "(cached) " >&6
17176 else
17177 lt_cv_prog_compiler__b=no
17178 save_LDFLAGS="$LDFLAGS"
17179 LDFLAGS="$LDFLAGS -b"
17180 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17181 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17182 # The linker can only warn and ignore the option if not recognized
17183 # So say no if there are warnings
17184 if test -s conftest.err; then
17185 # Append any errors to the config.log.
17186 cat conftest.err 1>&5
17187 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17189 if diff conftest.exp conftest.er2 >/dev/null; then
17190 lt_cv_prog_compiler__b=yes
17191 fi
17192 else
17193 lt_cv_prog_compiler__b=yes
17194 fi
17195 fi
17196 $RM -r conftest*
17197 LDFLAGS="$save_LDFLAGS"
17198
17199 fi
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17201 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17202
17203 if test x"$lt_cv_prog_compiler__b" = xyes; then
17204 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17205 else
17206 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17207 fi
17208
17209 ;;
17210 esac
17211 fi
17212 if test "$with_gnu_ld" = no; then
17213 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17214 hardcode_libdir_separator=:
17215
17216 case $host_cpu in
17217 hppa*64*|ia64*)
17218 hardcode_direct=no
17219 hardcode_shlibpath_var=no
17220 ;;
17221 *)
17222 hardcode_direct=yes
17223 hardcode_direct_absolute=yes
17224 export_dynamic_flag_spec='${wl}-E'
17225
17226 # hardcode_minus_L: Not really in the search PATH,
17227 # but as the default location of the library.
17228 hardcode_minus_L=yes
17229 ;;
17230 esac
17231 fi
17232 ;;
17233
17234 irix5* | irix6* | nonstopux*)
17235 if test "$GCC" = yes; then
17236 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'
17237 # Try to use the -exported_symbol ld option, if it does not
17238 # work, assume that -exports_file does not work either and
17239 # implicitly export all symbols.
17240 save_LDFLAGS="$LDFLAGS"
17241 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17243 /* end confdefs.h. */
17244 int foo(void) {}
17245 _ACEOF
17246 if ac_fn_c_try_link "$LINENO"; then :
17247 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'
17248
17249 fi
17250 rm -f core conftest.err conftest.$ac_objext \
17251 conftest$ac_exeext conftest.$ac_ext
17252 LDFLAGS="$save_LDFLAGS"
17253 else
17254 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'
17255 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'
17256 fi
17257 archive_cmds_need_lc='no'
17258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17259 hardcode_libdir_separator=:
17260 inherit_rpath=yes
17261 link_all_deplibs=yes
17262 ;;
17263
17264 netbsd*)
17265 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17266 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17267 else
17268 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17269 fi
17270 hardcode_libdir_flag_spec='-R$libdir'
17271 hardcode_direct=yes
17272 hardcode_shlibpath_var=no
17273 ;;
17274
17275 newsos6)
17276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17277 hardcode_direct=yes
17278 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17279 hardcode_libdir_separator=:
17280 hardcode_shlibpath_var=no
17281 ;;
17282
17283 *nto* | *qnx*)
17284 ;;
17285
17286 openbsd*)
17287 if test -f /usr/libexec/ld.so; then
17288 hardcode_direct=yes
17289 hardcode_shlibpath_var=no
17290 hardcode_direct_absolute=yes
17291 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17292 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17293 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17294 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17295 export_dynamic_flag_spec='${wl}-E'
17296 else
17297 case $host_os in
17298 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17299 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17300 hardcode_libdir_flag_spec='-R$libdir'
17301 ;;
17302 *)
17303 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17304 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17305 ;;
17306 esac
17307 fi
17308 else
17309 ld_shlibs=no
17310 fi
17311 ;;
17312
17313 os2*)
17314 hardcode_libdir_flag_spec='-L$libdir'
17315 hardcode_minus_L=yes
17316 allow_undefined_flag=unsupported
17317 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'
17318 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17319 ;;
17320
17321 osf3*)
17322 if test "$GCC" = yes; then
17323 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17324 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'
17325 else
17326 allow_undefined_flag=' -expect_unresolved \*'
17327 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'
17328 fi
17329 archive_cmds_need_lc='no'
17330 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17331 hardcode_libdir_separator=:
17332 ;;
17333
17334 osf4* | osf5*) # as osf3* with the addition of -msym flag
17335 if test "$GCC" = yes; then
17336 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17337 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'
17338 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17339 else
17340 allow_undefined_flag=' -expect_unresolved \*'
17341 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'
17342 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~
17343 $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'
17344
17345 # Both c and cxx compiler support -rpath directly
17346 hardcode_libdir_flag_spec='-rpath $libdir'
17347 fi
17348 archive_cmds_need_lc='no'
17349 hardcode_libdir_separator=:
17350 ;;
17351
17352 solaris*)
17353 no_undefined_flag=' -z defs'
17354 if test "$GCC" = yes; then
17355 wlarc='${wl}'
17356 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17357 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17358 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17359 else
17360 case `$CC -V 2>&1` in
17361 *"Compilers 5.0"*)
17362 wlarc=''
17363 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17364 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17365 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17366 ;;
17367 *)
17368 wlarc='${wl}'
17369 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17370 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17371 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17372 ;;
17373 esac
17374 fi
17375 hardcode_libdir_flag_spec='-R$libdir'
17376 hardcode_shlibpath_var=no
17377 case $host_os in
17378 solaris2.[0-5] | solaris2.[0-5].*) ;;
17379 *)
17380 # The compiler driver will combine and reorder linker options,
17381 # but understands `-z linker_flag'. GCC discards it without `$wl',
17382 # but is careful enough not to reorder.
17383 # Supported since Solaris 2.6 (maybe 2.5.1?)
17384 if test "$GCC" = yes; then
17385 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17386 else
17387 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17388 fi
17389 ;;
17390 esac
17391 link_all_deplibs=yes
17392 ;;
17393
17394 sunos4*)
17395 if test "x$host_vendor" = xsequent; then
17396 # Use $CC to link under sequent, because it throws in some extra .o
17397 # files that make .init and .fini sections work.
17398 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17399 else
17400 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17401 fi
17402 hardcode_libdir_flag_spec='-L$libdir'
17403 hardcode_direct=yes
17404 hardcode_minus_L=yes
17405 hardcode_shlibpath_var=no
17406 ;;
17407
17408 sysv4)
17409 case $host_vendor in
17410 sni)
17411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17412 hardcode_direct=yes # is this really true???
17413 ;;
17414 siemens)
17415 ## LD is ld it makes a PLAMLIB
17416 ## CC just makes a GrossModule.
17417 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17418 reload_cmds='$CC -r -o $output$reload_objs'
17419 hardcode_direct=no
17420 ;;
17421 motorola)
17422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17423 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17424 ;;
17425 esac
17426 runpath_var='LD_RUN_PATH'
17427 hardcode_shlibpath_var=no
17428 ;;
17429
17430 sysv4.3*)
17431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17432 hardcode_shlibpath_var=no
17433 export_dynamic_flag_spec='-Bexport'
17434 ;;
17435
17436 sysv4*MP*)
17437 if test -d /usr/nec; then
17438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17439 hardcode_shlibpath_var=no
17440 runpath_var=LD_RUN_PATH
17441 hardcode_runpath_var=yes
17442 ld_shlibs=yes
17443 fi
17444 ;;
17445
17446 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17447 no_undefined_flag='${wl}-z,text'
17448 archive_cmds_need_lc=no
17449 hardcode_shlibpath_var=no
17450 runpath_var='LD_RUN_PATH'
17451
17452 if test "$GCC" = yes; then
17453 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17454 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17455 else
17456 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17457 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17458 fi
17459 ;;
17460
17461 sysv5* | sco3.2v5* | sco5v6*)
17462 # Note: We can NOT use -z defs as we might desire, because we do not
17463 # link with -lc, and that would cause any symbols used from libc to
17464 # always be unresolved, which means just about no library would
17465 # ever link correctly. If we're not using GNU ld we use -z text
17466 # though, which does catch some bad symbols but isn't as heavy-handed
17467 # as -z defs.
17468 no_undefined_flag='${wl}-z,text'
17469 allow_undefined_flag='${wl}-z,nodefs'
17470 archive_cmds_need_lc=no
17471 hardcode_shlibpath_var=no
17472 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17473 hardcode_libdir_separator=':'
17474 link_all_deplibs=yes
17475 export_dynamic_flag_spec='${wl}-Bexport'
17476 runpath_var='LD_RUN_PATH'
17477
17478 if test "$GCC" = yes; then
17479 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17480 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17481 else
17482 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17483 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17484 fi
17485 ;;
17486
17487 uts4*)
17488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17489 hardcode_libdir_flag_spec='-L$libdir'
17490 hardcode_shlibpath_var=no
17491 ;;
17492
17493 *)
17494 ld_shlibs=no
17495 ;;
17496 esac
17497
17498 if test x$host_vendor = xsni; then
17499 case $host in
17500 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17501 export_dynamic_flag_spec='${wl}-Blargedynsym'
17502 ;;
17503 esac
17504 fi
17505 fi
17506
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17508 $as_echo "$ld_shlibs" >&6; }
17509 test "$ld_shlibs" = no && can_build_shared=no
17510
17511 with_gnu_ld=$with_gnu_ld
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527 #
17528 # Do we need to explicitly link libc?
17529 #
17530 case "x$archive_cmds_need_lc" in
17531 x|xyes)
17532 # Assume -lc should be added
17533 archive_cmds_need_lc=yes
17534
17535 if test "$enable_shared" = yes && test "$GCC" = yes; then
17536 case $archive_cmds in
17537 *'~'*)
17538 # FIXME: we may have to deal with multi-command sequences.
17539 ;;
17540 '$CC '*)
17541 # Test whether the compiler implicitly links with -lc since on some
17542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17543 # to ld, don't add -lc before -lgcc.
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17545 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17546 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17547 $as_echo_n "(cached) " >&6
17548 else
17549 $RM conftest*
17550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17551
17552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17553 (eval $ac_compile) 2>&5
17554 ac_status=$?
17555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17556 test $ac_status = 0; } 2>conftest.err; then
17557 soname=conftest
17558 lib=conftest
17559 libobjs=conftest.$ac_objext
17560 deplibs=
17561 wl=$lt_prog_compiler_wl
17562 pic_flag=$lt_prog_compiler_pic
17563 compiler_flags=-v
17564 linker_flags=-v
17565 verstring=
17566 output_objdir=.
17567 libname=conftest
17568 lt_save_allow_undefined_flag=$allow_undefined_flag
17569 allow_undefined_flag=
17570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17571 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17572 ac_status=$?
17573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17574 test $ac_status = 0; }
17575 then
17576 lt_cv_archive_cmds_need_lc=no
17577 else
17578 lt_cv_archive_cmds_need_lc=yes
17579 fi
17580 allow_undefined_flag=$lt_save_allow_undefined_flag
17581 else
17582 cat conftest.err 1>&5
17583 fi
17584 $RM conftest*
17585
17586 fi
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17588 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17589 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17590 ;;
17591 esac
17592 fi
17593 ;;
17594 esac
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17753 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17754
17755 if test "$GCC" = yes; then
17756 case $host_os in
17757 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17758 *) lt_awk_arg="/^libraries:/" ;;
17759 esac
17760 case $host_os in
17761 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17762 *) lt_sed_strip_eq="s,=/,/,g" ;;
17763 esac
17764 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17765 case $lt_search_path_spec in
17766 *\;*)
17767 # if the path contains ";" then we assume it to be the separator
17768 # otherwise default to the standard path separator (i.e. ":") - it is
17769 # assumed that no part of a normal pathname contains ";" but that should
17770 # okay in the real world where ";" in dirpaths is itself problematic.
17771 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17772 ;;
17773 *)
17774 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17775 ;;
17776 esac
17777 # Ok, now we have the path, separated by spaces, we can step through it
17778 # and add multilib dir if necessary.
17779 lt_tmp_lt_search_path_spec=
17780 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17781 for lt_sys_path in $lt_search_path_spec; do
17782 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17783 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17784 else
17785 test -d "$lt_sys_path" && \
17786 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17787 fi
17788 done
17789 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17790 BEGIN {RS=" "; FS="/|\n";} {
17791 lt_foo="";
17792 lt_count=0;
17793 for (lt_i = NF; lt_i > 0; lt_i--) {
17794 if ($lt_i != "" && $lt_i != ".") {
17795 if ($lt_i == "..") {
17796 lt_count++;
17797 } else {
17798 if (lt_count == 0) {
17799 lt_foo="/" $lt_i lt_foo;
17800 } else {
17801 lt_count--;
17802 }
17803 }
17804 }
17805 }
17806 if (lt_foo != "") { lt_freq[lt_foo]++; }
17807 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17808 }'`
17809 # AWK program above erroneously prepends '/' to C:/dos/paths
17810 # for these hosts.
17811 case $host_os in
17812 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17813 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17814 esac
17815 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17816 else
17817 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17818 fi
17819 library_names_spec=
17820 libname_spec='lib$name'
17821 soname_spec=
17822 shrext_cmds=".so"
17823 postinstall_cmds=
17824 postuninstall_cmds=
17825 finish_cmds=
17826 finish_eval=
17827 shlibpath_var=
17828 shlibpath_overrides_runpath=unknown
17829 version_type=none
17830 dynamic_linker="$host_os ld.so"
17831 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17832 need_lib_prefix=unknown
17833 hardcode_into_libs=no
17834
17835 # when you set need_version to no, make sure it does not cause -set_version
17836 # flags to be left without arguments
17837 need_version=unknown
17838
17839 case $host_os in
17840 aix3*)
17841 version_type=linux
17842 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17843 shlibpath_var=LIBPATH
17844
17845 # AIX 3 has no versioning support, so we append a major version to the name.
17846 soname_spec='${libname}${release}${shared_ext}$major'
17847 ;;
17848
17849 aix[4-9]*)
17850 version_type=linux
17851 need_lib_prefix=no
17852 need_version=no
17853 hardcode_into_libs=yes
17854 if test "$host_cpu" = ia64; then
17855 # AIX 5 supports IA64
17856 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17857 shlibpath_var=LD_LIBRARY_PATH
17858 else
17859 # With GCC up to 2.95.x, collect2 would create an import file
17860 # for dependence libraries. The import file would start with
17861 # the line `#! .'. This would cause the generated library to
17862 # depend on `.', always an invalid library. This was fixed in
17863 # development snapshots of GCC prior to 3.0.
17864 case $host_os in
17865 aix4 | aix4.[01] | aix4.[01].*)
17866 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17867 echo ' yes '
17868 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17869 :
17870 else
17871 can_build_shared=no
17872 fi
17873 ;;
17874 esac
17875 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17876 # soname into executable. Probably we can add versioning support to
17877 # collect2, so additional links can be useful in future.
17878 if test "$aix_use_runtimelinking" = yes; then
17879 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17880 # instead of lib<name>.a to let people know that these are not
17881 # typical AIX shared libraries.
17882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17883 else
17884 # We preserve .a as extension for shared libraries through AIX4.2
17885 # and later when we are not doing run time linking.
17886 library_names_spec='${libname}${release}.a $libname.a'
17887 soname_spec='${libname}${release}${shared_ext}$major'
17888 fi
17889 shlibpath_var=LIBPATH
17890 fi
17891 ;;
17892
17893 amigaos*)
17894 case $host_cpu in
17895 powerpc)
17896 # Since July 2007 AmigaOS4 officially supports .so libraries.
17897 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17899 ;;
17900 m68k)
17901 library_names_spec='$libname.ixlibrary $libname.a'
17902 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17903 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'
17904 ;;
17905 esac
17906 ;;
17907
17908 beos*)
17909 library_names_spec='${libname}${shared_ext}'
17910 dynamic_linker="$host_os ld.so"
17911 shlibpath_var=LIBRARY_PATH
17912 ;;
17913
17914 bsdi[45]*)
17915 version_type=linux
17916 need_version=no
17917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17918 soname_spec='${libname}${release}${shared_ext}$major'
17919 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17920 shlibpath_var=LD_LIBRARY_PATH
17921 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17922 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17923 # the default ld.so.conf also contains /usr/contrib/lib and
17924 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17925 # libtool to hard-code these into programs
17926 ;;
17927
17928 cygwin* | mingw* | pw32* | cegcc*)
17929 version_type=windows
17930 shrext_cmds=".dll"
17931 need_version=no
17932 need_lib_prefix=no
17933
17934 case $GCC,$host_os in
17935 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17936 library_names_spec='$libname.dll.a'
17937 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17938 postinstall_cmds='base_file=`basename \${file}`~
17939 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17940 dldir=$destdir/`dirname \$dlpath`~
17941 test -d \$dldir || mkdir -p \$dldir~
17942 $install_prog $dir/$dlname \$dldir/$dlname~
17943 chmod a+x \$dldir/$dlname~
17944 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17945 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17946 fi'
17947 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17948 dlpath=$dir/\$dldll~
17949 $RM \$dlpath'
17950 shlibpath_overrides_runpath=yes
17951
17952 case $host_os in
17953 cygwin*)
17954 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17955 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17956
17957 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17958 ;;
17959 mingw* | cegcc*)
17960 # MinGW DLLs use traditional 'lib' prefix
17961 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17962 ;;
17963 pw32*)
17964 # pw32 DLLs use 'pw' prefix rather than 'lib'
17965 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17966 ;;
17967 esac
17968 ;;
17969
17970 *)
17971 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17972 ;;
17973 esac
17974 dynamic_linker='Win32 ld.exe'
17975 # FIXME: first we should search . and the directory the executable is in
17976 shlibpath_var=PATH
17977 ;;
17978
17979 darwin* | rhapsody*)
17980 dynamic_linker="$host_os dyld"
17981 version_type=darwin
17982 need_lib_prefix=no
17983 need_version=no
17984 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17985 soname_spec='${libname}${release}${major}$shared_ext'
17986 shlibpath_overrides_runpath=yes
17987 shlibpath_var=DYLD_LIBRARY_PATH
17988 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17989
17990 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17991 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17992 ;;
17993
17994 dgux*)
17995 version_type=linux
17996 need_lib_prefix=no
17997 need_version=no
17998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17999 soname_spec='${libname}${release}${shared_ext}$major'
18000 shlibpath_var=LD_LIBRARY_PATH
18001 ;;
18002
18003 freebsd* | dragonfly*)
18004 # DragonFly does not have aout. When/if they implement a new
18005 # versioning mechanism, adjust this.
18006 if test -x /usr/bin/objformat; then
18007 objformat=`/usr/bin/objformat`
18008 else
18009 case $host_os in
18010 freebsd[23].*) objformat=aout ;;
18011 *) objformat=elf ;;
18012 esac
18013 fi
18014 version_type=freebsd-$objformat
18015 case $version_type in
18016 freebsd-elf*)
18017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18018 need_version=no
18019 need_lib_prefix=no
18020 ;;
18021 freebsd-*)
18022 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18023 need_version=yes
18024 ;;
18025 esac
18026 shlibpath_var=LD_LIBRARY_PATH
18027 case $host_os in
18028 freebsd2.*)
18029 shlibpath_overrides_runpath=yes
18030 ;;
18031 freebsd3.[01]* | freebsdelf3.[01]*)
18032 shlibpath_overrides_runpath=yes
18033 hardcode_into_libs=yes
18034 ;;
18035 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18036 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18037 shlibpath_overrides_runpath=no
18038 hardcode_into_libs=yes
18039 ;;
18040 *) # from 4.6 on, and DragonFly
18041 shlibpath_overrides_runpath=yes
18042 hardcode_into_libs=yes
18043 ;;
18044 esac
18045 ;;
18046
18047 gnu*)
18048 version_type=linux
18049 need_lib_prefix=no
18050 need_version=no
18051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18052 soname_spec='${libname}${release}${shared_ext}$major'
18053 shlibpath_var=LD_LIBRARY_PATH
18054 hardcode_into_libs=yes
18055 ;;
18056
18057 haiku*)
18058 version_type=linux
18059 need_lib_prefix=no
18060 need_version=no
18061 dynamic_linker="$host_os runtime_loader"
18062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18063 soname_spec='${libname}${release}${shared_ext}$major'
18064 shlibpath_var=LIBRARY_PATH
18065 shlibpath_overrides_runpath=yes
18066 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18067 hardcode_into_libs=yes
18068 ;;
18069
18070 hpux9* | hpux10* | hpux11*)
18071 # Give a soname corresponding to the major version so that dld.sl refuses to
18072 # link against other versions.
18073 version_type=sunos
18074 need_lib_prefix=no
18075 need_version=no
18076 case $host_cpu in
18077 ia64*)
18078 shrext_cmds='.so'
18079 hardcode_into_libs=yes
18080 dynamic_linker="$host_os dld.so"
18081 shlibpath_var=LD_LIBRARY_PATH
18082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18084 soname_spec='${libname}${release}${shared_ext}$major'
18085 if test "X$HPUX_IA64_MODE" = X32; then
18086 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18087 else
18088 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18089 fi
18090 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18091 ;;
18092 hppa*64*)
18093 shrext_cmds='.sl'
18094 hardcode_into_libs=yes
18095 dynamic_linker="$host_os dld.sl"
18096 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18099 soname_spec='${libname}${release}${shared_ext}$major'
18100 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18102 ;;
18103 *)
18104 shrext_cmds='.sl'
18105 dynamic_linker="$host_os dld.sl"
18106 shlibpath_var=SHLIB_PATH
18107 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
18111 esac
18112 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18113 postinstall_cmds='chmod 555 $lib'
18114 # or fails outright, so override atomically:
18115 install_override_mode=555
18116 ;;
18117
18118 interix[3-9]*)
18119 version_type=linux
18120 need_lib_prefix=no
18121 need_version=no
18122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18123 soname_spec='${libname}${release}${shared_ext}$major'
18124 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18125 shlibpath_var=LD_LIBRARY_PATH
18126 shlibpath_overrides_runpath=no
18127 hardcode_into_libs=yes
18128 ;;
18129
18130 irix5* | irix6* | nonstopux*)
18131 case $host_os in
18132 nonstopux*) version_type=nonstopux ;;
18133 *)
18134 if test "$lt_cv_prog_gnu_ld" = yes; then
18135 version_type=linux
18136 else
18137 version_type=irix
18138 fi ;;
18139 esac
18140 need_lib_prefix=no
18141 need_version=no
18142 soname_spec='${libname}${release}${shared_ext}$major'
18143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18144 case $host_os in
18145 irix5* | nonstopux*)
18146 libsuff= shlibsuff=
18147 ;;
18148 *)
18149 case $LD in # libtool.m4 will add one of these switches to LD
18150 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18151 libsuff= shlibsuff= libmagic=32-bit;;
18152 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18153 libsuff=32 shlibsuff=N32 libmagic=N32;;
18154 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18155 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18156 *) libsuff= shlibsuff= libmagic=never-match;;
18157 esac
18158 ;;
18159 esac
18160 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18161 shlibpath_overrides_runpath=no
18162 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18163 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18164 hardcode_into_libs=yes
18165 ;;
18166
18167 # No shared lib support for Linux oldld, aout, or coff.
18168 linux*oldld* | linux*aout* | linux*coff*)
18169 dynamic_linker=no
18170 ;;
18171
18172 # This must be Linux ELF.
18173
18174 # uclinux* changes (here and below) have been submitted to the libtool
18175 # project, but have not yet been accepted: they are GCC-local changes
18176 # for the time being. (See
18177 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18178 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
18179 version_type=linux
18180 need_lib_prefix=no
18181 need_version=no
18182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18183 soname_spec='${libname}${release}${shared_ext}$major'
18184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18185 shlibpath_var=LD_LIBRARY_PATH
18186 shlibpath_overrides_runpath=no
18187
18188 # Some binutils ld are patched to set DT_RUNPATH
18189 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18190 $as_echo_n "(cached) " >&6
18191 else
18192 lt_cv_shlibpath_overrides_runpath=no
18193 save_LDFLAGS=$LDFLAGS
18194 save_libdir=$libdir
18195 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18196 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h. */
18199
18200 int
18201 main ()
18202 {
18203
18204 ;
18205 return 0;
18206 }
18207 _ACEOF
18208 if ac_fn_c_try_link "$LINENO"; then :
18209 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18210 lt_cv_shlibpath_overrides_runpath=yes
18211 fi
18212 fi
18213 rm -f core conftest.err conftest.$ac_objext \
18214 conftest$ac_exeext conftest.$ac_ext
18215 LDFLAGS=$save_LDFLAGS
18216 libdir=$save_libdir
18217
18218 fi
18219
18220 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18221
18222 # This implies no fast_install, which is unacceptable.
18223 # Some rework will be needed to allow for fast_install
18224 # before this can be enabled.
18225 hardcode_into_libs=yes
18226
18227 # Append ld.so.conf contents to the search path
18228 if test -f /etc/ld.so.conf; then
18229 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' ' '`
18230 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18231 fi
18232
18233 # We used to test for /lib/ld.so.1 and disable shared libraries on
18234 # powerpc, because MkLinux only supported shared libraries with the
18235 # GNU dynamic linker. Since this was broken with cross compilers,
18236 # most powerpc-linux boxes support dynamic linking these days and
18237 # people can always --disable-shared, the test was removed, and we
18238 # assume the GNU/Linux dynamic linker is in use.
18239 dynamic_linker='GNU/Linux ld.so'
18240 ;;
18241
18242 netbsd*)
18243 version_type=sunos
18244 need_lib_prefix=no
18245 need_version=no
18246 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18249 dynamic_linker='NetBSD (a.out) ld.so'
18250 else
18251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18252 soname_spec='${libname}${release}${shared_ext}$major'
18253 dynamic_linker='NetBSD ld.elf_so'
18254 fi
18255 shlibpath_var=LD_LIBRARY_PATH
18256 shlibpath_overrides_runpath=yes
18257 hardcode_into_libs=yes
18258 ;;
18259
18260 newsos6)
18261 version_type=linux
18262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18263 shlibpath_var=LD_LIBRARY_PATH
18264 shlibpath_overrides_runpath=yes
18265 ;;
18266
18267 *nto* | *qnx*)
18268 version_type=qnx
18269 need_lib_prefix=no
18270 need_version=no
18271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18272 soname_spec='${libname}${release}${shared_ext}$major'
18273 shlibpath_var=LD_LIBRARY_PATH
18274 shlibpath_overrides_runpath=no
18275 hardcode_into_libs=yes
18276 dynamic_linker='ldqnx.so'
18277 ;;
18278
18279 openbsd*)
18280 version_type=sunos
18281 sys_lib_dlsearch_path_spec="/usr/lib"
18282 need_lib_prefix=no
18283 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18284 case $host_os in
18285 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18286 *) need_version=no ;;
18287 esac
18288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18290 shlibpath_var=LD_LIBRARY_PATH
18291 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18292 case $host_os in
18293 openbsd2.[89] | openbsd2.[89].*)
18294 shlibpath_overrides_runpath=no
18295 ;;
18296 *)
18297 shlibpath_overrides_runpath=yes
18298 ;;
18299 esac
18300 else
18301 shlibpath_overrides_runpath=yes
18302 fi
18303 ;;
18304
18305 os2*)
18306 libname_spec='$name'
18307 shrext_cmds=".dll"
18308 need_lib_prefix=no
18309 library_names_spec='$libname${shared_ext} $libname.a'
18310 dynamic_linker='OS/2 ld.exe'
18311 shlibpath_var=LIBPATH
18312 ;;
18313
18314 osf3* | osf4* | osf5*)
18315 version_type=osf
18316 need_lib_prefix=no
18317 need_version=no
18318 soname_spec='${libname}${release}${shared_ext}$major'
18319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18320 shlibpath_var=LD_LIBRARY_PATH
18321 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18322 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18323 ;;
18324
18325 rdos*)
18326 dynamic_linker=no
18327 ;;
18328
18329 solaris*)
18330 version_type=linux
18331 need_lib_prefix=no
18332 need_version=no
18333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18334 soname_spec='${libname}${release}${shared_ext}$major'
18335 shlibpath_var=LD_LIBRARY_PATH
18336 shlibpath_overrides_runpath=yes
18337 hardcode_into_libs=yes
18338 # ldd complains unless libraries are executable
18339 postinstall_cmds='chmod +x $lib'
18340 ;;
18341
18342 sunos4*)
18343 version_type=sunos
18344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18345 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18346 shlibpath_var=LD_LIBRARY_PATH
18347 shlibpath_overrides_runpath=yes
18348 if test "$with_gnu_ld" = yes; then
18349 need_lib_prefix=no
18350 fi
18351 need_version=yes
18352 ;;
18353
18354 sysv4 | sysv4.3*)
18355 version_type=linux
18356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18357 soname_spec='${libname}${release}${shared_ext}$major'
18358 shlibpath_var=LD_LIBRARY_PATH
18359 case $host_vendor in
18360 sni)
18361 shlibpath_overrides_runpath=no
18362 need_lib_prefix=no
18363 runpath_var=LD_RUN_PATH
18364 ;;
18365 siemens)
18366 need_lib_prefix=no
18367 ;;
18368 motorola)
18369 need_lib_prefix=no
18370 need_version=no
18371 shlibpath_overrides_runpath=no
18372 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18373 ;;
18374 esac
18375 ;;
18376
18377 sysv4*MP*)
18378 if test -d /usr/nec ;then
18379 version_type=linux
18380 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18381 soname_spec='$libname${shared_ext}.$major'
18382 shlibpath_var=LD_LIBRARY_PATH
18383 fi
18384 ;;
18385
18386 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18387 version_type=freebsd-elf
18388 need_lib_prefix=no
18389 need_version=no
18390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18391 soname_spec='${libname}${release}${shared_ext}$major'
18392 shlibpath_var=LD_LIBRARY_PATH
18393 shlibpath_overrides_runpath=yes
18394 hardcode_into_libs=yes
18395 if test "$with_gnu_ld" = yes; then
18396 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18397 else
18398 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18399 case $host_os in
18400 sco3.2v5*)
18401 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18402 ;;
18403 esac
18404 fi
18405 sys_lib_dlsearch_path_spec='/usr/lib'
18406 ;;
18407
18408 tpf*)
18409 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18410 version_type=linux
18411 need_lib_prefix=no
18412 need_version=no
18413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18414 shlibpath_var=LD_LIBRARY_PATH
18415 shlibpath_overrides_runpath=no
18416 hardcode_into_libs=yes
18417 ;;
18418
18419 uts4*)
18420 version_type=linux
18421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18422 soname_spec='${libname}${release}${shared_ext}$major'
18423 shlibpath_var=LD_LIBRARY_PATH
18424 ;;
18425
18426 *)
18427 dynamic_linker=no
18428 ;;
18429 esac
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18431 $as_echo "$dynamic_linker" >&6; }
18432 test "$dynamic_linker" = no && can_build_shared=no
18433
18434 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18435 if test "$GCC" = yes; then
18436 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18437 fi
18438
18439 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18440 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18441 fi
18442 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18443 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18444 fi
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18538 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18539 hardcode_action=
18540 if test -n "$hardcode_libdir_flag_spec" ||
18541 test -n "$runpath_var" ||
18542 test "X$hardcode_automatic" = "Xyes" ; then
18543
18544 # We can hardcode non-existent directories.
18545 if test "$hardcode_direct" != no &&
18546 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18547 # have to relink, otherwise we might link with an installed library
18548 # when we should be linking with a yet-to-be-installed one
18549 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18550 test "$hardcode_minus_L" != no; then
18551 # Linking always hardcodes the temporary library directory.
18552 hardcode_action=relink
18553 else
18554 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18555 hardcode_action=immediate
18556 fi
18557 else
18558 # We cannot hardcode anything, or else we can only hardcode existing
18559 # directories.
18560 hardcode_action=unsupported
18561 fi
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18563 $as_echo "$hardcode_action" >&6; }
18564
18565 if test "$hardcode_action" = relink ||
18566 test "$inherit_rpath" = yes; then
18567 # Fast installation is not supported
18568 enable_fast_install=no
18569 elif test "$shlibpath_overrides_runpath" = yes ||
18570 test "$enable_shared" = no; then
18571 # Fast installation is not necessary
18572 enable_fast_install=needless
18573 fi
18574
18575
18576
18577
18578
18579
18580 if test "x$enable_dlopen" != xyes; then
18581 enable_dlopen=unknown
18582 enable_dlopen_self=unknown
18583 enable_dlopen_self_static=unknown
18584 else
18585 lt_cv_dlopen=no
18586 lt_cv_dlopen_libs=
18587
18588 case $host_os in
18589 beos*)
18590 lt_cv_dlopen="load_add_on"
18591 lt_cv_dlopen_libs=
18592 lt_cv_dlopen_self=yes
18593 ;;
18594
18595 mingw* | pw32* | cegcc*)
18596 lt_cv_dlopen="LoadLibrary"
18597 lt_cv_dlopen_libs=
18598 ;;
18599
18600 cygwin*)
18601 lt_cv_dlopen="dlopen"
18602 lt_cv_dlopen_libs=
18603 ;;
18604
18605 darwin*)
18606 # if libdl is installed we need to link against it
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18608 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18609 if ${ac_cv_lib_dl_dlopen+:} false; then :
18610 $as_echo_n "(cached) " >&6
18611 else
18612 ac_check_lib_save_LIBS=$LIBS
18613 LIBS="-ldl $LIBS"
18614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18615 /* end confdefs.h. */
18616
18617 /* Override any GCC internal prototype to avoid an error.
18618 Use char because int might match the return type of a GCC
18619 builtin and then its argument prototype would still apply. */
18620 #ifdef __cplusplus
18621 extern "C"
18622 #endif
18623 char dlopen ();
18624 int
18625 main ()
18626 {
18627 return dlopen ();
18628 ;
18629 return 0;
18630 }
18631 _ACEOF
18632 if ac_fn_c_try_link "$LINENO"; then :
18633 ac_cv_lib_dl_dlopen=yes
18634 else
18635 ac_cv_lib_dl_dlopen=no
18636 fi
18637 rm -f core conftest.err conftest.$ac_objext \
18638 conftest$ac_exeext conftest.$ac_ext
18639 LIBS=$ac_check_lib_save_LIBS
18640 fi
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18642 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18643 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18644 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18645 else
18646
18647 lt_cv_dlopen="dyld"
18648 lt_cv_dlopen_libs=
18649 lt_cv_dlopen_self=yes
18650
18651 fi
18652
18653 ;;
18654
18655 *)
18656 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18657 if test "x$ac_cv_func_shl_load" = xyes; then :
18658 lt_cv_dlopen="shl_load"
18659 else
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18661 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18662 if ${ac_cv_lib_dld_shl_load+:} false; then :
18663 $as_echo_n "(cached) " >&6
18664 else
18665 ac_check_lib_save_LIBS=$LIBS
18666 LIBS="-ldld $LIBS"
18667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18668 /* end confdefs.h. */
18669
18670 /* Override any GCC internal prototype to avoid an error.
18671 Use char because int might match the return type of a GCC
18672 builtin and then its argument prototype would still apply. */
18673 #ifdef __cplusplus
18674 extern "C"
18675 #endif
18676 char shl_load ();
18677 int
18678 main ()
18679 {
18680 return shl_load ();
18681 ;
18682 return 0;
18683 }
18684 _ACEOF
18685 if ac_fn_c_try_link "$LINENO"; then :
18686 ac_cv_lib_dld_shl_load=yes
18687 else
18688 ac_cv_lib_dld_shl_load=no
18689 fi
18690 rm -f core conftest.err conftest.$ac_objext \
18691 conftest$ac_exeext conftest.$ac_ext
18692 LIBS=$ac_check_lib_save_LIBS
18693 fi
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18695 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18696 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18697 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18698 else
18699 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18700 if test "x$ac_cv_func_dlopen" = xyes; then :
18701 lt_cv_dlopen="dlopen"
18702 else
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18704 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18705 if ${ac_cv_lib_dl_dlopen+:} false; then :
18706 $as_echo_n "(cached) " >&6
18707 else
18708 ac_check_lib_save_LIBS=$LIBS
18709 LIBS="-ldl $LIBS"
18710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18711 /* end confdefs.h. */
18712
18713 /* Override any GCC internal prototype to avoid an error.
18714 Use char because int might match the return type of a GCC
18715 builtin and then its argument prototype would still apply. */
18716 #ifdef __cplusplus
18717 extern "C"
18718 #endif
18719 char dlopen ();
18720 int
18721 main ()
18722 {
18723 return dlopen ();
18724 ;
18725 return 0;
18726 }
18727 _ACEOF
18728 if ac_fn_c_try_link "$LINENO"; then :
18729 ac_cv_lib_dl_dlopen=yes
18730 else
18731 ac_cv_lib_dl_dlopen=no
18732 fi
18733 rm -f core conftest.err conftest.$ac_objext \
18734 conftest$ac_exeext conftest.$ac_ext
18735 LIBS=$ac_check_lib_save_LIBS
18736 fi
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18738 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18739 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18740 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18741 else
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18743 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18744 if ${ac_cv_lib_svld_dlopen+:} false; then :
18745 $as_echo_n "(cached) " >&6
18746 else
18747 ac_check_lib_save_LIBS=$LIBS
18748 LIBS="-lsvld $LIBS"
18749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18750 /* end confdefs.h. */
18751
18752 /* Override any GCC internal prototype to avoid an error.
18753 Use char because int might match the return type of a GCC
18754 builtin and then its argument prototype would still apply. */
18755 #ifdef __cplusplus
18756 extern "C"
18757 #endif
18758 char dlopen ();
18759 int
18760 main ()
18761 {
18762 return dlopen ();
18763 ;
18764 return 0;
18765 }
18766 _ACEOF
18767 if ac_fn_c_try_link "$LINENO"; then :
18768 ac_cv_lib_svld_dlopen=yes
18769 else
18770 ac_cv_lib_svld_dlopen=no
18771 fi
18772 rm -f core conftest.err conftest.$ac_objext \
18773 conftest$ac_exeext conftest.$ac_ext
18774 LIBS=$ac_check_lib_save_LIBS
18775 fi
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18777 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18778 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18779 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18780 else
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18782 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18783 if ${ac_cv_lib_dld_dld_link+:} false; then :
18784 $as_echo_n "(cached) " >&6
18785 else
18786 ac_check_lib_save_LIBS=$LIBS
18787 LIBS="-ldld $LIBS"
18788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18789 /* end confdefs.h. */
18790
18791 /* Override any GCC internal prototype to avoid an error.
18792 Use char because int might match the return type of a GCC
18793 builtin and then its argument prototype would still apply. */
18794 #ifdef __cplusplus
18795 extern "C"
18796 #endif
18797 char dld_link ();
18798 int
18799 main ()
18800 {
18801 return dld_link ();
18802 ;
18803 return 0;
18804 }
18805 _ACEOF
18806 if ac_fn_c_try_link "$LINENO"; then :
18807 ac_cv_lib_dld_dld_link=yes
18808 else
18809 ac_cv_lib_dld_dld_link=no
18810 fi
18811 rm -f core conftest.err conftest.$ac_objext \
18812 conftest$ac_exeext conftest.$ac_ext
18813 LIBS=$ac_check_lib_save_LIBS
18814 fi
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18816 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18817 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18818 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18819 fi
18820
18821
18822 fi
18823
18824
18825 fi
18826
18827
18828 fi
18829
18830
18831 fi
18832
18833
18834 fi
18835
18836 ;;
18837 esac
18838
18839 if test "x$lt_cv_dlopen" != xno; then
18840 enable_dlopen=yes
18841 else
18842 enable_dlopen=no
18843 fi
18844
18845 case $lt_cv_dlopen in
18846 dlopen)
18847 save_CPPFLAGS="$CPPFLAGS"
18848 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18849
18850 save_LDFLAGS="$LDFLAGS"
18851 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18852
18853 save_LIBS="$LIBS"
18854 LIBS="$lt_cv_dlopen_libs $LIBS"
18855
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18857 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18858 if ${lt_cv_dlopen_self+:} false; then :
18859 $as_echo_n "(cached) " >&6
18860 else
18861 if test "$cross_compiling" = yes; then :
18862 lt_cv_dlopen_self=cross
18863 else
18864 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18865 lt_status=$lt_dlunknown
18866 cat > conftest.$ac_ext <<_LT_EOF
18867 #line 18867 "configure"
18868 #include "confdefs.h"
18869
18870 #if HAVE_DLFCN_H
18871 #include <dlfcn.h>
18872 #endif
18873
18874 #include <stdio.h>
18875
18876 #ifdef RTLD_GLOBAL
18877 # define LT_DLGLOBAL RTLD_GLOBAL
18878 #else
18879 # ifdef DL_GLOBAL
18880 # define LT_DLGLOBAL DL_GLOBAL
18881 # else
18882 # define LT_DLGLOBAL 0
18883 # endif
18884 #endif
18885
18886 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18887 find out it does not work in some platform. */
18888 #ifndef LT_DLLAZY_OR_NOW
18889 # ifdef RTLD_LAZY
18890 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18891 # else
18892 # ifdef DL_LAZY
18893 # define LT_DLLAZY_OR_NOW DL_LAZY
18894 # else
18895 # ifdef RTLD_NOW
18896 # define LT_DLLAZY_OR_NOW RTLD_NOW
18897 # else
18898 # ifdef DL_NOW
18899 # define LT_DLLAZY_OR_NOW DL_NOW
18900 # else
18901 # define LT_DLLAZY_OR_NOW 0
18902 # endif
18903 # endif
18904 # endif
18905 # endif
18906 #endif
18907
18908 /* When -fvisbility=hidden is used, assume the code has been annotated
18909 correspondingly for the symbols needed. */
18910 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18911 void fnord () __attribute__((visibility("default")));
18912 #endif
18913
18914 void fnord () { int i=42; }
18915 int main ()
18916 {
18917 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18918 int status = $lt_dlunknown;
18919
18920 if (self)
18921 {
18922 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18923 else
18924 {
18925 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18926 else puts (dlerror ());
18927 }
18928 /* dlclose (self); */
18929 }
18930 else
18931 puts (dlerror ());
18932
18933 return status;
18934 }
18935 _LT_EOF
18936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18937 (eval $ac_link) 2>&5
18938 ac_status=$?
18939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18940 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18941 (./conftest; exit; ) >&5 2>/dev/null
18942 lt_status=$?
18943 case x$lt_status in
18944 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18945 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18946 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18947 esac
18948 else :
18949 # compilation failed
18950 lt_cv_dlopen_self=no
18951 fi
18952 fi
18953 rm -fr conftest*
18954
18955
18956 fi
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18958 $as_echo "$lt_cv_dlopen_self" >&6; }
18959
18960 if test "x$lt_cv_dlopen_self" = xyes; then
18961 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18963 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18964 if ${lt_cv_dlopen_self_static+:} false; then :
18965 $as_echo_n "(cached) " >&6
18966 else
18967 if test "$cross_compiling" = yes; then :
18968 lt_cv_dlopen_self_static=cross
18969 else
18970 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18971 lt_status=$lt_dlunknown
18972 cat > conftest.$ac_ext <<_LT_EOF
18973 #line 18973 "configure"
18974 #include "confdefs.h"
18975
18976 #if HAVE_DLFCN_H
18977 #include <dlfcn.h>
18978 #endif
18979
18980 #include <stdio.h>
18981
18982 #ifdef RTLD_GLOBAL
18983 # define LT_DLGLOBAL RTLD_GLOBAL
18984 #else
18985 # ifdef DL_GLOBAL
18986 # define LT_DLGLOBAL DL_GLOBAL
18987 # else
18988 # define LT_DLGLOBAL 0
18989 # endif
18990 #endif
18991
18992 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18993 find out it does not work in some platform. */
18994 #ifndef LT_DLLAZY_OR_NOW
18995 # ifdef RTLD_LAZY
18996 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18997 # else
18998 # ifdef DL_LAZY
18999 # define LT_DLLAZY_OR_NOW DL_LAZY
19000 # else
19001 # ifdef RTLD_NOW
19002 # define LT_DLLAZY_OR_NOW RTLD_NOW
19003 # else
19004 # ifdef DL_NOW
19005 # define LT_DLLAZY_OR_NOW DL_NOW
19006 # else
19007 # define LT_DLLAZY_OR_NOW 0
19008 # endif
19009 # endif
19010 # endif
19011 # endif
19012 #endif
19013
19014 /* When -fvisbility=hidden is used, assume the code has been annotated
19015 correspondingly for the symbols needed. */
19016 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19017 void fnord () __attribute__((visibility("default")));
19018 #endif
19019
19020 void fnord () { int i=42; }
19021 int main ()
19022 {
19023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19024 int status = $lt_dlunknown;
19025
19026 if (self)
19027 {
19028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19029 else
19030 {
19031 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19032 else puts (dlerror ());
19033 }
19034 /* dlclose (self); */
19035 }
19036 else
19037 puts (dlerror ());
19038
19039 return status;
19040 }
19041 _LT_EOF
19042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19043 (eval $ac_link) 2>&5
19044 ac_status=$?
19045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19046 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19047 (./conftest; exit; ) >&5 2>/dev/null
19048 lt_status=$?
19049 case x$lt_status in
19050 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19051 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19052 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19053 esac
19054 else :
19055 # compilation failed
19056 lt_cv_dlopen_self_static=no
19057 fi
19058 fi
19059 rm -fr conftest*
19060
19061
19062 fi
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19064 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19065 fi
19066
19067 CPPFLAGS="$save_CPPFLAGS"
19068 LDFLAGS="$save_LDFLAGS"
19069 LIBS="$save_LIBS"
19070 ;;
19071 esac
19072
19073 case $lt_cv_dlopen_self in
19074 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19075 *) enable_dlopen_self=unknown ;;
19076 esac
19077
19078 case $lt_cv_dlopen_self_static in
19079 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19080 *) enable_dlopen_self_static=unknown ;;
19081 esac
19082 fi
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100 striplib=
19101 old_striplib=
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19103 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19104 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19105 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19106 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19108 $as_echo "yes" >&6; }
19109 else
19110 # FIXME - insert some real tests, host_os isn't really good enough
19111 case $host_os in
19112 darwin*)
19113 if test -n "$STRIP" ; then
19114 striplib="$STRIP -x"
19115 old_striplib="$STRIP -S"
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19117 $as_echo "yes" >&6; }
19118 else
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19120 $as_echo "no" >&6; }
19121 fi
19122 ;;
19123 *)
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19125 $as_echo "no" >&6; }
19126 ;;
19127 esac
19128 fi
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141 # Report which library types will actually be built
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19143 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19145 $as_echo "$can_build_shared" >&6; }
19146
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19148 $as_echo_n "checking whether to build shared libraries... " >&6; }
19149 test "$can_build_shared" = "no" && enable_shared=no
19150
19151 # On AIX, shared libraries and static libraries use the same namespace, and
19152 # are all built from PIC.
19153 case $host_os in
19154 aix3*)
19155 test "$enable_shared" = yes && enable_static=no
19156 if test -n "$RANLIB"; then
19157 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19158 postinstall_cmds='$RANLIB $lib'
19159 fi
19160 ;;
19161
19162 aix[4-9]*)
19163 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19164 test "$enable_shared" = yes && enable_static=no
19165 fi
19166 ;;
19167 esac
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19169 $as_echo "$enable_shared" >&6; }
19170
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19172 $as_echo_n "checking whether to build static libraries... " >&6; }
19173 # Make sure either enable_shared or enable_static is yes.
19174 test "$enable_shared" = yes || enable_static=yes
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19176 $as_echo "$enable_static" >&6; }
19177
19178
19179
19180
19181 fi
19182 ac_ext=cpp
19183 ac_cpp='$CXXCPP $CPPFLAGS'
19184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19187
19188 CC="$lt_save_CC"
19189
19190 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19191 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19192 (test "X$CXX" != "Xg++"))) ; then
19193 ac_ext=cpp
19194 ac_cpp='$CXXCPP $CPPFLAGS'
19195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19199 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19200 if test -z "$CXXCPP"; then
19201 if ${ac_cv_prog_CXXCPP+:} false; then :
19202 $as_echo_n "(cached) " >&6
19203 else
19204 # Double quotes because CXXCPP needs to be expanded
19205 for CXXCPP in "$CXX -E" "/lib/cpp"
19206 do
19207 ac_preproc_ok=false
19208 for ac_cxx_preproc_warn_flag in '' yes
19209 do
19210 # Use a header file that comes with gcc, so configuring glibc
19211 # with a fresh cross-compiler works.
19212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19213 # <limits.h> exists even on freestanding compilers.
19214 # On the NeXT, cc -E runs the code through the compiler's parser,
19215 # not just through cpp. "Syntax error" is here to catch this case.
19216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19217 /* end confdefs.h. */
19218 #ifdef __STDC__
19219 # include <limits.h>
19220 #else
19221 # include <assert.h>
19222 #endif
19223 Syntax error
19224 _ACEOF
19225 if ac_fn_cxx_try_cpp "$LINENO"; then :
19226
19227 else
19228 # Broken: fails on valid input.
19229 continue
19230 fi
19231 rm -f conftest.err conftest.i conftest.$ac_ext
19232
19233 # OK, works on sane cases. Now check whether nonexistent headers
19234 # can be detected and how.
19235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19236 /* end confdefs.h. */
19237 #include <ac_nonexistent.h>
19238 _ACEOF
19239 if ac_fn_cxx_try_cpp "$LINENO"; then :
19240 # Broken: success on invalid input.
19241 continue
19242 else
19243 # Passes both tests.
19244 ac_preproc_ok=:
19245 break
19246 fi
19247 rm -f conftest.err conftest.i conftest.$ac_ext
19248
19249 done
19250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19251 rm -f conftest.i conftest.err conftest.$ac_ext
19252 if $ac_preproc_ok; then :
19253 break
19254 fi
19255
19256 done
19257 ac_cv_prog_CXXCPP=$CXXCPP
19258
19259 fi
19260 CXXCPP=$ac_cv_prog_CXXCPP
19261 else
19262 ac_cv_prog_CXXCPP=$CXXCPP
19263 fi
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19265 $as_echo "$CXXCPP" >&6; }
19266 ac_preproc_ok=false
19267 for ac_cxx_preproc_warn_flag in '' yes
19268 do
19269 # Use a header file that comes with gcc, so configuring glibc
19270 # with a fresh cross-compiler works.
19271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19272 # <limits.h> exists even on freestanding compilers.
19273 # On the NeXT, cc -E runs the code through the compiler's parser,
19274 # not just through cpp. "Syntax error" is here to catch this case.
19275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h. */
19277 #ifdef __STDC__
19278 # include <limits.h>
19279 #else
19280 # include <assert.h>
19281 #endif
19282 Syntax error
19283 _ACEOF
19284 if ac_fn_cxx_try_cpp "$LINENO"; then :
19285
19286 else
19287 # Broken: fails on valid input.
19288 continue
19289 fi
19290 rm -f conftest.err conftest.i conftest.$ac_ext
19291
19292 # OK, works on sane cases. Now check whether nonexistent headers
19293 # can be detected and how.
19294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19295 /* end confdefs.h. */
19296 #include <ac_nonexistent.h>
19297 _ACEOF
19298 if ac_fn_cxx_try_cpp "$LINENO"; then :
19299 # Broken: success on invalid input.
19300 continue
19301 else
19302 # Passes both tests.
19303 ac_preproc_ok=:
19304 break
19305 fi
19306 rm -f conftest.err conftest.i conftest.$ac_ext
19307
19308 done
19309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19310 rm -f conftest.i conftest.err conftest.$ac_ext
19311 if $ac_preproc_ok; then :
19312
19313 else
19314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19316 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19317 See \`config.log' for more details" "$LINENO" 5; }
19318 fi
19319
19320 ac_ext=cpp
19321 ac_cpp='$CXXCPP $CPPFLAGS'
19322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19325
19326 else
19327 _lt_caught_CXX_error=yes
19328 fi
19329
19330 ac_ext=cpp
19331 ac_cpp='$CXXCPP $CPPFLAGS'
19332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19335
19336 archive_cmds_need_lc_CXX=no
19337 allow_undefined_flag_CXX=
19338 always_export_symbols_CXX=no
19339 archive_expsym_cmds_CXX=
19340 compiler_needs_object_CXX=no
19341 export_dynamic_flag_spec_CXX=
19342 hardcode_direct_CXX=no
19343 hardcode_direct_absolute_CXX=no
19344 hardcode_libdir_flag_spec_CXX=
19345 hardcode_libdir_flag_spec_ld_CXX=
19346 hardcode_libdir_separator_CXX=
19347 hardcode_minus_L_CXX=no
19348 hardcode_shlibpath_var_CXX=unsupported
19349 hardcode_automatic_CXX=no
19350 inherit_rpath_CXX=no
19351 module_cmds_CXX=
19352 module_expsym_cmds_CXX=
19353 link_all_deplibs_CXX=unknown
19354 old_archive_cmds_CXX=$old_archive_cmds
19355 reload_flag_CXX=$reload_flag
19356 reload_cmds_CXX=$reload_cmds
19357 no_undefined_flag_CXX=
19358 whole_archive_flag_spec_CXX=
19359 enable_shared_with_static_runtimes_CXX=no
19360
19361 # Source file extension for C++ test sources.
19362 ac_ext=cpp
19363
19364 # Object file extension for compiled C++ test sources.
19365 objext=o
19366 objext_CXX=$objext
19367
19368 # No sense in running all these tests if we already determined that
19369 # the CXX compiler isn't working. Some variables (like enable_shared)
19370 # are currently assumed to apply to all compilers on this platform,
19371 # and will be corrupted by setting them based on a non-working compiler.
19372 if test "$_lt_caught_CXX_error" != yes; then
19373 # Code to be used in simple compile tests
19374 lt_simple_compile_test_code="int some_variable = 0;"
19375
19376 # Code to be used in simple link tests
19377 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19378
19379 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19380
19381
19382
19383
19384
19385
19386 # If no C compiler was specified, use CC.
19387 LTCC=${LTCC-"$CC"}
19388
19389 # If no C compiler flags were specified, use CFLAGS.
19390 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19391
19392 # Allow CC to be a program name with arguments.
19393 compiler=$CC
19394
19395
19396 # save warnings/boilerplate of simple test code
19397 ac_outfile=conftest.$ac_objext
19398 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19399 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19400 _lt_compiler_boilerplate=`cat conftest.err`
19401 $RM conftest*
19402
19403 ac_outfile=conftest.$ac_objext
19404 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19405 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19406 _lt_linker_boilerplate=`cat conftest.err`
19407 $RM -r conftest*
19408
19409
19410 # Allow CC to be a program name with arguments.
19411 lt_save_CC=$CC
19412 lt_save_LD=$LD
19413 lt_save_GCC=$GCC
19414 GCC=$GXX
19415 lt_save_with_gnu_ld=$with_gnu_ld
19416 lt_save_path_LD=$lt_cv_path_LD
19417 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19418 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19419 else
19420 $as_unset lt_cv_prog_gnu_ld
19421 fi
19422 if test -n "${lt_cv_path_LDCXX+set}"; then
19423 lt_cv_path_LD=$lt_cv_path_LDCXX
19424 else
19425 $as_unset lt_cv_path_LD
19426 fi
19427 test -z "${LDCXX+set}" || LD=$LDCXX
19428 CC=${CXX-"c++"}
19429 compiler=$CC
19430 compiler_CXX=$CC
19431 for cc_temp in $compiler""; do
19432 case $cc_temp in
19433 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19434 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19435 \-*) ;;
19436 *) break;;
19437 esac
19438 done
19439 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19440
19441
19442 if test -n "$compiler"; then
19443 # We don't want -fno-exception when compiling C++ code, so set the
19444 # no_builtin_flag separately
19445 if test "$GXX" = yes; then
19446 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19447 else
19448 lt_prog_compiler_no_builtin_flag_CXX=
19449 fi
19450
19451 if test "$GXX" = yes; then
19452 # Set up default GNU C++ configuration
19453
19454
19455
19456 # Check whether --with-gnu-ld was given.
19457 if test "${with_gnu_ld+set}" = set; then :
19458 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19459 else
19460 with_gnu_ld=no
19461 fi
19462
19463 ac_prog=ld
19464 if test "$GCC" = yes; then
19465 # Check if gcc -print-prog-name=ld gives a path.
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19467 $as_echo_n "checking for ld used by $CC... " >&6; }
19468 case $host in
19469 *-*-mingw*)
19470 # gcc leaves a trailing carriage return which upsets mingw
19471 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19472 *)
19473 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19474 esac
19475 case $ac_prog in
19476 # Accept absolute paths.
19477 [\\/]* | ?:[\\/]*)
19478 re_direlt='/[^/][^/]*/\.\./'
19479 # Canonicalize the pathname of ld
19480 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19481 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19482 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19483 done
19484 test -z "$LD" && LD="$ac_prog"
19485 ;;
19486 "")
19487 # If it fails, then pretend we aren't using GCC.
19488 ac_prog=ld
19489 ;;
19490 *)
19491 # If it is relative, then search for the first ld in PATH.
19492 with_gnu_ld=unknown
19493 ;;
19494 esac
19495 elif test "$with_gnu_ld" = yes; then
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19497 $as_echo_n "checking for GNU ld... " >&6; }
19498 else
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19500 $as_echo_n "checking for non-GNU ld... " >&6; }
19501 fi
19502 if ${lt_cv_path_LD+:} false; then :
19503 $as_echo_n "(cached) " >&6
19504 else
19505 if test -z "$LD"; then
19506 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19507 for ac_dir in $PATH; do
19508 IFS="$lt_save_ifs"
19509 test -z "$ac_dir" && ac_dir=.
19510 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19511 lt_cv_path_LD="$ac_dir/$ac_prog"
19512 # Check to see if the program is GNU ld. I'd rather use --version,
19513 # but apparently some variants of GNU ld only accept -v.
19514 # Break only if it was the GNU/non-GNU ld that we prefer.
19515 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19516 *GNU* | *'with BFD'*)
19517 test "$with_gnu_ld" != no && break
19518 ;;
19519 *)
19520 test "$with_gnu_ld" != yes && break
19521 ;;
19522 esac
19523 fi
19524 done
19525 IFS="$lt_save_ifs"
19526 else
19527 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19528 fi
19529 fi
19530
19531 LD="$lt_cv_path_LD"
19532 if test -n "$LD"; then
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19534 $as_echo "$LD" >&6; }
19535 else
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19537 $as_echo "no" >&6; }
19538 fi
19539 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19541 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19542 if ${lt_cv_prog_gnu_ld+:} false; then :
19543 $as_echo_n "(cached) " >&6
19544 else
19545 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19546 case `$LD -v 2>&1 </dev/null` in
19547 *GNU* | *'with BFD'*)
19548 lt_cv_prog_gnu_ld=yes
19549 ;;
19550 *)
19551 lt_cv_prog_gnu_ld=no
19552 ;;
19553 esac
19554 fi
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19556 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19557 with_gnu_ld=$lt_cv_prog_gnu_ld
19558
19559
19560
19561
19562
19563
19564
19565 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19566 # archiving commands below assume that GNU ld is being used.
19567 if test "$with_gnu_ld" = yes; then
19568 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19569 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'
19570
19571 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19572 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19573
19574 # If archive_cmds runs LD, not CC, wlarc should be empty
19575 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19576 # investigate it a little bit more. (MM)
19577 wlarc='${wl}'
19578
19579 # ancient GNU ld didn't support --whole-archive et. al.
19580 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19581 $GREP 'no-whole-archive' > /dev/null; then
19582 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19583 else
19584 whole_archive_flag_spec_CXX=
19585 fi
19586 else
19587 with_gnu_ld=no
19588 wlarc=
19589
19590 # A generic and very simple default shared library creation
19591 # command for GNU C++ for the case where it uses the native
19592 # linker, instead of GNU ld. If possible, this setting should
19593 # overridden to take advantage of the native linker features on
19594 # the platform it is being used on.
19595 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19596 fi
19597
19598 # Commands to make compiler produce verbose output that lists
19599 # what "hidden" libraries, object files and flags are used when
19600 # linking a shared library.
19601 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19602
19603 else
19604 GXX=no
19605 with_gnu_ld=no
19606 wlarc=
19607 fi
19608
19609 # PORTME: fill in a description of your system's C++ link characteristics
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19611 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19612 ld_shlibs_CXX=yes
19613 case $host_os in
19614 aix3*)
19615 # FIXME: insert proper C++ library support
19616 ld_shlibs_CXX=no
19617 ;;
19618 aix[4-9]*)
19619 if test "$host_cpu" = ia64; then
19620 # On IA64, the linker does run time linking by default, so we don't
19621 # have to do anything special.
19622 aix_use_runtimelinking=no
19623 exp_sym_flag='-Bexport'
19624 no_entry_flag=""
19625 else
19626 aix_use_runtimelinking=no
19627
19628 # Test if we are trying to use run time linking or normal
19629 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19630 # need to do runtime linking.
19631 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19632 for ld_flag in $LDFLAGS; do
19633 case $ld_flag in
19634 *-brtl*)
19635 aix_use_runtimelinking=yes
19636 break
19637 ;;
19638 esac
19639 done
19640 ;;
19641 esac
19642
19643 exp_sym_flag='-bexport'
19644 no_entry_flag='-bnoentry'
19645 fi
19646
19647 # When large executables or shared objects are built, AIX ld can
19648 # have problems creating the table of contents. If linking a library
19649 # or program results in "error TOC overflow" add -mminimal-toc to
19650 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19651 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19652
19653 archive_cmds_CXX=''
19654 hardcode_direct_CXX=yes
19655 hardcode_direct_absolute_CXX=yes
19656 hardcode_libdir_separator_CXX=':'
19657 link_all_deplibs_CXX=yes
19658 file_list_spec_CXX='${wl}-f,'
19659
19660 if test "$GXX" = yes; then
19661 case $host_os in aix4.[012]|aix4.[012].*)
19662 # We only want to do this on AIX 4.2 and lower, the check
19663 # below for broken collect2 doesn't work under 4.3+
19664 collect2name=`${CC} -print-prog-name=collect2`
19665 if test -f "$collect2name" &&
19666 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19667 then
19668 # We have reworked collect2
19669 :
19670 else
19671 # We have old collect2
19672 hardcode_direct_CXX=unsupported
19673 # It fails to find uninstalled libraries when the uninstalled
19674 # path is not listed in the libpath. Setting hardcode_minus_L
19675 # to unsupported forces relinking
19676 hardcode_minus_L_CXX=yes
19677 hardcode_libdir_flag_spec_CXX='-L$libdir'
19678 hardcode_libdir_separator_CXX=
19679 fi
19680 esac
19681 shared_flag='-shared'
19682 if test "$aix_use_runtimelinking" = yes; then
19683 shared_flag="$shared_flag "'${wl}-G'
19684 fi
19685 else
19686 # not using gcc
19687 if test "$host_cpu" = ia64; then
19688 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19689 # chokes on -Wl,-G. The following line is correct:
19690 shared_flag='-G'
19691 else
19692 if test "$aix_use_runtimelinking" = yes; then
19693 shared_flag='${wl}-G'
19694 else
19695 shared_flag='${wl}-bM:SRE'
19696 fi
19697 fi
19698 fi
19699
19700 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19701 # It seems that -bexpall does not export symbols beginning with
19702 # underscore (_), so it is better to generate a list of symbols to
19703 # export.
19704 always_export_symbols_CXX=yes
19705 if test "$aix_use_runtimelinking" = yes; then
19706 # Warning - without using the other runtime loading flags (-brtl),
19707 # -berok will link without error, but may produce a broken library.
19708 allow_undefined_flag_CXX='-berok'
19709 # Determine the default libpath from the value encoded in an empty
19710 # executable.
19711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19712 /* end confdefs.h. */
19713
19714 int
19715 main ()
19716 {
19717
19718 ;
19719 return 0;
19720 }
19721 _ACEOF
19722 if ac_fn_cxx_try_link "$LINENO"; then :
19723
19724 lt_aix_libpath_sed='
19725 /Import File Strings/,/^$/ {
19726 /^0/ {
19727 s/^0 *\(.*\)$/\1/
19728 p
19729 }
19730 }'
19731 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19732 # Check for a 64-bit object if we didn't find anything.
19733 if test -z "$aix_libpath"; then
19734 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19735 fi
19736 fi
19737 rm -f core conftest.err conftest.$ac_objext \
19738 conftest$ac_exeext conftest.$ac_ext
19739 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19740
19741 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19742
19743 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"
19744 else
19745 if test "$host_cpu" = ia64; then
19746 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19747 allow_undefined_flag_CXX="-z nodefs"
19748 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"
19749 else
19750 # Determine the default libpath from the value encoded in an
19751 # empty executable.
19752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19753 /* end confdefs.h. */
19754
19755 int
19756 main ()
19757 {
19758
19759 ;
19760 return 0;
19761 }
19762 _ACEOF
19763 if ac_fn_cxx_try_link "$LINENO"; then :
19764
19765 lt_aix_libpath_sed='
19766 /Import File Strings/,/^$/ {
19767 /^0/ {
19768 s/^0 *\(.*\)$/\1/
19769 p
19770 }
19771 }'
19772 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19773 # Check for a 64-bit object if we didn't find anything.
19774 if test -z "$aix_libpath"; then
19775 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19776 fi
19777 fi
19778 rm -f core conftest.err conftest.$ac_objext \
19779 conftest$ac_exeext conftest.$ac_ext
19780 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19781
19782 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19783 # Warning - without using the other run time loading flags,
19784 # -berok will link without error, but may produce a broken library.
19785 no_undefined_flag_CXX=' ${wl}-bernotok'
19786 allow_undefined_flag_CXX=' ${wl}-berok'
19787 if test "$with_gnu_ld" = yes; then
19788 # We only use this code for GNU lds that support --whole-archive.
19789 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19790 else
19791 # Exported symbols can be pulled into shared objects from archives
19792 whole_archive_flag_spec_CXX='$convenience'
19793 fi
19794 archive_cmds_need_lc_CXX=yes
19795 # This is similar to how AIX traditionally builds its shared
19796 # libraries.
19797 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'
19798 fi
19799 fi
19800 ;;
19801
19802 beos*)
19803 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19804 allow_undefined_flag_CXX=unsupported
19805 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19806 # support --undefined. This deserves some investigation. FIXME
19807 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19808 else
19809 ld_shlibs_CXX=no
19810 fi
19811 ;;
19812
19813 chorus*)
19814 case $cc_basename in
19815 *)
19816 # FIXME: insert proper C++ library support
19817 ld_shlibs_CXX=no
19818 ;;
19819 esac
19820 ;;
19821
19822 cygwin* | mingw* | pw32* | cegcc*)
19823 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19824 # as there is no search path for DLLs.
19825 hardcode_libdir_flag_spec_CXX='-L$libdir'
19826 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19827 allow_undefined_flag_CXX=unsupported
19828 always_export_symbols_CXX=no
19829 enable_shared_with_static_runtimes_CXX=yes
19830
19831 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19832 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'
19833 # If the export-symbols file already is a .def file (1st line
19834 # is EXPORTS), use it as is; otherwise, prepend...
19835 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19836 cp $export_symbols $output_objdir/$soname.def;
19837 else
19838 echo EXPORTS > $output_objdir/$soname.def;
19839 cat $export_symbols >> $output_objdir/$soname.def;
19840 fi~
19841 $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'
19842 else
19843 ld_shlibs_CXX=no
19844 fi
19845 ;;
19846 darwin* | rhapsody*)
19847
19848
19849 archive_cmds_need_lc_CXX=no
19850 hardcode_direct_CXX=no
19851 hardcode_automatic_CXX=yes
19852 hardcode_shlibpath_var_CXX=unsupported
19853 if test "$lt_cv_ld_force_load" = "yes"; then
19854 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\"`'
19855 else
19856 whole_archive_flag_spec_CXX=''
19857 fi
19858 link_all_deplibs_CXX=yes
19859 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19860 case $cc_basename in
19861 ifort*) _lt_dar_can_shared=yes ;;
19862 *) _lt_dar_can_shared=$GCC ;;
19863 esac
19864 if test "$_lt_dar_can_shared" = "yes"; then
19865 output_verbose_link_cmd=func_echo_all
19866 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}"
19867 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19868 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}"
19869 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}"
19870 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19871 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}"
19872 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}"
19873 fi
19874
19875 else
19876 ld_shlibs_CXX=no
19877 fi
19878
19879 ;;
19880
19881 dgux*)
19882 case $cc_basename in
19883 ec++*)
19884 # FIXME: insert proper C++ library support
19885 ld_shlibs_CXX=no
19886 ;;
19887 ghcx*)
19888 # Green Hills C++ Compiler
19889 # FIXME: insert proper C++ library support
19890 ld_shlibs_CXX=no
19891 ;;
19892 *)
19893 # FIXME: insert proper C++ library support
19894 ld_shlibs_CXX=no
19895 ;;
19896 esac
19897 ;;
19898
19899 freebsd2.*)
19900 # C++ shared libraries reported to be fairly broken before
19901 # switch to ELF
19902 ld_shlibs_CXX=no
19903 ;;
19904
19905 freebsd-elf*)
19906 archive_cmds_need_lc_CXX=no
19907 ;;
19908
19909 freebsd* | dragonfly*)
19910 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19911 # conventions
19912 ld_shlibs_CXX=yes
19913 ;;
19914
19915 gnu*)
19916 ;;
19917
19918 haiku*)
19919 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19920 link_all_deplibs_CXX=yes
19921 ;;
19922
19923 hpux9*)
19924 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19925 hardcode_libdir_separator_CXX=:
19926 export_dynamic_flag_spec_CXX='${wl}-E'
19927 hardcode_direct_CXX=yes
19928 hardcode_minus_L_CXX=yes # Not in the search PATH,
19929 # but as the default
19930 # location of the library.
19931
19932 case $cc_basename in
19933 CC*)
19934 # FIXME: insert proper C++ library support
19935 ld_shlibs_CXX=no
19936 ;;
19937 aCC*)
19938 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'
19939 # Commands to make compiler produce verbose output that lists
19940 # what "hidden" libraries, object files and flags are used when
19941 # linking a shared library.
19942 #
19943 # There doesn't appear to be a way to prevent this compiler from
19944 # explicitly linking system object files so we need to strip them
19945 # from the output so that they don't get included in the library
19946 # dependencies.
19947 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"'
19948 ;;
19949 *)
19950 if test "$GXX" = yes; then
19951 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'
19952 else
19953 # FIXME: insert proper C++ library support
19954 ld_shlibs_CXX=no
19955 fi
19956 ;;
19957 esac
19958 ;;
19959
19960 hpux10*|hpux11*)
19961 if test $with_gnu_ld = no; then
19962 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19963 hardcode_libdir_separator_CXX=:
19964
19965 case $host_cpu in
19966 hppa*64*|ia64*)
19967 ;;
19968 *)
19969 export_dynamic_flag_spec_CXX='${wl}-E'
19970 ;;
19971 esac
19972 fi
19973 case $host_cpu in
19974 hppa*64*|ia64*)
19975 hardcode_direct_CXX=no
19976 hardcode_shlibpath_var_CXX=no
19977 ;;
19978 *)
19979 hardcode_direct_CXX=yes
19980 hardcode_direct_absolute_CXX=yes
19981 hardcode_minus_L_CXX=yes # Not in the search PATH,
19982 # but as the default
19983 # location of the library.
19984 ;;
19985 esac
19986
19987 case $cc_basename in
19988 CC*)
19989 # FIXME: insert proper C++ library support
19990 ld_shlibs_CXX=no
19991 ;;
19992 aCC*)
19993 case $host_cpu in
19994 hppa*64*)
19995 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19996 ;;
19997 ia64*)
19998 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19999 ;;
20000 *)
20001 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20002 ;;
20003 esac
20004 # Commands to make compiler produce verbose output that lists
20005 # what "hidden" libraries, object files and flags are used when
20006 # linking a shared library.
20007 #
20008 # There doesn't appear to be a way to prevent this compiler from
20009 # explicitly linking system object files so we need to strip them
20010 # from the output so that they don't get included in the library
20011 # dependencies.
20012 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"'
20013 ;;
20014 *)
20015 if test "$GXX" = yes; then
20016 if test $with_gnu_ld = no; then
20017 case $host_cpu in
20018 hppa*64*)
20019 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20020 ;;
20021 ia64*)
20022 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20023 ;;
20024 *)
20025 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'
20026 ;;
20027 esac
20028 fi
20029 else
20030 # FIXME: insert proper C++ library support
20031 ld_shlibs_CXX=no
20032 fi
20033 ;;
20034 esac
20035 ;;
20036
20037 interix[3-9]*)
20038 hardcode_direct_CXX=no
20039 hardcode_shlibpath_var_CXX=no
20040 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20041 export_dynamic_flag_spec_CXX='${wl}-E'
20042 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20043 # Instead, shared libraries are loaded at an image base (0x10000000 by
20044 # default) and relocated if they conflict, which is a slow very memory
20045 # consuming and fragmenting process. To avoid this, we pick a random,
20046 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20047 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20048 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'
20049 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'
20050 ;;
20051 irix5* | irix6*)
20052 case $cc_basename in
20053 CC*)
20054 # SGI C++
20055 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'
20056
20057 # Archives containing C++ object files must be created using
20058 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20059 # necessary to make sure instantiated templates are included
20060 # in the archive.
20061 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20062 ;;
20063 *)
20064 if test "$GXX" = yes; then
20065 if test "$with_gnu_ld" = no; then
20066 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'
20067 else
20068 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'
20069 fi
20070 fi
20071 link_all_deplibs_CXX=yes
20072 ;;
20073 esac
20074 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20075 hardcode_libdir_separator_CXX=:
20076 inherit_rpath_CXX=yes
20077 ;;
20078
20079 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20080 case $cc_basename in
20081 KCC*)
20082 # Kuck and Associates, Inc. (KAI) C++ Compiler
20083
20084 # KCC will only create a shared library if the output file
20085 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20086 # to its proper name (with version) after linking.
20087 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'
20088 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'
20089 # Commands to make compiler produce verbose output that lists
20090 # what "hidden" libraries, object files and flags are used when
20091 # linking a shared library.
20092 #
20093 # There doesn't appear to be a way to prevent this compiler from
20094 # explicitly linking system object files so we need to strip them
20095 # from the output so that they don't get included in the library
20096 # dependencies.
20097 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"'
20098
20099 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20100 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20101
20102 # Archives containing C++ object files must be created using
20103 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20104 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20105 ;;
20106 icpc* | ecpc* )
20107 # Intel C++
20108 with_gnu_ld=yes
20109 # version 8.0 and above of icpc choke on multiply defined symbols
20110 # if we add $predep_objects and $postdep_objects, however 7.1 and
20111 # earlier do not add the objects themselves.
20112 case `$CC -V 2>&1` in
20113 *"Version 7."*)
20114 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20115 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'
20116 ;;
20117 *) # Version 8.0 or newer
20118 tmp_idyn=
20119 case $host_cpu in
20120 ia64*) tmp_idyn=' -i_dynamic';;
20121 esac
20122 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20123 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'
20124 ;;
20125 esac
20126 archive_cmds_need_lc_CXX=no
20127 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20128 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20129 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20130 ;;
20131 pgCC* | pgcpp*)
20132 # Portland Group C++ compiler
20133 case `$CC -V` in
20134 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20135 prelink_cmds_CXX='tpldir=Template.dir~
20136 rm -rf $tpldir~
20137 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20138 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20139 old_archive_cmds_CXX='tpldir=Template.dir~
20140 rm -rf $tpldir~
20141 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20142 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20143 $RANLIB $oldlib'
20144 archive_cmds_CXX='tpldir=Template.dir~
20145 rm -rf $tpldir~
20146 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20147 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20148 archive_expsym_cmds_CXX='tpldir=Template.dir~
20149 rm -rf $tpldir~
20150 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20151 $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'
20152 ;;
20153 *) # Version 6 and above use weak symbols
20154 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20155 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'
20156 ;;
20157 esac
20158
20159 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20160 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20161 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'
20162 ;;
20163 cxx*)
20164 # Compaq C++
20165 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20166 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'
20167
20168 runpath_var=LD_RUN_PATH
20169 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20170 hardcode_libdir_separator_CXX=:
20171
20172 # Commands to make compiler produce verbose output that lists
20173 # what "hidden" libraries, object files and flags are used when
20174 # linking a shared library.
20175 #
20176 # There doesn't appear to be a way to prevent this compiler from
20177 # explicitly linking system object files so we need to strip them
20178 # from the output so that they don't get included in the library
20179 # dependencies.
20180 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'
20181 ;;
20182 xl* | mpixl* | bgxl*)
20183 # IBM XL 8.0 on PPC, with GNU ld
20184 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20185 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20186 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20187 if test "x$supports_anon_versioning" = xyes; then
20188 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20190 echo "local: *; };" >> $output_objdir/$libname.ver~
20191 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20192 fi
20193 ;;
20194 *)
20195 case `$CC -V 2>&1 | sed 5q` in
20196 *Sun\ C*)
20197 # Sun C++ 5.9
20198 no_undefined_flag_CXX=' -zdefs'
20199 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20200 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'
20201 hardcode_libdir_flag_spec_CXX='-R$libdir'
20202 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'
20203 compiler_needs_object_CXX=yes
20204
20205 # Not sure whether something based on
20206 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20207 # would be better.
20208 output_verbose_link_cmd='func_echo_all'
20209
20210 # Archives containing C++ object files must be created using
20211 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20212 # necessary to make sure instantiated templates are included
20213 # in the archive.
20214 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20215 ;;
20216 esac
20217 ;;
20218 esac
20219 ;;
20220
20221 lynxos*)
20222 # FIXME: insert proper C++ library support
20223 ld_shlibs_CXX=no
20224 ;;
20225
20226 m88k*)
20227 # FIXME: insert proper C++ library support
20228 ld_shlibs_CXX=no
20229 ;;
20230
20231 mvs*)
20232 case $cc_basename in
20233 cxx*)
20234 # FIXME: insert proper C++ library support
20235 ld_shlibs_CXX=no
20236 ;;
20237 *)
20238 # FIXME: insert proper C++ library support
20239 ld_shlibs_CXX=no
20240 ;;
20241 esac
20242 ;;
20243
20244 netbsd*)
20245 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20246 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20247 wlarc=
20248 hardcode_libdir_flag_spec_CXX='-R$libdir'
20249 hardcode_direct_CXX=yes
20250 hardcode_shlibpath_var_CXX=no
20251 fi
20252 # Workaround some broken pre-1.5 toolchains
20253 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20254 ;;
20255
20256 *nto* | *qnx*)
20257 ld_shlibs_CXX=yes
20258 ;;
20259
20260 openbsd2*)
20261 # C++ shared libraries are fairly broken
20262 ld_shlibs_CXX=no
20263 ;;
20264
20265 openbsd*)
20266 if test -f /usr/libexec/ld.so; then
20267 hardcode_direct_CXX=yes
20268 hardcode_shlibpath_var_CXX=no
20269 hardcode_direct_absolute_CXX=yes
20270 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20271 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20272 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20273 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20274 export_dynamic_flag_spec_CXX='${wl}-E'
20275 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20276 fi
20277 output_verbose_link_cmd=func_echo_all
20278 else
20279 ld_shlibs_CXX=no
20280 fi
20281 ;;
20282
20283 osf3* | osf4* | osf5*)
20284 case $cc_basename in
20285 KCC*)
20286 # Kuck and Associates, Inc. (KAI) C++ Compiler
20287
20288 # KCC will only create a shared library if the output file
20289 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20290 # to its proper name (with version) after linking.
20291 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'
20292
20293 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20294 hardcode_libdir_separator_CXX=:
20295
20296 # Archives containing C++ object files must be created using
20297 # the KAI C++ compiler.
20298 case $host in
20299 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20300 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20301 esac
20302 ;;
20303 RCC*)
20304 # Rational C++ 2.4.1
20305 # FIXME: insert proper C++ library support
20306 ld_shlibs_CXX=no
20307 ;;
20308 cxx*)
20309 case $host in
20310 osf3*)
20311 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20312 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'
20313 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20314 ;;
20315 *)
20316 allow_undefined_flag_CXX=' -expect_unresolved \*'
20317 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'
20318 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20319 echo "-hidden">> $lib.exp~
20320 $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~
20321 $RM $lib.exp'
20322 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20323 ;;
20324 esac
20325
20326 hardcode_libdir_separator_CXX=:
20327
20328 # Commands to make compiler produce verbose output that lists
20329 # what "hidden" libraries, object files and flags are used when
20330 # linking a shared library.
20331 #
20332 # There doesn't appear to be a way to prevent this compiler from
20333 # explicitly linking system object files so we need to strip them
20334 # from the output so that they don't get included in the library
20335 # dependencies.
20336 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"'
20337 ;;
20338 *)
20339 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20340 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20341 case $host in
20342 osf3*)
20343 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'
20344 ;;
20345 *)
20346 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'
20347 ;;
20348 esac
20349
20350 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20351 hardcode_libdir_separator_CXX=:
20352
20353 # Commands to make compiler produce verbose output that lists
20354 # what "hidden" libraries, object files and flags are used when
20355 # linking a shared library.
20356 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20357
20358 else
20359 # FIXME: insert proper C++ library support
20360 ld_shlibs_CXX=no
20361 fi
20362 ;;
20363 esac
20364 ;;
20365
20366 psos*)
20367 # FIXME: insert proper C++ library support
20368 ld_shlibs_CXX=no
20369 ;;
20370
20371 sunos4*)
20372 case $cc_basename in
20373 CC*)
20374 # Sun C++ 4.x
20375 # FIXME: insert proper C++ library support
20376 ld_shlibs_CXX=no
20377 ;;
20378 lcc*)
20379 # Lucid
20380 # FIXME: insert proper C++ library support
20381 ld_shlibs_CXX=no
20382 ;;
20383 *)
20384 # FIXME: insert proper C++ library support
20385 ld_shlibs_CXX=no
20386 ;;
20387 esac
20388 ;;
20389
20390 solaris*)
20391 case $cc_basename in
20392 CC*)
20393 # Sun C++ 4.2, 5.x and Centerline C++
20394 archive_cmds_need_lc_CXX=yes
20395 no_undefined_flag_CXX=' -zdefs'
20396 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20397 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20398 $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'
20399
20400 hardcode_libdir_flag_spec_CXX='-R$libdir'
20401 hardcode_shlibpath_var_CXX=no
20402 case $host_os in
20403 solaris2.[0-5] | solaris2.[0-5].*) ;;
20404 *)
20405 # The compiler driver will combine and reorder linker options,
20406 # but understands `-z linker_flag'.
20407 # Supported since Solaris 2.6 (maybe 2.5.1?)
20408 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20409 ;;
20410 esac
20411 link_all_deplibs_CXX=yes
20412
20413 output_verbose_link_cmd='func_echo_all'
20414
20415 # Archives containing C++ object files must be created using
20416 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20417 # necessary to make sure instantiated templates are included
20418 # in the archive.
20419 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20420 ;;
20421 gcx*)
20422 # Green Hills C++ Compiler
20423 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20424
20425 # The C++ compiler must be used to create the archive.
20426 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20427 ;;
20428 *)
20429 # GNU C++ compiler with Solaris linker
20430 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20431 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20432 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20433 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20434 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20435 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20436
20437 # Commands to make compiler produce verbose output that lists
20438 # what "hidden" libraries, object files and flags are used when
20439 # linking a shared library.
20440 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20441 else
20442 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20443 # platform.
20444 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20445 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20446 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20447
20448 # Commands to make compiler produce verbose output that lists
20449 # what "hidden" libraries, object files and flags are used when
20450 # linking a shared library.
20451 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20452 fi
20453
20454 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20455 case $host_os in
20456 solaris2.[0-5] | solaris2.[0-5].*) ;;
20457 *)
20458 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20459 ;;
20460 esac
20461 fi
20462 ;;
20463 esac
20464 ;;
20465
20466 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20467 no_undefined_flag_CXX='${wl}-z,text'
20468 archive_cmds_need_lc_CXX=no
20469 hardcode_shlibpath_var_CXX=no
20470 runpath_var='LD_RUN_PATH'
20471
20472 case $cc_basename in
20473 CC*)
20474 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20475 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20476 ;;
20477 *)
20478 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20479 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20480 ;;
20481 esac
20482 ;;
20483
20484 sysv5* | sco3.2v5* | sco5v6*)
20485 # Note: We can NOT use -z defs as we might desire, because we do not
20486 # link with -lc, and that would cause any symbols used from libc to
20487 # always be unresolved, which means just about no library would
20488 # ever link correctly. If we're not using GNU ld we use -z text
20489 # though, which does catch some bad symbols but isn't as heavy-handed
20490 # as -z defs.
20491 no_undefined_flag_CXX='${wl}-z,text'
20492 allow_undefined_flag_CXX='${wl}-z,nodefs'
20493 archive_cmds_need_lc_CXX=no
20494 hardcode_shlibpath_var_CXX=no
20495 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20496 hardcode_libdir_separator_CXX=':'
20497 link_all_deplibs_CXX=yes
20498 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20499 runpath_var='LD_RUN_PATH'
20500
20501 case $cc_basename in
20502 CC*)
20503 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20504 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20505 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20506 '"$old_archive_cmds_CXX"
20507 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20508 '"$reload_cmds_CXX"
20509 ;;
20510 *)
20511 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20512 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20513 ;;
20514 esac
20515 ;;
20516
20517 tandem*)
20518 case $cc_basename in
20519 NCC*)
20520 # NonStop-UX NCC 3.20
20521 # FIXME: insert proper C++ library support
20522 ld_shlibs_CXX=no
20523 ;;
20524 *)
20525 # FIXME: insert proper C++ library support
20526 ld_shlibs_CXX=no
20527 ;;
20528 esac
20529 ;;
20530
20531 vxworks*)
20532 # FIXME: insert proper C++ library support
20533 ld_shlibs_CXX=no
20534 ;;
20535
20536 *)
20537 # FIXME: insert proper C++ library support
20538 ld_shlibs_CXX=no
20539 ;;
20540 esac
20541
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20543 $as_echo "$ld_shlibs_CXX" >&6; }
20544 test "$ld_shlibs_CXX" = no && can_build_shared=no
20545
20546 GCC_CXX="$GXX"
20547 LD_CXX="$LD"
20548
20549 ## CAVEAT EMPTOR:
20550 ## There is no encapsulation within the following macros, do not change
20551 ## the running order or otherwise move them around unless you know exactly
20552 ## what you are doing...
20553 # Dependencies to place before and after the object being linked:
20554 predep_objects_CXX=
20555 postdep_objects_CXX=
20556 predeps_CXX=
20557 postdeps_CXX=
20558 compiler_lib_search_path_CXX=
20559
20560 cat > conftest.$ac_ext <<_LT_EOF
20561 class Foo
20562 {
20563 public:
20564 Foo (void) { a = 0; }
20565 private:
20566 int a;
20567 };
20568 _LT_EOF
20569
20570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20571 (eval $ac_compile) 2>&5
20572 ac_status=$?
20573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20574 test $ac_status = 0; }; then
20575 # Parse the compiler output and extract the necessary
20576 # objects, libraries and library flags.
20577
20578 # Sentinel used to keep track of whether or not we are before
20579 # the conftest object file.
20580 pre_test_object_deps_done=no
20581
20582 for p in `eval "$output_verbose_link_cmd"`; do
20583 case $p in
20584
20585 -L* | -R* | -l*)
20586 # Some compilers place space between "-{L,R}" and the path.
20587 # Remove the space.
20588 if test $p = "-L" ||
20589 test $p = "-R"; then
20590 prev=$p
20591 continue
20592 else
20593 prev=
20594 fi
20595
20596 if test "$pre_test_object_deps_done" = no; then
20597 case $p in
20598 -L* | -R*)
20599 # Internal compiler library paths should come after those
20600 # provided the user. The postdeps already come after the
20601 # user supplied libs so there is no need to process them.
20602 if test -z "$compiler_lib_search_path_CXX"; then
20603 compiler_lib_search_path_CXX="${prev}${p}"
20604 else
20605 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20606 fi
20607 ;;
20608 # The "-l" case would never come before the object being
20609 # linked, so don't bother handling this case.
20610 esac
20611 else
20612 if test -z "$postdeps_CXX"; then
20613 postdeps_CXX="${prev}${p}"
20614 else
20615 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20616 fi
20617 fi
20618 ;;
20619
20620 *.$objext)
20621 # This assumes that the test object file only shows up
20622 # once in the compiler output.
20623 if test "$p" = "conftest.$objext"; then
20624 pre_test_object_deps_done=yes
20625 continue
20626 fi
20627
20628 if test "$pre_test_object_deps_done" = no; then
20629 if test -z "$predep_objects_CXX"; then
20630 predep_objects_CXX="$p"
20631 else
20632 predep_objects_CXX="$predep_objects_CXX $p"
20633 fi
20634 else
20635 if test -z "$postdep_objects_CXX"; then
20636 postdep_objects_CXX="$p"
20637 else
20638 postdep_objects_CXX="$postdep_objects_CXX $p"
20639 fi
20640 fi
20641 ;;
20642
20643 *) ;; # Ignore the rest.
20644
20645 esac
20646 done
20647
20648 # Clean up.
20649 rm -f a.out a.exe
20650 else
20651 echo "libtool.m4: error: problem compiling CXX test program"
20652 fi
20653
20654 $RM -f confest.$objext
20655
20656 # PORTME: override above test on systems where it is broken
20657 case $host_os in
20658 interix[3-9]*)
20659 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20660 # hack all around it, let's just trust "g++" to DTRT.
20661 predep_objects_CXX=
20662 postdep_objects_CXX=
20663 postdeps_CXX=
20664 ;;
20665
20666 linux*)
20667 case `$CC -V 2>&1 | sed 5q` in
20668 *Sun\ C*)
20669 # Sun C++ 5.9
20670
20671 # The more standards-conforming stlport4 library is
20672 # incompatible with the Cstd library. Avoid specifying
20673 # it if it's in CXXFLAGS. Ignore libCrun as
20674 # -library=stlport4 depends on it.
20675 case " $CXX $CXXFLAGS " in
20676 *" -library=stlport4 "*)
20677 solaris_use_stlport4=yes
20678 ;;
20679 esac
20680
20681 if test "$solaris_use_stlport4" != yes; then
20682 postdeps_CXX='-library=Cstd -library=Crun'
20683 fi
20684 ;;
20685 esac
20686 ;;
20687
20688 solaris*)
20689 case $cc_basename in
20690 CC*)
20691 # The more standards-conforming stlport4 library is
20692 # incompatible with the Cstd library. Avoid specifying
20693 # it if it's in CXXFLAGS. Ignore libCrun as
20694 # -library=stlport4 depends on it.
20695 case " $CXX $CXXFLAGS " in
20696 *" -library=stlport4 "*)
20697 solaris_use_stlport4=yes
20698 ;;
20699 esac
20700
20701 # Adding this requires a known-good setup of shared libraries for
20702 # Sun compiler versions before 5.6, else PIC objects from an old
20703 # archive will be linked into the output, leading to subtle bugs.
20704 if test "$solaris_use_stlport4" != yes; then
20705 postdeps_CXX='-library=Cstd -library=Crun'
20706 fi
20707 ;;
20708 esac
20709 ;;
20710 esac
20711
20712
20713 case " $postdeps_CXX " in
20714 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20715 esac
20716 compiler_lib_search_dirs_CXX=
20717 if test -n "${compiler_lib_search_path_CXX}"; then
20718 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20719 fi
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751 lt_prog_compiler_wl_CXX=
20752 lt_prog_compiler_pic_CXX=
20753 lt_prog_compiler_static_CXX=
20754
20755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20756 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20757
20758 # C++ specific cases for pic, static, wl, etc.
20759 if test "$GXX" = yes; then
20760 lt_prog_compiler_wl_CXX='-Wl,'
20761 lt_prog_compiler_static_CXX='-static'
20762
20763 case $host_os in
20764 aix*)
20765 # All AIX code is PIC.
20766 if test "$host_cpu" = ia64; then
20767 # AIX 5 now supports IA64 processor
20768 lt_prog_compiler_static_CXX='-Bstatic'
20769 fi
20770 lt_prog_compiler_pic_CXX='-fPIC'
20771 ;;
20772
20773 amigaos*)
20774 case $host_cpu in
20775 powerpc)
20776 # see comment about AmigaOS4 .so support
20777 lt_prog_compiler_pic_CXX='-fPIC'
20778 ;;
20779 m68k)
20780 # FIXME: we need at least 68020 code to build shared libraries, but
20781 # adding the `-m68020' flag to GCC prevents building anything better,
20782 # like `-m68040'.
20783 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20784 ;;
20785 esac
20786 ;;
20787
20788 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20789 # PIC is the default for these OSes.
20790 ;;
20791 mingw* | cygwin* | os2* | pw32* | cegcc*)
20792 # This hack is so that the source file can tell whether it is being
20793 # built for inclusion in a dll (and should export symbols for example).
20794 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20795 # (--disable-auto-import) libraries
20796 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20797 ;;
20798 darwin* | rhapsody*)
20799 # PIC is the default on this platform
20800 # Common symbols not allowed in MH_DYLIB files
20801 lt_prog_compiler_pic_CXX='-fno-common'
20802 ;;
20803 *djgpp*)
20804 # DJGPP does not support shared libraries at all
20805 lt_prog_compiler_pic_CXX=
20806 ;;
20807 haiku*)
20808 # PIC is the default for Haiku.
20809 # The "-static" flag exists, but is broken.
20810 lt_prog_compiler_static_CXX=
20811 ;;
20812 interix[3-9]*)
20813 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20814 # Instead, we relocate shared libraries at runtime.
20815 ;;
20816 sysv4*MP*)
20817 if test -d /usr/nec; then
20818 lt_prog_compiler_pic_CXX=-Kconform_pic
20819 fi
20820 ;;
20821 hpux*)
20822 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20823 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20824 # sets the default TLS model and affects inlining.
20825 case $host_cpu in
20826 hppa*64*)
20827 ;;
20828 *)
20829 lt_prog_compiler_pic_CXX='-fPIC'
20830 ;;
20831 esac
20832 ;;
20833 *qnx* | *nto*)
20834 # QNX uses GNU C++, but need to define -shared option too, otherwise
20835 # it will coredump.
20836 lt_prog_compiler_pic_CXX='-fPIC -shared'
20837 ;;
20838 *)
20839 lt_prog_compiler_pic_CXX='-fPIC'
20840 ;;
20841 esac
20842 else
20843 case $host_os in
20844 aix[4-9]*)
20845 # All AIX code is PIC.
20846 if test "$host_cpu" = ia64; then
20847 # AIX 5 now supports IA64 processor
20848 lt_prog_compiler_static_CXX='-Bstatic'
20849 else
20850 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20851 fi
20852 ;;
20853 chorus*)
20854 case $cc_basename in
20855 cxch68*)
20856 # Green Hills C++ Compiler
20857 # _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"
20858 ;;
20859 esac
20860 ;;
20861 dgux*)
20862 case $cc_basename in
20863 ec++*)
20864 lt_prog_compiler_pic_CXX='-KPIC'
20865 ;;
20866 ghcx*)
20867 # Green Hills C++ Compiler
20868 lt_prog_compiler_pic_CXX='-pic'
20869 ;;
20870 *)
20871 ;;
20872 esac
20873 ;;
20874 freebsd* | dragonfly*)
20875 # FreeBSD uses GNU C++
20876 ;;
20877 hpux9* | hpux10* | hpux11*)
20878 case $cc_basename in
20879 CC*)
20880 lt_prog_compiler_wl_CXX='-Wl,'
20881 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20882 if test "$host_cpu" != ia64; then
20883 lt_prog_compiler_pic_CXX='+Z'
20884 fi
20885 ;;
20886 aCC*)
20887 lt_prog_compiler_wl_CXX='-Wl,'
20888 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20889 case $host_cpu in
20890 hppa*64*|ia64*)
20891 # +Z the default
20892 ;;
20893 *)
20894 lt_prog_compiler_pic_CXX='+Z'
20895 ;;
20896 esac
20897 ;;
20898 *)
20899 ;;
20900 esac
20901 ;;
20902 interix*)
20903 # This is c89, which is MS Visual C++ (no shared libs)
20904 # Anyone wants to do a port?
20905 ;;
20906 irix5* | irix6* | nonstopux*)
20907 case $cc_basename in
20908 CC*)
20909 lt_prog_compiler_wl_CXX='-Wl,'
20910 lt_prog_compiler_static_CXX='-non_shared'
20911 # CC pic flag -KPIC is the default.
20912 ;;
20913 *)
20914 ;;
20915 esac
20916 ;;
20917 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20918 case $cc_basename in
20919 KCC*)
20920 # KAI C++ Compiler
20921 lt_prog_compiler_wl_CXX='--backend -Wl,'
20922 lt_prog_compiler_pic_CXX='-fPIC'
20923 ;;
20924 ecpc* )
20925 # old Intel C++ for x86_64 which still supported -KPIC.
20926 lt_prog_compiler_wl_CXX='-Wl,'
20927 lt_prog_compiler_pic_CXX='-KPIC'
20928 lt_prog_compiler_static_CXX='-static'
20929 ;;
20930 icpc* )
20931 # Intel C++, used to be incompatible with GCC.
20932 # ICC 10 doesn't accept -KPIC any more.
20933 lt_prog_compiler_wl_CXX='-Wl,'
20934 lt_prog_compiler_pic_CXX='-fPIC'
20935 lt_prog_compiler_static_CXX='-static'
20936 ;;
20937 pgCC* | pgcpp*)
20938 # Portland Group C++ compiler
20939 lt_prog_compiler_wl_CXX='-Wl,'
20940 lt_prog_compiler_pic_CXX='-fpic'
20941 lt_prog_compiler_static_CXX='-Bstatic'
20942 ;;
20943 cxx*)
20944 # Compaq C++
20945 # Make sure the PIC flag is empty. It appears that all Alpha
20946 # Linux and Compaq Tru64 Unix objects are PIC.
20947 lt_prog_compiler_pic_CXX=
20948 lt_prog_compiler_static_CXX='-non_shared'
20949 ;;
20950 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20951 # IBM XL 8.0, 9.0 on PPC and BlueGene
20952 lt_prog_compiler_wl_CXX='-Wl,'
20953 lt_prog_compiler_pic_CXX='-qpic'
20954 lt_prog_compiler_static_CXX='-qstaticlink'
20955 ;;
20956 *)
20957 case `$CC -V 2>&1 | sed 5q` in
20958 *Sun\ C*)
20959 # Sun C++ 5.9
20960 lt_prog_compiler_pic_CXX='-KPIC'
20961 lt_prog_compiler_static_CXX='-Bstatic'
20962 lt_prog_compiler_wl_CXX='-Qoption ld '
20963 ;;
20964 esac
20965 ;;
20966 esac
20967 ;;
20968 lynxos*)
20969 ;;
20970 m88k*)
20971 ;;
20972 mvs*)
20973 case $cc_basename in
20974 cxx*)
20975 lt_prog_compiler_pic_CXX='-W c,exportall'
20976 ;;
20977 *)
20978 ;;
20979 esac
20980 ;;
20981 netbsd*)
20982 ;;
20983 *qnx* | *nto*)
20984 # QNX uses GNU C++, but need to define -shared option too, otherwise
20985 # it will coredump.
20986 lt_prog_compiler_pic_CXX='-fPIC -shared'
20987 ;;
20988 osf3* | osf4* | osf5*)
20989 case $cc_basename in
20990 KCC*)
20991 lt_prog_compiler_wl_CXX='--backend -Wl,'
20992 ;;
20993 RCC*)
20994 # Rational C++ 2.4.1
20995 lt_prog_compiler_pic_CXX='-pic'
20996 ;;
20997 cxx*)
20998 # Digital/Compaq C++
20999 lt_prog_compiler_wl_CXX='-Wl,'
21000 # Make sure the PIC flag is empty. It appears that all Alpha
21001 # Linux and Compaq Tru64 Unix objects are PIC.
21002 lt_prog_compiler_pic_CXX=
21003 lt_prog_compiler_static_CXX='-non_shared'
21004 ;;
21005 *)
21006 ;;
21007 esac
21008 ;;
21009 psos*)
21010 ;;
21011 solaris*)
21012 case $cc_basename in
21013 CC*)
21014 # Sun C++ 4.2, 5.x and Centerline C++
21015 lt_prog_compiler_pic_CXX='-KPIC'
21016 lt_prog_compiler_static_CXX='-Bstatic'
21017 lt_prog_compiler_wl_CXX='-Qoption ld '
21018 ;;
21019 gcx*)
21020 # Green Hills C++ Compiler
21021 lt_prog_compiler_pic_CXX='-PIC'
21022 ;;
21023 *)
21024 ;;
21025 esac
21026 ;;
21027 sunos4*)
21028 case $cc_basename in
21029 CC*)
21030 # Sun C++ 4.x
21031 lt_prog_compiler_pic_CXX='-pic'
21032 lt_prog_compiler_static_CXX='-Bstatic'
21033 ;;
21034 lcc*)
21035 # Lucid
21036 lt_prog_compiler_pic_CXX='-pic'
21037 ;;
21038 *)
21039 ;;
21040 esac
21041 ;;
21042 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21043 case $cc_basename in
21044 CC*)
21045 lt_prog_compiler_wl_CXX='-Wl,'
21046 lt_prog_compiler_pic_CXX='-KPIC'
21047 lt_prog_compiler_static_CXX='-Bstatic'
21048 ;;
21049 esac
21050 ;;
21051 tandem*)
21052 case $cc_basename in
21053 NCC*)
21054 # NonStop-UX NCC 3.20
21055 lt_prog_compiler_pic_CXX='-KPIC'
21056 ;;
21057 *)
21058 ;;
21059 esac
21060 ;;
21061 vxworks*)
21062 ;;
21063 *)
21064 lt_prog_compiler_can_build_shared_CXX=no
21065 ;;
21066 esac
21067 fi
21068
21069 case $host_os in
21070 # For platforms which do not support PIC, -DPIC is meaningless:
21071 *djgpp*)
21072 lt_prog_compiler_pic_CXX=
21073 ;;
21074 *)
21075 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21076 ;;
21077 esac
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21079 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21080
21081
21082
21083 #
21084 # Check to make sure the PIC flag actually works.
21085 #
21086 if test -n "$lt_prog_compiler_pic_CXX"; then
21087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21088 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21089 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21090 $as_echo_n "(cached) " >&6
21091 else
21092 lt_cv_prog_compiler_pic_works_CXX=no
21093 ac_outfile=conftest.$ac_objext
21094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21095 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21096 # Insert the option either (1) after the last *FLAGS variable, or
21097 # (2) before a word containing "conftest.", or (3) at the end.
21098 # Note that $ac_compile itself does not contain backslashes and begins
21099 # with a dollar sign (not a hyphen), so the echo should work correctly.
21100 # The option is referenced via a variable to avoid confusing sed.
21101 lt_compile=`echo "$ac_compile" | $SED \
21102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21104 -e 's:$: $lt_compiler_flag:'`
21105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21106 (eval "$lt_compile" 2>conftest.err)
21107 ac_status=$?
21108 cat conftest.err >&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 if (exit $ac_status) && test -s "$ac_outfile"; then
21111 # The compiler can only warn and ignore the option if not recognized
21112 # So say no if there are warnings other than the usual output.
21113 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21116 lt_cv_prog_compiler_pic_works_CXX=yes
21117 fi
21118 fi
21119 $RM conftest*
21120
21121 fi
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21123 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21124
21125 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21126 case $lt_prog_compiler_pic_CXX in
21127 "" | " "*) ;;
21128 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21129 esac
21130 else
21131 lt_prog_compiler_pic_CXX=
21132 lt_prog_compiler_can_build_shared_CXX=no
21133 fi
21134
21135 fi
21136
21137
21138
21139 #
21140 # Check to make sure the static flag actually works.
21141 #
21142 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21144 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21145 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21146 $as_echo_n "(cached) " >&6
21147 else
21148 lt_cv_prog_compiler_static_works_CXX=no
21149 save_LDFLAGS="$LDFLAGS"
21150 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21151 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21152 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21153 # The linker can only warn and ignore the option if not recognized
21154 # So say no if there are warnings
21155 if test -s conftest.err; then
21156 # Append any errors to the config.log.
21157 cat conftest.err 1>&5
21158 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21159 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21160 if diff conftest.exp conftest.er2 >/dev/null; then
21161 lt_cv_prog_compiler_static_works_CXX=yes
21162 fi
21163 else
21164 lt_cv_prog_compiler_static_works_CXX=yes
21165 fi
21166 fi
21167 $RM -r conftest*
21168 LDFLAGS="$save_LDFLAGS"
21169
21170 fi
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21172 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21173
21174 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21175 :
21176 else
21177 lt_prog_compiler_static_CXX=
21178 fi
21179
21180
21181
21182
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21184 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21185 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21186 $as_echo_n "(cached) " >&6
21187 else
21188 lt_cv_prog_compiler_c_o_CXX=no
21189 $RM -r conftest 2>/dev/null
21190 mkdir conftest
21191 cd conftest
21192 mkdir out
21193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21194
21195 lt_compiler_flag="-o out/conftest2.$ac_objext"
21196 # Insert the option either (1) after the last *FLAGS variable, or
21197 # (2) before a word containing "conftest.", or (3) at the end.
21198 # Note that $ac_compile itself does not contain backslashes and begins
21199 # with a dollar sign (not a hyphen), so the echo should work correctly.
21200 lt_compile=`echo "$ac_compile" | $SED \
21201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21203 -e 's:$: $lt_compiler_flag:'`
21204 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21205 (eval "$lt_compile" 2>out/conftest.err)
21206 ac_status=$?
21207 cat out/conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21210 then
21211 # The compiler can only warn and ignore the option if not recognized
21212 # So say no if there are warnings
21213 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21214 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21215 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21216 lt_cv_prog_compiler_c_o_CXX=yes
21217 fi
21218 fi
21219 chmod u+w . 2>&5
21220 $RM conftest*
21221 # SGI C++ compiler will create directory out/ii_files/ for
21222 # template instantiation
21223 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21224 $RM out/* && rmdir out
21225 cd ..
21226 $RM -r conftest
21227 $RM conftest*
21228
21229 fi
21230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21231 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21232
21233
21234
21235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21236 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21237 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21238 $as_echo_n "(cached) " >&6
21239 else
21240 lt_cv_prog_compiler_c_o_CXX=no
21241 $RM -r conftest 2>/dev/null
21242 mkdir conftest
21243 cd conftest
21244 mkdir out
21245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21246
21247 lt_compiler_flag="-o out/conftest2.$ac_objext"
21248 # Insert the option either (1) after the last *FLAGS variable, or
21249 # (2) before a word containing "conftest.", or (3) at the end.
21250 # Note that $ac_compile itself does not contain backslashes and begins
21251 # with a dollar sign (not a hyphen), so the echo should work correctly.
21252 lt_compile=`echo "$ac_compile" | $SED \
21253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21255 -e 's:$: $lt_compiler_flag:'`
21256 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21257 (eval "$lt_compile" 2>out/conftest.err)
21258 ac_status=$?
21259 cat out/conftest.err >&5
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21262 then
21263 # The compiler can only warn and ignore the option if not recognized
21264 # So say no if there are warnings
21265 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21266 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21267 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21268 lt_cv_prog_compiler_c_o_CXX=yes
21269 fi
21270 fi
21271 chmod u+w . 2>&5
21272 $RM conftest*
21273 # SGI C++ compiler will create directory out/ii_files/ for
21274 # template instantiation
21275 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21276 $RM out/* && rmdir out
21277 cd ..
21278 $RM -r conftest
21279 $RM conftest*
21280
21281 fi
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21283 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21284
21285
21286
21287
21288 hard_links="nottested"
21289 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21290 # do not overwrite the value of need_locks provided by the user
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21292 $as_echo_n "checking if we can lock with hard links... " >&6; }
21293 hard_links=yes
21294 $RM conftest*
21295 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21296 touch conftest.a
21297 ln conftest.a conftest.b 2>&5 || hard_links=no
21298 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21300 $as_echo "$hard_links" >&6; }
21301 if test "$hard_links" = no; then
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21303 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21304 need_locks=warn
21305 fi
21306 else
21307 need_locks=no
21308 fi
21309
21310
21311
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21313 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21314
21315 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21316 case $host_os in
21317 aix[4-9]*)
21318 # If we're using GNU nm, then we don't want the "-C" option.
21319 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21320 # Also, AIX nm treats weak defined symbols like other global defined
21321 # symbols, whereas GNU nm marks them as "W".
21322 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21323 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'
21324 else
21325 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'
21326 fi
21327 ;;
21328 pw32*)
21329 export_symbols_cmds_CXX="$ltdll_cmds"
21330 ;;
21331 cygwin* | mingw* | cegcc*)
21332 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'
21333 ;;
21334 *)
21335 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21336 ;;
21337 esac
21338 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21339
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21341 $as_echo "$ld_shlibs_CXX" >&6; }
21342 test "$ld_shlibs_CXX" = no && can_build_shared=no
21343
21344 with_gnu_ld_CXX=$with_gnu_ld
21345
21346
21347
21348
21349
21350
21351 #
21352 # Do we need to explicitly link libc?
21353 #
21354 case "x$archive_cmds_need_lc_CXX" in
21355 x|xyes)
21356 # Assume -lc should be added
21357 archive_cmds_need_lc_CXX=yes
21358
21359 if test "$enable_shared" = yes && test "$GCC" = yes; then
21360 case $archive_cmds_CXX in
21361 *'~'*)
21362 # FIXME: we may have to deal with multi-command sequences.
21363 ;;
21364 '$CC '*)
21365 # Test whether the compiler implicitly links with -lc since on some
21366 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21367 # to ld, don't add -lc before -lgcc.
21368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21369 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21370 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21371 $as_echo_n "(cached) " >&6
21372 else
21373 $RM conftest*
21374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21375
21376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21377 (eval $ac_compile) 2>&5
21378 ac_status=$?
21379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21380 test $ac_status = 0; } 2>conftest.err; then
21381 soname=conftest
21382 lib=conftest
21383 libobjs=conftest.$ac_objext
21384 deplibs=
21385 wl=$lt_prog_compiler_wl_CXX
21386 pic_flag=$lt_prog_compiler_pic_CXX
21387 compiler_flags=-v
21388 linker_flags=-v
21389 verstring=
21390 output_objdir=.
21391 libname=conftest
21392 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21393 allow_undefined_flag_CXX=
21394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21395 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21396 ac_status=$?
21397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21398 test $ac_status = 0; }
21399 then
21400 lt_cv_archive_cmds_need_lc_CXX=no
21401 else
21402 lt_cv_archive_cmds_need_lc_CXX=yes
21403 fi
21404 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21405 else
21406 cat conftest.err 1>&5
21407 fi
21408 $RM conftest*
21409
21410 fi
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21412 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21413 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21414 ;;
21415 esac
21416 fi
21417 ;;
21418 esac
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21484 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21485
21486 library_names_spec=
21487 libname_spec='lib$name'
21488 soname_spec=
21489 shrext_cmds=".so"
21490 postinstall_cmds=
21491 postuninstall_cmds=
21492 finish_cmds=
21493 finish_eval=
21494 shlibpath_var=
21495 shlibpath_overrides_runpath=unknown
21496 version_type=none
21497 dynamic_linker="$host_os ld.so"
21498 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21499 need_lib_prefix=unknown
21500 hardcode_into_libs=no
21501
21502 # when you set need_version to no, make sure it does not cause -set_version
21503 # flags to be left without arguments
21504 need_version=unknown
21505
21506 case $host_os in
21507 aix3*)
21508 version_type=linux
21509 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21510 shlibpath_var=LIBPATH
21511
21512 # AIX 3 has no versioning support, so we append a major version to the name.
21513 soname_spec='${libname}${release}${shared_ext}$major'
21514 ;;
21515
21516 aix[4-9]*)
21517 version_type=linux
21518 need_lib_prefix=no
21519 need_version=no
21520 hardcode_into_libs=yes
21521 if test "$host_cpu" = ia64; then
21522 # AIX 5 supports IA64
21523 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21524 shlibpath_var=LD_LIBRARY_PATH
21525 else
21526 # With GCC up to 2.95.x, collect2 would create an import file
21527 # for dependence libraries. The import file would start with
21528 # the line `#! .'. This would cause the generated library to
21529 # depend on `.', always an invalid library. This was fixed in
21530 # development snapshots of GCC prior to 3.0.
21531 case $host_os in
21532 aix4 | aix4.[01] | aix4.[01].*)
21533 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21534 echo ' yes '
21535 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21536 :
21537 else
21538 can_build_shared=no
21539 fi
21540 ;;
21541 esac
21542 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21543 # soname into executable. Probably we can add versioning support to
21544 # collect2, so additional links can be useful in future.
21545 if test "$aix_use_runtimelinking" = yes; then
21546 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21547 # instead of lib<name>.a to let people know that these are not
21548 # typical AIX shared libraries.
21549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21550 else
21551 # We preserve .a as extension for shared libraries through AIX4.2
21552 # and later when we are not doing run time linking.
21553 library_names_spec='${libname}${release}.a $libname.a'
21554 soname_spec='${libname}${release}${shared_ext}$major'
21555 fi
21556 shlibpath_var=LIBPATH
21557 fi
21558 ;;
21559
21560 amigaos*)
21561 case $host_cpu in
21562 powerpc)
21563 # Since July 2007 AmigaOS4 officially supports .so libraries.
21564 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21566 ;;
21567 m68k)
21568 library_names_spec='$libname.ixlibrary $libname.a'
21569 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21570 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'
21571 ;;
21572 esac
21573 ;;
21574
21575 beos*)
21576 library_names_spec='${libname}${shared_ext}'
21577 dynamic_linker="$host_os ld.so"
21578 shlibpath_var=LIBRARY_PATH
21579 ;;
21580
21581 bsdi[45]*)
21582 version_type=linux
21583 need_version=no
21584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21585 soname_spec='${libname}${release}${shared_ext}$major'
21586 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21587 shlibpath_var=LD_LIBRARY_PATH
21588 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21589 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21590 # the default ld.so.conf also contains /usr/contrib/lib and
21591 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21592 # libtool to hard-code these into programs
21593 ;;
21594
21595 cygwin* | mingw* | pw32* | cegcc*)
21596 version_type=windows
21597 shrext_cmds=".dll"
21598 need_version=no
21599 need_lib_prefix=no
21600
21601 case $GCC,$host_os in
21602 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21603 library_names_spec='$libname.dll.a'
21604 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21605 postinstall_cmds='base_file=`basename \${file}`~
21606 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21607 dldir=$destdir/`dirname \$dlpath`~
21608 test -d \$dldir || mkdir -p \$dldir~
21609 $install_prog $dir/$dlname \$dldir/$dlname~
21610 chmod a+x \$dldir/$dlname~
21611 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21612 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21613 fi'
21614 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21615 dlpath=$dir/\$dldll~
21616 $RM \$dlpath'
21617 shlibpath_overrides_runpath=yes
21618
21619 case $host_os in
21620 cygwin*)
21621 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21622 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21623
21624 ;;
21625 mingw* | cegcc*)
21626 # MinGW DLLs use traditional 'lib' prefix
21627 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21628 ;;
21629 pw32*)
21630 # pw32 DLLs use 'pw' prefix rather than 'lib'
21631 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21632 ;;
21633 esac
21634 ;;
21635
21636 *)
21637 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21638 ;;
21639 esac
21640 dynamic_linker='Win32 ld.exe'
21641 # FIXME: first we should search . and the directory the executable is in
21642 shlibpath_var=PATH
21643 ;;
21644
21645 darwin* | rhapsody*)
21646 dynamic_linker="$host_os dyld"
21647 version_type=darwin
21648 need_lib_prefix=no
21649 need_version=no
21650 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21651 soname_spec='${libname}${release}${major}$shared_ext'
21652 shlibpath_overrides_runpath=yes
21653 shlibpath_var=DYLD_LIBRARY_PATH
21654 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21655
21656 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21657 ;;
21658
21659 dgux*)
21660 version_type=linux
21661 need_lib_prefix=no
21662 need_version=no
21663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21664 soname_spec='${libname}${release}${shared_ext}$major'
21665 shlibpath_var=LD_LIBRARY_PATH
21666 ;;
21667
21668 freebsd* | dragonfly*)
21669 # DragonFly does not have aout. When/if they implement a new
21670 # versioning mechanism, adjust this.
21671 if test -x /usr/bin/objformat; then
21672 objformat=`/usr/bin/objformat`
21673 else
21674 case $host_os in
21675 freebsd[23].*) objformat=aout ;;
21676 *) objformat=elf ;;
21677 esac
21678 fi
21679 version_type=freebsd-$objformat
21680 case $version_type in
21681 freebsd-elf*)
21682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21683 need_version=no
21684 need_lib_prefix=no
21685 ;;
21686 freebsd-*)
21687 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21688 need_version=yes
21689 ;;
21690 esac
21691 shlibpath_var=LD_LIBRARY_PATH
21692 case $host_os in
21693 freebsd2.*)
21694 shlibpath_overrides_runpath=yes
21695 ;;
21696 freebsd3.[01]* | freebsdelf3.[01]*)
21697 shlibpath_overrides_runpath=yes
21698 hardcode_into_libs=yes
21699 ;;
21700 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21701 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21702 shlibpath_overrides_runpath=no
21703 hardcode_into_libs=yes
21704 ;;
21705 *) # from 4.6 on, and DragonFly
21706 shlibpath_overrides_runpath=yes
21707 hardcode_into_libs=yes
21708 ;;
21709 esac
21710 ;;
21711
21712 gnu*)
21713 version_type=linux
21714 need_lib_prefix=no
21715 need_version=no
21716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21717 soname_spec='${libname}${release}${shared_ext}$major'
21718 shlibpath_var=LD_LIBRARY_PATH
21719 hardcode_into_libs=yes
21720 ;;
21721
21722 haiku*)
21723 version_type=linux
21724 need_lib_prefix=no
21725 need_version=no
21726 dynamic_linker="$host_os runtime_loader"
21727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21728 soname_spec='${libname}${release}${shared_ext}$major'
21729 shlibpath_var=LIBRARY_PATH
21730 shlibpath_overrides_runpath=yes
21731 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21732 hardcode_into_libs=yes
21733 ;;
21734
21735 hpux9* | hpux10* | hpux11*)
21736 # Give a soname corresponding to the major version so that dld.sl refuses to
21737 # link against other versions.
21738 version_type=sunos
21739 need_lib_prefix=no
21740 need_version=no
21741 case $host_cpu in
21742 ia64*)
21743 shrext_cmds='.so'
21744 hardcode_into_libs=yes
21745 dynamic_linker="$host_os dld.so"
21746 shlibpath_var=LD_LIBRARY_PATH
21747 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21749 soname_spec='${libname}${release}${shared_ext}$major'
21750 if test "X$HPUX_IA64_MODE" = X32; then
21751 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21752 else
21753 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21754 fi
21755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21756 ;;
21757 hppa*64*)
21758 shrext_cmds='.sl'
21759 hardcode_into_libs=yes
21760 dynamic_linker="$host_os dld.sl"
21761 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21764 soname_spec='${libname}${release}${shared_ext}$major'
21765 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21767 ;;
21768 *)
21769 shrext_cmds='.sl'
21770 dynamic_linker="$host_os dld.sl"
21771 shlibpath_var=SHLIB_PATH
21772 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
21776 esac
21777 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21778 postinstall_cmds='chmod 555 $lib'
21779 # or fails outright, so override atomically:
21780 install_override_mode=555
21781 ;;
21782
21783 interix[3-9]*)
21784 version_type=linux
21785 need_lib_prefix=no
21786 need_version=no
21787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21788 soname_spec='${libname}${release}${shared_ext}$major'
21789 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21790 shlibpath_var=LD_LIBRARY_PATH
21791 shlibpath_overrides_runpath=no
21792 hardcode_into_libs=yes
21793 ;;
21794
21795 irix5* | irix6* | nonstopux*)
21796 case $host_os in
21797 nonstopux*) version_type=nonstopux ;;
21798 *)
21799 if test "$lt_cv_prog_gnu_ld" = yes; then
21800 version_type=linux
21801 else
21802 version_type=irix
21803 fi ;;
21804 esac
21805 need_lib_prefix=no
21806 need_version=no
21807 soname_spec='${libname}${release}${shared_ext}$major'
21808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21809 case $host_os in
21810 irix5* | nonstopux*)
21811 libsuff= shlibsuff=
21812 ;;
21813 *)
21814 case $LD in # libtool.m4 will add one of these switches to LD
21815 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21816 libsuff= shlibsuff= libmagic=32-bit;;
21817 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21818 libsuff=32 shlibsuff=N32 libmagic=N32;;
21819 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21820 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21821 *) libsuff= shlibsuff= libmagic=never-match;;
21822 esac
21823 ;;
21824 esac
21825 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21826 shlibpath_overrides_runpath=no
21827 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21828 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21829 hardcode_into_libs=yes
21830 ;;
21831
21832 # No shared lib support for Linux oldld, aout, or coff.
21833 linux*oldld* | linux*aout* | linux*coff*)
21834 dynamic_linker=no
21835 ;;
21836
21837 # This must be Linux ELF.
21838
21839 # uclinux* changes (here and below) have been submitted to the libtool
21840 # project, but have not yet been accepted: they are GCC-local changes
21841 # for the time being. (See
21842 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
21843 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
21844 version_type=linux
21845 need_lib_prefix=no
21846 need_version=no
21847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21848 soname_spec='${libname}${release}${shared_ext}$major'
21849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21850 shlibpath_var=LD_LIBRARY_PATH
21851 shlibpath_overrides_runpath=no
21852
21853 # Some binutils ld are patched to set DT_RUNPATH
21854 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21855 $as_echo_n "(cached) " >&6
21856 else
21857 lt_cv_shlibpath_overrides_runpath=no
21858 save_LDFLAGS=$LDFLAGS
21859 save_libdir=$libdir
21860 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21861 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21863 /* end confdefs.h. */
21864
21865 int
21866 main ()
21867 {
21868
21869 ;
21870 return 0;
21871 }
21872 _ACEOF
21873 if ac_fn_cxx_try_link "$LINENO"; then :
21874 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21875 lt_cv_shlibpath_overrides_runpath=yes
21876 fi
21877 fi
21878 rm -f core conftest.err conftest.$ac_objext \
21879 conftest$ac_exeext conftest.$ac_ext
21880 LDFLAGS=$save_LDFLAGS
21881 libdir=$save_libdir
21882
21883 fi
21884
21885 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21886
21887 # This implies no fast_install, which is unacceptable.
21888 # Some rework will be needed to allow for fast_install
21889 # before this can be enabled.
21890 hardcode_into_libs=yes
21891
21892 # Append ld.so.conf contents to the search path
21893 if test -f /etc/ld.so.conf; then
21894 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' ' '`
21895 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21896 fi
21897
21898 # We used to test for /lib/ld.so.1 and disable shared libraries on
21899 # powerpc, because MkLinux only supported shared libraries with the
21900 # GNU dynamic linker. Since this was broken with cross compilers,
21901 # most powerpc-linux boxes support dynamic linking these days and
21902 # people can always --disable-shared, the test was removed, and we
21903 # assume the GNU/Linux dynamic linker is in use.
21904 dynamic_linker='GNU/Linux ld.so'
21905 ;;
21906
21907 netbsd*)
21908 version_type=sunos
21909 need_lib_prefix=no
21910 need_version=no
21911 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21914 dynamic_linker='NetBSD (a.out) ld.so'
21915 else
21916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21917 soname_spec='${libname}${release}${shared_ext}$major'
21918 dynamic_linker='NetBSD ld.elf_so'
21919 fi
21920 shlibpath_var=LD_LIBRARY_PATH
21921 shlibpath_overrides_runpath=yes
21922 hardcode_into_libs=yes
21923 ;;
21924
21925 newsos6)
21926 version_type=linux
21927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21928 shlibpath_var=LD_LIBRARY_PATH
21929 shlibpath_overrides_runpath=yes
21930 ;;
21931
21932 *nto* | *qnx*)
21933 version_type=qnx
21934 need_lib_prefix=no
21935 need_version=no
21936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21937 soname_spec='${libname}${release}${shared_ext}$major'
21938 shlibpath_var=LD_LIBRARY_PATH
21939 shlibpath_overrides_runpath=no
21940 hardcode_into_libs=yes
21941 dynamic_linker='ldqnx.so'
21942 ;;
21943
21944 openbsd*)
21945 version_type=sunos
21946 sys_lib_dlsearch_path_spec="/usr/lib"
21947 need_lib_prefix=no
21948 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21949 case $host_os in
21950 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21951 *) need_version=no ;;
21952 esac
21953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21955 shlibpath_var=LD_LIBRARY_PATH
21956 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21957 case $host_os in
21958 openbsd2.[89] | openbsd2.[89].*)
21959 shlibpath_overrides_runpath=no
21960 ;;
21961 *)
21962 shlibpath_overrides_runpath=yes
21963 ;;
21964 esac
21965 else
21966 shlibpath_overrides_runpath=yes
21967 fi
21968 ;;
21969
21970 os2*)
21971 libname_spec='$name'
21972 shrext_cmds=".dll"
21973 need_lib_prefix=no
21974 library_names_spec='$libname${shared_ext} $libname.a'
21975 dynamic_linker='OS/2 ld.exe'
21976 shlibpath_var=LIBPATH
21977 ;;
21978
21979 osf3* | osf4* | osf5*)
21980 version_type=osf
21981 need_lib_prefix=no
21982 need_version=no
21983 soname_spec='${libname}${release}${shared_ext}$major'
21984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21985 shlibpath_var=LD_LIBRARY_PATH
21986 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21987 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21988 ;;
21989
21990 rdos*)
21991 dynamic_linker=no
21992 ;;
21993
21994 solaris*)
21995 version_type=linux
21996 need_lib_prefix=no
21997 need_version=no
21998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21999 soname_spec='${libname}${release}${shared_ext}$major'
22000 shlibpath_var=LD_LIBRARY_PATH
22001 shlibpath_overrides_runpath=yes
22002 hardcode_into_libs=yes
22003 # ldd complains unless libraries are executable
22004 postinstall_cmds='chmod +x $lib'
22005 ;;
22006
22007 sunos4*)
22008 version_type=sunos
22009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22010 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22011 shlibpath_var=LD_LIBRARY_PATH
22012 shlibpath_overrides_runpath=yes
22013 if test "$with_gnu_ld" = yes; then
22014 need_lib_prefix=no
22015 fi
22016 need_version=yes
22017 ;;
22018
22019 sysv4 | sysv4.3*)
22020 version_type=linux
22021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22022 soname_spec='${libname}${release}${shared_ext}$major'
22023 shlibpath_var=LD_LIBRARY_PATH
22024 case $host_vendor in
22025 sni)
22026 shlibpath_overrides_runpath=no
22027 need_lib_prefix=no
22028 runpath_var=LD_RUN_PATH
22029 ;;
22030 siemens)
22031 need_lib_prefix=no
22032 ;;
22033 motorola)
22034 need_lib_prefix=no
22035 need_version=no
22036 shlibpath_overrides_runpath=no
22037 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22038 ;;
22039 esac
22040 ;;
22041
22042 sysv4*MP*)
22043 if test -d /usr/nec ;then
22044 version_type=linux
22045 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22046 soname_spec='$libname${shared_ext}.$major'
22047 shlibpath_var=LD_LIBRARY_PATH
22048 fi
22049 ;;
22050
22051 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22052 version_type=freebsd-elf
22053 need_lib_prefix=no
22054 need_version=no
22055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22056 soname_spec='${libname}${release}${shared_ext}$major'
22057 shlibpath_var=LD_LIBRARY_PATH
22058 shlibpath_overrides_runpath=yes
22059 hardcode_into_libs=yes
22060 if test "$with_gnu_ld" = yes; then
22061 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22062 else
22063 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22064 case $host_os in
22065 sco3.2v5*)
22066 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22067 ;;
22068 esac
22069 fi
22070 sys_lib_dlsearch_path_spec='/usr/lib'
22071 ;;
22072
22073 tpf*)
22074 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22075 version_type=linux
22076 need_lib_prefix=no
22077 need_version=no
22078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22079 shlibpath_var=LD_LIBRARY_PATH
22080 shlibpath_overrides_runpath=no
22081 hardcode_into_libs=yes
22082 ;;
22083
22084 uts4*)
22085 version_type=linux
22086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22087 soname_spec='${libname}${release}${shared_ext}$major'
22088 shlibpath_var=LD_LIBRARY_PATH
22089 ;;
22090
22091 *)
22092 dynamic_linker=no
22093 ;;
22094 esac
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22096 $as_echo "$dynamic_linker" >&6; }
22097 test "$dynamic_linker" = no && can_build_shared=no
22098
22099 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22100 if test "$GCC" = yes; then
22101 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22102 fi
22103
22104 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22105 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22106 fi
22107 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22108 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22109 fi
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22149 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22150 hardcode_action_CXX=
22151 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22152 test -n "$runpath_var_CXX" ||
22153 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22154
22155 # We can hardcode non-existent directories.
22156 if test "$hardcode_direct_CXX" != no &&
22157 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22158 # have to relink, otherwise we might link with an installed library
22159 # when we should be linking with a yet-to-be-installed one
22160 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22161 test "$hardcode_minus_L_CXX" != no; then
22162 # Linking always hardcodes the temporary library directory.
22163 hardcode_action_CXX=relink
22164 else
22165 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22166 hardcode_action_CXX=immediate
22167 fi
22168 else
22169 # We cannot hardcode anything, or else we can only hardcode existing
22170 # directories.
22171 hardcode_action_CXX=unsupported
22172 fi
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22174 $as_echo "$hardcode_action_CXX" >&6; }
22175
22176 if test "$hardcode_action_CXX" = relink ||
22177 test "$inherit_rpath_CXX" = yes; then
22178 # Fast installation is not supported
22179 enable_fast_install=no
22180 elif test "$shlibpath_overrides_runpath" = yes ||
22181 test "$enable_shared" = no; then
22182 # Fast installation is not necessary
22183 enable_fast_install=needless
22184 fi
22185
22186
22187
22188
22189
22190
22191
22192 fi # test -n "$compiler"
22193
22194 CC=$lt_save_CC
22195 LDCXX=$LD
22196 LD=$lt_save_LD
22197 GCC=$lt_save_GCC
22198 with_gnu_ld=$lt_save_with_gnu_ld
22199 lt_cv_path_LDCXX=$lt_cv_path_LD
22200 lt_cv_path_LD=$lt_save_path_LD
22201 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22202 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22203 fi # test "$_lt_caught_CXX_error" != yes
22204
22205 ac_ext=cpp
22206 ac_cpp='$CXXCPP $CPPFLAGS'
22207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226 # Only expand once:
22227
22228
22229
22230
22231
22232 # Identify the assembler which will work hand-in-glove with the newly
22233 # built GCC, so that we can examine its features. This is the assembler
22234 # which will be driven by the driver program.
22235 #
22236 # If build != host, and we aren't building gas in-tree, we identify a
22237 # build->target assembler and hope that it will have the same features
22238 # as the host->target assembler we'll be using.
22239 gcc_cv_gas_major_version=
22240 gcc_cv_gas_minor_version=
22241 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22242
22243 if ${gcc_cv_as+:} false; then :
22244
22245 else
22246
22247 if test -x "$DEFAULT_ASSEMBLER"; then
22248 gcc_cv_as="$DEFAULT_ASSEMBLER"
22249 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22250 && test -f ../gas/Makefile \
22251 && test x$build = x$host; then
22252 gcc_cv_as=../gas/as-new$build_exeext
22253 elif test -x as$build_exeext; then
22254 # Build using assembler in the current directory.
22255 gcc_cv_as=./as$build_exeext
22256 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22257 gcc_cv_as="$AS_FOR_TARGET"
22258 else
22259 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22260 set dummy $AS_FOR_TARGET; ac_word=$2
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22262 $as_echo_n "checking for $ac_word... " >&6; }
22263 if ${ac_cv_path_gcc_cv_as+:} false; then :
22264 $as_echo_n "(cached) " >&6
22265 else
22266 case $gcc_cv_as in
22267 [\\/]* | ?:[\\/]*)
22268 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22269 ;;
22270 *)
22271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22272 for as_dir in $PATH
22273 do
22274 IFS=$as_save_IFS
22275 test -z "$as_dir" && as_dir=.
22276 for ac_exec_ext in '' $ac_executable_extensions; do
22277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22278 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22280 break 2
22281 fi
22282 done
22283 done
22284 IFS=$as_save_IFS
22285
22286 ;;
22287 esac
22288 fi
22289 gcc_cv_as=$ac_cv_path_gcc_cv_as
22290 if test -n "$gcc_cv_as"; then
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22292 $as_echo "$gcc_cv_as" >&6; }
22293 else
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22295 $as_echo "no" >&6; }
22296 fi
22297
22298
22299 fi
22300 fi
22301
22302 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22303
22304 case "$ORIGINAL_AS_FOR_TARGET" in
22305 ./as | ./as$build_exeext) ;;
22306 *) ac_config_files="$ac_config_files as:exec-tool.in"
22307 ;;
22308 esac
22309
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22311 $as_echo_n "checking what assembler to use... " >&6; }
22312 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22313 # Single tree build which includes gas. We want to prefer it
22314 # over whatever linker top-level may have detected, since
22315 # we'll use what we're building after installation anyway.
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22317 $as_echo "newly built gas" >&6; }
22318 in_tree_gas=yes
22319 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22320 for f in $gcc_cv_as_bfd_srcdir/configure \
22321 $gcc_cv_as_gas_srcdir/configure \
22322 $gcc_cv_as_gas_srcdir/configure.ac \
22323 $gcc_cv_as_gas_srcdir/Makefile.in ; do
22324 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22325 if test x$gcc_cv_gas_version != x; then
22326 break
22327 fi
22328 done
22329 case $gcc_cv_gas_version in
22330 VERSION=[0-9]*) ;;
22331 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22332 esac
22333 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22334 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22335 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22336 case $gcc_cv_gas_patch_version in
22337 "") gcc_cv_gas_patch_version="0" ;;
22338 esac
22339 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22340 + $gcc_cv_gas_minor_version \) \* 1000 \
22341 + $gcc_cv_gas_patch_version`
22342
22343 in_tree_gas_is_elf=no
22344 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22345 || (grep 'obj_format = multi' ../gas/Makefile \
22346 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22347 then
22348 in_tree_gas_is_elf=yes
22349 fi
22350 else
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22352 $as_echo "$gcc_cv_as" >&6; }
22353 in_tree_gas=no
22354 fi
22355
22356 default_ld=
22357 # Check whether --enable-ld was given.
22358 if test "${enable_ld+set}" = set; then :
22359 enableval=$enable_ld; case "${enableval}" in
22360 no)
22361 default_ld=ld.gold
22362 ;;
22363 esac
22364 fi
22365
22366
22367 install_gold_as_default=no
22368 # Check whether --enable-gold was given.
22369 if test "${enable_gold+set}" = set; then :
22370 enableval=$enable_gold; case "${enableval}" in
22371 default)
22372 install_gold_as_default=yes
22373 ;;
22374 yes)
22375 if test x${default_ld} != x; then
22376 install_gold_as_default=yes
22377 fi
22378 ;;
22379 no)
22380 ;;
22381 *)
22382 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22383 ;;
22384 esac
22385 fi
22386
22387
22388 # Identify the linker which will work hand-in-glove with the newly
22389 # built GCC, so that we can examine its features. This is the linker
22390 # which will be driven by the driver program.
22391 #
22392 # If build != host, and we aren't building gas in-tree, we identify a
22393 # build->target linker and hope that it will have the same features
22394 # as the host->target linker we'll be using.
22395 gcc_cv_gld_major_version=
22396 gcc_cv_gld_minor_version=
22397 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22398 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22399 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22400
22401 if ${gcc_cv_ld+:} false; then :
22402
22403 else
22404
22405 if test -x "$DEFAULT_LINKER"; then
22406 gcc_cv_ld="$DEFAULT_LINKER"
22407 elif test $install_gold_as_default = yes \
22408 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22409 && test -f ../gold/Makefile \
22410 && test x$build = x$host; then
22411 gcc_cv_ld=../gold/ld-new$build_exeext
22412 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22413 && test -f ../ld/Makefile \
22414 && test x$build = x$host; then
22415 gcc_cv_ld=../ld/ld-new$build_exeext
22416 elif test -x collect-ld$build_exeext; then
22417 # Build using linker in the current directory.
22418 gcc_cv_ld=./collect-ld$build_exeext
22419 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22420 gcc_cv_ld="$LD_FOR_TARGET"
22421 else
22422 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22423 set dummy $LD_FOR_TARGET; ac_word=$2
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22425 $as_echo_n "checking for $ac_word... " >&6; }
22426 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22427 $as_echo_n "(cached) " >&6
22428 else
22429 case $gcc_cv_ld in
22430 [\\/]* | ?:[\\/]*)
22431 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22432 ;;
22433 *)
22434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22435 for as_dir in $PATH
22436 do
22437 IFS=$as_save_IFS
22438 test -z "$as_dir" && as_dir=.
22439 for ac_exec_ext in '' $ac_executable_extensions; do
22440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22441 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22443 break 2
22444 fi
22445 done
22446 done
22447 IFS=$as_save_IFS
22448
22449 ;;
22450 esac
22451 fi
22452 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22453 if test -n "$gcc_cv_ld"; then
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22455 $as_echo "$gcc_cv_ld" >&6; }
22456 else
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22458 $as_echo "no" >&6; }
22459 fi
22460
22461
22462 fi
22463 fi
22464
22465 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22466 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22467 # if the PLUGIN_LD is set ld-new, just have it as ld
22468 # as that is the installed named.
22469 if test x$PLUGIN_LD_SUFFIX = xld-new \
22470 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22471 PLUGIN_LD_SUFFIX=ld
22472 fi
22473
22474 # Check whether --with-plugin-ld was given.
22475 if test "${with_plugin_ld+set}" = set; then :
22476 withval=$with_plugin_ld; if test x"$withval" != x; then
22477 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22478 PLUGIN_LD_SUFFIX="$withval"
22479 fi
22480 fi
22481
22482
22483
22484 cat >>confdefs.h <<_ACEOF
22485 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22486 _ACEOF
22487
22488
22489 # Check to see if we are using gold instead of ld
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22491 $as_echo_n "checking whether we are using gold... " >&6; }
22492 ld_is_gold=no
22493 if test x$gcc_cv_ld != x; then
22494 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22495 | grep "GNU gold" > /dev/null; then
22496 ld_is_gold=yes
22497 fi
22498 fi
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22500 $as_echo "$ld_is_gold" >&6; }
22501
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22503 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22504 # Check to see if default ld is not gold, but gold is
22505 # available and has support for split stack. If gcc was configured
22506 # with gold then no checking is done.
22507 #
22508 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22509
22510 # For platforms other than powerpc64*, enable as appropriate.
22511
22512 gold_non_default=no
22513 ld_gold=`which ${gcc_cv_ld}.gold`
22514 # Make sure this gold has minimal split stack support
22515 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22516 ld_vers=`$ld_gold --version | sed 1q`
22517 gold_vers=`echo $ld_vers | sed -n \
22518 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22519 case $target in
22520 # check that the gold version contains the complete split stack support
22521 # on powerpc64 big and little endian
22522 powerpc64*-*-*)
22523 case "$gold_vers" in
22524 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22525 ;;
22526 *) gold_non_default=no
22527 ;;
22528 esac
22529 ;;
22530 esac
22531 fi
22532 if test $gold_non_default = yes; then
22533
22534 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22535
22536 fi
22537 fi
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22539 $as_echo "$gold_non_default" >&6; }
22540
22541 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22542
22543 case "$ORIGINAL_LD_FOR_TARGET" in
22544 ./collect-ld | ./collect-ld$build_exeext) ;;
22545 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22546 ;;
22547 esac
22548
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22550 $as_echo_n "checking what linker to use... " >&6; }
22551 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22552 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22553 # Single tree build which includes ld. We want to prefer it
22554 # over whatever linker top-level may have detected, since
22555 # we'll use what we're building after installation anyway.
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22557 $as_echo "newly built ld" >&6; }
22558 in_tree_ld=yes
22559 in_tree_ld_is_elf=no
22560 if (grep 'EMUL = .*elf' ../ld/Makefile \
22561 || grep 'EMUL = .*linux' ../ld/Makefile \
22562 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22563 in_tree_ld_is_elf=yes
22564 elif test "$ld_is_gold" = yes; then
22565 in_tree_ld_is_elf=yes
22566 fi
22567 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
22568 do
22569 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22570 if test x$gcc_cv_gld_version != x; then
22571 break
22572 fi
22573 done
22574 case $gcc_cv_gld_version in
22575 VERSION=[0-9]*) ;;
22576 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22577 esac
22578 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22579 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22580 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22581 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22582 else
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22584 $as_echo "$gcc_cv_ld" >&6; }
22585 in_tree_ld=no
22586 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22587 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22588 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22589 fi
22590
22591
22592
22593
22594 # Figure out what nm we will be using.
22595 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22596 if ${gcc_cv_nm+:} false; then :
22597
22598 else
22599
22600 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22601 && test -f ../binutils/Makefile \
22602 && test x$build = x$host; then
22603 gcc_cv_nm=../binutils/nm-new$build_exeext
22604 elif test -x nm$build_exeext; then
22605 gcc_cv_nm=./nm$build_exeext
22606 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22607 gcc_cv_nm="$NM_FOR_TARGET"
22608 else
22609 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22610 set dummy $NM_FOR_TARGET; ac_word=$2
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22612 $as_echo_n "checking for $ac_word... " >&6; }
22613 if ${ac_cv_path_gcc_cv_nm+:} false; then :
22614 $as_echo_n "(cached) " >&6
22615 else
22616 case $gcc_cv_nm in
22617 [\\/]* | ?:[\\/]*)
22618 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22619 ;;
22620 *)
22621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22622 for as_dir in $PATH
22623 do
22624 IFS=$as_save_IFS
22625 test -z "$as_dir" && as_dir=.
22626 for ac_exec_ext in '' $ac_executable_extensions; do
22627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22628 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22630 break 2
22631 fi
22632 done
22633 done
22634 IFS=$as_save_IFS
22635
22636 ;;
22637 esac
22638 fi
22639 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22640 if test -n "$gcc_cv_nm"; then
22641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22642 $as_echo "$gcc_cv_nm" >&6; }
22643 else
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22645 $as_echo "no" >&6; }
22646 fi
22647
22648
22649 fi
22650 fi
22651
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22653 $as_echo_n "checking what nm to use... " >&6; }
22654 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22655 # Single tree build which includes binutils.
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22657 $as_echo "newly built nm" >&6; }
22658 in_tree_nm=yes
22659 else
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22661 $as_echo "$gcc_cv_nm" >&6; }
22662 in_tree_nm=no
22663 fi
22664
22665 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22666
22667 case "$ORIGINAL_NM_FOR_TARGET" in
22668 ./nm | ./nm$build_exeext) ;;
22669 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22670 ;;
22671 esac
22672
22673
22674 # Figure out what objdump we will be using.
22675 if ${gcc_cv_objdump+:} false; then :
22676
22677 else
22678
22679 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22680 && test -f ../binutils/Makefile \
22681 && test x$build = x$host; then
22682 # Single tree build which includes binutils.
22683 gcc_cv_objdump=../binutils/objdump$build_exeext
22684 elif test -x objdump$build_exeext; then
22685 gcc_cv_objdump=./objdump$build_exeext
22686 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22687 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22688 else
22689 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22690 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22692 $as_echo_n "checking for $ac_word... " >&6; }
22693 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22694 $as_echo_n "(cached) " >&6
22695 else
22696 case $gcc_cv_objdump in
22697 [\\/]* | ?:[\\/]*)
22698 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22699 ;;
22700 *)
22701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22702 for as_dir in $PATH
22703 do
22704 IFS=$as_save_IFS
22705 test -z "$as_dir" && as_dir=.
22706 for ac_exec_ext in '' $ac_executable_extensions; do
22707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22708 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22710 break 2
22711 fi
22712 done
22713 done
22714 IFS=$as_save_IFS
22715
22716 ;;
22717 esac
22718 fi
22719 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22720 if test -n "$gcc_cv_objdump"; then
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22722 $as_echo "$gcc_cv_objdump" >&6; }
22723 else
22724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22725 $as_echo "no" >&6; }
22726 fi
22727
22728
22729 fi
22730 fi
22731
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22733 $as_echo_n "checking what objdump to use... " >&6; }
22734 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22735 # Single tree build which includes binutils.
22736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22737 $as_echo "newly built objdump" >&6; }
22738 elif test x$gcc_cv_objdump = x; then
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22740 $as_echo "not found" >&6; }
22741 else
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22743 $as_echo "$gcc_cv_objdump" >&6; }
22744 fi
22745
22746 # Figure out what readelf we will be using.
22747 if ${gcc_cv_readelf+:} false; then :
22748
22749 else
22750
22751 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22752 && test -f ../binutils/Makefile \
22753 && test x$build = x$host; then
22754 # Single tree build which includes binutils.
22755 gcc_cv_readelf=../binutils/readelf$build_exeext
22756 elif test -x readelf$build_exeext; then
22757 gcc_cv_readelf=./readelf$build_exeext
22758 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22759 gcc_cv_readelf="$READELF_FOR_TARGET"
22760 else
22761 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22762 set dummy $READELF_FOR_TARGET; ac_word=$2
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22764 $as_echo_n "checking for $ac_word... " >&6; }
22765 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22766 $as_echo_n "(cached) " >&6
22767 else
22768 case $gcc_cv_readelf in
22769 [\\/]* | ?:[\\/]*)
22770 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22771 ;;
22772 *)
22773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22774 for as_dir in $PATH
22775 do
22776 IFS=$as_save_IFS
22777 test -z "$as_dir" && as_dir=.
22778 for ac_exec_ext in '' $ac_executable_extensions; do
22779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22780 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22782 break 2
22783 fi
22784 done
22785 done
22786 IFS=$as_save_IFS
22787
22788 ;;
22789 esac
22790 fi
22791 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22792 if test -n "$gcc_cv_readelf"; then
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22794 $as_echo "$gcc_cv_readelf" >&6; }
22795 else
22796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22797 $as_echo "no" >&6; }
22798 fi
22799
22800
22801 fi
22802 fi
22803
22804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22805 $as_echo_n "checking what readelf to use... " >&6; }
22806 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22807 # Single tree build which includes binutils.
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22809 $as_echo "newly built readelf" >&6; }
22810 elif test x$gcc_cv_readelf = x; then
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22812 $as_echo "not found" >&6; }
22813 else
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22815 $as_echo "$gcc_cv_readelf" >&6; }
22816 fi
22817
22818 # Figure out what otool we will be using.
22819 if ${gcc_cv_otool+:} false; then :
22820
22821 else
22822
22823 if test -x otool$build_exeext; then
22824 gcc_cv_otool=./otool$build_exeext
22825 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
22826 gcc_cv_otool="$OTOOL_FOR_TARGET"
22827 else
22828 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22829 set dummy $OTOOL_FOR_TARGET; ac_word=$2
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22831 $as_echo_n "checking for $ac_word... " >&6; }
22832 if ${ac_cv_path_gcc_cv_otool+:} false; then :
22833 $as_echo_n "(cached) " >&6
22834 else
22835 case $gcc_cv_otool in
22836 [\\/]* | ?:[\\/]*)
22837 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
22838 ;;
22839 *)
22840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22841 for as_dir in $PATH
22842 do
22843 IFS=$as_save_IFS
22844 test -z "$as_dir" && as_dir=.
22845 for ac_exec_ext in '' $ac_executable_extensions; do
22846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22847 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
22848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22849 break 2
22850 fi
22851 done
22852 done
22853 IFS=$as_save_IFS
22854
22855 ;;
22856 esac
22857 fi
22858 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
22859 if test -n "$gcc_cv_otool"; then
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22861 $as_echo "$gcc_cv_otool" >&6; }
22862 else
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22864 $as_echo "no" >&6; }
22865 fi
22866
22867
22868 fi
22869 fi
22870
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22872 $as_echo_n "checking what otool to use... " >&6; }
22873 if test x$gcc_cv_otool = x; then
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22875 $as_echo "not found" >&6; }
22876 else
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22878 $as_echo "$gcc_cv_otool" >&6; }
22879 fi
22880
22881 # Figure out what assembler alignment features are present.
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22883 $as_echo_n "checking assembler flags... " >&6; }
22884 if ${gcc_cv_as_flags+:} false; then :
22885 $as_echo_n "(cached) " >&6
22886 else
22887 case "$target" in
22888 i[34567]86-*-linux*)
22889 gcc_cv_as_flags=--32
22890 ;;
22891 x86_64-*-linux-gnux32)
22892 gcc_cv_as_flags=--x32
22893 ;;
22894 x86_64-*-linux*)
22895 gcc_cv_as_flags=--64
22896 ;;
22897 powerpc*-*-darwin*)
22898 gcc_cv_as_flags="-arch ppc"
22899 ;;
22900 *)
22901 gcc_cv_as_flags=" "
22902 ;;
22903 esac
22904 fi
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22906 $as_echo "$gcc_cv_as_flags" >&6; }
22907
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22909 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22910 if ${gcc_cv_as_balign_and_p2align+:} false; then :
22911 $as_echo_n "(cached) " >&6
22912 else
22913 gcc_cv_as_balign_and_p2align=no
22914 if test $in_tree_gas = yes; then
22915 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22916 then gcc_cv_as_balign_and_p2align=yes
22917 fi
22918 elif test x$gcc_cv_as != x; then
22919 $as_echo '.balign 4
22920 .p2align 2' > conftest.s
22921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22923 (eval $ac_try) 2>&5
22924 ac_status=$?
22925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22926 test $ac_status = 0; }; }
22927 then
22928 gcc_cv_as_balign_and_p2align=yes
22929 else
22930 echo "configure: failed program was" >&5
22931 cat conftest.s >&5
22932 fi
22933 rm -f conftest.o conftest.s
22934 fi
22935 fi
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22937 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22938 if test $gcc_cv_as_balign_and_p2align = yes; then
22939
22940 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22941
22942 fi
22943
22944
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22946 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22947 if ${gcc_cv_as_max_skip_p2align+:} false; then :
22948 $as_echo_n "(cached) " >&6
22949 else
22950 gcc_cv_as_max_skip_p2align=no
22951 if test $in_tree_gas = yes; then
22952 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22953 then gcc_cv_as_max_skip_p2align=yes
22954 fi
22955 elif test x$gcc_cv_as != x; then
22956 $as_echo '.p2align 4,,7' > conftest.s
22957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22959 (eval $ac_try) 2>&5
22960 ac_status=$?
22961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22962 test $ac_status = 0; }; }
22963 then
22964 gcc_cv_as_max_skip_p2align=yes
22965 else
22966 echo "configure: failed program was" >&5
22967 cat conftest.s >&5
22968 fi
22969 rm -f conftest.o conftest.s
22970 fi
22971 fi
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22973 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22974 if test $gcc_cv_as_max_skip_p2align = yes; then
22975
22976 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22977
22978 fi
22979
22980
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22982 $as_echo_n "checking assembler for .literal16... " >&6; }
22983 if ${gcc_cv_as_literal16+:} false; then :
22984 $as_echo_n "(cached) " >&6
22985 else
22986 gcc_cv_as_literal16=no
22987 if test $in_tree_gas = yes; then
22988 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22989 then gcc_cv_as_literal16=yes
22990 fi
22991 elif test x$gcc_cv_as != x; then
22992 $as_echo '.literal16' > conftest.s
22993 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22995 (eval $ac_try) 2>&5
22996 ac_status=$?
22997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22998 test $ac_status = 0; }; }
22999 then
23000 gcc_cv_as_literal16=yes
23001 else
23002 echo "configure: failed program was" >&5
23003 cat conftest.s >&5
23004 fi
23005 rm -f conftest.o conftest.s
23006 fi
23007 fi
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23009 $as_echo "$gcc_cv_as_literal16" >&6; }
23010 if test $gcc_cv_as_literal16 = yes; then
23011
23012 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23013
23014 fi
23015
23016
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23018 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23019 if ${gcc_cv_as_subsection_m1+:} false; then :
23020 $as_echo_n "(cached) " >&6
23021 else
23022 gcc_cv_as_subsection_m1=no
23023 if test $in_tree_gas = yes; then
23024 if test $in_tree_gas_is_elf = yes \
23025 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23026 then gcc_cv_as_subsection_m1=yes
23027 fi
23028 elif test x$gcc_cv_as != x; then
23029 $as_echo 'conftest_label1: .word 0
23030 .subsection -1
23031 conftest_label2: .word 0
23032 .previous' > conftest.s
23033 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23035 (eval $ac_try) 2>&5
23036 ac_status=$?
23037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23038 test $ac_status = 0; }; }
23039 then
23040 if test x$gcc_cv_nm != x; then
23041 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23042 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23043 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23044 then :
23045 else gcc_cv_as_subsection_m1=yes
23046 fi
23047 rm -f conftest.nm1 conftest.nm2
23048 fi
23049 else
23050 echo "configure: failed program was" >&5
23051 cat conftest.s >&5
23052 fi
23053 rm -f conftest.o conftest.s
23054 fi
23055 fi
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23057 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23058 if test $gcc_cv_as_subsection_m1 = yes; then
23059
23060 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23061
23062 fi
23063
23064
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23066 $as_echo_n "checking assembler for .weak... " >&6; }
23067 if ${gcc_cv_as_weak+:} false; then :
23068 $as_echo_n "(cached) " >&6
23069 else
23070 gcc_cv_as_weak=no
23071 if test $in_tree_gas = yes; then
23072 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23073 then gcc_cv_as_weak=yes
23074 fi
23075 elif test x$gcc_cv_as != x; then
23076 $as_echo ' .weak foobar' > conftest.s
23077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23079 (eval $ac_try) 2>&5
23080 ac_status=$?
23081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23082 test $ac_status = 0; }; }
23083 then
23084 gcc_cv_as_weak=yes
23085 else
23086 echo "configure: failed program was" >&5
23087 cat conftest.s >&5
23088 fi
23089 rm -f conftest.o conftest.s
23090 fi
23091 fi
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23093 $as_echo "$gcc_cv_as_weak" >&6; }
23094 if test $gcc_cv_as_weak = yes; then
23095
23096 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23097
23098 fi
23099
23100
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23102 $as_echo_n "checking assembler for .weakref... " >&6; }
23103 if ${gcc_cv_as_weakref+:} false; then :
23104 $as_echo_n "(cached) " >&6
23105 else
23106 gcc_cv_as_weakref=no
23107 if test $in_tree_gas = yes; then
23108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23109 then gcc_cv_as_weakref=yes
23110 fi
23111 elif test x$gcc_cv_as != x; then
23112 $as_echo ' .weakref foobar, barfnot' > conftest.s
23113 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23115 (eval $ac_try) 2>&5
23116 ac_status=$?
23117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23118 test $ac_status = 0; }; }
23119 then
23120 gcc_cv_as_weakref=yes
23121 else
23122 echo "configure: failed program was" >&5
23123 cat conftest.s >&5
23124 fi
23125 rm -f conftest.o conftest.s
23126 fi
23127 fi
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23129 $as_echo "$gcc_cv_as_weakref" >&6; }
23130 if test $gcc_cv_as_weakref = yes; then
23131
23132 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23133
23134 fi
23135
23136
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23138 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23139 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23140 $as_echo_n "(cached) " >&6
23141 else
23142 gcc_cv_as_nsubspa_comdat=no
23143 if test $in_tree_gas = yes; then
23144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23145 then gcc_cv_as_nsubspa_comdat=yes
23146 fi
23147 elif test x$gcc_cv_as != x; then
23148 $as_echo ' .SPACE $TEXT$
23149 .NSUBSPA $CODE$,COMDAT' > conftest.s
23150 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23152 (eval $ac_try) 2>&5
23153 ac_status=$?
23154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23155 test $ac_status = 0; }; }
23156 then
23157 gcc_cv_as_nsubspa_comdat=yes
23158 else
23159 echo "configure: failed program was" >&5
23160 cat conftest.s >&5
23161 fi
23162 rm -f conftest.o conftest.s
23163 fi
23164 fi
23165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23166 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23167 if test $gcc_cv_as_nsubspa_comdat = yes; then
23168
23169 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23170
23171 fi
23172
23173
23174 # .hidden needs to be supported in both the assembler and the linker,
23175 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23176 # This is irritatingly difficult to feature test for; we have to check the
23177 # date string after the version number. If we've got an in-tree
23178 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23179 # to be safe.
23180 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23181 case "${target}" in
23182 *-*-aix*)
23183 conftest_s=' .globl foobar,hidden'
23184 ;;
23185 *)
23186 conftest_s=' .hidden foobar
23187 foobar:'
23188 ;;
23189 esac
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23191 $as_echo_n "checking assembler for .hidden... " >&6; }
23192 if ${gcc_cv_as_hidden+:} false; then :
23193 $as_echo_n "(cached) " >&6
23194 else
23195 gcc_cv_as_hidden=no
23196 if test $in_tree_gas = yes; then
23197 if test $in_tree_gas_is_elf = yes \
23198 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23199 then gcc_cv_as_hidden=yes
23200 fi
23201 elif test x$gcc_cv_as != x; then
23202 $as_echo "$conftest_s" > conftest.s
23203 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23205 (eval $ac_try) 2>&5
23206 ac_status=$?
23207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23208 test $ac_status = 0; }; }
23209 then
23210 gcc_cv_as_hidden=yes
23211 else
23212 echo "configure: failed program was" >&5
23213 cat conftest.s >&5
23214 fi
23215 rm -f conftest.o conftest.s
23216 fi
23217 fi
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23219 $as_echo "$gcc_cv_as_hidden" >&6; }
23220
23221
23222 case "${target}" in
23223 *-*-darwin*)
23224 # Darwin as has some visibility support, though with a different syntax.
23225 gcc_cv_as_hidden=yes
23226 ;;
23227 esac
23228
23229 # gnu_indirect_function type is an extension proposed at
23230 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23231 # selection of function implementation
23232 # Check whether --enable-gnu-indirect-function was given.
23233 if test "${enable_gnu_indirect_function+set}" = set; then :
23234 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23235 yes | no) ;;
23236 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23237 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23238 esac
23239 else
23240 enable_gnu_indirect_function="$default_gnu_indirect_function"
23241 fi
23242
23243
23244 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23245
23246 cat >>confdefs.h <<_ACEOF
23247 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23248 _ACEOF
23249
23250
23251
23252 if test $in_tree_ld != yes ; then
23253 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23254 if echo "$ld_ver" | grep GNU > /dev/null; then
23255 if test x"$ld_is_gold" = xyes; then
23256 # GNU gold --version looks like this:
23257 #
23258 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23259 #
23260 # We extract the binutils version which is more familiar and specific
23261 # than the gold version.
23262 ld_vers=`echo $ld_ver | sed -n \
23263 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23264 else
23265 # GNU ld --version looks like this:
23266 #
23267 # GNU ld (GNU Binutils) 2.21.51.20110225
23268 ld_vers=`echo $ld_ver | sed -n \
23269 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23270 fi
23271 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'`
23272 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23273 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23274 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23275 else
23276 case "${target}" in
23277 *-*-solaris2*)
23278 # Solaris 2 ld -V output looks like this for a regular version:
23279 #
23280 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23281 #
23282 # but test versions add stuff at the end:
23283 #
23284 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23285 #
23286 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23287 # numbers can be used in ld.so.1 feature checks even if a different
23288 # linker is configured.
23289 ld_ver=`$gcc_cv_ld -V 2>&1`
23290 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23291 ld_vers=`echo $ld_ver | sed -n \
23292 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23293 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23294 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23295 fi
23296 ;;
23297 esac
23298 fi
23299 fi
23300
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23302 $as_echo_n "checking linker for .hidden support... " >&6; }
23303 if ${gcc_cv_ld_hidden+:} false; then :
23304 $as_echo_n "(cached) " >&6
23305 else
23306 if test $in_tree_ld = yes ; then
23307 gcc_cv_ld_hidden=no
23308 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 \
23309 && test $in_tree_ld_is_elf = yes; then
23310 gcc_cv_ld_hidden=yes
23311 fi
23312 else
23313 gcc_cv_ld_hidden=yes
23314 if test x"$ld_is_gold" = xyes; then
23315 :
23316 elif echo "$ld_ver" | grep GNU > /dev/null; then
23317 case "${target}" in
23318 mmix-knuth-mmixware)
23319 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23320 gcc_cv_ld_hidden=no
23321 ;;
23322 esac
23323 if test 0"$ld_date" -lt 20020404; then
23324 if test -n "$ld_date"; then
23325 # If there was date string, but was earlier than 2002-04-04, fail
23326 gcc_cv_ld_hidden=no
23327 elif test -z "$ld_vers"; then
23328 # If there was no date string nor ld version number, something is wrong
23329 gcc_cv_ld_hidden=no
23330 else
23331 test -z "$ld_vers_patch" && ld_vers_patch=0
23332 if test "$ld_vers_major" -lt 2; then
23333 gcc_cv_ld_hidden=no
23334 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23335 gcc_cv_ld_hidden="no"
23336 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23337 gcc_cv_ld_hidden=no
23338 fi
23339 fi
23340 fi
23341 else
23342 case "${target}" in
23343 *-*-aix[789]*)
23344 gcc_cv_ld_hidden=yes
23345 ;;
23346 *-*-darwin*)
23347 # Darwin ld has some visibility support.
23348 gcc_cv_ld_hidden=yes
23349 ;;
23350 hppa64*-*-hpux* | ia64*-*-hpux*)
23351 gcc_cv_ld_hidden=yes
23352 ;;
23353 *-*-solaris2*)
23354 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23355 # .symbolic was only added in Solaris 9 12/02.
23356 gcc_cv_ld_hidden=yes
23357 ;;
23358 *)
23359 gcc_cv_ld_hidden=no
23360 ;;
23361 esac
23362 fi
23363 fi
23364 fi
23365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23366 $as_echo "$gcc_cv_ld_hidden" >&6; }
23367 libgcc_visibility=no
23368
23369
23370 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23371 libgcc_visibility=yes
23372
23373 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23374
23375 fi
23376
23377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23378 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23379 gcc_cv_ld_ro_rw_mix=unknown
23380 if test $in_tree_ld = yes ; then
23381 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 \
23382 && test $in_tree_ld_is_elf = yes; then
23383 gcc_cv_ld_ro_rw_mix=read-write
23384 fi
23385 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23386 echo '.section myfoosect, "a"' > conftest1.s
23387 echo '.section myfoosect, "aw"' > conftest2.s
23388 echo '.byte 1' >> conftest2.s
23389 echo '.section myfoosect, "a"' > conftest3.s
23390 echo '.byte 0' >> conftest3.s
23391 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23392 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23393 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23394 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23395 conftest2.o conftest3.o > /dev/null 2>&1; then
23396 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23397 | sed -e '/myfoosect/!d' -e N`
23398 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23399 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23400 gcc_cv_ld_ro_rw_mix=read-only
23401 else
23402 gcc_cv_ld_ro_rw_mix=read-write
23403 fi
23404 fi
23405 fi
23406 rm -f conftest.* conftest[123].*
23407 fi
23408 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23409
23410 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23411
23412 fi
23413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23414 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23415
23416 # Check whether --enable-initfini-array was given.
23417 if test "${enable_initfini_array+set}" = set; then :
23418 enableval=$enable_initfini_array;
23419 else
23420
23421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23422 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23423 if ${gcc_cv_initfini_array+:} false; then :
23424 $as_echo_n "(cached) " >&6
23425 else
23426 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23427 case "${target}" in
23428 ia64-*)
23429 if test "$cross_compiling" = yes; then :
23430 gcc_cv_initfini_array=no
23431 else
23432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23433 /* end confdefs.h. */
23434
23435 #ifndef __ELF__
23436 #error Not an ELF OS
23437 #endif
23438 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23439 if it can be used. */
23440 static int x = -1;
23441 int main (void) { return x; }
23442 int foo (void) { x = 0; }
23443 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23444
23445 _ACEOF
23446 if ac_fn_cxx_try_run "$LINENO"; then :
23447 gcc_cv_initfini_array=yes
23448 else
23449 gcc_cv_initfini_array=no
23450 fi
23451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23452 conftest.$ac_objext conftest.beam conftest.$ac_ext
23453 fi
23454 ;;
23455 *)
23456 gcc_cv_initfini_array=no
23457 if test $in_tree_ld = yes ; then
23458 if test "$gcc_cv_gld_major_version" -eq 2 \
23459 -a "$gcc_cv_gld_minor_version" -ge 22 \
23460 -o "$gcc_cv_gld_major_version" -gt 2 \
23461 && test $in_tree_ld_is_elf = yes; then
23462 gcc_cv_initfini_array=yes
23463 fi
23464 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23465 case $target:$gas in
23466 *:yes)
23467 sh_flags='"a"'
23468 sh_type='%progbits'
23469 ;;
23470 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23471 sh_flags='"a"'
23472 sh_type='@progbits'
23473 ;;
23474 sparc*-*-solaris2*:no)
23475 sh_flags='#alloc'
23476 sh_type='#progbits'
23477 sh_quote='"'
23478 ;;
23479 esac
23480 case "$target:$gnu_ld" in
23481 *:yes)
23482 cat > conftest.s <<EOF
23483 .section .dtors,$sh_flags,$sh_type
23484 .balign 4
23485 .byte 'A', 'A', 'A', 'A'
23486 .section .ctors,$sh_flags,$sh_type
23487 .balign 4
23488 .byte 'B', 'B', 'B', 'B'
23489 .section .fini_array.65530,$sh_flags,$sh_type
23490 .balign 4
23491 .byte 'C', 'C', 'C', 'C'
23492 .section .init_array.65530,$sh_flags,$sh_type
23493 .balign 4
23494 .byte 'D', 'D', 'D', 'D'
23495 .section .dtors.64528,$sh_flags,$sh_type
23496 .balign 4
23497 .byte 'E', 'E', 'E', 'E'
23498 .section .ctors.64528,$sh_flags,$sh_type
23499 .balign 4
23500 .byte 'F', 'F', 'F', 'F'
23501 .section .fini_array.01005,$sh_flags,$sh_type
23502 .balign 4
23503 .byte 'G', 'G', 'G', 'G'
23504 .section .init_array.01005,$sh_flags,$sh_type
23505 .balign 4
23506 .byte 'H', 'H', 'H', 'H'
23507 .text
23508 .globl _start
23509 _start:
23510 EOF
23511 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23512 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23513 && $gcc_cv_objdump -s -j .init_array conftest \
23514 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23515 && $gcc_cv_objdump -s -j .fini_array conftest \
23516 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23517 gcc_cv_initfini_array=yes
23518 fi
23519 ;;
23520 *-*-solaris2*:no)
23521 # When Solaris ld added constructor priority support, it was
23522 # decided to only handle .init_array.N/.fini_array.N since
23523 # there was no need for backwards compatibility with
23524 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23525 # sections with correct execution order resp. to
23526 # .init_array/.fini_array, while gld merges them into
23527 # .init_array/.fini_array.
23528 cat > conftest.s <<EOF
23529 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23530 .align 4
23531 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23532 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23533 .align 4
23534 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23535 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23536 .align 4
23537 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23538 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23539 .align 4
23540 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23541 .text
23542 .globl _start
23543 _start:
23544 EOF
23545 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23546 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23547 && $gcc_cv_objdump -s -j .init_array conftest \
23548 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
23549 && $gcc_cv_objdump -s -j .fini_array conftest \
23550 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
23551 gcc_cv_initfini_array=yes
23552 fi
23553 ;;
23554 esac
23555 rm -f conftest conftest.*
23556 fi
23557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23558 /* end confdefs.h. */
23559
23560 #ifndef __ELF__
23561 # error Not an ELF OS
23562 #endif
23563 #include <stdlib.h>
23564 #if defined __GLIBC_PREREQ
23565 # if __GLIBC_PREREQ (2, 4)
23566 # else
23567 # error GLIBC 2.4 required
23568 # endif
23569 #else
23570 # if defined __sun__ && defined __svr4__
23571 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23572 # else
23573 # error The C library not known to support .init_array/.fini_array
23574 # endif
23575 #endif
23576
23577 _ACEOF
23578 if ac_fn_cxx_try_cpp "$LINENO"; then :
23579
23580 else
23581 gcc_cv_initfini_array=no
23582 fi
23583 rm -f conftest.err conftest.i conftest.$ac_ext;;
23584 esac
23585 else
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23587 $as_echo_n "checking cross compile... guessing... " >&6; }
23588 gcc_cv_initfini_array=no
23589 fi
23590 fi
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23592 $as_echo "$gcc_cv_initfini_array" >&6; }
23593 enable_initfini_array=$gcc_cv_initfini_array
23594
23595 fi
23596
23597
23598 cat >>confdefs.h <<_ACEOF
23599 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23600 _ACEOF
23601
23602
23603
23604 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23606 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23607 if ${gcc_cv_as_leb128+:} false; then :
23608 $as_echo_n "(cached) " >&6
23609 else
23610 gcc_cv_as_leb128=no
23611 if test $in_tree_gas = yes; then
23612 if test $in_tree_gas_is_elf = yes \
23613 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23614 then gcc_cv_as_leb128=yes
23615 fi
23616 elif test x$gcc_cv_as != x; then
23617 $as_echo ' .data
23618 .uleb128 L2 - L1
23619 L1:
23620 .uleb128 1280
23621 .sleb128 -1010
23622 L2:' > conftest.s
23623 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23625 (eval $ac_try) 2>&5
23626 ac_status=$?
23627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23628 test $ac_status = 0; }; }
23629 then
23630 # GAS versions before 2.11 do not support uleb128,
23631 # despite appearing to.
23632 # ??? There exists an elf-specific test that will crash
23633 # the assembler. Perhaps it's better to figure out whether
23634 # arbitrary sections are supported and try the test.
23635 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23636 if echo "$as_ver" | grep GNU > /dev/null; then
23637 as_vers=`echo $as_ver | sed -n \
23638 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23639 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23640 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23641 if test $as_major -eq 2 && test $as_minor -lt 11
23642 then :
23643 else gcc_cv_as_leb128=yes
23644 fi
23645 fi
23646 else
23647 echo "configure: failed program was" >&5
23648 cat conftest.s >&5
23649 fi
23650 rm -f conftest.o conftest.s
23651 fi
23652 fi
23653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23654 $as_echo "$gcc_cv_as_leb128" >&6; }
23655 if test $gcc_cv_as_leb128 = yes; then
23656
23657 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23658
23659 fi
23660 if test $gcc_cv_as_leb128 != yes; then
23661
23662 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23663
23664 fi
23665
23666 # Determine if an .eh_frame section is read-only.
23667 gcc_fn_eh_frame_ro () {
23668 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23669 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23670 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23671 }
23672
23673 # Check if we have assembler support for unwind directives.
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23675 $as_echo_n "checking assembler for cfi directives... " >&6; }
23676 if ${gcc_cv_as_cfi_directive+:} false; then :
23677 $as_echo_n "(cached) " >&6
23678 else
23679 gcc_cv_as_cfi_directive=no
23680 if test x$gcc_cv_as != x; then
23681 $as_echo ' .text
23682 .cfi_startproc
23683 .cfi_offset 0, 0
23684 .cfi_same_value 1
23685 .cfi_def_cfa 1, 2
23686 .cfi_escape 1, 2, 3, 4, 5
23687 .cfi_endproc' > conftest.s
23688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23690 (eval $ac_try) 2>&5
23691 ac_status=$?
23692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23693 test $ac_status = 0; }; }
23694 then
23695 case "$target" in
23696 *-*-solaris*)
23697 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23698 # read-only and read-write sections, we need to make sure that the
23699 # assembler used emits read-write .eh_frame sections.
23700 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23701 gcc_cv_as_cfi_directive=yes
23702 elif test "x$gcc_cv_objdump" = x; then
23703 # No objdump, err on the side of caution.
23704 gcc_cv_as_cfi_directive=no
23705 else
23706 if test x$gas = xyes; then
23707 as_32_opt="--32"
23708 as_64_opt="--64"
23709 else
23710 as_32_opt="-m32"
23711 as_64_opt="-m64"
23712 fi
23713 case "$target" in
23714 sparc*-*-solaris2.*)
23715 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23716 if gcc_fn_eh_frame_ro $as_32_opt \
23717 || gcc_fn_eh_frame_ro $as_64_opt; then
23718 gcc_cv_as_cfi_directive=no
23719 else
23720 gcc_cv_as_cfi_directive=yes
23721 fi
23722 ;;
23723 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23724 # On Solaris/x86, make sure that GCC and assembler agree on using
23725 # read-only .eh_frame sections for 64-bit.
23726 if gcc_fn_eh_frame_ro $as_32_opt; then
23727 gcc_cv_as_cfi_directive=no
23728 elif gcc_fn_eh_frame_ro $as_64_opt; then
23729 gcc_cv_as_cfi_directive=yes
23730 else
23731 gcc_cv_as_cfi_directive=no
23732 fi
23733 ;;
23734 esac
23735 fi
23736 ;;
23737 *-*-*)
23738 gcc_cv_as_cfi_directive=yes
23739 ;;
23740 esac
23741 else
23742 echo "configure: failed program was" >&5
23743 cat conftest.s >&5
23744 fi
23745 rm -f conftest.o conftest.s
23746 fi
23747 fi
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23749 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23750
23751
23752 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23754 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23755 if ${gcc_cv_as_cfi_advance_working+:} false; then :
23756 $as_echo_n "(cached) " >&6
23757 else
23758 gcc_cv_as_cfi_advance_working=no
23759 if test x$gcc_cv_as != x; then
23760 $as_echo ' .text
23761 .cfi_startproc
23762 .cfi_adjust_cfa_offset 64
23763 .skip 75040, 0
23764 .cfi_adjust_cfa_offset 128
23765 .cfi_endproc' > conftest.s
23766 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23768 (eval $ac_try) 2>&5
23769 ac_status=$?
23770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23771 test $ac_status = 0; }; }
23772 then
23773
23774 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23775 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23776 gcc_cv_as_cfi_advance_working=yes
23777 fi
23778
23779 else
23780 echo "configure: failed program was" >&5
23781 cat conftest.s >&5
23782 fi
23783 rm -f conftest.o conftest.s
23784 fi
23785 fi
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23787 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23788
23789
23790 else
23791 # no objdump, err on the side of caution
23792 gcc_cv_as_cfi_advance_working=no
23793 fi
23794
23795
23796 cat >>confdefs.h <<_ACEOF
23797 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23798 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23799 _ACEOF
23800
23801
23802
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23804 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23805 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23806 $as_echo_n "(cached) " >&6
23807 else
23808 gcc_cv_as_cfi_personality_directive=no
23809 if test x$gcc_cv_as != x; then
23810 $as_echo ' .text
23811 .cfi_startproc
23812 .cfi_personality 0, symbol
23813 .cfi_endproc' > conftest.s
23814 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23816 (eval $ac_try) 2>&5
23817 ac_status=$?
23818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23819 test $ac_status = 0; }; }
23820 then
23821 gcc_cv_as_cfi_personality_directive=yes
23822 else
23823 echo "configure: failed program was" >&5
23824 cat conftest.s >&5
23825 fi
23826 rm -f conftest.o conftest.s
23827 fi
23828 fi
23829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23830 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23831
23832
23833
23834 cat >>confdefs.h <<_ACEOF
23835 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23836 _ACEOF
23837
23838
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23840 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23841 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
23842 $as_echo_n "(cached) " >&6
23843 else
23844 gcc_cv_as_cfi_sections_directive=no
23845 if test x$gcc_cv_as != x; then
23846 $as_echo ' .text
23847 .cfi_sections .debug_frame, .eh_frame
23848 .cfi_startproc
23849 .cfi_endproc' > conftest.s
23850 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23852 (eval $ac_try) 2>&5
23853 ac_status=$?
23854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23855 test $ac_status = 0; }; }
23856 then
23857 case $target_os in
23858 win32 | pe | cygwin* | mingw32*)
23859 # Need to check that we generated the correct relocation for the
23860 # .debug_frame section. This was fixed for binutils 2.21.
23861 gcc_cv_as_cfi_sections_directive=no
23862 if test "x$gcc_cv_objdump" != x; then
23863 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23864 grep secrel > /dev/null; then
23865 gcc_cv_as_cfi_sections_directive=yes
23866 fi
23867 fi
23868 ;;
23869 *)
23870 gcc_cv_as_cfi_sections_directive=yes
23871 ;;
23872 esac
23873 else
23874 echo "configure: failed program was" >&5
23875 cat conftest.s >&5
23876 fi
23877 rm -f conftest.o conftest.s
23878 fi
23879 fi
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23881 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23882
23883
23884
23885
23886 cat >>confdefs.h <<_ACEOF
23887 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
23888 _ACEOF
23889
23890
23891 # GAS versions up to and including 2.11.0 may mis-optimize
23892 # .eh_frame data.
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23894 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23895 if ${gcc_cv_as_eh_frame+:} false; then :
23896 $as_echo_n "(cached) " >&6
23897 else
23898 gcc_cv_as_eh_frame=no
23899 if test $in_tree_gas = yes; then
23900 if test $in_tree_gas_is_elf = yes \
23901 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23902 then gcc_cv_as_eh_frame=yes
23903 fi
23904 elif test x$gcc_cv_as != x; then
23905 $as_echo ' .text
23906 .LFB1:
23907 .4byte 0
23908 .L1:
23909 .4byte 0
23910 .LFE1:
23911 .section .eh_frame,"aw",@progbits
23912 __FRAME_BEGIN__:
23913 .4byte .LECIE1-.LSCIE1
23914 .LSCIE1:
23915 .4byte 0x0
23916 .byte 0x1
23917 .ascii "z\0"
23918 .byte 0x1
23919 .byte 0x78
23920 .byte 0x1a
23921 .byte 0x0
23922 .byte 0x4
23923 .4byte 1
23924 .p2align 1
23925 .LECIE1:
23926 .LSFDE1:
23927 .4byte .LEFDE1-.LASFDE1
23928 .LASFDE1:
23929 .4byte .LASFDE1-__FRAME_BEGIN__
23930 .4byte .LFB1
23931 .4byte .LFE1-.LFB1
23932 .byte 0x4
23933 .4byte .LFE1-.LFB1
23934 .byte 0x4
23935 .4byte .L1-.LFB1
23936 .LEFDE1:' > conftest.s
23937 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23939 (eval $ac_try) 2>&5
23940 ac_status=$?
23941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23942 test $ac_status = 0; }; }
23943 then
23944 cat > conftest.lit <<EOF
23945 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23946 0010 01000000 12000000 18000000 00000000 ................
23947 0020 08000000 04080000 0044 .........D
23948 EOF
23949 cat > conftest.big <<EOF
23950 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23951 0010 00000001 00000012 00000018 00000000 ................
23952 0020 00000008 04000000 0844 .........D
23953 EOF
23954 # If the assembler didn't choke, and we can objdump,
23955 # and we got the correct data, then succeed.
23956 # The text in the here-document typically retains its unix-style line
23957 # endings, while the output of objdump will use host line endings.
23958 # Therefore, use diff -b for the comparisons.
23959 if test x$gcc_cv_objdump != x \
23960 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23961 | tail -3 > conftest.got \
23962 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23963 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23964 then
23965 gcc_cv_as_eh_frame=yes
23966 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23968 (eval $ac_try) 2>&5
23969 ac_status=$?
23970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23971 test $ac_status = 0; }; }; then
23972 gcc_cv_as_eh_frame=buggy
23973 else
23974 # Uh oh, what do we do now?
23975 gcc_cv_as_eh_frame=no
23976 fi
23977 else
23978 echo "configure: failed program was" >&5
23979 cat conftest.s >&5
23980 fi
23981 rm -f conftest.o conftest.s
23982 fi
23983 fi
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23985 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23986
23987
23988
23989 if test $gcc_cv_as_eh_frame = buggy; then
23990
23991 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23992
23993 fi
23994
23995 # Test if the assembler supports the section flag 'e' or #exclude for
23996 # specifying an excluded section.
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23998 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23999 if ${gcc_cv_as_section_exclude_e+:} false; then :
24000 $as_echo_n "(cached) " >&6
24001 else
24002 gcc_cv_as_section_exclude_e=no
24003 if test $in_tree_gas = yes; then
24004 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24005 then gcc_cv_as_section_exclude_e=yes
24006 fi
24007 elif test x$gcc_cv_as != x; then
24008 $as_echo '.section foo1,"e"
24009 .byte 0,0,0,0' > conftest.s
24010 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24012 (eval $ac_try) 2>&5
24013 ac_status=$?
24014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24015 test $ac_status = 0; }; }
24016 then
24017 gcc_cv_as_section_exclude_e=yes
24018 else
24019 echo "configure: failed program was" >&5
24020 cat conftest.s >&5
24021 fi
24022 rm -f conftest.o conftest.s
24023 fi
24024 fi
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24026 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24027
24028
24029 if test $gcc_cv_as_section_exclude_e = no; then
24030 case "${target}" in
24031 # Solaris as uses #exclude instead.
24032 *-*-solaris2*)
24033 case "${target}" in
24034 sparc*-*-solaris2*)
24035 conftest_s='.section "foo1", #exclude'
24036 ;;
24037 i?86-*-solaris2* | x86_64-*-solaris2*)
24038 conftest_s='.section foo1, #exclude'
24039 ;;
24040 esac
24041 ;;
24042 esac
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24044 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24045 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24046 $as_echo_n "(cached) " >&6
24047 else
24048 gcc_cv_as_section_exclude_hash=no
24049 if test x$gcc_cv_as != x; then
24050 $as_echo "$conftest_s
24051 .byte 0,0,0,0" > conftest.s
24052 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24054 (eval $ac_try) 2>&5
24055 ac_status=$?
24056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24057 test $ac_status = 0; }; }
24058 then
24059 gcc_cv_as_section_exclude_hash=yes
24060 else
24061 echo "configure: failed program was" >&5
24062 cat conftest.s >&5
24063 fi
24064 rm -f conftest.o conftest.s
24065 fi
24066 fi
24067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24068 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24069
24070
24071 fi
24072
24073 cat >>confdefs.h <<_ACEOF
24074 #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`
24075 _ACEOF
24076
24077
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24079 $as_echo_n "checking assembler for section merging support... " >&6; }
24080 if ${gcc_cv_as_shf_merge+:} false; then :
24081 $as_echo_n "(cached) " >&6
24082 else
24083 gcc_cv_as_shf_merge=no
24084 if test $in_tree_gas = yes; then
24085 if test $in_tree_gas_is_elf = yes \
24086 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24087 then gcc_cv_as_shf_merge=yes
24088 fi
24089 elif test x$gcc_cv_as != x; then
24090 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24091 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24093 (eval $ac_try) 2>&5
24094 ac_status=$?
24095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24096 test $ac_status = 0; }; }
24097 then
24098 gcc_cv_as_shf_merge=yes
24099 else
24100 echo "configure: failed program was" >&5
24101 cat conftest.s >&5
24102 fi
24103 rm -f conftest.o conftest.s
24104 fi
24105 fi
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24107 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24108
24109
24110 if test $gcc_cv_as_shf_merge = no; then
24111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24112 $as_echo_n "checking assembler for section merging support... " >&6; }
24113 if ${gcc_cv_as_shf_merge+:} false; then :
24114 $as_echo_n "(cached) " >&6
24115 else
24116 gcc_cv_as_shf_merge=no
24117 if test $in_tree_gas = yes; then
24118 if test $in_tree_gas_is_elf = yes \
24119 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24120 then gcc_cv_as_shf_merge=yes
24121 fi
24122 elif test x$gcc_cv_as != x; then
24123 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24124 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24126 (eval $ac_try) 2>&5
24127 ac_status=$?
24128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24129 test $ac_status = 0; }; }
24130 then
24131 gcc_cv_as_shf_merge=yes
24132 else
24133 echo "configure: failed program was" >&5
24134 cat conftest.s >&5
24135 fi
24136 rm -f conftest.o conftest.s
24137 fi
24138 fi
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24140 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24141
24142
24143 fi
24144
24145 cat >>confdefs.h <<_ACEOF
24146 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24147 _ACEOF
24148
24149
24150 gcc_cv_ld_aligned_shf_merge=yes
24151 case "$target" in
24152 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24153 # alignment > 1.
24154 sparc*-*-solaris2.11*)
24155 if test x"$gnu_ld" = xno \
24156 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24157 gcc_cv_ld_aligned_shf_merge=no
24158 fi
24159 ;;
24160 esac
24161
24162 cat >>confdefs.h <<_ACEOF
24163 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24164 _ACEOF
24165
24166
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24168 $as_echo_n "checking assembler for stabs directive... " >&6; }
24169 if ${gcc_cv_as_stabs_directive+:} false; then :
24170 $as_echo_n "(cached) " >&6
24171 else
24172 gcc_cv_as_stabs_directive=no
24173 if test x$gcc_cv_as != x; then
24174 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24175 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24177 (eval $ac_try) 2>&5
24178 ac_status=$?
24179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24180 test $ac_status = 0; }; }
24181 then
24182 gcc_cv_as_stabs_directive=yes
24183 else
24184 echo "configure: failed program was" >&5
24185 cat conftest.s >&5
24186 fi
24187 rm -f conftest.o conftest.s
24188 fi
24189 fi
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24191 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24192 if test $gcc_cv_as_stabs_directive = yes; then
24193
24194 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24195
24196 fi
24197
24198
24199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24200 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24201 if ${gcc_cv_as_comdat_group+:} false; then :
24202 $as_echo_n "(cached) " >&6
24203 else
24204 gcc_cv_as_comdat_group=no
24205 if test $in_tree_gas = yes; then
24206 if test $in_tree_gas_is_elf = yes \
24207 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24208 then gcc_cv_as_comdat_group=yes
24209 fi
24210 elif test x$gcc_cv_as != x; then
24211 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24212 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24214 (eval $ac_try) 2>&5
24215 ac_status=$?
24216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24217 test $ac_status = 0; }; }
24218 then
24219 gcc_cv_as_comdat_group=yes
24220 else
24221 echo "configure: failed program was" >&5
24222 cat conftest.s >&5
24223 fi
24224 rm -f conftest.o conftest.s
24225 fi
24226 fi
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24228 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24229
24230
24231 if test $gcc_cv_as_comdat_group = yes; then
24232 gcc_cv_as_comdat_group_percent=no
24233 gcc_cv_as_comdat_group_group=no
24234 else
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24236 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24237 if ${gcc_cv_as_comdat_group_percent+:} false; then :
24238 $as_echo_n "(cached) " >&6
24239 else
24240 gcc_cv_as_comdat_group_percent=no
24241 if test $in_tree_gas = yes; then
24242 if test $in_tree_gas_is_elf = yes \
24243 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24244 then gcc_cv_as_comdat_group_percent=yes
24245 fi
24246 elif test x$gcc_cv_as != x; then
24247 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24248 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24250 (eval $ac_try) 2>&5
24251 ac_status=$?
24252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24253 test $ac_status = 0; }; }
24254 then
24255 gcc_cv_as_comdat_group_percent=yes
24256 else
24257 echo "configure: failed program was" >&5
24258 cat conftest.s >&5
24259 fi
24260 rm -f conftest.o conftest.s
24261 fi
24262 fi
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24264 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24265
24266
24267 if test $gcc_cv_as_comdat_group_percent = yes; then
24268 gcc_cv_as_comdat_group_group=no
24269 else
24270 case "${target}" in
24271 # Sun as uses a completely different syntax.
24272 *-*-solaris2*)
24273 case "${target}" in
24274 sparc*-*-solaris2*)
24275 conftest_s='
24276 .group foo,".text%foo",#comdat
24277 .section ".text%foo", #alloc,#execinstr,#progbits
24278 .globl foo
24279 foo:
24280 '
24281 ;;
24282 i?86-*-solaris2* | x86_64-*-solaris2*)
24283 conftest_s='
24284 .group foo,.text%foo,#comdat
24285 .section .text%foo, "ax", @progbits
24286 .globl foo
24287 foo:
24288 '
24289 ;;
24290 esac
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24292 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24293 if ${gcc_cv_as_comdat_group_group+:} false; then :
24294 $as_echo_n "(cached) " >&6
24295 else
24296 gcc_cv_as_comdat_group_group=no
24297 if test x$gcc_cv_as != x; then
24298 $as_echo "$conftest_s" > conftest.s
24299 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24301 (eval $ac_try) 2>&5
24302 ac_status=$?
24303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24304 test $ac_status = 0; }; }
24305 then
24306 gcc_cv_as_comdat_group_group=yes
24307 else
24308 echo "configure: failed program was" >&5
24309 cat conftest.s >&5
24310 fi
24311 rm -f conftest.o conftest.s
24312 fi
24313 fi
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24315 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24316
24317
24318 ;;
24319 esac
24320 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24321 gcc_cv_as_comdat_group_group=no
24322 fi
24323 fi
24324 fi
24325 if test x"$ld_is_gold" = xyes; then
24326 comdat_group=yes
24327 elif test $in_tree_ld = yes ; then
24328 comdat_group=no
24329 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 \
24330 && test $in_tree_ld_is_elf = yes; then
24331 comdat_group=yes
24332 fi
24333 elif echo "$ld_ver" | grep GNU > /dev/null; then
24334 comdat_group=yes
24335 if test 0"$ld_date" -lt 20050308; then
24336 if test -n "$ld_date"; then
24337 # If there was date string, but was earlier than 2005-03-08, fail
24338 comdat_group=no
24339 elif test "$ld_vers_major" -lt 2; then
24340 comdat_group=no
24341 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24342 comdat_group=no
24343 fi
24344 fi
24345 else
24346 case "${target}" in
24347 *-*-solaris2.1[1-9]*)
24348 comdat_group=no
24349 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24350 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24351 # version 1.688.
24352 #
24353 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24354 # least ld version 1.2267.
24355 if test "$ld_vers_major" -gt 1; then
24356 comdat_group=yes
24357 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24358 comdat_group=yes
24359 elif test "$ld_vers_minor" -ge 2267; then
24360 comdat_group=yes
24361 fi
24362 ;;
24363 *)
24364 # Assume linkers other than GNU ld don't support COMDAT group.
24365 comdat_group=no
24366 ;;
24367 esac
24368 fi
24369 # Allow overriding the automatic COMDAT group tests above.
24370 # Check whether --enable-comdat was given.
24371 if test "${enable_comdat+set}" = set; then :
24372 enableval=$enable_comdat; comdat_group="$enable_comdat"
24373 fi
24374
24375 if test $comdat_group = no; then
24376 gcc_cv_as_comdat_group=no
24377 gcc_cv_as_comdat_group_percent=no
24378 gcc_cv_as_comdat_group_group=no
24379 fi
24380
24381 cat >>confdefs.h <<_ACEOF
24382 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24383 || test $gcc_cv_as_comdat_group_percent = yes \
24384 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24385 _ACEOF
24386
24387
24388 # Restrict this test to Solaris/x86: other targets define this statically.
24389 case "${target}" in
24390 i?86-*-solaris2* | x86_64-*-solaris2*)
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24392 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24393 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24394 hidden_linkonce=yes
24395 else
24396 case "${target}" in
24397 # Full support for hidden thunks in linkonce sections only appeared in
24398 # Solaris 11/OpenSolaris.
24399 *-*-solaris2.1[1-9]*)
24400 hidden_linkonce=yes
24401 ;;
24402 *)
24403 hidden_linkonce=no
24404 ;;
24405 esac
24406 fi
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24408 $as_echo "$hidden_linkonce" >&6; }
24409
24410 cat >>confdefs.h <<_ACEOF
24411 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24412 _ACEOF
24413
24414 ;;
24415 esac
24416
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24418 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24419 if ${gcc_cv_as_is_stmt+:} false; then :
24420 $as_echo_n "(cached) " >&6
24421 else
24422 gcc_cv_as_is_stmt=no
24423 if test $in_tree_gas = yes; then
24424 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24425 then gcc_cv_as_is_stmt=yes
24426 fi
24427 elif test x$gcc_cv_as != x; then
24428 $as_echo ' .text
24429 .file 1 "conf.c"
24430 .loc 1 1 0 is_stmt 1' > conftest.s
24431 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24433 (eval $ac_try) 2>&5
24434 ac_status=$?
24435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24436 test $ac_status = 0; }; }
24437 then
24438 gcc_cv_as_is_stmt=yes
24439 else
24440 echo "configure: failed program was" >&5
24441 cat conftest.s >&5
24442 fi
24443 rm -f conftest.o conftest.s
24444 fi
24445 fi
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24447 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24448 if test $gcc_cv_as_is_stmt = yes; then
24449
24450 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24451
24452 fi
24453
24454
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24456 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24457 if ${gcc_cv_as_discriminator+:} false; then :
24458 $as_echo_n "(cached) " >&6
24459 else
24460 gcc_cv_as_discriminator=no
24461 if test $in_tree_gas = yes; then
24462 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24463 then gcc_cv_as_discriminator=yes
24464 fi
24465 elif test x$gcc_cv_as != x; then
24466 $as_echo ' .text
24467 .file 1 "conf.c"
24468 .loc 1 1 0 discriminator 1' > conftest.s
24469 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24471 (eval $ac_try) 2>&5
24472 ac_status=$?
24473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24474 test $ac_status = 0; }; }
24475 then
24476 gcc_cv_as_discriminator=yes
24477 else
24478 echo "configure: failed program was" >&5
24479 cat conftest.s >&5
24480 fi
24481 rm -f conftest.o conftest.s
24482 fi
24483 fi
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24485 $as_echo "$gcc_cv_as_discriminator" >&6; }
24486 if test $gcc_cv_as_discriminator = yes; then
24487
24488 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24489
24490 fi
24491
24492
24493 # Thread-local storage - the check is heavily parameterized.
24494 conftest_s=
24495 tls_first_major=
24496 tls_first_minor=
24497 tls_as_opt=
24498 case "$target" in
24499 alpha*-*-*)
24500 conftest_s='
24501 .section ".tdata","awT",@progbits
24502 foo: .long 25
24503 .text
24504 ldq $27,__tls_get_addr($29) !literal!1
24505 lda $16,foo($29) !tlsgd!1
24506 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24507 ldq $27,__tls_get_addr($29) !literal!2
24508 lda $16,foo($29) !tlsldm!2
24509 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24510 ldq $1,foo($29) !gotdtprel
24511 ldah $2,foo($29) !dtprelhi
24512 lda $3,foo($2) !dtprello
24513 lda $4,foo($29) !dtprel
24514 ldq $1,foo($29) !gottprel
24515 ldah $2,foo($29) !tprelhi
24516 lda $3,foo($2) !tprello
24517 lda $4,foo($29) !tprel'
24518 tls_first_major=2
24519 tls_first_minor=13
24520 tls_as_opt=--fatal-warnings
24521 ;;
24522 arc*-*-*)
24523 conftest_s='
24524 add_s r0,r0, @foo@tpoff'
24525 tls_first_major=2
24526 tls_first_minor=23
24527 ;;
24528 cris-*-*|crisv32-*-*)
24529 conftest_s='
24530 .section ".tdata","awT",@progbits
24531 x: .long 25
24532 .text
24533 move.d x:IE,$r10
24534 nop'
24535 tls_first_major=2
24536 tls_first_minor=20
24537 tls_as_opt=--fatal-warnings
24538 ;;
24539 frv*-*-*)
24540 conftest_s='
24541 .section ".tdata","awT",@progbits
24542 x: .long 25
24543 .text
24544 call #gettlsoff(x)'
24545 tls_first_major=2
24546 tls_first_minor=14
24547 ;;
24548 hppa*-*-linux*)
24549 conftest_s='
24550 t1: .reg %r20
24551 t2: .reg %r21
24552 gp: .reg %r19
24553 .section ".tdata","awT",@progbits
24554 foo: .long 25
24555 .text
24556 .align 4
24557 addil LT%foo-$tls_gdidx$,gp
24558 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24559 b __tls_get_addr
24560 nop
24561 addil LT%foo-$tls_ldidx$,gp
24562 b __tls_get_addr
24563 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24564 addil LR%foo-$tls_dtpoff$,%ret0
24565 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24566 mfctl %cr27,%t1
24567 addil LT%foo-$tls_ieoff$,gp
24568 ldw RT%foo-$tls_ieoff$(%r1),%t2
24569 add %t1,%t2,%t3
24570 mfctl %cr27,%t1
24571 addil LR%foo-$tls_leoff$,%t1
24572 ldo RR%foo-$tls_leoff$(%r1),%t2'
24573 tls_first_major=2
24574 tls_first_minor=15
24575 tls_as_opt=--fatal-warnings
24576 ;;
24577 arm*-*-*)
24578 conftest_s='
24579 .section ".tdata","awT",%progbits
24580 foo: .long 25
24581 .text
24582 .word foo(gottpoff)
24583 .word foo(tpoff)
24584 .word foo(tlsgd)
24585 .word foo(tlsldm)
24586 .word foo(tlsldo)'
24587 tls_first_major=2
24588 tls_first_minor=17
24589 ;;
24590 i[34567]86-*-* | x86_64-*-*)
24591 case "$target" in
24592 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
24593 on_solaris=yes
24594 ;;
24595 *)
24596 on_solaris=no
24597 ;;
24598 esac
24599 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24600 conftest_s='
24601 .section .tdata,"awt",@progbits'
24602 tls_first_major=0
24603 tls_first_minor=0
24604 tls_section_flag=t
24605
24606 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24607
24608 else
24609 conftest_s='
24610 .section ".tdata","awT",@progbits'
24611 tls_first_major=2
24612 tls_first_minor=14
24613 tls_section_flag=T
24614 tls_as_opt="--fatal-warnings"
24615 fi
24616 case "$target" in
24617 i[34567]86-*-*)
24618 conftest_s="$conftest_s
24619 foo: .long 25
24620 .text
24621 movl %gs:0, %eax
24622 leal foo@tlsgd(,%ebx,1), %eax
24623 leal foo@tlsldm(%ebx), %eax
24624 leal foo@dtpoff(%eax), %edx
24625 movl foo@gottpoff(%ebx), %eax
24626 subl foo@gottpoff(%ebx), %eax
24627 addl foo@gotntpoff(%ebx), %eax
24628 movl foo@indntpoff, %eax
24629 movl \$foo@tpoff, %eax
24630 subl \$foo@tpoff, %eax
24631 leal foo@ntpoff(%ecx), %eax"
24632 ;;
24633 x86_64-*-*)
24634 if test x$on_solaris = xyes; then
24635 case $gas_flag in
24636 yes) tls_as_opt="$tls_as_opt --64" ;;
24637 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24638 esac
24639 fi
24640 conftest_s="$conftest_s
24641 foo: .long 25
24642 .text
24643 movq %fs:0, %rax
24644 leaq foo@tlsgd(%rip), %rdi
24645 leaq foo@tlsld(%rip), %rdi
24646 leaq foo@dtpoff(%rax), %rdx
24647 movq foo@gottpoff(%rip), %rax
24648 movq \$foo@tpoff, %rax"
24649 ;;
24650 esac
24651 ;;
24652 ia64-*-*)
24653 conftest_s='
24654 .section ".tdata","awT",@progbits
24655 foo: data8 25
24656 .text
24657 addl r16 = @ltoff(@dtpmod(foo#)), gp
24658 addl r17 = @ltoff(@dtprel(foo#)), gp
24659 addl r18 = @ltoff(@tprel(foo#)), gp
24660 addl r19 = @dtprel(foo#), gp
24661 adds r21 = @dtprel(foo#), r13
24662 movl r23 = @dtprel(foo#)
24663 addl r20 = @tprel(foo#), gp
24664 adds r22 = @tprel(foo#), r13
24665 movl r24 = @tprel(foo#)'
24666 tls_first_major=2
24667 tls_first_minor=13
24668 tls_as_opt=--fatal-warnings
24669 ;;
24670 microblaze*-*-*)
24671 conftest_s='
24672 .section .tdata,"awT",@progbits
24673 x:
24674 .word 2
24675 .text
24676 addik r5,r20,x@TLSGD
24677 addik r5,r20,x@TLSLDM'
24678 tls_first_major=2
24679 tls_first_minor=20
24680 tls_as_opt='--fatal-warnings'
24681 ;;
24682 mips*-*-*)
24683 conftest_s='
24684 .section .tdata,"awT",@progbits
24685 x:
24686 .word 2
24687 .text
24688 addiu $4, $28, %tlsgd(x)
24689 addiu $4, $28, %tlsldm(x)
24690 lui $4, %dtprel_hi(x)
24691 addiu $4, $4, %dtprel_lo(x)
24692 lw $4, %gottprel(x)($28)
24693 lui $4, %tprel_hi(x)
24694 addiu $4, $4, %tprel_lo(x)'
24695 tls_first_major=2
24696 tls_first_minor=16
24697 tls_as_opt='-32 --fatal-warnings'
24698 ;;
24699 m68k-*-*)
24700 conftest_s='
24701 .section .tdata,"awT",@progbits
24702 x:
24703 .word 2
24704 .text
24705 foo:
24706 move.l x@TLSGD(%a5),%a0
24707 move.l x@TLSLDM(%a5),%a0
24708 move.l x@TLSLDO(%a5),%a0
24709 move.l x@TLSIE(%a5),%a0
24710 move.l x@TLSLE(%a5),%a0'
24711 tls_first_major=2
24712 tls_first_minor=19
24713 tls_as_opt='--fatal-warnings'
24714 ;;
24715 nios2-*-*)
24716 conftest_s='
24717 .section ".tdata","awT",@progbits'
24718 tls_first_major=2
24719 tls_first_minor=23
24720 tls_as_opt="--fatal-warnings"
24721 ;;
24722 aarch64*-*-*)
24723 conftest_s='
24724 .section ".tdata","awT",%progbits
24725 foo: .long 25
24726 .text
24727 adrp x0, :tlsgd:x
24728 add x0, x0, #:tlsgd_lo12:x
24729 bl __tls_get_addr
24730 nop'
24731 tls_first_major=2
24732 tls_first_minor=20
24733 tls_as_opt='--fatal-warnings'
24734 ;;
24735 or1k*-*-*)
24736 conftest_s='
24737 .section ".tdata","awT",@progbits
24738 foo: .long 25
24739 .text
24740 l.movhi r3, tpoffha(foo)
24741 l.add r3, r3, r10
24742 l.lwz r4, tpofflo(foo)(r3)'
24743 tls_first_major=2
24744 tls_first_minor=30
24745 tls_as_opt=--fatal-warnings
24746 ;;
24747 powerpc-ibm-aix*)
24748 conftest_s='
24749 .extern __get_tpointer
24750 .toc
24751 LC..1:
24752 .tc a[TC],a[TL]@le
24753 .csect .text[PR]
24754 .tlstest:
24755 lwz 9,LC..1(2)
24756 bla __get_tpointer
24757 lwzx 3,9,3
24758 .globl a
24759 .csect a[TL],4
24760 a:
24761 .space 4'
24762 tls_first_major=0
24763 tls_first_minor=0
24764 ;;
24765 powerpc64*-*-*)
24766 conftest_s='
24767 .section ".tdata","awT",@progbits
24768 .align 3
24769 ld0: .space 8
24770 ld1: .space 8
24771 x1: .space 8
24772 x2: .space 8
24773 x3: .space 8
24774 .text
24775 addi 3,2,ld0@got@tlsgd
24776 bl .__tls_get_addr
24777 nop
24778 addi 3,2,ld1@toc
24779 bl .__tls_get_addr
24780 nop
24781 addi 3,2,x1@got@tlsld
24782 bl .__tls_get_addr
24783 nop
24784 addi 9,3,x1@dtprel
24785 bl .__tls_get_addr
24786 nop
24787 addis 9,3,x2@dtprel@ha
24788 addi 9,9,x2@dtprel@l
24789 bl .__tls_get_addr
24790 nop
24791 ld 9,x3@got@dtprel(2)
24792 add 9,9,3
24793 bl .__tls_get_addr
24794 nop'
24795 tls_first_major=2
24796 tls_first_minor=14
24797 tls_as_opt="-a64 --fatal-warnings"
24798 ;;
24799 powerpc*-*-*)
24800 conftest_s='
24801 .section ".tdata","awT",@progbits
24802 .align 2
24803 ld0: .space 4
24804 ld1: .space 4
24805 x1: .space 4
24806 x2: .space 4
24807 x3: .space 4
24808 .text
24809 addi 3,31,ld0@got@tlsgd
24810 bl __tls_get_addr
24811 addi 3,31,x1@got@tlsld
24812 bl __tls_get_addr
24813 addi 9,3,x1@dtprel
24814 addis 9,3,x2@dtprel@ha
24815 addi 9,9,x2@dtprel@l
24816 lwz 9,x3@got@tprel(31)
24817 add 9,9,x@tls
24818 addi 9,2,x1@tprel
24819 addis 9,2,x2@tprel@ha
24820 addi 9,9,x2@tprel@l'
24821 tls_first_major=2
24822 tls_first_minor=14
24823 tls_as_opt="-a32 --fatal-warnings"
24824 ;;
24825 riscv*-*-*)
24826 conftest_s='
24827 .section .tdata,"awT",@progbits
24828 x: .word 2
24829 .text
24830 la.tls.gd a0,x
24831 call __tls_get_addr'
24832 tls_first_major=2
24833 tls_first_minor=21
24834 tls_as_opt='--fatal-warnings'
24835 ;;
24836 s390-*-*)
24837 conftest_s='
24838 .section ".tdata","awT",@progbits
24839 foo: .long 25
24840 .text
24841 .long foo@TLSGD
24842 .long foo@TLSLDM
24843 .long foo@DTPOFF
24844 .long foo@NTPOFF
24845 .long foo@GOTNTPOFF
24846 .long foo@INDNTPOFF
24847 l %r1,foo@GOTNTPOFF(%r12)
24848 l %r1,0(%r1):tls_load:foo
24849 bas %r14,0(%r1,%r13):tls_gdcall:foo
24850 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24851 tls_first_major=2
24852 tls_first_minor=14
24853 tls_as_opt="-m31 --fatal-warnings"
24854 ;;
24855 s390x-*-*)
24856 conftest_s='
24857 .section ".tdata","awT",@progbits
24858 foo: .long 25
24859 .text
24860 .quad foo@TLSGD
24861 .quad foo@TLSLDM
24862 .quad foo@DTPOFF
24863 .quad foo@NTPOFF
24864 .quad foo@GOTNTPOFF
24865 lg %r1,foo@GOTNTPOFF(%r12)
24866 larl %r1,foo@INDNTPOFF
24867 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24868 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24869 tls_first_major=2
24870 tls_first_minor=14
24871 tls_as_opt="-m64 -Aesame --fatal-warnings"
24872 ;;
24873 sh-*-* | sh[123456789lbe]*-*-*)
24874 conftest_s='
24875 .section ".tdata","awT",@progbits
24876 foo: .long 25
24877 .text
24878 .long foo@TLSGD
24879 .long foo@TLSLDM
24880 .long foo@DTPOFF
24881 .long foo@GOTTPOFF
24882 .long foo@TPOFF'
24883 tls_first_major=2
24884 tls_first_minor=13
24885 tls_as_opt=--fatal-warnings
24886 ;;
24887 sparc*-*-*)
24888 case "$target" in
24889 sparc*-sun-solaris2.*)
24890 on_solaris=yes
24891 ;;
24892 *)
24893 on_solaris=no
24894 ;;
24895 esac
24896 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24897 conftest_s='
24898 .section ".tdata",#alloc,#write,#tls'
24899 tls_first_major=0
24900 tls_first_minor=0
24901 else
24902 conftest_s='
24903 .section ".tdata","awT",@progbits'
24904 tls_first_major=2
24905 tls_first_minor=14
24906 tls_as_opt="-32 --fatal-warnings"
24907 fi
24908 conftest_s="$conftest_s
24909 foo: .long 25
24910 .text
24911 sethi %tgd_hi22(foo), %o0
24912 add %o0, %tgd_lo10(foo), %o1
24913 add %l7, %o1, %o0, %tgd_add(foo)
24914 call __tls_get_addr, %tgd_call(foo)
24915 sethi %tldm_hi22(foo), %l1
24916 add %l1, %tldm_lo10(foo), %l2
24917 add %l7, %l2, %o0, %tldm_add(foo)
24918 call __tls_get_addr, %tldm_call(foo)
24919 sethi %tldo_hix22(foo), %l3
24920 xor %l3, %tldo_lox10(foo), %l4
24921 add %o0, %l4, %l5, %tldo_add(foo)
24922 sethi %tie_hi22(foo), %o3
24923 add %o3, %tie_lo10(foo), %o3
24924 ld [%l7 + %o3], %o2, %tie_ld(foo)
24925 add %g7, %o2, %o4, %tie_add(foo)
24926 sethi %tle_hix22(foo), %l1
24927 xor %l1, %tle_lox10(foo), %o5
24928 ld [%g7 + %o5], %o1"
24929 ;;
24930 tilepro*-*-*)
24931 conftest_s='
24932 .section ".tdata","awT",@progbits
24933 foo: .long 25
24934 .text
24935 addli r0, zero, tls_gd(foo)
24936 auli r0, zero, tls_gd_ha16(foo)
24937 addli r0, r0, tls_gd_lo16(foo)
24938 jal __tls_get_addr
24939 addli r0, zero, tls_ie(foo)
24940 auli r0, r0, tls_ie_ha16(foo)
24941 addli r0, r0, tls_ie_lo16(foo)'
24942 tls_first_major=2
24943 tls_first_minor=22
24944 tls_as_opt="--fatal-warnings"
24945 ;;
24946 tilegx*-*-*)
24947 conftest_s='
24948 .section ".tdata","awT",@progbits
24949 foo: .long 25
24950 .text
24951 shl16insli r0, zero, hw0_last_tls_gd(foo)
24952 shl16insli r0, zero, hw1_last_tls_gd(foo)
24953 shl16insli r0, r0, hw0_tls_gd(foo)
24954 jal __tls_get_addr
24955 shl16insli r0, zero, hw1_last_tls_ie(foo)
24956 shl16insli r0, r0, hw0_tls_ie(foo)'
24957 tls_first_major=2
24958 tls_first_minor=22
24959 tls_as_opt="--fatal-warnings"
24960 ;;
24961 xtensa*-*-*)
24962 conftest_s='
24963 .section ".tdata","awT",@progbits
24964 foo: .long 25
24965 .text
24966 movi a8, foo@TLSFUNC
24967 movi a10, foo@TLSARG
24968 callx8.tls a8, foo@TLSCALL'
24969 tls_first_major=2
24970 tls_first_minor=19
24971 ;;
24972 esac
24973 set_have_as_tls=no
24974 if test "x$enable_tls" = xno ; then
24975 : # TLS explicitly disabled.
24976 elif test "x$enable_tls" = xyes ; then
24977 set_have_as_tls=yes # TLS explicitly enabled.
24978 elif test -z "$tls_first_major"; then
24979 : # If we don't have a check, assume no support.
24980 else
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24982 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24983 if ${gcc_cv_as_tls+:} false; then :
24984 $as_echo_n "(cached) " >&6
24985 else
24986 gcc_cv_as_tls=no
24987 if test $in_tree_gas = yes; then
24988 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24989 then gcc_cv_as_tls=yes
24990 fi
24991 elif test x$gcc_cv_as != x; then
24992 $as_echo "$conftest_s" > conftest.s
24993 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24995 (eval $ac_try) 2>&5
24996 ac_status=$?
24997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24998 test $ac_status = 0; }; }
24999 then
25000 gcc_cv_as_tls=yes
25001 else
25002 echo "configure: failed program was" >&5
25003 cat conftest.s >&5
25004 fi
25005 rm -f conftest.o conftest.s
25006 fi
25007 fi
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25009 $as_echo "$gcc_cv_as_tls" >&6; }
25010 if test $gcc_cv_as_tls = yes; then
25011 set_have_as_tls=yes
25012 fi
25013
25014 fi
25015 if test $set_have_as_tls = yes ; then
25016
25017 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25018
25019 fi
25020
25021 # Target-specific assembler checks.
25022
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25024 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25025 gcc_cv_ld_static_dynamic=no
25026 gcc_cv_ld_static_option='-Bstatic'
25027 gcc_cv_ld_dynamic_option='-Bdynamic'
25028 if test $in_tree_ld = yes ; then
25029 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
25030 gcc_cv_ld_static_dynamic=yes
25031 fi
25032 elif test x$gcc_cv_ld != x; then
25033 # Check if linker supports -Bstatic/-Bdynamic option
25034 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25035 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25036 gcc_cv_ld_static_dynamic=yes
25037 else
25038 case "$target" in
25039 # AIX ld uses -b flags
25040 *-*-aix4.[23]* | *-*-aix[5-9]*)
25041 gcc_cv_ld_static_dynamic=yes
25042 gcc_cv_ld_static_option="-bstatic"
25043 gcc_cv_ld_dynamic_option="-bdynamic"
25044 ;;
25045 # HP-UX ld uses -a flags to select between shared and archive.
25046 *-*-hpux*)
25047 if test x"$gnu_ld" = xno; then
25048 gcc_cv_ld_static_dynamic=yes
25049 gcc_cv_ld_static_option="-aarchive_shared"
25050 gcc_cv_ld_dynamic_option="-adefault"
25051 fi
25052 ;;
25053 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25054 *-*-solaris2*)
25055 gcc_cv_ld_static_dynamic=yes
25056 ;;
25057 esac
25058 fi
25059 fi
25060 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25061
25062 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25063
25064
25065 cat >>confdefs.h <<_ACEOF
25066 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25067 _ACEOF
25068
25069
25070 cat >>confdefs.h <<_ACEOF
25071 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25072 _ACEOF
25073
25074 fi
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25076 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25077
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25079 $as_echo_n "checking linker --version-script option... " >&6; }
25080 gcc_cv_ld_version_script=no
25081 ld_version_script_option=''
25082 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25083 gcc_cv_ld_version_script=yes
25084 ld_version_script_option='--version-script'
25085 elif test x$gcc_cv_ld != x; then
25086 case "$target" in
25087 # Solaris 2 ld always supports -M. It also supports a subset of
25088 # --version-script since Solaris 11.4, but requires
25089 # -z gnu-version-script-compat to activate.
25090 *-*-solaris2*)
25091 gcc_cv_ld_version_script=yes
25092 ld_version_script_option='-M'
25093 ;;
25094 esac
25095 fi
25096 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25098 $as_echo "$gcc_cv_ld_version_script" >&6; }
25099
25100
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25102 $as_echo_n "checking linker soname option... " >&6; }
25103 gcc_cv_ld_soname=no
25104 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25105 gcc_cv_ld_soname=yes
25106 ld_soname_option='-soname'
25107 elif test x$gcc_cv_ld != x; then
25108 case "$target" in
25109 *-*-darwin*)
25110 gcc_cv_ld_soname=yes
25111 ld_soname_option='-install_name'
25112 ;;
25113 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25114 # ld compatiblity since some Solaris 10 update.
25115 *-*-solaris2*)
25116 gcc_cv_ld_soname=yes
25117 ld_soname_option='-h'
25118 ;;
25119 esac
25120 fi
25121 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25123 $as_echo "$gcc_cv_ld_soname" >&6; }
25124
25125
25126 if test x"$demangler_in_ld" = xyes; then
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25128 $as_echo_n "checking linker --demangle support... " >&6; }
25129 gcc_cv_ld_demangle=no
25130 if test $in_tree_ld = yes; then
25131 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 \
25132 gcc_cv_ld_demangle=yes
25133 fi
25134 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25135 # Check if the GNU linker supports --demangle option
25136 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25137 gcc_cv_ld_demangle=yes
25138 fi
25139 fi
25140 if test x"$gcc_cv_ld_demangle" = xyes; then
25141
25142 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25143
25144 fi
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25146 $as_echo "$gcc_cv_ld_demangle" >&6; }
25147 fi
25148
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25150 $as_echo_n "checking linker plugin support... " >&6; }
25151 gcc_cv_lto_plugin=0
25152 if test -f liblto_plugin.la; then
25153 save_ld_ver="$ld_ver"
25154 save_ld_vers_major="$ld_vers_major"
25155 save_ld_vers_minor="$ld_vers_minor"
25156 save_ld_is_gold="$ld_is_gold"
25157
25158 ld_is_gold=no
25159
25160 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25161 ld_ver="GNU ld"
25162 # FIXME: ld_is_gold?
25163 ld_vers_major="$gcc_cv_gld_major_version"
25164 ld_vers_minor="$gcc_cv_gld_minor_version"
25165 else
25166 # Determine plugin linker version.
25167 # FIXME: Partial duplicate from above, generalize.
25168 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25169 if echo "$ld_ver" | grep GNU > /dev/null; then
25170 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25171 ld_is_gold=yes
25172 ld_vers=`echo $ld_ver | sed -n \
25173 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25174 else
25175 ld_vers=`echo $ld_ver | sed -n \
25176 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25177 fi
25178 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25179 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25180 fi
25181 fi
25182
25183 # Determine plugin support.
25184 if echo "$ld_ver" | grep GNU > /dev/null; then
25185 # Require GNU ld or gold 2.21+ for plugin support by default.
25186 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25187 gcc_cv_lto_plugin=2
25188 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25189 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25190 gcc_cv_lto_plugin=1
25191 fi
25192 fi
25193
25194 ld_ver="$save_ld_ver"
25195 ld_vers_major="$save_ld_vers_major"
25196 ld_vers_minor="$save_ld_vers_minor"
25197 ld_is_gold="$save_ld_is_gold"
25198 fi
25199
25200 cat >>confdefs.h <<_ACEOF
25201 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25202 _ACEOF
25203
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25205 $as_echo "$gcc_cv_lto_plugin" >&6; }
25206
25207 # Target OS-specific assembler checks.
25208
25209 case "$target_os" in
25210 darwin*)
25211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25212 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25213 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25214 $as_echo_n "(cached) " >&6
25215 else
25216 gcc_cv_as_mmacosx_version_min=no
25217 if test x$gcc_cv_as != x; then
25218 $as_echo '.text' > conftest.s
25219 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25221 (eval $ac_try) 2>&5
25222 ac_status=$?
25223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25224 test $ac_status = 0; }; }
25225 then
25226 gcc_cv_as_mmacosx_version_min=yes
25227 else
25228 echo "configure: failed program was" >&5
25229 cat conftest.s >&5
25230 fi
25231 rm -f conftest.o conftest.s
25232 fi
25233 fi
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25235 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25236 if test $gcc_cv_as_mmacosx_version_min = yes; then
25237
25238 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25239
25240 fi
25241
25242 ;;
25243 esac
25244
25245 # Target CPU-specific assembler checks.
25246
25247 case "$target" in
25248 aarch64*-*-*)
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25250 $as_echo_n "checking assembler for -mabi option... " >&6; }
25251 if ${gcc_cv_as_aarch64_mabi+:} false; then :
25252 $as_echo_n "(cached) " >&6
25253 else
25254 gcc_cv_as_aarch64_mabi=no
25255 if test x$gcc_cv_as != x; then
25256 $as_echo '.text' > conftest.s
25257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25259 (eval $ac_try) 2>&5
25260 ac_status=$?
25261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25262 test $ac_status = 0; }; }
25263 then
25264 gcc_cv_as_aarch64_mabi=yes
25265 else
25266 echo "configure: failed program was" >&5
25267 cat conftest.s >&5
25268 fi
25269 rm -f conftest.o conftest.s
25270 fi
25271 fi
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25273 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25274
25275
25276 if test x$gcc_cv_as_aarch64_mabi = xyes; then
25277
25278 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25279
25280 else
25281 if test x$with_abi = xilp32; then
25282 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25283 Upgrade the Assembler." "$LINENO" 5
25284 fi
25285 if test x"$with_multilib_list" = xdefault; then
25286 TM_MULTILIB_CONFIG=lp64
25287 else
25288 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25289 for aarch64_multilib in ${aarch64_multilibs}; do
25290 case ${aarch64_multilib} in
25291 ilp32)
25292 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25293 Upgrade the Assembler." "$LINENO" 5
25294 ;;
25295 *)
25296 ;;
25297 esac
25298 done
25299 fi
25300 fi
25301 # Check if we have binutils support for relocations types needed by -fpic
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25303 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25304 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25305 $as_echo_n "(cached) " >&6
25306 else
25307 gcc_cv_as_aarch64_picreloc=no
25308 if test x$gcc_cv_as != x; then
25309 $as_echo '
25310 .text
25311 ldr x0, [x2, #:gotpage_lo15:globalsym]
25312 ' > conftest.s
25313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25315 (eval $ac_try) 2>&5
25316 ac_status=$?
25317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25318 test $ac_status = 0; }; }
25319 then
25320 gcc_cv_as_aarch64_picreloc=yes
25321 else
25322 echo "configure: failed program was" >&5
25323 cat conftest.s >&5
25324 fi
25325 rm -f conftest.o conftest.s
25326 fi
25327 fi
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25329 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25330 if test $gcc_cv_as_aarch64_picreloc = yes; then
25331
25332 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25333
25334 fi
25335
25336 # Enable Branch Target Identification Mechanism and Return Address
25337 # Signing by default.
25338 # Check whether --enable-standard-branch-protection was given.
25339 if test "${enable_standard_branch_protection+set}" = set; then :
25340 enableval=$enable_standard_branch_protection;
25341 case $enableval in
25342 yes)
25343 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25344 ;;
25345 no)
25346 ;;
25347 *)
25348 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25349 Valid choices are 'yes' and 'no'." "$LINENO" 5
25350 ;;
25351 esac
25352
25353 fi
25354
25355 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25356 # Check whether --enable-fix-cortex-a53-835769 was given.
25357 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25358 enableval=$enable_fix_cortex_a53_835769;
25359 case $enableval in
25360 yes)
25361 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25362 ;;
25363 no)
25364 ;;
25365 *)
25366 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25367 Valid choices are 'yes' and 'no'." "$LINENO" 5
25368 ;;
25369
25370 esac
25371
25372 fi
25373
25374 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25375 # Check whether --enable-fix-cortex-a53-843419 was given.
25376 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25377 enableval=$enable_fix_cortex_a53_843419;
25378 case $enableval in
25379 yes)
25380 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25381 ;;
25382 no)
25383 ;;
25384 *)
25385 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25386 Valid choices are 'yes' and 'no'." "$LINENO" 5
25387 ;;
25388
25389 esac
25390
25391 fi
25392
25393 ;;
25394
25395 # All TARGET_ABI_OSF targets.
25396 alpha*-*-linux* | alpha*-*-*bsd*)
25397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25398 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25399 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25400 $as_echo_n "(cached) " >&6
25401 else
25402 gcc_cv_as_alpha_explicit_relocs=no
25403 if test $in_tree_gas = yes; then
25404 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25405 then gcc_cv_as_alpha_explicit_relocs=yes
25406 fi
25407 elif test x$gcc_cv_as != x; then
25408 $as_echo ' .set nomacro
25409 .text
25410 extbl $3, $2, $3 !lituse_bytoff!1
25411 ldq $2, a($29) !literal!1
25412 ldq $4, b($29) !literal!2
25413 ldq_u $3, 0($2) !lituse_base!1
25414 ldq $27, f($29) !literal!5
25415 jsr $26, ($27), f !lituse_jsr!5
25416 ldah $29, 0($26) !gpdisp!3
25417 lda $0, c($29) !gprel
25418 ldah $1, d($29) !gprelhigh
25419 lda $1, d($1) !gprellow
25420 lda $29, 0($29) !gpdisp!3' > conftest.s
25421 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25423 (eval $ac_try) 2>&5
25424 ac_status=$?
25425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25426 test $ac_status = 0; }; }
25427 then
25428 gcc_cv_as_alpha_explicit_relocs=yes
25429 else
25430 echo "configure: failed program was" >&5
25431 cat conftest.s >&5
25432 fi
25433 rm -f conftest.o conftest.s
25434 fi
25435 fi
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25437 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25438 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25439
25440 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25441
25442 fi
25443
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25445 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25446 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25447 $as_echo_n "(cached) " >&6
25448 else
25449 gcc_cv_as_alpha_jsrdirect_relocs=no
25450 if test $in_tree_gas = yes; then
25451 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25452 then gcc_cv_as_alpha_jsrdirect_relocs=yes
25453 fi
25454 elif test x$gcc_cv_as != x; then
25455 $as_echo ' .set nomacro
25456 .text
25457 ldq $27, a($29) !literal!1
25458 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25459 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25461 (eval $ac_try) 2>&5
25462 ac_status=$?
25463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25464 test $ac_status = 0; }; }
25465 then
25466 gcc_cv_as_alpha_jsrdirect_relocs=yes
25467 else
25468 echo "configure: failed program was" >&5
25469 cat conftest.s >&5
25470 fi
25471 rm -f conftest.o conftest.s
25472 fi
25473 fi
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25475 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25476 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25477
25478 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25479
25480 fi
25481
25482 ;;
25483
25484 avr-*-*)
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25486 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25487 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25488 $as_echo_n "(cached) " >&6
25489 else
25490 gcc_cv_as_avr_mlink_relax=no
25491 if test x$gcc_cv_as != x; then
25492 $as_echo '.text' > conftest.s
25493 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25495 (eval $ac_try) 2>&5
25496 ac_status=$?
25497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25498 test $ac_status = 0; }; }
25499 then
25500 gcc_cv_as_avr_mlink_relax=yes
25501 else
25502 echo "configure: failed program was" >&5
25503 cat conftest.s >&5
25504 fi
25505 rm -f conftest.o conftest.s
25506 fi
25507 fi
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25509 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25510 if test $gcc_cv_as_avr_mlink_relax = yes; then
25511
25512 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25513
25514 fi
25515
25516
25517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25518 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25519 if ${gcc_cv_as_avr_mrmw+:} false; then :
25520 $as_echo_n "(cached) " >&6
25521 else
25522 gcc_cv_as_avr_mrmw=no
25523 if test x$gcc_cv_as != x; then
25524 $as_echo '.text' > conftest.s
25525 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25527 (eval $ac_try) 2>&5
25528 ac_status=$?
25529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25530 test $ac_status = 0; }; }
25531 then
25532 gcc_cv_as_avr_mrmw=yes
25533 else
25534 echo "configure: failed program was" >&5
25535 cat conftest.s >&5
25536 fi
25537 rm -f conftest.o conftest.s
25538 fi
25539 fi
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25541 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25542 if test $gcc_cv_as_avr_mrmw = yes; then
25543
25544 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25545
25546 fi
25547
25548
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25550 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25551 if ${gcc_cv_as_avr_mgccisr+:} false; then :
25552 $as_echo_n "(cached) " >&6
25553 else
25554 gcc_cv_as_avr_mgccisr=no
25555 if test x$gcc_cv_as != x; then
25556 $as_echo '.text
25557 __gcc_isr 1
25558 __gcc_isr 2
25559 __gcc_isr 0,r24
25560 ' > conftest.s
25561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25563 (eval $ac_try) 2>&5
25564 ac_status=$?
25565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25566 test $ac_status = 0; }; }
25567 then
25568 gcc_cv_as_avr_mgccisr=yes
25569 else
25570 echo "configure: failed program was" >&5
25571 cat conftest.s >&5
25572 fi
25573 rm -f conftest.o conftest.s
25574 fi
25575 fi
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25577 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25578 if test $gcc_cv_as_avr_mgccisr = yes; then
25579
25580 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25581
25582 fi
25583
25584
25585 # Check how default linker description file implements .rodata for
25586 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25587 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25589 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25590 cat > conftest.s <<EOF
25591 .section .rodata,"a",@progbits
25592 .global xxvaryy
25593 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25594 xxvaryy:
25595 .word 1
25596 EOF
25597 rm -f conftest.nm
25598 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25600 (eval $ac_try) 2>&5
25601 ac_status=$?
25602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25603 test $ac_status = 0; }; }
25604 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25606 (eval $ac_try) 2>&5
25607 ac_status=$?
25608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25609 test $ac_status = 0; }; }
25610 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25612 (eval $ac_try) 2>&5
25613 ac_status=$?
25614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25615 test $ac_status = 0; }; }
25616 if test -s conftest.nm
25617 then
25618 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25620 $as_echo "yes" >&6; }
25621
25622 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25623
25624 else
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25626 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25627 echo "$as_me: nm output was" >&5
25628 cat conftest.nm >&5
25629 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25630 { $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
25631 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25632 fi
25633 else
25634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25635 $as_echo "test failed" >&6; }
25636 echo "$as_me: failed program was" >&5
25637 cat conftest.s >&5
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25639 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25640 fi
25641 rm -f conftest.s conftest.o conftest.elf conftest.nm
25642 ;;
25643
25644 cris-*-*)
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25646 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25647 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25648 $as_echo_n "(cached) " >&6
25649 else
25650 gcc_cv_as_cris_no_mul_bug=no
25651 if test $in_tree_gas = yes; then
25652 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25653 then gcc_cv_as_cris_no_mul_bug=yes
25654 fi
25655 elif test x$gcc_cv_as != x; then
25656 $as_echo '.text' > conftest.s
25657 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25659 (eval $ac_try) 2>&5
25660 ac_status=$?
25661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25662 test $ac_status = 0; }; }
25663 then
25664 gcc_cv_as_cris_no_mul_bug=yes
25665 else
25666 echo "configure: failed program was" >&5
25667 cat conftest.s >&5
25668 fi
25669 rm -f conftest.o conftest.s
25670 fi
25671 fi
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25673 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25674 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25675
25676 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25677
25678 fi
25679
25680 ;;
25681
25682 sparc*-*-*)
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25684 $as_echo_n "checking assembler for -relax option... " >&6; }
25685 if ${gcc_cv_as_sparc_relax+:} false; then :
25686 $as_echo_n "(cached) " >&6
25687 else
25688 gcc_cv_as_sparc_relax=no
25689 if test x$gcc_cv_as != x; then
25690 $as_echo '.text' > conftest.s
25691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25693 (eval $ac_try) 2>&5
25694 ac_status=$?
25695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25696 test $ac_status = 0; }; }
25697 then
25698 gcc_cv_as_sparc_relax=yes
25699 else
25700 echo "configure: failed program was" >&5
25701 cat conftest.s >&5
25702 fi
25703 rm -f conftest.o conftest.s
25704 fi
25705 fi
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25707 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25708 if test $gcc_cv_as_sparc_relax = yes; then
25709
25710 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25711
25712 fi
25713
25714
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25716 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25717 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25718 $as_echo_n "(cached) " >&6
25719 else
25720 gcc_cv_as_sparc_gotdata_op=no
25721 if test x$gcc_cv_as != x; then
25722 $as_echo '.text
25723 .align 4
25724 foo:
25725 nop
25726 bar:
25727 sethi %gdop_hix22(foo), %g1
25728 xor %g1, %gdop_lox10(foo), %g1
25729 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25730 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25732 (eval $ac_try) 2>&5
25733 ac_status=$?
25734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25735 test $ac_status = 0; }; }
25736 then
25737 if test x$gcc_cv_ld != x \
25738 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25739 if test x$gcc_cv_objdump != x; then
25740 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25741 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25742 gcc_cv_as_sparc_gotdata_op=no
25743 else
25744 gcc_cv_as_sparc_gotdata_op=yes
25745 fi
25746 fi
25747 fi
25748 rm -f conftest
25749 else
25750 echo "configure: failed program was" >&5
25751 cat conftest.s >&5
25752 fi
25753 rm -f conftest.o conftest.s
25754 fi
25755 fi
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25757 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25758 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25759
25760 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25761
25762 fi
25763
25764
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25766 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25767 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25768 $as_echo_n "(cached) " >&6
25769 else
25770 gcc_cv_as_sparc_ua_pcrel=no
25771 if test x$gcc_cv_as != x; then
25772 $as_echo '.text
25773 foo:
25774 nop
25775 .data
25776 .align 4
25777 .byte 0
25778 .uaword %r_disp32(foo)' > conftest.s
25779 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25781 (eval $ac_try) 2>&5
25782 ac_status=$?
25783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25784 test $ac_status = 0; }; }
25785 then
25786 if test x$gcc_cv_ld != x \
25787 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25788 gcc_cv_as_sparc_ua_pcrel=yes
25789 fi
25790 rm -f conftest
25791 else
25792 echo "configure: failed program was" >&5
25793 cat conftest.s >&5
25794 fi
25795 rm -f conftest.o conftest.s
25796 fi
25797 fi
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25799 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25800 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25801
25802 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25803
25804
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25806 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25807 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25808 $as_echo_n "(cached) " >&6
25809 else
25810 gcc_cv_as_sparc_ua_pcrel_hidden=no
25811 if test x$gcc_cv_as != x; then
25812 $as_echo '.data
25813 .align 4
25814 .byte 0x31
25815 .uaword %r_disp32(foo)
25816 .byte 0x32, 0x33, 0x34
25817 .global foo
25818 .hidden foo
25819 foo:
25820 .skip 4' > conftest.s
25821 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25823 (eval $ac_try) 2>&5
25824 ac_status=$?
25825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25826 test $ac_status = 0; }; }
25827 then
25828 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25829 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25830 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25831 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25832 if $gcc_cv_objdump -R conftest 2> /dev/null \
25833 | grep 'DISP32' > /dev/null 2>&1; then
25834 :
25835 else
25836 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25837 fi
25838 fi
25839 rm -f conftest
25840 else
25841 echo "configure: failed program was" >&5
25842 cat conftest.s >&5
25843 fi
25844 rm -f conftest.o conftest.s
25845 fi
25846 fi
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25848 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25849 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25850
25851 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25852
25853 fi
25854
25855
25856 fi
25857 # unaligned pcrel relocs
25858
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25860 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25861 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
25862 $as_echo_n "(cached) " >&6
25863 else
25864 gcc_cv_as_sparc_offsetable_lo10=no
25865 if test x$gcc_cv_as != x; then
25866 $as_echo '.text
25867 or %g1, %lo(ab) + 12, %g1
25868 or %g1, %lo(ab + 12), %g1' > conftest.s
25869 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25871 (eval $ac_try) 2>&5
25872 ac_status=$?
25873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25874 test $ac_status = 0; }; }
25875 then
25876 if test x$gcc_cv_objdump != x \
25877 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25878 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25879 gcc_cv_as_sparc_offsetable_lo10=yes
25880 fi
25881 else
25882 echo "configure: failed program was" >&5
25883 cat conftest.s >&5
25884 fi
25885 rm -f conftest.o conftest.s
25886 fi
25887 fi
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25889 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25890 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25891
25892 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25893
25894 fi
25895
25896
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25898 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25899 if ${gcc_cv_as_sparc_fmaf+:} false; then :
25900 $as_echo_n "(cached) " >&6
25901 else
25902 gcc_cv_as_sparc_fmaf=no
25903 if test x$gcc_cv_as != x; then
25904 $as_echo '.text
25905 .register %g2, #scratch
25906 .register %g3, #scratch
25907 .align 4
25908 fmaddd %f0, %f2, %f4, %f6
25909 addxccc %g1, %g2, %g3
25910 fsrl32 %f2, %f4, %f8
25911 fnaddd %f10, %f12, %f14' > conftest.s
25912 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25914 (eval $ac_try) 2>&5
25915 ac_status=$?
25916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25917 test $ac_status = 0; }; }
25918 then
25919 gcc_cv_as_sparc_fmaf=yes
25920 else
25921 echo "configure: failed program was" >&5
25922 cat conftest.s >&5
25923 fi
25924 rm -f conftest.o conftest.s
25925 fi
25926 fi
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25928 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25929 if test $gcc_cv_as_sparc_fmaf = yes; then
25930
25931 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25932
25933 fi
25934
25935
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25937 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25938 if ${gcc_cv_as_sparc_sparc4+:} false; then :
25939 $as_echo_n "(cached) " >&6
25940 else
25941 gcc_cv_as_sparc_sparc4=no
25942 if test x$gcc_cv_as != x; then
25943 $as_echo '.text
25944 .register %g2, #scratch
25945 .register %g3, #scratch
25946 .align 4
25947 cxbe %g2, %g3, 1f
25948 1: cwbneg %g2, %g3, 1f
25949 1: sha1
25950 md5
25951 aes_kexpand0 %f4, %f6, %f8
25952 des_round %f38, %f40, %f42, %f44
25953 camellia_f %f54, %f56, %f58, %f60
25954 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25955 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25957 (eval $ac_try) 2>&5
25958 ac_status=$?
25959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25960 test $ac_status = 0; }; }
25961 then
25962 gcc_cv_as_sparc_sparc4=yes
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_sparc4" >&5
25971 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25972 if test $gcc_cv_as_sparc_sparc4 = yes; then
25973
25974 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25975
25976 fi
25977
25978
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25980 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25981 if ${gcc_cv_as_sparc_sparc5+:} false; then :
25982 $as_echo_n "(cached) " >&6
25983 else
25984 gcc_cv_as_sparc_sparc5=no
25985 if test x$gcc_cv_as != x; then
25986 $as_echo '.text
25987 .register %g2, #scratch
25988 .register %g3, #scratch
25989 .align 4
25990 subxc %g1, %g2, %g3
25991 fpadd8 %f0, %f2, %f4' > conftest.s
25992 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -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 gcc_cv_as_sparc_sparc5=yes
26000 else
26001 echo "configure: failed program was" >&5
26002 cat conftest.s >&5
26003 fi
26004 rm -f conftest.o conftest.s
26005 fi
26006 fi
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26008 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26009 if test $gcc_cv_as_sparc_sparc5 = yes; then
26010
26011 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26012
26013 fi
26014
26015
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26017 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26018 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26019 $as_echo_n "(cached) " >&6
26020 else
26021 gcc_cv_as_sparc_sparc6=no
26022 if test x$gcc_cv_as != x; then
26023 $as_echo '.text
26024 .register %g2, #scratch
26025 .register %g3, #scratch
26026 .align 4
26027 rd %entropy, %g1
26028 fpsll64x %f0, %f2, %f4' > conftest.s
26029 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26031 (eval $ac_try) 2>&5
26032 ac_status=$?
26033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26034 test $ac_status = 0; }; }
26035 then
26036 gcc_cv_as_sparc_sparc6=yes
26037 else
26038 echo "configure: failed program was" >&5
26039 cat conftest.s >&5
26040 fi
26041 rm -f conftest.o conftest.s
26042 fi
26043 fi
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26045 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26046 if test $gcc_cv_as_sparc_sparc6 = yes; then
26047
26048 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26049
26050 fi
26051
26052
26053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26054 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26055 if ${gcc_cv_as_sparc_leon+:} false; then :
26056 $as_echo_n "(cached) " >&6
26057 else
26058 gcc_cv_as_sparc_leon=no
26059 if test x$gcc_cv_as != x; then
26060 $as_echo '.text
26061 .register %g2, #scratch
26062 .register %g3, #scratch
26063 .align 4
26064 smac %g2, %g3, %g1
26065 umac %g2, %g3, %g1
26066 casa [%g2] 0xb, %g3, %g1' > conftest.s
26067 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26069 (eval $ac_try) 2>&5
26070 ac_status=$?
26071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26072 test $ac_status = 0; }; }
26073 then
26074 gcc_cv_as_sparc_leon=yes
26075 else
26076 echo "configure: failed program was" >&5
26077 cat conftest.s >&5
26078 fi
26079 rm -f conftest.o conftest.s
26080 fi
26081 fi
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26083 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26084 if test $gcc_cv_as_sparc_leon = yes; then
26085
26086 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26087
26088 fi
26089
26090 ;;
26091
26092 i[34567]86-*-* | x86_64-*-*)
26093 case $target_os in
26094 cygwin*)
26095 # Full C++ conformance when using a shared libstdc++-v3 requires some
26096 # support from the Cygwin DLL, which in more recent versions exports
26097 # wrappers to aid in interposing and redirecting operators new, delete,
26098 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26099 # are configuring for a version of Cygwin that exports the wrappers.
26100 if test x$host = x$target && test x$host_cpu = xi686; then
26101 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26102 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26103 gcc_ac_cygwin_dll_wrappers=yes
26104 else
26105 gcc_ac_cygwin_dll_wrappers=no
26106 fi
26107
26108 else
26109 # Can't check presence of libc functions during cross-compile, so
26110 # we just have to assume we're building for an up-to-date target.
26111 gcc_ac_cygwin_dll_wrappers=yes
26112 fi
26113
26114 cat >>confdefs.h <<_ACEOF
26115 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26116 _ACEOF
26117
26118 esac
26119 case $target_os in
26120 cygwin* | pe | mingw32*)
26121 # Recent binutils allows the three-operand form of ".comm" on PE. This
26122 # definition is used unconditionally to initialise the default state of
26123 # the target option variable that governs usage of the feature.
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26125 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26126 if ${gcc_cv_as_comm_has_align+:} false; then :
26127 $as_echo_n "(cached) " >&6
26128 else
26129 gcc_cv_as_comm_has_align=no
26130 if test $in_tree_gas = yes; then
26131 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26132 then gcc_cv_as_comm_has_align=yes
26133 fi
26134 elif test x$gcc_cv_as != x; then
26135 $as_echo '.comm foo,1,32' > conftest.s
26136 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26138 (eval $ac_try) 2>&5
26139 ac_status=$?
26140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26141 test $ac_status = 0; }; }
26142 then
26143 gcc_cv_as_comm_has_align=yes
26144 else
26145 echo "configure: failed program was" >&5
26146 cat conftest.s >&5
26147 fi
26148 rm -f conftest.o conftest.s
26149 fi
26150 fi
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26152 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26153
26154
26155
26156 cat >>confdefs.h <<_ACEOF
26157 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26158 _ACEOF
26159
26160 # Used for DWARF 2 in PE
26161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26162 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26163 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26164 $as_echo_n "(cached) " >&6
26165 else
26166 gcc_cv_as_ix86_pe_secrel32=no
26167 if test $in_tree_gas = yes; then
26168 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26169 then gcc_cv_as_ix86_pe_secrel32=yes
26170 fi
26171 elif test x$gcc_cv_as != x; then
26172 $as_echo '.text
26173 foo: nop
26174 .data
26175 .secrel32 foo' > conftest.s
26176 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26178 (eval $ac_try) 2>&5
26179 ac_status=$?
26180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26181 test $ac_status = 0; }; }
26182 then
26183 if test x$gcc_cv_ld != x \
26184 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26185 gcc_cv_as_ix86_pe_secrel32=yes
26186 fi
26187 rm -f conftest
26188 else
26189 echo "configure: failed program was" >&5
26190 cat conftest.s >&5
26191 fi
26192 rm -f conftest.o conftest.s
26193 fi
26194 fi
26195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26196 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26197 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26198
26199 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26200
26201 fi
26202
26203 # Test if the assembler supports the extended form of the .section
26204 # directive that specifies section alignment. LTO support uses this,
26205 # but normally only after installation, so we warn but don't fail the
26206 # configure if LTO is enabled but the assembler does not support it.
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26208 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26209 if ${gcc_cv_as_section_has_align+:} false; then :
26210 $as_echo_n "(cached) " >&6
26211 else
26212 gcc_cv_as_section_has_align=no
26213 if test $in_tree_gas = yes; then
26214 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26215 then gcc_cv_as_section_has_align=yes
26216 fi
26217 elif test x$gcc_cv_as != x; then
26218 $as_echo '.section lto_test,"dr0"' > conftest.s
26219 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26221 (eval $ac_try) 2>&5
26222 ac_status=$?
26223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26224 test $ac_status = 0; }; }
26225 then
26226 gcc_cv_as_section_has_align=yes
26227 else
26228 echo "configure: failed program was" >&5
26229 cat conftest.s >&5
26230 fi
26231 rm -f conftest.o conftest.s
26232 fi
26233 fi
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26235 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26236
26237
26238 if test x$gcc_cv_as_section_has_align != xyes; then
26239 case ",$enable_languages," in
26240 *,lto,*)
26241 { $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
26242 $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;}
26243 ;;
26244 esac
26245 fi
26246 ;;
26247 esac
26248
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26250 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26251 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26252 $as_echo_n "(cached) " >&6
26253 else
26254 gcc_cv_as_ix86_xbrace_comment=no
26255 if test x$gcc_cv_as != x; then
26256 $as_echo '.text' > conftest.s
26257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26259 (eval $ac_try) 2>&5
26260 ac_status=$?
26261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26262 test $ac_status = 0; }; }
26263 then
26264 gcc_cv_as_ix86_xbrace_comment=yes
26265 else
26266 echo "configure: failed program was" >&5
26267 cat conftest.s >&5
26268 fi
26269 rm -f conftest.o conftest.s
26270 fi
26271 fi
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26273 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26274 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26275
26276 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26277
26278 fi
26279
26280
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26282 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26283 if ${gcc_cv_as_ix86_filds+:} false; then :
26284 $as_echo_n "(cached) " >&6
26285 else
26286 gcc_cv_as_ix86_filds=no
26287 if test x$gcc_cv_as != x; then
26288 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26289 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26291 (eval $ac_try) 2>&5
26292 ac_status=$?
26293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26294 test $ac_status = 0; }; }
26295 then
26296 gcc_cv_as_ix86_filds=yes
26297 else
26298 echo "configure: failed program was" >&5
26299 cat conftest.s >&5
26300 fi
26301 rm -f conftest.o conftest.s
26302 fi
26303 fi
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26305 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26306 if test $gcc_cv_as_ix86_filds = yes; then
26307
26308 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26309
26310 fi
26311
26312
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26314 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26315 if ${gcc_cv_as_ix86_fildq+:} false; then :
26316 $as_echo_n "(cached) " >&6
26317 else
26318 gcc_cv_as_ix86_fildq=no
26319 if test x$gcc_cv_as != x; then
26320 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26321 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26323 (eval $ac_try) 2>&5
26324 ac_status=$?
26325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26326 test $ac_status = 0; }; }
26327 then
26328 gcc_cv_as_ix86_fildq=yes
26329 else
26330 echo "configure: failed program was" >&5
26331 cat conftest.s >&5
26332 fi
26333 rm -f conftest.o conftest.s
26334 fi
26335 fi
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26337 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26338 if test $gcc_cv_as_ix86_fildq = yes; then
26339
26340 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26341
26342 fi
26343
26344
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26346 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26347 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26348 $as_echo_n "(cached) " >&6
26349 else
26350 gcc_cv_as_ix86_cmov_sun_syntax=no
26351 if test x$gcc_cv_as != x; then
26352 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26353 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26355 (eval $ac_try) 2>&5
26356 ac_status=$?
26357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26358 test $ac_status = 0; }; }
26359 then
26360 gcc_cv_as_ix86_cmov_sun_syntax=yes
26361 else
26362 echo "configure: failed program was" >&5
26363 cat conftest.s >&5
26364 fi
26365 rm -f conftest.o conftest.s
26366 fi
26367 fi
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26369 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26370 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26371
26372 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26373
26374 fi
26375
26376
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26378 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26379 if ${gcc_cv_as_ix86_ffreep+:} false; then :
26380 $as_echo_n "(cached) " >&6
26381 else
26382 gcc_cv_as_ix86_ffreep=no
26383 if test x$gcc_cv_as != x; then
26384 $as_echo 'ffreep %st(1)' > conftest.s
26385 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26387 (eval $ac_try) 2>&5
26388 ac_status=$?
26389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26390 test $ac_status = 0; }; }
26391 then
26392 gcc_cv_as_ix86_ffreep=yes
26393 else
26394 echo "configure: failed program was" >&5
26395 cat conftest.s >&5
26396 fi
26397 rm -f conftest.o conftest.s
26398 fi
26399 fi
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26401 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26402 if test $gcc_cv_as_ix86_ffreep = yes; then
26403
26404 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26405
26406 fi
26407
26408
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26410 $as_echo_n "checking assembler for .quad directive... " >&6; }
26411 if ${gcc_cv_as_ix86_quad+:} false; then :
26412 $as_echo_n "(cached) " >&6
26413 else
26414 gcc_cv_as_ix86_quad=no
26415 if test x$gcc_cv_as != x; then
26416 $as_echo '.quad 0' > conftest.s
26417 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26419 (eval $ac_try) 2>&5
26420 ac_status=$?
26421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26422 test $ac_status = 0; }; }
26423 then
26424 gcc_cv_as_ix86_quad=yes
26425 else
26426 echo "configure: failed program was" >&5
26427 cat conftest.s >&5
26428 fi
26429 rm -f conftest.o conftest.s
26430 fi
26431 fi
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26433 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26434 if test $gcc_cv_as_ix86_quad = yes; then
26435
26436 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26437
26438 fi
26439
26440
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26442 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26443 if ${gcc_cv_as_ix86_sahf+:} false; then :
26444 $as_echo_n "(cached) " >&6
26445 else
26446 gcc_cv_as_ix86_sahf=no
26447 if test x$gcc_cv_as != x; then
26448 $as_echo '.code64
26449 sahf' > conftest.s
26450 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26452 (eval $ac_try) 2>&5
26453 ac_status=$?
26454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26455 test $ac_status = 0; }; }
26456 then
26457 gcc_cv_as_ix86_sahf=yes
26458 else
26459 echo "configure: failed program was" >&5
26460 cat conftest.s >&5
26461 fi
26462 rm -f conftest.o conftest.s
26463 fi
26464 fi
26465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26466 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26467 if test $gcc_cv_as_ix86_sahf = yes; then
26468
26469 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26470
26471 fi
26472
26473
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26475 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26476 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26477 $as_echo_n "(cached) " >&6
26478 else
26479 gcc_cv_as_ix86_interunit_movq=no
26480 if test x$gcc_cv_as != x; then
26481 $as_echo '.code64
26482 movq %mm0, %rax
26483 movq %rax, %xmm0' > conftest.s
26484 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26486 (eval $ac_try) 2>&5
26487 ac_status=$?
26488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26489 test $ac_status = 0; }; }
26490 then
26491 gcc_cv_as_ix86_interunit_movq=yes
26492 else
26493 echo "configure: failed program was" >&5
26494 cat conftest.s >&5
26495 fi
26496 rm -f conftest.o conftest.s
26497 fi
26498 fi
26499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26500 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26501
26502
26503
26504 cat >>confdefs.h <<_ACEOF
26505 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26506 _ACEOF
26507
26508
26509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26510 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26511 if ${gcc_cv_as_ix86_hle+:} false; then :
26512 $as_echo_n "(cached) " >&6
26513 else
26514 gcc_cv_as_ix86_hle=no
26515 if test x$gcc_cv_as != x; then
26516 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26517 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26519 (eval $ac_try) 2>&5
26520 ac_status=$?
26521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26522 test $ac_status = 0; }; }
26523 then
26524 gcc_cv_as_ix86_hle=yes
26525 else
26526 echo "configure: failed program was" >&5
26527 cat conftest.s >&5
26528 fi
26529 rm -f conftest.o conftest.s
26530 fi
26531 fi
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26533 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26534 if test $gcc_cv_as_ix86_hle = yes; then
26535
26536 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26537
26538 fi
26539
26540
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26542 $as_echo_n "checking assembler for swap suffix... " >&6; }
26543 if ${gcc_cv_as_ix86_swap+:} false; then :
26544 $as_echo_n "(cached) " >&6
26545 else
26546 gcc_cv_as_ix86_swap=no
26547 if test x$gcc_cv_as != x; then
26548 $as_echo 'movl.s %esp, %ebp' > conftest.s
26549 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26551 (eval $ac_try) 2>&5
26552 ac_status=$?
26553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26554 test $ac_status = 0; }; }
26555 then
26556 gcc_cv_as_ix86_swap=yes
26557 else
26558 echo "configure: failed program was" >&5
26559 cat conftest.s >&5
26560 fi
26561 rm -f conftest.o conftest.s
26562 fi
26563 fi
26564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26565 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26566 if test $gcc_cv_as_ix86_swap = yes; then
26567
26568 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26569
26570 fi
26571
26572
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26574 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26575 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26576 $as_echo_n "(cached) " >&6
26577 else
26578 gcc_cv_as_ix86_diff_sect_delta=no
26579 if test x$gcc_cv_as != x; then
26580 $as_echo '.section .rodata
26581 .L1:
26582 .long .L2-.L1
26583 .long .L3-.L1
26584 .text
26585 .L3: nop
26586 .L2: nop' > conftest.s
26587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26589 (eval $ac_try) 2>&5
26590 ac_status=$?
26591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26592 test $ac_status = 0; }; }
26593 then
26594 gcc_cv_as_ix86_diff_sect_delta=yes
26595 else
26596 echo "configure: failed program was" >&5
26597 cat conftest.s >&5
26598 fi
26599 rm -f conftest.o conftest.s
26600 fi
26601 fi
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26603 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26604 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26605
26606 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26607
26608 fi
26609
26610
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26612 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26613 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26614 $as_echo_n "(cached) " >&6
26615 else
26616 gcc_cv_as_ix86_rep_lock_prefix=no
26617 if test x$gcc_cv_as != x; then
26618 $as_echo 'rep movsl
26619 rep ret
26620 rep nop
26621 rep bsf %ecx, %eax
26622 rep bsr %ecx, %eax
26623 lock addl %edi, (%eax,%esi)
26624 lock orl $0, (%esp)' > conftest.s
26625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26627 (eval $ac_try) 2>&5
26628 ac_status=$?
26629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26630 test $ac_status = 0; }; }
26631 then
26632 gcc_cv_as_ix86_rep_lock_prefix=yes
26633 else
26634 echo "configure: failed program was" >&5
26635 cat conftest.s >&5
26636 fi
26637 rm -f conftest.o conftest.s
26638 fi
26639 fi
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26641 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26642 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26643
26644 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26645
26646 fi
26647
26648
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26650 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26651 if ${gcc_cv_as_ix86_ud2+:} false; then :
26652 $as_echo_n "(cached) " >&6
26653 else
26654 gcc_cv_as_ix86_ud2=no
26655 if test x$gcc_cv_as != x; then
26656 $as_echo 'ud2' > conftest.s
26657 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26659 (eval $ac_try) 2>&5
26660 ac_status=$?
26661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26662 test $ac_status = 0; }; }
26663 then
26664 gcc_cv_as_ix86_ud2=yes
26665 else
26666 echo "configure: failed program was" >&5
26667 cat conftest.s >&5
26668 fi
26669 rm -f conftest.o conftest.s
26670 fi
26671 fi
26672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26673 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26674 if test $gcc_cv_as_ix86_ud2 = yes; then
26675
26676 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26677
26678 fi
26679
26680
26681 # Enforce 32-bit output with gas and gld.
26682 if test x$gas = xyes; then
26683 as_ix86_gas_32_opt="--32"
26684 fi
26685 if echo "$ld_ver" | grep GNU > /dev/null; then
26686 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26687 ld_ix86_gld_32_opt="-melf_i386_sol2"
26688 else
26689 ld_ix86_gld_32_opt="-melf_i386"
26690 fi
26691 fi
26692
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26694 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26695 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26696 $as_echo_n "(cached) " >&6
26697 else
26698 gcc_cv_as_ix86_tlsgdplt=no
26699 if test x$gcc_cv_as != x; then
26700 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26701 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26703 (eval $ac_try) 2>&5
26704 ac_status=$?
26705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26706 test $ac_status = 0; }; }
26707 then
26708 if test x$gcc_cv_ld != x \
26709 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26710 gcc_cv_as_ix86_tlsgdplt=yes
26711 fi
26712 rm -f conftest
26713 else
26714 echo "configure: failed program was" >&5
26715 cat conftest.s >&5
26716 fi
26717 rm -f conftest.o conftest.s
26718 fi
26719 fi
26720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26721 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26722 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26723
26724 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26725
26726 fi
26727
26728
26729 conftest_s='
26730 .section .tdata,"aw'$tls_section_flag'",@progbits
26731 tls_ld:
26732 .section .text,"ax",@progbits
26733 call tls_ld@tlsldmplt'
26734
26735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26736 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26737 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26738 $as_echo_n "(cached) " >&6
26739 else
26740 gcc_cv_as_ix86_tlsldmplt=no
26741 if test x$gcc_cv_as != x; then
26742 $as_echo "$conftest_s" > conftest.s
26743 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26745 (eval $ac_try) 2>&5
26746 ac_status=$?
26747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26748 test $ac_status = 0; }; }
26749 then
26750 if test x$gcc_cv_ld != x \
26751 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26752 gcc_cv_as_ix86_tlsldmplt=yes
26753 fi
26754 rm -f conftest
26755 else
26756 echo "configure: failed program was" >&5
26757 cat conftest.s >&5
26758 fi
26759 rm -f conftest.o conftest.s
26760 fi
26761 fi
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26763 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26764
26765
26766
26767 cat >>confdefs.h <<_ACEOF
26768 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26769 _ACEOF
26770
26771
26772 conftest_s='
26773 .section .text,"ax",@progbits
26774 .globl _start
26775 .type _start, @function
26776 _start:
26777 leal value@tlsldm(%ebx), %eax
26778 call ___tls_get_addr@plt
26779
26780 .section .tdata,"aw'$tls_section_flag'",@progbits
26781 .type value, @object
26782 value:'
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26784 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26785 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26786 $as_echo_n "(cached) " >&6
26787 else
26788 gcc_cv_as_ix86_tlsldm=no
26789 if test x$gcc_cv_as != x; then
26790 $as_echo "$conftest_s" > conftest.s
26791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26793 (eval $ac_try) 2>&5
26794 ac_status=$?
26795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26796 test $ac_status = 0; }; }
26797 then
26798 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26799 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26800 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26801 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26802 gcc_cv_as_ix86_tlsldm=yes
26803 fi
26804 fi
26805 rm -f conftest
26806 else
26807 echo "configure: failed program was" >&5
26808 cat conftest.s >&5
26809 fi
26810 rm -f conftest.o conftest.s
26811 fi
26812 fi
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26814 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26815
26816
26817
26818 cat >>confdefs.h <<_ACEOF
26819 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26820 _ACEOF
26821
26822
26823 conftest_s='
26824 .data
26825 bar:
26826 .byte 1
26827 .text
26828 .global _start
26829 _start:
26830 cmpl $0, bar@GOT
26831 jmp *_start@GOT'
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26833 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26834 if ${gcc_cv_as_ix86_got32x+:} false; then :
26835 $as_echo_n "(cached) " >&6
26836 else
26837 gcc_cv_as_ix86_got32x=no
26838 if test x$gcc_cv_as != x; then
26839 $as_echo "$conftest_s" > conftest.s
26840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26842 (eval $ac_try) 2>&5
26843 ac_status=$?
26844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26845 test $ac_status = 0; }; }
26846 then
26847 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26848 && test x$gcc_cv_readelf != x \
26849 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26850 | grep R_386_GOT32X > /dev/null 2>&1 \
26851 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26852 if $gcc_cv_objdump -dw conftest 2>&1 \
26853 | grep 0xffffff > /dev/null 2>&1; then
26854 gcc_cv_as_ix86_got32x=no
26855 else
26856 gcc_cv_as_ix86_got32x=yes
26857 fi
26858 fi
26859 rm -f conftest
26860 else
26861 echo "configure: failed program was" >&5
26862 cat conftest.s >&5
26863 fi
26864 rm -f conftest.o conftest.s
26865 fi
26866 fi
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26868 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26869
26870
26871
26872 cat >>confdefs.h <<_ACEOF
26873 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26874 _ACEOF
26875
26876
26877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26878 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26879 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
26880 $as_echo_n "(cached) " >&6
26881 else
26882 gcc_cv_as_ix86_gotoff_in_data=no
26883 if test $in_tree_gas = yes; then
26884 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26885 then gcc_cv_as_ix86_gotoff_in_data=yes
26886 fi
26887 elif test x$gcc_cv_as != x; then
26888 $as_echo ' .text
26889 .L0:
26890 nop
26891 .data
26892 .long .L0@GOTOFF' > conftest.s
26893 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26895 (eval $ac_try) 2>&5
26896 ac_status=$?
26897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26898 test $ac_status = 0; }; }
26899 then
26900 gcc_cv_as_ix86_gotoff_in_data=yes
26901 else
26902 echo "configure: failed program was" >&5
26903 cat conftest.s >&5
26904 fi
26905 rm -f conftest.o conftest.s
26906 fi
26907 fi
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26909 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26910
26911
26912
26913 cat >>confdefs.h <<_ACEOF
26914 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26915 _ACEOF
26916
26917
26918 conftest_s='
26919 .section .text,"ax",@progbits
26920 .globl _start
26921 .type _start, @function
26922 _start:
26923 leal ld@tlsldm(%ecx), %eax
26924 call *___tls_get_addr@GOT(%ecx)
26925 leal gd@tlsgd(%ecx), %eax
26926 call *___tls_get_addr@GOT(%ecx)
26927
26928 .section .tdata,"aw'$tls_section_flag'",@progbits
26929 .type ld, @object
26930 ld:
26931 .byte 0
26932 .globl gd
26933 .type gd, @object
26934 gd:
26935 .byte 0'
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26937 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26938 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
26939 $as_echo_n "(cached) " >&6
26940 else
26941 gcc_cv_as_ix86_tls_get_addr_via_got=no
26942 if test x$gcc_cv_as != x; then
26943 $as_echo "$conftest_s" > conftest.s
26944 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26946 (eval $ac_try) 2>&5
26947 ac_status=$?
26948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26949 test $ac_status = 0; }; }
26950 then
26951 if test x$gcc_cv_ld != x \
26952 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26953 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26954 fi
26955 rm -f conftest
26956 else
26957 echo "configure: failed program was" >&5
26958 cat conftest.s >&5
26959 fi
26960 rm -f conftest.o conftest.s
26961 fi
26962 fi
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26964 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26965
26966
26967
26968 cat >>confdefs.h <<_ACEOF
26969 #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`
26970 _ACEOF
26971
26972 ;;
26973
26974 ia64*-*-*)
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26976 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26977 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
26978 $as_echo_n "(cached) " >&6
26979 else
26980 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26981 if test $in_tree_gas = yes; then
26982 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26983 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26984 fi
26985 elif test x$gcc_cv_as != x; then
26986 $as_echo ' .text
26987 addl r15 = @ltoffx(x#), gp
26988 ;;
26989 ld8.mov r16 = [r15], x#
26990 ' > conftest.s
26991 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26993 (eval $ac_try) 2>&5
26994 ac_status=$?
26995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26996 test $ac_status = 0; }; }
26997 then
26998 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26999 else
27000 echo "configure: failed program was" >&5
27001 cat conftest.s >&5
27002 fi
27003 rm -f conftest.o conftest.s
27004 fi
27005 fi
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27007 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27008 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27009
27010 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27011
27012 fi
27013
27014
27015 ;;
27016
27017 powerpc*-*-*)
27018
27019 case $target in
27020 *-*-darwin*)
27021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27022 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27023 if ${gcc_cv_as_machine_directive+:} false; then :
27024 $as_echo_n "(cached) " >&6
27025 else
27026 gcc_cv_as_machine_directive=no
27027 if test x$gcc_cv_as != x; then
27028 $as_echo ' .machine ppc7400' > conftest.s
27029 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27031 (eval $ac_try) 2>&5
27032 ac_status=$?
27033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27034 test $ac_status = 0; }; }
27035 then
27036 gcc_cv_as_machine_directive=yes
27037 else
27038 echo "configure: failed program was" >&5
27039 cat conftest.s >&5
27040 fi
27041 rm -f conftest.o conftest.s
27042 fi
27043 fi
27044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27045 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27046
27047
27048 if test x$gcc_cv_as_machine_directive != xyes; then
27049 echo "*** This target requires an assembler supporting \".machine\"" >&2
27050 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27051 test x$build = x$target && exit 1
27052 fi
27053 ;;
27054 esac
27055
27056 case $target in
27057 *-*-aix*) conftest_s=' .machine "pwr5"
27058 .csect .text[PR]
27059 mfcr 3,128';;
27060 *-*-darwin*) conftest_s=' .text
27061 mfcr r3,128';;
27062 *) conftest_s=' .machine power4
27063 .text
27064 mfcr 3,128';;
27065 esac
27066
27067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27068 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27069 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27070 $as_echo_n "(cached) " >&6
27071 else
27072 gcc_cv_as_powerpc_mfcrf=no
27073 if test $in_tree_gas = yes; then
27074 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27075 then gcc_cv_as_powerpc_mfcrf=yes
27076 fi
27077 elif test x$gcc_cv_as != x; then
27078 $as_echo "$conftest_s" > conftest.s
27079 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27081 (eval $ac_try) 2>&5
27082 ac_status=$?
27083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27084 test $ac_status = 0; }; }
27085 then
27086 gcc_cv_as_powerpc_mfcrf=yes
27087 else
27088 echo "configure: failed program was" >&5
27089 cat conftest.s >&5
27090 fi
27091 rm -f conftest.o conftest.s
27092 fi
27093 fi
27094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27095 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27096 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27097
27098 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27099
27100 fi
27101
27102
27103 case $target in
27104 *-*-aix*) conftest_s=' .csect .text[PR]
27105 LCF..0:
27106 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27107 *-*-darwin*)
27108 conftest_s=' .text
27109 LCF0:
27110 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27111 *) conftest_s=' .text
27112 .LCF0:
27113 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27114 esac
27115
27116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27117 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27118 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27119 $as_echo_n "(cached) " >&6
27120 else
27121 gcc_cv_as_powerpc_rel16=no
27122 if test $in_tree_gas = yes; then
27123 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27124 then gcc_cv_as_powerpc_rel16=yes
27125 fi
27126 elif test x$gcc_cv_as != x; then
27127 $as_echo "$conftest_s" > conftest.s
27128 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27130 (eval $ac_try) 2>&5
27131 ac_status=$?
27132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27133 test $ac_status = 0; }; }
27134 then
27135 gcc_cv_as_powerpc_rel16=yes
27136 else
27137 echo "configure: failed program was" >&5
27138 cat conftest.s >&5
27139 fi
27140 rm -f conftest.o conftest.s
27141 fi
27142 fi
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27144 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27145 if test $gcc_cv_as_powerpc_rel16 = yes; then
27146
27147 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27148
27149 fi
27150
27151
27152 case $target in
27153 *-*-aix*) conftest_s=' .machine "pwr7"
27154 .csect .text[PR]
27155 lxvd2x 1,2,3';;
27156 *) conftest_s=' .machine power7
27157 .text
27158 lxvd2x 1,2,3';;
27159 esac
27160
27161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27162 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27163 if ${gcc_cv_as_powerpc_vsx+:} false; then :
27164 $as_echo_n "(cached) " >&6
27165 else
27166 gcc_cv_as_powerpc_vsx=no
27167 if test $in_tree_gas = yes; then
27168 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27169 then gcc_cv_as_powerpc_vsx=yes
27170 fi
27171 elif test x$gcc_cv_as != x; then
27172 $as_echo "$conftest_s" > conftest.s
27173 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27175 (eval $ac_try) 2>&5
27176 ac_status=$?
27177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27178 test $ac_status = 0; }; }
27179 then
27180 gcc_cv_as_powerpc_vsx=yes
27181 else
27182 echo "configure: failed program was" >&5
27183 cat conftest.s >&5
27184 fi
27185 rm -f conftest.o conftest.s
27186 fi
27187 fi
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27189 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27190 if test $gcc_cv_as_powerpc_vsx = yes; then
27191
27192 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27193
27194 fi
27195
27196
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27198 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27199 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
27200 $as_echo_n "(cached) " >&6
27201 else
27202 gcc_cv_as_powerpc_gnu_attribute=no
27203 if test $in_tree_gas = yes; then
27204 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27205 then gcc_cv_as_powerpc_gnu_attribute=yes
27206 fi
27207 elif test x$gcc_cv_as != x; then
27208 $as_echo '.gnu_attribute 4,1' > conftest.s
27209 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27211 (eval $ac_try) 2>&5
27212 ac_status=$?
27213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27214 test $ac_status = 0; }; }
27215 then
27216 gcc_cv_as_powerpc_gnu_attribute=yes
27217 else
27218 echo "configure: failed program was" >&5
27219 cat conftest.s >&5
27220 fi
27221 rm -f conftest.o conftest.s
27222 fi
27223 fi
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27225 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27226 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27227
27228 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27229
27230 fi
27231
27232
27233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27234 $as_echo_n "checking assembler for tls marker support... " >&6; }
27235 if ${gcc_cv_as_powerpc_tls_markers+:} false; then :
27236 $as_echo_n "(cached) " >&6
27237 else
27238 gcc_cv_as_powerpc_tls_markers=no
27239 if test $in_tree_gas = yes; then
27240 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27241 then gcc_cv_as_powerpc_tls_markers=yes
27242 fi
27243 elif test x$gcc_cv_as != x; then
27244 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27245 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27247 (eval $ac_try) 2>&5
27248 ac_status=$?
27249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27250 test $ac_status = 0; }; }
27251 then
27252 gcc_cv_as_powerpc_tls_markers=yes
27253 else
27254 echo "configure: failed program was" >&5
27255 cat conftest.s >&5
27256 fi
27257 rm -f conftest.o conftest.s
27258 fi
27259 fi
27260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27261 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27262 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27263
27264 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27265
27266 fi
27267
27268
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27270 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27271 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27272 $as_echo_n "(cached) " >&6
27273 else
27274 gcc_cv_as_powerpc_entry_markers=no
27275 if test $in_tree_gas = yes; then
27276 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27277 then gcc_cv_as_powerpc_entry_markers=yes
27278 fi
27279 elif test x$gcc_cv_as != x; then
27280 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27281 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27283 (eval $ac_try) 2>&5
27284 ac_status=$?
27285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27286 test $ac_status = 0; }; }
27287 then
27288 gcc_cv_as_powerpc_entry_markers=yes
27289 else
27290 echo "configure: failed program was" >&5
27291 cat conftest.s >&5
27292 fi
27293 rm -f conftest.o conftest.s
27294 fi
27295 fi
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27297 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27298 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27299
27300 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27301
27302 fi
27303
27304
27305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27306 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27307 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27308 $as_echo_n "(cached) " >&6
27309 else
27310 gcc_cv_as_powerpc_pltseq_markers=no
27311 if test $in_tree_gas = yes; then
27312 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27313 then gcc_cv_as_powerpc_pltseq_markers=yes
27314 fi
27315 elif test x$gcc_cv_as != x; then
27316 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27317 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27319 (eval $ac_try) 2>&5
27320 ac_status=$?
27321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27322 test $ac_status = 0; }; }
27323 then
27324 gcc_cv_as_powerpc_pltseq_markers=yes
27325 else
27326 echo "configure: failed program was" >&5
27327 cat conftest.s >&5
27328 fi
27329 rm -f conftest.o conftest.s
27330 fi
27331 fi
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27333 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27334 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27335
27336 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27337
27338 fi
27339
27340
27341 case $target in
27342 *-*-aix*)
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27344 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27345 if ${gcc_cv_as_aix_ref+:} false; then :
27346 $as_echo_n "(cached) " >&6
27347 else
27348 gcc_cv_as_aix_ref=no
27349 if test $in_tree_gas = yes; then
27350 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27351 then gcc_cv_as_aix_ref=yes
27352 fi
27353 elif test x$gcc_cv_as != x; then
27354 $as_echo ' .csect stuff[rw]
27355 stuff:
27356 .long 1
27357 .extern sym
27358 .ref sym
27359 ' > conftest.s
27360 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27362 (eval $ac_try) 2>&5
27363 ac_status=$?
27364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27365 test $ac_status = 0; }; }
27366 then
27367 gcc_cv_as_aix_ref=yes
27368 else
27369 echo "configure: failed program was" >&5
27370 cat conftest.s >&5
27371 fi
27372 rm -f conftest.o conftest.s
27373 fi
27374 fi
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27376 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27377 if test $gcc_cv_as_aix_ref = yes; then
27378
27379 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27380
27381 fi
27382
27383
27384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27385 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27386 if ${gcc_cv_as_aix_dwloc+:} false; then :
27387 $as_echo_n "(cached) " >&6
27388 else
27389 gcc_cv_as_aix_dwloc=no
27390 if test $in_tree_gas = yes; then
27391 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27392 then gcc_cv_as_aix_dwloc=yes
27393 fi
27394 elif test x$gcc_cv_as != x; then
27395 $as_echo ' .dwsect 0xA0000
27396 Lframe..0:
27397 .vbyte 4,Lframe..0
27398 ' > conftest.s
27399 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27401 (eval $ac_try) 2>&5
27402 ac_status=$?
27403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27404 test $ac_status = 0; }; }
27405 then
27406 gcc_cv_as_aix_dwloc=yes
27407 else
27408 echo "configure: failed program was" >&5
27409 cat conftest.s >&5
27410 fi
27411 rm -f conftest.o conftest.s
27412 fi
27413 fi
27414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27415 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27416 if test $gcc_cv_as_aix_dwloc = yes; then
27417
27418 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27419
27420 fi
27421
27422 ;;
27423 esac
27424 ;;
27425
27426 mips*-*-*)
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27428 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27429 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27430 $as_echo_n "(cached) " >&6
27431 else
27432 gcc_cv_as_mips_explicit_relocs=no
27433 if test $in_tree_gas = yes; then
27434 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27435 then gcc_cv_as_mips_explicit_relocs=yes
27436 fi
27437 elif test x$gcc_cv_as != x; then
27438 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27441 (eval $ac_try) 2>&5
27442 ac_status=$?
27443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27444 test $ac_status = 0; }; }
27445 then
27446 gcc_cv_as_mips_explicit_relocs=yes
27447 else
27448 echo "configure: failed program was" >&5
27449 cat conftest.s >&5
27450 fi
27451 rm -f conftest.o conftest.s
27452 fi
27453 fi
27454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27455 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27456 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27457 if test x$target_cpu_default = x
27458 then target_cpu_default=MASK_EXPLICIT_RELOCS
27459 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27460 fi
27461 fi
27462
27463
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27465 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27466 if ${gcc_cv_as_mips_no_shared+:} false; then :
27467 $as_echo_n "(cached) " >&6
27468 else
27469 gcc_cv_as_mips_no_shared=no
27470 if test $in_tree_gas = yes; then
27471 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27472 then gcc_cv_as_mips_no_shared=yes
27473 fi
27474 elif test x$gcc_cv_as != x; then
27475 $as_echo 'nop' > conftest.s
27476 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27478 (eval $ac_try) 2>&5
27479 ac_status=$?
27480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27481 test $ac_status = 0; }; }
27482 then
27483 gcc_cv_as_mips_no_shared=yes
27484 else
27485 echo "configure: failed program was" >&5
27486 cat conftest.s >&5
27487 fi
27488 rm -f conftest.o conftest.s
27489 fi
27490 fi
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27492 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27493 if test $gcc_cv_as_mips_no_shared = yes; then
27494
27495 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27496
27497 fi
27498
27499
27500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27501 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27502 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27503 $as_echo_n "(cached) " >&6
27504 else
27505 gcc_cv_as_mips_gnu_attribute=no
27506 if test $in_tree_gas = yes; then
27507 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27508 then gcc_cv_as_mips_gnu_attribute=yes
27509 fi
27510 elif test x$gcc_cv_as != x; then
27511 $as_echo '.gnu_attribute 4,1' > conftest.s
27512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27514 (eval $ac_try) 2>&5
27515 ac_status=$?
27516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27517 test $ac_status = 0; }; }
27518 then
27519 gcc_cv_as_mips_gnu_attribute=yes
27520 else
27521 echo "configure: failed program was" >&5
27522 cat conftest.s >&5
27523 fi
27524 rm -f conftest.o conftest.s
27525 fi
27526 fi
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27528 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27529 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27530
27531 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27532
27533 fi
27534
27535
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27537 $as_echo_n "checking assembler for .module support... " >&6; }
27538 if ${gcc_cv_as_mips_dot_module+:} false; then :
27539 $as_echo_n "(cached) " >&6
27540 else
27541 gcc_cv_as_mips_dot_module=no
27542 if test x$gcc_cv_as != x; then
27543 $as_echo '.module mips2
27544 .module fp=xx' > conftest.s
27545 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27547 (eval $ac_try) 2>&5
27548 ac_status=$?
27549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27550 test $ac_status = 0; }; }
27551 then
27552 gcc_cv_as_mips_dot_module=yes
27553 else
27554 echo "configure: failed program was" >&5
27555 cat conftest.s >&5
27556 fi
27557 rm -f conftest.o conftest.s
27558 fi
27559 fi
27560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27561 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27562 if test $gcc_cv_as_mips_dot_module = yes; then
27563
27564 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27565
27566 fi
27567
27568 if test x$gcc_cv_as_mips_dot_module = xno \
27569 && test x$with_fp_32 != x; then
27570 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27571 fi
27572
27573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27574 $as_echo_n "checking assembler for .micromips support... " >&6; }
27575 if ${gcc_cv_as_micromips_support+:} false; then :
27576 $as_echo_n "(cached) " >&6
27577 else
27578 gcc_cv_as_micromips_support=no
27579 if test x$gcc_cv_as != x; then
27580 $as_echo '.set micromips' > conftest.s
27581 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27583 (eval $ac_try) 2>&5
27584 ac_status=$?
27585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27586 test $ac_status = 0; }; }
27587 then
27588 gcc_cv_as_micromips_support=yes
27589 else
27590 echo "configure: failed program was" >&5
27591 cat conftest.s >&5
27592 fi
27593 rm -f conftest.o conftest.s
27594 fi
27595 fi
27596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27597 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27598 if test $gcc_cv_as_micromips_support = yes; then
27599
27600 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27601
27602 fi
27603
27604
27605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27606 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27607 if ${gcc_cv_as_mips_dtprelword+:} false; then :
27608 $as_echo_n "(cached) " >&6
27609 else
27610 gcc_cv_as_mips_dtprelword=no
27611 if test $in_tree_gas = yes; then
27612 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27613 then gcc_cv_as_mips_dtprelword=yes
27614 fi
27615 elif test x$gcc_cv_as != x; then
27616 $as_echo '.section .tdata,"awT",@progbits
27617 x:
27618 .word 2
27619 .text
27620 .dtprelword x+0x8000' > conftest.s
27621 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27623 (eval $ac_try) 2>&5
27624 ac_status=$?
27625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27626 test $ac_status = 0; }; }
27627 then
27628 gcc_cv_as_mips_dtprelword=yes
27629 else
27630 echo "configure: failed program was" >&5
27631 cat conftest.s >&5
27632 fi
27633 rm -f conftest.o conftest.s
27634 fi
27635 fi
27636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27637 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27638 if test $gcc_cv_as_mips_dtprelword = yes; then
27639
27640 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27641
27642 fi
27643
27644
27645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27646 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27647 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27648 $as_echo_n "(cached) " >&6
27649 else
27650 gcc_cv_as_mips_dspr1_mult=no
27651 if test x$gcc_cv_as != x; then
27652 $as_echo ' .set mips32r2
27653 .set nodspr2
27654 .set dsp
27655 madd $ac3,$4,$5
27656 maddu $ac3,$4,$5
27657 msub $ac3,$4,$5
27658 msubu $ac3,$4,$5
27659 mult $ac3,$4,$5
27660 multu $ac3,$4,$5' > conftest.s
27661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27663 (eval $ac_try) 2>&5
27664 ac_status=$?
27665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27666 test $ac_status = 0; }; }
27667 then
27668 gcc_cv_as_mips_dspr1_mult=yes
27669 else
27670 echo "configure: failed program was" >&5
27671 cat conftest.s >&5
27672 fi
27673 rm -f conftest.o conftest.s
27674 fi
27675 fi
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27677 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27678 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27679
27680 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27681
27682 fi
27683
27684
27685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27686 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27687 gcc_cv_as_ld_jalr_reloc=no
27688 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27689 if test $in_tree_ld = yes ; then
27690 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 \
27691 && test $in_tree_ld_is_elf = yes; then
27692 gcc_cv_as_ld_jalr_reloc=yes
27693 fi
27694 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27695 echo ' .ent x' > conftest.s
27696 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27697 echo ' lw $25,%call16(y)($28)' >> conftest.s
27698 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27699 echo '1: jalr $25' >> conftest.s
27700 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27701 echo '1: jalr $25' >> conftest.s
27702 echo ' .end x' >> conftest.s
27703 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27704 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27705 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27706 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27707 gcc_cv_as_ld_jalr_reloc=yes
27708 fi
27709 fi
27710 rm -f conftest.*
27711 fi
27712 fi
27713 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27714 if test x$target_cpu_default = x; then
27715 target_cpu_default=MASK_RELAX_PIC_CALLS
27716 else
27717 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27718 fi
27719 fi
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27721 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27722
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27724 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27725 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27726 $as_echo_n "(cached) " >&6
27727 else
27728 gcc_cv_ld_mips_personality_relaxation=no
27729 if test $in_tree_ld = yes ; then
27730 if test "$gcc_cv_gld_major_version" -eq 2 \
27731 -a "$gcc_cv_gld_minor_version" -ge 21 \
27732 -o "$gcc_cv_gld_major_version" -gt 2; then
27733 gcc_cv_ld_mips_personality_relaxation=yes
27734 fi
27735 elif test x$gcc_cv_as != x \
27736 -a x$gcc_cv_ld != x \
27737 -a x$gcc_cv_readelf != x ; then
27738 cat > conftest.s <<EOF
27739 .cfi_startproc
27740 .cfi_personality 0x80,indirect_ptr
27741 .ent test
27742 test:
27743 nop
27744 .end test
27745 .cfi_endproc
27746
27747 .section .data,"aw",@progbits
27748 indirect_ptr:
27749 .dc.a personality
27750 EOF
27751 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27752 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27753 if $gcc_cv_readelf -d conftest 2>&1 \
27754 | grep TEXTREL > /dev/null 2>&1; then
27755 :
27756 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27757 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27758 :
27759 else
27760 gcc_cv_ld_mips_personality_relaxation=yes
27761 fi
27762 fi
27763 fi
27764 rm -f conftest.s conftest.o conftest
27765 fi
27766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27767 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27768 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27769
27770 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27771
27772 fi
27773
27774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27775 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27776 if ${gcc_cv_as_mips_nan+:} false; then :
27777 $as_echo_n "(cached) " >&6
27778 else
27779 gcc_cv_as_mips_nan=no
27780 if test x$gcc_cv_as != x; then
27781 $as_echo '' > conftest.s
27782 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27784 (eval $ac_try) 2>&5
27785 ac_status=$?
27786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27787 test $ac_status = 0; }; }
27788 then
27789 gcc_cv_as_mips_nan=yes
27790 else
27791 echo "configure: failed program was" >&5
27792 cat conftest.s >&5
27793 fi
27794 rm -f conftest.o conftest.s
27795 fi
27796 fi
27797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27798 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27799 if test $gcc_cv_as_mips_nan = yes; then
27800
27801 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27802
27803 fi
27804
27805 if test x$gcc_cv_as_mips_nan = xno \
27806 && test x$with_nan != x; then
27807 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27808 fi
27809 ;;
27810 msp430-*-*)
27811 # Earlier GAS versions generically support .gnu_attribute, but the
27812 # msp430 assembler will not do anything with it.
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27814 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27815 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
27816 $as_echo_n "(cached) " >&6
27817 else
27818 gcc_cv_as_msp430_gnu_attribute=no
27819 if test $in_tree_gas = yes; then
27820 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27821 then gcc_cv_as_msp430_gnu_attribute=yes
27822 fi
27823 elif test x$gcc_cv_as != x; then
27824 $as_echo '.gnu_attribute 4,1' > conftest.s
27825 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27827 (eval $ac_try) 2>&5
27828 ac_status=$?
27829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27830 test $ac_status = 0; }; }
27831 then
27832 gcc_cv_as_msp430_gnu_attribute=yes
27833 else
27834 echo "configure: failed program was" >&5
27835 cat conftest.s >&5
27836 fi
27837 rm -f conftest.o conftest.s
27838 fi
27839 fi
27840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
27841 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
27842 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
27843
27844 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27845
27846 fi
27847
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
27849 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
27850 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
27851 $as_echo_n "(cached) " >&6
27852 else
27853 gcc_cv_as_msp430_mspabi_attribute=no
27854 if test $in_tree_gas = yes; then
27855 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27856 then gcc_cv_as_msp430_mspabi_attribute=yes
27857 fi
27858 elif test x$gcc_cv_as != x; then
27859 $as_echo '.mspabi_attribute 4,1' > conftest.s
27860 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27862 (eval $ac_try) 2>&5
27863 ac_status=$?
27864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27865 test $ac_status = 0; }; }
27866 then
27867 gcc_cv_as_msp430_mspabi_attribute=yes
27868 else
27869 echo "configure: failed program was" >&5
27870 cat conftest.s >&5
27871 fi
27872 rm -f conftest.o conftest.s
27873 fi
27874 fi
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
27876 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
27877 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
27878
27879 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
27880
27881 fi
27882
27883 ;;
27884 riscv*-*-*)
27885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
27886 $as_echo_n "checking assembler for .attribute support... " >&6; }
27887 if ${gcc_cv_as_riscv_attribute+:} false; then :
27888 $as_echo_n "(cached) " >&6
27889 else
27890 gcc_cv_as_riscv_attribute=no
27891 if test $in_tree_gas = yes; then
27892 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
27893 then gcc_cv_as_riscv_attribute=yes
27894 fi
27895 elif test x$gcc_cv_as != x; then
27896 $as_echo '.attribute stack_align,4' > conftest.s
27897 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27899 (eval $ac_try) 2>&5
27900 ac_status=$?
27901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27902 test $ac_status = 0; }; }
27903 then
27904 gcc_cv_as_riscv_attribute=yes
27905 else
27906 echo "configure: failed program was" >&5
27907 cat conftest.s >&5
27908 fi
27909 rm -f conftest.o conftest.s
27910 fi
27911 fi
27912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
27913 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
27914 if test $gcc_cv_as_riscv_attribute = yes; then
27915
27916 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
27917
27918 fi
27919
27920 ;;
27921 s390*-*-*)
27922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27923 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27924 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
27925 $as_echo_n "(cached) " >&6
27926 else
27927 gcc_cv_as_s390_gnu_attribute=no
27928 if test $in_tree_gas = yes; then
27929 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27930 then gcc_cv_as_s390_gnu_attribute=yes
27931 fi
27932 elif test x$gcc_cv_as != x; then
27933 $as_echo '.gnu_attribute 8,1' > conftest.s
27934 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27936 (eval $ac_try) 2>&5
27937 ac_status=$?
27938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27939 test $ac_status = 0; }; }
27940 then
27941 gcc_cv_as_s390_gnu_attribute=yes
27942 else
27943 echo "configure: failed program was" >&5
27944 cat conftest.s >&5
27945 fi
27946 rm -f conftest.o conftest.s
27947 fi
27948 fi
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27950 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27951 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27952
27953 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27954
27955 fi
27956
27957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27958 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27959 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
27960 $as_echo_n "(cached) " >&6
27961 else
27962 gcc_cv_as_s390_machine_machinemode=no
27963 if test $in_tree_gas = yes; then
27964 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27965 then gcc_cv_as_s390_machine_machinemode=yes
27966 fi
27967 elif test x$gcc_cv_as != x; then
27968 $as_echo ' .machinemode push
27969 .machinemode pop
27970 .machine push
27971 .machine pop' > conftest.s
27972 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27974 (eval $ac_try) 2>&5
27975 ac_status=$?
27976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27977 test $ac_status = 0; }; }
27978 then
27979 gcc_cv_as_s390_machine_machinemode=yes
27980 else
27981 echo "configure: failed program was" >&5
27982 cat conftest.s >&5
27983 fi
27984 rm -f conftest.o conftest.s
27985 fi
27986 fi
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27988 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27989 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27990
27991 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27992
27993 fi
27994
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27996 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27997 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
27998 $as_echo_n "(cached) " >&6
27999 else
28000 gcc_cv_as_s390_architecture_modifiers=no
28001 if test $in_tree_gas = yes; then
28002 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28003 then gcc_cv_as_s390_architecture_modifiers=yes
28004 fi
28005 elif test x$gcc_cv_as != x; then
28006 $as_echo ' .machine z13+vx ' > conftest.s
28007 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28009 (eval $ac_try) 2>&5
28010 ac_status=$?
28011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28012 test $ac_status = 0; }; }
28013 then
28014 gcc_cv_as_s390_architecture_modifiers=yes
28015 else
28016 echo "configure: failed program was" >&5
28017 cat conftest.s >&5
28018 fi
28019 rm -f conftest.o conftest.s
28020 fi
28021 fi
28022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28023 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28024 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28025
28026 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28027
28028 fi
28029
28030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28031 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28032 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28033 $as_echo_n "(cached) " >&6
28034 else
28035 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28036 if test $in_tree_gas = yes; then
28037 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28038 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28039 fi
28040 elif test x$gcc_cv_as != x; then
28041 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28042 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28044 (eval $ac_try) 2>&5
28045 ac_status=$?
28046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28047 test $ac_status = 0; }; }
28048 then
28049 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28050 else
28051 echo "configure: failed program was" >&5
28052 cat conftest.s >&5
28053 fi
28054 rm -f conftest.o conftest.s
28055 fi
28056 fi
28057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28058 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28059 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28060
28061 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28062
28063 fi
28064
28065
28066 ;;
28067 esac
28068
28069 # Mips and HP-UX need the GNU assembler.
28070 # Linux on IA64 might be able to use the Intel assembler.
28071
28072 case "$target" in
28073 mips*-*-* | *-*-hpux* )
28074 if test x$gas_flag = xyes \
28075 || test x"$host" != x"$build" \
28076 || test ! -x "$gcc_cv_as" \
28077 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28078 :
28079 else
28080 echo "*** This configuration requires the GNU assembler" >&2
28081 exit 1
28082 fi
28083 ;;
28084 esac
28085
28086 # ??? Not all targets support dwarf2 debug_line, even within a version
28087 # of gas. Moreover, we need to emit a valid instruction to trigger any
28088 # info to the output file. So, as supported targets are added to gas 2.11,
28089 # add some instruction here to (also) show we expect this might work.
28090 # ??? Once 2.11 is released, probably need to add first known working
28091 # version to the per-target configury.
28092 case "$cpu_type" in
28093 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28094 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28095 | tilegx | tilepro | visium | xstormy16 | xtensa)
28096 insn="nop"
28097 ;;
28098 ia64 | s390)
28099 insn="nop 0"
28100 ;;
28101 mmix)
28102 insn="swym 0"
28103 ;;
28104 esac
28105 if test x"$insn" != x; then
28106 conftest_s="\
28107 .file 1 \"conftest.s\"
28108 .loc 1 3 0
28109 $insn"
28110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28111 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28112 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
28113 $as_echo_n "(cached) " >&6
28114 else
28115 gcc_cv_as_dwarf2_debug_line=no
28116 if test $in_tree_gas = yes; then
28117 if test $in_tree_gas_is_elf = yes \
28118 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28119 then gcc_cv_as_dwarf2_debug_line=yes
28120 fi
28121 elif test x$gcc_cv_as != x; then
28122 $as_echo "$conftest_s" > conftest.s
28123 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28125 (eval $ac_try) 2>&5
28126 ac_status=$?
28127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28128 test $ac_status = 0; }; }
28129 then
28130 if test x$gcc_cv_objdump != x \
28131 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
28132 | grep debug_line > /dev/null 2>&1; then
28133 gcc_cv_as_dwarf2_debug_line=yes
28134 elif test x$gcc_cv_otool != x \
28135 && $gcc_cv_otool -l conftest.o 2> /dev/null \
28136 | grep debug_line > /dev/null 2>&1; then
28137 gcc_cv_as_dwarf2_debug_line=yes
28138 fi
28139 else
28140 echo "configure: failed program was" >&5
28141 cat conftest.s >&5
28142 fi
28143 rm -f conftest.o conftest.s
28144 fi
28145 fi
28146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28147 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28148
28149
28150
28151 # The .debug_line file table must be in the exact order that
28152 # we specified the files, since these indices are also used
28153 # by DW_AT_decl_file. Approximate this test by testing if
28154 # the assembler bitches if the same index is assigned twice.
28155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28156 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28157 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
28158 $as_echo_n "(cached) " >&6
28159 else
28160 gcc_cv_as_dwarf2_file_buggy=no
28161 if test x$gcc_cv_as != x; then
28162 $as_echo ' .file 1 "foo.s"
28163 .file 1 "bar.s"' > conftest.s
28164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28166 (eval $ac_try) 2>&5
28167 ac_status=$?
28168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28169 test $ac_status = 0; }; }
28170 then
28171 gcc_cv_as_dwarf2_file_buggy=yes
28172 else
28173 echo "configure: failed program was" >&5
28174 cat conftest.s >&5
28175 fi
28176 rm -f conftest.o conftest.s
28177 fi
28178 fi
28179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28180 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28181
28182
28183
28184 if test $gcc_cv_as_dwarf2_debug_line = yes \
28185 && test $gcc_cv_as_dwarf2_file_buggy = no; then
28186
28187 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28188
28189
28190 if test $gcc_cv_as_leb128 = yes; then
28191 conftest_s="\
28192 .file 1 \"conftest.s\"
28193 .loc 1 3 0 view .LVU1
28194 $insn
28195 .data
28196 .uleb128 .LVU1
28197 .uleb128 .LVU1
28198 "
28199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28200 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28201 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
28202 $as_echo_n "(cached) " >&6
28203 else
28204 gcc_cv_as_dwarf2_debug_view=no
28205 if test $in_tree_gas = yes; then
28206 if test $in_tree_gas_is_elf = yes \
28207 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28208 then gcc_cv_as_dwarf2_debug_view=yes
28209 fi
28210 elif test x$gcc_cv_as != x; then
28211 $as_echo "$conftest_s" > conftest.s
28212 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28214 (eval $ac_try) 2>&5
28215 ac_status=$?
28216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28217 test $ac_status = 0; }; }
28218 then
28219 gcc_cv_as_dwarf2_debug_view=yes
28220 else
28221 echo "configure: failed program was" >&5
28222 cat conftest.s >&5
28223 fi
28224 rm -f conftest.o conftest.s
28225 fi
28226 fi
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28228 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28229 if test $gcc_cv_as_dwarf2_debug_view = yes; then
28230
28231 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28232
28233 fi
28234
28235 fi
28236 fi
28237
28238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28239 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28240 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
28241 $as_echo_n "(cached) " >&6
28242 else
28243 gcc_cv_as_gdwarf2_flag=no
28244 if test $in_tree_gas = yes; then
28245 if test $in_tree_gas_is_elf = yes \
28246 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28247 then gcc_cv_as_gdwarf2_flag=yes
28248 fi
28249 elif test x$gcc_cv_as != x; then
28250 $as_echo "$insn" > conftest.s
28251 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28253 (eval $ac_try) 2>&5
28254 ac_status=$?
28255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28256 test $ac_status = 0; }; }
28257 then
28258 gcc_cv_as_gdwarf2_flag=yes
28259 else
28260 echo "configure: failed program was" >&5
28261 cat conftest.s >&5
28262 fi
28263 rm -f conftest.o conftest.s
28264 fi
28265 fi
28266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28267 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28268 if test $gcc_cv_as_gdwarf2_flag = yes; then
28269
28270 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28271
28272 fi
28273
28274
28275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28276 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28277 if ${gcc_cv_as_gstabs_flag+:} false; then :
28278 $as_echo_n "(cached) " >&6
28279 else
28280 gcc_cv_as_gstabs_flag=no
28281 if test $in_tree_gas = yes; then
28282 if test $in_tree_gas_is_elf = yes \
28283 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28284 then gcc_cv_as_gstabs_flag=yes
28285 fi
28286 elif test x$gcc_cv_as != x; then
28287 $as_echo "$insn" > conftest.s
28288 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28290 (eval $ac_try) 2>&5
28291 ac_status=$?
28292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28293 test $ac_status = 0; }; }
28294 then
28295 gcc_cv_as_gstabs_flag=yes
28296 else
28297 echo "configure: failed program was" >&5
28298 cat conftest.s >&5
28299 fi
28300 rm -f conftest.o conftest.s
28301 fi
28302 fi
28303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28304 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28305 if test $gcc_cv_as_gstabs_flag = yes; then
28306
28307 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28308
28309 fi
28310
28311
28312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28313 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28314 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
28315 $as_echo_n "(cached) " >&6
28316 else
28317 gcc_cv_as_debug_prefix_map_flag=no
28318 if test $in_tree_gas = yes; then
28319 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28320 then gcc_cv_as_debug_prefix_map_flag=yes
28321 fi
28322 elif test x$gcc_cv_as != x; then
28323 $as_echo "$insn" > conftest.s
28324 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28326 (eval $ac_try) 2>&5
28327 ac_status=$?
28328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28329 test $ac_status = 0; }; }
28330 then
28331 gcc_cv_as_debug_prefix_map_flag=yes
28332 else
28333 echo "configure: failed program was" >&5
28334 cat conftest.s >&5
28335 fi
28336 rm -f conftest.o conftest.s
28337 fi
28338 fi
28339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28340 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28341 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28342
28343 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28344
28345 fi
28346
28347 fi
28348
28349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28350 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28351 if ${gcc_cv_as_compress_debug+:} false; then :
28352 $as_echo_n "(cached) " >&6
28353 else
28354 gcc_cv_as_compress_debug=no
28355 if test x$gcc_cv_as != x; then
28356 $as_echo '' > conftest.s
28357 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28359 (eval $ac_try) 2>&5
28360 ac_status=$?
28361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28362 test $ac_status = 0; }; }
28363 then
28364 # gas compiled without zlib cannot compress debug sections and warns
28365 # about it, but still exits successfully. So check for this, too.
28366 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28367 then
28368 gcc_cv_as_compress_debug=0
28369 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28370 # defaulting to the ELF gABI format.
28371 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28372 then
28373 gcc_cv_as_compress_debug=2
28374 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28375 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28376 # Before binutils 2.26, gas only supported --compress-debug-options and
28377 # emitted the traditional GNU format.
28378 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28379 then
28380 gcc_cv_as_compress_debug=1
28381 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28382 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28383 else
28384 gcc_cv_as_compress_debug=0
28385 fi
28386 else
28387 echo "configure: failed program was" >&5
28388 cat conftest.s >&5
28389 fi
28390 rm -f conftest.o conftest.s
28391 fi
28392 fi
28393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28394 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28395
28396
28397
28398 cat >>confdefs.h <<_ACEOF
28399 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28400 _ACEOF
28401
28402
28403 cat >>confdefs.h <<_ACEOF
28404 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28405 _ACEOF
28406
28407
28408 cat >>confdefs.h <<_ACEOF
28409 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28410 _ACEOF
28411
28412
28413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28414 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28415 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
28416 $as_echo_n "(cached) " >&6
28417 else
28418 gcc_cv_as_lcomm_with_alignment=no
28419 if test x$gcc_cv_as != x; then
28420 $as_echo '.lcomm bar,4,16' > conftest.s
28421 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28423 (eval $ac_try) 2>&5
28424 ac_status=$?
28425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28426 test $ac_status = 0; }; }
28427 then
28428 gcc_cv_as_lcomm_with_alignment=yes
28429 else
28430 echo "configure: failed program was" >&5
28431 cat conftest.s >&5
28432 fi
28433 rm -f conftest.o conftest.s
28434 fi
28435 fi
28436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28437 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28438 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28439
28440 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28441
28442 fi
28443
28444
28445 if test x$with_sysroot = x && test x$host = x$target \
28446 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28447 && test "$prefix" != "NONE"; then
28448
28449 cat >>confdefs.h <<_ACEOF
28450 #define PREFIX_INCLUDE_DIR "$prefix/include"
28451 _ACEOF
28452
28453 fi
28454
28455 # Determine the version of glibc, if any, used on the target.
28456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28457 $as_echo_n "checking for target glibc version... " >&6; }
28458
28459 # Check whether --with-glibc-version was given.
28460 if test "${with_glibc_version+set}" = set; then :
28461 withval=$with_glibc_version;
28462 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28463 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28464 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28465 else
28466 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28467 fi
28468 else
28469
28470 glibc_version_major=0
28471 glibc_version_minor=0
28472 if test -f $target_header_dir/features.h \
28473 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28474 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28475 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28476 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28477 fi
28478 fi
28479
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28481 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28482
28483 cat >>confdefs.h <<_ACEOF
28484 #define TARGET_GLIBC_MAJOR $glibc_version_major
28485 _ACEOF
28486
28487
28488 cat >>confdefs.h <<_ACEOF
28489 #define TARGET_GLIBC_MINOR $glibc_version_minor
28490 _ACEOF
28491
28492
28493 # Check whether --enable-gnu-unique-object was given.
28494 if test "${enable_gnu_unique_object+set}" = set; then :
28495 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28496 yes | no) ;;
28497 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28498 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28499 esac
28500 else
28501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28502 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28503 if ${gcc_cv_as_gnu_unique_object+:} false; then :
28504 $as_echo_n "(cached) " >&6
28505 else
28506 gcc_cv_as_gnu_unique_object=no
28507 if test $in_tree_gas = yes; then
28508 if test $in_tree_gas_is_elf = yes \
28509 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28510 then gcc_cv_as_gnu_unique_object=yes
28511 fi
28512 elif test x$gcc_cv_as != x; then
28513 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28516 (eval $ac_try) 2>&5
28517 ac_status=$?
28518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28519 test $ac_status = 0; }; }
28520 then
28521 gcc_cv_as_gnu_unique_object=yes
28522 else
28523 echo "configure: failed program was" >&5
28524 cat conftest.s >&5
28525 fi
28526 rm -f conftest.o conftest.s
28527 fi
28528 fi
28529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28530 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28531 if test $gcc_cv_as_gnu_unique_object = yes; then
28532 # We need to unquote above to to use the definition from config.gcc.
28533 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28534
28535 if test $glibc_version_major -gt 2 \
28536 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28537 enable_gnu_unique_object=yes
28538 fi
28539
28540 fi
28541
28542 fi
28543
28544 if test x$enable_gnu_unique_object = xyes; then
28545
28546 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28547
28548 fi
28549
28550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28551 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28552 if ${gcc_cv_as_line_zero+:} false; then :
28553 $as_echo_n "(cached) " >&6
28554 else
28555 gcc_cv_as_line_zero=no
28556 if test $in_tree_gas = yes; then
28557 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28558 then gcc_cv_as_line_zero=yes
28559 fi
28560 elif test "x$gcc_cv_as" != x; then
28561 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28562 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28564 (eval $ac_try) 2>&5
28565 ac_status=$?
28566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28567 test $ac_status = 0; }; } &&
28568 test "x`cat conftest.out`" = x
28569 then
28570 gcc_cv_as_line_zero=yes
28571 else
28572 echo "configure: failed program was" >&5
28573 cat conftest.s >&5
28574 echo "configure: error output was" >&5
28575 cat conftest.out >&5
28576 fi
28577 rm -f conftest.o conftest.s conftest.out
28578 fi
28579 fi
28580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28581 $as_echo "$gcc_cv_as_line_zero" >&6; }
28582 if test "x$gcc_cv_as_line_zero" = xyes; then
28583
28584 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28585
28586 fi
28587
28588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28589 $as_echo_n "checking support for thin archives... " >&6; }
28590 thin_archive_support=no
28591 echo 'int main (void) { return 0; }' > conftest.c
28592 if ($AR --version | sed 1q | grep "GNU ar" \
28593 && $CC $CFLAGS -c conftest.c \
28594 && $AR rcT conftest.a conftest.o \
28595 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28596 thin_archive_support=yes
28597 fi
28598 rm -f conftest.c conftest.o conftest.a conftest
28599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28600 $as_echo "$thin_archive_support" >&6; }
28601
28602
28603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28604 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28605 gcc_cv_ld_eh_frame_hdr=no
28606 if test $in_tree_ld = yes ; then
28607 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 \
28608 && test $in_tree_ld_is_elf = yes; then
28609 gcc_cv_ld_eh_frame_hdr=yes
28610 fi
28611 elif test x$gcc_cv_ld != x; then
28612 if echo "$ld_ver" | grep GNU > /dev/null; then
28613 # Check if linker supports --eh-frame-hdr option
28614 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28615 gcc_cv_ld_eh_frame_hdr=yes
28616 fi
28617 else
28618 case "$target" in
28619 *-*-solaris2*)
28620 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28621 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28622 gcc_cv_ld_eh_frame_hdr=yes
28623 fi
28624 ;;
28625 esac
28626 fi
28627 fi
28628
28629 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28630
28631 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28632
28633 fi
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28635 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28636
28637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28638 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28639 gcc_cv_ld_eh_frame_ciev3=no
28640 if test $in_tree_ld = yes ; then
28641 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 \
28642 && test $in_tree_ld_is_elf = yes; then
28643 gcc_cv_ld_eh_frame_ciev3=yes
28644 fi
28645 elif test x$gcc_cv_ld != x; then
28646 if echo "$ld_ver" | grep GNU > /dev/null; then
28647 gcc_cv_ld_eh_frame_ciev3=yes
28648 if test 0"$ld_date" -lt 20040513; then
28649 if test -n "$ld_date"; then
28650 # If there was date string, but was earlier than 2004-05-13, fail
28651 gcc_cv_ld_eh_frame_ciev3=no
28652 elif test "$ld_vers_major" -lt 2; then
28653 gcc_cv_ld_eh_frame_ciev3=no
28654 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28655 gcc_cv_ld_eh_frame_ciev3=no
28656 fi
28657 fi
28658 else
28659 case "$target" in
28660 *-*-solaris2*)
28661 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28662 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28663 gcc_cv_ld_eh_frame_ciev3=yes
28664 fi
28665 ;;
28666 esac
28667 fi
28668 fi
28669
28670 cat >>confdefs.h <<_ACEOF
28671 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28672 _ACEOF
28673
28674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28675 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28676
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28678 $as_echo_n "checking linker position independent executable support... " >&6; }
28679 gcc_cv_ld_pie=no
28680 if test $in_tree_ld = yes ; then
28681 case "$target" in
28682 # Full PIE support on Solaris was only introduced in gld 2.26.
28683 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28684 *) gcc_gld_pie_min_version=15 ;;
28685 esac
28686 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 \
28687 && test $in_tree_ld_is_elf = yes; then
28688 gcc_cv_ld_pie=yes
28689 fi
28690 elif test x$gcc_cv_ld != x; then
28691 # Check if linker supports -pie option
28692 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28693 gcc_cv_ld_pie=yes
28694 case "$target" in
28695 *-*-solaris2*)
28696 if echo "$ld_ver" | grep GNU > /dev/null \
28697 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28698 gcc_cv_ld_pie=no
28699 fi
28700 ;;
28701 esac
28702 else
28703 case "$target" in
28704 *-*-solaris2.1[1-9]*)
28705 # Solaris 11.3 added PIE support.
28706 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28707 gcc_cv_ld_pie=yes
28708 fi
28709 ;;
28710 esac
28711 fi
28712 fi
28713 if test x"$gcc_cv_ld_pie" = xyes; then
28714
28715 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28716
28717 fi
28718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28719 $as_echo "$gcc_cv_ld_pie" >&6; }
28720
28721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28722 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28723 gcc_cv_ld_pie_copyreloc=no
28724 if test $gcc_cv_ld_pie = yes ; then
28725 if test $in_tree_ld = yes ; then
28726 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
28727 gcc_cv_ld_pie_copyreloc=yes
28728 fi
28729 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28730 # Check if linker supports -pie option with copy reloc
28731 case "$target" in
28732 i?86-*-linux* | x86_64-*-linux*)
28733 cat > conftest1.s <<EOF
28734 .globl a_glob
28735 .data
28736 .type a_glob, @object
28737 .size a_glob, 4
28738 a_glob:
28739 .long 2
28740 EOF
28741 cat > conftest2.s <<EOF
28742 .text
28743 .globl main
28744 .type main, @function
28745 main:
28746 movl %eax, a_glob(%rip)
28747 .size main, .-main
28748 .globl ptr
28749 .section .data.rel,"aw",@progbits
28750 .type ptr, @object
28751 ptr:
28752 .quad a_glob
28753 EOF
28754 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28755 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28756 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28757 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28758 gcc_cv_ld_pie_copyreloc=yes
28759 fi
28760 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28761 ;;
28762 esac
28763 fi
28764 fi
28765
28766 cat >>confdefs.h <<_ACEOF
28767 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28768 _ACEOF
28769
28770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28771 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28772
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28774 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28775 gcc_cv_ld_eh_gc_sections=no
28776 if test $in_tree_ld = yes ; then
28777 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 \
28778 && test $in_tree_ld_is_elf = yes; then
28779 gcc_cv_ld_eh_gc_sections=yes
28780 fi
28781 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28782 cat > conftest.s <<EOF
28783 .section .text
28784 .globl _start
28785 .type _start, @function
28786 _start:
28787 .long foo
28788 .size _start, .-_start
28789 .section .text.foo,"ax",@progbits
28790 .type foo, @function
28791 foo:
28792 .long 0
28793 .size foo, .-foo
28794 .section .gcc_except_table.foo,"a",@progbits
28795 .L0:
28796 .long 0
28797 .section .eh_frame,"a",@progbits
28798 .long .L0
28799 EOF
28800 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28801 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28802 | grep "gc-sections option ignored" > /dev/null; then
28803 gcc_cv_ld_eh_gc_sections=no
28804 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28805 | grep gcc_except_table > /dev/null; then
28806 gcc_cv_ld_eh_gc_sections=yes
28807 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28808 if test x$gcc_cv_as_comdat_group != xyes; then
28809 gcc_cv_ld_eh_gc_sections=no
28810 cat > conftest.s <<EOF
28811 .section .text
28812 .globl _start
28813 .type _start, @function
28814 _start:
28815 .long foo
28816 .size _start, .-_start
28817 .section .gnu.linkonce.t.foo,"ax",@progbits
28818 .type foo, @function
28819 foo:
28820 .long 0
28821 .size foo, .-foo
28822 .section .gcc_except_table.foo,"a",@progbits
28823 .L0:
28824 .long 0
28825 .section .eh_frame,"a",@progbits
28826 .long .L0
28827 EOF
28828 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28829 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28830 | grep "gc-sections option ignored" > /dev/null; then
28831 gcc_cv_ld_eh_gc_sections=no
28832 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28833 | grep gcc_except_table > /dev/null; then
28834 gcc_cv_ld_eh_gc_sections=yes
28835 fi
28836 fi
28837 fi
28838 fi
28839 fi
28840 rm -f conftest.s conftest.o conftest
28841 fi
28842 case "$target" in
28843 hppa*-*-linux*)
28844 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28845 gcc_cv_ld_eh_gc_sections=no
28846 ;;
28847 esac
28848 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28849
28850 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28851
28852 fi
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28854 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28855
28856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28857 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28858 gcc_cv_ld_eh_gc_sections_bug=no
28859 if test $in_tree_ld = yes ; then
28860 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 \
28861 && test $in_tree_ld_is_elf = yes; then
28862 gcc_cv_ld_eh_gc_sections_bug=yes
28863 fi
28864 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
28865 gcc_cv_ld_eh_gc_sections_bug=yes
28866 cat > conftest.s <<EOF
28867 .section .text
28868 .globl _start
28869 .type _start, @function
28870 _start:
28871 .long foo
28872 .size _start, .-_start
28873 .section .text.startup.foo,"ax",@progbits
28874 .type foo, @function
28875 foo:
28876 .long 0
28877 .size foo, .-foo
28878 .section .gcc_except_table.foo,"a",@progbits
28879 .L0:
28880 .long 0
28881 .section .eh_frame,"a",@progbits
28882 .long .L0
28883 EOF
28884 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28885 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28886 | grep "gc-sections option ignored" > /dev/null; then
28887 :
28888 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28889 | grep gcc_except_table > /dev/null; then
28890 gcc_cv_ld_eh_gc_sections_bug=no
28891 fi
28892 fi
28893 rm -f conftest.s conftest.o conftest
28894 fi
28895 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28896
28897 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28898
28899 fi
28900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28901 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28902
28903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28904 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28905 # gold/gld support compressed debug sections since binutils 2.19/2.21
28906 # In binutils 2.26, gld gained support for the ELF gABI format.
28907 if test $in_tree_ld = yes ; then
28908 gcc_cv_ld_compress_debug=0
28909 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 \
28910 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28911 gcc_cv_ld_compress_debug=2
28912 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28913 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 \
28914 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28915 gcc_cv_ld_compress_debug=3
28916 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28917 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 \
28918 && test $in_tree_ld_is_elf = yes; then
28919 gcc_cv_ld_compress_debug=1
28920 fi
28921 elif echo "$ld_ver" | grep GNU > /dev/null; then
28922 if test "$ld_vers_major" -lt 2 \
28923 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28924 gcc_cv_ld_compress_debug=0
28925 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28926 gcc_cv_ld_compress_debug=1
28927 else
28928 gcc_cv_ld_compress_debug=3
28929 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28930 fi
28931 if test $ld_is_gold = yes; then
28932 gcc_cv_ld_compress_debug=2
28933 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28934 fi
28935 else
28936 case "${target}" in
28937 *-*-solaris2*)
28938 # Introduced in Solaris 11.2.
28939 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28940 gcc_cv_ld_compress_debug=3
28941 gcc_cv_ld_compress_debug_option="-z compress-sections"
28942 else
28943 gcc_cv_ld_compress_debug=0
28944 fi
28945 ;;
28946 *)
28947 # Assume linkers other than GNU ld don't support compessed debug
28948 # sections.
28949 gcc_cv_ld_compress_debug=0
28950 ;;
28951 esac
28952 fi
28953
28954 cat >>confdefs.h <<_ACEOF
28955 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28956 _ACEOF
28957
28958
28959 cat >>confdefs.h <<_ACEOF
28960 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28961 _ACEOF
28962
28963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28964 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28965
28966 if test x"$ld64_flag" = x"yes"; then
28967
28968 # Set defaults for possibly untestable items.
28969 gcc_cv_ld64_export_dynamic=0
28970
28971 if test "$build" = "$host"; then
28972 darwin_try_test=1
28973 else
28974 darwin_try_test=0
28975 fi
28976
28977 # On Darwin, because of FAT library support, it is often possible to execute
28978 # exes from compatible archs even when the host differs from the build system.
28979 case "$build","$host" in
28980 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28981 darwin_try_test=1;;
28982 *) ;;
28983 esac
28984
28985 # If the configurer specified a minimum ld64 version to be supported, then use
28986 # that to determine feature support.
28987 if test x"${gcc_cv_ld64_version}" != x; then
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28989 $as_echo_n "checking ld64 specified version... " >&6; }
28990 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28992 $as_echo "$gcc_cv_ld64_major" >&6; }
28993 if test "$gcc_cv_ld64_major" -ge 236; then
28994 gcc_cv_ld64_export_dynamic=1
28995 fi
28996 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28997 # If the version was not specified, try to find it.
28998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28999 $as_echo_n "checking linker version... " >&6; }
29000 if test x"${gcc_cv_ld64_version}" = x; then
29001 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
29002 fi
29003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
29004 $as_echo "$gcc_cv_ld64_version" >&6; }
29005
29006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
29007 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
29008 gcc_cv_ld64_export_dynamic=1
29009 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
29010 gcc_cv_ld64_export_dynamic=0
29011 fi
29012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
29013 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
29014 fi
29015
29016 if test x"${gcc_cv_ld64_version}" != x; then
29017
29018 cat >>confdefs.h <<_ACEOF
29019 #define LD64_VERSION "${gcc_cv_ld64_version}"
29020 _ACEOF
29021
29022 fi
29023
29024
29025 cat >>confdefs.h <<_ACEOF
29026 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
29027 _ACEOF
29028
29029 fi
29030
29031 # --------
29032 # UNSORTED
29033 # --------
29034
29035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
29036 $as_echo_n "checking linker --as-needed support... " >&6; }
29037 if ${gcc_cv_ld_as_needed+:} false; then :
29038 $as_echo_n "(cached) " >&6
29039 else
29040 gcc_cv_ld_as_needed=no
29041 gcc_cv_ld_as_needed_option='--as-needed'
29042 gcc_cv_ld_no_as_needed_option='--no-as-needed'
29043 if test $in_tree_ld = yes ; then
29044 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 \
29045 && test $in_tree_ld_is_elf = yes; then
29046 gcc_cv_ld_as_needed=yes
29047 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
29048 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29049 gcc_cv_ld_no_as_needed_option='--pop-state'
29050 fi
29051 fi
29052 elif test x$gcc_cv_ld != x; then
29053 # Check if linker supports --as-needed and --no-as-needed options
29054 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
29055 gcc_cv_ld_as_needed=yes
29056 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
29057 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
29058 && echo "$ld_ver" | grep GNU > /dev/null \
29059 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
29060 # Use these options only when both ld.bfd and ld.gold support
29061 # --push-state/--pop-state, which unfortunately wasn't added
29062 # at the same time.
29063 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29064 gcc_cv_ld_no_as_needed_option='--pop-state'
29065 fi
29066 fi
29067 case "$target:$gnu_ld" in
29068 *-*-solaris2*:no)
29069 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
29070 # forms.
29071 gcc_cv_ld_as_needed=yes
29072 gcc_cv_ld_as_needed_option="-z ignore"
29073 gcc_cv_ld_no_as_needed_option="-z record"
29074 ;;
29075 esac
29076 fi
29077 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
29078 # dl_iterate_phdr, i.e. since Solaris 11.
29079 case "$target" in
29080 *-*-solaris2.1[1-9]*)
29081 case "$target" in
29082 i?86-*-* | x86_64-*-*)
29083 if echo "$ld_ver" | grep GNU > /dev/null; then
29084 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
29085 gcc_cv_ld_as_needed=no
29086 fi
29087 ;;
29088 esac
29089 ;;
29090 *-*-solaris2*)
29091 gcc_cv_ld_as_needed=no
29092 ;;
29093 esac
29094
29095 fi
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
29097 $as_echo "$gcc_cv_ld_as_needed" >&6; }
29098 if test x"$gcc_cv_ld_as_needed" = xyes; then
29099
29100 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
29101
29102
29103 cat >>confdefs.h <<_ACEOF
29104 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
29105 _ACEOF
29106
29107
29108 cat >>confdefs.h <<_ACEOF
29109 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
29110 _ACEOF
29111
29112 fi
29113
29114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
29115 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
29116 saved_LDFLAGS="$LDFLAGS"
29117 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
29118 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
29119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29120 /* end confdefs.h. */
29121 int main(void) {return 0;}
29122 _ACEOF
29123 if ac_fn_cxx_try_link "$LINENO"; then :
29124 gcc_cv_ld_clearcap=yes; break
29125 else
29126 gcc_cv_ld_clearcap=no
29127 fi
29128 rm -f core conftest.err conftest.$ac_objext \
29129 conftest$ac_exeext conftest.$ac_ext
29130 done
29131 LDFLAGS="$saved_LDFLAGS"
29132 if test "x$gcc_cv_ld_clearcap" = xyes; then
29133
29134 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29135
29136 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29137
29138 fi
29139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29140 $as_echo "$gcc_cv_ld_clearcap" >&6; }
29141
29142 case "$target" in
29143 powerpc*-*-*)
29144 case "$target" in
29145 *le-*-linux*)
29146 emul_name="-melf32lppc"
29147 ;;
29148 *)
29149 emul_name="-melf32ppc"
29150 ;;
29151 esac
29152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29153 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29154 if ${gcc_cv_ld_ppc_attr+:} false; then :
29155 $as_echo_n "(cached) " >&6
29156 else
29157 gcc_cv_ld_ppc_attr=no
29158 if test x"$ld_is_gold" = xyes; then
29159 gcc_cv_ld_ppc_attr=yes
29160 elif test $in_tree_ld = yes ; then
29161 if test "$gcc_cv_gld_major_version" -eq 2 \
29162 -a "$gcc_cv_gld_minor_version" -ge 28 \
29163 -o "$gcc_cv_gld_major_version" -gt 2; then
29164 gcc_cv_ld_ppc_attr=yes
29165 fi
29166 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29167 # check that merging the long double .gnu_attribute doesn't warn
29168 cat > conftest1.s <<EOF
29169 .gnu_attribute 4,1
29170 EOF
29171 cat > conftest2.s <<EOF
29172 .gnu_attribute 4,9
29173 EOF
29174 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29175 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29176 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
29177 && test ! -s conftest.err; then
29178 gcc_cv_ld_ppc_attr=yes
29179 fi
29180 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29181 fi
29182
29183 fi
29184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29185 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29186 if test x$gcc_cv_ld_ppc_attr = xyes; then
29187
29188 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29189
29190 fi
29191 ;;
29192 esac
29193
29194 case "$target:$tm_file" in
29195 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
29196 case "$target" in
29197 *le-*-linux*)
29198 emul_name="-melf64lppc"
29199 ;;
29200 *-*-linux*)
29201 emul_name="-melf64ppc"
29202 ;;
29203 *-*-freebsd*)
29204 emul_name="-melf64ppc_fbsd"
29205 ;;
29206 esac
29207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29208 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29209 if ${gcc_cv_ld_no_dot_syms+:} false; then :
29210 $as_echo_n "(cached) " >&6
29211 else
29212 gcc_cv_ld_no_dot_syms=no
29213 if test x"$ld_is_gold" = xyes; then
29214 gcc_cv_ld_no_dot_syms=yes
29215 elif test $in_tree_ld = yes ; then
29216 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
29217 gcc_cv_ld_no_dot_syms=yes
29218 fi
29219 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29220 cat > conftest1.s <<EOF
29221 .text
29222 bl .foo
29223 EOF
29224 cat > conftest2.s <<EOF
29225 .section ".opd","aw"
29226 .align 3
29227 .globl foo
29228 .type foo,@function
29229 foo:
29230 .quad .LEfoo,.TOC.@tocbase,0
29231 .text
29232 .LEfoo:
29233 blr
29234 .size foo,.-.LEfoo
29235 EOF
29236 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29237 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29238 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
29239 gcc_cv_ld_no_dot_syms=yes
29240 fi
29241 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29242 fi
29243
29244 fi
29245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29246 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29247 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
29248
29249 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29250
29251 fi
29252
29253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29254 $as_echo_n "checking linker large toc support... " >&6; }
29255 if ${gcc_cv_ld_large_toc+:} false; then :
29256 $as_echo_n "(cached) " >&6
29257 else
29258 gcc_cv_ld_large_toc=no
29259 if test x"$ld_is_gold" = xyes; then
29260 gcc_cv_ld_large_toc=yes
29261 elif test $in_tree_ld = yes ; then
29262 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
29263 gcc_cv_ld_large_toc=yes
29264 fi
29265 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29266 cat > conftest.s <<EOF
29267 .section ".tbss","awT",@nobits
29268 .align 3
29269 ie0: .space 8
29270 .global _start
29271 .text
29272 _start:
29273 addis 9,13,ie0@got@tprel@ha
29274 ld 9,ie0@got@tprel@l(9)
29275 EOF
29276 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29277 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
29278 gcc_cv_ld_large_toc=yes
29279 fi
29280 rm -f conftest conftest.o conftest.s
29281 fi
29282
29283 fi
29284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29285 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29286 if test x"$gcc_cv_ld_large_toc" = xyes; then
29287
29288 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29289
29290 fi
29291
29292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29293 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29294 if ${gcc_cv_ld_toc_align+:} false; then :
29295 $as_echo_n "(cached) " >&6
29296 else
29297 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
29298 cat > conftest.s <<EOF
29299 .global _start
29300 .text
29301 _start:
29302 addis 9,2,x@got@ha
29303 .section .data.rel.ro,"aw",@progbits
29304 .p2align 16
29305 .space 32768
29306 x: .quad .TOC.
29307 EOF
29308 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29309 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
29310 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)) }'`
29311 fi
29312 rm -f conftest conftest.o conftest.s
29313 fi
29314
29315 fi
29316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29317 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29318 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29319
29320 cat >>confdefs.h <<_ACEOF
29321 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29322 _ACEOF
29323
29324 fi
29325 ;;
29326 esac
29327
29328 case "$target" in
29329 *-*-aix*)
29330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29331 $as_echo_n "checking linker large toc support... " >&6; }
29332 if ${gcc_cv_ld_large_toc+:} false; then :
29333 $as_echo_n "(cached) " >&6
29334 else
29335 gcc_cv_ld_large_toc=no
29336 if test x$gcc_cv_as != x ; then
29337 cat > conftest.s <<EOF
29338 .toc
29339 LC..1:
29340 .tc a[TC],a[RW]
29341 .extern a[RW]
29342 .csect .text[PR]
29343 .largetoctest:
29344 addis 9,LC..1@u(2)
29345 ld 3,LC..1@l(9)
29346 EOF
29347 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29348 gcc_cv_ld_large_toc=yes
29349 fi
29350 rm -f conftest conftest.o conftest.s
29351 fi
29352
29353 fi
29354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29355 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29356 if test x"$gcc_cv_ld_large_toc" = xyes; then
29357
29358 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29359
29360 fi
29361 ;;
29362 esac
29363
29364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29365 $as_echo_n "checking linker --build-id support... " >&6; }
29366 if ${gcc_cv_ld_buildid+:} false; then :
29367 $as_echo_n "(cached) " >&6
29368 else
29369 gcc_cv_ld_buildid=no
29370 if test $in_tree_ld = yes ; then
29371 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29372 "$gcc_cv_gld_minor_version" -ge 18 -o \
29373 "$gcc_cv_gld_major_version" -gt 2 \
29374 && test $in_tree_ld_is_elf = yes; then
29375 gcc_cv_ld_buildid=yes
29376 fi
29377 elif test x$gcc_cv_ld != x; then
29378 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29379 gcc_cv_ld_buildid=yes
29380 fi
29381 fi
29382 fi
29383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29384 $as_echo "$gcc_cv_ld_buildid" >&6; }
29385 if test x"$gcc_cv_ld_buildid" = xyes; then
29386
29387 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29388
29389 fi
29390
29391 # Check whether --enable-linker-build-id was given.
29392 if test "${enable_linker_build_id+set}" = set; then :
29393 enableval=$enable_linker_build_id;
29394 else
29395 enable_linker_build_id=no
29396 fi
29397
29398
29399 if test x"$enable_linker_build_id" = xyes; then
29400 if test x"$gcc_cv_ld_buildid" = xyes; then
29401
29402 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29403
29404 else
29405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29406 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29407 fi
29408 fi
29409
29410 # In binutils 2.21, GNU ld gained support for new emulations fully
29411 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29413 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29414 if ${gcc_cv_ld_sol2_emulation+:} false; then :
29415 $as_echo_n "(cached) " >&6
29416 else
29417 gcc_cv_ld_sol2_emulation=no
29418 if test $in_tree_ld = yes ; then
29419 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29420 "$gcc_cv_gld_minor_version" -ge 21 -o \
29421 "$gcc_cv_gld_major_version" -gt 2 \
29422 && test $in_tree_ld_is_elf = yes; then
29423 gcc_cv_ld_sol2_emulation=yes
29424 fi
29425 elif test x$gcc_cv_ld != x; then
29426 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29427 grep _sol2 > /dev/null; then
29428 gcc_cv_ld_sol2_emulation=yes
29429 fi
29430 fi
29431 fi
29432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29433 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29434 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29435
29436 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29437
29438 fi
29439
29440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29441 $as_echo_n "checking linker --sysroot support... " >&6; }
29442 if ${gcc_cv_ld_sysroot+:} false; then :
29443 $as_echo_n "(cached) " >&6
29444 else
29445 gcc_cv_ld_sysroot=no
29446 if test $in_tree_ld = yes ; then
29447 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
29448 gcc_cv_ld_sysroot=yes
29449 fi
29450 elif test x$gcc_cv_ld != x; then
29451 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29452 gcc_cv_ld_sysroot=yes
29453 fi
29454 fi
29455 fi
29456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29457 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29458 if test x"$gcc_cv_ld_sysroot" = xyes; then
29459
29460 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29461
29462 fi
29463
29464 case $target in
29465 *-*-solaris2*)
29466 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29468 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29469 if ${gcc_cv_solaris_crts+:} false; then :
29470 $as_echo_n "(cached) " >&6
29471 else
29472 gcc_cv_solaris_crts=no
29473 if test x$host != x$target; then
29474 if test "x$with_sysroot" = xyes; then
29475 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29476 else
29477 target_sysroot="${with_sysroot}"
29478 fi
29479 fi
29480 target_libdir="$target_sysroot/usr/lib"
29481 # At the time they were added, gcrt1.o became a symlink for backwards
29482 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29483 case $target in
29484 i?86-*-solaris2* | x86_64-*-solaris2*)
29485 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29486 ;;
29487 sparc*-*-solaris2*)
29488 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29489 ;;
29490 esac
29491 fi
29492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29493 $as_echo "$gcc_cv_solaris_crts" >&6; }
29494 ;;
29495 esac
29496 if test x$gcc_cv_solaris_crts = xyes; then
29497
29498 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29499
29500 fi
29501
29502 # Check whether --enable-libssp was given.
29503 if test "${enable_libssp+set}" = set; then :
29504 enableval=$enable_libssp; case "${enableval}" in
29505 yes|no)
29506 ;;
29507 *)
29508 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
29509 ;;
29510 esac
29511 fi
29512
29513
29514 # Test for stack protector support in target C library.
29515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29516 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29517 if ${gcc_cv_libc_provides_ssp+:} false; then :
29518 $as_echo_n "(cached) " >&6
29519 else
29520 gcc_cv_libc_provides_ssp=no
29521 if test "x$enable_libssp" = "xno"; then
29522 gcc_cv_libc_provides_ssp=yes
29523 elif test "x$enable_libssp" = "xyes"; then
29524 gcc_cv_libc_provides_ssp=no
29525 else
29526 case "$target" in
29527 *-*-musl*)
29528 # All versions of musl provide stack protector
29529 gcc_cv_libc_provides_ssp=yes;;
29530 *-*-linux* | *-*-kfreebsd*-gnu)
29531 # glibc 2.4 and later provides __stack_chk_fail and
29532 # either __stack_chk_guard, or TLS access to stack guard canary.
29533
29534 if test $glibc_version_major -gt 2 \
29535 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29536 gcc_cv_libc_provides_ssp=yes
29537 else
29538
29539 if test -f $target_header_dir/features.h \
29540 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29541 $target_header_dir/features.h > /dev/null; then
29542 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29543 $target_header_dir/features.h > /dev/null && \
29544 test -f $target_header_dir/bits/uClibc_config.h && \
29545 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29546 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29547 gcc_cv_libc_provides_ssp=yes
29548 fi
29549 # all versions of Bionic support stack protector
29550 elif test -f $target_header_dir/sys/cdefs.h \
29551 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29552 $target_header_dir/sys/cdefs.h > /dev/null; then
29553 gcc_cv_libc_provides_ssp=yes
29554 fi
29555 fi
29556 ;;
29557 *-*-gnu*)
29558 # Avoid complicated tests (see
29559 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29560 # simply assert that glibc does provide this, which is true for all
29561 # realistically usable GNU/Hurd configurations.
29562 # All supported versions of musl provide it as well
29563 gcc_cv_libc_provides_ssp=yes;;
29564 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29565 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29566 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
29567 gcc_cv_libc_provides_ssp=yes
29568 else
29569 echo "no __stack_chk_fail on this target"
29570 fi
29571
29572 ;;
29573 *) gcc_cv_libc_provides_ssp=no ;;
29574 esac
29575 fi
29576 fi
29577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29578 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29579
29580 if test x$gcc_cv_libc_provides_ssp = xyes; then
29581
29582 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29583
29584 fi
29585
29586 # Check whether --enable-default-ssp was given.
29587 # Check whether --enable-default-ssp was given.
29588 if test "${enable_default_ssp+set}" = set; then :
29589 enableval=$enable_default_ssp;
29590 if test x$gcc_cv_libc_provides_ssp = xyes; then
29591 case "$target" in
29592 ia64*-*-*) enable_default_ssp=no ;;
29593 *) enable_default_ssp=$enableval ;;
29594 esac
29595 else
29596 enable_default_ssp=no
29597 fi
29598 else
29599 enable_default_ssp=no
29600 fi
29601
29602 if test x$enable_default_ssp = xyes ; then
29603
29604 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29605
29606 fi
29607
29608
29609 # Test for <sys/sdt.h> on the target.
29610
29611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29612 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29613 have_sys_sdt_h=no
29614 if test -f $target_header_dir/sys/sdt.h; then
29615 have_sys_sdt_h=yes
29616
29617 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29618
29619 fi
29620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29621 $as_echo "$have_sys_sdt_h" >&6; }
29622
29623 # Check if TFmode long double should be used by default or not.
29624 # Some glibc targets used DFmode long double, but with glibc 2.4
29625 # and later they can use TFmode.
29626 case "$target" in
29627 powerpc*-*-linux* | \
29628 sparc*-*-linux* | \
29629 s390*-*-linux* | \
29630 alpha*-*-linux*)
29631
29632 # Check whether --with-long-double-128 was given.
29633 if test "${with_long_double_128+set}" = set; then :
29634 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29635 else
29636
29637 if test $glibc_version_major -gt 2 \
29638 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29639 gcc_cv_target_ldbl128=yes
29640 else
29641
29642 gcc_cv_target_ldbl128=no
29643 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29644 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29645 && gcc_cv_target_ldbl128=yes
29646
29647 fi
29648 fi
29649
29650 ;;
29651 esac
29652 if test x$gcc_cv_target_ldbl128 = xyes; then
29653
29654 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29655
29656 fi
29657
29658 # Check if TFmode long double target should use the IBM extended double or IEEE
29659 # 128-bit floating point formats if long doubles are 128-bits long. The long
29660 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29661 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29662 # libgcc.
29663
29664 # Check whether --with-long-double-format was given.
29665 if test "${with_long_double_format+set}" = set; then :
29666 withval=$with_long_double_format;
29667 case "$target:$with_long_double_format" in
29668 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29669 :
29670 ;;
29671 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29672 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29673 case "$with_cpu" in
29674 power7 | power8 | power9 | power1*)
29675 :
29676 ;;
29677 *)
29678 as_fn_error $? "Configuration option --with-long-double-format is only \
29679 supported if the default cpu is power7 or newer" "$LINENO" 5
29680 with_long_double_format=""
29681 ;;
29682 esac
29683 ;;
29684 xpowerpc64*-*-linux*:*)
29685 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29686 with_long_double_format=""
29687 ;;
29688 *)
29689 as_fn_error $? "Configure option --with-long-double-format is only supported \
29690 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29691 with_long_double_format=""
29692 ;;
29693 esac
29694 fi
29695
29696
29697 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29698 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29699 gcc_cv_libc_provides_hwcap_in_tcb=no
29700 case "$target" in
29701 powerpc*-*-linux*)
29702
29703 if test $glibc_version_major -gt 2 \
29704 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29705 gcc_cv_libc_provides_hwcap_in_tcb=yes
29706 fi
29707 ;;
29708 esac
29709 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29710
29711 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29712
29713 fi
29714
29715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29716 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29717 gcc_cv_target_dl_iterate_phdr=unknown
29718 case "$target" in
29719 *-*-solaris2*)
29720 # <link.h> needs both a dl_iterate_phdr declaration and support for
29721 # compilation with largefile support.
29722 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29723 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29724 gcc_cv_target_dl_iterate_phdr=yes
29725 else
29726 gcc_cv_target_dl_iterate_phdr=no
29727 fi
29728 ;;
29729 *-*-dragonfly* | *-*-freebsd*)
29730 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29731 gcc_cv_target_dl_iterate_phdr=yes
29732 else
29733 gcc_cv_target_dl_iterate_phdr=no
29734 fi
29735 ;;
29736 *-linux-musl*)
29737 gcc_cv_target_dl_iterate_phdr=yes
29738 ;;
29739 esac
29740
29741 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29742
29743 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29744
29745 fi
29746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29747 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29748
29749 # We no longer support different GC mechanisms. Emit an error if
29750 # the user configures with --with-gc.
29751
29752 # Check whether --with-gc was given.
29753 if test "${with_gc+set}" = set; then :
29754 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29755 fi
29756
29757
29758 # Libraries to use on the host. This will normally be set by the top
29759 # level Makefile. Here we simply capture the value for our Makefile.
29760 if test -z "${HOST_LIBS+set}"; then
29761 HOST_LIBS=
29762 fi
29763
29764
29765 # Use the system's zlib library.
29766
29767 # Use the system's zlib library.
29768 zlibdir="-L\$(top_builddir)/../zlib"
29769 zlibinc="-I\$(top_srcdir)/../zlib"
29770
29771 # Check whether --with-system-zlib was given.
29772 if test "${with_system_zlib+set}" = set; then :
29773 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29774 zlibdir=
29775 zlibinc=
29776 fi
29777
29778 fi
29779
29780
29781
29782
29783
29784
29785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29786 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29787 # Check whether --enable-maintainer-mode was given.
29788 if test "${enable_maintainer_mode+set}" = set; then :
29789 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29790 else
29791 maintainer_mode=no
29792 fi
29793
29794
29795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29796 $as_echo "$maintainer_mode" >&6; }
29797
29798 if test "$maintainer_mode" = "yes"; then
29799 MAINT=''
29800 else
29801 MAINT='#'
29802 fi
29803
29804
29805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29806 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29807 # Check whether --enable-link-mutex was given.
29808 if test "${enable_link_mutex+set}" = set; then :
29809 enableval=$enable_link_mutex; do_link_mutex=$enableval
29810 else
29811 do_link_mutex=no
29812 fi
29813
29814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29815 $as_echo "$do_link_mutex" >&6; }
29816
29817 if test "$do_link_mutex" = "yes"; then
29818 DO_LINK_MUTEX=true
29819 else
29820 DO_LINK_MUTEX=false
29821 fi
29822
29823
29824 # --------------
29825 # Language hooks
29826 # --------------
29827
29828 # Make empty files to contain the specs and options for each language.
29829 # Then add #include lines to for a compiler that has specs and/or options.
29830
29831 subdirs=
29832 lang_opt_files=
29833 lang_specs_files=
29834 lang_tree_files=
29835 # These (without "all_") are set in each config-lang.in.
29836 # `language' must be a single word so is spelled singularly.
29837 all_languages=
29838 all_compilers=
29839 all_outputs='Makefile'
29840 # List of language makefile fragments.
29841 all_lang_makefrags=
29842 # Additional files for gengtype
29843 all_gtfiles="$target_gtfiles"
29844
29845 # These are the languages that are set in --enable-languages,
29846 # and are available in the GCC tree.
29847 all_selected_languages=
29848
29849 # Add the language fragments.
29850 # Languages are added via two mechanisms. Some information must be
29851 # recorded in makefile variables, these are defined in config-lang.in.
29852 # We accumulate them and plug them into the main Makefile.
29853 # The other mechanism is a set of hooks for each of the main targets
29854 # like `clean', `install', etc.
29855
29856 language_hooks="Make-hooks"
29857
29858 for lang in ${srcdir}/*/config-lang.in
29859 do
29860 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29861
29862 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29863 if test "x$lang_alias" = x
29864 then
29865 echo "$lang doesn't set \$language." 1>&2
29866 exit 1
29867 fi
29868 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29869 subdirs="$subdirs $subdir"
29870
29871 # $gcc_subdir is where the gcc integration files are to be found
29872 # for a language, both for internal compiler purposes (compiler
29873 # sources implementing front-end to GCC tree converters), and for
29874 # build infrastructure purposes (Make-lang.in, etc.)
29875 #
29876 # This will be <subdir> (relative to $srcdir) if a line like
29877 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29878 # is found in <langdir>/config-lang.in, and will remain <langdir>
29879 # otherwise.
29880 #
29881 # Except for the language alias (fetched above), the regular
29882 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29883 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29884 # only this and the language alias.
29885
29886 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29887 if [ "$gcc_subdir" = "" ]; then
29888 gcc_subdir="$subdir"
29889 fi
29890
29891 case ",$enable_languages," in
29892 *,$lang_alias,*)
29893 all_selected_languages="$all_selected_languages $lang_alias"
29894 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29895 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29896 fi
29897 ;;
29898 esac
29899
29900 language=
29901 boot_language=
29902 compilers=
29903 outputs=
29904 gtfiles=
29905 subdir_requires=
29906 . ${srcdir}/$gcc_subdir/config-lang.in
29907 if test "x$language" = x
29908 then
29909 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29910 exit 1
29911 fi
29912
29913 ok=:
29914 case ",$enable_languages," in
29915 *,$lang_alias,*) ;;
29916 *)
29917 for i in $subdir_requires; do
29918 test -f "${srcdir}/$i/config-lang.in" && continue
29919 ok=false
29920 break
29921 done
29922 ;;
29923 esac
29924 $ok || continue
29925
29926 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29927 if test -f $srcdir/$gcc_subdir/lang.opt; then
29928 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29929 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29930 fi
29931 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29932 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29933 fi
29934 all_languages="$all_languages $language"
29935 all_compilers="$all_compilers $compilers"
29936 all_outputs="$all_outputs $outputs"
29937 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29938 case ",$enable_languages," in
29939 *,lto,*)
29940
29941 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29942
29943 enable_lto=yes
29944
29945 ;;
29946 *) ;;
29947 esac
29948 done
29949
29950 check_languages=
29951 for language in $all_selected_languages
29952 do
29953 check_languages="$check_languages check-$language"
29954 done
29955
29956 selftest_languages=
29957 for language in $all_selected_languages
29958 do
29959 selftest_languages="$selftest_languages selftest-$language"
29960 done
29961
29962 # We link each language in with a set of hooks, reached indirectly via
29963 # lang.${target}. Only do so for selected languages.
29964
29965 rm -f Make-hooks
29966 touch Make-hooks
29967 target_list="all.cross start.encap rest.encap tags \
29968 install-common install-man install-info install-pdf install-html dvi \
29969 pdf html uninstall info man srcextra srcman srcinfo \
29970 mostlyclean clean distclean maintainer-clean install-plugin"
29971
29972 for t in $target_list
29973 do
29974 x=
29975 for lang in $all_selected_languages
29976 do
29977 x="$x $lang.$t"
29978 done
29979 echo "lang.$t: $x" >> Make-hooks
29980 done
29981
29982 # --------
29983 # Option include files
29984 # --------
29985
29986 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29987 option_includes="option-includes.mk"
29988
29989
29990 # --------
29991 # UNSORTED
29992 # --------
29993
29994 # Create .gdbinit.
29995
29996 echo "dir ." > .gdbinit
29997 echo "dir ${srcdir}" >> .gdbinit
29998 if test x$gdb_needs_out_file_path = xyes
29999 then
30000 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
30001 fi
30002 if test "x$subdirs" != x; then
30003 for s in $subdirs
30004 do
30005 echo "dir ${srcdir}/$s" >> .gdbinit
30006 done
30007 fi
30008 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
30009 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
30010
30011 # Put a breakpoint on __asan_report_error to help with debugging buffer
30012 # overflow.
30013 case "$CFLAGS" in
30014 *-fsanitize=address*)
30015 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
30016 ;;
30017 esac
30018
30019 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
30020
30021
30022
30023 # Find a directory in which to install a shared libgcc.
30024
30025 # Check whether --enable-version-specific-runtime-libs was given.
30026 if test "${enable_version_specific_runtime_libs+set}" = set; then :
30027 enableval=$enable_version_specific_runtime_libs;
30028 fi
30029
30030
30031 # Substitute configuration variables
30032
30033
30034
30035
30036
30037
30038
30039
30040
30041
30042
30043
30044
30045
30046
30047
30048
30049
30050
30051
30052
30053
30054
30055
30056
30057
30058
30059
30060
30061
30062
30063
30064
30065
30066
30067
30068
30069
30070
30071
30072
30073
30074
30075
30076
30077
30078
30079
30080
30081
30082
30083
30084
30085
30086
30087
30088
30089
30090
30091
30092
30093
30094
30095
30096
30097
30098 # Echo link setup.
30099 if test x${build} = x${host} ; then
30100 if test x${host} = x${target} ; then
30101 echo "Links are now set up to build a native compiler for ${target}." 1>&2
30102 else
30103 echo "Links are now set up to build a cross-compiler" 1>&2
30104 echo " from ${host} to ${target}." 1>&2
30105 fi
30106 else
30107 if test x${host} = x${target} ; then
30108 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
30109 echo " for ${target}." 1>&2
30110 else
30111 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
30112 echo " from ${host} to ${target}." 1>&2
30113 fi
30114 fi
30115
30116
30117
30118
30119
30120
30121 if test "x${ISLLIBS}" != "x" ; then
30122
30123 $as_echo "#define HAVE_isl 1" >>confdefs.h
30124
30125 fi
30126
30127 # Check for plugin support
30128 # Check whether --enable-plugin was given.
30129 if test "${enable_plugin+set}" = set; then :
30130 enableval=$enable_plugin; enable_plugin=$enableval
30131 else
30132 enable_plugin=yes; default_plugin=yes
30133 fi
30134
30135
30136 pluginlibs=
30137 plugin_check=yes
30138
30139 case "${host}" in
30140 *-*-mingw*)
30141 # Since plugin support under MinGW is not as straightforward as on
30142 # other platforms (e.g., we have to link import library, etc), we
30143 # only enable it if explicitly requested.
30144 if test x"$default_plugin" = x"yes"; then
30145 enable_plugin=no
30146 elif test x"$enable_plugin" = x"yes"; then
30147 # Use make's target variable to derive import library name.
30148 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30149 plugin_check=no
30150 fi
30151 ;;
30152 *-*-darwin*)
30153 if test x$build = x$host; then
30154 export_sym_check="nm${exeext} -g"
30155 elif test x$host = x$target; then
30156 export_sym_check="$gcc_cv_nm -g"
30157 else
30158 export_sym_check=
30159 fi
30160 ;;
30161 *)
30162 if test x$build = x$host; then
30163 export_sym_check="objdump${exeext} -T"
30164 elif test x$host = x$target; then
30165 export_sym_check="$gcc_cv_objdump -T"
30166 else
30167 export_sym_check=
30168 fi
30169 ;;
30170 esac
30171
30172 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
30173
30174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30175 $as_echo_n "checking for exported symbols... " >&6; }
30176 if test "x$export_sym_check" != x; then
30177 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30178 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30179 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30180 : # No need to use a flag
30181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30182 $as_echo "yes" >&6; }
30183 else
30184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30185 $as_echo "yes" >&6; }
30186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30187 $as_echo_n "checking for -rdynamic... " >&6; }
30188 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30189 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30190 plugin_rdynamic=yes
30191 pluginlibs="-rdynamic"
30192 else
30193 plugin_rdynamic=no
30194 enable_plugin=no
30195 fi
30196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30197 $as_echo "$plugin_rdynamic" >&6; }
30198 fi
30199 else
30200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30201 $as_echo "unable to check" >&6; }
30202 fi
30203
30204 # Check -ldl
30205 saved_LIBS="$LIBS"
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30207 $as_echo_n "checking for library containing dlopen... " >&6; }
30208 if ${ac_cv_search_dlopen+:} false; then :
30209 $as_echo_n "(cached) " >&6
30210 else
30211 ac_func_search_save_LIBS=$LIBS
30212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30213 /* end confdefs.h. */
30214
30215 /* Override any GCC internal prototype to avoid an error.
30216 Use char because int might match the return type of a GCC
30217 builtin and then its argument prototype would still apply. */
30218 #ifdef __cplusplus
30219 extern "C"
30220 #endif
30221 char dlopen ();
30222 int
30223 main ()
30224 {
30225 return dlopen ();
30226 ;
30227 return 0;
30228 }
30229 _ACEOF
30230 for ac_lib in '' dl; do
30231 if test -z "$ac_lib"; then
30232 ac_res="none required"
30233 else
30234 ac_res=-l$ac_lib
30235 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30236 fi
30237 if ac_fn_cxx_try_link "$LINENO"; then :
30238 ac_cv_search_dlopen=$ac_res
30239 fi
30240 rm -f core conftest.err conftest.$ac_objext \
30241 conftest$ac_exeext
30242 if ${ac_cv_search_dlopen+:} false; then :
30243 break
30244 fi
30245 done
30246 if ${ac_cv_search_dlopen+:} false; then :
30247
30248 else
30249 ac_cv_search_dlopen=no
30250 fi
30251 rm conftest.$ac_ext
30252 LIBS=$ac_func_search_save_LIBS
30253 fi
30254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30255 $as_echo "$ac_cv_search_dlopen" >&6; }
30256 ac_res=$ac_cv_search_dlopen
30257 if test "$ac_res" != no; then :
30258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30259
30260 fi
30261
30262 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
30263 pluginlibs="$pluginlibs -ldl"
30264 fi
30265 LIBS="$saved_LIBS"
30266
30267 # Check that we can build shared objects with -fPIC -shared
30268 saved_LDFLAGS="$LDFLAGS"
30269 saved_CFLAGS="$CFLAGS"
30270 case "${host}" in
30271 *-*-darwin*)
30272 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30273 CFLAGS="$CFLAGS -fPIC"
30274 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
30275 ;;
30276 *)
30277 CFLAGS="$CFLAGS -fPIC"
30278 LDFLAGS="$LDFLAGS -fPIC -shared"
30279 ;;
30280 esac
30281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30282 $as_echo_n "checking for -fPIC -shared... " >&6; }
30283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30284 /* end confdefs.h. */
30285 extern int X;
30286 int
30287 main ()
30288 {
30289 return X == 0;
30290 ;
30291 return 0;
30292 }
30293 _ACEOF
30294 if ac_fn_cxx_try_link "$LINENO"; then :
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30296 $as_echo "yes" >&6; }; have_pic_shared=yes
30297 else
30298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30299 $as_echo "no" >&6; }; have_pic_shared=no
30300 fi
30301 rm -f core conftest.err conftest.$ac_objext \
30302 conftest$ac_exeext conftest.$ac_ext
30303 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
30304 pluginlibs=
30305 enable_plugin=no
30306 fi
30307 LDFLAGS="$saved_LDFLAGS"
30308 CFLAGS="$saved_CFLAGS"
30309
30310 # If plugin support had been requested but not available, fail.
30311 if test x"$enable_plugin" = x"no" ; then
30312 if test x"$default_plugin" != x"yes"; then
30313 as_fn_error $? "
30314 Building GCC with plugin support requires a host that supports
30315 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30316 fi
30317 fi
30318 fi
30319
30320
30321
30322 if test x"$enable_plugin" = x"yes"; then
30323
30324 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30325
30326 fi
30327
30328
30329 # Enable --enable-host-shared
30330 # Check whether --enable-host-shared was given.
30331 if test "${enable_host_shared+set}" = set; then :
30332 enableval=$enable_host_shared; PICFLAG=-fPIC
30333 else
30334 PICFLAG=
30335 fi
30336
30337
30338
30339
30340
30341 # Check whether --enable-libquadmath-support was given.
30342 if test "${enable_libquadmath_support+set}" = set; then :
30343 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30344 else
30345 ENABLE_LIBQUADMATH_SUPPORT=yes
30346 fi
30347
30348 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30349
30350 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30351
30352 fi
30353
30354
30355 # Specify what hash style to use by default.
30356
30357 # Check whether --with-linker-hash-style was given.
30358 if test "${with_linker_hash_style+set}" = set; then :
30359 withval=$with_linker_hash_style; case x"$withval" in
30360 xsysv)
30361 LINKER_HASH_STYLE=sysv
30362 ;;
30363 xgnu)
30364 LINKER_HASH_STYLE=gnu
30365 ;;
30366 xboth)
30367 LINKER_HASH_STYLE=both
30368 ;;
30369 *)
30370 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30371 ;;
30372 esac
30373 else
30374 LINKER_HASH_STYLE=''
30375 fi
30376
30377 if test x"${LINKER_HASH_STYLE}" != x; then
30378
30379 cat >>confdefs.h <<_ACEOF
30380 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30381 _ACEOF
30382
30383 fi
30384
30385 # Specify what should be the default of -fdiagnostics-color option.
30386
30387 # Check whether --with-diagnostics-color was given.
30388 if test "${with_diagnostics_color+set}" = set; then :
30389 withval=$with_diagnostics_color; case x"$withval" in
30390 xnever)
30391 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30392 ;;
30393 xauto)
30394 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30395 ;;
30396 xauto-if-env)
30397 DIAGNOSTICS_COLOR_DEFAULT=-1
30398 ;;
30399 xalways)
30400 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30401 ;;
30402 *)
30403 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30404 ;;
30405 esac
30406 else
30407 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30408 fi
30409
30410
30411 cat >>confdefs.h <<_ACEOF
30412 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30413 _ACEOF
30414
30415
30416 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30417 # of jit/jit-playback.c.
30418 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30419 echo "gcc_driver_version: ${gcc_driver_version}"
30420 cat > gcc-driver-name.h <<EOF
30421 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30422 EOF
30423
30424 # Check whether --enable-default-pie was given.
30425 # Check whether --enable-default-pie was given.
30426 if test "${enable_default_pie+set}" = set; then :
30427 enableval=$enable_default_pie; enable_default_pie=$enableval
30428 else
30429 enable_default_pie=no
30430 fi
30431
30432 if test x$enable_default_pie = xyes ; then
30433
30434 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30435
30436 fi
30437
30438
30439 # Check if -fno-PIE works.
30440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30441 $as_echo_n "checking for -fno-PIE option... " >&6; }
30442 if ${gcc_cv_c_no_fpie+:} false; then :
30443 $as_echo_n "(cached) " >&6
30444 else
30445 saved_CXXFLAGS="$CXXFLAGS"
30446 CXXFLAGS="$CXXFLAGS -fno-PIE"
30447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30448 /* end confdefs.h. */
30449 int main(void) {return 0;}
30450 _ACEOF
30451 if ac_fn_cxx_try_compile "$LINENO"; then :
30452 gcc_cv_c_no_fpie=yes
30453 else
30454 gcc_cv_c_no_fpie=no
30455 fi
30456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30457 CXXFLAGS="$saved_CXXFLAGS"
30458 fi
30459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30460 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30461 if test "$gcc_cv_c_no_fpie" = "yes"; then
30462 NO_PIE_CFLAGS="-fno-PIE"
30463 fi
30464
30465
30466 # Check if -no-pie works.
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30468 $as_echo_n "checking for -no-pie option... " >&6; }
30469 if ${gcc_cv_no_pie+:} false; then :
30470 $as_echo_n "(cached) " >&6
30471 else
30472 saved_LDFLAGS="$LDFLAGS"
30473 LDFLAGS="$LDFLAGS -no-pie"
30474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30475 /* end confdefs.h. */
30476 int main(void) {return 0;}
30477 _ACEOF
30478 if ac_fn_cxx_try_link "$LINENO"; then :
30479 gcc_cv_no_pie=yes
30480 else
30481 gcc_cv_no_pie=no
30482 fi
30483 rm -f core conftest.err conftest.$ac_objext \
30484 conftest$ac_exeext conftest.$ac_ext
30485 LDFLAGS="$saved_LDFLAGS"
30486 fi
30487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30488 $as_echo "$gcc_cv_no_pie" >&6; }
30489 if test "$gcc_cv_no_pie" = "yes"; then
30490 NO_PIE_FLAG="-no-pie"
30491 fi
30492
30493
30494 # Check linker supports '-z bndplt'
30495 ld_bndplt_support=no
30496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30497 $as_echo_n "checking linker -z bndplt option... " >&6; }
30498 if test x"$ld_is_gold" = xno; then
30499 if test $in_tree_ld = yes ; then
30500 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
30501 ld_bndplt_support=yes
30502 fi
30503 elif test x$gcc_cv_ld != x; then
30504 # Check if linker supports -a bndplt option
30505 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30506 ld_bndplt_support=yes
30507 fi
30508 fi
30509 fi
30510 if test x"$ld_bndplt_support" = xyes; then
30511
30512 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30513
30514 fi
30515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30516 $as_echo "$ld_bndplt_support" >&6; }
30517
30518 # Check linker supports '--push-state'/'--pop-state'
30519 ld_pushpopstate_support=no
30520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30521 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30522 if test x"$ld_is_gold" = xno; then
30523 if test $in_tree_ld = yes ; then
30524 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
30525 ld_pushpopstate_support=yes
30526 fi
30527 elif test x$gcc_cv_ld != x; then
30528 # Check if linker supports --push-state/--pop-state options
30529 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30530 ld_pushpopstate_support=yes
30531 fi
30532 fi
30533 fi
30534 if test x"$ld_pushpopstate_support" = xyes; then
30535
30536 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30537
30538 fi
30539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30540 $as_echo "$ld_pushpopstate_support" >&6; }
30541
30542 # Configure the subdirectories
30543 # AC_CONFIG_SUBDIRS($subdirs)
30544
30545 # Create the Makefile
30546 # and configure language subdirectories
30547 ac_config_files="$ac_config_files $all_outputs"
30548
30549
30550 ac_config_commands="$ac_config_commands default"
30551
30552 cat >confcache <<\_ACEOF
30553 # This file is a shell script that caches the results of configure
30554 # tests run on this system so they can be shared between configure
30555 # scripts and configure runs, see configure's option --config-cache.
30556 # It is not useful on other systems. If it contains results you don't
30557 # want to keep, you may remove or edit it.
30558 #
30559 # config.status only pays attention to the cache file if you give it
30560 # the --recheck option to rerun configure.
30561 #
30562 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30563 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30564 # following values.
30565
30566 _ACEOF
30567
30568 # The following way of writing the cache mishandles newlines in values,
30569 # but we know of no workaround that is simple, portable, and efficient.
30570 # So, we kill variables containing newlines.
30571 # Ultrix sh set writes to stderr and can't be redirected directly,
30572 # and sets the high bit in the cache file unless we assign to the vars.
30573 (
30574 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30575 eval ac_val=\$$ac_var
30576 case $ac_val in #(
30577 *${as_nl}*)
30578 case $ac_var in #(
30579 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30580 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30581 esac
30582 case $ac_var in #(
30583 _ | IFS | as_nl) ;; #(
30584 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30585 *) { eval $ac_var=; unset $ac_var;} ;;
30586 esac ;;
30587 esac
30588 done
30589
30590 (set) 2>&1 |
30591 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30592 *${as_nl}ac_space=\ *)
30593 # `set' does not quote correctly, so add quotes: double-quote
30594 # substitution turns \\\\ into \\, and sed turns \\ into \.
30595 sed -n \
30596 "s/'/'\\\\''/g;
30597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30598 ;; #(
30599 *)
30600 # `set' quotes correctly as required by POSIX, so do not add quotes.
30601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30602 ;;
30603 esac |
30604 sort
30605 ) |
30606 sed '
30607 /^ac_cv_env_/b end
30608 t clear
30609 :clear
30610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30611 t end
30612 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30613 :end' >>confcache
30614 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30615 if test -w "$cache_file"; then
30616 if test "x$cache_file" != "x/dev/null"; then
30617 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30618 $as_echo "$as_me: updating cache $cache_file" >&6;}
30619 if test ! -f "$cache_file" || test -h "$cache_file"; then
30620 cat confcache >"$cache_file"
30621 else
30622 case $cache_file in #(
30623 */* | ?:*)
30624 mv -f confcache "$cache_file"$$ &&
30625 mv -f "$cache_file"$$ "$cache_file" ;; #(
30626 *)
30627 mv -f confcache "$cache_file" ;;
30628 esac
30629 fi
30630 fi
30631 else
30632 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30633 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30634 fi
30635 fi
30636 rm -f confcache
30637
30638 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30639 # Let make expand exec_prefix.
30640 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30641
30642 DEFS=-DHAVE_CONFIG_H
30643
30644 ac_libobjs=
30645 ac_ltlibobjs=
30646 U=
30647 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30648 # 1. Remove the extension, and $U if already installed.
30649 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30650 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30651 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30652 # will be set to the directory where LIBOBJS objects are built.
30653 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30654 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30655 done
30656 LIBOBJS=$ac_libobjs
30657
30658 LTLIBOBJS=$ac_ltlibobjs
30659
30660
30661
30662
30663 : "${CONFIG_STATUS=./config.status}"
30664 ac_write_fail=0
30665 ac_clean_files_save=$ac_clean_files
30666 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30667 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30668 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30669 as_write_fail=0
30670 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30671 #! $SHELL
30672 # Generated by $as_me.
30673 # Run this file to recreate the current configuration.
30674 # Compiler output produced by configure, useful for debugging
30675 # configure, is in config.log if it exists.
30676
30677 debug=false
30678 ac_cs_recheck=false
30679 ac_cs_silent=false
30680
30681 SHELL=\${CONFIG_SHELL-$SHELL}
30682 export SHELL
30683 _ASEOF
30684 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30685 ## -------------------- ##
30686 ## M4sh Initialization. ##
30687 ## -------------------- ##
30688
30689 # Be more Bourne compatible
30690 DUALCASE=1; export DUALCASE # for MKS sh
30691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30692 emulate sh
30693 NULLCMD=:
30694 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30695 # is contrary to our usage. Disable this feature.
30696 alias -g '${1+"$@"}'='"$@"'
30697 setopt NO_GLOB_SUBST
30698 else
30699 case `(set -o) 2>/dev/null` in #(
30700 *posix*) :
30701 set -o posix ;; #(
30702 *) :
30703 ;;
30704 esac
30705 fi
30706
30707
30708 as_nl='
30709 '
30710 export as_nl
30711 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30712 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30713 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30714 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30715 # Prefer a ksh shell builtin over an external printf program on Solaris,
30716 # but without wasting forks for bash or zsh.
30717 if test -z "$BASH_VERSION$ZSH_VERSION" \
30718 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30719 as_echo='print -r --'
30720 as_echo_n='print -rn --'
30721 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30722 as_echo='printf %s\n'
30723 as_echo_n='printf %s'
30724 else
30725 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30726 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30727 as_echo_n='/usr/ucb/echo -n'
30728 else
30729 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30730 as_echo_n_body='eval
30731 arg=$1;
30732 case $arg in #(
30733 *"$as_nl"*)
30734 expr "X$arg" : "X\\(.*\\)$as_nl";
30735 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30736 esac;
30737 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30738 '
30739 export as_echo_n_body
30740 as_echo_n='sh -c $as_echo_n_body as_echo'
30741 fi
30742 export as_echo_body
30743 as_echo='sh -c $as_echo_body as_echo'
30744 fi
30745
30746 # The user is always right.
30747 if test "${PATH_SEPARATOR+set}" != set; then
30748 PATH_SEPARATOR=:
30749 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30750 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30751 PATH_SEPARATOR=';'
30752 }
30753 fi
30754
30755
30756 # IFS
30757 # We need space, tab and new line, in precisely that order. Quoting is
30758 # there to prevent editors from complaining about space-tab.
30759 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30760 # splitting by setting IFS to empty value.)
30761 IFS=" "" $as_nl"
30762
30763 # Find who we are. Look in the path if we contain no directory separator.
30764 as_myself=
30765 case $0 in #((
30766 *[\\/]* ) as_myself=$0 ;;
30767 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30768 for as_dir in $PATH
30769 do
30770 IFS=$as_save_IFS
30771 test -z "$as_dir" && as_dir=.
30772 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30773 done
30774 IFS=$as_save_IFS
30775
30776 ;;
30777 esac
30778 # We did not find ourselves, most probably we were run as `sh COMMAND'
30779 # in which case we are not to be found in the path.
30780 if test "x$as_myself" = x; then
30781 as_myself=$0
30782 fi
30783 if test ! -f "$as_myself"; then
30784 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30785 exit 1
30786 fi
30787
30788 # Unset variables that we do not need and which cause bugs (e.g. in
30789 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30790 # suppresses any "Segmentation fault" message there. '((' could
30791 # trigger a bug in pdksh 5.2.14.
30792 for as_var in BASH_ENV ENV MAIL MAILPATH
30793 do eval test x\${$as_var+set} = xset \
30794 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30795 done
30796 PS1='$ '
30797 PS2='> '
30798 PS4='+ '
30799
30800 # NLS nuisances.
30801 LC_ALL=C
30802 export LC_ALL
30803 LANGUAGE=C
30804 export LANGUAGE
30805
30806 # CDPATH.
30807 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30808
30809
30810 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30811 # ----------------------------------------
30812 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30813 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30814 # script with STATUS, using 1 if that was 0.
30815 as_fn_error ()
30816 {
30817 as_status=$1; test $as_status -eq 0 && as_status=1
30818 if test "$4"; then
30819 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30820 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30821 fi
30822 $as_echo "$as_me: error: $2" >&2
30823 as_fn_exit $as_status
30824 } # as_fn_error
30825
30826
30827 # as_fn_set_status STATUS
30828 # -----------------------
30829 # Set $? to STATUS, without forking.
30830 as_fn_set_status ()
30831 {
30832 return $1
30833 } # as_fn_set_status
30834
30835 # as_fn_exit STATUS
30836 # -----------------
30837 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30838 as_fn_exit ()
30839 {
30840 set +e
30841 as_fn_set_status $1
30842 exit $1
30843 } # as_fn_exit
30844
30845 # as_fn_unset VAR
30846 # ---------------
30847 # Portably unset VAR.
30848 as_fn_unset ()
30849 {
30850 { eval $1=; unset $1;}
30851 }
30852 as_unset=as_fn_unset
30853 # as_fn_append VAR VALUE
30854 # ----------------------
30855 # Append the text in VALUE to the end of the definition contained in VAR. Take
30856 # advantage of any shell optimizations that allow amortized linear growth over
30857 # repeated appends, instead of the typical quadratic growth present in naive
30858 # implementations.
30859 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30860 eval 'as_fn_append ()
30861 {
30862 eval $1+=\$2
30863 }'
30864 else
30865 as_fn_append ()
30866 {
30867 eval $1=\$$1\$2
30868 }
30869 fi # as_fn_append
30870
30871 # as_fn_arith ARG...
30872 # ------------------
30873 # Perform arithmetic evaluation on the ARGs, and store the result in the
30874 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30875 # must be portable across $(()) and expr.
30876 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30877 eval 'as_fn_arith ()
30878 {
30879 as_val=$(( $* ))
30880 }'
30881 else
30882 as_fn_arith ()
30883 {
30884 as_val=`expr "$@" || test $? -eq 1`
30885 }
30886 fi # as_fn_arith
30887
30888
30889 if expr a : '\(a\)' >/dev/null 2>&1 &&
30890 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30891 as_expr=expr
30892 else
30893 as_expr=false
30894 fi
30895
30896 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30897 as_basename=basename
30898 else
30899 as_basename=false
30900 fi
30901
30902 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30903 as_dirname=dirname
30904 else
30905 as_dirname=false
30906 fi
30907
30908 as_me=`$as_basename -- "$0" ||
30909 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30910 X"$0" : 'X\(//\)$' \| \
30911 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30912 $as_echo X/"$0" |
30913 sed '/^.*\/\([^/][^/]*\)\/*$/{
30914 s//\1/
30915 q
30916 }
30917 /^X\/\(\/\/\)$/{
30918 s//\1/
30919 q
30920 }
30921 /^X\/\(\/\).*/{
30922 s//\1/
30923 q
30924 }
30925 s/.*/./; q'`
30926
30927 # Avoid depending upon Character Ranges.
30928 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30929 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30930 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30931 as_cr_digits='0123456789'
30932 as_cr_alnum=$as_cr_Letters$as_cr_digits
30933
30934 ECHO_C= ECHO_N= ECHO_T=
30935 case `echo -n x` in #(((((
30936 -n*)
30937 case `echo 'xy\c'` in
30938 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30939 xy) ECHO_C='\c';;
30940 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30941 ECHO_T=' ';;
30942 esac;;
30943 *)
30944 ECHO_N='-n';;
30945 esac
30946
30947 rm -f conf$$ conf$$.exe conf$$.file
30948 if test -d conf$$.dir; then
30949 rm -f conf$$.dir/conf$$.file
30950 else
30951 rm -f conf$$.dir
30952 mkdir conf$$.dir 2>/dev/null
30953 fi
30954 if (echo >conf$$.file) 2>/dev/null; then
30955 if ln -s conf$$.file conf$$ 2>/dev/null; then
30956 as_ln_s='ln -s'
30957 # ... but there are two gotchas:
30958 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30959 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30960 # In both cases, we have to default to `cp -pR'.
30961 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30962 as_ln_s='cp -pR'
30963 elif ln conf$$.file conf$$ 2>/dev/null; then
30964 as_ln_s=ln
30965 else
30966 as_ln_s='cp -pR'
30967 fi
30968 else
30969 as_ln_s='cp -pR'
30970 fi
30971 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30972 rmdir conf$$.dir 2>/dev/null
30973
30974
30975 # as_fn_mkdir_p
30976 # -------------
30977 # Create "$as_dir" as a directory, including parents if necessary.
30978 as_fn_mkdir_p ()
30979 {
30980
30981 case $as_dir in #(
30982 -*) as_dir=./$as_dir;;
30983 esac
30984 test -d "$as_dir" || eval $as_mkdir_p || {
30985 as_dirs=
30986 while :; do
30987 case $as_dir in #(
30988 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30989 *) as_qdir=$as_dir;;
30990 esac
30991 as_dirs="'$as_qdir' $as_dirs"
30992 as_dir=`$as_dirname -- "$as_dir" ||
30993 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30994 X"$as_dir" : 'X\(//\)[^/]' \| \
30995 X"$as_dir" : 'X\(//\)$' \| \
30996 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30997 $as_echo X"$as_dir" |
30998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30999 s//\1/
31000 q
31001 }
31002 /^X\(\/\/\)[^/].*/{
31003 s//\1/
31004 q
31005 }
31006 /^X\(\/\/\)$/{
31007 s//\1/
31008 q
31009 }
31010 /^X\(\/\).*/{
31011 s//\1/
31012 q
31013 }
31014 s/.*/./; q'`
31015 test -d "$as_dir" && break
31016 done
31017 test -z "$as_dirs" || eval "mkdir $as_dirs"
31018 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31019
31020
31021 } # as_fn_mkdir_p
31022 if mkdir -p . 2>/dev/null; then
31023 as_mkdir_p='mkdir -p "$as_dir"'
31024 else
31025 test -d ./-p && rmdir ./-p
31026 as_mkdir_p=false
31027 fi
31028
31029
31030 # as_fn_executable_p FILE
31031 # -----------------------
31032 # Test if FILE is an executable regular file.
31033 as_fn_executable_p ()
31034 {
31035 test -f "$1" && test -x "$1"
31036 } # as_fn_executable_p
31037 as_test_x='test -x'
31038 as_executable_p=as_fn_executable_p
31039
31040 # Sed expression to map a string onto a valid CPP name.
31041 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31042
31043 # Sed expression to map a string onto a valid variable name.
31044 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31045
31046
31047 exec 6>&1
31048 ## ----------------------------------- ##
31049 ## Main body of $CONFIG_STATUS script. ##
31050 ## ----------------------------------- ##
31051 _ASEOF
31052 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31053
31054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31055 # Save the log message, to keep $0 and so on meaningful, and to
31056 # report actual input values of CONFIG_FILES etc. instead of their
31057 # values after options handling.
31058 ac_log="
31059 This file was extended by $as_me, which was
31060 generated by GNU Autoconf 2.69. Invocation command line was
31061
31062 CONFIG_FILES = $CONFIG_FILES
31063 CONFIG_HEADERS = $CONFIG_HEADERS
31064 CONFIG_LINKS = $CONFIG_LINKS
31065 CONFIG_COMMANDS = $CONFIG_COMMANDS
31066 $ $0 $@
31067
31068 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31069 "
31070
31071 _ACEOF
31072
31073 case $ac_config_files in *"
31074 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31075 esac
31076
31077 case $ac_config_headers in *"
31078 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31079 esac
31080
31081
31082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31083 # Files that config.status was made for.
31084 config_files="$ac_config_files"
31085 config_headers="$ac_config_headers"
31086 config_links="$ac_config_links"
31087 config_commands="$ac_config_commands"
31088
31089 _ACEOF
31090
31091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31092 ac_cs_usage="\
31093 \`$as_me' instantiates files and other configuration actions
31094 from templates according to the current configuration. Unless the files
31095 and actions are specified as TAGs, all are instantiated by default.
31096
31097 Usage: $0 [OPTION]... [TAG]...
31098
31099 -h, --help print this help, then exit
31100 -V, --version print version number and configuration settings, then exit
31101 --config print configuration, then exit
31102 -q, --quiet, --silent
31103 do not print progress messages
31104 -d, --debug don't remove temporary files
31105 --recheck update $as_me by reconfiguring in the same conditions
31106 --file=FILE[:TEMPLATE]
31107 instantiate the configuration file FILE
31108 --header=FILE[:TEMPLATE]
31109 instantiate the configuration header FILE
31110
31111 Configuration files:
31112 $config_files
31113
31114 Configuration headers:
31115 $config_headers
31116
31117 Configuration links:
31118 $config_links
31119
31120 Configuration commands:
31121 $config_commands
31122
31123 Report bugs to the package provider."
31124
31125 _ACEOF
31126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31127 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31128 ac_cs_version="\\
31129 config.status
31130 configured by $0, generated by GNU Autoconf 2.69,
31131 with options \\"\$ac_cs_config\\"
31132
31133 Copyright (C) 2012 Free Software Foundation, Inc.
31134 This config.status script is free software; the Free Software Foundation
31135 gives unlimited permission to copy, distribute and modify it."
31136
31137 ac_pwd='$ac_pwd'
31138 srcdir='$srcdir'
31139 AWK='$AWK'
31140 test -n "\$AWK" || AWK=awk
31141 _ACEOF
31142
31143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31144 # The default lists apply if the user does not specify any file.
31145 ac_need_defaults=:
31146 while test $# != 0
31147 do
31148 case $1 in
31149 --*=?*)
31150 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31151 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31152 ac_shift=:
31153 ;;
31154 --*=)
31155 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31156 ac_optarg=
31157 ac_shift=:
31158 ;;
31159 *)
31160 ac_option=$1
31161 ac_optarg=$2
31162 ac_shift=shift
31163 ;;
31164 esac
31165
31166 case $ac_option in
31167 # Handling of the options.
31168 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31169 ac_cs_recheck=: ;;
31170 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31171 $as_echo "$ac_cs_version"; exit ;;
31172 --config | --confi | --conf | --con | --co | --c )
31173 $as_echo "$ac_cs_config"; exit ;;
31174 --debug | --debu | --deb | --de | --d | -d )
31175 debug=: ;;
31176 --file | --fil | --fi | --f )
31177 $ac_shift
31178 case $ac_optarg in
31179 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31180 '') as_fn_error $? "missing file argument" ;;
31181 esac
31182 as_fn_append CONFIG_FILES " '$ac_optarg'"
31183 ac_need_defaults=false;;
31184 --header | --heade | --head | --hea )
31185 $ac_shift
31186 case $ac_optarg in
31187 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31188 esac
31189 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31190 ac_need_defaults=false;;
31191 --he | --h)
31192 # Conflict between --help and --header
31193 as_fn_error $? "ambiguous option: \`$1'
31194 Try \`$0 --help' for more information.";;
31195 --help | --hel | -h )
31196 $as_echo "$ac_cs_usage"; exit ;;
31197 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31198 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31199 ac_cs_silent=: ;;
31200
31201 # This is an error.
31202 -*) as_fn_error $? "unrecognized option: \`$1'
31203 Try \`$0 --help' for more information." ;;
31204
31205 *) as_fn_append ac_config_targets " $1"
31206 ac_need_defaults=false ;;
31207
31208 esac
31209 shift
31210 done
31211
31212 ac_configure_extra_args=
31213
31214 if $ac_cs_silent; then
31215 exec 6>/dev/null
31216 ac_configure_extra_args="$ac_configure_extra_args --silent"
31217 fi
31218
31219 _ACEOF
31220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31221 if \$ac_cs_recheck; then
31222 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31223 shift
31224 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31225 CONFIG_SHELL='$SHELL'
31226 export CONFIG_SHELL
31227 exec "\$@"
31228 fi
31229
31230 _ACEOF
31231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31232 exec 5>>config.log
31233 {
31234 echo
31235 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31236 ## Running $as_me. ##
31237 _ASBOX
31238 $as_echo "$ac_log"
31239 } >&5
31240
31241 _ACEOF
31242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31243 #
31244 # INIT-COMMANDS
31245 #
31246 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31247 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31248 subdirs='$subdirs'
31249
31250 _ACEOF
31251
31252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31253
31254 # Handling of arguments.
31255 for ac_config_target in $ac_config_targets
31256 do
31257 case $ac_config_target in
31258 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
31259 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
31260 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
31261 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
31262 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
31263 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
31264 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
31265 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
31266 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31267
31268 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31269 esac
31270 done
31271
31272
31273 # If the user did not use the arguments to specify the items to instantiate,
31274 # then the envvar interface is used. Set only those that are not.
31275 # We use the long form for the default assignment because of an extremely
31276 # bizarre bug on SunOS 4.1.3.
31277 if $ac_need_defaults; then
31278 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31279 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31280 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31281 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31282 fi
31283
31284 # Have a temporary directory for convenience. Make it in the build tree
31285 # simply because there is no reason against having it here, and in addition,
31286 # creating and moving files from /tmp can sometimes cause problems.
31287 # Hook for its removal unless debugging.
31288 # Note that there is a small window in which the directory will not be cleaned:
31289 # after its creation but before its name has been assigned to `$tmp'.
31290 $debug ||
31291 {
31292 tmp= ac_tmp=
31293 trap 'exit_status=$?
31294 : "${ac_tmp:=$tmp}"
31295 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31296 ' 0
31297 trap 'as_fn_exit 1' 1 2 13 15
31298 }
31299 # Create a (secure) tmp directory for tmp files.
31300
31301 {
31302 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31303 test -d "$tmp"
31304 } ||
31305 {
31306 tmp=./conf$$-$RANDOM
31307 (umask 077 && mkdir "$tmp")
31308 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31309 ac_tmp=$tmp
31310
31311 # Set up the scripts for CONFIG_FILES section.
31312 # No need to generate them if there are no CONFIG_FILES.
31313 # This happens for instance with `./config.status config.h'.
31314 if test -n "$CONFIG_FILES"; then
31315
31316 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31317 ac_cs_awk_getline=:
31318 ac_cs_awk_pipe_init=
31319 ac_cs_awk_read_file='
31320 while ((getline aline < (F[key])) > 0)
31321 print(aline)
31322 close(F[key])'
31323 ac_cs_awk_pipe_fini=
31324 else
31325 ac_cs_awk_getline=false
31326 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31327 ac_cs_awk_read_file='
31328 print "|#_!!_#|"
31329 print "cat " F[key] " &&"
31330 '$ac_cs_awk_pipe_init
31331 # The final `:' finishes the AND list.
31332 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31333 fi
31334 ac_cr=`echo X | tr X '\015'`
31335 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31336 # But we know of no other shell where ac_cr would be empty at this
31337 # point, so we can use a bashism as a fallback.
31338 if test "x$ac_cr" = x; then
31339 eval ac_cr=\$\'\\r\'
31340 fi
31341 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31342 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31343 ac_cs_awk_cr='\\r'
31344 else
31345 ac_cs_awk_cr=$ac_cr
31346 fi
31347
31348 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31349 _ACEOF
31350
31351 # Create commands to substitute file output variables.
31352 {
31353 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31354 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31355 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31356 echo "_ACAWK" &&
31357 echo "_ACEOF"
31358 } >conf$$files.sh &&
31359 . ./conf$$files.sh ||
31360 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31361 rm -f conf$$files.sh
31362
31363 {
31364 echo "cat >conf$$subs.awk <<_ACEOF" &&
31365 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31366 echo "_ACEOF"
31367 } >conf$$subs.sh ||
31368 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31369 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31370 ac_delim='%!_!# '
31371 for ac_last_try in false false false false false :; do
31372 . ./conf$$subs.sh ||
31373 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31374
31375 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31376 if test $ac_delim_n = $ac_delim_num; then
31377 break
31378 elif $ac_last_try; then
31379 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31380 else
31381 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31382 fi
31383 done
31384 rm -f conf$$subs.sh
31385
31386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31387 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31388 _ACEOF
31389 sed -n '
31390 h
31391 s/^/S["/; s/!.*/"]=/
31392 p
31393 g
31394 s/^[^!]*!//
31395 :repl
31396 t repl
31397 s/'"$ac_delim"'$//
31398 t delim
31399 :nl
31400 h
31401 s/\(.\{148\}\)..*/\1/
31402 t more1
31403 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31404 p
31405 n
31406 b repl
31407 :more1
31408 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31409 p
31410 g
31411 s/.\{148\}//
31412 t nl
31413 :delim
31414 h
31415 s/\(.\{148\}\)..*/\1/
31416 t more2
31417 s/["\\]/\\&/g; s/^/"/; s/$/"/
31418 p
31419 b
31420 :more2
31421 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31422 p
31423 g
31424 s/.\{148\}//
31425 t delim
31426 ' <conf$$subs.awk | sed '
31427 /^[^""]/{
31428 N
31429 s/\n//
31430 }
31431 ' >>$CONFIG_STATUS || ac_write_fail=1
31432 rm -f conf$$subs.awk
31433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31434 _ACAWK
31435 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31436 for (key in S) S_is_set[key] = 1
31437 FS = "\a"
31438 \$ac_cs_awk_pipe_init
31439 }
31440 {
31441 line = $ 0
31442 nfields = split(line, field, "@")
31443 substed = 0
31444 len = length(field[1])
31445 for (i = 2; i < nfields; i++) {
31446 key = field[i]
31447 keylen = length(key)
31448 if (S_is_set[key]) {
31449 value = S[key]
31450 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31451 len += length(value) + length(field[++i])
31452 substed = 1
31453 } else
31454 len += 1 + keylen
31455 }
31456 if (nfields == 3 && !substed) {
31457 key = field[2]
31458 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31459 \$ac_cs_awk_read_file
31460 next
31461 }
31462 }
31463 print line
31464 }
31465 \$ac_cs_awk_pipe_fini
31466 _ACAWK
31467 _ACEOF
31468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31469 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31470 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31471 else
31472 cat
31473 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31474 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31475 _ACEOF
31476
31477 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31478 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31479 # trailing colons and then remove the whole line if VPATH becomes empty
31480 # (actually we leave an empty line to preserve line numbers).
31481 if test "x$srcdir" = x.; then
31482 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31483 h
31484 s///
31485 s/^/:/
31486 s/[ ]*$/:/
31487 s/:\$(srcdir):/:/g
31488 s/:\${srcdir}:/:/g
31489 s/:@srcdir@:/:/g
31490 s/^:*//
31491 s/:*$//
31492 x
31493 s/\(=[ ]*\).*/\1/
31494 G
31495 s/\n//
31496 s/^[^=]*=[ ]*$//
31497 }'
31498 fi
31499
31500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31501 fi # test -n "$CONFIG_FILES"
31502
31503 # Set up the scripts for CONFIG_HEADERS section.
31504 # No need to generate them if there are no CONFIG_HEADERS.
31505 # This happens for instance with `./config.status Makefile'.
31506 if test -n "$CONFIG_HEADERS"; then
31507 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31508 BEGIN {
31509 _ACEOF
31510
31511 # Transform confdefs.h into an awk script `defines.awk', embedded as
31512 # here-document in config.status, that substitutes the proper values into
31513 # config.h.in to produce config.h.
31514
31515 # Create a delimiter string that does not exist in confdefs.h, to ease
31516 # handling of long lines.
31517 ac_delim='%!_!# '
31518 for ac_last_try in false false :; do
31519 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31520 if test -z "$ac_tt"; then
31521 break
31522 elif $ac_last_try; then
31523 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31524 else
31525 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31526 fi
31527 done
31528
31529 # For the awk script, D is an array of macro values keyed by name,
31530 # likewise P contains macro parameters if any. Preserve backslash
31531 # newline sequences.
31532
31533 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31534 sed -n '
31535 s/.\{148\}/&'"$ac_delim"'/g
31536 t rset
31537 :rset
31538 s/^[ ]*#[ ]*define[ ][ ]*/ /
31539 t def
31540 d
31541 :def
31542 s/\\$//
31543 t bsnl
31544 s/["\\]/\\&/g
31545 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31546 D["\1"]=" \3"/p
31547 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31548 d
31549 :bsnl
31550 s/["\\]/\\&/g
31551 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31552 D["\1"]=" \3\\\\\\n"\\/p
31553 t cont
31554 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31555 t cont
31556 d
31557 :cont
31558 n
31559 s/.\{148\}/&'"$ac_delim"'/g
31560 t clear
31561 :clear
31562 s/\\$//
31563 t bsnlc
31564 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31565 d
31566 :bsnlc
31567 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31568 b cont
31569 ' <confdefs.h | sed '
31570 s/'"$ac_delim"'/"\\\
31571 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31572
31573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31574 for (key in D) D_is_set[key] = 1
31575 FS = "\a"
31576 }
31577 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31578 line = \$ 0
31579 split(line, arg, " ")
31580 if (arg[1] == "#") {
31581 defundef = arg[2]
31582 mac1 = arg[3]
31583 } else {
31584 defundef = substr(arg[1], 2)
31585 mac1 = arg[2]
31586 }
31587 split(mac1, mac2, "(") #)
31588 macro = mac2[1]
31589 prefix = substr(line, 1, index(line, defundef) - 1)
31590 if (D_is_set[macro]) {
31591 # Preserve the white space surrounding the "#".
31592 print prefix "define", macro P[macro] D[macro]
31593 next
31594 } else {
31595 # Replace #undef with comments. This is necessary, for example,
31596 # in the case of _POSIX_SOURCE, which is predefined and required
31597 # on some systems where configure will not decide to define it.
31598 if (defundef == "undef") {
31599 print "/*", prefix defundef, macro, "*/"
31600 next
31601 }
31602 }
31603 }
31604 { print }
31605 _ACAWK
31606 _ACEOF
31607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31608 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31609 fi # test -n "$CONFIG_HEADERS"
31610
31611
31612 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31613 shift
31614 for ac_tag
31615 do
31616 case $ac_tag in
31617 :[FHLC]) ac_mode=$ac_tag; continue;;
31618 esac
31619 case $ac_mode$ac_tag in
31620 :[FHL]*:*);;
31621 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31622 :[FH]-) ac_tag=-:-;;
31623 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31624 esac
31625 ac_save_IFS=$IFS
31626 IFS=:
31627 set x $ac_tag
31628 IFS=$ac_save_IFS
31629 shift
31630 ac_file=$1
31631 shift
31632
31633 case $ac_mode in
31634 :L) ac_source=$1;;
31635 :[FH])
31636 ac_file_inputs=
31637 for ac_f
31638 do
31639 case $ac_f in
31640 -) ac_f="$ac_tmp/stdin";;
31641 *) # Look for the file first in the build tree, then in the source tree
31642 # (if the path is not absolute). The absolute path cannot be DOS-style,
31643 # because $ac_f cannot contain `:'.
31644 test -f "$ac_f" ||
31645 case $ac_f in
31646 [\\/$]*) false;;
31647 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31648 esac ||
31649 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31650 esac
31651 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31652 as_fn_append ac_file_inputs " '$ac_f'"
31653 done
31654
31655 # Let's still pretend it is `configure' which instantiates (i.e., don't
31656 # use $as_me), people would be surprised to read:
31657 # /* config.h. Generated by config.status. */
31658 configure_input='Generated from '`
31659 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31660 `' by configure.'
31661 if test x"$ac_file" != x-; then
31662 configure_input="$ac_file. $configure_input"
31663 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31664 $as_echo "$as_me: creating $ac_file" >&6;}
31665 fi
31666 # Neutralize special characters interpreted by sed in replacement strings.
31667 case $configure_input in #(
31668 *\&* | *\|* | *\\* )
31669 ac_sed_conf_input=`$as_echo "$configure_input" |
31670 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31671 *) ac_sed_conf_input=$configure_input;;
31672 esac
31673
31674 case $ac_tag in
31675 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31676 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31677 esac
31678 ;;
31679 esac
31680
31681 ac_dir=`$as_dirname -- "$ac_file" ||
31682 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31683 X"$ac_file" : 'X\(//\)[^/]' \| \
31684 X"$ac_file" : 'X\(//\)$' \| \
31685 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31686 $as_echo X"$ac_file" |
31687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31688 s//\1/
31689 q
31690 }
31691 /^X\(\/\/\)[^/].*/{
31692 s//\1/
31693 q
31694 }
31695 /^X\(\/\/\)$/{
31696 s//\1/
31697 q
31698 }
31699 /^X\(\/\).*/{
31700 s//\1/
31701 q
31702 }
31703 s/.*/./; q'`
31704 as_dir="$ac_dir"; as_fn_mkdir_p
31705 ac_builddir=.
31706
31707 case "$ac_dir" in
31708 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31709 *)
31710 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31711 # A ".." for each directory in $ac_dir_suffix.
31712 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31713 case $ac_top_builddir_sub in
31714 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31715 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31716 esac ;;
31717 esac
31718 ac_abs_top_builddir=$ac_pwd
31719 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31720 # for backward compatibility:
31721 ac_top_builddir=$ac_top_build_prefix
31722
31723 case $srcdir in
31724 .) # We are building in place.
31725 ac_srcdir=.
31726 ac_top_srcdir=$ac_top_builddir_sub
31727 ac_abs_top_srcdir=$ac_pwd ;;
31728 [\\/]* | ?:[\\/]* ) # Absolute name.
31729 ac_srcdir=$srcdir$ac_dir_suffix;
31730 ac_top_srcdir=$srcdir
31731 ac_abs_top_srcdir=$srcdir ;;
31732 *) # Relative name.
31733 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31734 ac_top_srcdir=$ac_top_build_prefix$srcdir
31735 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31736 esac
31737 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31738
31739
31740 case $ac_mode in
31741 :F)
31742 #
31743 # CONFIG_FILE
31744 #
31745
31746 _ACEOF
31747
31748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31749 # If the template does not know about datarootdir, expand it.
31750 # FIXME: This hack should be removed a few years after 2.60.
31751 ac_datarootdir_hack=; ac_datarootdir_seen=
31752 ac_sed_dataroot='
31753 /datarootdir/ {
31754 p
31755 q
31756 }
31757 /@datadir@/p
31758 /@docdir@/p
31759 /@infodir@/p
31760 /@localedir@/p
31761 /@mandir@/p'
31762 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31763 *datarootdir*) ac_datarootdir_seen=yes;;
31764 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31766 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31767 _ACEOF
31768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31769 ac_datarootdir_hack='
31770 s&@datadir@&$datadir&g
31771 s&@docdir@&$docdir&g
31772 s&@infodir@&$infodir&g
31773 s&@localedir@&$localedir&g
31774 s&@mandir@&$mandir&g
31775 s&\\\${datarootdir}&$datarootdir&g' ;;
31776 esac
31777 _ACEOF
31778
31779 # Neutralize VPATH when `$srcdir' = `.'.
31780 # Shell code in configure.ac might set extrasub.
31781 # FIXME: do we really want to maintain this feature?
31782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31783 ac_sed_extra="$ac_vpsub
31784 $extrasub
31785 _ACEOF
31786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31787 :t
31788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31789 s|@configure_input@|$ac_sed_conf_input|;t t
31790 s&@top_builddir@&$ac_top_builddir_sub&;t t
31791 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31792 s&@srcdir@&$ac_srcdir&;t t
31793 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31794 s&@top_srcdir@&$ac_top_srcdir&;t t
31795 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31796 s&@builddir@&$ac_builddir&;t t
31797 s&@abs_builddir@&$ac_abs_builddir&;t t
31798 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31799 $ac_datarootdir_hack
31800 "
31801 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31802 if $ac_cs_awk_getline; then
31803 $AWK -f "$ac_tmp/subs.awk"
31804 else
31805 $AWK -f "$ac_tmp/subs.awk" | $SHELL
31806 fi \
31807 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31808
31809 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31810 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31811 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31812 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31814 which seems to be undefined. Please make sure it is defined" >&5
31815 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31816 which seems to be undefined. Please make sure it is defined" >&2;}
31817
31818 rm -f "$ac_tmp/stdin"
31819 case $ac_file in
31820 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31821 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31822 esac \
31823 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31824 ;;
31825 :H)
31826 #
31827 # CONFIG_HEADER
31828 #
31829 if test x"$ac_file" != x-; then
31830 {
31831 $as_echo "/* $configure_input */" \
31832 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31833 } >"$ac_tmp/config.h" \
31834 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31835 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31836 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31837 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31838 else
31839 rm -f "$ac_file"
31840 mv "$ac_tmp/config.h" "$ac_file" \
31841 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31842 fi
31843 else
31844 $as_echo "/* $configure_input */" \
31845 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31846 || as_fn_error $? "could not create -" "$LINENO" 5
31847 fi
31848 ;;
31849 :L)
31850 #
31851 # CONFIG_LINK
31852 #
31853
31854 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31855 :
31856 else
31857 # Prefer the file from the source tree if names are identical.
31858 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31859 ac_source=$srcdir/$ac_source
31860 fi
31861
31862 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31863 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31864
31865 if test ! -r "$ac_source"; then
31866 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31867 fi
31868 rm -f "$ac_file"
31869
31870 # Try a relative symlink, then a hard link, then a copy.
31871 case $ac_source in
31872 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31873 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31874 esac
31875 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31876 ln "$ac_source" "$ac_file" 2>/dev/null ||
31877 cp -p "$ac_source" "$ac_file" ||
31878 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31879 fi
31880 ;;
31881 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31882 $as_echo "$as_me: executing $ac_file commands" >&6;}
31883 ;;
31884 esac
31885
31886
31887 case $ac_file$ac_mode in
31888 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31889 "gccdepdir":C)
31890 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31891 for lang in $subdirs c-family common
31892 do
31893 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31894 done ;;
31895 "as":F) chmod +x as ;;
31896 "collect-ld":F) chmod +x collect-ld ;;
31897 "nm":F) chmod +x nm ;;
31898 "default":C)
31899 case ${CONFIG_HEADERS} in
31900 *auto-host.h:config.in*)
31901 echo > cstamp-h ;;
31902 esac
31903 # Make sure all the subdirs exist.
31904 for d in $subdirs doc build common c-family
31905 do
31906 test -d $d || mkdir $d
31907 done
31908 ;;
31909
31910 esac
31911 done # for ac_tag
31912
31913
31914 as_fn_exit 0
31915 _ACEOF
31916 ac_clean_files=$ac_clean_files_save
31917
31918 test $ac_write_fail = 0 ||
31919 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31920
31921
31922 # configure is writing to config.log, and then calls config.status.
31923 # config.status does its own redirection, appending to config.log.
31924 # Unfortunately, on DOS this fails, as config.log is still kept open
31925 # by configure, so config.status won't be able to write to it; its
31926 # output is simply discarded. So we exec the FD to /dev/null,
31927 # effectively closing config.log, so it can be properly (re)opened and
31928 # appended to by config.status. When coming back to configure, we
31929 # need to make the FD available again.
31930 if test "$no_create" != yes; then
31931 ac_cs_success=:
31932 ac_config_status_args=
31933 test "$silent" = yes &&
31934 ac_config_status_args="$ac_config_status_args --quiet"
31935 exec 5>/dev/null
31936 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31937 exec 5>>config.log
31938 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31939 # would make configure fail if this is the last instruction.
31940 $ac_cs_success || as_fn_exit 1
31941 fi
31942 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31944 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31945 fi
31946
31947