]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
Remove obsolete Solaris 10 support
[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 DL_LIB
786 LDEXP_LIB
787 EXTRA_GCC_LIBS
788 GNAT_LIBEXC
789 COLLECT2_LIBS
790 CXXDEPMODE
791 DEPDIR
792 am__leading_dot
793 doc_build_sys
794 AR
795 NM
796 BISON
797 FLEX
798 GENERATED_MANPAGES
799 BUILD_INFO
800 MAKEINFO
801 have_mktemp_command
802 make_compare_target
803 INSTALL_DATA
804 INSTALL_PROGRAM
805 INSTALL
806 ranlib_flags
807 RANLIB
808 LN
809 LN_S
810 AWK
811 SET_MAKE
812 accel_dir_suffix
813 real_target_noncanonical
814 enable_as_accelerator
815 REPORT_BUGS_TEXI
816 REPORT_BUGS_TO
817 PKGVERSION
818 CONFIGURE_SPECS
819 enable_gcov
820 enable_shared
821 enable_fixed_point
822 enable_decimal_float
823 with_float
824 with_cpu
825 enable_multiarch
826 enable_multilib
827 coverage_flags
828 valgrind_command
829 valgrind_path_defines
830 valgrind_path
831 TREECHECKING
832 nocommon_flag
833 noexception_flags
834 warn_cxxflags
835 warn_cflags
836 c_strict_warn
837 strict_warn
838 c_loose_warn
839 loose_warn
840 aliasing_flags
841 CPP
842 EGREP
843 GREP
844 CXXCPP
845 PICFLAG_FOR_TARGET
846 GNATMAKE
847 GNATBIND
848 ac_ct_CXX
849 CXXFLAGS
850 CXX
851 OBJEXT
852 EXEEXT
853 ac_ct_CC
854 CPPFLAGS
855 LDFLAGS
856 CFLAGS
857 CC
858 GENINSRC
859 CROSS_SYSTEM_HEADER_DIR
860 TARGET_SYSTEM_ROOT_DEFINE
861 TARGET_SYSTEM_ROOT
862 SYSROOT_CFLAGS_FOR_TARGET
863 target_subdir
864 host_subdir
865 build_subdir
866 build_libsubdir
867 target_noncanonical
868 host_noncanonical
869 target_os
870 target_vendor
871 target_cpu
872 target
873 host_os
874 host_vendor
875 host_cpu
876 host
877 build_os
878 build_vendor
879 build_cpu
880 build
881 target_alias
882 host_alias
883 build_alias
884 LIBS
885 ECHO_T
886 ECHO_N
887 ECHO_C
888 DEFS
889 mandir
890 localedir
891 libdir
892 psdir
893 pdfdir
894 dvidir
895 htmldir
896 infodir
897 docdir
898 oldincludedir
899 includedir
900 localstatedir
901 sharedstatedir
902 sysconfdir
903 datadir
904 datarootdir
905 libexecdir
906 sbindir
907 bindir
908 program_transform_name
909 prefix
910 exec_prefix
911 PACKAGE_URL
912 PACKAGE_BUGREPORT
913 PACKAGE_STRING
914 PACKAGE_VERSION
915 PACKAGE_TARNAME
916 PACKAGE_NAME
917 PATH_SEPARATOR
918 SHELL'
919 ac_subst_files='option_includes
920 language_hooks'
921 ac_user_opts='
922 enable_option_checking
923 with_build_libsubdir
924 with_local_prefix
925 with_native_system_header_dir
926 with_build_sysroot
927 with_sysroot
928 with_gxx_include_dir
929 with_cpp_install_dir
930 enable_generated_files_in_srcdir
931 with_gnu_ld
932 with_ld
933 with_demangler_in_ld
934 with_gnu_as
935 with_as
936 enable_largefile
937 enable_build_format_warnings
938 enable_werror_always
939 enable_checking
940 enable_coverage
941 enable_gather_detailed_mem_stats
942 enable_valgrind_annotations
943 with_stabs
944 enable_multilib
945 enable_multiarch
946 with_stack_clash_protection_guard_size
947 enable___cxa_atexit
948 enable_decimal_float
949 enable_fixed_point
950 enable_threads
951 enable_tls
952 enable_vtable_verify
953 enable_objc_gc
954 with_dwarf2
955 enable_shared
956 enable_gcov
957 with_specs
958 with_pkgversion
959 with_bugurl
960 enable_languages
961 with_multilib_list
962 enable_rpath
963 with_libiconv_prefix
964 enable_sjlj_exceptions
965 with_gcc_major_version_only
966 enable_secureplt
967 enable_mingw_wildcard
968 enable_large_address_aware
969 enable_leading_mingw64_underscores
970 enable_cld
971 enable_frame_pointer
972 enable_win32_registry
973 enable_static
974 with_pic
975 enable_fast_install
976 enable_libtool_lock
977 enable_ld
978 enable_gold
979 with_plugin_ld
980 enable_gnu_indirect_function
981 enable_initfini_array
982 enable_comdat
983 enable_standard_branch_protection
984 enable_fix_cortex_a53_835769
985 enable_fix_cortex_a53_843419
986 with_glibc_version
987 enable_gnu_unique_object
988 enable_linker_build_id
989 enable_libssp
990 enable_default_ssp
991 with_long_double_128
992 with_long_double_format
993 with_gc
994 with_system_zlib
995 enable_maintainer_mode
996 enable_link_mutex
997 enable_version_specific_runtime_libs
998 enable_plugin
999 enable_host_shared
1000 enable_libquadmath_support
1001 with_linker_hash_style
1002 with_diagnostics_color
1003 enable_default_pie
1004 '
1005 ac_precious_vars='build_alias
1006 host_alias
1007 target_alias
1008 CC
1009 CFLAGS
1010 LDFLAGS
1011 LIBS
1012 CPPFLAGS
1013 CXX
1014 CXXFLAGS
1015 CCC
1016 CXXCPP
1017 CPP
1018 GMPLIBS
1019 GMPINC
1020 ISLLIBS
1021 ISLINC'
1022
1023
1024 # Initialize some variables set by options.
1025 ac_init_help=
1026 ac_init_version=false
1027 ac_unrecognized_opts=
1028 ac_unrecognized_sep=
1029 # The variables have the same names as the options, with
1030 # dashes changed to underlines.
1031 cache_file=/dev/null
1032 exec_prefix=NONE
1033 no_create=
1034 no_recursion=
1035 prefix=NONE
1036 program_prefix=NONE
1037 program_suffix=NONE
1038 program_transform_name=s,x,x,
1039 silent=
1040 site=
1041 srcdir=
1042 verbose=
1043 x_includes=NONE
1044 x_libraries=NONE
1045
1046 # Installation directory options.
1047 # These are left unexpanded so users can "make install exec_prefix=/foo"
1048 # and all the variables that are supposed to be based on exec_prefix
1049 # by default will actually change.
1050 # Use braces instead of parens because sh, perl, etc. also accept them.
1051 # (The list follows the same order as the GNU Coding Standards.)
1052 bindir='${exec_prefix}/bin'
1053 sbindir='${exec_prefix}/sbin'
1054 libexecdir='${exec_prefix}/libexec'
1055 datarootdir='${prefix}/share'
1056 datadir='${datarootdir}'
1057 sysconfdir='${prefix}/etc'
1058 sharedstatedir='${prefix}/com'
1059 localstatedir='${prefix}/var'
1060 includedir='${prefix}/include'
1061 oldincludedir='/usr/include'
1062 docdir='${datarootdir}/doc/${PACKAGE}'
1063 infodir='${datarootdir}/info'
1064 htmldir='${docdir}'
1065 dvidir='${docdir}'
1066 pdfdir='${docdir}'
1067 psdir='${docdir}'
1068 libdir='${exec_prefix}/lib'
1069 localedir='${datarootdir}/locale'
1070 mandir='${datarootdir}/man'
1071
1072 ac_prev=
1073 ac_dashdash=
1074 for ac_option
1075 do
1076 # If the previous option needs an argument, assign it.
1077 if test -n "$ac_prev"; then
1078 eval $ac_prev=\$ac_option
1079 ac_prev=
1080 continue
1081 fi
1082
1083 case $ac_option in
1084 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1085 *=) ac_optarg= ;;
1086 *) ac_optarg=yes ;;
1087 esac
1088
1089 # Accept the important Cygnus configure options, so we can diagnose typos.
1090
1091 case $ac_dashdash$ac_option in
1092 --)
1093 ac_dashdash=yes ;;
1094
1095 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1096 ac_prev=bindir ;;
1097 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1098 bindir=$ac_optarg ;;
1099
1100 -build | --build | --buil | --bui | --bu)
1101 ac_prev=build_alias ;;
1102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1103 build_alias=$ac_optarg ;;
1104
1105 -cache-file | --cache-file | --cache-fil | --cache-fi \
1106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1107 ac_prev=cache_file ;;
1108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1110 cache_file=$ac_optarg ;;
1111
1112 --config-cache | -C)
1113 cache_file=config.cache ;;
1114
1115 -datadir | --datadir | --datadi | --datad)
1116 ac_prev=datadir ;;
1117 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1118 datadir=$ac_optarg ;;
1119
1120 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1121 | --dataroo | --dataro | --datar)
1122 ac_prev=datarootdir ;;
1123 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1124 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1125 datarootdir=$ac_optarg ;;
1126
1127 -disable-* | --disable-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid feature name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1135 *"
1136 "enable_$ac_useropt"
1137 "*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval enable_$ac_useropt=no ;;
1142
1143 -docdir | --docdir | --docdi | --doc | --do)
1144 ac_prev=docdir ;;
1145 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1146 docdir=$ac_optarg ;;
1147
1148 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1149 ac_prev=dvidir ;;
1150 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1151 dvidir=$ac_optarg ;;
1152
1153 -enable-* | --enable-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid feature name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1161 *"
1162 "enable_$ac_useropt"
1163 "*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval enable_$ac_useropt=\$ac_optarg ;;
1168
1169 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1170 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1171 | --exec | --exe | --ex)
1172 ac_prev=exec_prefix ;;
1173 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1174 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1175 | --exec=* | --exe=* | --ex=*)
1176 exec_prefix=$ac_optarg ;;
1177
1178 -gas | --gas | --ga | --g)
1179 # Obsolete; use --with-gas.
1180 with_gas=yes ;;
1181
1182 -help | --help | --hel | --he | -h)
1183 ac_init_help=long ;;
1184 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1185 ac_init_help=recursive ;;
1186 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1187 ac_init_help=short ;;
1188
1189 -host | --host | --hos | --ho)
1190 ac_prev=host_alias ;;
1191 -host=* | --host=* | --hos=* | --ho=*)
1192 host_alias=$ac_optarg ;;
1193
1194 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1195 ac_prev=htmldir ;;
1196 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1197 | --ht=*)
1198 htmldir=$ac_optarg ;;
1199
1200 -includedir | --includedir | --includedi | --included | --include \
1201 | --includ | --inclu | --incl | --inc)
1202 ac_prev=includedir ;;
1203 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1204 | --includ=* | --inclu=* | --incl=* | --inc=*)
1205 includedir=$ac_optarg ;;
1206
1207 -infodir | --infodir | --infodi | --infod | --info | --inf)
1208 ac_prev=infodir ;;
1209 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1210 infodir=$ac_optarg ;;
1211
1212 -libdir | --libdir | --libdi | --libd)
1213 ac_prev=libdir ;;
1214 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1215 libdir=$ac_optarg ;;
1216
1217 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1218 | --libexe | --libex | --libe)
1219 ac_prev=libexecdir ;;
1220 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1221 | --libexe=* | --libex=* | --libe=*)
1222 libexecdir=$ac_optarg ;;
1223
1224 -localedir | --localedir | --localedi | --localed | --locale)
1225 ac_prev=localedir ;;
1226 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1227 localedir=$ac_optarg ;;
1228
1229 -localstatedir | --localstatedir | --localstatedi | --localstated \
1230 | --localstate | --localstat | --localsta | --localst | --locals)
1231 ac_prev=localstatedir ;;
1232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1233 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1234 localstatedir=$ac_optarg ;;
1235
1236 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1237 ac_prev=mandir ;;
1238 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1239 mandir=$ac_optarg ;;
1240
1241 -nfp | --nfp | --nf)
1242 # Obsolete; use --without-fp.
1243 with_fp=no ;;
1244
1245 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1246 | --no-cr | --no-c | -n)
1247 no_create=yes ;;
1248
1249 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1250 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1251 no_recursion=yes ;;
1252
1253 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1254 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1255 | --oldin | --oldi | --old | --ol | --o)
1256 ac_prev=oldincludedir ;;
1257 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1258 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1259 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1260 oldincludedir=$ac_optarg ;;
1261
1262 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1263 ac_prev=prefix ;;
1264 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1265 prefix=$ac_optarg ;;
1266
1267 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1268 | --program-pre | --program-pr | --program-p)
1269 ac_prev=program_prefix ;;
1270 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1271 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1272 program_prefix=$ac_optarg ;;
1273
1274 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1275 | --program-suf | --program-su | --program-s)
1276 ac_prev=program_suffix ;;
1277 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1278 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1279 program_suffix=$ac_optarg ;;
1280
1281 -program-transform-name | --program-transform-name \
1282 | --program-transform-nam | --program-transform-na \
1283 | --program-transform-n | --program-transform- \
1284 | --program-transform | --program-transfor \
1285 | --program-transfo | --program-transf \
1286 | --program-trans | --program-tran \
1287 | --progr-tra | --program-tr | --program-t)
1288 ac_prev=program_transform_name ;;
1289 -program-transform-name=* | --program-transform-name=* \
1290 | --program-transform-nam=* | --program-transform-na=* \
1291 | --program-transform-n=* | --program-transform-=* \
1292 | --program-transform=* | --program-transfor=* \
1293 | --program-transfo=* | --program-transf=* \
1294 | --program-trans=* | --program-tran=* \
1295 | --progr-tra=* | --program-tr=* | --program-t=*)
1296 program_transform_name=$ac_optarg ;;
1297
1298 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1299 ac_prev=pdfdir ;;
1300 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1301 pdfdir=$ac_optarg ;;
1302
1303 -psdir | --psdir | --psdi | --psd | --ps)
1304 ac_prev=psdir ;;
1305 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1306 psdir=$ac_optarg ;;
1307
1308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1309 | -silent | --silent | --silen | --sile | --sil)
1310 silent=yes ;;
1311
1312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1313 ac_prev=sbindir ;;
1314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1315 | --sbi=* | --sb=*)
1316 sbindir=$ac_optarg ;;
1317
1318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1320 | --sharedst | --shareds | --shared | --share | --shar \
1321 | --sha | --sh)
1322 ac_prev=sharedstatedir ;;
1323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1326 | --sha=* | --sh=*)
1327 sharedstatedir=$ac_optarg ;;
1328
1329 -site | --site | --sit)
1330 ac_prev=site ;;
1331 -site=* | --site=* | --sit=*)
1332 site=$ac_optarg ;;
1333
1334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1335 ac_prev=srcdir ;;
1336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1337 srcdir=$ac_optarg ;;
1338
1339 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1340 | --syscon | --sysco | --sysc | --sys | --sy)
1341 ac_prev=sysconfdir ;;
1342 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1343 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1344 sysconfdir=$ac_optarg ;;
1345
1346 -target | --target | --targe | --targ | --tar | --ta | --t)
1347 ac_prev=target_alias ;;
1348 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1349 target_alias=$ac_optarg ;;
1350
1351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1352 verbose=yes ;;
1353
1354 -version | --version | --versio | --versi | --vers | -V)
1355 ac_init_version=: ;;
1356
1357 -with-* | --with-*)
1358 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1359 # Reject names that are not valid shell variable names.
1360 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1361 as_fn_error $? "invalid package name: $ac_useropt"
1362 ac_useropt_orig=$ac_useropt
1363 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1364 case $ac_user_opts in
1365 *"
1366 "with_$ac_useropt"
1367 "*) ;;
1368 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1369 ac_unrecognized_sep=', ';;
1370 esac
1371 eval with_$ac_useropt=\$ac_optarg ;;
1372
1373 -without-* | --without-*)
1374 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1375 # Reject names that are not valid shell variable names.
1376 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1377 as_fn_error $? "invalid package name: $ac_useropt"
1378 ac_useropt_orig=$ac_useropt
1379 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1380 case $ac_user_opts in
1381 *"
1382 "with_$ac_useropt"
1383 "*) ;;
1384 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1385 ac_unrecognized_sep=', ';;
1386 esac
1387 eval with_$ac_useropt=no ;;
1388
1389 --x)
1390 # Obsolete; use --with-x.
1391 with_x=yes ;;
1392
1393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1394 | --x-incl | --x-inc | --x-in | --x-i)
1395 ac_prev=x_includes ;;
1396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1398 x_includes=$ac_optarg ;;
1399
1400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1402 ac_prev=x_libraries ;;
1403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1405 x_libraries=$ac_optarg ;;
1406
1407 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1408 Try \`$0 --help' for more information"
1409 ;;
1410
1411 *=*)
1412 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1413 # Reject names that are not valid shell variable names.
1414 case $ac_envvar in #(
1415 '' | [0-9]* | *[!_$as_cr_alnum]* )
1416 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1417 esac
1418 eval $ac_envvar=\$ac_optarg
1419 export $ac_envvar ;;
1420
1421 *)
1422 # FIXME: should be removed in autoconf 3.0.
1423 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1424 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1425 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1426 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1427 ;;
1428
1429 esac
1430 done
1431
1432 if test -n "$ac_prev"; then
1433 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1434 as_fn_error $? "missing argument to $ac_option"
1435 fi
1436
1437 if test -n "$ac_unrecognized_opts"; then
1438 case $enable_option_checking in
1439 no) ;;
1440 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1441 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1442 esac
1443 fi
1444
1445 # Check all directory arguments for consistency.
1446 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1447 datadir sysconfdir sharedstatedir localstatedir includedir \
1448 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1449 libdir localedir mandir
1450 do
1451 eval ac_val=\$$ac_var
1452 # Remove trailing slashes.
1453 case $ac_val in
1454 */ )
1455 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1456 eval $ac_var=\$ac_val;;
1457 esac
1458 # Be sure to have absolute directory names.
1459 case $ac_val in
1460 [\\/$]* | ?:[\\/]* ) continue;;
1461 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1462 esac
1463 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1464 done
1465
1466 # There might be people who depend on the old broken behavior: `$host'
1467 # used to hold the argument of --host etc.
1468 # FIXME: To remove some day.
1469 build=$build_alias
1470 host=$host_alias
1471 target=$target_alias
1472
1473 # FIXME: To remove some day.
1474 if test "x$host_alias" != x; then
1475 if test "x$build_alias" = x; then
1476 cross_compiling=maybe
1477 elif test "x$build_alias" != "x$host_alias"; then
1478 cross_compiling=yes
1479 fi
1480 fi
1481
1482 ac_tool_prefix=
1483 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1484
1485 test "$silent" = yes && exec 6>/dev/null
1486
1487
1488 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1489 ac_ls_di=`ls -di .` &&
1490 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1491 as_fn_error $? "working directory cannot be determined"
1492 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1493 as_fn_error $? "pwd does not report name of working directory"
1494
1495
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498 ac_srcdir_defaulted=yes
1499 # Try the directory containing this script, then the parent directory.
1500 ac_confdir=`$as_dirname -- "$as_myself" ||
1501 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502 X"$as_myself" : 'X\(//\)[^/]' \| \
1503 X"$as_myself" : 'X\(//\)$' \| \
1504 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1505 $as_echo X"$as_myself" |
1506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1507 s//\1/
1508 q
1509 }
1510 /^X\(\/\/\)[^/].*/{
1511 s//\1/
1512 q
1513 }
1514 /^X\(\/\/\)$/{
1515 s//\1/
1516 q
1517 }
1518 /^X\(\/\).*/{
1519 s//\1/
1520 q
1521 }
1522 s/.*/./; q'`
1523 srcdir=$ac_confdir
1524 if test ! -r "$srcdir/$ac_unique_file"; then
1525 srcdir=..
1526 fi
1527 else
1528 ac_srcdir_defaulted=no
1529 fi
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1533 fi
1534 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1535 ac_abs_confdir=`(
1536 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1537 pwd)`
1538 # When building in place, set srcdir=.
1539 if test "$ac_abs_confdir" = "$ac_pwd"; then
1540 srcdir=.
1541 fi
1542 # Remove unnecessary trailing slashes from srcdir.
1543 # Double slashes in file names in object file debugging info
1544 # mess up M-x gdb in Emacs.
1545 case $srcdir in
1546 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1547 esac
1548 for ac_var in $ac_precious_vars; do
1549 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1550 eval ac_env_${ac_var}_value=\$${ac_var}
1551 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1552 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1553 done
1554
1555 #
1556 # Report the --help message.
1557 #
1558 if test "$ac_init_help" = "long"; then
1559 # Omit some internal or obsolete options to make the list less imposing.
1560 # This message is too long to be a string in the A/UX 3.1 sh.
1561 cat <<_ACEOF
1562 \`configure' configures this package to adapt to many kinds of systems.
1563
1564 Usage: $0 [OPTION]... [VAR=VALUE]...
1565
1566 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1567 VAR=VALUE. See below for descriptions of some of the useful variables.
1568
1569 Defaults for the options are specified in brackets.
1570
1571 Configuration:
1572 -h, --help display this help and exit
1573 --help=short display options specific to this package
1574 --help=recursive display the short help of all the included packages
1575 -V, --version display version information and exit
1576 -q, --quiet, --silent do not print \`checking ...' messages
1577 --cache-file=FILE cache test results in FILE [disabled]
1578 -C, --config-cache alias for \`--cache-file=config.cache'
1579 -n, --no-create do not create output files
1580 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1581
1582 Installation directories:
1583 --prefix=PREFIX install architecture-independent files in PREFIX
1584 [$ac_default_prefix]
1585 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1586 [PREFIX]
1587
1588 By default, \`make install' will install all the files in
1589 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1590 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1591 for instance \`--prefix=\$HOME'.
1592
1593 For better control, use the options below.
1594
1595 Fine tuning of the installation directories:
1596 --bindir=DIR user executables [EPREFIX/bin]
1597 --sbindir=DIR system admin executables [EPREFIX/sbin]
1598 --libexecdir=DIR program executables [EPREFIX/libexec]
1599 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1600 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1601 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1602 --libdir=DIR object code libraries [EPREFIX/lib]
1603 --includedir=DIR C header files [PREFIX/include]
1604 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1605 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1606 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1607 --infodir=DIR info documentation [DATAROOTDIR/info]
1608 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1609 --mandir=DIR man documentation [DATAROOTDIR/man]
1610 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1611 --htmldir=DIR html documentation [DOCDIR]
1612 --dvidir=DIR dvi documentation [DOCDIR]
1613 --pdfdir=DIR pdf documentation [DOCDIR]
1614 --psdir=DIR ps documentation [DOCDIR]
1615 _ACEOF
1616
1617 cat <<\_ACEOF
1618
1619 Program names:
1620 --program-prefix=PREFIX prepend PREFIX to installed program names
1621 --program-suffix=SUFFIX append SUFFIX to installed program names
1622 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1623
1624 System types:
1625 --build=BUILD configure for building on BUILD [guessed]
1626 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1627 --target=TARGET configure for building compilers for TARGET [HOST]
1628 _ACEOF
1629 fi
1630
1631 if test -n "$ac_init_help"; then
1632
1633 cat <<\_ACEOF
1634
1635 Optional Features:
1636 --disable-option-checking ignore unrecognized --enable/--with options
1637 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1638 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1639 --enable-generated-files-in-srcdir
1640 put copies of generated files in source dir intended
1641 for creating source tarballs for users without
1642 texinfo bison or flex
1643 --disable-largefile omit support for large files
1644 --disable-build-format-warnings
1645 don't use -Wformat while building GCC
1646 --enable-werror-always enable -Werror despite compiler version
1647 --enable-checking[=LIST]
1648 enable expensive run-time checks. With LIST, enable
1649 only specific categories of checks. Categories are:
1650 yes,no,all,none,release. Flags are:
1651 assert,df,extra,fold,gc,gcac,gimple,misc,
1652 rtlflag,rtl,runtime,tree,valgrind,types
1653 --enable-coverage[=LEVEL]
1654 enable compiler's code coverage collection. Use to
1655 measure compiler performance and locate unused parts
1656 of the compiler. With LEVEL, specify optimization.
1657 Values are opt, noopt, default is noopt
1658 --enable-gather-detailed-mem-stats
1659 enable detailed memory allocation stats gathering
1660 --enable-valgrind-annotations
1661 enable valgrind runtime interaction
1662 --enable-multilib enable library support for multiple ABIs
1663 --enable-multiarch enable support for multiarch paths
1664 --enable-__cxa_atexit enable __cxa_atexit for C++
1665 --enable-decimal-float={no,yes,bid,dpd}
1666 enable decimal float extension to C. Selecting 'bid'
1667 or 'dpd' choses which decimal floating point format
1668 to use
1669 --enable-fixed-point enable fixed-point arithmetic extension to C
1670 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1671 package
1672 --enable-tls enable or disable generation of tls code overriding
1673 the assembler check for tls support
1674 --enable-vtable-verify enable vtable verification feature
1675 --enable-objc-gc enable the use of Boehm's garbage collector with the
1676 GNU Objective-C runtime
1677 --disable-shared don't provide a shared libgcc
1678 --disable-gcov don't provide libgcov and related host tools
1679 --enable-languages=LIST specify which front-ends to build
1680 --disable-rpath do not hardcode runtime library paths
1681 --enable-sjlj-exceptions
1682 arrange to use setjmp/longjmp exception handling
1683 --enable-secureplt enable -msecure-plt by default for PowerPC
1684 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1685 Default to platform configuration
1686 --enable-large-address-aware
1687 Link mingw executables with --large-address-aware
1688 --enable-leading-mingw64-underscores
1689 enable leading underscores on 64 bit mingw targets
1690 --enable-cld enable -mcld by default for 32bit x86
1691 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1692 --disable-win32-registry
1693 disable lookup of installation paths in the Registry
1694 on Windows hosts
1695 --enable-win32-registry enable registry lookup (default)
1696 --enable-win32-registry=KEY
1697 use KEY instead of GCC version as the last portion
1698 of the registry key
1699 --enable-shared[=PKGS] build shared libraries [default=yes]
1700 --enable-static[=PKGS] build static libraries [default=yes]
1701 --enable-fast-install[=PKGS]
1702 optimize for fast installation [default=yes]
1703 --disable-libtool-lock avoid locking (might break parallel builds)
1704 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1705 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1706 --enable-gnu-indirect-function
1707 enable the use of the @gnu_indirect_function to
1708 glibc systems
1709 --enable-initfini-array use .init_array/.fini_array sections
1710 --enable-comdat enable COMDAT group support
1711
1712 --enable-standard-branch-protection
1713 enable Branch Target Identification Mechanism and
1714 Return Address Signing by default for AArch64
1715 --disable-standard-branch-protection
1716 disable Branch Target Identification Mechanism and
1717 Return Address Signing by default for AArch64
1718
1719
1720 --enable-fix-cortex-a53-835769
1721 enable workaround for AArch64 Cortex-A53 erratum
1722 835769 by default
1723 --disable-fix-cortex-a53-835769
1724 disable workaround for AArch64 Cortex-A53 erratum
1725 835769 by default
1726
1727
1728 --enable-fix-cortex-a53-843419
1729 enable workaround for AArch64 Cortex-A53 erratum
1730 843419 by default
1731 --disable-fix-cortex-a53-843419
1732 disable workaround for AArch64 Cortex-A53 erratum
1733 843419 by default
1734
1735 --enable-gnu-unique-object
1736 enable the use of the @gnu_unique_object ELF
1737 extension on glibc systems
1738 --enable-linker-build-id
1739 compiler will always pass --build-id to linker
1740 --enable-libssp enable linking against libssp
1741 --enable-default-ssp enable Stack Smashing Protection as default
1742 --enable-maintainer-mode
1743 enable make rules and dependencies not useful (and
1744 sometimes confusing) to the casual installer
1745 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1746 thrashing on the build machine
1747 --enable-version-specific-runtime-libs
1748 specify that runtime libraries should be installed
1749 in a compiler-specific directory
1750 --enable-plugin enable plugin support
1751 --enable-host-shared build host code as shared libraries
1752 --disable-libquadmath-support
1753 disable libquadmath support for Fortran
1754 --enable-default-pie enable Position Independent Executable as default
1755
1756 Optional Packages:
1757 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1758 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1759 --with-build-libsubdir=DIR Directory where to find libraries for build system
1760 --with-local-prefix=DIR specifies directory to put local include
1761 --with-native-system-header-dir=dir
1762 use dir as the directory to look for standard
1763 system header files in. Defaults to /usr/include.
1764 --with-build-sysroot=sysroot
1765 use sysroot as the system root during the build
1766 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1767 --with-gxx-include-dir=DIR
1768 specifies directory to put g++ header files
1769 --with-cpp-install-dir=DIR
1770 install the user visible C preprocessor in DIR
1771 (relative to PREFIX) as well as PREFIX/bin
1772 --with-gnu-ld arrange to work with GNU ld
1773 --with-ld arrange to use the specified ld (full pathname)
1774 --with-demangler-in-ld try to use demangler in GNU ld
1775 --with-gnu-as arrange to work with GNU as
1776 --with-as arrange to use the specified as (full pathname)
1777 --with-stabs arrange to use stabs instead of host debug format
1778 --with-stack-clash-protection-guard-size=size
1779 Set the default stack clash protection guard size
1780 for specific targets as a power of two in bytes.
1781 --with-dwarf2 force the default debug format to be DWARF 2
1782 --with-specs=SPECS add SPECS to driver command-line processing
1783 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1784 --with-bugurl=URL Direct users to URL to report a bug
1785 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1786 --with-gnu-ld assume the C compiler uses GNU ld default=no
1787 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1788 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1789 --with-gcc-major-version-only
1790 use only GCC major number in filesystem paths
1791 --with-pic try to use only PIC/non-PIC objects [default=use
1792 both]
1793 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1794 --with-plugin-ld=[ARG] specify the plugin linker
1795 --with-glibc-version=M.N
1796 assume GCC used with glibc version M.N or later
1797 --with-long-double-128 use 128-bit long double by default
1798 --with-long-double-format={ieee,ibm}
1799 Specify whether PowerPC long double uses IEEE or IBM format
1800
1801 --with-gc={page,zone} this option is not supported anymore. It used to
1802 choose the garbage collection mechanism to use with
1803 the compiler
1804 --with-system-zlib use installed libz
1805 --with-linker-hash-style={sysv,gnu,both}
1806 specify the linker hash style
1807 --with-diagnostics-color={never,auto,auto-if-env,always}
1808 specify the default of -fdiagnostics-color option
1809 auto-if-env stands for -fdiagnostics-color=auto if
1810 GCC_COLOR environment variable is present and
1811 -fdiagnostics-color=never otherwise
1812
1813 Some influential environment variables:
1814 CC C compiler command
1815 CFLAGS C compiler flags
1816 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1817 nonstandard directory <lib dir>
1818 LIBS libraries to pass to the linker, e.g. -l<library>
1819 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1820 you have headers in a nonstandard directory <include dir>
1821 CXX C++ compiler command
1822 CXXFLAGS C++ compiler flags
1823 CXXCPP C++ preprocessor
1824 CPP C preprocessor
1825 GMPLIBS How to link GMP
1826 GMPINC How to find GMP include files
1827 ISLLIBS How to link isl
1828 ISLINC How to find isl include files
1829
1830 Use these variables to override the choices made by `configure' or to help
1831 it to find libraries and programs with nonstandard names/locations.
1832
1833 Report bugs to the package provider.
1834 _ACEOF
1835 ac_status=$?
1836 fi
1837
1838 if test "$ac_init_help" = "recursive"; then
1839 # If there are subdirs, report their specific --help.
1840 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1841 test -d "$ac_dir" ||
1842 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1843 continue
1844 ac_builddir=.
1845
1846 case "$ac_dir" in
1847 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1848 *)
1849 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1850 # A ".." for each directory in $ac_dir_suffix.
1851 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1852 case $ac_top_builddir_sub in
1853 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1854 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1855 esac ;;
1856 esac
1857 ac_abs_top_builddir=$ac_pwd
1858 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1859 # for backward compatibility:
1860 ac_top_builddir=$ac_top_build_prefix
1861
1862 case $srcdir in
1863 .) # We are building in place.
1864 ac_srcdir=.
1865 ac_top_srcdir=$ac_top_builddir_sub
1866 ac_abs_top_srcdir=$ac_pwd ;;
1867 [\\/]* | ?:[\\/]* ) # Absolute name.
1868 ac_srcdir=$srcdir$ac_dir_suffix;
1869 ac_top_srcdir=$srcdir
1870 ac_abs_top_srcdir=$srcdir ;;
1871 *) # Relative name.
1872 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1873 ac_top_srcdir=$ac_top_build_prefix$srcdir
1874 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1875 esac
1876 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1877
1878 cd "$ac_dir" || { ac_status=$?; continue; }
1879 # Check for guested configure.
1880 if test -f "$ac_srcdir/configure.gnu"; then
1881 echo &&
1882 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1883 elif test -f "$ac_srcdir/configure"; then
1884 echo &&
1885 $SHELL "$ac_srcdir/configure" --help=recursive
1886 else
1887 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1888 fi || ac_status=$?
1889 cd "$ac_pwd" || { ac_status=$?; break; }
1890 done
1891 fi
1892
1893 test -n "$ac_init_help" && exit $ac_status
1894 if $ac_init_version; then
1895 cat <<\_ACEOF
1896 configure
1897 generated by GNU Autoconf 2.69
1898
1899 Copyright (C) 2012 Free Software Foundation, Inc.
1900 This configure script is free software; the Free Software Foundation
1901 gives unlimited permission to copy, distribute and modify it.
1902 _ACEOF
1903 exit
1904 fi
1905
1906 ## ------------------------ ##
1907 ## Autoconf initialization. ##
1908 ## ------------------------ ##
1909
1910 # ac_fn_c_try_compile LINENO
1911 # --------------------------
1912 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1913 ac_fn_c_try_compile ()
1914 {
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 rm -f conftest.$ac_objext
1917 if { { ac_try="$ac_compile"
1918 case "(($ac_try" in
1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920 *) ac_try_echo=$ac_try;;
1921 esac
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924 (eval "$ac_compile") 2>conftest.err
1925 ac_status=$?
1926 if test -s conftest.err; then
1927 grep -v '^ *+' conftest.err >conftest.er1
1928 cat conftest.er1 >&5
1929 mv -f conftest.er1 conftest.err
1930 fi
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } && {
1933 test -z "$ac_c_werror_flag" ||
1934 test ! -s conftest.err
1935 } && test -s conftest.$ac_objext; then :
1936 ac_retval=0
1937 else
1938 $as_echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1940
1941 ac_retval=1
1942 fi
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944 as_fn_set_status $ac_retval
1945
1946 } # ac_fn_c_try_compile
1947
1948 # ac_fn_cxx_try_compile LINENO
1949 # ----------------------------
1950 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1951 ac_fn_cxx_try_compile ()
1952 {
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 rm -f conftest.$ac_objext
1955 if { { ac_try="$ac_compile"
1956 case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959 esac
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_compile") 2>conftest.err
1963 ac_status=$?
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1968 fi
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } && {
1971 test -z "$ac_cxx_werror_flag" ||
1972 test ! -s conftest.err
1973 } && test -s conftest.$ac_objext; then :
1974 ac_retval=0
1975 else
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1978
1979 ac_retval=1
1980 fi
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 as_fn_set_status $ac_retval
1983
1984 } # ac_fn_cxx_try_compile
1985
1986 # ac_fn_cxx_try_cpp LINENO
1987 # ------------------------
1988 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1989 ac_fn_cxx_try_cpp ()
1990 {
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 if { { ac_try="$ac_cpp conftest.$ac_ext"
1993 case "(($ac_try" in
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1996 esac
1997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2000 ac_status=$?
2001 if test -s conftest.err; then
2002 grep -v '^ *+' conftest.err >conftest.er1
2003 cat conftest.er1 >&5
2004 mv -f conftest.er1 conftest.err
2005 fi
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } > conftest.i && {
2008 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2009 test ! -s conftest.err
2010 }; then :
2011 ac_retval=0
2012 else
2013 $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2015
2016 ac_retval=1
2017 fi
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019 as_fn_set_status $ac_retval
2020
2021 } # ac_fn_cxx_try_cpp
2022
2023 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2024 # ---------------------------------------------------------
2025 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2026 # the include files in INCLUDES and setting the cache variable VAR
2027 # accordingly.
2028 ac_fn_cxx_check_header_mongrel ()
2029 {
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if eval \${$3+:} false; then :
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 $as_echo_n "checking for $2... " >&6; }
2034 if eval \${$3+:} false; then :
2035 $as_echo_n "(cached) " >&6
2036 fi
2037 eval ac_res=\$$3
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040 else
2041 # Is the header compilable?
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2043 $as_echo_n "checking $2 usability... " >&6; }
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2046 $4
2047 #include <$2>
2048 _ACEOF
2049 if ac_fn_cxx_try_compile "$LINENO"; then :
2050 ac_header_compiler=yes
2051 else
2052 ac_header_compiler=no
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2056 $as_echo "$ac_header_compiler" >&6; }
2057
2058 # Is the header present?
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2060 $as_echo_n "checking $2 presence... " >&6; }
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2063 #include <$2>
2064 _ACEOF
2065 if ac_fn_cxx_try_cpp "$LINENO"; then :
2066 ac_header_preproc=yes
2067 else
2068 ac_header_preproc=no
2069 fi
2070 rm -f conftest.err conftest.i conftest.$ac_ext
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2072 $as_echo "$ac_header_preproc" >&6; }
2073
2074 # So? What about this header?
2075 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2076 yes:no: )
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2078 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2080 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2081 ;;
2082 no:yes:* )
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2084 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2086 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2088 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2090 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2092 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2093 ;;
2094 esac
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096 $as_echo_n "checking for $2... " >&6; }
2097 if eval \${$3+:} false; then :
2098 $as_echo_n "(cached) " >&6
2099 else
2100 eval "$3=\$ac_header_compiler"
2101 fi
2102 eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 fi
2106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107
2108 } # ac_fn_cxx_check_header_mongrel
2109
2110 # ac_fn_cxx_try_run LINENO
2111 # ------------------------
2112 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2113 # that executables *can* be run.
2114 ac_fn_cxx_try_run ()
2115 {
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 if { { ac_try="$ac_link"
2118 case "(($ac_try" in
2119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120 *) ac_try_echo=$ac_try;;
2121 esac
2122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2123 $as_echo "$ac_try_echo"; } >&5
2124 (eval "$ac_link") 2>&5
2125 ac_status=$?
2126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2128 { { case "(($ac_try" in
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2131 esac
2132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_try") 2>&5
2135 ac_status=$?
2136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137 test $ac_status = 0; }; }; then :
2138 ac_retval=0
2139 else
2140 $as_echo "$as_me: program exited with status $ac_status" >&5
2141 $as_echo "$as_me: failed program was:" >&5
2142 sed 's/^/| /' conftest.$ac_ext >&5
2143
2144 ac_retval=$ac_status
2145 fi
2146 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148 as_fn_set_status $ac_retval
2149
2150 } # ac_fn_cxx_try_run
2151
2152 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2153 # ---------------------------------------------------------
2154 # Tests whether HEADER exists and can be compiled using the include files in
2155 # INCLUDES, setting the cache variable VAR accordingly.
2156 ac_fn_cxx_check_header_compile ()
2157 {
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \${$3+:} false; then :
2162 $as_echo_n "(cached) " >&6
2163 else
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2166 $4
2167 #include <$2>
2168 _ACEOF
2169 if ac_fn_cxx_try_compile "$LINENO"; then :
2170 eval "$3=yes"
2171 else
2172 eval "$3=no"
2173 fi
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 fi
2176 eval ac_res=\$$3
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178 $as_echo "$ac_res" >&6; }
2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180
2181 } # ac_fn_cxx_check_header_compile
2182
2183 # ac_fn_c_try_cpp LINENO
2184 # ----------------------
2185 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2186 ac_fn_c_try_cpp ()
2187 {
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 if { { ac_try="$ac_cpp conftest.$ac_ext"
2190 case "(($ac_try" in
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2193 esac
2194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195 $as_echo "$ac_try_echo"; } >&5
2196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2197 ac_status=$?
2198 if test -s conftest.err; then
2199 grep -v '^ *+' conftest.err >conftest.er1
2200 cat conftest.er1 >&5
2201 mv -f conftest.er1 conftest.err
2202 fi
2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204 test $ac_status = 0; } > conftest.i && {
2205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2206 test ! -s conftest.err
2207 }; then :
2208 ac_retval=0
2209 else
2210 $as_echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2212
2213 ac_retval=1
2214 fi
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216 as_fn_set_status $ac_retval
2217
2218 } # ac_fn_c_try_cpp
2219
2220 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2221 # ----------------------------------------------
2222 # Tries to find the compile-time value of EXPR in a program that includes
2223 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2224 # computed
2225 ac_fn_cxx_compute_int ()
2226 {
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 if test "$cross_compiling" = yes; then
2229 # Depending upon the size, compute the lo and hi bounds.
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2232 $4
2233 int
2234 main ()
2235 {
2236 static int test_array [1 - 2 * !(($2) >= 0)];
2237 test_array [0] = 0;
2238 return test_array [0];
2239
2240 ;
2241 return 0;
2242 }
2243 _ACEOF
2244 if ac_fn_cxx_try_compile "$LINENO"; then :
2245 ac_lo=0 ac_mid=0
2246 while :; do
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2249 $4
2250 int
2251 main ()
2252 {
2253 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2254 test_array [0] = 0;
2255 return test_array [0];
2256
2257 ;
2258 return 0;
2259 }
2260 _ACEOF
2261 if ac_fn_cxx_try_compile "$LINENO"; then :
2262 ac_hi=$ac_mid; break
2263 else
2264 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2265 if test $ac_lo -le $ac_mid; then
2266 ac_lo= ac_hi=
2267 break
2268 fi
2269 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2270 fi
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 done
2273 else
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2276 $4
2277 int
2278 main ()
2279 {
2280 static int test_array [1 - 2 * !(($2) < 0)];
2281 test_array [0] = 0;
2282 return test_array [0];
2283
2284 ;
2285 return 0;
2286 }
2287 _ACEOF
2288 if ac_fn_cxx_try_compile "$LINENO"; then :
2289 ac_hi=-1 ac_mid=-1
2290 while :; do
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2293 $4
2294 int
2295 main ()
2296 {
2297 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2298 test_array [0] = 0;
2299 return test_array [0];
2300
2301 ;
2302 return 0;
2303 }
2304 _ACEOF
2305 if ac_fn_cxx_try_compile "$LINENO"; then :
2306 ac_lo=$ac_mid; break
2307 else
2308 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2309 if test $ac_mid -le $ac_hi; then
2310 ac_lo= ac_hi=
2311 break
2312 fi
2313 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2314 fi
2315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316 done
2317 else
2318 ac_lo= ac_hi=
2319 fi
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 fi
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 # Binary search between lo and hi bounds.
2324 while test "x$ac_lo" != "x$ac_hi"; do
2325 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2328 $4
2329 int
2330 main ()
2331 {
2332 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2333 test_array [0] = 0;
2334 return test_array [0];
2335
2336 ;
2337 return 0;
2338 }
2339 _ACEOF
2340 if ac_fn_cxx_try_compile "$LINENO"; then :
2341 ac_hi=$ac_mid
2342 else
2343 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2344 fi
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346 done
2347 case $ac_lo in #((
2348 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2349 '') ac_retval=1 ;;
2350 esac
2351 else
2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h. */
2354 $4
2355 static long int longval () { return $2; }
2356 static unsigned long int ulongval () { return $2; }
2357 #include <stdio.h>
2358 #include <stdlib.h>
2359 int
2360 main ()
2361 {
2362
2363 FILE *f = fopen ("conftest.val", "w");
2364 if (! f)
2365 return 1;
2366 if (($2) < 0)
2367 {
2368 long int i = longval ();
2369 if (i != ($2))
2370 return 1;
2371 fprintf (f, "%ld", i);
2372 }
2373 else
2374 {
2375 unsigned long int i = ulongval ();
2376 if (i != ($2))
2377 return 1;
2378 fprintf (f, "%lu", i);
2379 }
2380 /* Do not output a trailing newline, as this causes \r\n confusion
2381 on some platforms. */
2382 return ferror (f) || fclose (f) != 0;
2383
2384 ;
2385 return 0;
2386 }
2387 _ACEOF
2388 if ac_fn_cxx_try_run "$LINENO"; then :
2389 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2390 else
2391 ac_retval=1
2392 fi
2393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2394 conftest.$ac_objext conftest.beam conftest.$ac_ext
2395 rm -f conftest.val
2396
2397 fi
2398 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2399 as_fn_set_status $ac_retval
2400
2401 } # ac_fn_cxx_compute_int
2402
2403 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2404 # ---------------------------------------------
2405 # Tests whether TYPE exists after having included INCLUDES, setting cache
2406 # variable VAR accordingly.
2407 ac_fn_cxx_check_type ()
2408 {
2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 $as_echo_n "checking for $2... " >&6; }
2412 if eval \${$3+:} false; then :
2413 $as_echo_n "(cached) " >&6
2414 else
2415 eval "$3=no"
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2418 $4
2419 int
2420 main ()
2421 {
2422 if (sizeof ($2))
2423 return 0;
2424 ;
2425 return 0;
2426 }
2427 _ACEOF
2428 if ac_fn_cxx_try_compile "$LINENO"; then :
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2431 $4
2432 int
2433 main ()
2434 {
2435 if (sizeof (($2)))
2436 return 0;
2437 ;
2438 return 0;
2439 }
2440 _ACEOF
2441 if ac_fn_cxx_try_compile "$LINENO"; then :
2442
2443 else
2444 eval "$3=yes"
2445 fi
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 fi
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 fi
2450 eval ac_res=\$$3
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2452 $as_echo "$ac_res" >&6; }
2453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2454
2455 } # ac_fn_cxx_check_type
2456
2457 # ac_fn_c_find_intX_t LINENO BITS VAR
2458 # -----------------------------------
2459 # Finds a signed integer type with width BITS, setting cache variable VAR
2460 # accordingly.
2461 ac_fn_c_find_intX_t ()
2462 {
2463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2465 $as_echo_n "checking for int$2_t... " >&6; }
2466 if eval \${$3+:} false; then :
2467 $as_echo_n "(cached) " >&6
2468 else
2469 eval "$3=no"
2470 # Order is important - never check a type that is potentially smaller
2471 # than half of the expected target width.
2472 for ac_type in int$2_t 'int' 'long int' \
2473 'long long int' 'short int' 'signed char'; do
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2476 $ac_includes_default
2477 enum { N = $2 / 2 - 1 };
2478 int
2479 main ()
2480 {
2481 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2482 test_array [0] = 0;
2483 return test_array [0];
2484
2485 ;
2486 return 0;
2487 }
2488 _ACEOF
2489 if ac_fn_cxx_try_compile "$LINENO"; then :
2490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491 /* end confdefs.h. */
2492 $ac_includes_default
2493 enum { N = $2 / 2 - 1 };
2494 int
2495 main ()
2496 {
2497 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2498 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2499 test_array [0] = 0;
2500 return test_array [0];
2501
2502 ;
2503 return 0;
2504 }
2505 _ACEOF
2506 if ac_fn_cxx_try_compile "$LINENO"; then :
2507
2508 else
2509 case $ac_type in #(
2510 int$2_t) :
2511 eval "$3=yes" ;; #(
2512 *) :
2513 eval "$3=\$ac_type" ;;
2514 esac
2515 fi
2516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 fi
2518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519 if eval test \"x\$"$3"\" = x"no"; then :
2520
2521 else
2522 break
2523 fi
2524 done
2525 fi
2526 eval ac_res=\$$3
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2528 $as_echo "$ac_res" >&6; }
2529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2530
2531 } # ac_fn_c_find_intX_t
2532
2533 # ac_fn_cxx_try_link LINENO
2534 # -------------------------
2535 # Try to link conftest.$ac_ext, and return whether this succeeded.
2536 ac_fn_cxx_try_link ()
2537 {
2538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2539 rm -f conftest.$ac_objext conftest$ac_exeext
2540 if { { ac_try="$ac_link"
2541 case "(($ac_try" in
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2544 esac
2545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2546 $as_echo "$ac_try_echo"; } >&5
2547 (eval "$ac_link") 2>conftest.err
2548 ac_status=$?
2549 if test -s conftest.err; then
2550 grep -v '^ *+' conftest.err >conftest.er1
2551 cat conftest.er1 >&5
2552 mv -f conftest.er1 conftest.err
2553 fi
2554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2555 test $ac_status = 0; } && {
2556 test -z "$ac_cxx_werror_flag" ||
2557 test ! -s conftest.err
2558 } && test -s conftest$ac_exeext && {
2559 test "$cross_compiling" = yes ||
2560 test -x conftest$ac_exeext
2561 }; then :
2562 ac_retval=0
2563 else
2564 $as_echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2566
2567 ac_retval=1
2568 fi
2569 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2570 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2571 # interfere with the next link command; also delete a directory that is
2572 # left behind by Apple's compiler. We do this before executing the actions.
2573 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2575 as_fn_set_status $ac_retval
2576
2577 } # ac_fn_cxx_try_link
2578
2579 # ac_fn_c_find_uintX_t LINENO BITS VAR
2580 # ------------------------------------
2581 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2582 # accordingly.
2583 ac_fn_c_find_uintX_t ()
2584 {
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2587 $as_echo_n "checking for uint$2_t... " >&6; }
2588 if eval \${$3+:} false; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 eval "$3=no"
2592 # Order is important - never check a type that is potentially smaller
2593 # than half of the expected target width.
2594 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2595 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597 /* end confdefs.h. */
2598 $ac_includes_default
2599 int
2600 main ()
2601 {
2602 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2603 test_array [0] = 0;
2604 return test_array [0];
2605
2606 ;
2607 return 0;
2608 }
2609 _ACEOF
2610 if ac_fn_cxx_try_compile "$LINENO"; then :
2611 case $ac_type in #(
2612 uint$2_t) :
2613 eval "$3=yes" ;; #(
2614 *) :
2615 eval "$3=\$ac_type" ;;
2616 esac
2617 fi
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 if eval test \"x\$"$3"\" = x"no"; then :
2620
2621 else
2622 break
2623 fi
2624 done
2625 fi
2626 eval ac_res=\$$3
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2628 $as_echo "$ac_res" >&6; }
2629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2630
2631 } # ac_fn_c_find_uintX_t
2632
2633 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2634 # ------------------------------------------------
2635 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2636 ac_fn_cxx_check_header_preproc ()
2637 {
2638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2640 $as_echo_n "checking for $2... " >&6; }
2641 if eval \${$3+:} false; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2645 /* end confdefs.h. */
2646 #include <$2>
2647 _ACEOF
2648 if ac_fn_cxx_try_cpp "$LINENO"; then :
2649 eval "$3=yes"
2650 else
2651 eval "$3=no"
2652 fi
2653 rm -f conftest.err conftest.i conftest.$ac_ext
2654 fi
2655 eval ac_res=\$$3
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2657 $as_echo "$ac_res" >&6; }
2658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2659
2660 } # ac_fn_cxx_check_header_preproc
2661
2662 # ac_fn_cxx_check_func LINENO FUNC VAR
2663 # ------------------------------------
2664 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2665 ac_fn_cxx_check_func ()
2666 {
2667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2669 $as_echo_n "checking for $2... " >&6; }
2670 if eval \${$3+:} false; then :
2671 $as_echo_n "(cached) " >&6
2672 else
2673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2674 /* end confdefs.h. */
2675 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2677 #define $2 innocuous_$2
2678
2679 /* System header to define __stub macros and hopefully few prototypes,
2680 which can conflict with char $2 (); below.
2681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2682 <limits.h> exists even on freestanding compilers. */
2683
2684 #ifdef __STDC__
2685 # include <limits.h>
2686 #else
2687 # include <assert.h>
2688 #endif
2689
2690 #undef $2
2691
2692 /* Override any GCC internal prototype to avoid an error.
2693 Use char because int might match the return type of a GCC
2694 builtin and then its argument prototype would still apply. */
2695 #ifdef __cplusplus
2696 extern "C"
2697 #endif
2698 char $2 ();
2699 /* The GNU C library defines this for functions which it implements
2700 to always fail with ENOSYS. Some functions are actually named
2701 something starting with __ and the normal name is an alias. */
2702 #if defined __stub_$2 || defined __stub___$2
2703 choke me
2704 #endif
2705
2706 int
2707 main ()
2708 {
2709 return $2 ();
2710 ;
2711 return 0;
2712 }
2713 _ACEOF
2714 if ac_fn_cxx_try_link "$LINENO"; then :
2715 eval "$3=yes"
2716 else
2717 eval "$3=no"
2718 fi
2719 rm -f core conftest.err conftest.$ac_objext \
2720 conftest$ac_exeext conftest.$ac_ext
2721 fi
2722 eval ac_res=\$$3
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2724 $as_echo "$ac_res" >&6; }
2725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2726
2727 } # ac_fn_cxx_check_func
2728
2729 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2730 # -----------------------------------------------
2731 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2732 # accordingly.
2733 ac_fn_cxx_check_decl ()
2734 {
2735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2736 as_decl_name=`echo $2|sed 's/ *(.*//'`
2737 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2739 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2740 if eval \${$3+:} false; then :
2741 $as_echo_n "(cached) " >&6
2742 else
2743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2744 /* end confdefs.h. */
2745 $4
2746 int
2747 main ()
2748 {
2749 #ifndef $as_decl_name
2750 #ifdef __cplusplus
2751 (void) $as_decl_use;
2752 #else
2753 (void) $as_decl_name;
2754 #endif
2755 #endif
2756
2757 ;
2758 return 0;
2759 }
2760 _ACEOF
2761 if ac_fn_cxx_try_compile "$LINENO"; then :
2762 eval "$3=yes"
2763 else
2764 eval "$3=no"
2765 fi
2766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2767 fi
2768 eval ac_res=\$$3
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2770 $as_echo "$ac_res" >&6; }
2771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2772
2773 } # ac_fn_cxx_check_decl
2774
2775 # ac_fn_c_try_link LINENO
2776 # -----------------------
2777 # Try to link conftest.$ac_ext, and return whether this succeeded.
2778 ac_fn_c_try_link ()
2779 {
2780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2781 rm -f conftest.$ac_objext conftest$ac_exeext
2782 if { { ac_try="$ac_link"
2783 case "(($ac_try" in
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2786 esac
2787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2788 $as_echo "$ac_try_echo"; } >&5
2789 (eval "$ac_link") 2>conftest.err
2790 ac_status=$?
2791 if test -s conftest.err; then
2792 grep -v '^ *+' conftest.err >conftest.er1
2793 cat conftest.er1 >&5
2794 mv -f conftest.er1 conftest.err
2795 fi
2796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2797 test $ac_status = 0; } && {
2798 test -z "$ac_c_werror_flag" ||
2799 test ! -s conftest.err
2800 } && test -s conftest$ac_exeext && {
2801 test "$cross_compiling" = yes ||
2802 test -x conftest$ac_exeext
2803 }; then :
2804 ac_retval=0
2805 else
2806 $as_echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2808
2809 ac_retval=1
2810 fi
2811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2813 # interfere with the next link command; also delete a directory that is
2814 # left behind by Apple's compiler. We do this before executing the actions.
2815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2817 as_fn_set_status $ac_retval
2818
2819 } # ac_fn_c_try_link
2820
2821 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2822 # ----------------------------------------------
2823 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2824 ac_fn_c_check_header_preproc ()
2825 {
2826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2828 $as_echo_n "checking for $2... " >&6; }
2829 if eval \${$3+:} false; then :
2830 $as_echo_n "(cached) " >&6
2831 else
2832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833 /* end confdefs.h. */
2834 #include <$2>
2835 _ACEOF
2836 if ac_fn_c_try_cpp "$LINENO"; then :
2837 eval "$3=yes"
2838 else
2839 eval "$3=no"
2840 fi
2841 rm -f conftest.err conftest.i conftest.$ac_ext
2842 fi
2843 eval ac_res=\$$3
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2845 $as_echo "$ac_res" >&6; }
2846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2847
2848 } # ac_fn_c_check_header_preproc
2849
2850 # ac_fn_c_check_func LINENO FUNC VAR
2851 # ----------------------------------
2852 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2853 ac_fn_c_check_func ()
2854 {
2855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2857 $as_echo_n "checking for $2... " >&6; }
2858 if eval \${$3+:} false; then :
2859 $as_echo_n "(cached) " >&6
2860 else
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h. */
2863 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2865 #define $2 innocuous_$2
2866
2867 /* System header to define __stub macros and hopefully few prototypes,
2868 which can conflict with char $2 (); below.
2869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2870 <limits.h> exists even on freestanding compilers. */
2871
2872 #ifdef __STDC__
2873 # include <limits.h>
2874 #else
2875 # include <assert.h>
2876 #endif
2877
2878 #undef $2
2879
2880 /* Override any GCC internal prototype to avoid an error.
2881 Use char because int might match the return type of a GCC
2882 builtin and then its argument prototype would still apply. */
2883 #ifdef __cplusplus
2884 extern "C"
2885 #endif
2886 char $2 ();
2887 /* The GNU C library defines this for functions which it implements
2888 to always fail with ENOSYS. Some functions are actually named
2889 something starting with __ and the normal name is an alias. */
2890 #if defined __stub_$2 || defined __stub___$2
2891 choke me
2892 #endif
2893
2894 int
2895 main ()
2896 {
2897 return $2 ();
2898 ;
2899 return 0;
2900 }
2901 _ACEOF
2902 if ac_fn_c_try_link "$LINENO"; then :
2903 eval "$3=yes"
2904 else
2905 eval "$3=no"
2906 fi
2907 rm -f core conftest.err conftest.$ac_objext \
2908 conftest$ac_exeext conftest.$ac_ext
2909 fi
2910 eval ac_res=\$$3
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2912 $as_echo "$ac_res" >&6; }
2913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2914
2915 } # ac_fn_c_check_func
2916 cat >config.log <<_ACEOF
2917 This file contains any messages produced by compilers while
2918 running configure, to aid debugging if configure makes a mistake.
2919
2920 It was created by $as_me, which was
2921 generated by GNU Autoconf 2.69. Invocation command line was
2922
2923 $ $0 $@
2924
2925 _ACEOF
2926 exec 5>>config.log
2927 {
2928 cat <<_ASUNAME
2929 ## --------- ##
2930 ## Platform. ##
2931 ## --------- ##
2932
2933 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2934 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2935 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2936 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2937 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2938
2939 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2940 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2941
2942 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2943 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2944 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2945 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2946 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2947 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2948 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2949
2950 _ASUNAME
2951
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 $as_echo "PATH: $as_dir"
2958 done
2959 IFS=$as_save_IFS
2960
2961 } >&5
2962
2963 cat >&5 <<_ACEOF
2964
2965
2966 ## ----------- ##
2967 ## Core tests. ##
2968 ## ----------- ##
2969
2970 _ACEOF
2971
2972
2973 # Keep a trace of the command line.
2974 # Strip out --no-create and --no-recursion so they do not pile up.
2975 # Strip out --silent because we don't want to record it for future runs.
2976 # Also quote any args containing shell meta-characters.
2977 # Make two passes to allow for proper duplicate-argument suppression.
2978 ac_configure_args=
2979 ac_configure_args0=
2980 ac_configure_args1=
2981 ac_must_keep_next=false
2982 for ac_pass in 1 2
2983 do
2984 for ac_arg
2985 do
2986 case $ac_arg in
2987 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2988 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2989 | -silent | --silent | --silen | --sile | --sil)
2990 continue ;;
2991 *\'*)
2992 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2993 esac
2994 case $ac_pass in
2995 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2996 2)
2997 as_fn_append ac_configure_args1 " '$ac_arg'"
2998 if test $ac_must_keep_next = true; then
2999 ac_must_keep_next=false # Got value, back to normal.
3000 else
3001 case $ac_arg in
3002 *=* | --config-cache | -C | -disable-* | --disable-* \
3003 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3004 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3005 | -with-* | --with-* | -without-* | --without-* | --x)
3006 case "$ac_configure_args0 " in
3007 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3008 esac
3009 ;;
3010 -* ) ac_must_keep_next=true ;;
3011 esac
3012 fi
3013 as_fn_append ac_configure_args " '$ac_arg'"
3014 ;;
3015 esac
3016 done
3017 done
3018 { ac_configure_args0=; unset ac_configure_args0;}
3019 { ac_configure_args1=; unset ac_configure_args1;}
3020
3021 # When interrupted or exit'd, cleanup temporary files, and complete
3022 # config.log. We remove comments because anyway the quotes in there
3023 # would cause problems or look ugly.
3024 # WARNING: Use '\'' to represent an apostrophe within the trap.
3025 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3026 trap 'exit_status=$?
3027 # Save into config.log some information that might help in debugging.
3028 {
3029 echo
3030
3031 $as_echo "## ---------------- ##
3032 ## Cache variables. ##
3033 ## ---------------- ##"
3034 echo
3035 # The following way of writing the cache mishandles newlines in values,
3036 (
3037 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3038 eval ac_val=\$$ac_var
3039 case $ac_val in #(
3040 *${as_nl}*)
3041 case $ac_var in #(
3042 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3043 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3044 esac
3045 case $ac_var in #(
3046 _ | IFS | as_nl) ;; #(
3047 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3048 *) { eval $ac_var=; unset $ac_var;} ;;
3049 esac ;;
3050 esac
3051 done
3052 (set) 2>&1 |
3053 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3054 *${as_nl}ac_space=\ *)
3055 sed -n \
3056 "s/'\''/'\''\\\\'\'''\''/g;
3057 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3058 ;; #(
3059 *)
3060 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3061 ;;
3062 esac |
3063 sort
3064 )
3065 echo
3066
3067 $as_echo "## ----------------- ##
3068 ## Output variables. ##
3069 ## ----------------- ##"
3070 echo
3071 for ac_var in $ac_subst_vars
3072 do
3073 eval ac_val=\$$ac_var
3074 case $ac_val in
3075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3076 esac
3077 $as_echo "$ac_var='\''$ac_val'\''"
3078 done | sort
3079 echo
3080
3081 if test -n "$ac_subst_files"; then
3082 $as_echo "## ------------------- ##
3083 ## File substitutions. ##
3084 ## ------------------- ##"
3085 echo
3086 for ac_var in $ac_subst_files
3087 do
3088 eval ac_val=\$$ac_var
3089 case $ac_val in
3090 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3091 esac
3092 $as_echo "$ac_var='\''$ac_val'\''"
3093 done | sort
3094 echo
3095 fi
3096
3097 if test -s confdefs.h; then
3098 $as_echo "## ----------- ##
3099 ## confdefs.h. ##
3100 ## ----------- ##"
3101 echo
3102 cat confdefs.h
3103 echo
3104 fi
3105 test "$ac_signal" != 0 &&
3106 $as_echo "$as_me: caught signal $ac_signal"
3107 $as_echo "$as_me: exit $exit_status"
3108 } >&5
3109 rm -f core *.core core.conftest.* &&
3110 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3111 exit $exit_status
3112 ' 0
3113 for ac_signal in 1 2 13 15; do
3114 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3115 done
3116 ac_signal=0
3117
3118 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3119 rm -f -r conftest* confdefs.h
3120
3121 $as_echo "/* confdefs.h */" > confdefs.h
3122
3123 # Predefined preprocessor variables.
3124
3125 cat >>confdefs.h <<_ACEOF
3126 #define PACKAGE_NAME "$PACKAGE_NAME"
3127 _ACEOF
3128
3129 cat >>confdefs.h <<_ACEOF
3130 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3131 _ACEOF
3132
3133 cat >>confdefs.h <<_ACEOF
3134 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3135 _ACEOF
3136
3137 cat >>confdefs.h <<_ACEOF
3138 #define PACKAGE_STRING "$PACKAGE_STRING"
3139 _ACEOF
3140
3141 cat >>confdefs.h <<_ACEOF
3142 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3143 _ACEOF
3144
3145 cat >>confdefs.h <<_ACEOF
3146 #define PACKAGE_URL "$PACKAGE_URL"
3147 _ACEOF
3148
3149
3150 # Let the site file select an alternate cache file if it wants to.
3151 # Prefer an explicitly selected file to automatically selected ones.
3152 ac_site_file1=NONE
3153 ac_site_file2=NONE
3154 if test -n "$CONFIG_SITE"; then
3155 # We do not want a PATH search for config.site.
3156 case $CONFIG_SITE in #((
3157 -*) ac_site_file1=./$CONFIG_SITE;;
3158 */*) ac_site_file1=$CONFIG_SITE;;
3159 *) ac_site_file1=./$CONFIG_SITE;;
3160 esac
3161 elif test "x$prefix" != xNONE; then
3162 ac_site_file1=$prefix/share/config.site
3163 ac_site_file2=$prefix/etc/config.site
3164 else
3165 ac_site_file1=$ac_default_prefix/share/config.site
3166 ac_site_file2=$ac_default_prefix/etc/config.site
3167 fi
3168 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3169 do
3170 test "x$ac_site_file" = xNONE && continue
3171 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3173 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3174 sed 's/^/| /' "$ac_site_file" >&5
3175 . "$ac_site_file" \
3176 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error $? "failed to load site script $ac_site_file
3179 See \`config.log' for more details" "$LINENO" 5; }
3180 fi
3181 done
3182
3183 if test -r "$cache_file"; then
3184 # Some versions of bash will fail to source /dev/null (special files
3185 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3186 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3188 $as_echo "$as_me: loading cache $cache_file" >&6;}
3189 case $cache_file in
3190 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3191 *) . "./$cache_file";;
3192 esac
3193 fi
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3196 $as_echo "$as_me: creating cache $cache_file" >&6;}
3197 >$cache_file
3198 fi
3199
3200 # Check that the precious variables saved in the cache have kept the same
3201 # value.
3202 ac_cache_corrupted=false
3203 for ac_var in $ac_precious_vars; do
3204 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3205 eval ac_new_set=\$ac_env_${ac_var}_set
3206 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3207 eval ac_new_val=\$ac_env_${ac_var}_value
3208 case $ac_old_set,$ac_new_set in
3209 set,)
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3211 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3212 ac_cache_corrupted=: ;;
3213 ,set)
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3215 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3216 ac_cache_corrupted=: ;;
3217 ,);;
3218 *)
3219 if test "x$ac_old_val" != "x$ac_new_val"; then
3220 # differences in whitespace do not lead to failure.
3221 ac_old_val_w=`echo x $ac_old_val`
3222 ac_new_val_w=`echo x $ac_new_val`
3223 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3225 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3226 ac_cache_corrupted=:
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3229 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3230 eval $ac_var=\$ac_old_val
3231 fi
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3233 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3235 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3236 fi;;
3237 esac
3238 # Pass precious variables to config.status.
3239 if test "$ac_new_set" = set; then
3240 case $ac_new_val in
3241 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3242 *) ac_arg=$ac_var=$ac_new_val ;;
3243 esac
3244 case " $ac_configure_args " in
3245 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3246 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3247 esac
3248 fi
3249 done
3250 if $ac_cache_corrupted; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3254 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3255 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3256 fi
3257 ## -------------------- ##
3258 ## Main body of script. ##
3259 ## -------------------- ##
3260
3261 ac_ext=c
3262 ac_cpp='$CPP $CPPFLAGS'
3263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3266
3267
3268
3269
3270
3271
3272 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3273
3274
3275 gcc_version=`cat $srcdir/BASE-VER`
3276
3277 # Determine the host, build, and target systems
3278 ac_aux_dir=
3279 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3280 if test -f "$ac_dir/install-sh"; then
3281 ac_aux_dir=$ac_dir
3282 ac_install_sh="$ac_aux_dir/install-sh -c"
3283 break
3284 elif test -f "$ac_dir/install.sh"; then
3285 ac_aux_dir=$ac_dir
3286 ac_install_sh="$ac_aux_dir/install.sh -c"
3287 break
3288 elif test -f "$ac_dir/shtool"; then
3289 ac_aux_dir=$ac_dir
3290 ac_install_sh="$ac_aux_dir/shtool install -c"
3291 break
3292 fi
3293 done
3294 if test -z "$ac_aux_dir"; then
3295 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3296 fi
3297
3298 # These three variables are undocumented and unsupported,
3299 # and are intended to be withdrawn in a future Autoconf release.
3300 # They can cause serious problems if a builder's source tree is in a directory
3301 # whose full name contains unusual characters.
3302 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3303 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3304 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3305
3306
3307 # Make sure we can run config.sub.
3308 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3309 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3310
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3312 $as_echo_n "checking build system type... " >&6; }
3313 if ${ac_cv_build+:} false; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 ac_build_alias=$build_alias
3317 test "x$ac_build_alias" = x &&
3318 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3319 test "x$ac_build_alias" = x &&
3320 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3321 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3322 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3323
3324 fi
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3326 $as_echo "$ac_cv_build" >&6; }
3327 case $ac_cv_build in
3328 *-*-*) ;;
3329 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3330 esac
3331 build=$ac_cv_build
3332 ac_save_IFS=$IFS; IFS='-'
3333 set x $ac_cv_build
3334 shift
3335 build_cpu=$1
3336 build_vendor=$2
3337 shift; shift
3338 # Remember, the first character of IFS is used to create $*,
3339 # except with old shells:
3340 build_os=$*
3341 IFS=$ac_save_IFS
3342 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3343
3344
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3346 $as_echo_n "checking host system type... " >&6; }
3347 if ${ac_cv_host+:} false; then :
3348 $as_echo_n "(cached) " >&6
3349 else
3350 if test "x$host_alias" = x; then
3351 ac_cv_host=$ac_cv_build
3352 else
3353 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3354 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3355 fi
3356
3357 fi
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3359 $as_echo "$ac_cv_host" >&6; }
3360 case $ac_cv_host in
3361 *-*-*) ;;
3362 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3363 esac
3364 host=$ac_cv_host
3365 ac_save_IFS=$IFS; IFS='-'
3366 set x $ac_cv_host
3367 shift
3368 host_cpu=$1
3369 host_vendor=$2
3370 shift; shift
3371 # Remember, the first character of IFS is used to create $*,
3372 # except with old shells:
3373 host_os=$*
3374 IFS=$ac_save_IFS
3375 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3376
3377
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3379 $as_echo_n "checking target system type... " >&6; }
3380 if ${ac_cv_target+:} false; then :
3381 $as_echo_n "(cached) " >&6
3382 else
3383 if test "x$target_alias" = x; then
3384 ac_cv_target=$ac_cv_host
3385 else
3386 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3388 fi
3389
3390 fi
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3392 $as_echo "$ac_cv_target" >&6; }
3393 case $ac_cv_target in
3394 *-*-*) ;;
3395 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3396 esac
3397 target=$ac_cv_target
3398 ac_save_IFS=$IFS; IFS='-'
3399 set x $ac_cv_target
3400 shift
3401 target_cpu=$1
3402 target_vendor=$2
3403 shift; shift
3404 # Remember, the first character of IFS is used to create $*,
3405 # except with old shells:
3406 target_os=$*
3407 IFS=$ac_save_IFS
3408 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3409
3410
3411 # The aliases save the names the user supplied, while $host etc.
3412 # will get canonicalized.
3413 test -n "$target_alias" &&
3414 test "$program_prefix$program_suffix$program_transform_name" = \
3415 NONENONEs,x,x, &&
3416 program_prefix=${target_alias}-
3417
3418 # Determine the noncanonical host name, for Ada.
3419 case ${build_alias} in
3420 "") build_noncanonical=${build} ;;
3421 *) build_noncanonical=${build_alias} ;;
3422 esac
3423
3424 case ${host_alias} in
3425 "") host_noncanonical=${build_noncanonical} ;;
3426 *) host_noncanonical=${host_alias} ;;
3427 esac
3428
3429
3430
3431
3432 # Determine the noncanonical target name, for directory use.
3433 case ${target_alias} in
3434 "") target_noncanonical=${host_noncanonical} ;;
3435 *) target_noncanonical=${target_alias} ;;
3436 esac
3437
3438
3439
3440
3441 # Used for constructing correct paths for offload compilers.
3442 real_target_noncanonical=${target_noncanonical}
3443 accel_dir_suffix=
3444
3445 # Determine the target- and build-specific subdirectories
3446
3447 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3448 # have matching libraries, they should use host libraries: Makefile.tpl
3449 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3450 # However, they still use the build modules, because the corresponding
3451 # host modules (e.g. bison) are only built for the host when bootstrap
3452 # finishes. So:
3453 # - build_subdir is where we find build modules, and never changes.
3454 # - build_libsubdir is where we find build libraries, and can be overridden.
3455
3456 # Prefix 'build-' so this never conflicts with target_subdir.
3457 build_subdir="build-${build_noncanonical}"
3458
3459 # Check whether --with-build-libsubdir was given.
3460 if test "${with_build_libsubdir+set}" = set; then :
3461 withval=$with_build_libsubdir; build_libsubdir="$withval"
3462 else
3463 build_libsubdir="$build_subdir"
3464 fi
3465
3466 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3467 if ( test $srcdir = . && test -d gcc ) \
3468 || test -d $srcdir/../host-${host_noncanonical}; then
3469 host_subdir="host-${host_noncanonical}"
3470 else
3471 host_subdir=.
3472 fi
3473 # No prefix.
3474 target_subdir=${target_noncanonical}
3475
3476
3477 # Set program_transform_name
3478 test "$program_prefix" != NONE &&
3479 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3480 # Use a double $ so make ignores it.
3481 test "$program_suffix" != NONE &&
3482 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3483 # Double any \ or $.
3484 # By default was `s,x,x', remove it if useless.
3485 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3486 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3487
3488
3489 # Check for bogus environment variables.
3490 # Test if LIBRARY_PATH contains the notation for the current directory
3491 # since this would lead to problems installing/building glibc.
3492 # LIBRARY_PATH contains the current directory if one of the following
3493 # is true:
3494 # - one of the terminals (":" and ";") is the first or last sign
3495 # - two terminals occur directly after each other
3496 # - the path contains an element with a dot in it
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3498 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3499 case ${LIBRARY_PATH} in
3500 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3501 library_path_setting="contains current directory"
3502 ;;
3503 *)
3504 library_path_setting="ok"
3505 ;;
3506 esac
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3508 $as_echo "$library_path_setting" >&6; }
3509 if test "$library_path_setting" != "ok"; then
3510 as_fn_error $? "
3511 *** LIBRARY_PATH shouldn't contain the current directory when
3512 *** building gcc. Please change the environment variable
3513 *** and run configure again." "$LINENO" 5
3514 fi
3515
3516 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3517 # since this would lead to problems installing/building glibc.
3518 # GCC_EXEC_PREFIX contains the current directory if one of the following
3519 # is true:
3520 # - one of the terminals (":" and ";") is the first or last sign
3521 # - two terminals occur directly after each other
3522 # - the path contains an element with a dot in it
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3524 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3525 case ${GCC_EXEC_PREFIX} in
3526 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3527 gcc_exec_prefix_setting="contains current directory"
3528 ;;
3529 *)
3530 gcc_exec_prefix_setting="ok"
3531 ;;
3532 esac
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3534 $as_echo "$gcc_exec_prefix_setting" >&6; }
3535 if test "$gcc_exec_prefix_setting" != "ok"; then
3536 as_fn_error $? "
3537 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3538 *** building gcc. Please change the environment variable
3539 *** and run configure again." "$LINENO" 5
3540 fi
3541
3542 # -----------
3543 # Directories
3544 # -----------
3545
3546 # Specify the local prefix
3547 local_prefix=
3548
3549 # Check whether --with-local-prefix was given.
3550 if test "${with_local_prefix+set}" = set; then :
3551 withval=$with_local_prefix; case "${withval}" in
3552 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3553 no) ;;
3554 *) local_prefix=$with_local_prefix ;;
3555 esac
3556 fi
3557
3558
3559 # Default local prefix if it is empty
3560 if test x$local_prefix = x; then
3561 local_prefix=/usr/local
3562 fi
3563
3564
3565 # Check whether --with-native-system-header-dir was given.
3566 if test "${with_native_system_header_dir+set}" = set; then :
3567 withval=$with_native_system_header_dir;
3568 case ${with_native_system_header_dir} in
3569 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3570 /* | [A-Za-z]:[\\/]*) ;;
3571 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3572 esac
3573 configured_native_system_header_dir="${withval}"
3574
3575 else
3576 configured_native_system_header_dir=
3577 fi
3578
3579
3580
3581 # Check whether --with-build-sysroot was given.
3582 if test "${with_build_sysroot+set}" = set; then :
3583 withval=$with_build_sysroot; if test x"$withval" != x ; then
3584 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3585 fi
3586 else
3587 SYSROOT_CFLAGS_FOR_TARGET=
3588 fi
3589
3590
3591
3592 if test "x$prefix" = xNONE; then
3593 test_prefix=/usr/local
3594 else
3595 test_prefix=$prefix
3596 fi
3597 if test "x$exec_prefix" = xNONE; then
3598 test_exec_prefix=$test_prefix
3599 else
3600 test_exec_prefix=$exec_prefix
3601 fi
3602
3603
3604 # Check whether --with-sysroot was given.
3605 if test "${with_sysroot+set}" = set; then :
3606 withval=$with_sysroot;
3607 case ${with_sysroot} in
3608 /) ;;
3609 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3610 esac
3611 case ${with_sysroot} in
3612 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3613 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3614 esac
3615
3616 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3617 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3618
3619 case ${TARGET_SYSTEM_ROOT} in
3620 "${test_prefix}"|"${test_prefix}/"*|\
3621 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3622 '${prefix}'|'${prefix}/'*|\
3623 '${exec_prefix}'|'${exec_prefix}/'*)
3624 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3625 TARGET_SYSTEM_ROOT_DEFINE="$t"
3626 ;;
3627 esac
3628
3629 else
3630
3631 TARGET_SYSTEM_ROOT=
3632 TARGET_SYSTEM_ROOT_DEFINE=
3633 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3634
3635 fi
3636
3637
3638
3639
3640
3641 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3642 # passed in by the toplevel make and thus we'd get different behavior
3643 # depending on where we built the sources.
3644 gcc_gxx_include_dir=
3645 # Specify the g++ header file directory
3646
3647 # Check whether --with-gxx-include-dir was given.
3648 if test "${with_gxx_include_dir+set}" = set; then :
3649 withval=$with_gxx_include_dir; case "${withval}" in
3650 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3651 no) ;;
3652 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3653 esac
3654 fi
3655
3656
3657 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3658 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3659 # relative to the sysroot.
3660 gcc_gxx_include_dir_add_sysroot=0
3661
3662 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3663 if test x${gcc_gxx_include_dir} = x; then
3664 if test x${enable_version_specific_runtime_libs} = xyes; then
3665 gcc_gxx_include_dir='${libsubdir}/include/c++'
3666 else
3667 libstdcxx_incdir='include/c++/$(version)'
3668 if test x$host != x$target; then
3669 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3670 fi
3671 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3672 fi
3673 elif test "${with_sysroot+set}" = set; then
3674 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3675 if test "${gcc_gxx_without_sysroot}"; then
3676 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3677 gcc_gxx_include_dir_add_sysroot=1
3678 fi
3679 fi
3680
3681
3682 # Check whether --with-cpp_install_dir was given.
3683 if test "${with_cpp_install_dir+set}" = set; then :
3684 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3685 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3686 elif test x$withval != xno; then
3687 cpp_install_dir=$withval
3688 fi
3689 fi
3690
3691
3692 # We would like to our source tree to be readonly. However when releases or
3693 # pre-releases are generated, the flex/bison generated files as well as the
3694 # various formats of manuals need to be included along with the rest of the
3695 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3696 # just that.
3697
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3699 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3700 # Check whether --enable-generated-files-in-srcdir was given.
3701 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3702 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3703 else
3704 generated_files_in_srcdir=no
3705 fi
3706
3707
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3709 $as_echo "$generated_files_in_srcdir" >&6; }
3710
3711 if test "$generated_files_in_srcdir" = "yes"; then
3712 GENINSRC=''
3713 else
3714 GENINSRC='#'
3715 fi
3716
3717
3718 # -------------------
3719 # Find default linker
3720 # -------------------
3721
3722 # With GNU ld
3723
3724 # Check whether --with-gnu-ld was given.
3725 if test "${with_gnu_ld+set}" = set; then :
3726 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3727 else
3728 gnu_ld_flag=no
3729 fi
3730
3731
3732 case $target in
3733 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3734 *) ld64_flag=no;;
3735 esac
3736
3737 # With pre-defined ld
3738
3739 # Check whether --with-ld was given.
3740 if test "${with_ld+set}" = set; then :
3741 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3742 fi
3743
3744 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3745 if test ! -x "$DEFAULT_LINKER"; then
3746 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3747 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3748 gnu_ld_flag=yes
3749 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3750 ld64_flag=yes
3751 fi
3752
3753 cat >>confdefs.h <<_ACEOF
3754 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3755 _ACEOF
3756
3757 fi
3758
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3760 $as_echo_n "checking whether a default linker was specified... " >&6; }
3761 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3762 if test x"$gnu_ld_flag" = x"no"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3764 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3765 else
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3767 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3768 fi
3769 else
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 $as_echo "no" >&6; }
3772 fi
3773
3774 # With demangler in GNU ld
3775
3776 # Check whether --with-demangler-in-ld was given.
3777 if test "${with_demangler_in_ld+set}" = set; then :
3778 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3779 else
3780 demangler_in_ld=yes
3781 fi
3782
3783
3784 # ----------------------
3785 # Find default assembler
3786 # ----------------------
3787
3788 # With GNU as
3789
3790 # Check whether --with-gnu-as was given.
3791 if test "${with_gnu_as+set}" = set; then :
3792 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3793 else
3794 gas_flag=no
3795 fi
3796
3797
3798
3799 # Check whether --with-as was given.
3800 if test "${with_as+set}" = set; then :
3801 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3802 fi
3803
3804 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3805 if test ! -x "$DEFAULT_ASSEMBLER"; then
3806 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3807 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3808 gas_flag=yes
3809 fi
3810
3811 cat >>confdefs.h <<_ACEOF
3812 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3813 _ACEOF
3814
3815 fi
3816
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3818 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3819 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3820 if test x"$gas_flag" = x"no"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3822 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3823 else
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3825 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3826 fi
3827 else
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3830 fi
3831
3832 # ---------------
3833 # Find C compiler
3834 # ---------------
3835
3836 # If a non-executable a.out is present (e.g. created by GNU as above even if
3837 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3838 # file, even when creating an executable, so an execution test fails.
3839 # Remove possible default executable files to avoid this.
3840 #
3841 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3842 # Autoconf includes it.
3843 rm -f a.out a.exe b.out
3844
3845 # Find the native compiler
3846 ac_ext=c
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851 if test -n "$ac_tool_prefix"; then
3852 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3853 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if ${ac_cv_prog_CC+:} false; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 if test -n "$CC"; then
3860 ac_cv_prog_CC="$CC" # Let the user override the test.
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3864 do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3869 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 break 2
3872 fi
3873 done
3874 done
3875 IFS=$as_save_IFS
3876
3877 fi
3878 fi
3879 CC=$ac_cv_prog_CC
3880 if test -n "$CC"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3882 $as_echo "$CC" >&6; }
3883 else
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3886 fi
3887
3888
3889 fi
3890 if test -z "$ac_cv_prog_CC"; then
3891 ac_ct_CC=$CC
3892 # Extract the first word of "gcc", so it can be a program name with args.
3893 set dummy gcc; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3897 $as_echo_n "(cached) " >&6
3898 else
3899 if test -n "$ac_ct_CC"; then
3900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_ac_ct_CC="gcc"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3912 fi
3913 done
3914 done
3915 IFS=$as_save_IFS
3916
3917 fi
3918 fi
3919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3920 if test -n "$ac_ct_CC"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3922 $as_echo "$ac_ct_CC" >&6; }
3923 else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3926 fi
3927
3928 if test "x$ac_ct_CC" = x; then
3929 CC=""
3930 else
3931 case $cross_compiling:$ac_tool_warned in
3932 yes:)
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3935 ac_tool_warned=yes ;;
3936 esac
3937 CC=$ac_ct_CC
3938 fi
3939 else
3940 CC="$ac_cv_prog_CC"
3941 fi
3942
3943 if test -z "$CC"; then
3944 if test -n "$ac_tool_prefix"; then
3945 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3946 set dummy ${ac_tool_prefix}cc; ac_word=$2
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 $as_echo_n "checking for $ac_word... " >&6; }
3949 if ${ac_cv_prog_CC+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 if test -n "$CC"; then
3953 ac_cv_prog_CC="$CC" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962 ac_cv_prog_CC="${ac_tool_prefix}cc"
3963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 break 2
3965 fi
3966 done
3967 done
3968 IFS=$as_save_IFS
3969
3970 fi
3971 fi
3972 CC=$ac_cv_prog_CC
3973 if test -n "$CC"; then
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3975 $as_echo "$CC" >&6; }
3976 else
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3979 fi
3980
3981
3982 fi
3983 fi
3984 if test -z "$CC"; then
3985 # Extract the first word of "cc", so it can be a program name with args.
3986 set dummy cc; ac_word=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if ${ac_cv_prog_CC+:} false; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 if test -n "$CC"; then
3993 ac_cv_prog_CC="$CC" # Let the user override the test.
3994 else
3995 ac_prog_rejected=no
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3998 do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4003 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4004 ac_prog_rejected=yes
4005 continue
4006 fi
4007 ac_cv_prog_CC="cc"
4008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 break 2
4010 fi
4011 done
4012 done
4013 IFS=$as_save_IFS
4014
4015 if test $ac_prog_rejected = yes; then
4016 # We found a bogon in the path, so make sure we never use it.
4017 set dummy $ac_cv_prog_CC
4018 shift
4019 if test $# != 0; then
4020 # We chose a different compiler from the bogus one.
4021 # However, it has the same basename, so the bogon will be chosen
4022 # first if we set CC to just the basename; use the full file name.
4023 shift
4024 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4025 fi
4026 fi
4027 fi
4028 fi
4029 CC=$ac_cv_prog_CC
4030 if test -n "$CC"; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4032 $as_echo "$CC" >&6; }
4033 else
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4036 fi
4037
4038
4039 fi
4040 if test -z "$CC"; then
4041 if test -n "$ac_tool_prefix"; then
4042 for ac_prog in cl.exe
4043 do
4044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if ${ac_cv_prog_CC+:} false; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 if test -n "$CC"; then
4052 ac_cv_prog_CC="$CC" # Let the user override the test.
4053 else
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH
4056 do
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 break 2
4064 fi
4065 done
4066 done
4067 IFS=$as_save_IFS
4068
4069 fi
4070 fi
4071 CC=$ac_cv_prog_CC
4072 if test -n "$CC"; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4074 $as_echo "$CC" >&6; }
4075 else
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4078 fi
4079
4080
4081 test -n "$CC" && break
4082 done
4083 fi
4084 if test -z "$CC"; then
4085 ac_ct_CC=$CC
4086 for ac_prog in cl.exe
4087 do
4088 # Extract the first word of "$ac_prog", so it can be a program name with args.
4089 set dummy $ac_prog; ac_word=$2
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4091 $as_echo_n "checking for $ac_word... " >&6; }
4092 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4093 $as_echo_n "(cached) " >&6
4094 else
4095 if test -n "$ac_ct_CC"; then
4096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4097 else
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH
4100 do
4101 IFS=$as_save_IFS
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105 ac_cv_prog_ac_ct_CC="$ac_prog"
4106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 break 2
4108 fi
4109 done
4110 done
4111 IFS=$as_save_IFS
4112
4113 fi
4114 fi
4115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4116 if test -n "$ac_ct_CC"; then
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4118 $as_echo "$ac_ct_CC" >&6; }
4119 else
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121 $as_echo "no" >&6; }
4122 fi
4123
4124
4125 test -n "$ac_ct_CC" && break
4126 done
4127
4128 if test "x$ac_ct_CC" = x; then
4129 CC=""
4130 else
4131 case $cross_compiling:$ac_tool_warned in
4132 yes:)
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4135 ac_tool_warned=yes ;;
4136 esac
4137 CC=$ac_ct_CC
4138 fi
4139 fi
4140
4141 fi
4142
4143
4144 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4146 as_fn_error $? "no acceptable C compiler found in \$PATH
4147 See \`config.log' for more details" "$LINENO" 5; }
4148
4149 # Provide some information about the compiler.
4150 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4151 set X $ac_compile
4152 ac_compiler=$2
4153 for ac_option in --version -v -V -qversion; do
4154 { { ac_try="$ac_compiler $ac_option >&5"
4155 case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158 esac
4159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4160 $as_echo "$ac_try_echo"; } >&5
4161 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4162 ac_status=$?
4163 if test -s conftest.err; then
4164 sed '10a\
4165 ... rest of stderr output deleted ...
4166 10q' conftest.err >conftest.er1
4167 cat conftest.er1 >&5
4168 fi
4169 rm -f conftest.er1 conftest.err
4170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4171 test $ac_status = 0; }
4172 done
4173
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4176
4177 int
4178 main ()
4179 {
4180
4181 ;
4182 return 0;
4183 }
4184 _ACEOF
4185 ac_clean_files_save=$ac_clean_files
4186 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4187 # Try to create an executable without -o first, disregard a.out.
4188 # It will help us diagnose broken compilers, and finding out an intuition
4189 # of exeext.
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4191 $as_echo_n "checking whether the C compiler works... " >&6; }
4192 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4193
4194 # The possible output files:
4195 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4196
4197 ac_rmfiles=
4198 for ac_file in $ac_files
4199 do
4200 case $ac_file in
4201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4202 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4203 esac
4204 done
4205 rm -f $ac_rmfiles
4206
4207 if { { ac_try="$ac_link_default"
4208 case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211 esac
4212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4213 $as_echo "$ac_try_echo"; } >&5
4214 (eval "$ac_link_default") 2>&5
4215 ac_status=$?
4216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4217 test $ac_status = 0; }; then :
4218 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4219 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4220 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4221 # so that the user can short-circuit this test for compilers unknown to
4222 # Autoconf.
4223 for ac_file in $ac_files ''
4224 do
4225 test -f "$ac_file" || continue
4226 case $ac_file in
4227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4228 ;;
4229 [ab].out )
4230 # We found the default executable, but exeext='' is most
4231 # certainly right.
4232 break;;
4233 *.* )
4234 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4235 then :; else
4236 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4237 fi
4238 # We set ac_cv_exeext here because the later test for it is not
4239 # safe: cross compilers may not add the suffix if given an `-o'
4240 # argument, so we may need to know it at that point already.
4241 # Even if this section looks crufty: it has the advantage of
4242 # actually working.
4243 break;;
4244 * )
4245 break;;
4246 esac
4247 done
4248 test "$ac_cv_exeext" = no && ac_cv_exeext=
4249
4250 else
4251 ac_file=''
4252 fi
4253 if test -z "$ac_file"; then :
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4256 $as_echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4258
4259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4261 as_fn_error 77 "C compiler cannot create executables
4262 See \`config.log' for more details" "$LINENO" 5; }
4263 else
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4265 $as_echo "yes" >&6; }
4266 fi
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4268 $as_echo_n "checking for C compiler default output file name... " >&6; }
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4270 $as_echo "$ac_file" >&6; }
4271 ac_exeext=$ac_cv_exeext
4272
4273 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4274 ac_clean_files=$ac_clean_files_save
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4276 $as_echo_n "checking for suffix of executables... " >&6; }
4277 if { { ac_try="$ac_link"
4278 case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281 esac
4282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4283 $as_echo "$ac_try_echo"; } >&5
4284 (eval "$ac_link") 2>&5
4285 ac_status=$?
4286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287 test $ac_status = 0; }; then :
4288 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4289 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4290 # work properly (i.e., refer to `conftest.exe'), while it won't with
4291 # `rm'.
4292 for ac_file in conftest.exe conftest conftest.*; do
4293 test -f "$ac_file" || continue
4294 case $ac_file in
4295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4296 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4297 break;;
4298 * ) break;;
4299 esac
4300 done
4301 else
4302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4304 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4305 See \`config.log' for more details" "$LINENO" 5; }
4306 fi
4307 rm -f conftest conftest$ac_cv_exeext
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4309 $as_echo "$ac_cv_exeext" >&6; }
4310
4311 rm -f conftest.$ac_ext
4312 EXEEXT=$ac_cv_exeext
4313 ac_exeext=$EXEEXT
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316 #include <stdio.h>
4317 int
4318 main ()
4319 {
4320 FILE *f = fopen ("conftest.out", "w");
4321 return ferror (f) || fclose (f) != 0;
4322
4323 ;
4324 return 0;
4325 }
4326 _ACEOF
4327 ac_clean_files="$ac_clean_files conftest.out"
4328 # Check that the compiler produces executables we can run. If not, either
4329 # the compiler is broken, or we cross compile.
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4331 $as_echo_n "checking whether we are cross compiling... " >&6; }
4332 if test "$cross_compiling" != yes; then
4333 { { ac_try="$ac_link"
4334 case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337 esac
4338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4339 $as_echo "$ac_try_echo"; } >&5
4340 (eval "$ac_link") 2>&5
4341 ac_status=$?
4342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4343 test $ac_status = 0; }
4344 if { ac_try='./conftest$ac_cv_exeext'
4345 { { case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348 esac
4349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4350 $as_echo "$ac_try_echo"; } >&5
4351 (eval "$ac_try") 2>&5
4352 ac_status=$?
4353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354 test $ac_status = 0; }; }; then
4355 cross_compiling=no
4356 else
4357 if test "$cross_compiling" = maybe; then
4358 cross_compiling=yes
4359 else
4360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4362 as_fn_error $? "cannot run C compiled programs.
4363 If you meant to cross compile, use \`--host'.
4364 See \`config.log' for more details" "$LINENO" 5; }
4365 fi
4366 fi
4367 fi
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4369 $as_echo "$cross_compiling" >&6; }
4370
4371 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4372 ac_clean_files=$ac_clean_files_save
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4374 $as_echo_n "checking for suffix of object files... " >&6; }
4375 if ${ac_cv_objext+:} false; then :
4376 $as_echo_n "(cached) " >&6
4377 else
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4380
4381 int
4382 main ()
4383 {
4384
4385 ;
4386 return 0;
4387 }
4388 _ACEOF
4389 rm -f conftest.o conftest.obj
4390 if { { ac_try="$ac_compile"
4391 case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4394 esac
4395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396 $as_echo "$ac_try_echo"; } >&5
4397 (eval "$ac_compile") 2>&5
4398 ac_status=$?
4399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400 test $ac_status = 0; }; then :
4401 for ac_file in conftest.o conftest.obj conftest.*; do
4402 test -f "$ac_file" || continue;
4403 case $ac_file in
4404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4405 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4406 break;;
4407 esac
4408 done
4409 else
4410 $as_echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4412
4413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4415 as_fn_error $? "cannot compute suffix of object files: cannot compile
4416 See \`config.log' for more details" "$LINENO" 5; }
4417 fi
4418 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4421 $as_echo "$ac_cv_objext" >&6; }
4422 OBJEXT=$ac_cv_objext
4423 ac_objext=$OBJEXT
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4425 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4426 if ${ac_cv_c_compiler_gnu+:} false; then :
4427 $as_echo_n "(cached) " >&6
4428 else
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4431
4432 int
4433 main ()
4434 {
4435 #ifndef __GNUC__
4436 choke me
4437 #endif
4438
4439 ;
4440 return 0;
4441 }
4442 _ACEOF
4443 if ac_fn_c_try_compile "$LINENO"; then :
4444 ac_compiler_gnu=yes
4445 else
4446 ac_compiler_gnu=no
4447 fi
4448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4450
4451 fi
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4453 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4454 if test $ac_compiler_gnu = yes; then
4455 GCC=yes
4456 else
4457 GCC=
4458 fi
4459 ac_test_CFLAGS=${CFLAGS+set}
4460 ac_save_CFLAGS=$CFLAGS
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4462 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4463 if ${ac_cv_prog_cc_g+:} false; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 ac_save_c_werror_flag=$ac_c_werror_flag
4467 ac_c_werror_flag=yes
4468 ac_cv_prog_cc_g=no
4469 CFLAGS="-g"
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4472
4473 int
4474 main ()
4475 {
4476
4477 ;
4478 return 0;
4479 }
4480 _ACEOF
4481 if ac_fn_c_try_compile "$LINENO"; then :
4482 ac_cv_prog_cc_g=yes
4483 else
4484 CFLAGS=""
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4487
4488 int
4489 main ()
4490 {
4491
4492 ;
4493 return 0;
4494 }
4495 _ACEOF
4496 if ac_fn_c_try_compile "$LINENO"; then :
4497
4498 else
4499 ac_c_werror_flag=$ac_save_c_werror_flag
4500 CFLAGS="-g"
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4503
4504 int
4505 main ()
4506 {
4507
4508 ;
4509 return 0;
4510 }
4511 _ACEOF
4512 if ac_fn_c_try_compile "$LINENO"; then :
4513 ac_cv_prog_cc_g=yes
4514 fi
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516 fi
4517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 fi
4519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520 ac_c_werror_flag=$ac_save_c_werror_flag
4521 fi
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4523 $as_echo "$ac_cv_prog_cc_g" >&6; }
4524 if test "$ac_test_CFLAGS" = set; then
4525 CFLAGS=$ac_save_CFLAGS
4526 elif test $ac_cv_prog_cc_g = yes; then
4527 if test "$GCC" = yes; then
4528 CFLAGS="-g -O2"
4529 else
4530 CFLAGS="-g"
4531 fi
4532 else
4533 if test "$GCC" = yes; then
4534 CFLAGS="-O2"
4535 else
4536 CFLAGS=
4537 fi
4538 fi
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4540 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4541 if ${ac_cv_prog_cc_c89+:} false; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 ac_cv_prog_cc_c89=no
4545 ac_save_CC=$CC
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4548 #include <stdarg.h>
4549 #include <stdio.h>
4550 struct stat;
4551 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4552 struct buf { int x; };
4553 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4554 static char *e (p, i)
4555 char **p;
4556 int i;
4557 {
4558 return p[i];
4559 }
4560 static char *f (char * (*g) (char **, int), char **p, ...)
4561 {
4562 char *s;
4563 va_list v;
4564 va_start (v,p);
4565 s = g (p, va_arg (v,int));
4566 va_end (v);
4567 return s;
4568 }
4569
4570 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4571 function prototypes and stuff, but not '\xHH' hex character constants.
4572 These don't provoke an error unfortunately, instead are silently treated
4573 as 'x'. The following induces an error, until -std is added to get
4574 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4575 array size at least. It's necessary to write '\x00'==0 to get something
4576 that's true only with -std. */
4577 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4578
4579 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4580 inside strings and character constants. */
4581 #define FOO(x) 'x'
4582 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4583
4584 int test (int i, double x);
4585 struct s1 {int (*f) (int a);};
4586 struct s2 {int (*f) (double a);};
4587 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4588 int argc;
4589 char **argv;
4590 int
4591 main ()
4592 {
4593 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4594 ;
4595 return 0;
4596 }
4597 _ACEOF
4598 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4599 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4600 do
4601 CC="$ac_save_CC $ac_arg"
4602 if ac_fn_c_try_compile "$LINENO"; then :
4603 ac_cv_prog_cc_c89=$ac_arg
4604 fi
4605 rm -f core conftest.err conftest.$ac_objext
4606 test "x$ac_cv_prog_cc_c89" != "xno" && break
4607 done
4608 rm -f conftest.$ac_ext
4609 CC=$ac_save_CC
4610
4611 fi
4612 # AC_CACHE_VAL
4613 case "x$ac_cv_prog_cc_c89" in
4614 x)
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4616 $as_echo "none needed" >&6; } ;;
4617 xno)
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4619 $as_echo "unsupported" >&6; } ;;
4620 *)
4621 CC="$CC $ac_cv_prog_cc_c89"
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4623 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4624 esac
4625 if test "x$ac_cv_prog_cc_c89" != xno; then :
4626
4627 fi
4628
4629 ac_ext=c
4630 ac_cpp='$CPP $CPPFLAGS'
4631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634
4635 ac_ext=cpp
4636 ac_cpp='$CXXCPP $CPPFLAGS'
4637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4640 if test -z "$CXX"; then
4641 if test -n "$CCC"; then
4642 CXX=$CCC
4643 else
4644 if test -n "$ac_tool_prefix"; then
4645 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4646 do
4647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4648 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_prog_CXX+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -n "$CXX"; then
4655 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668 done
4669 done
4670 IFS=$as_save_IFS
4671
4672 fi
4673 fi
4674 CXX=$ac_cv_prog_CXX
4675 if test -n "$CXX"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4677 $as_echo "$CXX" >&6; }
4678 else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4681 fi
4682
4683
4684 test -n "$CXX" && break
4685 done
4686 fi
4687 if test -z "$CXX"; then
4688 ac_ct_CXX=$CXX
4689 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4690 do
4691 # Extract the first word of "$ac_prog", so it can be a program name with args.
4692 set dummy $ac_prog; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 if test -n "$ac_ct_CXX"; then
4699 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708 ac_cv_prog_ac_ct_CXX="$ac_prog"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4711 fi
4712 done
4713 done
4714 IFS=$as_save_IFS
4715
4716 fi
4717 fi
4718 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4719 if test -n "$ac_ct_CXX"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4721 $as_echo "$ac_ct_CXX" >&6; }
4722 else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4725 fi
4726
4727
4728 test -n "$ac_ct_CXX" && break
4729 done
4730
4731 if test "x$ac_ct_CXX" = x; then
4732 CXX="g++"
4733 else
4734 case $cross_compiling:$ac_tool_warned in
4735 yes:)
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738 ac_tool_warned=yes ;;
4739 esac
4740 CXX=$ac_ct_CXX
4741 fi
4742 fi
4743
4744 fi
4745 fi
4746 # Provide some information about the compiler.
4747 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4748 set X $ac_compile
4749 ac_compiler=$2
4750 for ac_option in --version -v -V -qversion; do
4751 { { ac_try="$ac_compiler $ac_option >&5"
4752 case "(($ac_try" in
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4755 esac
4756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4757 $as_echo "$ac_try_echo"; } >&5
4758 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4759 ac_status=$?
4760 if test -s conftest.err; then
4761 sed '10a\
4762 ... rest of stderr output deleted ...
4763 10q' conftest.err >conftest.er1
4764 cat conftest.er1 >&5
4765 fi
4766 rm -f conftest.er1 conftest.err
4767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4768 test $ac_status = 0; }
4769 done
4770
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4772 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4773 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4778
4779 int
4780 main ()
4781 {
4782 #ifndef __GNUC__
4783 choke me
4784 #endif
4785
4786 ;
4787 return 0;
4788 }
4789 _ACEOF
4790 if ac_fn_cxx_try_compile "$LINENO"; then :
4791 ac_compiler_gnu=yes
4792 else
4793 ac_compiler_gnu=no
4794 fi
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4797
4798 fi
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4800 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4801 if test $ac_compiler_gnu = yes; then
4802 GXX=yes
4803 else
4804 GXX=
4805 fi
4806 ac_test_CXXFLAGS=${CXXFLAGS+set}
4807 ac_save_CXXFLAGS=$CXXFLAGS
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4809 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4810 if ${ac_cv_prog_cxx_g+:} false; then :
4811 $as_echo_n "(cached) " >&6
4812 else
4813 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4814 ac_cxx_werror_flag=yes
4815 ac_cv_prog_cxx_g=no
4816 CXXFLAGS="-g"
4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4819
4820 int
4821 main ()
4822 {
4823
4824 ;
4825 return 0;
4826 }
4827 _ACEOF
4828 if ac_fn_cxx_try_compile "$LINENO"; then :
4829 ac_cv_prog_cxx_g=yes
4830 else
4831 CXXFLAGS=""
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834
4835 int
4836 main ()
4837 {
4838
4839 ;
4840 return 0;
4841 }
4842 _ACEOF
4843 if ac_fn_cxx_try_compile "$LINENO"; then :
4844
4845 else
4846 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4847 CXXFLAGS="-g"
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4850
4851 int
4852 main ()
4853 {
4854
4855 ;
4856 return 0;
4857 }
4858 _ACEOF
4859 if ac_fn_cxx_try_compile "$LINENO"; then :
4860 ac_cv_prog_cxx_g=yes
4861 fi
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 fi
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 fi
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4868 fi
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4870 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4871 if test "$ac_test_CXXFLAGS" = set; then
4872 CXXFLAGS=$ac_save_CXXFLAGS
4873 elif test $ac_cv_prog_cxx_g = yes; then
4874 if test "$GXX" = yes; then
4875 CXXFLAGS="-g -O2"
4876 else
4877 CXXFLAGS="-g"
4878 fi
4879 else
4880 if test "$GXX" = yes; then
4881 CXXFLAGS="-O2"
4882 else
4883 CXXFLAGS=
4884 fi
4885 fi
4886 ac_ext=c
4887 ac_cpp='$CPP $CPPFLAGS'
4888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4891
4892
4893
4894
4895 if test -n "$ac_tool_prefix"; then
4896 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4897 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if ${ac_cv_prog_GNATBIND+:} false; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 if test -n "$GNATBIND"; then
4904 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4916 fi
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921 fi
4922 fi
4923 GNATBIND=$ac_cv_prog_GNATBIND
4924 if test -n "$GNATBIND"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4926 $as_echo "$GNATBIND" >&6; }
4927 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4930 fi
4931
4932
4933 fi
4934 if test -z "$ac_cv_prog_GNATBIND"; then
4935 ac_ct_GNATBIND=$GNATBIND
4936 # Extract the first word of "gnatbind", so it can be a program name with args.
4937 set dummy gnatbind; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 if test -n "$ac_ct_GNATBIND"; then
4944 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4945 else
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 break 2
4956 fi
4957 done
4958 done
4959 IFS=$as_save_IFS
4960
4961 fi
4962 fi
4963 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4964 if test -n "$ac_ct_GNATBIND"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4966 $as_echo "$ac_ct_GNATBIND" >&6; }
4967 else
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4970 fi
4971
4972 if test "x$ac_ct_GNATBIND" = x; then
4973 GNATBIND="no"
4974 else
4975 case $cross_compiling:$ac_tool_warned in
4976 yes:)
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4979 ac_tool_warned=yes ;;
4980 esac
4981 GNATBIND=$ac_ct_GNATBIND
4982 fi
4983 else
4984 GNATBIND="$ac_cv_prog_GNATBIND"
4985 fi
4986
4987 if test -n "$ac_tool_prefix"; then
4988 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4989 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if ${ac_cv_prog_GNATMAKE+:} false; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 if test -n "$GNATMAKE"; then
4996 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4997 else
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5000 do
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5005 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 break 2
5008 fi
5009 done
5010 done
5011 IFS=$as_save_IFS
5012
5013 fi
5014 fi
5015 GNATMAKE=$ac_cv_prog_GNATMAKE
5016 if test -n "$GNATMAKE"; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5018 $as_echo "$GNATMAKE" >&6; }
5019 else
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5022 fi
5023
5024
5025 fi
5026 if test -z "$ac_cv_prog_GNATMAKE"; then
5027 ac_ct_GNATMAKE=$GNATMAKE
5028 # Extract the first word of "gnatmake", so it can be a program name with args.
5029 set dummy gnatmake; ac_word=$2
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 if test -n "$ac_ct_GNATMAKE"; then
5036 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5037 else
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5040 do
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 break 2
5048 fi
5049 done
5050 done
5051 IFS=$as_save_IFS
5052
5053 fi
5054 fi
5055 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5056 if test -n "$ac_ct_GNATMAKE"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5058 $as_echo "$ac_ct_GNATMAKE" >&6; }
5059 else
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061 $as_echo "no" >&6; }
5062 fi
5063
5064 if test "x$ac_ct_GNATMAKE" = x; then
5065 GNATMAKE="no"
5066 else
5067 case $cross_compiling:$ac_tool_warned in
5068 yes:)
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5071 ac_tool_warned=yes ;;
5072 esac
5073 GNATMAKE=$ac_ct_GNATMAKE
5074 fi
5075 else
5076 GNATMAKE="$ac_cv_prog_GNATMAKE"
5077 fi
5078
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5080 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5081 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 cat >conftest.adb <<EOF
5085 procedure conftest is begin null; end conftest;
5086 EOF
5087 acx_cv_cc_gcc_supports_ada=no
5088 # There is a bug in old released versions of GCC which causes the
5089 # driver to exit successfully when the appropriate language module
5090 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5091 # Therefore we must check for the error message as well as an
5092 # unsuccessful exit.
5093 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5094 # given a .adb file, but produce no object file. So we must check
5095 # if an object file was really produced to guard against this.
5096 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5097 if test x"$errors" = x && test -f conftest.$ac_objext; then
5098 acx_cv_cc_gcc_supports_ada=yes
5099 fi
5100 rm -f conftest.*
5101 fi
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5103 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5104
5105 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5106 have_gnat=yes
5107 else
5108 have_gnat=no
5109 fi
5110
5111
5112 # Do configure tests with the C++ compiler, since that's what we build with.
5113 ac_ext=cpp
5114 ac_cpp='$CXXCPP $CPPFLAGS'
5115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5118
5119
5120 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5121 # optimizations to be activated explicitly by the toplevel.
5122 case "$CC" in
5123 */prev-gcc/xgcc*) ;;
5124 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5125 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5126 esac
5127
5128
5129
5130 # Determine PICFLAG for target gnatlib.
5131
5132
5133
5134
5135 case "${target}" in
5136 # PIC is the default on some targets or must not be used.
5137 *-*-darwin*)
5138 # For darwin, common symbols are not allowed in MH_DYLIB files
5139 case "${CFLAGS}" in
5140 # If we are using a compiler supporting mdynamic-no-pic
5141 # and the option has been tested as safe to add, then cancel
5142 # it here, since the code generated is incompatible with shared
5143 # libs.
5144 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5145 *) PICFLAG_FOR_TARGET=-fno-common ;;
5146 esac
5147 ;;
5148 alpha*-dec-osf5*)
5149 # PIC is the default.
5150 ;;
5151 hppa*64*-*-hpux*)
5152 # PIC is the default for 64-bit PA HP-UX.
5153 ;;
5154 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5155 ;;
5156 i[34567]86-*-mingw* | x86_64-*-mingw*)
5157 ;;
5158 i[34567]86-*-interix[3-9]*)
5159 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5160 # Instead, we relocate shared libraries at runtime.
5161 ;;
5162 i[34567]86-*-nto-qnx*)
5163 # QNX uses GNU C++, but need to define -shared option too, otherwise
5164 # it will coredump.
5165 PICFLAG_FOR_TARGET='-fPIC -shared'
5166 ;;
5167 i[34567]86-pc-msdosdjgpp*)
5168 # DJGPP does not support shared libraries at all.
5169 ;;
5170 ia64*-*-hpux*)
5171 # On IA64 HP-UX, PIC is the default but the pic flag
5172 # sets the default TLS model and affects inlining.
5173 PICFLAG_FOR_TARGET=-fPIC
5174 ;;
5175 mips-sgi-irix6*)
5176 # PIC is the default.
5177 ;;
5178 rs6000-ibm-aix* | powerpc-ibm-aix*)
5179 # All AIX code is PIC.
5180 ;;
5181
5182 # Some targets support both -fPIC and -fpic, but prefer the latter.
5183 # FIXME: Why?
5184 i[34567]86-*-* | x86_64-*-*)
5185 PICFLAG_FOR_TARGET=-fpic
5186 ;;
5187 # FIXME: Override -fPIC default in libgcc only?
5188 sh-*-linux* | sh[2346lbe]*-*-linux*)
5189 PICFLAG_FOR_TARGET=-fpic
5190 ;;
5191 # FIXME: Simplify to sh*-*-netbsd*?
5192 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5193 sh64-*-netbsd* | sh64l*-*-netbsd*)
5194 PICFLAG_FOR_TARGET=-fpic
5195 ;;
5196 # Default to -fPIC unless specified otherwise.
5197 *)
5198 PICFLAG_FOR_TARGET=-fPIC
5199 ;;
5200 esac
5201
5202 # If the user explicitly uses -fpic/-fPIC, keep that.
5203 case "${CFLAGS_FOR_TARGET}" in
5204 *-fpic*)
5205 PICFLAG_FOR_TARGET=-fpic
5206 ;;
5207 *-fPIC*)
5208 PICFLAG_FOR_TARGET=-fPIC
5209 ;;
5210 esac
5211
5212
5213
5214 # -------------------------
5215 # Check C compiler features
5216 # -------------------------
5217
5218
5219 ac_ext=cpp
5220 ac_cpp='$CXXCPP $CPPFLAGS'
5221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5225 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5226 if test -z "$CXXCPP"; then
5227 if ${ac_cv_prog_CXXCPP+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 # Double quotes because CXXCPP needs to be expanded
5231 for CXXCPP in "$CXX -E" "/lib/cpp"
5232 do
5233 ac_preproc_ok=false
5234 for ac_cxx_preproc_warn_flag in '' yes
5235 do
5236 # Use a header file that comes with gcc, so configuring glibc
5237 # with a fresh cross-compiler works.
5238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5239 # <limits.h> exists even on freestanding compilers.
5240 # On the NeXT, cc -E runs the code through the compiler's parser,
5241 # not just through cpp. "Syntax error" is here to catch this case.
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5244 #ifdef __STDC__
5245 # include <limits.h>
5246 #else
5247 # include <assert.h>
5248 #endif
5249 Syntax error
5250 _ACEOF
5251 if ac_fn_cxx_try_cpp "$LINENO"; then :
5252
5253 else
5254 # Broken: fails on valid input.
5255 continue
5256 fi
5257 rm -f conftest.err conftest.i conftest.$ac_ext
5258
5259 # OK, works on sane cases. Now check whether nonexistent headers
5260 # can be detected and how.
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5263 #include <ac_nonexistent.h>
5264 _ACEOF
5265 if ac_fn_cxx_try_cpp "$LINENO"; then :
5266 # Broken: success on invalid input.
5267 continue
5268 else
5269 # Passes both tests.
5270 ac_preproc_ok=:
5271 break
5272 fi
5273 rm -f conftest.err conftest.i conftest.$ac_ext
5274
5275 done
5276 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5277 rm -f conftest.i conftest.err conftest.$ac_ext
5278 if $ac_preproc_ok; then :
5279 break
5280 fi
5281
5282 done
5283 ac_cv_prog_CXXCPP=$CXXCPP
5284
5285 fi
5286 CXXCPP=$ac_cv_prog_CXXCPP
5287 else
5288 ac_cv_prog_CXXCPP=$CXXCPP
5289 fi
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5291 $as_echo "$CXXCPP" >&6; }
5292 ac_preproc_ok=false
5293 for ac_cxx_preproc_warn_flag in '' yes
5294 do
5295 # Use a header file that comes with gcc, so configuring glibc
5296 # with a fresh cross-compiler works.
5297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5298 # <limits.h> exists even on freestanding compilers.
5299 # On the NeXT, cc -E runs the code through the compiler's parser,
5300 # not just through cpp. "Syntax error" is here to catch this case.
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5303 #ifdef __STDC__
5304 # include <limits.h>
5305 #else
5306 # include <assert.h>
5307 #endif
5308 Syntax error
5309 _ACEOF
5310 if ac_fn_cxx_try_cpp "$LINENO"; then :
5311
5312 else
5313 # Broken: fails on valid input.
5314 continue
5315 fi
5316 rm -f conftest.err conftest.i conftest.$ac_ext
5317
5318 # OK, works on sane cases. Now check whether nonexistent headers
5319 # can be detected and how.
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322 #include <ac_nonexistent.h>
5323 _ACEOF
5324 if ac_fn_cxx_try_cpp "$LINENO"; then :
5325 # Broken: success on invalid input.
5326 continue
5327 else
5328 # Passes both tests.
5329 ac_preproc_ok=:
5330 break
5331 fi
5332 rm -f conftest.err conftest.i conftest.$ac_ext
5333
5334 done
5335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5336 rm -f conftest.i conftest.err conftest.$ac_ext
5337 if $ac_preproc_ok; then :
5338
5339 else
5340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5342 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5343 See \`config.log' for more details" "$LINENO" 5; }
5344 fi
5345
5346 ac_ext=cpp
5347 ac_cpp='$CXXCPP $CPPFLAGS'
5348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5351
5352
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5354 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5355 if ${ac_cv_path_GREP+:} false; then :
5356 $as_echo_n "(cached) " >&6
5357 else
5358 if test -z "$GREP"; then
5359 ac_path_GREP_found=false
5360 # Loop through the user's path and test for each of PROGNAME-LIST
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5363 do
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_prog in grep ggrep; do
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5369 as_fn_executable_p "$ac_path_GREP" || continue
5370 # Check for GNU ac_path_GREP and select it if it is found.
5371 # Check for GNU $ac_path_GREP
5372 case `"$ac_path_GREP" --version 2>&1` in
5373 *GNU*)
5374 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5375 *)
5376 ac_count=0
5377 $as_echo_n 0123456789 >"conftest.in"
5378 while :
5379 do
5380 cat "conftest.in" "conftest.in" >"conftest.tmp"
5381 mv "conftest.tmp" "conftest.in"
5382 cp "conftest.in" "conftest.nl"
5383 $as_echo 'GREP' >> "conftest.nl"
5384 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5385 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5386 as_fn_arith $ac_count + 1 && ac_count=$as_val
5387 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5388 # Best one so far, save it but keep looking for a better one
5389 ac_cv_path_GREP="$ac_path_GREP"
5390 ac_path_GREP_max=$ac_count
5391 fi
5392 # 10*(2^10) chars as input seems more than enough
5393 test $ac_count -gt 10 && break
5394 done
5395 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5396 esac
5397
5398 $ac_path_GREP_found && break 3
5399 done
5400 done
5401 done
5402 IFS=$as_save_IFS
5403 if test -z "$ac_cv_path_GREP"; then
5404 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5405 fi
5406 else
5407 ac_cv_path_GREP=$GREP
5408 fi
5409
5410 fi
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5412 $as_echo "$ac_cv_path_GREP" >&6; }
5413 GREP="$ac_cv_path_GREP"
5414
5415
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5417 $as_echo_n "checking for egrep... " >&6; }
5418 if ${ac_cv_path_EGREP+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5422 then ac_cv_path_EGREP="$GREP -E"
5423 else
5424 if test -z "$EGREP"; then
5425 ac_path_EGREP_found=false
5426 # Loop through the user's path and test for each of PROGNAME-LIST
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5429 do
5430 IFS=$as_save_IFS
5431 test -z "$as_dir" && as_dir=.
5432 for ac_prog in egrep; do
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5435 as_fn_executable_p "$ac_path_EGREP" || continue
5436 # Check for GNU ac_path_EGREP and select it if it is found.
5437 # Check for GNU $ac_path_EGREP
5438 case `"$ac_path_EGREP" --version 2>&1` in
5439 *GNU*)
5440 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5441 *)
5442 ac_count=0
5443 $as_echo_n 0123456789 >"conftest.in"
5444 while :
5445 do
5446 cat "conftest.in" "conftest.in" >"conftest.tmp"
5447 mv "conftest.tmp" "conftest.in"
5448 cp "conftest.in" "conftest.nl"
5449 $as_echo 'EGREP' >> "conftest.nl"
5450 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5452 as_fn_arith $ac_count + 1 && ac_count=$as_val
5453 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5454 # Best one so far, save it but keep looking for a better one
5455 ac_cv_path_EGREP="$ac_path_EGREP"
5456 ac_path_EGREP_max=$ac_count
5457 fi
5458 # 10*(2^10) chars as input seems more than enough
5459 test $ac_count -gt 10 && break
5460 done
5461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5462 esac
5463
5464 $ac_path_EGREP_found && break 3
5465 done
5466 done
5467 done
5468 IFS=$as_save_IFS
5469 if test -z "$ac_cv_path_EGREP"; then
5470 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5471 fi
5472 else
5473 ac_cv_path_EGREP=$EGREP
5474 fi
5475
5476 fi
5477 fi
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5479 $as_echo "$ac_cv_path_EGREP" >&6; }
5480 EGREP="$ac_cv_path_EGREP"
5481
5482
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5484 $as_echo_n "checking for ANSI C header files... " >&6; }
5485 if ${ac_cv_header_stdc+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5490 #include <stdlib.h>
5491 #include <stdarg.h>
5492 #include <string.h>
5493 #include <float.h>
5494
5495 int
5496 main ()
5497 {
5498
5499 ;
5500 return 0;
5501 }
5502 _ACEOF
5503 if ac_fn_cxx_try_compile "$LINENO"; then :
5504 ac_cv_header_stdc=yes
5505 else
5506 ac_cv_header_stdc=no
5507 fi
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509
5510 if test $ac_cv_header_stdc = yes; then
5511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5514 #include <string.h>
5515
5516 _ACEOF
5517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5518 $EGREP "memchr" >/dev/null 2>&1; then :
5519
5520 else
5521 ac_cv_header_stdc=no
5522 fi
5523 rm -f conftest*
5524
5525 fi
5526
5527 if test $ac_cv_header_stdc = yes; then
5528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5531 #include <stdlib.h>
5532
5533 _ACEOF
5534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5535 $EGREP "free" >/dev/null 2>&1; then :
5536
5537 else
5538 ac_cv_header_stdc=no
5539 fi
5540 rm -f conftest*
5541
5542 fi
5543
5544 if test $ac_cv_header_stdc = yes; then
5545 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5546 if test "$cross_compiling" = yes; then :
5547 :
5548 else
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5551 #include <ctype.h>
5552 #include <stdlib.h>
5553 #if ((' ' & 0x0FF) == 0x020)
5554 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5555 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5556 #else
5557 # define ISLOWER(c) \
5558 (('a' <= (c) && (c) <= 'i') \
5559 || ('j' <= (c) && (c) <= 'r') \
5560 || ('s' <= (c) && (c) <= 'z'))
5561 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5562 #endif
5563
5564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5565 int
5566 main ()
5567 {
5568 int i;
5569 for (i = 0; i < 256; i++)
5570 if (XOR (islower (i), ISLOWER (i))
5571 || toupper (i) != TOUPPER (i))
5572 return 2;
5573 return 0;
5574 }
5575 _ACEOF
5576 if ac_fn_cxx_try_run "$LINENO"; then :
5577
5578 else
5579 ac_cv_header_stdc=no
5580 fi
5581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5582 conftest.$ac_objext conftest.beam conftest.$ac_ext
5583 fi
5584
5585 fi
5586 fi
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5588 $as_echo "$ac_cv_header_stdc" >&6; }
5589 if test $ac_cv_header_stdc = yes; then
5590
5591 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5592
5593 fi
5594
5595 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5596 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5597 inttypes.h stdint.h unistd.h
5598 do :
5599 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5600 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5601 "
5602 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5603 cat >>confdefs.h <<_ACEOF
5604 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5605 _ACEOF
5606
5607 fi
5608
5609 done
5610
5611
5612
5613 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5614 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5615 MINIX=yes
5616 else
5617 MINIX=
5618 fi
5619
5620
5621 if test "$MINIX" = yes; then
5622
5623 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5624
5625
5626 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5627
5628
5629 $as_echo "#define _MINIX 1" >>confdefs.h
5630
5631 fi
5632
5633
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5635 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5636 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5637 $as_echo_n "(cached) " >&6
5638 else
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641
5642 # define __EXTENSIONS__ 1
5643 $ac_includes_default
5644 int
5645 main ()
5646 {
5647
5648 ;
5649 return 0;
5650 }
5651 _ACEOF
5652 if ac_fn_cxx_try_compile "$LINENO"; then :
5653 ac_cv_safe_to_define___extensions__=yes
5654 else
5655 ac_cv_safe_to_define___extensions__=no
5656 fi
5657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658 fi
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5660 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5661 test $ac_cv_safe_to_define___extensions__ = yes &&
5662 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5663
5664 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5665
5666 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5667
5668 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5669
5670 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5671
5672
5673 ac_ext=c
5674 ac_cpp='$CPP $CPPFLAGS'
5675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5679 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5680 # On Suns, sometimes $CPP names a directory.
5681 if test -n "$CPP" && test -d "$CPP"; then
5682 CPP=
5683 fi
5684 if test -z "$CPP"; then
5685 if ${ac_cv_prog_CPP+:} false; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 # Double quotes because CPP needs to be expanded
5689 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5690 do
5691 ac_preproc_ok=false
5692 for ac_c_preproc_warn_flag in '' yes
5693 do
5694 # Use a header file that comes with gcc, so configuring glibc
5695 # with a fresh cross-compiler works.
5696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5697 # <limits.h> exists even on freestanding compilers.
5698 # On the NeXT, cc -E runs the code through the compiler's parser,
5699 # not just through cpp. "Syntax error" is here to catch this case.
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5702 #ifdef __STDC__
5703 # include <limits.h>
5704 #else
5705 # include <assert.h>
5706 #endif
5707 Syntax error
5708 _ACEOF
5709 if ac_fn_c_try_cpp "$LINENO"; then :
5710
5711 else
5712 # Broken: fails on valid input.
5713 continue
5714 fi
5715 rm -f conftest.err conftest.i conftest.$ac_ext
5716
5717 # OK, works on sane cases. Now check whether nonexistent headers
5718 # can be detected and how.
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5721 #include <ac_nonexistent.h>
5722 _ACEOF
5723 if ac_fn_c_try_cpp "$LINENO"; then :
5724 # Broken: success on invalid input.
5725 continue
5726 else
5727 # Passes both tests.
5728 ac_preproc_ok=:
5729 break
5730 fi
5731 rm -f conftest.err conftest.i conftest.$ac_ext
5732
5733 done
5734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5735 rm -f conftest.i conftest.err conftest.$ac_ext
5736 if $ac_preproc_ok; then :
5737 break
5738 fi
5739
5740 done
5741 ac_cv_prog_CPP=$CPP
5742
5743 fi
5744 CPP=$ac_cv_prog_CPP
5745 else
5746 ac_cv_prog_CPP=$CPP
5747 fi
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5749 $as_echo "$CPP" >&6; }
5750 ac_preproc_ok=false
5751 for ac_c_preproc_warn_flag in '' yes
5752 do
5753 # Use a header file that comes with gcc, so configuring glibc
5754 # with a fresh cross-compiler works.
5755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5756 # <limits.h> exists even on freestanding compilers.
5757 # On the NeXT, cc -E runs the code through the compiler's parser,
5758 # not just through cpp. "Syntax error" is here to catch this case.
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 #ifdef __STDC__
5762 # include <limits.h>
5763 #else
5764 # include <assert.h>
5765 #endif
5766 Syntax error
5767 _ACEOF
5768 if ac_fn_c_try_cpp "$LINENO"; then :
5769
5770 else
5771 # Broken: fails on valid input.
5772 continue
5773 fi
5774 rm -f conftest.err conftest.i conftest.$ac_ext
5775
5776 # OK, works on sane cases. Now check whether nonexistent headers
5777 # can be detected and how.
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 #include <ac_nonexistent.h>
5781 _ACEOF
5782 if ac_fn_c_try_cpp "$LINENO"; then :
5783 # Broken: success on invalid input.
5784 continue
5785 else
5786 # Passes both tests.
5787 ac_preproc_ok=:
5788 break
5789 fi
5790 rm -f conftest.err conftest.i conftest.$ac_ext
5791
5792 done
5793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5794 rm -f conftest.i conftest.err conftest.$ac_ext
5795 if $ac_preproc_ok; then :
5796
5797 else
5798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5800 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5801 See \`config.log' for more details" "$LINENO" 5; }
5802 fi
5803
5804 ac_ext=cpp
5805 ac_cpp='$CXXCPP $CPPFLAGS'
5806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5809
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5811 $as_echo_n "checking for inline... " >&6; }
5812 if ${ac_cv_c_inline+:} false; then :
5813 $as_echo_n "(cached) " >&6
5814 else
5815 ac_cv_c_inline=no
5816 for ac_kw in inline __inline__ __inline; do
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 #ifndef __cplusplus
5820 typedef int foo_t;
5821 static $ac_kw foo_t static_foo () {return 0; }
5822 $ac_kw foo_t foo () {return 0; }
5823 #endif
5824
5825 _ACEOF
5826 if ac_fn_cxx_try_compile "$LINENO"; then :
5827 ac_cv_c_inline=$ac_kw
5828 fi
5829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830 test "$ac_cv_c_inline" != no && break
5831 done
5832
5833 fi
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5835 $as_echo "$ac_cv_c_inline" >&6; }
5836
5837 case $ac_cv_c_inline in
5838 inline | yes) ;;
5839 *)
5840 case $ac_cv_c_inline in
5841 no) ac_val=;;
5842 *) ac_val=$ac_cv_c_inline;;
5843 esac
5844 cat >>confdefs.h <<_ACEOF
5845 #ifndef __cplusplus
5846 #define inline $ac_val
5847 #endif
5848 _ACEOF
5849 ;;
5850 esac
5851
5852
5853 # Check whether --enable-largefile was given.
5854 if test "${enable_largefile+set}" = set; then :
5855 enableval=$enable_largefile;
5856 fi
5857
5858 if test "$enable_largefile" != no; then
5859
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5861 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5862 if ${ac_cv_sys_largefile_CC+:} false; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 ac_cv_sys_largefile_CC=no
5866 if test "$GCC" != yes; then
5867 ac_save_CC=$CC
5868 while :; do
5869 # IRIX 6.2 and later do not support large files by default,
5870 # so use the C compiler's -n32 option if that helps.
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5873 #include <sys/types.h>
5874 /* Check that off_t can represent 2**63 - 1 correctly.
5875 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5876 since some C++ compilers masquerading as C compilers
5877 incorrectly reject 9223372036854775807. */
5878 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5879 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5880 && LARGE_OFF_T % 2147483647 == 1)
5881 ? 1 : -1];
5882 int
5883 main ()
5884 {
5885
5886 ;
5887 return 0;
5888 }
5889 _ACEOF
5890 if ac_fn_cxx_try_compile "$LINENO"; then :
5891 break
5892 fi
5893 rm -f core conftest.err conftest.$ac_objext
5894 CC="$CC -n32"
5895 if ac_fn_cxx_try_compile "$LINENO"; then :
5896 ac_cv_sys_largefile_CC=' -n32'; break
5897 fi
5898 rm -f core conftest.err conftest.$ac_objext
5899 break
5900 done
5901 CC=$ac_save_CC
5902 rm -f conftest.$ac_ext
5903 fi
5904 fi
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5906 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5907 if test "$ac_cv_sys_largefile_CC" != no; then
5908 CC=$CC$ac_cv_sys_largefile_CC
5909 fi
5910
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5912 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5913 if ${ac_cv_sys_file_offset_bits+:} false; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 while :; do
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5919 #include <sys/types.h>
5920 /* Check that off_t can represent 2**63 - 1 correctly.
5921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5922 since some C++ compilers masquerading as C compilers
5923 incorrectly reject 9223372036854775807. */
5924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5926 && LARGE_OFF_T % 2147483647 == 1)
5927 ? 1 : -1];
5928 int
5929 main ()
5930 {
5931
5932 ;
5933 return 0;
5934 }
5935 _ACEOF
5936 if ac_fn_cxx_try_compile "$LINENO"; then :
5937 ac_cv_sys_file_offset_bits=no; break
5938 fi
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941 /* end confdefs.h. */
5942 #define _FILE_OFFSET_BITS 64
5943 #include <sys/types.h>
5944 /* Check that off_t can represent 2**63 - 1 correctly.
5945 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5946 since some C++ compilers masquerading as C compilers
5947 incorrectly reject 9223372036854775807. */
5948 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5949 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5950 && LARGE_OFF_T % 2147483647 == 1)
5951 ? 1 : -1];
5952 int
5953 main ()
5954 {
5955
5956 ;
5957 return 0;
5958 }
5959 _ACEOF
5960 if ac_fn_cxx_try_compile "$LINENO"; then :
5961 ac_cv_sys_file_offset_bits=64; break
5962 fi
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 ac_cv_sys_file_offset_bits=unknown
5965 break
5966 done
5967 fi
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5969 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5970 case $ac_cv_sys_file_offset_bits in #(
5971 no | unknown) ;;
5972 *)
5973 cat >>confdefs.h <<_ACEOF
5974 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5975 _ACEOF
5976 ;;
5977 esac
5978 rm -rf conftest*
5979 if test $ac_cv_sys_file_offset_bits = unknown; then
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5981 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5982 if ${ac_cv_sys_large_files+:} false; then :
5983 $as_echo_n "(cached) " >&6
5984 else
5985 while :; do
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5988 #include <sys/types.h>
5989 /* Check that off_t can represent 2**63 - 1 correctly.
5990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5991 since some C++ compilers masquerading as C compilers
5992 incorrectly reject 9223372036854775807. */
5993 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5995 && LARGE_OFF_T % 2147483647 == 1)
5996 ? 1 : -1];
5997 int
5998 main ()
5999 {
6000
6001 ;
6002 return 0;
6003 }
6004 _ACEOF
6005 if ac_fn_cxx_try_compile "$LINENO"; then :
6006 ac_cv_sys_large_files=no; break
6007 fi
6008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 #define _LARGE_FILES 1
6012 #include <sys/types.h>
6013 /* Check that off_t can represent 2**63 - 1 correctly.
6014 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6015 since some C++ compilers masquerading as C compilers
6016 incorrectly reject 9223372036854775807. */
6017 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6019 && LARGE_OFF_T % 2147483647 == 1)
6020 ? 1 : -1];
6021 int
6022 main ()
6023 {
6024
6025 ;
6026 return 0;
6027 }
6028 _ACEOF
6029 if ac_fn_cxx_try_compile "$LINENO"; then :
6030 ac_cv_sys_large_files=1; break
6031 fi
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 ac_cv_sys_large_files=unknown
6034 break
6035 done
6036 fi
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6038 $as_echo "$ac_cv_sys_large_files" >&6; }
6039 case $ac_cv_sys_large_files in #(
6040 no | unknown) ;;
6041 *)
6042 cat >>confdefs.h <<_ACEOF
6043 #define _LARGE_FILES $ac_cv_sys_large_files
6044 _ACEOF
6045 ;;
6046 esac
6047 rm -rf conftest*
6048 fi
6049
6050
6051 fi
6052
6053
6054 # sizeof(char) is 1 by definition.
6055 # The cast to long int works around a bug in the HP C Compiler
6056 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6057 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6058 # This bug is HP SR number 8606223364.
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6060 $as_echo_n "checking size of void *... " >&6; }
6061 if ${ac_cv_sizeof_void_p+:} false; then :
6062 $as_echo_n "(cached) " >&6
6063 else
6064 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6065
6066 else
6067 if test "$ac_cv_type_void_p" = yes; then
6068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6070 as_fn_error 77 "cannot compute sizeof (void *)
6071 See \`config.log' for more details" "$LINENO" 5; }
6072 else
6073 ac_cv_sizeof_void_p=0
6074 fi
6075 fi
6076
6077 fi
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6079 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6080
6081
6082
6083 cat >>confdefs.h <<_ACEOF
6084 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6085 _ACEOF
6086
6087
6088 # The cast to long int works around a bug in the HP C Compiler
6089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6091 # This bug is HP SR number 8606223364.
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6093 $as_echo_n "checking size of short... " >&6; }
6094 if ${ac_cv_sizeof_short+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6098
6099 else
6100 if test "$ac_cv_type_short" = yes; then
6101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6103 as_fn_error 77 "cannot compute sizeof (short)
6104 See \`config.log' for more details" "$LINENO" 5; }
6105 else
6106 ac_cv_sizeof_short=0
6107 fi
6108 fi
6109
6110 fi
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6112 $as_echo "$ac_cv_sizeof_short" >&6; }
6113
6114
6115
6116 cat >>confdefs.h <<_ACEOF
6117 #define SIZEOF_SHORT $ac_cv_sizeof_short
6118 _ACEOF
6119
6120
6121 # The cast to long int works around a bug in the HP C Compiler
6122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6124 # This bug is HP SR number 8606223364.
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6126 $as_echo_n "checking size of int... " >&6; }
6127 if ${ac_cv_sizeof_int+:} false; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6131
6132 else
6133 if test "$ac_cv_type_int" = yes; then
6134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6136 as_fn_error 77 "cannot compute sizeof (int)
6137 See \`config.log' for more details" "$LINENO" 5; }
6138 else
6139 ac_cv_sizeof_int=0
6140 fi
6141 fi
6142
6143 fi
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6145 $as_echo "$ac_cv_sizeof_int" >&6; }
6146
6147
6148
6149 cat >>confdefs.h <<_ACEOF
6150 #define SIZEOF_INT $ac_cv_sizeof_int
6151 _ACEOF
6152
6153
6154 # The cast to long int works around a bug in the HP C Compiler
6155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6157 # This bug is HP SR number 8606223364.
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6159 $as_echo_n "checking size of long... " >&6; }
6160 if ${ac_cv_sizeof_long+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6164
6165 else
6166 if test "$ac_cv_type_long" = yes; then
6167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6169 as_fn_error 77 "cannot compute sizeof (long)
6170 See \`config.log' for more details" "$LINENO" 5; }
6171 else
6172 ac_cv_sizeof_long=0
6173 fi
6174 fi
6175
6176 fi
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6178 $as_echo "$ac_cv_sizeof_long" >&6; }
6179
6180
6181
6182 cat >>confdefs.h <<_ACEOF
6183 #define SIZEOF_LONG $ac_cv_sizeof_long
6184 _ACEOF
6185
6186
6187 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6188 if test "x$ac_cv_type_long_long" = xyes; then :
6189
6190 cat >>confdefs.h <<_ACEOF
6191 #define HAVE_LONG_LONG 1
6192 _ACEOF
6193
6194 # The cast to long int works around a bug in the HP C Compiler
6195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6197 # This bug is HP SR number 8606223364.
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6199 $as_echo_n "checking size of long long... " >&6; }
6200 if ${ac_cv_sizeof_long_long+:} false; then :
6201 $as_echo_n "(cached) " >&6
6202 else
6203 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6204
6205 else
6206 if test "$ac_cv_type_long_long" = yes; then
6207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6209 as_fn_error 77 "cannot compute sizeof (long long)
6210 See \`config.log' for more details" "$LINENO" 5; }
6211 else
6212 ac_cv_sizeof_long_long=0
6213 fi
6214 fi
6215
6216 fi
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6218 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6219
6220
6221
6222 cat >>confdefs.h <<_ACEOF
6223 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6224 _ACEOF
6225
6226
6227 fi
6228
6229 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6230 case $ac_cv_c_int8_t in #(
6231 no|yes) ;; #(
6232 *)
6233
6234 cat >>confdefs.h <<_ACEOF
6235 #define int8_t $ac_cv_c_int8_t
6236 _ACEOF
6237 ;;
6238 esac
6239
6240 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6241 case $ac_cv_c_int16_t in #(
6242 no|yes) ;; #(
6243 *)
6244
6245 cat >>confdefs.h <<_ACEOF
6246 #define int16_t $ac_cv_c_int16_t
6247 _ACEOF
6248 ;;
6249 esac
6250
6251 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6252 case $ac_cv_c_int32_t in #(
6253 no|yes) ;; #(
6254 *)
6255
6256 cat >>confdefs.h <<_ACEOF
6257 #define int32_t $ac_cv_c_int32_t
6258 _ACEOF
6259 ;;
6260 esac
6261
6262 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6263 case $ac_cv_c_int64_t in #(
6264 no|yes) ;; #(
6265 *)
6266
6267 cat >>confdefs.h <<_ACEOF
6268 #define int64_t $ac_cv_c_int64_t
6269 _ACEOF
6270 ;;
6271 esac
6272
6273
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6275 $as_echo_n "checking for unsigned long long int... " >&6; }
6276 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6277 $as_echo_n "(cached) " >&6
6278 else
6279 ac_cv_type_unsigned_long_long_int=yes
6280 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283
6284 /* For now, do not test the preprocessor; as of 2007 there are too many
6285 implementations with broken preprocessors. Perhaps this can
6286 be revisited in 2012. In the meantime, code should not expect
6287 #if to work with literals wider than 32 bits. */
6288 /* Test literals. */
6289 long long int ll = 9223372036854775807ll;
6290 long long int nll = -9223372036854775807LL;
6291 unsigned long long int ull = 18446744073709551615ULL;
6292 /* Test constant expressions. */
6293 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6294 ? 1 : -1)];
6295 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6296 ? 1 : -1)];
6297 int i = 63;
6298 int
6299 main ()
6300 {
6301 /* Test availability of runtime routines for shift and division. */
6302 long long int llmax = 9223372036854775807ll;
6303 unsigned long long int ullmax = 18446744073709551615ull;
6304 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6305 | (llmax / ll) | (llmax % ll)
6306 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6307 | (ullmax / ull) | (ullmax % ull));
6308 ;
6309 return 0;
6310 }
6311
6312 _ACEOF
6313 if ac_fn_cxx_try_link "$LINENO"; then :
6314
6315 else
6316 ac_cv_type_unsigned_long_long_int=no
6317 fi
6318 rm -f core conftest.err conftest.$ac_objext \
6319 conftest$ac_exeext conftest.$ac_ext
6320 fi
6321 fi
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6323 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6324 if test $ac_cv_type_unsigned_long_long_int = yes; then
6325
6326 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6327
6328 fi
6329
6330
6331
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6333 $as_echo_n "checking for long long int... " >&6; }
6334 if ${ac_cv_type_long_long_int+:} false; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6337 ac_cv_type_long_long_int=yes
6338 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6339 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6340 if test $ac_cv_type_long_long_int = yes; then
6341 if test "$cross_compiling" = yes; then :
6342 :
6343 else
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6346 #include <limits.h>
6347 #ifndef LLONG_MAX
6348 # define HALF \
6349 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6350 # define LLONG_MAX (HALF - 1 + HALF)
6351 #endif
6352 int
6353 main ()
6354 {
6355 long long int n = 1;
6356 int i;
6357 for (i = 0; ; i++)
6358 {
6359 long long int m = n << i;
6360 if (m >> i != n)
6361 return 1;
6362 if (LLONG_MAX / 2 < m)
6363 break;
6364 }
6365 return 0;
6366 ;
6367 return 0;
6368 }
6369 _ACEOF
6370 if ac_fn_cxx_try_run "$LINENO"; then :
6371
6372 else
6373 ac_cv_type_long_long_int=no
6374 fi
6375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6376 conftest.$ac_objext conftest.beam conftest.$ac_ext
6377 fi
6378
6379 fi
6380 fi
6381 fi
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6383 $as_echo "$ac_cv_type_long_long_int" >&6; }
6384 if test $ac_cv_type_long_long_int = yes; then
6385
6386 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6387
6388 fi
6389
6390
6391
6392 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6393 if test "x$ac_cv_type_intmax_t" = xyes; then :
6394
6395 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6396
6397 else
6398 test $ac_cv_type_long_long_int = yes \
6399 && ac_type='long long int' \
6400 || ac_type='long int'
6401
6402 cat >>confdefs.h <<_ACEOF
6403 #define intmax_t $ac_type
6404 _ACEOF
6405
6406 fi
6407
6408
6409
6410 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6411 if test "x$ac_cv_type_intptr_t" = xyes; then :
6412
6413 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6414
6415 else
6416 for ac_type in 'int' 'long int' 'long long int'; do
6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6419 $ac_includes_default
6420 int
6421 main ()
6422 {
6423 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6424 test_array [0] = 0;
6425 return test_array [0];
6426
6427 ;
6428 return 0;
6429 }
6430 _ACEOF
6431 if ac_fn_cxx_try_compile "$LINENO"; then :
6432
6433 cat >>confdefs.h <<_ACEOF
6434 #define intptr_t $ac_type
6435 _ACEOF
6436
6437 ac_type=
6438 fi
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 test -z "$ac_type" && break
6441 done
6442 fi
6443
6444
6445 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6446 case $ac_cv_c_uint8_t in #(
6447 no|yes) ;; #(
6448 *)
6449
6450 $as_echo "#define _UINT8_T 1" >>confdefs.h
6451
6452
6453 cat >>confdefs.h <<_ACEOF
6454 #define uint8_t $ac_cv_c_uint8_t
6455 _ACEOF
6456 ;;
6457 esac
6458
6459 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6460 case $ac_cv_c_uint16_t in #(
6461 no|yes) ;; #(
6462 *)
6463
6464
6465 cat >>confdefs.h <<_ACEOF
6466 #define uint16_t $ac_cv_c_uint16_t
6467 _ACEOF
6468 ;;
6469 esac
6470
6471 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6472 case $ac_cv_c_uint32_t in #(
6473 no|yes) ;; #(
6474 *)
6475
6476 $as_echo "#define _UINT32_T 1" >>confdefs.h
6477
6478
6479 cat >>confdefs.h <<_ACEOF
6480 #define uint32_t $ac_cv_c_uint32_t
6481 _ACEOF
6482 ;;
6483 esac
6484
6485 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6486 case $ac_cv_c_uint64_t in #(
6487 no|yes) ;; #(
6488 *)
6489
6490 $as_echo "#define _UINT64_T 1" >>confdefs.h
6491
6492
6493 cat >>confdefs.h <<_ACEOF
6494 #define uint64_t $ac_cv_c_uint64_t
6495 _ACEOF
6496 ;;
6497 esac
6498
6499
6500
6501 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6502 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6503
6504 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6505
6506 else
6507 test $ac_cv_type_unsigned_long_long_int = yes \
6508 && ac_type='unsigned long long int' \
6509 || ac_type='unsigned long int'
6510
6511 cat >>confdefs.h <<_ACEOF
6512 #define uintmax_t $ac_type
6513 _ACEOF
6514
6515 fi
6516
6517
6518
6519 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6520 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6521
6522 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6523
6524 else
6525 for ac_type in 'unsigned int' 'unsigned long int' \
6526 'unsigned long long int'; do
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6529 $ac_includes_default
6530 int
6531 main ()
6532 {
6533 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6534 test_array [0] = 0;
6535 return test_array [0];
6536
6537 ;
6538 return 0;
6539 }
6540 _ACEOF
6541 if ac_fn_cxx_try_compile "$LINENO"; then :
6542
6543 cat >>confdefs.h <<_ACEOF
6544 #define uintptr_t $ac_type
6545 _ACEOF
6546
6547 ac_type=
6548 fi
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550 test -z "$ac_type" && break
6551 done
6552 fi
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6568 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6569 fi
6570
6571 # check what underlying integer type int64_t uses
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6573 $as_echo_n "checking for int64_t underlying type... " >&6; }
6574 if ${ac_cv_int64_t_type+:} false; then :
6575 $as_echo_n "(cached) " >&6
6576 else
6577
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6580
6581 #ifdef HAVE_STDINT_H
6582 #include <stdint.h>
6583 #endif
6584 template <typename T> struct X { };
6585 template <>
6586 struct X<long> { typedef long t; };
6587
6588 int
6589 main ()
6590 {
6591 X<int64_t>::t x;
6592 ;
6593 return 0;
6594 }
6595 _ACEOF
6596 if ac_fn_cxx_try_compile "$LINENO"; then :
6597 ac_cv_int64_t_type=long
6598 else
6599 ac_cv_int64_t_type="long long"
6600 fi
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6604 $as_echo "$ac_cv_int64_t_type" >&6; }
6605 if test "$ac_cv_int64_t_type" = "long"; then
6606
6607 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6608
6609 else
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6612
6613 #ifdef HAVE_STDINT_H
6614 #include <stdint.h>
6615 #endif
6616 template <typename T> struct X { };
6617 template <>
6618 struct X<long long> { typedef long long t; };
6619
6620 int
6621 main ()
6622 {
6623 X<int64_t>::t x;
6624 ;
6625 return 0;
6626 }
6627 _ACEOF
6628 if ac_fn_cxx_try_compile "$LINENO"; then :
6629
6630 else
6631 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6632 fi
6633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634 fi
6635
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6637 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6638 if ${ac_cv_std_swap_in_utility+:} false; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644
6645 #include <utility>
6646
6647 int
6648 main ()
6649 {
6650 int a, b; std::swap(a,b);
6651 ;
6652 return 0;
6653 }
6654 _ACEOF
6655 if ac_fn_cxx_try_compile "$LINENO"; then :
6656 ac_cv_std_swap_in_utility=yes
6657 else
6658 ac_cv_std_swap_in_utility=no
6659 fi
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661 fi
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6663 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6664 if test $ac_cv_std_swap_in_utility = yes; then
6665
6666 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6667
6668 fi
6669
6670 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6671 # If the host compiler is affected by the bug, and we build with optimization
6672 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6673 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6674 # Since there is no reliable feature check for the presence of this bug,
6675 # we simply use a GCC version number check. (This should never trigger for
6676 # stages 2 or 3 of a native bootstrap.)
6677 aliasing_flags=
6678 if test "$GCC" = yes; then
6679 saved_CXXFLAGS="$CXXFLAGS"
6680
6681 # The following test compilation will succeed if and only if $CXX accepts
6682 # -fno-strict-aliasing *and* is older than GCC 4.3.
6683 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6685 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h. */
6688
6689 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6690 #error compiler not affected by placement new aliasing bug
6691 #endif
6692
6693 _ACEOF
6694 if ac_fn_cxx_try_compile "$LINENO"; then :
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6696 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6697 else
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6700 fi
6701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702
6703 CXXFLAGS="$saved_CXXFLAGS"
6704 fi
6705
6706
6707
6708
6709 # ---------------------
6710 # Warnings and checking
6711 # ---------------------
6712
6713 # Check $CC warning features (if it's GCC).
6714 # We want to use -pedantic, but we don't want warnings about
6715 # * 'long long'
6716 # * variadic macros
6717 # * overlong strings
6718 # * C++11 narrowing conversions in { }
6719 # So, we only use -pedantic if we can disable those warnings.
6720
6721 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6722 # Check whether --enable-build-format-warnings was given.
6723 if test "${enable_build_format_warnings+set}" = set; then :
6724 enableval=$enable_build_format_warnings;
6725 else
6726 enable_build_format_warnings=yes
6727 fi
6728
6729 if test $enable_build_format_warnings = no; then :
6730 wf_opt=-Wno-format
6731 else
6732 wf_opt=
6733 fi
6734 ac_ext=cpp
6735 ac_cpp='$CXXCPP $CPPFLAGS'
6736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6739
6740 loose_warn=
6741 save_CXXFLAGS="$CXXFLAGS"
6742 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6743 # Do the check with the no- prefix removed since gcc silently
6744 # accepts any -Wno-* option on purpose
6745 case $real_option in
6746 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6747 *) option=$real_option ;;
6748 esac
6749 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6750
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6752 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6753 if eval \${$as_acx_Woption+:} false; then :
6754 $as_echo_n "(cached) " >&6
6755 else
6756 CXXFLAGS="$option"
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6759
6760 int
6761 main ()
6762 {
6763
6764 ;
6765 return 0;
6766 }
6767 _ACEOF
6768 if ac_fn_cxx_try_compile "$LINENO"; then :
6769 eval "$as_acx_Woption=yes"
6770 else
6771 eval "$as_acx_Woption=no"
6772 fi
6773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6774
6775 fi
6776 eval ac_res=\$$as_acx_Woption
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6778 $as_echo "$ac_res" >&6; }
6779 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6780 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6781 fi
6782 done
6783 CXXFLAGS="$save_CXXFLAGS"
6784 ac_ext=cpp
6785 ac_cpp='$CXXCPP $CPPFLAGS'
6786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6789
6790
6791
6792 ac_ext=c
6793 ac_cpp='$CPP $CPPFLAGS'
6794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6797
6798 c_loose_warn=
6799 save_CFLAGS="$CFLAGS"
6800 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6801 # Do the check with the no- prefix removed since gcc silently
6802 # accepts any -Wno-* option on purpose
6803 case $real_option in
6804 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6805 *) option=$real_option ;;
6806 esac
6807 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6808
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6810 $as_echo_n "checking whether $CC supports $option... " >&6; }
6811 if eval \${$as_acx_Woption+:} false; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 CFLAGS="$option"
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6817
6818 int
6819 main ()
6820 {
6821
6822 ;
6823 return 0;
6824 }
6825 _ACEOF
6826 if ac_fn_c_try_compile "$LINENO"; then :
6827 eval "$as_acx_Woption=yes"
6828 else
6829 eval "$as_acx_Woption=no"
6830 fi
6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832
6833 fi
6834 eval ac_res=\$$as_acx_Woption
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6836 $as_echo "$ac_res" >&6; }
6837 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6838 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6839 fi
6840 done
6841 CFLAGS="$save_CFLAGS"
6842 ac_ext=cpp
6843 ac_cpp='$CXXCPP $CPPFLAGS'
6844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6847
6848
6849 ac_ext=cpp
6850 ac_cpp='$CXXCPP $CPPFLAGS'
6851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6854
6855 strict_warn=
6856 save_CXXFLAGS="$CXXFLAGS"
6857 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6858 # Do the check with the no- prefix removed since gcc silently
6859 # accepts any -Wno-* option on purpose
6860 case $real_option in
6861 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6862 *) option=$real_option ;;
6863 esac
6864 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6865
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6867 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6868 if eval \${$as_acx_Woption+:} false; then :
6869 $as_echo_n "(cached) " >&6
6870 else
6871 CXXFLAGS="$option"
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874
6875 int
6876 main ()
6877 {
6878
6879 ;
6880 return 0;
6881 }
6882 _ACEOF
6883 if ac_fn_cxx_try_compile "$LINENO"; then :
6884 eval "$as_acx_Woption=yes"
6885 else
6886 eval "$as_acx_Woption=no"
6887 fi
6888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889
6890 fi
6891 eval ac_res=\$$as_acx_Woption
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6893 $as_echo "$ac_res" >&6; }
6894 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6895 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6896 fi
6897 done
6898 CXXFLAGS="$save_CXXFLAGS"
6899 ac_ext=cpp
6900 ac_cpp='$CXXCPP $CPPFLAGS'
6901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6904
6905
6906 ac_ext=c
6907 ac_cpp='$CPP $CPPFLAGS'
6908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6911
6912 c_strict_warn=
6913 save_CFLAGS="$CFLAGS"
6914 for real_option in -Wold-style-definition -Wc++-compat; do
6915 # Do the check with the no- prefix removed since gcc silently
6916 # accepts any -Wno-* option on purpose
6917 case $real_option in
6918 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6919 *) option=$real_option ;;
6920 esac
6921 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6922
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6924 $as_echo_n "checking whether $CC supports $option... " >&6; }
6925 if eval \${$as_acx_Woption+:} false; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 CFLAGS="$option"
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931
6932 int
6933 main ()
6934 {
6935
6936 ;
6937 return 0;
6938 }
6939 _ACEOF
6940 if ac_fn_c_try_compile "$LINENO"; then :
6941 eval "$as_acx_Woption=yes"
6942 else
6943 eval "$as_acx_Woption=no"
6944 fi
6945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6946
6947 fi
6948 eval ac_res=\$$as_acx_Woption
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6950 $as_echo "$ac_res" >&6; }
6951 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6952 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6953 fi
6954 done
6955 CFLAGS="$save_CFLAGS"
6956 ac_ext=cpp
6957 ac_cpp='$CXXCPP $CPPFLAGS'
6958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6961
6962
6963 ac_ext=cpp
6964 ac_cpp='$CXXCPP $CPPFLAGS'
6965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6968
6969 # Do the check with the no- prefix removed from the warning options
6970 # since gcc silently accepts any -Wno-* option on purpose
6971 if test "$GXX" = yes; then :
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6973 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6974 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
6975 $as_echo_n "(cached) " >&6
6976 else
6977 save_CXXFLAGS="$CXXFLAGS"
6978 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6981
6982 int
6983 main ()
6984 {
6985
6986 ;
6987 return 0;
6988 }
6989 _ACEOF
6990 if ac_fn_cxx_try_compile "$LINENO"; then :
6991 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6992 else
6993 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6994 fi
6995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996 CXXFLAGS="$save_CXXFLAGS"
6997 fi
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6999 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7000 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7001 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7002 fi
7003
7004 fi
7005 ac_ext=cpp
7006 ac_cpp='$CXXCPP $CPPFLAGS'
7007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7010
7011
7012 ac_ext=cpp
7013 ac_cpp='$CXXCPP $CPPFLAGS'
7014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7017
7018 # Check whether --enable-werror-always was given.
7019 if test "${enable_werror_always+set}" = set; then :
7020 enableval=$enable_werror_always;
7021 else
7022 enable_werror_always=no
7023 fi
7024
7025 if test $enable_werror_always = yes; then :
7026 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7027 fi
7028
7029 ac_ext=cpp
7030 ac_cpp='$CXXCPP $CPPFLAGS'
7031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7034
7035
7036
7037 # The above macros do nothing if the compiler is not GCC. However, the
7038 # Makefile has more goo to add other flags, so these variables are used
7039 # to enable warnings only for GCC.
7040 warn_cflags=
7041 warn_cxxflags=
7042 if test "x$GCC" = "xyes"; then
7043 warn_cflags='$(GCC_WARN_CFLAGS)'
7044 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7045 fi
7046
7047
7048
7049 # Disable exceptions and RTTI if building with g++
7050 ac_ext=c
7051 ac_cpp='$CPP $CPPFLAGS'
7052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7055
7056 noexception_flags=
7057 save_CFLAGS="$CFLAGS"
7058 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7059 # Do the check with the no- prefix removed since gcc silently
7060 # accepts any -Wno-* option on purpose
7061 case $real_option in
7062 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7063 *) option=$real_option ;;
7064 esac
7065 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7066
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7068 $as_echo_n "checking whether $CC supports $option... " >&6; }
7069 if eval \${$as_acx_Woption+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7072 CFLAGS="$option"
7073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074 /* end confdefs.h. */
7075
7076 int
7077 main ()
7078 {
7079
7080 ;
7081 return 0;
7082 }
7083 _ACEOF
7084 if ac_fn_c_try_compile "$LINENO"; then :
7085 eval "$as_acx_Woption=yes"
7086 else
7087 eval "$as_acx_Woption=no"
7088 fi
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090
7091 fi
7092 eval ac_res=\$$as_acx_Woption
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7094 $as_echo "$ac_res" >&6; }
7095 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7096 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7097 fi
7098 done
7099 CFLAGS="$save_CFLAGS"
7100 ac_ext=cpp
7101 ac_cpp='$CXXCPP $CPPFLAGS'
7102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7105
7106
7107
7108 # Enable expensive internal checks
7109 is_release=
7110 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7111 is_release=yes
7112 fi
7113
7114 # Check whether --enable-checking was given.
7115 if test "${enable_checking+set}" = set; then :
7116 enableval=$enable_checking; ac_checking_flags="${enableval}"
7117 else
7118
7119 # Determine the default checks.
7120 if test x$is_release = x ; then
7121 ac_checking_flags=yes,extra
7122 else
7123 ac_checking_flags=release
7124 fi
7125 fi
7126
7127 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7128 for check in release $ac_checking_flags
7129 do
7130 case $check in
7131 # these set all the flags to specific states
7132 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7133 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7134 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7135 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7136 ac_tree_checking=1 ; ac_valgrind_checking= ;
7137 ac_types_checking=1 ;;
7138 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7139 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7140 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7141 ac_rtlflag_checking= ; ac_runtime_checking= ;
7142 ac_tree_checking= ; ac_valgrind_checking= ;
7143 ac_types_checking= ;;
7144 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7145 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7146 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7147 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7148 ac_tree_checking=1 ; ac_valgrind_checking= ;
7149 ac_types_checking=1 ;;
7150 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7151 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7152 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7153 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7154 ac_tree_checking= ; ac_valgrind_checking= ;
7155 ac_types_checking= ;;
7156 # these enable particular checks
7157 assert) ac_assert_checking=1 ;;
7158 df) ac_df_checking=1 ;;
7159 extra) ac_extra_checking=1 ;;
7160 fold) ac_fold_checking=1 ;;
7161 gc) ac_gc_checking=1 ;;
7162 gcac) ac_gc_always_collect=1 ;;
7163 gimple) ac_gimple_checking=1 ;;
7164 misc) ac_checking=1 ;;
7165 rtl) ac_rtl_checking=1 ;;
7166 rtlflag) ac_rtlflag_checking=1 ;;
7167 runtime) ac_runtime_checking=1 ;;
7168 tree) ac_tree_checking=1 ;;
7169 types) ac_types_checking=1 ;;
7170 valgrind) ac_valgrind_checking=1 ;;
7171 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7172 esac
7173 done
7174 IFS="$ac_save_IFS"
7175
7176 nocommon_flag=""
7177 if test x$ac_checking != x ; then
7178
7179 $as_echo "#define CHECKING_P 1" >>confdefs.h
7180
7181 nocommon_flag=-fno-common
7182 else
7183 $as_echo "#define CHECKING_P 0" >>confdefs.h
7184
7185 fi
7186
7187 if test x$ac_extra_checking != x ; then
7188
7189 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7190
7191 else
7192 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7193
7194 fi
7195 if test x$ac_df_checking != x ; then
7196
7197 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7198
7199 fi
7200 if test x$ac_assert_checking != x ; then
7201
7202 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7203
7204 fi
7205 if test x$ac_gimple_checking != x ; then
7206
7207 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7208
7209 fi
7210
7211 if test x$ac_runtime_checking != x ; then
7212
7213 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7214
7215 fi
7216 if test x$ac_tree_checking != x ; then
7217
7218 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7219
7220 TREECHECKING=yes
7221 fi
7222 if test x$ac_types_checking != x ; then
7223
7224 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7225
7226 fi
7227
7228 if test x$ac_rtl_checking != x ; then
7229
7230 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7231
7232 fi
7233 if test x$ac_rtlflag_checking != x ; then
7234
7235 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7236
7237 fi
7238 if test x$ac_gc_checking != x ; then
7239
7240 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7241
7242 fi
7243 if test x$ac_gc_always_collect != x ; then
7244
7245 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7246
7247 fi
7248 if test x$ac_fold_checking != x ; then
7249
7250 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7251
7252 fi
7253 valgrind_path_defines=
7254 valgrind_command=
7255
7256 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7257 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7258 have_valgrind_h=yes
7259 else
7260 have_valgrind_h=no
7261 fi
7262
7263
7264
7265 # It is certainly possible that there's valgrind but no valgrind.h.
7266 # GCC relies on making annotations so we must have both.
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7268 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7271 #include <valgrind/memcheck.h>
7272 #ifndef VALGRIND_DISCARD
7273 #error VALGRIND_DISCARD not defined
7274 #endif
7275 _ACEOF
7276 if ac_fn_cxx_try_cpp "$LINENO"; then :
7277 gcc_cv_header_valgrind_memcheck_h=yes
7278 else
7279 gcc_cv_header_valgrind_memcheck_h=no
7280 fi
7281 rm -f conftest.err conftest.i conftest.$ac_ext
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7283 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7285 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288 #include <memcheck.h>
7289 #ifndef VALGRIND_DISCARD
7290 #error VALGRIND_DISCARD not defined
7291 #endif
7292 _ACEOF
7293 if ac_fn_cxx_try_cpp "$LINENO"; then :
7294 gcc_cv_header_memcheck_h=yes
7295 else
7296 gcc_cv_header_memcheck_h=no
7297 fi
7298 rm -f conftest.err conftest.i conftest.$ac_ext
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7300 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7301 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7302
7303 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7304
7305 fi
7306 if test $gcc_cv_header_memcheck_h = yes; then
7307
7308 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7309
7310 fi
7311
7312 if test x$ac_valgrind_checking != x ; then
7313
7314 # Prepare PATH_SEPARATOR.
7315 # The user is always right.
7316 if test "${PATH_SEPARATOR+set}" != set; then
7317 echo "#! /bin/sh" >conf$$.sh
7318 echo "exit 0" >>conf$$.sh
7319 chmod +x conf$$.sh
7320 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7321 PATH_SEPARATOR=';'
7322 else
7323 PATH_SEPARATOR=:
7324 fi
7325 rm -f conf$$.sh
7326 fi
7327
7328 # Find out how to test for executable files. Don't use a zero-byte file,
7329 # as systems may use methods other than mode bits to determine executability.
7330 cat >conf$$.file <<_ASEOF
7331 #! /bin/sh
7332 exit 0
7333 _ASEOF
7334 chmod +x conf$$.file
7335 if test -x conf$$.file >/dev/null 2>&1; then
7336 ac_executable_p="test -x"
7337 else
7338 ac_executable_p="test -f"
7339 fi
7340 rm -f conf$$.file
7341
7342 # Extract the first word of "valgrind", so it can be a program name with args.
7343 set dummy valgrind; ac_word=$2
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if ${ac_cv_path_valgrind_path+:} false; then :
7347 $as_echo_n "(cached) " >&6
7348 else
7349 case "$valgrind_path" in
7350 [\\/]* | ?:[\\/]*)
7351 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7352 ;;
7353 *)
7354 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7355 for ac_dir in $PATH; do
7356 IFS="$ac_save_IFS"
7357 test -z "$ac_dir" && ac_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7360 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7361 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7362 break 2
7363 fi
7364 fi
7365 done
7366 done
7367 IFS="$ac_save_IFS"
7368 ;;
7369 esac
7370 fi
7371 valgrind_path="$ac_cv_path_valgrind_path"
7372 if test -n "$valgrind_path"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7374 $as_echo "$valgrind_path" >&6; }
7375 else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7378 fi
7379
7380 if test "x$valgrind_path" = "x" \
7381 || (test $have_valgrind_h = no \
7382 && test $gcc_cv_header_memcheck_h = no \
7383 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7384 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7385 fi
7386 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7387 valgrind_command="$valgrind_path -q"
7388
7389 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7390
7391 fi
7392
7393
7394
7395 # Enable code coverage collection
7396 # Check whether --enable-coverage was given.
7397 if test "${enable_coverage+set}" = set; then :
7398 enableval=$enable_coverage; case "${enableval}" in
7399 yes|noopt)
7400 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7401 ;;
7402 opt)
7403 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7404 ;;
7405 no)
7406 # a.k.a. --disable-coverage
7407 coverage_flags=""
7408 ;;
7409 *)
7410 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7411 ;;
7412 esac
7413 else
7414 coverage_flags=""
7415 fi
7416
7417
7418
7419 # Check whether --enable-gather-detailed-mem-stats was given.
7420 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7421 enableval=$enable_gather_detailed_mem_stats;
7422 else
7423 enable_gather_detailed_mem_stats=no
7424 fi
7425
7426 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7427
7428 cat >>confdefs.h <<_ACEOF
7429 #define GATHER_STATISTICS $gather_stats
7430 _ACEOF
7431
7432
7433 # Check whether --enable-valgrind-annotations was given.
7434 if test "${enable_valgrind_annotations+set}" = set; then :
7435 enableval=$enable_valgrind_annotations;
7436 else
7437 enable_valgrind_annotations=no
7438 fi
7439
7440 if test x$enable_valgrind_annotations != xno \
7441 || test x$ac_valgrind_checking != x; then
7442 if (test $have_valgrind_h = no \
7443 && test $gcc_cv_header_memcheck_h = no \
7444 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7445 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7446 fi
7447
7448 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7449
7450 fi
7451
7452 # -------------------------------
7453 # Miscenalleous configure options
7454 # -------------------------------
7455
7456 # With stabs
7457
7458 # Check whether --with-stabs was given.
7459 if test "${with_stabs+set}" = set; then :
7460 withval=$with_stabs; stabs="$with_stabs"
7461 else
7462 stabs=no
7463 fi
7464
7465
7466 # Determine whether or not multilibs are enabled.
7467 # Check whether --enable-multilib was given.
7468 if test "${enable_multilib+set}" = set; then :
7469 enableval=$enable_multilib;
7470 else
7471 enable_multilib=yes
7472 fi
7473
7474
7475
7476 # Determine whether or not multiarch is enabled.
7477 # Check whether --enable-multiarch was given.
7478 if test "${enable_multiarch+set}" = set; then :
7479 enableval=$enable_multiarch; case "${enableval}" in
7480 yes|no|auto) enable_multiarch=$enableval;;
7481 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7482 esac
7483 else
7484 enable_multiarch=auto
7485 fi
7486
7487 if test x${enable_multiarch} = xauto; then
7488 if test x${with_native_system_header_dir} != x; then
7489 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7490 enable_multiarch=no
7491 fi
7492 if test x$host != x$target && test "x$with_sysroot" = x; then
7493 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7494 enable_multiarch=no
7495 fi
7496 fi
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7498 $as_echo_n "checking for multiarch configuration... " >&6; }
7499
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7501 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7502
7503 # needed for setting the multiarch name for soft-float/hard-float ABIs
7504
7505
7506
7507 # default stack clash protection guard size as power of twos in bytes.
7508 # Please keep these in sync with params.def.
7509 stk_clash_min=12
7510 stk_clash_max=30
7511
7512 # Keep the default value when the option is not used to 0, this allows us to
7513 # distinguish between the cases where the user specifially set a value via
7514 # configure and when the normal default value is used.
7515
7516 # Check whether --with-stack-clash-protection-guard-size was given.
7517 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7518 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7519 else
7520 DEFAULT_STK_CLASH_GUARD_SIZE=0
7521 fi
7522
7523 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7524 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7525 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7526 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
7527 fi
7528
7529
7530 cat >>confdefs.h <<_ACEOF
7531 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7532 _ACEOF
7533
7534
7535 # Enable __cxa_atexit for C++.
7536 # Check whether --enable-__cxa_atexit was given.
7537 if test "${enable___cxa_atexit+set}" = set; then :
7538 enableval=$enable___cxa_atexit;
7539 fi
7540
7541
7542 # Enable C extension for decimal float if target supports it.
7543
7544 # Check whether --enable-decimal-float was given.
7545 if test "${enable_decimal_float+set}" = set; then :
7546 enableval=$enable_decimal_float;
7547 case $enable_decimal_float in
7548 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7549 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7550 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7551 esac
7552
7553 else
7554
7555 case $target in
7556 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7557 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7558 i?86*-*-mingw* | x86_64*-*-mingw* | \
7559 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7560 enable_decimal_float=yes
7561 ;;
7562 *)
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7564 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7565 enable_decimal_float=no
7566 ;;
7567 esac
7568
7569 fi
7570
7571
7572 # x86's use BID format instead of DPD
7573 case x$enable_decimal_float in
7574 xyes)
7575 case $target in
7576 i?86*-*-* | x86_64*-*-*)
7577 enable_decimal_float=bid
7578 ;;
7579 *)
7580 enable_decimal_float=dpd
7581 ;;
7582 esac
7583 default_decimal_float=$enable_decimal_float
7584 ;;
7585 xno)
7586 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7587 # dependency on libdecnumber.
7588 default_decimal_float=dpd
7589 ;;
7590 esac
7591
7592
7593
7594
7595 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7596
7597 cat >>confdefs.h <<_ACEOF
7598 #define ENABLE_DECIMAL_FLOAT $dfp
7599 _ACEOF
7600
7601
7602 # Use default_decimal_float for dependency.
7603 enable_decimal_float=$default_decimal_float
7604
7605 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7606
7607 cat >>confdefs.h <<_ACEOF
7608 #define ENABLE_DECIMAL_BID_FORMAT $bid
7609 _ACEOF
7610
7611
7612 # Enable C extension for fixed-point arithmetic.
7613 # Check whether --enable-fixed-point was given.
7614 if test "${enable_fixed_point+set}" = set; then :
7615 enableval=$enable_fixed_point;
7616 else
7617
7618 case $target in
7619 arm*)
7620 enable_fixed_point=yes
7621 ;;
7622
7623 mips*-*-*)
7624 enable_fixed_point=yes
7625 ;;
7626 *)
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7628 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7629 enable_fixed_point=no
7630 ;;
7631 esac
7632
7633 fi
7634
7635
7636
7637 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7638
7639 cat >>confdefs.h <<_ACEOF
7640 #define ENABLE_FIXED_POINT $fixedpoint
7641 _ACEOF
7642
7643
7644 # Enable threads
7645 # Pass with no value to take the default
7646 # Pass with a value to specify a thread package
7647 # Check whether --enable-threads was given.
7648 if test "${enable_threads+set}" = set; then :
7649 enableval=$enable_threads;
7650 else
7651 enable_threads=''
7652 fi
7653
7654
7655 # Check whether --enable-tls was given.
7656 if test "${enable_tls+set}" = set; then :
7657 enableval=$enable_tls;
7658 case $enable_tls in
7659 yes | no) ;;
7660 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7661 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7662 esac
7663
7664 else
7665 enable_tls=''
7666 fi
7667
7668
7669 # Check whether --enable-vtable-verify was given.
7670 if test "${enable_vtable_verify+set}" = set; then :
7671 enableval=$enable_vtable_verify;
7672 else
7673 enable_vtable_verify=no
7674 fi
7675
7676 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7677
7678 cat >>confdefs.h <<_ACEOF
7679 #define ENABLE_VTABLE_VERIFY $vtable_verify
7680 _ACEOF
7681
7682
7683 # Check whether --enable-objc-gc was given.
7684 if test "${enable_objc_gc+set}" = set; then :
7685 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7686 objc_boehm_gc=''
7687 else
7688 objc_boehm_gc=1
7689 fi
7690 else
7691 objc_boehm_gc=''
7692 fi
7693
7694
7695
7696 # Check whether --with-dwarf2 was given.
7697 if test "${with_dwarf2+set}" = set; then :
7698 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7699 else
7700 dwarf2=no
7701 fi
7702
7703
7704 # Check whether --enable-shared was given.
7705 if test "${enable_shared+set}" = set; then :
7706 enableval=$enable_shared;
7707 case $enable_shared in
7708 yes | no) ;;
7709 *)
7710 enable_shared=no
7711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7712 for pkg in $enableval; do
7713 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7714 enable_shared=yes
7715 fi
7716 done
7717 IFS="$ac_save_ifs"
7718 ;;
7719 esac
7720
7721 else
7722 enable_shared=yes
7723 fi
7724
7725
7726
7727 # Check whether --enable-gcov was given.
7728 if test "${enable_gcov+set}" = set; then :
7729 enableval=$enable_gcov;
7730 else
7731 enable_gcov=yes
7732 fi
7733
7734
7735
7736
7737 # Check whether --with-specs was given.
7738 if test "${with_specs+set}" = set; then :
7739 withval=$with_specs; CONFIGURE_SPECS=$withval
7740 else
7741 CONFIGURE_SPECS=
7742
7743 fi
7744
7745
7746
7747
7748
7749 # Check whether --with-pkgversion was given.
7750 if test "${with_pkgversion+set}" = set; then :
7751 withval=$with_pkgversion; case "$withval" in
7752 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7753 no) PKGVERSION= ;;
7754 *) PKGVERSION="($withval) " ;;
7755 esac
7756 else
7757 PKGVERSION="(GCC) "
7758
7759 fi
7760
7761
7762
7763
7764
7765 # Check whether --with-bugurl was given.
7766 if test "${with_bugurl+set}" = set; then :
7767 withval=$with_bugurl; case "$withval" in
7768 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7769 no) BUGURL=
7770 ;;
7771 *) BUGURL="$withval"
7772 ;;
7773 esac
7774 else
7775 BUGURL="https://gcc.gnu.org/bugs/"
7776
7777 fi
7778
7779 case ${BUGURL} in
7780 "")
7781 REPORT_BUGS_TO=
7782 REPORT_BUGS_TEXI=
7783 ;;
7784 *)
7785 REPORT_BUGS_TO="<$BUGURL>"
7786 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7787 ;;
7788 esac;
7789
7790
7791
7792
7793 # Sanity check enable_languages in case someone does not run the toplevel
7794 # configure # script.
7795 # Check whether --enable-languages was given.
7796 if test "${enable_languages+set}" = set; then :
7797 enableval=$enable_languages; case ,${enable_languages}, in
7798 ,,|,yes,)
7799 # go safe -- we cannot be much sure without the toplevel
7800 # configure's
7801 # analysis of which target libs are present and usable
7802 enable_languages=c
7803 ;;
7804 *,all,*)
7805 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7806 ;;
7807 *,c,*)
7808 ;;
7809 *)
7810 enable_languages=c,${enable_languages}
7811 ;;
7812 esac
7813 else
7814 enable_languages=c
7815 fi
7816
7817
7818 if test x"$enable_as_accelerator_for" != x; then
7819
7820 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7821
7822 enable_as_accelerator=yes
7823 case "${target}" in
7824 *-intelmicemul-*)
7825 # In this case we expect offload compiler to be built as native, so we
7826 # need to rename the driver to avoid clashes with host's drivers.
7827 program_transform_name="s&^&${target}-&" ;;
7828 esac
7829 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7830 program_transform_name=`echo $program_transform_name | sed $sedscript`
7831 accel_dir_suffix=/accel/${target_noncanonical}
7832 real_target_noncanonical=${enable_as_accelerator_for}
7833 fi
7834
7835
7836
7837
7838 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7839 tgt=`echo $tgt | sed 's/=.*//'`
7840
7841 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7842 enable_hsa=1
7843 else
7844 enable_offloading=1
7845 fi
7846
7847 if test x"$offload_targets" = x; then
7848 offload_targets=$tgt
7849 else
7850 offload_targets="$offload_targets,$tgt"
7851 fi
7852 done
7853
7854 cat >>confdefs.h <<_ACEOF
7855 #define OFFLOAD_TARGETS "$offload_targets"
7856 _ACEOF
7857
7858 if test x"$enable_offloading" != x; then
7859
7860 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7861
7862 else
7863
7864 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7865
7866 fi
7867
7868 if test x"$enable_hsa" = x1 ; then
7869
7870 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7871
7872 fi
7873
7874
7875 # Check whether --with-multilib-list was given.
7876 if test "${with_multilib_list+set}" = set; then :
7877 withval=$with_multilib_list; :
7878 else
7879 with_multilib_list=default
7880 fi
7881
7882
7883 # -------------------------
7884 # Checks for other programs
7885 # -------------------------
7886
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7888 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7889 set x ${MAKE-make}
7890 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7891 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 cat >conftest.make <<\_ACEOF
7895 SHELL = /bin/sh
7896 all:
7897 @echo '@@@%%%=$(MAKE)=@@@%%%'
7898 _ACEOF
7899 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7900 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7901 *@@@%%%=?*=@@@%%%*)
7902 eval ac_cv_prog_make_${ac_make}_set=yes;;
7903 *)
7904 eval ac_cv_prog_make_${ac_make}_set=no;;
7905 esac
7906 rm -f conftest.make
7907 fi
7908 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7910 $as_echo "yes" >&6; }
7911 SET_MAKE=
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7915 SET_MAKE="MAKE=${MAKE-make}"
7916 fi
7917
7918
7919 # Find some useful tools
7920 for ac_prog in gawk mawk nawk awk
7921 do
7922 # Extract the first word of "$ac_prog", so it can be a program name with args.
7923 set dummy $ac_prog; ac_word=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if ${ac_cv_prog_AWK+:} false; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 if test -n "$AWK"; then
7930 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7931 else
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 for as_dir in $PATH
7934 do
7935 IFS=$as_save_IFS
7936 test -z "$as_dir" && as_dir=.
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7939 ac_cv_prog_AWK="$ac_prog"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 break 2
7942 fi
7943 done
7944 done
7945 IFS=$as_save_IFS
7946
7947 fi
7948 fi
7949 AWK=$ac_cv_prog_AWK
7950 if test -n "$AWK"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7952 $as_echo "$AWK" >&6; }
7953 else
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7956 fi
7957
7958
7959 test -n "$AWK" && break
7960 done
7961
7962 # We need awk to create options.c and options.h.
7963 # Bail out if it's missing.
7964 case ${AWK} in
7965 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
7966 esac
7967
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7969 $as_echo_n "checking whether ln -s works... " >&6; }
7970 if ${gcc_cv_prog_LN_S+:} false; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 rm -f conftestdata_t
7974 echo >conftestdata_f
7975 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7976 then
7977 gcc_cv_prog_LN_S="ln -s"
7978 else
7979 if ln conftestdata_f conftestdata_t 2>/dev/null
7980 then
7981 gcc_cv_prog_LN_S=ln
7982 else
7983 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7984 then
7985 gcc_cv_prog_LN_S="cp -p"
7986 else
7987 gcc_cv_prog_LN_S=cp
7988 fi
7989 fi
7990 fi
7991 rm -f conftestdata_f conftestdata_t
7992
7993 fi
7994 LN_S="$gcc_cv_prog_LN_S"
7995 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7997 $as_echo "yes" >&6; }
7998 else
7999 if test "$gcc_cv_prog_LN_S" = "ln"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8001 $as_echo "no, using ln" >&6; }
8002 else
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8004 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8005 fi
8006 fi
8007
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8009 $as_echo_n "checking whether ln works... " >&6; }
8010 if ${acx_cv_prog_LN+:} false; then :
8011 $as_echo_n "(cached) " >&6
8012 else
8013 rm -f conftestdata_t
8014 echo >conftestdata_f
8015 if ln conftestdata_f conftestdata_t 2>/dev/null
8016 then
8017 acx_cv_prog_LN=ln
8018 else
8019 acx_cv_prog_LN=no
8020 fi
8021 rm -f conftestdata_f conftestdata_t
8022
8023 fi
8024 if test $acx_cv_prog_LN = no; then
8025 LN="$LN_S"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8027 $as_echo "no, using $LN" >&6; }
8028 else
8029 LN="$acx_cv_prog_LN"
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8031 $as_echo "yes" >&6; }
8032 fi
8033
8034 if test -n "$ac_tool_prefix"; then
8035 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8036 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 $as_echo_n "checking for $ac_word... " >&6; }
8039 if ${ac_cv_prog_RANLIB+:} false; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042 if test -n "$RANLIB"; then
8043 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8044 else
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8047 do
8048 IFS=$as_save_IFS
8049 test -z "$as_dir" && as_dir=.
8050 for ac_exec_ext in '' $ac_executable_extensions; do
8051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054 break 2
8055 fi
8056 done
8057 done
8058 IFS=$as_save_IFS
8059
8060 fi
8061 fi
8062 RANLIB=$ac_cv_prog_RANLIB
8063 if test -n "$RANLIB"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8065 $as_echo "$RANLIB" >&6; }
8066 else
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 $as_echo "no" >&6; }
8069 fi
8070
8071
8072 fi
8073 if test -z "$ac_cv_prog_RANLIB"; then
8074 ac_ct_RANLIB=$RANLIB
8075 # Extract the first word of "ranlib", so it can be a program name with args.
8076 set dummy ranlib; ac_word=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 $as_echo_n "checking for $ac_word... " >&6; }
8079 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8080 $as_echo_n "(cached) " >&6
8081 else
8082 if test -n "$ac_ct_RANLIB"; then
8083 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8084 else
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 for as_dir in $PATH
8087 do
8088 IFS=$as_save_IFS
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092 ac_cv_prog_ac_ct_RANLIB="ranlib"
8093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 break 2
8095 fi
8096 done
8097 done
8098 IFS=$as_save_IFS
8099
8100 fi
8101 fi
8102 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8103 if test -n "$ac_ct_RANLIB"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8105 $as_echo "$ac_ct_RANLIB" >&6; }
8106 else
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8109 fi
8110
8111 if test "x$ac_ct_RANLIB" = x; then
8112 RANLIB=":"
8113 else
8114 case $cross_compiling:$ac_tool_warned in
8115 yes:)
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8118 ac_tool_warned=yes ;;
8119 esac
8120 RANLIB=$ac_ct_RANLIB
8121 fi
8122 else
8123 RANLIB="$ac_cv_prog_RANLIB"
8124 fi
8125
8126 ranlib_flags=""
8127
8128
8129 # Find a good install program. We prefer a C program (faster),
8130 # so one script is as good as another. But avoid the broken or
8131 # incompatible versions:
8132 # SysV /etc/install, /usr/sbin/install
8133 # SunOS /usr/etc/install
8134 # IRIX /sbin/install
8135 # AIX /bin/install
8136 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8137 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8138 # ./install, which can be erroneously created by make from ./install.sh.
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8140 $as_echo_n "checking for a BSD compatible install... " >&6; }
8141 if test -z "$INSTALL"; then
8142 if ${ac_cv_path_install+:} false; then :
8143 $as_echo_n "(cached) " >&6
8144 else
8145 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8146 for ac_dir in $PATH; do
8147 # Account for people who put trailing slashes in PATH elements.
8148 case "$ac_dir/" in
8149 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8150 *)
8151 # OSF1 and SCO ODT 3.0 have their own names for install.
8152 for ac_prog in ginstall scoinst install; do
8153 if test -f $ac_dir/$ac_prog; then
8154 if test $ac_prog = install &&
8155 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8156 # AIX install. It has an incompatible calling convention.
8157 # OSF/1 installbsd also uses dspmsg, but is usable.
8158 :
8159 else
8160 ac_cv_path_install="$ac_dir/$ac_prog -c"
8161 break 2
8162 fi
8163 fi
8164 done
8165 ;;
8166 esac
8167 done
8168 IFS="$ac_save_IFS"
8169
8170 fi
8171 if test "${ac_cv_path_install+set}" = set; then
8172 INSTALL="$ac_cv_path_install"
8173 else
8174 # As a last resort, use the slow shell script. We don't cache a
8175 # path for INSTALL within a source directory, because that will
8176 # break other packages using the cache if that directory is
8177 # removed, or if the path is relative.
8178 INSTALL="$ac_install_sh"
8179 fi
8180 fi
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8182 $as_echo "$INSTALL" >&6; }
8183
8184 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8185 # It thinks the first close brace ends the variable substitution.
8186 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8187
8188 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8189
8190
8191 # See if cmp has --ignore-initial.
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8193 $as_echo_n "checking for cmp's capabilities... " >&6; }
8194 if ${gcc_cv_prog_cmp_skip+:} false; then :
8195 $as_echo_n "(cached) " >&6
8196 else
8197 echo abfoo >t1
8198 echo cdfoo >t2
8199 gcc_cv_prog_cmp_skip=slowcompare
8200 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8201 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8202 :
8203 else
8204 gcc_cv_prog_cmp_skip=gnucompare
8205 fi
8206 fi
8207 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8208 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8209 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8210 :
8211 else
8212 gcc_cv_prog_cmp_skip=fastcompare
8213 fi
8214 fi
8215 fi
8216 rm t1 t2
8217
8218 fi
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8220 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8221 make_compare_target=$gcc_cv_prog_cmp_skip
8222
8223
8224
8225 # See if we have the mktemp command.
8226 # Extract the first word of "mktemp", so it can be a program name with args.
8227 set dummy mktemp; ac_word=$2
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229 $as_echo_n "checking for $ac_word... " >&6; }
8230 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8231 $as_echo_n "(cached) " >&6
8232 else
8233 if test -n "$have_mktemp_command"; then
8234 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8235 else
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 for as_dir in $PATH
8238 do
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8243 ac_cv_prog_have_mktemp_command="yes"
8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 break 2
8246 fi
8247 done
8248 done
8249 IFS=$as_save_IFS
8250
8251 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8252 fi
8253 fi
8254 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8255 if test -n "$have_mktemp_command"; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8257 $as_echo "$have_mktemp_command" >&6; }
8258 else
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8261 fi
8262
8263
8264
8265 # See if makeinfo has been installed and is modern enough
8266 # that we can use it.
8267
8268 # Extract the first word of "makeinfo", so it can be a program name with args.
8269 set dummy makeinfo; ac_word=$2
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271 $as_echo_n "checking for $ac_word... " >&6; }
8272 if ${ac_cv_prog_MAKEINFO+:} false; then :
8273 $as_echo_n "(cached) " >&6
8274 else
8275 if test -n "$MAKEINFO"; then
8276 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8277 else
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $PATH
8280 do
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8285 ac_cv_prog_MAKEINFO="makeinfo"
8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 break 2
8288 fi
8289 done
8290 done
8291 IFS=$as_save_IFS
8292
8293 fi
8294 fi
8295 MAKEINFO=$ac_cv_prog_MAKEINFO
8296 if test -n "$MAKEINFO"; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8298 $as_echo "$MAKEINFO" >&6; }
8299 else
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8302 fi
8303
8304
8305 if test -n "$MAKEINFO"; then
8306 # Found it, now check the version.
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8308 $as_echo_n "checking for modern makeinfo... " >&6; }
8309 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8310 $as_echo_n "(cached) " >&6
8311 else
8312 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8313 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8314
8315 case $ac_prog_version in
8316 '') gcc_cv_prog_makeinfo_modern=no;;
8317 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8318 *) gcc_cv_prog_makeinfo_modern=no;;
8319 esac
8320
8321 fi
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8323 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8324 else
8325 gcc_cv_prog_makeinfo_modern=no
8326 fi
8327 if test $gcc_cv_prog_makeinfo_modern = no; then
8328 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8329 fi
8330
8331 if test $gcc_cv_prog_makeinfo_modern = no; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8333 *** Makeinfo is missing or too old.
8334 *** Info documentation will not be built." >&5
8335 $as_echo "$as_me: WARNING:
8336 *** Makeinfo is missing or too old.
8337 *** Info documentation will not be built." >&2;}
8338 BUILD_INFO=
8339 else
8340 BUILD_INFO=info
8341 fi
8342
8343
8344 # Is pod2man recent enough to regenerate manpages?
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8346 $as_echo_n "checking for recent Pod::Man... " >&6; }
8347 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8349 $as_echo "yes" >&6; }
8350 GENERATED_MANPAGES=generated-manpages
8351 else
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 $as_echo "no" >&6; }
8354 GENERATED_MANPAGES=
8355 fi
8356
8357
8358 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8359
8360 # How about lex?
8361 for ac_prog in flex
8362 do
8363 # Extract the first word of "$ac_prog", so it can be a program name with args.
8364 set dummy $ac_prog; ac_word=$2
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366 $as_echo_n "checking for $ac_word... " >&6; }
8367 if ${ac_cv_prog_FLEX+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 if test -n "$FLEX"; then
8371 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8372 else
8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 for as_dir in $PATH
8375 do
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8380 ac_cv_prog_FLEX="$ac_prog"
8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 break 2
8383 fi
8384 done
8385 done
8386 IFS=$as_save_IFS
8387
8388 fi
8389 fi
8390 FLEX=$ac_cv_prog_FLEX
8391 if test -n "$FLEX"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8393 $as_echo "$FLEX" >&6; }
8394 else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 $as_echo "no" >&6; }
8397 fi
8398
8399
8400 test -n "$FLEX" && break
8401 done
8402 test -n "$FLEX" || FLEX="$MISSING flex"
8403
8404
8405 # Bison?
8406 for ac_prog in bison
8407 do
8408 # Extract the first word of "$ac_prog", so it can be a program name with args.
8409 set dummy $ac_prog; ac_word=$2
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411 $as_echo_n "checking for $ac_word... " >&6; }
8412 if ${ac_cv_prog_BISON+:} false; then :
8413 $as_echo_n "(cached) " >&6
8414 else
8415 if test -n "$BISON"; then
8416 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8417 else
8418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 for as_dir in $PATH
8420 do
8421 IFS=$as_save_IFS
8422 test -z "$as_dir" && as_dir=.
8423 for ac_exec_ext in '' $ac_executable_extensions; do
8424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8425 ac_cv_prog_BISON="$ac_prog"
8426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 break 2
8428 fi
8429 done
8430 done
8431 IFS=$as_save_IFS
8432
8433 fi
8434 fi
8435 BISON=$ac_cv_prog_BISON
8436 if test -n "$BISON"; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8438 $as_echo "$BISON" >&6; }
8439 else
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 $as_echo "no" >&6; }
8442 fi
8443
8444
8445 test -n "$BISON" && break
8446 done
8447 test -n "$BISON" || BISON="$MISSING bison"
8448
8449
8450 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8451 # check for build == host before using them.
8452
8453 # NM
8454 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8455 && test -d ../binutils ; then
8456 NM='${objdir}/../binutils/nm-new'
8457 else
8458 # Extract the first word of "nm", so it can be a program name with args.
8459 set dummy nm; ac_word=$2
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461 $as_echo_n "checking for $ac_word... " >&6; }
8462 if ${ac_cv_prog_NM+:} false; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 if test -n "$NM"; then
8466 ac_cv_prog_NM="$NM" # Let the user override the test.
8467 else
8468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469 for as_dir in $PATH
8470 do
8471 IFS=$as_save_IFS
8472 test -z "$as_dir" && as_dir=.
8473 for ac_exec_ext in '' $ac_executable_extensions; do
8474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8475 ac_cv_prog_NM="nm"
8476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8477 break 2
8478 fi
8479 done
8480 done
8481 IFS=$as_save_IFS
8482
8483 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8484 fi
8485 fi
8486 NM=$ac_cv_prog_NM
8487 if test -n "$NM"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8489 $as_echo "$NM" >&6; }
8490 else
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492 $as_echo "no" >&6; }
8493 fi
8494
8495
8496 fi
8497
8498 # AR
8499 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8500 && test -d ../binutils ; then
8501 AR='${objdir}/../binutils/ar'
8502 else
8503 # Extract the first word of "ar", so it can be a program name with args.
8504 set dummy ar; ac_word=$2
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8506 $as_echo_n "checking for $ac_word... " >&6; }
8507 if ${ac_cv_prog_AR+:} false; then :
8508 $as_echo_n "(cached) " >&6
8509 else
8510 if test -n "$AR"; then
8511 ac_cv_prog_AR="$AR" # Let the user override the test.
8512 else
8513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514 for as_dir in $PATH
8515 do
8516 IFS=$as_save_IFS
8517 test -z "$as_dir" && as_dir=.
8518 for ac_exec_ext in '' $ac_executable_extensions; do
8519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8520 ac_cv_prog_AR="ar"
8521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8522 break 2
8523 fi
8524 done
8525 done
8526 IFS=$as_save_IFS
8527
8528 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8529 fi
8530 fi
8531 AR=$ac_cv_prog_AR
8532 if test -n "$AR"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8534 $as_echo "$AR" >&6; }
8535 else
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8538 fi
8539
8540
8541 fi
8542
8543 # The jit documentation looks better if built with sphinx, but can be
8544 # built with texinfo if sphinx is not available.
8545 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8546 # Extract the first word of "sphinx-build", so it can be a program name with args.
8547 set dummy sphinx-build; ac_word=$2
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549 $as_echo_n "checking for $ac_word... " >&6; }
8550 if ${ac_cv_prog_doc_build_sys+:} false; then :
8551 $as_echo_n "(cached) " >&6
8552 else
8553 if test -n "$doc_build_sys"; then
8554 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8555 else
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557 for as_dir in $PATH
8558 do
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8563 ac_cv_prog_doc_build_sys="sphinx"
8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 break 2
8566 fi
8567 done
8568 done
8569 IFS=$as_save_IFS
8570
8571 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8572 fi
8573 fi
8574 doc_build_sys=$ac_cv_prog_doc_build_sys
8575 if test -n "$doc_build_sys"; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8577 $as_echo "$doc_build_sys" >&6; }
8578 else
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580 $as_echo "no" >&6; }
8581 fi
8582
8583
8584
8585 # --------------------
8586 # Checks for C headers
8587 # --------------------
8588
8589 # Need to reject headers which give warnings, so that the -Werror bootstrap
8590 # works later. *sigh* This needs to come before all header checks.
8591
8592 ac_c_preproc_warn_flag=yes
8593
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8595 $as_echo_n "checking for ANSI C header files... " >&6; }
8596 if ${ac_cv_header_stdc+:} false; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h. */
8601 #include <stdlib.h>
8602 #include <stdarg.h>
8603 #include <string.h>
8604 #include <float.h>
8605
8606 int
8607 main ()
8608 {
8609
8610 ;
8611 return 0;
8612 }
8613 _ACEOF
8614 if ac_fn_cxx_try_compile "$LINENO"; then :
8615 ac_cv_header_stdc=yes
8616 else
8617 ac_cv_header_stdc=no
8618 fi
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620
8621 if test $ac_cv_header_stdc = yes; then
8622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8625 #include <string.h>
8626
8627 _ACEOF
8628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8629 $EGREP "memchr" >/dev/null 2>&1; then :
8630
8631 else
8632 ac_cv_header_stdc=no
8633 fi
8634 rm -f conftest*
8635
8636 fi
8637
8638 if test $ac_cv_header_stdc = yes; then
8639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8642 #include <stdlib.h>
8643
8644 _ACEOF
8645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8646 $EGREP "free" >/dev/null 2>&1; then :
8647
8648 else
8649 ac_cv_header_stdc=no
8650 fi
8651 rm -f conftest*
8652
8653 fi
8654
8655 if test $ac_cv_header_stdc = yes; then
8656 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8657 if test "$cross_compiling" = yes; then :
8658 :
8659 else
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8662 #include <ctype.h>
8663 #include <stdlib.h>
8664 #if ((' ' & 0x0FF) == 0x020)
8665 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8666 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8667 #else
8668 # define ISLOWER(c) \
8669 (('a' <= (c) && (c) <= 'i') \
8670 || ('j' <= (c) && (c) <= 'r') \
8671 || ('s' <= (c) && (c) <= 'z'))
8672 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8673 #endif
8674
8675 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8676 int
8677 main ()
8678 {
8679 int i;
8680 for (i = 0; i < 256; i++)
8681 if (XOR (islower (i), ISLOWER (i))
8682 || toupper (i) != TOUPPER (i))
8683 return 2;
8684 return 0;
8685 }
8686 _ACEOF
8687 if ac_fn_cxx_try_run "$LINENO"; then :
8688
8689 else
8690 ac_cv_header_stdc=no
8691 fi
8692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8693 conftest.$ac_objext conftest.beam conftest.$ac_ext
8694 fi
8695
8696 fi
8697 fi
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8699 $as_echo "$ac_cv_header_stdc" >&6; }
8700 if test $ac_cv_header_stdc = yes; then
8701
8702 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8703
8704 fi
8705
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8707 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8708 if ${ac_cv_header_time+:} false; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8713 #include <sys/types.h>
8714 #include <sys/time.h>
8715 #include <time.h>
8716
8717 int
8718 main ()
8719 {
8720 if ((struct tm *) 0)
8721 return 0;
8722 ;
8723 return 0;
8724 }
8725 _ACEOF
8726 if ac_fn_cxx_try_compile "$LINENO"; then :
8727 ac_cv_header_time=yes
8728 else
8729 ac_cv_header_time=no
8730 fi
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732 fi
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8734 $as_echo "$ac_cv_header_time" >&6; }
8735 if test $ac_cv_header_time = yes; then
8736
8737 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8738
8739 fi
8740
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8742 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8743 if ${gcc_cv_header_string+:} false; then :
8744 $as_echo_n "(cached) " >&6
8745 else
8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747 /* end confdefs.h. */
8748 #include <string.h>
8749 #include <strings.h>
8750 int
8751 main ()
8752 {
8753
8754 ;
8755 return 0;
8756 }
8757 _ACEOF
8758 if ac_fn_cxx_try_compile "$LINENO"; then :
8759 gcc_cv_header_string=yes
8760 else
8761 gcc_cv_header_string=no
8762 fi
8763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764 fi
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8766 $as_echo "$gcc_cv_header_string" >&6; }
8767 if test $gcc_cv_header_string = yes; then
8768
8769 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8770
8771 fi
8772
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8774 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8775 if ${ac_cv_header_sys_wait_h+:} false; then :
8776 $as_echo_n "(cached) " >&6
8777 else
8778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8779 /* end confdefs.h. */
8780 #include <sys/types.h>
8781 #include <sys/wait.h>
8782 #ifndef WEXITSTATUS
8783 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8784 #endif
8785 #ifndef WIFEXITED
8786 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8787 #endif
8788
8789 int
8790 main ()
8791 {
8792 int s;
8793 wait (&s);
8794 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8795 ;
8796 return 0;
8797 }
8798 _ACEOF
8799 if ac_fn_cxx_try_compile "$LINENO"; then :
8800 ac_cv_header_sys_wait_h=yes
8801 else
8802 ac_cv_header_sys_wait_h=no
8803 fi
8804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805 fi
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8807 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8808 if test $ac_cv_header_sys_wait_h = yes; then
8809
8810 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8811
8812 fi
8813
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8815 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8816 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8817 $as_echo_n "(cached) " >&6
8818 else
8819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820 /* end confdefs.h. */
8821 #include <sys/types.h>
8822 #include <termios.h>
8823 #ifdef TIOCGWINSZ
8824 yes
8825 #endif
8826
8827 _ACEOF
8828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8829 $EGREP "yes" >/dev/null 2>&1; then :
8830 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8831 else
8832 ac_cv_sys_tiocgwinsz_in_termios_h=no
8833 fi
8834 rm -f conftest*
8835
8836 fi
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8838 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8839
8840 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8842 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8843 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8844 $as_echo_n "(cached) " >&6
8845 else
8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8848 #include <sys/types.h>
8849 #include <sys/ioctl.h>
8850 #ifdef TIOCGWINSZ
8851 yes
8852 #endif
8853
8854 _ACEOF
8855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8856 $EGREP "yes" >/dev/null 2>&1; then :
8857 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8858 else
8859 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8860 fi
8861 rm -f conftest*
8862
8863 fi
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8865 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8866
8867 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8868
8869 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8870
8871 fi
8872 fi
8873
8874 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8875 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8876 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8877 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8878 do :
8879 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8880 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8881 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8882 cat >>confdefs.h <<_ACEOF
8883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8884 _ACEOF
8885
8886 fi
8887 done
8888
8889
8890 # Check for thread headers.
8891 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8892 if test "x$ac_cv_header_thread_h" = xyes; then :
8893 have_thread_h=yes
8894 else
8895 have_thread_h=
8896 fi
8897
8898 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8899 if test "x$ac_cv_header_pthread_h" = xyes; then :
8900 have_pthread_h=yes
8901 else
8902 have_pthread_h=
8903 fi
8904
8905
8906 # These tests can't be done till we know if we have limits.h.
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8908 $as_echo_n "checking for CHAR_BIT... " >&6; }
8909 if ${gcc_cv_decl_char_bit+:} false; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 #ifdef HAVE_LIMITS_H
8915 #include <limits.h>
8916 #endif
8917 #ifdef CHAR_BIT
8918 found
8919 #endif
8920 _ACEOF
8921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8922 $EGREP "found" >/dev/null 2>&1; then :
8923 gcc_cv_decl_char_bit=yes
8924 else
8925 gcc_cv_decl_char_bit=no
8926 fi
8927 rm -f conftest*
8928
8929
8930 fi
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8932 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8933 if test $gcc_cv_decl_char_bit = no; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8935 $as_echo_n "checking number of bits in a byte... " >&6; }
8936 if ${gcc_cv_c_nbby+:} false; then :
8937 $as_echo_n "(cached) " >&6
8938 else
8939 i=8
8940 gcc_cv_c_nbby=
8941 while test $i -lt 65; do
8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943 /* end confdefs.h. */
8944
8945 int
8946 main ()
8947 {
8948 switch(0) {
8949 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8950 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8951 ; }
8952 ;
8953 return 0;
8954 }
8955 _ACEOF
8956 if ac_fn_cxx_try_compile "$LINENO"; then :
8957 gcc_cv_c_nbby=$i; break
8958 fi
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960 i=`expr $i + 1`
8961 done
8962 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8963
8964 fi
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8966 $as_echo "$gcc_cv_c_nbby" >&6; }
8967 if test $gcc_cv_c_nbby = failed; then
8968 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
8969 else
8970
8971 cat >>confdefs.h <<_ACEOF
8972 #define CHAR_BIT $gcc_cv_c_nbby
8973 _ACEOF
8974
8975 fi
8976 fi
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8978 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8979 if ${ac_cv_c_bigendian+:} false; then :
8980 $as_echo_n "(cached) " >&6
8981 else
8982 ac_cv_c_bigendian=unknown
8983 # See if we're dealing with a universal compiler.
8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986 #ifndef __APPLE_CC__
8987 not a universal capable compiler
8988 #endif
8989 typedef int dummy;
8990
8991 _ACEOF
8992 if ac_fn_cxx_try_compile "$LINENO"; then :
8993
8994 # Check for potential -arch flags. It is not universal unless
8995 # there are at least two -arch flags with different values.
8996 ac_arch=
8997 ac_prev=
8998 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8999 if test -n "$ac_prev"; then
9000 case $ac_word in
9001 i?86 | x86_64 | ppc | ppc64)
9002 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9003 ac_arch=$ac_word
9004 else
9005 ac_cv_c_bigendian=universal
9006 break
9007 fi
9008 ;;
9009 esac
9010 ac_prev=
9011 elif test "x$ac_word" = "x-arch"; then
9012 ac_prev=arch
9013 fi
9014 done
9015 fi
9016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017 if test $ac_cv_c_bigendian = unknown; then
9018 # See if sys/param.h defines the BYTE_ORDER macro.
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9021 #include <sys/types.h>
9022 #include <sys/param.h>
9023
9024 int
9025 main ()
9026 {
9027 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9028 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9029 && LITTLE_ENDIAN)
9030 bogus endian macros
9031 #endif
9032
9033 ;
9034 return 0;
9035 }
9036 _ACEOF
9037 if ac_fn_cxx_try_compile "$LINENO"; then :
9038 # It does; now see whether it defined to BIG_ENDIAN or not.
9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9041 #include <sys/types.h>
9042 #include <sys/param.h>
9043
9044 int
9045 main ()
9046 {
9047 #if BYTE_ORDER != BIG_ENDIAN
9048 not big endian
9049 #endif
9050
9051 ;
9052 return 0;
9053 }
9054 _ACEOF
9055 if ac_fn_cxx_try_compile "$LINENO"; then :
9056 ac_cv_c_bigendian=yes
9057 else
9058 ac_cv_c_bigendian=no
9059 fi
9060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9061 fi
9062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9063 fi
9064 if test $ac_cv_c_bigendian = unknown; then
9065 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9068 #include <limits.h>
9069
9070 int
9071 main ()
9072 {
9073 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9074 bogus endian macros
9075 #endif
9076
9077 ;
9078 return 0;
9079 }
9080 _ACEOF
9081 if ac_fn_cxx_try_compile "$LINENO"; then :
9082 # It does; now see whether it defined to _BIG_ENDIAN or not.
9083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084 /* end confdefs.h. */
9085 #include <limits.h>
9086
9087 int
9088 main ()
9089 {
9090 #ifndef _BIG_ENDIAN
9091 not big endian
9092 #endif
9093
9094 ;
9095 return 0;
9096 }
9097 _ACEOF
9098 if ac_fn_cxx_try_compile "$LINENO"; then :
9099 ac_cv_c_bigendian=yes
9100 else
9101 ac_cv_c_bigendian=no
9102 fi
9103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104 fi
9105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106 fi
9107 if test $ac_cv_c_bigendian = unknown; then
9108 # Compile a test program.
9109 if test "$cross_compiling" = yes; then :
9110 # Try to guess by grepping values from an object file.
9111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9112 /* end confdefs.h. */
9113 short int ascii_mm[] =
9114 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9115 short int ascii_ii[] =
9116 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9117 int use_ascii (int i) {
9118 return ascii_mm[i] + ascii_ii[i];
9119 }
9120 short int ebcdic_ii[] =
9121 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9122 short int ebcdic_mm[] =
9123 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9124 int use_ebcdic (int i) {
9125 return ebcdic_mm[i] + ebcdic_ii[i];
9126 }
9127 extern int foo;
9128
9129 int
9130 main ()
9131 {
9132 return use_ascii (foo) == use_ebcdic (foo);
9133 ;
9134 return 0;
9135 }
9136 _ACEOF
9137 if ac_fn_cxx_try_compile "$LINENO"; then :
9138 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9139 ac_cv_c_bigendian=yes
9140 fi
9141 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9142 if test "$ac_cv_c_bigendian" = unknown; then
9143 ac_cv_c_bigendian=no
9144 else
9145 # finding both strings is unlikely to happen, but who knows?
9146 ac_cv_c_bigendian=unknown
9147 fi
9148 fi
9149 fi
9150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9151 else
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9154 $ac_includes_default
9155 int
9156 main ()
9157 {
9158
9159 /* Are we little or big endian? From Harbison&Steele. */
9160 union
9161 {
9162 long int l;
9163 char c[sizeof (long int)];
9164 } u;
9165 u.l = 1;
9166 return u.c[sizeof (long int) - 1] == 1;
9167
9168 ;
9169 return 0;
9170 }
9171 _ACEOF
9172 if ac_fn_cxx_try_run "$LINENO"; then :
9173 ac_cv_c_bigendian=no
9174 else
9175 ac_cv_c_bigendian=yes
9176 fi
9177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9178 conftest.$ac_objext conftest.beam conftest.$ac_ext
9179 fi
9180
9181 fi
9182 fi
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9184 $as_echo "$ac_cv_c_bigendian" >&6; }
9185 case $ac_cv_c_bigendian in #(
9186 yes)
9187 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9188 ;; #(
9189 no)
9190 ;; #(
9191 universal)
9192
9193 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9194
9195 ;; #(
9196 *)
9197 as_fn_error $? "unknown endianness
9198 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9199 esac
9200
9201
9202 # ----------------------
9203 # Checks for C++ headers
9204 # ----------------------
9205
9206 ac_ext=cpp
9207 ac_cpp='$CXXCPP $CPPFLAGS'
9208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9212 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9213 if test -z "$CXXCPP"; then
9214 if ${ac_cv_prog_CXXCPP+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 # Double quotes because CXXCPP needs to be expanded
9218 for CXXCPP in "$CXX -E" "/lib/cpp"
9219 do
9220 ac_preproc_ok=false
9221 for ac_cxx_preproc_warn_flag in '' yes
9222 do
9223 # Use a header file that comes with gcc, so configuring glibc
9224 # with a fresh cross-compiler works.
9225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9226 # <limits.h> exists even on freestanding compilers.
9227 # On the NeXT, cc -E runs the code through the compiler's parser,
9228 # not just through cpp. "Syntax error" is here to catch this case.
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9231 #ifdef __STDC__
9232 # include <limits.h>
9233 #else
9234 # include <assert.h>
9235 #endif
9236 Syntax error
9237 _ACEOF
9238 if ac_fn_cxx_try_cpp "$LINENO"; then :
9239
9240 else
9241 # Broken: fails on valid input.
9242 continue
9243 fi
9244 rm -f conftest.err conftest.i conftest.$ac_ext
9245
9246 # OK, works on sane cases. Now check whether nonexistent headers
9247 # can be detected and how.
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9250 #include <ac_nonexistent.h>
9251 _ACEOF
9252 if ac_fn_cxx_try_cpp "$LINENO"; then :
9253 # Broken: success on invalid input.
9254 continue
9255 else
9256 # Passes both tests.
9257 ac_preproc_ok=:
9258 break
9259 fi
9260 rm -f conftest.err conftest.i conftest.$ac_ext
9261
9262 done
9263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9264 rm -f conftest.i conftest.err conftest.$ac_ext
9265 if $ac_preproc_ok; then :
9266 break
9267 fi
9268
9269 done
9270 ac_cv_prog_CXXCPP=$CXXCPP
9271
9272 fi
9273 CXXCPP=$ac_cv_prog_CXXCPP
9274 else
9275 ac_cv_prog_CXXCPP=$CXXCPP
9276 fi
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9278 $as_echo "$CXXCPP" >&6; }
9279 ac_preproc_ok=false
9280 for ac_cxx_preproc_warn_flag in '' yes
9281 do
9282 # Use a header file that comes with gcc, so configuring glibc
9283 # with a fresh cross-compiler works.
9284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9285 # <limits.h> exists even on freestanding compilers.
9286 # On the NeXT, cc -E runs the code through the compiler's parser,
9287 # not just through cpp. "Syntax error" is here to catch this case.
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 #ifdef __STDC__
9291 # include <limits.h>
9292 #else
9293 # include <assert.h>
9294 #endif
9295 Syntax error
9296 _ACEOF
9297 if ac_fn_cxx_try_cpp "$LINENO"; then :
9298
9299 else
9300 # Broken: fails on valid input.
9301 continue
9302 fi
9303 rm -f conftest.err conftest.i conftest.$ac_ext
9304
9305 # OK, works on sane cases. Now check whether nonexistent headers
9306 # can be detected and how.
9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9309 #include <ac_nonexistent.h>
9310 _ACEOF
9311 if ac_fn_cxx_try_cpp "$LINENO"; then :
9312 # Broken: success on invalid input.
9313 continue
9314 else
9315 # Passes both tests.
9316 ac_preproc_ok=:
9317 break
9318 fi
9319 rm -f conftest.err conftest.i conftest.$ac_ext
9320
9321 done
9322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9323 rm -f conftest.i conftest.err conftest.$ac_ext
9324 if $ac_preproc_ok; then :
9325
9326 else
9327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9330 See \`config.log' for more details" >&5
9331 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9332 See \`config.log' for more details" >&2;}; }
9333 fi
9334
9335 ac_ext=cpp
9336 ac_cpp='$CXXCPP $CPPFLAGS'
9337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9340
9341
9342 for ac_header in unordered_map
9343 do :
9344 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9345 if test "x$ac_cv_header_unordered_map" = xyes; then :
9346 cat >>confdefs.h <<_ACEOF
9347 #define HAVE_UNORDERED_MAP 1
9348 _ACEOF
9349
9350 fi
9351 done
9352
9353 for ac_header in tr1/unordered_map
9354 do :
9355 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9356 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9357 cat >>confdefs.h <<_ACEOF
9358 #define HAVE_TR1_UNORDERED_MAP 1
9359 _ACEOF
9360
9361 fi
9362 done
9363
9364 for ac_header in ext/hash_map
9365 do :
9366 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9367 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9368 cat >>confdefs.h <<_ACEOF
9369 #define HAVE_EXT_HASH_MAP 1
9370 _ACEOF
9371
9372 fi
9373 done
9374
9375
9376 # --------
9377 # Dependency checking.
9378 # --------
9379
9380 rm -rf .tst 2>/dev/null
9381 mkdir .tst 2>/dev/null
9382 if test -d .tst; then
9383 am__leading_dot=.
9384 else
9385 am__leading_dot=_
9386 fi
9387 rmdir .tst 2>/dev/null
9388
9389 DEPDIR="${am__leading_dot}deps"
9390
9391 ac_config_commands="$ac_config_commands depdir"
9392
9393
9394 ac_config_commands="$ac_config_commands gccdepdir"
9395
9396
9397 depcc="$CXX" am_compiler_list=
9398
9399 am_depcomp=$ac_aux_dir/depcomp
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9401 $as_echo_n "checking dependency style of $depcc... " >&6; }
9402 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9403 $as_echo_n "(cached) " >&6
9404 else
9405 if test -f "$am_depcomp"; then
9406 # We make a subdir and do the tests there. Otherwise we can end up
9407 # making bogus files that we don't know about and never remove. For
9408 # instance it was reported that on HP-UX the gcc test will end up
9409 # making a dummy file named `D' -- because `-MD' means `put the output
9410 # in D'.
9411 mkdir conftest.dir
9412 # Copy depcomp to subdir because otherwise we won't find it if we're
9413 # using a relative directory.
9414 cp "$am_depcomp" conftest.dir
9415 cd conftest.dir
9416 # We will build objects and dependencies in a subdirectory because
9417 # it helps to detect inapplicable dependency modes. For instance
9418 # both Tru64's cc and ICC support -MD to output dependencies as a
9419 # side effect of compilation, but ICC will put the dependencies in
9420 # the current directory while Tru64 will put them in the object
9421 # directory.
9422 mkdir sub
9423
9424 am_cv_CXX_dependencies_compiler_type=none
9425 if test "$am_compiler_list" = ""; then
9426 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9427 fi
9428 for depmode in $am_compiler_list; do
9429 if test $depmode = none; then break; fi
9430
9431 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9432 # Setup a source with many dependencies, because some compilers
9433 # like to wrap large dependency lists on column 80 (with \), and
9434 # we should not choose a depcomp mode which is confused by this.
9435 #
9436 # We need to recreate these files for each test, as the compiler may
9437 # overwrite some of them when testing with obscure command lines.
9438 # This happens at least with the AIX C compiler.
9439 : > sub/conftest.c
9440 for i in 1 2 3 4 5 6; do
9441 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9442 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9443 # Solaris 8's {/usr,}/bin/sh.
9444 touch sub/conftst$i.h
9445 done
9446 echo "include sub/conftest.Po" > confmf
9447
9448 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9449 # mode. It turns out that the SunPro C++ compiler does not properly
9450 # handle `-M -o', and we need to detect this.
9451 depcmd="depmode=$depmode \
9452 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9453 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9454 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9455 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9456 if env $depcmd > conftest.err 2>&1 &&
9457 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9458 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9459 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9460 # icc doesn't choke on unknown options, it will just issue warnings
9461 # or remarks (even with -Werror). So we grep stderr for any message
9462 # that says an option was ignored or not supported.
9463 # When given -MP, icc 7.0 and 7.1 complain thusly:
9464 # icc: Command line warning: ignoring option '-M'; no argument required
9465 # The diagnosis changed in icc 8.0:
9466 # icc: Command line remark: option '-MP' not supported
9467 if (grep 'ignoring option' conftest.err ||
9468 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9469 am_cv_CXX_dependencies_compiler_type=$depmode
9470 $as_echo "$as_me:$LINENO: success" >&5
9471 break
9472 fi
9473 fi
9474 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9475 sed -e 's/^/| /' < conftest.err >&5
9476 done
9477
9478 cd ..
9479 rm -rf conftest.dir
9480 else
9481 am_cv_CXX_dependencies_compiler_type=none
9482 fi
9483
9484 fi
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9486 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9487 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9488 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9489 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9490
9491 fi
9492
9493
9494 # --------
9495 # UNSORTED
9496 # --------
9497
9498
9499 # These libraries may be used by collect2.
9500 # We may need a special search path to get them linked.
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9502 $as_echo_n "checking for collect2 libraries... " >&6; }
9503 if ${gcc_cv_collect2_libs+:} false; then :
9504 $as_echo_n "(cached) " >&6
9505 else
9506 save_LIBS="$LIBS"
9507 for libs in '' -lld -lmld \
9508 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9509 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9510 do
9511 LIBS="$libs"
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9514
9515 /* Override any GCC internal prototype to avoid an error.
9516 Use char because int might match the return type of a GCC
9517 builtin and then its argument prototype would still apply. */
9518 #ifdef __cplusplus
9519 extern "C"
9520 #endif
9521 char ldopen ();
9522 int
9523 main ()
9524 {
9525 return ldopen ();
9526 ;
9527 return 0;
9528 }
9529 _ACEOF
9530 if ac_fn_cxx_try_link "$LINENO"; then :
9531 gcc_cv_collect2_libs="$libs"; break
9532 fi
9533 rm -f core conftest.err conftest.$ac_objext \
9534 conftest$ac_exeext conftest.$ac_ext
9535 done
9536 LIBS="$save_LIBS"
9537 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9538 fi
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9540 $as_echo "$gcc_cv_collect2_libs" >&6; }
9541 case $gcc_cv_collect2_libs in
9542 "none required") ;;
9543 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9544 esac
9545
9546
9547 # When building Ada code on Alpha, we need exc_resume which is usually in
9548 # -lexc. So test for it.
9549 save_LIBS="$LIBS"
9550 LIBS=
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9552 $as_echo_n "checking for library containing exc_resume... " >&6; }
9553 if ${ac_cv_search_exc_resume+:} false; then :
9554 $as_echo_n "(cached) " >&6
9555 else
9556 ac_func_search_save_LIBS=$LIBS
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9559
9560 /* Override any GCC internal prototype to avoid an error.
9561 Use char because int might match the return type of a GCC
9562 builtin and then its argument prototype would still apply. */
9563 #ifdef __cplusplus
9564 extern "C"
9565 #endif
9566 char exc_resume ();
9567 int
9568 main ()
9569 {
9570 return exc_resume ();
9571 ;
9572 return 0;
9573 }
9574 _ACEOF
9575 for ac_lib in '' exc; do
9576 if test -z "$ac_lib"; then
9577 ac_res="none required"
9578 else
9579 ac_res=-l$ac_lib
9580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9581 fi
9582 if ac_fn_cxx_try_link "$LINENO"; then :
9583 ac_cv_search_exc_resume=$ac_res
9584 fi
9585 rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext
9587 if ${ac_cv_search_exc_resume+:} false; then :
9588 break
9589 fi
9590 done
9591 if ${ac_cv_search_exc_resume+:} false; then :
9592
9593 else
9594 ac_cv_search_exc_resume=no
9595 fi
9596 rm conftest.$ac_ext
9597 LIBS=$ac_func_search_save_LIBS
9598 fi
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9600 $as_echo "$ac_cv_search_exc_resume" >&6; }
9601 ac_res=$ac_cv_search_exc_resume
9602 if test "$ac_res" != no; then :
9603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9604
9605 fi
9606
9607 GNAT_LIBEXC="$LIBS"
9608 LIBS="$save_LIBS"
9609
9610
9611 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9612 save_LIBS="$LIBS"
9613 LIBS=
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9615 $as_echo_n "checking for library containing kstat_open... " >&6; }
9616 if ${ac_cv_search_kstat_open+:} false; then :
9617 $as_echo_n "(cached) " >&6
9618 else
9619 ac_func_search_save_LIBS=$LIBS
9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9622
9623 /* Override any GCC internal prototype to avoid an error.
9624 Use char because int might match the return type of a GCC
9625 builtin and then its argument prototype would still apply. */
9626 #ifdef __cplusplus
9627 extern "C"
9628 #endif
9629 char kstat_open ();
9630 int
9631 main ()
9632 {
9633 return kstat_open ();
9634 ;
9635 return 0;
9636 }
9637 _ACEOF
9638 for ac_lib in '' kstat; do
9639 if test -z "$ac_lib"; then
9640 ac_res="none required"
9641 else
9642 ac_res=-l$ac_lib
9643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9644 fi
9645 if ac_fn_cxx_try_link "$LINENO"; then :
9646 ac_cv_search_kstat_open=$ac_res
9647 fi
9648 rm -f core conftest.err conftest.$ac_objext \
9649 conftest$ac_exeext
9650 if ${ac_cv_search_kstat_open+:} false; then :
9651 break
9652 fi
9653 done
9654 if ${ac_cv_search_kstat_open+:} false; then :
9655
9656 else
9657 ac_cv_search_kstat_open=no
9658 fi
9659 rm conftest.$ac_ext
9660 LIBS=$ac_func_search_save_LIBS
9661 fi
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9663 $as_echo "$ac_cv_search_kstat_open" >&6; }
9664 ac_res=$ac_cv_search_kstat_open
9665 if test "$ac_res" != no; then :
9666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9667
9668 fi
9669
9670 EXTRA_GCC_LIBS="$LIBS"
9671 LIBS="$save_LIBS"
9672
9673
9674 # Some systems put ldexp and frexp in libm instead of libc; assume
9675 # they're both in the same place. jcf-dump needs them.
9676 save_LIBS="$LIBS"
9677 LIBS=
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9679 $as_echo_n "checking for library containing ldexp... " >&6; }
9680 if ${ac_cv_search_ldexp+:} false; then :
9681 $as_echo_n "(cached) " >&6
9682 else
9683 ac_func_search_save_LIBS=$LIBS
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9686
9687 /* Override any GCC internal prototype to avoid an error.
9688 Use char because int might match the return type of a GCC
9689 builtin and then its argument prototype would still apply. */
9690 #ifdef __cplusplus
9691 extern "C"
9692 #endif
9693 char ldexp ();
9694 int
9695 main ()
9696 {
9697 return ldexp ();
9698 ;
9699 return 0;
9700 }
9701 _ACEOF
9702 for ac_lib in '' m; do
9703 if test -z "$ac_lib"; then
9704 ac_res="none required"
9705 else
9706 ac_res=-l$ac_lib
9707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9708 fi
9709 if ac_fn_cxx_try_link "$LINENO"; then :
9710 ac_cv_search_ldexp=$ac_res
9711 fi
9712 rm -f core conftest.err conftest.$ac_objext \
9713 conftest$ac_exeext
9714 if ${ac_cv_search_ldexp+:} false; then :
9715 break
9716 fi
9717 done
9718 if ${ac_cv_search_ldexp+:} false; then :
9719
9720 else
9721 ac_cv_search_ldexp=no
9722 fi
9723 rm conftest.$ac_ext
9724 LIBS=$ac_func_search_save_LIBS
9725 fi
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9727 $as_echo "$ac_cv_search_ldexp" >&6; }
9728 ac_res=$ac_cv_search_ldexp
9729 if test "$ac_res" != no; then :
9730 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9731
9732 fi
9733
9734 LDEXP_LIB="$LIBS"
9735 LIBS="$save_LIBS"
9736
9737
9738 # Some systems need dlopen
9739 save_LIBS="$LIBS"
9740 LIBS=
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9742 $as_echo_n "checking for library containing dlopen... " >&6; }
9743 if ${ac_cv_search_dlopen+:} false; then :
9744 $as_echo_n "(cached) " >&6
9745 else
9746 ac_func_search_save_LIBS=$LIBS
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9749
9750 /* Override any GCC internal prototype to avoid an error.
9751 Use char because int might match the return type of a GCC
9752 builtin and then its argument prototype would still apply. */
9753 #ifdef __cplusplus
9754 extern "C"
9755 #endif
9756 char dlopen ();
9757 int
9758 main ()
9759 {
9760 return dlopen ();
9761 ;
9762 return 0;
9763 }
9764 _ACEOF
9765 for ac_lib in '' dl; do
9766 if test -z "$ac_lib"; then
9767 ac_res="none required"
9768 else
9769 ac_res=-l$ac_lib
9770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9771 fi
9772 if ac_fn_cxx_try_link "$LINENO"; then :
9773 ac_cv_search_dlopen=$ac_res
9774 fi
9775 rm -f core conftest.err conftest.$ac_objext \
9776 conftest$ac_exeext
9777 if ${ac_cv_search_dlopen+:} false; then :
9778 break
9779 fi
9780 done
9781 if ${ac_cv_search_dlopen+:} false; then :
9782
9783 else
9784 ac_cv_search_dlopen=no
9785 fi
9786 rm conftest.$ac_ext
9787 LIBS=$ac_func_search_save_LIBS
9788 fi
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9790 $as_echo "$ac_cv_search_dlopen" >&6; }
9791 ac_res=$ac_cv_search_dlopen
9792 if test "$ac_res" != no; then :
9793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9794
9795 fi
9796
9797 DL_LIB="$LIBS"
9798 LIBS="$save_LIBS"
9799
9800
9801 # Use <inttypes.h> only if it exists,
9802 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9803 # PRId64
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9805 $as_echo_n "checking for inttypes.h... " >&6; }
9806 if ${gcc_cv_header_inttypes_h+:} false; then :
9807 $as_echo_n "(cached) " >&6
9808 else
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9811 #define __STDC_FORMAT_MACROS
9812 #include <sys/types.h>
9813 #include <inttypes.h>
9814 int
9815 main ()
9816 {
9817 intmax_t i = -1;
9818 #ifndef PRId64
9819 choke me
9820 #endif
9821 ;
9822 return 0;
9823 }
9824 _ACEOF
9825 if ac_fn_cxx_try_compile "$LINENO"; then :
9826 gcc_cv_header_inttypes_h=yes
9827 else
9828 gcc_cv_header_inttypes_h=no
9829 fi
9830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9831 fi
9832
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9834 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9835 if test $gcc_cv_header_inttypes_h = yes; then
9836
9837 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9838
9839 fi
9840
9841
9842
9843 for ac_func in times clock kill getrlimit setrlimit atoq \
9844 popen sysconf strsignal getrusage nl_langinfo \
9845 gettimeofday mbstowcs wcswidth mmap setlocale \
9846 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
9847 do :
9848 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9849 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9850 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9851 cat >>confdefs.h <<_ACEOF
9852 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9853 _ACEOF
9854
9855 fi
9856 done
9857
9858
9859 if test x$ac_cv_func_mbstowcs = xyes; then
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9861 $as_echo_n "checking whether mbstowcs works... " >&6; }
9862 if ${gcc_cv_func_mbstowcs_works+:} false; then :
9863 $as_echo_n "(cached) " >&6
9864 else
9865 if test "$cross_compiling" = yes; then :
9866 gcc_cv_func_mbstowcs_works=yes
9867 else
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9870 #include <stdlib.h>
9871 int main()
9872 {
9873 mbstowcs(0, "", 0);
9874 return 0;
9875 }
9876 _ACEOF
9877 if ac_fn_cxx_try_run "$LINENO"; then :
9878 gcc_cv_func_mbstowcs_works=yes
9879 else
9880 gcc_cv_func_mbstowcs_works=no
9881 fi
9882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9883 conftest.$ac_objext conftest.beam conftest.$ac_ext
9884 fi
9885
9886 fi
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9888 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9889 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9890
9891 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9892
9893 fi
9894 fi
9895
9896 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9897 if test "x$ac_cv_type_ssize_t" = xyes; then :
9898
9899 else
9900
9901 cat >>confdefs.h <<_ACEOF
9902 #define ssize_t int
9903 _ACEOF
9904
9905 fi
9906
9907 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9908 if test "x$ac_cv_type_caddr_t" = xyes; then :
9909
9910 else
9911
9912 cat >>confdefs.h <<_ACEOF
9913 #define caddr_t char *
9914 _ACEOF
9915
9916 fi
9917
9918
9919
9920 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9921 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
9922 gcc_header_sys_mman_h=yes
9923 else
9924 gcc_header_sys_mman_h=no
9925 fi
9926
9927 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9928 if test "x$ac_cv_func_mmap" = xyes; then :
9929 gcc_func_mmap=yes
9930 else
9931 gcc_func_mmap=no
9932 fi
9933
9934 if test "$gcc_header_sys_mman_h" != yes \
9935 || test "$gcc_func_mmap" != yes; then
9936 gcc_cv_func_mmap_file=no
9937 gcc_cv_func_mmap_dev_zero=no
9938 gcc_cv_func_mmap_anon=no
9939 else
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9941 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9942 if ${gcc_cv_func_mmap_file+:} false; then :
9943 $as_echo_n "(cached) " >&6
9944 else
9945 # Add a system to this blacklist if
9946 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9947 # memory area containing the same data that you'd get if you applied
9948 # read() to the same fd. The only system known to have a problem here
9949 # is VMS, where text files have record structure.
9950 case "$host_os" in
9951 *vms* | ultrix*)
9952 gcc_cv_func_mmap_file=no ;;
9953 *)
9954 gcc_cv_func_mmap_file=yes;;
9955 esac
9956 fi
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9958 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9960 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9961 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
9962 $as_echo_n "(cached) " >&6
9963 else
9964 # Add a system to this blacklist if it has mmap() but /dev/zero
9965 # does not exist, or if mmapping /dev/zero does not give anonymous
9966 # zeroed pages with both the following properties:
9967 # 1. If you map N consecutive pages in with one call, and then
9968 # unmap any subset of those pages, the pages that were not
9969 # explicitly unmapped remain accessible.
9970 # 2. If you map two adjacent blocks of memory and then unmap them
9971 # both at once, they must both go away.
9972 # Systems known to be in this category are Windows (all variants),
9973 # VMS, and Darwin.
9974 case "$host_os" in
9975 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9976 gcc_cv_func_mmap_dev_zero=no ;;
9977 *)
9978 gcc_cv_func_mmap_dev_zero=yes;;
9979 esac
9980 fi
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9982 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9983
9984 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9986 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9987 if ${gcc_cv_decl_map_anon+:} false; then :
9988 $as_echo_n "(cached) " >&6
9989 else
9990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9991 /* end confdefs.h. */
9992 #include <sys/types.h>
9993 #include <sys/mman.h>
9994 #include <unistd.h>
9995
9996 #ifndef MAP_ANONYMOUS
9997 #define MAP_ANONYMOUS MAP_ANON
9998 #endif
9999
10000 int
10001 main ()
10002 {
10003 int n = MAP_ANONYMOUS;
10004 ;
10005 return 0;
10006 }
10007 _ACEOF
10008 if ac_fn_cxx_try_compile "$LINENO"; then :
10009 gcc_cv_decl_map_anon=yes
10010 else
10011 gcc_cv_decl_map_anon=no
10012 fi
10013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10014 fi
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10016 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10017
10018 if test $gcc_cv_decl_map_anon = no; then
10019 gcc_cv_func_mmap_anon=no
10020 else
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10022 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10023 if ${gcc_cv_func_mmap_anon+:} false; then :
10024 $as_echo_n "(cached) " >&6
10025 else
10026 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10027 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10028 # doesn't give anonymous zeroed pages with the same properties listed
10029 # above for use of /dev/zero.
10030 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10031 case "$host_os" in
10032 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10033 gcc_cv_func_mmap_anon=no ;;
10034 *)
10035 gcc_cv_func_mmap_anon=yes;;
10036 esac
10037 fi
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10039 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10040 fi
10041 fi
10042
10043 if test $gcc_cv_func_mmap_file = yes; then
10044
10045 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10046
10047 fi
10048 if test $gcc_cv_func_mmap_dev_zero = yes; then
10049
10050 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10051
10052 fi
10053 if test $gcc_cv_func_mmap_anon = yes; then
10054
10055 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10056
10057 fi
10058
10059
10060 case "${host}" in
10061 *-*-*vms*)
10062 # Under VMS, vfork works very differently than on Unix. The standard test
10063 # won't work, and it isn't easily adaptable. It makes more sense to
10064 # just force it.
10065 ac_cv_func_vfork_works=yes
10066 ;;
10067 esac
10068 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10069 if test "x$ac_cv_type_pid_t" = xyes; then :
10070
10071 else
10072
10073 cat >>confdefs.h <<_ACEOF
10074 #define pid_t int
10075 _ACEOF
10076
10077 fi
10078
10079 for ac_header in vfork.h
10080 do :
10081 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10082 if test "x$ac_cv_header_vfork_h" = xyes; then :
10083 cat >>confdefs.h <<_ACEOF
10084 #define HAVE_VFORK_H 1
10085 _ACEOF
10086
10087 fi
10088 done
10089
10090 for ac_func in fork vfork
10091 do :
10092 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10093 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10094 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10095 cat >>confdefs.h <<_ACEOF
10096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10097 _ACEOF
10098
10099 fi
10100 done
10101
10102 if test "x$ac_cv_func_fork" = xyes; then
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10104 $as_echo_n "checking for working fork... " >&6; }
10105 if ${ac_cv_func_fork_works+:} false; then :
10106 $as_echo_n "(cached) " >&6
10107 else
10108 if test "$cross_compiling" = yes; then :
10109 ac_cv_func_fork_works=cross
10110 else
10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10113 $ac_includes_default
10114 int
10115 main ()
10116 {
10117
10118 /* By Ruediger Kuhlmann. */
10119 return fork () < 0;
10120
10121 ;
10122 return 0;
10123 }
10124 _ACEOF
10125 if ac_fn_cxx_try_run "$LINENO"; then :
10126 ac_cv_func_fork_works=yes
10127 else
10128 ac_cv_func_fork_works=no
10129 fi
10130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10131 conftest.$ac_objext conftest.beam conftest.$ac_ext
10132 fi
10133
10134 fi
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10136 $as_echo "$ac_cv_func_fork_works" >&6; }
10137
10138 else
10139 ac_cv_func_fork_works=$ac_cv_func_fork
10140 fi
10141 if test "x$ac_cv_func_fork_works" = xcross; then
10142 case $host in
10143 *-*-amigaos* | *-*-msdosdjgpp*)
10144 # Override, as these systems have only a dummy fork() stub
10145 ac_cv_func_fork_works=no
10146 ;;
10147 *)
10148 ac_cv_func_fork_works=yes
10149 ;;
10150 esac
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10152 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10153 fi
10154 ac_cv_func_vfork_works=$ac_cv_func_vfork
10155 if test "x$ac_cv_func_vfork" = xyes; then
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10157 $as_echo_n "checking for working vfork... " >&6; }
10158 if ${ac_cv_func_vfork_works+:} false; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10161 if test "$cross_compiling" = yes; then :
10162 ac_cv_func_vfork_works=cross
10163 else
10164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10165 /* end confdefs.h. */
10166 /* Thanks to Paul Eggert for this test. */
10167 $ac_includes_default
10168 #include <sys/wait.h>
10169 #ifdef HAVE_VFORK_H
10170 # include <vfork.h>
10171 #endif
10172 /* On some sparc systems, changes by the child to local and incoming
10173 argument registers are propagated back to the parent. The compiler
10174 is told about this with #include <vfork.h>, but some compilers
10175 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10176 static variable whose address is put into a register that is
10177 clobbered by the vfork. */
10178 static void
10179 #ifdef __cplusplus
10180 sparc_address_test (int arg)
10181 # else
10182 sparc_address_test (arg) int arg;
10183 #endif
10184 {
10185 static pid_t child;
10186 if (!child) {
10187 child = vfork ();
10188 if (child < 0) {
10189 perror ("vfork");
10190 _exit(2);
10191 }
10192 if (!child) {
10193 arg = getpid();
10194 write(-1, "", 0);
10195 _exit (arg);
10196 }
10197 }
10198 }
10199
10200 int
10201 main ()
10202 {
10203 pid_t parent = getpid ();
10204 pid_t child;
10205
10206 sparc_address_test (0);
10207
10208 child = vfork ();
10209
10210 if (child == 0) {
10211 /* Here is another test for sparc vfork register problems. This
10212 test uses lots of local variables, at least as many local
10213 variables as main has allocated so far including compiler
10214 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10215 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10216 reuse the register of parent for one of the local variables,
10217 since it will think that parent can't possibly be used any more
10218 in this routine. Assigning to the local variable will thus
10219 munge parent in the parent process. */
10220 pid_t
10221 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10222 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10223 /* Convince the compiler that p..p7 are live; otherwise, it might
10224 use the same hardware register for all 8 local variables. */
10225 if (p != p1 || p != p2 || p != p3 || p != p4
10226 || p != p5 || p != p6 || p != p7)
10227 _exit(1);
10228
10229 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10230 from child file descriptors. If the child closes a descriptor
10231 before it execs or exits, this munges the parent's descriptor
10232 as well. Test for this by closing stdout in the child. */
10233 _exit(close(fileno(stdout)) != 0);
10234 } else {
10235 int status;
10236 struct stat st;
10237
10238 while (wait(&status) != child)
10239 ;
10240 return (
10241 /* Was there some problem with vforking? */
10242 child < 0
10243
10244 /* Did the child fail? (This shouldn't happen.) */
10245 || status
10246
10247 /* Did the vfork/compiler bug occur? */
10248 || parent != getpid()
10249
10250 /* Did the file descriptor bug occur? */
10251 || fstat(fileno(stdout), &st) != 0
10252 );
10253 }
10254 }
10255 _ACEOF
10256 if ac_fn_cxx_try_run "$LINENO"; then :
10257 ac_cv_func_vfork_works=yes
10258 else
10259 ac_cv_func_vfork_works=no
10260 fi
10261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10262 conftest.$ac_objext conftest.beam conftest.$ac_ext
10263 fi
10264
10265 fi
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10267 $as_echo "$ac_cv_func_vfork_works" >&6; }
10268
10269 fi;
10270 if test "x$ac_cv_func_fork_works" = xcross; then
10271 ac_cv_func_vfork_works=$ac_cv_func_vfork
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10273 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10274 fi
10275
10276 if test "x$ac_cv_func_vfork_works" = xyes; then
10277
10278 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10279
10280 else
10281
10282 $as_echo "#define vfork fork" >>confdefs.h
10283
10284 fi
10285 if test "x$ac_cv_func_fork_works" = xyes; then
10286
10287 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10288
10289 fi
10290
10291
10292
10293 if test "X$prefix" = "XNONE"; then
10294 acl_final_prefix="$ac_default_prefix"
10295 else
10296 acl_final_prefix="$prefix"
10297 fi
10298 if test "X$exec_prefix" = "XNONE"; then
10299 acl_final_exec_prefix='${prefix}'
10300 else
10301 acl_final_exec_prefix="$exec_prefix"
10302 fi
10303 acl_save_prefix="$prefix"
10304 prefix="$acl_final_prefix"
10305 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10306 prefix="$acl_save_prefix"
10307
10308
10309 # Check whether --with-gnu-ld was given.
10310 if test "${with_gnu_ld+set}" = set; then :
10311 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10312 else
10313 with_gnu_ld=no
10314 fi
10315
10316 # Prepare PATH_SEPARATOR.
10317 # The user is always right.
10318 if test "${PATH_SEPARATOR+set}" != set; then
10319 echo "#! /bin/sh" >conf$$.sh
10320 echo "exit 0" >>conf$$.sh
10321 chmod +x conf$$.sh
10322 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10323 PATH_SEPARATOR=';'
10324 else
10325 PATH_SEPARATOR=:
10326 fi
10327 rm -f conf$$.sh
10328 fi
10329 ac_prog=ld
10330 if test "$GCC" = yes; then
10331 # Check if gcc -print-prog-name=ld gives a path.
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10333 $as_echo_n "checking for ld used by GCC... " >&6; }
10334 case $host in
10335 *-*-mingw*)
10336 # gcc leaves a trailing carriage return which upsets mingw
10337 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10338 *)
10339 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10340 esac
10341 case $ac_prog in
10342 # Accept absolute paths.
10343 [\\/]* | [A-Za-z]:[\\/]*)
10344 re_direlt='/[^/][^/]*/\.\./'
10345 # Canonicalize the path of ld
10346 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10347 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10348 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10349 done
10350 test -z "$LD" && LD="$ac_prog"
10351 ;;
10352 "")
10353 # If it fails, then pretend we aren't using GCC.
10354 ac_prog=ld
10355 ;;
10356 *)
10357 # If it is relative, then search for the first ld in PATH.
10358 with_gnu_ld=unknown
10359 ;;
10360 esac
10361 elif test "$with_gnu_ld" = yes; then
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10363 $as_echo_n "checking for GNU ld... " >&6; }
10364 else
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10366 $as_echo_n "checking for non-GNU ld... " >&6; }
10367 fi
10368 if ${acl_cv_path_LD+:} false; then :
10369 $as_echo_n "(cached) " >&6
10370 else
10371 if test -z "$LD"; then
10372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10373 for ac_dir in $PATH; do
10374 test -z "$ac_dir" && ac_dir=.
10375 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10376 acl_cv_path_LD="$ac_dir/$ac_prog"
10377 # Check to see if the program is GNU ld. I'd rather use --version,
10378 # but apparently some GNU ld's only accept -v.
10379 # Break only if it was the GNU/non-GNU ld that we prefer.
10380 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10381 test "$with_gnu_ld" != no && break
10382 else
10383 test "$with_gnu_ld" != yes && break
10384 fi
10385 fi
10386 done
10387 IFS="$ac_save_ifs"
10388 else
10389 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10390 fi
10391 fi
10392
10393 LD="$acl_cv_path_LD"
10394 if test -n "$LD"; then
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10396 $as_echo "$LD" >&6; }
10397 else
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399 $as_echo "no" >&6; }
10400 fi
10401 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10403 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10404 if ${acl_cv_prog_gnu_ld+:} false; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10408 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10409 acl_cv_prog_gnu_ld=yes
10410 else
10411 acl_cv_prog_gnu_ld=no
10412 fi
10413 fi
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10415 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10416 with_gnu_ld=$acl_cv_prog_gnu_ld
10417
10418
10419
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10421 $as_echo_n "checking for shared library run path origin... " >&6; }
10422 if ${acl_cv_rpath+:} false; then :
10423 $as_echo_n "(cached) " >&6
10424 else
10425
10426 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10427 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10428 . ./conftest.sh
10429 rm -f ./conftest.sh
10430 acl_cv_rpath=done
10431
10432 fi
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10434 $as_echo "$acl_cv_rpath" >&6; }
10435 wl="$acl_cv_wl"
10436 libext="$acl_cv_libext"
10437 shlibext="$acl_cv_shlibext"
10438 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10439 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10440 hardcode_direct="$acl_cv_hardcode_direct"
10441 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10442 # Check whether --enable-rpath was given.
10443 if test "${enable_rpath+set}" = set; then :
10444 enableval=$enable_rpath; :
10445 else
10446 enable_rpath=yes
10447 fi
10448
10449
10450
10451
10452
10453
10454
10455
10456 use_additional=yes
10457
10458 acl_save_prefix="$prefix"
10459 prefix="$acl_final_prefix"
10460 acl_save_exec_prefix="$exec_prefix"
10461 exec_prefix="$acl_final_exec_prefix"
10462
10463 eval additional_includedir=\"$includedir\"
10464 eval additional_libdir=\"$libdir\"
10465
10466 exec_prefix="$acl_save_exec_prefix"
10467 prefix="$acl_save_prefix"
10468
10469
10470 # Check whether --with-libiconv-prefix was given.
10471 if test "${with_libiconv_prefix+set}" = set; then :
10472 withval=$with_libiconv_prefix;
10473 if test "X$withval" = "Xno"; then
10474 use_additional=no
10475 else
10476 if test "X$withval" = "X"; then
10477
10478 acl_save_prefix="$prefix"
10479 prefix="$acl_final_prefix"
10480 acl_save_exec_prefix="$exec_prefix"
10481 exec_prefix="$acl_final_exec_prefix"
10482
10483 eval additional_includedir=\"$includedir\"
10484 eval additional_libdir=\"$libdir\"
10485
10486 exec_prefix="$acl_save_exec_prefix"
10487 prefix="$acl_save_prefix"
10488
10489 else
10490 additional_includedir="$withval/include"
10491 additional_libdir="$withval/lib"
10492 fi
10493 fi
10494
10495 fi
10496
10497 LIBICONV=
10498 LTLIBICONV=
10499 INCICONV=
10500 rpathdirs=
10501 ltrpathdirs=
10502 names_already_handled=
10503 names_next_round='iconv '
10504 while test -n "$names_next_round"; do
10505 names_this_round="$names_next_round"
10506 names_next_round=
10507 for name in $names_this_round; do
10508 already_handled=
10509 for n in $names_already_handled; do
10510 if test "$n" = "$name"; then
10511 already_handled=yes
10512 break
10513 fi
10514 done
10515 if test -z "$already_handled"; then
10516 names_already_handled="$names_already_handled $name"
10517 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10518 eval value=\"\$HAVE_LIB$uppername\"
10519 if test -n "$value"; then
10520 if test "$value" = yes; then
10521 eval value=\"\$LIB$uppername\"
10522 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10523 eval value=\"\$LTLIB$uppername\"
10524 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10525 else
10526 :
10527 fi
10528 else
10529 found_dir=
10530 found_la=
10531 found_so=
10532 found_a=
10533 if test $use_additional = yes; then
10534 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10535 found_dir="$additional_libdir"
10536 found_so="$additional_libdir/lib$name.$shlibext"
10537 if test -f "$additional_libdir/lib$name.la"; then
10538 found_la="$additional_libdir/lib$name.la"
10539 fi
10540 else
10541 if test -f "$additional_libdir/lib$name.$libext"; then
10542 found_dir="$additional_libdir"
10543 found_a="$additional_libdir/lib$name.$libext"
10544 if test -f "$additional_libdir/lib$name.la"; then
10545 found_la="$additional_libdir/lib$name.la"
10546 fi
10547 fi
10548 fi
10549 fi
10550 if test "X$found_dir" = "X"; then
10551 for x in $LDFLAGS $LTLIBICONV; do
10552
10553 acl_save_prefix="$prefix"
10554 prefix="$acl_final_prefix"
10555 acl_save_exec_prefix="$exec_prefix"
10556 exec_prefix="$acl_final_exec_prefix"
10557 eval x=\"$x\"
10558 exec_prefix="$acl_save_exec_prefix"
10559 prefix="$acl_save_prefix"
10560
10561 case "$x" in
10562 -L*)
10563 dir=`echo "X$x" | sed -e 's/^X-L//'`
10564 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10565 found_dir="$dir"
10566 found_so="$dir/lib$name.$shlibext"
10567 if test -f "$dir/lib$name.la"; then
10568 found_la="$dir/lib$name.la"
10569 fi
10570 else
10571 if test -f "$dir/lib$name.$libext"; then
10572 found_dir="$dir"
10573 found_a="$dir/lib$name.$libext"
10574 if test -f "$dir/lib$name.la"; then
10575 found_la="$dir/lib$name.la"
10576 fi
10577 fi
10578 fi
10579 ;;
10580 esac
10581 if test "X$found_dir" != "X"; then
10582 break
10583 fi
10584 done
10585 fi
10586 if test "X$found_dir" != "X"; then
10587 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10588 if test "X$found_so" != "X"; then
10589 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10590 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10591 else
10592 haveit=
10593 for x in $ltrpathdirs; do
10594 if test "X$x" = "X$found_dir"; then
10595 haveit=yes
10596 break
10597 fi
10598 done
10599 if test -z "$haveit"; then
10600 ltrpathdirs="$ltrpathdirs $found_dir"
10601 fi
10602 if test "$hardcode_direct" = yes; then
10603 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10604 else
10605 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10606 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10607 haveit=
10608 for x in $rpathdirs; do
10609 if test "X$x" = "X$found_dir"; then
10610 haveit=yes
10611 break
10612 fi
10613 done
10614 if test -z "$haveit"; then
10615 rpathdirs="$rpathdirs $found_dir"
10616 fi
10617 else
10618 haveit=
10619 for x in $LDFLAGS $LIBICONV; do
10620
10621 acl_save_prefix="$prefix"
10622 prefix="$acl_final_prefix"
10623 acl_save_exec_prefix="$exec_prefix"
10624 exec_prefix="$acl_final_exec_prefix"
10625 eval x=\"$x\"
10626 exec_prefix="$acl_save_exec_prefix"
10627 prefix="$acl_save_prefix"
10628
10629 if test "X$x" = "X-L$found_dir"; then
10630 haveit=yes
10631 break
10632 fi
10633 done
10634 if test -z "$haveit"; then
10635 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10636 fi
10637 if test "$hardcode_minus_L" != no; then
10638 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10639 else
10640 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10641 fi
10642 fi
10643 fi
10644 fi
10645 else
10646 if test "X$found_a" != "X"; then
10647 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10648 else
10649 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10650 fi
10651 fi
10652 additional_includedir=
10653 case "$found_dir" in
10654 */lib | */lib/)
10655 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10656 additional_includedir="$basedir/include"
10657 ;;
10658 esac
10659 if test "X$additional_includedir" != "X"; then
10660 if test "X$additional_includedir" != "X/usr/include"; then
10661 haveit=
10662 if test "X$additional_includedir" = "X/usr/local/include"; then
10663 if test -n "$GCC"; then
10664 case $host_os in
10665 linux*) haveit=yes;;
10666 esac
10667 fi
10668 fi
10669 if test -z "$haveit"; then
10670 for x in $CPPFLAGS $INCICONV; do
10671
10672 acl_save_prefix="$prefix"
10673 prefix="$acl_final_prefix"
10674 acl_save_exec_prefix="$exec_prefix"
10675 exec_prefix="$acl_final_exec_prefix"
10676 eval x=\"$x\"
10677 exec_prefix="$acl_save_exec_prefix"
10678 prefix="$acl_save_prefix"
10679
10680 if test "X$x" = "X-I$additional_includedir"; then
10681 haveit=yes
10682 break
10683 fi
10684 done
10685 if test -z "$haveit"; then
10686 if test -d "$additional_includedir"; then
10687 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10688 fi
10689 fi
10690 fi
10691 fi
10692 fi
10693 if test -n "$found_la"; then
10694 save_libdir="$libdir"
10695 case "$found_la" in
10696 */* | *\\*) . "$found_la" ;;
10697 *) . "./$found_la" ;;
10698 esac
10699 libdir="$save_libdir"
10700 for dep in $dependency_libs; do
10701 case "$dep" in
10702 -L*)
10703 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10704 if test "X$additional_libdir" != "X/usr/lib"; then
10705 haveit=
10706 if test "X$additional_libdir" = "X/usr/local/lib"; then
10707 if test -n "$GCC"; then
10708 case $host_os in
10709 linux*) haveit=yes;;
10710 esac
10711 fi
10712 fi
10713 if test -z "$haveit"; then
10714 haveit=
10715 for x in $LDFLAGS $LIBICONV; do
10716
10717 acl_save_prefix="$prefix"
10718 prefix="$acl_final_prefix"
10719 acl_save_exec_prefix="$exec_prefix"
10720 exec_prefix="$acl_final_exec_prefix"
10721 eval x=\"$x\"
10722 exec_prefix="$acl_save_exec_prefix"
10723 prefix="$acl_save_prefix"
10724
10725 if test "X$x" = "X-L$additional_libdir"; then
10726 haveit=yes
10727 break
10728 fi
10729 done
10730 if test -z "$haveit"; then
10731 if test -d "$additional_libdir"; then
10732 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10733 fi
10734 fi
10735 haveit=
10736 for x in $LDFLAGS $LTLIBICONV; do
10737
10738 acl_save_prefix="$prefix"
10739 prefix="$acl_final_prefix"
10740 acl_save_exec_prefix="$exec_prefix"
10741 exec_prefix="$acl_final_exec_prefix"
10742 eval x=\"$x\"
10743 exec_prefix="$acl_save_exec_prefix"
10744 prefix="$acl_save_prefix"
10745
10746 if test "X$x" = "X-L$additional_libdir"; then
10747 haveit=yes
10748 break
10749 fi
10750 done
10751 if test -z "$haveit"; then
10752 if test -d "$additional_libdir"; then
10753 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10754 fi
10755 fi
10756 fi
10757 fi
10758 ;;
10759 -R*)
10760 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10761 if test "$enable_rpath" != no; then
10762 haveit=
10763 for x in $rpathdirs; do
10764 if test "X$x" = "X$dir"; then
10765 haveit=yes
10766 break
10767 fi
10768 done
10769 if test -z "$haveit"; then
10770 rpathdirs="$rpathdirs $dir"
10771 fi
10772 haveit=
10773 for x in $ltrpathdirs; do
10774 if test "X$x" = "X$dir"; then
10775 haveit=yes
10776 break
10777 fi
10778 done
10779 if test -z "$haveit"; then
10780 ltrpathdirs="$ltrpathdirs $dir"
10781 fi
10782 fi
10783 ;;
10784 -l*)
10785 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10786 ;;
10787 *.la)
10788 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10789 ;;
10790 *)
10791 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10792 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10793 ;;
10794 esac
10795 done
10796 fi
10797 else
10798 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10799 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10800 fi
10801 fi
10802 fi
10803 done
10804 done
10805 if test "X$rpathdirs" != "X"; then
10806 if test -n "$hardcode_libdir_separator"; then
10807 alldirs=
10808 for found_dir in $rpathdirs; do
10809 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10810 done
10811 acl_save_libdir="$libdir"
10812 libdir="$alldirs"
10813 eval flag=\"$hardcode_libdir_flag_spec\"
10814 libdir="$acl_save_libdir"
10815 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10816 else
10817 for found_dir in $rpathdirs; do
10818 acl_save_libdir="$libdir"
10819 libdir="$found_dir"
10820 eval flag=\"$hardcode_libdir_flag_spec\"
10821 libdir="$acl_save_libdir"
10822 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10823 done
10824 fi
10825 fi
10826 if test "X$ltrpathdirs" != "X"; then
10827 for found_dir in $ltrpathdirs; do
10828 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10829 done
10830 fi
10831
10832
10833
10834
10835
10836
10837
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10839 $as_echo_n "checking for iconv... " >&6; }
10840 if ${am_cv_func_iconv+:} false; then :
10841 $as_echo_n "(cached) " >&6
10842 else
10843
10844 am_cv_func_iconv="no, consider installing GNU libiconv"
10845 am_cv_lib_iconv=no
10846 am_save_CPPFLAGS="$CPPFLAGS"
10847 CPPFLAGS="$CPPFLAGS $INCICONV"
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10850 #include <stdlib.h>
10851 #include <iconv.h>
10852 int
10853 main ()
10854 {
10855 iconv_t cd = iconv_open("","");
10856 iconv(cd,NULL,NULL,NULL,NULL);
10857 iconv_close(cd);
10858 ;
10859 return 0;
10860 }
10861 _ACEOF
10862 if ac_fn_cxx_try_link "$LINENO"; then :
10863 am_cv_func_iconv=yes
10864 fi
10865 rm -f core conftest.err conftest.$ac_objext \
10866 conftest$ac_exeext conftest.$ac_ext
10867 CPPFLAGS="$am_save_CPPFLAGS"
10868
10869 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10870 for _libs in .libs _libs; do
10871 am_save_CPPFLAGS="$CPPFLAGS"
10872 am_save_LIBS="$LIBS"
10873 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10874 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10877 #include <stdlib.h>
10878 #include <iconv.h>
10879 int
10880 main ()
10881 {
10882 iconv_t cd = iconv_open("","");
10883 iconv(cd,NULL,NULL,NULL,NULL);
10884 iconv_close(cd);
10885 ;
10886 return 0;
10887 }
10888 _ACEOF
10889 if ac_fn_cxx_try_link "$LINENO"; then :
10890 INCICONV="-I../libiconv/include"
10891 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10892 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10893 am_cv_lib_iconv=yes
10894 am_cv_func_iconv=yes
10895 fi
10896 rm -f core conftest.err conftest.$ac_objext \
10897 conftest$ac_exeext conftest.$ac_ext
10898 CPPFLAGS="$am_save_CPPFLAGS"
10899 LIBS="$am_save_LIBS"
10900 if test "$am_cv_func_iconv" = "yes"; then
10901 break
10902 fi
10903 done
10904 fi
10905
10906 if test "$am_cv_func_iconv" != yes; then
10907 am_save_CPPFLAGS="$CPPFLAGS"
10908 am_save_LIBS="$LIBS"
10909 CPPFLAGS="$CPPFLAGS $INCICONV"
10910 LIBS="$LIBS $LIBICONV"
10911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10912 /* end confdefs.h. */
10913 #include <stdlib.h>
10914 #include <iconv.h>
10915 int
10916 main ()
10917 {
10918 iconv_t cd = iconv_open("","");
10919 iconv(cd,NULL,NULL,NULL,NULL);
10920 iconv_close(cd);
10921 ;
10922 return 0;
10923 }
10924 _ACEOF
10925 if ac_fn_cxx_try_link "$LINENO"; then :
10926 am_cv_lib_iconv=yes
10927 am_cv_func_iconv=yes
10928 fi
10929 rm -f core conftest.err conftest.$ac_objext \
10930 conftest$ac_exeext conftest.$ac_ext
10931 CPPFLAGS="$am_save_CPPFLAGS"
10932 LIBS="$am_save_LIBS"
10933 fi
10934
10935 fi
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10937 $as_echo "$am_cv_func_iconv" >&6; }
10938 if test "$am_cv_func_iconv" = yes; then
10939
10940 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10941
10942 fi
10943 if test "$am_cv_lib_iconv" = yes; then
10944
10945 for element in $INCICONV; do
10946 haveit=
10947 for x in $CPPFLAGS; do
10948
10949 acl_save_prefix="$prefix"
10950 prefix="$acl_final_prefix"
10951 acl_save_exec_prefix="$exec_prefix"
10952 exec_prefix="$acl_final_exec_prefix"
10953 eval x=\"$x\"
10954 exec_prefix="$acl_save_exec_prefix"
10955 prefix="$acl_save_prefix"
10956
10957 if test "X$x" = "X$element"; then
10958 haveit=yes
10959 break
10960 fi
10961 done
10962 if test -z "$haveit"; then
10963 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10964 fi
10965 done
10966
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10968 $as_echo_n "checking how to link with libiconv... " >&6; }
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10970 $as_echo "$LIBICONV" >&6; }
10971 else
10972 LIBICONV=
10973 LTLIBICONV=
10974 fi
10975
10976
10977
10978 if test "$am_cv_func_iconv" = yes; then
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10980 $as_echo_n "checking for iconv declaration... " >&6; }
10981 if ${am_cv_proto_iconv+:} false; then :
10982 $as_echo_n "(cached) " >&6
10983 else
10984
10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h. */
10987
10988 #include <stdlib.h>
10989 #include <iconv.h>
10990 extern
10991 #ifdef __cplusplus
10992 "C"
10993 #endif
10994 #if defined(__STDC__) || defined(__cplusplus)
10995 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10996 #else
10997 size_t iconv();
10998 #endif
10999
11000 int
11001 main ()
11002 {
11003
11004 ;
11005 return 0;
11006 }
11007 _ACEOF
11008 if ac_fn_cxx_try_compile "$LINENO"; then :
11009 am_cv_proto_iconv_arg1=""
11010 else
11011 am_cv_proto_iconv_arg1="const"
11012 fi
11013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11014 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);"
11015 fi
11016
11017 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11019 }$am_cv_proto_iconv" >&5
11020 $as_echo "${ac_t:-
11021 }$am_cv_proto_iconv" >&6; }
11022
11023 cat >>confdefs.h <<_ACEOF
11024 #define ICONV_CONST $am_cv_proto_iconv_arg1
11025 _ACEOF
11026
11027 fi
11028
11029
11030 # Until we have in-tree GNU iconv:
11031 LIBICONV_DEP=
11032 if test -f "$LTLIBICONV"; then
11033 LIBICONV_DEP=$LTLIBICONV
11034 fi
11035
11036
11037
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11039 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11040 if ${am_cv_val_LC_MESSAGES+:} false; then :
11041 $as_echo_n "(cached) " >&6
11042 else
11043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11044 /* end confdefs.h. */
11045 #include <locale.h>
11046 int
11047 main ()
11048 {
11049 return LC_MESSAGES
11050 ;
11051 return 0;
11052 }
11053 _ACEOF
11054 if ac_fn_cxx_try_link "$LINENO"; then :
11055 am_cv_val_LC_MESSAGES=yes
11056 else
11057 am_cv_val_LC_MESSAGES=no
11058 fi
11059 rm -f core conftest.err conftest.$ac_objext \
11060 conftest$ac_exeext conftest.$ac_ext
11061 fi
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11063 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11064 if test $am_cv_val_LC_MESSAGES = yes; then
11065
11066 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11067
11068 fi
11069
11070
11071
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11073 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11074 if ${am_cv_langinfo_codeset+:} false; then :
11075 $as_echo_n "(cached) " >&6
11076 else
11077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h. */
11079 #include <langinfo.h>
11080 int
11081 main ()
11082 {
11083 char* cs = nl_langinfo(CODESET);
11084 ;
11085 return 0;
11086 }
11087 _ACEOF
11088 if ac_fn_cxx_try_link "$LINENO"; then :
11089 am_cv_langinfo_codeset=yes
11090 else
11091 am_cv_langinfo_codeset=no
11092 fi
11093 rm -f core conftest.err conftest.$ac_objext \
11094 conftest$ac_exeext conftest.$ac_ext
11095
11096 fi
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11098 $as_echo "$am_cv_langinfo_codeset" >&6; }
11099 if test $am_cv_langinfo_codeset = yes; then
11100
11101 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11102
11103 fi
11104
11105
11106 # We will need to find libiberty.h and ansidecl.h
11107 saved_CFLAGS="$CFLAGS"
11108 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11109 saved_CXXFLAGS="$CXXFLAGS"
11110 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11111
11112 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11113 # normal autoconf function for these. But force definition of
11114 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11115 # basename handling in libiberty.h.
11116 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11117 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11118 #undef HAVE_DECL_BASENAME
11119 #define HAVE_DECL_BASENAME 1
11120 #include \"ansidecl.h\"
11121 #include \"system.h\"
11122 "
11123 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11124 ac_have_decl=1
11125 else
11126 ac_have_decl=0
11127 fi
11128
11129 cat >>confdefs.h <<_ACEOF
11130 #define HAVE_DECL_BASENAME $ac_have_decl
11131 _ACEOF
11132 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11133 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11134 #undef HAVE_DECL_BASENAME
11135 #define HAVE_DECL_BASENAME 1
11136 #include \"ansidecl.h\"
11137 #include \"system.h\"
11138 "
11139 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11140 ac_have_decl=1
11141 else
11142 ac_have_decl=0
11143 fi
11144
11145 cat >>confdefs.h <<_ACEOF
11146 #define HAVE_DECL_STRSTR $ac_have_decl
11147 _ACEOF
11148
11149
11150 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11151 madvise stpcpy strnlen strsignal strverscmp \
11152 strtol strtoul strtoll strtoull setenv unsetenv \
11153 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11154 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
11155 do
11156 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11158 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11159 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11160 $as_echo_n "(cached) " >&6
11161 else
11162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163 /* end confdefs.h. */
11164 #undef $ac_tr_decl
11165 #define $ac_tr_decl 1
11166
11167 #include "ansidecl.h"
11168 #include "system.h"
11169
11170 int
11171 main ()
11172 {
11173 #ifndef $ac_func
11174 char *(*pfn) = (char *(*)) $ac_func ;
11175 #endif
11176 ;
11177 return 0;
11178 }
11179 _ACEOF
11180 if ac_fn_cxx_try_compile "$LINENO"; then :
11181 eval "gcc_cv_have_decl_$ac_func=yes"
11182 else
11183 eval "gcc_cv_have_decl_$ac_func=no"
11184 fi
11185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11186 fi
11187
11188 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11190 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11191 #define $ac_tr_decl 1
11192 _ACEOF
11193
11194 else
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11196 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11197 #define $ac_tr_decl 0
11198 _ACEOF
11199
11200 fi
11201
11202 done
11203
11204
11205 for ac_func in getrlimit setrlimit getrusage
11206 do
11207 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11209 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11210 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11211 $as_echo_n "(cached) " >&6
11212 else
11213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h. */
11215 #undef $ac_tr_decl
11216 #define $ac_tr_decl 1
11217
11218 #include "ansidecl.h"
11219 #include "system.h"
11220 #ifdef HAVE_SYS_RESOURCE_H
11221 #include <sys/resource.h>
11222 #endif
11223
11224
11225 int
11226 main ()
11227 {
11228 #ifndef $ac_func
11229 char *(*pfn) = (char *(*)) $ac_func ;
11230 #endif
11231 ;
11232 return 0;
11233 }
11234 _ACEOF
11235 if ac_fn_cxx_try_compile "$LINENO"; then :
11236 eval "gcc_cv_have_decl_$ac_func=yes"
11237 else
11238 eval "gcc_cv_have_decl_$ac_func=no"
11239 fi
11240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11241 fi
11242
11243 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11245 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11246 #define $ac_tr_decl 1
11247 _ACEOF
11248
11249 else
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11252 #define $ac_tr_decl 0
11253 _ACEOF
11254
11255 fi
11256
11257 done
11258
11259
11260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11262
11263 #include "ansidecl.h"
11264 #include "system.h"
11265 #ifdef HAVE_SYS_RESOURCE_H
11266 #include <sys/resource.h>
11267 #endif
11268
11269 int
11270 main ()
11271 {
11272 rlim_t l = 0;
11273 ;
11274 return 0;
11275 }
11276 _ACEOF
11277 if ac_fn_cxx_try_compile "$LINENO"; then :
11278
11279 else
11280
11281 $as_echo "#define rlim_t long" >>confdefs.h
11282
11283 fi
11284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285
11286 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11287 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11288 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11289 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11290 for ac_func in ldgetname
11291 do
11292 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11294 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11295 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11296 $as_echo_n "(cached) " >&6
11297 else
11298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11300 #undef $ac_tr_decl
11301 #define $ac_tr_decl 1
11302
11303 #include "ansidecl.h"
11304 #include "system.h"
11305 #ifdef HAVE_LDFCN_H
11306 #undef FREAD
11307 #undef FWRITE
11308 #include <ldfcn.h>
11309 #endif
11310
11311
11312 int
11313 main ()
11314 {
11315 #ifndef $ac_func
11316 char *(*pfn) = (char *(*)) $ac_func ;
11317 #endif
11318 ;
11319 return 0;
11320 }
11321 _ACEOF
11322 if ac_fn_cxx_try_compile "$LINENO"; then :
11323 eval "gcc_cv_have_decl_$ac_func=yes"
11324 else
11325 eval "gcc_cv_have_decl_$ac_func=no"
11326 fi
11327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328 fi
11329
11330 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11332 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11333 #define $ac_tr_decl 1
11334 _ACEOF
11335
11336 else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11339 #define $ac_tr_decl 0
11340 _ACEOF
11341
11342 fi
11343
11344 done
11345
11346
11347 for ac_func in times
11348 do
11349 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11351 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11352 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11353 $as_echo_n "(cached) " >&6
11354 else
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11357 #undef $ac_tr_decl
11358 #define $ac_tr_decl 1
11359
11360 #include "ansidecl.h"
11361 #include "system.h"
11362 #ifdef HAVE_SYS_TIMES_H
11363 #include <sys/times.h>
11364 #endif
11365
11366
11367 int
11368 main ()
11369 {
11370 #ifndef $ac_func
11371 char *(*pfn) = (char *(*)) $ac_func ;
11372 #endif
11373 ;
11374 return 0;
11375 }
11376 _ACEOF
11377 if ac_fn_cxx_try_compile "$LINENO"; then :
11378 eval "gcc_cv_have_decl_$ac_func=yes"
11379 else
11380 eval "gcc_cv_have_decl_$ac_func=no"
11381 fi
11382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11383 fi
11384
11385 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11387 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11388 #define $ac_tr_decl 1
11389 _ACEOF
11390
11391 else
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11394 #define $ac_tr_decl 0
11395 _ACEOF
11396
11397 fi
11398
11399 done
11400
11401
11402 for ac_func in sigaltstack
11403 do
11404 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11406 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11407 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11408 $as_echo_n "(cached) " >&6
11409 else
11410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h. */
11412 #undef $ac_tr_decl
11413 #define $ac_tr_decl 1
11414
11415 #include "ansidecl.h"
11416 #include "system.h"
11417 #include <signal.h>
11418
11419
11420 int
11421 main ()
11422 {
11423 #ifndef $ac_func
11424 char *(*pfn) = (char *(*)) $ac_func ;
11425 #endif
11426 ;
11427 return 0;
11428 }
11429 _ACEOF
11430 if ac_fn_cxx_try_compile "$LINENO"; then :
11431 eval "gcc_cv_have_decl_$ac_func=yes"
11432 else
11433 eval "gcc_cv_have_decl_$ac_func=no"
11434 fi
11435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11436 fi
11437
11438 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11440 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11441 #define $ac_tr_decl 1
11442 _ACEOF
11443
11444 else
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11447 #define $ac_tr_decl 0
11448 _ACEOF
11449
11450 fi
11451
11452 done
11453
11454
11455 # More time-related stuff.
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11457 $as_echo_n "checking for struct tms... " >&6; }
11458 if ${ac_cv_struct_tms+:} false; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461
11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11464
11465 #include "ansidecl.h"
11466 #include "system.h"
11467 #ifdef HAVE_SYS_TIMES_H
11468 #include <sys/times.h>
11469 #endif
11470
11471 int
11472 main ()
11473 {
11474 struct tms tms;
11475 ;
11476 return 0;
11477 }
11478 _ACEOF
11479 if ac_fn_cxx_try_compile "$LINENO"; then :
11480 ac_cv_struct_tms=yes
11481 else
11482 ac_cv_struct_tms=no
11483 fi
11484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11485 fi
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11487 $as_echo "$ac_cv_struct_tms" >&6; }
11488 if test $ac_cv_struct_tms = yes; then
11489
11490 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11491
11492 fi
11493
11494 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11495 # revisit after autoconf 2.50.
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11497 $as_echo_n "checking for clock_t... " >&6; }
11498 if ${gcc_cv_type_clock_t+:} false; then :
11499 $as_echo_n "(cached) " >&6
11500 else
11501
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11504
11505 #include "ansidecl.h"
11506 #include "system.h"
11507
11508 int
11509 main ()
11510 {
11511 clock_t x;
11512 ;
11513 return 0;
11514 }
11515 _ACEOF
11516 if ac_fn_cxx_try_compile "$LINENO"; then :
11517 gcc_cv_type_clock_t=yes
11518 else
11519 gcc_cv_type_clock_t=no
11520 fi
11521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11522 fi
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11524 $as_echo "$gcc_cv_type_clock_t" >&6; }
11525 if test $gcc_cv_type_clock_t = yes; then
11526
11527 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11528
11529 fi
11530
11531 # Check if F_SETLKW is supported by fcntl.
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11533 $as_echo_n "checking for F_SETLKW... " >&6; }
11534 if ${ac_cv_f_setlkw+:} false; then :
11535 $as_echo_n "(cached) " >&6
11536 else
11537
11538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11539 /* end confdefs.h. */
11540
11541 #include <fcntl.h>
11542 int
11543 main ()
11544 {
11545
11546 struct flock fl;
11547 fl.l_whence = 0;
11548 fl.l_start = 0;
11549 fl.l_len = 0;
11550 fl.l_pid = 0;
11551 return fcntl (1, F_SETLKW, &fl);
11552 ;
11553 return 0;
11554 }
11555 _ACEOF
11556 if ac_fn_cxx_try_compile "$LINENO"; then :
11557 ac_cv_f_setlkw=yes
11558 else
11559 ac_cv_f_setlkw=no
11560 fi
11561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11562 fi
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11564 $as_echo "$ac_cv_f_setlkw" >&6; }
11565 if test $ac_cv_f_setlkw = yes; then
11566
11567 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11568
11569 fi
11570
11571 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11572 CFLAGS="$saved_CFLAGS"
11573 CXXFLAGS="$saved_CXXFLAGS"
11574
11575 # mkdir takes a single argument on some systems.
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11577 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11578 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11579 $as_echo_n "(cached) " >&6
11580 else
11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582 /* end confdefs.h. */
11583
11584 #include <sys/types.h>
11585 #ifdef HAVE_SYS_STAT_H
11586 # include <sys/stat.h>
11587 #endif
11588 #ifdef HAVE_UNISTD_H
11589 # include <unistd.h>
11590 #endif
11591 #ifdef HAVE_DIRECT_H
11592 # include <direct.h>
11593 #endif
11594 int
11595 main ()
11596 {
11597 mkdir ("foo", 0);
11598 ;
11599 return 0;
11600 }
11601 _ACEOF
11602 if ac_fn_cxx_try_compile "$LINENO"; then :
11603 gcc_cv_mkdir_takes_one_arg=no
11604 else
11605 gcc_cv_mkdir_takes_one_arg=yes
11606 fi
11607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11608 fi
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11610 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11611 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11612
11613 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11614
11615 fi
11616
11617
11618 # File extensions
11619 manext='.1'
11620 objext='.o'
11621
11622
11623
11624 # With Setjmp/Longjmp based exception handling.
11625 # Check whether --enable-sjlj-exceptions was given.
11626 if test "${enable_sjlj_exceptions+set}" = set; then :
11627 enableval=$enable_sjlj_exceptions; case $target in
11628 *-*-hpux10*)
11629 if test $enableval != yes; then
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11631 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11632 enableval=yes
11633 fi
11634 ;;
11635 esac
11636 force_sjlj_exceptions=yes
11637 else
11638 case $target in
11639 *-*-hpux10*)
11640 force_sjlj_exceptions=yes
11641 enableval=yes
11642 ;;
11643 lm32*-*-*)
11644 force_sjlj_exceptions=yes
11645 enableval=yes
11646 ;;
11647 *)
11648 force_sjlj_exceptions=no
11649 ;;
11650 esac
11651 fi
11652
11653 if test $force_sjlj_exceptions = yes; then
11654 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11655
11656 cat >>confdefs.h <<_ACEOF
11657 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11658 _ACEOF
11659
11660 fi
11661
11662 # --------------------------------------------------------
11663 # Build, host, and target specific configuration fragments
11664 # --------------------------------------------------------
11665
11666 # Collect build-machine-specific information.
11667 . ${srcdir}/config.build || exit 1
11668
11669 # Collect host-machine-specific information.
11670 . ${srcdir}/config.host || exit 1
11671
11672 target_gtfiles=
11673
11674 # Collect target-machine-specific information.
11675 . ${srcdir}/config.gcc || exit 1
11676
11677 extra_objs="${host_extra_objs} ${extra_objs}"
11678 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11679
11680 # Default the target-machine variables that were not explicitly set.
11681 if test x"$tm_file" = x
11682 then tm_file=$cpu_type/$cpu_type.h; fi
11683
11684 if test x"$extra_headers" = x
11685 then extra_headers=; fi
11686
11687 if test x$md_file = x
11688 then md_file=$cpu_type/$cpu_type.md; fi
11689
11690 if test x$out_file = x
11691 then out_file=$cpu_type/$cpu_type.c; fi
11692
11693 if test x"$tmake_file" = x
11694 then tmake_file=$cpu_type/t-$cpu_type
11695 fi
11696
11697 # Support --enable-initfini-array.
11698 if test x$enable_initfini_array != xno; then
11699 tm_file="${tm_file} initfini-array.h"
11700 fi
11701
11702 if test x"$dwarf2" = xyes
11703 then tm_file="$tm_file tm-dwarf2.h"
11704 fi
11705
11706 # Say what files are being used for the output code and MD file.
11707 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11708 echo "Using \`$srcdir/config/$md_file' as machine description file."
11709
11710 # If any of the xm_file variables contain nonexistent files, warn
11711 # about them and drop them.
11712
11713 bx=
11714 for x in $build_xm_file; do
11715 if test -f $srcdir/config/$x
11716 then bx="$bx $x"
11717 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11718 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11719 fi
11720 done
11721 build_xm_file="$bx"
11722
11723 hx=
11724 for x in $host_xm_file; do
11725 if test -f $srcdir/config/$x
11726 then hx="$hx $x"
11727 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11728 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11729 fi
11730 done
11731 host_xm_file="$hx"
11732
11733 tx=
11734 for x in $xm_file; do
11735 if test -f $srcdir/config/$x
11736 then tx="$tx $x"
11737 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11738 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11739 fi
11740 done
11741 xm_file="$tx"
11742
11743 count=a
11744 for f in $tm_file; do
11745 count=${count}x
11746 done
11747 if test $count = ax; then
11748 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11749 else
11750 echo "Using the following target machine macro files:"
11751 for f in $tm_file; do
11752 echo " $srcdir/config/$f"
11753 done
11754 fi
11755
11756 if test x$use_long_long_for_widest_fast_int = xyes; then
11757
11758 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11759
11760 fi
11761
11762 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11763
11764 cat >>confdefs.h <<_ACEOF
11765 #define HAVE_GNU_LD $gnu_ld_bool
11766 _ACEOF
11767
11768
11769 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11770
11771 cat >>confdefs.h <<_ACEOF
11772 #define HAVE_GNU_AS $gnu_as_bool
11773 _ACEOF
11774
11775
11776 count=a
11777 for f in $host_xm_file; do
11778 count=${count}x
11779 done
11780 if test $count = a; then
11781 :
11782 elif test $count = ax; then
11783 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11784 else
11785 echo "Using the following host machine macro files:"
11786 for f in $host_xm_file; do
11787 echo " $srcdir/config/$f"
11788 done
11789 fi
11790 echo "Using ${out_host_hook_obj} for host machine hooks."
11791
11792 if test "$host_xm_file" != "$build_xm_file"; then
11793 count=a
11794 for f in $build_xm_file; do
11795 count=${count}x
11796 done
11797 if test $count = a; then
11798 :
11799 elif test $count = ax; then
11800 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11801 else
11802 echo "Using the following build machine macro files:"
11803 for f in $build_xm_file; do
11804 echo " $srcdir/config/$f"
11805 done
11806 fi
11807 fi
11808
11809 if test -n "$configured_native_system_header_dir"; then
11810 native_system_header_dir=$configured_native_system_header_dir
11811 fi
11812 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11813
11814
11815 case ${host} in
11816 powerpc*-*-darwin*)
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11818 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11819 if ${gcc_cv_mcontext_underscores+:} false; then :
11820 $as_echo_n "(cached) " >&6
11821 else
11822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h. */
11824
11825 #include <sys/cdefs.h>
11826 #include <sys/signal.h>
11827 #include <ucontext.h>
11828 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11829
11830 _ACEOF
11831 if ac_fn_cxx_try_compile "$LINENO"; then :
11832 gcc_cv_mcontext_underscores=no
11833 else
11834 gcc_cv_mcontext_underscores=yes
11835 fi
11836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11837 fi
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11839 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11840 if test $gcc_cv_mcontext_underscores = yes; then
11841
11842 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11843
11844 fi
11845 ;;
11846 esac
11847
11848 # ---------
11849 # Threading
11850 # ---------
11851
11852 # Check if a valid thread package
11853 case ${enable_threads} in
11854 "" | no)
11855 # No threads
11856 target_thread_file='single'
11857 ;;
11858 yes)
11859 # default
11860 target_thread_file='single'
11861 ;;
11862 aix | dce | lynx | mipssde | posix | rtems | \
11863 single | tpf | vxworks | win32)
11864 target_thread_file=${enable_threads}
11865 ;;
11866 *)
11867 echo "${enable_threads} is an unknown thread package" 1>&2
11868 exit 1
11869 ;;
11870 esac
11871
11872 if test x${thread_file} = x; then
11873 # No thread file set by target-specific clauses in config.gcc,
11874 # so use file chosen by default logic above
11875 thread_file=${target_thread_file}
11876 fi
11877
11878 # --------
11879 # UNSORTED
11880 # --------
11881
11882 use_cxa_atexit=no
11883 if test x$enable___cxa_atexit = xyes || \
11884 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11885 if test x$host = x$target; then
11886 case $host in
11887 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11888 # keyed to flag_use_cxa_atexit
11889 *-*-mingw32*)
11890 use_cxa_atexit=yes
11891 ;;
11892 powerpc-ibm-aix*)
11893 use_cxa_atexit=yes
11894 ;;
11895 *)
11896 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11897 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
11898 use_cxa_atexit=yes
11899 else
11900 echo "__cxa_atexit can't be enabled on this target"
11901 fi
11902
11903 ;;
11904 esac
11905 else
11906 # We can't check for __cxa_atexit when building a cross, so assume
11907 # it is available
11908 use_cxa_atexit=yes
11909 fi
11910 if test x$use_cxa_atexit = xyes; then
11911
11912 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11913
11914 fi
11915 fi
11916
11917 # Look for a file containing extra machine modes.
11918 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11919 extra_modes_file='$(srcdir)'/config/${extra_modes}
11920
11921
11922 cat >>confdefs.h <<_ACEOF
11923 #define EXTRA_MODES_FILE "config/$extra_modes"
11924 _ACEOF
11925
11926 fi
11927
11928 # Convert extra_options into a form suitable for Makefile use.
11929 extra_opt_files=
11930 all_opt_files=
11931 for f in $extra_options; do
11932 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11933 all_opt_files="$all_opt_files $srcdir/config/$f"
11934 done
11935
11936
11937 # auto-host.h is the file containing items generated by autoconf and is
11938 # the first file included by config.h.
11939 # If host=build, it is correct to have bconfig include auto-host.h
11940 # as well. If host!=build, we are in error and need to do more
11941 # work to find out the build config parameters.
11942 if test x$host = x$build
11943 then
11944 build_auto=auto-host.h
11945 else
11946 # We create a subdir, then run autoconf in the subdir.
11947 # To prevent recursion we set host and build for the new
11948 # invocation of configure to the build for this invocation
11949 # of configure.
11950 tempdir=build.$$
11951 rm -rf $tempdir
11952 mkdir $tempdir
11953 cd $tempdir
11954 case ${srcdir} in
11955 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11956 *) realsrcdir=../${srcdir};;
11957 esac
11958 # Clearing GMPINC is necessary to prevent host headers being
11959 # used by the build compiler. Defining GENERATOR_FILE stops
11960 # system.h from including gmp.h.
11961 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11962 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11963 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11964 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11965 ${realsrcdir}/configure \
11966 --enable-languages=${enable_languages-all} \
11967 --target=$target_alias --host=$build_alias --build=$build_alias
11968
11969 # We just finished tests for the build machine, so rename
11970 # the file auto-build.h in the gcc directory.
11971 mv auto-host.h ../auto-build.h
11972 cd ..
11973 rm -rf $tempdir
11974 build_auto=auto-build.h
11975 fi
11976
11977
11978 tm_file="${tm_file} defaults.h"
11979 tm_p_file="${tm_p_file} tm-preds.h"
11980 tm_d_file="${tm_d_file} defaults.h"
11981 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11982 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11983 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11984 # put this back in temporarily.
11985 xm_file="auto-host.h ansidecl.h ${xm_file}"
11986
11987 # --------
11988 # UNSORTED
11989 # --------
11990
11991 # Compile in configure arguments.
11992 if test -f configargs.h ; then
11993 # Being re-configured.
11994 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11995 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
11996 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
11997 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11998 fi
11999 else
12000 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12001 fi
12002
12003 # Double all backslashes and backslash all quotes to turn
12004 # gcc_config_arguments into a C string.
12005 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12006 $gcc_config_arguments
12007 EOF
12008 gcc_config_arguments_str=`cat conftest.out`
12009 rm -f conftest.out
12010
12011 cat > configargs.h <<EOF
12012 /* Generated automatically. */
12013 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12014 static const char thread_model[] = "$thread_file";
12015
12016 static const struct {
12017 const char *name, *value;
12018 } configure_default_options[] = $configure_default_options;
12019 EOF
12020
12021 gcc_BASEVER=`cat $srcdir/BASE-VER`
12022 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12023 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12024 if test -f $srcdir/REVISION ; then
12025 gcc_REVISION=`cat $srcdir/REVISION`
12026 else
12027 gcc_REVISION=""
12028 fi
12029 cat > plugin-version.h <<EOF
12030 #include "configargs.h"
12031
12032 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12033 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12034 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12035 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12036
12037 static char basever[] = "$gcc_BASEVER";
12038 static char datestamp[] = "$gcc_DATESTAMP";
12039 static char devphase[] = "$gcc_DEVPHASE";
12040 static char revision[] = "$gcc_REVISION";
12041
12042 /* FIXME plugins: We should make the version information more precise.
12043 One way to do is to add a checksum. */
12044
12045 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12046 devphase, revision,
12047 configuration_arguments};
12048 EOF
12049
12050 # Determine what GCC version number to use in filesystem paths.
12051
12052 get_gcc_base_ver="cat"
12053
12054 # Check whether --with-gcc-major-version-only was given.
12055 if test "${with_gcc_major_version_only+set}" = set; then :
12056 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12057 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12058 fi
12059
12060 fi
12061
12062
12063
12064
12065 # Internationalization
12066 # If we haven't got the data from the intl directory,
12067 # assume NLS is disabled.
12068 USE_NLS=no
12069 LIBINTL=
12070 LIBINTL_DEP=
12071 INCINTL=
12072 XGETTEXT=
12073 GMSGFMT=
12074 POSUB=
12075
12076 if test -f ../intl/config.intl; then
12077 . ../intl/config.intl
12078 fi
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12080 $as_echo_n "checking whether NLS is requested... " >&6; }
12081 if test x"$USE_NLS" != xyes; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083 $as_echo "no" >&6; }
12084 else
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12086 $as_echo "yes" >&6; }
12087
12088 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12089
12090
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12092 $as_echo_n "checking for catalogs to be installed... " >&6; }
12093 # Look for .po and .gmo files in the source directory.
12094 CATALOGS=
12095 XLINGUAS=
12096 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12097 # If there aren't any .gmo files the shell will give us the
12098 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12099 # weeded out.
12100 case "$cat" in *\**)
12101 continue;;
12102 esac
12103 # The quadruple backslash is collapsed to a double backslash
12104 # by the backticks, then collapsed again by the double quotes,
12105 # leaving us with one backslash in the sed expression (right
12106 # before the dot that mustn't act as a wildcard).
12107 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12108 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12109 # The user is allowed to set LINGUAS to a list of languages to
12110 # install catalogs for. If it's empty that means "all of them."
12111 if test "x$LINGUAS" = x; then
12112 CATALOGS="$CATALOGS $cat"
12113 XLINGUAS="$XLINGUAS $lang"
12114 else
12115 case "$LINGUAS" in *$lang*)
12116 CATALOGS="$CATALOGS $cat"
12117 XLINGUAS="$XLINGUAS $lang"
12118 ;;
12119 esac
12120 fi
12121 done
12122 LINGUAS="$XLINGUAS"
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12124 $as_echo "$LINGUAS" >&6; }
12125
12126
12127 DATADIRNAME=share
12128
12129 INSTOBJEXT=.mo
12130
12131 GENCAT=gencat
12132
12133 CATOBJEXT=.gmo
12134
12135 fi
12136
12137 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12138 # -liconv on the link line twice.
12139 case "$LIBINTL" in *$LIBICONV*)
12140 LIBICONV= ;;
12141 esac
12142
12143 # Check whether --enable-secureplt was given.
12144 if test "${enable_secureplt+set}" = set; then :
12145 enableval=$enable_secureplt;
12146 fi
12147
12148
12149 # Check whether --enable-mingw-wildcard was given.
12150 if test "${enable_mingw_wildcard+set}" = set; then :
12151 enableval=$enable_mingw_wildcard;
12152 else
12153 enable_mingw_wildcard=platform
12154 fi
12155
12156 if test x"$enable_mingw_wildcard" != xplatform ; then :
12157
12158 cat >>confdefs.h <<_ACEOF
12159 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12160 _ACEOF
12161
12162 fi
12163
12164 # Check whether --enable-large-address-aware was given.
12165 if test "${enable_large_address_aware+set}" = set; then :
12166 enableval=$enable_large_address_aware;
12167 fi
12168
12169 if test x"$enable_large_address_aware" = xyes; then :
12170
12171 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12172
12173 fi
12174
12175 # Check whether --enable-leading-mingw64-underscores was given.
12176 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12177 enableval=$enable_leading_mingw64_underscores;
12178 fi
12179
12180 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12181
12182 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12183
12184 fi
12185
12186 # Check whether --enable-cld was given.
12187 if test "${enable_cld+set}" = set; then :
12188 enableval=$enable_cld;
12189 else
12190 enable_cld=no
12191 fi
12192
12193
12194 # Check whether --enable-frame-pointer was given.
12195 if test "${enable_frame_pointer+set}" = set; then :
12196 enableval=$enable_frame_pointer;
12197 else
12198
12199 case $target_os in
12200 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
12201 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12202 enable_frame_pointer=no
12203 ;;
12204 *)
12205 enable_frame_pointer=yes
12206 ;;
12207 esac
12208
12209 fi
12210
12211
12212 case $target in
12213 i[34567]86-*-* | x86_64-*-*)
12214 if test "x$enable_cld" = xyes; then
12215 tm_defines="${tm_defines} USE_IX86_CLD=1"
12216 fi
12217 if test "x$enable_frame_pointer" = xyes; then
12218 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
12219 fi
12220 ;;
12221 esac
12222
12223 # Windows32 Registry support for specifying GCC installation paths.
12224 # Check whether --enable-win32-registry was given.
12225 if test "${enable_win32_registry+set}" = set; then :
12226 enableval=$enable_win32_registry;
12227 fi
12228
12229
12230 case $host_os in
12231 win32 | pe | cygwin* | mingw32*)
12232 if test "x$enable_win32_registry" != xno; then
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12234 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12235 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12236 $as_echo_n "(cached) " >&6
12237 else
12238 ac_func_search_save_LIBS=$LIBS
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12241
12242 /* Override any GCC internal prototype to avoid an error.
12243 Use char because int might match the return type of a GCC
12244 builtin and then its argument prototype would still apply. */
12245 #ifdef __cplusplus
12246 extern "C"
12247 #endif
12248 char RegOpenKeyExA ();
12249 int
12250 main ()
12251 {
12252 return RegOpenKeyExA ();
12253 ;
12254 return 0;
12255 }
12256 _ACEOF
12257 for ac_lib in '' advapi32; do
12258 if test -z "$ac_lib"; then
12259 ac_res="none required"
12260 else
12261 ac_res=-l$ac_lib
12262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12263 fi
12264 if ac_fn_cxx_try_link "$LINENO"; then :
12265 ac_cv_search_RegOpenKeyExA=$ac_res
12266 fi
12267 rm -f core conftest.err conftest.$ac_objext \
12268 conftest$ac_exeext
12269 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12270 break
12271 fi
12272 done
12273 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12274
12275 else
12276 ac_cv_search_RegOpenKeyExA=no
12277 fi
12278 rm conftest.$ac_ext
12279 LIBS=$ac_func_search_save_LIBS
12280 fi
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12282 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12283 ac_res=$ac_cv_search_RegOpenKeyExA
12284 if test "$ac_res" != no; then :
12285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12286
12287 else
12288 enable_win32_registry=no
12289 fi
12290
12291 fi
12292
12293 if test "x$enable_win32_registry" != xno; then
12294
12295 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12296
12297
12298 if test "x$enable_win32_registry" != xyes \
12299 && test "x$enable_win32_registry" != x; then
12300
12301 cat >>confdefs.h <<_ACEOF
12302 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12303 _ACEOF
12304
12305 fi
12306 fi
12307 ;;
12308 esac
12309
12310 # Get an absolute path to the GCC top-level source directory
12311 holddir=`${PWDCMD-pwd}`
12312 cd $srcdir
12313 topdir=`${PWDCMD-pwd}`
12314 cd $holddir
12315
12316 # Conditionalize the makefile for this host machine.
12317 xmake_file=
12318 for f in ${host_xmake_file}
12319 do
12320 if test -f ${srcdir}/config/$f
12321 then
12322 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12323 fi
12324 done
12325
12326 # Conditionalize the makefile for this target machine.
12327 tmake_file_=
12328 for f in ${tmake_file}
12329 do
12330 if test -f ${srcdir}/config/$f
12331 then
12332 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12333 fi
12334 done
12335 tmake_file="${tmake_file_}"
12336
12337 out_object_file=`basename $out_file .c`.o
12338 common_out_object_file=`basename $common_out_file .c`.o
12339
12340 tm_file_list="options.h"
12341 tm_include_list="options.h insn-constants.h"
12342 for f in $tm_file; do
12343 case $f in
12344 ./* )
12345 f=`echo $f | sed 's/^..//'`
12346 tm_file_list="${tm_file_list} $f"
12347 tm_include_list="${tm_include_list} $f"
12348 ;;
12349 defaults.h )
12350 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12351 tm_include_list="${tm_include_list} $f"
12352 ;;
12353 * )
12354 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12355 tm_include_list="${tm_include_list} config/$f"
12356 ;;
12357 esac
12358 done
12359
12360 tm_p_file_list=
12361 tm_p_include_list=
12362 for f in $tm_p_file; do
12363 case $f in
12364 tm-preds.h )
12365 tm_p_file_list="${tm_p_file_list} $f"
12366 tm_p_include_list="${tm_p_include_list} $f"
12367 ;;
12368 * )
12369 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12370 tm_p_include_list="${tm_p_include_list} config/$f"
12371 esac
12372 done
12373
12374 tm_d_file_list=
12375 tm_d_include_list="options.h insn-constants.h"
12376 for f in $tm_d_file; do
12377 case $f in
12378 defaults.h )
12379 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12380 tm_d_include_list="${tm_d_include_list} $f"
12381 ;;
12382 * )
12383 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12384 tm_d_include_list="${tm_d_include_list} config/$f"
12385 ;;
12386 esac
12387 done
12388
12389 xm_file_list=
12390 xm_include_list=
12391 for f in $xm_file; do
12392 case $f in
12393 ansidecl.h )
12394 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12395 xm_include_list="${xm_include_list} $f"
12396 ;;
12397 auto-host.h )
12398 xm_file_list="${xm_file_list} $f"
12399 xm_include_list="${xm_include_list} $f"
12400 ;;
12401 * )
12402 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12403 xm_include_list="${xm_include_list} config/$f"
12404 ;;
12405 esac
12406 done
12407
12408 host_xm_file_list=
12409 host_xm_include_list=
12410 for f in $host_xm_file; do
12411 case $f in
12412 ansidecl.h )
12413 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12414 host_xm_include_list="${host_xm_include_list} $f"
12415 ;;
12416 auto-host.h )
12417 host_xm_file_list="${host_xm_file_list} $f"
12418 host_xm_include_list="${host_xm_include_list} $f"
12419 ;;
12420 * )
12421 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12422 host_xm_include_list="${host_xm_include_list} config/$f"
12423 ;;
12424 esac
12425 done
12426
12427 build_xm_file_list=
12428 for f in $build_xm_file; do
12429 case $f in
12430 ansidecl.h )
12431 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12432 build_xm_include_list="${build_xm_include_list} $f"
12433 ;;
12434 auto-build.h | auto-host.h )
12435 build_xm_file_list="${build_xm_file_list} $f"
12436 build_xm_include_list="${build_xm_include_list} $f"
12437 ;;
12438 * )
12439 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12440 build_xm_include_list="${build_xm_include_list} config/$f"
12441 ;;
12442 esac
12443 done
12444
12445 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12446 # cross-compiler which does not use the native headers and libraries.
12447 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12448 CROSS=
12449 ALL=all.internal
12450 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12451 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12452
12453 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12454 test x$build != x$host || test "x$with_build_sysroot" != x; then
12455 if test "x$with_build_sysroot" != x; then
12456 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12457 else
12458 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12459 fi
12460
12461 if test x$host != x$target
12462 then
12463 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12464 ALL=all.cross
12465 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12466 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12467 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12468 fi
12469
12470 if test "x$with_build_sysroot" != "x"; then
12471 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12472 elif test "x$with_sysroot" = x; then
12473 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12474 elif test "x$with_sysroot" = xyes; then
12475 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12476 else
12477 target_header_dir="${with_sysroot}${native_system_header_dir}"
12478 fi
12479 else
12480 target_header_dir=${native_system_header_dir}
12481 fi
12482
12483 # If this is a cross-compiler that does not
12484 # have its own set of headers then define
12485 # inhibit_libc
12486
12487 # If this is using newlib, without having the headers available now,
12488 # then define inhibit_libc in LIBGCC2_CFLAGS.
12489 # This prevents libgcc2 from containing any code which requires libc
12490 # support.
12491 : ${inhibit_libc=false}
12492 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12493 test x$with_newlib = xyes ; } &&
12494 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12495 inhibit_libc=true
12496 fi
12497
12498
12499 # When building gcc with a cross-compiler, we need to adjust things so
12500 # that the generator programs are still built with the native compiler.
12501 # Also, we cannot run fixincludes.
12502
12503 # These are the normal (build=host) settings:
12504 CC_FOR_BUILD='$(CC)'
12505 CXX_FOR_BUILD='$(CXX)'
12506 BUILD_CFLAGS='$(ALL_CFLAGS)'
12507 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12508 BUILD_LDFLAGS='$(LDFLAGS)'
12509 STMP_FIXINC=stmp-fixinc
12510
12511 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12512 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12513
12514 # And these apply if build != host, or we are generating coverage data
12515 if test x$build != x$host || test "x$coverage_flags" != x
12516 then
12517 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12518 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12519 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12520
12521 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12522 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12523 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12524 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12525 fi
12526
12527
12528
12529 # Expand extra_headers to include complete path.
12530 # This substitutes for lots of t-* files.
12531 extra_headers_list=
12532 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12533 for file in ${extra_headers} ; do
12534 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12535 done
12536
12537 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12538 if test x"$use_gcc_tgmath" = xyes
12539 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12540 fi
12541
12542 # Define collect2 in Makefile.
12543 case $host_can_use_collect2 in
12544 no) collect2= ;;
12545 *) collect2='collect2$(exeext)' ;;
12546 esac
12547
12548
12549 # Add a definition of USE_COLLECT2 if system wants one.
12550 case $use_collect2 in
12551 no) use_collect2= ;;
12552 "") ;;
12553 *)
12554 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12555 xm_defines="${xm_defines} USE_COLLECT2"
12556 case $host_can_use_collect2 in
12557 no)
12558 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12559 ;;
12560 esac
12561 ;;
12562 esac
12563
12564
12565 cat >>confdefs.h <<_ACEOF
12566 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12567 _ACEOF
12568
12569
12570 # ---------------------------
12571 # Assembler & linker features
12572 # ---------------------------
12573
12574 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12575 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12576 # However when ld-new is first executed from the build tree, libtool will
12577 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12578 # to the build tree. While doing this we need to use the previous-stage
12579 # linker, or we have an infinite loop. The presence of a shell script as
12580 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12581 # the gcc/collect-ld script. So we need to know how libtool works, or
12582 # exec-tool will fail.
12583
12584
12585 case `pwd` in
12586 *\ * | *\ *)
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12588 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12589 esac
12590
12591
12592
12593 macro_version='2.2.7a'
12594 macro_revision='1.3134'
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608 ltmain="$ac_aux_dir/ltmain.sh"
12609
12610 # Backslashify metacharacters that are still active within
12611 # double-quoted strings.
12612 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12613
12614 # Same as above, but do not quote variable references.
12615 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12616
12617 # Sed substitution to delay expansion of an escaped shell variable in a
12618 # double_quote_subst'ed string.
12619 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12620
12621 # Sed substitution to delay expansion of an escaped single quote.
12622 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12623
12624 # Sed substitution to avoid accidental globbing in evaled expressions
12625 no_glob_subst='s/\*/\\\*/g'
12626
12627 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12628 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12629 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12630
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12632 $as_echo_n "checking how to print strings... " >&6; }
12633 # Test print first, because it will be a builtin if present.
12634 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12635 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12636 ECHO='print -r --'
12637 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12638 ECHO='printf %s\n'
12639 else
12640 # Use this function as a fallback that always works.
12641 func_fallback_echo ()
12642 {
12643 eval 'cat <<_LTECHO_EOF
12644 $1
12645 _LTECHO_EOF'
12646 }
12647 ECHO='func_fallback_echo'
12648 fi
12649
12650 # func_echo_all arg...
12651 # Invoke $ECHO with all args, space-separated.
12652 func_echo_all ()
12653 {
12654 $ECHO ""
12655 }
12656
12657 case "$ECHO" in
12658 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12659 $as_echo "printf" >&6; } ;;
12660 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12661 $as_echo "print -r" >&6; } ;;
12662 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12663 $as_echo "cat" >&6; } ;;
12664 esac
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12680 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12681 if ${ac_cv_path_SED+:} false; then :
12682 $as_echo_n "(cached) " >&6
12683 else
12684 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12685 for ac_i in 1 2 3 4 5 6 7; do
12686 ac_script="$ac_script$as_nl$ac_script"
12687 done
12688 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12689 { ac_script=; unset ac_script;}
12690 if test -z "$SED"; then
12691 ac_path_SED_found=false
12692 # Loop through the user's path and test for each of PROGNAME-LIST
12693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12694 for as_dir in $PATH
12695 do
12696 IFS=$as_save_IFS
12697 test -z "$as_dir" && as_dir=.
12698 for ac_prog in sed gsed; do
12699 for ac_exec_ext in '' $ac_executable_extensions; do
12700 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12701 as_fn_executable_p "$ac_path_SED" || continue
12702 # Check for GNU ac_path_SED and select it if it is found.
12703 # Check for GNU $ac_path_SED
12704 case `"$ac_path_SED" --version 2>&1` in
12705 *GNU*)
12706 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12707 *)
12708 ac_count=0
12709 $as_echo_n 0123456789 >"conftest.in"
12710 while :
12711 do
12712 cat "conftest.in" "conftest.in" >"conftest.tmp"
12713 mv "conftest.tmp" "conftest.in"
12714 cp "conftest.in" "conftest.nl"
12715 $as_echo '' >> "conftest.nl"
12716 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12717 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12718 as_fn_arith $ac_count + 1 && ac_count=$as_val
12719 if test $ac_count -gt ${ac_path_SED_max-0}; then
12720 # Best one so far, save it but keep looking for a better one
12721 ac_cv_path_SED="$ac_path_SED"
12722 ac_path_SED_max=$ac_count
12723 fi
12724 # 10*(2^10) chars as input seems more than enough
12725 test $ac_count -gt 10 && break
12726 done
12727 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12728 esac
12729
12730 $ac_path_SED_found && break 3
12731 done
12732 done
12733 done
12734 IFS=$as_save_IFS
12735 if test -z "$ac_cv_path_SED"; then
12736 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12737 fi
12738 else
12739 ac_cv_path_SED=$SED
12740 fi
12741
12742 fi
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12744 $as_echo "$ac_cv_path_SED" >&6; }
12745 SED="$ac_cv_path_SED"
12746 rm -f conftest.sed
12747
12748 test -z "$SED" && SED=sed
12749 Xsed="$SED -e 1s/^X//"
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12762 $as_echo_n "checking for fgrep... " >&6; }
12763 if ${ac_cv_path_FGREP+:} false; then :
12764 $as_echo_n "(cached) " >&6
12765 else
12766 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12767 then ac_cv_path_FGREP="$GREP -F"
12768 else
12769 if test -z "$FGREP"; then
12770 ac_path_FGREP_found=false
12771 # Loop through the user's path and test for each of PROGNAME-LIST
12772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12773 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12774 do
12775 IFS=$as_save_IFS
12776 test -z "$as_dir" && as_dir=.
12777 for ac_prog in fgrep; do
12778 for ac_exec_ext in '' $ac_executable_extensions; do
12779 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12780 as_fn_executable_p "$ac_path_FGREP" || continue
12781 # Check for GNU ac_path_FGREP and select it if it is found.
12782 # Check for GNU $ac_path_FGREP
12783 case `"$ac_path_FGREP" --version 2>&1` in
12784 *GNU*)
12785 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12786 *)
12787 ac_count=0
12788 $as_echo_n 0123456789 >"conftest.in"
12789 while :
12790 do
12791 cat "conftest.in" "conftest.in" >"conftest.tmp"
12792 mv "conftest.tmp" "conftest.in"
12793 cp "conftest.in" "conftest.nl"
12794 $as_echo 'FGREP' >> "conftest.nl"
12795 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12796 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12797 as_fn_arith $ac_count + 1 && ac_count=$as_val
12798 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12799 # Best one so far, save it but keep looking for a better one
12800 ac_cv_path_FGREP="$ac_path_FGREP"
12801 ac_path_FGREP_max=$ac_count
12802 fi
12803 # 10*(2^10) chars as input seems more than enough
12804 test $ac_count -gt 10 && break
12805 done
12806 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12807 esac
12808
12809 $ac_path_FGREP_found && break 3
12810 done
12811 done
12812 done
12813 IFS=$as_save_IFS
12814 if test -z "$ac_cv_path_FGREP"; then
12815 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12816 fi
12817 else
12818 ac_cv_path_FGREP=$FGREP
12819 fi
12820
12821 fi
12822 fi
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12824 $as_echo "$ac_cv_path_FGREP" >&6; }
12825 FGREP="$ac_cv_path_FGREP"
12826
12827
12828 test -z "$GREP" && GREP=grep
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848 # Check whether --with-gnu-ld was given.
12849 if test "${with_gnu_ld+set}" = set; then :
12850 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12851 else
12852 with_gnu_ld=no
12853 fi
12854
12855 ac_prog=ld
12856 if test "$GCC" = yes; then
12857 # Check if gcc -print-prog-name=ld gives a path.
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12859 $as_echo_n "checking for ld used by $CC... " >&6; }
12860 case $host in
12861 *-*-mingw*)
12862 # gcc leaves a trailing carriage return which upsets mingw
12863 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12864 *)
12865 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12866 esac
12867 case $ac_prog in
12868 # Accept absolute paths.
12869 [\\/]* | ?:[\\/]*)
12870 re_direlt='/[^/][^/]*/\.\./'
12871 # Canonicalize the pathname of ld
12872 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12873 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12874 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12875 done
12876 test -z "$LD" && LD="$ac_prog"
12877 ;;
12878 "")
12879 # If it fails, then pretend we aren't using GCC.
12880 ac_prog=ld
12881 ;;
12882 *)
12883 # If it is relative, then search for the first ld in PATH.
12884 with_gnu_ld=unknown
12885 ;;
12886 esac
12887 elif test "$with_gnu_ld" = yes; then
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12889 $as_echo_n "checking for GNU ld... " >&6; }
12890 else
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12892 $as_echo_n "checking for non-GNU ld... " >&6; }
12893 fi
12894 if ${lt_cv_path_LD+:} false; then :
12895 $as_echo_n "(cached) " >&6
12896 else
12897 if test -z "$LD"; then
12898 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12899 for ac_dir in $PATH; do
12900 IFS="$lt_save_ifs"
12901 test -z "$ac_dir" && ac_dir=.
12902 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12903 lt_cv_path_LD="$ac_dir/$ac_prog"
12904 # Check to see if the program is GNU ld. I'd rather use --version,
12905 # but apparently some variants of GNU ld only accept -v.
12906 # Break only if it was the GNU/non-GNU ld that we prefer.
12907 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12908 *GNU* | *'with BFD'*)
12909 test "$with_gnu_ld" != no && break
12910 ;;
12911 *)
12912 test "$with_gnu_ld" != yes && break
12913 ;;
12914 esac
12915 fi
12916 done
12917 IFS="$lt_save_ifs"
12918 else
12919 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12920 fi
12921 fi
12922
12923 LD="$lt_cv_path_LD"
12924 if test -n "$LD"; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12926 $as_echo "$LD" >&6; }
12927 else
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12929 $as_echo "no" >&6; }
12930 fi
12931 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12933 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12934 if ${lt_cv_prog_gnu_ld+:} false; then :
12935 $as_echo_n "(cached) " >&6
12936 else
12937 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12938 case `$LD -v 2>&1 </dev/null` in
12939 *GNU* | *'with BFD'*)
12940 lt_cv_prog_gnu_ld=yes
12941 ;;
12942 *)
12943 lt_cv_prog_gnu_ld=no
12944 ;;
12945 esac
12946 fi
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12948 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12949 with_gnu_ld=$lt_cv_prog_gnu_ld
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12960 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12961 if ${lt_cv_path_NM+:} false; then :
12962 $as_echo_n "(cached) " >&6
12963 else
12964 if test -n "$NM"; then
12965 # Let the user override the test.
12966 lt_cv_path_NM="$NM"
12967 else
12968 lt_nm_to_check="${ac_tool_prefix}nm"
12969 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12970 lt_nm_to_check="$lt_nm_to_check nm"
12971 fi
12972 for lt_tmp_nm in $lt_nm_to_check; do
12973 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12974 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12975 IFS="$lt_save_ifs"
12976 test -z "$ac_dir" && ac_dir=.
12977 tmp_nm="$ac_dir/$lt_tmp_nm"
12978 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12979 # Check to see if the nm accepts a BSD-compat flag.
12980 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12981 # nm: unknown option "B" ignored
12982 # Tru64's nm complains that /dev/null is an invalid object file
12983 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12984 */dev/null* | *'Invalid file or object type'*)
12985 lt_cv_path_NM="$tmp_nm -B"
12986 break
12987 ;;
12988 *)
12989 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12990 */dev/null*)
12991 lt_cv_path_NM="$tmp_nm -p"
12992 break
12993 ;;
12994 *)
12995 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12996 continue # so that we can try to find one that supports BSD flags
12997 ;;
12998 esac
12999 ;;
13000 esac
13001 fi
13002 done
13003 IFS="$lt_save_ifs"
13004 done
13005 : ${lt_cv_path_NM=no}
13006 fi
13007 fi
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13009 $as_echo "$lt_cv_path_NM" >&6; }
13010 if test "$lt_cv_path_NM" != "no"; then
13011 NM="$lt_cv_path_NM"
13012 else
13013 # Didn't find any BSD compatible name lister, look for dumpbin.
13014 if test -n "$DUMPBIN"; then :
13015 # Let the user override the test.
13016 else
13017 if test -n "$ac_tool_prefix"; then
13018 for ac_prog in dumpbin "link -dump"
13019 do
13020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13023 $as_echo_n "checking for $ac_word... " >&6; }
13024 if ${ac_cv_prog_DUMPBIN+:} false; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 if test -n "$DUMPBIN"; then
13028 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13029 else
13030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13031 for as_dir in $PATH
13032 do
13033 IFS=$as_save_IFS
13034 test -z "$as_dir" && as_dir=.
13035 for ac_exec_ext in '' $ac_executable_extensions; do
13036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13037 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13039 break 2
13040 fi
13041 done
13042 done
13043 IFS=$as_save_IFS
13044
13045 fi
13046 fi
13047 DUMPBIN=$ac_cv_prog_DUMPBIN
13048 if test -n "$DUMPBIN"; then
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13050 $as_echo "$DUMPBIN" >&6; }
13051 else
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053 $as_echo "no" >&6; }
13054 fi
13055
13056
13057 test -n "$DUMPBIN" && break
13058 done
13059 fi
13060 if test -z "$DUMPBIN"; then
13061 ac_ct_DUMPBIN=$DUMPBIN
13062 for ac_prog in dumpbin "link -dump"
13063 do
13064 # Extract the first word of "$ac_prog", so it can be a program name with args.
13065 set dummy $ac_prog; ac_word=$2
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13067 $as_echo_n "checking for $ac_word... " >&6; }
13068 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13069 $as_echo_n "(cached) " >&6
13070 else
13071 if test -n "$ac_ct_DUMPBIN"; then
13072 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13073 else
13074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075 for as_dir in $PATH
13076 do
13077 IFS=$as_save_IFS
13078 test -z "$as_dir" && as_dir=.
13079 for ac_exec_ext in '' $ac_executable_extensions; do
13080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13081 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13083 break 2
13084 fi
13085 done
13086 done
13087 IFS=$as_save_IFS
13088
13089 fi
13090 fi
13091 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13092 if test -n "$ac_ct_DUMPBIN"; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13094 $as_echo "$ac_ct_DUMPBIN" >&6; }
13095 else
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13098 fi
13099
13100
13101 test -n "$ac_ct_DUMPBIN" && break
13102 done
13103
13104 if test "x$ac_ct_DUMPBIN" = x; then
13105 DUMPBIN=":"
13106 else
13107 case $cross_compiling:$ac_tool_warned in
13108 yes:)
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13111 ac_tool_warned=yes ;;
13112 esac
13113 DUMPBIN=$ac_ct_DUMPBIN
13114 fi
13115 fi
13116
13117 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13118 *COFF*)
13119 DUMPBIN="$DUMPBIN -symbols"
13120 ;;
13121 *)
13122 DUMPBIN=:
13123 ;;
13124 esac
13125 fi
13126
13127 if test "$DUMPBIN" != ":"; then
13128 NM="$DUMPBIN"
13129 fi
13130 fi
13131 test -z "$NM" && NM=nm
13132
13133
13134
13135
13136
13137
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13139 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13140 if ${lt_cv_nm_interface+:} false; then :
13141 $as_echo_n "(cached) " >&6
13142 else
13143 lt_cv_nm_interface="BSD nm"
13144 echo "int some_variable = 0;" > conftest.$ac_ext
13145 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13146 (eval "$ac_compile" 2>conftest.err)
13147 cat conftest.err >&5
13148 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13149 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13150 cat conftest.err >&5
13151 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13152 cat conftest.out >&5
13153 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13154 lt_cv_nm_interface="MS dumpbin"
13155 fi
13156 rm -f conftest*
13157 fi
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13159 $as_echo "$lt_cv_nm_interface" >&6; }
13160
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13162 $as_echo_n "checking whether ln -s works... " >&6; }
13163 LN_S=$as_ln_s
13164 if test "$LN_S" = "ln -s"; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13166 $as_echo "yes" >&6; }
13167 else
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13169 $as_echo "no, using $LN_S" >&6; }
13170 fi
13171
13172 # find the maximum length of command line arguments
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13174 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13175 if ${lt_cv_sys_max_cmd_len+:} false; then :
13176 $as_echo_n "(cached) " >&6
13177 else
13178 i=0
13179 teststring="ABCD"
13180
13181 case $build_os in
13182 msdosdjgpp*)
13183 # On DJGPP, this test can blow up pretty badly due to problems in libc
13184 # (any single argument exceeding 2000 bytes causes a buffer overrun
13185 # during glob expansion). Even if it were fixed, the result of this
13186 # check would be larger than it should be.
13187 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13188 ;;
13189
13190 gnu*)
13191 # Under GNU Hurd, this test is not required because there is
13192 # no limit to the length of command line arguments.
13193 # Libtool will interpret -1 as no limit whatsoever
13194 lt_cv_sys_max_cmd_len=-1;
13195 ;;
13196
13197 cygwin* | mingw* | cegcc*)
13198 # On Win9x/ME, this test blows up -- it succeeds, but takes
13199 # about 5 minutes as the teststring grows exponentially.
13200 # Worse, since 9x/ME are not pre-emptively multitasking,
13201 # you end up with a "frozen" computer, even though with patience
13202 # the test eventually succeeds (with a max line length of 256k).
13203 # Instead, let's just punt: use the minimum linelength reported by
13204 # all of the supported platforms: 8192 (on NT/2K/XP).
13205 lt_cv_sys_max_cmd_len=8192;
13206 ;;
13207
13208 mint*)
13209 # On MiNT this can take a long time and run out of memory.
13210 lt_cv_sys_max_cmd_len=8192;
13211 ;;
13212
13213 amigaos*)
13214 # On AmigaOS with pdksh, this test takes hours, literally.
13215 # So we just punt and use a minimum line length of 8192.
13216 lt_cv_sys_max_cmd_len=8192;
13217 ;;
13218
13219 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13220 # This has been around since 386BSD, at least. Likely further.
13221 if test -x /sbin/sysctl; then
13222 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13223 elif test -x /usr/sbin/sysctl; then
13224 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13225 else
13226 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13227 fi
13228 # And add a safety zone
13229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13230 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13231 ;;
13232
13233 interix*)
13234 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13235 lt_cv_sys_max_cmd_len=196608
13236 ;;
13237
13238 osf*)
13239 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13240 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13241 # nice to cause kernel panics so lets avoid the loop below.
13242 # First set a reasonable default.
13243 lt_cv_sys_max_cmd_len=16384
13244 #
13245 if test -x /sbin/sysconfig; then
13246 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13247 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13248 esac
13249 fi
13250 ;;
13251 sco3.2v5*)
13252 lt_cv_sys_max_cmd_len=102400
13253 ;;
13254 sysv5* | sco5v6* | sysv4.2uw2*)
13255 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13256 if test -n "$kargmax"; then
13257 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13258 else
13259 lt_cv_sys_max_cmd_len=32768
13260 fi
13261 ;;
13262 *)
13263 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13264 if test -n "$lt_cv_sys_max_cmd_len"; then
13265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13267 else
13268 # Make teststring a little bigger before we do anything with it.
13269 # a 1K string should be a reasonable start.
13270 for i in 1 2 3 4 5 6 7 8 ; do
13271 teststring=$teststring$teststring
13272 done
13273 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13274 # If test is not a shell built-in, we'll probably end up computing a
13275 # maximum length that is only half of the actual maximum length, but
13276 # we can't tell.
13277 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13278 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13279 test $i != 17 # 1/2 MB should be enough
13280 do
13281 i=`expr $i + 1`
13282 teststring=$teststring$teststring
13283 done
13284 # Only check the string length outside the loop.
13285 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13286 teststring=
13287 # Add a significant safety factor because C++ compilers can tack on
13288 # massive amounts of additional arguments before passing them to the
13289 # linker. It appears as though 1/2 is a usable value.
13290 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13291 fi
13292 ;;
13293 esac
13294
13295 fi
13296
13297 if test -n $lt_cv_sys_max_cmd_len ; then
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13299 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13300 else
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13302 $as_echo "none" >&6; }
13303 fi
13304 max_cmd_len=$lt_cv_sys_max_cmd_len
13305
13306
13307
13308
13309
13310
13311 : ${CP="cp -f"}
13312 : ${MV="mv -f"}
13313 : ${RM="rm -f"}
13314
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13316 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13317 # Try some XSI features
13318 xsi_shell=no
13319 ( _lt_dummy="a/b/c"
13320 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13321 = c,a/b,, \
13322 && eval 'test $(( 1 + 1 )) -eq 2 \
13323 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13324 && xsi_shell=yes
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13326 $as_echo "$xsi_shell" >&6; }
13327
13328
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13330 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13331 lt_shell_append=no
13332 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13333 >/dev/null 2>&1 \
13334 && lt_shell_append=yes
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13336 $as_echo "$lt_shell_append" >&6; }
13337
13338
13339 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13340 lt_unset=unset
13341 else
13342 lt_unset=false
13343 fi
13344
13345
13346
13347
13348
13349 # test EBCDIC or ASCII
13350 case `echo X|tr X '\101'` in
13351 A) # ASCII based system
13352 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13353 lt_SP2NL='tr \040 \012'
13354 lt_NL2SP='tr \015\012 \040\040'
13355 ;;
13356 *) # EBCDIC based system
13357 lt_SP2NL='tr \100 \n'
13358 lt_NL2SP='tr \r\n \100\100'
13359 ;;
13360 esac
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13371 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13372 if ${lt_cv_ld_reload_flag+:} false; then :
13373 $as_echo_n "(cached) " >&6
13374 else
13375 lt_cv_ld_reload_flag='-r'
13376 fi
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13378 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13379 reload_flag=$lt_cv_ld_reload_flag
13380 case $reload_flag in
13381 "" | " "*) ;;
13382 *) reload_flag=" $reload_flag" ;;
13383 esac
13384 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13385 case $host_os in
13386 darwin*)
13387 if test "$GCC" = yes; then
13388 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13389 else
13390 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13391 fi
13392 ;;
13393 esac
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403 if test -n "$ac_tool_prefix"; then
13404 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13405 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13407 $as_echo_n "checking for $ac_word... " >&6; }
13408 if ${ac_cv_prog_OBJDUMP+:} false; then :
13409 $as_echo_n "(cached) " >&6
13410 else
13411 if test -n "$OBJDUMP"; then
13412 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13413 else
13414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13415 for as_dir in $PATH
13416 do
13417 IFS=$as_save_IFS
13418 test -z "$as_dir" && as_dir=.
13419 for ac_exec_ext in '' $ac_executable_extensions; do
13420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13421 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13423 break 2
13424 fi
13425 done
13426 done
13427 IFS=$as_save_IFS
13428
13429 fi
13430 fi
13431 OBJDUMP=$ac_cv_prog_OBJDUMP
13432 if test -n "$OBJDUMP"; then
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13434 $as_echo "$OBJDUMP" >&6; }
13435 else
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13437 $as_echo "no" >&6; }
13438 fi
13439
13440
13441 fi
13442 if test -z "$ac_cv_prog_OBJDUMP"; then
13443 ac_ct_OBJDUMP=$OBJDUMP
13444 # Extract the first word of "objdump", so it can be a program name with args.
13445 set dummy objdump; ac_word=$2
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13447 $as_echo_n "checking for $ac_word... " >&6; }
13448 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13449 $as_echo_n "(cached) " >&6
13450 else
13451 if test -n "$ac_ct_OBJDUMP"; then
13452 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13453 else
13454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13455 for as_dir in $PATH
13456 do
13457 IFS=$as_save_IFS
13458 test -z "$as_dir" && as_dir=.
13459 for ac_exec_ext in '' $ac_executable_extensions; do
13460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13461 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13463 break 2
13464 fi
13465 done
13466 done
13467 IFS=$as_save_IFS
13468
13469 fi
13470 fi
13471 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13472 if test -n "$ac_ct_OBJDUMP"; then
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13474 $as_echo "$ac_ct_OBJDUMP" >&6; }
13475 else
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477 $as_echo "no" >&6; }
13478 fi
13479
13480 if test "x$ac_ct_OBJDUMP" = x; then
13481 OBJDUMP="false"
13482 else
13483 case $cross_compiling:$ac_tool_warned in
13484 yes:)
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13487 ac_tool_warned=yes ;;
13488 esac
13489 OBJDUMP=$ac_ct_OBJDUMP
13490 fi
13491 else
13492 OBJDUMP="$ac_cv_prog_OBJDUMP"
13493 fi
13494
13495 test -z "$OBJDUMP" && OBJDUMP=objdump
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13506 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13507 if ${lt_cv_deplibs_check_method+:} false; then :
13508 $as_echo_n "(cached) " >&6
13509 else
13510 lt_cv_file_magic_cmd='$MAGIC_CMD'
13511 lt_cv_file_magic_test_file=
13512 lt_cv_deplibs_check_method='unknown'
13513 # Need to set the preceding variable on all platforms that support
13514 # interlibrary dependencies.
13515 # 'none' -- dependencies not supported.
13516 # `unknown' -- same as none, but documents that we really don't know.
13517 # 'pass_all' -- all dependencies passed with no checks.
13518 # 'test_compile' -- check by making test program.
13519 # 'file_magic [[regex]]' -- check by looking for files in library path
13520 # which responds to the $file_magic_cmd with a given extended regex.
13521 # If you have `file' or equivalent on your system and you're not sure
13522 # whether `pass_all' will *always* work, you probably want this one.
13523
13524 case $host_os in
13525 aix[4-9]*)
13526 lt_cv_deplibs_check_method=pass_all
13527 ;;
13528
13529 beos*)
13530 lt_cv_deplibs_check_method=pass_all
13531 ;;
13532
13533 bsdi[45]*)
13534 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13535 lt_cv_file_magic_cmd='/usr/bin/file -L'
13536 lt_cv_file_magic_test_file=/shlib/libc.so
13537 ;;
13538
13539 cygwin*)
13540 # func_win32_libid is a shell function defined in ltmain.sh
13541 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13542 lt_cv_file_magic_cmd='func_win32_libid'
13543 ;;
13544
13545 mingw* | pw32*)
13546 # Base MSYS/MinGW do not provide the 'file' command needed by
13547 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13548 # unless we find 'file', for example because we are cross-compiling.
13549 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13550 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13551 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13552 lt_cv_file_magic_cmd='func_win32_libid'
13553 else
13554 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13555 lt_cv_file_magic_cmd='$OBJDUMP -f'
13556 fi
13557 ;;
13558
13559 cegcc*)
13560 # use the weaker test based on 'objdump'. See mingw*.
13561 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13562 lt_cv_file_magic_cmd='$OBJDUMP -f'
13563 ;;
13564
13565 darwin* | rhapsody*)
13566 lt_cv_deplibs_check_method=pass_all
13567 ;;
13568
13569 freebsd* | dragonfly*)
13570 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13571 case $host_cpu in
13572 i*86 )
13573 # Not sure whether the presence of OpenBSD here was a mistake.
13574 # Let's accept both of them until this is cleared up.
13575 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13576 lt_cv_file_magic_cmd=/usr/bin/file
13577 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13578 ;;
13579 esac
13580 else
13581 lt_cv_deplibs_check_method=pass_all
13582 fi
13583 ;;
13584
13585 gnu*)
13586 lt_cv_deplibs_check_method=pass_all
13587 ;;
13588
13589 haiku*)
13590 lt_cv_deplibs_check_method=pass_all
13591 ;;
13592
13593 hpux10.20* | hpux11*)
13594 lt_cv_file_magic_cmd=/usr/bin/file
13595 case $host_cpu in
13596 ia64*)
13597 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13598 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13599 ;;
13600 hppa*64*)
13601 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]'
13602 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13603 ;;
13604 *)
13605 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13606 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13607 ;;
13608 esac
13609 ;;
13610
13611 interix[3-9]*)
13612 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13614 ;;
13615
13616 irix5* | irix6* | nonstopux*)
13617 case $LD in
13618 *-32|*"-32 ") libmagic=32-bit;;
13619 *-n32|*"-n32 ") libmagic=N32;;
13620 *-64|*"-64 ") libmagic=64-bit;;
13621 *) libmagic=never-match;;
13622 esac
13623 lt_cv_deplibs_check_method=pass_all
13624 ;;
13625
13626 # This must be Linux ELF.
13627 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13628 lt_cv_deplibs_check_method=pass_all
13629 ;;
13630
13631 netbsd*)
13632 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13634 else
13635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13636 fi
13637 ;;
13638
13639 newos6*)
13640 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13641 lt_cv_file_magic_cmd=/usr/bin/file
13642 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13643 ;;
13644
13645 *nto* | *qnx*)
13646 lt_cv_deplibs_check_method=pass_all
13647 ;;
13648
13649 openbsd*)
13650 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13652 else
13653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13654 fi
13655 ;;
13656
13657 osf3* | osf4* | osf5*)
13658 lt_cv_deplibs_check_method=pass_all
13659 ;;
13660
13661 rdos*)
13662 lt_cv_deplibs_check_method=pass_all
13663 ;;
13664
13665 solaris*)
13666 lt_cv_deplibs_check_method=pass_all
13667 ;;
13668
13669 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13670 lt_cv_deplibs_check_method=pass_all
13671 ;;
13672
13673 sysv4 | sysv4.3*)
13674 case $host_vendor in
13675 motorola)
13676 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]'
13677 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13678 ;;
13679 ncr)
13680 lt_cv_deplibs_check_method=pass_all
13681 ;;
13682 sequent)
13683 lt_cv_file_magic_cmd='/bin/file'
13684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13685 ;;
13686 sni)
13687 lt_cv_file_magic_cmd='/bin/file'
13688 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13689 lt_cv_file_magic_test_file=/lib/libc.so
13690 ;;
13691 siemens)
13692 lt_cv_deplibs_check_method=pass_all
13693 ;;
13694 pc)
13695 lt_cv_deplibs_check_method=pass_all
13696 ;;
13697 esac
13698 ;;
13699
13700 tpf*)
13701 lt_cv_deplibs_check_method=pass_all
13702 ;;
13703 esac
13704
13705 fi
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13707 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13708 file_magic_cmd=$lt_cv_file_magic_cmd
13709 deplibs_check_method=$lt_cv_deplibs_check_method
13710 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723 if test -n "$ac_tool_prefix"; then
13724 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13725 set dummy ${ac_tool_prefix}ar; ac_word=$2
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13727 $as_echo_n "checking for $ac_word... " >&6; }
13728 if ${ac_cv_prog_AR+:} false; then :
13729 $as_echo_n "(cached) " >&6
13730 else
13731 if test -n "$AR"; then
13732 ac_cv_prog_AR="$AR" # Let the user override the test.
13733 else
13734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13735 for as_dir in $PATH
13736 do
13737 IFS=$as_save_IFS
13738 test -z "$as_dir" && as_dir=.
13739 for ac_exec_ext in '' $ac_executable_extensions; do
13740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13741 ac_cv_prog_AR="${ac_tool_prefix}ar"
13742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13743 break 2
13744 fi
13745 done
13746 done
13747 IFS=$as_save_IFS
13748
13749 fi
13750 fi
13751 AR=$ac_cv_prog_AR
13752 if test -n "$AR"; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13754 $as_echo "$AR" >&6; }
13755 else
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13757 $as_echo "no" >&6; }
13758 fi
13759
13760
13761 fi
13762 if test -z "$ac_cv_prog_AR"; then
13763 ac_ct_AR=$AR
13764 # Extract the first word of "ar", so it can be a program name with args.
13765 set dummy ar; ac_word=$2
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13767 $as_echo_n "checking for $ac_word... " >&6; }
13768 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 if test -n "$ac_ct_AR"; then
13772 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13773 else
13774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13775 for as_dir in $PATH
13776 do
13777 IFS=$as_save_IFS
13778 test -z "$as_dir" && as_dir=.
13779 for ac_exec_ext in '' $ac_executable_extensions; do
13780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13781 ac_cv_prog_ac_ct_AR="ar"
13782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13783 break 2
13784 fi
13785 done
13786 done
13787 IFS=$as_save_IFS
13788
13789 fi
13790 fi
13791 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13792 if test -n "$ac_ct_AR"; then
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13794 $as_echo "$ac_ct_AR" >&6; }
13795 else
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13797 $as_echo "no" >&6; }
13798 fi
13799
13800 if test "x$ac_ct_AR" = x; then
13801 AR="false"
13802 else
13803 case $cross_compiling:$ac_tool_warned in
13804 yes:)
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13807 ac_tool_warned=yes ;;
13808 esac
13809 AR=$ac_ct_AR
13810 fi
13811 else
13812 AR="$ac_cv_prog_AR"
13813 fi
13814
13815 test -z "$AR" && AR=ar
13816 test -z "$AR_FLAGS" && AR_FLAGS=cru
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828 if test -n "$ac_tool_prefix"; then
13829 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13830 set dummy ${ac_tool_prefix}strip; ac_word=$2
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13832 $as_echo_n "checking for $ac_word... " >&6; }
13833 if ${ac_cv_prog_STRIP+:} false; then :
13834 $as_echo_n "(cached) " >&6
13835 else
13836 if test -n "$STRIP"; then
13837 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13838 else
13839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13840 for as_dir in $PATH
13841 do
13842 IFS=$as_save_IFS
13843 test -z "$as_dir" && as_dir=.
13844 for ac_exec_ext in '' $ac_executable_extensions; do
13845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13846 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13848 break 2
13849 fi
13850 done
13851 done
13852 IFS=$as_save_IFS
13853
13854 fi
13855 fi
13856 STRIP=$ac_cv_prog_STRIP
13857 if test -n "$STRIP"; then
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13859 $as_echo "$STRIP" >&6; }
13860 else
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13862 $as_echo "no" >&6; }
13863 fi
13864
13865
13866 fi
13867 if test -z "$ac_cv_prog_STRIP"; then
13868 ac_ct_STRIP=$STRIP
13869 # Extract the first word of "strip", so it can be a program name with args.
13870 set dummy strip; ac_word=$2
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13872 $as_echo_n "checking for $ac_word... " >&6; }
13873 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13874 $as_echo_n "(cached) " >&6
13875 else
13876 if test -n "$ac_ct_STRIP"; then
13877 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13878 else
13879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13880 for as_dir in $PATH
13881 do
13882 IFS=$as_save_IFS
13883 test -z "$as_dir" && as_dir=.
13884 for ac_exec_ext in '' $ac_executable_extensions; do
13885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13886 ac_cv_prog_ac_ct_STRIP="strip"
13887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13888 break 2
13889 fi
13890 done
13891 done
13892 IFS=$as_save_IFS
13893
13894 fi
13895 fi
13896 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13897 if test -n "$ac_ct_STRIP"; then
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13899 $as_echo "$ac_ct_STRIP" >&6; }
13900 else
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13902 $as_echo "no" >&6; }
13903 fi
13904
13905 if test "x$ac_ct_STRIP" = x; then
13906 STRIP=":"
13907 else
13908 case $cross_compiling:$ac_tool_warned in
13909 yes:)
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13912 ac_tool_warned=yes ;;
13913 esac
13914 STRIP=$ac_ct_STRIP
13915 fi
13916 else
13917 STRIP="$ac_cv_prog_STRIP"
13918 fi
13919
13920 test -z "$STRIP" && STRIP=:
13921
13922
13923
13924
13925
13926
13927 if test -n "$ac_tool_prefix"; then
13928 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13929 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935 if test -n "$RANLIB"; then
13936 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
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 RANLIB=$ac_cv_prog_RANLIB
13956 if test -n "$RANLIB"; then
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13958 $as_echo "$RANLIB" >&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_RANLIB"; then
13967 ac_ct_RANLIB=$RANLIB
13968 # Extract the first word of "ranlib", so it can be a program name with args.
13969 set dummy ranlib; 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_RANLIB+:} false; then :
13973 $as_echo_n "(cached) " >&6
13974 else
13975 if test -n "$ac_ct_RANLIB"; then
13976 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib"
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_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13996 if test -n "$ac_ct_RANLIB"; then
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13998 $as_echo "$ac_ct_RANLIB" >&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_RANLIB" = x; then
14005 RANLIB=":"
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 RANLIB=$ac_ct_RANLIB
14014 fi
14015 else
14016 RANLIB="$ac_cv_prog_RANLIB"
14017 fi
14018
14019 test -z "$RANLIB" && RANLIB=:
14020
14021
14022
14023
14024
14025
14026 # Determine commands to create old-style static archives.
14027 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14028 old_postinstall_cmds='chmod 644 $oldlib'
14029 old_postuninstall_cmds=
14030
14031 if test -n "$RANLIB"; then
14032 case $host_os in
14033 openbsd*)
14034 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14035 ;;
14036 *)
14037 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14038 ;;
14039 esac
14040 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14041 fi
14042
14043 case $host_os in
14044 darwin*)
14045 lock_old_archive_extraction=yes ;;
14046 *)
14047 lock_old_archive_extraction=no ;;
14048 esac
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088 # If no C compiler was specified, use CC.
14089 LTCC=${LTCC-"$CC"}
14090
14091 # If no C compiler flags were specified, use CFLAGS.
14092 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14093
14094 # Allow CC to be a program name with arguments.
14095 compiler=$CC
14096
14097
14098 # Check for command to grab the raw symbol name followed by C symbol from nm.
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14100 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14101 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14102 $as_echo_n "(cached) " >&6
14103 else
14104
14105 # These are sane defaults that work on at least a few old systems.
14106 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14107
14108 # Character class describing NM global symbol codes.
14109 symcode='[BCDEGRST]'
14110
14111 # Regexp to match symbols that can be accessed directly from C.
14112 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14113
14114 # Define system-specific variables.
14115 case $host_os in
14116 aix*)
14117 symcode='[BCDT]'
14118 ;;
14119 cygwin* | mingw* | pw32* | cegcc*)
14120 symcode='[ABCDGISTW]'
14121 ;;
14122 hpux*)
14123 if test "$host_cpu" = ia64; then
14124 symcode='[ABCDEGRST]'
14125 fi
14126 ;;
14127 irix* | nonstopux*)
14128 symcode='[BCDEGRST]'
14129 ;;
14130 osf*)
14131 symcode='[BCDEGQRST]'
14132 ;;
14133 solaris*)
14134 symcode='[BDRT]'
14135 ;;
14136 sco3.2v5*)
14137 symcode='[DT]'
14138 ;;
14139 sysv4.2uw2*)
14140 symcode='[DT]'
14141 ;;
14142 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14143 symcode='[ABDT]'
14144 ;;
14145 sysv4)
14146 symcode='[DFNSTU]'
14147 ;;
14148 esac
14149
14150 # If we're using GNU nm, then use its standard symbol codes.
14151 case `$NM -V 2>&1` in
14152 *GNU* | *'with BFD'*)
14153 symcode='[ABCDGIRSTW]' ;;
14154 esac
14155
14156 # Transform an extracted symbol line into a proper C declaration.
14157 # Some systems (esp. on ia64) link data and code symbols differently,
14158 # so use this general approach.
14159 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14160
14161 # Transform an extracted symbol line into symbol name and symbol address
14162 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14163 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'"
14164
14165 # Handle CRLF in mingw tool chain
14166 opt_cr=
14167 case $build_os in
14168 mingw*)
14169 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14170 ;;
14171 esac
14172
14173 # Try without a prefix underscore, then with it.
14174 for ac_symprfx in "" "_"; do
14175
14176 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14177 symxfrm="\\1 $ac_symprfx\\2 \\2"
14178
14179 # Write the raw and C identifiers.
14180 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14181 # Fake it for dumpbin and say T for any non-static function
14182 # and D for any global variable.
14183 # Also find C++ and __fastcall symbols from MSVC++,
14184 # which start with @ or ?.
14185 lt_cv_sys_global_symbol_pipe="$AWK '"\
14186 " {last_section=section; section=\$ 3};"\
14187 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14188 " \$ 0!~/External *\|/{next};"\
14189 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14190 " {if(hide[section]) next};"\
14191 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14192 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14193 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14194 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14195 " ' prfx=^$ac_symprfx"
14196 else
14197 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14198 fi
14199
14200 # Check to see that the pipe works correctly.
14201 pipe_works=no
14202
14203 rm -f conftest*
14204 cat > conftest.$ac_ext <<_LT_EOF
14205 #ifdef __cplusplus
14206 extern "C" {
14207 #endif
14208 char nm_test_var;
14209 void nm_test_func(void);
14210 void nm_test_func(void){}
14211 #ifdef __cplusplus
14212 }
14213 #endif
14214 int main(){nm_test_var='a';nm_test_func();return(0);}
14215 _LT_EOF
14216
14217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14218 (eval $ac_compile) 2>&5
14219 ac_status=$?
14220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14221 test $ac_status = 0; }; then
14222 # Now try to grab the symbols.
14223 nlist=conftest.nm
14224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14225 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14226 ac_status=$?
14227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14228 test $ac_status = 0; } && test -s "$nlist"; then
14229 # Try sorting and uniquifying the output.
14230 if sort "$nlist" | uniq > "$nlist"T; then
14231 mv -f "$nlist"T "$nlist"
14232 else
14233 rm -f "$nlist"T
14234 fi
14235
14236 # Make sure that we snagged all the symbols we need.
14237 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14238 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14239 cat <<_LT_EOF > conftest.$ac_ext
14240 #ifdef __cplusplus
14241 extern "C" {
14242 #endif
14243
14244 _LT_EOF
14245 # Now generate the symbol file.
14246 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14247
14248 cat <<_LT_EOF >> conftest.$ac_ext
14249
14250 /* The mapping between symbol names and symbols. */
14251 const struct {
14252 const char *name;
14253 void *address;
14254 }
14255 lt__PROGRAM__LTX_preloaded_symbols[] =
14256 {
14257 { "@PROGRAM@", (void *) 0 },
14258 _LT_EOF
14259 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14260 cat <<\_LT_EOF >> conftest.$ac_ext
14261 {0, (void *) 0}
14262 };
14263
14264 /* This works around a problem in FreeBSD linker */
14265 #ifdef FREEBSD_WORKAROUND
14266 static const void *lt_preloaded_setup() {
14267 return lt__PROGRAM__LTX_preloaded_symbols;
14268 }
14269 #endif
14270
14271 #ifdef __cplusplus
14272 }
14273 #endif
14274 _LT_EOF
14275 # Now try linking the two files.
14276 mv conftest.$ac_objext conftstm.$ac_objext
14277 lt_save_LIBS="$LIBS"
14278 lt_save_CFLAGS="$CFLAGS"
14279 LIBS="conftstm.$ac_objext"
14280 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14282 (eval $ac_link) 2>&5
14283 ac_status=$?
14284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14285 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14286 pipe_works=yes
14287 fi
14288 LIBS="$lt_save_LIBS"
14289 CFLAGS="$lt_save_CFLAGS"
14290 else
14291 echo "cannot find nm_test_func in $nlist" >&5
14292 fi
14293 else
14294 echo "cannot find nm_test_var in $nlist" >&5
14295 fi
14296 else
14297 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14298 fi
14299 else
14300 echo "$progname: failed program was:" >&5
14301 cat conftest.$ac_ext >&5
14302 fi
14303 rm -rf conftest* conftst*
14304
14305 # Do not use the global_symbol_pipe unless it works.
14306 if test "$pipe_works" = yes; then
14307 break
14308 else
14309 lt_cv_sys_global_symbol_pipe=
14310 fi
14311 done
14312
14313 fi
14314
14315 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14316 lt_cv_sys_global_symbol_to_cdecl=
14317 fi
14318 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14320 $as_echo "failed" >&6; }
14321 else
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14323 $as_echo "ok" >&6; }
14324 fi
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347 # Check whether --enable-libtool-lock was given.
14348 if test "${enable_libtool_lock+set}" = set; then :
14349 enableval=$enable_libtool_lock;
14350 fi
14351
14352 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14353
14354 # Some flags need to be propagated to the compiler or linker for good
14355 # libtool support.
14356 case $host in
14357 ia64-*-hpux*)
14358 # Find out which ABI we are using.
14359 echo 'int i;' > conftest.$ac_ext
14360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14361 (eval $ac_compile) 2>&5
14362 ac_status=$?
14363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14364 test $ac_status = 0; }; then
14365 case `/usr/bin/file conftest.$ac_objext` in
14366 *ELF-32*)
14367 HPUX_IA64_MODE="32"
14368 ;;
14369 *ELF-64*)
14370 HPUX_IA64_MODE="64"
14371 ;;
14372 esac
14373 fi
14374 rm -rf conftest*
14375 ;;
14376 *-*-irix6*)
14377 # Find out which ABI we are using.
14378 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14380 (eval $ac_compile) 2>&5
14381 ac_status=$?
14382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14383 test $ac_status = 0; }; then
14384 if test "$lt_cv_prog_gnu_ld" = yes; then
14385 case `/usr/bin/file conftest.$ac_objext` in
14386 *32-bit*)
14387 LD="${LD-ld} -melf32bsmip"
14388 ;;
14389 *N32*)
14390 LD="${LD-ld} -melf32bmipn32"
14391 ;;
14392 *64-bit*)
14393 LD="${LD-ld} -melf64bmip"
14394 ;;
14395 esac
14396 else
14397 case `/usr/bin/file conftest.$ac_objext` in
14398 *32-bit*)
14399 LD="${LD-ld} -32"
14400 ;;
14401 *N32*)
14402 LD="${LD-ld} -n32"
14403 ;;
14404 *64-bit*)
14405 LD="${LD-ld} -64"
14406 ;;
14407 esac
14408 fi
14409 fi
14410 rm -rf conftest*
14411 ;;
14412
14413 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14414 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14415 # Find out which ABI we are using.
14416 echo 'int i;' > conftest.$ac_ext
14417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14418 (eval $ac_compile) 2>&5
14419 ac_status=$?
14420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14421 test $ac_status = 0; }; then
14422 case `/usr/bin/file conftest.o` in
14423 *32-bit*)
14424 case $host in
14425 x86_64-*kfreebsd*-gnu)
14426 LD="${LD-ld} -m elf_i386_fbsd"
14427 ;;
14428 x86_64-*linux*)
14429 case `/usr/bin/file conftest.o` in
14430 *x86-64*)
14431 LD="${LD-ld} -m elf32_x86_64"
14432 ;;
14433 *)
14434 LD="${LD-ld} -m elf_i386"
14435 ;;
14436 esac
14437 ;;
14438 powerpc64le-*linux*)
14439 LD="${LD-ld} -m elf32lppclinux"
14440 ;;
14441 powerpc64-*linux*)
14442 LD="${LD-ld} -m elf32ppclinux"
14443 ;;
14444 s390x-*linux*)
14445 LD="${LD-ld} -m elf_s390"
14446 ;;
14447 sparc64-*linux*)
14448 LD="${LD-ld} -m elf32_sparc"
14449 ;;
14450 esac
14451 ;;
14452 *64-bit*)
14453 case $host in
14454 x86_64-*kfreebsd*-gnu)
14455 LD="${LD-ld} -m elf_x86_64_fbsd"
14456 ;;
14457 x86_64-*linux*)
14458 LD="${LD-ld} -m elf_x86_64"
14459 ;;
14460 powerpcle-*linux*)
14461 LD="${LD-ld} -m elf64lppc"
14462 ;;
14463 powerpc-*linux*)
14464 LD="${LD-ld} -m elf64ppc"
14465 ;;
14466 s390*-*linux*|s390*-*tpf*)
14467 LD="${LD-ld} -m elf64_s390"
14468 ;;
14469 sparc*-*linux*)
14470 LD="${LD-ld} -m elf64_sparc"
14471 ;;
14472 esac
14473 ;;
14474 esac
14475 fi
14476 rm -rf conftest*
14477 ;;
14478
14479 *-*-sco3.2v5*)
14480 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14481 SAVE_CFLAGS="$CFLAGS"
14482 CFLAGS="$CFLAGS -belf"
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14484 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14485 if ${lt_cv_cc_needs_belf+:} false; then :
14486 $as_echo_n "(cached) " >&6
14487 else
14488 ac_ext=c
14489 ac_cpp='$CPP $CPPFLAGS'
14490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14493
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14496
14497 int
14498 main ()
14499 {
14500
14501 ;
14502 return 0;
14503 }
14504 _ACEOF
14505 if ac_fn_c_try_link "$LINENO"; then :
14506 lt_cv_cc_needs_belf=yes
14507 else
14508 lt_cv_cc_needs_belf=no
14509 fi
14510 rm -f core conftest.err conftest.$ac_objext \
14511 conftest$ac_exeext conftest.$ac_ext
14512 ac_ext=c
14513 ac_cpp='$CPP $CPPFLAGS'
14514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14517
14518 fi
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14520 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14521 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14522 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14523 CFLAGS="$SAVE_CFLAGS"
14524 fi
14525 ;;
14526 sparc*-*solaris*)
14527 # Find out which ABI we are using.
14528 echo 'int i;' > conftest.$ac_ext
14529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14530 (eval $ac_compile) 2>&5
14531 ac_status=$?
14532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14533 test $ac_status = 0; }; then
14534 case `/usr/bin/file conftest.o` in
14535 *64-bit*)
14536 case $lt_cv_prog_gnu_ld in
14537 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14538 *)
14539 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14540 LD="${LD-ld} -64"
14541 fi
14542 ;;
14543 esac
14544 ;;
14545 esac
14546 fi
14547 rm -rf conftest*
14548 ;;
14549 esac
14550
14551 need_locks="$enable_libtool_lock"
14552
14553
14554 case $host_os in
14555 rhapsody* | darwin*)
14556 if test -n "$ac_tool_prefix"; then
14557 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14558 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14560 $as_echo_n "checking for $ac_word... " >&6; }
14561 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14562 $as_echo_n "(cached) " >&6
14563 else
14564 if test -n "$DSYMUTIL"; then
14565 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14566 else
14567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14568 for as_dir in $PATH
14569 do
14570 IFS=$as_save_IFS
14571 test -z "$as_dir" && as_dir=.
14572 for ac_exec_ext in '' $ac_executable_extensions; do
14573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14574 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14576 break 2
14577 fi
14578 done
14579 done
14580 IFS=$as_save_IFS
14581
14582 fi
14583 fi
14584 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14585 if test -n "$DSYMUTIL"; then
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14587 $as_echo "$DSYMUTIL" >&6; }
14588 else
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14590 $as_echo "no" >&6; }
14591 fi
14592
14593
14594 fi
14595 if test -z "$ac_cv_prog_DSYMUTIL"; then
14596 ac_ct_DSYMUTIL=$DSYMUTIL
14597 # Extract the first word of "dsymutil", so it can be a program name with args.
14598 set dummy dsymutil; ac_word=$2
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14600 $as_echo_n "checking for $ac_word... " >&6; }
14601 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14602 $as_echo_n "(cached) " >&6
14603 else
14604 if test -n "$ac_ct_DSYMUTIL"; then
14605 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14606 else
14607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14608 for as_dir in $PATH
14609 do
14610 IFS=$as_save_IFS
14611 test -z "$as_dir" && as_dir=.
14612 for ac_exec_ext in '' $ac_executable_extensions; do
14613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14614 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14616 break 2
14617 fi
14618 done
14619 done
14620 IFS=$as_save_IFS
14621
14622 fi
14623 fi
14624 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14625 if test -n "$ac_ct_DSYMUTIL"; then
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14627 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14628 else
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14630 $as_echo "no" >&6; }
14631 fi
14632
14633 if test "x$ac_ct_DSYMUTIL" = x; then
14634 DSYMUTIL=":"
14635 else
14636 case $cross_compiling:$ac_tool_warned in
14637 yes:)
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14640 ac_tool_warned=yes ;;
14641 esac
14642 DSYMUTIL=$ac_ct_DSYMUTIL
14643 fi
14644 else
14645 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14646 fi
14647
14648 if test -n "$ac_tool_prefix"; then
14649 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14650 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14652 $as_echo_n "checking for $ac_word... " >&6; }
14653 if ${ac_cv_prog_NMEDIT+:} false; then :
14654 $as_echo_n "(cached) " >&6
14655 else
14656 if test -n "$NMEDIT"; then
14657 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14658 else
14659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14660 for as_dir in $PATH
14661 do
14662 IFS=$as_save_IFS
14663 test -z "$as_dir" && as_dir=.
14664 for ac_exec_ext in '' $ac_executable_extensions; do
14665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14666 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14668 break 2
14669 fi
14670 done
14671 done
14672 IFS=$as_save_IFS
14673
14674 fi
14675 fi
14676 NMEDIT=$ac_cv_prog_NMEDIT
14677 if test -n "$NMEDIT"; then
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14679 $as_echo "$NMEDIT" >&6; }
14680 else
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14682 $as_echo "no" >&6; }
14683 fi
14684
14685
14686 fi
14687 if test -z "$ac_cv_prog_NMEDIT"; then
14688 ac_ct_NMEDIT=$NMEDIT
14689 # Extract the first word of "nmedit", so it can be a program name with args.
14690 set dummy nmedit; ac_word=$2
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14692 $as_echo_n "checking for $ac_word... " >&6; }
14693 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14694 $as_echo_n "(cached) " >&6
14695 else
14696 if test -n "$ac_ct_NMEDIT"; then
14697 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14698 else
14699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14700 for as_dir in $PATH
14701 do
14702 IFS=$as_save_IFS
14703 test -z "$as_dir" && as_dir=.
14704 for ac_exec_ext in '' $ac_executable_extensions; do
14705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14706 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14708 break 2
14709 fi
14710 done
14711 done
14712 IFS=$as_save_IFS
14713
14714 fi
14715 fi
14716 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14717 if test -n "$ac_ct_NMEDIT"; then
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14719 $as_echo "$ac_ct_NMEDIT" >&6; }
14720 else
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14722 $as_echo "no" >&6; }
14723 fi
14724
14725 if test "x$ac_ct_NMEDIT" = x; then
14726 NMEDIT=":"
14727 else
14728 case $cross_compiling:$ac_tool_warned in
14729 yes:)
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14732 ac_tool_warned=yes ;;
14733 esac
14734 NMEDIT=$ac_ct_NMEDIT
14735 fi
14736 else
14737 NMEDIT="$ac_cv_prog_NMEDIT"
14738 fi
14739
14740 if test -n "$ac_tool_prefix"; then
14741 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14742 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14744 $as_echo_n "checking for $ac_word... " >&6; }
14745 if ${ac_cv_prog_LIPO+:} false; then :
14746 $as_echo_n "(cached) " >&6
14747 else
14748 if test -n "$LIPO"; then
14749 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14750 else
14751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14752 for as_dir in $PATH
14753 do
14754 IFS=$as_save_IFS
14755 test -z "$as_dir" && as_dir=.
14756 for ac_exec_ext in '' $ac_executable_extensions; do
14757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14758 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14760 break 2
14761 fi
14762 done
14763 done
14764 IFS=$as_save_IFS
14765
14766 fi
14767 fi
14768 LIPO=$ac_cv_prog_LIPO
14769 if test -n "$LIPO"; then
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14771 $as_echo "$LIPO" >&6; }
14772 else
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14774 $as_echo "no" >&6; }
14775 fi
14776
14777
14778 fi
14779 if test -z "$ac_cv_prog_LIPO"; then
14780 ac_ct_LIPO=$LIPO
14781 # Extract the first word of "lipo", so it can be a program name with args.
14782 set dummy lipo; ac_word=$2
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14784 $as_echo_n "checking for $ac_word... " >&6; }
14785 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14786 $as_echo_n "(cached) " >&6
14787 else
14788 if test -n "$ac_ct_LIPO"; then
14789 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14790 else
14791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14792 for as_dir in $PATH
14793 do
14794 IFS=$as_save_IFS
14795 test -z "$as_dir" && as_dir=.
14796 for ac_exec_ext in '' $ac_executable_extensions; do
14797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14798 ac_cv_prog_ac_ct_LIPO="lipo"
14799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14800 break 2
14801 fi
14802 done
14803 done
14804 IFS=$as_save_IFS
14805
14806 fi
14807 fi
14808 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14809 if test -n "$ac_ct_LIPO"; then
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14811 $as_echo "$ac_ct_LIPO" >&6; }
14812 else
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14814 $as_echo "no" >&6; }
14815 fi
14816
14817 if test "x$ac_ct_LIPO" = x; then
14818 LIPO=":"
14819 else
14820 case $cross_compiling:$ac_tool_warned in
14821 yes:)
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14824 ac_tool_warned=yes ;;
14825 esac
14826 LIPO=$ac_ct_LIPO
14827 fi
14828 else
14829 LIPO="$ac_cv_prog_LIPO"
14830 fi
14831
14832 if test -n "$ac_tool_prefix"; then
14833 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14834 set dummy ${ac_tool_prefix}otool; ac_word=$2
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14836 $as_echo_n "checking for $ac_word... " >&6; }
14837 if ${ac_cv_prog_OTOOL+:} false; then :
14838 $as_echo_n "(cached) " >&6
14839 else
14840 if test -n "$OTOOL"; then
14841 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14842 else
14843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14844 for as_dir in $PATH
14845 do
14846 IFS=$as_save_IFS
14847 test -z "$as_dir" && as_dir=.
14848 for ac_exec_ext in '' $ac_executable_extensions; do
14849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14850 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14852 break 2
14853 fi
14854 done
14855 done
14856 IFS=$as_save_IFS
14857
14858 fi
14859 fi
14860 OTOOL=$ac_cv_prog_OTOOL
14861 if test -n "$OTOOL"; then
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14863 $as_echo "$OTOOL" >&6; }
14864 else
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14866 $as_echo "no" >&6; }
14867 fi
14868
14869
14870 fi
14871 if test -z "$ac_cv_prog_OTOOL"; then
14872 ac_ct_OTOOL=$OTOOL
14873 # Extract the first word of "otool", so it can be a program name with args.
14874 set dummy otool; ac_word=$2
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14876 $as_echo_n "checking for $ac_word... " >&6; }
14877 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14878 $as_echo_n "(cached) " >&6
14879 else
14880 if test -n "$ac_ct_OTOOL"; then
14881 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14882 else
14883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14884 for as_dir in $PATH
14885 do
14886 IFS=$as_save_IFS
14887 test -z "$as_dir" && as_dir=.
14888 for ac_exec_ext in '' $ac_executable_extensions; do
14889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14890 ac_cv_prog_ac_ct_OTOOL="otool"
14891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14892 break 2
14893 fi
14894 done
14895 done
14896 IFS=$as_save_IFS
14897
14898 fi
14899 fi
14900 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14901 if test -n "$ac_ct_OTOOL"; then
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14903 $as_echo "$ac_ct_OTOOL" >&6; }
14904 else
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14906 $as_echo "no" >&6; }
14907 fi
14908
14909 if test "x$ac_ct_OTOOL" = x; then
14910 OTOOL=":"
14911 else
14912 case $cross_compiling:$ac_tool_warned in
14913 yes:)
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14916 ac_tool_warned=yes ;;
14917 esac
14918 OTOOL=$ac_ct_OTOOL
14919 fi
14920 else
14921 OTOOL="$ac_cv_prog_OTOOL"
14922 fi
14923
14924 if test -n "$ac_tool_prefix"; then
14925 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14926 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14928 $as_echo_n "checking for $ac_word... " >&6; }
14929 if ${ac_cv_prog_OTOOL64+:} false; then :
14930 $as_echo_n "(cached) " >&6
14931 else
14932 if test -n "$OTOOL64"; then
14933 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14934 else
14935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14936 for as_dir in $PATH
14937 do
14938 IFS=$as_save_IFS
14939 test -z "$as_dir" && as_dir=.
14940 for ac_exec_ext in '' $ac_executable_extensions; do
14941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14942 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14944 break 2
14945 fi
14946 done
14947 done
14948 IFS=$as_save_IFS
14949
14950 fi
14951 fi
14952 OTOOL64=$ac_cv_prog_OTOOL64
14953 if test -n "$OTOOL64"; then
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14955 $as_echo "$OTOOL64" >&6; }
14956 else
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14958 $as_echo "no" >&6; }
14959 fi
14960
14961
14962 fi
14963 if test -z "$ac_cv_prog_OTOOL64"; then
14964 ac_ct_OTOOL64=$OTOOL64
14965 # Extract the first word of "otool64", so it can be a program name with args.
14966 set dummy otool64; ac_word=$2
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14968 $as_echo_n "checking for $ac_word... " >&6; }
14969 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14970 $as_echo_n "(cached) " >&6
14971 else
14972 if test -n "$ac_ct_OTOOL64"; then
14973 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14974 else
14975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14976 for as_dir in $PATH
14977 do
14978 IFS=$as_save_IFS
14979 test -z "$as_dir" && as_dir=.
14980 for ac_exec_ext in '' $ac_executable_extensions; do
14981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14982 ac_cv_prog_ac_ct_OTOOL64="otool64"
14983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14984 break 2
14985 fi
14986 done
14987 done
14988 IFS=$as_save_IFS
14989
14990 fi
14991 fi
14992 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14993 if test -n "$ac_ct_OTOOL64"; then
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14995 $as_echo "$ac_ct_OTOOL64" >&6; }
14996 else
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14998 $as_echo "no" >&6; }
14999 fi
15000
15001 if test "x$ac_ct_OTOOL64" = x; then
15002 OTOOL64=":"
15003 else
15004 case $cross_compiling:$ac_tool_warned in
15005 yes:)
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15008 ac_tool_warned=yes ;;
15009 esac
15010 OTOOL64=$ac_ct_OTOOL64
15011 fi
15012 else
15013 OTOOL64="$ac_cv_prog_OTOOL64"
15014 fi
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15043 $as_echo_n "checking for -single_module linker flag... " >&6; }
15044 if ${lt_cv_apple_cc_single_mod+:} false; then :
15045 $as_echo_n "(cached) " >&6
15046 else
15047 lt_cv_apple_cc_single_mod=no
15048 if test -z "${LT_MULTI_MODULE}"; then
15049 # By default we will add the -single_module flag. You can override
15050 # by either setting the environment variable LT_MULTI_MODULE
15051 # non-empty at configure time, or by adding -multi_module to the
15052 # link flags.
15053 rm -rf libconftest.dylib*
15054 echo "int foo(void){return 1;}" > conftest.c
15055 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15056 -dynamiclib -Wl,-single_module conftest.c" >&5
15057 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15058 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15059 _lt_result=$?
15060 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15061 lt_cv_apple_cc_single_mod=yes
15062 else
15063 cat conftest.err >&5
15064 fi
15065 rm -rf libconftest.dylib*
15066 rm -f conftest.*
15067 fi
15068 fi
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15070 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15072 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15073 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15074 $as_echo_n "(cached) " >&6
15075 else
15076 lt_cv_ld_exported_symbols_list=no
15077 save_LDFLAGS=$LDFLAGS
15078 echo "_main" > conftest.sym
15079 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081 /* end confdefs.h. */
15082
15083 int
15084 main ()
15085 {
15086
15087 ;
15088 return 0;
15089 }
15090 _ACEOF
15091 if ac_fn_c_try_link "$LINENO"; then :
15092 lt_cv_ld_exported_symbols_list=yes
15093 else
15094 lt_cv_ld_exported_symbols_list=no
15095 fi
15096 rm -f core conftest.err conftest.$ac_objext \
15097 conftest$ac_exeext conftest.$ac_ext
15098 LDFLAGS="$save_LDFLAGS"
15099
15100 fi
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15102 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15104 $as_echo_n "checking for -force_load linker flag... " >&6; }
15105 if ${lt_cv_ld_force_load+:} false; then :
15106 $as_echo_n "(cached) " >&6
15107 else
15108 lt_cv_ld_force_load=no
15109 cat > conftest.c << _LT_EOF
15110 int forced_loaded() { return 2;}
15111 _LT_EOF
15112 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15113 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15114 echo "$AR cru libconftest.a conftest.o" >&5
15115 $AR cru libconftest.a conftest.o 2>&5
15116 cat > conftest.c << _LT_EOF
15117 int main() { return 0;}
15118 _LT_EOF
15119 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15120 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15121 _lt_result=$?
15122 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15123 lt_cv_ld_force_load=yes
15124 else
15125 cat conftest.err >&5
15126 fi
15127 rm -f conftest.err libconftest.a conftest conftest.c
15128 rm -rf conftest.dSYM
15129
15130 fi
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15132 $as_echo "$lt_cv_ld_force_load" >&6; }
15133 case $host_os in
15134 rhapsody* | darwin1.[012])
15135 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15136 darwin1.*)
15137 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15138 darwin*) # darwin 5.x on
15139 # if running on 10.5 or later, the deployment target defaults
15140 # to the OS version, if on x86, and 10.4, the deployment
15141 # target defaults to 10.4. Don't you love it?
15142 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15143 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15144 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15145 10.[012][,.]*)
15146 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15147 10.*)
15148 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15149 esac
15150 ;;
15151 esac
15152 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15153 _lt_dar_single_mod='$single_module'
15154 fi
15155 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15156 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15157 else
15158 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15159 fi
15160 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15161 _lt_dsymutil='~$DSYMUTIL $lib || :'
15162 else
15163 _lt_dsymutil=
15164 fi
15165 ;;
15166 esac
15167
15168
15169 for ac_header in dlfcn.h
15170 do :
15171 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15172 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15173 cat >>confdefs.h <<_ACEOF
15174 #define HAVE_DLFCN_H 1
15175 _ACEOF
15176
15177 fi
15178 done
15179
15180
15181
15182
15183
15184 # Set options
15185
15186
15187
15188 enable_dlopen=no
15189
15190
15191 enable_win32_dll=no
15192
15193
15194 # Check whether --enable-shared was given.
15195 if test "${enable_shared+set}" = set; then :
15196 enableval=$enable_shared; p=${PACKAGE-default}
15197 case $enableval in
15198 yes) enable_shared=yes ;;
15199 no) enable_shared=no ;;
15200 *)
15201 enable_shared=no
15202 # Look at the argument we got. We use all the common list separators.
15203 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15204 for pkg in $enableval; do
15205 IFS="$lt_save_ifs"
15206 if test "X$pkg" = "X$p"; then
15207 enable_shared=yes
15208 fi
15209 done
15210 IFS="$lt_save_ifs"
15211 ;;
15212 esac
15213 else
15214 enable_shared=yes
15215 fi
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225 # Check whether --enable-static was given.
15226 if test "${enable_static+set}" = set; then :
15227 enableval=$enable_static; p=${PACKAGE-default}
15228 case $enableval in
15229 yes) enable_static=yes ;;
15230 no) enable_static=no ;;
15231 *)
15232 enable_static=no
15233 # Look at the argument we got. We use all the common list separators.
15234 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15235 for pkg in $enableval; do
15236 IFS="$lt_save_ifs"
15237 if test "X$pkg" = "X$p"; then
15238 enable_static=yes
15239 fi
15240 done
15241 IFS="$lt_save_ifs"
15242 ;;
15243 esac
15244 else
15245 enable_static=yes
15246 fi
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257 # Check whether --with-pic was given.
15258 if test "${with_pic+set}" = set; then :
15259 withval=$with_pic; pic_mode="$withval"
15260 else
15261 pic_mode=default
15262 fi
15263
15264
15265 test -z "$pic_mode" && pic_mode=default
15266
15267
15268
15269
15270
15271
15272
15273 # Check whether --enable-fast-install was given.
15274 if test "${enable_fast_install+set}" = set; then :
15275 enableval=$enable_fast_install; p=${PACKAGE-default}
15276 case $enableval in
15277 yes) enable_fast_install=yes ;;
15278 no) enable_fast_install=no ;;
15279 *)
15280 enable_fast_install=no
15281 # Look at the argument we got. We use all the common list separators.
15282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15283 for pkg in $enableval; do
15284 IFS="$lt_save_ifs"
15285 if test "X$pkg" = "X$p"; then
15286 enable_fast_install=yes
15287 fi
15288 done
15289 IFS="$lt_save_ifs"
15290 ;;
15291 esac
15292 else
15293 enable_fast_install=yes
15294 fi
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306 # This can be used to rebuild libtool when needed
15307 LIBTOOL_DEPS="$ltmain"
15308
15309 # Always use our own libtool.
15310 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337 test -z "$LN_S" && LN_S="ln -s"
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352 if test -n "${ZSH_VERSION+set}" ; then
15353 setopt NO_GLOB_SUBST
15354 fi
15355
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15357 $as_echo_n "checking for objdir... " >&6; }
15358 if ${lt_cv_objdir+:} false; then :
15359 $as_echo_n "(cached) " >&6
15360 else
15361 rm -f .libs 2>/dev/null
15362 mkdir .libs 2>/dev/null
15363 if test -d .libs; then
15364 lt_cv_objdir=.libs
15365 else
15366 # MS-DOS does not allow filenames that begin with a dot.
15367 lt_cv_objdir=_libs
15368 fi
15369 rmdir .libs 2>/dev/null
15370 fi
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15372 $as_echo "$lt_cv_objdir" >&6; }
15373 objdir=$lt_cv_objdir
15374
15375
15376
15377
15378
15379 cat >>confdefs.h <<_ACEOF
15380 #define LT_OBJDIR "$lt_cv_objdir/"
15381 _ACEOF
15382
15383
15384
15385
15386 case $host_os in
15387 aix3*)
15388 # AIX sometimes has problems with the GCC collect2 program. For some
15389 # reason, if we set the COLLECT_NAMES environment variable, the problems
15390 # vanish in a puff of smoke.
15391 if test "X${COLLECT_NAMES+set}" != Xset; then
15392 COLLECT_NAMES=
15393 export COLLECT_NAMES
15394 fi
15395 ;;
15396 esac
15397
15398 # Global variables:
15399 ofile=libtool
15400 can_build_shared=yes
15401
15402 # All known linkers require a `.a' archive for static linking (except MSVC,
15403 # which needs '.lib').
15404 libext=a
15405
15406 with_gnu_ld="$lt_cv_prog_gnu_ld"
15407
15408 old_CC="$CC"
15409 old_CFLAGS="$CFLAGS"
15410
15411 # Set sane defaults for various variables
15412 test -z "$CC" && CC=cc
15413 test -z "$LTCC" && LTCC=$CC
15414 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15415 test -z "$LD" && LD=ld
15416 test -z "$ac_objext" && ac_objext=o
15417
15418 for cc_temp in $compiler""; do
15419 case $cc_temp in
15420 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15421 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15422 \-*) ;;
15423 *) break;;
15424 esac
15425 done
15426 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15427
15428
15429 # Only perform the check for file, if the check method requires it
15430 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15431 case $deplibs_check_method in
15432 file_magic*)
15433 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15435 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15436 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15437 $as_echo_n "(cached) " >&6
15438 else
15439 case $MAGIC_CMD in
15440 [\\/*] | ?:[\\/]*)
15441 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15442 ;;
15443 *)
15444 lt_save_MAGIC_CMD="$MAGIC_CMD"
15445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15446 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15447 for ac_dir in $ac_dummy; do
15448 IFS="$lt_save_ifs"
15449 test -z "$ac_dir" && ac_dir=.
15450 if test -f $ac_dir/${ac_tool_prefix}file; then
15451 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15452 if test -n "$file_magic_test_file"; then
15453 case $deplibs_check_method in
15454 "file_magic "*)
15455 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15456 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15457 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15458 $EGREP "$file_magic_regex" > /dev/null; then
15459 :
15460 else
15461 cat <<_LT_EOF 1>&2
15462
15463 *** Warning: the command libtool uses to detect shared libraries,
15464 *** $file_magic_cmd, produces output that libtool cannot recognize.
15465 *** The result is that libtool may fail to recognize shared libraries
15466 *** as such. This will affect the creation of libtool libraries that
15467 *** depend on shared libraries, but programs linked with such libtool
15468 *** libraries will work regardless of this problem. Nevertheless, you
15469 *** may want to report the problem to your system manager and/or to
15470 *** bug-libtool@gnu.org
15471
15472 _LT_EOF
15473 fi ;;
15474 esac
15475 fi
15476 break
15477 fi
15478 done
15479 IFS="$lt_save_ifs"
15480 MAGIC_CMD="$lt_save_MAGIC_CMD"
15481 ;;
15482 esac
15483 fi
15484
15485 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15486 if test -n "$MAGIC_CMD"; then
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15488 $as_echo "$MAGIC_CMD" >&6; }
15489 else
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15491 $as_echo "no" >&6; }
15492 fi
15493
15494
15495
15496
15497
15498 if test -z "$lt_cv_path_MAGIC_CMD"; then
15499 if test -n "$ac_tool_prefix"; then
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15501 $as_echo_n "checking for file... " >&6; }
15502 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15503 $as_echo_n "(cached) " >&6
15504 else
15505 case $MAGIC_CMD in
15506 [\\/*] | ?:[\\/]*)
15507 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15508 ;;
15509 *)
15510 lt_save_MAGIC_CMD="$MAGIC_CMD"
15511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15512 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15513 for ac_dir in $ac_dummy; do
15514 IFS="$lt_save_ifs"
15515 test -z "$ac_dir" && ac_dir=.
15516 if test -f $ac_dir/file; then
15517 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15518 if test -n "$file_magic_test_file"; then
15519 case $deplibs_check_method in
15520 "file_magic "*)
15521 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15522 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15523 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15524 $EGREP "$file_magic_regex" > /dev/null; then
15525 :
15526 else
15527 cat <<_LT_EOF 1>&2
15528
15529 *** Warning: the command libtool uses to detect shared libraries,
15530 *** $file_magic_cmd, produces output that libtool cannot recognize.
15531 *** The result is that libtool may fail to recognize shared libraries
15532 *** as such. This will affect the creation of libtool libraries that
15533 *** depend on shared libraries, but programs linked with such libtool
15534 *** libraries will work regardless of this problem. Nevertheless, you
15535 *** may want to report the problem to your system manager and/or to
15536 *** bug-libtool@gnu.org
15537
15538 _LT_EOF
15539 fi ;;
15540 esac
15541 fi
15542 break
15543 fi
15544 done
15545 IFS="$lt_save_ifs"
15546 MAGIC_CMD="$lt_save_MAGIC_CMD"
15547 ;;
15548 esac
15549 fi
15550
15551 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15552 if test -n "$MAGIC_CMD"; then
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15554 $as_echo "$MAGIC_CMD" >&6; }
15555 else
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15557 $as_echo "no" >&6; }
15558 fi
15559
15560
15561 else
15562 MAGIC_CMD=:
15563 fi
15564 fi
15565
15566 fi
15567 ;;
15568 esac
15569
15570 # Use C for the default configuration in the libtool script
15571
15572 lt_save_CC="$CC"
15573 ac_ext=c
15574 ac_cpp='$CPP $CPPFLAGS'
15575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15578
15579
15580 # Source file extension for C test sources.
15581 ac_ext=c
15582
15583 # Object file extension for compiled C test sources.
15584 objext=o
15585 objext=$objext
15586
15587 # Code to be used in simple compile tests
15588 lt_simple_compile_test_code="int some_variable = 0;"
15589
15590 # Code to be used in simple link tests
15591 lt_simple_link_test_code='int main(){return(0);}'
15592
15593
15594
15595
15596
15597
15598
15599 # If no C compiler was specified, use CC.
15600 LTCC=${LTCC-"$CC"}
15601
15602 # If no C compiler flags were specified, use CFLAGS.
15603 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15604
15605 # Allow CC to be a program name with arguments.
15606 compiler=$CC
15607
15608 # Save the default compiler, since it gets overwritten when the other
15609 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15610 compiler_DEFAULT=$CC
15611
15612 # save warnings/boilerplate of simple test code
15613 ac_outfile=conftest.$ac_objext
15614 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15615 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15616 _lt_compiler_boilerplate=`cat conftest.err`
15617 $RM conftest*
15618
15619 ac_outfile=conftest.$ac_objext
15620 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15621 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15622 _lt_linker_boilerplate=`cat conftest.err`
15623 $RM -r conftest*
15624
15625
15626 ## CAVEAT EMPTOR:
15627 ## There is no encapsulation within the following macros, do not change
15628 ## the running order or otherwise move them around unless you know exactly
15629 ## what you are doing...
15630 if test -n "$compiler"; then
15631
15632 lt_prog_compiler_no_builtin_flag=
15633
15634 if test "$GCC" = yes; then
15635 case $cc_basename in
15636 nvcc*)
15637 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15638 *)
15639 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15640 esac
15641
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15643 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15644 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15645 $as_echo_n "(cached) " >&6
15646 else
15647 lt_cv_prog_compiler_rtti_exceptions=no
15648 ac_outfile=conftest.$ac_objext
15649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15650 lt_compiler_flag="-fno-rtti -fno-exceptions"
15651 # Insert the option either (1) after the last *FLAGS variable, or
15652 # (2) before a word containing "conftest.", or (3) at the end.
15653 # Note that $ac_compile itself does not contain backslashes and begins
15654 # with a dollar sign (not a hyphen), so the echo should work correctly.
15655 # The option is referenced via a variable to avoid confusing sed.
15656 lt_compile=`echo "$ac_compile" | $SED \
15657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15659 -e 's:$: $lt_compiler_flag:'`
15660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15661 (eval "$lt_compile" 2>conftest.err)
15662 ac_status=$?
15663 cat conftest.err >&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 if (exit $ac_status) && test -s "$ac_outfile"; then
15666 # The compiler can only warn and ignore the option if not recognized
15667 # So say no if there are warnings other than the usual output.
15668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15671 lt_cv_prog_compiler_rtti_exceptions=yes
15672 fi
15673 fi
15674 $RM conftest*
15675
15676 fi
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15678 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15679
15680 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15681 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15682 else
15683 :
15684 fi
15685
15686 fi
15687
15688
15689
15690
15691
15692
15693 lt_prog_compiler_wl=
15694 lt_prog_compiler_pic=
15695 lt_prog_compiler_static=
15696
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15698 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15699
15700 if test "$GCC" = yes; then
15701 lt_prog_compiler_wl='-Wl,'
15702 lt_prog_compiler_static='-static'
15703
15704 case $host_os in
15705 aix*)
15706 # All AIX code is PIC.
15707 if test "$host_cpu" = ia64; then
15708 # AIX 5 now supports IA64 processor
15709 lt_prog_compiler_static='-Bstatic'
15710 fi
15711 lt_prog_compiler_pic='-fPIC'
15712 ;;
15713
15714 amigaos*)
15715 case $host_cpu in
15716 powerpc)
15717 # see comment about AmigaOS4 .so support
15718 lt_prog_compiler_pic='-fPIC'
15719 ;;
15720 m68k)
15721 # FIXME: we need at least 68020 code to build shared libraries, but
15722 # adding the `-m68020' flag to GCC prevents building anything better,
15723 # like `-m68040'.
15724 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15725 ;;
15726 esac
15727 ;;
15728
15729 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15730 # PIC is the default for these OSes.
15731 ;;
15732
15733 mingw* | cygwin* | pw32* | os2* | cegcc*)
15734 # This hack is so that the source file can tell whether it is being
15735 # built for inclusion in a dll (and should export symbols for example).
15736 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15737 # (--disable-auto-import) libraries
15738 lt_prog_compiler_pic='-DDLL_EXPORT'
15739 ;;
15740
15741 darwin* | rhapsody*)
15742 # PIC is the default on this platform
15743 # Common symbols not allowed in MH_DYLIB files
15744 lt_prog_compiler_pic='-fno-common'
15745 ;;
15746
15747 haiku*)
15748 # PIC is the default for Haiku.
15749 # The "-static" flag exists, but is broken.
15750 lt_prog_compiler_static=
15751 ;;
15752
15753 hpux*)
15754 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15755 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15756 # sets the default TLS model and affects inlining.
15757 case $host_cpu in
15758 hppa*64*)
15759 # +Z the default
15760 ;;
15761 *)
15762 lt_prog_compiler_pic='-fPIC'
15763 ;;
15764 esac
15765 ;;
15766
15767 interix[3-9]*)
15768 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15769 # Instead, we relocate shared libraries at runtime.
15770 ;;
15771
15772 msdosdjgpp*)
15773 # Just because we use GCC doesn't mean we suddenly get shared libraries
15774 # on systems that don't support them.
15775 lt_prog_compiler_can_build_shared=no
15776 enable_shared=no
15777 ;;
15778
15779 *nto* | *qnx*)
15780 # QNX uses GNU C++, but need to define -shared option too, otherwise
15781 # it will coredump.
15782 lt_prog_compiler_pic='-fPIC -shared'
15783 ;;
15784
15785 sysv4*MP*)
15786 if test -d /usr/nec; then
15787 lt_prog_compiler_pic=-Kconform_pic
15788 fi
15789 ;;
15790
15791 *)
15792 lt_prog_compiler_pic='-fPIC'
15793 ;;
15794 esac
15795
15796 case $cc_basename in
15797 nvcc*) # Cuda Compiler Driver 2.2
15798 lt_prog_compiler_wl='-Xlinker '
15799 lt_prog_compiler_pic='-Xcompiler -fPIC'
15800 ;;
15801 esac
15802 else
15803 # PORTME Check for flag to pass linker flags through the system compiler.
15804 case $host_os in
15805 aix*)
15806 lt_prog_compiler_wl='-Wl,'
15807 if test "$host_cpu" = ia64; then
15808 # AIX 5 now supports IA64 processor
15809 lt_prog_compiler_static='-Bstatic'
15810 else
15811 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15812 fi
15813 ;;
15814
15815 mingw* | cygwin* | pw32* | os2* | cegcc*)
15816 # This hack is so that the source file can tell whether it is being
15817 # built for inclusion in a dll (and should export symbols for example).
15818 lt_prog_compiler_pic='-DDLL_EXPORT'
15819 ;;
15820
15821 hpux9* | hpux10* | hpux11*)
15822 lt_prog_compiler_wl='-Wl,'
15823 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15824 # not for PA HP-UX.
15825 case $host_cpu in
15826 hppa*64*|ia64*)
15827 # +Z the default
15828 ;;
15829 *)
15830 lt_prog_compiler_pic='+Z'
15831 ;;
15832 esac
15833 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15834 lt_prog_compiler_static='${wl}-a ${wl}archive'
15835 ;;
15836
15837 irix5* | irix6* | nonstopux*)
15838 lt_prog_compiler_wl='-Wl,'
15839 # PIC (with -KPIC) is the default.
15840 lt_prog_compiler_static='-non_shared'
15841 ;;
15842
15843 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15844 case $cc_basename in
15845 # old Intel for x86_64 which still supported -KPIC.
15846 ecc*)
15847 lt_prog_compiler_wl='-Wl,'
15848 lt_prog_compiler_pic='-KPIC'
15849 lt_prog_compiler_static='-static'
15850 ;;
15851 # icc used to be incompatible with GCC.
15852 # ICC 10 doesn't accept -KPIC any more.
15853 icc* | ifort*)
15854 lt_prog_compiler_wl='-Wl,'
15855 lt_prog_compiler_pic='-fPIC'
15856 lt_prog_compiler_static='-static'
15857 ;;
15858 # Lahey Fortran 8.1.
15859 lf95*)
15860 lt_prog_compiler_wl='-Wl,'
15861 lt_prog_compiler_pic='--shared'
15862 lt_prog_compiler_static='--static'
15863 ;;
15864 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15865 # Portland Group compilers (*not* the Pentium gcc compiler,
15866 # which looks to be a dead project)
15867 lt_prog_compiler_wl='-Wl,'
15868 lt_prog_compiler_pic='-fpic'
15869 lt_prog_compiler_static='-Bstatic'
15870 ;;
15871 ccc*)
15872 lt_prog_compiler_wl='-Wl,'
15873 # All Alpha code is PIC.
15874 lt_prog_compiler_static='-non_shared'
15875 ;;
15876 xl* | bgxl* | bgf* | mpixl*)
15877 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15878 lt_prog_compiler_wl='-Wl,'
15879 lt_prog_compiler_pic='-qpic'
15880 lt_prog_compiler_static='-qstaticlink'
15881 ;;
15882 *)
15883 case `$CC -V 2>&1 | sed 5q` in
15884 *Sun\ F* | *Sun*Fortran*)
15885 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15886 lt_prog_compiler_pic='-KPIC'
15887 lt_prog_compiler_static='-Bstatic'
15888 lt_prog_compiler_wl=''
15889 ;;
15890 *Sun\ C*)
15891 # Sun C 5.9
15892 lt_prog_compiler_pic='-KPIC'
15893 lt_prog_compiler_static='-Bstatic'
15894 lt_prog_compiler_wl='-Wl,'
15895 ;;
15896 esac
15897 ;;
15898 esac
15899 ;;
15900
15901 newsos6)
15902 lt_prog_compiler_pic='-KPIC'
15903 lt_prog_compiler_static='-Bstatic'
15904 ;;
15905
15906 *nto* | *qnx*)
15907 # QNX uses GNU C++, but need to define -shared option too, otherwise
15908 # it will coredump.
15909 lt_prog_compiler_pic='-fPIC -shared'
15910 ;;
15911
15912 osf3* | osf4* | osf5*)
15913 lt_prog_compiler_wl='-Wl,'
15914 # All OSF/1 code is PIC.
15915 lt_prog_compiler_static='-non_shared'
15916 ;;
15917
15918 rdos*)
15919 lt_prog_compiler_static='-non_shared'
15920 ;;
15921
15922 solaris*)
15923 lt_prog_compiler_pic='-KPIC'
15924 lt_prog_compiler_static='-Bstatic'
15925 case $cc_basename in
15926 f77* | f90* | f95*)
15927 lt_prog_compiler_wl='-Qoption ld ';;
15928 *)
15929 lt_prog_compiler_wl='-Wl,';;
15930 esac
15931 ;;
15932
15933 sunos4*)
15934 lt_prog_compiler_wl='-Qoption ld '
15935 lt_prog_compiler_pic='-PIC'
15936 lt_prog_compiler_static='-Bstatic'
15937 ;;
15938
15939 sysv4 | sysv4.2uw2* | sysv4.3*)
15940 lt_prog_compiler_wl='-Wl,'
15941 lt_prog_compiler_pic='-KPIC'
15942 lt_prog_compiler_static='-Bstatic'
15943 ;;
15944
15945 sysv4*MP*)
15946 if test -d /usr/nec ;then
15947 lt_prog_compiler_pic='-Kconform_pic'
15948 lt_prog_compiler_static='-Bstatic'
15949 fi
15950 ;;
15951
15952 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15953 lt_prog_compiler_wl='-Wl,'
15954 lt_prog_compiler_pic='-KPIC'
15955 lt_prog_compiler_static='-Bstatic'
15956 ;;
15957
15958 unicos*)
15959 lt_prog_compiler_wl='-Wl,'
15960 lt_prog_compiler_can_build_shared=no
15961 ;;
15962
15963 uts4*)
15964 lt_prog_compiler_pic='-pic'
15965 lt_prog_compiler_static='-Bstatic'
15966 ;;
15967
15968 *)
15969 lt_prog_compiler_can_build_shared=no
15970 ;;
15971 esac
15972 fi
15973
15974 case $host_os in
15975 # For platforms which do not support PIC, -DPIC is meaningless:
15976 *djgpp*)
15977 lt_prog_compiler_pic=
15978 ;;
15979 *)
15980 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15981 ;;
15982 esac
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15984 $as_echo "$lt_prog_compiler_pic" >&6; }
15985
15986
15987
15988
15989
15990
15991 #
15992 # Check to make sure the PIC flag actually works.
15993 #
15994 if test -n "$lt_prog_compiler_pic"; then
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15996 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15997 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15998 $as_echo_n "(cached) " >&6
15999 else
16000 lt_cv_prog_compiler_pic_works=no
16001 ac_outfile=conftest.$ac_objext
16002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16003 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16004 # Insert the option either (1) after the last *FLAGS variable, or
16005 # (2) before a word containing "conftest.", or (3) at the end.
16006 # Note that $ac_compile itself does not contain backslashes and begins
16007 # with a dollar sign (not a hyphen), so the echo should work correctly.
16008 # The option is referenced via a variable to avoid confusing sed.
16009 lt_compile=`echo "$ac_compile" | $SED \
16010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16012 -e 's:$: $lt_compiler_flag:'`
16013 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16014 (eval "$lt_compile" 2>conftest.err)
16015 ac_status=$?
16016 cat conftest.err >&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 if (exit $ac_status) && test -s "$ac_outfile"; then
16019 # The compiler can only warn and ignore the option if not recognized
16020 # So say no if there are warnings other than the usual output.
16021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16024 lt_cv_prog_compiler_pic_works=yes
16025 fi
16026 fi
16027 $RM conftest*
16028
16029 fi
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16031 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16032
16033 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16034 case $lt_prog_compiler_pic in
16035 "" | " "*) ;;
16036 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16037 esac
16038 else
16039 lt_prog_compiler_pic=
16040 lt_prog_compiler_can_build_shared=no
16041 fi
16042
16043 fi
16044
16045
16046
16047
16048
16049
16050 #
16051 # Check to make sure the static flag actually works.
16052 #
16053 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16055 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16056 if ${lt_cv_prog_compiler_static_works+:} false; then :
16057 $as_echo_n "(cached) " >&6
16058 else
16059 lt_cv_prog_compiler_static_works=no
16060 save_LDFLAGS="$LDFLAGS"
16061 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16062 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16063 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16064 # The linker can only warn and ignore the option if not recognized
16065 # So say no if there are warnings
16066 if test -s conftest.err; then
16067 # Append any errors to the config.log.
16068 cat conftest.err 1>&5
16069 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16071 if diff conftest.exp conftest.er2 >/dev/null; then
16072 lt_cv_prog_compiler_static_works=yes
16073 fi
16074 else
16075 lt_cv_prog_compiler_static_works=yes
16076 fi
16077 fi
16078 $RM -r conftest*
16079 LDFLAGS="$save_LDFLAGS"
16080
16081 fi
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16083 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16084
16085 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16086 :
16087 else
16088 lt_prog_compiler_static=
16089 fi
16090
16091
16092
16093
16094
16095
16096
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16098 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16099 if ${lt_cv_prog_compiler_c_o+:} false; then :
16100 $as_echo_n "(cached) " >&6
16101 else
16102 lt_cv_prog_compiler_c_o=no
16103 $RM -r conftest 2>/dev/null
16104 mkdir conftest
16105 cd conftest
16106 mkdir out
16107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16108
16109 lt_compiler_flag="-o out/conftest2.$ac_objext"
16110 # Insert the option either (1) after the last *FLAGS variable, or
16111 # (2) before a word containing "conftest.", or (3) at the end.
16112 # Note that $ac_compile itself does not contain backslashes and begins
16113 # with a dollar sign (not a hyphen), so the echo should work correctly.
16114 lt_compile=`echo "$ac_compile" | $SED \
16115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16117 -e 's:$: $lt_compiler_flag:'`
16118 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16119 (eval "$lt_compile" 2>out/conftest.err)
16120 ac_status=$?
16121 cat out/conftest.err >&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16124 then
16125 # The compiler can only warn and ignore the option if not recognized
16126 # So say no if there are warnings
16127 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16128 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16129 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16130 lt_cv_prog_compiler_c_o=yes
16131 fi
16132 fi
16133 chmod u+w . 2>&5
16134 $RM conftest*
16135 # SGI C++ compiler will create directory out/ii_files/ for
16136 # template instantiation
16137 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16138 $RM out/* && rmdir out
16139 cd ..
16140 $RM -r conftest
16141 $RM conftest*
16142
16143 fi
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16145 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16146
16147
16148
16149
16150
16151
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16153 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16154 if ${lt_cv_prog_compiler_c_o+:} false; then :
16155 $as_echo_n "(cached) " >&6
16156 else
16157 lt_cv_prog_compiler_c_o=no
16158 $RM -r conftest 2>/dev/null
16159 mkdir conftest
16160 cd conftest
16161 mkdir out
16162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16163
16164 lt_compiler_flag="-o out/conftest2.$ac_objext"
16165 # Insert the option either (1) after the last *FLAGS variable, or
16166 # (2) before a word containing "conftest.", or (3) at the end.
16167 # Note that $ac_compile itself does not contain backslashes and begins
16168 # with a dollar sign (not a hyphen), so the echo should work correctly.
16169 lt_compile=`echo "$ac_compile" | $SED \
16170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16172 -e 's:$: $lt_compiler_flag:'`
16173 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16174 (eval "$lt_compile" 2>out/conftest.err)
16175 ac_status=$?
16176 cat out/conftest.err >&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16179 then
16180 # The compiler can only warn and ignore the option if not recognized
16181 # So say no if there are warnings
16182 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16183 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16184 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16185 lt_cv_prog_compiler_c_o=yes
16186 fi
16187 fi
16188 chmod u+w . 2>&5
16189 $RM conftest*
16190 # SGI C++ compiler will create directory out/ii_files/ for
16191 # template instantiation
16192 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16193 $RM out/* && rmdir out
16194 cd ..
16195 $RM -r conftest
16196 $RM conftest*
16197
16198 fi
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16200 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16201
16202
16203
16204
16205 hard_links="nottested"
16206 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16207 # do not overwrite the value of need_locks provided by the user
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16209 $as_echo_n "checking if we can lock with hard links... " >&6; }
16210 hard_links=yes
16211 $RM conftest*
16212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16213 touch conftest.a
16214 ln conftest.a conftest.b 2>&5 || hard_links=no
16215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16217 $as_echo "$hard_links" >&6; }
16218 if test "$hard_links" = no; then
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16220 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16221 need_locks=warn
16222 fi
16223 else
16224 need_locks=no
16225 fi
16226
16227
16228
16229
16230
16231
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16233 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16234
16235 runpath_var=
16236 allow_undefined_flag=
16237 always_export_symbols=no
16238 archive_cmds=
16239 archive_expsym_cmds=
16240 compiler_needs_object=no
16241 enable_shared_with_static_runtimes=no
16242 export_dynamic_flag_spec=
16243 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16244 hardcode_automatic=no
16245 hardcode_direct=no
16246 hardcode_direct_absolute=no
16247 hardcode_libdir_flag_spec=
16248 hardcode_libdir_flag_spec_ld=
16249 hardcode_libdir_separator=
16250 hardcode_minus_L=no
16251 hardcode_shlibpath_var=unsupported
16252 inherit_rpath=no
16253 link_all_deplibs=unknown
16254 module_cmds=
16255 module_expsym_cmds=
16256 old_archive_from_new_cmds=
16257 old_archive_from_expsyms_cmds=
16258 thread_safe_flag_spec=
16259 whole_archive_flag_spec=
16260 # include_expsyms should be a list of space-separated symbols to be *always*
16261 # included in the symbol list
16262 include_expsyms=
16263 # exclude_expsyms can be an extended regexp of symbols to exclude
16264 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16265 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16266 # as well as any symbol that contains `d'.
16267 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16268 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16269 # platforms (ab)use it in PIC code, but their linkers get confused if
16270 # the symbol is explicitly referenced. Since portable code cannot
16271 # rely on this symbol name, it's probably fine to never include it in
16272 # preloaded symbol tables.
16273 # Exclude shared library initialization/finalization symbols.
16274 extract_expsyms_cmds=
16275
16276 case $host_os in
16277 cygwin* | mingw* | pw32* | cegcc*)
16278 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16279 # When not using gcc, we currently assume that we are using
16280 # Microsoft Visual C++.
16281 if test "$GCC" != yes; then
16282 with_gnu_ld=no
16283 fi
16284 ;;
16285 interix*)
16286 # we just hope/assume this is gcc and not c89 (= MSVC++)
16287 with_gnu_ld=yes
16288 ;;
16289 openbsd*)
16290 with_gnu_ld=no
16291 ;;
16292 esac
16293
16294 ld_shlibs=yes
16295
16296 # On some targets, GNU ld is compatible enough with the native linker
16297 # that we're better off using the native interface for both.
16298 lt_use_gnu_ld_interface=no
16299 if test "$with_gnu_ld" = yes; then
16300 case $host_os in
16301 aix*)
16302 # The AIX port of GNU ld has always aspired to compatibility
16303 # with the native linker. However, as the warning in the GNU ld
16304 # block says, versions before 2.19.5* couldn't really create working
16305 # shared libraries, regardless of the interface used.
16306 case `$LD -v 2>&1` in
16307 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16308 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16309 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16310 *)
16311 lt_use_gnu_ld_interface=yes
16312 ;;
16313 esac
16314 ;;
16315 *)
16316 lt_use_gnu_ld_interface=yes
16317 ;;
16318 esac
16319 fi
16320
16321 if test "$lt_use_gnu_ld_interface" = yes; then
16322 # If archive_cmds runs LD, not CC, wlarc should be empty
16323 wlarc='${wl}'
16324
16325 # Set some defaults for GNU ld with shared library support. These
16326 # are reset later if shared libraries are not supported. Putting them
16327 # here allows them to be overridden if necessary.
16328 runpath_var=LD_RUN_PATH
16329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16330 export_dynamic_flag_spec='${wl}--export-dynamic'
16331 # ancient GNU ld didn't support --whole-archive et. al.
16332 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16333 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16334 else
16335 whole_archive_flag_spec=
16336 fi
16337 supports_anon_versioning=no
16338 case `$LD -v 2>&1` in
16339 *GNU\ gold*) supports_anon_versioning=yes ;;
16340 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16341 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16342 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16343 *\ 2.11.*) ;; # other 2.11 versions
16344 *) supports_anon_versioning=yes ;;
16345 esac
16346
16347 # See if GNU ld supports shared libraries.
16348 case $host_os in
16349 aix[3-9]*)
16350 # On AIX/PPC, the GNU linker is very broken
16351 if test "$host_cpu" != ia64; then
16352 ld_shlibs=no
16353 cat <<_LT_EOF 1>&2
16354
16355 *** Warning: the GNU linker, at least up to release 2.19, is reported
16356 *** to be unable to reliably create shared libraries on AIX.
16357 *** Therefore, libtool is disabling shared libraries support. If you
16358 *** really care for shared libraries, you may want to install binutils
16359 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16360 *** You will then need to restart the configuration process.
16361
16362 _LT_EOF
16363 fi
16364 ;;
16365
16366 amigaos*)
16367 case $host_cpu in
16368 powerpc)
16369 # see comment about AmigaOS4 .so support
16370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16371 archive_expsym_cmds=''
16372 ;;
16373 m68k)
16374 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)'
16375 hardcode_libdir_flag_spec='-L$libdir'
16376 hardcode_minus_L=yes
16377 ;;
16378 esac
16379 ;;
16380
16381 beos*)
16382 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16383 allow_undefined_flag=unsupported
16384 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16385 # support --undefined. This deserves some investigation. FIXME
16386 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16387 else
16388 ld_shlibs=no
16389 fi
16390 ;;
16391
16392 cygwin* | mingw* | pw32* | cegcc*)
16393 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16394 # as there is no search path for DLLs.
16395 hardcode_libdir_flag_spec='-L$libdir'
16396 export_dynamic_flag_spec='${wl}--export-all-symbols'
16397 allow_undefined_flag=unsupported
16398 always_export_symbols=no
16399 enable_shared_with_static_runtimes=yes
16400 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16401
16402 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16404 # If the export-symbols file already is a .def file (1st line
16405 # is EXPORTS), use it as is; otherwise, prepend...
16406 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16407 cp $export_symbols $output_objdir/$soname.def;
16408 else
16409 echo EXPORTS > $output_objdir/$soname.def;
16410 cat $export_symbols >> $output_objdir/$soname.def;
16411 fi~
16412 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16413 else
16414 ld_shlibs=no
16415 fi
16416 ;;
16417
16418 haiku*)
16419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16420 link_all_deplibs=yes
16421 ;;
16422
16423 interix[3-9]*)
16424 hardcode_direct=no
16425 hardcode_shlibpath_var=no
16426 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16427 export_dynamic_flag_spec='${wl}-E'
16428 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16429 # Instead, shared libraries are loaded at an image base (0x10000000 by
16430 # default) and relocated if they conflict, which is a slow very memory
16431 # consuming and fragmenting process. To avoid this, we pick a random,
16432 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16433 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16434 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16435 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'
16436 ;;
16437
16438 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16439 tmp_diet=no
16440 if test "$host_os" = linux-dietlibc; then
16441 case $cc_basename in
16442 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16443 esac
16444 fi
16445 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16446 && test "$tmp_diet" = no
16447 then
16448 tmp_addflag=' $pic_flag'
16449 tmp_sharedflag='-shared'
16450 case $cc_basename,$host_cpu in
16451 pgcc*) # Portland Group C compiler
16452 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'
16453 tmp_addflag=' $pic_flag'
16454 ;;
16455 pgf77* | pgf90* | pgf95* | pgfortran*)
16456 # Portland Group f77 and f90 compilers
16457 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'
16458 tmp_addflag=' $pic_flag -Mnomain' ;;
16459 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16460 tmp_addflag=' -i_dynamic' ;;
16461 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16462 tmp_addflag=' -i_dynamic -nofor_main' ;;
16463 ifc* | ifort*) # Intel Fortran compiler
16464 tmp_addflag=' -nofor_main' ;;
16465 lf95*) # Lahey Fortran 8.1
16466 whole_archive_flag_spec=
16467 tmp_sharedflag='--shared' ;;
16468 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16469 tmp_sharedflag='-qmkshrobj'
16470 tmp_addflag= ;;
16471 nvcc*) # Cuda Compiler Driver 2.2
16472 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'
16473 compiler_needs_object=yes
16474 ;;
16475 esac
16476 case `$CC -V 2>&1 | sed 5q` in
16477 *Sun\ C*) # Sun C 5.9
16478 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'
16479 compiler_needs_object=yes
16480 tmp_sharedflag='-G' ;;
16481 *Sun\ F*) # Sun Fortran 8.3
16482 tmp_sharedflag='-G' ;;
16483 esac
16484 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16485
16486 if test "x$supports_anon_versioning" = xyes; then
16487 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16488 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16489 echo "local: *; };" >> $output_objdir/$libname.ver~
16490 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16491 fi
16492
16493 case $cc_basename in
16494 xlf* | bgf* | bgxlf* | mpixlf*)
16495 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16496 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16497 hardcode_libdir_flag_spec=
16498 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16499 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16500 if test "x$supports_anon_versioning" = xyes; then
16501 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16502 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16503 echo "local: *; };" >> $output_objdir/$libname.ver~
16504 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16505 fi
16506 ;;
16507 esac
16508 else
16509 ld_shlibs=no
16510 fi
16511 ;;
16512
16513 netbsd*)
16514 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16515 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16516 wlarc=
16517 else
16518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16519 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16520 fi
16521 ;;
16522
16523 solaris*)
16524 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16525 ld_shlibs=no
16526 cat <<_LT_EOF 1>&2
16527
16528 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16529 *** create shared libraries on Solaris systems. Therefore, libtool
16530 *** is disabling shared libraries support. We urge you to upgrade GNU
16531 *** binutils to release 2.9.1 or newer. Another option is to modify
16532 *** your PATH or compiler configuration so that the native linker is
16533 *** used, and then restart.
16534
16535 _LT_EOF
16536 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16538 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16539 else
16540 ld_shlibs=no
16541 fi
16542 ;;
16543
16544 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16545 case `$LD -v 2>&1` in
16546 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16547 ld_shlibs=no
16548 cat <<_LT_EOF 1>&2
16549
16550 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16551 *** reliably create shared libraries on SCO systems. Therefore, libtool
16552 *** is disabling shared libraries support. We urge you to upgrade GNU
16553 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16554 *** your PATH or compiler configuration so that the native linker is
16555 *** used, and then restart.
16556
16557 _LT_EOF
16558 ;;
16559 *)
16560 # For security reasons, it is highly recommended that you always
16561 # use absolute paths for naming shared libraries, and exclude the
16562 # DT_RUNPATH tag from executables and libraries. But doing so
16563 # requires that you compile everything twice, which is a pain.
16564 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16567 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16568 else
16569 ld_shlibs=no
16570 fi
16571 ;;
16572 esac
16573 ;;
16574
16575 sunos4*)
16576 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16577 wlarc=
16578 hardcode_direct=yes
16579 hardcode_shlibpath_var=no
16580 ;;
16581
16582 *)
16583 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16584 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16585 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16586 else
16587 ld_shlibs=no
16588 fi
16589 ;;
16590 esac
16591
16592 if test "$ld_shlibs" = no; then
16593 runpath_var=
16594 hardcode_libdir_flag_spec=
16595 export_dynamic_flag_spec=
16596 whole_archive_flag_spec=
16597 fi
16598 else
16599 # PORTME fill in a description of your system's linker (not GNU ld)
16600 case $host_os in
16601 aix3*)
16602 allow_undefined_flag=unsupported
16603 always_export_symbols=yes
16604 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'
16605 # Note: this linker hardcodes the directories in LIBPATH if there
16606 # are no directories specified by -L.
16607 hardcode_minus_L=yes
16608 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16609 # Neither direct hardcoding nor static linking is supported with a
16610 # broken collect2.
16611 hardcode_direct=unsupported
16612 fi
16613 ;;
16614
16615 aix[4-9]*)
16616 if test "$host_cpu" = ia64; then
16617 # On IA64, the linker does run time linking by default, so we don't
16618 # have to do anything special.
16619 aix_use_runtimelinking=no
16620 exp_sym_flag='-Bexport'
16621 no_entry_flag=""
16622 else
16623 # If we're using GNU nm, then we don't want the "-C" option.
16624 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16625 # Also, AIX nm treats weak defined symbols like other global
16626 # defined symbols, whereas GNU nm marks them as "W".
16627 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16628 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'
16629 else
16630 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'
16631 fi
16632 aix_use_runtimelinking=no
16633
16634 # Test if we are trying to use run time linking or normal
16635 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16636 # need to do runtime linking.
16637 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16638 for ld_flag in $LDFLAGS; do
16639 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16640 aix_use_runtimelinking=yes
16641 break
16642 fi
16643 done
16644 ;;
16645 esac
16646
16647 exp_sym_flag='-bexport'
16648 no_entry_flag='-bnoentry'
16649 fi
16650
16651 # When large executables or shared objects are built, AIX ld can
16652 # have problems creating the table of contents. If linking a library
16653 # or program results in "error TOC overflow" add -mminimal-toc to
16654 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16655 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16656
16657 archive_cmds=''
16658 hardcode_direct=yes
16659 hardcode_direct_absolute=yes
16660 hardcode_libdir_separator=':'
16661 link_all_deplibs=yes
16662 file_list_spec='${wl}-f,'
16663
16664 if test "$GCC" = yes; then
16665 case $host_os in aix4.[012]|aix4.[012].*)
16666 # We only want to do this on AIX 4.2 and lower, the check
16667 # below for broken collect2 doesn't work under 4.3+
16668 collect2name=`${CC} -print-prog-name=collect2`
16669 if test -f "$collect2name" &&
16670 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16671 then
16672 # We have reworked collect2
16673 :
16674 else
16675 # We have old collect2
16676 hardcode_direct=unsupported
16677 # It fails to find uninstalled libraries when the uninstalled
16678 # path is not listed in the libpath. Setting hardcode_minus_L
16679 # to unsupported forces relinking
16680 hardcode_minus_L=yes
16681 hardcode_libdir_flag_spec='-L$libdir'
16682 hardcode_libdir_separator=
16683 fi
16684 ;;
16685 esac
16686 shared_flag='-shared'
16687 if test "$aix_use_runtimelinking" = yes; then
16688 shared_flag="$shared_flag "'${wl}-G'
16689 fi
16690 else
16691 # not using gcc
16692 if test "$host_cpu" = ia64; then
16693 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16694 # chokes on -Wl,-G. The following line is correct:
16695 shared_flag='-G'
16696 else
16697 if test "$aix_use_runtimelinking" = yes; then
16698 shared_flag='${wl}-G'
16699 else
16700 shared_flag='${wl}-bM:SRE'
16701 fi
16702 fi
16703 fi
16704
16705 export_dynamic_flag_spec='${wl}-bexpall'
16706 # It seems that -bexpall does not export symbols beginning with
16707 # underscore (_), so it is better to generate a list of symbols to export.
16708 always_export_symbols=yes
16709 if test "$aix_use_runtimelinking" = yes; then
16710 # Warning - without using the other runtime loading flags (-brtl),
16711 # -berok will link without error, but may produce a broken library.
16712 allow_undefined_flag='-berok'
16713 # Determine the default libpath from the value encoded in an
16714 # empty executable.
16715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16716 /* end confdefs.h. */
16717
16718 int
16719 main ()
16720 {
16721
16722 ;
16723 return 0;
16724 }
16725 _ACEOF
16726 if ac_fn_c_try_link "$LINENO"; then :
16727
16728 lt_aix_libpath_sed='
16729 /Import File Strings/,/^$/ {
16730 /^0/ {
16731 s/^0 *\(.*\)$/\1/
16732 p
16733 }
16734 }'
16735 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16736 # Check for a 64-bit object if we didn't find anything.
16737 if test -z "$aix_libpath"; then
16738 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16739 fi
16740 fi
16741 rm -f core conftest.err conftest.$ac_objext \
16742 conftest$ac_exeext conftest.$ac_ext
16743 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16744
16745 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16746 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"
16747 else
16748 if test "$host_cpu" = ia64; then
16749 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16750 allow_undefined_flag="-z nodefs"
16751 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"
16752 else
16753 # Determine the default libpath from the value encoded in an
16754 # empty executable.
16755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h. */
16757
16758 int
16759 main ()
16760 {
16761
16762 ;
16763 return 0;
16764 }
16765 _ACEOF
16766 if ac_fn_c_try_link "$LINENO"; then :
16767
16768 lt_aix_libpath_sed='
16769 /Import File Strings/,/^$/ {
16770 /^0/ {
16771 s/^0 *\(.*\)$/\1/
16772 p
16773 }
16774 }'
16775 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16776 # Check for a 64-bit object if we didn't find anything.
16777 if test -z "$aix_libpath"; then
16778 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16779 fi
16780 fi
16781 rm -f core conftest.err conftest.$ac_objext \
16782 conftest$ac_exeext conftest.$ac_ext
16783 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16784
16785 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16786 # Warning - without using the other run time loading flags,
16787 # -berok will link without error, but may produce a broken library.
16788 no_undefined_flag=' ${wl}-bernotok'
16789 allow_undefined_flag=' ${wl}-berok'
16790 if test "$with_gnu_ld" = yes; then
16791 # We only use this code for GNU lds that support --whole-archive.
16792 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16793 else
16794 # Exported symbols can be pulled into shared objects from archives
16795 whole_archive_flag_spec='$convenience'
16796 fi
16797 archive_cmds_need_lc=yes
16798 # This is similar to how AIX traditionally builds its shared libraries.
16799 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'
16800 fi
16801 fi
16802 ;;
16803
16804 amigaos*)
16805 case $host_cpu in
16806 powerpc)
16807 # see comment about AmigaOS4 .so support
16808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16809 archive_expsym_cmds=''
16810 ;;
16811 m68k)
16812 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)'
16813 hardcode_libdir_flag_spec='-L$libdir'
16814 hardcode_minus_L=yes
16815 ;;
16816 esac
16817 ;;
16818
16819 bsdi[45]*)
16820 export_dynamic_flag_spec=-rdynamic
16821 ;;
16822
16823 cygwin* | mingw* | pw32* | cegcc*)
16824 # When not using gcc, we currently assume that we are using
16825 # Microsoft Visual C++.
16826 # hardcode_libdir_flag_spec is actually meaningless, as there is
16827 # no search path for DLLs.
16828 hardcode_libdir_flag_spec=' '
16829 allow_undefined_flag=unsupported
16830 # Tell ltmain to make .lib files, not .a files.
16831 libext=lib
16832 # Tell ltmain to make .dll files, not .so files.
16833 shrext_cmds=".dll"
16834 # FIXME: Setting linknames here is a bad hack.
16835 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16836 # The linker will automatically build a .lib file if we build a DLL.
16837 old_archive_from_new_cmds='true'
16838 # FIXME: Should let the user specify the lib program.
16839 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16840 fix_srcfile_path='`cygpath -w "$srcfile"`'
16841 enable_shared_with_static_runtimes=yes
16842 ;;
16843
16844 darwin* | rhapsody*)
16845
16846
16847 archive_cmds_need_lc=no
16848 hardcode_direct=no
16849 hardcode_automatic=yes
16850 hardcode_shlibpath_var=unsupported
16851 if test "$lt_cv_ld_force_load" = "yes"; then
16852 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\"`'
16853 else
16854 whole_archive_flag_spec=''
16855 fi
16856 link_all_deplibs=yes
16857 allow_undefined_flag="$_lt_dar_allow_undefined"
16858 case $cc_basename in
16859 ifort*) _lt_dar_can_shared=yes ;;
16860 *) _lt_dar_can_shared=$GCC ;;
16861 esac
16862 if test "$_lt_dar_can_shared" = "yes"; then
16863 output_verbose_link_cmd=func_echo_all
16864 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16865 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16866 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}"
16867 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}"
16868
16869 else
16870 ld_shlibs=no
16871 fi
16872
16873 ;;
16874
16875 dgux*)
16876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16877 hardcode_libdir_flag_spec='-L$libdir'
16878 hardcode_shlibpath_var=no
16879 ;;
16880
16881 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16882 # support. Future versions do this automatically, but an explicit c++rt0.o
16883 # does not break anything, and helps significantly (at the cost of a little
16884 # extra space).
16885 freebsd2.2*)
16886 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16887 hardcode_libdir_flag_spec='-R$libdir'
16888 hardcode_direct=yes
16889 hardcode_shlibpath_var=no
16890 ;;
16891
16892 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16893 freebsd2.*)
16894 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16895 hardcode_direct=yes
16896 hardcode_minus_L=yes
16897 hardcode_shlibpath_var=no
16898 ;;
16899
16900 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16901 freebsd* | dragonfly*)
16902 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16903 hardcode_libdir_flag_spec='-R$libdir'
16904 hardcode_direct=yes
16905 hardcode_shlibpath_var=no
16906 ;;
16907
16908 hpux9*)
16909 if test "$GCC" = yes; then
16910 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'
16911 else
16912 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'
16913 fi
16914 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16915 hardcode_libdir_separator=:
16916 hardcode_direct=yes
16917
16918 # hardcode_minus_L: Not really in the search PATH,
16919 # but as the default location of the library.
16920 hardcode_minus_L=yes
16921 export_dynamic_flag_spec='${wl}-E'
16922 ;;
16923
16924 hpux10*)
16925 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16926 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16927 else
16928 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16929 fi
16930 if test "$with_gnu_ld" = no; then
16931 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16932 hardcode_libdir_flag_spec_ld='+b $libdir'
16933 hardcode_libdir_separator=:
16934 hardcode_direct=yes
16935 hardcode_direct_absolute=yes
16936 export_dynamic_flag_spec='${wl}-E'
16937 # hardcode_minus_L: Not really in the search PATH,
16938 # but as the default location of the library.
16939 hardcode_minus_L=yes
16940 fi
16941 ;;
16942
16943 hpux11*)
16944 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16945 case $host_cpu in
16946 hppa*64*)
16947 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16948 ;;
16949 ia64*)
16950 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16951 ;;
16952 *)
16953 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16954 ;;
16955 esac
16956 else
16957 case $host_cpu in
16958 hppa*64*)
16959 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16960 ;;
16961 ia64*)
16962 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16963 ;;
16964 *)
16965
16966 # Older versions of the 11.00 compiler do not understand -b yet
16967 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16969 $as_echo_n "checking if $CC understands -b... " >&6; }
16970 if ${lt_cv_prog_compiler__b+:} false; then :
16971 $as_echo_n "(cached) " >&6
16972 else
16973 lt_cv_prog_compiler__b=no
16974 save_LDFLAGS="$LDFLAGS"
16975 LDFLAGS="$LDFLAGS -b"
16976 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16977 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16978 # The linker can only warn and ignore the option if not recognized
16979 # So say no if there are warnings
16980 if test -s conftest.err; then
16981 # Append any errors to the config.log.
16982 cat conftest.err 1>&5
16983 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16985 if diff conftest.exp conftest.er2 >/dev/null; then
16986 lt_cv_prog_compiler__b=yes
16987 fi
16988 else
16989 lt_cv_prog_compiler__b=yes
16990 fi
16991 fi
16992 $RM -r conftest*
16993 LDFLAGS="$save_LDFLAGS"
16994
16995 fi
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16997 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16998
16999 if test x"$lt_cv_prog_compiler__b" = xyes; then
17000 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17001 else
17002 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17003 fi
17004
17005 ;;
17006 esac
17007 fi
17008 if test "$with_gnu_ld" = no; then
17009 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17010 hardcode_libdir_separator=:
17011
17012 case $host_cpu in
17013 hppa*64*|ia64*)
17014 hardcode_direct=no
17015 hardcode_shlibpath_var=no
17016 ;;
17017 *)
17018 hardcode_direct=yes
17019 hardcode_direct_absolute=yes
17020 export_dynamic_flag_spec='${wl}-E'
17021
17022 # hardcode_minus_L: Not really in the search PATH,
17023 # but as the default location of the library.
17024 hardcode_minus_L=yes
17025 ;;
17026 esac
17027 fi
17028 ;;
17029
17030 irix5* | irix6* | nonstopux*)
17031 if test "$GCC" = yes; then
17032 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'
17033 # Try to use the -exported_symbol ld option, if it does not
17034 # work, assume that -exports_file does not work either and
17035 # implicitly export all symbols.
17036 save_LDFLAGS="$LDFLAGS"
17037 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17039 /* end confdefs.h. */
17040 int foo(void) {}
17041 _ACEOF
17042 if ac_fn_c_try_link "$LINENO"; then :
17043 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'
17044
17045 fi
17046 rm -f core conftest.err conftest.$ac_objext \
17047 conftest$ac_exeext conftest.$ac_ext
17048 LDFLAGS="$save_LDFLAGS"
17049 else
17050 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'
17051 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'
17052 fi
17053 archive_cmds_need_lc='no'
17054 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17055 hardcode_libdir_separator=:
17056 inherit_rpath=yes
17057 link_all_deplibs=yes
17058 ;;
17059
17060 netbsd*)
17061 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17063 else
17064 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17065 fi
17066 hardcode_libdir_flag_spec='-R$libdir'
17067 hardcode_direct=yes
17068 hardcode_shlibpath_var=no
17069 ;;
17070
17071 newsos6)
17072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17073 hardcode_direct=yes
17074 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17075 hardcode_libdir_separator=:
17076 hardcode_shlibpath_var=no
17077 ;;
17078
17079 *nto* | *qnx*)
17080 ;;
17081
17082 openbsd*)
17083 if test -f /usr/libexec/ld.so; then
17084 hardcode_direct=yes
17085 hardcode_shlibpath_var=no
17086 hardcode_direct_absolute=yes
17087 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17088 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17089 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17090 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17091 export_dynamic_flag_spec='${wl}-E'
17092 else
17093 case $host_os in
17094 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17095 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17096 hardcode_libdir_flag_spec='-R$libdir'
17097 ;;
17098 *)
17099 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17100 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17101 ;;
17102 esac
17103 fi
17104 else
17105 ld_shlibs=no
17106 fi
17107 ;;
17108
17109 os2*)
17110 hardcode_libdir_flag_spec='-L$libdir'
17111 hardcode_minus_L=yes
17112 allow_undefined_flag=unsupported
17113 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'
17114 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17115 ;;
17116
17117 osf3*)
17118 if test "$GCC" = yes; then
17119 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17120 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'
17121 else
17122 allow_undefined_flag=' -expect_unresolved \*'
17123 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'
17124 fi
17125 archive_cmds_need_lc='no'
17126 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17127 hardcode_libdir_separator=:
17128 ;;
17129
17130 osf4* | osf5*) # as osf3* with the addition of -msym flag
17131 if test "$GCC" = yes; then
17132 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17133 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'
17134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17135 else
17136 allow_undefined_flag=' -expect_unresolved \*'
17137 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'
17138 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~
17139 $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'
17140
17141 # Both c and cxx compiler support -rpath directly
17142 hardcode_libdir_flag_spec='-rpath $libdir'
17143 fi
17144 archive_cmds_need_lc='no'
17145 hardcode_libdir_separator=:
17146 ;;
17147
17148 solaris*)
17149 no_undefined_flag=' -z defs'
17150 if test "$GCC" = yes; then
17151 wlarc='${wl}'
17152 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17153 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17154 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17155 else
17156 case `$CC -V 2>&1` in
17157 *"Compilers 5.0"*)
17158 wlarc=''
17159 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17160 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17161 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17162 ;;
17163 *)
17164 wlarc='${wl}'
17165 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17166 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17167 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17168 ;;
17169 esac
17170 fi
17171 hardcode_libdir_flag_spec='-R$libdir'
17172 hardcode_shlibpath_var=no
17173 case $host_os in
17174 solaris2.[0-5] | solaris2.[0-5].*) ;;
17175 *)
17176 # The compiler driver will combine and reorder linker options,
17177 # but understands `-z linker_flag'. GCC discards it without `$wl',
17178 # but is careful enough not to reorder.
17179 # Supported since Solaris 2.6 (maybe 2.5.1?)
17180 if test "$GCC" = yes; then
17181 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17182 else
17183 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17184 fi
17185 ;;
17186 esac
17187 link_all_deplibs=yes
17188 ;;
17189
17190 sunos4*)
17191 if test "x$host_vendor" = xsequent; then
17192 # Use $CC to link under sequent, because it throws in some extra .o
17193 # files that make .init and .fini sections work.
17194 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17195 else
17196 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17197 fi
17198 hardcode_libdir_flag_spec='-L$libdir'
17199 hardcode_direct=yes
17200 hardcode_minus_L=yes
17201 hardcode_shlibpath_var=no
17202 ;;
17203
17204 sysv4)
17205 case $host_vendor in
17206 sni)
17207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17208 hardcode_direct=yes # is this really true???
17209 ;;
17210 siemens)
17211 ## LD is ld it makes a PLAMLIB
17212 ## CC just makes a GrossModule.
17213 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17214 reload_cmds='$CC -r -o $output$reload_objs'
17215 hardcode_direct=no
17216 ;;
17217 motorola)
17218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17219 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17220 ;;
17221 esac
17222 runpath_var='LD_RUN_PATH'
17223 hardcode_shlibpath_var=no
17224 ;;
17225
17226 sysv4.3*)
17227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17228 hardcode_shlibpath_var=no
17229 export_dynamic_flag_spec='-Bexport'
17230 ;;
17231
17232 sysv4*MP*)
17233 if test -d /usr/nec; then
17234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17235 hardcode_shlibpath_var=no
17236 runpath_var=LD_RUN_PATH
17237 hardcode_runpath_var=yes
17238 ld_shlibs=yes
17239 fi
17240 ;;
17241
17242 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17243 no_undefined_flag='${wl}-z,text'
17244 archive_cmds_need_lc=no
17245 hardcode_shlibpath_var=no
17246 runpath_var='LD_RUN_PATH'
17247
17248 if test "$GCC" = yes; then
17249 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17250 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17251 else
17252 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17253 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17254 fi
17255 ;;
17256
17257 sysv5* | sco3.2v5* | sco5v6*)
17258 # Note: We can NOT use -z defs as we might desire, because we do not
17259 # link with -lc, and that would cause any symbols used from libc to
17260 # always be unresolved, which means just about no library would
17261 # ever link correctly. If we're not using GNU ld we use -z text
17262 # though, which does catch some bad symbols but isn't as heavy-handed
17263 # as -z defs.
17264 no_undefined_flag='${wl}-z,text'
17265 allow_undefined_flag='${wl}-z,nodefs'
17266 archive_cmds_need_lc=no
17267 hardcode_shlibpath_var=no
17268 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17269 hardcode_libdir_separator=':'
17270 link_all_deplibs=yes
17271 export_dynamic_flag_spec='${wl}-Bexport'
17272 runpath_var='LD_RUN_PATH'
17273
17274 if test "$GCC" = yes; then
17275 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17276 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17277 else
17278 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17279 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17280 fi
17281 ;;
17282
17283 uts4*)
17284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17285 hardcode_libdir_flag_spec='-L$libdir'
17286 hardcode_shlibpath_var=no
17287 ;;
17288
17289 *)
17290 ld_shlibs=no
17291 ;;
17292 esac
17293
17294 if test x$host_vendor = xsni; then
17295 case $host in
17296 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17297 export_dynamic_flag_spec='${wl}-Blargedynsym'
17298 ;;
17299 esac
17300 fi
17301 fi
17302
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17304 $as_echo "$ld_shlibs" >&6; }
17305 test "$ld_shlibs" = no && can_build_shared=no
17306
17307 with_gnu_ld=$with_gnu_ld
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323 #
17324 # Do we need to explicitly link libc?
17325 #
17326 case "x$archive_cmds_need_lc" in
17327 x|xyes)
17328 # Assume -lc should be added
17329 archive_cmds_need_lc=yes
17330
17331 if test "$enable_shared" = yes && test "$GCC" = yes; then
17332 case $archive_cmds in
17333 *'~'*)
17334 # FIXME: we may have to deal with multi-command sequences.
17335 ;;
17336 '$CC '*)
17337 # Test whether the compiler implicitly links with -lc since on some
17338 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17339 # to ld, don't add -lc before -lgcc.
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17341 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17342 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17343 $as_echo_n "(cached) " >&6
17344 else
17345 $RM conftest*
17346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17347
17348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17349 (eval $ac_compile) 2>&5
17350 ac_status=$?
17351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17352 test $ac_status = 0; } 2>conftest.err; then
17353 soname=conftest
17354 lib=conftest
17355 libobjs=conftest.$ac_objext
17356 deplibs=
17357 wl=$lt_prog_compiler_wl
17358 pic_flag=$lt_prog_compiler_pic
17359 compiler_flags=-v
17360 linker_flags=-v
17361 verstring=
17362 output_objdir=.
17363 libname=conftest
17364 lt_save_allow_undefined_flag=$allow_undefined_flag
17365 allow_undefined_flag=
17366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17367 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17368 ac_status=$?
17369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17370 test $ac_status = 0; }
17371 then
17372 lt_cv_archive_cmds_need_lc=no
17373 else
17374 lt_cv_archive_cmds_need_lc=yes
17375 fi
17376 allow_undefined_flag=$lt_save_allow_undefined_flag
17377 else
17378 cat conftest.err 1>&5
17379 fi
17380 $RM conftest*
17381
17382 fi
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17384 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17385 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17386 ;;
17387 esac
17388 fi
17389 ;;
17390 esac
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17549 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17550
17551 if test "$GCC" = yes; then
17552 case $host_os in
17553 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17554 *) lt_awk_arg="/^libraries:/" ;;
17555 esac
17556 case $host_os in
17557 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17558 *) lt_sed_strip_eq="s,=/,/,g" ;;
17559 esac
17560 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17561 case $lt_search_path_spec in
17562 *\;*)
17563 # if the path contains ";" then we assume it to be the separator
17564 # otherwise default to the standard path separator (i.e. ":") - it is
17565 # assumed that no part of a normal pathname contains ";" but that should
17566 # okay in the real world where ";" in dirpaths is itself problematic.
17567 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17568 ;;
17569 *)
17570 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17571 ;;
17572 esac
17573 # Ok, now we have the path, separated by spaces, we can step through it
17574 # and add multilib dir if necessary.
17575 lt_tmp_lt_search_path_spec=
17576 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17577 for lt_sys_path in $lt_search_path_spec; do
17578 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17579 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17580 else
17581 test -d "$lt_sys_path" && \
17582 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17583 fi
17584 done
17585 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17586 BEGIN {RS=" "; FS="/|\n";} {
17587 lt_foo="";
17588 lt_count=0;
17589 for (lt_i = NF; lt_i > 0; lt_i--) {
17590 if ($lt_i != "" && $lt_i != ".") {
17591 if ($lt_i == "..") {
17592 lt_count++;
17593 } else {
17594 if (lt_count == 0) {
17595 lt_foo="/" $lt_i lt_foo;
17596 } else {
17597 lt_count--;
17598 }
17599 }
17600 }
17601 }
17602 if (lt_foo != "") { lt_freq[lt_foo]++; }
17603 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17604 }'`
17605 # AWK program above erroneously prepends '/' to C:/dos/paths
17606 # for these hosts.
17607 case $host_os in
17608 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17609 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17610 esac
17611 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17612 else
17613 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17614 fi
17615 library_names_spec=
17616 libname_spec='lib$name'
17617 soname_spec=
17618 shrext_cmds=".so"
17619 postinstall_cmds=
17620 postuninstall_cmds=
17621 finish_cmds=
17622 finish_eval=
17623 shlibpath_var=
17624 shlibpath_overrides_runpath=unknown
17625 version_type=none
17626 dynamic_linker="$host_os ld.so"
17627 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17628 need_lib_prefix=unknown
17629 hardcode_into_libs=no
17630
17631 # when you set need_version to no, make sure it does not cause -set_version
17632 # flags to be left without arguments
17633 need_version=unknown
17634
17635 case $host_os in
17636 aix3*)
17637 version_type=linux
17638 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17639 shlibpath_var=LIBPATH
17640
17641 # AIX 3 has no versioning support, so we append a major version to the name.
17642 soname_spec='${libname}${release}${shared_ext}$major'
17643 ;;
17644
17645 aix[4-9]*)
17646 version_type=linux
17647 need_lib_prefix=no
17648 need_version=no
17649 hardcode_into_libs=yes
17650 if test "$host_cpu" = ia64; then
17651 # AIX 5 supports IA64
17652 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17653 shlibpath_var=LD_LIBRARY_PATH
17654 else
17655 # With GCC up to 2.95.x, collect2 would create an import file
17656 # for dependence libraries. The import file would start with
17657 # the line `#! .'. This would cause the generated library to
17658 # depend on `.', always an invalid library. This was fixed in
17659 # development snapshots of GCC prior to 3.0.
17660 case $host_os in
17661 aix4 | aix4.[01] | aix4.[01].*)
17662 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17663 echo ' yes '
17664 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17665 :
17666 else
17667 can_build_shared=no
17668 fi
17669 ;;
17670 esac
17671 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17672 # soname into executable. Probably we can add versioning support to
17673 # collect2, so additional links can be useful in future.
17674 if test "$aix_use_runtimelinking" = yes; then
17675 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17676 # instead of lib<name>.a to let people know that these are not
17677 # typical AIX shared libraries.
17678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17679 else
17680 # We preserve .a as extension for shared libraries through AIX4.2
17681 # and later when we are not doing run time linking.
17682 library_names_spec='${libname}${release}.a $libname.a'
17683 soname_spec='${libname}${release}${shared_ext}$major'
17684 fi
17685 shlibpath_var=LIBPATH
17686 fi
17687 ;;
17688
17689 amigaos*)
17690 case $host_cpu in
17691 powerpc)
17692 # Since July 2007 AmigaOS4 officially supports .so libraries.
17693 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17695 ;;
17696 m68k)
17697 library_names_spec='$libname.ixlibrary $libname.a'
17698 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17699 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'
17700 ;;
17701 esac
17702 ;;
17703
17704 beos*)
17705 library_names_spec='${libname}${shared_ext}'
17706 dynamic_linker="$host_os ld.so"
17707 shlibpath_var=LIBRARY_PATH
17708 ;;
17709
17710 bsdi[45]*)
17711 version_type=linux
17712 need_version=no
17713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17714 soname_spec='${libname}${release}${shared_ext}$major'
17715 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17716 shlibpath_var=LD_LIBRARY_PATH
17717 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17718 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17719 # the default ld.so.conf also contains /usr/contrib/lib and
17720 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17721 # libtool to hard-code these into programs
17722 ;;
17723
17724 cygwin* | mingw* | pw32* | cegcc*)
17725 version_type=windows
17726 shrext_cmds=".dll"
17727 need_version=no
17728 need_lib_prefix=no
17729
17730 case $GCC,$host_os in
17731 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17732 library_names_spec='$libname.dll.a'
17733 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17734 postinstall_cmds='base_file=`basename \${file}`~
17735 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17736 dldir=$destdir/`dirname \$dlpath`~
17737 test -d \$dldir || mkdir -p \$dldir~
17738 $install_prog $dir/$dlname \$dldir/$dlname~
17739 chmod a+x \$dldir/$dlname~
17740 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17741 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17742 fi'
17743 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17744 dlpath=$dir/\$dldll~
17745 $RM \$dlpath'
17746 shlibpath_overrides_runpath=yes
17747
17748 case $host_os in
17749 cygwin*)
17750 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17751 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17752
17753 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17754 ;;
17755 mingw* | cegcc*)
17756 # MinGW DLLs use traditional 'lib' prefix
17757 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17758 ;;
17759 pw32*)
17760 # pw32 DLLs use 'pw' prefix rather than 'lib'
17761 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17762 ;;
17763 esac
17764 ;;
17765
17766 *)
17767 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17768 ;;
17769 esac
17770 dynamic_linker='Win32 ld.exe'
17771 # FIXME: first we should search . and the directory the executable is in
17772 shlibpath_var=PATH
17773 ;;
17774
17775 darwin* | rhapsody*)
17776 dynamic_linker="$host_os dyld"
17777 version_type=darwin
17778 need_lib_prefix=no
17779 need_version=no
17780 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17781 soname_spec='${libname}${release}${major}$shared_ext'
17782 shlibpath_overrides_runpath=yes
17783 shlibpath_var=DYLD_LIBRARY_PATH
17784 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17785
17786 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17787 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17788 ;;
17789
17790 dgux*)
17791 version_type=linux
17792 need_lib_prefix=no
17793 need_version=no
17794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17795 soname_spec='${libname}${release}${shared_ext}$major'
17796 shlibpath_var=LD_LIBRARY_PATH
17797 ;;
17798
17799 freebsd* | dragonfly*)
17800 # DragonFly does not have aout. When/if they implement a new
17801 # versioning mechanism, adjust this.
17802 if test -x /usr/bin/objformat; then
17803 objformat=`/usr/bin/objformat`
17804 else
17805 case $host_os in
17806 freebsd[23].*) objformat=aout ;;
17807 *) objformat=elf ;;
17808 esac
17809 fi
17810 version_type=freebsd-$objformat
17811 case $version_type in
17812 freebsd-elf*)
17813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17814 need_version=no
17815 need_lib_prefix=no
17816 ;;
17817 freebsd-*)
17818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17819 need_version=yes
17820 ;;
17821 esac
17822 shlibpath_var=LD_LIBRARY_PATH
17823 case $host_os in
17824 freebsd2.*)
17825 shlibpath_overrides_runpath=yes
17826 ;;
17827 freebsd3.[01]* | freebsdelf3.[01]*)
17828 shlibpath_overrides_runpath=yes
17829 hardcode_into_libs=yes
17830 ;;
17831 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17832 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17833 shlibpath_overrides_runpath=no
17834 hardcode_into_libs=yes
17835 ;;
17836 *) # from 4.6 on, and DragonFly
17837 shlibpath_overrides_runpath=yes
17838 hardcode_into_libs=yes
17839 ;;
17840 esac
17841 ;;
17842
17843 gnu*)
17844 version_type=linux
17845 need_lib_prefix=no
17846 need_version=no
17847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17848 soname_spec='${libname}${release}${shared_ext}$major'
17849 shlibpath_var=LD_LIBRARY_PATH
17850 hardcode_into_libs=yes
17851 ;;
17852
17853 haiku*)
17854 version_type=linux
17855 need_lib_prefix=no
17856 need_version=no
17857 dynamic_linker="$host_os runtime_loader"
17858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17859 soname_spec='${libname}${release}${shared_ext}$major'
17860 shlibpath_var=LIBRARY_PATH
17861 shlibpath_overrides_runpath=yes
17862 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17863 hardcode_into_libs=yes
17864 ;;
17865
17866 hpux9* | hpux10* | hpux11*)
17867 # Give a soname corresponding to the major version so that dld.sl refuses to
17868 # link against other versions.
17869 version_type=sunos
17870 need_lib_prefix=no
17871 need_version=no
17872 case $host_cpu in
17873 ia64*)
17874 shrext_cmds='.so'
17875 hardcode_into_libs=yes
17876 dynamic_linker="$host_os dld.so"
17877 shlibpath_var=LD_LIBRARY_PATH
17878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17880 soname_spec='${libname}${release}${shared_ext}$major'
17881 if test "X$HPUX_IA64_MODE" = X32; then
17882 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17883 else
17884 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17885 fi
17886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17887 ;;
17888 hppa*64*)
17889 shrext_cmds='.sl'
17890 hardcode_into_libs=yes
17891 dynamic_linker="$host_os dld.sl"
17892 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17893 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17895 soname_spec='${libname}${release}${shared_ext}$major'
17896 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17897 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17898 ;;
17899 *)
17900 shrext_cmds='.sl'
17901 dynamic_linker="$host_os dld.sl"
17902 shlibpath_var=SHLIB_PATH
17903 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17905 soname_spec='${libname}${release}${shared_ext}$major'
17906 ;;
17907 esac
17908 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17909 postinstall_cmds='chmod 555 $lib'
17910 # or fails outright, so override atomically:
17911 install_override_mode=555
17912 ;;
17913
17914 interix[3-9]*)
17915 version_type=linux
17916 need_lib_prefix=no
17917 need_version=no
17918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17919 soname_spec='${libname}${release}${shared_ext}$major'
17920 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17921 shlibpath_var=LD_LIBRARY_PATH
17922 shlibpath_overrides_runpath=no
17923 hardcode_into_libs=yes
17924 ;;
17925
17926 irix5* | irix6* | nonstopux*)
17927 case $host_os in
17928 nonstopux*) version_type=nonstopux ;;
17929 *)
17930 if test "$lt_cv_prog_gnu_ld" = yes; then
17931 version_type=linux
17932 else
17933 version_type=irix
17934 fi ;;
17935 esac
17936 need_lib_prefix=no
17937 need_version=no
17938 soname_spec='${libname}${release}${shared_ext}$major'
17939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17940 case $host_os in
17941 irix5* | nonstopux*)
17942 libsuff= shlibsuff=
17943 ;;
17944 *)
17945 case $LD in # libtool.m4 will add one of these switches to LD
17946 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17947 libsuff= shlibsuff= libmagic=32-bit;;
17948 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17949 libsuff=32 shlibsuff=N32 libmagic=N32;;
17950 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17951 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17952 *) libsuff= shlibsuff= libmagic=never-match;;
17953 esac
17954 ;;
17955 esac
17956 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17957 shlibpath_overrides_runpath=no
17958 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17959 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17960 hardcode_into_libs=yes
17961 ;;
17962
17963 # No shared lib support for Linux oldld, aout, or coff.
17964 linux*oldld* | linux*aout* | linux*coff*)
17965 dynamic_linker=no
17966 ;;
17967
17968 # This must be Linux ELF.
17969 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17970 version_type=linux
17971 need_lib_prefix=no
17972 need_version=no
17973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17974 soname_spec='${libname}${release}${shared_ext}$major'
17975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17976 shlibpath_var=LD_LIBRARY_PATH
17977 shlibpath_overrides_runpath=no
17978
17979 # Some binutils ld are patched to set DT_RUNPATH
17980 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17981 $as_echo_n "(cached) " >&6
17982 else
17983 lt_cv_shlibpath_overrides_runpath=no
17984 save_LDFLAGS=$LDFLAGS
17985 save_libdir=$libdir
17986 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17987 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17989 /* end confdefs.h. */
17990
17991 int
17992 main ()
17993 {
17994
17995 ;
17996 return 0;
17997 }
17998 _ACEOF
17999 if ac_fn_c_try_link "$LINENO"; then :
18000 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18001 lt_cv_shlibpath_overrides_runpath=yes
18002 fi
18003 fi
18004 rm -f core conftest.err conftest.$ac_objext \
18005 conftest$ac_exeext conftest.$ac_ext
18006 LDFLAGS=$save_LDFLAGS
18007 libdir=$save_libdir
18008
18009 fi
18010
18011 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18012
18013 # This implies no fast_install, which is unacceptable.
18014 # Some rework will be needed to allow for fast_install
18015 # before this can be enabled.
18016 hardcode_into_libs=yes
18017
18018 # Append ld.so.conf contents to the search path
18019 if test -f /etc/ld.so.conf; then
18020 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' ' '`
18021 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18022 fi
18023
18024 # We used to test for /lib/ld.so.1 and disable shared libraries on
18025 # powerpc, because MkLinux only supported shared libraries with the
18026 # GNU dynamic linker. Since this was broken with cross compilers,
18027 # most powerpc-linux boxes support dynamic linking these days and
18028 # people can always --disable-shared, the test was removed, and we
18029 # assume the GNU/Linux dynamic linker is in use.
18030 dynamic_linker='GNU/Linux ld.so'
18031 ;;
18032
18033 netbsd*)
18034 version_type=sunos
18035 need_lib_prefix=no
18036 need_version=no
18037 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18040 dynamic_linker='NetBSD (a.out) ld.so'
18041 else
18042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18043 soname_spec='${libname}${release}${shared_ext}$major'
18044 dynamic_linker='NetBSD ld.elf_so'
18045 fi
18046 shlibpath_var=LD_LIBRARY_PATH
18047 shlibpath_overrides_runpath=yes
18048 hardcode_into_libs=yes
18049 ;;
18050
18051 newsos6)
18052 version_type=linux
18053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18054 shlibpath_var=LD_LIBRARY_PATH
18055 shlibpath_overrides_runpath=yes
18056 ;;
18057
18058 *nto* | *qnx*)
18059 version_type=qnx
18060 need_lib_prefix=no
18061 need_version=no
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=LD_LIBRARY_PATH
18065 shlibpath_overrides_runpath=no
18066 hardcode_into_libs=yes
18067 dynamic_linker='ldqnx.so'
18068 ;;
18069
18070 openbsd*)
18071 version_type=sunos
18072 sys_lib_dlsearch_path_spec="/usr/lib"
18073 need_lib_prefix=no
18074 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18075 case $host_os in
18076 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18077 *) need_version=no ;;
18078 esac
18079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18081 shlibpath_var=LD_LIBRARY_PATH
18082 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18083 case $host_os in
18084 openbsd2.[89] | openbsd2.[89].*)
18085 shlibpath_overrides_runpath=no
18086 ;;
18087 *)
18088 shlibpath_overrides_runpath=yes
18089 ;;
18090 esac
18091 else
18092 shlibpath_overrides_runpath=yes
18093 fi
18094 ;;
18095
18096 os2*)
18097 libname_spec='$name'
18098 shrext_cmds=".dll"
18099 need_lib_prefix=no
18100 library_names_spec='$libname${shared_ext} $libname.a'
18101 dynamic_linker='OS/2 ld.exe'
18102 shlibpath_var=LIBPATH
18103 ;;
18104
18105 osf3* | osf4* | osf5*)
18106 version_type=osf
18107 need_lib_prefix=no
18108 need_version=no
18109 soname_spec='${libname}${release}${shared_ext}$major'
18110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18111 shlibpath_var=LD_LIBRARY_PATH
18112 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18113 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18114 ;;
18115
18116 rdos*)
18117 dynamic_linker=no
18118 ;;
18119
18120 solaris*)
18121 version_type=linux
18122 need_lib_prefix=no
18123 need_version=no
18124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18125 soname_spec='${libname}${release}${shared_ext}$major'
18126 shlibpath_var=LD_LIBRARY_PATH
18127 shlibpath_overrides_runpath=yes
18128 hardcode_into_libs=yes
18129 # ldd complains unless libraries are executable
18130 postinstall_cmds='chmod +x $lib'
18131 ;;
18132
18133 sunos4*)
18134 version_type=sunos
18135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18136 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18137 shlibpath_var=LD_LIBRARY_PATH
18138 shlibpath_overrides_runpath=yes
18139 if test "$with_gnu_ld" = yes; then
18140 need_lib_prefix=no
18141 fi
18142 need_version=yes
18143 ;;
18144
18145 sysv4 | sysv4.3*)
18146 version_type=linux
18147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18148 soname_spec='${libname}${release}${shared_ext}$major'
18149 shlibpath_var=LD_LIBRARY_PATH
18150 case $host_vendor in
18151 sni)
18152 shlibpath_overrides_runpath=no
18153 need_lib_prefix=no
18154 runpath_var=LD_RUN_PATH
18155 ;;
18156 siemens)
18157 need_lib_prefix=no
18158 ;;
18159 motorola)
18160 need_lib_prefix=no
18161 need_version=no
18162 shlibpath_overrides_runpath=no
18163 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18164 ;;
18165 esac
18166 ;;
18167
18168 sysv4*MP*)
18169 if test -d /usr/nec ;then
18170 version_type=linux
18171 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18172 soname_spec='$libname${shared_ext}.$major'
18173 shlibpath_var=LD_LIBRARY_PATH
18174 fi
18175 ;;
18176
18177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18178 version_type=freebsd-elf
18179 need_lib_prefix=no
18180 need_version=no
18181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18182 soname_spec='${libname}${release}${shared_ext}$major'
18183 shlibpath_var=LD_LIBRARY_PATH
18184 shlibpath_overrides_runpath=yes
18185 hardcode_into_libs=yes
18186 if test "$with_gnu_ld" = yes; then
18187 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18188 else
18189 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18190 case $host_os in
18191 sco3.2v5*)
18192 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18193 ;;
18194 esac
18195 fi
18196 sys_lib_dlsearch_path_spec='/usr/lib'
18197 ;;
18198
18199 tpf*)
18200 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18201 version_type=linux
18202 need_lib_prefix=no
18203 need_version=no
18204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18205 shlibpath_var=LD_LIBRARY_PATH
18206 shlibpath_overrides_runpath=no
18207 hardcode_into_libs=yes
18208 ;;
18209
18210 uts4*)
18211 version_type=linux
18212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18213 soname_spec='${libname}${release}${shared_ext}$major'
18214 shlibpath_var=LD_LIBRARY_PATH
18215 ;;
18216
18217 *)
18218 dynamic_linker=no
18219 ;;
18220 esac
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18222 $as_echo "$dynamic_linker" >&6; }
18223 test "$dynamic_linker" = no && can_build_shared=no
18224
18225 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18226 if test "$GCC" = yes; then
18227 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18228 fi
18229
18230 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18231 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18232 fi
18233 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18234 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18235 fi
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18329 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18330 hardcode_action=
18331 if test -n "$hardcode_libdir_flag_spec" ||
18332 test -n "$runpath_var" ||
18333 test "X$hardcode_automatic" = "Xyes" ; then
18334
18335 # We can hardcode non-existent directories.
18336 if test "$hardcode_direct" != no &&
18337 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18338 # have to relink, otherwise we might link with an installed library
18339 # when we should be linking with a yet-to-be-installed one
18340 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18341 test "$hardcode_minus_L" != no; then
18342 # Linking always hardcodes the temporary library directory.
18343 hardcode_action=relink
18344 else
18345 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18346 hardcode_action=immediate
18347 fi
18348 else
18349 # We cannot hardcode anything, or else we can only hardcode existing
18350 # directories.
18351 hardcode_action=unsupported
18352 fi
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18354 $as_echo "$hardcode_action" >&6; }
18355
18356 if test "$hardcode_action" = relink ||
18357 test "$inherit_rpath" = yes; then
18358 # Fast installation is not supported
18359 enable_fast_install=no
18360 elif test "$shlibpath_overrides_runpath" = yes ||
18361 test "$enable_shared" = no; then
18362 # Fast installation is not necessary
18363 enable_fast_install=needless
18364 fi
18365
18366
18367
18368
18369
18370
18371 if test "x$enable_dlopen" != xyes; then
18372 enable_dlopen=unknown
18373 enable_dlopen_self=unknown
18374 enable_dlopen_self_static=unknown
18375 else
18376 lt_cv_dlopen=no
18377 lt_cv_dlopen_libs=
18378
18379 case $host_os in
18380 beos*)
18381 lt_cv_dlopen="load_add_on"
18382 lt_cv_dlopen_libs=
18383 lt_cv_dlopen_self=yes
18384 ;;
18385
18386 mingw* | pw32* | cegcc*)
18387 lt_cv_dlopen="LoadLibrary"
18388 lt_cv_dlopen_libs=
18389 ;;
18390
18391 cygwin*)
18392 lt_cv_dlopen="dlopen"
18393 lt_cv_dlopen_libs=
18394 ;;
18395
18396 darwin*)
18397 # if libdl is installed we need to link against it
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18399 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18400 if ${ac_cv_lib_dl_dlopen+:} false; then :
18401 $as_echo_n "(cached) " >&6
18402 else
18403 ac_check_lib_save_LIBS=$LIBS
18404 LIBS="-ldl $LIBS"
18405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18406 /* end confdefs.h. */
18407
18408 /* Override any GCC internal prototype to avoid an error.
18409 Use char because int might match the return type of a GCC
18410 builtin and then its argument prototype would still apply. */
18411 #ifdef __cplusplus
18412 extern "C"
18413 #endif
18414 char dlopen ();
18415 int
18416 main ()
18417 {
18418 return dlopen ();
18419 ;
18420 return 0;
18421 }
18422 _ACEOF
18423 if ac_fn_c_try_link "$LINENO"; then :
18424 ac_cv_lib_dl_dlopen=yes
18425 else
18426 ac_cv_lib_dl_dlopen=no
18427 fi
18428 rm -f core conftest.err conftest.$ac_objext \
18429 conftest$ac_exeext conftest.$ac_ext
18430 LIBS=$ac_check_lib_save_LIBS
18431 fi
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18433 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18434 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18435 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18436 else
18437
18438 lt_cv_dlopen="dyld"
18439 lt_cv_dlopen_libs=
18440 lt_cv_dlopen_self=yes
18441
18442 fi
18443
18444 ;;
18445
18446 *)
18447 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18448 if test "x$ac_cv_func_shl_load" = xyes; then :
18449 lt_cv_dlopen="shl_load"
18450 else
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18452 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18453 if ${ac_cv_lib_dld_shl_load+:} false; then :
18454 $as_echo_n "(cached) " >&6
18455 else
18456 ac_check_lib_save_LIBS=$LIBS
18457 LIBS="-ldld $LIBS"
18458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18459 /* end confdefs.h. */
18460
18461 /* Override any GCC internal prototype to avoid an error.
18462 Use char because int might match the return type of a GCC
18463 builtin and then its argument prototype would still apply. */
18464 #ifdef __cplusplus
18465 extern "C"
18466 #endif
18467 char shl_load ();
18468 int
18469 main ()
18470 {
18471 return shl_load ();
18472 ;
18473 return 0;
18474 }
18475 _ACEOF
18476 if ac_fn_c_try_link "$LINENO"; then :
18477 ac_cv_lib_dld_shl_load=yes
18478 else
18479 ac_cv_lib_dld_shl_load=no
18480 fi
18481 rm -f core conftest.err conftest.$ac_objext \
18482 conftest$ac_exeext conftest.$ac_ext
18483 LIBS=$ac_check_lib_save_LIBS
18484 fi
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18486 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18487 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18488 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18489 else
18490 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18491 if test "x$ac_cv_func_dlopen" = xyes; then :
18492 lt_cv_dlopen="dlopen"
18493 else
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18495 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18496 if ${ac_cv_lib_dl_dlopen+:} false; then :
18497 $as_echo_n "(cached) " >&6
18498 else
18499 ac_check_lib_save_LIBS=$LIBS
18500 LIBS="-ldl $LIBS"
18501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18502 /* end confdefs.h. */
18503
18504 /* Override any GCC internal prototype to avoid an error.
18505 Use char because int might match the return type of a GCC
18506 builtin and then its argument prototype would still apply. */
18507 #ifdef __cplusplus
18508 extern "C"
18509 #endif
18510 char dlopen ();
18511 int
18512 main ()
18513 {
18514 return dlopen ();
18515 ;
18516 return 0;
18517 }
18518 _ACEOF
18519 if ac_fn_c_try_link "$LINENO"; then :
18520 ac_cv_lib_dl_dlopen=yes
18521 else
18522 ac_cv_lib_dl_dlopen=no
18523 fi
18524 rm -f core conftest.err conftest.$ac_objext \
18525 conftest$ac_exeext conftest.$ac_ext
18526 LIBS=$ac_check_lib_save_LIBS
18527 fi
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18529 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18530 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18531 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18532 else
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18534 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18535 if ${ac_cv_lib_svld_dlopen+:} false; then :
18536 $as_echo_n "(cached) " >&6
18537 else
18538 ac_check_lib_save_LIBS=$LIBS
18539 LIBS="-lsvld $LIBS"
18540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18541 /* end confdefs.h. */
18542
18543 /* Override any GCC internal prototype to avoid an error.
18544 Use char because int might match the return type of a GCC
18545 builtin and then its argument prototype would still apply. */
18546 #ifdef __cplusplus
18547 extern "C"
18548 #endif
18549 char dlopen ();
18550 int
18551 main ()
18552 {
18553 return dlopen ();
18554 ;
18555 return 0;
18556 }
18557 _ACEOF
18558 if ac_fn_c_try_link "$LINENO"; then :
18559 ac_cv_lib_svld_dlopen=yes
18560 else
18561 ac_cv_lib_svld_dlopen=no
18562 fi
18563 rm -f core conftest.err conftest.$ac_objext \
18564 conftest$ac_exeext conftest.$ac_ext
18565 LIBS=$ac_check_lib_save_LIBS
18566 fi
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18568 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18569 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18570 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18571 else
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18573 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18574 if ${ac_cv_lib_dld_dld_link+:} false; then :
18575 $as_echo_n "(cached) " >&6
18576 else
18577 ac_check_lib_save_LIBS=$LIBS
18578 LIBS="-ldld $LIBS"
18579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18580 /* end confdefs.h. */
18581
18582 /* Override any GCC internal prototype to avoid an error.
18583 Use char because int might match the return type of a GCC
18584 builtin and then its argument prototype would still apply. */
18585 #ifdef __cplusplus
18586 extern "C"
18587 #endif
18588 char dld_link ();
18589 int
18590 main ()
18591 {
18592 return dld_link ();
18593 ;
18594 return 0;
18595 }
18596 _ACEOF
18597 if ac_fn_c_try_link "$LINENO"; then :
18598 ac_cv_lib_dld_dld_link=yes
18599 else
18600 ac_cv_lib_dld_dld_link=no
18601 fi
18602 rm -f core conftest.err conftest.$ac_objext \
18603 conftest$ac_exeext conftest.$ac_ext
18604 LIBS=$ac_check_lib_save_LIBS
18605 fi
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18607 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18608 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18609 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18610 fi
18611
18612
18613 fi
18614
18615
18616 fi
18617
18618
18619 fi
18620
18621
18622 fi
18623
18624
18625 fi
18626
18627 ;;
18628 esac
18629
18630 if test "x$lt_cv_dlopen" != xno; then
18631 enable_dlopen=yes
18632 else
18633 enable_dlopen=no
18634 fi
18635
18636 case $lt_cv_dlopen in
18637 dlopen)
18638 save_CPPFLAGS="$CPPFLAGS"
18639 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18640
18641 save_LDFLAGS="$LDFLAGS"
18642 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18643
18644 save_LIBS="$LIBS"
18645 LIBS="$lt_cv_dlopen_libs $LIBS"
18646
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18648 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18649 if ${lt_cv_dlopen_self+:} false; then :
18650 $as_echo_n "(cached) " >&6
18651 else
18652 if test "$cross_compiling" = yes; then :
18653 lt_cv_dlopen_self=cross
18654 else
18655 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18656 lt_status=$lt_dlunknown
18657 cat > conftest.$ac_ext <<_LT_EOF
18658 #line 18658 "configure"
18659 #include "confdefs.h"
18660
18661 #if HAVE_DLFCN_H
18662 #include <dlfcn.h>
18663 #endif
18664
18665 #include <stdio.h>
18666
18667 #ifdef RTLD_GLOBAL
18668 # define LT_DLGLOBAL RTLD_GLOBAL
18669 #else
18670 # ifdef DL_GLOBAL
18671 # define LT_DLGLOBAL DL_GLOBAL
18672 # else
18673 # define LT_DLGLOBAL 0
18674 # endif
18675 #endif
18676
18677 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18678 find out it does not work in some platform. */
18679 #ifndef LT_DLLAZY_OR_NOW
18680 # ifdef RTLD_LAZY
18681 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18682 # else
18683 # ifdef DL_LAZY
18684 # define LT_DLLAZY_OR_NOW DL_LAZY
18685 # else
18686 # ifdef RTLD_NOW
18687 # define LT_DLLAZY_OR_NOW RTLD_NOW
18688 # else
18689 # ifdef DL_NOW
18690 # define LT_DLLAZY_OR_NOW DL_NOW
18691 # else
18692 # define LT_DLLAZY_OR_NOW 0
18693 # endif
18694 # endif
18695 # endif
18696 # endif
18697 #endif
18698
18699 /* When -fvisbility=hidden is used, assume the code has been annotated
18700 correspondingly for the symbols needed. */
18701 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18702 void fnord () __attribute__((visibility("default")));
18703 #endif
18704
18705 void fnord () { int i=42; }
18706 int main ()
18707 {
18708 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18709 int status = $lt_dlunknown;
18710
18711 if (self)
18712 {
18713 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18714 else
18715 {
18716 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18717 else puts (dlerror ());
18718 }
18719 /* dlclose (self); */
18720 }
18721 else
18722 puts (dlerror ());
18723
18724 return status;
18725 }
18726 _LT_EOF
18727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18728 (eval $ac_link) 2>&5
18729 ac_status=$?
18730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18731 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18732 (./conftest; exit; ) >&5 2>/dev/null
18733 lt_status=$?
18734 case x$lt_status in
18735 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18736 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18737 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18738 esac
18739 else :
18740 # compilation failed
18741 lt_cv_dlopen_self=no
18742 fi
18743 fi
18744 rm -fr conftest*
18745
18746
18747 fi
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18749 $as_echo "$lt_cv_dlopen_self" >&6; }
18750
18751 if test "x$lt_cv_dlopen_self" = xyes; then
18752 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18754 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18755 if ${lt_cv_dlopen_self_static+:} false; then :
18756 $as_echo_n "(cached) " >&6
18757 else
18758 if test "$cross_compiling" = yes; then :
18759 lt_cv_dlopen_self_static=cross
18760 else
18761 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18762 lt_status=$lt_dlunknown
18763 cat > conftest.$ac_ext <<_LT_EOF
18764 #line 18764 "configure"
18765 #include "confdefs.h"
18766
18767 #if HAVE_DLFCN_H
18768 #include <dlfcn.h>
18769 #endif
18770
18771 #include <stdio.h>
18772
18773 #ifdef RTLD_GLOBAL
18774 # define LT_DLGLOBAL RTLD_GLOBAL
18775 #else
18776 # ifdef DL_GLOBAL
18777 # define LT_DLGLOBAL DL_GLOBAL
18778 # else
18779 # define LT_DLGLOBAL 0
18780 # endif
18781 #endif
18782
18783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18784 find out it does not work in some platform. */
18785 #ifndef LT_DLLAZY_OR_NOW
18786 # ifdef RTLD_LAZY
18787 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18788 # else
18789 # ifdef DL_LAZY
18790 # define LT_DLLAZY_OR_NOW DL_LAZY
18791 # else
18792 # ifdef RTLD_NOW
18793 # define LT_DLLAZY_OR_NOW RTLD_NOW
18794 # else
18795 # ifdef DL_NOW
18796 # define LT_DLLAZY_OR_NOW DL_NOW
18797 # else
18798 # define LT_DLLAZY_OR_NOW 0
18799 # endif
18800 # endif
18801 # endif
18802 # endif
18803 #endif
18804
18805 /* When -fvisbility=hidden is used, assume the code has been annotated
18806 correspondingly for the symbols needed. */
18807 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18808 void fnord () __attribute__((visibility("default")));
18809 #endif
18810
18811 void fnord () { int i=42; }
18812 int main ()
18813 {
18814 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18815 int status = $lt_dlunknown;
18816
18817 if (self)
18818 {
18819 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18820 else
18821 {
18822 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18823 else puts (dlerror ());
18824 }
18825 /* dlclose (self); */
18826 }
18827 else
18828 puts (dlerror ());
18829
18830 return status;
18831 }
18832 _LT_EOF
18833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18834 (eval $ac_link) 2>&5
18835 ac_status=$?
18836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18837 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18838 (./conftest; exit; ) >&5 2>/dev/null
18839 lt_status=$?
18840 case x$lt_status in
18841 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18842 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18843 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18844 esac
18845 else :
18846 # compilation failed
18847 lt_cv_dlopen_self_static=no
18848 fi
18849 fi
18850 rm -fr conftest*
18851
18852
18853 fi
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18855 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18856 fi
18857
18858 CPPFLAGS="$save_CPPFLAGS"
18859 LDFLAGS="$save_LDFLAGS"
18860 LIBS="$save_LIBS"
18861 ;;
18862 esac
18863
18864 case $lt_cv_dlopen_self in
18865 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18866 *) enable_dlopen_self=unknown ;;
18867 esac
18868
18869 case $lt_cv_dlopen_self_static in
18870 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18871 *) enable_dlopen_self_static=unknown ;;
18872 esac
18873 fi
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891 striplib=
18892 old_striplib=
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18894 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18895 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18896 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18897 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18899 $as_echo "yes" >&6; }
18900 else
18901 # FIXME - insert some real tests, host_os isn't really good enough
18902 case $host_os in
18903 darwin*)
18904 if test -n "$STRIP" ; then
18905 striplib="$STRIP -x"
18906 old_striplib="$STRIP -S"
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18908 $as_echo "yes" >&6; }
18909 else
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18911 $as_echo "no" >&6; }
18912 fi
18913 ;;
18914 *)
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18916 $as_echo "no" >&6; }
18917 ;;
18918 esac
18919 fi
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932 # Report which library types will actually be built
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18934 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18936 $as_echo "$can_build_shared" >&6; }
18937
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18939 $as_echo_n "checking whether to build shared libraries... " >&6; }
18940 test "$can_build_shared" = "no" && enable_shared=no
18941
18942 # On AIX, shared libraries and static libraries use the same namespace, and
18943 # are all built from PIC.
18944 case $host_os in
18945 aix3*)
18946 test "$enable_shared" = yes && enable_static=no
18947 if test -n "$RANLIB"; then
18948 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18949 postinstall_cmds='$RANLIB $lib'
18950 fi
18951 ;;
18952
18953 aix[4-9]*)
18954 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18955 test "$enable_shared" = yes && enable_static=no
18956 fi
18957 ;;
18958 esac
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18960 $as_echo "$enable_shared" >&6; }
18961
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18963 $as_echo_n "checking whether to build static libraries... " >&6; }
18964 # Make sure either enable_shared or enable_static is yes.
18965 test "$enable_shared" = yes || enable_static=yes
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18967 $as_echo "$enable_static" >&6; }
18968
18969
18970
18971
18972 fi
18973 ac_ext=cpp
18974 ac_cpp='$CXXCPP $CPPFLAGS'
18975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18978
18979 CC="$lt_save_CC"
18980
18981 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18982 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18983 (test "X$CXX" != "Xg++"))) ; then
18984 ac_ext=cpp
18985 ac_cpp='$CXXCPP $CPPFLAGS'
18986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18990 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18991 if test -z "$CXXCPP"; then
18992 if ${ac_cv_prog_CXXCPP+:} false; then :
18993 $as_echo_n "(cached) " >&6
18994 else
18995 # Double quotes because CXXCPP needs to be expanded
18996 for CXXCPP in "$CXX -E" "/lib/cpp"
18997 do
18998 ac_preproc_ok=false
18999 for ac_cxx_preproc_warn_flag in '' yes
19000 do
19001 # Use a header file that comes with gcc, so configuring glibc
19002 # with a fresh cross-compiler works.
19003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19004 # <limits.h> exists even on freestanding compilers.
19005 # On the NeXT, cc -E runs the code through the compiler's parser,
19006 # not just through cpp. "Syntax error" is here to catch this case.
19007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19008 /* end confdefs.h. */
19009 #ifdef __STDC__
19010 # include <limits.h>
19011 #else
19012 # include <assert.h>
19013 #endif
19014 Syntax error
19015 _ACEOF
19016 if ac_fn_cxx_try_cpp "$LINENO"; then :
19017
19018 else
19019 # Broken: fails on valid input.
19020 continue
19021 fi
19022 rm -f conftest.err conftest.i conftest.$ac_ext
19023
19024 # OK, works on sane cases. Now check whether nonexistent headers
19025 # can be detected and how.
19026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19027 /* end confdefs.h. */
19028 #include <ac_nonexistent.h>
19029 _ACEOF
19030 if ac_fn_cxx_try_cpp "$LINENO"; then :
19031 # Broken: success on invalid input.
19032 continue
19033 else
19034 # Passes both tests.
19035 ac_preproc_ok=:
19036 break
19037 fi
19038 rm -f conftest.err conftest.i conftest.$ac_ext
19039
19040 done
19041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19042 rm -f conftest.i conftest.err conftest.$ac_ext
19043 if $ac_preproc_ok; then :
19044 break
19045 fi
19046
19047 done
19048 ac_cv_prog_CXXCPP=$CXXCPP
19049
19050 fi
19051 CXXCPP=$ac_cv_prog_CXXCPP
19052 else
19053 ac_cv_prog_CXXCPP=$CXXCPP
19054 fi
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19056 $as_echo "$CXXCPP" >&6; }
19057 ac_preproc_ok=false
19058 for ac_cxx_preproc_warn_flag in '' yes
19059 do
19060 # Use a header file that comes with gcc, so configuring glibc
19061 # with a fresh cross-compiler works.
19062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19063 # <limits.h> exists even on freestanding compilers.
19064 # On the NeXT, cc -E runs the code through the compiler's parser,
19065 # not just through cpp. "Syntax error" is here to catch this case.
19066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19067 /* end confdefs.h. */
19068 #ifdef __STDC__
19069 # include <limits.h>
19070 #else
19071 # include <assert.h>
19072 #endif
19073 Syntax error
19074 _ACEOF
19075 if ac_fn_cxx_try_cpp "$LINENO"; then :
19076
19077 else
19078 # Broken: fails on valid input.
19079 continue
19080 fi
19081 rm -f conftest.err conftest.i conftest.$ac_ext
19082
19083 # OK, works on sane cases. Now check whether nonexistent headers
19084 # can be detected and how.
19085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19086 /* end confdefs.h. */
19087 #include <ac_nonexistent.h>
19088 _ACEOF
19089 if ac_fn_cxx_try_cpp "$LINENO"; then :
19090 # Broken: success on invalid input.
19091 continue
19092 else
19093 # Passes both tests.
19094 ac_preproc_ok=:
19095 break
19096 fi
19097 rm -f conftest.err conftest.i conftest.$ac_ext
19098
19099 done
19100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19101 rm -f conftest.i conftest.err conftest.$ac_ext
19102 if $ac_preproc_ok; then :
19103
19104 else
19105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19107 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19108 See \`config.log' for more details" "$LINENO" 5; }
19109 fi
19110
19111 ac_ext=cpp
19112 ac_cpp='$CXXCPP $CPPFLAGS'
19113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19116
19117 else
19118 _lt_caught_CXX_error=yes
19119 fi
19120
19121 ac_ext=cpp
19122 ac_cpp='$CXXCPP $CPPFLAGS'
19123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19126
19127 archive_cmds_need_lc_CXX=no
19128 allow_undefined_flag_CXX=
19129 always_export_symbols_CXX=no
19130 archive_expsym_cmds_CXX=
19131 compiler_needs_object_CXX=no
19132 export_dynamic_flag_spec_CXX=
19133 hardcode_direct_CXX=no
19134 hardcode_direct_absolute_CXX=no
19135 hardcode_libdir_flag_spec_CXX=
19136 hardcode_libdir_flag_spec_ld_CXX=
19137 hardcode_libdir_separator_CXX=
19138 hardcode_minus_L_CXX=no
19139 hardcode_shlibpath_var_CXX=unsupported
19140 hardcode_automatic_CXX=no
19141 inherit_rpath_CXX=no
19142 module_cmds_CXX=
19143 module_expsym_cmds_CXX=
19144 link_all_deplibs_CXX=unknown
19145 old_archive_cmds_CXX=$old_archive_cmds
19146 reload_flag_CXX=$reload_flag
19147 reload_cmds_CXX=$reload_cmds
19148 no_undefined_flag_CXX=
19149 whole_archive_flag_spec_CXX=
19150 enable_shared_with_static_runtimes_CXX=no
19151
19152 # Source file extension for C++ test sources.
19153 ac_ext=cpp
19154
19155 # Object file extension for compiled C++ test sources.
19156 objext=o
19157 objext_CXX=$objext
19158
19159 # No sense in running all these tests if we already determined that
19160 # the CXX compiler isn't working. Some variables (like enable_shared)
19161 # are currently assumed to apply to all compilers on this platform,
19162 # and will be corrupted by setting them based on a non-working compiler.
19163 if test "$_lt_caught_CXX_error" != yes; then
19164 # Code to be used in simple compile tests
19165 lt_simple_compile_test_code="int some_variable = 0;"
19166
19167 # Code to be used in simple link tests
19168 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19169
19170 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19171
19172
19173
19174
19175
19176
19177 # If no C compiler was specified, use CC.
19178 LTCC=${LTCC-"$CC"}
19179
19180 # If no C compiler flags were specified, use CFLAGS.
19181 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19182
19183 # Allow CC to be a program name with arguments.
19184 compiler=$CC
19185
19186
19187 # save warnings/boilerplate of simple test code
19188 ac_outfile=conftest.$ac_objext
19189 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19190 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19191 _lt_compiler_boilerplate=`cat conftest.err`
19192 $RM conftest*
19193
19194 ac_outfile=conftest.$ac_objext
19195 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19196 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19197 _lt_linker_boilerplate=`cat conftest.err`
19198 $RM -r conftest*
19199
19200
19201 # Allow CC to be a program name with arguments.
19202 lt_save_CC=$CC
19203 lt_save_LD=$LD
19204 lt_save_GCC=$GCC
19205 GCC=$GXX
19206 lt_save_with_gnu_ld=$with_gnu_ld
19207 lt_save_path_LD=$lt_cv_path_LD
19208 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19209 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19210 else
19211 $as_unset lt_cv_prog_gnu_ld
19212 fi
19213 if test -n "${lt_cv_path_LDCXX+set}"; then
19214 lt_cv_path_LD=$lt_cv_path_LDCXX
19215 else
19216 $as_unset lt_cv_path_LD
19217 fi
19218 test -z "${LDCXX+set}" || LD=$LDCXX
19219 CC=${CXX-"c++"}
19220 compiler=$CC
19221 compiler_CXX=$CC
19222 for cc_temp in $compiler""; do
19223 case $cc_temp in
19224 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19225 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19226 \-*) ;;
19227 *) break;;
19228 esac
19229 done
19230 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19231
19232
19233 if test -n "$compiler"; then
19234 # We don't want -fno-exception when compiling C++ code, so set the
19235 # no_builtin_flag separately
19236 if test "$GXX" = yes; then
19237 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19238 else
19239 lt_prog_compiler_no_builtin_flag_CXX=
19240 fi
19241
19242 if test "$GXX" = yes; then
19243 # Set up default GNU C++ configuration
19244
19245
19246
19247 # Check whether --with-gnu-ld was given.
19248 if test "${with_gnu_ld+set}" = set; then :
19249 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19250 else
19251 with_gnu_ld=no
19252 fi
19253
19254 ac_prog=ld
19255 if test "$GCC" = yes; then
19256 # Check if gcc -print-prog-name=ld gives a path.
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19258 $as_echo_n "checking for ld used by $CC... " >&6; }
19259 case $host in
19260 *-*-mingw*)
19261 # gcc leaves a trailing carriage return which upsets mingw
19262 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19263 *)
19264 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19265 esac
19266 case $ac_prog in
19267 # Accept absolute paths.
19268 [\\/]* | ?:[\\/]*)
19269 re_direlt='/[^/][^/]*/\.\./'
19270 # Canonicalize the pathname of ld
19271 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19272 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19273 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19274 done
19275 test -z "$LD" && LD="$ac_prog"
19276 ;;
19277 "")
19278 # If it fails, then pretend we aren't using GCC.
19279 ac_prog=ld
19280 ;;
19281 *)
19282 # If it is relative, then search for the first ld in PATH.
19283 with_gnu_ld=unknown
19284 ;;
19285 esac
19286 elif test "$with_gnu_ld" = yes; then
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19288 $as_echo_n "checking for GNU ld... " >&6; }
19289 else
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19291 $as_echo_n "checking for non-GNU ld... " >&6; }
19292 fi
19293 if ${lt_cv_path_LD+:} false; then :
19294 $as_echo_n "(cached) " >&6
19295 else
19296 if test -z "$LD"; then
19297 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19298 for ac_dir in $PATH; do
19299 IFS="$lt_save_ifs"
19300 test -z "$ac_dir" && ac_dir=.
19301 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19302 lt_cv_path_LD="$ac_dir/$ac_prog"
19303 # Check to see if the program is GNU ld. I'd rather use --version,
19304 # but apparently some variants of GNU ld only accept -v.
19305 # Break only if it was the GNU/non-GNU ld that we prefer.
19306 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19307 *GNU* | *'with BFD'*)
19308 test "$with_gnu_ld" != no && break
19309 ;;
19310 *)
19311 test "$with_gnu_ld" != yes && break
19312 ;;
19313 esac
19314 fi
19315 done
19316 IFS="$lt_save_ifs"
19317 else
19318 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19319 fi
19320 fi
19321
19322 LD="$lt_cv_path_LD"
19323 if test -n "$LD"; then
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19325 $as_echo "$LD" >&6; }
19326 else
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19328 $as_echo "no" >&6; }
19329 fi
19330 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19332 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19333 if ${lt_cv_prog_gnu_ld+:} false; then :
19334 $as_echo_n "(cached) " >&6
19335 else
19336 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19337 case `$LD -v 2>&1 </dev/null` in
19338 *GNU* | *'with BFD'*)
19339 lt_cv_prog_gnu_ld=yes
19340 ;;
19341 *)
19342 lt_cv_prog_gnu_ld=no
19343 ;;
19344 esac
19345 fi
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19347 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19348 with_gnu_ld=$lt_cv_prog_gnu_ld
19349
19350
19351
19352
19353
19354
19355
19356 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19357 # archiving commands below assume that GNU ld is being used.
19358 if test "$with_gnu_ld" = yes; then
19359 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19360 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'
19361
19362 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19363 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19364
19365 # If archive_cmds runs LD, not CC, wlarc should be empty
19366 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19367 # investigate it a little bit more. (MM)
19368 wlarc='${wl}'
19369
19370 # ancient GNU ld didn't support --whole-archive et. al.
19371 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19372 $GREP 'no-whole-archive' > /dev/null; then
19373 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19374 else
19375 whole_archive_flag_spec_CXX=
19376 fi
19377 else
19378 with_gnu_ld=no
19379 wlarc=
19380
19381 # A generic and very simple default shared library creation
19382 # command for GNU C++ for the case where it uses the native
19383 # linker, instead of GNU ld. If possible, this setting should
19384 # overridden to take advantage of the native linker features on
19385 # the platform it is being used on.
19386 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19387 fi
19388
19389 # Commands to make compiler produce verbose output that lists
19390 # what "hidden" libraries, object files and flags are used when
19391 # linking a shared library.
19392 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19393
19394 else
19395 GXX=no
19396 with_gnu_ld=no
19397 wlarc=
19398 fi
19399
19400 # PORTME: fill in a description of your system's C++ link characteristics
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19402 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19403 ld_shlibs_CXX=yes
19404 case $host_os in
19405 aix3*)
19406 # FIXME: insert proper C++ library support
19407 ld_shlibs_CXX=no
19408 ;;
19409 aix[4-9]*)
19410 if test "$host_cpu" = ia64; then
19411 # On IA64, the linker does run time linking by default, so we don't
19412 # have to do anything special.
19413 aix_use_runtimelinking=no
19414 exp_sym_flag='-Bexport'
19415 no_entry_flag=""
19416 else
19417 aix_use_runtimelinking=no
19418
19419 # Test if we are trying to use run time linking or normal
19420 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19421 # need to do runtime linking.
19422 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19423 for ld_flag in $LDFLAGS; do
19424 case $ld_flag in
19425 *-brtl*)
19426 aix_use_runtimelinking=yes
19427 break
19428 ;;
19429 esac
19430 done
19431 ;;
19432 esac
19433
19434 exp_sym_flag='-bexport'
19435 no_entry_flag='-bnoentry'
19436 fi
19437
19438 # When large executables or shared objects are built, AIX ld can
19439 # have problems creating the table of contents. If linking a library
19440 # or program results in "error TOC overflow" add -mminimal-toc to
19441 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19442 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19443
19444 archive_cmds_CXX=''
19445 hardcode_direct_CXX=yes
19446 hardcode_direct_absolute_CXX=yes
19447 hardcode_libdir_separator_CXX=':'
19448 link_all_deplibs_CXX=yes
19449 file_list_spec_CXX='${wl}-f,'
19450
19451 if test "$GXX" = yes; then
19452 case $host_os in aix4.[012]|aix4.[012].*)
19453 # We only want to do this on AIX 4.2 and lower, the check
19454 # below for broken collect2 doesn't work under 4.3+
19455 collect2name=`${CC} -print-prog-name=collect2`
19456 if test -f "$collect2name" &&
19457 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19458 then
19459 # We have reworked collect2
19460 :
19461 else
19462 # We have old collect2
19463 hardcode_direct_CXX=unsupported
19464 # It fails to find uninstalled libraries when the uninstalled
19465 # path is not listed in the libpath. Setting hardcode_minus_L
19466 # to unsupported forces relinking
19467 hardcode_minus_L_CXX=yes
19468 hardcode_libdir_flag_spec_CXX='-L$libdir'
19469 hardcode_libdir_separator_CXX=
19470 fi
19471 esac
19472 shared_flag='-shared'
19473 if test "$aix_use_runtimelinking" = yes; then
19474 shared_flag="$shared_flag "'${wl}-G'
19475 fi
19476 else
19477 # not using gcc
19478 if test "$host_cpu" = ia64; then
19479 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19480 # chokes on -Wl,-G. The following line is correct:
19481 shared_flag='-G'
19482 else
19483 if test "$aix_use_runtimelinking" = yes; then
19484 shared_flag='${wl}-G'
19485 else
19486 shared_flag='${wl}-bM:SRE'
19487 fi
19488 fi
19489 fi
19490
19491 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19492 # It seems that -bexpall does not export symbols beginning with
19493 # underscore (_), so it is better to generate a list of symbols to
19494 # export.
19495 always_export_symbols_CXX=yes
19496 if test "$aix_use_runtimelinking" = yes; then
19497 # Warning - without using the other runtime loading flags (-brtl),
19498 # -berok will link without error, but may produce a broken library.
19499 allow_undefined_flag_CXX='-berok'
19500 # Determine the default libpath from the value encoded in an empty
19501 # executable.
19502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19503 /* end confdefs.h. */
19504
19505 int
19506 main ()
19507 {
19508
19509 ;
19510 return 0;
19511 }
19512 _ACEOF
19513 if ac_fn_cxx_try_link "$LINENO"; then :
19514
19515 lt_aix_libpath_sed='
19516 /Import File Strings/,/^$/ {
19517 /^0/ {
19518 s/^0 *\(.*\)$/\1/
19519 p
19520 }
19521 }'
19522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19523 # Check for a 64-bit object if we didn't find anything.
19524 if test -z "$aix_libpath"; then
19525 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19526 fi
19527 fi
19528 rm -f core conftest.err conftest.$ac_objext \
19529 conftest$ac_exeext conftest.$ac_ext
19530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19531
19532 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19533
19534 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"
19535 else
19536 if test "$host_cpu" = ia64; then
19537 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19538 allow_undefined_flag_CXX="-z nodefs"
19539 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"
19540 else
19541 # Determine the default libpath from the value encoded in an
19542 # empty executable.
19543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19544 /* end confdefs.h. */
19545
19546 int
19547 main ()
19548 {
19549
19550 ;
19551 return 0;
19552 }
19553 _ACEOF
19554 if ac_fn_cxx_try_link "$LINENO"; then :
19555
19556 lt_aix_libpath_sed='
19557 /Import File Strings/,/^$/ {
19558 /^0/ {
19559 s/^0 *\(.*\)$/\1/
19560 p
19561 }
19562 }'
19563 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19564 # Check for a 64-bit object if we didn't find anything.
19565 if test -z "$aix_libpath"; then
19566 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19567 fi
19568 fi
19569 rm -f core conftest.err conftest.$ac_objext \
19570 conftest$ac_exeext conftest.$ac_ext
19571 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19572
19573 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19574 # Warning - without using the other run time loading flags,
19575 # -berok will link without error, but may produce a broken library.
19576 no_undefined_flag_CXX=' ${wl}-bernotok'
19577 allow_undefined_flag_CXX=' ${wl}-berok'
19578 if test "$with_gnu_ld" = yes; then
19579 # We only use this code for GNU lds that support --whole-archive.
19580 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19581 else
19582 # Exported symbols can be pulled into shared objects from archives
19583 whole_archive_flag_spec_CXX='$convenience'
19584 fi
19585 archive_cmds_need_lc_CXX=yes
19586 # This is similar to how AIX traditionally builds its shared
19587 # libraries.
19588 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'
19589 fi
19590 fi
19591 ;;
19592
19593 beos*)
19594 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19595 allow_undefined_flag_CXX=unsupported
19596 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19597 # support --undefined. This deserves some investigation. FIXME
19598 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19599 else
19600 ld_shlibs_CXX=no
19601 fi
19602 ;;
19603
19604 chorus*)
19605 case $cc_basename in
19606 *)
19607 # FIXME: insert proper C++ library support
19608 ld_shlibs_CXX=no
19609 ;;
19610 esac
19611 ;;
19612
19613 cygwin* | mingw* | pw32* | cegcc*)
19614 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19615 # as there is no search path for DLLs.
19616 hardcode_libdir_flag_spec_CXX='-L$libdir'
19617 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19618 allow_undefined_flag_CXX=unsupported
19619 always_export_symbols_CXX=no
19620 enable_shared_with_static_runtimes_CXX=yes
19621
19622 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19623 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'
19624 # If the export-symbols file already is a .def file (1st line
19625 # is EXPORTS), use it as is; otherwise, prepend...
19626 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19627 cp $export_symbols $output_objdir/$soname.def;
19628 else
19629 echo EXPORTS > $output_objdir/$soname.def;
19630 cat $export_symbols >> $output_objdir/$soname.def;
19631 fi~
19632 $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'
19633 else
19634 ld_shlibs_CXX=no
19635 fi
19636 ;;
19637 darwin* | rhapsody*)
19638
19639
19640 archive_cmds_need_lc_CXX=no
19641 hardcode_direct_CXX=no
19642 hardcode_automatic_CXX=yes
19643 hardcode_shlibpath_var_CXX=unsupported
19644 if test "$lt_cv_ld_force_load" = "yes"; then
19645 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\"`'
19646 else
19647 whole_archive_flag_spec_CXX=''
19648 fi
19649 link_all_deplibs_CXX=yes
19650 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19651 case $cc_basename in
19652 ifort*) _lt_dar_can_shared=yes ;;
19653 *) _lt_dar_can_shared=$GCC ;;
19654 esac
19655 if test "$_lt_dar_can_shared" = "yes"; then
19656 output_verbose_link_cmd=func_echo_all
19657 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}"
19658 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19659 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}"
19660 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}"
19661 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19662 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}"
19663 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}"
19664 fi
19665
19666 else
19667 ld_shlibs_CXX=no
19668 fi
19669
19670 ;;
19671
19672 dgux*)
19673 case $cc_basename in
19674 ec++*)
19675 # FIXME: insert proper C++ library support
19676 ld_shlibs_CXX=no
19677 ;;
19678 ghcx*)
19679 # Green Hills C++ Compiler
19680 # FIXME: insert proper C++ library support
19681 ld_shlibs_CXX=no
19682 ;;
19683 *)
19684 # FIXME: insert proper C++ library support
19685 ld_shlibs_CXX=no
19686 ;;
19687 esac
19688 ;;
19689
19690 freebsd2.*)
19691 # C++ shared libraries reported to be fairly broken before
19692 # switch to ELF
19693 ld_shlibs_CXX=no
19694 ;;
19695
19696 freebsd-elf*)
19697 archive_cmds_need_lc_CXX=no
19698 ;;
19699
19700 freebsd* | dragonfly*)
19701 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19702 # conventions
19703 ld_shlibs_CXX=yes
19704 ;;
19705
19706 gnu*)
19707 ;;
19708
19709 haiku*)
19710 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19711 link_all_deplibs_CXX=yes
19712 ;;
19713
19714 hpux9*)
19715 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19716 hardcode_libdir_separator_CXX=:
19717 export_dynamic_flag_spec_CXX='${wl}-E'
19718 hardcode_direct_CXX=yes
19719 hardcode_minus_L_CXX=yes # Not in the search PATH,
19720 # but as the default
19721 # location of the library.
19722
19723 case $cc_basename in
19724 CC*)
19725 # FIXME: insert proper C++ library support
19726 ld_shlibs_CXX=no
19727 ;;
19728 aCC*)
19729 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'
19730 # Commands to make compiler produce verbose output that lists
19731 # what "hidden" libraries, object files and flags are used when
19732 # linking a shared library.
19733 #
19734 # There doesn't appear to be a way to prevent this compiler from
19735 # explicitly linking system object files so we need to strip them
19736 # from the output so that they don't get included in the library
19737 # dependencies.
19738 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"'
19739 ;;
19740 *)
19741 if test "$GXX" = yes; then
19742 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'
19743 else
19744 # FIXME: insert proper C++ library support
19745 ld_shlibs_CXX=no
19746 fi
19747 ;;
19748 esac
19749 ;;
19750
19751 hpux10*|hpux11*)
19752 if test $with_gnu_ld = no; then
19753 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19754 hardcode_libdir_separator_CXX=:
19755
19756 case $host_cpu in
19757 hppa*64*|ia64*)
19758 ;;
19759 *)
19760 export_dynamic_flag_spec_CXX='${wl}-E'
19761 ;;
19762 esac
19763 fi
19764 case $host_cpu in
19765 hppa*64*|ia64*)
19766 hardcode_direct_CXX=no
19767 hardcode_shlibpath_var_CXX=no
19768 ;;
19769 *)
19770 hardcode_direct_CXX=yes
19771 hardcode_direct_absolute_CXX=yes
19772 hardcode_minus_L_CXX=yes # Not in the search PATH,
19773 # but as the default
19774 # location of the library.
19775 ;;
19776 esac
19777
19778 case $cc_basename in
19779 CC*)
19780 # FIXME: insert proper C++ library support
19781 ld_shlibs_CXX=no
19782 ;;
19783 aCC*)
19784 case $host_cpu in
19785 hppa*64*)
19786 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19787 ;;
19788 ia64*)
19789 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19790 ;;
19791 *)
19792 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19793 ;;
19794 esac
19795 # Commands to make compiler produce verbose output that lists
19796 # what "hidden" libraries, object files and flags are used when
19797 # linking a shared library.
19798 #
19799 # There doesn't appear to be a way to prevent this compiler from
19800 # explicitly linking system object files so we need to strip them
19801 # from the output so that they don't get included in the library
19802 # dependencies.
19803 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"'
19804 ;;
19805 *)
19806 if test "$GXX" = yes; then
19807 if test $with_gnu_ld = no; then
19808 case $host_cpu in
19809 hppa*64*)
19810 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19811 ;;
19812 ia64*)
19813 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19814 ;;
19815 *)
19816 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'
19817 ;;
19818 esac
19819 fi
19820 else
19821 # FIXME: insert proper C++ library support
19822 ld_shlibs_CXX=no
19823 fi
19824 ;;
19825 esac
19826 ;;
19827
19828 interix[3-9]*)
19829 hardcode_direct_CXX=no
19830 hardcode_shlibpath_var_CXX=no
19831 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19832 export_dynamic_flag_spec_CXX='${wl}-E'
19833 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19834 # Instead, shared libraries are loaded at an image base (0x10000000 by
19835 # default) and relocated if they conflict, which is a slow very memory
19836 # consuming and fragmenting process. To avoid this, we pick a random,
19837 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19838 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19839 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'
19840 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'
19841 ;;
19842 irix5* | irix6*)
19843 case $cc_basename in
19844 CC*)
19845 # SGI C++
19846 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'
19847
19848 # Archives containing C++ object files must be created using
19849 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19850 # necessary to make sure instantiated templates are included
19851 # in the archive.
19852 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19853 ;;
19854 *)
19855 if test "$GXX" = yes; then
19856 if test "$with_gnu_ld" = no; then
19857 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'
19858 else
19859 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'
19860 fi
19861 fi
19862 link_all_deplibs_CXX=yes
19863 ;;
19864 esac
19865 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19866 hardcode_libdir_separator_CXX=:
19867 inherit_rpath_CXX=yes
19868 ;;
19869
19870 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19871 case $cc_basename in
19872 KCC*)
19873 # Kuck and Associates, Inc. (KAI) C++ Compiler
19874
19875 # KCC will only create a shared library if the output file
19876 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19877 # to its proper name (with version) after linking.
19878 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'
19879 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'
19880 # Commands to make compiler produce verbose output that lists
19881 # what "hidden" libraries, object files and flags are used when
19882 # linking a shared library.
19883 #
19884 # There doesn't appear to be a way to prevent this compiler from
19885 # explicitly linking system object files so we need to strip them
19886 # from the output so that they don't get included in the library
19887 # dependencies.
19888 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"'
19889
19890 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19891 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19892
19893 # Archives containing C++ object files must be created using
19894 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19895 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19896 ;;
19897 icpc* | ecpc* )
19898 # Intel C++
19899 with_gnu_ld=yes
19900 # version 8.0 and above of icpc choke on multiply defined symbols
19901 # if we add $predep_objects and $postdep_objects, however 7.1 and
19902 # earlier do not add the objects themselves.
19903 case `$CC -V 2>&1` in
19904 *"Version 7."*)
19905 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19906 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'
19907 ;;
19908 *) # Version 8.0 or newer
19909 tmp_idyn=
19910 case $host_cpu in
19911 ia64*) tmp_idyn=' -i_dynamic';;
19912 esac
19913 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19914 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'
19915 ;;
19916 esac
19917 archive_cmds_need_lc_CXX=no
19918 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19919 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19920 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19921 ;;
19922 pgCC* | pgcpp*)
19923 # Portland Group C++ compiler
19924 case `$CC -V` in
19925 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19926 prelink_cmds_CXX='tpldir=Template.dir~
19927 rm -rf $tpldir~
19928 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19929 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19930 old_archive_cmds_CXX='tpldir=Template.dir~
19931 rm -rf $tpldir~
19932 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19933 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19934 $RANLIB $oldlib'
19935 archive_cmds_CXX='tpldir=Template.dir~
19936 rm -rf $tpldir~
19937 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19938 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19939 archive_expsym_cmds_CXX='tpldir=Template.dir~
19940 rm -rf $tpldir~
19941 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19942 $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'
19943 ;;
19944 *) # Version 6 and above use weak symbols
19945 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19946 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'
19947 ;;
19948 esac
19949
19950 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19951 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19952 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'
19953 ;;
19954 cxx*)
19955 # Compaq C++
19956 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19957 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'
19958
19959 runpath_var=LD_RUN_PATH
19960 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19961 hardcode_libdir_separator_CXX=:
19962
19963 # Commands to make compiler produce verbose output that lists
19964 # what "hidden" libraries, object files and flags are used when
19965 # linking a shared library.
19966 #
19967 # There doesn't appear to be a way to prevent this compiler from
19968 # explicitly linking system object files so we need to strip them
19969 # from the output so that they don't get included in the library
19970 # dependencies.
19971 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'
19972 ;;
19973 xl* | mpixl* | bgxl*)
19974 # IBM XL 8.0 on PPC, with GNU ld
19975 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19976 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19977 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19978 if test "x$supports_anon_versioning" = xyes; then
19979 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19980 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19981 echo "local: *; };" >> $output_objdir/$libname.ver~
19982 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19983 fi
19984 ;;
19985 *)
19986 case `$CC -V 2>&1 | sed 5q` in
19987 *Sun\ C*)
19988 # Sun C++ 5.9
19989 no_undefined_flag_CXX=' -zdefs'
19990 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19991 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'
19992 hardcode_libdir_flag_spec_CXX='-R$libdir'
19993 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'
19994 compiler_needs_object_CXX=yes
19995
19996 # Not sure whether something based on
19997 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19998 # would be better.
19999 output_verbose_link_cmd='func_echo_all'
20000
20001 # Archives containing C++ object files must be created using
20002 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20003 # necessary to make sure instantiated templates are included
20004 # in the archive.
20005 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20006 ;;
20007 esac
20008 ;;
20009 esac
20010 ;;
20011
20012 lynxos*)
20013 # FIXME: insert proper C++ library support
20014 ld_shlibs_CXX=no
20015 ;;
20016
20017 m88k*)
20018 # FIXME: insert proper C++ library support
20019 ld_shlibs_CXX=no
20020 ;;
20021
20022 mvs*)
20023 case $cc_basename in
20024 cxx*)
20025 # FIXME: insert proper C++ library support
20026 ld_shlibs_CXX=no
20027 ;;
20028 *)
20029 # FIXME: insert proper C++ library support
20030 ld_shlibs_CXX=no
20031 ;;
20032 esac
20033 ;;
20034
20035 netbsd*)
20036 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20037 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20038 wlarc=
20039 hardcode_libdir_flag_spec_CXX='-R$libdir'
20040 hardcode_direct_CXX=yes
20041 hardcode_shlibpath_var_CXX=no
20042 fi
20043 # Workaround some broken pre-1.5 toolchains
20044 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20045 ;;
20046
20047 *nto* | *qnx*)
20048 ld_shlibs_CXX=yes
20049 ;;
20050
20051 openbsd2*)
20052 # C++ shared libraries are fairly broken
20053 ld_shlibs_CXX=no
20054 ;;
20055
20056 openbsd*)
20057 if test -f /usr/libexec/ld.so; then
20058 hardcode_direct_CXX=yes
20059 hardcode_shlibpath_var_CXX=no
20060 hardcode_direct_absolute_CXX=yes
20061 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20062 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20063 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20064 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20065 export_dynamic_flag_spec_CXX='${wl}-E'
20066 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20067 fi
20068 output_verbose_link_cmd=func_echo_all
20069 else
20070 ld_shlibs_CXX=no
20071 fi
20072 ;;
20073
20074 osf3* | osf4* | osf5*)
20075 case $cc_basename in
20076 KCC*)
20077 # Kuck and Associates, Inc. (KAI) C++ Compiler
20078
20079 # KCC will only create a shared library if the output file
20080 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20081 # to its proper name (with version) after linking.
20082 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'
20083
20084 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20085 hardcode_libdir_separator_CXX=:
20086
20087 # Archives containing C++ object files must be created using
20088 # the KAI C++ compiler.
20089 case $host in
20090 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20091 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20092 esac
20093 ;;
20094 RCC*)
20095 # Rational C++ 2.4.1
20096 # FIXME: insert proper C++ library support
20097 ld_shlibs_CXX=no
20098 ;;
20099 cxx*)
20100 case $host in
20101 osf3*)
20102 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20103 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'
20104 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20105 ;;
20106 *)
20107 allow_undefined_flag_CXX=' -expect_unresolved \*'
20108 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'
20109 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20110 echo "-hidden">> $lib.exp~
20111 $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~
20112 $RM $lib.exp'
20113 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20114 ;;
20115 esac
20116
20117 hardcode_libdir_separator_CXX=:
20118
20119 # Commands to make compiler produce verbose output that lists
20120 # what "hidden" libraries, object files and flags are used when
20121 # linking a shared library.
20122 #
20123 # There doesn't appear to be a way to prevent this compiler from
20124 # explicitly linking system object files so we need to strip them
20125 # from the output so that they don't get included in the library
20126 # dependencies.
20127 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"'
20128 ;;
20129 *)
20130 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20131 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20132 case $host in
20133 osf3*)
20134 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'
20135 ;;
20136 *)
20137 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'
20138 ;;
20139 esac
20140
20141 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20142 hardcode_libdir_separator_CXX=:
20143
20144 # Commands to make compiler produce verbose output that lists
20145 # what "hidden" libraries, object files and flags are used when
20146 # linking a shared library.
20147 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20148
20149 else
20150 # FIXME: insert proper C++ library support
20151 ld_shlibs_CXX=no
20152 fi
20153 ;;
20154 esac
20155 ;;
20156
20157 psos*)
20158 # FIXME: insert proper C++ library support
20159 ld_shlibs_CXX=no
20160 ;;
20161
20162 sunos4*)
20163 case $cc_basename in
20164 CC*)
20165 # Sun C++ 4.x
20166 # FIXME: insert proper C++ library support
20167 ld_shlibs_CXX=no
20168 ;;
20169 lcc*)
20170 # Lucid
20171 # FIXME: insert proper C++ library support
20172 ld_shlibs_CXX=no
20173 ;;
20174 *)
20175 # FIXME: insert proper C++ library support
20176 ld_shlibs_CXX=no
20177 ;;
20178 esac
20179 ;;
20180
20181 solaris*)
20182 case $cc_basename in
20183 CC*)
20184 # Sun C++ 4.2, 5.x and Centerline C++
20185 archive_cmds_need_lc_CXX=yes
20186 no_undefined_flag_CXX=' -zdefs'
20187 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20188 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20189 $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'
20190
20191 hardcode_libdir_flag_spec_CXX='-R$libdir'
20192 hardcode_shlibpath_var_CXX=no
20193 case $host_os in
20194 solaris2.[0-5] | solaris2.[0-5].*) ;;
20195 *)
20196 # The compiler driver will combine and reorder linker options,
20197 # but understands `-z linker_flag'.
20198 # Supported since Solaris 2.6 (maybe 2.5.1?)
20199 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20200 ;;
20201 esac
20202 link_all_deplibs_CXX=yes
20203
20204 output_verbose_link_cmd='func_echo_all'
20205
20206 # Archives containing C++ object files must be created using
20207 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20208 # necessary to make sure instantiated templates are included
20209 # in the archive.
20210 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20211 ;;
20212 gcx*)
20213 # Green Hills C++ Compiler
20214 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20215
20216 # The C++ compiler must be used to create the archive.
20217 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20218 ;;
20219 *)
20220 # GNU C++ compiler with Solaris linker
20221 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20222 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20223 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20224 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20225 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20226 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20227
20228 # Commands to make compiler produce verbose output that lists
20229 # what "hidden" libraries, object files and flags are used when
20230 # linking a shared library.
20231 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20232 else
20233 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20234 # platform.
20235 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20236 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20237 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20238
20239 # Commands to make compiler produce verbose output that lists
20240 # what "hidden" libraries, object files and flags are used when
20241 # linking a shared library.
20242 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20243 fi
20244
20245 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20246 case $host_os in
20247 solaris2.[0-5] | solaris2.[0-5].*) ;;
20248 *)
20249 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20250 ;;
20251 esac
20252 fi
20253 ;;
20254 esac
20255 ;;
20256
20257 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20258 no_undefined_flag_CXX='${wl}-z,text'
20259 archive_cmds_need_lc_CXX=no
20260 hardcode_shlibpath_var_CXX=no
20261 runpath_var='LD_RUN_PATH'
20262
20263 case $cc_basename in
20264 CC*)
20265 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20266 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20267 ;;
20268 *)
20269 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20270 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20271 ;;
20272 esac
20273 ;;
20274
20275 sysv5* | sco3.2v5* | sco5v6*)
20276 # Note: We can NOT use -z defs as we might desire, because we do not
20277 # link with -lc, and that would cause any symbols used from libc to
20278 # always be unresolved, which means just about no library would
20279 # ever link correctly. If we're not using GNU ld we use -z text
20280 # though, which does catch some bad symbols but isn't as heavy-handed
20281 # as -z defs.
20282 no_undefined_flag_CXX='${wl}-z,text'
20283 allow_undefined_flag_CXX='${wl}-z,nodefs'
20284 archive_cmds_need_lc_CXX=no
20285 hardcode_shlibpath_var_CXX=no
20286 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20287 hardcode_libdir_separator_CXX=':'
20288 link_all_deplibs_CXX=yes
20289 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20290 runpath_var='LD_RUN_PATH'
20291
20292 case $cc_basename in
20293 CC*)
20294 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20295 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20296 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20297 '"$old_archive_cmds_CXX"
20298 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20299 '"$reload_cmds_CXX"
20300 ;;
20301 *)
20302 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20303 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20304 ;;
20305 esac
20306 ;;
20307
20308 tandem*)
20309 case $cc_basename in
20310 NCC*)
20311 # NonStop-UX NCC 3.20
20312 # FIXME: insert proper C++ library support
20313 ld_shlibs_CXX=no
20314 ;;
20315 *)
20316 # FIXME: insert proper C++ library support
20317 ld_shlibs_CXX=no
20318 ;;
20319 esac
20320 ;;
20321
20322 vxworks*)
20323 # FIXME: insert proper C++ library support
20324 ld_shlibs_CXX=no
20325 ;;
20326
20327 *)
20328 # FIXME: insert proper C++ library support
20329 ld_shlibs_CXX=no
20330 ;;
20331 esac
20332
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20334 $as_echo "$ld_shlibs_CXX" >&6; }
20335 test "$ld_shlibs_CXX" = no && can_build_shared=no
20336
20337 GCC_CXX="$GXX"
20338 LD_CXX="$LD"
20339
20340 ## CAVEAT EMPTOR:
20341 ## There is no encapsulation within the following macros, do not change
20342 ## the running order or otherwise move them around unless you know exactly
20343 ## what you are doing...
20344 # Dependencies to place before and after the object being linked:
20345 predep_objects_CXX=
20346 postdep_objects_CXX=
20347 predeps_CXX=
20348 postdeps_CXX=
20349 compiler_lib_search_path_CXX=
20350
20351 cat > conftest.$ac_ext <<_LT_EOF
20352 class Foo
20353 {
20354 public:
20355 Foo (void) { a = 0; }
20356 private:
20357 int a;
20358 };
20359 _LT_EOF
20360
20361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20362 (eval $ac_compile) 2>&5
20363 ac_status=$?
20364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20365 test $ac_status = 0; }; then
20366 # Parse the compiler output and extract the necessary
20367 # objects, libraries and library flags.
20368
20369 # Sentinel used to keep track of whether or not we are before
20370 # the conftest object file.
20371 pre_test_object_deps_done=no
20372
20373 for p in `eval "$output_verbose_link_cmd"`; do
20374 case $p in
20375
20376 -L* | -R* | -l*)
20377 # Some compilers place space between "-{L,R}" and the path.
20378 # Remove the space.
20379 if test $p = "-L" ||
20380 test $p = "-R"; then
20381 prev=$p
20382 continue
20383 else
20384 prev=
20385 fi
20386
20387 if test "$pre_test_object_deps_done" = no; then
20388 case $p in
20389 -L* | -R*)
20390 # Internal compiler library paths should come after those
20391 # provided the user. The postdeps already come after the
20392 # user supplied libs so there is no need to process them.
20393 if test -z "$compiler_lib_search_path_CXX"; then
20394 compiler_lib_search_path_CXX="${prev}${p}"
20395 else
20396 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20397 fi
20398 ;;
20399 # The "-l" case would never come before the object being
20400 # linked, so don't bother handling this case.
20401 esac
20402 else
20403 if test -z "$postdeps_CXX"; then
20404 postdeps_CXX="${prev}${p}"
20405 else
20406 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20407 fi
20408 fi
20409 ;;
20410
20411 *.$objext)
20412 # This assumes that the test object file only shows up
20413 # once in the compiler output.
20414 if test "$p" = "conftest.$objext"; then
20415 pre_test_object_deps_done=yes
20416 continue
20417 fi
20418
20419 if test "$pre_test_object_deps_done" = no; then
20420 if test -z "$predep_objects_CXX"; then
20421 predep_objects_CXX="$p"
20422 else
20423 predep_objects_CXX="$predep_objects_CXX $p"
20424 fi
20425 else
20426 if test -z "$postdep_objects_CXX"; then
20427 postdep_objects_CXX="$p"
20428 else
20429 postdep_objects_CXX="$postdep_objects_CXX $p"
20430 fi
20431 fi
20432 ;;
20433
20434 *) ;; # Ignore the rest.
20435
20436 esac
20437 done
20438
20439 # Clean up.
20440 rm -f a.out a.exe
20441 else
20442 echo "libtool.m4: error: problem compiling CXX test program"
20443 fi
20444
20445 $RM -f confest.$objext
20446
20447 # PORTME: override above test on systems where it is broken
20448 case $host_os in
20449 interix[3-9]*)
20450 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20451 # hack all around it, let's just trust "g++" to DTRT.
20452 predep_objects_CXX=
20453 postdep_objects_CXX=
20454 postdeps_CXX=
20455 ;;
20456
20457 linux*)
20458 case `$CC -V 2>&1 | sed 5q` in
20459 *Sun\ C*)
20460 # Sun C++ 5.9
20461
20462 # The more standards-conforming stlport4 library is
20463 # incompatible with the Cstd library. Avoid specifying
20464 # it if it's in CXXFLAGS. Ignore libCrun as
20465 # -library=stlport4 depends on it.
20466 case " $CXX $CXXFLAGS " in
20467 *" -library=stlport4 "*)
20468 solaris_use_stlport4=yes
20469 ;;
20470 esac
20471
20472 if test "$solaris_use_stlport4" != yes; then
20473 postdeps_CXX='-library=Cstd -library=Crun'
20474 fi
20475 ;;
20476 esac
20477 ;;
20478
20479 solaris*)
20480 case $cc_basename in
20481 CC*)
20482 # The more standards-conforming stlport4 library is
20483 # incompatible with the Cstd library. Avoid specifying
20484 # it if it's in CXXFLAGS. Ignore libCrun as
20485 # -library=stlport4 depends on it.
20486 case " $CXX $CXXFLAGS " in
20487 *" -library=stlport4 "*)
20488 solaris_use_stlport4=yes
20489 ;;
20490 esac
20491
20492 # Adding this requires a known-good setup of shared libraries for
20493 # Sun compiler versions before 5.6, else PIC objects from an old
20494 # archive will be linked into the output, leading to subtle bugs.
20495 if test "$solaris_use_stlport4" != yes; then
20496 postdeps_CXX='-library=Cstd -library=Crun'
20497 fi
20498 ;;
20499 esac
20500 ;;
20501 esac
20502
20503
20504 case " $postdeps_CXX " in
20505 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20506 esac
20507 compiler_lib_search_dirs_CXX=
20508 if test -n "${compiler_lib_search_path_CXX}"; then
20509 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20510 fi
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542 lt_prog_compiler_wl_CXX=
20543 lt_prog_compiler_pic_CXX=
20544 lt_prog_compiler_static_CXX=
20545
20546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20547 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20548
20549 # C++ specific cases for pic, static, wl, etc.
20550 if test "$GXX" = yes; then
20551 lt_prog_compiler_wl_CXX='-Wl,'
20552 lt_prog_compiler_static_CXX='-static'
20553
20554 case $host_os in
20555 aix*)
20556 # All AIX code is PIC.
20557 if test "$host_cpu" = ia64; then
20558 # AIX 5 now supports IA64 processor
20559 lt_prog_compiler_static_CXX='-Bstatic'
20560 fi
20561 lt_prog_compiler_pic_CXX='-fPIC'
20562 ;;
20563
20564 amigaos*)
20565 case $host_cpu in
20566 powerpc)
20567 # see comment about AmigaOS4 .so support
20568 lt_prog_compiler_pic_CXX='-fPIC'
20569 ;;
20570 m68k)
20571 # FIXME: we need at least 68020 code to build shared libraries, but
20572 # adding the `-m68020' flag to GCC prevents building anything better,
20573 # like `-m68040'.
20574 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20575 ;;
20576 esac
20577 ;;
20578
20579 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20580 # PIC is the default for these OSes.
20581 ;;
20582 mingw* | cygwin* | os2* | pw32* | cegcc*)
20583 # This hack is so that the source file can tell whether it is being
20584 # built for inclusion in a dll (and should export symbols for example).
20585 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20586 # (--disable-auto-import) libraries
20587 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20588 ;;
20589 darwin* | rhapsody*)
20590 # PIC is the default on this platform
20591 # Common symbols not allowed in MH_DYLIB files
20592 lt_prog_compiler_pic_CXX='-fno-common'
20593 ;;
20594 *djgpp*)
20595 # DJGPP does not support shared libraries at all
20596 lt_prog_compiler_pic_CXX=
20597 ;;
20598 haiku*)
20599 # PIC is the default for Haiku.
20600 # The "-static" flag exists, but is broken.
20601 lt_prog_compiler_static_CXX=
20602 ;;
20603 interix[3-9]*)
20604 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20605 # Instead, we relocate shared libraries at runtime.
20606 ;;
20607 sysv4*MP*)
20608 if test -d /usr/nec; then
20609 lt_prog_compiler_pic_CXX=-Kconform_pic
20610 fi
20611 ;;
20612 hpux*)
20613 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20614 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20615 # sets the default TLS model and affects inlining.
20616 case $host_cpu in
20617 hppa*64*)
20618 ;;
20619 *)
20620 lt_prog_compiler_pic_CXX='-fPIC'
20621 ;;
20622 esac
20623 ;;
20624 *qnx* | *nto*)
20625 # QNX uses GNU C++, but need to define -shared option too, otherwise
20626 # it will coredump.
20627 lt_prog_compiler_pic_CXX='-fPIC -shared'
20628 ;;
20629 *)
20630 lt_prog_compiler_pic_CXX='-fPIC'
20631 ;;
20632 esac
20633 else
20634 case $host_os in
20635 aix[4-9]*)
20636 # All AIX code is PIC.
20637 if test "$host_cpu" = ia64; then
20638 # AIX 5 now supports IA64 processor
20639 lt_prog_compiler_static_CXX='-Bstatic'
20640 else
20641 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20642 fi
20643 ;;
20644 chorus*)
20645 case $cc_basename in
20646 cxch68*)
20647 # Green Hills C++ Compiler
20648 # _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"
20649 ;;
20650 esac
20651 ;;
20652 dgux*)
20653 case $cc_basename in
20654 ec++*)
20655 lt_prog_compiler_pic_CXX='-KPIC'
20656 ;;
20657 ghcx*)
20658 # Green Hills C++ Compiler
20659 lt_prog_compiler_pic_CXX='-pic'
20660 ;;
20661 *)
20662 ;;
20663 esac
20664 ;;
20665 freebsd* | dragonfly*)
20666 # FreeBSD uses GNU C++
20667 ;;
20668 hpux9* | hpux10* | hpux11*)
20669 case $cc_basename in
20670 CC*)
20671 lt_prog_compiler_wl_CXX='-Wl,'
20672 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20673 if test "$host_cpu" != ia64; then
20674 lt_prog_compiler_pic_CXX='+Z'
20675 fi
20676 ;;
20677 aCC*)
20678 lt_prog_compiler_wl_CXX='-Wl,'
20679 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20680 case $host_cpu in
20681 hppa*64*|ia64*)
20682 # +Z the default
20683 ;;
20684 *)
20685 lt_prog_compiler_pic_CXX='+Z'
20686 ;;
20687 esac
20688 ;;
20689 *)
20690 ;;
20691 esac
20692 ;;
20693 interix*)
20694 # This is c89, which is MS Visual C++ (no shared libs)
20695 # Anyone wants to do a port?
20696 ;;
20697 irix5* | irix6* | nonstopux*)
20698 case $cc_basename in
20699 CC*)
20700 lt_prog_compiler_wl_CXX='-Wl,'
20701 lt_prog_compiler_static_CXX='-non_shared'
20702 # CC pic flag -KPIC is the default.
20703 ;;
20704 *)
20705 ;;
20706 esac
20707 ;;
20708 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20709 case $cc_basename in
20710 KCC*)
20711 # KAI C++ Compiler
20712 lt_prog_compiler_wl_CXX='--backend -Wl,'
20713 lt_prog_compiler_pic_CXX='-fPIC'
20714 ;;
20715 ecpc* )
20716 # old Intel C++ for x86_64 which still supported -KPIC.
20717 lt_prog_compiler_wl_CXX='-Wl,'
20718 lt_prog_compiler_pic_CXX='-KPIC'
20719 lt_prog_compiler_static_CXX='-static'
20720 ;;
20721 icpc* )
20722 # Intel C++, used to be incompatible with GCC.
20723 # ICC 10 doesn't accept -KPIC any more.
20724 lt_prog_compiler_wl_CXX='-Wl,'
20725 lt_prog_compiler_pic_CXX='-fPIC'
20726 lt_prog_compiler_static_CXX='-static'
20727 ;;
20728 pgCC* | pgcpp*)
20729 # Portland Group C++ compiler
20730 lt_prog_compiler_wl_CXX='-Wl,'
20731 lt_prog_compiler_pic_CXX='-fpic'
20732 lt_prog_compiler_static_CXX='-Bstatic'
20733 ;;
20734 cxx*)
20735 # Compaq C++
20736 # Make sure the PIC flag is empty. It appears that all Alpha
20737 # Linux and Compaq Tru64 Unix objects are PIC.
20738 lt_prog_compiler_pic_CXX=
20739 lt_prog_compiler_static_CXX='-non_shared'
20740 ;;
20741 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20742 # IBM XL 8.0, 9.0 on PPC and BlueGene
20743 lt_prog_compiler_wl_CXX='-Wl,'
20744 lt_prog_compiler_pic_CXX='-qpic'
20745 lt_prog_compiler_static_CXX='-qstaticlink'
20746 ;;
20747 *)
20748 case `$CC -V 2>&1 | sed 5q` in
20749 *Sun\ C*)
20750 # Sun C++ 5.9
20751 lt_prog_compiler_pic_CXX='-KPIC'
20752 lt_prog_compiler_static_CXX='-Bstatic'
20753 lt_prog_compiler_wl_CXX='-Qoption ld '
20754 ;;
20755 esac
20756 ;;
20757 esac
20758 ;;
20759 lynxos*)
20760 ;;
20761 m88k*)
20762 ;;
20763 mvs*)
20764 case $cc_basename in
20765 cxx*)
20766 lt_prog_compiler_pic_CXX='-W c,exportall'
20767 ;;
20768 *)
20769 ;;
20770 esac
20771 ;;
20772 netbsd*)
20773 ;;
20774 *qnx* | *nto*)
20775 # QNX uses GNU C++, but need to define -shared option too, otherwise
20776 # it will coredump.
20777 lt_prog_compiler_pic_CXX='-fPIC -shared'
20778 ;;
20779 osf3* | osf4* | osf5*)
20780 case $cc_basename in
20781 KCC*)
20782 lt_prog_compiler_wl_CXX='--backend -Wl,'
20783 ;;
20784 RCC*)
20785 # Rational C++ 2.4.1
20786 lt_prog_compiler_pic_CXX='-pic'
20787 ;;
20788 cxx*)
20789 # Digital/Compaq C++
20790 lt_prog_compiler_wl_CXX='-Wl,'
20791 # Make sure the PIC flag is empty. It appears that all Alpha
20792 # Linux and Compaq Tru64 Unix objects are PIC.
20793 lt_prog_compiler_pic_CXX=
20794 lt_prog_compiler_static_CXX='-non_shared'
20795 ;;
20796 *)
20797 ;;
20798 esac
20799 ;;
20800 psos*)
20801 ;;
20802 solaris*)
20803 case $cc_basename in
20804 CC*)
20805 # Sun C++ 4.2, 5.x and Centerline C++
20806 lt_prog_compiler_pic_CXX='-KPIC'
20807 lt_prog_compiler_static_CXX='-Bstatic'
20808 lt_prog_compiler_wl_CXX='-Qoption ld '
20809 ;;
20810 gcx*)
20811 # Green Hills C++ Compiler
20812 lt_prog_compiler_pic_CXX='-PIC'
20813 ;;
20814 *)
20815 ;;
20816 esac
20817 ;;
20818 sunos4*)
20819 case $cc_basename in
20820 CC*)
20821 # Sun C++ 4.x
20822 lt_prog_compiler_pic_CXX='-pic'
20823 lt_prog_compiler_static_CXX='-Bstatic'
20824 ;;
20825 lcc*)
20826 # Lucid
20827 lt_prog_compiler_pic_CXX='-pic'
20828 ;;
20829 *)
20830 ;;
20831 esac
20832 ;;
20833 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20834 case $cc_basename in
20835 CC*)
20836 lt_prog_compiler_wl_CXX='-Wl,'
20837 lt_prog_compiler_pic_CXX='-KPIC'
20838 lt_prog_compiler_static_CXX='-Bstatic'
20839 ;;
20840 esac
20841 ;;
20842 tandem*)
20843 case $cc_basename in
20844 NCC*)
20845 # NonStop-UX NCC 3.20
20846 lt_prog_compiler_pic_CXX='-KPIC'
20847 ;;
20848 *)
20849 ;;
20850 esac
20851 ;;
20852 vxworks*)
20853 ;;
20854 *)
20855 lt_prog_compiler_can_build_shared_CXX=no
20856 ;;
20857 esac
20858 fi
20859
20860 case $host_os in
20861 # For platforms which do not support PIC, -DPIC is meaningless:
20862 *djgpp*)
20863 lt_prog_compiler_pic_CXX=
20864 ;;
20865 *)
20866 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20867 ;;
20868 esac
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20870 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20871
20872
20873
20874 #
20875 # Check to make sure the PIC flag actually works.
20876 #
20877 if test -n "$lt_prog_compiler_pic_CXX"; then
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20879 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20880 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
20881 $as_echo_n "(cached) " >&6
20882 else
20883 lt_cv_prog_compiler_pic_works_CXX=no
20884 ac_outfile=conftest.$ac_objext
20885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20886 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20887 # Insert the option either (1) after the last *FLAGS variable, or
20888 # (2) before a word containing "conftest.", or (3) at the end.
20889 # Note that $ac_compile itself does not contain backslashes and begins
20890 # with a dollar sign (not a hyphen), so the echo should work correctly.
20891 # The option is referenced via a variable to avoid confusing sed.
20892 lt_compile=`echo "$ac_compile" | $SED \
20893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20895 -e 's:$: $lt_compiler_flag:'`
20896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20897 (eval "$lt_compile" 2>conftest.err)
20898 ac_status=$?
20899 cat conftest.err >&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 if (exit $ac_status) && test -s "$ac_outfile"; then
20902 # The compiler can only warn and ignore the option if not recognized
20903 # So say no if there are warnings other than the usual output.
20904 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20906 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20907 lt_cv_prog_compiler_pic_works_CXX=yes
20908 fi
20909 fi
20910 $RM conftest*
20911
20912 fi
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20914 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20915
20916 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20917 case $lt_prog_compiler_pic_CXX in
20918 "" | " "*) ;;
20919 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20920 esac
20921 else
20922 lt_prog_compiler_pic_CXX=
20923 lt_prog_compiler_can_build_shared_CXX=no
20924 fi
20925
20926 fi
20927
20928
20929
20930 #
20931 # Check to make sure the static flag actually works.
20932 #
20933 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20935 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20936 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
20937 $as_echo_n "(cached) " >&6
20938 else
20939 lt_cv_prog_compiler_static_works_CXX=no
20940 save_LDFLAGS="$LDFLAGS"
20941 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20942 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20943 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20944 # The linker can only warn and ignore the option if not recognized
20945 # So say no if there are warnings
20946 if test -s conftest.err; then
20947 # Append any errors to the config.log.
20948 cat conftest.err 1>&5
20949 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20951 if diff conftest.exp conftest.er2 >/dev/null; then
20952 lt_cv_prog_compiler_static_works_CXX=yes
20953 fi
20954 else
20955 lt_cv_prog_compiler_static_works_CXX=yes
20956 fi
20957 fi
20958 $RM -r conftest*
20959 LDFLAGS="$save_LDFLAGS"
20960
20961 fi
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20963 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20964
20965 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20966 :
20967 else
20968 lt_prog_compiler_static_CXX=
20969 fi
20970
20971
20972
20973
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20975 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20976 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20977 $as_echo_n "(cached) " >&6
20978 else
20979 lt_cv_prog_compiler_c_o_CXX=no
20980 $RM -r conftest 2>/dev/null
20981 mkdir conftest
20982 cd conftest
20983 mkdir out
20984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20985
20986 lt_compiler_flag="-o out/conftest2.$ac_objext"
20987 # Insert the option either (1) after the last *FLAGS variable, or
20988 # (2) before a word containing "conftest.", or (3) at the end.
20989 # Note that $ac_compile itself does not contain backslashes and begins
20990 # with a dollar sign (not a hyphen), so the echo should work correctly.
20991 lt_compile=`echo "$ac_compile" | $SED \
20992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20994 -e 's:$: $lt_compiler_flag:'`
20995 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20996 (eval "$lt_compile" 2>out/conftest.err)
20997 ac_status=$?
20998 cat out/conftest.err >&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21001 then
21002 # The compiler can only warn and ignore the option if not recognized
21003 # So say no if there are warnings
21004 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21005 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21006 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21007 lt_cv_prog_compiler_c_o_CXX=yes
21008 fi
21009 fi
21010 chmod u+w . 2>&5
21011 $RM conftest*
21012 # SGI C++ compiler will create directory out/ii_files/ for
21013 # template instantiation
21014 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21015 $RM out/* && rmdir out
21016 cd ..
21017 $RM -r conftest
21018 $RM conftest*
21019
21020 fi
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21022 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21023
21024
21025
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21027 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21028 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21029 $as_echo_n "(cached) " >&6
21030 else
21031 lt_cv_prog_compiler_c_o_CXX=no
21032 $RM -r conftest 2>/dev/null
21033 mkdir conftest
21034 cd conftest
21035 mkdir out
21036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21037
21038 lt_compiler_flag="-o out/conftest2.$ac_objext"
21039 # Insert the option either (1) after the last *FLAGS variable, or
21040 # (2) before a word containing "conftest.", or (3) at the end.
21041 # Note that $ac_compile itself does not contain backslashes and begins
21042 # with a dollar sign (not a hyphen), so the echo should work correctly.
21043 lt_compile=`echo "$ac_compile" | $SED \
21044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21046 -e 's:$: $lt_compiler_flag:'`
21047 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21048 (eval "$lt_compile" 2>out/conftest.err)
21049 ac_status=$?
21050 cat out/conftest.err >&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21053 then
21054 # The compiler can only warn and ignore the option if not recognized
21055 # So say no if there are warnings
21056 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21057 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21058 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21059 lt_cv_prog_compiler_c_o_CXX=yes
21060 fi
21061 fi
21062 chmod u+w . 2>&5
21063 $RM conftest*
21064 # SGI C++ compiler will create directory out/ii_files/ for
21065 # template instantiation
21066 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21067 $RM out/* && rmdir out
21068 cd ..
21069 $RM -r conftest
21070 $RM conftest*
21071
21072 fi
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21074 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21075
21076
21077
21078
21079 hard_links="nottested"
21080 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21081 # do not overwrite the value of need_locks provided by the user
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21083 $as_echo_n "checking if we can lock with hard links... " >&6; }
21084 hard_links=yes
21085 $RM conftest*
21086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21087 touch conftest.a
21088 ln conftest.a conftest.b 2>&5 || hard_links=no
21089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21091 $as_echo "$hard_links" >&6; }
21092 if test "$hard_links" = no; then
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21094 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21095 need_locks=warn
21096 fi
21097 else
21098 need_locks=no
21099 fi
21100
21101
21102
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21104 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21105
21106 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21107 case $host_os in
21108 aix[4-9]*)
21109 # If we're using GNU nm, then we don't want the "-C" option.
21110 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21111 # Also, AIX nm treats weak defined symbols like other global defined
21112 # symbols, whereas GNU nm marks them as "W".
21113 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21114 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'
21115 else
21116 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'
21117 fi
21118 ;;
21119 pw32*)
21120 export_symbols_cmds_CXX="$ltdll_cmds"
21121 ;;
21122 cygwin* | mingw* | cegcc*)
21123 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'
21124 ;;
21125 *)
21126 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21127 ;;
21128 esac
21129 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21130
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21132 $as_echo "$ld_shlibs_CXX" >&6; }
21133 test "$ld_shlibs_CXX" = no && can_build_shared=no
21134
21135 with_gnu_ld_CXX=$with_gnu_ld
21136
21137
21138
21139
21140
21141
21142 #
21143 # Do we need to explicitly link libc?
21144 #
21145 case "x$archive_cmds_need_lc_CXX" in
21146 x|xyes)
21147 # Assume -lc should be added
21148 archive_cmds_need_lc_CXX=yes
21149
21150 if test "$enable_shared" = yes && test "$GCC" = yes; then
21151 case $archive_cmds_CXX in
21152 *'~'*)
21153 # FIXME: we may have to deal with multi-command sequences.
21154 ;;
21155 '$CC '*)
21156 # Test whether the compiler implicitly links with -lc since on some
21157 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21158 # to ld, don't add -lc before -lgcc.
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21160 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21161 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21162 $as_echo_n "(cached) " >&6
21163 else
21164 $RM conftest*
21165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21166
21167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21168 (eval $ac_compile) 2>&5
21169 ac_status=$?
21170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21171 test $ac_status = 0; } 2>conftest.err; then
21172 soname=conftest
21173 lib=conftest
21174 libobjs=conftest.$ac_objext
21175 deplibs=
21176 wl=$lt_prog_compiler_wl_CXX
21177 pic_flag=$lt_prog_compiler_pic_CXX
21178 compiler_flags=-v
21179 linker_flags=-v
21180 verstring=
21181 output_objdir=.
21182 libname=conftest
21183 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21184 allow_undefined_flag_CXX=
21185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21186 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21187 ac_status=$?
21188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21189 test $ac_status = 0; }
21190 then
21191 lt_cv_archive_cmds_need_lc_CXX=no
21192 else
21193 lt_cv_archive_cmds_need_lc_CXX=yes
21194 fi
21195 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21196 else
21197 cat conftest.err 1>&5
21198 fi
21199 $RM conftest*
21200
21201 fi
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21203 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21204 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21205 ;;
21206 esac
21207 fi
21208 ;;
21209 esac
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21275 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21276
21277 library_names_spec=
21278 libname_spec='lib$name'
21279 soname_spec=
21280 shrext_cmds=".so"
21281 postinstall_cmds=
21282 postuninstall_cmds=
21283 finish_cmds=
21284 finish_eval=
21285 shlibpath_var=
21286 shlibpath_overrides_runpath=unknown
21287 version_type=none
21288 dynamic_linker="$host_os ld.so"
21289 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21290 need_lib_prefix=unknown
21291 hardcode_into_libs=no
21292
21293 # when you set need_version to no, make sure it does not cause -set_version
21294 # flags to be left without arguments
21295 need_version=unknown
21296
21297 case $host_os in
21298 aix3*)
21299 version_type=linux
21300 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21301 shlibpath_var=LIBPATH
21302
21303 # AIX 3 has no versioning support, so we append a major version to the name.
21304 soname_spec='${libname}${release}${shared_ext}$major'
21305 ;;
21306
21307 aix[4-9]*)
21308 version_type=linux
21309 need_lib_prefix=no
21310 need_version=no
21311 hardcode_into_libs=yes
21312 if test "$host_cpu" = ia64; then
21313 # AIX 5 supports IA64
21314 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21315 shlibpath_var=LD_LIBRARY_PATH
21316 else
21317 # With GCC up to 2.95.x, collect2 would create an import file
21318 # for dependence libraries. The import file would start with
21319 # the line `#! .'. This would cause the generated library to
21320 # depend on `.', always an invalid library. This was fixed in
21321 # development snapshots of GCC prior to 3.0.
21322 case $host_os in
21323 aix4 | aix4.[01] | aix4.[01].*)
21324 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21325 echo ' yes '
21326 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21327 :
21328 else
21329 can_build_shared=no
21330 fi
21331 ;;
21332 esac
21333 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21334 # soname into executable. Probably we can add versioning support to
21335 # collect2, so additional links can be useful in future.
21336 if test "$aix_use_runtimelinking" = yes; then
21337 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21338 # instead of lib<name>.a to let people know that these are not
21339 # typical AIX shared libraries.
21340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21341 else
21342 # We preserve .a as extension for shared libraries through AIX4.2
21343 # and later when we are not doing run time linking.
21344 library_names_spec='${libname}${release}.a $libname.a'
21345 soname_spec='${libname}${release}${shared_ext}$major'
21346 fi
21347 shlibpath_var=LIBPATH
21348 fi
21349 ;;
21350
21351 amigaos*)
21352 case $host_cpu in
21353 powerpc)
21354 # Since July 2007 AmigaOS4 officially supports .so libraries.
21355 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21357 ;;
21358 m68k)
21359 library_names_spec='$libname.ixlibrary $libname.a'
21360 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21361 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'
21362 ;;
21363 esac
21364 ;;
21365
21366 beos*)
21367 library_names_spec='${libname}${shared_ext}'
21368 dynamic_linker="$host_os ld.so"
21369 shlibpath_var=LIBRARY_PATH
21370 ;;
21371
21372 bsdi[45]*)
21373 version_type=linux
21374 need_version=no
21375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21376 soname_spec='${libname}${release}${shared_ext}$major'
21377 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21378 shlibpath_var=LD_LIBRARY_PATH
21379 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21380 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21381 # the default ld.so.conf also contains /usr/contrib/lib and
21382 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21383 # libtool to hard-code these into programs
21384 ;;
21385
21386 cygwin* | mingw* | pw32* | cegcc*)
21387 version_type=windows
21388 shrext_cmds=".dll"
21389 need_version=no
21390 need_lib_prefix=no
21391
21392 case $GCC,$host_os in
21393 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21394 library_names_spec='$libname.dll.a'
21395 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21396 postinstall_cmds='base_file=`basename \${file}`~
21397 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21398 dldir=$destdir/`dirname \$dlpath`~
21399 test -d \$dldir || mkdir -p \$dldir~
21400 $install_prog $dir/$dlname \$dldir/$dlname~
21401 chmod a+x \$dldir/$dlname~
21402 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21403 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21404 fi'
21405 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21406 dlpath=$dir/\$dldll~
21407 $RM \$dlpath'
21408 shlibpath_overrides_runpath=yes
21409
21410 case $host_os in
21411 cygwin*)
21412 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21413 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21414
21415 ;;
21416 mingw* | cegcc*)
21417 # MinGW DLLs use traditional 'lib' prefix
21418 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21419 ;;
21420 pw32*)
21421 # pw32 DLLs use 'pw' prefix rather than 'lib'
21422 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21423 ;;
21424 esac
21425 ;;
21426
21427 *)
21428 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21429 ;;
21430 esac
21431 dynamic_linker='Win32 ld.exe'
21432 # FIXME: first we should search . and the directory the executable is in
21433 shlibpath_var=PATH
21434 ;;
21435
21436 darwin* | rhapsody*)
21437 dynamic_linker="$host_os dyld"
21438 version_type=darwin
21439 need_lib_prefix=no
21440 need_version=no
21441 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21442 soname_spec='${libname}${release}${major}$shared_ext'
21443 shlibpath_overrides_runpath=yes
21444 shlibpath_var=DYLD_LIBRARY_PATH
21445 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21446
21447 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21448 ;;
21449
21450 dgux*)
21451 version_type=linux
21452 need_lib_prefix=no
21453 need_version=no
21454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21455 soname_spec='${libname}${release}${shared_ext}$major'
21456 shlibpath_var=LD_LIBRARY_PATH
21457 ;;
21458
21459 freebsd* | dragonfly*)
21460 # DragonFly does not have aout. When/if they implement a new
21461 # versioning mechanism, adjust this.
21462 if test -x /usr/bin/objformat; then
21463 objformat=`/usr/bin/objformat`
21464 else
21465 case $host_os in
21466 freebsd[23].*) objformat=aout ;;
21467 *) objformat=elf ;;
21468 esac
21469 fi
21470 version_type=freebsd-$objformat
21471 case $version_type in
21472 freebsd-elf*)
21473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21474 need_version=no
21475 need_lib_prefix=no
21476 ;;
21477 freebsd-*)
21478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21479 need_version=yes
21480 ;;
21481 esac
21482 shlibpath_var=LD_LIBRARY_PATH
21483 case $host_os in
21484 freebsd2.*)
21485 shlibpath_overrides_runpath=yes
21486 ;;
21487 freebsd3.[01]* | freebsdelf3.[01]*)
21488 shlibpath_overrides_runpath=yes
21489 hardcode_into_libs=yes
21490 ;;
21491 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21492 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21493 shlibpath_overrides_runpath=no
21494 hardcode_into_libs=yes
21495 ;;
21496 *) # from 4.6 on, and DragonFly
21497 shlibpath_overrides_runpath=yes
21498 hardcode_into_libs=yes
21499 ;;
21500 esac
21501 ;;
21502
21503 gnu*)
21504 version_type=linux
21505 need_lib_prefix=no
21506 need_version=no
21507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21508 soname_spec='${libname}${release}${shared_ext}$major'
21509 shlibpath_var=LD_LIBRARY_PATH
21510 hardcode_into_libs=yes
21511 ;;
21512
21513 haiku*)
21514 version_type=linux
21515 need_lib_prefix=no
21516 need_version=no
21517 dynamic_linker="$host_os runtime_loader"
21518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21519 soname_spec='${libname}${release}${shared_ext}$major'
21520 shlibpath_var=LIBRARY_PATH
21521 shlibpath_overrides_runpath=yes
21522 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21523 hardcode_into_libs=yes
21524 ;;
21525
21526 hpux9* | hpux10* | hpux11*)
21527 # Give a soname corresponding to the major version so that dld.sl refuses to
21528 # link against other versions.
21529 version_type=sunos
21530 need_lib_prefix=no
21531 need_version=no
21532 case $host_cpu in
21533 ia64*)
21534 shrext_cmds='.so'
21535 hardcode_into_libs=yes
21536 dynamic_linker="$host_os dld.so"
21537 shlibpath_var=LD_LIBRARY_PATH
21538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21540 soname_spec='${libname}${release}${shared_ext}$major'
21541 if test "X$HPUX_IA64_MODE" = X32; then
21542 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21543 else
21544 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21545 fi
21546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21547 ;;
21548 hppa*64*)
21549 shrext_cmds='.sl'
21550 hardcode_into_libs=yes
21551 dynamic_linker="$host_os dld.sl"
21552 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21555 soname_spec='${libname}${release}${shared_ext}$major'
21556 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21557 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21558 ;;
21559 *)
21560 shrext_cmds='.sl'
21561 dynamic_linker="$host_os dld.sl"
21562 shlibpath_var=SHLIB_PATH
21563 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21565 soname_spec='${libname}${release}${shared_ext}$major'
21566 ;;
21567 esac
21568 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21569 postinstall_cmds='chmod 555 $lib'
21570 # or fails outright, so override atomically:
21571 install_override_mode=555
21572 ;;
21573
21574 interix[3-9]*)
21575 version_type=linux
21576 need_lib_prefix=no
21577 need_version=no
21578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21579 soname_spec='${libname}${release}${shared_ext}$major'
21580 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21581 shlibpath_var=LD_LIBRARY_PATH
21582 shlibpath_overrides_runpath=no
21583 hardcode_into_libs=yes
21584 ;;
21585
21586 irix5* | irix6* | nonstopux*)
21587 case $host_os in
21588 nonstopux*) version_type=nonstopux ;;
21589 *)
21590 if test "$lt_cv_prog_gnu_ld" = yes; then
21591 version_type=linux
21592 else
21593 version_type=irix
21594 fi ;;
21595 esac
21596 need_lib_prefix=no
21597 need_version=no
21598 soname_spec='${libname}${release}${shared_ext}$major'
21599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21600 case $host_os in
21601 irix5* | nonstopux*)
21602 libsuff= shlibsuff=
21603 ;;
21604 *)
21605 case $LD in # libtool.m4 will add one of these switches to LD
21606 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21607 libsuff= shlibsuff= libmagic=32-bit;;
21608 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21609 libsuff=32 shlibsuff=N32 libmagic=N32;;
21610 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21611 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21612 *) libsuff= shlibsuff= libmagic=never-match;;
21613 esac
21614 ;;
21615 esac
21616 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21617 shlibpath_overrides_runpath=no
21618 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21619 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21620 hardcode_into_libs=yes
21621 ;;
21622
21623 # No shared lib support for Linux oldld, aout, or coff.
21624 linux*oldld* | linux*aout* | linux*coff*)
21625 dynamic_linker=no
21626 ;;
21627
21628 # This must be Linux ELF.
21629 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21630 version_type=linux
21631 need_lib_prefix=no
21632 need_version=no
21633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21634 soname_spec='${libname}${release}${shared_ext}$major'
21635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21636 shlibpath_var=LD_LIBRARY_PATH
21637 shlibpath_overrides_runpath=no
21638
21639 # Some binutils ld are patched to set DT_RUNPATH
21640 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21641 $as_echo_n "(cached) " >&6
21642 else
21643 lt_cv_shlibpath_overrides_runpath=no
21644 save_LDFLAGS=$LDFLAGS
21645 save_libdir=$libdir
21646 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21647 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21649 /* end confdefs.h. */
21650
21651 int
21652 main ()
21653 {
21654
21655 ;
21656 return 0;
21657 }
21658 _ACEOF
21659 if ac_fn_cxx_try_link "$LINENO"; then :
21660 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21661 lt_cv_shlibpath_overrides_runpath=yes
21662 fi
21663 fi
21664 rm -f core conftest.err conftest.$ac_objext \
21665 conftest$ac_exeext conftest.$ac_ext
21666 LDFLAGS=$save_LDFLAGS
21667 libdir=$save_libdir
21668
21669 fi
21670
21671 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21672
21673 # This implies no fast_install, which is unacceptable.
21674 # Some rework will be needed to allow for fast_install
21675 # before this can be enabled.
21676 hardcode_into_libs=yes
21677
21678 # Append ld.so.conf contents to the search path
21679 if test -f /etc/ld.so.conf; then
21680 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' ' '`
21681 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21682 fi
21683
21684 # We used to test for /lib/ld.so.1 and disable shared libraries on
21685 # powerpc, because MkLinux only supported shared libraries with the
21686 # GNU dynamic linker. Since this was broken with cross compilers,
21687 # most powerpc-linux boxes support dynamic linking these days and
21688 # people can always --disable-shared, the test was removed, and we
21689 # assume the GNU/Linux dynamic linker is in use.
21690 dynamic_linker='GNU/Linux ld.so'
21691 ;;
21692
21693 netbsd*)
21694 version_type=sunos
21695 need_lib_prefix=no
21696 need_version=no
21697 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21700 dynamic_linker='NetBSD (a.out) ld.so'
21701 else
21702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21703 soname_spec='${libname}${release}${shared_ext}$major'
21704 dynamic_linker='NetBSD ld.elf_so'
21705 fi
21706 shlibpath_var=LD_LIBRARY_PATH
21707 shlibpath_overrides_runpath=yes
21708 hardcode_into_libs=yes
21709 ;;
21710
21711 newsos6)
21712 version_type=linux
21713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21714 shlibpath_var=LD_LIBRARY_PATH
21715 shlibpath_overrides_runpath=yes
21716 ;;
21717
21718 *nto* | *qnx*)
21719 version_type=qnx
21720 need_lib_prefix=no
21721 need_version=no
21722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21723 soname_spec='${libname}${release}${shared_ext}$major'
21724 shlibpath_var=LD_LIBRARY_PATH
21725 shlibpath_overrides_runpath=no
21726 hardcode_into_libs=yes
21727 dynamic_linker='ldqnx.so'
21728 ;;
21729
21730 openbsd*)
21731 version_type=sunos
21732 sys_lib_dlsearch_path_spec="/usr/lib"
21733 need_lib_prefix=no
21734 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21735 case $host_os in
21736 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21737 *) need_version=no ;;
21738 esac
21739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21741 shlibpath_var=LD_LIBRARY_PATH
21742 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21743 case $host_os in
21744 openbsd2.[89] | openbsd2.[89].*)
21745 shlibpath_overrides_runpath=no
21746 ;;
21747 *)
21748 shlibpath_overrides_runpath=yes
21749 ;;
21750 esac
21751 else
21752 shlibpath_overrides_runpath=yes
21753 fi
21754 ;;
21755
21756 os2*)
21757 libname_spec='$name'
21758 shrext_cmds=".dll"
21759 need_lib_prefix=no
21760 library_names_spec='$libname${shared_ext} $libname.a'
21761 dynamic_linker='OS/2 ld.exe'
21762 shlibpath_var=LIBPATH
21763 ;;
21764
21765 osf3* | osf4* | osf5*)
21766 version_type=osf
21767 need_lib_prefix=no
21768 need_version=no
21769 soname_spec='${libname}${release}${shared_ext}$major'
21770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21771 shlibpath_var=LD_LIBRARY_PATH
21772 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21773 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21774 ;;
21775
21776 rdos*)
21777 dynamic_linker=no
21778 ;;
21779
21780 solaris*)
21781 version_type=linux
21782 need_lib_prefix=no
21783 need_version=no
21784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21785 soname_spec='${libname}${release}${shared_ext}$major'
21786 shlibpath_var=LD_LIBRARY_PATH
21787 shlibpath_overrides_runpath=yes
21788 hardcode_into_libs=yes
21789 # ldd complains unless libraries are executable
21790 postinstall_cmds='chmod +x $lib'
21791 ;;
21792
21793 sunos4*)
21794 version_type=sunos
21795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21796 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21797 shlibpath_var=LD_LIBRARY_PATH
21798 shlibpath_overrides_runpath=yes
21799 if test "$with_gnu_ld" = yes; then
21800 need_lib_prefix=no
21801 fi
21802 need_version=yes
21803 ;;
21804
21805 sysv4 | sysv4.3*)
21806 version_type=linux
21807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21808 soname_spec='${libname}${release}${shared_ext}$major'
21809 shlibpath_var=LD_LIBRARY_PATH
21810 case $host_vendor in
21811 sni)
21812 shlibpath_overrides_runpath=no
21813 need_lib_prefix=no
21814 runpath_var=LD_RUN_PATH
21815 ;;
21816 siemens)
21817 need_lib_prefix=no
21818 ;;
21819 motorola)
21820 need_lib_prefix=no
21821 need_version=no
21822 shlibpath_overrides_runpath=no
21823 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21824 ;;
21825 esac
21826 ;;
21827
21828 sysv4*MP*)
21829 if test -d /usr/nec ;then
21830 version_type=linux
21831 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21832 soname_spec='$libname${shared_ext}.$major'
21833 shlibpath_var=LD_LIBRARY_PATH
21834 fi
21835 ;;
21836
21837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21838 version_type=freebsd-elf
21839 need_lib_prefix=no
21840 need_version=no
21841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21842 soname_spec='${libname}${release}${shared_ext}$major'
21843 shlibpath_var=LD_LIBRARY_PATH
21844 shlibpath_overrides_runpath=yes
21845 hardcode_into_libs=yes
21846 if test "$with_gnu_ld" = yes; then
21847 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21848 else
21849 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21850 case $host_os in
21851 sco3.2v5*)
21852 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21853 ;;
21854 esac
21855 fi
21856 sys_lib_dlsearch_path_spec='/usr/lib'
21857 ;;
21858
21859 tpf*)
21860 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21861 version_type=linux
21862 need_lib_prefix=no
21863 need_version=no
21864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21865 shlibpath_var=LD_LIBRARY_PATH
21866 shlibpath_overrides_runpath=no
21867 hardcode_into_libs=yes
21868 ;;
21869
21870 uts4*)
21871 version_type=linux
21872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21873 soname_spec='${libname}${release}${shared_ext}$major'
21874 shlibpath_var=LD_LIBRARY_PATH
21875 ;;
21876
21877 *)
21878 dynamic_linker=no
21879 ;;
21880 esac
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21882 $as_echo "$dynamic_linker" >&6; }
21883 test "$dynamic_linker" = no && can_build_shared=no
21884
21885 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21886 if test "$GCC" = yes; then
21887 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21888 fi
21889
21890 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21891 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21892 fi
21893 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21894 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21895 fi
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21935 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21936 hardcode_action_CXX=
21937 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21938 test -n "$runpath_var_CXX" ||
21939 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21940
21941 # We can hardcode non-existent directories.
21942 if test "$hardcode_direct_CXX" != no &&
21943 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21944 # have to relink, otherwise we might link with an installed library
21945 # when we should be linking with a yet-to-be-installed one
21946 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21947 test "$hardcode_minus_L_CXX" != no; then
21948 # Linking always hardcodes the temporary library directory.
21949 hardcode_action_CXX=relink
21950 else
21951 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21952 hardcode_action_CXX=immediate
21953 fi
21954 else
21955 # We cannot hardcode anything, or else we can only hardcode existing
21956 # directories.
21957 hardcode_action_CXX=unsupported
21958 fi
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21960 $as_echo "$hardcode_action_CXX" >&6; }
21961
21962 if test "$hardcode_action_CXX" = relink ||
21963 test "$inherit_rpath_CXX" = yes; then
21964 # Fast installation is not supported
21965 enable_fast_install=no
21966 elif test "$shlibpath_overrides_runpath" = yes ||
21967 test "$enable_shared" = no; then
21968 # Fast installation is not necessary
21969 enable_fast_install=needless
21970 fi
21971
21972
21973
21974
21975
21976
21977
21978 fi # test -n "$compiler"
21979
21980 CC=$lt_save_CC
21981 LDCXX=$LD
21982 LD=$lt_save_LD
21983 GCC=$lt_save_GCC
21984 with_gnu_ld=$lt_save_with_gnu_ld
21985 lt_cv_path_LDCXX=$lt_cv_path_LD
21986 lt_cv_path_LD=$lt_save_path_LD
21987 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21988 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21989 fi # test "$_lt_caught_CXX_error" != yes
21990
21991 ac_ext=cpp
21992 ac_cpp='$CXXCPP $CPPFLAGS'
21993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012 # Only expand once:
22013
22014
22015
22016
22017
22018 # Identify the assembler which will work hand-in-glove with the newly
22019 # built GCC, so that we can examine its features. This is the assembler
22020 # which will be driven by the driver program.
22021 #
22022 # If build != host, and we aren't building gas in-tree, we identify a
22023 # build->target assembler and hope that it will have the same features
22024 # as the host->target assembler we'll be using.
22025 gcc_cv_gas_major_version=
22026 gcc_cv_gas_minor_version=
22027 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22028
22029 if ${gcc_cv_as+:} false; then :
22030
22031 else
22032
22033 if test -x "$DEFAULT_ASSEMBLER"; then
22034 gcc_cv_as="$DEFAULT_ASSEMBLER"
22035 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22036 && test -f ../gas/Makefile \
22037 && test x$build = x$host; then
22038 gcc_cv_as=../gas/as-new$build_exeext
22039 elif test -x as$build_exeext; then
22040 # Build using assembler in the current directory.
22041 gcc_cv_as=./as$build_exeext
22042 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22043 gcc_cv_as="$AS_FOR_TARGET"
22044 else
22045 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22046 set dummy $AS_FOR_TARGET; ac_word=$2
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22048 $as_echo_n "checking for $ac_word... " >&6; }
22049 if ${ac_cv_path_gcc_cv_as+:} false; then :
22050 $as_echo_n "(cached) " >&6
22051 else
22052 case $gcc_cv_as in
22053 [\\/]* | ?:[\\/]*)
22054 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22055 ;;
22056 *)
22057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22058 for as_dir in $PATH
22059 do
22060 IFS=$as_save_IFS
22061 test -z "$as_dir" && as_dir=.
22062 for ac_exec_ext in '' $ac_executable_extensions; do
22063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22064 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22066 break 2
22067 fi
22068 done
22069 done
22070 IFS=$as_save_IFS
22071
22072 ;;
22073 esac
22074 fi
22075 gcc_cv_as=$ac_cv_path_gcc_cv_as
22076 if test -n "$gcc_cv_as"; then
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22078 $as_echo "$gcc_cv_as" >&6; }
22079 else
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22081 $as_echo "no" >&6; }
22082 fi
22083
22084
22085 fi
22086 fi
22087
22088 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22089
22090 case "$ORIGINAL_AS_FOR_TARGET" in
22091 ./as | ./as$build_exeext) ;;
22092 *) ac_config_files="$ac_config_files as:exec-tool.in"
22093 ;;
22094 esac
22095
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22097 $as_echo_n "checking what assembler to use... " >&6; }
22098 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22099 # Single tree build which includes gas. We want to prefer it
22100 # over whatever linker top-level may have detected, since
22101 # we'll use what we're building after installation anyway.
22102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22103 $as_echo "newly built gas" >&6; }
22104 in_tree_gas=yes
22105 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22106 for f in $gcc_cv_as_bfd_srcdir/configure \
22107 $gcc_cv_as_gas_srcdir/configure \
22108 $gcc_cv_as_gas_srcdir/configure.ac \
22109 $gcc_cv_as_gas_srcdir/Makefile.in ; do
22110 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22111 if test x$gcc_cv_gas_version != x; then
22112 break
22113 fi
22114 done
22115 case $gcc_cv_gas_version in
22116 VERSION=[0-9]*) ;;
22117 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22118 esac
22119 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22120 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22121 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22122 case $gcc_cv_gas_patch_version in
22123 "") gcc_cv_gas_patch_version="0" ;;
22124 esac
22125 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22126 + $gcc_cv_gas_minor_version \) \* 1000 \
22127 + $gcc_cv_gas_patch_version`
22128
22129 in_tree_gas_is_elf=no
22130 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22131 || (grep 'obj_format = multi' ../gas/Makefile \
22132 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22133 then
22134 in_tree_gas_is_elf=yes
22135 fi
22136 else
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22138 $as_echo "$gcc_cv_as" >&6; }
22139 in_tree_gas=no
22140 fi
22141
22142 default_ld=
22143 # Check whether --enable-ld was given.
22144 if test "${enable_ld+set}" = set; then :
22145 enableval=$enable_ld; case "${enableval}" in
22146 no)
22147 default_ld=ld.gold
22148 ;;
22149 esac
22150 fi
22151
22152
22153 install_gold_as_default=no
22154 # Check whether --enable-gold was given.
22155 if test "${enable_gold+set}" = set; then :
22156 enableval=$enable_gold; case "${enableval}" in
22157 default)
22158 install_gold_as_default=yes
22159 ;;
22160 yes)
22161 if test x${default_ld} != x; then
22162 install_gold_as_default=yes
22163 fi
22164 ;;
22165 no)
22166 ;;
22167 *)
22168 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22169 ;;
22170 esac
22171 fi
22172
22173
22174 # Identify the linker which will work hand-in-glove with the newly
22175 # built GCC, so that we can examine its features. This is the linker
22176 # which will be driven by the driver program.
22177 #
22178 # If build != host, and we aren't building gas in-tree, we identify a
22179 # build->target linker and hope that it will have the same features
22180 # as the host->target linker we'll be using.
22181 gcc_cv_gld_major_version=
22182 gcc_cv_gld_minor_version=
22183 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22184 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22185 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22186
22187 if ${gcc_cv_ld+:} false; then :
22188
22189 else
22190
22191 if test -x "$DEFAULT_LINKER"; then
22192 gcc_cv_ld="$DEFAULT_LINKER"
22193 elif test $install_gold_as_default = yes \
22194 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22195 && test -f ../gold/Makefile \
22196 && test x$build = x$host; then
22197 gcc_cv_ld=../gold/ld-new$build_exeext
22198 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22199 && test -f ../ld/Makefile \
22200 && test x$build = x$host; then
22201 gcc_cv_ld=../ld/ld-new$build_exeext
22202 elif test -x collect-ld$build_exeext; then
22203 # Build using linker in the current directory.
22204 gcc_cv_ld=./collect-ld$build_exeext
22205 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22206 gcc_cv_ld="$LD_FOR_TARGET"
22207 else
22208 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22209 set dummy $LD_FOR_TARGET; ac_word=$2
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22211 $as_echo_n "checking for $ac_word... " >&6; }
22212 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22213 $as_echo_n "(cached) " >&6
22214 else
22215 case $gcc_cv_ld in
22216 [\\/]* | ?:[\\/]*)
22217 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22218 ;;
22219 *)
22220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22221 for as_dir in $PATH
22222 do
22223 IFS=$as_save_IFS
22224 test -z "$as_dir" && as_dir=.
22225 for ac_exec_ext in '' $ac_executable_extensions; do
22226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22227 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22229 break 2
22230 fi
22231 done
22232 done
22233 IFS=$as_save_IFS
22234
22235 ;;
22236 esac
22237 fi
22238 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22239 if test -n "$gcc_cv_ld"; then
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22241 $as_echo "$gcc_cv_ld" >&6; }
22242 else
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22244 $as_echo "no" >&6; }
22245 fi
22246
22247
22248 fi
22249 fi
22250
22251 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22252 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22253 # if the PLUGIN_LD is set ld-new, just have it as ld
22254 # as that is the installed named.
22255 if test x$PLUGIN_LD_SUFFIX = xld-new \
22256 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22257 PLUGIN_LD_SUFFIX=ld
22258 fi
22259
22260 # Check whether --with-plugin-ld was given.
22261 if test "${with_plugin_ld+set}" = set; then :
22262 withval=$with_plugin_ld; if test x"$withval" != x; then
22263 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22264 PLUGIN_LD_SUFFIX="$withval"
22265 fi
22266 fi
22267
22268
22269
22270 cat >>confdefs.h <<_ACEOF
22271 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22272 _ACEOF
22273
22274
22275 # Check to see if we are using gold instead of ld
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22277 $as_echo_n "checking whether we are using gold... " >&6; }
22278 ld_is_gold=no
22279 if test x$gcc_cv_ld != x; then
22280 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22281 | grep "GNU gold" > /dev/null; then
22282 ld_is_gold=yes
22283 fi
22284 fi
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22286 $as_echo "$ld_is_gold" >&6; }
22287
22288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22289 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22290 # Check to see if default ld is not gold, but gold is
22291 # available and has support for split stack. If gcc was configured
22292 # with gold then no checking is done.
22293 #
22294 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22295
22296 # For platforms other than powerpc64*, enable as appropriate.
22297
22298 gold_non_default=no
22299 ld_gold=`which ${gcc_cv_ld}.gold`
22300 # Make sure this gold has minimal split stack support
22301 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22302 ld_vers=`$ld_gold --version | sed 1q`
22303 gold_vers=`echo $ld_vers | sed -n \
22304 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22305 case $target in
22306 # check that the gold version contains the complete split stack support
22307 # on powerpc64 big and little endian
22308 powerpc64*-*-*)
22309 case "$gold_vers" in
22310 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22311 ;;
22312 *) gold_non_default=no
22313 ;;
22314 esac
22315 ;;
22316 esac
22317 fi
22318 if test $gold_non_default = yes; then
22319
22320 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22321
22322 fi
22323 fi
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22325 $as_echo "$gold_non_default" >&6; }
22326
22327 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22328
22329 case "$ORIGINAL_LD_FOR_TARGET" in
22330 ./collect-ld | ./collect-ld$build_exeext) ;;
22331 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22332 ;;
22333 esac
22334
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22336 $as_echo_n "checking what linker to use... " >&6; }
22337 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22338 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22339 # Single tree build which includes ld. We want to prefer it
22340 # over whatever linker top-level may have detected, since
22341 # we'll use what we're building after installation anyway.
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22343 $as_echo "newly built ld" >&6; }
22344 in_tree_ld=yes
22345 in_tree_ld_is_elf=no
22346 if (grep 'EMUL = .*elf' ../ld/Makefile \
22347 || grep 'EMUL = .*linux' ../ld/Makefile \
22348 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22349 in_tree_ld_is_elf=yes
22350 elif test "$ld_is_gold" = yes; then
22351 in_tree_ld_is_elf=yes
22352 fi
22353 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
22354 do
22355 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22356 if test x$gcc_cv_gld_version != x; then
22357 break
22358 fi
22359 done
22360 case $gcc_cv_gld_version in
22361 VERSION=[0-9]*) ;;
22362 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22363 esac
22364 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22365 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22366 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22367 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22368 else
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22370 $as_echo "$gcc_cv_ld" >&6; }
22371 in_tree_ld=no
22372 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22373 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22374 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22375 fi
22376
22377
22378
22379
22380 # Figure out what nm we will be using.
22381 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22382 if ${gcc_cv_nm+:} false; then :
22383
22384 else
22385
22386 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22387 && test -f ../binutils/Makefile \
22388 && test x$build = x$host; then
22389 gcc_cv_nm=../binutils/nm-new$build_exeext
22390 elif test -x nm$build_exeext; then
22391 gcc_cv_nm=./nm$build_exeext
22392 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22393 gcc_cv_nm="$NM_FOR_TARGET"
22394 else
22395 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22396 set dummy $NM_FOR_TARGET; ac_word=$2
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22398 $as_echo_n "checking for $ac_word... " >&6; }
22399 if ${ac_cv_path_gcc_cv_nm+:} false; then :
22400 $as_echo_n "(cached) " >&6
22401 else
22402 case $gcc_cv_nm in
22403 [\\/]* | ?:[\\/]*)
22404 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22405 ;;
22406 *)
22407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22408 for as_dir in $PATH
22409 do
22410 IFS=$as_save_IFS
22411 test -z "$as_dir" && as_dir=.
22412 for ac_exec_ext in '' $ac_executable_extensions; do
22413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22414 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22416 break 2
22417 fi
22418 done
22419 done
22420 IFS=$as_save_IFS
22421
22422 ;;
22423 esac
22424 fi
22425 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22426 if test -n "$gcc_cv_nm"; then
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22428 $as_echo "$gcc_cv_nm" >&6; }
22429 else
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22431 $as_echo "no" >&6; }
22432 fi
22433
22434
22435 fi
22436 fi
22437
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22439 $as_echo_n "checking what nm to use... " >&6; }
22440 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22441 # Single tree build which includes binutils.
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22443 $as_echo "newly built nm" >&6; }
22444 in_tree_nm=yes
22445 else
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22447 $as_echo "$gcc_cv_nm" >&6; }
22448 in_tree_nm=no
22449 fi
22450
22451 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22452
22453 case "$ORIGINAL_NM_FOR_TARGET" in
22454 ./nm | ./nm$build_exeext) ;;
22455 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22456 ;;
22457 esac
22458
22459
22460 # Figure out what objdump we will be using.
22461 if ${gcc_cv_objdump+:} false; then :
22462
22463 else
22464
22465 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22466 && test -f ../binutils/Makefile \
22467 && test x$build = x$host; then
22468 # Single tree build which includes binutils.
22469 gcc_cv_objdump=../binutils/objdump$build_exeext
22470 elif test -x objdump$build_exeext; then
22471 gcc_cv_objdump=./objdump$build_exeext
22472 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22473 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22474 else
22475 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22476 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22478 $as_echo_n "checking for $ac_word... " >&6; }
22479 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22480 $as_echo_n "(cached) " >&6
22481 else
22482 case $gcc_cv_objdump in
22483 [\\/]* | ?:[\\/]*)
22484 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22485 ;;
22486 *)
22487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22488 for as_dir in $PATH
22489 do
22490 IFS=$as_save_IFS
22491 test -z "$as_dir" && as_dir=.
22492 for ac_exec_ext in '' $ac_executable_extensions; do
22493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22494 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22496 break 2
22497 fi
22498 done
22499 done
22500 IFS=$as_save_IFS
22501
22502 ;;
22503 esac
22504 fi
22505 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22506 if test -n "$gcc_cv_objdump"; then
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22508 $as_echo "$gcc_cv_objdump" >&6; }
22509 else
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22511 $as_echo "no" >&6; }
22512 fi
22513
22514
22515 fi
22516 fi
22517
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22519 $as_echo_n "checking what objdump to use... " >&6; }
22520 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22521 # Single tree build which includes binutils.
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22523 $as_echo "newly built objdump" >&6; }
22524 elif test x$gcc_cv_objdump = x; then
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22526 $as_echo "not found" >&6; }
22527 else
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22529 $as_echo "$gcc_cv_objdump" >&6; }
22530 fi
22531
22532 # Figure out what readelf we will be using.
22533 if ${gcc_cv_readelf+:} false; then :
22534
22535 else
22536
22537 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22538 && test -f ../binutils/Makefile \
22539 && test x$build = x$host; then
22540 # Single tree build which includes binutils.
22541 gcc_cv_readelf=../binutils/readelf$build_exeext
22542 elif test -x readelf$build_exeext; then
22543 gcc_cv_readelf=./readelf$build_exeext
22544 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22545 gcc_cv_readelf="$READELF_FOR_TARGET"
22546 else
22547 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22548 set dummy $READELF_FOR_TARGET; ac_word=$2
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22550 $as_echo_n "checking for $ac_word... " >&6; }
22551 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22552 $as_echo_n "(cached) " >&6
22553 else
22554 case $gcc_cv_readelf in
22555 [\\/]* | ?:[\\/]*)
22556 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22557 ;;
22558 *)
22559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22560 for as_dir in $PATH
22561 do
22562 IFS=$as_save_IFS
22563 test -z "$as_dir" && as_dir=.
22564 for ac_exec_ext in '' $ac_executable_extensions; do
22565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22566 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22568 break 2
22569 fi
22570 done
22571 done
22572 IFS=$as_save_IFS
22573
22574 ;;
22575 esac
22576 fi
22577 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22578 if test -n "$gcc_cv_readelf"; then
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22580 $as_echo "$gcc_cv_readelf" >&6; }
22581 else
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22583 $as_echo "no" >&6; }
22584 fi
22585
22586
22587 fi
22588 fi
22589
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22591 $as_echo_n "checking what readelf to use... " >&6; }
22592 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22593 # Single tree build which includes binutils.
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22595 $as_echo "newly built readelf" >&6; }
22596 elif test x$gcc_cv_readelf = x; then
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22598 $as_echo "not found" >&6; }
22599 else
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22601 $as_echo "$gcc_cv_readelf" >&6; }
22602 fi
22603
22604 # Figure out what otool we will be using.
22605 if ${gcc_cv_otool+:} false; then :
22606
22607 else
22608
22609 if test -x otool$build_exeext; then
22610 gcc_cv_otool=./otool$build_exeext
22611 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
22612 gcc_cv_otool="$OTOOL_FOR_TARGET"
22613 else
22614 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22615 set dummy $OTOOL_FOR_TARGET; ac_word=$2
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22617 $as_echo_n "checking for $ac_word... " >&6; }
22618 if ${ac_cv_path_gcc_cv_otool+:} false; then :
22619 $as_echo_n "(cached) " >&6
22620 else
22621 case $gcc_cv_otool in
22622 [\\/]* | ?:[\\/]*)
22623 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
22624 ;;
22625 *)
22626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22627 for as_dir in $PATH
22628 do
22629 IFS=$as_save_IFS
22630 test -z "$as_dir" && as_dir=.
22631 for ac_exec_ext in '' $ac_executable_extensions; do
22632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22633 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
22634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22635 break 2
22636 fi
22637 done
22638 done
22639 IFS=$as_save_IFS
22640
22641 ;;
22642 esac
22643 fi
22644 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
22645 if test -n "$gcc_cv_otool"; then
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22647 $as_echo "$gcc_cv_otool" >&6; }
22648 else
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22650 $as_echo "no" >&6; }
22651 fi
22652
22653
22654 fi
22655 fi
22656
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22658 $as_echo_n "checking what otool to use... " >&6; }
22659 if test x$gcc_cv_otool = x; then
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22661 $as_echo "not found" >&6; }
22662 else
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22664 $as_echo "$gcc_cv_otool" >&6; }
22665 fi
22666
22667 # Figure out what assembler alignment features are present.
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22669 $as_echo_n "checking assembler flags... " >&6; }
22670 if ${gcc_cv_as_flags+:} false; then :
22671 $as_echo_n "(cached) " >&6
22672 else
22673 case "$target" in
22674 i[34567]86-*-linux*)
22675 gcc_cv_as_flags=--32
22676 ;;
22677 x86_64-*-linux-gnux32)
22678 gcc_cv_as_flags=--x32
22679 ;;
22680 x86_64-*-linux*)
22681 gcc_cv_as_flags=--64
22682 ;;
22683 powerpc*-*-darwin*)
22684 gcc_cv_as_flags="-arch ppc"
22685 ;;
22686 *)
22687 gcc_cv_as_flags=" "
22688 ;;
22689 esac
22690 fi
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22692 $as_echo "$gcc_cv_as_flags" >&6; }
22693
22694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22695 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22696 if ${gcc_cv_as_balign_and_p2align+:} false; then :
22697 $as_echo_n "(cached) " >&6
22698 else
22699 gcc_cv_as_balign_and_p2align=no
22700 if test $in_tree_gas = yes; then
22701 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22702 then gcc_cv_as_balign_and_p2align=yes
22703 fi
22704 elif test x$gcc_cv_as != x; then
22705 $as_echo '.balign 4
22706 .p2align 2' > conftest.s
22707 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22709 (eval $ac_try) 2>&5
22710 ac_status=$?
22711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22712 test $ac_status = 0; }; }
22713 then
22714 gcc_cv_as_balign_and_p2align=yes
22715 else
22716 echo "configure: failed program was" >&5
22717 cat conftest.s >&5
22718 fi
22719 rm -f conftest.o conftest.s
22720 fi
22721 fi
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22723 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22724 if test $gcc_cv_as_balign_and_p2align = yes; then
22725
22726 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22727
22728 fi
22729
22730
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22732 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22733 if ${gcc_cv_as_max_skip_p2align+:} false; then :
22734 $as_echo_n "(cached) " >&6
22735 else
22736 gcc_cv_as_max_skip_p2align=no
22737 if test $in_tree_gas = yes; then
22738 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22739 then gcc_cv_as_max_skip_p2align=yes
22740 fi
22741 elif test x$gcc_cv_as != x; then
22742 $as_echo '.p2align 4,,7' > conftest.s
22743 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22745 (eval $ac_try) 2>&5
22746 ac_status=$?
22747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22748 test $ac_status = 0; }; }
22749 then
22750 gcc_cv_as_max_skip_p2align=yes
22751 else
22752 echo "configure: failed program was" >&5
22753 cat conftest.s >&5
22754 fi
22755 rm -f conftest.o conftest.s
22756 fi
22757 fi
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22759 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22760 if test $gcc_cv_as_max_skip_p2align = yes; then
22761
22762 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22763
22764 fi
22765
22766
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22768 $as_echo_n "checking assembler for .literal16... " >&6; }
22769 if ${gcc_cv_as_literal16+:} false; then :
22770 $as_echo_n "(cached) " >&6
22771 else
22772 gcc_cv_as_literal16=no
22773 if test $in_tree_gas = yes; then
22774 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22775 then gcc_cv_as_literal16=yes
22776 fi
22777 elif test x$gcc_cv_as != x; then
22778 $as_echo '.literal16' > conftest.s
22779 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22781 (eval $ac_try) 2>&5
22782 ac_status=$?
22783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22784 test $ac_status = 0; }; }
22785 then
22786 gcc_cv_as_literal16=yes
22787 else
22788 echo "configure: failed program was" >&5
22789 cat conftest.s >&5
22790 fi
22791 rm -f conftest.o conftest.s
22792 fi
22793 fi
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22795 $as_echo "$gcc_cv_as_literal16" >&6; }
22796 if test $gcc_cv_as_literal16 = yes; then
22797
22798 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22799
22800 fi
22801
22802
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22804 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22805 if ${gcc_cv_as_subsection_m1+:} false; then :
22806 $as_echo_n "(cached) " >&6
22807 else
22808 gcc_cv_as_subsection_m1=no
22809 if test $in_tree_gas = yes; then
22810 if test $in_tree_gas_is_elf = yes \
22811 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22812 then gcc_cv_as_subsection_m1=yes
22813 fi
22814 elif test x$gcc_cv_as != x; then
22815 $as_echo 'conftest_label1: .word 0
22816 .subsection -1
22817 conftest_label2: .word 0
22818 .previous' > conftest.s
22819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22821 (eval $ac_try) 2>&5
22822 ac_status=$?
22823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22824 test $ac_status = 0; }; }
22825 then
22826 if test x$gcc_cv_nm != x; then
22827 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22828 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22829 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22830 then :
22831 else gcc_cv_as_subsection_m1=yes
22832 fi
22833 rm -f conftest.nm1 conftest.nm2
22834 fi
22835 else
22836 echo "configure: failed program was" >&5
22837 cat conftest.s >&5
22838 fi
22839 rm -f conftest.o conftest.s
22840 fi
22841 fi
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22843 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22844 if test $gcc_cv_as_subsection_m1 = yes; then
22845
22846 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22847
22848 fi
22849
22850
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22852 $as_echo_n "checking assembler for .weak... " >&6; }
22853 if ${gcc_cv_as_weak+:} false; then :
22854 $as_echo_n "(cached) " >&6
22855 else
22856 gcc_cv_as_weak=no
22857 if test $in_tree_gas = yes; then
22858 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22859 then gcc_cv_as_weak=yes
22860 fi
22861 elif test x$gcc_cv_as != x; then
22862 $as_echo ' .weak foobar' > conftest.s
22863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22865 (eval $ac_try) 2>&5
22866 ac_status=$?
22867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22868 test $ac_status = 0; }; }
22869 then
22870 gcc_cv_as_weak=yes
22871 else
22872 echo "configure: failed program was" >&5
22873 cat conftest.s >&5
22874 fi
22875 rm -f conftest.o conftest.s
22876 fi
22877 fi
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22879 $as_echo "$gcc_cv_as_weak" >&6; }
22880 if test $gcc_cv_as_weak = yes; then
22881
22882 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22883
22884 fi
22885
22886
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22888 $as_echo_n "checking assembler for .weakref... " >&6; }
22889 if ${gcc_cv_as_weakref+:} false; then :
22890 $as_echo_n "(cached) " >&6
22891 else
22892 gcc_cv_as_weakref=no
22893 if test $in_tree_gas = yes; then
22894 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22895 then gcc_cv_as_weakref=yes
22896 fi
22897 elif test x$gcc_cv_as != x; then
22898 $as_echo ' .weakref foobar, barfnot' > conftest.s
22899 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22901 (eval $ac_try) 2>&5
22902 ac_status=$?
22903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22904 test $ac_status = 0; }; }
22905 then
22906 gcc_cv_as_weakref=yes
22907 else
22908 echo "configure: failed program was" >&5
22909 cat conftest.s >&5
22910 fi
22911 rm -f conftest.o conftest.s
22912 fi
22913 fi
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22915 $as_echo "$gcc_cv_as_weakref" >&6; }
22916 if test $gcc_cv_as_weakref = yes; then
22917
22918 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22919
22920 fi
22921
22922
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22924 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22925 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
22926 $as_echo_n "(cached) " >&6
22927 else
22928 gcc_cv_as_nsubspa_comdat=no
22929 if test $in_tree_gas = yes; then
22930 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22931 then gcc_cv_as_nsubspa_comdat=yes
22932 fi
22933 elif test x$gcc_cv_as != x; then
22934 $as_echo ' .SPACE $TEXT$
22935 .NSUBSPA $CODE$,COMDAT' > conftest.s
22936 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22938 (eval $ac_try) 2>&5
22939 ac_status=$?
22940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22941 test $ac_status = 0; }; }
22942 then
22943 gcc_cv_as_nsubspa_comdat=yes
22944 else
22945 echo "configure: failed program was" >&5
22946 cat conftest.s >&5
22947 fi
22948 rm -f conftest.o conftest.s
22949 fi
22950 fi
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22952 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22953 if test $gcc_cv_as_nsubspa_comdat = yes; then
22954
22955 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22956
22957 fi
22958
22959
22960 # .hidden needs to be supported in both the assembler and the linker,
22961 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22962 # This is irritatingly difficult to feature test for; we have to check the
22963 # date string after the version number. If we've got an in-tree
22964 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22965 # to be safe.
22966 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22967 case "${target}" in
22968 *-*-aix*)
22969 conftest_s=' .globl foobar,hidden'
22970 ;;
22971 *)
22972 conftest_s=' .hidden foobar
22973 foobar:'
22974 ;;
22975 esac
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22977 $as_echo_n "checking assembler for .hidden... " >&6; }
22978 if ${gcc_cv_as_hidden+:} false; then :
22979 $as_echo_n "(cached) " >&6
22980 else
22981 gcc_cv_as_hidden=no
22982 if test $in_tree_gas = yes; then
22983 if test $in_tree_gas_is_elf = yes \
22984 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22985 then gcc_cv_as_hidden=yes
22986 fi
22987 elif test x$gcc_cv_as != x; then
22988 $as_echo "$conftest_s" > conftest.s
22989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22991 (eval $ac_try) 2>&5
22992 ac_status=$?
22993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22994 test $ac_status = 0; }; }
22995 then
22996 gcc_cv_as_hidden=yes
22997 else
22998 echo "configure: failed program was" >&5
22999 cat conftest.s >&5
23000 fi
23001 rm -f conftest.o conftest.s
23002 fi
23003 fi
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23005 $as_echo "$gcc_cv_as_hidden" >&6; }
23006
23007
23008 case "${target}" in
23009 *-*-darwin*)
23010 # Darwin as has some visibility support, though with a different syntax.
23011 gcc_cv_as_hidden=yes
23012 ;;
23013 esac
23014
23015 # gnu_indirect_function type is an extension proposed at
23016 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23017 # selection of function implementation
23018 # Check whether --enable-gnu-indirect-function was given.
23019 if test "${enable_gnu_indirect_function+set}" = set; then :
23020 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23021 yes | no) ;;
23022 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23023 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23024 esac
23025 else
23026 enable_gnu_indirect_function="$default_gnu_indirect_function"
23027 fi
23028
23029
23030 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23031
23032 cat >>confdefs.h <<_ACEOF
23033 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23034 _ACEOF
23035
23036
23037
23038 if test $in_tree_ld != yes ; then
23039 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23040 if echo "$ld_ver" | grep GNU > /dev/null; then
23041 if test x"$ld_is_gold" = xyes; then
23042 # GNU gold --version looks like this:
23043 #
23044 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23045 #
23046 # We extract the binutils version which is more familiar and specific
23047 # than the gold version.
23048 ld_vers=`echo $ld_ver | sed -n \
23049 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23050 else
23051 # GNU ld --version looks like this:
23052 #
23053 # GNU ld (GNU Binutils) 2.21.51.20110225
23054 ld_vers=`echo $ld_ver | sed -n \
23055 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23056 fi
23057 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'`
23058 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23059 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23060 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23061 else
23062 case "${target}" in
23063 *-*-solaris2*)
23064 # Solaris 2 ld -V output looks like this for a regular version:
23065 #
23066 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23067 #
23068 # but test versions add stuff at the end:
23069 #
23070 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23071 #
23072 # In Solaris 11.4, this was changed to
23073 #
23074 # ld: Solaris ELF Utilities: 11.4-1.3123
23075 #
23076 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23077 # numbers can be used in ld.so.1 feature checks even if a different
23078 # linker is configured.
23079 ld_ver=`$gcc_cv_ld -V 2>&1`
23080 if echo "$ld_ver" | $EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev/null; then
23081 ld_vers=`echo $ld_ver | sed -n \
23082 -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
23083 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23084 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23085 fi
23086 ;;
23087 esac
23088 fi
23089 fi
23090
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23092 $as_echo_n "checking linker for .hidden support... " >&6; }
23093 if ${gcc_cv_ld_hidden+:} false; then :
23094 $as_echo_n "(cached) " >&6
23095 else
23096 if test $in_tree_ld = yes ; then
23097 gcc_cv_ld_hidden=no
23098 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 \
23099 && test $in_tree_ld_is_elf = yes; then
23100 gcc_cv_ld_hidden=yes
23101 fi
23102 else
23103 gcc_cv_ld_hidden=yes
23104 if test x"$ld_is_gold" = xyes; then
23105 :
23106 elif echo "$ld_ver" | grep GNU > /dev/null; then
23107 case "${target}" in
23108 mmix-knuth-mmixware)
23109 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23110 gcc_cv_ld_hidden=no
23111 ;;
23112 esac
23113 if test 0"$ld_date" -lt 20020404; then
23114 if test -n "$ld_date"; then
23115 # If there was date string, but was earlier than 2002-04-04, fail
23116 gcc_cv_ld_hidden=no
23117 elif test -z "$ld_vers"; then
23118 # If there was no date string nor ld version number, something is wrong
23119 gcc_cv_ld_hidden=no
23120 else
23121 test -z "$ld_vers_patch" && ld_vers_patch=0
23122 if test "$ld_vers_major" -lt 2; then
23123 gcc_cv_ld_hidden=no
23124 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23125 gcc_cv_ld_hidden="no"
23126 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23127 gcc_cv_ld_hidden=no
23128 fi
23129 fi
23130 fi
23131 else
23132 case "${target}" in
23133 *-*-aix[789]*)
23134 gcc_cv_ld_hidden=yes
23135 ;;
23136 *-*-darwin*)
23137 # Darwin ld has some visibility support.
23138 gcc_cv_ld_hidden=yes
23139 ;;
23140 hppa64*-*-hpux* | ia64*-*-hpux*)
23141 gcc_cv_ld_hidden=yes
23142 ;;
23143 *-*-solaris2*)
23144 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23145 # .symbolic was only added in Solaris 9 12/02.
23146 gcc_cv_ld_hidden=yes
23147 ;;
23148 *)
23149 gcc_cv_ld_hidden=no
23150 ;;
23151 esac
23152 fi
23153 fi
23154 fi
23155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23156 $as_echo "$gcc_cv_ld_hidden" >&6; }
23157 libgcc_visibility=no
23158
23159
23160 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23161 libgcc_visibility=yes
23162
23163 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23164
23165 fi
23166
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23168 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23169 gcc_cv_ld_ro_rw_mix=unknown
23170 if test $in_tree_ld = yes ; then
23171 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 \
23172 && test $in_tree_ld_is_elf = yes; then
23173 gcc_cv_ld_ro_rw_mix=read-write
23174 fi
23175 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23176 echo '.section myfoosect, "a"' > conftest1.s
23177 echo '.section myfoosect, "aw"' > conftest2.s
23178 echo '.byte 1' >> conftest2.s
23179 echo '.section myfoosect, "a"' > conftest3.s
23180 echo '.byte 0' >> conftest3.s
23181 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23182 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23183 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23184 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23185 conftest2.o conftest3.o > /dev/null 2>&1; then
23186 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23187 | sed -e '/myfoosect/!d' -e N`
23188 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23189 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23190 gcc_cv_ld_ro_rw_mix=read-only
23191 else
23192 gcc_cv_ld_ro_rw_mix=read-write
23193 fi
23194 fi
23195 fi
23196 rm -f conftest.* conftest[123].*
23197 fi
23198 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23199
23200 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23201
23202 fi
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23204 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23205
23206 # Check whether --enable-initfini-array was given.
23207 if test "${enable_initfini_array+set}" = set; then :
23208 enableval=$enable_initfini_array;
23209 else
23210
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23212 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23213 if ${gcc_cv_initfini_array+:} false; then :
23214 $as_echo_n "(cached) " >&6
23215 else
23216 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23217 case "${target}" in
23218 ia64-*)
23219 if test "$cross_compiling" = yes; then :
23220 gcc_cv_initfini_array=no
23221 else
23222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23223 /* end confdefs.h. */
23224
23225 #ifndef __ELF__
23226 #error Not an ELF OS
23227 #endif
23228 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23229 if it can be used. */
23230 static int x = -1;
23231 int main (void) { return x; }
23232 int foo (void) { x = 0; }
23233 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23234
23235 _ACEOF
23236 if ac_fn_cxx_try_run "$LINENO"; then :
23237 gcc_cv_initfini_array=yes
23238 else
23239 gcc_cv_initfini_array=no
23240 fi
23241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23242 conftest.$ac_objext conftest.beam conftest.$ac_ext
23243 fi
23244 ;;
23245 *)
23246 gcc_cv_initfini_array=no
23247 if test $in_tree_ld = yes ; then
23248 if test "$gcc_cv_gld_major_version" -eq 2 \
23249 -a "$gcc_cv_gld_minor_version" -ge 22 \
23250 -o "$gcc_cv_gld_major_version" -gt 2 \
23251 && test $in_tree_ld_is_elf = yes; then
23252 gcc_cv_initfini_array=yes
23253 fi
23254 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23255 case $target:$gas in
23256 *:yes)
23257 sh_flags='"a"'
23258 sh_type='%progbits'
23259 ;;
23260 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23261 sh_flags='"a"'
23262 sh_type='@progbits'
23263 ;;
23264 sparc*-*-solaris2*:no)
23265 sh_flags='#alloc'
23266 sh_type='#progbits'
23267 sh_quote='"'
23268 ;;
23269 esac
23270 case "$target:$gnu_ld" in
23271 *:yes)
23272 cat > conftest.s <<EOF
23273 .section .dtors,$sh_flags,$sh_type
23274 .balign 4
23275 .byte 'A', 'A', 'A', 'A'
23276 .section .ctors,$sh_flags,$sh_type
23277 .balign 4
23278 .byte 'B', 'B', 'B', 'B'
23279 .section .fini_array.65530,$sh_flags,$sh_type
23280 .balign 4
23281 .byte 'C', 'C', 'C', 'C'
23282 .section .init_array.65530,$sh_flags,$sh_type
23283 .balign 4
23284 .byte 'D', 'D', 'D', 'D'
23285 .section .dtors.64528,$sh_flags,$sh_type
23286 .balign 4
23287 .byte 'E', 'E', 'E', 'E'
23288 .section .ctors.64528,$sh_flags,$sh_type
23289 .balign 4
23290 .byte 'F', 'F', 'F', 'F'
23291 .section .fini_array.01005,$sh_flags,$sh_type
23292 .balign 4
23293 .byte 'G', 'G', 'G', 'G'
23294 .section .init_array.01005,$sh_flags,$sh_type
23295 .balign 4
23296 .byte 'H', 'H', 'H', 'H'
23297 .text
23298 .globl _start
23299 _start:
23300 EOF
23301 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23302 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23303 && $gcc_cv_objdump -s -j .init_array conftest \
23304 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23305 && $gcc_cv_objdump -s -j .fini_array conftest \
23306 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23307 gcc_cv_initfini_array=yes
23308 fi
23309 ;;
23310 *-*-solaris2*:no)
23311 # When Solaris ld added constructor priority support, it was
23312 # decided to only handle .init_array.N/.fini_array.N since
23313 # there was no need for backwards compatibility with
23314 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23315 # sections with correct execution order resp. to
23316 # .init_array/.fini_array, while gld merges them into
23317 # .init_array/.fini_array.
23318 cat > conftest.s <<EOF
23319 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23320 .align 4
23321 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23322 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23323 .align 4
23324 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23325 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23326 .align 4
23327 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23328 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23329 .align 4
23330 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23331 .text
23332 .globl _start
23333 _start:
23334 EOF
23335 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23336 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23337 && $gcc_cv_objdump -s -j .init_array conftest \
23338 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
23339 && $gcc_cv_objdump -s -j .fini_array conftest \
23340 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
23341 gcc_cv_initfini_array=yes
23342 fi
23343 ;;
23344 esac
23345 rm -f conftest conftest.*
23346 fi
23347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23348 /* end confdefs.h. */
23349
23350 #ifndef __ELF__
23351 # error Not an ELF OS
23352 #endif
23353 #include <stdlib.h>
23354 #if defined __GLIBC_PREREQ
23355 # if __GLIBC_PREREQ (2, 4)
23356 # else
23357 # error GLIBC 2.4 required
23358 # endif
23359 #else
23360 # if defined __sun__ && defined __svr4__
23361 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23362 # else
23363 # error The C library not known to support .init_array/.fini_array
23364 # endif
23365 #endif
23366
23367 _ACEOF
23368 if ac_fn_cxx_try_cpp "$LINENO"; then :
23369
23370 else
23371 gcc_cv_initfini_array=no
23372 fi
23373 rm -f conftest.err conftest.i conftest.$ac_ext;;
23374 esac
23375 else
23376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23377 $as_echo_n "checking cross compile... guessing... " >&6; }
23378 gcc_cv_initfini_array=no
23379 fi
23380 fi
23381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23382 $as_echo "$gcc_cv_initfini_array" >&6; }
23383 enable_initfini_array=$gcc_cv_initfini_array
23384
23385 fi
23386
23387
23388 cat >>confdefs.h <<_ACEOF
23389 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23390 _ACEOF
23391
23392
23393
23394 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23396 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23397 if ${gcc_cv_as_leb128+:} false; then :
23398 $as_echo_n "(cached) " >&6
23399 else
23400 gcc_cv_as_leb128=no
23401 if test $in_tree_gas = yes; then
23402 if test $in_tree_gas_is_elf = yes \
23403 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23404 then gcc_cv_as_leb128=yes
23405 fi
23406 elif test x$gcc_cv_as != x; then
23407 $as_echo ' .data
23408 .uleb128 L2 - L1
23409 L1:
23410 .uleb128 1280
23411 .sleb128 -1010
23412 L2:' > conftest.s
23413 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23415 (eval $ac_try) 2>&5
23416 ac_status=$?
23417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23418 test $ac_status = 0; }; }
23419 then
23420 # GAS versions before 2.11 do not support uleb128,
23421 # despite appearing to.
23422 # ??? There exists an elf-specific test that will crash
23423 # the assembler. Perhaps it's better to figure out whether
23424 # arbitrary sections are supported and try the test.
23425 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23426 if echo "$as_ver" | grep GNU > /dev/null; then
23427 as_vers=`echo $as_ver | sed -n \
23428 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23429 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23430 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23431 if test $as_major -eq 2 && test $as_minor -lt 11
23432 then :
23433 else gcc_cv_as_leb128=yes
23434 fi
23435 fi
23436 else
23437 echo "configure: failed program was" >&5
23438 cat conftest.s >&5
23439 fi
23440 rm -f conftest.o conftest.s
23441 fi
23442 fi
23443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23444 $as_echo "$gcc_cv_as_leb128" >&6; }
23445 if test $gcc_cv_as_leb128 = yes; then
23446
23447 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23448
23449 fi
23450 if test $gcc_cv_as_leb128 != yes; then
23451
23452 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23453
23454 fi
23455
23456 # Determine if an .eh_frame section is read-only.
23457 gcc_fn_eh_frame_ro () {
23458 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23459 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23460 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23461 }
23462
23463 # Check if we have assembler support for unwind directives.
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23465 $as_echo_n "checking assembler for cfi directives... " >&6; }
23466 if ${gcc_cv_as_cfi_directive+:} false; then :
23467 $as_echo_n "(cached) " >&6
23468 else
23469 gcc_cv_as_cfi_directive=no
23470 if test x$gcc_cv_as != x; then
23471 $as_echo ' .text
23472 .cfi_startproc
23473 .cfi_offset 0, 0
23474 .cfi_same_value 1
23475 .cfi_def_cfa 1, 2
23476 .cfi_escape 1, 2, 3, 4, 5
23477 .cfi_endproc' > conftest.s
23478 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23480 (eval $ac_try) 2>&5
23481 ac_status=$?
23482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23483 test $ac_status = 0; }; }
23484 then
23485 case "$target" in
23486 *-*-solaris*)
23487 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23488 # read-only and read-write sections, we need to make sure that the
23489 # assembler used emits read-write .eh_frame sections.
23490 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23491 gcc_cv_as_cfi_directive=yes
23492 elif test "x$gcc_cv_objdump" = x; then
23493 # No objdump, err on the side of caution.
23494 gcc_cv_as_cfi_directive=no
23495 else
23496 if test x$gas = xyes; then
23497 as_32_opt="--32"
23498 as_64_opt="--64"
23499 else
23500 as_32_opt="-m32"
23501 as_64_opt="-m64"
23502 fi
23503 case "$target" in
23504 sparc*-*-solaris2.*)
23505 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23506 if gcc_fn_eh_frame_ro $as_32_opt \
23507 || gcc_fn_eh_frame_ro $as_64_opt; then
23508 gcc_cv_as_cfi_directive=no
23509 else
23510 gcc_cv_as_cfi_directive=yes
23511 fi
23512 ;;
23513 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23514 # On Solaris/x86, make sure that GCC and assembler agree on using
23515 # read-only .eh_frame sections for 64-bit.
23516 if gcc_fn_eh_frame_ro $as_32_opt; then
23517 gcc_cv_as_cfi_directive=no
23518 elif gcc_fn_eh_frame_ro $as_64_opt; then
23519 gcc_cv_as_cfi_directive=yes
23520 else
23521 gcc_cv_as_cfi_directive=no
23522 fi
23523 ;;
23524 esac
23525 fi
23526 ;;
23527 *-*-*)
23528 gcc_cv_as_cfi_directive=yes
23529 ;;
23530 esac
23531 else
23532 echo "configure: failed program was" >&5
23533 cat conftest.s >&5
23534 fi
23535 rm -f conftest.o conftest.s
23536 fi
23537 fi
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23539 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23540
23541
23542 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23544 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23545 if ${gcc_cv_as_cfi_advance_working+:} false; then :
23546 $as_echo_n "(cached) " >&6
23547 else
23548 gcc_cv_as_cfi_advance_working=no
23549 if test x$gcc_cv_as != x; then
23550 $as_echo ' .text
23551 .cfi_startproc
23552 .cfi_adjust_cfa_offset 64
23553 .skip 75040, 0
23554 .cfi_adjust_cfa_offset 128
23555 .cfi_endproc' > conftest.s
23556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23558 (eval $ac_try) 2>&5
23559 ac_status=$?
23560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23561 test $ac_status = 0; }; }
23562 then
23563
23564 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23565 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23566 gcc_cv_as_cfi_advance_working=yes
23567 fi
23568
23569 else
23570 echo "configure: failed program was" >&5
23571 cat conftest.s >&5
23572 fi
23573 rm -f conftest.o conftest.s
23574 fi
23575 fi
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23577 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23578
23579
23580 else
23581 # no objdump, err on the side of caution
23582 gcc_cv_as_cfi_advance_working=no
23583 fi
23584
23585
23586 cat >>confdefs.h <<_ACEOF
23587 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23588 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23589 _ACEOF
23590
23591
23592
23593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23594 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23595 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23596 $as_echo_n "(cached) " >&6
23597 else
23598 gcc_cv_as_cfi_personality_directive=no
23599 if test x$gcc_cv_as != x; then
23600 $as_echo ' .text
23601 .cfi_startproc
23602 .cfi_personality 0, symbol
23603 .cfi_endproc' > conftest.s
23604 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23606 (eval $ac_try) 2>&5
23607 ac_status=$?
23608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23609 test $ac_status = 0; }; }
23610 then
23611 gcc_cv_as_cfi_personality_directive=yes
23612 else
23613 echo "configure: failed program was" >&5
23614 cat conftest.s >&5
23615 fi
23616 rm -f conftest.o conftest.s
23617 fi
23618 fi
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23620 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23621
23622
23623
23624 cat >>confdefs.h <<_ACEOF
23625 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23626 _ACEOF
23627
23628
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23630 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23631 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
23632 $as_echo_n "(cached) " >&6
23633 else
23634 gcc_cv_as_cfi_sections_directive=no
23635 if test x$gcc_cv_as != x; then
23636 $as_echo ' .text
23637 .cfi_sections .debug_frame, .eh_frame
23638 .cfi_startproc
23639 .cfi_endproc' > conftest.s
23640 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23642 (eval $ac_try) 2>&5
23643 ac_status=$?
23644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23645 test $ac_status = 0; }; }
23646 then
23647 case $target_os in
23648 win32 | pe | cygwin* | mingw32*)
23649 # Need to check that we generated the correct relocation for the
23650 # .debug_frame section. This was fixed for binutils 2.21.
23651 gcc_cv_as_cfi_sections_directive=no
23652 if test "x$gcc_cv_objdump" != x; then
23653 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23654 grep secrel > /dev/null; then
23655 gcc_cv_as_cfi_sections_directive=yes
23656 fi
23657 fi
23658 ;;
23659 *)
23660 gcc_cv_as_cfi_sections_directive=yes
23661 ;;
23662 esac
23663 else
23664 echo "configure: failed program was" >&5
23665 cat conftest.s >&5
23666 fi
23667 rm -f conftest.o conftest.s
23668 fi
23669 fi
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23671 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23672
23673
23674
23675
23676 cat >>confdefs.h <<_ACEOF
23677 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
23678 _ACEOF
23679
23680
23681 # GAS versions up to and including 2.11.0 may mis-optimize
23682 # .eh_frame data.
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23684 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23685 if ${gcc_cv_as_eh_frame+:} false; then :
23686 $as_echo_n "(cached) " >&6
23687 else
23688 gcc_cv_as_eh_frame=no
23689 if test $in_tree_gas = yes; then
23690 if test $in_tree_gas_is_elf = yes \
23691 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23692 then gcc_cv_as_eh_frame=yes
23693 fi
23694 elif test x$gcc_cv_as != x; then
23695 $as_echo ' .text
23696 .LFB1:
23697 .4byte 0
23698 .L1:
23699 .4byte 0
23700 .LFE1:
23701 .section .eh_frame,"aw",@progbits
23702 __FRAME_BEGIN__:
23703 .4byte .LECIE1-.LSCIE1
23704 .LSCIE1:
23705 .4byte 0x0
23706 .byte 0x1
23707 .ascii "z\0"
23708 .byte 0x1
23709 .byte 0x78
23710 .byte 0x1a
23711 .byte 0x0
23712 .byte 0x4
23713 .4byte 1
23714 .p2align 1
23715 .LECIE1:
23716 .LSFDE1:
23717 .4byte .LEFDE1-.LASFDE1
23718 .LASFDE1:
23719 .4byte .LASFDE1-__FRAME_BEGIN__
23720 .4byte .LFB1
23721 .4byte .LFE1-.LFB1
23722 .byte 0x4
23723 .4byte .LFE1-.LFB1
23724 .byte 0x4
23725 .4byte .L1-.LFB1
23726 .LEFDE1:' > conftest.s
23727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23729 (eval $ac_try) 2>&5
23730 ac_status=$?
23731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23732 test $ac_status = 0; }; }
23733 then
23734 cat > conftest.lit <<EOF
23735 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23736 0010 01000000 12000000 18000000 00000000 ................
23737 0020 08000000 04080000 0044 .........D
23738 EOF
23739 cat > conftest.big <<EOF
23740 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23741 0010 00000001 00000012 00000018 00000000 ................
23742 0020 00000008 04000000 0844 .........D
23743 EOF
23744 # If the assembler didn't choke, and we can objdump,
23745 # and we got the correct data, then succeed.
23746 # The text in the here-document typically retains its unix-style line
23747 # endings, while the output of objdump will use host line endings.
23748 # Therefore, use diff -b for the comparisons.
23749 if test x$gcc_cv_objdump != x \
23750 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23751 | tail -3 > conftest.got \
23752 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23753 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23754 then
23755 gcc_cv_as_eh_frame=yes
23756 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23758 (eval $ac_try) 2>&5
23759 ac_status=$?
23760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23761 test $ac_status = 0; }; }; then
23762 gcc_cv_as_eh_frame=buggy
23763 else
23764 # Uh oh, what do we do now?
23765 gcc_cv_as_eh_frame=no
23766 fi
23767 else
23768 echo "configure: failed program was" >&5
23769 cat conftest.s >&5
23770 fi
23771 rm -f conftest.o conftest.s
23772 fi
23773 fi
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23775 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23776
23777
23778
23779 if test $gcc_cv_as_eh_frame = buggy; then
23780
23781 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23782
23783 fi
23784
23785 # Test if the assembler supports the section flag 'e' or #exclude for
23786 # specifying an excluded section.
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23788 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23789 if ${gcc_cv_as_section_exclude_e+:} false; then :
23790 $as_echo_n "(cached) " >&6
23791 else
23792 gcc_cv_as_section_exclude_e=no
23793 if test $in_tree_gas = yes; then
23794 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23795 then gcc_cv_as_section_exclude_e=yes
23796 fi
23797 elif test x$gcc_cv_as != x; then
23798 $as_echo '.section foo1,"e"
23799 .byte 0,0,0,0' > conftest.s
23800 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23802 (eval $ac_try) 2>&5
23803 ac_status=$?
23804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23805 test $ac_status = 0; }; }
23806 then
23807 gcc_cv_as_section_exclude_e=yes
23808 else
23809 echo "configure: failed program was" >&5
23810 cat conftest.s >&5
23811 fi
23812 rm -f conftest.o conftest.s
23813 fi
23814 fi
23815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23816 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23817
23818
23819 if test $gcc_cv_as_section_exclude_e = no; then
23820 case "${target}" in
23821 # Solaris as uses #exclude instead.
23822 *-*-solaris2*)
23823 case "${target}" in
23824 sparc*-*-solaris2*)
23825 conftest_s='.section "foo1", #exclude'
23826 ;;
23827 i?86-*-solaris2* | x86_64-*-solaris2*)
23828 conftest_s='.section foo1, #exclude'
23829 ;;
23830 esac
23831 ;;
23832 esac
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23834 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23835 if ${gcc_cv_as_section_exclude_hash+:} false; then :
23836 $as_echo_n "(cached) " >&6
23837 else
23838 gcc_cv_as_section_exclude_hash=no
23839 if test x$gcc_cv_as != x; then
23840 $as_echo "$conftest_s
23841 .byte 0,0,0,0" > conftest.s
23842 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23844 (eval $ac_try) 2>&5
23845 ac_status=$?
23846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23847 test $ac_status = 0; }; }
23848 then
23849 gcc_cv_as_section_exclude_hash=yes
23850 else
23851 echo "configure: failed program was" >&5
23852 cat conftest.s >&5
23853 fi
23854 rm -f conftest.o conftest.s
23855 fi
23856 fi
23857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
23858 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
23859
23860
23861 fi
23862
23863 cat >>confdefs.h <<_ACEOF
23864 #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`
23865 _ACEOF
23866
23867
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23869 $as_echo_n "checking assembler for section merging support... " >&6; }
23870 if ${gcc_cv_as_shf_merge+:} false; then :
23871 $as_echo_n "(cached) " >&6
23872 else
23873 gcc_cv_as_shf_merge=no
23874 if test $in_tree_gas = yes; then
23875 if test $in_tree_gas_is_elf = yes \
23876 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23877 then gcc_cv_as_shf_merge=yes
23878 fi
23879 elif test x$gcc_cv_as != x; then
23880 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23881 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23883 (eval $ac_try) 2>&5
23884 ac_status=$?
23885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23886 test $ac_status = 0; }; }
23887 then
23888 gcc_cv_as_shf_merge=yes
23889 else
23890 echo "configure: failed program was" >&5
23891 cat conftest.s >&5
23892 fi
23893 rm -f conftest.o conftest.s
23894 fi
23895 fi
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23897 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23898
23899
23900 if test $gcc_cv_as_shf_merge = no; then
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23902 $as_echo_n "checking assembler for section merging support... " >&6; }
23903 if ${gcc_cv_as_shf_merge+:} false; then :
23904 $as_echo_n "(cached) " >&6
23905 else
23906 gcc_cv_as_shf_merge=no
23907 if test $in_tree_gas = yes; then
23908 if test $in_tree_gas_is_elf = yes \
23909 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23910 then gcc_cv_as_shf_merge=yes
23911 fi
23912 elif test x$gcc_cv_as != x; then
23913 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23914 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23916 (eval $ac_try) 2>&5
23917 ac_status=$?
23918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23919 test $ac_status = 0; }; }
23920 then
23921 gcc_cv_as_shf_merge=yes
23922 else
23923 echo "configure: failed program was" >&5
23924 cat conftest.s >&5
23925 fi
23926 rm -f conftest.o conftest.s
23927 fi
23928 fi
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23930 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23931
23932
23933 fi
23934
23935 cat >>confdefs.h <<_ACEOF
23936 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23937 _ACEOF
23938
23939
23940 gcc_cv_ld_aligned_shf_merge=yes
23941 case "$target" in
23942 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
23943 # alignment > 1.
23944 sparc*-*-solaris2.11*)
23945 if test x"$gnu_ld" = xno \
23946 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
23947 gcc_cv_ld_aligned_shf_merge=no
23948 fi
23949 ;;
23950 esac
23951
23952 cat >>confdefs.h <<_ACEOF
23953 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
23954 _ACEOF
23955
23956
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23958 $as_echo_n "checking assembler for stabs directive... " >&6; }
23959 if ${gcc_cv_as_stabs_directive+:} false; then :
23960 $as_echo_n "(cached) " >&6
23961 else
23962 gcc_cv_as_stabs_directive=no
23963 if test x$gcc_cv_as != x; then
23964 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23965 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23967 (eval $ac_try) 2>&5
23968 ac_status=$?
23969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23970 test $ac_status = 0; }; }
23971 then
23972 gcc_cv_as_stabs_directive=yes
23973 else
23974 echo "configure: failed program was" >&5
23975 cat conftest.s >&5
23976 fi
23977 rm -f conftest.o conftest.s
23978 fi
23979 fi
23980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23981 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23982 if test $gcc_cv_as_stabs_directive = yes; then
23983
23984 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23985
23986 fi
23987
23988
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23990 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23991 if ${gcc_cv_as_comdat_group+:} false; then :
23992 $as_echo_n "(cached) " >&6
23993 else
23994 gcc_cv_as_comdat_group=no
23995 if test $in_tree_gas = yes; then
23996 if test $in_tree_gas_is_elf = yes \
23997 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23998 then gcc_cv_as_comdat_group=yes
23999 fi
24000 elif test x$gcc_cv_as != x; then
24001 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24002 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24004 (eval $ac_try) 2>&5
24005 ac_status=$?
24006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24007 test $ac_status = 0; }; }
24008 then
24009 gcc_cv_as_comdat_group=yes
24010 else
24011 echo "configure: failed program was" >&5
24012 cat conftest.s >&5
24013 fi
24014 rm -f conftest.o conftest.s
24015 fi
24016 fi
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24018 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24019
24020
24021 if test $gcc_cv_as_comdat_group = yes; then
24022 gcc_cv_as_comdat_group_percent=no
24023 gcc_cv_as_comdat_group_group=no
24024 else
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24026 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24027 if ${gcc_cv_as_comdat_group_percent+:} false; then :
24028 $as_echo_n "(cached) " >&6
24029 else
24030 gcc_cv_as_comdat_group_percent=no
24031 if test $in_tree_gas = yes; then
24032 if test $in_tree_gas_is_elf = yes \
24033 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24034 then gcc_cv_as_comdat_group_percent=yes
24035 fi
24036 elif test x$gcc_cv_as != x; then
24037 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24040 (eval $ac_try) 2>&5
24041 ac_status=$?
24042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24043 test $ac_status = 0; }; }
24044 then
24045 gcc_cv_as_comdat_group_percent=yes
24046 else
24047 echo "configure: failed program was" >&5
24048 cat conftest.s >&5
24049 fi
24050 rm -f conftest.o conftest.s
24051 fi
24052 fi
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24054 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24055
24056
24057 if test $gcc_cv_as_comdat_group_percent = yes; then
24058 gcc_cv_as_comdat_group_group=no
24059 else
24060 case "${target}" in
24061 # Sun as uses a completely different syntax.
24062 *-*-solaris2*)
24063 case "${target}" in
24064 sparc*-*-solaris2*)
24065 conftest_s='
24066 .group foo,".text%foo",#comdat
24067 .section ".text%foo", #alloc,#execinstr,#progbits
24068 .globl foo
24069 foo:
24070 '
24071 ;;
24072 i?86-*-solaris2* | x86_64-*-solaris2*)
24073 conftest_s='
24074 .group foo,.text%foo,#comdat
24075 .section .text%foo, "ax", @progbits
24076 .globl foo
24077 foo:
24078 '
24079 ;;
24080 esac
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24082 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24083 if ${gcc_cv_as_comdat_group_group+:} false; then :
24084 $as_echo_n "(cached) " >&6
24085 else
24086 gcc_cv_as_comdat_group_group=no
24087 if test x$gcc_cv_as != x; then
24088 $as_echo "$conftest_s" > conftest.s
24089 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24091 (eval $ac_try) 2>&5
24092 ac_status=$?
24093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24094 test $ac_status = 0; }; }
24095 then
24096 gcc_cv_as_comdat_group_group=yes
24097 else
24098 echo "configure: failed program was" >&5
24099 cat conftest.s >&5
24100 fi
24101 rm -f conftest.o conftest.s
24102 fi
24103 fi
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24105 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24106
24107
24108 ;;
24109 esac
24110 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24111 gcc_cv_as_comdat_group_group=no
24112 fi
24113 fi
24114 fi
24115 if test x"$ld_is_gold" = xyes; then
24116 comdat_group=yes
24117 elif test $in_tree_ld = yes ; then
24118 comdat_group=no
24119 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 \
24120 && test $in_tree_ld_is_elf = yes; then
24121 comdat_group=yes
24122 fi
24123 elif echo "$ld_ver" | grep GNU > /dev/null; then
24124 comdat_group=yes
24125 if test 0"$ld_date" -lt 20050308; then
24126 if test -n "$ld_date"; then
24127 # If there was date string, but was earlier than 2005-03-08, fail
24128 comdat_group=no
24129 elif test "$ld_vers_major" -lt 2; then
24130 comdat_group=no
24131 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24132 comdat_group=no
24133 fi
24134 fi
24135 else
24136 case "${target}" in
24137 *-*-solaris2.1[1-9]*)
24138 comdat_group=no
24139 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24140 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24141 # version 1.688.
24142 #
24143 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24144 # least ld version 1.2267.
24145 if test "$ld_vers_major" -gt 1; then
24146 comdat_group=yes
24147 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24148 comdat_group=yes
24149 elif test "$ld_vers_minor" -ge 2267; then
24150 comdat_group=yes
24151 fi
24152 ;;
24153 *)
24154 # Assume linkers other than GNU ld don't support COMDAT group.
24155 comdat_group=no
24156 ;;
24157 esac
24158 fi
24159 # Allow overriding the automatic COMDAT group tests above.
24160 # Check whether --enable-comdat was given.
24161 if test "${enable_comdat+set}" = set; then :
24162 enableval=$enable_comdat; comdat_group="$enable_comdat"
24163 fi
24164
24165 if test $comdat_group = no; then
24166 gcc_cv_as_comdat_group=no
24167 gcc_cv_as_comdat_group_percent=no
24168 gcc_cv_as_comdat_group_group=no
24169 fi
24170
24171 cat >>confdefs.h <<_ACEOF
24172 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24173 || test $gcc_cv_as_comdat_group_percent = yes \
24174 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24175 _ACEOF
24176
24177
24178 # Restrict this test to Solaris/x86: other targets define this statically.
24179 case "${target}" in
24180 i?86-*-solaris2* | x86_64-*-solaris2*)
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24182 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24183 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24184 hidden_linkonce=yes
24185 else
24186 case "${target}" in
24187 # Full support for hidden thunks in linkonce sections only appeared in
24188 # Solaris 11/OpenSolaris.
24189 *-*-solaris2.1[1-9]*)
24190 hidden_linkonce=yes
24191 ;;
24192 *)
24193 hidden_linkonce=no
24194 ;;
24195 esac
24196 fi
24197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24198 $as_echo "$hidden_linkonce" >&6; }
24199
24200 cat >>confdefs.h <<_ACEOF
24201 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24202 _ACEOF
24203
24204 ;;
24205 esac
24206
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24208 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24209 if ${gcc_cv_as_is_stmt+:} false; then :
24210 $as_echo_n "(cached) " >&6
24211 else
24212 gcc_cv_as_is_stmt=no
24213 if test $in_tree_gas = yes; then
24214 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24215 then gcc_cv_as_is_stmt=yes
24216 fi
24217 elif test x$gcc_cv_as != x; then
24218 $as_echo ' .text
24219 .file 1 "conf.c"
24220 .loc 1 1 0 is_stmt 1' > conftest.s
24221 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24223 (eval $ac_try) 2>&5
24224 ac_status=$?
24225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24226 test $ac_status = 0; }; }
24227 then
24228 gcc_cv_as_is_stmt=yes
24229 else
24230 echo "configure: failed program was" >&5
24231 cat conftest.s >&5
24232 fi
24233 rm -f conftest.o conftest.s
24234 fi
24235 fi
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24237 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24238 if test $gcc_cv_as_is_stmt = yes; then
24239
24240 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24241
24242 fi
24243
24244
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24246 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24247 if ${gcc_cv_as_discriminator+:} false; then :
24248 $as_echo_n "(cached) " >&6
24249 else
24250 gcc_cv_as_discriminator=no
24251 if test $in_tree_gas = yes; then
24252 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24253 then gcc_cv_as_discriminator=yes
24254 fi
24255 elif test x$gcc_cv_as != x; then
24256 $as_echo ' .text
24257 .file 1 "conf.c"
24258 .loc 1 1 0 discriminator 1' > conftest.s
24259 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24261 (eval $ac_try) 2>&5
24262 ac_status=$?
24263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24264 test $ac_status = 0; }; }
24265 then
24266 gcc_cv_as_discriminator=yes
24267 else
24268 echo "configure: failed program was" >&5
24269 cat conftest.s >&5
24270 fi
24271 rm -f conftest.o conftest.s
24272 fi
24273 fi
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24275 $as_echo "$gcc_cv_as_discriminator" >&6; }
24276 if test $gcc_cv_as_discriminator = yes; then
24277
24278 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24279
24280 fi
24281
24282
24283 # Thread-local storage - the check is heavily parameterized.
24284 conftest_s=
24285 tls_first_major=
24286 tls_first_minor=
24287 tls_as_opt=
24288 case "$target" in
24289 alpha*-*-*)
24290 conftest_s='
24291 .section ".tdata","awT",@progbits
24292 foo: .long 25
24293 .text
24294 ldq $27,__tls_get_addr($29) !literal!1
24295 lda $16,foo($29) !tlsgd!1
24296 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24297 ldq $27,__tls_get_addr($29) !literal!2
24298 lda $16,foo($29) !tlsldm!2
24299 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24300 ldq $1,foo($29) !gotdtprel
24301 ldah $2,foo($29) !dtprelhi
24302 lda $3,foo($2) !dtprello
24303 lda $4,foo($29) !dtprel
24304 ldq $1,foo($29) !gottprel
24305 ldah $2,foo($29) !tprelhi
24306 lda $3,foo($2) !tprello
24307 lda $4,foo($29) !tprel'
24308 tls_first_major=2
24309 tls_first_minor=13
24310 tls_as_opt=--fatal-warnings
24311 ;;
24312 arc*-*-*)
24313 conftest_s='
24314 add_s r0,r0, @foo@tpoff'
24315 tls_first_major=2
24316 tls_first_minor=23
24317 ;;
24318 cris-*-*|crisv32-*-*)
24319 conftest_s='
24320 .section ".tdata","awT",@progbits
24321 x: .long 25
24322 .text
24323 move.d x:IE,$r10
24324 nop'
24325 tls_first_major=2
24326 tls_first_minor=20
24327 tls_as_opt=--fatal-warnings
24328 ;;
24329 frv*-*-*)
24330 conftest_s='
24331 .section ".tdata","awT",@progbits
24332 x: .long 25
24333 .text
24334 call #gettlsoff(x)'
24335 tls_first_major=2
24336 tls_first_minor=14
24337 ;;
24338 hppa*-*-linux*)
24339 conftest_s='
24340 t1: .reg %r20
24341 t2: .reg %r21
24342 gp: .reg %r19
24343 .section ".tdata","awT",@progbits
24344 foo: .long 25
24345 .text
24346 .align 4
24347 addil LT%foo-$tls_gdidx$,gp
24348 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24349 b __tls_get_addr
24350 nop
24351 addil LT%foo-$tls_ldidx$,gp
24352 b __tls_get_addr
24353 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24354 addil LR%foo-$tls_dtpoff$,%ret0
24355 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24356 mfctl %cr27,%t1
24357 addil LT%foo-$tls_ieoff$,gp
24358 ldw RT%foo-$tls_ieoff$(%r1),%t2
24359 add %t1,%t2,%t3
24360 mfctl %cr27,%t1
24361 addil LR%foo-$tls_leoff$,%t1
24362 ldo RR%foo-$tls_leoff$(%r1),%t2'
24363 tls_first_major=2
24364 tls_first_minor=15
24365 tls_as_opt=--fatal-warnings
24366 ;;
24367 arm*-*-*)
24368 conftest_s='
24369 .section ".tdata","awT",%progbits
24370 foo: .long 25
24371 .text
24372 .word foo(gottpoff)
24373 .word foo(tpoff)
24374 .word foo(tlsgd)
24375 .word foo(tlsldm)
24376 .word foo(tlsldo)'
24377 tls_first_major=2
24378 tls_first_minor=17
24379 ;;
24380 i[34567]86-*-* | x86_64-*-*)
24381 case "$target" in
24382 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
24383 on_solaris=yes
24384 ;;
24385 *)
24386 on_solaris=no
24387 ;;
24388 esac
24389 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24390 conftest_s='
24391 .section .tdata,"awt",@progbits'
24392 tls_first_major=0
24393 tls_first_minor=0
24394 tls_section_flag=t
24395
24396 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24397
24398 else
24399 conftest_s='
24400 .section ".tdata","awT",@progbits'
24401 tls_first_major=2
24402 tls_first_minor=14
24403 tls_section_flag=T
24404 tls_as_opt="--fatal-warnings"
24405 fi
24406 case "$target" in
24407 i[34567]86-*-*)
24408 conftest_s="$conftest_s
24409 foo: .long 25
24410 .text
24411 movl %gs:0, %eax
24412 leal foo@tlsgd(,%ebx,1), %eax
24413 leal foo@tlsldm(%ebx), %eax
24414 leal foo@dtpoff(%eax), %edx
24415 movl foo@gottpoff(%ebx), %eax
24416 subl foo@gottpoff(%ebx), %eax
24417 addl foo@gotntpoff(%ebx), %eax
24418 movl foo@indntpoff, %eax
24419 movl \$foo@tpoff, %eax
24420 subl \$foo@tpoff, %eax
24421 leal foo@ntpoff(%ecx), %eax"
24422 ;;
24423 x86_64-*-*)
24424 if test x$on_solaris = xyes; then
24425 case $gas_flag in
24426 yes) tls_as_opt="$tls_as_opt --64" ;;
24427 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24428 esac
24429 fi
24430 conftest_s="$conftest_s
24431 foo: .long 25
24432 .text
24433 movq %fs:0, %rax
24434 leaq foo@tlsgd(%rip), %rdi
24435 leaq foo@tlsld(%rip), %rdi
24436 leaq foo@dtpoff(%rax), %rdx
24437 movq foo@gottpoff(%rip), %rax
24438 movq \$foo@tpoff, %rax"
24439 ;;
24440 esac
24441 ;;
24442 ia64-*-*)
24443 conftest_s='
24444 .section ".tdata","awT",@progbits
24445 foo: data8 25
24446 .text
24447 addl r16 = @ltoff(@dtpmod(foo#)), gp
24448 addl r17 = @ltoff(@dtprel(foo#)), gp
24449 addl r18 = @ltoff(@tprel(foo#)), gp
24450 addl r19 = @dtprel(foo#), gp
24451 adds r21 = @dtprel(foo#), r13
24452 movl r23 = @dtprel(foo#)
24453 addl r20 = @tprel(foo#), gp
24454 adds r22 = @tprel(foo#), r13
24455 movl r24 = @tprel(foo#)'
24456 tls_first_major=2
24457 tls_first_minor=13
24458 tls_as_opt=--fatal-warnings
24459 ;;
24460 microblaze*-*-*)
24461 conftest_s='
24462 .section .tdata,"awT",@progbits
24463 x:
24464 .word 2
24465 .text
24466 addik r5,r20,x@TLSGD
24467 addik r5,r20,x@TLSLDM'
24468 tls_first_major=2
24469 tls_first_minor=20
24470 tls_as_opt='--fatal-warnings'
24471 ;;
24472 mips*-*-*)
24473 conftest_s='
24474 .section .tdata,"awT",@progbits
24475 x:
24476 .word 2
24477 .text
24478 addiu $4, $28, %tlsgd(x)
24479 addiu $4, $28, %tlsldm(x)
24480 lui $4, %dtprel_hi(x)
24481 addiu $4, $4, %dtprel_lo(x)
24482 lw $4, %gottprel(x)($28)
24483 lui $4, %tprel_hi(x)
24484 addiu $4, $4, %tprel_lo(x)'
24485 tls_first_major=2
24486 tls_first_minor=16
24487 tls_as_opt='-32 --fatal-warnings'
24488 ;;
24489 m68k-*-*)
24490 conftest_s='
24491 .section .tdata,"awT",@progbits
24492 x:
24493 .word 2
24494 .text
24495 foo:
24496 move.l x@TLSGD(%a5),%a0
24497 move.l x@TLSLDM(%a5),%a0
24498 move.l x@TLSLDO(%a5),%a0
24499 move.l x@TLSIE(%a5),%a0
24500 move.l x@TLSLE(%a5),%a0'
24501 tls_first_major=2
24502 tls_first_minor=19
24503 tls_as_opt='--fatal-warnings'
24504 ;;
24505 nios2-*-*)
24506 conftest_s='
24507 .section ".tdata","awT",@progbits'
24508 tls_first_major=2
24509 tls_first_minor=23
24510 tls_as_opt="--fatal-warnings"
24511 ;;
24512 aarch64*-*-*)
24513 conftest_s='
24514 .section ".tdata","awT",%progbits
24515 foo: .long 25
24516 .text
24517 adrp x0, :tlsgd:x
24518 add x0, x0, #:tlsgd_lo12:x
24519 bl __tls_get_addr
24520 nop'
24521 tls_first_major=2
24522 tls_first_minor=20
24523 tls_as_opt='--fatal-warnings'
24524 ;;
24525 or1k*-*-*)
24526 conftest_s='
24527 .section ".tdata","awT",@progbits
24528 foo: .long 25
24529 .text
24530 l.movhi r3, tpoffha(foo)
24531 l.add r3, r3, r10
24532 l.lwz r4, tpofflo(foo)(r3)'
24533 tls_first_major=2
24534 tls_first_minor=30
24535 tls_as_opt=--fatal-warnings
24536 ;;
24537 powerpc-ibm-aix*)
24538 conftest_s='
24539 .extern __get_tpointer
24540 .toc
24541 LC..1:
24542 .tc a[TC],a[TL]@le
24543 .csect .text[PR]
24544 .tlstest:
24545 lwz 9,LC..1(2)
24546 bla __get_tpointer
24547 lwzx 3,9,3
24548 .globl a
24549 .csect a[TL],4
24550 a:
24551 .space 4'
24552 tls_first_major=0
24553 tls_first_minor=0
24554 ;;
24555 powerpc64*-*-*)
24556 conftest_s='
24557 .section ".tdata","awT",@progbits
24558 .align 3
24559 ld0: .space 8
24560 ld1: .space 8
24561 x1: .space 8
24562 x2: .space 8
24563 x3: .space 8
24564 .text
24565 addi 3,2,ld0@got@tlsgd
24566 bl .__tls_get_addr
24567 nop
24568 addi 3,2,ld1@toc
24569 bl .__tls_get_addr
24570 nop
24571 addi 3,2,x1@got@tlsld
24572 bl .__tls_get_addr
24573 nop
24574 addi 9,3,x1@dtprel
24575 bl .__tls_get_addr
24576 nop
24577 addis 9,3,x2@dtprel@ha
24578 addi 9,9,x2@dtprel@l
24579 bl .__tls_get_addr
24580 nop
24581 ld 9,x3@got@dtprel(2)
24582 add 9,9,3
24583 bl .__tls_get_addr
24584 nop'
24585 tls_first_major=2
24586 tls_first_minor=14
24587 tls_as_opt="-a64 --fatal-warnings"
24588 ;;
24589 powerpc*-*-*)
24590 conftest_s='
24591 .section ".tdata","awT",@progbits
24592 .align 2
24593 ld0: .space 4
24594 ld1: .space 4
24595 x1: .space 4
24596 x2: .space 4
24597 x3: .space 4
24598 .text
24599 addi 3,31,ld0@got@tlsgd
24600 bl __tls_get_addr
24601 addi 3,31,x1@got@tlsld
24602 bl __tls_get_addr
24603 addi 9,3,x1@dtprel
24604 addis 9,3,x2@dtprel@ha
24605 addi 9,9,x2@dtprel@l
24606 lwz 9,x3@got@tprel(31)
24607 add 9,9,x@tls
24608 addi 9,2,x1@tprel
24609 addis 9,2,x2@tprel@ha
24610 addi 9,9,x2@tprel@l'
24611 tls_first_major=2
24612 tls_first_minor=14
24613 tls_as_opt="-a32 --fatal-warnings"
24614 ;;
24615 riscv*-*-*)
24616 conftest_s='
24617 .section .tdata,"awT",@progbits
24618 x: .word 2
24619 .text
24620 la.tls.gd a0,x
24621 call __tls_get_addr'
24622 tls_first_major=2
24623 tls_first_minor=21
24624 tls_as_opt='--fatal-warnings'
24625 ;;
24626 s390-*-*)
24627 conftest_s='
24628 .section ".tdata","awT",@progbits
24629 foo: .long 25
24630 .text
24631 .long foo@TLSGD
24632 .long foo@TLSLDM
24633 .long foo@DTPOFF
24634 .long foo@NTPOFF
24635 .long foo@GOTNTPOFF
24636 .long foo@INDNTPOFF
24637 l %r1,foo@GOTNTPOFF(%r12)
24638 l %r1,0(%r1):tls_load:foo
24639 bas %r14,0(%r1,%r13):tls_gdcall:foo
24640 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24641 tls_first_major=2
24642 tls_first_minor=14
24643 tls_as_opt="-m31 --fatal-warnings"
24644 ;;
24645 s390x-*-*)
24646 conftest_s='
24647 .section ".tdata","awT",@progbits
24648 foo: .long 25
24649 .text
24650 .quad foo@TLSGD
24651 .quad foo@TLSLDM
24652 .quad foo@DTPOFF
24653 .quad foo@NTPOFF
24654 .quad foo@GOTNTPOFF
24655 lg %r1,foo@GOTNTPOFF(%r12)
24656 larl %r1,foo@INDNTPOFF
24657 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24658 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24659 tls_first_major=2
24660 tls_first_minor=14
24661 tls_as_opt="-m64 -Aesame --fatal-warnings"
24662 ;;
24663 sh-*-* | sh[123456789lbe]*-*-*)
24664 conftest_s='
24665 .section ".tdata","awT",@progbits
24666 foo: .long 25
24667 .text
24668 .long foo@TLSGD
24669 .long foo@TLSLDM
24670 .long foo@DTPOFF
24671 .long foo@GOTTPOFF
24672 .long foo@TPOFF'
24673 tls_first_major=2
24674 tls_first_minor=13
24675 tls_as_opt=--fatal-warnings
24676 ;;
24677 sparc*-*-*)
24678 case "$target" in
24679 sparc*-sun-solaris2.*)
24680 on_solaris=yes
24681 ;;
24682 *)
24683 on_solaris=no
24684 ;;
24685 esac
24686 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24687 conftest_s='
24688 .section ".tdata",#alloc,#write,#tls'
24689 tls_first_major=0
24690 tls_first_minor=0
24691 else
24692 conftest_s='
24693 .section ".tdata","awT",@progbits'
24694 tls_first_major=2
24695 tls_first_minor=14
24696 tls_as_opt="-32 --fatal-warnings"
24697 fi
24698 conftest_s="$conftest_s
24699 foo: .long 25
24700 .text
24701 sethi %tgd_hi22(foo), %o0
24702 add %o0, %tgd_lo10(foo), %o1
24703 add %l7, %o1, %o0, %tgd_add(foo)
24704 call __tls_get_addr, %tgd_call(foo)
24705 sethi %tldm_hi22(foo), %l1
24706 add %l1, %tldm_lo10(foo), %l2
24707 add %l7, %l2, %o0, %tldm_add(foo)
24708 call __tls_get_addr, %tldm_call(foo)
24709 sethi %tldo_hix22(foo), %l3
24710 xor %l3, %tldo_lox10(foo), %l4
24711 add %o0, %l4, %l5, %tldo_add(foo)
24712 sethi %tie_hi22(foo), %o3
24713 add %o3, %tie_lo10(foo), %o3
24714 ld [%l7 + %o3], %o2, %tie_ld(foo)
24715 add %g7, %o2, %o4, %tie_add(foo)
24716 sethi %tle_hix22(foo), %l1
24717 xor %l1, %tle_lox10(foo), %o5
24718 ld [%g7 + %o5], %o1"
24719 ;;
24720 tilepro*-*-*)
24721 conftest_s='
24722 .section ".tdata","awT",@progbits
24723 foo: .long 25
24724 .text
24725 addli r0, zero, tls_gd(foo)
24726 auli r0, zero, tls_gd_ha16(foo)
24727 addli r0, r0, tls_gd_lo16(foo)
24728 jal __tls_get_addr
24729 addli r0, zero, tls_ie(foo)
24730 auli r0, r0, tls_ie_ha16(foo)
24731 addli r0, r0, tls_ie_lo16(foo)'
24732 tls_first_major=2
24733 tls_first_minor=22
24734 tls_as_opt="--fatal-warnings"
24735 ;;
24736 tilegx*-*-*)
24737 conftest_s='
24738 .section ".tdata","awT",@progbits
24739 foo: .long 25
24740 .text
24741 shl16insli r0, zero, hw0_last_tls_gd(foo)
24742 shl16insli r0, zero, hw1_last_tls_gd(foo)
24743 shl16insli r0, r0, hw0_tls_gd(foo)
24744 jal __tls_get_addr
24745 shl16insli r0, zero, hw1_last_tls_ie(foo)
24746 shl16insli r0, r0, hw0_tls_ie(foo)'
24747 tls_first_major=2
24748 tls_first_minor=22
24749 tls_as_opt="--fatal-warnings"
24750 ;;
24751 xtensa*-*-*)
24752 conftest_s='
24753 .section ".tdata","awT",@progbits
24754 foo: .long 25
24755 .text
24756 movi a8, foo@TLSFUNC
24757 movi a10, foo@TLSARG
24758 callx8.tls a8, foo@TLSCALL'
24759 tls_first_major=2
24760 tls_first_minor=19
24761 ;;
24762 esac
24763 set_have_as_tls=no
24764 if test "x$enable_tls" = xno ; then
24765 : # TLS explicitly disabled.
24766 elif test "x$enable_tls" = xyes ; then
24767 set_have_as_tls=yes # TLS explicitly enabled.
24768 elif test -z "$tls_first_major"; then
24769 : # If we don't have a check, assume no support.
24770 else
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24772 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24773 if ${gcc_cv_as_tls+:} false; then :
24774 $as_echo_n "(cached) " >&6
24775 else
24776 gcc_cv_as_tls=no
24777 if test $in_tree_gas = yes; then
24778 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24779 then gcc_cv_as_tls=yes
24780 fi
24781 elif test x$gcc_cv_as != x; then
24782 $as_echo "$conftest_s" > conftest.s
24783 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24785 (eval $ac_try) 2>&5
24786 ac_status=$?
24787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24788 test $ac_status = 0; }; }
24789 then
24790 gcc_cv_as_tls=yes
24791 else
24792 echo "configure: failed program was" >&5
24793 cat conftest.s >&5
24794 fi
24795 rm -f conftest.o conftest.s
24796 fi
24797 fi
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24799 $as_echo "$gcc_cv_as_tls" >&6; }
24800 if test $gcc_cv_as_tls = yes; then
24801 set_have_as_tls=yes
24802 fi
24803
24804 fi
24805 if test $set_have_as_tls = yes ; then
24806
24807 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24808
24809 fi
24810
24811 # Target-specific assembler checks.
24812
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24814 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24815 gcc_cv_ld_static_dynamic=no
24816 gcc_cv_ld_static_option='-Bstatic'
24817 gcc_cv_ld_dynamic_option='-Bdynamic'
24818 if test $in_tree_ld = yes ; then
24819 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
24820 gcc_cv_ld_static_dynamic=yes
24821 fi
24822 elif test x$gcc_cv_ld != x; then
24823 # Check if linker supports -Bstatic/-Bdynamic option
24824 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24825 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24826 gcc_cv_ld_static_dynamic=yes
24827 else
24828 case "$target" in
24829 # AIX ld uses -b flags
24830 *-*-aix4.[23]* | *-*-aix[5-9]*)
24831 gcc_cv_ld_static_dynamic=yes
24832 gcc_cv_ld_static_option="-bstatic"
24833 gcc_cv_ld_dynamic_option="-bdynamic"
24834 ;;
24835 # HP-UX ld uses -a flags to select between shared and archive.
24836 *-*-hpux*)
24837 if test x"$gnu_ld" = xno; then
24838 gcc_cv_ld_static_dynamic=yes
24839 gcc_cv_ld_static_option="-aarchive_shared"
24840 gcc_cv_ld_dynamic_option="-adefault"
24841 fi
24842 ;;
24843 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24844 *-*-solaris2*)
24845 gcc_cv_ld_static_dynamic=yes
24846 ;;
24847 esac
24848 fi
24849 fi
24850 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24851
24852 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24853
24854
24855 cat >>confdefs.h <<_ACEOF
24856 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24857 _ACEOF
24858
24859
24860 cat >>confdefs.h <<_ACEOF
24861 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24862 _ACEOF
24863
24864 fi
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24866 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24867
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24869 $as_echo_n "checking linker --version-script option... " >&6; }
24870 gcc_cv_ld_version_script=no
24871 ld_version_script_option=''
24872 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24873 gcc_cv_ld_version_script=yes
24874 ld_version_script_option='--version-script'
24875 elif test x$gcc_cv_ld != x; then
24876 case "$target" in
24877 # Solaris 2 ld always supports -M. It also supports a subset of
24878 # --version-script since Solaris 11.4, but requires
24879 # -z gnu-version-script-compat to activate.
24880 *-*-solaris2*)
24881 gcc_cv_ld_version_script=yes
24882 ld_version_script_option='-M'
24883 ;;
24884 esac
24885 fi
24886 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24888 $as_echo "$gcc_cv_ld_version_script" >&6; }
24889
24890
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24892 $as_echo_n "checking linker soname option... " >&6; }
24893 gcc_cv_ld_soname=no
24894 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24895 gcc_cv_ld_soname=yes
24896 ld_soname_option='-soname'
24897 elif test x$gcc_cv_ld != x; then
24898 case "$target" in
24899 *-*-darwin*)
24900 gcc_cv_ld_soname=yes
24901 ld_soname_option='-install_name'
24902 ;;
24903 # Solaris 2 ld always supports -h. It also supports --soname for GNU
24904 # ld compatiblity since some Solaris 10 update.
24905 *-*-solaris2*)
24906 gcc_cv_ld_soname=yes
24907 ld_soname_option='-h'
24908 ;;
24909 esac
24910 fi
24911 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24913 $as_echo "$gcc_cv_ld_soname" >&6; }
24914
24915
24916 if test x"$demangler_in_ld" = xyes; then
24917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24918 $as_echo_n "checking linker --demangle support... " >&6; }
24919 gcc_cv_ld_demangle=no
24920 if test $in_tree_ld = yes; then
24921 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 \
24922 gcc_cv_ld_demangle=yes
24923 fi
24924 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24925 # Check if the GNU linker supports --demangle option
24926 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
24927 gcc_cv_ld_demangle=yes
24928 fi
24929 fi
24930 if test x"$gcc_cv_ld_demangle" = xyes; then
24931
24932 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24933
24934 fi
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24936 $as_echo "$gcc_cv_ld_demangle" >&6; }
24937 fi
24938
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24940 $as_echo_n "checking linker plugin support... " >&6; }
24941 gcc_cv_lto_plugin=0
24942 if test -f liblto_plugin.la; then
24943 save_ld_ver="$ld_ver"
24944 save_ld_vers_major="$ld_vers_major"
24945 save_ld_vers_minor="$ld_vers_minor"
24946 save_ld_is_gold="$ld_is_gold"
24947
24948 ld_is_gold=no
24949
24950 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24951 ld_ver="GNU ld"
24952 # FIXME: ld_is_gold?
24953 ld_vers_major="$gcc_cv_gld_major_version"
24954 ld_vers_minor="$gcc_cv_gld_minor_version"
24955 else
24956 # Determine plugin linker version.
24957 # FIXME: Partial duplicate from above, generalize.
24958 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24959 if echo "$ld_ver" | grep GNU > /dev/null; then
24960 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24961 ld_is_gold=yes
24962 ld_vers=`echo $ld_ver | sed -n \
24963 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24964 else
24965 ld_vers=`echo $ld_ver | sed -n \
24966 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24967 fi
24968 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24969 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24970 fi
24971 fi
24972
24973 # Determine plugin support.
24974 if echo "$ld_ver" | grep GNU > /dev/null; then
24975 # Require GNU ld or gold 2.21+ for plugin support by default.
24976 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24977 gcc_cv_lto_plugin=2
24978 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24979 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24980 gcc_cv_lto_plugin=1
24981 fi
24982 fi
24983
24984 ld_ver="$save_ld_ver"
24985 ld_vers_major="$save_ld_vers_major"
24986 ld_vers_minor="$save_ld_vers_minor"
24987 ld_is_gold="$save_ld_is_gold"
24988 fi
24989
24990 cat >>confdefs.h <<_ACEOF
24991 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24992 _ACEOF
24993
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24995 $as_echo "$gcc_cv_lto_plugin" >&6; }
24996
24997 # Target OS-specific assembler checks.
24998
24999 case "$target_os" in
25000 darwin*)
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25002 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25003 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25004 $as_echo_n "(cached) " >&6
25005 else
25006 gcc_cv_as_mmacosx_version_min=no
25007 if test x$gcc_cv_as != x; then
25008 $as_echo '.text' > conftest.s
25009 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25011 (eval $ac_try) 2>&5
25012 ac_status=$?
25013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25014 test $ac_status = 0; }; }
25015 then
25016 gcc_cv_as_mmacosx_version_min=yes
25017 else
25018 echo "configure: failed program was" >&5
25019 cat conftest.s >&5
25020 fi
25021 rm -f conftest.o conftest.s
25022 fi
25023 fi
25024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25025 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25026 if test $gcc_cv_as_mmacosx_version_min = yes; then
25027
25028 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25029
25030 fi
25031
25032 ;;
25033 esac
25034
25035 # Target CPU-specific assembler checks.
25036
25037 case "$target" in
25038 aarch64*-*-*)
25039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25040 $as_echo_n "checking assembler for -mabi option... " >&6; }
25041 if ${gcc_cv_as_aarch64_mabi+:} false; then :
25042 $as_echo_n "(cached) " >&6
25043 else
25044 gcc_cv_as_aarch64_mabi=no
25045 if test x$gcc_cv_as != x; then
25046 $as_echo '.text' > conftest.s
25047 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25049 (eval $ac_try) 2>&5
25050 ac_status=$?
25051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25052 test $ac_status = 0; }; }
25053 then
25054 gcc_cv_as_aarch64_mabi=yes
25055 else
25056 echo "configure: failed program was" >&5
25057 cat conftest.s >&5
25058 fi
25059 rm -f conftest.o conftest.s
25060 fi
25061 fi
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25063 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25064
25065
25066 if test x$gcc_cv_as_aarch64_mabi = xyes; then
25067
25068 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25069
25070 else
25071 if test x$with_abi = xilp32; then
25072 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25073 Upgrade the Assembler." "$LINENO" 5
25074 fi
25075 if test x"$with_multilib_list" = xdefault; then
25076 TM_MULTILIB_CONFIG=lp64
25077 else
25078 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25079 for aarch64_multilib in ${aarch64_multilibs}; do
25080 case ${aarch64_multilib} in
25081 ilp32)
25082 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25083 Upgrade the Assembler." "$LINENO" 5
25084 ;;
25085 *)
25086 ;;
25087 esac
25088 done
25089 fi
25090 fi
25091 # Check if we have binutils support for relocations types needed by -fpic
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25093 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25094 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25095 $as_echo_n "(cached) " >&6
25096 else
25097 gcc_cv_as_aarch64_picreloc=no
25098 if test x$gcc_cv_as != x; then
25099 $as_echo '
25100 .text
25101 ldr x0, [x2, #:gotpage_lo15:globalsym]
25102 ' > conftest.s
25103 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25105 (eval $ac_try) 2>&5
25106 ac_status=$?
25107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25108 test $ac_status = 0; }; }
25109 then
25110 gcc_cv_as_aarch64_picreloc=yes
25111 else
25112 echo "configure: failed program was" >&5
25113 cat conftest.s >&5
25114 fi
25115 rm -f conftest.o conftest.s
25116 fi
25117 fi
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25119 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25120 if test $gcc_cv_as_aarch64_picreloc = yes; then
25121
25122 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25123
25124 fi
25125
25126 # Enable Branch Target Identification Mechanism and Return Address
25127 # Signing by default.
25128 # Check whether --enable-standard-branch-protection was given.
25129 if test "${enable_standard_branch_protection+set}" = set; then :
25130 enableval=$enable_standard_branch_protection;
25131 case $enableval in
25132 yes)
25133 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25134 ;;
25135 no)
25136 ;;
25137 *)
25138 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25139 Valid choices are 'yes' and 'no'." "$LINENO" 5
25140 ;;
25141 esac
25142
25143 fi
25144
25145 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25146 # Check whether --enable-fix-cortex-a53-835769 was given.
25147 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25148 enableval=$enable_fix_cortex_a53_835769;
25149 case $enableval in
25150 yes)
25151 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25152 ;;
25153 no)
25154 ;;
25155 *)
25156 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25157 Valid choices are 'yes' and 'no'." "$LINENO" 5
25158 ;;
25159
25160 esac
25161
25162 fi
25163
25164 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25165 # Check whether --enable-fix-cortex-a53-843419 was given.
25166 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25167 enableval=$enable_fix_cortex_a53_843419;
25168 case $enableval in
25169 yes)
25170 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25171 ;;
25172 no)
25173 ;;
25174 *)
25175 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25176 Valid choices are 'yes' and 'no'." "$LINENO" 5
25177 ;;
25178
25179 esac
25180
25181 fi
25182
25183 ;;
25184
25185 # All TARGET_ABI_OSF targets.
25186 alpha*-*-linux* | alpha*-*-*bsd*)
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25188 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25189 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25190 $as_echo_n "(cached) " >&6
25191 else
25192 gcc_cv_as_alpha_explicit_relocs=no
25193 if test $in_tree_gas = yes; then
25194 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25195 then gcc_cv_as_alpha_explicit_relocs=yes
25196 fi
25197 elif test x$gcc_cv_as != x; then
25198 $as_echo ' .set nomacro
25199 .text
25200 extbl $3, $2, $3 !lituse_bytoff!1
25201 ldq $2, a($29) !literal!1
25202 ldq $4, b($29) !literal!2
25203 ldq_u $3, 0($2) !lituse_base!1
25204 ldq $27, f($29) !literal!5
25205 jsr $26, ($27), f !lituse_jsr!5
25206 ldah $29, 0($26) !gpdisp!3
25207 lda $0, c($29) !gprel
25208 ldah $1, d($29) !gprelhigh
25209 lda $1, d($1) !gprellow
25210 lda $29, 0($29) !gpdisp!3' > conftest.s
25211 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25213 (eval $ac_try) 2>&5
25214 ac_status=$?
25215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25216 test $ac_status = 0; }; }
25217 then
25218 gcc_cv_as_alpha_explicit_relocs=yes
25219 else
25220 echo "configure: failed program was" >&5
25221 cat conftest.s >&5
25222 fi
25223 rm -f conftest.o conftest.s
25224 fi
25225 fi
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25227 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25228 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25229
25230 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25231
25232 fi
25233
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25235 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25236 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25237 $as_echo_n "(cached) " >&6
25238 else
25239 gcc_cv_as_alpha_jsrdirect_relocs=no
25240 if test $in_tree_gas = yes; then
25241 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25242 then gcc_cv_as_alpha_jsrdirect_relocs=yes
25243 fi
25244 elif test x$gcc_cv_as != x; then
25245 $as_echo ' .set nomacro
25246 .text
25247 ldq $27, a($29) !literal!1
25248 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25249 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25251 (eval $ac_try) 2>&5
25252 ac_status=$?
25253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25254 test $ac_status = 0; }; }
25255 then
25256 gcc_cv_as_alpha_jsrdirect_relocs=yes
25257 else
25258 echo "configure: failed program was" >&5
25259 cat conftest.s >&5
25260 fi
25261 rm -f conftest.o conftest.s
25262 fi
25263 fi
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25265 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25266 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25267
25268 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25269
25270 fi
25271
25272 ;;
25273
25274 avr-*-*)
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25276 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25277 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25278 $as_echo_n "(cached) " >&6
25279 else
25280 gcc_cv_as_avr_mlink_relax=no
25281 if test x$gcc_cv_as != x; then
25282 $as_echo '.text' > conftest.s
25283 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25285 (eval $ac_try) 2>&5
25286 ac_status=$?
25287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25288 test $ac_status = 0; }; }
25289 then
25290 gcc_cv_as_avr_mlink_relax=yes
25291 else
25292 echo "configure: failed program was" >&5
25293 cat conftest.s >&5
25294 fi
25295 rm -f conftest.o conftest.s
25296 fi
25297 fi
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25299 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25300 if test $gcc_cv_as_avr_mlink_relax = yes; then
25301
25302 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25303
25304 fi
25305
25306
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25308 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25309 if ${gcc_cv_as_avr_mrmw+:} false; then :
25310 $as_echo_n "(cached) " >&6
25311 else
25312 gcc_cv_as_avr_mrmw=no
25313 if test x$gcc_cv_as != x; then
25314 $as_echo '.text' > conftest.s
25315 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25317 (eval $ac_try) 2>&5
25318 ac_status=$?
25319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25320 test $ac_status = 0; }; }
25321 then
25322 gcc_cv_as_avr_mrmw=yes
25323 else
25324 echo "configure: failed program was" >&5
25325 cat conftest.s >&5
25326 fi
25327 rm -f conftest.o conftest.s
25328 fi
25329 fi
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25331 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25332 if test $gcc_cv_as_avr_mrmw = yes; then
25333
25334 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25335
25336 fi
25337
25338
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25340 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25341 if ${gcc_cv_as_avr_mgccisr+:} false; then :
25342 $as_echo_n "(cached) " >&6
25343 else
25344 gcc_cv_as_avr_mgccisr=no
25345 if test x$gcc_cv_as != x; then
25346 $as_echo '.text
25347 __gcc_isr 1
25348 __gcc_isr 2
25349 __gcc_isr 0,r24
25350 ' > conftest.s
25351 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25353 (eval $ac_try) 2>&5
25354 ac_status=$?
25355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25356 test $ac_status = 0; }; }
25357 then
25358 gcc_cv_as_avr_mgccisr=yes
25359 else
25360 echo "configure: failed program was" >&5
25361 cat conftest.s >&5
25362 fi
25363 rm -f conftest.o conftest.s
25364 fi
25365 fi
25366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25367 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25368 if test $gcc_cv_as_avr_mgccisr = yes; then
25369
25370 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25371
25372 fi
25373
25374
25375 # Check how default linker description file implements .rodata for
25376 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25377 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25379 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25380 cat > conftest.s <<EOF
25381 .section .rodata,"a",@progbits
25382 .global xxvaryy
25383 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25384 xxvaryy:
25385 .word 1
25386 EOF
25387 rm -f conftest.nm
25388 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25390 (eval $ac_try) 2>&5
25391 ac_status=$?
25392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25393 test $ac_status = 0; }; }
25394 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25396 (eval $ac_try) 2>&5
25397 ac_status=$?
25398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25399 test $ac_status = 0; }; }
25400 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25402 (eval $ac_try) 2>&5
25403 ac_status=$?
25404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25405 test $ac_status = 0; }; }
25406 if test -s conftest.nm
25407 then
25408 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25410 $as_echo "yes" >&6; }
25411
25412 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25413
25414 else
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25416 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25417 echo "$as_me: nm output was" >&5
25418 cat conftest.nm >&5
25419 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25420 { $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
25421 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25422 fi
25423 else
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25425 $as_echo "test failed" >&6; }
25426 echo "$as_me: failed program was" >&5
25427 cat conftest.s >&5
25428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25429 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25430 fi
25431 rm -f conftest.s conftest.o conftest.elf conftest.nm
25432 ;;
25433
25434 cris-*-*)
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25436 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25437 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25438 $as_echo_n "(cached) " >&6
25439 else
25440 gcc_cv_as_cris_no_mul_bug=no
25441 if test $in_tree_gas = yes; then
25442 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25443 then gcc_cv_as_cris_no_mul_bug=yes
25444 fi
25445 elif test x$gcc_cv_as != x; then
25446 $as_echo '.text' > conftest.s
25447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25449 (eval $ac_try) 2>&5
25450 ac_status=$?
25451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25452 test $ac_status = 0; }; }
25453 then
25454 gcc_cv_as_cris_no_mul_bug=yes
25455 else
25456 echo "configure: failed program was" >&5
25457 cat conftest.s >&5
25458 fi
25459 rm -f conftest.o conftest.s
25460 fi
25461 fi
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25463 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25464 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25465
25466 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25467
25468 fi
25469
25470 ;;
25471
25472 sparc*-*-*)
25473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25474 $as_echo_n "checking assembler for -relax option... " >&6; }
25475 if ${gcc_cv_as_sparc_relax+:} false; then :
25476 $as_echo_n "(cached) " >&6
25477 else
25478 gcc_cv_as_sparc_relax=no
25479 if test x$gcc_cv_as != x; then
25480 $as_echo '.text' > conftest.s
25481 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25483 (eval $ac_try) 2>&5
25484 ac_status=$?
25485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25486 test $ac_status = 0; }; }
25487 then
25488 gcc_cv_as_sparc_relax=yes
25489 else
25490 echo "configure: failed program was" >&5
25491 cat conftest.s >&5
25492 fi
25493 rm -f conftest.o conftest.s
25494 fi
25495 fi
25496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25497 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25498 if test $gcc_cv_as_sparc_relax = yes; then
25499
25500 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25501
25502 fi
25503
25504
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25506 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25507 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25508 $as_echo_n "(cached) " >&6
25509 else
25510 gcc_cv_as_sparc_gotdata_op=no
25511 if test x$gcc_cv_as != x; then
25512 $as_echo '.text
25513 .align 4
25514 foo:
25515 nop
25516 bar:
25517 sethi %gdop_hix22(foo), %g1
25518 xor %g1, %gdop_lox10(foo), %g1
25519 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25520 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25522 (eval $ac_try) 2>&5
25523 ac_status=$?
25524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25525 test $ac_status = 0; }; }
25526 then
25527 if test x$gcc_cv_ld != x \
25528 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25529 if test x$gcc_cv_objdump != x; then
25530 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25531 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25532 gcc_cv_as_sparc_gotdata_op=no
25533 else
25534 gcc_cv_as_sparc_gotdata_op=yes
25535 fi
25536 fi
25537 fi
25538 rm -f conftest
25539 else
25540 echo "configure: failed program was" >&5
25541 cat conftest.s >&5
25542 fi
25543 rm -f conftest.o conftest.s
25544 fi
25545 fi
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25547 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25548 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25549
25550 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25551
25552 fi
25553
25554
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25556 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25557 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25558 $as_echo_n "(cached) " >&6
25559 else
25560 gcc_cv_as_sparc_ua_pcrel=no
25561 if test x$gcc_cv_as != x; then
25562 $as_echo '.text
25563 foo:
25564 nop
25565 .data
25566 .align 4
25567 .byte 0
25568 .uaword %r_disp32(foo)' > conftest.s
25569 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25571 (eval $ac_try) 2>&5
25572 ac_status=$?
25573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25574 test $ac_status = 0; }; }
25575 then
25576 if test x$gcc_cv_ld != x \
25577 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25578 gcc_cv_as_sparc_ua_pcrel=yes
25579 fi
25580 rm -f conftest
25581 else
25582 echo "configure: failed program was" >&5
25583 cat conftest.s >&5
25584 fi
25585 rm -f conftest.o conftest.s
25586 fi
25587 fi
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25589 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25590 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25591
25592 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25593
25594
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25596 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25597 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25598 $as_echo_n "(cached) " >&6
25599 else
25600 gcc_cv_as_sparc_ua_pcrel_hidden=no
25601 if test x$gcc_cv_as != x; then
25602 $as_echo '.data
25603 .align 4
25604 .byte 0x31
25605 .uaword %r_disp32(foo)
25606 .byte 0x32, 0x33, 0x34
25607 .global foo
25608 .hidden foo
25609 foo:
25610 .skip 4' > conftest.s
25611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25613 (eval $ac_try) 2>&5
25614 ac_status=$?
25615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25616 test $ac_status = 0; }; }
25617 then
25618 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25619 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25620 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25621 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25622 if $gcc_cv_objdump -R conftest 2> /dev/null \
25623 | grep 'DISP32' > /dev/null 2>&1; then
25624 :
25625 else
25626 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25627 fi
25628 fi
25629 rm -f conftest
25630 else
25631 echo "configure: failed program was" >&5
25632 cat conftest.s >&5
25633 fi
25634 rm -f conftest.o conftest.s
25635 fi
25636 fi
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25638 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25639 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25640
25641 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25642
25643 fi
25644
25645
25646 fi
25647 # unaligned pcrel relocs
25648
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25650 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25651 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
25652 $as_echo_n "(cached) " >&6
25653 else
25654 gcc_cv_as_sparc_offsetable_lo10=no
25655 if test x$gcc_cv_as != x; then
25656 $as_echo '.text
25657 or %g1, %lo(ab) + 12, %g1
25658 or %g1, %lo(ab + 12), %g1' > conftest.s
25659 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25661 (eval $ac_try) 2>&5
25662 ac_status=$?
25663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25664 test $ac_status = 0; }; }
25665 then
25666 if test x$gcc_cv_objdump != x \
25667 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25668 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25669 gcc_cv_as_sparc_offsetable_lo10=yes
25670 fi
25671 else
25672 echo "configure: failed program was" >&5
25673 cat conftest.s >&5
25674 fi
25675 rm -f conftest.o conftest.s
25676 fi
25677 fi
25678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25679 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25680 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25681
25682 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25683
25684 fi
25685
25686
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25688 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25689 if ${gcc_cv_as_sparc_fmaf+:} false; then :
25690 $as_echo_n "(cached) " >&6
25691 else
25692 gcc_cv_as_sparc_fmaf=no
25693 if test x$gcc_cv_as != x; then
25694 $as_echo '.text
25695 .register %g2, #scratch
25696 .register %g3, #scratch
25697 .align 4
25698 fmaddd %f0, %f2, %f4, %f6
25699 addxccc %g1, %g2, %g3
25700 fsrl32 %f2, %f4, %f8
25701 fnaddd %f10, %f12, %f14' > conftest.s
25702 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25704 (eval $ac_try) 2>&5
25705 ac_status=$?
25706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25707 test $ac_status = 0; }; }
25708 then
25709 gcc_cv_as_sparc_fmaf=yes
25710 else
25711 echo "configure: failed program was" >&5
25712 cat conftest.s >&5
25713 fi
25714 rm -f conftest.o conftest.s
25715 fi
25716 fi
25717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25718 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25719 if test $gcc_cv_as_sparc_fmaf = yes; then
25720
25721 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25722
25723 fi
25724
25725
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25727 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25728 if ${gcc_cv_as_sparc_sparc4+:} false; then :
25729 $as_echo_n "(cached) " >&6
25730 else
25731 gcc_cv_as_sparc_sparc4=no
25732 if test x$gcc_cv_as != x; then
25733 $as_echo '.text
25734 .register %g2, #scratch
25735 .register %g3, #scratch
25736 .align 4
25737 cxbe %g2, %g3, 1f
25738 1: cwbneg %g2, %g3, 1f
25739 1: sha1
25740 md5
25741 aes_kexpand0 %f4, %f6, %f8
25742 des_round %f38, %f40, %f42, %f44
25743 camellia_f %f54, %f56, %f58, %f60
25744 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25745 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25747 (eval $ac_try) 2>&5
25748 ac_status=$?
25749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25750 test $ac_status = 0; }; }
25751 then
25752 gcc_cv_as_sparc_sparc4=yes
25753 else
25754 echo "configure: failed program was" >&5
25755 cat conftest.s >&5
25756 fi
25757 rm -f conftest.o conftest.s
25758 fi
25759 fi
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25761 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25762 if test $gcc_cv_as_sparc_sparc4 = yes; then
25763
25764 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25765
25766 fi
25767
25768
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25770 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25771 if ${gcc_cv_as_sparc_sparc5+:} false; then :
25772 $as_echo_n "(cached) " >&6
25773 else
25774 gcc_cv_as_sparc_sparc5=no
25775 if test x$gcc_cv_as != x; then
25776 $as_echo '.text
25777 .register %g2, #scratch
25778 .register %g3, #scratch
25779 .align 4
25780 subxc %g1, %g2, %g3
25781 fpadd8 %f0, %f2, %f4' > conftest.s
25782 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25784 (eval $ac_try) 2>&5
25785 ac_status=$?
25786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25787 test $ac_status = 0; }; }
25788 then
25789 gcc_cv_as_sparc_sparc5=yes
25790 else
25791 echo "configure: failed program was" >&5
25792 cat conftest.s >&5
25793 fi
25794 rm -f conftest.o conftest.s
25795 fi
25796 fi
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25798 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25799 if test $gcc_cv_as_sparc_sparc5 = yes; then
25800
25801 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25802
25803 fi
25804
25805
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25807 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25808 if ${gcc_cv_as_sparc_sparc6+:} false; then :
25809 $as_echo_n "(cached) " >&6
25810 else
25811 gcc_cv_as_sparc_sparc6=no
25812 if test x$gcc_cv_as != x; then
25813 $as_echo '.text
25814 .register %g2, #scratch
25815 .register %g3, #scratch
25816 .align 4
25817 rd %entropy, %g1
25818 fpsll64x %f0, %f2, %f4' > conftest.s
25819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25821 (eval $ac_try) 2>&5
25822 ac_status=$?
25823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25824 test $ac_status = 0; }; }
25825 then
25826 gcc_cv_as_sparc_sparc6=yes
25827 else
25828 echo "configure: failed program was" >&5
25829 cat conftest.s >&5
25830 fi
25831 rm -f conftest.o conftest.s
25832 fi
25833 fi
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25835 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25836 if test $gcc_cv_as_sparc_sparc6 = yes; then
25837
25838 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25839
25840 fi
25841
25842
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25844 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25845 if ${gcc_cv_as_sparc_leon+:} false; then :
25846 $as_echo_n "(cached) " >&6
25847 else
25848 gcc_cv_as_sparc_leon=no
25849 if test x$gcc_cv_as != x; then
25850 $as_echo '.text
25851 .register %g2, #scratch
25852 .register %g3, #scratch
25853 .align 4
25854 smac %g2, %g3, %g1
25855 umac %g2, %g3, %g1
25856 casa [%g2] 0xb, %g3, %g1' > conftest.s
25857 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25859 (eval $ac_try) 2>&5
25860 ac_status=$?
25861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25862 test $ac_status = 0; }; }
25863 then
25864 gcc_cv_as_sparc_leon=yes
25865 else
25866 echo "configure: failed program was" >&5
25867 cat conftest.s >&5
25868 fi
25869 rm -f conftest.o conftest.s
25870 fi
25871 fi
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25873 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25874 if test $gcc_cv_as_sparc_leon = yes; then
25875
25876 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25877
25878 fi
25879
25880 ;;
25881
25882 i[34567]86-*-* | x86_64-*-*)
25883 case $target_os in
25884 cygwin*)
25885 # Full C++ conformance when using a shared libstdc++-v3 requires some
25886 # support from the Cygwin DLL, which in more recent versions exports
25887 # wrappers to aid in interposing and redirecting operators new, delete,
25888 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25889 # are configuring for a version of Cygwin that exports the wrappers.
25890 if test x$host = x$target && test x$host_cpu = xi686; then
25891 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25892 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
25893 gcc_ac_cygwin_dll_wrappers=yes
25894 else
25895 gcc_ac_cygwin_dll_wrappers=no
25896 fi
25897
25898 else
25899 # Can't check presence of libc functions during cross-compile, so
25900 # we just have to assume we're building for an up-to-date target.
25901 gcc_ac_cygwin_dll_wrappers=yes
25902 fi
25903
25904 cat >>confdefs.h <<_ACEOF
25905 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25906 _ACEOF
25907
25908 esac
25909 case $target_os in
25910 cygwin* | pe | mingw32*)
25911 # Recent binutils allows the three-operand form of ".comm" on PE. This
25912 # definition is used unconditionally to initialise the default state of
25913 # the target option variable that governs usage of the feature.
25914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25915 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25916 if ${gcc_cv_as_comm_has_align+:} false; then :
25917 $as_echo_n "(cached) " >&6
25918 else
25919 gcc_cv_as_comm_has_align=no
25920 if test $in_tree_gas = yes; then
25921 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25922 then gcc_cv_as_comm_has_align=yes
25923 fi
25924 elif test x$gcc_cv_as != x; then
25925 $as_echo '.comm foo,1,32' > conftest.s
25926 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25928 (eval $ac_try) 2>&5
25929 ac_status=$?
25930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25931 test $ac_status = 0; }; }
25932 then
25933 gcc_cv_as_comm_has_align=yes
25934 else
25935 echo "configure: failed program was" >&5
25936 cat conftest.s >&5
25937 fi
25938 rm -f conftest.o conftest.s
25939 fi
25940 fi
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25942 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25943
25944
25945
25946 cat >>confdefs.h <<_ACEOF
25947 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25948 _ACEOF
25949
25950 # Used for DWARF 2 in PE
25951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25952 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25953 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
25954 $as_echo_n "(cached) " >&6
25955 else
25956 gcc_cv_as_ix86_pe_secrel32=no
25957 if test $in_tree_gas = yes; then
25958 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25959 then gcc_cv_as_ix86_pe_secrel32=yes
25960 fi
25961 elif test x$gcc_cv_as != x; then
25962 $as_echo '.text
25963 foo: nop
25964 .data
25965 .secrel32 foo' > conftest.s
25966 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25968 (eval $ac_try) 2>&5
25969 ac_status=$?
25970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25971 test $ac_status = 0; }; }
25972 then
25973 if test x$gcc_cv_ld != x \
25974 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25975 gcc_cv_as_ix86_pe_secrel32=yes
25976 fi
25977 rm -f conftest
25978 else
25979 echo "configure: failed program was" >&5
25980 cat conftest.s >&5
25981 fi
25982 rm -f conftest.o conftest.s
25983 fi
25984 fi
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25986 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25987 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25988
25989 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25990
25991 fi
25992
25993 # Test if the assembler supports the extended form of the .section
25994 # directive that specifies section alignment. LTO support uses this,
25995 # but normally only after installation, so we warn but don't fail the
25996 # configure if LTO is enabled but the assembler does not support it.
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25998 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25999 if ${gcc_cv_as_section_has_align+:} false; then :
26000 $as_echo_n "(cached) " >&6
26001 else
26002 gcc_cv_as_section_has_align=no
26003 if test $in_tree_gas = yes; then
26004 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26005 then gcc_cv_as_section_has_align=yes
26006 fi
26007 elif test x$gcc_cv_as != x; then
26008 $as_echo '.section lto_test,"dr0"' > conftest.s
26009 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26011 (eval $ac_try) 2>&5
26012 ac_status=$?
26013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26014 test $ac_status = 0; }; }
26015 then
26016 gcc_cv_as_section_has_align=yes
26017 else
26018 echo "configure: failed program was" >&5
26019 cat conftest.s >&5
26020 fi
26021 rm -f conftest.o conftest.s
26022 fi
26023 fi
26024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26025 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26026
26027
26028 if test x$gcc_cv_as_section_has_align != xyes; then
26029 case ",$enable_languages," in
26030 *,lto,*)
26031 { $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
26032 $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;}
26033 ;;
26034 esac
26035 fi
26036 ;;
26037 esac
26038
26039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26040 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26041 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26042 $as_echo_n "(cached) " >&6
26043 else
26044 gcc_cv_as_ix86_xbrace_comment=no
26045 if test x$gcc_cv_as != x; then
26046 $as_echo '.text' > conftest.s
26047 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26049 (eval $ac_try) 2>&5
26050 ac_status=$?
26051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26052 test $ac_status = 0; }; }
26053 then
26054 gcc_cv_as_ix86_xbrace_comment=yes
26055 else
26056 echo "configure: failed program was" >&5
26057 cat conftest.s >&5
26058 fi
26059 rm -f conftest.o conftest.s
26060 fi
26061 fi
26062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26063 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26064 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26065
26066 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26067
26068 fi
26069
26070
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26072 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26073 if ${gcc_cv_as_ix86_filds+:} false; then :
26074 $as_echo_n "(cached) " >&6
26075 else
26076 gcc_cv_as_ix86_filds=no
26077 if test x$gcc_cv_as != x; then
26078 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26079 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26081 (eval $ac_try) 2>&5
26082 ac_status=$?
26083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26084 test $ac_status = 0; }; }
26085 then
26086 gcc_cv_as_ix86_filds=yes
26087 else
26088 echo "configure: failed program was" >&5
26089 cat conftest.s >&5
26090 fi
26091 rm -f conftest.o conftest.s
26092 fi
26093 fi
26094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26095 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26096 if test $gcc_cv_as_ix86_filds = yes; then
26097
26098 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26099
26100 fi
26101
26102
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26104 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26105 if ${gcc_cv_as_ix86_fildq+:} false; then :
26106 $as_echo_n "(cached) " >&6
26107 else
26108 gcc_cv_as_ix86_fildq=no
26109 if test x$gcc_cv_as != x; then
26110 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26111 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26113 (eval $ac_try) 2>&5
26114 ac_status=$?
26115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26116 test $ac_status = 0; }; }
26117 then
26118 gcc_cv_as_ix86_fildq=yes
26119 else
26120 echo "configure: failed program was" >&5
26121 cat conftest.s >&5
26122 fi
26123 rm -f conftest.o conftest.s
26124 fi
26125 fi
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26127 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26128 if test $gcc_cv_as_ix86_fildq = yes; then
26129
26130 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26131
26132 fi
26133
26134
26135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26136 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26137 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26138 $as_echo_n "(cached) " >&6
26139 else
26140 gcc_cv_as_ix86_cmov_sun_syntax=no
26141 if test x$gcc_cv_as != x; then
26142 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26145 (eval $ac_try) 2>&5
26146 ac_status=$?
26147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26148 test $ac_status = 0; }; }
26149 then
26150 gcc_cv_as_ix86_cmov_sun_syntax=yes
26151 else
26152 echo "configure: failed program was" >&5
26153 cat conftest.s >&5
26154 fi
26155 rm -f conftest.o conftest.s
26156 fi
26157 fi
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26159 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26160 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26161
26162 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26163
26164 fi
26165
26166
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26168 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26169 if ${gcc_cv_as_ix86_ffreep+:} false; then :
26170 $as_echo_n "(cached) " >&6
26171 else
26172 gcc_cv_as_ix86_ffreep=no
26173 if test x$gcc_cv_as != x; then
26174 $as_echo 'ffreep %st(1)' > conftest.s
26175 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26177 (eval $ac_try) 2>&5
26178 ac_status=$?
26179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26180 test $ac_status = 0; }; }
26181 then
26182 gcc_cv_as_ix86_ffreep=yes
26183 else
26184 echo "configure: failed program was" >&5
26185 cat conftest.s >&5
26186 fi
26187 rm -f conftest.o conftest.s
26188 fi
26189 fi
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26191 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26192 if test $gcc_cv_as_ix86_ffreep = yes; then
26193
26194 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26195
26196 fi
26197
26198
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26200 $as_echo_n "checking assembler for .quad directive... " >&6; }
26201 if ${gcc_cv_as_ix86_quad+:} false; then :
26202 $as_echo_n "(cached) " >&6
26203 else
26204 gcc_cv_as_ix86_quad=no
26205 if test x$gcc_cv_as != x; then
26206 $as_echo '.quad 0' > conftest.s
26207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26209 (eval $ac_try) 2>&5
26210 ac_status=$?
26211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26212 test $ac_status = 0; }; }
26213 then
26214 gcc_cv_as_ix86_quad=yes
26215 else
26216 echo "configure: failed program was" >&5
26217 cat conftest.s >&5
26218 fi
26219 rm -f conftest.o conftest.s
26220 fi
26221 fi
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26223 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26224 if test $gcc_cv_as_ix86_quad = yes; then
26225
26226 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26227
26228 fi
26229
26230
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26232 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26233 if ${gcc_cv_as_ix86_sahf+:} false; then :
26234 $as_echo_n "(cached) " >&6
26235 else
26236 gcc_cv_as_ix86_sahf=no
26237 if test x$gcc_cv_as != x; then
26238 $as_echo '.code64
26239 sahf' > conftest.s
26240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26242 (eval $ac_try) 2>&5
26243 ac_status=$?
26244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26245 test $ac_status = 0; }; }
26246 then
26247 gcc_cv_as_ix86_sahf=yes
26248 else
26249 echo "configure: failed program was" >&5
26250 cat conftest.s >&5
26251 fi
26252 rm -f conftest.o conftest.s
26253 fi
26254 fi
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26256 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26257 if test $gcc_cv_as_ix86_sahf = yes; then
26258
26259 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26260
26261 fi
26262
26263
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26265 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26266 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26267 $as_echo_n "(cached) " >&6
26268 else
26269 gcc_cv_as_ix86_interunit_movq=no
26270 if test x$gcc_cv_as != x; then
26271 $as_echo '.code64
26272 movq %mm0, %rax
26273 movq %rax, %xmm0' > conftest.s
26274 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26276 (eval $ac_try) 2>&5
26277 ac_status=$?
26278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26279 test $ac_status = 0; }; }
26280 then
26281 gcc_cv_as_ix86_interunit_movq=yes
26282 else
26283 echo "configure: failed program was" >&5
26284 cat conftest.s >&5
26285 fi
26286 rm -f conftest.o conftest.s
26287 fi
26288 fi
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26290 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26291
26292
26293
26294 cat >>confdefs.h <<_ACEOF
26295 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26296 _ACEOF
26297
26298
26299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26300 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26301 if ${gcc_cv_as_ix86_hle+:} false; then :
26302 $as_echo_n "(cached) " >&6
26303 else
26304 gcc_cv_as_ix86_hle=no
26305 if test x$gcc_cv_as != x; then
26306 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26307 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26309 (eval $ac_try) 2>&5
26310 ac_status=$?
26311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26312 test $ac_status = 0; }; }
26313 then
26314 gcc_cv_as_ix86_hle=yes
26315 else
26316 echo "configure: failed program was" >&5
26317 cat conftest.s >&5
26318 fi
26319 rm -f conftest.o conftest.s
26320 fi
26321 fi
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26323 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26324 if test $gcc_cv_as_ix86_hle = yes; then
26325
26326 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26327
26328 fi
26329
26330
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26332 $as_echo_n "checking assembler for swap suffix... " >&6; }
26333 if ${gcc_cv_as_ix86_swap+:} false; then :
26334 $as_echo_n "(cached) " >&6
26335 else
26336 gcc_cv_as_ix86_swap=no
26337 if test x$gcc_cv_as != x; then
26338 $as_echo 'movl.s %esp, %ebp' > conftest.s
26339 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26341 (eval $ac_try) 2>&5
26342 ac_status=$?
26343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26344 test $ac_status = 0; }; }
26345 then
26346 gcc_cv_as_ix86_swap=yes
26347 else
26348 echo "configure: failed program was" >&5
26349 cat conftest.s >&5
26350 fi
26351 rm -f conftest.o conftest.s
26352 fi
26353 fi
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26355 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26356 if test $gcc_cv_as_ix86_swap = yes; then
26357
26358 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26359
26360 fi
26361
26362
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26364 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26365 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26366 $as_echo_n "(cached) " >&6
26367 else
26368 gcc_cv_as_ix86_diff_sect_delta=no
26369 if test x$gcc_cv_as != x; then
26370 $as_echo '.section .rodata
26371 .L1:
26372 .long .L2-.L1
26373 .long .L3-.L1
26374 .text
26375 .L3: nop
26376 .L2: nop' > conftest.s
26377 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26379 (eval $ac_try) 2>&5
26380 ac_status=$?
26381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26382 test $ac_status = 0; }; }
26383 then
26384 gcc_cv_as_ix86_diff_sect_delta=yes
26385 else
26386 echo "configure: failed program was" >&5
26387 cat conftest.s >&5
26388 fi
26389 rm -f conftest.o conftest.s
26390 fi
26391 fi
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26393 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26394 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26395
26396 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26397
26398 fi
26399
26400
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26402 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26403 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26404 $as_echo_n "(cached) " >&6
26405 else
26406 gcc_cv_as_ix86_rep_lock_prefix=no
26407 if test x$gcc_cv_as != x; then
26408 $as_echo 'rep movsl
26409 rep ret
26410 rep nop
26411 rep bsf %ecx, %eax
26412 rep bsr %ecx, %eax
26413 lock addl %edi, (%eax,%esi)
26414 lock orl $0, (%esp)' > conftest.s
26415 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26417 (eval $ac_try) 2>&5
26418 ac_status=$?
26419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26420 test $ac_status = 0; }; }
26421 then
26422 gcc_cv_as_ix86_rep_lock_prefix=yes
26423 else
26424 echo "configure: failed program was" >&5
26425 cat conftest.s >&5
26426 fi
26427 rm -f conftest.o conftest.s
26428 fi
26429 fi
26430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26431 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26432 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26433
26434 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26435
26436 fi
26437
26438
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26440 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26441 if ${gcc_cv_as_ix86_ud2+:} false; then :
26442 $as_echo_n "(cached) " >&6
26443 else
26444 gcc_cv_as_ix86_ud2=no
26445 if test x$gcc_cv_as != x; then
26446 $as_echo 'ud2' > conftest.s
26447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26449 (eval $ac_try) 2>&5
26450 ac_status=$?
26451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26452 test $ac_status = 0; }; }
26453 then
26454 gcc_cv_as_ix86_ud2=yes
26455 else
26456 echo "configure: failed program was" >&5
26457 cat conftest.s >&5
26458 fi
26459 rm -f conftest.o conftest.s
26460 fi
26461 fi
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26463 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26464 if test $gcc_cv_as_ix86_ud2 = yes; then
26465
26466 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26467
26468 fi
26469
26470
26471 # Enforce 32-bit output with gas and gld.
26472 if test x$gas = xyes; then
26473 as_ix86_gas_32_opt="--32"
26474 fi
26475 if echo "$ld_ver" | grep GNU > /dev/null; then
26476 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26477 ld_ix86_gld_32_opt="-melf_i386_sol2"
26478 else
26479 ld_ix86_gld_32_opt="-melf_i386"
26480 fi
26481 fi
26482
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26484 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26485 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26486 $as_echo_n "(cached) " >&6
26487 else
26488 gcc_cv_as_ix86_tlsgdplt=no
26489 if test x$gcc_cv_as != x; then
26490 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26491 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26493 (eval $ac_try) 2>&5
26494 ac_status=$?
26495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26496 test $ac_status = 0; }; }
26497 then
26498 if test x$gcc_cv_ld != x \
26499 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26500 gcc_cv_as_ix86_tlsgdplt=yes
26501 fi
26502 rm -f conftest
26503 else
26504 echo "configure: failed program was" >&5
26505 cat conftest.s >&5
26506 fi
26507 rm -f conftest.o conftest.s
26508 fi
26509 fi
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26511 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26512 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26513
26514 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26515
26516 fi
26517
26518
26519 conftest_s='
26520 .section .tdata,"aw'$tls_section_flag'",@progbits
26521 tls_ld:
26522 .section .text,"ax",@progbits
26523 call tls_ld@tlsldmplt'
26524
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26526 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26527 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26528 $as_echo_n "(cached) " >&6
26529 else
26530 gcc_cv_as_ix86_tlsldmplt=no
26531 if test x$gcc_cv_as != x; then
26532 $as_echo "$conftest_s" > conftest.s
26533 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26535 (eval $ac_try) 2>&5
26536 ac_status=$?
26537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26538 test $ac_status = 0; }; }
26539 then
26540 if test x$gcc_cv_ld != x \
26541 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26542 gcc_cv_as_ix86_tlsldmplt=yes
26543 fi
26544 rm -f conftest
26545 else
26546 echo "configure: failed program was" >&5
26547 cat conftest.s >&5
26548 fi
26549 rm -f conftest.o conftest.s
26550 fi
26551 fi
26552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26553 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26554
26555
26556
26557 cat >>confdefs.h <<_ACEOF
26558 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26559 _ACEOF
26560
26561
26562 conftest_s='
26563 .section .text,"ax",@progbits
26564 .globl _start
26565 .type _start, @function
26566 _start:
26567 leal value@tlsldm(%ebx), %eax
26568 call ___tls_get_addr@plt
26569
26570 .section .tdata,"aw'$tls_section_flag'",@progbits
26571 .type value, @object
26572 value:'
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26574 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26575 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26576 $as_echo_n "(cached) " >&6
26577 else
26578 gcc_cv_as_ix86_tlsldm=no
26579 if test x$gcc_cv_as != x; then
26580 $as_echo "$conftest_s" > conftest.s
26581 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26583 (eval $ac_try) 2>&5
26584 ac_status=$?
26585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26586 test $ac_status = 0; }; }
26587 then
26588 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26589 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26590 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26591 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26592 gcc_cv_as_ix86_tlsldm=yes
26593 fi
26594 fi
26595 rm -f conftest
26596 else
26597 echo "configure: failed program was" >&5
26598 cat conftest.s >&5
26599 fi
26600 rm -f conftest.o conftest.s
26601 fi
26602 fi
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26604 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26605
26606
26607
26608 cat >>confdefs.h <<_ACEOF
26609 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26610 _ACEOF
26611
26612
26613 conftest_s='
26614 .data
26615 bar:
26616 .byte 1
26617 .text
26618 .global _start
26619 _start:
26620 cmpl $0, bar@GOT
26621 jmp *_start@GOT'
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26623 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26624 if ${gcc_cv_as_ix86_got32x+:} false; then :
26625 $as_echo_n "(cached) " >&6
26626 else
26627 gcc_cv_as_ix86_got32x=no
26628 if test x$gcc_cv_as != x; then
26629 $as_echo "$conftest_s" > conftest.s
26630 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26632 (eval $ac_try) 2>&5
26633 ac_status=$?
26634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26635 test $ac_status = 0; }; }
26636 then
26637 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26638 && test x$gcc_cv_readelf != x \
26639 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26640 | grep R_386_GOT32X > /dev/null 2>&1 \
26641 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26642 if $gcc_cv_objdump -dw conftest 2>&1 \
26643 | grep 0xffffff > /dev/null 2>&1; then
26644 gcc_cv_as_ix86_got32x=no
26645 else
26646 gcc_cv_as_ix86_got32x=yes
26647 fi
26648 fi
26649 rm -f conftest
26650 else
26651 echo "configure: failed program was" >&5
26652 cat conftest.s >&5
26653 fi
26654 rm -f conftest.o conftest.s
26655 fi
26656 fi
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26658 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26659
26660
26661
26662 cat >>confdefs.h <<_ACEOF
26663 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26664 _ACEOF
26665
26666
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26668 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26669 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
26670 $as_echo_n "(cached) " >&6
26671 else
26672 gcc_cv_as_ix86_gotoff_in_data=no
26673 if test $in_tree_gas = yes; then
26674 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26675 then gcc_cv_as_ix86_gotoff_in_data=yes
26676 fi
26677 elif test x$gcc_cv_as != x; then
26678 $as_echo ' .text
26679 .L0:
26680 nop
26681 .data
26682 .long .L0@GOTOFF' > conftest.s
26683 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26685 (eval $ac_try) 2>&5
26686 ac_status=$?
26687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26688 test $ac_status = 0; }; }
26689 then
26690 gcc_cv_as_ix86_gotoff_in_data=yes
26691 else
26692 echo "configure: failed program was" >&5
26693 cat conftest.s >&5
26694 fi
26695 rm -f conftest.o conftest.s
26696 fi
26697 fi
26698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26699 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26700
26701
26702
26703 cat >>confdefs.h <<_ACEOF
26704 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26705 _ACEOF
26706
26707
26708 conftest_s='
26709 .section .text,"ax",@progbits
26710 .globl _start
26711 .type _start, @function
26712 _start:
26713 leal ld@tlsldm(%ecx), %eax
26714 call *___tls_get_addr@GOT(%ecx)
26715 leal gd@tlsgd(%ecx), %eax
26716 call *___tls_get_addr@GOT(%ecx)
26717
26718 .section .tdata,"aw'$tls_section_flag'",@progbits
26719 .type ld, @object
26720 ld:
26721 .byte 0
26722 .globl gd
26723 .type gd, @object
26724 gd:
26725 .byte 0'
26726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26727 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26728 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
26729 $as_echo_n "(cached) " >&6
26730 else
26731 gcc_cv_as_ix86_tls_get_addr_via_got=no
26732 if test x$gcc_cv_as != x; then
26733 $as_echo "$conftest_s" > conftest.s
26734 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26736 (eval $ac_try) 2>&5
26737 ac_status=$?
26738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26739 test $ac_status = 0; }; }
26740 then
26741 if test x$gcc_cv_ld != x \
26742 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26743 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26744 fi
26745 rm -f conftest
26746 else
26747 echo "configure: failed program was" >&5
26748 cat conftest.s >&5
26749 fi
26750 rm -f conftest.o conftest.s
26751 fi
26752 fi
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26754 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26755
26756
26757
26758 cat >>confdefs.h <<_ACEOF
26759 #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`
26760 _ACEOF
26761
26762 ;;
26763
26764 ia64*-*-*)
26765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26766 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26767 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
26768 $as_echo_n "(cached) " >&6
26769 else
26770 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26771 if test $in_tree_gas = yes; then
26772 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26773 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26774 fi
26775 elif test x$gcc_cv_as != x; then
26776 $as_echo ' .text
26777 addl r15 = @ltoffx(x#), gp
26778 ;;
26779 ld8.mov r16 = [r15], x#
26780 ' > conftest.s
26781 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26783 (eval $ac_try) 2>&5
26784 ac_status=$?
26785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26786 test $ac_status = 0; }; }
26787 then
26788 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26789 else
26790 echo "configure: failed program was" >&5
26791 cat conftest.s >&5
26792 fi
26793 rm -f conftest.o conftest.s
26794 fi
26795 fi
26796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26797 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26798 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26799
26800 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26801
26802 fi
26803
26804
26805 ;;
26806
26807 powerpc*-*-*)
26808
26809 case $target in
26810 *-*-darwin*)
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26812 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26813 if ${gcc_cv_as_machine_directive+:} false; then :
26814 $as_echo_n "(cached) " >&6
26815 else
26816 gcc_cv_as_machine_directive=no
26817 if test x$gcc_cv_as != x; then
26818 $as_echo ' .machine ppc7400' > conftest.s
26819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26821 (eval $ac_try) 2>&5
26822 ac_status=$?
26823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26824 test $ac_status = 0; }; }
26825 then
26826 gcc_cv_as_machine_directive=yes
26827 else
26828 echo "configure: failed program was" >&5
26829 cat conftest.s >&5
26830 fi
26831 rm -f conftest.o conftest.s
26832 fi
26833 fi
26834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26835 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26836
26837
26838 if test x$gcc_cv_as_machine_directive != xyes; then
26839 echo "*** This target requires an assembler supporting \".machine\"" >&2
26840 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26841 test x$build = x$target && exit 1
26842 fi
26843 ;;
26844 esac
26845
26846 case $target in
26847 *-*-aix*) conftest_s=' .machine "pwr5"
26848 .csect .text[PR]
26849 mfcr 3,128';;
26850 *-*-darwin*) conftest_s=' .text
26851 mfcr r3,128';;
26852 *) conftest_s=' .machine power4
26853 .text
26854 mfcr 3,128';;
26855 esac
26856
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26858 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26859 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
26860 $as_echo_n "(cached) " >&6
26861 else
26862 gcc_cv_as_powerpc_mfcrf=no
26863 if test $in_tree_gas = yes; then
26864 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26865 then gcc_cv_as_powerpc_mfcrf=yes
26866 fi
26867 elif test x$gcc_cv_as != x; then
26868 $as_echo "$conftest_s" > conftest.s
26869 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26871 (eval $ac_try) 2>&5
26872 ac_status=$?
26873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26874 test $ac_status = 0; }; }
26875 then
26876 gcc_cv_as_powerpc_mfcrf=yes
26877 else
26878 echo "configure: failed program was" >&5
26879 cat conftest.s >&5
26880 fi
26881 rm -f conftest.o conftest.s
26882 fi
26883 fi
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26885 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26886 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26887
26888 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26889
26890 fi
26891
26892
26893 case $target in
26894 *-*-aix*) conftest_s=' .csect .text[PR]
26895 LCF..0:
26896 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26897 *-*-darwin*)
26898 conftest_s=' .text
26899 LCF0:
26900 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26901 *) conftest_s=' .text
26902 .LCF0:
26903 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26904 esac
26905
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26907 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26908 if ${gcc_cv_as_powerpc_rel16+:} false; then :
26909 $as_echo_n "(cached) " >&6
26910 else
26911 gcc_cv_as_powerpc_rel16=no
26912 if test $in_tree_gas = yes; then
26913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26914 then gcc_cv_as_powerpc_rel16=yes
26915 fi
26916 elif test x$gcc_cv_as != x; then
26917 $as_echo "$conftest_s" > conftest.s
26918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26920 (eval $ac_try) 2>&5
26921 ac_status=$?
26922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26923 test $ac_status = 0; }; }
26924 then
26925 gcc_cv_as_powerpc_rel16=yes
26926 else
26927 echo "configure: failed program was" >&5
26928 cat conftest.s >&5
26929 fi
26930 rm -f conftest.o conftest.s
26931 fi
26932 fi
26933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26934 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26935 if test $gcc_cv_as_powerpc_rel16 = yes; then
26936
26937 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26938
26939 fi
26940
26941
26942 case $target in
26943 *-*-aix*) conftest_s=' .machine "pwr7"
26944 .csect .text[PR]
26945 lxvd2x 1,2,3';;
26946 *) conftest_s=' .machine power7
26947 .text
26948 lxvd2x 1,2,3';;
26949 esac
26950
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26952 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26953 if ${gcc_cv_as_powerpc_vsx+:} false; then :
26954 $as_echo_n "(cached) " >&6
26955 else
26956 gcc_cv_as_powerpc_vsx=no
26957 if test $in_tree_gas = yes; then
26958 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26959 then gcc_cv_as_powerpc_vsx=yes
26960 fi
26961 elif test x$gcc_cv_as != x; then
26962 $as_echo "$conftest_s" > conftest.s
26963 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26965 (eval $ac_try) 2>&5
26966 ac_status=$?
26967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26968 test $ac_status = 0; }; }
26969 then
26970 gcc_cv_as_powerpc_vsx=yes
26971 else
26972 echo "configure: failed program was" >&5
26973 cat conftest.s >&5
26974 fi
26975 rm -f conftest.o conftest.s
26976 fi
26977 fi
26978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26979 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26980 if test $gcc_cv_as_powerpc_vsx = yes; then
26981
26982 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26983
26984 fi
26985
26986
26987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26988 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26989 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
26990 $as_echo_n "(cached) " >&6
26991 else
26992 gcc_cv_as_powerpc_gnu_attribute=no
26993 if test $in_tree_gas = yes; then
26994 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26995 then gcc_cv_as_powerpc_gnu_attribute=yes
26996 fi
26997 elif test x$gcc_cv_as != x; then
26998 $as_echo '.gnu_attribute 4,1' > conftest.s
26999 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27001 (eval $ac_try) 2>&5
27002 ac_status=$?
27003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27004 test $ac_status = 0; }; }
27005 then
27006 gcc_cv_as_powerpc_gnu_attribute=yes
27007 else
27008 echo "configure: failed program was" >&5
27009 cat conftest.s >&5
27010 fi
27011 rm -f conftest.o conftest.s
27012 fi
27013 fi
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27015 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27016 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27017
27018 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27019
27020 fi
27021
27022
27023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27024 $as_echo_n "checking assembler for tls marker support... " >&6; }
27025 if ${gcc_cv_as_powerpc_tls_markers+:} false; then :
27026 $as_echo_n "(cached) " >&6
27027 else
27028 gcc_cv_as_powerpc_tls_markers=no
27029 if test $in_tree_gas = yes; then
27030 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27031 then gcc_cv_as_powerpc_tls_markers=yes
27032 fi
27033 elif test x$gcc_cv_as != x; then
27034 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27035 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27037 (eval $ac_try) 2>&5
27038 ac_status=$?
27039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27040 test $ac_status = 0; }; }
27041 then
27042 gcc_cv_as_powerpc_tls_markers=yes
27043 else
27044 echo "configure: failed program was" >&5
27045 cat conftest.s >&5
27046 fi
27047 rm -f conftest.o conftest.s
27048 fi
27049 fi
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27051 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27052 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27053
27054 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27055
27056 fi
27057
27058
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27060 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27061 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27062 $as_echo_n "(cached) " >&6
27063 else
27064 gcc_cv_as_powerpc_entry_markers=no
27065 if test $in_tree_gas = yes; then
27066 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27067 then gcc_cv_as_powerpc_entry_markers=yes
27068 fi
27069 elif test x$gcc_cv_as != x; then
27070 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27071 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27073 (eval $ac_try) 2>&5
27074 ac_status=$?
27075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27076 test $ac_status = 0; }; }
27077 then
27078 gcc_cv_as_powerpc_entry_markers=yes
27079 else
27080 echo "configure: failed program was" >&5
27081 cat conftest.s >&5
27082 fi
27083 rm -f conftest.o conftest.s
27084 fi
27085 fi
27086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27087 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27088 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27089
27090 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27091
27092 fi
27093
27094
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27096 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27097 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27098 $as_echo_n "(cached) " >&6
27099 else
27100 gcc_cv_as_powerpc_pltseq_markers=no
27101 if test $in_tree_gas = yes; then
27102 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27103 then gcc_cv_as_powerpc_pltseq_markers=yes
27104 fi
27105 elif test x$gcc_cv_as != x; then
27106 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27107 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27109 (eval $ac_try) 2>&5
27110 ac_status=$?
27111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27112 test $ac_status = 0; }; }
27113 then
27114 gcc_cv_as_powerpc_pltseq_markers=yes
27115 else
27116 echo "configure: failed program was" >&5
27117 cat conftest.s >&5
27118 fi
27119 rm -f conftest.o conftest.s
27120 fi
27121 fi
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27123 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27124 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27125
27126 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27127
27128 fi
27129
27130
27131 case $target in
27132 *-*-aix*)
27133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27134 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27135 if ${gcc_cv_as_aix_ref+:} false; then :
27136 $as_echo_n "(cached) " >&6
27137 else
27138 gcc_cv_as_aix_ref=no
27139 if test $in_tree_gas = yes; then
27140 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27141 then gcc_cv_as_aix_ref=yes
27142 fi
27143 elif test x$gcc_cv_as != x; then
27144 $as_echo ' .csect stuff[rw]
27145 stuff:
27146 .long 1
27147 .extern sym
27148 .ref sym
27149 ' > conftest.s
27150 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27152 (eval $ac_try) 2>&5
27153 ac_status=$?
27154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27155 test $ac_status = 0; }; }
27156 then
27157 gcc_cv_as_aix_ref=yes
27158 else
27159 echo "configure: failed program was" >&5
27160 cat conftest.s >&5
27161 fi
27162 rm -f conftest.o conftest.s
27163 fi
27164 fi
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27166 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27167 if test $gcc_cv_as_aix_ref = yes; then
27168
27169 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27170
27171 fi
27172
27173
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27175 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27176 if ${gcc_cv_as_aix_dwloc+:} false; then :
27177 $as_echo_n "(cached) " >&6
27178 else
27179 gcc_cv_as_aix_dwloc=no
27180 if test $in_tree_gas = yes; then
27181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27182 then gcc_cv_as_aix_dwloc=yes
27183 fi
27184 elif test x$gcc_cv_as != x; then
27185 $as_echo ' .dwsect 0xA0000
27186 Lframe..0:
27187 .vbyte 4,Lframe..0
27188 ' > conftest.s
27189 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27191 (eval $ac_try) 2>&5
27192 ac_status=$?
27193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27194 test $ac_status = 0; }; }
27195 then
27196 gcc_cv_as_aix_dwloc=yes
27197 else
27198 echo "configure: failed program was" >&5
27199 cat conftest.s >&5
27200 fi
27201 rm -f conftest.o conftest.s
27202 fi
27203 fi
27204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27205 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27206 if test $gcc_cv_as_aix_dwloc = yes; then
27207
27208 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27209
27210 fi
27211
27212 ;;
27213 esac
27214 ;;
27215
27216 mips*-*-*)
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27218 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27219 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27220 $as_echo_n "(cached) " >&6
27221 else
27222 gcc_cv_as_mips_explicit_relocs=no
27223 if test $in_tree_gas = yes; then
27224 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27225 then gcc_cv_as_mips_explicit_relocs=yes
27226 fi
27227 elif test x$gcc_cv_as != x; then
27228 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27231 (eval $ac_try) 2>&5
27232 ac_status=$?
27233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27234 test $ac_status = 0; }; }
27235 then
27236 gcc_cv_as_mips_explicit_relocs=yes
27237 else
27238 echo "configure: failed program was" >&5
27239 cat conftest.s >&5
27240 fi
27241 rm -f conftest.o conftest.s
27242 fi
27243 fi
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27245 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27246 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27247 if test x$target_cpu_default = x
27248 then target_cpu_default=MASK_EXPLICIT_RELOCS
27249 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27250 fi
27251 fi
27252
27253
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27255 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27256 if ${gcc_cv_as_mips_no_shared+:} false; then :
27257 $as_echo_n "(cached) " >&6
27258 else
27259 gcc_cv_as_mips_no_shared=no
27260 if test $in_tree_gas = yes; then
27261 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27262 then gcc_cv_as_mips_no_shared=yes
27263 fi
27264 elif test x$gcc_cv_as != x; then
27265 $as_echo 'nop' > conftest.s
27266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27268 (eval $ac_try) 2>&5
27269 ac_status=$?
27270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27271 test $ac_status = 0; }; }
27272 then
27273 gcc_cv_as_mips_no_shared=yes
27274 else
27275 echo "configure: failed program was" >&5
27276 cat conftest.s >&5
27277 fi
27278 rm -f conftest.o conftest.s
27279 fi
27280 fi
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27282 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27283 if test $gcc_cv_as_mips_no_shared = yes; then
27284
27285 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27286
27287 fi
27288
27289
27290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27291 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27292 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27293 $as_echo_n "(cached) " >&6
27294 else
27295 gcc_cv_as_mips_gnu_attribute=no
27296 if test $in_tree_gas = yes; then
27297 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27298 then gcc_cv_as_mips_gnu_attribute=yes
27299 fi
27300 elif test x$gcc_cv_as != x; then
27301 $as_echo '.gnu_attribute 4,1' > conftest.s
27302 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27304 (eval $ac_try) 2>&5
27305 ac_status=$?
27306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27307 test $ac_status = 0; }; }
27308 then
27309 gcc_cv_as_mips_gnu_attribute=yes
27310 else
27311 echo "configure: failed program was" >&5
27312 cat conftest.s >&5
27313 fi
27314 rm -f conftest.o conftest.s
27315 fi
27316 fi
27317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27318 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27319 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27320
27321 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27322
27323 fi
27324
27325
27326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27327 $as_echo_n "checking assembler for .module support... " >&6; }
27328 if ${gcc_cv_as_mips_dot_module+:} false; then :
27329 $as_echo_n "(cached) " >&6
27330 else
27331 gcc_cv_as_mips_dot_module=no
27332 if test x$gcc_cv_as != x; then
27333 $as_echo '.module mips2
27334 .module fp=xx' > conftest.s
27335 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27337 (eval $ac_try) 2>&5
27338 ac_status=$?
27339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27340 test $ac_status = 0; }; }
27341 then
27342 gcc_cv_as_mips_dot_module=yes
27343 else
27344 echo "configure: failed program was" >&5
27345 cat conftest.s >&5
27346 fi
27347 rm -f conftest.o conftest.s
27348 fi
27349 fi
27350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27351 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27352 if test $gcc_cv_as_mips_dot_module = yes; then
27353
27354 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27355
27356 fi
27357
27358 if test x$gcc_cv_as_mips_dot_module = xno \
27359 && test x$with_fp_32 != x; then
27360 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27361 fi
27362
27363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27364 $as_echo_n "checking assembler for .micromips support... " >&6; }
27365 if ${gcc_cv_as_micromips_support+:} false; then :
27366 $as_echo_n "(cached) " >&6
27367 else
27368 gcc_cv_as_micromips_support=no
27369 if test x$gcc_cv_as != x; then
27370 $as_echo '.set micromips' > conftest.s
27371 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27373 (eval $ac_try) 2>&5
27374 ac_status=$?
27375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27376 test $ac_status = 0; }; }
27377 then
27378 gcc_cv_as_micromips_support=yes
27379 else
27380 echo "configure: failed program was" >&5
27381 cat conftest.s >&5
27382 fi
27383 rm -f conftest.o conftest.s
27384 fi
27385 fi
27386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27387 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27388 if test $gcc_cv_as_micromips_support = yes; then
27389
27390 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27391
27392 fi
27393
27394
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27396 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27397 if ${gcc_cv_as_mips_dtprelword+:} false; then :
27398 $as_echo_n "(cached) " >&6
27399 else
27400 gcc_cv_as_mips_dtprelword=no
27401 if test $in_tree_gas = yes; then
27402 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27403 then gcc_cv_as_mips_dtprelword=yes
27404 fi
27405 elif test x$gcc_cv_as != x; then
27406 $as_echo '.section .tdata,"awT",@progbits
27407 x:
27408 .word 2
27409 .text
27410 .dtprelword x+0x8000' > conftest.s
27411 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27413 (eval $ac_try) 2>&5
27414 ac_status=$?
27415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27416 test $ac_status = 0; }; }
27417 then
27418 gcc_cv_as_mips_dtprelword=yes
27419 else
27420 echo "configure: failed program was" >&5
27421 cat conftest.s >&5
27422 fi
27423 rm -f conftest.o conftest.s
27424 fi
27425 fi
27426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27427 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27428 if test $gcc_cv_as_mips_dtprelword = yes; then
27429
27430 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27431
27432 fi
27433
27434
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27436 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27437 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27438 $as_echo_n "(cached) " >&6
27439 else
27440 gcc_cv_as_mips_dspr1_mult=no
27441 if test x$gcc_cv_as != x; then
27442 $as_echo ' .set mips32r2
27443 .set nodspr2
27444 .set dsp
27445 madd $ac3,$4,$5
27446 maddu $ac3,$4,$5
27447 msub $ac3,$4,$5
27448 msubu $ac3,$4,$5
27449 mult $ac3,$4,$5
27450 multu $ac3,$4,$5' > conftest.s
27451 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27453 (eval $ac_try) 2>&5
27454 ac_status=$?
27455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27456 test $ac_status = 0; }; }
27457 then
27458 gcc_cv_as_mips_dspr1_mult=yes
27459 else
27460 echo "configure: failed program was" >&5
27461 cat conftest.s >&5
27462 fi
27463 rm -f conftest.o conftest.s
27464 fi
27465 fi
27466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27467 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27468 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27469
27470 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27471
27472 fi
27473
27474
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27476 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27477 gcc_cv_as_ld_jalr_reloc=no
27478 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27479 if test $in_tree_ld = yes ; then
27480 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 \
27481 && test $in_tree_ld_is_elf = yes; then
27482 gcc_cv_as_ld_jalr_reloc=yes
27483 fi
27484 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27485 echo ' .ent x' > conftest.s
27486 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27487 echo ' lw $25,%call16(y)($28)' >> conftest.s
27488 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27489 echo '1: jalr $25' >> conftest.s
27490 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27491 echo '1: jalr $25' >> conftest.s
27492 echo ' .end x' >> conftest.s
27493 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27494 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27495 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27496 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27497 gcc_cv_as_ld_jalr_reloc=yes
27498 fi
27499 fi
27500 rm -f conftest.*
27501 fi
27502 fi
27503 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27504 if test x$target_cpu_default = x; then
27505 target_cpu_default=MASK_RELAX_PIC_CALLS
27506 else
27507 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27508 fi
27509 fi
27510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27511 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27512
27513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27514 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27515 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27516 $as_echo_n "(cached) " >&6
27517 else
27518 gcc_cv_ld_mips_personality_relaxation=no
27519 if test $in_tree_ld = yes ; then
27520 if test "$gcc_cv_gld_major_version" -eq 2 \
27521 -a "$gcc_cv_gld_minor_version" -ge 21 \
27522 -o "$gcc_cv_gld_major_version" -gt 2; then
27523 gcc_cv_ld_mips_personality_relaxation=yes
27524 fi
27525 elif test x$gcc_cv_as != x \
27526 -a x$gcc_cv_ld != x \
27527 -a x$gcc_cv_readelf != x ; then
27528 cat > conftest.s <<EOF
27529 .cfi_startproc
27530 .cfi_personality 0x80,indirect_ptr
27531 .ent test
27532 test:
27533 nop
27534 .end test
27535 .cfi_endproc
27536
27537 .section .data,"aw",@progbits
27538 indirect_ptr:
27539 .dc.a personality
27540 EOF
27541 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27542 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27543 if $gcc_cv_readelf -d conftest 2>&1 \
27544 | grep TEXTREL > /dev/null 2>&1; then
27545 :
27546 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27547 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27548 :
27549 else
27550 gcc_cv_ld_mips_personality_relaxation=yes
27551 fi
27552 fi
27553 fi
27554 rm -f conftest.s conftest.o conftest
27555 fi
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27557 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27558 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27559
27560 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27561
27562 fi
27563
27564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27565 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27566 if ${gcc_cv_as_mips_nan+:} false; then :
27567 $as_echo_n "(cached) " >&6
27568 else
27569 gcc_cv_as_mips_nan=no
27570 if test x$gcc_cv_as != x; then
27571 $as_echo '' > conftest.s
27572 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27574 (eval $ac_try) 2>&5
27575 ac_status=$?
27576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27577 test $ac_status = 0; }; }
27578 then
27579 gcc_cv_as_mips_nan=yes
27580 else
27581 echo "configure: failed program was" >&5
27582 cat conftest.s >&5
27583 fi
27584 rm -f conftest.o conftest.s
27585 fi
27586 fi
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27588 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27589 if test $gcc_cv_as_mips_nan = yes; then
27590
27591 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27592
27593 fi
27594
27595 if test x$gcc_cv_as_mips_nan = xno \
27596 && test x$with_nan != x; then
27597 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27598 fi
27599 ;;
27600 riscv*-*-*)
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
27602 $as_echo_n "checking assembler for .attribute support... " >&6; }
27603 if ${gcc_cv_as_riscv_attribute+:} false; then :
27604 $as_echo_n "(cached) " >&6
27605 else
27606 gcc_cv_as_riscv_attribute=no
27607 if test $in_tree_gas = yes; then
27608 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
27609 then gcc_cv_as_riscv_attribute=yes
27610 fi
27611 elif test x$gcc_cv_as != x; then
27612 $as_echo '.attribute stack_align,4' > conftest.s
27613 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27615 (eval $ac_try) 2>&5
27616 ac_status=$?
27617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27618 test $ac_status = 0; }; }
27619 then
27620 gcc_cv_as_riscv_attribute=yes
27621 else
27622 echo "configure: failed program was" >&5
27623 cat conftest.s >&5
27624 fi
27625 rm -f conftest.o conftest.s
27626 fi
27627 fi
27628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
27629 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
27630 if test $gcc_cv_as_riscv_attribute = yes; then
27631
27632 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
27633
27634 fi
27635
27636 ;;
27637 s390*-*-*)
27638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27639 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27640 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
27641 $as_echo_n "(cached) " >&6
27642 else
27643 gcc_cv_as_s390_gnu_attribute=no
27644 if test $in_tree_gas = yes; then
27645 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27646 then gcc_cv_as_s390_gnu_attribute=yes
27647 fi
27648 elif test x$gcc_cv_as != x; then
27649 $as_echo '.gnu_attribute 8,1' > conftest.s
27650 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27652 (eval $ac_try) 2>&5
27653 ac_status=$?
27654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27655 test $ac_status = 0; }; }
27656 then
27657 gcc_cv_as_s390_gnu_attribute=yes
27658 else
27659 echo "configure: failed program was" >&5
27660 cat conftest.s >&5
27661 fi
27662 rm -f conftest.o conftest.s
27663 fi
27664 fi
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27666 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27667 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27668
27669 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27670
27671 fi
27672
27673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27674 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27675 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
27676 $as_echo_n "(cached) " >&6
27677 else
27678 gcc_cv_as_s390_machine_machinemode=no
27679 if test $in_tree_gas = yes; then
27680 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27681 then gcc_cv_as_s390_machine_machinemode=yes
27682 fi
27683 elif test x$gcc_cv_as != x; then
27684 $as_echo ' .machinemode push
27685 .machinemode pop
27686 .machine push
27687 .machine pop' > conftest.s
27688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27690 (eval $ac_try) 2>&5
27691 ac_status=$?
27692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27693 test $ac_status = 0; }; }
27694 then
27695 gcc_cv_as_s390_machine_machinemode=yes
27696 else
27697 echo "configure: failed program was" >&5
27698 cat conftest.s >&5
27699 fi
27700 rm -f conftest.o conftest.s
27701 fi
27702 fi
27703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27704 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27705 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27706
27707 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27708
27709 fi
27710
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27712 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27713 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
27714 $as_echo_n "(cached) " >&6
27715 else
27716 gcc_cv_as_s390_architecture_modifiers=no
27717 if test $in_tree_gas = yes; then
27718 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27719 then gcc_cv_as_s390_architecture_modifiers=yes
27720 fi
27721 elif test x$gcc_cv_as != x; then
27722 $as_echo ' .machine z13+vx ' > conftest.s
27723 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27725 (eval $ac_try) 2>&5
27726 ac_status=$?
27727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27728 test $ac_status = 0; }; }
27729 then
27730 gcc_cv_as_s390_architecture_modifiers=yes
27731 else
27732 echo "configure: failed program was" >&5
27733 cat conftest.s >&5
27734 fi
27735 rm -f conftest.o conftest.s
27736 fi
27737 fi
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27739 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27740 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27741
27742 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27743
27744 fi
27745
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
27747 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
27748 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
27749 $as_echo_n "(cached) " >&6
27750 else
27751 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
27752 if test $in_tree_gas = yes; then
27753 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27754 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
27755 fi
27756 elif test x$gcc_cv_as != x; then
27757 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
27758 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27760 (eval $ac_try) 2>&5
27761 ac_status=$?
27762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27763 test $ac_status = 0; }; }
27764 then
27765 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
27766 else
27767 echo "configure: failed program was" >&5
27768 cat conftest.s >&5
27769 fi
27770 rm -f conftest.o conftest.s
27771 fi
27772 fi
27773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
27774 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
27775 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
27776
27777 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
27778
27779 fi
27780
27781
27782 ;;
27783 esac
27784
27785 # Mips and HP-UX need the GNU assembler.
27786 # Linux on IA64 might be able to use the Intel assembler.
27787
27788 case "$target" in
27789 mips*-*-* | *-*-hpux* )
27790 if test x$gas_flag = xyes \
27791 || test x"$host" != x"$build" \
27792 || test ! -x "$gcc_cv_as" \
27793 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27794 :
27795 else
27796 echo "*** This configuration requires the GNU assembler" >&2
27797 exit 1
27798 fi
27799 ;;
27800 esac
27801
27802 # ??? Not all targets support dwarf2 debug_line, even within a version
27803 # of gas. Moreover, we need to emit a valid instruction to trigger any
27804 # info to the output file. So, as supported targets are added to gas 2.11,
27805 # add some instruction here to (also) show we expect this might work.
27806 # ??? Once 2.11 is released, probably need to add first known working
27807 # version to the per-target configury.
27808 case "$cpu_type" in
27809 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27810 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27811 | tilegx | tilepro | visium | xstormy16 | xtensa)
27812 insn="nop"
27813 ;;
27814 ia64 | s390)
27815 insn="nop 0"
27816 ;;
27817 mmix)
27818 insn="swym 0"
27819 ;;
27820 esac
27821 if test x"$insn" != x; then
27822 conftest_s="\
27823 .file 1 \"conftest.s\"
27824 .loc 1 3 0
27825 $insn"
27826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27827 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27828 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
27829 $as_echo_n "(cached) " >&6
27830 else
27831 gcc_cv_as_dwarf2_debug_line=no
27832 if test $in_tree_gas = yes; then
27833 if test $in_tree_gas_is_elf = yes \
27834 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27835 then gcc_cv_as_dwarf2_debug_line=yes
27836 fi
27837 elif test x$gcc_cv_as != x; then
27838 $as_echo "$conftest_s" > conftest.s
27839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27841 (eval $ac_try) 2>&5
27842 ac_status=$?
27843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27844 test $ac_status = 0; }; }
27845 then
27846 if test x$gcc_cv_objdump != x \
27847 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27848 | grep debug_line > /dev/null 2>&1; then
27849 gcc_cv_as_dwarf2_debug_line=yes
27850 elif test x$gcc_cv_otool != x \
27851 && $gcc_cv_otool -l conftest.o 2> /dev/null \
27852 | grep debug_line > /dev/null 2>&1; then
27853 gcc_cv_as_dwarf2_debug_line=yes
27854 fi
27855 else
27856 echo "configure: failed program was" >&5
27857 cat conftest.s >&5
27858 fi
27859 rm -f conftest.o conftest.s
27860 fi
27861 fi
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27863 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27864
27865
27866
27867 # The .debug_line file table must be in the exact order that
27868 # we specified the files, since these indices are also used
27869 # by DW_AT_decl_file. Approximate this test by testing if
27870 # the assembler bitches if the same index is assigned twice.
27871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27872 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27873 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
27874 $as_echo_n "(cached) " >&6
27875 else
27876 gcc_cv_as_dwarf2_file_buggy=no
27877 if test x$gcc_cv_as != x; then
27878 $as_echo ' .file 1 "foo.s"
27879 .file 1 "bar.s"' > conftest.s
27880 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27882 (eval $ac_try) 2>&5
27883 ac_status=$?
27884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27885 test $ac_status = 0; }; }
27886 then
27887 gcc_cv_as_dwarf2_file_buggy=yes
27888 else
27889 echo "configure: failed program was" >&5
27890 cat conftest.s >&5
27891 fi
27892 rm -f conftest.o conftest.s
27893 fi
27894 fi
27895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27896 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27897
27898
27899
27900 if test $gcc_cv_as_dwarf2_debug_line = yes \
27901 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27902
27903 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27904
27905
27906 if test $gcc_cv_as_leb128 = yes; then
27907 conftest_s="\
27908 .file 1 \"conftest.s\"
27909 .loc 1 3 0 view .LVU1
27910 $insn
27911 .data
27912 .uleb128 .LVU1
27913 .uleb128 .LVU1
27914 "
27915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27916 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27917 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
27918 $as_echo_n "(cached) " >&6
27919 else
27920 gcc_cv_as_dwarf2_debug_view=no
27921 if test $in_tree_gas = yes; then
27922 if test $in_tree_gas_is_elf = yes \
27923 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27924 then gcc_cv_as_dwarf2_debug_view=yes
27925 fi
27926 elif test x$gcc_cv_as != x; then
27927 $as_echo "$conftest_s" > conftest.s
27928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27930 (eval $ac_try) 2>&5
27931 ac_status=$?
27932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27933 test $ac_status = 0; }; }
27934 then
27935 gcc_cv_as_dwarf2_debug_view=yes
27936 else
27937 echo "configure: failed program was" >&5
27938 cat conftest.s >&5
27939 fi
27940 rm -f conftest.o conftest.s
27941 fi
27942 fi
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27944 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27945 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27946
27947 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27948
27949 fi
27950
27951 fi
27952 fi
27953
27954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27955 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27956 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
27957 $as_echo_n "(cached) " >&6
27958 else
27959 gcc_cv_as_gdwarf2_flag=no
27960 if test $in_tree_gas = yes; then
27961 if test $in_tree_gas_is_elf = yes \
27962 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27963 then gcc_cv_as_gdwarf2_flag=yes
27964 fi
27965 elif test x$gcc_cv_as != x; then
27966 $as_echo "$insn" > conftest.s
27967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27969 (eval $ac_try) 2>&5
27970 ac_status=$?
27971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27972 test $ac_status = 0; }; }
27973 then
27974 gcc_cv_as_gdwarf2_flag=yes
27975 else
27976 echo "configure: failed program was" >&5
27977 cat conftest.s >&5
27978 fi
27979 rm -f conftest.o conftest.s
27980 fi
27981 fi
27982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27983 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27984 if test $gcc_cv_as_gdwarf2_flag = yes; then
27985
27986 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27987
27988 fi
27989
27990
27991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27992 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27993 if ${gcc_cv_as_gstabs_flag+:} false; then :
27994 $as_echo_n "(cached) " >&6
27995 else
27996 gcc_cv_as_gstabs_flag=no
27997 if test $in_tree_gas = yes; then
27998 if test $in_tree_gas_is_elf = yes \
27999 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28000 then gcc_cv_as_gstabs_flag=yes
28001 fi
28002 elif test x$gcc_cv_as != x; then
28003 $as_echo "$insn" > conftest.s
28004 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28006 (eval $ac_try) 2>&5
28007 ac_status=$?
28008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28009 test $ac_status = 0; }; }
28010 then
28011 gcc_cv_as_gstabs_flag=yes
28012 else
28013 echo "configure: failed program was" >&5
28014 cat conftest.s >&5
28015 fi
28016 rm -f conftest.o conftest.s
28017 fi
28018 fi
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28020 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28021 if test $gcc_cv_as_gstabs_flag = yes; then
28022
28023 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28024
28025 fi
28026
28027
28028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28029 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28030 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
28031 $as_echo_n "(cached) " >&6
28032 else
28033 gcc_cv_as_debug_prefix_map_flag=no
28034 if test $in_tree_gas = yes; then
28035 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28036 then gcc_cv_as_debug_prefix_map_flag=yes
28037 fi
28038 elif test x$gcc_cv_as != x; then
28039 $as_echo "$insn" > conftest.s
28040 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28042 (eval $ac_try) 2>&5
28043 ac_status=$?
28044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28045 test $ac_status = 0; }; }
28046 then
28047 gcc_cv_as_debug_prefix_map_flag=yes
28048 else
28049 echo "configure: failed program was" >&5
28050 cat conftest.s >&5
28051 fi
28052 rm -f conftest.o conftest.s
28053 fi
28054 fi
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28056 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28057 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28058
28059 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28060
28061 fi
28062
28063 fi
28064
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28066 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28067 if ${gcc_cv_as_compress_debug+:} false; then :
28068 $as_echo_n "(cached) " >&6
28069 else
28070 gcc_cv_as_compress_debug=no
28071 if test x$gcc_cv_as != x; then
28072 $as_echo '' > conftest.s
28073 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28075 (eval $ac_try) 2>&5
28076 ac_status=$?
28077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28078 test $ac_status = 0; }; }
28079 then
28080 # gas compiled without zlib cannot compress debug sections and warns
28081 # about it, but still exits successfully. So check for this, too.
28082 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28083 then
28084 gcc_cv_as_compress_debug=0
28085 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28086 # defaulting to the ELF gABI format.
28087 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28088 then
28089 gcc_cv_as_compress_debug=2
28090 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28091 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28092 # Before binutils 2.26, gas only supported --compress-debug-options and
28093 # emitted the traditional GNU format.
28094 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28095 then
28096 gcc_cv_as_compress_debug=1
28097 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28098 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28099 else
28100 gcc_cv_as_compress_debug=0
28101 fi
28102 else
28103 echo "configure: failed program was" >&5
28104 cat conftest.s >&5
28105 fi
28106 rm -f conftest.o conftest.s
28107 fi
28108 fi
28109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28110 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28111
28112
28113
28114 cat >>confdefs.h <<_ACEOF
28115 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28116 _ACEOF
28117
28118
28119 cat >>confdefs.h <<_ACEOF
28120 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28121 _ACEOF
28122
28123
28124 cat >>confdefs.h <<_ACEOF
28125 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28126 _ACEOF
28127
28128
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28130 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28131 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
28132 $as_echo_n "(cached) " >&6
28133 else
28134 gcc_cv_as_lcomm_with_alignment=no
28135 if test x$gcc_cv_as != x; then
28136 $as_echo '.lcomm bar,4,16' > conftest.s
28137 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28139 (eval $ac_try) 2>&5
28140 ac_status=$?
28141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28142 test $ac_status = 0; }; }
28143 then
28144 gcc_cv_as_lcomm_with_alignment=yes
28145 else
28146 echo "configure: failed program was" >&5
28147 cat conftest.s >&5
28148 fi
28149 rm -f conftest.o conftest.s
28150 fi
28151 fi
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28153 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28154 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28155
28156 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28157
28158 fi
28159
28160
28161 if test x$with_sysroot = x && test x$host = x$target \
28162 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28163 && test "$prefix" != "NONE"; then
28164
28165 cat >>confdefs.h <<_ACEOF
28166 #define PREFIX_INCLUDE_DIR "$prefix/include"
28167 _ACEOF
28168
28169 fi
28170
28171 # Determine the version of glibc, if any, used on the target.
28172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28173 $as_echo_n "checking for target glibc version... " >&6; }
28174
28175 # Check whether --with-glibc-version was given.
28176 if test "${with_glibc_version+set}" = set; then :
28177 withval=$with_glibc_version;
28178 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28179 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28180 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28181 else
28182 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28183 fi
28184 else
28185
28186 glibc_version_major=0
28187 glibc_version_minor=0
28188 if test -f $target_header_dir/features.h \
28189 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28190 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28191 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28192 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28193 fi
28194 fi
28195
28196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28197 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28198
28199 cat >>confdefs.h <<_ACEOF
28200 #define TARGET_GLIBC_MAJOR $glibc_version_major
28201 _ACEOF
28202
28203
28204 cat >>confdefs.h <<_ACEOF
28205 #define TARGET_GLIBC_MINOR $glibc_version_minor
28206 _ACEOF
28207
28208
28209 # Check whether --enable-gnu-unique-object was given.
28210 if test "${enable_gnu_unique_object+set}" = set; then :
28211 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28212 yes | no) ;;
28213 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28214 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28215 esac
28216 else
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28218 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28219 if ${gcc_cv_as_gnu_unique_object+:} false; then :
28220 $as_echo_n "(cached) " >&6
28221 else
28222 gcc_cv_as_gnu_unique_object=no
28223 if test $in_tree_gas = yes; then
28224 if test $in_tree_gas_is_elf = yes \
28225 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28226 then gcc_cv_as_gnu_unique_object=yes
28227 fi
28228 elif test x$gcc_cv_as != x; then
28229 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28230 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28232 (eval $ac_try) 2>&5
28233 ac_status=$?
28234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28235 test $ac_status = 0; }; }
28236 then
28237 gcc_cv_as_gnu_unique_object=yes
28238 else
28239 echo "configure: failed program was" >&5
28240 cat conftest.s >&5
28241 fi
28242 rm -f conftest.o conftest.s
28243 fi
28244 fi
28245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28246 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28247 if test $gcc_cv_as_gnu_unique_object = yes; then
28248 # We need to unquote above to to use the definition from config.gcc.
28249 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28250
28251 if test $glibc_version_major -gt 2 \
28252 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28253 enable_gnu_unique_object=yes
28254 fi
28255
28256 fi
28257
28258 fi
28259
28260 if test x$enable_gnu_unique_object = xyes; then
28261
28262 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28263
28264 fi
28265
28266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28267 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28268 if ${gcc_cv_as_line_zero+:} false; then :
28269 $as_echo_n "(cached) " >&6
28270 else
28271 gcc_cv_as_line_zero=no
28272 if test $in_tree_gas = yes; then
28273 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28274 then gcc_cv_as_line_zero=yes
28275 fi
28276 elif test "x$gcc_cv_as" != x; then
28277 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28278 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28280 (eval $ac_try) 2>&5
28281 ac_status=$?
28282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28283 test $ac_status = 0; }; } &&
28284 test "x`cat conftest.out`" = x
28285 then
28286 gcc_cv_as_line_zero=yes
28287 else
28288 echo "configure: failed program was" >&5
28289 cat conftest.s >&5
28290 echo "configure: error output was" >&5
28291 cat conftest.out >&5
28292 fi
28293 rm -f conftest.o conftest.s conftest.out
28294 fi
28295 fi
28296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28297 $as_echo "$gcc_cv_as_line_zero" >&6; }
28298 if test "x$gcc_cv_as_line_zero" = xyes; then
28299
28300 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28301
28302 fi
28303
28304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28305 $as_echo_n "checking support for thin archives... " >&6; }
28306 thin_archive_support=no
28307 echo 'int main (void) { return 0; }' > conftest.c
28308 if ($AR --version | sed 1q | grep "GNU ar" \
28309 && $CC $CFLAGS -c conftest.c \
28310 && $AR rcT conftest.a conftest.o \
28311 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28312 thin_archive_support=yes
28313 fi
28314 rm -f conftest.c conftest.o conftest.a conftest
28315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28316 $as_echo "$thin_archive_support" >&6; }
28317
28318
28319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28320 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28321 gcc_cv_ld_eh_frame_hdr=no
28322 if test $in_tree_ld = yes ; then
28323 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 \
28324 && test $in_tree_ld_is_elf = yes; then
28325 gcc_cv_ld_eh_frame_hdr=yes
28326 fi
28327 elif test x$gcc_cv_ld != x; then
28328 if echo "$ld_ver" | grep GNU > /dev/null; then
28329 # Check if linker supports --eh-frame-hdr option
28330 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28331 gcc_cv_ld_eh_frame_hdr=yes
28332 fi
28333 else
28334 case "$target" in
28335 *-*-solaris2*)
28336 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28337 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28338 gcc_cv_ld_eh_frame_hdr=yes
28339 fi
28340 ;;
28341 esac
28342 fi
28343 fi
28344
28345 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28346
28347 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28348
28349 fi
28350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28351 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28352
28353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28354 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28355 gcc_cv_ld_eh_frame_ciev3=no
28356 if test $in_tree_ld = yes ; then
28357 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 \
28358 && test $in_tree_ld_is_elf = yes; then
28359 gcc_cv_ld_eh_frame_ciev3=yes
28360 fi
28361 elif test x$gcc_cv_ld != x; then
28362 if echo "$ld_ver" | grep GNU > /dev/null; then
28363 gcc_cv_ld_eh_frame_ciev3=yes
28364 if test 0"$ld_date" -lt 20040513; then
28365 if test -n "$ld_date"; then
28366 # If there was date string, but was earlier than 2004-05-13, fail
28367 gcc_cv_ld_eh_frame_ciev3=no
28368 elif test "$ld_vers_major" -lt 2; then
28369 gcc_cv_ld_eh_frame_ciev3=no
28370 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28371 gcc_cv_ld_eh_frame_ciev3=no
28372 fi
28373 fi
28374 else
28375 case "$target" in
28376 *-*-solaris2*)
28377 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28378 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28379 gcc_cv_ld_eh_frame_ciev3=yes
28380 fi
28381 ;;
28382 esac
28383 fi
28384 fi
28385
28386 cat >>confdefs.h <<_ACEOF
28387 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28388 _ACEOF
28389
28390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28391 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28392
28393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28394 $as_echo_n "checking linker position independent executable support... " >&6; }
28395 gcc_cv_ld_pie=no
28396 if test $in_tree_ld = yes ; then
28397 case "$target" in
28398 # Full PIE support on Solaris was only introduced in gld 2.26.
28399 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28400 *) gcc_gld_pie_min_version=15 ;;
28401 esac
28402 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 \
28403 && test $in_tree_ld_is_elf = yes; then
28404 gcc_cv_ld_pie=yes
28405 fi
28406 elif test x$gcc_cv_ld != x; then
28407 # Check if linker supports -pie option
28408 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28409 gcc_cv_ld_pie=yes
28410 case "$target" in
28411 *-*-solaris2*)
28412 if echo "$ld_ver" | grep GNU > /dev/null \
28413 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28414 gcc_cv_ld_pie=no
28415 fi
28416 ;;
28417 esac
28418 else
28419 case "$target" in
28420 *-*-solaris2.1[1-9]*)
28421 # Solaris 11.3 added PIE support.
28422 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28423 gcc_cv_ld_pie=yes
28424 fi
28425 ;;
28426 esac
28427 fi
28428 fi
28429 if test x"$gcc_cv_ld_pie" = xyes; then
28430
28431 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28432
28433 fi
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28435 $as_echo "$gcc_cv_ld_pie" >&6; }
28436
28437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28438 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28439 gcc_cv_ld_pie_copyreloc=no
28440 if test $gcc_cv_ld_pie = yes ; then
28441 if test $in_tree_ld = yes ; then
28442 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
28443 gcc_cv_ld_pie_copyreloc=yes
28444 fi
28445 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28446 # Check if linker supports -pie option with copy reloc
28447 case "$target" in
28448 i?86-*-linux* | x86_64-*-linux*)
28449 cat > conftest1.s <<EOF
28450 .globl a_glob
28451 .data
28452 .type a_glob, @object
28453 .size a_glob, 4
28454 a_glob:
28455 .long 2
28456 EOF
28457 cat > conftest2.s <<EOF
28458 .text
28459 .globl main
28460 .type main, @function
28461 main:
28462 movl %eax, a_glob(%rip)
28463 .size main, .-main
28464 .globl ptr
28465 .section .data.rel,"aw",@progbits
28466 .type ptr, @object
28467 ptr:
28468 .quad a_glob
28469 EOF
28470 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28471 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28472 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28473 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28474 gcc_cv_ld_pie_copyreloc=yes
28475 fi
28476 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28477 ;;
28478 esac
28479 fi
28480 fi
28481
28482 cat >>confdefs.h <<_ACEOF
28483 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28484 _ACEOF
28485
28486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28487 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28488
28489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28490 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28491 gcc_cv_ld_eh_gc_sections=no
28492 if test $in_tree_ld = yes ; then
28493 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 \
28494 && test $in_tree_ld_is_elf = yes; then
28495 gcc_cv_ld_eh_gc_sections=yes
28496 fi
28497 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28498 cat > conftest.s <<EOF
28499 .section .text
28500 .globl _start
28501 .type _start, @function
28502 _start:
28503 .long foo
28504 .size _start, .-_start
28505 .section .text.foo,"ax",@progbits
28506 .type foo, @function
28507 foo:
28508 .long 0
28509 .size foo, .-foo
28510 .section .gcc_except_table.foo,"a",@progbits
28511 .L0:
28512 .long 0
28513 .section .eh_frame,"a",@progbits
28514 .long .L0
28515 EOF
28516 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28517 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28518 | grep "gc-sections option ignored" > /dev/null; then
28519 gcc_cv_ld_eh_gc_sections=no
28520 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28521 | grep gcc_except_table > /dev/null; then
28522 gcc_cv_ld_eh_gc_sections=yes
28523 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28524 if test x$gcc_cv_as_comdat_group != xyes; then
28525 gcc_cv_ld_eh_gc_sections=no
28526 cat > conftest.s <<EOF
28527 .section .text
28528 .globl _start
28529 .type _start, @function
28530 _start:
28531 .long foo
28532 .size _start, .-_start
28533 .section .gnu.linkonce.t.foo,"ax",@progbits
28534 .type foo, @function
28535 foo:
28536 .long 0
28537 .size foo, .-foo
28538 .section .gcc_except_table.foo,"a",@progbits
28539 .L0:
28540 .long 0
28541 .section .eh_frame,"a",@progbits
28542 .long .L0
28543 EOF
28544 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28545 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28546 | grep "gc-sections option ignored" > /dev/null; then
28547 gcc_cv_ld_eh_gc_sections=no
28548 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28549 | grep gcc_except_table > /dev/null; then
28550 gcc_cv_ld_eh_gc_sections=yes
28551 fi
28552 fi
28553 fi
28554 fi
28555 fi
28556 rm -f conftest.s conftest.o conftest
28557 fi
28558 case "$target" in
28559 hppa*-*-linux*)
28560 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28561 gcc_cv_ld_eh_gc_sections=no
28562 ;;
28563 esac
28564 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28565
28566 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28567
28568 fi
28569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28570 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28571
28572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28573 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28574 gcc_cv_ld_eh_gc_sections_bug=no
28575 if test $in_tree_ld = yes ; then
28576 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 \
28577 && test $in_tree_ld_is_elf = yes; then
28578 gcc_cv_ld_eh_gc_sections_bug=yes
28579 fi
28580 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
28581 gcc_cv_ld_eh_gc_sections_bug=yes
28582 cat > conftest.s <<EOF
28583 .section .text
28584 .globl _start
28585 .type _start, @function
28586 _start:
28587 .long foo
28588 .size _start, .-_start
28589 .section .text.startup.foo,"ax",@progbits
28590 .type foo, @function
28591 foo:
28592 .long 0
28593 .size foo, .-foo
28594 .section .gcc_except_table.foo,"a",@progbits
28595 .L0:
28596 .long 0
28597 .section .eh_frame,"a",@progbits
28598 .long .L0
28599 EOF
28600 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28601 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28602 | grep "gc-sections option ignored" > /dev/null; then
28603 :
28604 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28605 | grep gcc_except_table > /dev/null; then
28606 gcc_cv_ld_eh_gc_sections_bug=no
28607 fi
28608 fi
28609 rm -f conftest.s conftest.o conftest
28610 fi
28611 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28612
28613 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28614
28615 fi
28616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28617 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28618
28619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28620 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28621 # gold/gld support compressed debug sections since binutils 2.19/2.21
28622 # In binutils 2.26, gld gained support for the ELF gABI format.
28623 if test $in_tree_ld = yes ; then
28624 gcc_cv_ld_compress_debug=0
28625 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 \
28626 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28627 gcc_cv_ld_compress_debug=2
28628 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28629 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 \
28630 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28631 gcc_cv_ld_compress_debug=3
28632 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28633 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 \
28634 && test $in_tree_ld_is_elf = yes; then
28635 gcc_cv_ld_compress_debug=1
28636 fi
28637 elif echo "$ld_ver" | grep GNU > /dev/null; then
28638 if test "$ld_vers_major" -lt 2 \
28639 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28640 gcc_cv_ld_compress_debug=0
28641 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28642 gcc_cv_ld_compress_debug=1
28643 else
28644 gcc_cv_ld_compress_debug=3
28645 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28646 fi
28647 if test $ld_is_gold = yes; then
28648 gcc_cv_ld_compress_debug=2
28649 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28650 fi
28651 else
28652 case "${target}" in
28653 *-*-solaris2*)
28654 # Introduced in Solaris 11.2.
28655 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28656 gcc_cv_ld_compress_debug=3
28657 gcc_cv_ld_compress_debug_option="-z compress-sections"
28658 else
28659 gcc_cv_ld_compress_debug=0
28660 fi
28661 ;;
28662 *)
28663 # Assume linkers other than GNU ld don't support compessed debug
28664 # sections.
28665 gcc_cv_ld_compress_debug=0
28666 ;;
28667 esac
28668 fi
28669
28670 cat >>confdefs.h <<_ACEOF
28671 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28672 _ACEOF
28673
28674
28675 cat >>confdefs.h <<_ACEOF
28676 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28677 _ACEOF
28678
28679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28680 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28681
28682 if test x"$ld64_flag" = x"yes"; then
28683
28684 # Set defaults for possibly untestable items.
28685 gcc_cv_ld64_export_dynamic=0
28686
28687 if test "$build" = "$host"; then
28688 darwin_try_test=1
28689 else
28690 darwin_try_test=0
28691 fi
28692
28693 # On Darwin, because of FAT library support, it is often possible to execute
28694 # exes from compatible archs even when the host differs from the build system.
28695 case "$build","$host" in
28696 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28697 darwin_try_test=1;;
28698 *) ;;
28699 esac
28700
28701 # If the configurer specified a minimum ld64 version to be supported, then use
28702 # that to determine feature support.
28703 if test x"${gcc_cv_ld64_version}" != x; then
28704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28705 $as_echo_n "checking ld64 specified version... " >&6; }
28706 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28708 $as_echo "$gcc_cv_ld64_major" >&6; }
28709 if test "$gcc_cv_ld64_major" -ge 236; then
28710 gcc_cv_ld64_export_dynamic=1
28711 fi
28712 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28713 # If the version was not specified, try to find it.
28714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28715 $as_echo_n "checking linker version... " >&6; }
28716 if test x"${gcc_cv_ld64_version}" = x; then
28717 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28718 fi
28719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28720 $as_echo "$gcc_cv_ld64_version" >&6; }
28721
28722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28723 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28724 gcc_cv_ld64_export_dynamic=1
28725 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28726 gcc_cv_ld64_export_dynamic=0
28727 fi
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28729 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28730 fi
28731
28732 if test x"${gcc_cv_ld64_version}" != x; then
28733
28734 cat >>confdefs.h <<_ACEOF
28735 #define LD64_VERSION "${gcc_cv_ld64_version}"
28736 _ACEOF
28737
28738 fi
28739
28740
28741 cat >>confdefs.h <<_ACEOF
28742 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28743 _ACEOF
28744
28745 fi
28746
28747 # --------
28748 # UNSORTED
28749 # --------
28750
28751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28752 $as_echo_n "checking linker --as-needed support... " >&6; }
28753 if ${gcc_cv_ld_as_needed+:} false; then :
28754 $as_echo_n "(cached) " >&6
28755 else
28756 gcc_cv_ld_as_needed=no
28757 gcc_cv_ld_as_needed_option='--as-needed'
28758 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28759 if test $in_tree_ld = yes ; then
28760 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 \
28761 && test $in_tree_ld_is_elf = yes; then
28762 gcc_cv_ld_as_needed=yes
28763 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28764 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28765 gcc_cv_ld_no_as_needed_option='--pop-state'
28766 fi
28767 fi
28768 elif test x$gcc_cv_ld != x; then
28769 # Check if linker supports --as-needed and --no-as-needed options
28770 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28771 gcc_cv_ld_as_needed=yes
28772 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
28773 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
28774 && echo "$ld_ver" | grep GNU > /dev/null \
28775 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28776 # Use these options only when both ld.bfd and ld.gold support
28777 # --push-state/--pop-state, which unfortunately wasn't added
28778 # at the same time.
28779 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28780 gcc_cv_ld_no_as_needed_option='--pop-state'
28781 fi
28782 fi
28783 case "$target:$gnu_ld" in
28784 *-*-solaris2*:no)
28785 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28786 # forms.
28787 gcc_cv_ld_as_needed=yes
28788 gcc_cv_ld_as_needed_option="-z ignore"
28789 gcc_cv_ld_no_as_needed_option="-z record"
28790 ;;
28791 esac
28792 fi
28793 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28794 # dl_iterate_phdr, i.e. since Solaris 11.
28795 case "$target" in
28796 *-*-solaris2.1[1-9]*)
28797 case "$target" in
28798 i?86-*-* | x86_64-*-*)
28799 if echo "$ld_ver" | grep GNU > /dev/null; then
28800 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28801 gcc_cv_ld_as_needed=no
28802 fi
28803 ;;
28804 esac
28805 ;;
28806 *-*-solaris2*)
28807 gcc_cv_ld_as_needed=no
28808 ;;
28809 esac
28810
28811 fi
28812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28813 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28814 if test x"$gcc_cv_ld_as_needed" = xyes; then
28815
28816 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28817
28818
28819 cat >>confdefs.h <<_ACEOF
28820 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28821 _ACEOF
28822
28823
28824 cat >>confdefs.h <<_ACEOF
28825 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28826 _ACEOF
28827
28828 fi
28829
28830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28831 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28832 saved_LDFLAGS="$LDFLAGS"
28833 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28834 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28836 /* end confdefs.h. */
28837 int main(void) {return 0;}
28838 _ACEOF
28839 if ac_fn_cxx_try_link "$LINENO"; then :
28840 gcc_cv_ld_clearcap=yes; break
28841 else
28842 gcc_cv_ld_clearcap=no
28843 fi
28844 rm -f core conftest.err conftest.$ac_objext \
28845 conftest$ac_exeext conftest.$ac_ext
28846 done
28847 LDFLAGS="$saved_LDFLAGS"
28848 if test "x$gcc_cv_ld_clearcap" = xyes; then
28849
28850 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28851
28852 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28853
28854 fi
28855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28856 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28857
28858 case "$target" in
28859 powerpc*-*-*)
28860 case "$target" in
28861 *le-*-linux*)
28862 emul_name="-melf32lppc"
28863 ;;
28864 *)
28865 emul_name="-melf32ppc"
28866 ;;
28867 esac
28868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28869 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28870 if ${gcc_cv_ld_ppc_attr+:} false; then :
28871 $as_echo_n "(cached) " >&6
28872 else
28873 gcc_cv_ld_ppc_attr=no
28874 if test x"$ld_is_gold" = xyes; then
28875 gcc_cv_ld_ppc_attr=yes
28876 elif test $in_tree_ld = yes ; then
28877 if test "$gcc_cv_gld_major_version" -eq 2 \
28878 -a "$gcc_cv_gld_minor_version" -ge 28 \
28879 -o "$gcc_cv_gld_major_version" -gt 2; then
28880 gcc_cv_ld_ppc_attr=yes
28881 fi
28882 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28883 # check that merging the long double .gnu_attribute doesn't warn
28884 cat > conftest1.s <<EOF
28885 .gnu_attribute 4,1
28886 EOF
28887 cat > conftest2.s <<EOF
28888 .gnu_attribute 4,9
28889 EOF
28890 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28891 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28892 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28893 && test ! -s conftest.err; then
28894 gcc_cv_ld_ppc_attr=yes
28895 fi
28896 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28897 fi
28898
28899 fi
28900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28901 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28902 if test x$gcc_cv_ld_ppc_attr = xyes; then
28903
28904 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28905
28906 fi
28907 ;;
28908 esac
28909
28910 case "$target:$tm_file" in
28911 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28912 case "$target" in
28913 *le-*-linux*)
28914 emul_name="-melf64lppc"
28915 ;;
28916 *-*-linux*)
28917 emul_name="-melf64ppc"
28918 ;;
28919 *-*-freebsd*)
28920 emul_name="-melf64ppc_fbsd"
28921 ;;
28922 esac
28923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28924 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28925 if ${gcc_cv_ld_no_dot_syms+:} false; then :
28926 $as_echo_n "(cached) " >&6
28927 else
28928 gcc_cv_ld_no_dot_syms=no
28929 if test x"$ld_is_gold" = xyes; then
28930 gcc_cv_ld_no_dot_syms=yes
28931 elif test $in_tree_ld = yes ; then
28932 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
28933 gcc_cv_ld_no_dot_syms=yes
28934 fi
28935 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28936 cat > conftest1.s <<EOF
28937 .text
28938 bl .foo
28939 EOF
28940 cat > conftest2.s <<EOF
28941 .section ".opd","aw"
28942 .align 3
28943 .globl foo
28944 .type foo,@function
28945 foo:
28946 .quad .LEfoo,.TOC.@tocbase,0
28947 .text
28948 .LEfoo:
28949 blr
28950 .size foo,.-.LEfoo
28951 EOF
28952 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28953 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28954 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28955 gcc_cv_ld_no_dot_syms=yes
28956 fi
28957 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28958 fi
28959
28960 fi
28961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28962 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28963 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28964
28965 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28966
28967 fi
28968
28969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28970 $as_echo_n "checking linker large toc support... " >&6; }
28971 if ${gcc_cv_ld_large_toc+:} false; then :
28972 $as_echo_n "(cached) " >&6
28973 else
28974 gcc_cv_ld_large_toc=no
28975 if test x"$ld_is_gold" = xyes; then
28976 gcc_cv_ld_large_toc=yes
28977 elif test $in_tree_ld = yes ; then
28978 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
28979 gcc_cv_ld_large_toc=yes
28980 fi
28981 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28982 cat > conftest.s <<EOF
28983 .section ".tbss","awT",@nobits
28984 .align 3
28985 ie0: .space 8
28986 .global _start
28987 .text
28988 _start:
28989 addis 9,13,ie0@got@tprel@ha
28990 ld 9,ie0@got@tprel@l(9)
28991 EOF
28992 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28993 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28994 gcc_cv_ld_large_toc=yes
28995 fi
28996 rm -f conftest conftest.o conftest.s
28997 fi
28998
28999 fi
29000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29001 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29002 if test x"$gcc_cv_ld_large_toc" = xyes; then
29003
29004 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29005
29006 fi
29007
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29009 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29010 if ${gcc_cv_ld_toc_align+:} false; then :
29011 $as_echo_n "(cached) " >&6
29012 else
29013 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
29014 cat > conftest.s <<EOF
29015 .global _start
29016 .text
29017 _start:
29018 addis 9,2,x@got@ha
29019 .section .data.rel.ro,"aw",@progbits
29020 .p2align 16
29021 .space 32768
29022 x: .quad .TOC.
29023 EOF
29024 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29025 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
29026 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)) }'`
29027 fi
29028 rm -f conftest conftest.o conftest.s
29029 fi
29030
29031 fi
29032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29033 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29034 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29035
29036 cat >>confdefs.h <<_ACEOF
29037 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29038 _ACEOF
29039
29040 fi
29041 ;;
29042 esac
29043
29044 case "$target" in
29045 *-*-aix*)
29046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29047 $as_echo_n "checking linker large toc support... " >&6; }
29048 if ${gcc_cv_ld_large_toc+:} false; then :
29049 $as_echo_n "(cached) " >&6
29050 else
29051 gcc_cv_ld_large_toc=no
29052 if test x$gcc_cv_as != x ; then
29053 cat > conftest.s <<EOF
29054 .toc
29055 LC..1:
29056 .tc a[TC],a[RW]
29057 .extern a[RW]
29058 .csect .text[PR]
29059 .largetoctest:
29060 addis 9,LC..1@u(2)
29061 ld 3,LC..1@l(9)
29062 EOF
29063 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29064 gcc_cv_ld_large_toc=yes
29065 fi
29066 rm -f conftest conftest.o conftest.s
29067 fi
29068
29069 fi
29070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29071 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29072 if test x"$gcc_cv_ld_large_toc" = xyes; then
29073
29074 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29075
29076 fi
29077 ;;
29078 esac
29079
29080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29081 $as_echo_n "checking linker --build-id support... " >&6; }
29082 if ${gcc_cv_ld_buildid+:} false; then :
29083 $as_echo_n "(cached) " >&6
29084 else
29085 gcc_cv_ld_buildid=no
29086 if test $in_tree_ld = yes ; then
29087 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29088 "$gcc_cv_gld_minor_version" -ge 18 -o \
29089 "$gcc_cv_gld_major_version" -gt 2 \
29090 && test $in_tree_ld_is_elf = yes; then
29091 gcc_cv_ld_buildid=yes
29092 fi
29093 elif test x$gcc_cv_ld != x; then
29094 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29095 gcc_cv_ld_buildid=yes
29096 fi
29097 fi
29098 fi
29099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29100 $as_echo "$gcc_cv_ld_buildid" >&6; }
29101 if test x"$gcc_cv_ld_buildid" = xyes; then
29102
29103 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29104
29105 fi
29106
29107 # Check whether --enable-linker-build-id was given.
29108 if test "${enable_linker_build_id+set}" = set; then :
29109 enableval=$enable_linker_build_id;
29110 else
29111 enable_linker_build_id=no
29112 fi
29113
29114
29115 if test x"$enable_linker_build_id" = xyes; then
29116 if test x"$gcc_cv_ld_buildid" = xyes; then
29117
29118 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29119
29120 else
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29122 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29123 fi
29124 fi
29125
29126 # In binutils 2.21, GNU ld gained support for new emulations fully
29127 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29129 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29130 if ${gcc_cv_ld_sol2_emulation+:} false; then :
29131 $as_echo_n "(cached) " >&6
29132 else
29133 gcc_cv_ld_sol2_emulation=no
29134 if test $in_tree_ld = yes ; then
29135 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29136 "$gcc_cv_gld_minor_version" -ge 21 -o \
29137 "$gcc_cv_gld_major_version" -gt 2 \
29138 && test $in_tree_ld_is_elf = yes; then
29139 gcc_cv_ld_sol2_emulation=yes
29140 fi
29141 elif test x$gcc_cv_ld != x; then
29142 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29143 grep _sol2 > /dev/null; then
29144 gcc_cv_ld_sol2_emulation=yes
29145 fi
29146 fi
29147 fi
29148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29149 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29150 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29151
29152 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29153
29154 fi
29155
29156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29157 $as_echo_n "checking linker --sysroot support... " >&6; }
29158 if ${gcc_cv_ld_sysroot+:} false; then :
29159 $as_echo_n "(cached) " >&6
29160 else
29161 gcc_cv_ld_sysroot=no
29162 if test $in_tree_ld = yes ; then
29163 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
29164 gcc_cv_ld_sysroot=yes
29165 fi
29166 elif test x$gcc_cv_ld != x; then
29167 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29168 gcc_cv_ld_sysroot=yes
29169 fi
29170 fi
29171 fi
29172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29173 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29174 if test x"$gcc_cv_ld_sysroot" = xyes; then
29175
29176 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29177
29178 fi
29179
29180 case $target in
29181 *-*-solaris2*)
29182 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29184 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29185 if ${gcc_cv_solaris_crts+:} false; then :
29186 $as_echo_n "(cached) " >&6
29187 else
29188 gcc_cv_solaris_crts=no
29189 if test x$host != x$target; then
29190 if test "x$with_sysroot" = xyes; then
29191 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29192 else
29193 target_sysroot="${with_sysroot}"
29194 fi
29195 fi
29196 target_libdir="$target_sysroot/usr/lib"
29197 # At the time they were added, gcrt1.o became a symlink for backwards
29198 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29199 case $target in
29200 i?86-*-solaris2* | x86_64-*-solaris2*)
29201 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29202 ;;
29203 sparc*-*-solaris2*)
29204 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29205 ;;
29206 esac
29207 fi
29208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29209 $as_echo "$gcc_cv_solaris_crts" >&6; }
29210 ;;
29211 esac
29212 if test x$gcc_cv_solaris_crts = xyes; then
29213
29214 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29215
29216 fi
29217
29218 # Check whether --enable-libssp was given.
29219 if test "${enable_libssp+set}" = set; then :
29220 enableval=$enable_libssp; case "${enableval}" in
29221 yes|no)
29222 ;;
29223 *)
29224 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
29225 ;;
29226 esac
29227 fi
29228
29229
29230 # Test for stack protector support in target C library.
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29232 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29233 if ${gcc_cv_libc_provides_ssp+:} false; then :
29234 $as_echo_n "(cached) " >&6
29235 else
29236 gcc_cv_libc_provides_ssp=no
29237 if test "x$enable_libssp" = "xno"; then
29238 gcc_cv_libc_provides_ssp=yes
29239 elif test "x$enable_libssp" = "xyes"; then
29240 gcc_cv_libc_provides_ssp=no
29241 else
29242 case "$target" in
29243 *-*-musl*)
29244 # All versions of musl provide stack protector
29245 gcc_cv_libc_provides_ssp=yes;;
29246 *-*-linux* | *-*-kfreebsd*-gnu)
29247 # glibc 2.4 and later provides __stack_chk_fail and
29248 # either __stack_chk_guard, or TLS access to stack guard canary.
29249
29250 if test $glibc_version_major -gt 2 \
29251 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29252 gcc_cv_libc_provides_ssp=yes
29253 else
29254
29255 if test -f $target_header_dir/features.h \
29256 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29257 $target_header_dir/features.h > /dev/null; then
29258 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29259 $target_header_dir/features.h > /dev/null && \
29260 test -f $target_header_dir/bits/uClibc_config.h && \
29261 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29262 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29263 gcc_cv_libc_provides_ssp=yes
29264 fi
29265 # all versions of Bionic support stack protector
29266 elif test -f $target_header_dir/sys/cdefs.h \
29267 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29268 $target_header_dir/sys/cdefs.h > /dev/null; then
29269 gcc_cv_libc_provides_ssp=yes
29270 fi
29271 fi
29272 ;;
29273 *-*-gnu*)
29274 # Avoid complicated tests (see
29275 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29276 # simply assert that glibc does provide this, which is true for all
29277 # realistically usable GNU/Hurd configurations.
29278 # All supported versions of musl provide it as well
29279 gcc_cv_libc_provides_ssp=yes;;
29280 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29281 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29282 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
29283 gcc_cv_libc_provides_ssp=yes
29284 else
29285 echo "no __stack_chk_fail on this target"
29286 fi
29287
29288 ;;
29289 *) gcc_cv_libc_provides_ssp=no ;;
29290 esac
29291 fi
29292 fi
29293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29294 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29295
29296 if test x$gcc_cv_libc_provides_ssp = xyes; then
29297
29298 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29299
29300 fi
29301
29302 # Check whether --enable-default-ssp was given.
29303 # Check whether --enable-default-ssp was given.
29304 if test "${enable_default_ssp+set}" = set; then :
29305 enableval=$enable_default_ssp;
29306 if test x$gcc_cv_libc_provides_ssp = xyes; then
29307 case "$target" in
29308 ia64*-*-*) enable_default_ssp=no ;;
29309 *) enable_default_ssp=$enableval ;;
29310 esac
29311 else
29312 enable_default_ssp=no
29313 fi
29314 else
29315 enable_default_ssp=no
29316 fi
29317
29318 if test x$enable_default_ssp = xyes ; then
29319
29320 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29321
29322 fi
29323
29324
29325 # Test for <sys/sdt.h> on the target.
29326
29327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29328 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29329 have_sys_sdt_h=no
29330 if test -f $target_header_dir/sys/sdt.h; then
29331 have_sys_sdt_h=yes
29332
29333 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29334
29335 fi
29336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29337 $as_echo "$have_sys_sdt_h" >&6; }
29338
29339 # Check if TFmode long double should be used by default or not.
29340 # Some glibc targets used DFmode long double, but with glibc 2.4
29341 # and later they can use TFmode.
29342 case "$target" in
29343 powerpc*-*-linux* | \
29344 sparc*-*-linux* | \
29345 s390*-*-linux* | \
29346 alpha*-*-linux*)
29347
29348 # Check whether --with-long-double-128 was given.
29349 if test "${with_long_double_128+set}" = set; then :
29350 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29351 else
29352
29353 if test $glibc_version_major -gt 2 \
29354 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29355 gcc_cv_target_ldbl128=yes
29356 else
29357
29358 gcc_cv_target_ldbl128=no
29359 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29360 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29361 && gcc_cv_target_ldbl128=yes
29362
29363 fi
29364 fi
29365
29366 ;;
29367 esac
29368 if test x$gcc_cv_target_ldbl128 = xyes; then
29369
29370 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29371
29372 fi
29373
29374 # Check if TFmode long double target should use the IBM extended double or IEEE
29375 # 128-bit floating point formats if long doubles are 128-bits long. The long
29376 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29377 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29378 # libgcc.
29379
29380 # Check whether --with-long-double-format was given.
29381 if test "${with_long_double_format+set}" = set; then :
29382 withval=$with_long_double_format;
29383 case "$target:$with_long_double_format" in
29384 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29385 :
29386 ;;
29387 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29388 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29389 case "$with_cpu" in
29390 power7 | power8 | power9 | power1*)
29391 :
29392 ;;
29393 *)
29394 as_fn_error $? "Configuration option --with-long-double-format is only \
29395 supported if the default cpu is power7 or newer" "$LINENO" 5
29396 with_long_double_format=""
29397 ;;
29398 esac
29399 ;;
29400 xpowerpc64*-*-linux*:*)
29401 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29402 with_long_double_format=""
29403 ;;
29404 *)
29405 as_fn_error $? "Configure option --with-long-double-format is only supported \
29406 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29407 with_long_double_format=""
29408 ;;
29409 esac
29410 fi
29411
29412
29413 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29414 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29415 gcc_cv_libc_provides_hwcap_in_tcb=no
29416 case "$target" in
29417 powerpc*-*-linux*)
29418
29419 if test $glibc_version_major -gt 2 \
29420 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29421 gcc_cv_libc_provides_hwcap_in_tcb=yes
29422 fi
29423 ;;
29424 esac
29425 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29426
29427 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29428
29429 fi
29430
29431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29432 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29433 gcc_cv_target_dl_iterate_phdr=unknown
29434 case "$target" in
29435 *-*-solaris2*)
29436 # <link.h> needs both a dl_iterate_phdr declaration and support for
29437 # compilation with largefile support.
29438 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29439 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29440 gcc_cv_target_dl_iterate_phdr=yes
29441 else
29442 gcc_cv_target_dl_iterate_phdr=no
29443 fi
29444 ;;
29445 *-*-dragonfly* | *-*-freebsd*)
29446 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29447 gcc_cv_target_dl_iterate_phdr=yes
29448 else
29449 gcc_cv_target_dl_iterate_phdr=no
29450 fi
29451 ;;
29452 *-linux-musl*)
29453 gcc_cv_target_dl_iterate_phdr=yes
29454 ;;
29455 esac
29456
29457 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29458
29459 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29460
29461 fi
29462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29463 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29464
29465 # We no longer support different GC mechanisms. Emit an error if
29466 # the user configures with --with-gc.
29467
29468 # Check whether --with-gc was given.
29469 if test "${with_gc+set}" = set; then :
29470 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29471 fi
29472
29473
29474 # Libraries to use on the host. This will normally be set by the top
29475 # level Makefile. Here we simply capture the value for our Makefile.
29476 if test -z "${HOST_LIBS+set}"; then
29477 HOST_LIBS=
29478 fi
29479
29480
29481 # Use the system's zlib library.
29482
29483 # Use the system's zlib library.
29484 zlibdir="-L\$(top_builddir)/../zlib"
29485 zlibinc="-I\$(top_srcdir)/../zlib"
29486
29487 # Check whether --with-system-zlib was given.
29488 if test "${with_system_zlib+set}" = set; then :
29489 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29490 zlibdir=
29491 zlibinc=
29492 fi
29493
29494 fi
29495
29496
29497
29498
29499
29500
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29502 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29503 # Check whether --enable-maintainer-mode was given.
29504 if test "${enable_maintainer_mode+set}" = set; then :
29505 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29506 else
29507 maintainer_mode=no
29508 fi
29509
29510
29511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29512 $as_echo "$maintainer_mode" >&6; }
29513
29514 if test "$maintainer_mode" = "yes"; then
29515 MAINT=''
29516 else
29517 MAINT='#'
29518 fi
29519
29520
29521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29522 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29523 # Check whether --enable-link-mutex was given.
29524 if test "${enable_link_mutex+set}" = set; then :
29525 enableval=$enable_link_mutex; do_link_mutex=$enableval
29526 else
29527 do_link_mutex=no
29528 fi
29529
29530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29531 $as_echo "$do_link_mutex" >&6; }
29532
29533 if test "$do_link_mutex" = "yes"; then
29534 DO_LINK_MUTEX=true
29535 else
29536 DO_LINK_MUTEX=false
29537 fi
29538
29539
29540 # --------------
29541 # Language hooks
29542 # --------------
29543
29544 # Make empty files to contain the specs and options for each language.
29545 # Then add #include lines to for a compiler that has specs and/or options.
29546
29547 subdirs=
29548 lang_opt_files=
29549 lang_specs_files=
29550 lang_tree_files=
29551 # These (without "all_") are set in each config-lang.in.
29552 # `language' must be a single word so is spelled singularly.
29553 all_languages=
29554 all_compilers=
29555 all_outputs='Makefile'
29556 # List of language makefile fragments.
29557 all_lang_makefrags=
29558 # Additional files for gengtype
29559 all_gtfiles="$target_gtfiles"
29560
29561 # These are the languages that are set in --enable-languages,
29562 # and are available in the GCC tree.
29563 all_selected_languages=
29564
29565 # Add the language fragments.
29566 # Languages are added via two mechanisms. Some information must be
29567 # recorded in makefile variables, these are defined in config-lang.in.
29568 # We accumulate them and plug them into the main Makefile.
29569 # The other mechanism is a set of hooks for each of the main targets
29570 # like `clean', `install', etc.
29571
29572 language_hooks="Make-hooks"
29573
29574 for lang in ${srcdir}/*/config-lang.in
29575 do
29576 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29577
29578 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29579 if test "x$lang_alias" = x
29580 then
29581 echo "$lang doesn't set \$language." 1>&2
29582 exit 1
29583 fi
29584 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29585 subdirs="$subdirs $subdir"
29586
29587 # $gcc_subdir is where the gcc integration files are to be found
29588 # for a language, both for internal compiler purposes (compiler
29589 # sources implementing front-end to GCC tree converters), and for
29590 # build infrastructure purposes (Make-lang.in, etc.)
29591 #
29592 # This will be <subdir> (relative to $srcdir) if a line like
29593 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29594 # is found in <langdir>/config-lang.in, and will remain <langdir>
29595 # otherwise.
29596 #
29597 # Except for the language alias (fetched above), the regular
29598 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29599 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29600 # only this and the language alias.
29601
29602 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29603 if [ "$gcc_subdir" = "" ]; then
29604 gcc_subdir="$subdir"
29605 fi
29606
29607 case ",$enable_languages," in
29608 *,$lang_alias,*)
29609 all_selected_languages="$all_selected_languages $lang_alias"
29610 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29611 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29612 fi
29613 ;;
29614 esac
29615
29616 language=
29617 boot_language=
29618 compilers=
29619 outputs=
29620 gtfiles=
29621 subdir_requires=
29622 . ${srcdir}/$gcc_subdir/config-lang.in
29623 if test "x$language" = x
29624 then
29625 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29626 exit 1
29627 fi
29628
29629 ok=:
29630 case ",$enable_languages," in
29631 *,$lang_alias,*) ;;
29632 *)
29633 for i in $subdir_requires; do
29634 test -f "${srcdir}/$i/config-lang.in" && continue
29635 ok=false
29636 break
29637 done
29638 ;;
29639 esac
29640 $ok || continue
29641
29642 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29643 if test -f $srcdir/$gcc_subdir/lang.opt; then
29644 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29645 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29646 fi
29647 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29648 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29649 fi
29650 all_languages="$all_languages $language"
29651 all_compilers="$all_compilers $compilers"
29652 all_outputs="$all_outputs $outputs"
29653 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29654 case ",$enable_languages," in
29655 *,lto,*)
29656
29657 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29658
29659 enable_lto=yes
29660
29661 ;;
29662 *) ;;
29663 esac
29664 done
29665
29666 check_languages=
29667 for language in $all_selected_languages
29668 do
29669 check_languages="$check_languages check-$language"
29670 done
29671
29672 selftest_languages=
29673 for language in $all_selected_languages
29674 do
29675 selftest_languages="$selftest_languages selftest-$language"
29676 done
29677
29678 # We link each language in with a set of hooks, reached indirectly via
29679 # lang.${target}. Only do so for selected languages.
29680
29681 rm -f Make-hooks
29682 touch Make-hooks
29683 target_list="all.cross start.encap rest.encap tags \
29684 install-common install-man install-info install-pdf install-html dvi \
29685 pdf html uninstall info man srcextra srcman srcinfo \
29686 mostlyclean clean distclean maintainer-clean install-plugin"
29687
29688 for t in $target_list
29689 do
29690 x=
29691 for lang in $all_selected_languages
29692 do
29693 x="$x $lang.$t"
29694 done
29695 echo "lang.$t: $x" >> Make-hooks
29696 done
29697
29698 # --------
29699 # Option include files
29700 # --------
29701
29702 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29703 option_includes="option-includes.mk"
29704
29705
29706 # --------
29707 # UNSORTED
29708 # --------
29709
29710 # Create .gdbinit.
29711
29712 echo "dir ." > .gdbinit
29713 echo "dir ${srcdir}" >> .gdbinit
29714 if test x$gdb_needs_out_file_path = xyes
29715 then
29716 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29717 fi
29718 if test "x$subdirs" != x; then
29719 for s in $subdirs
29720 do
29721 echo "dir ${srcdir}/$s" >> .gdbinit
29722 done
29723 fi
29724 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29725 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29726
29727 # Put a breakpoint on __asan_report_error to help with debugging buffer
29728 # overflow.
29729 case "$CFLAGS" in
29730 *-fsanitize=address*)
29731 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29732 ;;
29733 esac
29734
29735 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29736
29737
29738
29739 # Find a directory in which to install a shared libgcc.
29740
29741 # Check whether --enable-version-specific-runtime-libs was given.
29742 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29743 enableval=$enable_version_specific_runtime_libs;
29744 fi
29745
29746
29747 # Substitute configuration variables
29748
29749
29750
29751
29752
29753
29754
29755
29756
29757
29758
29759
29760
29761
29762
29763
29764
29765
29766
29767
29768
29769
29770
29771
29772
29773
29774
29775
29776
29777
29778
29779
29780
29781
29782
29783
29784
29785
29786
29787
29788
29789
29790
29791
29792
29793
29794
29795
29796
29797
29798
29799
29800
29801
29802
29803
29804
29805
29806
29807
29808
29809
29810
29811
29812
29813
29814 # Echo link setup.
29815 if test x${build} = x${host} ; then
29816 if test x${host} = x${target} ; then
29817 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29818 else
29819 echo "Links are now set up to build a cross-compiler" 1>&2
29820 echo " from ${host} to ${target}." 1>&2
29821 fi
29822 else
29823 if test x${host} = x${target} ; then
29824 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29825 echo " for ${target}." 1>&2
29826 else
29827 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29828 echo " from ${host} to ${target}." 1>&2
29829 fi
29830 fi
29831
29832
29833
29834
29835
29836
29837 if test "x${ISLLIBS}" != "x" ; then
29838
29839 $as_echo "#define HAVE_isl 1" >>confdefs.h
29840
29841 fi
29842
29843 # Check for plugin support
29844 # Check whether --enable-plugin was given.
29845 if test "${enable_plugin+set}" = set; then :
29846 enableval=$enable_plugin; enable_plugin=$enableval
29847 else
29848 enable_plugin=yes; default_plugin=yes
29849 fi
29850
29851
29852 pluginlibs=
29853 plugin_check=yes
29854
29855 case "${host}" in
29856 *-*-mingw*)
29857 # Since plugin support under MinGW is not as straightforward as on
29858 # other platforms (e.g., we have to link import library, etc), we
29859 # only enable it if explicitly requested.
29860 if test x"$default_plugin" = x"yes"; then
29861 enable_plugin=no
29862 elif test x"$enable_plugin" = x"yes"; then
29863 # Use make's target variable to derive import library name.
29864 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29865 plugin_check=no
29866 fi
29867 ;;
29868 *-*-darwin*)
29869 if test x$build = x$host; then
29870 export_sym_check="nm${exeext} -g"
29871 elif test x$host = x$target; then
29872 export_sym_check="$gcc_cv_nm -g"
29873 else
29874 export_sym_check=
29875 fi
29876 ;;
29877 *)
29878 if test x$build = x$host; then
29879 export_sym_check="objdump${exeext} -T"
29880 elif test x$host = x$target; then
29881 export_sym_check="$gcc_cv_objdump -T"
29882 else
29883 export_sym_check=
29884 fi
29885 ;;
29886 esac
29887
29888 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
29889
29890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29891 $as_echo_n "checking for exported symbols... " >&6; }
29892 if test "x$export_sym_check" != x; then
29893 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29894 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29895 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29896 : # No need to use a flag
29897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29898 $as_echo "yes" >&6; }
29899 else
29900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29901 $as_echo "yes" >&6; }
29902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29903 $as_echo_n "checking for -rdynamic... " >&6; }
29904 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29905 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29906 plugin_rdynamic=yes
29907 pluginlibs="-rdynamic"
29908 else
29909 plugin_rdynamic=no
29910 enable_plugin=no
29911 fi
29912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29913 $as_echo "$plugin_rdynamic" >&6; }
29914 fi
29915 else
29916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29917 $as_echo "unable to check" >&6; }
29918 fi
29919
29920 # Check -ldl
29921 saved_LIBS="$LIBS"
29922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29923 $as_echo_n "checking for library containing dlopen... " >&6; }
29924 if ${ac_cv_search_dlopen+:} false; then :
29925 $as_echo_n "(cached) " >&6
29926 else
29927 ac_func_search_save_LIBS=$LIBS
29928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29929 /* end confdefs.h. */
29930
29931 /* Override any GCC internal prototype to avoid an error.
29932 Use char because int might match the return type of a GCC
29933 builtin and then its argument prototype would still apply. */
29934 #ifdef __cplusplus
29935 extern "C"
29936 #endif
29937 char dlopen ();
29938 int
29939 main ()
29940 {
29941 return dlopen ();
29942 ;
29943 return 0;
29944 }
29945 _ACEOF
29946 for ac_lib in '' dl; do
29947 if test -z "$ac_lib"; then
29948 ac_res="none required"
29949 else
29950 ac_res=-l$ac_lib
29951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29952 fi
29953 if ac_fn_cxx_try_link "$LINENO"; then :
29954 ac_cv_search_dlopen=$ac_res
29955 fi
29956 rm -f core conftest.err conftest.$ac_objext \
29957 conftest$ac_exeext
29958 if ${ac_cv_search_dlopen+:} false; then :
29959 break
29960 fi
29961 done
29962 if ${ac_cv_search_dlopen+:} false; then :
29963
29964 else
29965 ac_cv_search_dlopen=no
29966 fi
29967 rm conftest.$ac_ext
29968 LIBS=$ac_func_search_save_LIBS
29969 fi
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29971 $as_echo "$ac_cv_search_dlopen" >&6; }
29972 ac_res=$ac_cv_search_dlopen
29973 if test "$ac_res" != no; then :
29974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29975
29976 fi
29977
29978 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29979 pluginlibs="$pluginlibs -ldl"
29980 fi
29981 LIBS="$saved_LIBS"
29982
29983 # Check that we can build shared objects with -fPIC -shared
29984 saved_LDFLAGS="$LDFLAGS"
29985 saved_CFLAGS="$CFLAGS"
29986 case "${host}" in
29987 *-*-darwin*)
29988 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29989 CFLAGS="$CFLAGS -fPIC"
29990 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29991 ;;
29992 *)
29993 CFLAGS="$CFLAGS -fPIC"
29994 LDFLAGS="$LDFLAGS -fPIC -shared"
29995 ;;
29996 esac
29997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29998 $as_echo_n "checking for -fPIC -shared... " >&6; }
29999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30000 /* end confdefs.h. */
30001 extern int X;
30002 int
30003 main ()
30004 {
30005 return X == 0;
30006 ;
30007 return 0;
30008 }
30009 _ACEOF
30010 if ac_fn_cxx_try_link "$LINENO"; then :
30011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30012 $as_echo "yes" >&6; }; have_pic_shared=yes
30013 else
30014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30015 $as_echo "no" >&6; }; have_pic_shared=no
30016 fi
30017 rm -f core conftest.err conftest.$ac_objext \
30018 conftest$ac_exeext conftest.$ac_ext
30019 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
30020 pluginlibs=
30021 enable_plugin=no
30022 fi
30023 LDFLAGS="$saved_LDFLAGS"
30024 CFLAGS="$saved_CFLAGS"
30025
30026 # If plugin support had been requested but not available, fail.
30027 if test x"$enable_plugin" = x"no" ; then
30028 if test x"$default_plugin" != x"yes"; then
30029 as_fn_error $? "
30030 Building GCC with plugin support requires a host that supports
30031 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30032 fi
30033 fi
30034 fi
30035
30036
30037
30038 if test x"$enable_plugin" = x"yes"; then
30039
30040 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30041
30042 fi
30043
30044
30045 # Enable --enable-host-shared
30046 # Check whether --enable-host-shared was given.
30047 if test "${enable_host_shared+set}" = set; then :
30048 enableval=$enable_host_shared; PICFLAG=-fPIC
30049 else
30050 PICFLAG=
30051 fi
30052
30053
30054
30055
30056
30057 # Check whether --enable-libquadmath-support was given.
30058 if test "${enable_libquadmath_support+set}" = set; then :
30059 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30060 else
30061 ENABLE_LIBQUADMATH_SUPPORT=yes
30062 fi
30063
30064 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30065
30066 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30067
30068 fi
30069
30070
30071 # Specify what hash style to use by default.
30072
30073 # Check whether --with-linker-hash-style was given.
30074 if test "${with_linker_hash_style+set}" = set; then :
30075 withval=$with_linker_hash_style; case x"$withval" in
30076 xsysv)
30077 LINKER_HASH_STYLE=sysv
30078 ;;
30079 xgnu)
30080 LINKER_HASH_STYLE=gnu
30081 ;;
30082 xboth)
30083 LINKER_HASH_STYLE=both
30084 ;;
30085 *)
30086 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30087 ;;
30088 esac
30089 else
30090 LINKER_HASH_STYLE=''
30091 fi
30092
30093 if test x"${LINKER_HASH_STYLE}" != x; then
30094
30095 cat >>confdefs.h <<_ACEOF
30096 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30097 _ACEOF
30098
30099 fi
30100
30101 # Specify what should be the default of -fdiagnostics-color option.
30102
30103 # Check whether --with-diagnostics-color was given.
30104 if test "${with_diagnostics_color+set}" = set; then :
30105 withval=$with_diagnostics_color; case x"$withval" in
30106 xnever)
30107 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30108 ;;
30109 xauto)
30110 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30111 ;;
30112 xauto-if-env)
30113 DIAGNOSTICS_COLOR_DEFAULT=-1
30114 ;;
30115 xalways)
30116 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30117 ;;
30118 *)
30119 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30120 ;;
30121 esac
30122 else
30123 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30124 fi
30125
30126
30127 cat >>confdefs.h <<_ACEOF
30128 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30129 _ACEOF
30130
30131
30132 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30133 # of jit/jit-playback.c.
30134 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30135 echo "gcc_driver_version: ${gcc_driver_version}"
30136 cat > gcc-driver-name.h <<EOF
30137 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30138 EOF
30139
30140 # Check whether --enable-default-pie was given.
30141 # Check whether --enable-default-pie was given.
30142 if test "${enable_default_pie+set}" = set; then :
30143 enableval=$enable_default_pie; enable_default_pie=$enableval
30144 else
30145 enable_default_pie=no
30146 fi
30147
30148 if test x$enable_default_pie = xyes ; then
30149
30150 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30151
30152 fi
30153
30154
30155 # Check if -fno-PIE works.
30156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30157 $as_echo_n "checking for -fno-PIE option... " >&6; }
30158 if ${gcc_cv_c_no_fpie+:} false; then :
30159 $as_echo_n "(cached) " >&6
30160 else
30161 saved_CXXFLAGS="$CXXFLAGS"
30162 CXXFLAGS="$CXXFLAGS -fno-PIE"
30163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30164 /* end confdefs.h. */
30165 int main(void) {return 0;}
30166 _ACEOF
30167 if ac_fn_cxx_try_compile "$LINENO"; then :
30168 gcc_cv_c_no_fpie=yes
30169 else
30170 gcc_cv_c_no_fpie=no
30171 fi
30172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30173 CXXFLAGS="$saved_CXXFLAGS"
30174 fi
30175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30176 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30177 if test "$gcc_cv_c_no_fpie" = "yes"; then
30178 NO_PIE_CFLAGS="-fno-PIE"
30179 fi
30180
30181
30182 # Check if -no-pie works.
30183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30184 $as_echo_n "checking for -no-pie option... " >&6; }
30185 if ${gcc_cv_no_pie+:} false; then :
30186 $as_echo_n "(cached) " >&6
30187 else
30188 saved_LDFLAGS="$LDFLAGS"
30189 LDFLAGS="$LDFLAGS -no-pie"
30190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30191 /* end confdefs.h. */
30192 int main(void) {return 0;}
30193 _ACEOF
30194 if ac_fn_cxx_try_link "$LINENO"; then :
30195 gcc_cv_no_pie=yes
30196 else
30197 gcc_cv_no_pie=no
30198 fi
30199 rm -f core conftest.err conftest.$ac_objext \
30200 conftest$ac_exeext conftest.$ac_ext
30201 LDFLAGS="$saved_LDFLAGS"
30202 fi
30203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30204 $as_echo "$gcc_cv_no_pie" >&6; }
30205 if test "$gcc_cv_no_pie" = "yes"; then
30206 NO_PIE_FLAG="-no-pie"
30207 fi
30208
30209
30210 # Check linker supports '-z bndplt'
30211 ld_bndplt_support=no
30212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30213 $as_echo_n "checking linker -z bndplt option... " >&6; }
30214 if test x"$ld_is_gold" = xno; then
30215 if test $in_tree_ld = yes ; then
30216 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
30217 ld_bndplt_support=yes
30218 fi
30219 elif test x$gcc_cv_ld != x; then
30220 # Check if linker supports -a bndplt option
30221 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30222 ld_bndplt_support=yes
30223 fi
30224 fi
30225 fi
30226 if test x"$ld_bndplt_support" = xyes; then
30227
30228 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30229
30230 fi
30231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30232 $as_echo "$ld_bndplt_support" >&6; }
30233
30234 # Check linker supports '--push-state'/'--pop-state'
30235 ld_pushpopstate_support=no
30236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30237 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30238 if test x"$ld_is_gold" = xno; then
30239 if test $in_tree_ld = yes ; then
30240 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
30241 ld_pushpopstate_support=yes
30242 fi
30243 elif test x$gcc_cv_ld != x; then
30244 # Check if linker supports --push-state/--pop-state options
30245 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30246 ld_pushpopstate_support=yes
30247 fi
30248 fi
30249 fi
30250 if test x"$ld_pushpopstate_support" = xyes; then
30251
30252 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30253
30254 fi
30255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30256 $as_echo "$ld_pushpopstate_support" >&6; }
30257
30258 # Configure the subdirectories
30259 # AC_CONFIG_SUBDIRS($subdirs)
30260
30261 # Create the Makefile
30262 # and configure language subdirectories
30263 ac_config_files="$ac_config_files $all_outputs"
30264
30265
30266 ac_config_commands="$ac_config_commands default"
30267
30268 cat >confcache <<\_ACEOF
30269 # This file is a shell script that caches the results of configure
30270 # tests run on this system so they can be shared between configure
30271 # scripts and configure runs, see configure's option --config-cache.
30272 # It is not useful on other systems. If it contains results you don't
30273 # want to keep, you may remove or edit it.
30274 #
30275 # config.status only pays attention to the cache file if you give it
30276 # the --recheck option to rerun configure.
30277 #
30278 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30279 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30280 # following values.
30281
30282 _ACEOF
30283
30284 # The following way of writing the cache mishandles newlines in values,
30285 # but we know of no workaround that is simple, portable, and efficient.
30286 # So, we kill variables containing newlines.
30287 # Ultrix sh set writes to stderr and can't be redirected directly,
30288 # and sets the high bit in the cache file unless we assign to the vars.
30289 (
30290 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30291 eval ac_val=\$$ac_var
30292 case $ac_val in #(
30293 *${as_nl}*)
30294 case $ac_var in #(
30295 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30296 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30297 esac
30298 case $ac_var in #(
30299 _ | IFS | as_nl) ;; #(
30300 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30301 *) { eval $ac_var=; unset $ac_var;} ;;
30302 esac ;;
30303 esac
30304 done
30305
30306 (set) 2>&1 |
30307 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30308 *${as_nl}ac_space=\ *)
30309 # `set' does not quote correctly, so add quotes: double-quote
30310 # substitution turns \\\\ into \\, and sed turns \\ into \.
30311 sed -n \
30312 "s/'/'\\\\''/g;
30313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30314 ;; #(
30315 *)
30316 # `set' quotes correctly as required by POSIX, so do not add quotes.
30317 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30318 ;;
30319 esac |
30320 sort
30321 ) |
30322 sed '
30323 /^ac_cv_env_/b end
30324 t clear
30325 :clear
30326 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30327 t end
30328 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30329 :end' >>confcache
30330 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30331 if test -w "$cache_file"; then
30332 if test "x$cache_file" != "x/dev/null"; then
30333 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30334 $as_echo "$as_me: updating cache $cache_file" >&6;}
30335 if test ! -f "$cache_file" || test -h "$cache_file"; then
30336 cat confcache >"$cache_file"
30337 else
30338 case $cache_file in #(
30339 */* | ?:*)
30340 mv -f confcache "$cache_file"$$ &&
30341 mv -f "$cache_file"$$ "$cache_file" ;; #(
30342 *)
30343 mv -f confcache "$cache_file" ;;
30344 esac
30345 fi
30346 fi
30347 else
30348 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30349 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30350 fi
30351 fi
30352 rm -f confcache
30353
30354 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30355 # Let make expand exec_prefix.
30356 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30357
30358 DEFS=-DHAVE_CONFIG_H
30359
30360 ac_libobjs=
30361 ac_ltlibobjs=
30362 U=
30363 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30364 # 1. Remove the extension, and $U if already installed.
30365 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30366 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30367 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30368 # will be set to the directory where LIBOBJS objects are built.
30369 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30370 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30371 done
30372 LIBOBJS=$ac_libobjs
30373
30374 LTLIBOBJS=$ac_ltlibobjs
30375
30376
30377
30378
30379 : "${CONFIG_STATUS=./config.status}"
30380 ac_write_fail=0
30381 ac_clean_files_save=$ac_clean_files
30382 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30383 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30384 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30385 as_write_fail=0
30386 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30387 #! $SHELL
30388 # Generated by $as_me.
30389 # Run this file to recreate the current configuration.
30390 # Compiler output produced by configure, useful for debugging
30391 # configure, is in config.log if it exists.
30392
30393 debug=false
30394 ac_cs_recheck=false
30395 ac_cs_silent=false
30396
30397 SHELL=\${CONFIG_SHELL-$SHELL}
30398 export SHELL
30399 _ASEOF
30400 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30401 ## -------------------- ##
30402 ## M4sh Initialization. ##
30403 ## -------------------- ##
30404
30405 # Be more Bourne compatible
30406 DUALCASE=1; export DUALCASE # for MKS sh
30407 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30408 emulate sh
30409 NULLCMD=:
30410 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30411 # is contrary to our usage. Disable this feature.
30412 alias -g '${1+"$@"}'='"$@"'
30413 setopt NO_GLOB_SUBST
30414 else
30415 case `(set -o) 2>/dev/null` in #(
30416 *posix*) :
30417 set -o posix ;; #(
30418 *) :
30419 ;;
30420 esac
30421 fi
30422
30423
30424 as_nl='
30425 '
30426 export as_nl
30427 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30428 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30429 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30430 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30431 # Prefer a ksh shell builtin over an external printf program on Solaris,
30432 # but without wasting forks for bash or zsh.
30433 if test -z "$BASH_VERSION$ZSH_VERSION" \
30434 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30435 as_echo='print -r --'
30436 as_echo_n='print -rn --'
30437 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30438 as_echo='printf %s\n'
30439 as_echo_n='printf %s'
30440 else
30441 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30442 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30443 as_echo_n='/usr/ucb/echo -n'
30444 else
30445 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30446 as_echo_n_body='eval
30447 arg=$1;
30448 case $arg in #(
30449 *"$as_nl"*)
30450 expr "X$arg" : "X\\(.*\\)$as_nl";
30451 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30452 esac;
30453 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30454 '
30455 export as_echo_n_body
30456 as_echo_n='sh -c $as_echo_n_body as_echo'
30457 fi
30458 export as_echo_body
30459 as_echo='sh -c $as_echo_body as_echo'
30460 fi
30461
30462 # The user is always right.
30463 if test "${PATH_SEPARATOR+set}" != set; then
30464 PATH_SEPARATOR=:
30465 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30466 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30467 PATH_SEPARATOR=';'
30468 }
30469 fi
30470
30471
30472 # IFS
30473 # We need space, tab and new line, in precisely that order. Quoting is
30474 # there to prevent editors from complaining about space-tab.
30475 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30476 # splitting by setting IFS to empty value.)
30477 IFS=" "" $as_nl"
30478
30479 # Find who we are. Look in the path if we contain no directory separator.
30480 as_myself=
30481 case $0 in #((
30482 *[\\/]* ) as_myself=$0 ;;
30483 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30484 for as_dir in $PATH
30485 do
30486 IFS=$as_save_IFS
30487 test -z "$as_dir" && as_dir=.
30488 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30489 done
30490 IFS=$as_save_IFS
30491
30492 ;;
30493 esac
30494 # We did not find ourselves, most probably we were run as `sh COMMAND'
30495 # in which case we are not to be found in the path.
30496 if test "x$as_myself" = x; then
30497 as_myself=$0
30498 fi
30499 if test ! -f "$as_myself"; then
30500 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30501 exit 1
30502 fi
30503
30504 # Unset variables that we do not need and which cause bugs (e.g. in
30505 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30506 # suppresses any "Segmentation fault" message there. '((' could
30507 # trigger a bug in pdksh 5.2.14.
30508 for as_var in BASH_ENV ENV MAIL MAILPATH
30509 do eval test x\${$as_var+set} = xset \
30510 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30511 done
30512 PS1='$ '
30513 PS2='> '
30514 PS4='+ '
30515
30516 # NLS nuisances.
30517 LC_ALL=C
30518 export LC_ALL
30519 LANGUAGE=C
30520 export LANGUAGE
30521
30522 # CDPATH.
30523 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30524
30525
30526 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30527 # ----------------------------------------
30528 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30529 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30530 # script with STATUS, using 1 if that was 0.
30531 as_fn_error ()
30532 {
30533 as_status=$1; test $as_status -eq 0 && as_status=1
30534 if test "$4"; then
30535 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30536 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30537 fi
30538 $as_echo "$as_me: error: $2" >&2
30539 as_fn_exit $as_status
30540 } # as_fn_error
30541
30542
30543 # as_fn_set_status STATUS
30544 # -----------------------
30545 # Set $? to STATUS, without forking.
30546 as_fn_set_status ()
30547 {
30548 return $1
30549 } # as_fn_set_status
30550
30551 # as_fn_exit STATUS
30552 # -----------------
30553 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30554 as_fn_exit ()
30555 {
30556 set +e
30557 as_fn_set_status $1
30558 exit $1
30559 } # as_fn_exit
30560
30561 # as_fn_unset VAR
30562 # ---------------
30563 # Portably unset VAR.
30564 as_fn_unset ()
30565 {
30566 { eval $1=; unset $1;}
30567 }
30568 as_unset=as_fn_unset
30569 # as_fn_append VAR VALUE
30570 # ----------------------
30571 # Append the text in VALUE to the end of the definition contained in VAR. Take
30572 # advantage of any shell optimizations that allow amortized linear growth over
30573 # repeated appends, instead of the typical quadratic growth present in naive
30574 # implementations.
30575 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30576 eval 'as_fn_append ()
30577 {
30578 eval $1+=\$2
30579 }'
30580 else
30581 as_fn_append ()
30582 {
30583 eval $1=\$$1\$2
30584 }
30585 fi # as_fn_append
30586
30587 # as_fn_arith ARG...
30588 # ------------------
30589 # Perform arithmetic evaluation on the ARGs, and store the result in the
30590 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30591 # must be portable across $(()) and expr.
30592 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30593 eval 'as_fn_arith ()
30594 {
30595 as_val=$(( $* ))
30596 }'
30597 else
30598 as_fn_arith ()
30599 {
30600 as_val=`expr "$@" || test $? -eq 1`
30601 }
30602 fi # as_fn_arith
30603
30604
30605 if expr a : '\(a\)' >/dev/null 2>&1 &&
30606 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30607 as_expr=expr
30608 else
30609 as_expr=false
30610 fi
30611
30612 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30613 as_basename=basename
30614 else
30615 as_basename=false
30616 fi
30617
30618 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30619 as_dirname=dirname
30620 else
30621 as_dirname=false
30622 fi
30623
30624 as_me=`$as_basename -- "$0" ||
30625 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30626 X"$0" : 'X\(//\)$' \| \
30627 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30628 $as_echo X/"$0" |
30629 sed '/^.*\/\([^/][^/]*\)\/*$/{
30630 s//\1/
30631 q
30632 }
30633 /^X\/\(\/\/\)$/{
30634 s//\1/
30635 q
30636 }
30637 /^X\/\(\/\).*/{
30638 s//\1/
30639 q
30640 }
30641 s/.*/./; q'`
30642
30643 # Avoid depending upon Character Ranges.
30644 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30645 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30646 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30647 as_cr_digits='0123456789'
30648 as_cr_alnum=$as_cr_Letters$as_cr_digits
30649
30650 ECHO_C= ECHO_N= ECHO_T=
30651 case `echo -n x` in #(((((
30652 -n*)
30653 case `echo 'xy\c'` in
30654 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30655 xy) ECHO_C='\c';;
30656 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30657 ECHO_T=' ';;
30658 esac;;
30659 *)
30660 ECHO_N='-n';;
30661 esac
30662
30663 rm -f conf$$ conf$$.exe conf$$.file
30664 if test -d conf$$.dir; then
30665 rm -f conf$$.dir/conf$$.file
30666 else
30667 rm -f conf$$.dir
30668 mkdir conf$$.dir 2>/dev/null
30669 fi
30670 if (echo >conf$$.file) 2>/dev/null; then
30671 if ln -s conf$$.file conf$$ 2>/dev/null; then
30672 as_ln_s='ln -s'
30673 # ... but there are two gotchas:
30674 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30675 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30676 # In both cases, we have to default to `cp -pR'.
30677 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30678 as_ln_s='cp -pR'
30679 elif ln conf$$.file conf$$ 2>/dev/null; then
30680 as_ln_s=ln
30681 else
30682 as_ln_s='cp -pR'
30683 fi
30684 else
30685 as_ln_s='cp -pR'
30686 fi
30687 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30688 rmdir conf$$.dir 2>/dev/null
30689
30690
30691 # as_fn_mkdir_p
30692 # -------------
30693 # Create "$as_dir" as a directory, including parents if necessary.
30694 as_fn_mkdir_p ()
30695 {
30696
30697 case $as_dir in #(
30698 -*) as_dir=./$as_dir;;
30699 esac
30700 test -d "$as_dir" || eval $as_mkdir_p || {
30701 as_dirs=
30702 while :; do
30703 case $as_dir in #(
30704 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30705 *) as_qdir=$as_dir;;
30706 esac
30707 as_dirs="'$as_qdir' $as_dirs"
30708 as_dir=`$as_dirname -- "$as_dir" ||
30709 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30710 X"$as_dir" : 'X\(//\)[^/]' \| \
30711 X"$as_dir" : 'X\(//\)$' \| \
30712 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30713 $as_echo X"$as_dir" |
30714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30715 s//\1/
30716 q
30717 }
30718 /^X\(\/\/\)[^/].*/{
30719 s//\1/
30720 q
30721 }
30722 /^X\(\/\/\)$/{
30723 s//\1/
30724 q
30725 }
30726 /^X\(\/\).*/{
30727 s//\1/
30728 q
30729 }
30730 s/.*/./; q'`
30731 test -d "$as_dir" && break
30732 done
30733 test -z "$as_dirs" || eval "mkdir $as_dirs"
30734 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30735
30736
30737 } # as_fn_mkdir_p
30738 if mkdir -p . 2>/dev/null; then
30739 as_mkdir_p='mkdir -p "$as_dir"'
30740 else
30741 test -d ./-p && rmdir ./-p
30742 as_mkdir_p=false
30743 fi
30744
30745
30746 # as_fn_executable_p FILE
30747 # -----------------------
30748 # Test if FILE is an executable regular file.
30749 as_fn_executable_p ()
30750 {
30751 test -f "$1" && test -x "$1"
30752 } # as_fn_executable_p
30753 as_test_x='test -x'
30754 as_executable_p=as_fn_executable_p
30755
30756 # Sed expression to map a string onto a valid CPP name.
30757 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30758
30759 # Sed expression to map a string onto a valid variable name.
30760 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30761
30762
30763 exec 6>&1
30764 ## ----------------------------------- ##
30765 ## Main body of $CONFIG_STATUS script. ##
30766 ## ----------------------------------- ##
30767 _ASEOF
30768 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30769
30770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30771 # Save the log message, to keep $0 and so on meaningful, and to
30772 # report actual input values of CONFIG_FILES etc. instead of their
30773 # values after options handling.
30774 ac_log="
30775 This file was extended by $as_me, which was
30776 generated by GNU Autoconf 2.69. Invocation command line was
30777
30778 CONFIG_FILES = $CONFIG_FILES
30779 CONFIG_HEADERS = $CONFIG_HEADERS
30780 CONFIG_LINKS = $CONFIG_LINKS
30781 CONFIG_COMMANDS = $CONFIG_COMMANDS
30782 $ $0 $@
30783
30784 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30785 "
30786
30787 _ACEOF
30788
30789 case $ac_config_files in *"
30790 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30791 esac
30792
30793 case $ac_config_headers in *"
30794 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30795 esac
30796
30797
30798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30799 # Files that config.status was made for.
30800 config_files="$ac_config_files"
30801 config_headers="$ac_config_headers"
30802 config_links="$ac_config_links"
30803 config_commands="$ac_config_commands"
30804
30805 _ACEOF
30806
30807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30808 ac_cs_usage="\
30809 \`$as_me' instantiates files and other configuration actions
30810 from templates according to the current configuration. Unless the files
30811 and actions are specified as TAGs, all are instantiated by default.
30812
30813 Usage: $0 [OPTION]... [TAG]...
30814
30815 -h, --help print this help, then exit
30816 -V, --version print version number and configuration settings, then exit
30817 --config print configuration, then exit
30818 -q, --quiet, --silent
30819 do not print progress messages
30820 -d, --debug don't remove temporary files
30821 --recheck update $as_me by reconfiguring in the same conditions
30822 --file=FILE[:TEMPLATE]
30823 instantiate the configuration file FILE
30824 --header=FILE[:TEMPLATE]
30825 instantiate the configuration header FILE
30826
30827 Configuration files:
30828 $config_files
30829
30830 Configuration headers:
30831 $config_headers
30832
30833 Configuration links:
30834 $config_links
30835
30836 Configuration commands:
30837 $config_commands
30838
30839 Report bugs to the package provider."
30840
30841 _ACEOF
30842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30843 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30844 ac_cs_version="\\
30845 config.status
30846 configured by $0, generated by GNU Autoconf 2.69,
30847 with options \\"\$ac_cs_config\\"
30848
30849 Copyright (C) 2012 Free Software Foundation, Inc.
30850 This config.status script is free software; the Free Software Foundation
30851 gives unlimited permission to copy, distribute and modify it."
30852
30853 ac_pwd='$ac_pwd'
30854 srcdir='$srcdir'
30855 AWK='$AWK'
30856 test -n "\$AWK" || AWK=awk
30857 _ACEOF
30858
30859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30860 # The default lists apply if the user does not specify any file.
30861 ac_need_defaults=:
30862 while test $# != 0
30863 do
30864 case $1 in
30865 --*=?*)
30866 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30867 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30868 ac_shift=:
30869 ;;
30870 --*=)
30871 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30872 ac_optarg=
30873 ac_shift=:
30874 ;;
30875 *)
30876 ac_option=$1
30877 ac_optarg=$2
30878 ac_shift=shift
30879 ;;
30880 esac
30881
30882 case $ac_option in
30883 # Handling of the options.
30884 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30885 ac_cs_recheck=: ;;
30886 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30887 $as_echo "$ac_cs_version"; exit ;;
30888 --config | --confi | --conf | --con | --co | --c )
30889 $as_echo "$ac_cs_config"; exit ;;
30890 --debug | --debu | --deb | --de | --d | -d )
30891 debug=: ;;
30892 --file | --fil | --fi | --f )
30893 $ac_shift
30894 case $ac_optarg in
30895 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30896 '') as_fn_error $? "missing file argument" ;;
30897 esac
30898 as_fn_append CONFIG_FILES " '$ac_optarg'"
30899 ac_need_defaults=false;;
30900 --header | --heade | --head | --hea )
30901 $ac_shift
30902 case $ac_optarg in
30903 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30904 esac
30905 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30906 ac_need_defaults=false;;
30907 --he | --h)
30908 # Conflict between --help and --header
30909 as_fn_error $? "ambiguous option: \`$1'
30910 Try \`$0 --help' for more information.";;
30911 --help | --hel | -h )
30912 $as_echo "$ac_cs_usage"; exit ;;
30913 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30914 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30915 ac_cs_silent=: ;;
30916
30917 # This is an error.
30918 -*) as_fn_error $? "unrecognized option: \`$1'
30919 Try \`$0 --help' for more information." ;;
30920
30921 *) as_fn_append ac_config_targets " $1"
30922 ac_need_defaults=false ;;
30923
30924 esac
30925 shift
30926 done
30927
30928 ac_configure_extra_args=
30929
30930 if $ac_cs_silent; then
30931 exec 6>/dev/null
30932 ac_configure_extra_args="$ac_configure_extra_args --silent"
30933 fi
30934
30935 _ACEOF
30936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30937 if \$ac_cs_recheck; then
30938 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30939 shift
30940 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30941 CONFIG_SHELL='$SHELL'
30942 export CONFIG_SHELL
30943 exec "\$@"
30944 fi
30945
30946 _ACEOF
30947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30948 exec 5>>config.log
30949 {
30950 echo
30951 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30952 ## Running $as_me. ##
30953 _ASBOX
30954 $as_echo "$ac_log"
30955 } >&5
30956
30957 _ACEOF
30958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30959 #
30960 # INIT-COMMANDS
30961 #
30962 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30963 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30964 subdirs='$subdirs'
30965
30966 _ACEOF
30967
30968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30969
30970 # Handling of arguments.
30971 for ac_config_target in $ac_config_targets
30972 do
30973 case $ac_config_target in
30974 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30975 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30976 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30977 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30978 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30979 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30980 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30981 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30982 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30983
30984 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30985 esac
30986 done
30987
30988
30989 # If the user did not use the arguments to specify the items to instantiate,
30990 # then the envvar interface is used. Set only those that are not.
30991 # We use the long form for the default assignment because of an extremely
30992 # bizarre bug on SunOS 4.1.3.
30993 if $ac_need_defaults; then
30994 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30995 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30996 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30997 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30998 fi
30999
31000 # Have a temporary directory for convenience. Make it in the build tree
31001 # simply because there is no reason against having it here, and in addition,
31002 # creating and moving files from /tmp can sometimes cause problems.
31003 # Hook for its removal unless debugging.
31004 # Note that there is a small window in which the directory will not be cleaned:
31005 # after its creation but before its name has been assigned to `$tmp'.
31006 $debug ||
31007 {
31008 tmp= ac_tmp=
31009 trap 'exit_status=$?
31010 : "${ac_tmp:=$tmp}"
31011 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31012 ' 0
31013 trap 'as_fn_exit 1' 1 2 13 15
31014 }
31015 # Create a (secure) tmp directory for tmp files.
31016
31017 {
31018 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31019 test -d "$tmp"
31020 } ||
31021 {
31022 tmp=./conf$$-$RANDOM
31023 (umask 077 && mkdir "$tmp")
31024 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31025 ac_tmp=$tmp
31026
31027 # Set up the scripts for CONFIG_FILES section.
31028 # No need to generate them if there are no CONFIG_FILES.
31029 # This happens for instance with `./config.status config.h'.
31030 if test -n "$CONFIG_FILES"; then
31031
31032 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31033 ac_cs_awk_getline=:
31034 ac_cs_awk_pipe_init=
31035 ac_cs_awk_read_file='
31036 while ((getline aline < (F[key])) > 0)
31037 print(aline)
31038 close(F[key])'
31039 ac_cs_awk_pipe_fini=
31040 else
31041 ac_cs_awk_getline=false
31042 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31043 ac_cs_awk_read_file='
31044 print "|#_!!_#|"
31045 print "cat " F[key] " &&"
31046 '$ac_cs_awk_pipe_init
31047 # The final `:' finishes the AND list.
31048 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31049 fi
31050 ac_cr=`echo X | tr X '\015'`
31051 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31052 # But we know of no other shell where ac_cr would be empty at this
31053 # point, so we can use a bashism as a fallback.
31054 if test "x$ac_cr" = x; then
31055 eval ac_cr=\$\'\\r\'
31056 fi
31057 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31058 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31059 ac_cs_awk_cr='\\r'
31060 else
31061 ac_cs_awk_cr=$ac_cr
31062 fi
31063
31064 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31065 _ACEOF
31066
31067 # Create commands to substitute file output variables.
31068 {
31069 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31070 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31071 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31072 echo "_ACAWK" &&
31073 echo "_ACEOF"
31074 } >conf$$files.sh &&
31075 . ./conf$$files.sh ||
31076 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31077 rm -f conf$$files.sh
31078
31079 {
31080 echo "cat >conf$$subs.awk <<_ACEOF" &&
31081 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31082 echo "_ACEOF"
31083 } >conf$$subs.sh ||
31084 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31085 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31086 ac_delim='%!_!# '
31087 for ac_last_try in false false false false false :; do
31088 . ./conf$$subs.sh ||
31089 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31090
31091 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31092 if test $ac_delim_n = $ac_delim_num; then
31093 break
31094 elif $ac_last_try; then
31095 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31096 else
31097 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31098 fi
31099 done
31100 rm -f conf$$subs.sh
31101
31102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31103 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31104 _ACEOF
31105 sed -n '
31106 h
31107 s/^/S["/; s/!.*/"]=/
31108 p
31109 g
31110 s/^[^!]*!//
31111 :repl
31112 t repl
31113 s/'"$ac_delim"'$//
31114 t delim
31115 :nl
31116 h
31117 s/\(.\{148\}\)..*/\1/
31118 t more1
31119 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31120 p
31121 n
31122 b repl
31123 :more1
31124 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31125 p
31126 g
31127 s/.\{148\}//
31128 t nl
31129 :delim
31130 h
31131 s/\(.\{148\}\)..*/\1/
31132 t more2
31133 s/["\\]/\\&/g; s/^/"/; s/$/"/
31134 p
31135 b
31136 :more2
31137 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31138 p
31139 g
31140 s/.\{148\}//
31141 t delim
31142 ' <conf$$subs.awk | sed '
31143 /^[^""]/{
31144 N
31145 s/\n//
31146 }
31147 ' >>$CONFIG_STATUS || ac_write_fail=1
31148 rm -f conf$$subs.awk
31149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31150 _ACAWK
31151 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31152 for (key in S) S_is_set[key] = 1
31153 FS = "\a"
31154 \$ac_cs_awk_pipe_init
31155 }
31156 {
31157 line = $ 0
31158 nfields = split(line, field, "@")
31159 substed = 0
31160 len = length(field[1])
31161 for (i = 2; i < nfields; i++) {
31162 key = field[i]
31163 keylen = length(key)
31164 if (S_is_set[key]) {
31165 value = S[key]
31166 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31167 len += length(value) + length(field[++i])
31168 substed = 1
31169 } else
31170 len += 1 + keylen
31171 }
31172 if (nfields == 3 && !substed) {
31173 key = field[2]
31174 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31175 \$ac_cs_awk_read_file
31176 next
31177 }
31178 }
31179 print line
31180 }
31181 \$ac_cs_awk_pipe_fini
31182 _ACAWK
31183 _ACEOF
31184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31185 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31186 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31187 else
31188 cat
31189 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31190 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31191 _ACEOF
31192
31193 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31194 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31195 # trailing colons and then remove the whole line if VPATH becomes empty
31196 # (actually we leave an empty line to preserve line numbers).
31197 if test "x$srcdir" = x.; then
31198 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31199 h
31200 s///
31201 s/^/:/
31202 s/[ ]*$/:/
31203 s/:\$(srcdir):/:/g
31204 s/:\${srcdir}:/:/g
31205 s/:@srcdir@:/:/g
31206 s/^:*//
31207 s/:*$//
31208 x
31209 s/\(=[ ]*\).*/\1/
31210 G
31211 s/\n//
31212 s/^[^=]*=[ ]*$//
31213 }'
31214 fi
31215
31216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31217 fi # test -n "$CONFIG_FILES"
31218
31219 # Set up the scripts for CONFIG_HEADERS section.
31220 # No need to generate them if there are no CONFIG_HEADERS.
31221 # This happens for instance with `./config.status Makefile'.
31222 if test -n "$CONFIG_HEADERS"; then
31223 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31224 BEGIN {
31225 _ACEOF
31226
31227 # Transform confdefs.h into an awk script `defines.awk', embedded as
31228 # here-document in config.status, that substitutes the proper values into
31229 # config.h.in to produce config.h.
31230
31231 # Create a delimiter string that does not exist in confdefs.h, to ease
31232 # handling of long lines.
31233 ac_delim='%!_!# '
31234 for ac_last_try in false false :; do
31235 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31236 if test -z "$ac_tt"; then
31237 break
31238 elif $ac_last_try; then
31239 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31240 else
31241 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31242 fi
31243 done
31244
31245 # For the awk script, D is an array of macro values keyed by name,
31246 # likewise P contains macro parameters if any. Preserve backslash
31247 # newline sequences.
31248
31249 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31250 sed -n '
31251 s/.\{148\}/&'"$ac_delim"'/g
31252 t rset
31253 :rset
31254 s/^[ ]*#[ ]*define[ ][ ]*/ /
31255 t def
31256 d
31257 :def
31258 s/\\$//
31259 t bsnl
31260 s/["\\]/\\&/g
31261 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31262 D["\1"]=" \3"/p
31263 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31264 d
31265 :bsnl
31266 s/["\\]/\\&/g
31267 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31268 D["\1"]=" \3\\\\\\n"\\/p
31269 t cont
31270 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31271 t cont
31272 d
31273 :cont
31274 n
31275 s/.\{148\}/&'"$ac_delim"'/g
31276 t clear
31277 :clear
31278 s/\\$//
31279 t bsnlc
31280 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31281 d
31282 :bsnlc
31283 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31284 b cont
31285 ' <confdefs.h | sed '
31286 s/'"$ac_delim"'/"\\\
31287 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31288
31289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31290 for (key in D) D_is_set[key] = 1
31291 FS = "\a"
31292 }
31293 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31294 line = \$ 0
31295 split(line, arg, " ")
31296 if (arg[1] == "#") {
31297 defundef = arg[2]
31298 mac1 = arg[3]
31299 } else {
31300 defundef = substr(arg[1], 2)
31301 mac1 = arg[2]
31302 }
31303 split(mac1, mac2, "(") #)
31304 macro = mac2[1]
31305 prefix = substr(line, 1, index(line, defundef) - 1)
31306 if (D_is_set[macro]) {
31307 # Preserve the white space surrounding the "#".
31308 print prefix "define", macro P[macro] D[macro]
31309 next
31310 } else {
31311 # Replace #undef with comments. This is necessary, for example,
31312 # in the case of _POSIX_SOURCE, which is predefined and required
31313 # on some systems where configure will not decide to define it.
31314 if (defundef == "undef") {
31315 print "/*", prefix defundef, macro, "*/"
31316 next
31317 }
31318 }
31319 }
31320 { print }
31321 _ACAWK
31322 _ACEOF
31323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31324 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31325 fi # test -n "$CONFIG_HEADERS"
31326
31327
31328 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31329 shift
31330 for ac_tag
31331 do
31332 case $ac_tag in
31333 :[FHLC]) ac_mode=$ac_tag; continue;;
31334 esac
31335 case $ac_mode$ac_tag in
31336 :[FHL]*:*);;
31337 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31338 :[FH]-) ac_tag=-:-;;
31339 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31340 esac
31341 ac_save_IFS=$IFS
31342 IFS=:
31343 set x $ac_tag
31344 IFS=$ac_save_IFS
31345 shift
31346 ac_file=$1
31347 shift
31348
31349 case $ac_mode in
31350 :L) ac_source=$1;;
31351 :[FH])
31352 ac_file_inputs=
31353 for ac_f
31354 do
31355 case $ac_f in
31356 -) ac_f="$ac_tmp/stdin";;
31357 *) # Look for the file first in the build tree, then in the source tree
31358 # (if the path is not absolute). The absolute path cannot be DOS-style,
31359 # because $ac_f cannot contain `:'.
31360 test -f "$ac_f" ||
31361 case $ac_f in
31362 [\\/$]*) false;;
31363 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31364 esac ||
31365 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31366 esac
31367 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31368 as_fn_append ac_file_inputs " '$ac_f'"
31369 done
31370
31371 # Let's still pretend it is `configure' which instantiates (i.e., don't
31372 # use $as_me), people would be surprised to read:
31373 # /* config.h. Generated by config.status. */
31374 configure_input='Generated from '`
31375 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31376 `' by configure.'
31377 if test x"$ac_file" != x-; then
31378 configure_input="$ac_file. $configure_input"
31379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31380 $as_echo "$as_me: creating $ac_file" >&6;}
31381 fi
31382 # Neutralize special characters interpreted by sed in replacement strings.
31383 case $configure_input in #(
31384 *\&* | *\|* | *\\* )
31385 ac_sed_conf_input=`$as_echo "$configure_input" |
31386 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31387 *) ac_sed_conf_input=$configure_input;;
31388 esac
31389
31390 case $ac_tag in
31391 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31393 esac
31394 ;;
31395 esac
31396
31397 ac_dir=`$as_dirname -- "$ac_file" ||
31398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31399 X"$ac_file" : 'X\(//\)[^/]' \| \
31400 X"$ac_file" : 'X\(//\)$' \| \
31401 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31402 $as_echo X"$ac_file" |
31403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31404 s//\1/
31405 q
31406 }
31407 /^X\(\/\/\)[^/].*/{
31408 s//\1/
31409 q
31410 }
31411 /^X\(\/\/\)$/{
31412 s//\1/
31413 q
31414 }
31415 /^X\(\/\).*/{
31416 s//\1/
31417 q
31418 }
31419 s/.*/./; q'`
31420 as_dir="$ac_dir"; as_fn_mkdir_p
31421 ac_builddir=.
31422
31423 case "$ac_dir" in
31424 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31425 *)
31426 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31427 # A ".." for each directory in $ac_dir_suffix.
31428 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31429 case $ac_top_builddir_sub in
31430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31432 esac ;;
31433 esac
31434 ac_abs_top_builddir=$ac_pwd
31435 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31436 # for backward compatibility:
31437 ac_top_builddir=$ac_top_build_prefix
31438
31439 case $srcdir in
31440 .) # We are building in place.
31441 ac_srcdir=.
31442 ac_top_srcdir=$ac_top_builddir_sub
31443 ac_abs_top_srcdir=$ac_pwd ;;
31444 [\\/]* | ?:[\\/]* ) # Absolute name.
31445 ac_srcdir=$srcdir$ac_dir_suffix;
31446 ac_top_srcdir=$srcdir
31447 ac_abs_top_srcdir=$srcdir ;;
31448 *) # Relative name.
31449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31450 ac_top_srcdir=$ac_top_build_prefix$srcdir
31451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31452 esac
31453 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31454
31455
31456 case $ac_mode in
31457 :F)
31458 #
31459 # CONFIG_FILE
31460 #
31461
31462 _ACEOF
31463
31464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31465 # If the template does not know about datarootdir, expand it.
31466 # FIXME: This hack should be removed a few years after 2.60.
31467 ac_datarootdir_hack=; ac_datarootdir_seen=
31468 ac_sed_dataroot='
31469 /datarootdir/ {
31470 p
31471 q
31472 }
31473 /@datadir@/p
31474 /@docdir@/p
31475 /@infodir@/p
31476 /@localedir@/p
31477 /@mandir@/p'
31478 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31479 *datarootdir*) ac_datarootdir_seen=yes;;
31480 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31482 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31483 _ACEOF
31484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31485 ac_datarootdir_hack='
31486 s&@datadir@&$datadir&g
31487 s&@docdir@&$docdir&g
31488 s&@infodir@&$infodir&g
31489 s&@localedir@&$localedir&g
31490 s&@mandir@&$mandir&g
31491 s&\\\${datarootdir}&$datarootdir&g' ;;
31492 esac
31493 _ACEOF
31494
31495 # Neutralize VPATH when `$srcdir' = `.'.
31496 # Shell code in configure.ac might set extrasub.
31497 # FIXME: do we really want to maintain this feature?
31498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31499 ac_sed_extra="$ac_vpsub
31500 $extrasub
31501 _ACEOF
31502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31503 :t
31504 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31505 s|@configure_input@|$ac_sed_conf_input|;t t
31506 s&@top_builddir@&$ac_top_builddir_sub&;t t
31507 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31508 s&@srcdir@&$ac_srcdir&;t t
31509 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31510 s&@top_srcdir@&$ac_top_srcdir&;t t
31511 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31512 s&@builddir@&$ac_builddir&;t t
31513 s&@abs_builddir@&$ac_abs_builddir&;t t
31514 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31515 $ac_datarootdir_hack
31516 "
31517 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31518 if $ac_cs_awk_getline; then
31519 $AWK -f "$ac_tmp/subs.awk"
31520 else
31521 $AWK -f "$ac_tmp/subs.awk" | $SHELL
31522 fi \
31523 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31524
31525 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31526 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31527 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31528 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31530 which seems to be undefined. Please make sure it is defined" >&5
31531 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31532 which seems to be undefined. Please make sure it is defined" >&2;}
31533
31534 rm -f "$ac_tmp/stdin"
31535 case $ac_file in
31536 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31537 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31538 esac \
31539 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31540 ;;
31541 :H)
31542 #
31543 # CONFIG_HEADER
31544 #
31545 if test x"$ac_file" != x-; then
31546 {
31547 $as_echo "/* $configure_input */" \
31548 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31549 } >"$ac_tmp/config.h" \
31550 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31551 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31552 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31553 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31554 else
31555 rm -f "$ac_file"
31556 mv "$ac_tmp/config.h" "$ac_file" \
31557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31558 fi
31559 else
31560 $as_echo "/* $configure_input */" \
31561 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31562 || as_fn_error $? "could not create -" "$LINENO" 5
31563 fi
31564 ;;
31565 :L)
31566 #
31567 # CONFIG_LINK
31568 #
31569
31570 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31571 :
31572 else
31573 # Prefer the file from the source tree if names are identical.
31574 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31575 ac_source=$srcdir/$ac_source
31576 fi
31577
31578 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31579 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31580
31581 if test ! -r "$ac_source"; then
31582 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31583 fi
31584 rm -f "$ac_file"
31585
31586 # Try a relative symlink, then a hard link, then a copy.
31587 case $ac_source in
31588 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31589 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31590 esac
31591 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31592 ln "$ac_source" "$ac_file" 2>/dev/null ||
31593 cp -p "$ac_source" "$ac_file" ||
31594 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31595 fi
31596 ;;
31597 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31598 $as_echo "$as_me: executing $ac_file commands" >&6;}
31599 ;;
31600 esac
31601
31602
31603 case $ac_file$ac_mode in
31604 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31605 "gccdepdir":C)
31606 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31607 for lang in $subdirs c-family common
31608 do
31609 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31610 done ;;
31611 "as":F) chmod +x as ;;
31612 "collect-ld":F) chmod +x collect-ld ;;
31613 "nm":F) chmod +x nm ;;
31614 "default":C)
31615 case ${CONFIG_HEADERS} in
31616 *auto-host.h:config.in*)
31617 echo > cstamp-h ;;
31618 esac
31619 # Make sure all the subdirs exist.
31620 for d in $subdirs doc build common c-family
31621 do
31622 test -d $d || mkdir $d
31623 done
31624 ;;
31625
31626 esac
31627 done # for ac_tag
31628
31629
31630 as_fn_exit 0
31631 _ACEOF
31632 ac_clean_files=$ac_clean_files_save
31633
31634 test $ac_write_fail = 0 ||
31635 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31636
31637
31638 # configure is writing to config.log, and then calls config.status.
31639 # config.status does its own redirection, appending to config.log.
31640 # Unfortunately, on DOS this fails, as config.log is still kept open
31641 # by configure, so config.status won't be able to write to it; its
31642 # output is simply discarded. So we exec the FD to /dev/null,
31643 # effectively closing config.log, so it can be properly (re)opened and
31644 # appended to by config.status. When coming back to configure, we
31645 # need to make the FD available again.
31646 if test "$no_create" != yes; then
31647 ac_cs_success=:
31648 ac_config_status_args=
31649 test "$silent" = yes &&
31650 ac_config_status_args="$ac_config_status_args --quiet"
31651 exec 5>/dev/null
31652 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31653 exec 5>>config.log
31654 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31655 # would make configure fail if this is the last instruction.
31656 $ac_cs_success || as_fn_exit 1
31657 fi
31658 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31660 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31661 fi
31662
31663