Move libgcc_tm_file to toplevel libgcc
[gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 thread_file
625 common_out_object_file
626 common_out_file
627 out_object_file
628 out_file
629 objc_boehm_gc
630 md_file
631 local_prefix
632 lang_tree_files
633 lang_specs_files
634 lang_opt_files
635 install
636 out_host_hook_obj
637 host_xm_defines
638 host_xm_include_list
639 host_xm_file_list
640 host_exeext
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_passes
646 extra_objs
647 extra_headers_list
648 user_headers_inc_next_post
649 user_headers_inc_next_pre
650 extra_gcc_objs
651 TM_MULTILIB_EXCEPTIONS_CONFIG
652 TM_MULTILIB_CONFIG
653 TM_ENDIAN_CONFIG
654 tmake_file
655 xmake_file
656 cpp_install_dir
657 check_languages
658 build_file_translate
659 build_xm_defines
660 build_xm_include_list
661 build_xm_file_list
662 build_install_headers_dir
663 build_exeext
664 all_selected_languages
665 all_languages
666 all_lang_makefrags
667 all_gtfiles
668 all_compilers
669 srcdir
670 subdirs
671 dollar
672 gcc_tooldir
673 enable_lto
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
678 GGC
679 libgcc_visibility
680 gcc_cv_readelf
681 gcc_cv_objdump
682 ORIGINAL_NM_FOR_TARGET
683 gcc_cv_nm
684 ORIGINAL_LD_FOR_TARGET
685 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 gcc_cv_ld
687 ORIGINAL_AS_FOR_TARGET
688 gcc_cv_as
689 enable_fast_install
690 objdir
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
696 STRIP
697 OBJDUMP
698 ac_ct_DUMPBIN
699 DUMPBIN
700 LD
701 FGREP
702 SED
703 LIBTOOL
704 collect2
705 STMP_FIXINC
706 BUILD_LDFLAGS
707 BUILD_CFLAGS
708 CC_FOR_BUILD
709 inhibit_libc
710 SYSTEM_HEADER_DIR
711 ALL
712 CROSS
713 CATOBJEXT
714 GENCAT
715 INSTOBJEXT
716 DATADIRNAME
717 CATALOGS
718 POSUB
719 GMSGFMT
720 XGETTEXT
721 INCINTL
722 LIBINTL_DEP
723 LIBINTL
724 USE_NLS
725 extra_opt_files
726 extra_modes_file
727 gthread_flags
728 NATIVE_SYSTEM_HEADER_DIR
729 objext
730 manext
731 LIBICONV_DEP
732 LTLIBICONV
733 LIBICONV
734 LDEXP_LIB
735 EXTRA_GCC_LIBS
736 GNAT_LIBEXC
737 COLLECT2_LIBS
738 CXXCPP
739 AR
740 NM
741 BISON
742 FLEX
743 GENERATED_MANPAGES
744 BUILD_INFO
745 MAKEINFO
746 have_mktemp_command
747 make_compare_target
748 INSTALL_DATA
749 INSTALL_PROGRAM
750 INSTALL
751 ranlib_flags
752 RANLIB
753 LN
754 LN_S
755 AWK
756 SET_MAKE
757 REPORT_BUGS_TEXI
758 REPORT_BUGS_TO
759 PKGVERSION
760 CONFIGURE_SPECS
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
763 TARGET_SYSTEM_ROOT
764 SYSROOT_CFLAGS_FOR_TARGET
765 enable_shared
766 enable_fixed_point
767 enable_decimal_float
768 enable_multilib
769 ENABLE_BUILD_WITH_CXX
770 coverage_flags
771 valgrind_command
772 valgrind_path_defines
773 valgrind_path
774 TREEBROWSER
775 nocommon_flag
776 warn_cxxflags
777 warn_cflags
778 c_strict_warn
779 strict_warn
780 c_loose_warn
781 loose_warn
782 EGREP
783 GREP
784 CPP
785 PICFLAG_FOR_TARGET
786 OUTPUT_OPTION
787 NO_MINUS_C_MINUS_O
788 GNATMAKE
789 GNATBIND
790 ac_ct_CXX
791 CXXFLAGS
792 CXX
793 OBJEXT
794 EXEEXT
795 ac_ct_CC
796 CPPFLAGS
797 LDFLAGS
798 CFLAGS
799 CC
800 GENINSRC
801 target_subdir
802 host_subdir
803 build_subdir
804 build_libsubdir
805 target_noncanonical
806 target_os
807 target_vendor
808 target_cpu
809 target
810 host_os
811 host_vendor
812 host_cpu
813 host
814 build_os
815 build_vendor
816 build_cpu
817 build
818 target_alias
819 host_alias
820 build_alias
821 LIBS
822 ECHO_T
823 ECHO_N
824 ECHO_C
825 DEFS
826 mandir
827 localedir
828 libdir
829 psdir
830 pdfdir
831 dvidir
832 htmldir
833 infodir
834 docdir
835 oldincludedir
836 includedir
837 localstatedir
838 sharedstatedir
839 sysconfdir
840 datadir
841 datarootdir
842 libexecdir
843 sbindir
844 bindir
845 program_transform_name
846 prefix
847 exec_prefix
848 PACKAGE_URL
849 PACKAGE_BUGREPORT
850 PACKAGE_STRING
851 PACKAGE_VERSION
852 PACKAGE_TARNAME
853 PACKAGE_NAME
854 PATH_SEPARATOR
855 SHELL'
856 ac_subst_files='option_includes
857 language_hooks'
858 ac_user_opts='
859 enable_option_checking
860 with_build_libsubdir
861 with_local_prefix
862 with_gxx_include_dir
863 with_cpp_install_dir
864 enable_generated_files_in_srcdir
865 with_gnu_ld
866 with_ld
867 with_demangler_in_ld
868 with_gnu_as
869 with_as
870 enable_largefile
871 enable_werror_always
872 enable_checking
873 enable_coverage
874 enable_gather_detailed_mem_stats
875 enable_build_with_cxx
876 with_stabs
877 enable_multilib
878 enable___cxa_atexit
879 enable_decimal_float
880 enable_fixed_point
881 enable_threads
882 enable_tls
883 enable_objc_gc
884 with_dwarf2
885 enable_shared
886 with_native_system_header_dir
887 with_build_sysroot
888 with_sysroot
889 with_specs
890 with_pkgversion
891 with_bugurl
892 enable_languages
893 with_multilib_list
894 enable_rpath
895 with_libiconv_prefix
896 enable_initfini_array
897 enable_sjlj_exceptions
898 enable_secureplt
899 enable_leading_mingw64_underscores
900 enable_cld
901 enable_frame_pointer
902 enable_win32_registry
903 enable_static
904 with_pic
905 enable_fast_install
906 enable_libtool_lock
907 with_plugin_ld
908 enable_gnu_indirect_function
909 enable_comdat
910 enable_gnu_unique_object
911 enable_linker_build_id
912 with_long_double_128
913 with_gc
914 with_system_zlib
915 enable_maintainer_mode
916 enable_version_specific_runtime_libs
917 enable_plugin
918 enable_libquadmath_support
919 with_linker_hash_style
920 '
921 ac_precious_vars='build_alias
922 host_alias
923 target_alias
924 CC
925 CFLAGS
926 LDFLAGS
927 LIBS
928 CPPFLAGS
929 CXX
930 CXXFLAGS
931 CCC
932 CPP
933 CXXCPP
934 GMPLIBS
935 GMPINC
936 PPLLIBS
937 PPLINC
938 CLOOGLIBS
939 CLOOGINC'
940
941
942 # Initialize some variables set by options.
943 ac_init_help=
944 ac_init_version=false
945 ac_unrecognized_opts=
946 ac_unrecognized_sep=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
949 cache_file=/dev/null
950 exec_prefix=NONE
951 no_create=
952 no_recursion=
953 prefix=NONE
954 program_prefix=NONE
955 program_suffix=NONE
956 program_transform_name=s,x,x,
957 silent=
958 site=
959 srcdir=
960 verbose=
961 x_includes=NONE
962 x_libraries=NONE
963
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
989
990 ac_prev=
991 ac_dashdash=
992 for ac_option
993 do
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\$ac_option
997 ac_prev=
998 continue
999 fi
1000
1001 case $ac_option in
1002 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003 *) ac_optarg=yes ;;
1004 esac
1005
1006 # Accept the important Cygnus configure options, so we can diagnose typos.
1007
1008 case $ac_dashdash$ac_option in
1009 --)
1010 ac_dashdash=yes ;;
1011
1012 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013 ac_prev=bindir ;;
1014 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015 bindir=$ac_optarg ;;
1016
1017 -build | --build | --buil | --bui | --bu)
1018 ac_prev=build_alias ;;
1019 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020 build_alias=$ac_optarg ;;
1021
1022 -cache-file | --cache-file | --cache-fil | --cache-fi \
1023 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024 ac_prev=cache_file ;;
1025 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027 cache_file=$ac_optarg ;;
1028
1029 --config-cache | -C)
1030 cache_file=config.cache ;;
1031
1032 -datadir | --datadir | --datadi | --datad)
1033 ac_prev=datadir ;;
1034 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035 datadir=$ac_optarg ;;
1036
1037 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038 | --dataroo | --dataro | --datar)
1039 ac_prev=datarootdir ;;
1040 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042 datarootdir=$ac_optarg ;;
1043
1044 -disable-* | --disable-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error "invalid feature name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1052 *"
1053 "enable_$ac_useropt"
1054 "*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval enable_$ac_useropt=no ;;
1059
1060 -docdir | --docdir | --docdi | --doc | --do)
1061 ac_prev=docdir ;;
1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063 docdir=$ac_optarg ;;
1064
1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066 ac_prev=dvidir ;;
1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068 dvidir=$ac_optarg ;;
1069
1070 -enable-* | --enable-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error "invalid feature name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1078 *"
1079 "enable_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval enable_$ac_useropt=\$ac_optarg ;;
1085
1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088 | --exec | --exe | --ex)
1089 ac_prev=exec_prefix ;;
1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092 | --exec=* | --exe=* | --ex=*)
1093 exec_prefix=$ac_optarg ;;
1094
1095 -gas | --gas | --ga | --g)
1096 # Obsolete; use --with-gas.
1097 with_gas=yes ;;
1098
1099 -help | --help | --hel | --he | -h)
1100 ac_init_help=long ;;
1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102 ac_init_help=recursive ;;
1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104 ac_init_help=short ;;
1105
1106 -host | --host | --hos | --ho)
1107 ac_prev=host_alias ;;
1108 -host=* | --host=* | --hos=* | --ho=*)
1109 host_alias=$ac_optarg ;;
1110
1111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112 ac_prev=htmldir ;;
1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114 | --ht=*)
1115 htmldir=$ac_optarg ;;
1116
1117 -includedir | --includedir | --includedi | --included | --include \
1118 | --includ | --inclu | --incl | --inc)
1119 ac_prev=includedir ;;
1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121 | --includ=* | --inclu=* | --incl=* | --inc=*)
1122 includedir=$ac_optarg ;;
1123
1124 -infodir | --infodir | --infodi | --infod | --info | --inf)
1125 ac_prev=infodir ;;
1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127 infodir=$ac_optarg ;;
1128
1129 -libdir | --libdir | --libdi | --libd)
1130 ac_prev=libdir ;;
1131 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132 libdir=$ac_optarg ;;
1133
1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135 | --libexe | --libex | --libe)
1136 ac_prev=libexecdir ;;
1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138 | --libexe=* | --libex=* | --libe=*)
1139 libexecdir=$ac_optarg ;;
1140
1141 -localedir | --localedir | --localedi | --localed | --locale)
1142 ac_prev=localedir ;;
1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144 localedir=$ac_optarg ;;
1145
1146 -localstatedir | --localstatedir | --localstatedi | --localstated \
1147 | --localstate | --localstat | --localsta | --localst | --locals)
1148 ac_prev=localstatedir ;;
1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151 localstatedir=$ac_optarg ;;
1152
1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154 ac_prev=mandir ;;
1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156 mandir=$ac_optarg ;;
1157
1158 -nfp | --nfp | --nf)
1159 # Obsolete; use --without-fp.
1160 with_fp=no ;;
1161
1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163 | --no-cr | --no-c | -n)
1164 no_create=yes ;;
1165
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168 no_recursion=yes ;;
1169
1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172 | --oldin | --oldi | --old | --ol | --o)
1173 ac_prev=oldincludedir ;;
1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177 oldincludedir=$ac_optarg ;;
1178
1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180 ac_prev=prefix ;;
1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182 prefix=$ac_optarg ;;
1183
1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185 | --program-pre | --program-pr | --program-p)
1186 ac_prev=program_prefix ;;
1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189 program_prefix=$ac_optarg ;;
1190
1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192 | --program-suf | --program-su | --program-s)
1193 ac_prev=program_suffix ;;
1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196 program_suffix=$ac_optarg ;;
1197
1198 -program-transform-name | --program-transform-name \
1199 | --program-transform-nam | --program-transform-na \
1200 | --program-transform-n | --program-transform- \
1201 | --program-transform | --program-transfor \
1202 | --program-transfo | --program-transf \
1203 | --program-trans | --program-tran \
1204 | --progr-tra | --program-tr | --program-t)
1205 ac_prev=program_transform_name ;;
1206 -program-transform-name=* | --program-transform-name=* \
1207 | --program-transform-nam=* | --program-transform-na=* \
1208 | --program-transform-n=* | --program-transform-=* \
1209 | --program-transform=* | --program-transfor=* \
1210 | --program-transfo=* | --program-transf=* \
1211 | --program-trans=* | --program-tran=* \
1212 | --progr-tra=* | --program-tr=* | --program-t=*)
1213 program_transform_name=$ac_optarg ;;
1214
1215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216 ac_prev=pdfdir ;;
1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218 pdfdir=$ac_optarg ;;
1219
1220 -psdir | --psdir | --psdi | --psd | --ps)
1221 ac_prev=psdir ;;
1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223 psdir=$ac_optarg ;;
1224
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 silent=yes ;;
1228
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230 ac_prev=sbindir ;;
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232 | --sbi=* | --sb=*)
1233 sbindir=$ac_optarg ;;
1234
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1238 | --sha | --sh)
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243 | --sha=* | --sh=*)
1244 sharedstatedir=$ac_optarg ;;
1245
1246 -site | --site | --sit)
1247 ac_prev=site ;;
1248 -site=* | --site=* | --sit=*)
1249 site=$ac_optarg ;;
1250
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252 ac_prev=srcdir ;;
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254 srcdir=$ac_optarg ;;
1255
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261 sysconfdir=$ac_optarg ;;
1262
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
1264 ac_prev=target_alias ;;
1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266 target_alias=$ac_optarg ;;
1267
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 verbose=yes ;;
1270
1271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
1273
1274 -with-* | --with-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 as_fn_error "invalid package name: $ac_useropt"
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1282 *"
1283 "with_$ac_useropt"
1284 "*) ;;
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1287 esac
1288 eval with_$ac_useropt=\$ac_optarg ;;
1289
1290 -without-* | --without-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 as_fn_error "invalid package name: $ac_useropt"
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1298 *"
1299 "with_$ac_useropt"
1300 "*) ;;
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1303 esac
1304 eval with_$ac_useropt=no ;;
1305
1306 --x)
1307 # Obsolete; use --with-x.
1308 with_x=yes ;;
1309
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1316
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1323
1324 -*) as_fn_error "unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information."
1326 ;;
1327
1328 *=*)
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 case $ac_envvar in #(
1332 '' | [0-9]* | *[!_$as_cr_alnum]* )
1333 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1334 esac
1335 eval $ac_envvar=\$ac_optarg
1336 export $ac_envvar ;;
1337
1338 *)
1339 # FIXME: should be removed in autoconf 3.0.
1340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344 ;;
1345
1346 esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 as_fn_error "missing argument to $ac_option"
1352 fi
1353
1354 if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1356 no) ;;
1357 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359 esac
1360 fi
1361
1362 # Check all directory arguments for consistency.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1367 do
1368 eval ac_val=\$$ac_var
1369 # Remove trailing slashes.
1370 case $ac_val in
1371 */ )
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
1374 esac
1375 # Be sure to have absolute directory names.
1376 case $ac_val in
1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379 esac
1380 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1381 done
1382
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1386 build=$build_alias
1387 host=$host_alias
1388 target=$target_alias
1389
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392 if test "x$build_alias" = x; then
1393 cross_compiling=maybe
1394 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395 If a cross compiler is detected then cross compile mode will be used." >&2
1396 elif test "x$build_alias" != "x$host_alias"; then
1397 cross_compiling=yes
1398 fi
1399 fi
1400
1401 ac_tool_prefix=
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404 test "$silent" = yes && exec 6>/dev/null
1405
1406
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410 as_fn_error "working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 as_fn_error "pwd does not report name of working directory"
1413
1414
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417 ac_srcdir_defaulted=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426 s//\1/
1427 q
1428 }
1429 /^X\(\/\/\)[^/].*/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\/\)$/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\).*/{
1438 s//\1/
1439 q
1440 }
1441 s/.*/./; q'`
1442 srcdir=$ac_confdir
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 srcdir=..
1445 fi
1446 else
1447 ac_srcdir_defaulted=no
1448 fi
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1452 fi
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 ac_abs_confdir=`(
1455 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1456 pwd)`
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 srcdir=.
1460 fi
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1464 case $srcdir in
1465 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 esac
1467 for ac_var in $ac_precious_vars; do
1468 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_env_${ac_var}_value=\$${ac_var}
1470 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472 done
1473
1474 #
1475 # Report the --help message.
1476 #
1477 if test "$ac_init_help" = "long"; then
1478 # Omit some internal or obsolete options to make the list less imposing.
1479 # This message is too long to be a string in the A/UX 3.1 sh.
1480 cat <<_ACEOF
1481 \`configure' configures this package to adapt to many kinds of systems.
1482
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1484
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE. See below for descriptions of some of the useful variables.
1487
1488 Defaults for the options are specified in brackets.
1489
1490 Configuration:
1491 -h, --help display this help and exit
1492 --help=short display options specific to this package
1493 --help=recursive display the short help of all the included packages
1494 -V, --version display version information and exit
1495 -q, --quiet, --silent do not print \`checking...' messages
1496 --cache-file=FILE cache test results in FILE [disabled]
1497 -C, --config-cache alias for \`--cache-file=config.cache'
1498 -n, --no-create do not create output files
1499 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500
1501 Installation directories:
1502 --prefix=PREFIX install architecture-independent files in PREFIX
1503 [$ac_default_prefix]
1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 [PREFIX]
1506
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1511
1512 For better control, use the options below.
1513
1514 Fine tuning of the installation directories:
1515 --bindir=DIR user executables [EPREFIX/bin]
1516 --sbindir=DIR system admin executables [EPREFIX/sbin]
1517 --libexecdir=DIR program executables [EPREFIX/libexec]
1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
1534 _ACEOF
1535
1536 cat <<\_ACEOF
1537
1538 Program names:
1539 --program-prefix=PREFIX prepend PREFIX to installed program names
1540 --program-suffix=SUFFIX append SUFFIX to installed program names
1541 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1542
1543 System types:
1544 --build=BUILD configure for building on BUILD [guessed]
1545 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1546 --target=TARGET configure for building compilers for TARGET [HOST]
1547 _ACEOF
1548 fi
1549
1550 if test -n "$ac_init_help"; then
1551
1552 cat <<\_ACEOF
1553
1554 Optional Features:
1555 --disable-option-checking ignore unrecognized --enable/--with options
1556 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1557 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1558 --enable-generated-files-in-srcdir
1559 put copies of generated files in source dir intended
1560 for creating source tarballs for users without
1561 texinfo bison or flex
1562 --disable-largefile omit support for large files
1563 --enable-werror-always enable -Werror despite compiler version
1564 --enable-checking[=LIST]
1565 enable expensive run-time checks. With LIST, enable
1566 only specific categories of checks. Categories are:
1567 yes,no,all,none,release. Flags are:
1568 assert,df,fold,gc,gcac,gimple,misc,
1569 rtlflag,rtl,runtime,tree,valgrind,types
1570 --enable-coverage[=LEVEL]
1571 enable compiler's code coverage collection. Use to
1572 measure compiler performance and locate unused parts
1573 of the compiler. With LEVEL, specify optimization.
1574 Values are opt, noopt, default is noopt
1575 --enable-gather-detailed-mem-stats
1576 enable detailed memory allocation stats gathering
1577 --enable-build-with-cxx build with C++ compiler instead of C compiler
1578 --enable-multilib enable library support for multiple ABIs
1579 --enable-__cxa_atexit enable __cxa_atexit for C++
1580 --enable-decimal-float={no,yes,bid,dpd}
1581 enable decimal float extension to C. Selecting 'bid'
1582 or 'dpd' choses which decimal floating point format
1583 to use
1584 --enable-fixed-point enable fixed-point arithmetic extension to C
1585 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1586 package
1587 --enable-tls enable or disable generation of tls code overriding
1588 the assembler check for tls support
1589 --enable-objc-gc enable the use of Boehm's garbage collector with the
1590 GNU Objective-C runtime
1591 --disable-shared don't provide a shared libgcc
1592 --enable-languages=LIST specify which front-ends to build
1593 --disable-rpath do not hardcode runtime library paths
1594 --enable-initfini-array use .init_array/.fini_array sections
1595 --enable-sjlj-exceptions
1596 arrange to use setjmp/longjmp exception handling
1597 --enable-secureplt enable -msecure-plt by default for PowerPC
1598 --enable-leading-mingw64-underscores
1599 enable leading underscores on 64 bit mingw targets
1600 --enable-cld enable -mcld by default for 32bit x86
1601 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1602 x86
1603 --disable-win32-registry
1604 disable lookup of installation paths in the Registry
1605 on Windows hosts
1606 --enable-win32-registry enable registry lookup (default)
1607 --enable-win32-registry=KEY
1608 use KEY instead of GCC version as the last portion
1609 of the registry key
1610 --enable-shared[=PKGS] build shared libraries [default=yes]
1611 --enable-static[=PKGS] build static libraries [default=yes]
1612 --enable-fast-install[=PKGS]
1613 optimize for fast installation [default=yes]
1614 --disable-libtool-lock avoid locking (might break parallel builds)
1615 --enable-gnu-indirect-function
1616 enable the use of the @gnu_indirect_function to
1617 glibc systems
1618 --enable-comdat enable COMDAT group support
1619 --enable-gnu-unique-object
1620 enable the use of the @gnu_unique_object ELF
1621 extension on glibc systems
1622 --enable-linker-build-id
1623 compiler will always pass --build-id to linker
1624 --enable-maintainer-mode
1625 enable make rules and dependencies not useful (and
1626 sometimes confusing) to the casual installer
1627 --enable-version-specific-runtime-libs
1628 specify that runtime libraries should be installed
1629 in a compiler-specific directory
1630 --enable-plugin enable plugin support
1631 --disable-libquadmath-support
1632 disable libquadmath support for Fortran
1633
1634 Optional Packages:
1635 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1636 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1637 --with-build-libsubdir=DIR Directory where to find libraries for build system
1638 --with-local-prefix=DIR specifies directory to put local include
1639 --with-gxx-include-dir=DIR
1640 specifies directory to put g++ header files
1641 --with-cpp-install-dir=DIR
1642 install the user visible C preprocessor in DIR
1643 (relative to PREFIX) as well as PREFIX/bin
1644 --with-gnu-ld arrange to work with GNU ld
1645 --with-ld arrange to use the specified ld (full pathname)
1646 --with-demangler-in-ld try to use demangler in GNU ld
1647 --with-gnu-as arrange to work with GNU as
1648 --with-as arrange to use the specified as (full pathname)
1649 --with-stabs arrange to use stabs instead of host debug format
1650 --with-dwarf2 force the default debug format to be DWARF 2
1651 --with-native-system-header-dir=dir
1652 use dir as the directory to look for standard
1653 system header files in. Defaults to /usr/include.
1654 --with-build-sysroot=sysroot
1655 use sysroot as the system root during the build
1656 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1657 --with-specs=SPECS add SPECS to driver command-line processing
1658 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1659 --with-bugurl=URL Direct users to URL to report a bug
1660 --with-multilib-list select multilibs (SH and x86-64 only)
1661 --with-gnu-ld assume the C compiler uses GNU ld default=no
1662 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1663 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1664 --with-pic try to use only PIC/non-PIC objects [default=use
1665 both]
1666 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1667 --with-plugin-ld=[ARG] specify the plugin linker
1668 --with-long-double-128 use 128-bit long double by default
1669 --with-gc={page,zone} choose the garbage collection mechanism to use with
1670 the compiler
1671 --with-system-zlib use installed libz
1672 --with-linker-hash-style={sysv,gnu,both}
1673 specify the linker hash style
1674
1675 Some influential environment variables:
1676 CC C compiler command
1677 CFLAGS C compiler flags
1678 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1679 nonstandard directory <lib dir>
1680 LIBS libraries to pass to the linker, e.g. -l<library>
1681 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1682 you have headers in a nonstandard directory <include dir>
1683 CXX C++ compiler command
1684 CXXFLAGS C++ compiler flags
1685 CPP C preprocessor
1686 CXXCPP C++ preprocessor
1687 GMPLIBS How to link GMP
1688 GMPINC How to find GMP include files
1689 PPLLIBS How to link PPL
1690 PPLINC How to find PPL include files
1691 CLOOGLIBS How to link CLOOG
1692 CLOOGINC How to find CLOOG include files
1693
1694 Use these variables to override the choices made by `configure' or to help
1695 it to find libraries and programs with nonstandard names/locations.
1696
1697 Report bugs to the package provider.
1698 _ACEOF
1699 ac_status=$?
1700 fi
1701
1702 if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1707 continue
1708 ac_builddir=.
1709
1710 case "$ac_dir" in
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 *)
1713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719 esac ;;
1720 esac
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1725
1726 case $srcdir in
1727 .) # We are building in place.
1728 ac_srcdir=.
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
1732 ac_srcdir=$srcdir$ac_dir_suffix;
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1735 *) # Relative name.
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 esac
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1741
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for guested configure.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1748 echo &&
1749 $SHELL "$ac_srcdir/configure" --help=recursive
1750 else
1751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752 fi || ac_status=$?
1753 cd "$ac_pwd" || { ac_status=$?; break; }
1754 done
1755 fi
1756
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1759 cat <<\_ACEOF
1760 configure
1761 generated by GNU Autoconf 2.64
1762
1763 Copyright (C) 2009 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1766 _ACEOF
1767 exit
1768 fi
1769
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1773
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.$ac_objext; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805 ac_retval=1
1806 fi
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808 return $ac_retval
1809
1810 } # ac_fn_c_try_compile
1811
1812 # ac_fn_cxx_try_compile LINENO
1813 # ----------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_cxx_try_compile ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 rm -f conftest.$ac_objext
1819 if { { ac_try="$ac_compile"
1820 case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1827 ac_status=$?
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1832 fi
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_cxx_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=1
1844 fi
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 return $ac_retval
1847
1848 } # ac_fn_cxx_try_compile
1849
1850 # ac_fn_c_try_cpp LINENO
1851 # ----------------------
1852 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_c_try_cpp ()
1854 {
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_cpp conftest.$ac_ext"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1864 ac_status=$?
1865 if test -s conftest.err; then
1866 grep -v '^ *+' conftest.err >conftest.er1
1867 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err
1869 fi
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } >/dev/null && {
1872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1873 test ! -s conftest.err
1874 }; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880 ac_retval=1
1881 fi
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 return $ac_retval
1884
1885 } # ac_fn_c_try_cpp
1886
1887 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1888 # -------------------------------------------------------
1889 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1890 # the include files in INCLUDES and setting the cache variable VAR
1891 # accordingly.
1892 ac_fn_c_check_header_mongrel ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899 $as_echo_n "(cached) " >&6
1900 fi
1901 eval ac_res=\$$3
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 else
1905 # Is the header compilable?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1907 $as_echo_n "checking $2 usability... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1910 $4
1911 #include <$2>
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_header_compiler=yes
1915 else
1916 ac_header_compiler=no
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1920 $as_echo "$ac_header_compiler" >&6; }
1921
1922 # Is the header present?
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1924 $as_echo_n "checking $2 presence... " >&6; }
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1927 #include <$2>
1928 _ACEOF
1929 if ac_fn_c_try_cpp "$LINENO"; then :
1930 ac_header_preproc=yes
1931 else
1932 ac_header_preproc=no
1933 fi
1934 rm -f conftest.err conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1936 $as_echo "$ac_header_preproc" >&6; }
1937
1938 # So? What about this header?
1939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1940 yes:no: )
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1942 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 ;;
1946 no:yes:* )
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1948 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1950 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1952 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1954 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957 ;;
1958 esac
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 $as_echo_n "(cached) " >&6
1963 else
1964 eval "$3=\$ac_header_compiler"
1965 fi
1966 eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 fi
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971
1972 } # ac_fn_c_check_header_mongrel
1973
1974 # ac_fn_c_try_run LINENO
1975 # ----------------------
1976 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1977 # that executables *can* be run.
1978 ac_fn_c_try_run ()
1979 {
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 if { { ac_try="$ac_link"
1982 case "(($ac_try" in
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_link") 2>&5
1989 ac_status=$?
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1992 { { case "(($ac_try" in
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_try") 2>&5
1999 ac_status=$?
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; }; }; then :
2002 ac_retval=0
2003 else
2004 $as_echo "$as_me: program exited with status $ac_status" >&5
2005 $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2007
2008 ac_retval=$ac_status
2009 fi
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012 return $ac_retval
2013
2014 } # ac_fn_c_try_run
2015
2016 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2017 # -------------------------------------------------------
2018 # Tests whether HEADER exists and can be compiled using the include files in
2019 # INCLUDES, setting the cache variable VAR accordingly.
2020 ac_fn_c_check_header_compile ()
2021 {
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026 $as_echo_n "(cached) " >&6
2027 else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 $4
2031 #include <$2>
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 eval "$3=yes"
2035 else
2036 eval "$3=no"
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 fi
2040 eval ac_res=\$$3
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044
2045 } # ac_fn_c_check_header_compile
2046
2047 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2048 # --------------------------------------------
2049 # Tries to find the compile-time value of EXPR in a program that includes
2050 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2051 # computed
2052 ac_fn_c_compute_int ()
2053 {
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 if test "$cross_compiling" = yes; then
2056 # Depending upon the size, compute the lo and hi bounds.
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2059 $4
2060 int
2061 main ()
2062 {
2063 static int test_array [1 - 2 * !(($2) >= 0)];
2064 test_array [0] = 0
2065
2066 ;
2067 return 0;
2068 }
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071 ac_lo=0 ac_mid=0
2072 while :; do
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2075 $4
2076 int
2077 main ()
2078 {
2079 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2080 test_array [0] = 0
2081
2082 ;
2083 return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_hi=$ac_mid; break
2088 else
2089 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2090 if test $ac_lo -le $ac_mid; then
2091 ac_lo= ac_hi=
2092 break
2093 fi
2094 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 done
2098 else
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2101 $4
2102 int
2103 main ()
2104 {
2105 static int test_array [1 - 2 * !(($2) < 0)];
2106 test_array [0] = 0
2107
2108 ;
2109 return 0;
2110 }
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113 ac_hi=-1 ac_mid=-1
2114 while :; do
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2117 $4
2118 int
2119 main ()
2120 {
2121 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2122 test_array [0] = 0
2123
2124 ;
2125 return 0;
2126 }
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129 ac_lo=$ac_mid; break
2130 else
2131 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2132 if test $ac_mid -le $ac_hi; then
2133 ac_lo= ac_hi=
2134 break
2135 fi
2136 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2137 fi
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 done
2140 else
2141 ac_lo= ac_hi=
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 # Binary search between lo and hi bounds.
2147 while test "x$ac_lo" != "x$ac_hi"; do
2148 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2151 $4
2152 int
2153 main ()
2154 {
2155 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2156 test_array [0] = 0
2157
2158 ;
2159 return 0;
2160 }
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163 ac_hi=$ac_mid
2164 else
2165 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2166 fi
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 done
2169 case $ac_lo in #((
2170 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2171 '') ac_retval=1 ;;
2172 esac
2173 else
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2176 $4
2177 static long int longval () { return $2; }
2178 static unsigned long int ulongval () { return $2; }
2179 #include <stdio.h>
2180 #include <stdlib.h>
2181 int
2182 main ()
2183 {
2184
2185 FILE *f = fopen ("conftest.val", "w");
2186 if (! f)
2187 return 1;
2188 if (($2) < 0)
2189 {
2190 long int i = longval ();
2191 if (i != ($2))
2192 return 1;
2193 fprintf (f, "%ld", i);
2194 }
2195 else
2196 {
2197 unsigned long int i = ulongval ();
2198 if (i != ($2))
2199 return 1;
2200 fprintf (f, "%lu", i);
2201 }
2202 /* Do not output a trailing newline, as this causes \r\n confusion
2203 on some platforms. */
2204 return ferror (f) || fclose (f) != 0;
2205
2206 ;
2207 return 0;
2208 }
2209 _ACEOF
2210 if ac_fn_c_try_run "$LINENO"; then :
2211 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2212 else
2213 ac_retval=1
2214 fi
2215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2216 conftest.$ac_objext conftest.beam conftest.$ac_ext
2217 rm -f conftest.val
2218
2219 fi
2220 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2221 return $ac_retval
2222
2223 } # ac_fn_c_compute_int
2224
2225 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2226 # -------------------------------------------
2227 # Tests whether TYPE exists after having included INCLUDES, setting cache
2228 # variable VAR accordingly.
2229 ac_fn_c_check_type ()
2230 {
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2235 $as_echo_n "(cached) " >&6
2236 else
2237 eval "$3=no"
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2240 $4
2241 int
2242 main ()
2243 {
2244 if (sizeof ($2))
2245 return 0;
2246 ;
2247 return 0;
2248 }
2249 _ACEOF
2250 if ac_fn_c_try_compile "$LINENO"; then :
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2253 $4
2254 int
2255 main ()
2256 {
2257 if (sizeof (($2)))
2258 return 0;
2259 ;
2260 return 0;
2261 }
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264
2265 else
2266 eval "$3=yes"
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 fi
2272 eval ac_res=\$$3
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2276
2277 } # ac_fn_c_check_type
2278
2279 # ac_fn_c_find_intX_t LINENO BITS VAR
2280 # -----------------------------------
2281 # Finds a signed integer type with width BITS, setting cache variable VAR
2282 # accordingly.
2283 ac_fn_c_find_intX_t ()
2284 {
2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2287 $as_echo_n "checking for int$2_t... " >&6; }
2288 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2289 $as_echo_n "(cached) " >&6
2290 else
2291 eval "$3=no"
2292 for ac_type in int$2_t 'int' 'long int' \
2293 'long long int' 'short int' 'signed char'; do
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2296 $ac_includes_default
2297 int
2298 main ()
2299 {
2300 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2301 test_array [0] = 0
2302
2303 ;
2304 return 0;
2305 }
2306 _ACEOF
2307 if ac_fn_c_try_compile "$LINENO"; then :
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2310 $ac_includes_default
2311 int
2312 main ()
2313 {
2314 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2315 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2316 test_array [0] = 0
2317
2318 ;
2319 return 0;
2320 }
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323
2324 else
2325 case $ac_type in #(
2326 int$2_t) :
2327 eval "$3=yes" ;; #(
2328 *) :
2329 eval "$3=\$ac_type" ;;
2330 esac
2331 fi
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 fi
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 eval as_val=\$$3
2336 if test "x$as_val" = x""no; then :
2337
2338 else
2339 break
2340 fi
2341 done
2342 fi
2343 eval ac_res=\$$3
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345 $as_echo "$ac_res" >&6; }
2346 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2347
2348 } # ac_fn_c_find_intX_t
2349
2350 # ac_fn_c_try_link LINENO
2351 # -----------------------
2352 # Try to link conftest.$ac_ext, and return whether this succeeded.
2353 ac_fn_c_try_link ()
2354 {
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356 rm -f conftest.$ac_objext conftest$ac_exeext
2357 if { { ac_try="$ac_link"
2358 case "(($ac_try" in
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2361 esac
2362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2363 $as_echo "$ac_try_echo"; } >&5
2364 (eval "$ac_link") 2>conftest.err
2365 ac_status=$?
2366 if test -s conftest.err; then
2367 grep -v '^ *+' conftest.err >conftest.er1
2368 cat conftest.er1 >&5
2369 mv -f conftest.er1 conftest.err
2370 fi
2371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2372 test $ac_status = 0; } && {
2373 test -z "$ac_c_werror_flag" ||
2374 test ! -s conftest.err
2375 } && test -s conftest$ac_exeext && {
2376 test "$cross_compiling" = yes ||
2377 $as_test_x conftest$ac_exeext
2378 }; then :
2379 ac_retval=0
2380 else
2381 $as_echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2383
2384 ac_retval=1
2385 fi
2386 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2387 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2388 # interfere with the next link command; also delete a directory that is
2389 # left behind by Apple's compiler. We do this before executing the actions.
2390 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2391 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2392 return $ac_retval
2393
2394 } # ac_fn_c_try_link
2395
2396 # ac_fn_c_find_uintX_t LINENO BITS VAR
2397 # ------------------------------------
2398 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2399 # accordingly.
2400 ac_fn_c_find_uintX_t ()
2401 {
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2404 $as_echo_n "checking for uint$2_t... " >&6; }
2405 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2406 $as_echo_n "(cached) " >&6
2407 else
2408 eval "$3=no"
2409 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2410 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $ac_includes_default
2414 int
2415 main ()
2416 {
2417 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2418 test_array [0] = 0
2419
2420 ;
2421 return 0;
2422 }
2423 _ACEOF
2424 if ac_fn_c_try_compile "$LINENO"; then :
2425 case $ac_type in #(
2426 uint$2_t) :
2427 eval "$3=yes" ;; #(
2428 *) :
2429 eval "$3=\$ac_type" ;;
2430 esac
2431 fi
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 eval as_val=\$$3
2434 if test "x$as_val" = x""no; then :
2435
2436 else
2437 break
2438 fi
2439 done
2440 fi
2441 eval ac_res=\$$3
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 $as_echo "$ac_res" >&6; }
2444 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445
2446 } # ac_fn_c_find_uintX_t
2447
2448 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2449 # ----------------------------------------------
2450 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2451 ac_fn_c_check_header_preproc ()
2452 {
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2455 $as_echo_n "checking for $2... " >&6; }
2456 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2461 #include <$2>
2462 _ACEOF
2463 if ac_fn_c_try_cpp "$LINENO"; then :
2464 eval "$3=yes"
2465 else
2466 eval "$3=no"
2467 fi
2468 rm -f conftest.err conftest.$ac_ext
2469 fi
2470 eval ac_res=\$$3
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2473 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474
2475 } # ac_fn_c_check_header_preproc
2476
2477 # ac_fn_cxx_try_cpp LINENO
2478 # ------------------------
2479 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2480 ac_fn_cxx_try_cpp ()
2481 {
2482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2483 if { { ac_try="$ac_cpp conftest.$ac_ext"
2484 case "(($ac_try" in
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2487 esac
2488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2489 $as_echo "$ac_try_echo"; } >&5
2490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2491 ac_status=$?
2492 if test -s conftest.err; then
2493 grep -v '^ *+' conftest.err >conftest.er1
2494 cat conftest.er1 >&5
2495 mv -f conftest.er1 conftest.err
2496 fi
2497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2498 test $ac_status = 0; } >/dev/null && {
2499 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2500 test ! -s conftest.err
2501 }; then :
2502 ac_retval=0
2503 else
2504 $as_echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2506
2507 ac_retval=1
2508 fi
2509 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2510 return $ac_retval
2511
2512 } # ac_fn_cxx_try_cpp
2513
2514 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2515 # ------------------------------------------------
2516 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2517 ac_fn_cxx_check_header_preproc ()
2518 {
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 $as_echo_n "checking for $2... " >&6; }
2522 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2527 #include <$2>
2528 _ACEOF
2529 if ac_fn_cxx_try_cpp "$LINENO"; then :
2530 eval "$3=yes"
2531 else
2532 eval "$3=no"
2533 fi
2534 rm -f conftest.err conftest.$ac_ext
2535 fi
2536 eval ac_res=\$$3
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2540
2541 } # ac_fn_cxx_check_header_preproc
2542
2543 # ac_fn_c_check_func LINENO FUNC VAR
2544 # ----------------------------------
2545 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2546 ac_fn_c_check_func ()
2547 {
2548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2552 $as_echo_n "(cached) " >&6
2553 else
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2558 #define $2 innocuous_$2
2559
2560 /* System header to define __stub macros and hopefully few prototypes,
2561 which can conflict with char $2 (); below.
2562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2563 <limits.h> exists even on freestanding compilers. */
2564
2565 #ifdef __STDC__
2566 # include <limits.h>
2567 #else
2568 # include <assert.h>
2569 #endif
2570
2571 #undef $2
2572
2573 /* Override any GCC internal prototype to avoid an error.
2574 Use char because int might match the return type of a GCC
2575 builtin and then its argument prototype would still apply. */
2576 #ifdef __cplusplus
2577 extern "C"
2578 #endif
2579 char $2 ();
2580 /* The GNU C library defines this for functions which it implements
2581 to always fail with ENOSYS. Some functions are actually named
2582 something starting with __ and the normal name is an alias. */
2583 #if defined __stub_$2 || defined __stub___$2
2584 choke me
2585 #endif
2586
2587 int
2588 main ()
2589 {
2590 return $2 ();
2591 ;
2592 return 0;
2593 }
2594 _ACEOF
2595 if ac_fn_c_try_link "$LINENO"; then :
2596 eval "$3=yes"
2597 else
2598 eval "$3=no"
2599 fi
2600 rm -f core conftest.err conftest.$ac_objext \
2601 conftest$ac_exeext conftest.$ac_ext
2602 fi
2603 eval ac_res=\$$3
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2607
2608 } # ac_fn_c_check_func
2609
2610 # ac_fn_cxx_try_link LINENO
2611 # -------------------------
2612 # Try to link conftest.$ac_ext, and return whether this succeeded.
2613 ac_fn_cxx_try_link ()
2614 {
2615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2616 rm -f conftest.$ac_objext conftest$ac_exeext
2617 if { { ac_try="$ac_link"
2618 case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2621 esac
2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623 $as_echo "$ac_try_echo"; } >&5
2624 (eval "$ac_link") 2>conftest.err
2625 ac_status=$?
2626 if test -s conftest.err; then
2627 grep -v '^ *+' conftest.err >conftest.er1
2628 cat conftest.er1 >&5
2629 mv -f conftest.er1 conftest.err
2630 fi
2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632 test $ac_status = 0; } && {
2633 test -z "$ac_cxx_werror_flag" ||
2634 test ! -s conftest.err
2635 } && test -s conftest$ac_exeext && {
2636 test "$cross_compiling" = yes ||
2637 $as_test_x conftest$ac_exeext
2638 }; then :
2639 ac_retval=0
2640 else
2641 $as_echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 ac_retval=1
2645 fi
2646 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2647 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2648 # interfere with the next link command; also delete a directory that is
2649 # left behind by Apple's compiler. We do this before executing the actions.
2650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2652 return $ac_retval
2653
2654 } # ac_fn_cxx_try_link
2655 cat >config.log <<_ACEOF
2656 This file contains any messages produced by compilers while
2657 running configure, to aid debugging if configure makes a mistake.
2658
2659 It was created by $as_me, which was
2660 generated by GNU Autoconf 2.64. Invocation command line was
2661
2662 $ $0 $@
2663
2664 _ACEOF
2665 exec 5>>config.log
2666 {
2667 cat <<_ASUNAME
2668 ## --------- ##
2669 ## Platform. ##
2670 ## --------- ##
2671
2672 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2673 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2674 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2675 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2676 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2677
2678 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2679 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2680
2681 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2682 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2683 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2684 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2685 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2686 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2687 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2688
2689 _ASUNAME
2690
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 $as_echo "PATH: $as_dir"
2697 done
2698 IFS=$as_save_IFS
2699
2700 } >&5
2701
2702 cat >&5 <<_ACEOF
2703
2704
2705 ## ----------- ##
2706 ## Core tests. ##
2707 ## ----------- ##
2708
2709 _ACEOF
2710
2711
2712 # Keep a trace of the command line.
2713 # Strip out --no-create and --no-recursion so they do not pile up.
2714 # Strip out --silent because we don't want to record it for future runs.
2715 # Also quote any args containing shell meta-characters.
2716 # Make two passes to allow for proper duplicate-argument suppression.
2717 ac_configure_args=
2718 ac_configure_args0=
2719 ac_configure_args1=
2720 ac_must_keep_next=false
2721 for ac_pass in 1 2
2722 do
2723 for ac_arg
2724 do
2725 case $ac_arg in
2726 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2728 | -silent | --silent | --silen | --sile | --sil)
2729 continue ;;
2730 *\'*)
2731 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2732 esac
2733 case $ac_pass in
2734 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2735 2)
2736 as_fn_append ac_configure_args1 " '$ac_arg'"
2737 if test $ac_must_keep_next = true; then
2738 ac_must_keep_next=false # Got value, back to normal.
2739 else
2740 case $ac_arg in
2741 *=* | --config-cache | -C | -disable-* | --disable-* \
2742 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2743 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2744 | -with-* | --with-* | -without-* | --without-* | --x)
2745 case "$ac_configure_args0 " in
2746 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2747 esac
2748 ;;
2749 -* ) ac_must_keep_next=true ;;
2750 esac
2751 fi
2752 as_fn_append ac_configure_args " '$ac_arg'"
2753 ;;
2754 esac
2755 done
2756 done
2757 { ac_configure_args0=; unset ac_configure_args0;}
2758 { ac_configure_args1=; unset ac_configure_args1;}
2759
2760 # When interrupted or exit'd, cleanup temporary files, and complete
2761 # config.log. We remove comments because anyway the quotes in there
2762 # would cause problems or look ugly.
2763 # WARNING: Use '\'' to represent an apostrophe within the trap.
2764 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2765 trap 'exit_status=$?
2766 # Save into config.log some information that might help in debugging.
2767 {
2768 echo
2769
2770 cat <<\_ASBOX
2771 ## ---------------- ##
2772 ## Cache variables. ##
2773 ## ---------------- ##
2774 _ASBOX
2775 echo
2776 # The following way of writing the cache mishandles newlines in values,
2777 (
2778 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2779 eval ac_val=\$$ac_var
2780 case $ac_val in #(
2781 *${as_nl}*)
2782 case $ac_var in #(
2783 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2784 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2785 esac
2786 case $ac_var in #(
2787 _ | IFS | as_nl) ;; #(
2788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2789 *) { eval $ac_var=; unset $ac_var;} ;;
2790 esac ;;
2791 esac
2792 done
2793 (set) 2>&1 |
2794 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2795 *${as_nl}ac_space=\ *)
2796 sed -n \
2797 "s/'\''/'\''\\\\'\'''\''/g;
2798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2799 ;; #(
2800 *)
2801 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2802 ;;
2803 esac |
2804 sort
2805 )
2806 echo
2807
2808 cat <<\_ASBOX
2809 ## ----------------- ##
2810 ## Output variables. ##
2811 ## ----------------- ##
2812 _ASBOX
2813 echo
2814 for ac_var in $ac_subst_vars
2815 do
2816 eval ac_val=\$$ac_var
2817 case $ac_val in
2818 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2819 esac
2820 $as_echo "$ac_var='\''$ac_val'\''"
2821 done | sort
2822 echo
2823
2824 if test -n "$ac_subst_files"; then
2825 cat <<\_ASBOX
2826 ## ------------------- ##
2827 ## File substitutions. ##
2828 ## ------------------- ##
2829 _ASBOX
2830 echo
2831 for ac_var in $ac_subst_files
2832 do
2833 eval ac_val=\$$ac_var
2834 case $ac_val in
2835 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2836 esac
2837 $as_echo "$ac_var='\''$ac_val'\''"
2838 done | sort
2839 echo
2840 fi
2841
2842 if test -s confdefs.h; then
2843 cat <<\_ASBOX
2844 ## ----------- ##
2845 ## confdefs.h. ##
2846 ## ----------- ##
2847 _ASBOX
2848 echo
2849 cat confdefs.h
2850 echo
2851 fi
2852 test "$ac_signal" != 0 &&
2853 $as_echo "$as_me: caught signal $ac_signal"
2854 $as_echo "$as_me: exit $exit_status"
2855 } >&5
2856 rm -f core *.core core.conftest.* &&
2857 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2858 exit $exit_status
2859 ' 0
2860 for ac_signal in 1 2 13 15; do
2861 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2862 done
2863 ac_signal=0
2864
2865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2866 rm -f -r conftest* confdefs.h
2867
2868 $as_echo "/* confdefs.h */" > confdefs.h
2869
2870 # Predefined preprocessor variables.
2871
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_NAME "$PACKAGE_NAME"
2874 _ACEOF
2875
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2878 _ACEOF
2879
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2882 _ACEOF
2883
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_STRING "$PACKAGE_STRING"
2886 _ACEOF
2887
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2890 _ACEOF
2891
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_URL "$PACKAGE_URL"
2894 _ACEOF
2895
2896
2897 # Let the site file select an alternate cache file if it wants to.
2898 # Prefer an explicitly selected file to automatically selected ones.
2899 ac_site_file1=NONE
2900 ac_site_file2=NONE
2901 if test -n "$CONFIG_SITE"; then
2902 ac_site_file1=$CONFIG_SITE
2903 elif test "x$prefix" != xNONE; then
2904 ac_site_file1=$prefix/share/config.site
2905 ac_site_file2=$prefix/etc/config.site
2906 else
2907 ac_site_file1=$ac_default_prefix/share/config.site
2908 ac_site_file2=$ac_default_prefix/etc/config.site
2909 fi
2910 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2911 do
2912 test "x$ac_site_file" = xNONE && continue
2913 if test -r "$ac_site_file"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2915 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2916 sed 's/^/| /' "$ac_site_file" >&5
2917 . "$ac_site_file"
2918 fi
2919 done
2920
2921 if test -r "$cache_file"; then
2922 # Some versions of bash will fail to source /dev/null (special
2923 # files actually), so we avoid doing that.
2924 if test -f "$cache_file"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2926 $as_echo "$as_me: loading cache $cache_file" >&6;}
2927 case $cache_file in
2928 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2929 *) . "./$cache_file";;
2930 esac
2931 fi
2932 else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2934 $as_echo "$as_me: creating cache $cache_file" >&6;}
2935 >$cache_file
2936 fi
2937
2938 # Check that the precious variables saved in the cache have kept the same
2939 # value.
2940 ac_cache_corrupted=false
2941 for ac_var in $ac_precious_vars; do
2942 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2943 eval ac_new_set=\$ac_env_${ac_var}_set
2944 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2945 eval ac_new_val=\$ac_env_${ac_var}_value
2946 case $ac_old_set,$ac_new_set in
2947 set,)
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2949 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2950 ac_cache_corrupted=: ;;
2951 ,set)
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2953 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2954 ac_cache_corrupted=: ;;
2955 ,);;
2956 *)
2957 if test "x$ac_old_val" != "x$ac_new_val"; then
2958 # differences in whitespace do not lead to failure.
2959 ac_old_val_w=`echo x $ac_old_val`
2960 ac_new_val_w=`echo x $ac_new_val`
2961 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2963 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2964 ac_cache_corrupted=:
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2967 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2968 eval $ac_var=\$ac_old_val
2969 fi
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2971 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2973 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2974 fi;;
2975 esac
2976 # Pass precious variables to config.status.
2977 if test "$ac_new_set" = set; then
2978 case $ac_new_val in
2979 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2980 *) ac_arg=$ac_var=$ac_new_val ;;
2981 esac
2982 case " $ac_configure_args " in
2983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2984 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2985 esac
2986 fi
2987 done
2988 if $ac_cache_corrupted; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2992 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2993 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2994 fi
2995 ## -------------------- ##
2996 ## Main body of script. ##
2997 ## -------------------- ##
2998
2999 ac_ext=c
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3004
3005
3006
3007
3008
3009
3010 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3011
3012
3013 gcc_version=`cat $srcdir/BASE-VER`
3014
3015 # Determine the host, build, and target systems
3016 ac_aux_dir=
3017 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3018 for ac_t in install-sh install.sh shtool; do
3019 if test -f "$ac_dir/$ac_t"; then
3020 ac_aux_dir=$ac_dir
3021 ac_install_sh="$ac_aux_dir/$ac_t -c"
3022 break 2
3023 fi
3024 done
3025 done
3026 if test -z "$ac_aux_dir"; then
3027 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3028 fi
3029
3030 # These three variables are undocumented and unsupported,
3031 # and are intended to be withdrawn in a future Autoconf release.
3032 # They can cause serious problems if a builder's source tree is in a directory
3033 # whose full name contains unusual characters.
3034 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3035 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3036 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3037
3038
3039 # Make sure we can run config.sub.
3040 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3041 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3042
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3044 $as_echo_n "checking build system type... " >&6; }
3045 if test "${ac_cv_build+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 ac_build_alias=$build_alias
3049 test "x$ac_build_alias" = x &&
3050 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3051 test "x$ac_build_alias" = x &&
3052 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3054 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3055
3056 fi
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3058 $as_echo "$ac_cv_build" >&6; }
3059 case $ac_cv_build in
3060 *-*-*) ;;
3061 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3062 esac
3063 build=$ac_cv_build
3064 ac_save_IFS=$IFS; IFS='-'
3065 set x $ac_cv_build
3066 shift
3067 build_cpu=$1
3068 build_vendor=$2
3069 shift; shift
3070 # Remember, the first character of IFS is used to create $*,
3071 # except with old shells:
3072 build_os=$*
3073 IFS=$ac_save_IFS
3074 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3075
3076
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3078 $as_echo_n "checking host system type... " >&6; }
3079 if test "${ac_cv_host+set}" = set; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test "x$host_alias" = x; then
3083 ac_cv_host=$ac_cv_build
3084 else
3085 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3086 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3087 fi
3088
3089 fi
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3091 $as_echo "$ac_cv_host" >&6; }
3092 case $ac_cv_host in
3093 *-*-*) ;;
3094 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3095 esac
3096 host=$ac_cv_host
3097 ac_save_IFS=$IFS; IFS='-'
3098 set x $ac_cv_host
3099 shift
3100 host_cpu=$1
3101 host_vendor=$2
3102 shift; shift
3103 # Remember, the first character of IFS is used to create $*,
3104 # except with old shells:
3105 host_os=$*
3106 IFS=$ac_save_IFS
3107 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3108
3109
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3111 $as_echo_n "checking target system type... " >&6; }
3112 if test "${ac_cv_target+set}" = set; then :
3113 $as_echo_n "(cached) " >&6
3114 else
3115 if test "x$target_alias" = x; then
3116 ac_cv_target=$ac_cv_host
3117 else
3118 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3119 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3120 fi
3121
3122 fi
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3124 $as_echo "$ac_cv_target" >&6; }
3125 case $ac_cv_target in
3126 *-*-*) ;;
3127 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3128 esac
3129 target=$ac_cv_target
3130 ac_save_IFS=$IFS; IFS='-'
3131 set x $ac_cv_target
3132 shift
3133 target_cpu=$1
3134 target_vendor=$2
3135 shift; shift
3136 # Remember, the first character of IFS is used to create $*,
3137 # except with old shells:
3138 target_os=$*
3139 IFS=$ac_save_IFS
3140 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3141
3142
3143 # The aliases save the names the user supplied, while $host etc.
3144 # will get canonicalized.
3145 test -n "$target_alias" &&
3146 test "$program_prefix$program_suffix$program_transform_name" = \
3147 NONENONEs,x,x, &&
3148 program_prefix=${target_alias}-
3149
3150 # Determine the noncanonical target name, for directory use.
3151 case ${build_alias} in
3152 "") build_noncanonical=${build} ;;
3153 *) build_noncanonical=${build_alias} ;;
3154 esac
3155
3156 case ${host_alias} in
3157 "") host_noncanonical=${build_noncanonical} ;;
3158 *) host_noncanonical=${host_alias} ;;
3159 esac
3160
3161 case ${target_alias} in
3162 "") target_noncanonical=${host_noncanonical} ;;
3163 *) target_noncanonical=${target_alias} ;;
3164 esac
3165
3166
3167
3168
3169 # Determine the target- and build-specific subdirectories
3170
3171 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3172 # have matching libraries, they should use host libraries: Makefile.tpl
3173 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3174 # However, they still use the build modules, because the corresponding
3175 # host modules (e.g. bison) are only built for the host when bootstrap
3176 # finishes. So:
3177 # - build_subdir is where we find build modules, and never changes.
3178 # - build_libsubdir is where we find build libraries, and can be overridden.
3179
3180 # Prefix 'build-' so this never conflicts with target_subdir.
3181 build_subdir="build-${build_noncanonical}"
3182
3183 # Check whether --with-build-libsubdir was given.
3184 if test "${with_build_libsubdir+set}" = set; then :
3185 withval=$with_build_libsubdir; build_libsubdir="$withval"
3186 else
3187 build_libsubdir="$build_subdir"
3188 fi
3189
3190 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3191 if ( test $srcdir = . && test -d gcc ) \
3192 || test -d $srcdir/../host-${host_noncanonical}; then
3193 host_subdir="host-${host_noncanonical}"
3194 else
3195 host_subdir=.
3196 fi
3197 # No prefix.
3198 target_subdir=${target_noncanonical}
3199
3200
3201 # Set program_transform_name
3202 test "$program_prefix" != NONE &&
3203 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3204 # Use a double $ so make ignores it.
3205 test "$program_suffix" != NONE &&
3206 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3207 # Double any \ or $.
3208 # By default was `s,x,x', remove it if useless.
3209 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3210 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3211
3212
3213 # Check for bogus environment variables.
3214 # Test if LIBRARY_PATH contains the notation for the current directory
3215 # since this would lead to problems installing/building glibc.
3216 # LIBRARY_PATH contains the current directory if one of the following
3217 # is true:
3218 # - one of the terminals (":" and ";") is the first or last sign
3219 # - two terminals occur directly after each other
3220 # - the path contains an element with a dot in it
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3222 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3223 case ${LIBRARY_PATH} in
3224 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3225 library_path_setting="contains current directory"
3226 ;;
3227 *)
3228 library_path_setting="ok"
3229 ;;
3230 esac
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3232 $as_echo "$library_path_setting" >&6; }
3233 if test "$library_path_setting" != "ok"; then
3234 as_fn_error "
3235 *** LIBRARY_PATH shouldn't contain the current directory when
3236 *** building gcc. Please change the environment variable
3237 *** and run configure again." "$LINENO" 5
3238 fi
3239
3240 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3241 # since this would lead to problems installing/building glibc.
3242 # GCC_EXEC_PREFIX contains the current directory if one of the following
3243 # is true:
3244 # - one of the terminals (":" and ";") is the first or last sign
3245 # - two terminals occur directly after each other
3246 # - the path contains an element with a dot in it
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3248 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3249 case ${GCC_EXEC_PREFIX} in
3250 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3251 gcc_exec_prefix_setting="contains current directory"
3252 ;;
3253 *)
3254 gcc_exec_prefix_setting="ok"
3255 ;;
3256 esac
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3258 $as_echo "$gcc_exec_prefix_setting" >&6; }
3259 if test "$gcc_exec_prefix_setting" != "ok"; then
3260 as_fn_error "
3261 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3262 *** building gcc. Please change the environment variable
3263 *** and run configure again." "$LINENO" 5
3264 fi
3265
3266 # -----------
3267 # Directories
3268 # -----------
3269
3270 # Specify the local prefix
3271 local_prefix=
3272
3273 # Check whether --with-local-prefix was given.
3274 if test "${with_local_prefix+set}" = set; then :
3275 withval=$with_local_prefix; case "${withval}" in
3276 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3277 no) ;;
3278 *) local_prefix=$with_local_prefix ;;
3279 esac
3280 fi
3281
3282
3283 # Default local prefix if it is empty
3284 if test x$local_prefix = x; then
3285 local_prefix=/usr/local
3286 fi
3287
3288 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3289 # passed in by the toplevel make and thus we'd get different behavior
3290 # depending on where we built the sources.
3291 gcc_gxx_include_dir=
3292 # Specify the g++ header file directory
3293
3294 # Check whether --with-gxx-include-dir was given.
3295 if test "${with_gxx_include_dir+set}" = set; then :
3296 withval=$with_gxx_include_dir; case "${withval}" in
3297 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3298 no) ;;
3299 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3300 esac
3301 fi
3302
3303
3304 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3305 if test x${gcc_gxx_include_dir} = x; then
3306 if test x${enable_version_specific_runtime_libs} = xyes; then
3307 gcc_gxx_include_dir='${libsubdir}/include/c++'
3308 else
3309 libstdcxx_incdir='include/c++/$(version)'
3310 if test x$host != x$target; then
3311 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3312 fi
3313 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3314 fi
3315 fi
3316
3317
3318 # Check whether --with-cpp_install_dir was given.
3319 if test "${with_cpp_install_dir+set}" = set; then :
3320 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3321 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3322 elif test x$withval != xno; then
3323 cpp_install_dir=$withval
3324 fi
3325 fi
3326
3327
3328 # We would like to our source tree to be readonly. However when releases or
3329 # pre-releases are generated, the flex/bison generated files as well as the
3330 # various formats of manuals need to be included along with the rest of the
3331 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3332 # just that.
3333
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3335 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3336 # Check whether --enable-generated-files-in-srcdir was given.
3337 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3338 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3339 else
3340 generated_files_in_srcdir=no
3341 fi
3342
3343
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3345 $as_echo "$generated_files_in_srcdir" >&6; }
3346
3347 if test "$generated_files_in_srcdir" = "yes"; then
3348 GENINSRC=''
3349 else
3350 GENINSRC='#'
3351 fi
3352
3353
3354 # -------------------
3355 # Find default linker
3356 # -------------------
3357
3358 # With GNU ld
3359
3360 # Check whether --with-gnu-ld was given.
3361 if test "${with_gnu_ld+set}" = set; then :
3362 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3363 else
3364 gnu_ld_flag=no
3365 fi
3366
3367
3368 # With pre-defined ld
3369
3370 # Check whether --with-ld was given.
3371 if test "${with_ld+set}" = set; then :
3372 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3373 fi
3374
3375 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3376 if test ! -x "$DEFAULT_LINKER"; then
3377 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3378 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3379 gnu_ld_flag=yes
3380 fi
3381
3382 cat >>confdefs.h <<_ACEOF
3383 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3384 _ACEOF
3385
3386 fi
3387
3388 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3389
3390 cat >>confdefs.h <<_ACEOF
3391 #define HAVE_GNU_LD $gnu_ld
3392 _ACEOF
3393
3394
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3396 $as_echo_n "checking whether a default linker was specified... " >&6; }
3397 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3398 if test x"$gnu_ld_flag" = x"no"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3400 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3401 else
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3403 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3404 fi
3405 else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408 fi
3409
3410 # With demangler in GNU ld
3411
3412 # Check whether --with-demangler-in-ld was given.
3413 if test "${with_demangler_in_ld+set}" = set; then :
3414 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3415 else
3416 demangler_in_ld=yes
3417 fi
3418
3419
3420 # ----------------------
3421 # Find default assembler
3422 # ----------------------
3423
3424 # With GNU as
3425
3426 # Check whether --with-gnu-as was given.
3427 if test "${with_gnu_as+set}" = set; then :
3428 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3429 else
3430 gas_flag=no
3431 fi
3432
3433
3434
3435 # Check whether --with-as was given.
3436 if test "${with_as+set}" = set; then :
3437 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3438 fi
3439
3440 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3441 if test ! -x "$DEFAULT_ASSEMBLER"; then
3442 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3443 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3444 gas_flag=yes
3445 fi
3446
3447 cat >>confdefs.h <<_ACEOF
3448 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3449 _ACEOF
3450
3451 fi
3452
3453 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3454
3455 cat >>confdefs.h <<_ACEOF
3456 #define HAVE_GNU_AS $gnu_as
3457 _ACEOF
3458
3459
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3461 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3462 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3463 if test x"$gas_flag" = x"no"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3465 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3466 else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3468 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3469 fi
3470 else
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3473 fi
3474
3475 # ---------------
3476 # Find C compiler
3477 # ---------------
3478
3479 # If a non-executable a.out is present (e.g. created by GNU as above even if
3480 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3481 # file, even when creating an executable, so an execution test fails.
3482 # Remove possible default executable files to avoid this.
3483 #
3484 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3485 # Autoconf includes it.
3486 rm -f a.out a.exe b.out
3487
3488 # Find the native compiler
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3496 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3515 fi
3516 done
3517 done
3518 IFS=$as_save_IFS
3519
3520 fi
3521 fi
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 fi
3530
3531
3532 fi
3533 if test -z "$ac_cv_prog_CC"; then
3534 ac_ct_CC=$CC
3535 # Extract the first word of "gcc", so it can be a program name with args.
3536 set dummy gcc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_ac_ct_CC="gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3555 fi
3556 done
3557 done
3558 IFS=$as_save_IFS
3559
3560 fi
3561 fi
3562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3569 fi
3570
3571 if test "x$ac_ct_CC" = x; then
3572 CC=""
3573 else
3574 case $cross_compiling:$ac_tool_warned in
3575 yes:)
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned=yes ;;
3579 esac
3580 CC=$ac_ct_CC
3581 fi
3582 else
3583 CC="$ac_cv_prog_CC"
3584 fi
3585
3586 if test -z "$CC"; then
3587 if test -n "$ac_tool_prefix"; then
3588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3589 set dummy ${ac_tool_prefix}cc; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC="$CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 ac_cv_prog_CC="${ac_tool_prefix}cc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 break 2
3608 fi
3609 done
3610 done
3611 IFS=$as_save_IFS
3612
3613 fi
3614 fi
3615 CC=$ac_cv_prog_CC
3616 if test -n "$CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3619 else
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3622 fi
3623
3624
3625 fi
3626 fi
3627 if test -z "$CC"; then
3628 # Extract the first word of "cc", so it can be a program name with args.
3629 set dummy cc; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638 ac_prog_rejected=no
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3641 do
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3647 ac_prog_rejected=yes
3648 continue
3649 fi
3650 ac_cv_prog_CC="cc"
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 break 2
3653 fi
3654 done
3655 done
3656 IFS=$as_save_IFS
3657
3658 if test $ac_prog_rejected = yes; then
3659 # We found a bogon in the path, so make sure we never use it.
3660 set dummy $ac_cv_prog_CC
3661 shift
3662 if test $# != 0; then
3663 # We chose a different compiler from the bogus one.
3664 # However, it has the same basename, so the bogon will be chosen
3665 # first if we set CC to just the basename; use the full file name.
3666 shift
3667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3668 fi
3669 fi
3670 fi
3671 fi
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3676 else
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3679 fi
3680
3681
3682 fi
3683 if test -z "$CC"; then
3684 if test -n "$ac_tool_prefix"; then
3685 for ac_prog in cl.exe
3686 do
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if test "${ac_cv_prog_CC+set}" = set; then :
3692 $as_echo_n "(cached) " >&6
3693 else
3694 if test -n "$CC"; then
3695 ac_cv_prog_CC="$CC" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3699 do
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3707 fi
3708 done
3709 done
3710 IFS=$as_save_IFS
3711
3712 fi
3713 fi
3714 CC=$ac_cv_prog_CC
3715 if test -n "$CC"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 $as_echo "$CC" >&6; }
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3721 fi
3722
3723
3724 test -n "$CC" && break
3725 done
3726 fi
3727 if test -z "$CC"; then
3728 ac_ct_CC=$CC
3729 for ac_prog in cl.exe
3730 do
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy $ac_prog; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_ac_ct_CC="$ac_prog"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3751 fi
3752 done
3753 done
3754 IFS=$as_save_IFS
3755
3756 fi
3757 fi
3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761 $as_echo "$ac_ct_CC" >&6; }
3762 else
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3765 fi
3766
3767
3768 test -n "$ac_ct_CC" && break
3769 done
3770
3771 if test "x$ac_ct_CC" = x; then
3772 CC=""
3773 else
3774 case $cross_compiling:$ac_tool_warned in
3775 yes:)
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned=yes ;;
3779 esac
3780 CC=$ac_ct_CC
3781 fi
3782 fi
3783
3784 fi
3785
3786
3787 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error "no acceptable C compiler found in \$PATH
3790 See \`config.log' for more details." "$LINENO" 5; }
3791
3792 # Provide some information about the compiler.
3793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3794 set X $ac_compile
3795 ac_compiler=$2
3796 for ac_option in --version -v -V -qversion; do
3797 { { ac_try="$ac_compiler $ac_option >&5"
3798 case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3805 ac_status=$?
3806 if test -s conftest.err; then
3807 sed '10a\
3808 ... rest of stderr output deleted ...
3809 10q' conftest.err >conftest.er1
3810 cat conftest.er1 >&5
3811 rm -f conftest.er1 conftest.err
3812 fi
3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; }
3815 done
3816
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3819
3820 int
3821 main ()
3822 {
3823
3824 ;
3825 return 0;
3826 }
3827 _ACEOF
3828 ac_clean_files_save=$ac_clean_files
3829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3830 # Try to create an executable without -o first, disregard a.out.
3831 # It will help us diagnose broken compilers, and finding out an intuition
3832 # of exeext.
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3834 $as_echo_n "checking for C compiler default output file name... " >&6; }
3835 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3836
3837 # The possible output files:
3838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3839
3840 ac_rmfiles=
3841 for ac_file in $ac_files
3842 do
3843 case $ac_file in
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3846 esac
3847 done
3848 rm -f $ac_rmfiles
3849
3850 if { { ac_try="$ac_link_default"
3851 case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_link_default") 2>&5
3858 ac_status=$?
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }; then :
3861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3863 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3864 # so that the user can short-circuit this test for compilers unknown to
3865 # Autoconf.
3866 for ac_file in $ac_files ''
3867 do
3868 test -f "$ac_file" || continue
3869 case $ac_file in
3870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3871 ;;
3872 [ab].out )
3873 # We found the default executable, but exeext='' is most
3874 # certainly right.
3875 break;;
3876 *.* )
3877 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3878 then :; else
3879 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3880 fi
3881 # We set ac_cv_exeext here because the later test for it is not
3882 # safe: cross compilers may not add the suffix if given an `-o'
3883 # argument, so we may need to know it at that point already.
3884 # Even if this section looks crufty: it has the advantage of
3885 # actually working.
3886 break;;
3887 * )
3888 break;;
3889 esac
3890 done
3891 test "$ac_cv_exeext" = no && ac_cv_exeext=
3892
3893 else
3894 ac_file=''
3895 fi
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3897 $as_echo "$ac_file" >&6; }
3898 if test -z "$ac_file"; then :
3899 $as_echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3901
3902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904 { as_fn_set_status 77
3905 as_fn_error "C compiler cannot create executables
3906 See \`config.log' for more details." "$LINENO" 5; }; }
3907 fi
3908 ac_exeext=$ac_cv_exeext
3909
3910 # Check that the compiler produces executables we can run. If not, either
3911 # the compiler is broken, or we cross compile.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 $as_echo_n "checking whether the C compiler works... " >&6; }
3914 # If not cross compiling, check that we can run a simple program.
3915 if test "$cross_compiling" != yes; then
3916 if { ac_try='./$ac_file'
3917 { { case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3920 esac
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923 (eval "$ac_try") 2>&5
3924 ac_status=$?
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; }; then
3927 cross_compiling=no
3928 else
3929 if test "$cross_compiling" = maybe; then
3930 cross_compiling=yes
3931 else
3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934 as_fn_error "cannot run C compiled programs.
3935 If you meant to cross compile, use \`--host'.
3936 See \`config.log' for more details." "$LINENO" 5; }
3937 fi
3938 fi
3939 fi
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3941 $as_echo "yes" >&6; }
3942
3943 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3944 ac_clean_files=$ac_clean_files_save
3945 # Check that the compiler produces executables we can run. If not, either
3946 # the compiler is broken, or we cross compile.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3948 $as_echo_n "checking whether we are cross compiling... " >&6; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3950 $as_echo "$cross_compiling" >&6; }
3951
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3953 $as_echo_n "checking for suffix of executables... " >&6; }
3954 if { { ac_try="$ac_link"
3955 case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_link") 2>&5
3962 ac_status=$?
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; then :
3965 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3966 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3967 # work properly (i.e., refer to `conftest.exe'), while it won't with
3968 # `rm'.
3969 for ac_file in conftest.exe conftest conftest.*; do
3970 test -f "$ac_file" || continue
3971 case $ac_file in
3972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3973 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3974 break;;
3975 * ) break;;
3976 esac
3977 done
3978 else
3979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3981 as_fn_error "cannot compute suffix of executables: cannot compile and link
3982 See \`config.log' for more details." "$LINENO" 5; }
3983 fi
3984 rm -f conftest$ac_cv_exeext
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3986 $as_echo "$ac_cv_exeext" >&6; }
3987
3988 rm -f conftest.$ac_ext
3989 EXEEXT=$ac_cv_exeext
3990 ac_exeext=$EXEEXT
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3992 $as_echo_n "checking for suffix of object files... " >&6; }
3993 if test "${ac_cv_objext+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998
3999 int
4000 main ()
4001 {
4002
4003 ;
4004 return 0;
4005 }
4006 _ACEOF
4007 rm -f conftest.o conftest.obj
4008 if { { ac_try="$ac_compile"
4009 case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012 esac
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 $as_echo "$ac_try_echo"; } >&5
4015 (eval "$ac_compile") 2>&5
4016 ac_status=$?
4017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018 test $ac_status = 0; }; then :
4019 for ac_file in conftest.o conftest.obj conftest.*; do
4020 test -f "$ac_file" || continue;
4021 case $ac_file in
4022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4023 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4024 break;;
4025 esac
4026 done
4027 else
4028 $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033 as_fn_error "cannot compute suffix of object files: cannot compile
4034 See \`config.log' for more details." "$LINENO" 5; }
4035 fi
4036 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4039 $as_echo "$ac_cv_objext" >&6; }
4040 OBJEXT=$ac_cv_objext
4041 ac_objext=$OBJEXT
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4043 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4044 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049
4050 int
4051 main ()
4052 {
4053 #ifndef __GNUC__
4054 choke me
4055 #endif
4056
4057 ;
4058 return 0;
4059 }
4060 _ACEOF
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062 ac_compiler_gnu=yes
4063 else
4064 ac_compiler_gnu=no
4065 fi
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4068
4069 fi
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4071 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4072 if test $ac_compiler_gnu = yes; then
4073 GCC=yes
4074 else
4075 GCC=
4076 fi
4077 ac_test_CFLAGS=${CFLAGS+set}
4078 ac_save_CFLAGS=$CFLAGS
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4080 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4081 if test "${ac_cv_prog_cc_g+set}" = set; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 ac_save_c_werror_flag=$ac_c_werror_flag
4085 ac_c_werror_flag=yes
4086 ac_cv_prog_cc_g=no
4087 CFLAGS="-g"
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4090
4091 int
4092 main ()
4093 {
4094
4095 ;
4096 return 0;
4097 }
4098 _ACEOF
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100 ac_cv_prog_cc_g=yes
4101 else
4102 CFLAGS=""
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4105
4106 int
4107 main ()
4108 {
4109
4110 ;
4111 return 0;
4112 }
4113 _ACEOF
4114 if ac_fn_c_try_compile "$LINENO"; then :
4115
4116 else
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4118 CFLAGS="-g"
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121
4122 int
4123 main ()
4124 {
4125
4126 ;
4127 return 0;
4128 }
4129 _ACEOF
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131 ac_cv_prog_cc_g=yes
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 fi
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 ac_c_werror_flag=$ac_save_c_werror_flag
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4141 $as_echo "$ac_cv_prog_cc_g" >&6; }
4142 if test "$ac_test_CFLAGS" = set; then
4143 CFLAGS=$ac_save_CFLAGS
4144 elif test $ac_cv_prog_cc_g = yes; then
4145 if test "$GCC" = yes; then
4146 CFLAGS="-g -O2"
4147 else
4148 CFLAGS="-g"
4149 fi
4150 else
4151 if test "$GCC" = yes; then
4152 CFLAGS="-O2"
4153 else
4154 CFLAGS=
4155 fi
4156 fi
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4158 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4159 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 ac_cv_prog_cc_c89=no
4163 ac_save_CC=$CC
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166 #include <stdarg.h>
4167 #include <stdio.h>
4168 #include <sys/types.h>
4169 #include <sys/stat.h>
4170 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4171 struct buf { int x; };
4172 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4173 static char *e (p, i)
4174 char **p;
4175 int i;
4176 {
4177 return p[i];
4178 }
4179 static char *f (char * (*g) (char **, int), char **p, ...)
4180 {
4181 char *s;
4182 va_list v;
4183 va_start (v,p);
4184 s = g (p, va_arg (v,int));
4185 va_end (v);
4186 return s;
4187 }
4188
4189 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4190 function prototypes and stuff, but not '\xHH' hex character constants.
4191 These don't provoke an error unfortunately, instead are silently treated
4192 as 'x'. The following induces an error, until -std is added to get
4193 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4194 array size at least. It's necessary to write '\x00'==0 to get something
4195 that's true only with -std. */
4196 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4197
4198 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4199 inside strings and character constants. */
4200 #define FOO(x) 'x'
4201 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4202
4203 int test (int i, double x);
4204 struct s1 {int (*f) (int a);};
4205 struct s2 {int (*f) (double a);};
4206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4207 int argc;
4208 char **argv;
4209 int
4210 main ()
4211 {
4212 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4213 ;
4214 return 0;
4215 }
4216 _ACEOF
4217 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4218 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4219 do
4220 CC="$ac_save_CC $ac_arg"
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222 ac_cv_prog_cc_c89=$ac_arg
4223 fi
4224 rm -f core conftest.err conftest.$ac_objext
4225 test "x$ac_cv_prog_cc_c89" != "xno" && break
4226 done
4227 rm -f conftest.$ac_ext
4228 CC=$ac_save_CC
4229
4230 fi
4231 # AC_CACHE_VAL
4232 case "x$ac_cv_prog_cc_c89" in
4233 x)
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4235 $as_echo "none needed" >&6; } ;;
4236 xno)
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4238 $as_echo "unsupported" >&6; } ;;
4239 *)
4240 CC="$CC $ac_cv_prog_cc_c89"
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4242 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4243 esac
4244 if test "x$ac_cv_prog_cc_c89" != xno; then :
4245
4246 fi
4247
4248 ac_ext=c
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253
4254 if test "x$CC" != xcc; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4256 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4257 else
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4259 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4260 fi
4261 set dummy $CC; ac_cc=`$as_echo "$2" |
4262 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4263 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4268
4269 int
4270 main ()
4271 {
4272
4273 ;
4274 return 0;
4275 }
4276 _ACEOF
4277 # Make sure it works both with $CC and with simple cc.
4278 # We do the test twice because some compilers refuse to overwrite an
4279 # existing .o file with -o, though they will create one.
4280 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4281 rm -f conftest2.*
4282 if { { case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288 (eval "$ac_try") 2>&5
4289 ac_status=$?
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; } &&
4292 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_try") 2>&5
4299 ac_status=$?
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; };
4302 then
4303 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4304 if test "x$CC" != xcc; then
4305 # Test first that cc exists at all.
4306 if { ac_try='cc -c conftest.$ac_ext >&5'
4307 { { case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4310 esac
4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313 (eval "$ac_try") 2>&5
4314 ac_status=$?
4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316 test $ac_status = 0; }; }; then
4317 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4318 rm -f conftest2.*
4319 if { { case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322 esac
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325 (eval "$ac_try") 2>&5
4326 ac_status=$?
4327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; } &&
4329 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332 esac
4333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 $as_echo "$ac_try_echo"; } >&5
4335 (eval "$ac_try") 2>&5
4336 ac_status=$?
4337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4338 test $ac_status = 0; };
4339 then
4340 # cc works too.
4341 :
4342 else
4343 # cc exists but doesn't like -o.
4344 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4345 fi
4346 fi
4347 fi
4348 else
4349 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4350 fi
4351 rm -f core conftest*
4352
4353 fi
4354 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356 $as_echo "yes" >&6; }
4357 else
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4360
4361 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4362
4363 fi
4364
4365 # expand $ac_aux_dir to an absolute path
4366 am_aux_dir=`cd $ac_aux_dir && pwd`
4367
4368 # FIXME: we rely on the cache variable name because
4369 # there is no other way.
4370 set dummy $CC
4371 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4372 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4373 if test "$am_t" != yes; then
4374 # Losing compiler, so override with the script.
4375 # FIXME: It is wrong to rewrite CC.
4376 # But if we don't then we get into trouble of one sort or another.
4377 # A longer-term fix would be to have automake use am__CC in this case,
4378 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4379 CC="$am_aux_dir/compile $CC"
4380 fi
4381
4382
4383 ac_ext=cpp
4384 ac_cpp='$CXXCPP $CPPFLAGS'
4385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4388 if test -z "$CXX"; then
4389 if test -n "$CCC"; then
4390 CXX=$CCC
4391 else
4392 if test -n "$ac_tool_prefix"; then
4393 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4394 do
4395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if test "${ac_cv_prog_CXX+set}" = set; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 if test -n "$CXX"; then
4403 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4415 fi
4416 done
4417 done
4418 IFS=$as_save_IFS
4419
4420 fi
4421 fi
4422 CXX=$ac_cv_prog_CXX
4423 if test -n "$CXX"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4425 $as_echo "$CXX" >&6; }
4426 else
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4429 fi
4430
4431
4432 test -n "$CXX" && break
4433 done
4434 fi
4435 if test -z "$CXX"; then
4436 ac_ct_CXX=$CXX
4437 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4438 do
4439 # Extract the first word of "$ac_prog", so it can be a program name with args.
4440 set dummy $ac_prog; ac_word=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4444 $as_echo_n "(cached) " >&6
4445 else
4446 if test -n "$ac_ct_CXX"; then
4447 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4451 do
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 ac_cv_prog_ac_ct_CXX="$ac_prog"
4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4459 fi
4460 done
4461 done
4462 IFS=$as_save_IFS
4463
4464 fi
4465 fi
4466 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4467 if test -n "$ac_ct_CXX"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4469 $as_echo "$ac_ct_CXX" >&6; }
4470 else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4473 fi
4474
4475
4476 test -n "$ac_ct_CXX" && break
4477 done
4478
4479 if test "x$ac_ct_CXX" = x; then
4480 CXX="g++"
4481 else
4482 case $cross_compiling:$ac_tool_warned in
4483 yes:)
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4486 ac_tool_warned=yes ;;
4487 esac
4488 CXX=$ac_ct_CXX
4489 fi
4490 fi
4491
4492 fi
4493 fi
4494 # Provide some information about the compiler.
4495 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4496 set X $ac_compile
4497 ac_compiler=$2
4498 for ac_option in --version -v -V -qversion; do
4499 { { ac_try="$ac_compiler $ac_option >&5"
4500 case "(($ac_try" in
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4503 esac
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 $as_echo "$ac_try_echo"; } >&5
4506 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4507 ac_status=$?
4508 if test -s conftest.err; then
4509 sed '10a\
4510 ... rest of stderr output deleted ...
4511 10q' conftest.err >conftest.er1
4512 cat conftest.er1 >&5
4513 rm -f conftest.er1 conftest.err
4514 fi
4515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516 test $ac_status = 0; }
4517 done
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4520 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4521 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526
4527 int
4528 main ()
4529 {
4530 #ifndef __GNUC__
4531 choke me
4532 #endif
4533
4534 ;
4535 return 0;
4536 }
4537 _ACEOF
4538 if ac_fn_cxx_try_compile "$LINENO"; then :
4539 ac_compiler_gnu=yes
4540 else
4541 ac_compiler_gnu=no
4542 fi
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4545
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4548 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4549 if test $ac_compiler_gnu = yes; then
4550 GXX=yes
4551 else
4552 GXX=
4553 fi
4554 ac_test_CXXFLAGS=${CXXFLAGS+set}
4555 ac_save_CXXFLAGS=$CXXFLAGS
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4557 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4558 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4562 ac_cxx_werror_flag=yes
4563 ac_cv_prog_cxx_g=no
4564 CXXFLAGS="-g"
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4567
4568 int
4569 main ()
4570 {
4571
4572 ;
4573 return 0;
4574 }
4575 _ACEOF
4576 if ac_fn_cxx_try_compile "$LINENO"; then :
4577 ac_cv_prog_cxx_g=yes
4578 else
4579 CXXFLAGS=""
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4582
4583 int
4584 main ()
4585 {
4586
4587 ;
4588 return 0;
4589 }
4590 _ACEOF
4591 if ac_fn_cxx_try_compile "$LINENO"; then :
4592
4593 else
4594 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4595 CXXFLAGS="-g"
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598
4599 int
4600 main ()
4601 {
4602
4603 ;
4604 return 0;
4605 }
4606 _ACEOF
4607 if ac_fn_cxx_try_compile "$LINENO"; then :
4608 ac_cv_prog_cxx_g=yes
4609 fi
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 fi
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4618 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4619 if test "$ac_test_CXXFLAGS" = set; then
4620 CXXFLAGS=$ac_save_CXXFLAGS
4621 elif test $ac_cv_prog_cxx_g = yes; then
4622 if test "$GXX" = yes; then
4623 CXXFLAGS="-g -O2"
4624 else
4625 CXXFLAGS="-g"
4626 fi
4627 else
4628 if test "$GXX" = yes; then
4629 CXXFLAGS="-O2"
4630 else
4631 CXXFLAGS=
4632 fi
4633 fi
4634 ac_ext=c
4635 ac_cpp='$CPP $CPPFLAGS'
4636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4639
4640
4641
4642
4643 if test -n "$ac_tool_prefix"; then
4644 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4645 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 if test -n "$GNATBIND"; then
4652 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4664 fi
4665 done
4666 done
4667 IFS=$as_save_IFS
4668
4669 fi
4670 fi
4671 GNATBIND=$ac_cv_prog_GNATBIND
4672 if test -n "$GNATBIND"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4674 $as_echo "$GNATBIND" >&6; }
4675 else
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4678 fi
4679
4680
4681 fi
4682 if test -z "$ac_cv_prog_GNATBIND"; then
4683 ac_ct_GNATBIND=$GNATBIND
4684 # Extract the first word of "gnatbind", so it can be a program name with args.
4685 set dummy gnatbind; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 if test -n "$ac_ct_GNATBIND"; then
4692 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4704 fi
4705 done
4706 done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4712 if test -n "$ac_ct_GNATBIND"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4714 $as_echo "$ac_ct_GNATBIND" >&6; }
4715 else
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720 if test "x$ac_ct_GNATBIND" = x; then
4721 GNATBIND="no"
4722 else
4723 case $cross_compiling:$ac_tool_warned in
4724 yes:)
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727 ac_tool_warned=yes ;;
4728 esac
4729 GNATBIND=$ac_ct_GNATBIND
4730 fi
4731 else
4732 GNATBIND="$ac_cv_prog_GNATBIND"
4733 fi
4734
4735 if test -n "$ac_tool_prefix"; then
4736 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4737 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test -n "$GNATMAKE"; then
4744 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4756 fi
4757 done
4758 done
4759 IFS=$as_save_IFS
4760
4761 fi
4762 fi
4763 GNATMAKE=$ac_cv_prog_GNATMAKE
4764 if test -n "$GNATMAKE"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4766 $as_echo "$GNATMAKE" >&6; }
4767 else
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4770 fi
4771
4772
4773 fi
4774 if test -z "$ac_cv_prog_GNATMAKE"; then
4775 ac_ct_GNATMAKE=$GNATMAKE
4776 # Extract the first word of "gnatmake", so it can be a program name with args.
4777 set dummy gnatmake; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 if test -n "$ac_ct_GNATMAKE"; then
4784 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4796 fi
4797 done
4798 done
4799 IFS=$as_save_IFS
4800
4801 fi
4802 fi
4803 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4804 if test -n "$ac_ct_GNATMAKE"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4806 $as_echo "$ac_ct_GNATMAKE" >&6; }
4807 else
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4810 fi
4811
4812 if test "x$ac_ct_GNATMAKE" = x; then
4813 GNATMAKE="no"
4814 else
4815 case $cross_compiling:$ac_tool_warned in
4816 yes:)
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4819 ac_tool_warned=yes ;;
4820 esac
4821 GNATMAKE=$ac_ct_GNATMAKE
4822 fi
4823 else
4824 GNATMAKE="$ac_cv_prog_GNATMAKE"
4825 fi
4826
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4828 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4829 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 cat >conftest.adb <<EOF
4833 procedure conftest is begin null; end conftest;
4834 EOF
4835 acx_cv_cc_gcc_supports_ada=no
4836 # There is a bug in old released versions of GCC which causes the
4837 # driver to exit successfully when the appropriate language module
4838 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4839 # Therefore we must check for the error message as well as an
4840 # unsuccessful exit.
4841 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4842 # given a .adb file, but produce no object file. So we must check
4843 # if an object file was really produced to guard against this.
4844 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4845 if test x"$errors" = x && test -f conftest.$ac_objext; then
4846 acx_cv_cc_gcc_supports_ada=yes
4847 fi
4848 rm -f conftest.*
4849 fi
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4851 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4852
4853 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4854 have_gnat=yes
4855 else
4856 have_gnat=no
4857 fi
4858
4859
4860 # autoconf is lame and doesn't give us any substitution variable for this.
4861 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4862 NO_MINUS_C_MINUS_O=yes
4863 else
4864 OUTPUT_OPTION='-o $@'
4865 fi
4866
4867
4868
4869 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4870 # optimizations to be activated explicitly by the toplevel.
4871 case "$CC" in
4872 */prev-gcc/xgcc*) ;;
4873 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4874 esac
4875
4876
4877 # Determine PICFLAG for target gnatlib.
4878
4879
4880
4881
4882 case "${target}" in
4883 # PIC is the default on some targets or must not be used.
4884 *-*-darwin*)
4885 # PIC is the default on this platform
4886 # Common symbols not allowed in MH_DYLIB files
4887 PICFLAG_FOR_TARGET=-fno-common
4888 ;;
4889 alpha*-dec-osf5*)
4890 # PIC is the default.
4891 ;;
4892 hppa*64*-*-hpux*)
4893 # PIC is the default for 64-bit PA HP-UX.
4894 ;;
4895 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4896 ;;
4897 i[34567]86-*-interix3*)
4898 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4899 # Instead, we relocate shared libraries at runtime.
4900 ;;
4901 i[34567]86-*-nto-qnx*)
4902 # QNX uses GNU C++, but need to define -shared option too, otherwise
4903 # it will coredump.
4904 PICFLAG_FOR_TARGET='-fPIC -shared'
4905 ;;
4906 i[34567]86-pc-msdosdjgpp*)
4907 # DJGPP does not support shared libraries at all.
4908 ;;
4909 ia64*-*-hpux*)
4910 # On IA64 HP-UX, PIC is the default but the pic flag
4911 # sets the default TLS model and affects inlining.
4912 PICFLAG_FOR_TARGET=-fPIC
4913 ;;
4914 mips-sgi-irix6*)
4915 # PIC is the default.
4916 ;;
4917 rs6000-ibm-aix* | powerpc-ibm-aix*)
4918 # All AIX code is PIC.
4919 ;;
4920
4921 # Some targets support both -fPIC and -fpic, but prefer the latter.
4922 # FIXME: Why?
4923 i[34567]86-*-* | x86_64-*-*)
4924 PICFLAG_FOR_TARGET=-fpic
4925 ;;
4926 m68k-*-*)
4927 PICFLAG_FOR_TARGET=-fpic
4928 ;;
4929 s390*-*-*)
4930 PICFLAG_FOR_TARGET=-fpic
4931 ;;
4932 # FIXME: Override -fPIC default in libgcc only?
4933 sh-*-linux* | sh[2346lbe]*-*-linux*)
4934 PICFLAG_FOR_TARGET=-fpic
4935 ;;
4936 # FIXME: Simplify to sh*-*-netbsd*?
4937 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4938 sh64-*-netbsd* | sh64l*-*-netbsd*)
4939 PICFLAG_FOR_TARGET=-fpic
4940 ;;
4941 # Default to -fPIC unless specified otherwise.
4942 *)
4943 PICFLAG_FOR_TARGET=-fPIC
4944 ;;
4945 esac
4946
4947 # If the user explicitly uses -fpic/-fPIC, keep that.
4948 case "${CFLAGS_FOR_TARGET}" in
4949 *-fpic*)
4950 PICFLAG_FOR_TARGET=-fpic
4951 ;;
4952 *-fPIC*)
4953 PICFLAG_FOR_TARGET=-fPIC
4954 ;;
4955 esac
4956
4957
4958
4959 # -------------------------
4960 # Check C compiler features
4961 # -------------------------
4962
4963
4964 ac_ext=c
4965 ac_cpp='$CPP $CPPFLAGS'
4966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4970 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4971 # On Suns, sometimes $CPP names a directory.
4972 if test -n "$CPP" && test -d "$CPP"; then
4973 CPP=
4974 fi
4975 if test -z "$CPP"; then
4976 if test "${ac_cv_prog_CPP+set}" = set; then :
4977 $as_echo_n "(cached) " >&6
4978 else
4979 # Double quotes because CPP needs to be expanded
4980 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4981 do
4982 ac_preproc_ok=false
4983 for ac_c_preproc_warn_flag in '' yes
4984 do
4985 # Use a header file that comes with gcc, so configuring glibc
4986 # with a fresh cross-compiler works.
4987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4988 # <limits.h> exists even on freestanding compilers.
4989 # On the NeXT, cc -E runs the code through the compiler's parser,
4990 # not just through cpp. "Syntax error" is here to catch this case.
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993 #ifdef __STDC__
4994 # include <limits.h>
4995 #else
4996 # include <assert.h>
4997 #endif
4998 Syntax error
4999 _ACEOF
5000 if ac_fn_c_try_cpp "$LINENO"; then :
5001
5002 else
5003 # Broken: fails on valid input.
5004 continue
5005 fi
5006 rm -f conftest.err conftest.$ac_ext
5007
5008 # OK, works on sane cases. Now check whether nonexistent headers
5009 # can be detected and how.
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5012 #include <ac_nonexistent.h>
5013 _ACEOF
5014 if ac_fn_c_try_cpp "$LINENO"; then :
5015 # Broken: success on invalid input.
5016 continue
5017 else
5018 # Passes both tests.
5019 ac_preproc_ok=:
5020 break
5021 fi
5022 rm -f conftest.err conftest.$ac_ext
5023
5024 done
5025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5026 rm -f conftest.err conftest.$ac_ext
5027 if $ac_preproc_ok; then :
5028 break
5029 fi
5030
5031 done
5032 ac_cv_prog_CPP=$CPP
5033
5034 fi
5035 CPP=$ac_cv_prog_CPP
5036 else
5037 ac_cv_prog_CPP=$CPP
5038 fi
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5040 $as_echo "$CPP" >&6; }
5041 ac_preproc_ok=false
5042 for ac_c_preproc_warn_flag in '' yes
5043 do
5044 # Use a header file that comes with gcc, so configuring glibc
5045 # with a fresh cross-compiler works.
5046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5047 # <limits.h> exists even on freestanding compilers.
5048 # On the NeXT, cc -E runs the code through the compiler's parser,
5049 # not just through cpp. "Syntax error" is here to catch this case.
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5052 #ifdef __STDC__
5053 # include <limits.h>
5054 #else
5055 # include <assert.h>
5056 #endif
5057 Syntax error
5058 _ACEOF
5059 if ac_fn_c_try_cpp "$LINENO"; then :
5060
5061 else
5062 # Broken: fails on valid input.
5063 continue
5064 fi
5065 rm -f conftest.err conftest.$ac_ext
5066
5067 # OK, works on sane cases. Now check whether nonexistent headers
5068 # can be detected and how.
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5071 #include <ac_nonexistent.h>
5072 _ACEOF
5073 if ac_fn_c_try_cpp "$LINENO"; then :
5074 # Broken: success on invalid input.
5075 continue
5076 else
5077 # Passes both tests.
5078 ac_preproc_ok=:
5079 break
5080 fi
5081 rm -f conftest.err conftest.$ac_ext
5082
5083 done
5084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5085 rm -f conftest.err conftest.$ac_ext
5086 if $ac_preproc_ok; then :
5087
5088 else
5089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5091 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5092 See \`config.log' for more details." "$LINENO" 5; }
5093 fi
5094
5095 ac_ext=c
5096 ac_cpp='$CPP $CPPFLAGS'
5097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5100
5101
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5103 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5104 if test "${ac_cv_path_GREP+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 if test -z "$GREP"; then
5108 ac_path_GREP_found=false
5109 # Loop through the user's path and test for each of PROGNAME-LIST
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5112 do
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_prog in grep ggrep; do
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5118 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5119 # Check for GNU ac_path_GREP and select it if it is found.
5120 # Check for GNU $ac_path_GREP
5121 case `"$ac_path_GREP" --version 2>&1` in
5122 *GNU*)
5123 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5124 *)
5125 ac_count=0
5126 $as_echo_n 0123456789 >"conftest.in"
5127 while :
5128 do
5129 cat "conftest.in" "conftest.in" >"conftest.tmp"
5130 mv "conftest.tmp" "conftest.in"
5131 cp "conftest.in" "conftest.nl"
5132 $as_echo 'GREP' >> "conftest.nl"
5133 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5135 as_fn_arith $ac_count + 1 && ac_count=$as_val
5136 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5137 # Best one so far, save it but keep looking for a better one
5138 ac_cv_path_GREP="$ac_path_GREP"
5139 ac_path_GREP_max=$ac_count
5140 fi
5141 # 10*(2^10) chars as input seems more than enough
5142 test $ac_count -gt 10 && break
5143 done
5144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5145 esac
5146
5147 $ac_path_GREP_found && break 3
5148 done
5149 done
5150 done
5151 IFS=$as_save_IFS
5152 if test -z "$ac_cv_path_GREP"; then
5153 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5154 fi
5155 else
5156 ac_cv_path_GREP=$GREP
5157 fi
5158
5159 fi
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5161 $as_echo "$ac_cv_path_GREP" >&6; }
5162 GREP="$ac_cv_path_GREP"
5163
5164
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5166 $as_echo_n "checking for egrep... " >&6; }
5167 if test "${ac_cv_path_EGREP+set}" = set; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5171 then ac_cv_path_EGREP="$GREP -E"
5172 else
5173 if test -z "$EGREP"; then
5174 ac_path_EGREP_found=false
5175 # Loop through the user's path and test for each of PROGNAME-LIST
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5178 do
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_prog in egrep; do
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5184 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5185 # Check for GNU ac_path_EGREP and select it if it is found.
5186 # Check for GNU $ac_path_EGREP
5187 case `"$ac_path_EGREP" --version 2>&1` in
5188 *GNU*)
5189 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5190 *)
5191 ac_count=0
5192 $as_echo_n 0123456789 >"conftest.in"
5193 while :
5194 do
5195 cat "conftest.in" "conftest.in" >"conftest.tmp"
5196 mv "conftest.tmp" "conftest.in"
5197 cp "conftest.in" "conftest.nl"
5198 $as_echo 'EGREP' >> "conftest.nl"
5199 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5201 as_fn_arith $ac_count + 1 && ac_count=$as_val
5202 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5203 # Best one so far, save it but keep looking for a better one
5204 ac_cv_path_EGREP="$ac_path_EGREP"
5205 ac_path_EGREP_max=$ac_count
5206 fi
5207 # 10*(2^10) chars as input seems more than enough
5208 test $ac_count -gt 10 && break
5209 done
5210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5211 esac
5212
5213 $ac_path_EGREP_found && break 3
5214 done
5215 done
5216 done
5217 IFS=$as_save_IFS
5218 if test -z "$ac_cv_path_EGREP"; then
5219 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5220 fi
5221 else
5222 ac_cv_path_EGREP=$EGREP
5223 fi
5224
5225 fi
5226 fi
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5228 $as_echo "$ac_cv_path_EGREP" >&6; }
5229 EGREP="$ac_cv_path_EGREP"
5230
5231
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5233 $as_echo_n "checking for ANSI C header files... " >&6; }
5234 if test "${ac_cv_header_stdc+set}" = set; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239 #include <stdlib.h>
5240 #include <stdarg.h>
5241 #include <string.h>
5242 #include <float.h>
5243
5244 int
5245 main ()
5246 {
5247
5248 ;
5249 return 0;
5250 }
5251 _ACEOF
5252 if ac_fn_c_try_compile "$LINENO"; then :
5253 ac_cv_header_stdc=yes
5254 else
5255 ac_cv_header_stdc=no
5256 fi
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258
5259 if test $ac_cv_header_stdc = yes; then
5260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5263 #include <string.h>
5264
5265 _ACEOF
5266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5267 $EGREP "memchr" >/dev/null 2>&1; then :
5268
5269 else
5270 ac_cv_header_stdc=no
5271 fi
5272 rm -f conftest*
5273
5274 fi
5275
5276 if test $ac_cv_header_stdc = yes; then
5277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5280 #include <stdlib.h>
5281
5282 _ACEOF
5283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5284 $EGREP "free" >/dev/null 2>&1; then :
5285
5286 else
5287 ac_cv_header_stdc=no
5288 fi
5289 rm -f conftest*
5290
5291 fi
5292
5293 if test $ac_cv_header_stdc = yes; then
5294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5295 if test "$cross_compiling" = yes; then :
5296 :
5297 else
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5300 #include <ctype.h>
5301 #include <stdlib.h>
5302 #if ((' ' & 0x0FF) == 0x020)
5303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5305 #else
5306 # define ISLOWER(c) \
5307 (('a' <= (c) && (c) <= 'i') \
5308 || ('j' <= (c) && (c) <= 'r') \
5309 || ('s' <= (c) && (c) <= 'z'))
5310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5311 #endif
5312
5313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5314 int
5315 main ()
5316 {
5317 int i;
5318 for (i = 0; i < 256; i++)
5319 if (XOR (islower (i), ISLOWER (i))
5320 || toupper (i) != TOUPPER (i))
5321 return 2;
5322 return 0;
5323 }
5324 _ACEOF
5325 if ac_fn_c_try_run "$LINENO"; then :
5326
5327 else
5328 ac_cv_header_stdc=no
5329 fi
5330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5331 conftest.$ac_objext conftest.beam conftest.$ac_ext
5332 fi
5333
5334 fi
5335 fi
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5337 $as_echo "$ac_cv_header_stdc" >&6; }
5338 if test $ac_cv_header_stdc = yes; then
5339
5340 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5341
5342 fi
5343
5344 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5345 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5346 inttypes.h stdint.h unistd.h
5347 do :
5348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5349 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5350 "
5351 eval as_val=\$$as_ac_Header
5352 if test "x$as_val" = x""yes; then :
5353 cat >>confdefs.h <<_ACEOF
5354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5355 _ACEOF
5356
5357 fi
5358
5359 done
5360
5361
5362
5363 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5364 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5365 MINIX=yes
5366 else
5367 MINIX=
5368 fi
5369
5370
5371 if test "$MINIX" = yes; then
5372
5373 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5374
5375
5376 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5377
5378
5379 $as_echo "#define _MINIX 1" >>confdefs.h
5380
5381 fi
5382
5383
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5385 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5386 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5391
5392 # define __EXTENSIONS__ 1
5393 $ac_includes_default
5394 int
5395 main ()
5396 {
5397
5398 ;
5399 return 0;
5400 }
5401 _ACEOF
5402 if ac_fn_c_try_compile "$LINENO"; then :
5403 ac_cv_safe_to_define___extensions__=yes
5404 else
5405 ac_cv_safe_to_define___extensions__=no
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 fi
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5410 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5411 test $ac_cv_safe_to_define___extensions__ = yes &&
5412 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5413
5414 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5415
5416 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5417
5418 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5419
5420 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5421
5422
5423 ac_ext=c
5424 ac_cpp='$CPP $CPPFLAGS'
5425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5429 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5430 # On Suns, sometimes $CPP names a directory.
5431 if test -n "$CPP" && test -d "$CPP"; then
5432 CPP=
5433 fi
5434 if test -z "$CPP"; then
5435 if test "${ac_cv_prog_CPP+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 # Double quotes because CPP needs to be expanded
5439 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5440 do
5441 ac_preproc_ok=false
5442 for ac_c_preproc_warn_flag in '' yes
5443 do
5444 # Use a header file that comes with gcc, so configuring glibc
5445 # with a fresh cross-compiler works.
5446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5447 # <limits.h> exists even on freestanding compilers.
5448 # On the NeXT, cc -E runs the code through the compiler's parser,
5449 # not just through cpp. "Syntax error" is here to catch this case.
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 #ifdef __STDC__
5453 # include <limits.h>
5454 #else
5455 # include <assert.h>
5456 #endif
5457 Syntax error
5458 _ACEOF
5459 if ac_fn_c_try_cpp "$LINENO"; then :
5460
5461 else
5462 # Broken: fails on valid input.
5463 continue
5464 fi
5465 rm -f conftest.err conftest.$ac_ext
5466
5467 # OK, works on sane cases. Now check whether nonexistent headers
5468 # can be detected and how.
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 #include <ac_nonexistent.h>
5472 _ACEOF
5473 if ac_fn_c_try_cpp "$LINENO"; then :
5474 # Broken: success on invalid input.
5475 continue
5476 else
5477 # Passes both tests.
5478 ac_preproc_ok=:
5479 break
5480 fi
5481 rm -f conftest.err conftest.$ac_ext
5482
5483 done
5484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5485 rm -f conftest.err conftest.$ac_ext
5486 if $ac_preproc_ok; then :
5487 break
5488 fi
5489
5490 done
5491 ac_cv_prog_CPP=$CPP
5492
5493 fi
5494 CPP=$ac_cv_prog_CPP
5495 else
5496 ac_cv_prog_CPP=$CPP
5497 fi
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5499 $as_echo "$CPP" >&6; }
5500 ac_preproc_ok=false
5501 for ac_c_preproc_warn_flag in '' yes
5502 do
5503 # Use a header file that comes with gcc, so configuring glibc
5504 # with a fresh cross-compiler works.
5505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5506 # <limits.h> exists even on freestanding compilers.
5507 # On the NeXT, cc -E runs the code through the compiler's parser,
5508 # not just through cpp. "Syntax error" is here to catch this case.
5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5511 #ifdef __STDC__
5512 # include <limits.h>
5513 #else
5514 # include <assert.h>
5515 #endif
5516 Syntax error
5517 _ACEOF
5518 if ac_fn_c_try_cpp "$LINENO"; then :
5519
5520 else
5521 # Broken: fails on valid input.
5522 continue
5523 fi
5524 rm -f conftest.err conftest.$ac_ext
5525
5526 # OK, works on sane cases. Now check whether nonexistent headers
5527 # can be detected and how.
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 #include <ac_nonexistent.h>
5531 _ACEOF
5532 if ac_fn_c_try_cpp "$LINENO"; then :
5533 # Broken: success on invalid input.
5534 continue
5535 else
5536 # Passes both tests.
5537 ac_preproc_ok=:
5538 break
5539 fi
5540 rm -f conftest.err conftest.$ac_ext
5541
5542 done
5543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5544 rm -f conftest.err conftest.$ac_ext
5545 if $ac_preproc_ok; then :
5546
5547 else
5548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5550 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5551 See \`config.log' for more details." "$LINENO" 5; }
5552 fi
5553
5554 ac_ext=c
5555 ac_cpp='$CPP $CPPFLAGS'
5556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5559
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5561 $as_echo_n "checking for inline... " >&6; }
5562 if test "${ac_cv_c_inline+set}" = set; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 ac_cv_c_inline=no
5566 for ac_kw in inline __inline__ __inline; do
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 #ifndef __cplusplus
5570 typedef int foo_t;
5571 static $ac_kw foo_t static_foo () {return 0; }
5572 $ac_kw foo_t foo () {return 0; }
5573 #endif
5574
5575 _ACEOF
5576 if ac_fn_c_try_compile "$LINENO"; then :
5577 ac_cv_c_inline=$ac_kw
5578 fi
5579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580 test "$ac_cv_c_inline" != no && break
5581 done
5582
5583 fi
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5585 $as_echo "$ac_cv_c_inline" >&6; }
5586
5587 case $ac_cv_c_inline in
5588 inline | yes) ;;
5589 *)
5590 case $ac_cv_c_inline in
5591 no) ac_val=;;
5592 *) ac_val=$ac_cv_c_inline;;
5593 esac
5594 cat >>confdefs.h <<_ACEOF
5595 #ifndef __cplusplus
5596 #define inline $ac_val
5597 #endif
5598 _ACEOF
5599 ;;
5600 esac
5601
5602
5603 # Check whether --enable-largefile was given.
5604 if test "${enable_largefile+set}" = set; then :
5605 enableval=$enable_largefile;
5606 fi
5607
5608 if test "$enable_largefile" != no; then
5609
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5611 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5612 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 ac_cv_sys_largefile_CC=no
5616 if test "$GCC" != yes; then
5617 ac_save_CC=$CC
5618 while :; do
5619 # IRIX 6.2 and later do not support large files by default,
5620 # so use the C compiler's -n32 option if that helps.
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623 #include <sys/types.h>
5624 /* Check that off_t can represent 2**63 - 1 correctly.
5625 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5626 since some C++ compilers masquerading as C compilers
5627 incorrectly reject 9223372036854775807. */
5628 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5629 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5630 && LARGE_OFF_T % 2147483647 == 1)
5631 ? 1 : -1];
5632 int
5633 main ()
5634 {
5635
5636 ;
5637 return 0;
5638 }
5639 _ACEOF
5640 if ac_fn_c_try_compile "$LINENO"; then :
5641 break
5642 fi
5643 rm -f core conftest.err conftest.$ac_objext
5644 CC="$CC -n32"
5645 if ac_fn_c_try_compile "$LINENO"; then :
5646 ac_cv_sys_largefile_CC=' -n32'; break
5647 fi
5648 rm -f core conftest.err conftest.$ac_objext
5649 break
5650 done
5651 CC=$ac_save_CC
5652 rm -f conftest.$ac_ext
5653 fi
5654 fi
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5656 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5657 if test "$ac_cv_sys_largefile_CC" != no; then
5658 CC=$CC$ac_cv_sys_largefile_CC
5659 fi
5660
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5662 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5663 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 while :; do
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669 #include <sys/types.h>
5670 /* Check that off_t can represent 2**63 - 1 correctly.
5671 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5672 since some C++ compilers masquerading as C compilers
5673 incorrectly reject 9223372036854775807. */
5674 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5675 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5676 && LARGE_OFF_T % 2147483647 == 1)
5677 ? 1 : -1];
5678 int
5679 main ()
5680 {
5681
5682 ;
5683 return 0;
5684 }
5685 _ACEOF
5686 if ac_fn_c_try_compile "$LINENO"; then :
5687 ac_cv_sys_file_offset_bits=no; break
5688 fi
5689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5692 #define _FILE_OFFSET_BITS 64
5693 #include <sys/types.h>
5694 /* Check that off_t can represent 2**63 - 1 correctly.
5695 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5696 since some C++ compilers masquerading as C compilers
5697 incorrectly reject 9223372036854775807. */
5698 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5699 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5700 && LARGE_OFF_T % 2147483647 == 1)
5701 ? 1 : -1];
5702 int
5703 main ()
5704 {
5705
5706 ;
5707 return 0;
5708 }
5709 _ACEOF
5710 if ac_fn_c_try_compile "$LINENO"; then :
5711 ac_cv_sys_file_offset_bits=64; break
5712 fi
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 ac_cv_sys_file_offset_bits=unknown
5715 break
5716 done
5717 fi
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5719 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5720 case $ac_cv_sys_file_offset_bits in #(
5721 no | unknown) ;;
5722 *)
5723 cat >>confdefs.h <<_ACEOF
5724 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5725 _ACEOF
5726 ;;
5727 esac
5728 rm -rf conftest*
5729 if test $ac_cv_sys_file_offset_bits = unknown; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5731 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5732 if test "${ac_cv_sys_large_files+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 while :; do
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 #include <sys/types.h>
5739 /* Check that off_t can represent 2**63 - 1 correctly.
5740 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5741 since some C++ compilers masquerading as C compilers
5742 incorrectly reject 9223372036854775807. */
5743 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5744 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5745 && LARGE_OFF_T % 2147483647 == 1)
5746 ? 1 : -1];
5747 int
5748 main ()
5749 {
5750
5751 ;
5752 return 0;
5753 }
5754 _ACEOF
5755 if ac_fn_c_try_compile "$LINENO"; then :
5756 ac_cv_sys_large_files=no; break
5757 fi
5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 #define _LARGE_FILES 1
5762 #include <sys/types.h>
5763 /* Check that off_t can represent 2**63 - 1 correctly.
5764 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5765 since some C++ compilers masquerading as C compilers
5766 incorrectly reject 9223372036854775807. */
5767 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5768 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5769 && LARGE_OFF_T % 2147483647 == 1)
5770 ? 1 : -1];
5771 int
5772 main ()
5773 {
5774
5775 ;
5776 return 0;
5777 }
5778 _ACEOF
5779 if ac_fn_c_try_compile "$LINENO"; then :
5780 ac_cv_sys_large_files=1; break
5781 fi
5782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5783 ac_cv_sys_large_files=unknown
5784 break
5785 done
5786 fi
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5788 $as_echo "$ac_cv_sys_large_files" >&6; }
5789 case $ac_cv_sys_large_files in #(
5790 no | unknown) ;;
5791 *)
5792 cat >>confdefs.h <<_ACEOF
5793 #define _LARGE_FILES $ac_cv_sys_large_files
5794 _ACEOF
5795 ;;
5796 esac
5797 rm -rf conftest*
5798 fi
5799 fi
5800
5801
5802 # sizeof(char) is 1 by definition.
5803 # The cast to long int works around a bug in the HP C Compiler
5804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5806 # This bug is HP SR number 8606223364.
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5808 $as_echo_n "checking size of void *... " >&6; }
5809 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5813
5814 else
5815 if test "$ac_cv_type_void_p" = yes; then
5816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5818 { as_fn_set_status 77
5819 as_fn_error "cannot compute sizeof (void *)
5820 See \`config.log' for more details." "$LINENO" 5; }; }
5821 else
5822 ac_cv_sizeof_void_p=0
5823 fi
5824 fi
5825
5826 fi
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5828 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5829
5830
5831
5832 cat >>confdefs.h <<_ACEOF
5833 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5834 _ACEOF
5835
5836
5837 # The cast to long int works around a bug in the HP C Compiler
5838 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5839 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5840 # This bug is HP SR number 8606223364.
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5842 $as_echo_n "checking size of short... " >&6; }
5843 if test "${ac_cv_sizeof_short+set}" = set; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5847
5848 else
5849 if test "$ac_cv_type_short" = yes; then
5850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5852 { as_fn_set_status 77
5853 as_fn_error "cannot compute sizeof (short)
5854 See \`config.log' for more details." "$LINENO" 5; }; }
5855 else
5856 ac_cv_sizeof_short=0
5857 fi
5858 fi
5859
5860 fi
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5862 $as_echo "$ac_cv_sizeof_short" >&6; }
5863
5864
5865
5866 cat >>confdefs.h <<_ACEOF
5867 #define SIZEOF_SHORT $ac_cv_sizeof_short
5868 _ACEOF
5869
5870
5871 # The cast to long int works around a bug in the HP C Compiler
5872 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5873 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5874 # This bug is HP SR number 8606223364.
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5876 $as_echo_n "checking size of int... " >&6; }
5877 if test "${ac_cv_sizeof_int+set}" = set; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5881
5882 else
5883 if test "$ac_cv_type_int" = yes; then
5884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5886 { as_fn_set_status 77
5887 as_fn_error "cannot compute sizeof (int)
5888 See \`config.log' for more details." "$LINENO" 5; }; }
5889 else
5890 ac_cv_sizeof_int=0
5891 fi
5892 fi
5893
5894 fi
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5896 $as_echo "$ac_cv_sizeof_int" >&6; }
5897
5898
5899
5900 cat >>confdefs.h <<_ACEOF
5901 #define SIZEOF_INT $ac_cv_sizeof_int
5902 _ACEOF
5903
5904
5905 # The cast to long int works around a bug in the HP C Compiler
5906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5908 # This bug is HP SR number 8606223364.
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5910 $as_echo_n "checking size of long... " >&6; }
5911 if test "${ac_cv_sizeof_long+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5915
5916 else
5917 if test "$ac_cv_type_long" = yes; then
5918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5920 { as_fn_set_status 77
5921 as_fn_error "cannot compute sizeof (long)
5922 See \`config.log' for more details." "$LINENO" 5; }; }
5923 else
5924 ac_cv_sizeof_long=0
5925 fi
5926 fi
5927
5928 fi
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5930 $as_echo "$ac_cv_sizeof_long" >&6; }
5931
5932
5933
5934 cat >>confdefs.h <<_ACEOF
5935 #define SIZEOF_LONG $ac_cv_sizeof_long
5936 _ACEOF
5937
5938
5939 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5940 if test "x$ac_cv_type_long_long" = x""yes; then :
5941
5942 cat >>confdefs.h <<_ACEOF
5943 #define HAVE_LONG_LONG 1
5944 _ACEOF
5945
5946 # The cast to long int works around a bug in the HP C Compiler
5947 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5948 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5949 # This bug is HP SR number 8606223364.
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5951 $as_echo_n "checking size of long long... " >&6; }
5952 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5956
5957 else
5958 if test "$ac_cv_type_long_long" = yes; then
5959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5961 { as_fn_set_status 77
5962 as_fn_error "cannot compute sizeof (long long)
5963 See \`config.log' for more details." "$LINENO" 5; }; }
5964 else
5965 ac_cv_sizeof_long_long=0
5966 fi
5967 fi
5968
5969 fi
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5971 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5972
5973
5974
5975 cat >>confdefs.h <<_ACEOF
5976 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5977 _ACEOF
5978
5979
5980 fi
5981
5982 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5983 if test "x$ac_cv_type___int64" = x""yes; then :
5984
5985 cat >>confdefs.h <<_ACEOF
5986 #define HAVE___INT64 1
5987 _ACEOF
5988
5989 # The cast to long int works around a bug in the HP C Compiler
5990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5992 # This bug is HP SR number 8606223364.
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5994 $as_echo_n "checking size of __int64... " >&6; }
5995 if test "${ac_cv_sizeof___int64+set}" = set; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5999
6000 else
6001 if test "$ac_cv_type___int64" = yes; then
6002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6004 { as_fn_set_status 77
6005 as_fn_error "cannot compute sizeof (__int64)
6006 See \`config.log' for more details." "$LINENO" 5; }; }
6007 else
6008 ac_cv_sizeof___int64=0
6009 fi
6010 fi
6011
6012 fi
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6014 $as_echo "$ac_cv_sizeof___int64" >&6; }
6015
6016
6017
6018 cat >>confdefs.h <<_ACEOF
6019 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6020 _ACEOF
6021
6022
6023 fi
6024
6025 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6026 case $ac_cv_c_int8_t in #(
6027 no|yes) ;; #(
6028 *)
6029
6030 cat >>confdefs.h <<_ACEOF
6031 #define int8_t $ac_cv_c_int8_t
6032 _ACEOF
6033 ;;
6034 esac
6035
6036 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6037 case $ac_cv_c_int16_t in #(
6038 no|yes) ;; #(
6039 *)
6040
6041 cat >>confdefs.h <<_ACEOF
6042 #define int16_t $ac_cv_c_int16_t
6043 _ACEOF
6044 ;;
6045 esac
6046
6047 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6048 case $ac_cv_c_int32_t in #(
6049 no|yes) ;; #(
6050 *)
6051
6052 cat >>confdefs.h <<_ACEOF
6053 #define int32_t $ac_cv_c_int32_t
6054 _ACEOF
6055 ;;
6056 esac
6057
6058 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6059 case $ac_cv_c_int64_t in #(
6060 no|yes) ;; #(
6061 *)
6062
6063 cat >>confdefs.h <<_ACEOF
6064 #define int64_t $ac_cv_c_int64_t
6065 _ACEOF
6066 ;;
6067 esac
6068
6069
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6071 $as_echo_n "checking for long long int... " >&6; }
6072 if test "${ac_cv_type_long_long_int+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6077
6078 /* For now, do not test the preprocessor; as of 2007 there are too many
6079 implementations with broken preprocessors. Perhaps this can
6080 be revisited in 2012. In the meantime, code should not expect
6081 #if to work with literals wider than 32 bits. */
6082 /* Test literals. */
6083 long long int ll = 9223372036854775807ll;
6084 long long int nll = -9223372036854775807LL;
6085 unsigned long long int ull = 18446744073709551615ULL;
6086 /* Test constant expressions. */
6087 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6088 ? 1 : -1)];
6089 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6090 ? 1 : -1)];
6091 int i = 63;
6092 int
6093 main ()
6094 {
6095 /* Test availability of runtime routines for shift and division. */
6096 long long int llmax = 9223372036854775807ll;
6097 unsigned long long int ullmax = 18446744073709551615ull;
6098 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6099 | (llmax / ll) | (llmax % ll)
6100 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6101 | (ullmax / ull) | (ullmax % ull));
6102 ;
6103 return 0;
6104 }
6105
6106 _ACEOF
6107 if ac_fn_c_try_link "$LINENO"; then :
6108 if test "$cross_compiling" = yes; then :
6109 ac_cv_type_long_long_int=yes
6110 else
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113 #include <limits.h>
6114 #ifndef LLONG_MAX
6115 # define HALF \
6116 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6117 # define LLONG_MAX (HALF - 1 + HALF)
6118 #endif
6119 int
6120 main ()
6121 {
6122 long long int n = 1;
6123 int i;
6124 for (i = 0; ; i++)
6125 {
6126 long long int m = n << i;
6127 if (m >> i != n)
6128 return 1;
6129 if (LLONG_MAX / 2 < m)
6130 break;
6131 }
6132 return 0;
6133 ;
6134 return 0;
6135 }
6136 _ACEOF
6137 if ac_fn_c_try_run "$LINENO"; then :
6138 ac_cv_type_long_long_int=yes
6139 else
6140 ac_cv_type_long_long_int=no
6141 fi
6142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6143 conftest.$ac_objext conftest.beam conftest.$ac_ext
6144 fi
6145
6146 else
6147 ac_cv_type_long_long_int=no
6148 fi
6149 rm -f core conftest.err conftest.$ac_objext \
6150 conftest$ac_exeext conftest.$ac_ext
6151 fi
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6153 $as_echo "$ac_cv_type_long_long_int" >&6; }
6154 if test $ac_cv_type_long_long_int = yes; then
6155
6156 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6157
6158 fi
6159
6160
6161
6162 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6163 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6164
6165 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6166
6167 else
6168 test $ac_cv_type_long_long_int = yes \
6169 && ac_type='long long int' \
6170 || ac_type='long int'
6171
6172 cat >>confdefs.h <<_ACEOF
6173 #define intmax_t $ac_type
6174 _ACEOF
6175
6176 fi
6177
6178
6179
6180 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6181 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6182
6183 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6184
6185 else
6186 for ac_type in 'int' 'long int' 'long long int'; do
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6189 $ac_includes_default
6190 int
6191 main ()
6192 {
6193 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6194 test_array [0] = 0
6195
6196 ;
6197 return 0;
6198 }
6199 _ACEOF
6200 if ac_fn_c_try_compile "$LINENO"; then :
6201
6202 cat >>confdefs.h <<_ACEOF
6203 #define intptr_t $ac_type
6204 _ACEOF
6205
6206 ac_type=
6207 fi
6208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209 test -z "$ac_type" && break
6210 done
6211 fi
6212
6213
6214 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6215 case $ac_cv_c_uint8_t in #(
6216 no|yes) ;; #(
6217 *)
6218
6219 $as_echo "#define _UINT8_T 1" >>confdefs.h
6220
6221
6222 cat >>confdefs.h <<_ACEOF
6223 #define uint8_t $ac_cv_c_uint8_t
6224 _ACEOF
6225 ;;
6226 esac
6227
6228 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6229 case $ac_cv_c_uint16_t in #(
6230 no|yes) ;; #(
6231 *)
6232
6233
6234 cat >>confdefs.h <<_ACEOF
6235 #define uint16_t $ac_cv_c_uint16_t
6236 _ACEOF
6237 ;;
6238 esac
6239
6240 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6241 case $ac_cv_c_uint32_t in #(
6242 no|yes) ;; #(
6243 *)
6244
6245 $as_echo "#define _UINT32_T 1" >>confdefs.h
6246
6247
6248 cat >>confdefs.h <<_ACEOF
6249 #define uint32_t $ac_cv_c_uint32_t
6250 _ACEOF
6251 ;;
6252 esac
6253
6254 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6255 case $ac_cv_c_uint64_t in #(
6256 no|yes) ;; #(
6257 *)
6258
6259 $as_echo "#define _UINT64_T 1" >>confdefs.h
6260
6261
6262 cat >>confdefs.h <<_ACEOF
6263 #define uint64_t $ac_cv_c_uint64_t
6264 _ACEOF
6265 ;;
6266 esac
6267
6268
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6270 $as_echo_n "checking for unsigned long long int... " >&6; }
6271 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6276
6277 /* For now, do not test the preprocessor; as of 2007 there are too many
6278 implementations with broken preprocessors. Perhaps this can
6279 be revisited in 2012. In the meantime, code should not expect
6280 #if to work with literals wider than 32 bits. */
6281 /* Test literals. */
6282 long long int ll = 9223372036854775807ll;
6283 long long int nll = -9223372036854775807LL;
6284 unsigned long long int ull = 18446744073709551615ULL;
6285 /* Test constant expressions. */
6286 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6287 ? 1 : -1)];
6288 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6289 ? 1 : -1)];
6290 int i = 63;
6291 int
6292 main ()
6293 {
6294 /* Test availability of runtime routines for shift and division. */
6295 long long int llmax = 9223372036854775807ll;
6296 unsigned long long int ullmax = 18446744073709551615ull;
6297 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6298 | (llmax / ll) | (llmax % ll)
6299 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6300 | (ullmax / ull) | (ullmax % ull));
6301 ;
6302 return 0;
6303 }
6304
6305 _ACEOF
6306 if ac_fn_c_try_link "$LINENO"; then :
6307 ac_cv_type_unsigned_long_long_int=yes
6308 else
6309 ac_cv_type_unsigned_long_long_int=no
6310 fi
6311 rm -f core conftest.err conftest.$ac_objext \
6312 conftest$ac_exeext conftest.$ac_ext
6313 fi
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6315 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6316 if test $ac_cv_type_unsigned_long_long_int = yes; then
6317
6318 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6319
6320 fi
6321
6322
6323
6324 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6325 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6326
6327 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6328
6329 else
6330 test $ac_cv_type_unsigned_long_long_int = yes \
6331 && ac_type='unsigned long long int' \
6332 || ac_type='unsigned long int'
6333
6334 cat >>confdefs.h <<_ACEOF
6335 #define uintmax_t $ac_type
6336 _ACEOF
6337
6338 fi
6339
6340
6341
6342 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6343 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6344
6345 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6346
6347 else
6348 for ac_type in 'unsigned int' 'unsigned long int' \
6349 'unsigned long long int'; do
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6352 $ac_includes_default
6353 int
6354 main ()
6355 {
6356 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6357 test_array [0] = 0
6358
6359 ;
6360 return 0;
6361 }
6362 _ACEOF
6363 if ac_fn_c_try_compile "$LINENO"; then :
6364
6365 cat >>confdefs.h <<_ACEOF
6366 #define uintptr_t $ac_type
6367 _ACEOF
6368
6369 ac_type=
6370 fi
6371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372 test -z "$ac_type" && break
6373 done
6374 fi
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390 # ---------------------
6391 # Warnings and checking
6392 # ---------------------
6393
6394 # Check $CC warning features (if it's GCC).
6395 # We want to use -pedantic, but we don't want warnings about
6396 # * 'long long'
6397 # * variadic macros
6398 # * overlong strings
6399 # So, we only use -pedantic if we can disable those warnings.
6400
6401 loose_warn=
6402 save_CFLAGS="$CFLAGS"
6403 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6404 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6405
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6407 $as_echo_n "checking whether $CC supports $option... " >&6; }
6408 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 CFLAGS="$option"
6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h. */
6414
6415 int
6416 main ()
6417 {
6418
6419 ;
6420 return 0;
6421 }
6422 _ACEOF
6423 if ac_fn_c_try_compile "$LINENO"; then :
6424 eval "$as_acx_Woption=yes"
6425 else
6426 eval "$as_acx_Woption=no"
6427 fi
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429
6430 fi
6431 eval ac_res=\$$as_acx_Woption
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6433 $as_echo "$ac_res" >&6; }
6434 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6435 loose_warn="$loose_warn${loose_warn:+ }$option"
6436 fi
6437 done
6438 CFLAGS="$save_CFLAGS"
6439
6440 c_loose_warn=
6441 save_CFLAGS="$CFLAGS"
6442 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6443 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6444
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6446 $as_echo_n "checking whether $CC supports $option... " >&6; }
6447 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 CFLAGS="$option"
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6453
6454 int
6455 main ()
6456 {
6457
6458 ;
6459 return 0;
6460 }
6461 _ACEOF
6462 if ac_fn_c_try_compile "$LINENO"; then :
6463 eval "$as_acx_Woption=yes"
6464 else
6465 eval "$as_acx_Woption=no"
6466 fi
6467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468
6469 fi
6470 eval ac_res=\$$as_acx_Woption
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6472 $as_echo "$ac_res" >&6; }
6473 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6474 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6475 fi
6476 done
6477 CFLAGS="$save_CFLAGS"
6478
6479 strict_warn=
6480 save_CFLAGS="$CFLAGS"
6481 for option in -Wmissing-format-attribute; do
6482 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6483
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6485 $as_echo_n "checking whether $CC supports $option... " >&6; }
6486 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 CFLAGS="$option"
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6492
6493 int
6494 main ()
6495 {
6496
6497 ;
6498 return 0;
6499 }
6500 _ACEOF
6501 if ac_fn_c_try_compile "$LINENO"; then :
6502 eval "$as_acx_Woption=yes"
6503 else
6504 eval "$as_acx_Woption=no"
6505 fi
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507
6508 fi
6509 eval ac_res=\$$as_acx_Woption
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6511 $as_echo "$ac_res" >&6; }
6512 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6513 strict_warn="$strict_warn${strict_warn:+ }$option"
6514 fi
6515 done
6516 CFLAGS="$save_CFLAGS"
6517
6518 c_strict_warn=
6519 save_CFLAGS="$CFLAGS"
6520 for option in -Wold-style-definition -Wc++-compat; do
6521 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6522
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6524 $as_echo_n "checking whether $CC supports $option... " >&6; }
6525 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 CFLAGS="$option"
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531
6532 int
6533 main ()
6534 {
6535
6536 ;
6537 return 0;
6538 }
6539 _ACEOF
6540 if ac_fn_c_try_compile "$LINENO"; then :
6541 eval "$as_acx_Woption=yes"
6542 else
6543 eval "$as_acx_Woption=no"
6544 fi
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546
6547 fi
6548 eval ac_res=\$$as_acx_Woption
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6550 $as_echo "$ac_res" >&6; }
6551 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6552 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6553 fi
6554 done
6555 CFLAGS="$save_CFLAGS"
6556
6557 if test "$GCC" = yes; then :
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6559 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6560 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 save_CFLAGS="$CFLAGS"
6564 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567
6568 int
6569 main ()
6570 {
6571
6572 ;
6573 return 0;
6574 }
6575 _ACEOF
6576 if ac_fn_c_try_compile "$LINENO"; then :
6577 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6578 else
6579 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6580 fi
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 CFLAGS="$save_CFLAGS"
6583 fi
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6585 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6586 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6587 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6588 fi
6589
6590 fi
6591
6592 # Check whether --enable-werror-always was given.
6593 if test "${enable_werror_always+set}" = set; then :
6594 enableval=$enable_werror_always;
6595 else
6596 enable_werror_always=no
6597 fi
6598
6599 if test $enable_werror_always = yes; then :
6600 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6601 fi
6602
6603
6604
6605 # The above macros do nothing if the compiler is not GCC. However, the
6606 # Makefile has more goo to add other flags, so these variables are used
6607 # to enable warnings only for GCC.
6608 warn_cflags=
6609 warn_cxxflags=
6610 if test "x$GCC" = "xyes"; then
6611 warn_cflags='$(GCC_WARN_CFLAGS)'
6612 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6613 fi
6614
6615
6616
6617 # Enable expensive internal checks
6618 is_release=
6619 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6620 is_release=yes
6621 fi
6622
6623 # Check whether --enable-checking was given.
6624 if test "${enable_checking+set}" = set; then :
6625 enableval=$enable_checking; ac_checking_flags="${enableval}"
6626 else
6627
6628 # Determine the default checks.
6629 if test x$is_release = x ; then
6630 ac_checking_flags=yes
6631 else
6632 ac_checking_flags=release
6633 fi
6634 fi
6635
6636 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6637 for check in release $ac_checking_flags
6638 do
6639 case $check in
6640 # these set all the flags to specific states
6641 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6642 ac_fold_checking= ; ac_gc_checking=1 ;
6643 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6644 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6645 ac_tree_checking=1 ; ac_valgrind_checking= ;
6646 ac_types_checking=1 ;;
6647 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6648 ac_fold_checking= ; ac_gc_checking= ;
6649 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6650 ac_rtlflag_checking= ; ac_runtime_checking= ;
6651 ac_tree_checking= ; ac_valgrind_checking= ;
6652 ac_types_checking= ;;
6653 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6654 ac_fold_checking=1 ; ac_gc_checking=1 ;
6655 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6656 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6657 ac_tree_checking=1 ; ac_valgrind_checking= ;
6658 ac_types_checking=1 ;;
6659 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6660 ac_fold_checking= ; ac_gc_checking= ;
6661 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6662 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6663 ac_tree_checking= ; ac_valgrind_checking= ;
6664 ac_types_checking= ;;
6665 # these enable particular checks
6666 assert) ac_assert_checking=1 ;;
6667 df) ac_df_checking=1 ;;
6668 fold) ac_fold_checking=1 ;;
6669 gc) ac_gc_checking=1 ;;
6670 gcac) ac_gc_always_collect=1 ;;
6671 gimple) ac_gimple_checking=1 ;;
6672 misc) ac_checking=1 ;;
6673 rtl) ac_rtl_checking=1 ;;
6674 rtlflag) ac_rtlflag_checking=1 ;;
6675 runtime) ac_runtime_checking=1 ;;
6676 tree) ac_tree_checking=1 ;;
6677 types) ac_types_checking=1 ;;
6678 valgrind) ac_valgrind_checking=1 ;;
6679 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6680 esac
6681 done
6682 IFS="$ac_save_IFS"
6683
6684 nocommon_flag=""
6685 if test x$ac_checking != x ; then
6686
6687 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6688
6689 nocommon_flag=-fno-common
6690 fi
6691
6692 if test x$ac_df_checking != x ; then
6693
6694 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6695
6696 fi
6697 if test x$ac_assert_checking != x ; then
6698
6699 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6700
6701 fi
6702 if test x$ac_gimple_checking != x ; then
6703
6704 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6705
6706 fi
6707
6708 if test x$ac_runtime_checking != x ; then
6709
6710 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6711
6712 fi
6713 if test x$ac_tree_checking != x ; then
6714
6715 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6716
6717 TREEBROWSER=tree-browser.o
6718 fi
6719 if test x$ac_types_checking != x ; then
6720
6721 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6722
6723 fi
6724
6725 if test x$ac_rtl_checking != x ; then
6726
6727 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6728
6729 fi
6730 if test x$ac_rtlflag_checking != x ; then
6731
6732 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6733
6734 fi
6735 if test x$ac_gc_checking != x ; then
6736
6737 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6738
6739 fi
6740 if test x$ac_gc_always_collect != x ; then
6741
6742 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6743
6744 fi
6745 if test x$ac_fold_checking != x ; then
6746
6747 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6748
6749 fi
6750 valgrind_path_defines=
6751 valgrind_command=
6752
6753 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6754 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6755 have_valgrind_h=yes
6756 else
6757 have_valgrind_h=no
6758 fi
6759
6760
6761
6762 if test x$ac_valgrind_checking != x ; then
6763 # It is certainly possible that there's valgrind but no valgrind.h.
6764 # GCC relies on making annotations so we must have both.
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6766 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h. */
6769 #include <valgrind/memcheck.h>
6770 #ifndef VALGRIND_DISCARD
6771 #error VALGRIND_DISCARD not defined
6772 #endif
6773 _ACEOF
6774 if ac_fn_c_try_cpp "$LINENO"; then :
6775 gcc_cv_header_valgrind_memcheck_h=yes
6776 else
6777 gcc_cv_header_valgrind_memcheck_h=no
6778 fi
6779 rm -f conftest.err conftest.$ac_ext
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6781 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6783 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 #include <memcheck.h>
6787 #ifndef VALGRIND_DISCARD
6788 #error VALGRIND_DISCARD not defined
6789 #endif
6790 _ACEOF
6791 if ac_fn_c_try_cpp "$LINENO"; then :
6792 gcc_cv_header_memcheck_h=yes
6793 else
6794 gcc_cv_header_memcheck_h=no
6795 fi
6796 rm -f conftest.err conftest.$ac_ext
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6798 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6799
6800 # Prepare PATH_SEPARATOR.
6801 # The user is always right.
6802 if test "${PATH_SEPARATOR+set}" != set; then
6803 echo "#! /bin/sh" >conf$$.sh
6804 echo "exit 0" >>conf$$.sh
6805 chmod +x conf$$.sh
6806 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6807 PATH_SEPARATOR=';'
6808 else
6809 PATH_SEPARATOR=:
6810 fi
6811 rm -f conf$$.sh
6812 fi
6813
6814 # Find out how to test for executable files. Don't use a zero-byte file,
6815 # as systems may use methods other than mode bits to determine executability.
6816 cat >conf$$.file <<_ASEOF
6817 #! /bin/sh
6818 exit 0
6819 _ASEOF
6820 chmod +x conf$$.file
6821 if test -x conf$$.file >/dev/null 2>&1; then
6822 ac_executable_p="test -x"
6823 else
6824 ac_executable_p="test -f"
6825 fi
6826 rm -f conf$$.file
6827
6828 # Extract the first word of "valgrind", so it can be a program name with args.
6829 set dummy valgrind; ac_word=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6833 $as_echo_n "(cached) " >&6
6834 else
6835 case "$valgrind_path" in
6836 [\\/]* | ?:[\\/]*)
6837 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6838 ;;
6839 *)
6840 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6841 for ac_dir in $PATH; do
6842 IFS="$ac_save_IFS"
6843 test -z "$ac_dir" && ac_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6846 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6847 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6848 break 2
6849 fi
6850 fi
6851 done
6852 done
6853 IFS="$ac_save_IFS"
6854 ;;
6855 esac
6856 fi
6857 valgrind_path="$ac_cv_path_valgrind_path"
6858 if test -n "$valgrind_path"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6860 $as_echo "$valgrind_path" >&6; }
6861 else
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6864 fi
6865
6866 if test "x$valgrind_path" = "x" \
6867 || (test $have_valgrind_h = no \
6868 && test $gcc_cv_header_memcheck_h = no \
6869 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6870 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6871 fi
6872 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6873 valgrind_command="$valgrind_path -q"
6874
6875 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6876
6877 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6878
6879 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6880
6881 fi
6882 if test $gcc_cv_header_memcheck_h = yes; then
6883
6884 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6885
6886 fi
6887 fi
6888
6889
6890
6891 # Enable code coverage collection
6892 # Check whether --enable-coverage was given.
6893 if test "${enable_coverage+set}" = set; then :
6894 enableval=$enable_coverage; case "${enableval}" in
6895 yes|noopt)
6896 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6897 ;;
6898 opt)
6899 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6900 ;;
6901 no)
6902 # a.k.a. --disable-coverage
6903 coverage_flags=""
6904 ;;
6905 *)
6906 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6907 ;;
6908 esac
6909 else
6910 coverage_flags=""
6911 fi
6912
6913
6914
6915 # Check whether --enable-gather-detailed-mem-stats was given.
6916 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6917 enableval=$enable_gather_detailed_mem_stats;
6918 else
6919 enable_gather_detailed_mem_stats=no
6920 fi
6921
6922 if test x$enable_gather_detailed_mem_stats = xyes ; then
6923
6924 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6925
6926 fi
6927
6928 # -------------------------------
6929 # Miscenalleous configure options
6930 # -------------------------------
6931
6932 # See if we are building gcc with C++.
6933 # Check whether --enable-build-with-cxx was given.
6934 if test "${enable_build_with_cxx+set}" = set; then :
6935 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6936 else
6937 ENABLE_BUILD_WITH_CXX=no
6938 fi
6939
6940
6941 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6942
6943 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6944
6945 fi
6946
6947 # With stabs
6948
6949 # Check whether --with-stabs was given.
6950 if test "${with_stabs+set}" = set; then :
6951 withval=$with_stabs; stabs="$with_stabs"
6952 else
6953 stabs=no
6954 fi
6955
6956
6957 # Determine whether or not multilibs are enabled.
6958 # Check whether --enable-multilib was given.
6959 if test "${enable_multilib+set}" = set; then :
6960 enableval=$enable_multilib;
6961 else
6962 enable_multilib=yes
6963 fi
6964
6965
6966
6967 # Enable __cxa_atexit for C++.
6968 # Check whether --enable-__cxa_atexit was given.
6969 if test "${enable___cxa_atexit+set}" = set; then :
6970 enableval=$enable___cxa_atexit;
6971 fi
6972
6973
6974 # Enable C extension for decimal float if target supports it.
6975
6976 # Check whether --enable-decimal-float was given.
6977 if test "${enable_decimal_float+set}" = set; then :
6978 enableval=$enable_decimal_float;
6979 case $enable_decimal_float in
6980 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6981 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6982 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6983 esac
6984
6985 else
6986
6987 case $target in
6988 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6989 i?86*-*-mingw* | x86_64*-*-mingw* | \
6990 i?86*-*-cygwin*)
6991 enable_decimal_float=yes
6992 ;;
6993 *)
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6995 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6996 enable_decimal_float=no
6997 ;;
6998 esac
6999
7000 fi
7001
7002
7003 # x86's use BID format instead of DPD
7004 case x$enable_decimal_float in
7005 xyes)
7006 case $target in
7007 i?86*-*-* | x86_64*-*-*)
7008 enable_decimal_float=bid
7009 ;;
7010 *)
7011 enable_decimal_float=dpd
7012 ;;
7013 esac
7014 default_decimal_float=$enable_decimal_float
7015 ;;
7016 xno)
7017 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7018 # dependency on libdecnumber.
7019 default_decimal_float=dpd
7020 ;;
7021 esac
7022
7023
7024
7025
7026 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7027
7028 cat >>confdefs.h <<_ACEOF
7029 #define ENABLE_DECIMAL_FLOAT $dfp
7030 _ACEOF
7031
7032
7033 # Use default_decimal_float for dependency.
7034 enable_decimal_float=$default_decimal_float
7035
7036 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7037
7038 cat >>confdefs.h <<_ACEOF
7039 #define ENABLE_DECIMAL_BID_FORMAT $bid
7040 _ACEOF
7041
7042
7043 # Enable C extension for fixed-point arithmetic.
7044 # Check whether --enable-fixed-point was given.
7045 if test "${enable_fixed_point+set}" = set; then :
7046 enableval=$enable_fixed_point;
7047 else
7048
7049 case $target in
7050 arm*)
7051 enable_fixed_point=yes
7052 ;;
7053
7054 mips*-*-*)
7055 case $host in
7056 mips*-sgi-irix*)
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7058 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7059 enable_fixed_point=no
7060 ;;
7061 *)
7062 enable_fixed_point=yes
7063 ;;
7064 esac
7065 ;;
7066 *)
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7068 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7069 enable_fixed_point=no
7070 ;;
7071 esac
7072
7073 fi
7074
7075
7076
7077 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7078
7079 cat >>confdefs.h <<_ACEOF
7080 #define ENABLE_FIXED_POINT $fixedpoint
7081 _ACEOF
7082
7083
7084 # Enable threads
7085 # Pass with no value to take the default
7086 # Pass with a value to specify a thread package
7087 # Check whether --enable-threads was given.
7088 if test "${enable_threads+set}" = set; then :
7089 enableval=$enable_threads;
7090 else
7091 enable_threads=''
7092 fi
7093
7094
7095 # Check whether --enable-tls was given.
7096 if test "${enable_tls+set}" = set; then :
7097 enableval=$enable_tls;
7098 case $enable_tls in
7099 yes | no) ;;
7100 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7101 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7102 esac
7103
7104 else
7105 enable_tls=''
7106 fi
7107
7108
7109 # Check whether --enable-objc-gc was given.
7110 if test "${enable_objc_gc+set}" = set; then :
7111 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7112 objc_boehm_gc=''
7113 else
7114 objc_boehm_gc=1
7115 fi
7116 else
7117 objc_boehm_gc=''
7118 fi
7119
7120
7121
7122 # Check whether --with-dwarf2 was given.
7123 if test "${with_dwarf2+set}" = set; then :
7124 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7125 else
7126 dwarf2=no
7127 fi
7128
7129
7130 # Check whether --enable-shared was given.
7131 if test "${enable_shared+set}" = set; then :
7132 enableval=$enable_shared;
7133 case $enable_shared in
7134 yes | no) ;;
7135 *)
7136 enable_shared=no
7137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7138 for pkg in $enableval; do
7139 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7140 enable_shared=yes
7141 fi
7142 done
7143 IFS="$ac_save_ifs"
7144 ;;
7145 esac
7146
7147 else
7148 enable_shared=yes
7149 fi
7150
7151
7152
7153
7154 # Check whether --with-native-system-header-dir was given.
7155 if test "${with_native_system_header_dir+set}" = set; then :
7156 withval=$with_native_system_header_dir;
7157 case ${with_native_system_header_dir} in
7158 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7159 /* | [A-Za-z]:[\\/]*) ;;
7160 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7161 esac
7162 configured_native_system_header_dir="${withval}"
7163
7164 else
7165 configured_native_system_header_dir=
7166 fi
7167
7168
7169
7170 # Check whether --with-build-sysroot was given.
7171 if test "${with_build_sysroot+set}" = set; then :
7172 withval=$with_build_sysroot; if test x"$withval" != x ; then
7173 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7174 fi
7175 else
7176 SYSROOT_CFLAGS_FOR_TARGET=
7177 fi
7178
7179
7180
7181
7182 # Check whether --with-sysroot was given.
7183 if test "${with_sysroot+set}" = set; then :
7184 withval=$with_sysroot;
7185 case ${with_sysroot} in
7186 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7187 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7188 esac
7189
7190 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7191 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7192
7193 if test "x$prefix" = xNONE; then
7194 test_prefix=/usr/local
7195 else
7196 test_prefix=$prefix
7197 fi
7198 if test "x$exec_prefix" = xNONE; then
7199 test_exec_prefix=$test_prefix
7200 else
7201 test_exec_prefix=$exec_prefix
7202 fi
7203 case ${TARGET_SYSTEM_ROOT} in
7204 "${test_prefix}"|"${test_prefix}/"*|\
7205 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7206 '${prefix}'|'${prefix}/'*|\
7207 '${exec_prefix}'|'${exec_prefix}/'*)
7208 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7209 TARGET_SYSTEM_ROOT_DEFINE="$t"
7210 ;;
7211 esac
7212
7213 else
7214
7215 TARGET_SYSTEM_ROOT=
7216 TARGET_SYSTEM_ROOT_DEFINE=
7217 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7218
7219 fi
7220
7221
7222
7223
7224
7225
7226 # Check whether --with-specs was given.
7227 if test "${with_specs+set}" = set; then :
7228 withval=$with_specs; CONFIGURE_SPECS=$withval
7229 else
7230 CONFIGURE_SPECS=
7231
7232 fi
7233
7234
7235
7236
7237
7238 # Check whether --with-pkgversion was given.
7239 if test "${with_pkgversion+set}" = set; then :
7240 withval=$with_pkgversion; case "$withval" in
7241 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7242 no) PKGVERSION= ;;
7243 *) PKGVERSION="($withval) " ;;
7244 esac
7245 else
7246 PKGVERSION="(GCC) "
7247
7248 fi
7249
7250
7251
7252
7253
7254 # Check whether --with-bugurl was given.
7255 if test "${with_bugurl+set}" = set; then :
7256 withval=$with_bugurl; case "$withval" in
7257 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7258 no) BUGURL=
7259 ;;
7260 *) BUGURL="$withval"
7261 ;;
7262 esac
7263 else
7264 BUGURL="http://gcc.gnu.org/bugs.html"
7265
7266 fi
7267
7268 case ${BUGURL} in
7269 "")
7270 REPORT_BUGS_TO=
7271 REPORT_BUGS_TEXI=
7272 ;;
7273 *)
7274 REPORT_BUGS_TO="<$BUGURL>"
7275 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7276 ;;
7277 esac;
7278
7279
7280
7281
7282 # Sanity check enable_languages in case someone does not run the toplevel
7283 # configure # script.
7284 # Check whether --enable-languages was given.
7285 if test "${enable_languages+set}" = set; then :
7286 enableval=$enable_languages; case ,${enable_languages}, in
7287 ,,|,yes,)
7288 # go safe -- we cannot be much sure without the toplevel
7289 # configure's
7290 # analysis of which target libs are present and usable
7291 enable_languages=c
7292 ;;
7293 *,all,*)
7294 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7295 ;;
7296 *,c,*)
7297 ;;
7298 *)
7299 enable_languages=c,${enable_languages}
7300 ;;
7301 esac
7302 else
7303 enable_languages=c
7304 fi
7305
7306
7307
7308 # Check whether --with-multilib-list was given.
7309 if test "${with_multilib_list+set}" = set; then :
7310 withval=$with_multilib_list; :
7311 else
7312 with_multilib_list=default
7313 fi
7314
7315
7316 # -------------------------
7317 # Checks for other programs
7318 # -------------------------
7319
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7321 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7322 set x ${MAKE-make}
7323 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7324 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7325 $as_echo_n "(cached) " >&6
7326 else
7327 cat >conftest.make <<\_ACEOF
7328 SHELL = /bin/sh
7329 all:
7330 @echo '@@@%%%=$(MAKE)=@@@%%%'
7331 _ACEOF
7332 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7333 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7334 *@@@%%%=?*=@@@%%%*)
7335 eval ac_cv_prog_make_${ac_make}_set=yes;;
7336 *)
7337 eval ac_cv_prog_make_${ac_make}_set=no;;
7338 esac
7339 rm -f conftest.make
7340 fi
7341 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7343 $as_echo "yes" >&6; }
7344 SET_MAKE=
7345 else
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 $as_echo "no" >&6; }
7348 SET_MAKE="MAKE=${MAKE-make}"
7349 fi
7350
7351
7352 # Find some useful tools
7353 for ac_prog in gawk mawk nawk awk
7354 do
7355 # Extract the first word of "$ac_prog", so it can be a program name with args.
7356 set dummy $ac_prog; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if test "${ac_cv_prog_AWK+set}" = set; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 if test -n "$AWK"; then
7363 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368 IFS=$as_save_IFS
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7372 ac_cv_prog_AWK="$ac_prog"
7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 break 2
7375 fi
7376 done
7377 done
7378 IFS=$as_save_IFS
7379
7380 fi
7381 fi
7382 AWK=$ac_cv_prog_AWK
7383 if test -n "$AWK"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7385 $as_echo "$AWK" >&6; }
7386 else
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7389 fi
7390
7391
7392 test -n "$AWK" && break
7393 done
7394
7395 # We need awk to create options.c and options.h.
7396 # Bail out if it's missing.
7397 case ${AWK} in
7398 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7399 esac
7400
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7402 $as_echo_n "checking whether ln -s works... " >&6; }
7403 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 rm -f conftestdata_t
7407 echo >conftestdata_f
7408 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7409 then
7410 gcc_cv_prog_LN_S="ln -s"
7411 else
7412 if ln conftestdata_f conftestdata_t 2>/dev/null
7413 then
7414 gcc_cv_prog_LN_S=ln
7415 else
7416 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7417 then
7418 gcc_cv_prog_LN_S="cp -p"
7419 else
7420 gcc_cv_prog_LN_S=cp
7421 fi
7422 fi
7423 fi
7424 rm -f conftestdata_f conftestdata_t
7425
7426 fi
7427 LN_S="$gcc_cv_prog_LN_S"
7428 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7430 $as_echo "yes" >&6; }
7431 else
7432 if test "$gcc_cv_prog_LN_S" = "ln"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7434 $as_echo "no, using ln" >&6; }
7435 else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7437 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7438 fi
7439 fi
7440
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7442 $as_echo_n "checking whether ln works... " >&6; }
7443 if test "${acx_cv_prog_LN+set}" = set; then :
7444 $as_echo_n "(cached) " >&6
7445 else
7446 rm -f conftestdata_t
7447 echo >conftestdata_f
7448 if ln conftestdata_f conftestdata_t 2>/dev/null
7449 then
7450 acx_cv_prog_LN=ln
7451 else
7452 acx_cv_prog_LN=no
7453 fi
7454 rm -f conftestdata_f conftestdata_t
7455
7456 fi
7457 if test $acx_cv_prog_LN = no; then
7458 LN="$LN_S"
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7460 $as_echo "no, using $LN" >&6; }
7461 else
7462 LN="$acx_cv_prog_LN"
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7464 $as_echo "yes" >&6; }
7465 fi
7466
7467 if test -n "$ac_tool_prefix"; then
7468 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7469 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 $as_echo_n "checking for $ac_word... " >&6; }
7472 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7473 $as_echo_n "(cached) " >&6
7474 else
7475 if test -n "$RANLIB"; then
7476 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7477 else
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7480 do
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7485 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7488 fi
7489 done
7490 done
7491 IFS=$as_save_IFS
7492
7493 fi
7494 fi
7495 RANLIB=$ac_cv_prog_RANLIB
7496 if test -n "$RANLIB"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7498 $as_echo "$RANLIB" >&6; }
7499 else
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7502 fi
7503
7504
7505 fi
7506 if test -z "$ac_cv_prog_RANLIB"; then
7507 ac_ct_RANLIB=$RANLIB
7508 # Extract the first word of "ranlib", so it can be a program name with args.
7509 set dummy ranlib; ac_word=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511 $as_echo_n "checking for $ac_word... " >&6; }
7512 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7513 $as_echo_n "(cached) " >&6
7514 else
7515 if test -n "$ac_ct_RANLIB"; then
7516 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7517 else
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521 IFS=$as_save_IFS
7522 test -z "$as_dir" && as_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7525 ac_cv_prog_ac_ct_RANLIB="ranlib"
7526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 break 2
7528 fi
7529 done
7530 done
7531 IFS=$as_save_IFS
7532
7533 fi
7534 fi
7535 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7536 if test -n "$ac_ct_RANLIB"; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7538 $as_echo "$ac_ct_RANLIB" >&6; }
7539 else
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7542 fi
7543
7544 if test "x$ac_ct_RANLIB" = x; then
7545 RANLIB=":"
7546 else
7547 case $cross_compiling:$ac_tool_warned in
7548 yes:)
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7551 ac_tool_warned=yes ;;
7552 esac
7553 RANLIB=$ac_ct_RANLIB
7554 fi
7555 else
7556 RANLIB="$ac_cv_prog_RANLIB"
7557 fi
7558
7559 case "${host}" in
7560 *-*-darwin*)
7561 # By default, the Darwin ranlib will not treat common symbols as
7562 # definitions when building the archive table of contents. Other
7563 # ranlibs do that; pass an option to the Darwin ranlib that makes
7564 # it behave similarly.
7565 ranlib_flags="-c"
7566 ;;
7567 *)
7568 ranlib_flags=""
7569 esac
7570
7571
7572 # Find a good install program. We prefer a C program (faster),
7573 # so one script is as good as another. But avoid the broken or
7574 # incompatible versions:
7575 # SysV /etc/install, /usr/sbin/install
7576 # SunOS /usr/etc/install
7577 # IRIX /sbin/install
7578 # AIX /bin/install
7579 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7580 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7581 # ./install, which can be erroneously created by make from ./install.sh.
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7583 $as_echo_n "checking for a BSD compatible install... " >&6; }
7584 if test -z "$INSTALL"; then
7585 if test "${ac_cv_path_install+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7589 for ac_dir in $PATH; do
7590 # Account for people who put trailing slashes in PATH elements.
7591 case "$ac_dir/" in
7592 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7593 *)
7594 # OSF1 and SCO ODT 3.0 have their own names for install.
7595 for ac_prog in ginstall scoinst install; do
7596 if test -f $ac_dir/$ac_prog; then
7597 if test $ac_prog = install &&
7598 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7599 # AIX install. It has an incompatible calling convention.
7600 # OSF/1 installbsd also uses dspmsg, but is usable.
7601 :
7602 else
7603 ac_cv_path_install="$ac_dir/$ac_prog -c"
7604 break 2
7605 fi
7606 fi
7607 done
7608 ;;
7609 esac
7610 done
7611 IFS="$ac_save_IFS"
7612
7613 fi
7614 if test "${ac_cv_path_install+set}" = set; then
7615 INSTALL="$ac_cv_path_install"
7616 else
7617 # As a last resort, use the slow shell script. We don't cache a
7618 # path for INSTALL within a source directory, because that will
7619 # break other packages using the cache if that directory is
7620 # removed, or if the path is relative.
7621 INSTALL="$ac_install_sh"
7622 fi
7623 fi
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7625 $as_echo "$INSTALL" >&6; }
7626
7627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7628 # It thinks the first close brace ends the variable substitution.
7629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7630
7631 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7632
7633
7634 # See if cmp has --ignore-initial.
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7636 $as_echo_n "checking for cmp's capabilities... " >&6; }
7637 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640 echo abfoo >t1
7641 echo cdfoo >t2
7642 gcc_cv_prog_cmp_skip=slowcompare
7643 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7644 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7645 :
7646 else
7647 gcc_cv_prog_cmp_skip=gnucompare
7648 fi
7649 fi
7650 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7651 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7652 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7653 :
7654 else
7655 gcc_cv_prog_cmp_skip=fastcompare
7656 fi
7657 fi
7658 fi
7659 rm t1 t2
7660
7661 fi
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7663 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7664 make_compare_target=$gcc_cv_prog_cmp_skip
7665
7666
7667
7668 # See if we have the mktemp command.
7669 # Extract the first word of "mktemp", so it can be a program name with args.
7670 set dummy mktemp; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 if test -n "$have_mktemp_command"; then
7677 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7686 ac_cv_prog_have_mktemp_command="yes"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7689 fi
7690 done
7691 done
7692 IFS=$as_save_IFS
7693
7694 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7695 fi
7696 fi
7697 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7698 if test -n "$have_mktemp_command"; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7700 $as_echo "$have_mktemp_command" >&6; }
7701 else
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7704 fi
7705
7706
7707
7708 # See if makeinfo has been installed and is modern enough
7709 # that we can use it.
7710
7711 # Extract the first word of "makeinfo", so it can be a program name with args.
7712 set dummy makeinfo; ac_word=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 if test -n "$MAKEINFO"; then
7719 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7720 else
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH
7723 do
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7728 ac_cv_prog_MAKEINFO="makeinfo"
7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 break 2
7731 fi
7732 done
7733 done
7734 IFS=$as_save_IFS
7735
7736 fi
7737 fi
7738 MAKEINFO=$ac_cv_prog_MAKEINFO
7739 if test -n "$MAKEINFO"; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7741 $as_echo "$MAKEINFO" >&6; }
7742 else
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7745 fi
7746
7747
7748 if test -n "$MAKEINFO"; then
7749 # Found it, now check the version.
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7751 $as_echo_n "checking for modern makeinfo... " >&6; }
7752 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7753 $as_echo_n "(cached) " >&6
7754 else
7755 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7756 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7757
7758 case $ac_prog_version in
7759 '') gcc_cv_prog_makeinfo_modern=no;;
7760 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7761 *) gcc_cv_prog_makeinfo_modern=no;;
7762 esac
7763
7764 fi
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7766 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7767 else
7768 gcc_cv_prog_makeinfo_modern=no
7769 fi
7770 if test $gcc_cv_prog_makeinfo_modern = no; then
7771 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7772 fi
7773
7774 if test $gcc_cv_prog_makeinfo_modern = no; then
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7776 *** Makeinfo is missing or too old.
7777 *** Info documentation will not be built." >&5
7778 $as_echo "$as_me: WARNING:
7779 *** Makeinfo is missing or too old.
7780 *** Info documentation will not be built." >&2;}
7781 BUILD_INFO=
7782 else
7783 BUILD_INFO=info
7784 fi
7785
7786
7787 # Is pod2man recent enough to regenerate manpages?
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7789 $as_echo_n "checking for recent Pod::Man... " >&6; }
7790 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7792 $as_echo "yes" >&6; }
7793 GENERATED_MANPAGES=generated-manpages
7794 else
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7797 GENERATED_MANPAGES=
7798 fi
7799
7800
7801 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7802
7803 # How about lex?
7804 for ac_prog in flex
7805 do
7806 # Extract the first word of "$ac_prog", so it can be a program name with args.
7807 set dummy $ac_prog; ac_word=$2
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809 $as_echo_n "checking for $ac_word... " >&6; }
7810 if test "${ac_cv_prog_FLEX+set}" = set; then :
7811 $as_echo_n "(cached) " >&6
7812 else
7813 if test -n "$FLEX"; then
7814 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7815 else
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817 for as_dir in $PATH
7818 do
7819 IFS=$as_save_IFS
7820 test -z "$as_dir" && as_dir=.
7821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7823 ac_cv_prog_FLEX="$ac_prog"
7824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 break 2
7826 fi
7827 done
7828 done
7829 IFS=$as_save_IFS
7830
7831 fi
7832 fi
7833 FLEX=$ac_cv_prog_FLEX
7834 if test -n "$FLEX"; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7836 $as_echo "$FLEX" >&6; }
7837 else
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 $as_echo "no" >&6; }
7840 fi
7841
7842
7843 test -n "$FLEX" && break
7844 done
7845 test -n "$FLEX" || FLEX="$MISSING flex"
7846
7847
7848 # Bison?
7849 for ac_prog in bison
7850 do
7851 # Extract the first word of "$ac_prog", so it can be a program name with args.
7852 set dummy $ac_prog; ac_word=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if test "${ac_cv_prog_BISON+set}" = set; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858 if test -n "$BISON"; then
7859 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7860 else
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7863 do
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7868 ac_cv_prog_BISON="$ac_prog"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 break 2
7871 fi
7872 done
7873 done
7874 IFS=$as_save_IFS
7875
7876 fi
7877 fi
7878 BISON=$ac_cv_prog_BISON
7879 if test -n "$BISON"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7881 $as_echo "$BISON" >&6; }
7882 else
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7885 fi
7886
7887
7888 test -n "$BISON" && break
7889 done
7890 test -n "$BISON" || BISON="$MISSING bison"
7891
7892
7893 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7894 # check for build == host before using them.
7895
7896 # NM
7897 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7898 && test -d ../binutils ; then
7899 NM='${objdir}/../binutils/nm-new'
7900 else
7901 # Extract the first word of "nm", so it can be a program name with args.
7902 set dummy nm; ac_word=$2
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904 $as_echo_n "checking for $ac_word... " >&6; }
7905 if test "${ac_cv_prog_NM+set}" = set; then :
7906 $as_echo_n "(cached) " >&6
7907 else
7908 if test -n "$NM"; then
7909 ac_cv_prog_NM="$NM" # Let the user override the test.
7910 else
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7913 do
7914 IFS=$as_save_IFS
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7918 ac_cv_prog_NM="nm"
7919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 break 2
7921 fi
7922 done
7923 done
7924 IFS=$as_save_IFS
7925
7926 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7927 fi
7928 fi
7929 NM=$ac_cv_prog_NM
7930 if test -n "$NM"; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7932 $as_echo "$NM" >&6; }
7933 else
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 $as_echo "no" >&6; }
7936 fi
7937
7938
7939 fi
7940
7941 # AR
7942 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7943 && test -d ../binutils ; then
7944 AR='${objdir}/../binutils/ar'
7945 else
7946 # Extract the first word of "ar", so it can be a program name with args.
7947 set dummy ar; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if test "${ac_cv_prog_AR+set}" = set; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7953 if test -n "$AR"; then
7954 ac_cv_prog_AR="$AR" # Let the user override the test.
7955 else
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH
7958 do
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7963 ac_cv_prog_AR="ar"
7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 break 2
7966 fi
7967 done
7968 done
7969 IFS=$as_save_IFS
7970
7971 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7972 fi
7973 fi
7974 AR=$ac_cv_prog_AR
7975 if test -n "$AR"; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7977 $as_echo "$AR" >&6; }
7978 else
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980 $as_echo "no" >&6; }
7981 fi
7982
7983
7984 fi
7985
7986
7987 # --------------------
7988 # Checks for C headers
7989 # --------------------
7990
7991 # Need to reject headers which give warnings, so that the -Werror bootstrap
7992 # works later. *sigh* This needs to come before all header checks.
7993
7994 ac_c_preproc_warn_flag=yes
7995
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7997 $as_echo_n "checking for ANSI C header files... " >&6; }
7998 if test "${ac_cv_header_stdc+set}" = set; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002 /* end confdefs.h. */
8003 #include <stdlib.h>
8004 #include <stdarg.h>
8005 #include <string.h>
8006 #include <float.h>
8007
8008 int
8009 main ()
8010 {
8011
8012 ;
8013 return 0;
8014 }
8015 _ACEOF
8016 if ac_fn_c_try_compile "$LINENO"; then :
8017 ac_cv_header_stdc=yes
8018 else
8019 ac_cv_header_stdc=no
8020 fi
8021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022
8023 if test $ac_cv_header_stdc = yes; then
8024 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h. */
8027 #include <string.h>
8028
8029 _ACEOF
8030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8031 $EGREP "memchr" >/dev/null 2>&1; then :
8032
8033 else
8034 ac_cv_header_stdc=no
8035 fi
8036 rm -f conftest*
8037
8038 fi
8039
8040 if test $ac_cv_header_stdc = yes; then
8041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8044 #include <stdlib.h>
8045
8046 _ACEOF
8047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8048 $EGREP "free" >/dev/null 2>&1; then :
8049
8050 else
8051 ac_cv_header_stdc=no
8052 fi
8053 rm -f conftest*
8054
8055 fi
8056
8057 if test $ac_cv_header_stdc = yes; then
8058 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8059 if test "$cross_compiling" = yes; then :
8060 :
8061 else
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8064 #include <ctype.h>
8065 #include <stdlib.h>
8066 #if ((' ' & 0x0FF) == 0x020)
8067 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8068 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8069 #else
8070 # define ISLOWER(c) \
8071 (('a' <= (c) && (c) <= 'i') \
8072 || ('j' <= (c) && (c) <= 'r') \
8073 || ('s' <= (c) && (c) <= 'z'))
8074 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8075 #endif
8076
8077 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8078 int
8079 main ()
8080 {
8081 int i;
8082 for (i = 0; i < 256; i++)
8083 if (XOR (islower (i), ISLOWER (i))
8084 || toupper (i) != TOUPPER (i))
8085 return 2;
8086 return 0;
8087 }
8088 _ACEOF
8089 if ac_fn_c_try_run "$LINENO"; then :
8090
8091 else
8092 ac_cv_header_stdc=no
8093 fi
8094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8095 conftest.$ac_objext conftest.beam conftest.$ac_ext
8096 fi
8097
8098 fi
8099 fi
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8101 $as_echo "$ac_cv_header_stdc" >&6; }
8102 if test $ac_cv_header_stdc = yes; then
8103
8104 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8105
8106 fi
8107
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8109 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8110 if test "${ac_cv_header_time+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8115 #include <sys/types.h>
8116 #include <sys/time.h>
8117 #include <time.h>
8118
8119 int
8120 main ()
8121 {
8122 if ((struct tm *) 0)
8123 return 0;
8124 ;
8125 return 0;
8126 }
8127 _ACEOF
8128 if ac_fn_c_try_compile "$LINENO"; then :
8129 ac_cv_header_time=yes
8130 else
8131 ac_cv_header_time=no
8132 fi
8133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134 fi
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8136 $as_echo "$ac_cv_header_time" >&6; }
8137 if test $ac_cv_header_time = yes; then
8138
8139 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8140
8141 fi
8142
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8144 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8145 if test "${gcc_cv_header_string+set}" = set; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150 #include <string.h>
8151 #include <strings.h>
8152 int
8153 main ()
8154 {
8155
8156 ;
8157 return 0;
8158 }
8159 _ACEOF
8160 if ac_fn_c_try_compile "$LINENO"; then :
8161 gcc_cv_header_string=yes
8162 else
8163 gcc_cv_header_string=no
8164 fi
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 fi
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8168 $as_echo "$gcc_cv_header_string" >&6; }
8169 if test $gcc_cv_header_string = yes; then
8170
8171 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8172
8173 fi
8174
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8176 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8177 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8178 $as_echo_n "(cached) " >&6
8179 else
8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8182 #include <sys/types.h>
8183 #include <sys/wait.h>
8184 #ifndef WEXITSTATUS
8185 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8186 #endif
8187 #ifndef WIFEXITED
8188 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8189 #endif
8190
8191 int
8192 main ()
8193 {
8194 int s;
8195 wait (&s);
8196 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8197 ;
8198 return 0;
8199 }
8200 _ACEOF
8201 if ac_fn_c_try_compile "$LINENO"; then :
8202 ac_cv_header_sys_wait_h=yes
8203 else
8204 ac_cv_header_sys_wait_h=no
8205 fi
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207 fi
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8209 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8210 if test $ac_cv_header_sys_wait_h = yes; then
8211
8212 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8213
8214 fi
8215
8216 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8217 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8218 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8219 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8220 do :
8221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8222 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8223 eval as_val=\$$as_ac_Header
8224 if test "x$as_val" = x""yes; then :
8225 cat >>confdefs.h <<_ACEOF
8226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8227 _ACEOF
8228
8229 fi
8230 done
8231
8232
8233 # Check for thread headers.
8234 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8235 if test "x$ac_cv_header_thread_h" = x""yes; then :
8236 have_thread_h=yes
8237 else
8238 have_thread_h=
8239 fi
8240
8241 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8242 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8243 have_pthread_h=yes
8244 else
8245 have_pthread_h=
8246 fi
8247
8248
8249 # These tests can't be done till we know if we have limits.h.
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8251 $as_echo_n "checking for CHAR_BIT... " >&6; }
8252 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8253 $as_echo_n "(cached) " >&6
8254 else
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8257 #ifdef HAVE_LIMITS_H
8258 #include <limits.h>
8259 #endif
8260 #ifdef CHAR_BIT
8261 found
8262 #endif
8263 _ACEOF
8264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8265 $EGREP "found" >/dev/null 2>&1; then :
8266 gcc_cv_decl_char_bit=yes
8267 else
8268 gcc_cv_decl_char_bit=no
8269 fi
8270 rm -f conftest*
8271
8272
8273 fi
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8275 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8276 if test $gcc_cv_decl_char_bit = no; then
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8278 $as_echo_n "checking number of bits in a byte... " >&6; }
8279 if test "${gcc_cv_c_nbby+set}" = set; then :
8280 $as_echo_n "(cached) " >&6
8281 else
8282 i=8
8283 gcc_cv_c_nbby=
8284 while test $i -lt 65; do
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8287
8288 int
8289 main ()
8290 {
8291 switch(0) {
8292 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8293 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8294 ; }
8295 ;
8296 return 0;
8297 }
8298 _ACEOF
8299 if ac_fn_c_try_compile "$LINENO"; then :
8300 gcc_cv_c_nbby=$i; break
8301 fi
8302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8303 i=`expr $i + 1`
8304 done
8305 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8306
8307 fi
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8309 $as_echo "$gcc_cv_c_nbby" >&6; }
8310 if test $gcc_cv_c_nbby = failed; then
8311 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8312 else
8313
8314 cat >>confdefs.h <<_ACEOF
8315 #define CHAR_BIT $gcc_cv_c_nbby
8316 _ACEOF
8317
8318 fi
8319 fi
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8321 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8322 if test "${ac_cv_c_bigendian+set}" = set; then :
8323 $as_echo_n "(cached) " >&6
8324 else
8325 ac_cv_c_bigendian=unknown
8326 # See if we're dealing with a universal compiler.
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8329 #ifndef __APPLE_CC__
8330 not a universal capable compiler
8331 #endif
8332 typedef int dummy;
8333
8334 _ACEOF
8335 if ac_fn_c_try_compile "$LINENO"; then :
8336
8337 # Check for potential -arch flags. It is not universal unless
8338 # there are at least two -arch flags with different values.
8339 ac_arch=
8340 ac_prev=
8341 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8342 if test -n "$ac_prev"; then
8343 case $ac_word in
8344 i?86 | x86_64 | ppc | ppc64)
8345 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8346 ac_arch=$ac_word
8347 else
8348 ac_cv_c_bigendian=universal
8349 break
8350 fi
8351 ;;
8352 esac
8353 ac_prev=
8354 elif test "x$ac_word" = "x-arch"; then
8355 ac_prev=arch
8356 fi
8357 done
8358 fi
8359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360 if test $ac_cv_c_bigendian = unknown; then
8361 # See if sys/param.h defines the BYTE_ORDER macro.
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8364 #include <sys/types.h>
8365 #include <sys/param.h>
8366
8367 int
8368 main ()
8369 {
8370 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8371 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8372 && LITTLE_ENDIAN)
8373 bogus endian macros
8374 #endif
8375
8376 ;
8377 return 0;
8378 }
8379 _ACEOF
8380 if ac_fn_c_try_compile "$LINENO"; then :
8381 # It does; now see whether it defined to BIG_ENDIAN or not.
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8384 #include <sys/types.h>
8385 #include <sys/param.h>
8386
8387 int
8388 main ()
8389 {
8390 #if BYTE_ORDER != BIG_ENDIAN
8391 not big endian
8392 #endif
8393
8394 ;
8395 return 0;
8396 }
8397 _ACEOF
8398 if ac_fn_c_try_compile "$LINENO"; then :
8399 ac_cv_c_bigendian=yes
8400 else
8401 ac_cv_c_bigendian=no
8402 fi
8403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404 fi
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 fi
8407 if test $ac_cv_c_bigendian = unknown; then
8408 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410 /* end confdefs.h. */
8411 #include <limits.h>
8412
8413 int
8414 main ()
8415 {
8416 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8417 bogus endian macros
8418 #endif
8419
8420 ;
8421 return 0;
8422 }
8423 _ACEOF
8424 if ac_fn_c_try_compile "$LINENO"; then :
8425 # It does; now see whether it defined to _BIG_ENDIAN or not.
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8428 #include <limits.h>
8429
8430 int
8431 main ()
8432 {
8433 #ifndef _BIG_ENDIAN
8434 not big endian
8435 #endif
8436
8437 ;
8438 return 0;
8439 }
8440 _ACEOF
8441 if ac_fn_c_try_compile "$LINENO"; then :
8442 ac_cv_c_bigendian=yes
8443 else
8444 ac_cv_c_bigendian=no
8445 fi
8446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447 fi
8448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8449 fi
8450 if test $ac_cv_c_bigendian = unknown; then
8451 # Compile a test program.
8452 if test "$cross_compiling" = yes; then :
8453 # Try to guess by grepping values from an object file.
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8456 short int ascii_mm[] =
8457 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8458 short int ascii_ii[] =
8459 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8460 int use_ascii (int i) {
8461 return ascii_mm[i] + ascii_ii[i];
8462 }
8463 short int ebcdic_ii[] =
8464 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8465 short int ebcdic_mm[] =
8466 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8467 int use_ebcdic (int i) {
8468 return ebcdic_mm[i] + ebcdic_ii[i];
8469 }
8470 extern int foo;
8471
8472 int
8473 main ()
8474 {
8475 return use_ascii (foo) == use_ebcdic (foo);
8476 ;
8477 return 0;
8478 }
8479 _ACEOF
8480 if ac_fn_c_try_compile "$LINENO"; then :
8481 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8482 ac_cv_c_bigendian=yes
8483 fi
8484 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8485 if test "$ac_cv_c_bigendian" = unknown; then
8486 ac_cv_c_bigendian=no
8487 else
8488 # finding both strings is unlikely to happen, but who knows?
8489 ac_cv_c_bigendian=unknown
8490 fi
8491 fi
8492 fi
8493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8494 else
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497 $ac_includes_default
8498 int
8499 main ()
8500 {
8501
8502 /* Are we little or big endian? From Harbison&Steele. */
8503 union
8504 {
8505 long int l;
8506 char c[sizeof (long int)];
8507 } u;
8508 u.l = 1;
8509 return u.c[sizeof (long int) - 1] == 1;
8510
8511 ;
8512 return 0;
8513 }
8514 _ACEOF
8515 if ac_fn_c_try_run "$LINENO"; then :
8516 ac_cv_c_bigendian=no
8517 else
8518 ac_cv_c_bigendian=yes
8519 fi
8520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8521 conftest.$ac_objext conftest.beam conftest.$ac_ext
8522 fi
8523
8524 fi
8525 fi
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8527 $as_echo "$ac_cv_c_bigendian" >&6; }
8528 case $ac_cv_c_bigendian in #(
8529 yes)
8530 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8531 ;; #(
8532 no)
8533 ;; #(
8534 universal)
8535
8536 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8537
8538 ;; #(
8539 *)
8540 as_fn_error "unknown endianness
8541 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8542 esac
8543
8544
8545 # ----------------------
8546 # Checks for C++ headers
8547 # ----------------------
8548
8549 ac_ext=cpp
8550 ac_cpp='$CXXCPP $CPPFLAGS'
8551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8555 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8556 if test -z "$CXXCPP"; then
8557 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
8559 else
8560 # Double quotes because CXXCPP needs to be expanded
8561 for CXXCPP in "$CXX -E" "/lib/cpp"
8562 do
8563 ac_preproc_ok=false
8564 for ac_cxx_preproc_warn_flag in '' yes
8565 do
8566 # Use a header file that comes with gcc, so configuring glibc
8567 # with a fresh cross-compiler works.
8568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8569 # <limits.h> exists even on freestanding compilers.
8570 # On the NeXT, cc -E runs the code through the compiler's parser,
8571 # not just through cpp. "Syntax error" is here to catch this case.
8572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8573 /* end confdefs.h. */
8574 #ifdef __STDC__
8575 # include <limits.h>
8576 #else
8577 # include <assert.h>
8578 #endif
8579 Syntax error
8580 _ACEOF
8581 if ac_fn_cxx_try_cpp "$LINENO"; then :
8582
8583 else
8584 # Broken: fails on valid input.
8585 continue
8586 fi
8587 rm -f conftest.err conftest.$ac_ext
8588
8589 # OK, works on sane cases. Now check whether nonexistent headers
8590 # can be detected and how.
8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8593 #include <ac_nonexistent.h>
8594 _ACEOF
8595 if ac_fn_cxx_try_cpp "$LINENO"; then :
8596 # Broken: success on invalid input.
8597 continue
8598 else
8599 # Passes both tests.
8600 ac_preproc_ok=:
8601 break
8602 fi
8603 rm -f conftest.err conftest.$ac_ext
8604
8605 done
8606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8607 rm -f conftest.err conftest.$ac_ext
8608 if $ac_preproc_ok; then :
8609 break
8610 fi
8611
8612 done
8613 ac_cv_prog_CXXCPP=$CXXCPP
8614
8615 fi
8616 CXXCPP=$ac_cv_prog_CXXCPP
8617 else
8618 ac_cv_prog_CXXCPP=$CXXCPP
8619 fi
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8621 $as_echo "$CXXCPP" >&6; }
8622 ac_preproc_ok=false
8623 for ac_cxx_preproc_warn_flag in '' yes
8624 do
8625 # Use a header file that comes with gcc, so configuring glibc
8626 # with a fresh cross-compiler works.
8627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8628 # <limits.h> exists even on freestanding compilers.
8629 # On the NeXT, cc -E runs the code through the compiler's parser,
8630 # not just through cpp. "Syntax error" is here to catch this case.
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8633 #ifdef __STDC__
8634 # include <limits.h>
8635 #else
8636 # include <assert.h>
8637 #endif
8638 Syntax error
8639 _ACEOF
8640 if ac_fn_cxx_try_cpp "$LINENO"; then :
8641
8642 else
8643 # Broken: fails on valid input.
8644 continue
8645 fi
8646 rm -f conftest.err conftest.$ac_ext
8647
8648 # OK, works on sane cases. Now check whether nonexistent headers
8649 # can be detected and how.
8650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651 /* end confdefs.h. */
8652 #include <ac_nonexistent.h>
8653 _ACEOF
8654 if ac_fn_cxx_try_cpp "$LINENO"; then :
8655 # Broken: success on invalid input.
8656 continue
8657 else
8658 # Passes both tests.
8659 ac_preproc_ok=:
8660 break
8661 fi
8662 rm -f conftest.err conftest.$ac_ext
8663
8664 done
8665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8666 rm -f conftest.err conftest.$ac_ext
8667 if $ac_preproc_ok; then :
8668
8669 else
8670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8673 See \`config.log' for more details." >&5
8674 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8675 See \`config.log' for more details." >&2;}; }
8676 fi
8677
8678 ac_ext=c
8679 ac_cpp='$CPP $CPPFLAGS'
8680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8683
8684
8685 ac_ext=cpp
8686 ac_cpp='$CXXCPP $CPPFLAGS'
8687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8690
8691
8692
8693
8694 for ac_header in unordered_map
8695 do :
8696 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8697 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8698 cat >>confdefs.h <<_ACEOF
8699 #define HAVE_UNORDERED_MAP 1
8700 _ACEOF
8701
8702 fi
8703 done
8704
8705 for ac_header in tr1/unordered_map
8706 do :
8707 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8708 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8709 cat >>confdefs.h <<_ACEOF
8710 #define HAVE_TR1_UNORDERED_MAP 1
8711 _ACEOF
8712
8713 fi
8714 done
8715
8716 for ac_header in ext/hash_map
8717 do :
8718 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8719 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8720 cat >>confdefs.h <<_ACEOF
8721 #define HAVE_EXT_HASH_MAP 1
8722 _ACEOF
8723
8724 fi
8725 done
8726
8727
8728 ac_ext=c
8729 ac_cpp='$CPP $CPPFLAGS'
8730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8733
8734
8735 # --------
8736 # UNSORTED
8737 # --------
8738
8739
8740 # These libraries may be used by collect2.
8741 # We may need a special search path to get them linked.
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8743 $as_echo_n "checking for collect2 libraries... " >&6; }
8744 if test "${gcc_cv_collect2_libs+set}" = set; then :
8745 $as_echo_n "(cached) " >&6
8746 else
8747 save_LIBS="$LIBS"
8748 for libs in '' -lld -lmld \
8749 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8750 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8751 do
8752 LIBS="$libs"
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8755
8756 /* Override any GCC internal prototype to avoid an error.
8757 Use char because int might match the return type of a GCC
8758 builtin and then its argument prototype would still apply. */
8759 #ifdef __cplusplus
8760 extern "C"
8761 #endif
8762 char ldopen ();
8763 int
8764 main ()
8765 {
8766 return ldopen ();
8767 ;
8768 return 0;
8769 }
8770 _ACEOF
8771 if ac_fn_c_try_link "$LINENO"; then :
8772 gcc_cv_collect2_libs="$libs"; break
8773 fi
8774 rm -f core conftest.err conftest.$ac_objext \
8775 conftest$ac_exeext conftest.$ac_ext
8776 done
8777 LIBS="$save_LIBS"
8778 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8779 fi
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8781 $as_echo "$gcc_cv_collect2_libs" >&6; }
8782 case $gcc_cv_collect2_libs in
8783 "none required") ;;
8784 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8785 esac
8786
8787
8788 # When building Ada code on Alpha, we need exc_resume which is usually in
8789 # -lexc. So test for it.
8790 save_LIBS="$LIBS"
8791 LIBS=
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8793 $as_echo_n "checking for library containing exc_resume... " >&6; }
8794 if test "${ac_cv_search_exc_resume+set}" = set; then :
8795 $as_echo_n "(cached) " >&6
8796 else
8797 ac_func_search_save_LIBS=$LIBS
8798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8799 /* end confdefs.h. */
8800
8801 /* Override any GCC internal prototype to avoid an error.
8802 Use char because int might match the return type of a GCC
8803 builtin and then its argument prototype would still apply. */
8804 #ifdef __cplusplus
8805 extern "C"
8806 #endif
8807 char exc_resume ();
8808 int
8809 main ()
8810 {
8811 return exc_resume ();
8812 ;
8813 return 0;
8814 }
8815 _ACEOF
8816 for ac_lib in '' exc; do
8817 if test -z "$ac_lib"; then
8818 ac_res="none required"
8819 else
8820 ac_res=-l$ac_lib
8821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8822 fi
8823 if ac_fn_c_try_link "$LINENO"; then :
8824 ac_cv_search_exc_resume=$ac_res
8825 fi
8826 rm -f core conftest.err conftest.$ac_objext \
8827 conftest$ac_exeext
8828 if test "${ac_cv_search_exc_resume+set}" = set; then :
8829 break
8830 fi
8831 done
8832 if test "${ac_cv_search_exc_resume+set}" = set; then :
8833
8834 else
8835 ac_cv_search_exc_resume=no
8836 fi
8837 rm conftest.$ac_ext
8838 LIBS=$ac_func_search_save_LIBS
8839 fi
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8841 $as_echo "$ac_cv_search_exc_resume" >&6; }
8842 ac_res=$ac_cv_search_exc_resume
8843 if test "$ac_res" != no; then :
8844 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8845
8846 fi
8847
8848 GNAT_LIBEXC="$LIBS"
8849 LIBS="$save_LIBS"
8850
8851
8852 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8853 save_LIBS="$LIBS"
8854 LIBS=
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8856 $as_echo_n "checking for library containing kstat_open... " >&6; }
8857 if test "${ac_cv_search_kstat_open+set}" = set; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860 ac_func_search_save_LIBS=$LIBS
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8863
8864 /* Override any GCC internal prototype to avoid an error.
8865 Use char because int might match the return type of a GCC
8866 builtin and then its argument prototype would still apply. */
8867 #ifdef __cplusplus
8868 extern "C"
8869 #endif
8870 char kstat_open ();
8871 int
8872 main ()
8873 {
8874 return kstat_open ();
8875 ;
8876 return 0;
8877 }
8878 _ACEOF
8879 for ac_lib in '' kstat; do
8880 if test -z "$ac_lib"; then
8881 ac_res="none required"
8882 else
8883 ac_res=-l$ac_lib
8884 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8885 fi
8886 if ac_fn_c_try_link "$LINENO"; then :
8887 ac_cv_search_kstat_open=$ac_res
8888 fi
8889 rm -f core conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext
8891 if test "${ac_cv_search_kstat_open+set}" = set; then :
8892 break
8893 fi
8894 done
8895 if test "${ac_cv_search_kstat_open+set}" = set; then :
8896
8897 else
8898 ac_cv_search_kstat_open=no
8899 fi
8900 rm conftest.$ac_ext
8901 LIBS=$ac_func_search_save_LIBS
8902 fi
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8904 $as_echo "$ac_cv_search_kstat_open" >&6; }
8905 ac_res=$ac_cv_search_kstat_open
8906 if test "$ac_res" != no; then :
8907 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8908
8909 fi
8910
8911 EXTRA_GCC_LIBS="$LIBS"
8912 LIBS="$save_LIBS"
8913
8914
8915 # Some systems put ldexp and frexp in libm instead of libc; assume
8916 # they're both in the same place. jcf-dump needs them.
8917 save_LIBS="$LIBS"
8918 LIBS=
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8920 $as_echo_n "checking for library containing ldexp... " >&6; }
8921 if test "${ac_cv_search_ldexp+set}" = set; then :
8922 $as_echo_n "(cached) " >&6
8923 else
8924 ac_func_search_save_LIBS=$LIBS
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927
8928 /* Override any GCC internal prototype to avoid an error.
8929 Use char because int might match the return type of a GCC
8930 builtin and then its argument prototype would still apply. */
8931 #ifdef __cplusplus
8932 extern "C"
8933 #endif
8934 char ldexp ();
8935 int
8936 main ()
8937 {
8938 return ldexp ();
8939 ;
8940 return 0;
8941 }
8942 _ACEOF
8943 for ac_lib in '' m; do
8944 if test -z "$ac_lib"; then
8945 ac_res="none required"
8946 else
8947 ac_res=-l$ac_lib
8948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8949 fi
8950 if ac_fn_c_try_link "$LINENO"; then :
8951 ac_cv_search_ldexp=$ac_res
8952 fi
8953 rm -f core conftest.err conftest.$ac_objext \
8954 conftest$ac_exeext
8955 if test "${ac_cv_search_ldexp+set}" = set; then :
8956 break
8957 fi
8958 done
8959 if test "${ac_cv_search_ldexp+set}" = set; then :
8960
8961 else
8962 ac_cv_search_ldexp=no
8963 fi
8964 rm conftest.$ac_ext
8965 LIBS=$ac_func_search_save_LIBS
8966 fi
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8968 $as_echo "$ac_cv_search_ldexp" >&6; }
8969 ac_res=$ac_cv_search_ldexp
8970 if test "$ac_res" != no; then :
8971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8972
8973 fi
8974
8975 LDEXP_LIB="$LIBS"
8976 LIBS="$save_LIBS"
8977
8978
8979 # Use <inttypes.h> only if it exists,
8980 # doesn't clash with <sys/types.h>, and declares intmax_t.
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8982 $as_echo_n "checking for inttypes.h... " >&6; }
8983 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8984 $as_echo_n "(cached) " >&6
8985 else
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988 #include <sys/types.h>
8989 #include <inttypes.h>
8990 int
8991 main ()
8992 {
8993 intmax_t i = -1;
8994 ;
8995 return 0;
8996 }
8997 _ACEOF
8998 if ac_fn_c_try_compile "$LINENO"; then :
8999 gcc_cv_header_inttypes_h=yes
9000 else
9001 gcc_cv_header_inttypes_h=no
9002 fi
9003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004 fi
9005
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9007 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9008 if test $gcc_cv_header_inttypes_h = yes; then
9009
9010 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9011
9012 fi
9013
9014
9015
9016 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9017 sysconf strsignal getrusage nl_langinfo \
9018 gettimeofday mbstowcs wcswidth mmap setlocale \
9019 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
9020 do :
9021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9022 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9023 eval as_val=\$$as_ac_var
9024 if test "x$as_val" = x""yes; then :
9025 cat >>confdefs.h <<_ACEOF
9026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9027 _ACEOF
9028
9029 fi
9030 done
9031
9032
9033 if test x$ac_cv_func_mbstowcs = xyes; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9035 $as_echo_n "checking whether mbstowcs works... " >&6; }
9036 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 if test "$cross_compiling" = yes; then :
9040 gcc_cv_func_mbstowcs_works=yes
9041 else
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9044 #include <stdlib.h>
9045 int main()
9046 {
9047 mbstowcs(0, "", 0);
9048 return 0;
9049 }
9050 _ACEOF
9051 if ac_fn_c_try_run "$LINENO"; then :
9052 gcc_cv_func_mbstowcs_works=yes
9053 else
9054 gcc_cv_func_mbstowcs_works=no
9055 fi
9056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9057 conftest.$ac_objext conftest.beam conftest.$ac_ext
9058 fi
9059
9060 fi
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9062 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9063 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9064
9065 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9066
9067 fi
9068 fi
9069
9070 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9071 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9072
9073 else
9074
9075 cat >>confdefs.h <<_ACEOF
9076 #define ssize_t int
9077 _ACEOF
9078
9079 fi
9080
9081 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9082 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9083
9084 else
9085
9086 cat >>confdefs.h <<_ACEOF
9087 #define caddr_t char *
9088 _ACEOF
9089
9090 fi
9091
9092
9093
9094 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9095 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9096 gcc_header_sys_mman_h=yes
9097 else
9098 gcc_header_sys_mman_h=no
9099 fi
9100
9101 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9102 if test "x$ac_cv_func_mmap" = x""yes; then :
9103 gcc_func_mmap=yes
9104 else
9105 gcc_func_mmap=no
9106 fi
9107
9108 if test "$gcc_header_sys_mman_h" != yes \
9109 || test "$gcc_func_mmap" != yes; then
9110 gcc_cv_func_mmap_file=no
9111 gcc_cv_func_mmap_dev_zero=no
9112 gcc_cv_func_mmap_anon=no
9113 else
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9115 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9116 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9117 $as_echo_n "(cached) " >&6
9118 else
9119 # Add a system to this blacklist if
9120 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9121 # memory area containing the same data that you'd get if you applied
9122 # read() to the same fd. The only system known to have a problem here
9123 # is VMS, where text files have record structure.
9124 case "$host_os" in
9125 vms* | ultrix*)
9126 gcc_cv_func_mmap_file=no ;;
9127 *)
9128 gcc_cv_func_mmap_file=yes;;
9129 esac
9130 fi
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9132 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9134 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9135 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9136 $as_echo_n "(cached) " >&6
9137 else
9138 # Add a system to this blacklist if it has mmap() but /dev/zero
9139 # does not exist, or if mmapping /dev/zero does not give anonymous
9140 # zeroed pages with both the following properties:
9141 # 1. If you map N consecutive pages in with one call, and then
9142 # unmap any subset of those pages, the pages that were not
9143 # explicitly unmapped remain accessible.
9144 # 2. If you map two adjacent blocks of memory and then unmap them
9145 # both at once, they must both go away.
9146 # Systems known to be in this category are Windows (all variants),
9147 # VMS, and Darwin.
9148 case "$host_os" in
9149 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9150 gcc_cv_func_mmap_dev_zero=no ;;
9151 *)
9152 gcc_cv_func_mmap_dev_zero=yes;;
9153 esac
9154 fi
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9156 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9157
9158 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9160 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9161 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9162 $as_echo_n "(cached) " >&6
9163 else
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9166 #include <sys/types.h>
9167 #include <sys/mman.h>
9168 #include <unistd.h>
9169
9170 #ifndef MAP_ANONYMOUS
9171 #define MAP_ANONYMOUS MAP_ANON
9172 #endif
9173
9174 int
9175 main ()
9176 {
9177 int n = MAP_ANONYMOUS;
9178 ;
9179 return 0;
9180 }
9181 _ACEOF
9182 if ac_fn_c_try_compile "$LINENO"; then :
9183 gcc_cv_decl_map_anon=yes
9184 else
9185 gcc_cv_decl_map_anon=no
9186 fi
9187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188 fi
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9190 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9191
9192 if test $gcc_cv_decl_map_anon = no; then
9193 gcc_cv_func_mmap_anon=no
9194 else
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9196 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9197 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9198 $as_echo_n "(cached) " >&6
9199 else
9200 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9201 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9202 # doesn't give anonymous zeroed pages with the same properties listed
9203 # above for use of /dev/zero.
9204 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9205 case "$host_os" in
9206 vms* | cygwin* | pe | mingw* | sco* | udk* )
9207 gcc_cv_func_mmap_anon=no ;;
9208 *)
9209 gcc_cv_func_mmap_anon=yes;;
9210 esac
9211 fi
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9213 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9214 fi
9215 fi
9216
9217 if test $gcc_cv_func_mmap_file = yes; then
9218
9219 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9220
9221 fi
9222 if test $gcc_cv_func_mmap_dev_zero = yes; then
9223
9224 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9225
9226 fi
9227 if test $gcc_cv_func_mmap_anon = yes; then
9228
9229 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9230
9231 fi
9232
9233
9234 case "${host}" in
9235 *-*-*vms*)
9236 # Under VMS, vfork works very differently than on Unix. The standard test
9237 # won't work, and it isn't easily adaptable. It makes more sense to
9238 # just force it.
9239 ac_cv_func_vfork_works=yes
9240 ;;
9241 esac
9242 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9243 if test "x$ac_cv_type_pid_t" = x""yes; then :
9244
9245 else
9246
9247 cat >>confdefs.h <<_ACEOF
9248 #define pid_t int
9249 _ACEOF
9250
9251 fi
9252
9253 for ac_header in vfork.h
9254 do :
9255 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9256 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9257 cat >>confdefs.h <<_ACEOF
9258 #define HAVE_VFORK_H 1
9259 _ACEOF
9260
9261 fi
9262 done
9263
9264 for ac_func in fork vfork
9265 do :
9266 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9267 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9268 eval as_val=\$$as_ac_var
9269 if test "x$as_val" = x""yes; then :
9270 cat >>confdefs.h <<_ACEOF
9271 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9272 _ACEOF
9273
9274 fi
9275 done
9276
9277 if test "x$ac_cv_func_fork" = xyes; then
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9279 $as_echo_n "checking for working fork... " >&6; }
9280 if test "${ac_cv_func_fork_works+set}" = set; then :
9281 $as_echo_n "(cached) " >&6
9282 else
9283 if test "$cross_compiling" = yes; then :
9284 ac_cv_func_fork_works=cross
9285 else
9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h. */
9288 $ac_includes_default
9289 int
9290 main ()
9291 {
9292
9293 /* By Ruediger Kuhlmann. */
9294 return fork () < 0;
9295
9296 ;
9297 return 0;
9298 }
9299 _ACEOF
9300 if ac_fn_c_try_run "$LINENO"; then :
9301 ac_cv_func_fork_works=yes
9302 else
9303 ac_cv_func_fork_works=no
9304 fi
9305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9306 conftest.$ac_objext conftest.beam conftest.$ac_ext
9307 fi
9308
9309 fi
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9311 $as_echo "$ac_cv_func_fork_works" >&6; }
9312
9313 else
9314 ac_cv_func_fork_works=$ac_cv_func_fork
9315 fi
9316 if test "x$ac_cv_func_fork_works" = xcross; then
9317 case $host in
9318 *-*-amigaos* | *-*-msdosdjgpp*)
9319 # Override, as these systems have only a dummy fork() stub
9320 ac_cv_func_fork_works=no
9321 ;;
9322 *)
9323 ac_cv_func_fork_works=yes
9324 ;;
9325 esac
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9327 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9328 fi
9329 ac_cv_func_vfork_works=$ac_cv_func_vfork
9330 if test "x$ac_cv_func_vfork" = xyes; then
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9332 $as_echo_n "checking for working vfork... " >&6; }
9333 if test "${ac_cv_func_vfork_works+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
9335 else
9336 if test "$cross_compiling" = yes; then :
9337 ac_cv_func_vfork_works=cross
9338 else
9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9340 /* end confdefs.h. */
9341 /* Thanks to Paul Eggert for this test. */
9342 $ac_includes_default
9343 #include <sys/wait.h>
9344 #ifdef HAVE_VFORK_H
9345 # include <vfork.h>
9346 #endif
9347 /* On some sparc systems, changes by the child to local and incoming
9348 argument registers are propagated back to the parent. The compiler
9349 is told about this with #include <vfork.h>, but some compilers
9350 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9351 static variable whose address is put into a register that is
9352 clobbered by the vfork. */
9353 static void
9354 #ifdef __cplusplus
9355 sparc_address_test (int arg)
9356 # else
9357 sparc_address_test (arg) int arg;
9358 #endif
9359 {
9360 static pid_t child;
9361 if (!child) {
9362 child = vfork ();
9363 if (child < 0) {
9364 perror ("vfork");
9365 _exit(2);
9366 }
9367 if (!child) {
9368 arg = getpid();
9369 write(-1, "", 0);
9370 _exit (arg);
9371 }
9372 }
9373 }
9374
9375 int
9376 main ()
9377 {
9378 pid_t parent = getpid ();
9379 pid_t child;
9380
9381 sparc_address_test (0);
9382
9383 child = vfork ();
9384
9385 if (child == 0) {
9386 /* Here is another test for sparc vfork register problems. This
9387 test uses lots of local variables, at least as many local
9388 variables as main has allocated so far including compiler
9389 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9390 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9391 reuse the register of parent for one of the local variables,
9392 since it will think that parent can't possibly be used any more
9393 in this routine. Assigning to the local variable will thus
9394 munge parent in the parent process. */
9395 pid_t
9396 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9397 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9398 /* Convince the compiler that p..p7 are live; otherwise, it might
9399 use the same hardware register for all 8 local variables. */
9400 if (p != p1 || p != p2 || p != p3 || p != p4
9401 || p != p5 || p != p6 || p != p7)
9402 _exit(1);
9403
9404 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9405 from child file descriptors. If the child closes a descriptor
9406 before it execs or exits, this munges the parent's descriptor
9407 as well. Test for this by closing stdout in the child. */
9408 _exit(close(fileno(stdout)) != 0);
9409 } else {
9410 int status;
9411 struct stat st;
9412
9413 while (wait(&status) != child)
9414 ;
9415 return (
9416 /* Was there some problem with vforking? */
9417 child < 0
9418
9419 /* Did the child fail? (This shouldn't happen.) */
9420 || status
9421
9422 /* Did the vfork/compiler bug occur? */
9423 || parent != getpid()
9424
9425 /* Did the file descriptor bug occur? */
9426 || fstat(fileno(stdout), &st) != 0
9427 );
9428 }
9429 }
9430 _ACEOF
9431 if ac_fn_c_try_run "$LINENO"; then :
9432 ac_cv_func_vfork_works=yes
9433 else
9434 ac_cv_func_vfork_works=no
9435 fi
9436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9437 conftest.$ac_objext conftest.beam conftest.$ac_ext
9438 fi
9439
9440 fi
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9442 $as_echo "$ac_cv_func_vfork_works" >&6; }
9443
9444 fi;
9445 if test "x$ac_cv_func_fork_works" = xcross; then
9446 ac_cv_func_vfork_works=$ac_cv_func_vfork
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9448 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9449 fi
9450
9451 if test "x$ac_cv_func_vfork_works" = xyes; then
9452
9453 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9454
9455 else
9456
9457 $as_echo "#define vfork fork" >>confdefs.h
9458
9459 fi
9460 if test "x$ac_cv_func_fork_works" = xyes; then
9461
9462 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9463
9464 fi
9465
9466
9467 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9468 # iconv() prototype.
9469
9470 if test "X$prefix" = "XNONE"; then
9471 acl_final_prefix="$ac_default_prefix"
9472 else
9473 acl_final_prefix="$prefix"
9474 fi
9475 if test "X$exec_prefix" = "XNONE"; then
9476 acl_final_exec_prefix='${prefix}'
9477 else
9478 acl_final_exec_prefix="$exec_prefix"
9479 fi
9480 acl_save_prefix="$prefix"
9481 prefix="$acl_final_prefix"
9482 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9483 prefix="$acl_save_prefix"
9484
9485
9486 # Check whether --with-gnu-ld was given.
9487 if test "${with_gnu_ld+set}" = set; then :
9488 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9489 else
9490 with_gnu_ld=no
9491 fi
9492
9493 # Prepare PATH_SEPARATOR.
9494 # The user is always right.
9495 if test "${PATH_SEPARATOR+set}" != set; then
9496 echo "#! /bin/sh" >conf$$.sh
9497 echo "exit 0" >>conf$$.sh
9498 chmod +x conf$$.sh
9499 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9500 PATH_SEPARATOR=';'
9501 else
9502 PATH_SEPARATOR=:
9503 fi
9504 rm -f conf$$.sh
9505 fi
9506 ac_prog=ld
9507 if test "$GCC" = yes; then
9508 # Check if gcc -print-prog-name=ld gives a path.
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9510 $as_echo_n "checking for ld used by GCC... " >&6; }
9511 case $host in
9512 *-*-mingw*)
9513 # gcc leaves a trailing carriage return which upsets mingw
9514 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9515 *)
9516 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9517 esac
9518 case $ac_prog in
9519 # Accept absolute paths.
9520 [\\/]* | [A-Za-z]:[\\/]*)
9521 re_direlt='/[^/][^/]*/\.\./'
9522 # Canonicalize the path of ld
9523 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9524 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9525 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9526 done
9527 test -z "$LD" && LD="$ac_prog"
9528 ;;
9529 "")
9530 # If it fails, then pretend we aren't using GCC.
9531 ac_prog=ld
9532 ;;
9533 *)
9534 # If it is relative, then search for the first ld in PATH.
9535 with_gnu_ld=unknown
9536 ;;
9537 esac
9538 elif test "$with_gnu_ld" = yes; then
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9540 $as_echo_n "checking for GNU ld... " >&6; }
9541 else
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9543 $as_echo_n "checking for non-GNU ld... " >&6; }
9544 fi
9545 if test "${acl_cv_path_LD+set}" = set; then :
9546 $as_echo_n "(cached) " >&6
9547 else
9548 if test -z "$LD"; then
9549 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9550 for ac_dir in $PATH; do
9551 test -z "$ac_dir" && ac_dir=.
9552 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9553 acl_cv_path_LD="$ac_dir/$ac_prog"
9554 # Check to see if the program is GNU ld. I'd rather use --version,
9555 # but apparently some GNU ld's only accept -v.
9556 # Break only if it was the GNU/non-GNU ld that we prefer.
9557 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9558 test "$with_gnu_ld" != no && break
9559 else
9560 test "$with_gnu_ld" != yes && break
9561 fi
9562 fi
9563 done
9564 IFS="$ac_save_ifs"
9565 else
9566 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9567 fi
9568 fi
9569
9570 LD="$acl_cv_path_LD"
9571 if test -n "$LD"; then
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9573 $as_echo "$LD" >&6; }
9574 else
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9576 $as_echo "no" >&6; }
9577 fi
9578 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9580 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9581 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9582 $as_echo_n "(cached) " >&6
9583 else
9584 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9585 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9586 acl_cv_prog_gnu_ld=yes
9587 else
9588 acl_cv_prog_gnu_ld=no
9589 fi
9590 fi
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9592 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9593 with_gnu_ld=$acl_cv_prog_gnu_ld
9594
9595
9596
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9598 $as_echo_n "checking for shared library run path origin... " >&6; }
9599 if test "${acl_cv_rpath+set}" = set; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602
9603 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9604 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9605 . ./conftest.sh
9606 rm -f ./conftest.sh
9607 acl_cv_rpath=done
9608
9609 fi
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9611 $as_echo "$acl_cv_rpath" >&6; }
9612 wl="$acl_cv_wl"
9613 libext="$acl_cv_libext"
9614 shlibext="$acl_cv_shlibext"
9615 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9616 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9617 hardcode_direct="$acl_cv_hardcode_direct"
9618 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9619 # Check whether --enable-rpath was given.
9620 if test "${enable_rpath+set}" = set; then :
9621 enableval=$enable_rpath; :
9622 else
9623 enable_rpath=yes
9624 fi
9625
9626
9627
9628
9629
9630
9631
9632
9633 use_additional=yes
9634
9635 acl_save_prefix="$prefix"
9636 prefix="$acl_final_prefix"
9637 acl_save_exec_prefix="$exec_prefix"
9638 exec_prefix="$acl_final_exec_prefix"
9639
9640 eval additional_includedir=\"$includedir\"
9641 eval additional_libdir=\"$libdir\"
9642
9643 exec_prefix="$acl_save_exec_prefix"
9644 prefix="$acl_save_prefix"
9645
9646
9647 # Check whether --with-libiconv-prefix was given.
9648 if test "${with_libiconv_prefix+set}" = set; then :
9649 withval=$with_libiconv_prefix;
9650 if test "X$withval" = "Xno"; then
9651 use_additional=no
9652 else
9653 if test "X$withval" = "X"; then
9654
9655 acl_save_prefix="$prefix"
9656 prefix="$acl_final_prefix"
9657 acl_save_exec_prefix="$exec_prefix"
9658 exec_prefix="$acl_final_exec_prefix"
9659
9660 eval additional_includedir=\"$includedir\"
9661 eval additional_libdir=\"$libdir\"
9662
9663 exec_prefix="$acl_save_exec_prefix"
9664 prefix="$acl_save_prefix"
9665
9666 else
9667 additional_includedir="$withval/include"
9668 additional_libdir="$withval/lib"
9669 fi
9670 fi
9671
9672 fi
9673
9674 LIBICONV=
9675 LTLIBICONV=
9676 INCICONV=
9677 rpathdirs=
9678 ltrpathdirs=
9679 names_already_handled=
9680 names_next_round='iconv '
9681 while test -n "$names_next_round"; do
9682 names_this_round="$names_next_round"
9683 names_next_round=
9684 for name in $names_this_round; do
9685 already_handled=
9686 for n in $names_already_handled; do
9687 if test "$n" = "$name"; then
9688 already_handled=yes
9689 break
9690 fi
9691 done
9692 if test -z "$already_handled"; then
9693 names_already_handled="$names_already_handled $name"
9694 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9695 eval value=\"\$HAVE_LIB$uppername\"
9696 if test -n "$value"; then
9697 if test "$value" = yes; then
9698 eval value=\"\$LIB$uppername\"
9699 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9700 eval value=\"\$LTLIB$uppername\"
9701 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9702 else
9703 :
9704 fi
9705 else
9706 found_dir=
9707 found_la=
9708 found_so=
9709 found_a=
9710 if test $use_additional = yes; then
9711 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9712 found_dir="$additional_libdir"
9713 found_so="$additional_libdir/lib$name.$shlibext"
9714 if test -f "$additional_libdir/lib$name.la"; then
9715 found_la="$additional_libdir/lib$name.la"
9716 fi
9717 else
9718 if test -f "$additional_libdir/lib$name.$libext"; then
9719 found_dir="$additional_libdir"
9720 found_a="$additional_libdir/lib$name.$libext"
9721 if test -f "$additional_libdir/lib$name.la"; then
9722 found_la="$additional_libdir/lib$name.la"
9723 fi
9724 fi
9725 fi
9726 fi
9727 if test "X$found_dir" = "X"; then
9728 for x in $LDFLAGS $LTLIBICONV; do
9729
9730 acl_save_prefix="$prefix"
9731 prefix="$acl_final_prefix"
9732 acl_save_exec_prefix="$exec_prefix"
9733 exec_prefix="$acl_final_exec_prefix"
9734 eval x=\"$x\"
9735 exec_prefix="$acl_save_exec_prefix"
9736 prefix="$acl_save_prefix"
9737
9738 case "$x" in
9739 -L*)
9740 dir=`echo "X$x" | sed -e 's/^X-L//'`
9741 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9742 found_dir="$dir"
9743 found_so="$dir/lib$name.$shlibext"
9744 if test -f "$dir/lib$name.la"; then
9745 found_la="$dir/lib$name.la"
9746 fi
9747 else
9748 if test -f "$dir/lib$name.$libext"; then
9749 found_dir="$dir"
9750 found_a="$dir/lib$name.$libext"
9751 if test -f "$dir/lib$name.la"; then
9752 found_la="$dir/lib$name.la"
9753 fi
9754 fi
9755 fi
9756 ;;
9757 esac
9758 if test "X$found_dir" != "X"; then
9759 break
9760 fi
9761 done
9762 fi
9763 if test "X$found_dir" != "X"; then
9764 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9765 if test "X$found_so" != "X"; then
9766 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9767 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9768 else
9769 haveit=
9770 for x in $ltrpathdirs; do
9771 if test "X$x" = "X$found_dir"; then
9772 haveit=yes
9773 break
9774 fi
9775 done
9776 if test -z "$haveit"; then
9777 ltrpathdirs="$ltrpathdirs $found_dir"
9778 fi
9779 if test "$hardcode_direct" = yes; then
9780 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9781 else
9782 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9783 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9784 haveit=
9785 for x in $rpathdirs; do
9786 if test "X$x" = "X$found_dir"; then
9787 haveit=yes
9788 break
9789 fi
9790 done
9791 if test -z "$haveit"; then
9792 rpathdirs="$rpathdirs $found_dir"
9793 fi
9794 else
9795 haveit=
9796 for x in $LDFLAGS $LIBICONV; do
9797
9798 acl_save_prefix="$prefix"
9799 prefix="$acl_final_prefix"
9800 acl_save_exec_prefix="$exec_prefix"
9801 exec_prefix="$acl_final_exec_prefix"
9802 eval x=\"$x\"
9803 exec_prefix="$acl_save_exec_prefix"
9804 prefix="$acl_save_prefix"
9805
9806 if test "X$x" = "X-L$found_dir"; then
9807 haveit=yes
9808 break
9809 fi
9810 done
9811 if test -z "$haveit"; then
9812 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9813 fi
9814 if test "$hardcode_minus_L" != no; then
9815 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9816 else
9817 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9818 fi
9819 fi
9820 fi
9821 fi
9822 else
9823 if test "X$found_a" != "X"; then
9824 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9825 else
9826 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9827 fi
9828 fi
9829 additional_includedir=
9830 case "$found_dir" in
9831 */lib | */lib/)
9832 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9833 additional_includedir="$basedir/include"
9834 ;;
9835 esac
9836 if test "X$additional_includedir" != "X"; then
9837 if test "X$additional_includedir" != "X/usr/include"; then
9838 haveit=
9839 if test "X$additional_includedir" = "X/usr/local/include"; then
9840 if test -n "$GCC"; then
9841 case $host_os in
9842 linux*) haveit=yes;;
9843 esac
9844 fi
9845 fi
9846 if test -z "$haveit"; then
9847 for x in $CPPFLAGS $INCICONV; do
9848
9849 acl_save_prefix="$prefix"
9850 prefix="$acl_final_prefix"
9851 acl_save_exec_prefix="$exec_prefix"
9852 exec_prefix="$acl_final_exec_prefix"
9853 eval x=\"$x\"
9854 exec_prefix="$acl_save_exec_prefix"
9855 prefix="$acl_save_prefix"
9856
9857 if test "X$x" = "X-I$additional_includedir"; then
9858 haveit=yes
9859 break
9860 fi
9861 done
9862 if test -z "$haveit"; then
9863 if test -d "$additional_includedir"; then
9864 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9865 fi
9866 fi
9867 fi
9868 fi
9869 fi
9870 if test -n "$found_la"; then
9871 save_libdir="$libdir"
9872 case "$found_la" in
9873 */* | *\\*) . "$found_la" ;;
9874 *) . "./$found_la" ;;
9875 esac
9876 libdir="$save_libdir"
9877 for dep in $dependency_libs; do
9878 case "$dep" in
9879 -L*)
9880 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9881 if test "X$additional_libdir" != "X/usr/lib"; then
9882 haveit=
9883 if test "X$additional_libdir" = "X/usr/local/lib"; then
9884 if test -n "$GCC"; then
9885 case $host_os in
9886 linux*) haveit=yes;;
9887 esac
9888 fi
9889 fi
9890 if test -z "$haveit"; then
9891 haveit=
9892 for x in $LDFLAGS $LIBICONV; do
9893
9894 acl_save_prefix="$prefix"
9895 prefix="$acl_final_prefix"
9896 acl_save_exec_prefix="$exec_prefix"
9897 exec_prefix="$acl_final_exec_prefix"
9898 eval x=\"$x\"
9899 exec_prefix="$acl_save_exec_prefix"
9900 prefix="$acl_save_prefix"
9901
9902 if test "X$x" = "X-L$additional_libdir"; then
9903 haveit=yes
9904 break
9905 fi
9906 done
9907 if test -z "$haveit"; then
9908 if test -d "$additional_libdir"; then
9909 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9910 fi
9911 fi
9912 haveit=
9913 for x in $LDFLAGS $LTLIBICONV; do
9914
9915 acl_save_prefix="$prefix"
9916 prefix="$acl_final_prefix"
9917 acl_save_exec_prefix="$exec_prefix"
9918 exec_prefix="$acl_final_exec_prefix"
9919 eval x=\"$x\"
9920 exec_prefix="$acl_save_exec_prefix"
9921 prefix="$acl_save_prefix"
9922
9923 if test "X$x" = "X-L$additional_libdir"; then
9924 haveit=yes
9925 break
9926 fi
9927 done
9928 if test -z "$haveit"; then
9929 if test -d "$additional_libdir"; then
9930 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9931 fi
9932 fi
9933 fi
9934 fi
9935 ;;
9936 -R*)
9937 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9938 if test "$enable_rpath" != no; then
9939 haveit=
9940 for x in $rpathdirs; do
9941 if test "X$x" = "X$dir"; then
9942 haveit=yes
9943 break
9944 fi
9945 done
9946 if test -z "$haveit"; then
9947 rpathdirs="$rpathdirs $dir"
9948 fi
9949 haveit=
9950 for x in $ltrpathdirs; do
9951 if test "X$x" = "X$dir"; then
9952 haveit=yes
9953 break
9954 fi
9955 done
9956 if test -z "$haveit"; then
9957 ltrpathdirs="$ltrpathdirs $dir"
9958 fi
9959 fi
9960 ;;
9961 -l*)
9962 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9963 ;;
9964 *.la)
9965 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9966 ;;
9967 *)
9968 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9969 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9970 ;;
9971 esac
9972 done
9973 fi
9974 else
9975 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9976 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9977 fi
9978 fi
9979 fi
9980 done
9981 done
9982 if test "X$rpathdirs" != "X"; then
9983 if test -n "$hardcode_libdir_separator"; then
9984 alldirs=
9985 for found_dir in $rpathdirs; do
9986 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9987 done
9988 acl_save_libdir="$libdir"
9989 libdir="$alldirs"
9990 eval flag=\"$hardcode_libdir_flag_spec\"
9991 libdir="$acl_save_libdir"
9992 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9993 else
9994 for found_dir in $rpathdirs; do
9995 acl_save_libdir="$libdir"
9996 libdir="$found_dir"
9997 eval flag=\"$hardcode_libdir_flag_spec\"
9998 libdir="$acl_save_libdir"
9999 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10000 done
10001 fi
10002 fi
10003 if test "X$ltrpathdirs" != "X"; then
10004 for found_dir in $ltrpathdirs; do
10005 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10006 done
10007 fi
10008
10009
10010 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10011 ac_ext=cpp
10012 ac_cpp='$CXXCPP $CPPFLAGS'
10013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10016
10017
10018
10019
10020
10021
10022 am_save_CPPFLAGS="$CPPFLAGS"
10023
10024 for element in $INCICONV; do
10025 haveit=
10026 for x in $CPPFLAGS; do
10027
10028 acl_save_prefix="$prefix"
10029 prefix="$acl_final_prefix"
10030 acl_save_exec_prefix="$exec_prefix"
10031 exec_prefix="$acl_final_exec_prefix"
10032 eval x=\"$x\"
10033 exec_prefix="$acl_save_exec_prefix"
10034 prefix="$acl_save_prefix"
10035
10036 if test "X$x" = "X$element"; then
10037 haveit=yes
10038 break
10039 fi
10040 done
10041 if test -z "$haveit"; then
10042 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10043 fi
10044 done
10045
10046
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10048 $as_echo_n "checking for iconv... " >&6; }
10049 if test "${am_cv_func_iconv+set}" = set; then :
10050 $as_echo_n "(cached) " >&6
10051 else
10052
10053 am_cv_func_iconv="no, consider installing GNU libiconv"
10054 am_cv_lib_iconv=no
10055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10056 /* end confdefs.h. */
10057 #include <stdlib.h>
10058 #include <iconv.h>
10059 int
10060 main ()
10061 {
10062 iconv_t cd = iconv_open("","");
10063 iconv(cd,NULL,NULL,NULL,NULL);
10064 iconv_close(cd);
10065 ;
10066 return 0;
10067 }
10068 _ACEOF
10069 if ac_fn_cxx_try_link "$LINENO"; then :
10070 am_cv_func_iconv=yes
10071 fi
10072 rm -f core conftest.err conftest.$ac_objext \
10073 conftest$ac_exeext conftest.$ac_ext
10074 if test "$am_cv_func_iconv" != yes; then
10075 am_save_LIBS="$LIBS"
10076 LIBS="$LIBS $LIBICONV"
10077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078 /* end confdefs.h. */
10079 #include <stdlib.h>
10080 #include <iconv.h>
10081 int
10082 main ()
10083 {
10084 iconv_t cd = iconv_open("","");
10085 iconv(cd,NULL,NULL,NULL,NULL);
10086 iconv_close(cd);
10087 ;
10088 return 0;
10089 }
10090 _ACEOF
10091 if ac_fn_cxx_try_link "$LINENO"; then :
10092 am_cv_lib_iconv=yes
10093 am_cv_func_iconv=yes
10094 fi
10095 rm -f core conftest.err conftest.$ac_objext \
10096 conftest$ac_exeext conftest.$ac_ext
10097 LIBS="$am_save_LIBS"
10098 fi
10099
10100 fi
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10102 $as_echo "$am_cv_func_iconv" >&6; }
10103 if test "$am_cv_func_iconv" = yes; then
10104
10105 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10106
10107 fi
10108 if test "$am_cv_lib_iconv" = yes; then
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10110 $as_echo_n "checking how to link with libiconv... " >&6; }
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10112 $as_echo "$LIBICONV" >&6; }
10113 else
10114 CPPFLAGS="$am_save_CPPFLAGS"
10115 LIBICONV=
10116 LTLIBICONV=
10117 fi
10118
10119
10120
10121 if test "$am_cv_func_iconv" = yes; then
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10123 $as_echo_n "checking for iconv declaration... " >&6; }
10124 if test "${am_cv_proto_iconv+set}" = set; then :
10125 $as_echo_n "(cached) " >&6
10126 else
10127
10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h. */
10130
10131 #include <stdlib.h>
10132 #include <iconv.h>
10133 extern
10134 #ifdef __cplusplus
10135 "C"
10136 #endif
10137 #if defined(__STDC__) || defined(__cplusplus)
10138 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10139 #else
10140 size_t iconv();
10141 #endif
10142
10143 int
10144 main ()
10145 {
10146
10147 ;
10148 return 0;
10149 }
10150 _ACEOF
10151 if ac_fn_cxx_try_compile "$LINENO"; then :
10152 am_cv_proto_iconv_arg1=""
10153 else
10154 am_cv_proto_iconv_arg1="const"
10155 fi
10156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157 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);"
10158 fi
10159
10160 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10162 }$am_cv_proto_iconv" >&5
10163 $as_echo "${ac_t:-
10164 }$am_cv_proto_iconv" >&6; }
10165
10166 cat >>confdefs.h <<_ACEOF
10167 #define ICONV_CONST $am_cv_proto_iconv_arg1
10168 _ACEOF
10169
10170 fi
10171
10172 ac_ext=c
10173 ac_cpp='$CPP $CPPFLAGS'
10174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10177
10178 else
10179
10180
10181
10182
10183
10184 am_save_CPPFLAGS="$CPPFLAGS"
10185
10186 for element in $INCICONV; do
10187 haveit=
10188 for x in $CPPFLAGS; do
10189
10190 acl_save_prefix="$prefix"
10191 prefix="$acl_final_prefix"
10192 acl_save_exec_prefix="$exec_prefix"
10193 exec_prefix="$acl_final_exec_prefix"
10194 eval x=\"$x\"
10195 exec_prefix="$acl_save_exec_prefix"
10196 prefix="$acl_save_prefix"
10197
10198 if test "X$x" = "X$element"; then
10199 haveit=yes
10200 break
10201 fi
10202 done
10203 if test -z "$haveit"; then
10204 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10205 fi
10206 done
10207
10208
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10210 $as_echo_n "checking for iconv... " >&6; }
10211 if test "${am_cv_func_iconv+set}" = set; then :
10212 $as_echo_n "(cached) " >&6
10213 else
10214
10215 am_cv_func_iconv="no, consider installing GNU libiconv"
10216 am_cv_lib_iconv=no
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10219 #include <stdlib.h>
10220 #include <iconv.h>
10221 int
10222 main ()
10223 {
10224 iconv_t cd = iconv_open("","");
10225 iconv(cd,NULL,NULL,NULL,NULL);
10226 iconv_close(cd);
10227 ;
10228 return 0;
10229 }
10230 _ACEOF
10231 if ac_fn_c_try_link "$LINENO"; then :
10232 am_cv_func_iconv=yes
10233 fi
10234 rm -f core conftest.err conftest.$ac_objext \
10235 conftest$ac_exeext conftest.$ac_ext
10236 if test "$am_cv_func_iconv" != yes; then
10237 am_save_LIBS="$LIBS"
10238 LIBS="$LIBS $LIBICONV"
10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240 /* end confdefs.h. */
10241 #include <stdlib.h>
10242 #include <iconv.h>
10243 int
10244 main ()
10245 {
10246 iconv_t cd = iconv_open("","");
10247 iconv(cd,NULL,NULL,NULL,NULL);
10248 iconv_close(cd);
10249 ;
10250 return 0;
10251 }
10252 _ACEOF
10253 if ac_fn_c_try_link "$LINENO"; then :
10254 am_cv_lib_iconv=yes
10255 am_cv_func_iconv=yes
10256 fi
10257 rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10259 LIBS="$am_save_LIBS"
10260 fi
10261
10262 fi
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10264 $as_echo "$am_cv_func_iconv" >&6; }
10265 if test "$am_cv_func_iconv" = yes; then
10266
10267 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10268
10269 fi
10270 if test "$am_cv_lib_iconv" = yes; then
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10272 $as_echo_n "checking how to link with libiconv... " >&6; }
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10274 $as_echo "$LIBICONV" >&6; }
10275 else
10276 CPPFLAGS="$am_save_CPPFLAGS"
10277 LIBICONV=
10278 LTLIBICONV=
10279 fi
10280
10281
10282
10283 if test "$am_cv_func_iconv" = yes; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10285 $as_echo_n "checking for iconv declaration... " >&6; }
10286 if test "${am_cv_proto_iconv+set}" = set; then :
10287 $as_echo_n "(cached) " >&6
10288 else
10289
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10292
10293 #include <stdlib.h>
10294 #include <iconv.h>
10295 extern
10296 #ifdef __cplusplus
10297 "C"
10298 #endif
10299 #if defined(__STDC__) || defined(__cplusplus)
10300 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10301 #else
10302 size_t iconv();
10303 #endif
10304
10305 int
10306 main ()
10307 {
10308
10309 ;
10310 return 0;
10311 }
10312 _ACEOF
10313 if ac_fn_c_try_compile "$LINENO"; then :
10314 am_cv_proto_iconv_arg1=""
10315 else
10316 am_cv_proto_iconv_arg1="const"
10317 fi
10318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10319 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);"
10320 fi
10321
10322 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10324 }$am_cv_proto_iconv" >&5
10325 $as_echo "${ac_t:-
10326 }$am_cv_proto_iconv" >&6; }
10327
10328 cat >>confdefs.h <<_ACEOF
10329 #define ICONV_CONST $am_cv_proto_iconv_arg1
10330 _ACEOF
10331
10332 fi
10333
10334 fi
10335
10336 # Until we have in-tree GNU iconv:
10337 LIBICONV_DEP=
10338
10339
10340
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10342 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10343 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10344 $as_echo_n "(cached) " >&6
10345 else
10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h. */
10348 #include <locale.h>
10349 int
10350 main ()
10351 {
10352 return LC_MESSAGES
10353 ;
10354 return 0;
10355 }
10356 _ACEOF
10357 if ac_fn_c_try_link "$LINENO"; then :
10358 am_cv_val_LC_MESSAGES=yes
10359 else
10360 am_cv_val_LC_MESSAGES=no
10361 fi
10362 rm -f core conftest.err conftest.$ac_objext \
10363 conftest$ac_exeext conftest.$ac_ext
10364 fi
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10366 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10367 if test $am_cv_val_LC_MESSAGES = yes; then
10368
10369 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10370
10371 fi
10372
10373
10374
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10376 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10377 if test "${am_cv_langinfo_codeset+set}" = set; then :
10378 $as_echo_n "(cached) " >&6
10379 else
10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10382 #include <langinfo.h>
10383 int
10384 main ()
10385 {
10386 char* cs = nl_langinfo(CODESET);
10387 ;
10388 return 0;
10389 }
10390 _ACEOF
10391 if ac_fn_c_try_link "$LINENO"; then :
10392 am_cv_langinfo_codeset=yes
10393 else
10394 am_cv_langinfo_codeset=no
10395 fi
10396 rm -f core conftest.err conftest.$ac_objext \
10397 conftest$ac_exeext conftest.$ac_ext
10398
10399 fi
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10401 $as_echo "$am_cv_langinfo_codeset" >&6; }
10402 if test $am_cv_langinfo_codeset = yes; then
10403
10404 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10405
10406 fi
10407
10408
10409 # We will need to find libiberty.h and ansidecl.h
10410 saved_CFLAGS="$CFLAGS"
10411 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10412 saved_CXXFLAGS="$CXXFLAGS"
10413 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10414 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10415 strsignal strstr strverscmp \
10416 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10417 free basename getopt clock getpagesize 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
10418 do
10419 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10421 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10422 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10423 $as_echo_n "(cached) " >&6
10424 else
10425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426 /* end confdefs.h. */
10427 #undef $ac_tr_decl
10428 #define $ac_tr_decl 1
10429
10430 #include "ansidecl.h"
10431 #include "system.h"
10432
10433 int
10434 main ()
10435 {
10436 #ifndef $ac_func
10437 char *(*pfn) = (char *(*)) $ac_func ;
10438 #endif
10439 ;
10440 return 0;
10441 }
10442 _ACEOF
10443 if ac_fn_c_try_compile "$LINENO"; then :
10444 eval "gcc_cv_have_decl_$ac_func=yes"
10445 else
10446 eval "gcc_cv_have_decl_$ac_func=no"
10447 fi
10448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10449 fi
10450
10451 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10453 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10454 #define $ac_tr_decl 1
10455 _ACEOF
10456
10457 else
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10460 #define $ac_tr_decl 0
10461 _ACEOF
10462
10463 fi
10464
10465 done
10466
10467
10468 for ac_func in getrlimit setrlimit getrusage
10469 do
10470 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10472 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10473 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10474 $as_echo_n "(cached) " >&6
10475 else
10476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477 /* end confdefs.h. */
10478 #undef $ac_tr_decl
10479 #define $ac_tr_decl 1
10480
10481 #include "ansidecl.h"
10482 #include "system.h"
10483 #ifdef HAVE_SYS_RESOURCE_H
10484 #include <sys/resource.h>
10485 #endif
10486
10487
10488 int
10489 main ()
10490 {
10491 #ifndef $ac_func
10492 char *(*pfn) = (char *(*)) $ac_func ;
10493 #endif
10494 ;
10495 return 0;
10496 }
10497 _ACEOF
10498 if ac_fn_c_try_compile "$LINENO"; then :
10499 eval "gcc_cv_have_decl_$ac_func=yes"
10500 else
10501 eval "gcc_cv_have_decl_$ac_func=no"
10502 fi
10503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10504 fi
10505
10506 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10508 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10509 #define $ac_tr_decl 1
10510 _ACEOF
10511
10512 else
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10515 #define $ac_tr_decl 0
10516 _ACEOF
10517
10518 fi
10519
10520 done
10521
10522
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10525
10526 #include "ansidecl.h"
10527 #include "system.h"
10528 #ifdef HAVE_SYS_RESOURCE_H
10529 #include <sys/resource.h>
10530 #endif
10531
10532 int
10533 main ()
10534 {
10535 rlim_t l = 0;
10536 ;
10537 return 0;
10538 }
10539 _ACEOF
10540 if ac_fn_c_try_compile "$LINENO"; then :
10541
10542 else
10543
10544 $as_echo "#define rlim_t long" >>confdefs.h
10545
10546 fi
10547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10548
10549 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10550 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10551 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10552 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10553 for ac_func in ldgetname
10554 do
10555 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10557 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10558 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563 #undef $ac_tr_decl
10564 #define $ac_tr_decl 1
10565
10566 #include "ansidecl.h"
10567 #include "system.h"
10568 #ifdef HAVE_LDFCN_H
10569 #undef FREAD
10570 #undef FWRITE
10571 #include <ldfcn.h>
10572 #endif
10573
10574
10575 int
10576 main ()
10577 {
10578 #ifndef $ac_func
10579 char *(*pfn) = (char *(*)) $ac_func ;
10580 #endif
10581 ;
10582 return 0;
10583 }
10584 _ACEOF
10585 if ac_fn_c_try_compile "$LINENO"; then :
10586 eval "gcc_cv_have_decl_$ac_func=yes"
10587 else
10588 eval "gcc_cv_have_decl_$ac_func=no"
10589 fi
10590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10591 fi
10592
10593 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10595 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10596 #define $ac_tr_decl 1
10597 _ACEOF
10598
10599 else
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10602 #define $ac_tr_decl 0
10603 _ACEOF
10604
10605 fi
10606
10607 done
10608
10609
10610 for ac_func in times
10611 do
10612 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10614 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10615 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10616 $as_echo_n "(cached) " >&6
10617 else
10618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619 /* end confdefs.h. */
10620 #undef $ac_tr_decl
10621 #define $ac_tr_decl 1
10622
10623 #include "ansidecl.h"
10624 #include "system.h"
10625 #ifdef HAVE_SYS_TIMES_H
10626 #include <sys/times.h>
10627 #endif
10628
10629
10630 int
10631 main ()
10632 {
10633 #ifndef $ac_func
10634 char *(*pfn) = (char *(*)) $ac_func ;
10635 #endif
10636 ;
10637 return 0;
10638 }
10639 _ACEOF
10640 if ac_fn_c_try_compile "$LINENO"; then :
10641 eval "gcc_cv_have_decl_$ac_func=yes"
10642 else
10643 eval "gcc_cv_have_decl_$ac_func=no"
10644 fi
10645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10646 fi
10647
10648 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10650 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10651 #define $ac_tr_decl 1
10652 _ACEOF
10653
10654 else
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10657 #define $ac_tr_decl 0
10658 _ACEOF
10659
10660 fi
10661
10662 done
10663
10664
10665 for ac_func in sigaltstack
10666 do
10667 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10669 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10670 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10671 $as_echo_n "(cached) " >&6
10672 else
10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h. */
10675 #undef $ac_tr_decl
10676 #define $ac_tr_decl 1
10677
10678 #include "ansidecl.h"
10679 #include "system.h"
10680 #include <signal.h>
10681
10682
10683 int
10684 main ()
10685 {
10686 #ifndef $ac_func
10687 char *(*pfn) = (char *(*)) $ac_func ;
10688 #endif
10689 ;
10690 return 0;
10691 }
10692 _ACEOF
10693 if ac_fn_c_try_compile "$LINENO"; then :
10694 eval "gcc_cv_have_decl_$ac_func=yes"
10695 else
10696 eval "gcc_cv_have_decl_$ac_func=no"
10697 fi
10698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10699 fi
10700
10701 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10703 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10704 #define $ac_tr_decl 1
10705 _ACEOF
10706
10707 else
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10709 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10710 #define $ac_tr_decl 0
10711 _ACEOF
10712
10713 fi
10714
10715 done
10716
10717
10718 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10719 # prototype.
10720 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10721 ac_ext=cpp
10722 ac_cpp='$CXXCPP $CPPFLAGS'
10723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10726
10727 for ac_func in madvise
10728 do
10729 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10731 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10732 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10733 $as_echo_n "(cached) " >&6
10734 else
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10737 #undef $ac_tr_decl
10738 #define $ac_tr_decl 1
10739
10740 #include "ansidecl.h"
10741 #include "system.h"
10742
10743
10744 int
10745 main ()
10746 {
10747 #ifndef $ac_func
10748 char *(*pfn) = (char *(*)) $ac_func ;
10749 #endif
10750 ;
10751 return 0;
10752 }
10753 _ACEOF
10754 if ac_fn_cxx_try_compile "$LINENO"; then :
10755 eval "gcc_cv_have_decl_$ac_func=yes"
10756 else
10757 eval "gcc_cv_have_decl_$ac_func=no"
10758 fi
10759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760 fi
10761
10762 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10764 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10765 #define $ac_tr_decl 1
10766 _ACEOF
10767
10768 else
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10771 #define $ac_tr_decl 0
10772 _ACEOF
10773
10774 fi
10775
10776 done
10777
10778 ac_ext=c
10779 ac_cpp='$CPP $CPPFLAGS'
10780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10783
10784 else
10785 for ac_func in madvise
10786 do
10787 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10789 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10790 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10791 $as_echo_n "(cached) " >&6
10792 else
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10795 #undef $ac_tr_decl
10796 #define $ac_tr_decl 1
10797
10798 #include "ansidecl.h"
10799 #include "system.h"
10800
10801
10802 int
10803 main ()
10804 {
10805 #ifndef $ac_func
10806 char *(*pfn) = (char *(*)) $ac_func ;
10807 #endif
10808 ;
10809 return 0;
10810 }
10811 _ACEOF
10812 if ac_fn_c_try_compile "$LINENO"; then :
10813 eval "gcc_cv_have_decl_$ac_func=yes"
10814 else
10815 eval "gcc_cv_have_decl_$ac_func=no"
10816 fi
10817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10818 fi
10819
10820 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10822 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10823 #define $ac_tr_decl 1
10824 _ACEOF
10825
10826 else
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10829 #define $ac_tr_decl 0
10830 _ACEOF
10831
10832 fi
10833
10834 done
10835
10836
10837 fi
10838
10839 # More time-related stuff.
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10841 $as_echo_n "checking for struct tms... " >&6; }
10842 if test "${ac_cv_struct_tms+set}" = set; then :
10843 $as_echo_n "(cached) " >&6
10844 else
10845
10846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10847 /* end confdefs.h. */
10848
10849 #include "ansidecl.h"
10850 #include "system.h"
10851 #ifdef HAVE_SYS_TIMES_H
10852 #include <sys/times.h>
10853 #endif
10854
10855 int
10856 main ()
10857 {
10858 struct tms tms;
10859 ;
10860 return 0;
10861 }
10862 _ACEOF
10863 if ac_fn_c_try_compile "$LINENO"; then :
10864 ac_cv_struct_tms=yes
10865 else
10866 ac_cv_struct_tms=no
10867 fi
10868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10869 fi
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10871 $as_echo "$ac_cv_struct_tms" >&6; }
10872 if test $ac_cv_struct_tms = yes; then
10873
10874 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10875
10876 fi
10877
10878 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10879 # revisit after autoconf 2.50.
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10881 $as_echo_n "checking for clock_t... " >&6; }
10882 if test "${gcc_cv_type_clock_t+set}" = set; then :
10883 $as_echo_n "(cached) " >&6
10884 else
10885
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10888
10889 #include "ansidecl.h"
10890 #include "system.h"
10891
10892 int
10893 main ()
10894 {
10895 clock_t x;
10896 ;
10897 return 0;
10898 }
10899 _ACEOF
10900 if ac_fn_c_try_compile "$LINENO"; then :
10901 gcc_cv_type_clock_t=yes
10902 else
10903 gcc_cv_type_clock_t=no
10904 fi
10905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10906 fi
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10908 $as_echo "$gcc_cv_type_clock_t" >&6; }
10909 if test $gcc_cv_type_clock_t = yes; then
10910
10911 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10912
10913 fi
10914
10915 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10916 CFLAGS="$saved_CFLAGS"
10917 CXXFLAGS="$saved_CXXFLAGS"
10918
10919 # Check whether --enable-initfini-array was given.
10920 if test "${enable_initfini_array+set}" = set; then :
10921 enableval=$enable_initfini_array;
10922 else
10923
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10925 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10926 if test "${gcc_cv_initfini_array+set}" = set; then :
10927 $as_echo_n "(cached) " >&6
10928 else
10929 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10930 if test "$cross_compiling" = yes; then :
10931 gcc_cv_initfini_array=no
10932 else
10933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934 /* end confdefs.h. */
10935
10936 #ifndef __ELF__
10937 #error Not an ELF OS
10938 #endif
10939 #ifdef __ia64__
10940 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10941 if it can be used. */
10942 static int x = -1;
10943 int main (void) { return x; }
10944 int foo (void) { x = 0; }
10945 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10946 #else
10947 extern void abort ();
10948 static int count;
10949
10950 static void
10951 init1005 ()
10952 {
10953 if (count != 0)
10954 abort ();
10955 count = 1005;
10956 }
10957 void (*const init_array1005) ()
10958 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10959 = { init1005 };
10960 static void
10961 fini1005 ()
10962 {
10963 if (count != 1005)
10964 abort ();
10965 }
10966 void (*const fini_array1005) ()
10967 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10968 = { fini1005 };
10969
10970 static void
10971 ctor1007 ()
10972 {
10973 if (count != 1005)
10974 abort ();
10975 count = 1007;
10976 }
10977 void (*const ctors1007) ()
10978 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10979 = { ctor1007 };
10980 static void
10981 dtor1007 ()
10982 {
10983 if (count != 1007)
10984 abort ();
10985 count = 1005;
10986 }
10987 void (*const dtors1007) ()
10988 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10989 = { dtor1007 };
10990
10991 static void
10992 init65530 ()
10993 {
10994 if (count != 1007)
10995 abort ();
10996 count = 65530;
10997 }
10998 void (*const init_array65530) ()
10999 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
11000 = { init65530 };
11001 static void
11002 fini65530 ()
11003 {
11004 if (count != 65530)
11005 abort ();
11006 count = 1007;
11007 }
11008 void (*const fini_array65530) ()
11009 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
11010 = { fini65530 };
11011
11012 static void
11013 ctor65535 ()
11014 {
11015 if (count != 65530)
11016 abort ();
11017 count = 65535;
11018 }
11019 void (*const ctors65535) ()
11020 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
11021 = { ctor65535 };
11022 static void
11023 dtor65535 ()
11024 {
11025 if (count != 65535)
11026 abort ();
11027 count = 65530;
11028 }
11029 void (*const dtors65535) ()
11030 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
11031 = { dtor65535 };
11032
11033 int
11034 main ()
11035 {
11036 if (count != 65535)
11037 abort ();
11038 return 0;
11039 }
11040 #endif
11041
11042 _ACEOF
11043 if ac_fn_c_try_run "$LINENO"; then :
11044 gcc_cv_initfini_array=yes
11045 else
11046 gcc_cv_initfini_array=no
11047 fi
11048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11049 conftest.$ac_objext conftest.beam conftest.$ac_ext
11050 fi
11051
11052 else
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
11054 $as_echo_n "checking cross compile... guessing... " >&6; }
11055 gcc_cv_initfini_array=no
11056 fi
11057 fi
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
11059 $as_echo "$gcc_cv_initfini_array" >&6; }
11060 enable_initfini_array=$gcc_cv_initfini_array
11061
11062 fi
11063
11064 if test $enable_initfini_array = yes; then
11065
11066 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
11067
11068 fi
11069
11070 # mkdir takes a single argument on some systems.
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11072 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11073 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11074 $as_echo_n "(cached) " >&6
11075 else
11076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h. */
11078
11079 #include <sys/types.h>
11080 #ifdef HAVE_SYS_STAT_H
11081 # include <sys/stat.h>
11082 #endif
11083 #ifdef HAVE_UNISTD_H
11084 # include <unistd.h>
11085 #endif
11086 #ifdef HAVE_DIRECT_H
11087 # include <direct.h>
11088 #endif
11089 int
11090 main ()
11091 {
11092 mkdir ("foo", 0);
11093 ;
11094 return 0;
11095 }
11096 _ACEOF
11097 if ac_fn_c_try_compile "$LINENO"; then :
11098 gcc_cv_mkdir_takes_one_arg=no
11099 else
11100 gcc_cv_mkdir_takes_one_arg=yes
11101 fi
11102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11103 fi
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11105 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11106 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11107
11108 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11109
11110 fi
11111
11112
11113 # File extensions
11114 manext='.1'
11115 objext='.o'
11116
11117
11118
11119 # With Setjmp/Longjmp based exception handling.
11120 # Check whether --enable-sjlj-exceptions was given.
11121 if test "${enable_sjlj_exceptions+set}" = set; then :
11122 enableval=$enable_sjlj_exceptions; case $target in
11123 *-*-hpux10*)
11124 if test $enableval != yes; then
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11126 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11127 enableval=yes
11128 fi
11129 ;;
11130 esac
11131 force_sjlj_exceptions=yes
11132 else
11133 case $target in
11134 *-*-hpux10*)
11135 force_sjlj_exceptions=yes
11136 enableval=yes
11137 ;;
11138 *)
11139 force_sjlj_exceptions=no
11140 ;;
11141 esac
11142 fi
11143
11144 if test $force_sjlj_exceptions = yes; then
11145 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11146
11147 cat >>confdefs.h <<_ACEOF
11148 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11149 _ACEOF
11150
11151 fi
11152
11153 # --------------------------------------------------------
11154 # Build, host, and target specific configuration fragments
11155 # --------------------------------------------------------
11156
11157 # Collect build-machine-specific information.
11158 . ${srcdir}/config.build
11159
11160 # Collect host-machine-specific information.
11161 . ${srcdir}/config.host
11162
11163 target_gtfiles=
11164
11165 # Collect target-machine-specific information.
11166 . ${srcdir}/config.gcc
11167
11168 extra_objs="${host_extra_objs} ${extra_objs}"
11169 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11170
11171 # Default the target-machine variables that were not explicitly set.
11172 if test x"$tm_file" = x
11173 then tm_file=$cpu_type/$cpu_type.h; fi
11174
11175 if test x"$extra_headers" = x
11176 then extra_headers=; fi
11177
11178 if test x$md_file = x
11179 then md_file=$cpu_type/$cpu_type.md; fi
11180
11181 if test x$out_file = x
11182 then out_file=$cpu_type/$cpu_type.c; fi
11183
11184 if test x"$tmake_file" = x
11185 then tmake_file=$cpu_type/t-$cpu_type
11186 fi
11187
11188 if test x"$dwarf2" = xyes
11189 then tm_file="$tm_file tm-dwarf2.h"
11190 fi
11191
11192 # Say what files are being used for the output code and MD file.
11193 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11194 echo "Using \`$srcdir/config/$md_file' as machine description file."
11195
11196 # If any of the xm_file variables contain nonexistent files, warn
11197 # about them and drop them.
11198
11199 bx=
11200 for x in $build_xm_file; do
11201 if test -f $srcdir/config/$x
11202 then bx="$bx $x"
11203 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11204 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11205 fi
11206 done
11207 build_xm_file="$bx"
11208
11209 hx=
11210 for x in $host_xm_file; do
11211 if test -f $srcdir/config/$x
11212 then hx="$hx $x"
11213 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11214 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11215 fi
11216 done
11217 host_xm_file="$hx"
11218
11219 tx=
11220 for x in $xm_file; do
11221 if test -f $srcdir/config/$x
11222 then tx="$tx $x"
11223 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11224 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11225 fi
11226 done
11227 xm_file="$tx"
11228
11229 count=a
11230 for f in $tm_file; do
11231 count=${count}x
11232 done
11233 if test $count = ax; then
11234 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11235 else
11236 echo "Using the following target machine macro files:"
11237 for f in $tm_file; do
11238 echo " $srcdir/config/$f"
11239 done
11240 fi
11241
11242 if test x$need_64bit_hwint = xyes; then
11243
11244 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11245
11246 fi
11247
11248 if test x$use_long_long_for_widest_fast_int = xyes; then
11249
11250 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11251
11252 fi
11253
11254 count=a
11255 for f in $host_xm_file; do
11256 count=${count}x
11257 done
11258 if test $count = a; then
11259 :
11260 elif test $count = ax; then
11261 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11262 else
11263 echo "Using the following host machine macro files:"
11264 for f in $host_xm_file; do
11265 echo " $srcdir/config/$f"
11266 done
11267 fi
11268 echo "Using ${out_host_hook_obj} for host machine hooks."
11269
11270 if test "$host_xm_file" != "$build_xm_file"; then
11271 count=a
11272 for f in $build_xm_file; do
11273 count=${count}x
11274 done
11275 if test $count = a; then
11276 :
11277 elif test $count = ax; then
11278 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11279 else
11280 echo "Using the following build machine macro files:"
11281 for f in $build_xm_file; do
11282 echo " $srcdir/config/$f"
11283 done
11284 fi
11285 fi
11286
11287 if test -n "$configured_native_system_header_dir"; then
11288 native_system_header_dir=$configured_native_system_header_dir
11289 fi
11290 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11291
11292
11293 case ${host} in
11294 powerpc*-*-darwin*)
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11296 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11297 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11298 $as_echo_n "(cached) " >&6
11299 else
11300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301 /* end confdefs.h. */
11302
11303 #include <sys/cdefs.h>
11304 #include <sys/signal.h>
11305 #include <ucontext.h>
11306 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11307
11308 _ACEOF
11309 if ac_fn_c_try_compile "$LINENO"; then :
11310 gcc_cv_mcontext_underscores=no
11311 else
11312 gcc_cv_mcontext_underscores=yes
11313 fi
11314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11315 fi
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11317 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11318 if test $gcc_cv_mcontext_underscores = yes; then
11319
11320 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11321
11322 fi
11323 ;;
11324 esac
11325
11326 # ---------
11327 # Threading
11328 # ---------
11329
11330 # Check if a valid thread package
11331 case ${enable_threads} in
11332 "" | no)
11333 # No threads
11334 target_thread_file='single'
11335 ;;
11336 yes)
11337 # default
11338 target_thread_file='single'
11339 ;;
11340 aix | dce | lynx | mipssde | posix | rtems | \
11341 single | tpf | vxworks | win32)
11342 target_thread_file=${enable_threads}
11343 ;;
11344 *)
11345 echo "${enable_threads} is an unknown thread package" 1>&2
11346 exit 1
11347 ;;
11348 esac
11349
11350 if test x${thread_file} = x; then
11351 # No thread file set by target-specific clauses in config.gcc,
11352 # so use file chosen by default logic above
11353 thread_file=${target_thread_file}
11354 fi
11355
11356 # Make gthr-default.h if we have a thread file.
11357 gthread_flags=
11358 if test $thread_file != single; then
11359 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11360 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
11361 rm -f gthr-default.h-t
11362 else
11363 mv -f gthr-default.h-t gthr-default.h
11364 fi
11365 gthread_flags=-DHAVE_GTHR_DEFAULT
11366 fi
11367
11368
11369 # --------
11370 # UNSORTED
11371 # --------
11372
11373 use_cxa_atexit=no
11374 if test x$enable___cxa_atexit = xyes || \
11375 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11376 if test x$host = x$target; then
11377 case $host in
11378 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11379 # keyed to flag_use_cxa_atexit
11380 *-*-mingw32*)
11381 use_cxa_atexit=yes
11382 ;;
11383 *)
11384 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11385 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11386 use_cxa_atexit=yes
11387 else
11388 echo "__cxa_atexit can't be enabled on this target"
11389 fi
11390
11391 ;;
11392 esac
11393 else
11394 # We can't check for __cxa_atexit when building a cross, so assume
11395 # it is available
11396 use_cxa_atexit=yes
11397 fi
11398 if test x$use_cxa_atexit = xyes; then
11399
11400 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11401
11402 fi
11403 fi
11404
11405 # Look for a file containing extra machine modes.
11406 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11407 extra_modes_file='$(srcdir)'/config/${extra_modes}
11408
11409
11410 cat >>confdefs.h <<_ACEOF
11411 #define EXTRA_MODES_FILE "config/$extra_modes"
11412 _ACEOF
11413
11414 fi
11415
11416 # Convert extra_options into a form suitable for Makefile use.
11417 extra_opt_files=
11418 all_opt_files=
11419 for f in $extra_options; do
11420 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11421 all_opt_files="$all_opt_files $srcdir/config/$f"
11422 done
11423
11424
11425 # auto-host.h is the file containing items generated by autoconf and is
11426 # the first file included by config.h.
11427 # If host=build, it is correct to have bconfig include auto-host.h
11428 # as well. If host!=build, we are in error and need to do more
11429 # work to find out the build config parameters.
11430 if test x$host = x$build
11431 then
11432 build_auto=auto-host.h
11433 else
11434 # We create a subdir, then run autoconf in the subdir.
11435 # To prevent recursion we set host and build for the new
11436 # invocation of configure to the build for this invocation
11437 # of configure.
11438 tempdir=build.$$
11439 rm -rf $tempdir
11440 mkdir $tempdir
11441 cd $tempdir
11442 case ${srcdir} in
11443 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11444 *) realsrcdir=../${srcdir};;
11445 esac
11446 saved_CFLAGS="${CFLAGS}"
11447 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11448 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11449 ${realsrcdir}/configure \
11450 --enable-languages=${enable_languages-all} \
11451 --target=$target_alias --host=$build_alias --build=$build_alias
11452 CFLAGS="${saved_CFLAGS}"
11453
11454 # We just finished tests for the build machine, so rename
11455 # the file auto-build.h in the gcc directory.
11456 mv auto-host.h ../auto-build.h
11457 cd ..
11458 rm -rf $tempdir
11459 build_auto=auto-build.h
11460 fi
11461
11462
11463 tm_file="${tm_file} defaults.h"
11464 tm_p_file="${tm_p_file} tm-preds.h"
11465 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11466 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11467 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11468 # put this back in temporarily.
11469 xm_file="auto-host.h ansidecl.h ${xm_file}"
11470
11471 # --------
11472 # UNSORTED
11473 # --------
11474
11475 # Compile in configure arguments.
11476 if test -f configargs.h ; then
11477 # Being re-configured.
11478 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11479 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11480 else
11481 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11482 fi
11483
11484 # Double all backslashes and backslash all quotes to turn
11485 # gcc_config_arguments into a C string.
11486 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11487 $gcc_config_arguments
11488 EOF
11489 gcc_config_arguments_str=`cat conftest.out`
11490 rm -f conftest.out
11491
11492 cat > configargs.h <<EOF
11493 /* Generated automatically. */
11494 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11495 static const char thread_model[] = "$thread_file";
11496
11497 static const struct {
11498 const char *name, *value;
11499 } configure_default_options[] = $configure_default_options;
11500 EOF
11501
11502 gcc_BASEVER=`cat $srcdir/BASE-VER`
11503 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11504 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11505 if test -f $srcdir/REVISION ; then
11506 gcc_REVISION=`cat $srcdir/REVISION`
11507 else
11508 gcc_REVISION=""
11509 fi
11510 cat > plugin-version.h <<EOF
11511 #include "configargs.h"
11512
11513 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11514 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11515 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11516 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11517
11518 static char basever[] = "$gcc_BASEVER";
11519 static char datestamp[] = "$gcc_DATESTAMP";
11520 static char devphase[] = "$gcc_DEVPHASE";
11521 static char revision[] = "$gcc_REVISION";
11522
11523 /* FIXME plugins: We should make the version information more precise.
11524 One way to do is to add a checksum. */
11525
11526 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11527 devphase, revision,
11528 configuration_arguments};
11529 EOF
11530
11531 # Internationalization
11532 # If we haven't got the data from the intl directory,
11533 # assume NLS is disabled.
11534 USE_NLS=no
11535 LIBINTL=
11536 LIBINTL_DEP=
11537 INCINTL=
11538 XGETTEXT=
11539 GMSGFMT=
11540 POSUB=
11541
11542 if test -f ../intl/config.intl; then
11543 . ../intl/config.intl
11544 fi
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11546 $as_echo_n "checking whether NLS is requested... " >&6; }
11547 if test x"$USE_NLS" != xyes; then
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549 $as_echo "no" >&6; }
11550 else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11552 $as_echo "yes" >&6; }
11553
11554 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11555
11556
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11558 $as_echo_n "checking for catalogs to be installed... " >&6; }
11559 # Look for .po and .gmo files in the source directory.
11560 CATALOGS=
11561 XLINGUAS=
11562 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11563 # If there aren't any .gmo files the shell will give us the
11564 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11565 # weeded out.
11566 case "$cat" in *\**)
11567 continue;;
11568 esac
11569 # The quadruple backslash is collapsed to a double backslash
11570 # by the backticks, then collapsed again by the double quotes,
11571 # leaving us with one backslash in the sed expression (right
11572 # before the dot that mustn't act as a wildcard).
11573 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11574 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11575 # The user is allowed to set LINGUAS to a list of languages to
11576 # install catalogs for. If it's empty that means "all of them."
11577 if test "x$LINGUAS" = x; then
11578 CATALOGS="$CATALOGS $cat"
11579 XLINGUAS="$XLINGUAS $lang"
11580 else
11581 case "$LINGUAS" in *$lang*)
11582 CATALOGS="$CATALOGS $cat"
11583 XLINGUAS="$XLINGUAS $lang"
11584 ;;
11585 esac
11586 fi
11587 done
11588 LINGUAS="$XLINGUAS"
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11590 $as_echo "$LINGUAS" >&6; }
11591
11592
11593 DATADIRNAME=share
11594
11595 INSTOBJEXT=.mo
11596
11597 GENCAT=gencat
11598
11599 CATOBJEXT=.gmo
11600
11601 fi
11602
11603 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11604 # -liconv on the link line twice.
11605 case "$LIBINTL" in *$LIBICONV*)
11606 LIBICONV= ;;
11607 esac
11608
11609 # Check whether --enable-secureplt was given.
11610 if test "${enable_secureplt+set}" = set; then :
11611 enableval=$enable_secureplt;
11612 fi
11613
11614
11615 # Check whether --enable-leading-mingw64-underscores was given.
11616 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11617 enableval=$enable_leading_mingw64_underscores;
11618 fi
11619
11620 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11621
11622 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11623
11624 fi
11625
11626 # Check whether --enable-cld was given.
11627 if test "${enable_cld+set}" = set; then :
11628 enableval=$enable_cld;
11629 else
11630 enable_cld=no
11631 fi
11632
11633
11634 # Check whether --enable-frame-pointer was given.
11635 if test "${enable_frame_pointer+set}" = set; then :
11636 enableval=$enable_frame_pointer;
11637 else
11638
11639 case $target_os in
11640 linux* | darwin[8912]*)
11641 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11642 # DWARF2.
11643 enable_frame_pointer=no
11644 ;;
11645 *)
11646 enable_frame_pointer=yes
11647 ;;
11648 esac
11649
11650 fi
11651
11652
11653 # Windows32 Registry support for specifying GCC installation paths.
11654 # Check whether --enable-win32-registry was given.
11655 if test "${enable_win32_registry+set}" = set; then :
11656 enableval=$enable_win32_registry;
11657 fi
11658
11659
11660 case $host_os in
11661 win32 | pe | cygwin* | mingw32* | uwin*)
11662 if test "x$enable_win32_registry" != xno; then
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11664 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11665 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11666 $as_echo_n "(cached) " >&6
11667 else
11668 ac_func_search_save_LIBS=$LIBS
11669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h. */
11671
11672 /* Override any GCC internal prototype to avoid an error.
11673 Use char because int might match the return type of a GCC
11674 builtin and then its argument prototype would still apply. */
11675 #ifdef __cplusplus
11676 extern "C"
11677 #endif
11678 char RegOpenKeyExA ();
11679 int
11680 main ()
11681 {
11682 return RegOpenKeyExA ();
11683 ;
11684 return 0;
11685 }
11686 _ACEOF
11687 for ac_lib in '' advapi32; do
11688 if test -z "$ac_lib"; then
11689 ac_res="none required"
11690 else
11691 ac_res=-l$ac_lib
11692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11693 fi
11694 if ac_fn_c_try_link "$LINENO"; then :
11695 ac_cv_search_RegOpenKeyExA=$ac_res
11696 fi
11697 rm -f core conftest.err conftest.$ac_objext \
11698 conftest$ac_exeext
11699 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11700 break
11701 fi
11702 done
11703 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11704
11705 else
11706 ac_cv_search_RegOpenKeyExA=no
11707 fi
11708 rm conftest.$ac_ext
11709 LIBS=$ac_func_search_save_LIBS
11710 fi
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11712 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11713 ac_res=$ac_cv_search_RegOpenKeyExA
11714 if test "$ac_res" != no; then :
11715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11716
11717 else
11718 enable_win32_registry=no
11719 fi
11720
11721 fi
11722
11723 if test "x$enable_win32_registry" != xno; then
11724
11725 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11726
11727
11728 if test "x$enable_win32_registry" != xyes \
11729 && test "x$enable_win32_registry" != x; then
11730
11731 cat >>confdefs.h <<_ACEOF
11732 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11733 _ACEOF
11734
11735 fi
11736 fi
11737 ;;
11738 esac
11739
11740 # Get an absolute path to the GCC top-level source directory
11741 holddir=`${PWDCMD-pwd}`
11742 cd $srcdir
11743 topdir=`${PWDCMD-pwd}`
11744 cd $holddir
11745
11746 # Conditionalize the makefile for this host machine.
11747 xmake_file=
11748 for f in ${host_xmake_file}
11749 do
11750 if test -f ${srcdir}/config/$f
11751 then
11752 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11753 fi
11754 done
11755
11756 # Conditionalize the makefile for this target machine.
11757 tmake_file_=
11758 for f in ${tmake_file}
11759 do
11760 if test -f ${srcdir}/config/$f
11761 then
11762 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11763 fi
11764 done
11765 tmake_file="${tmake_file_}"
11766
11767 out_object_file=`basename $out_file .c`.o
11768 common_out_object_file=`basename $common_out_file .c`.o
11769
11770 tm_file_list="options.h"
11771 tm_include_list="options.h insn-constants.h"
11772 for f in $tm_file; do
11773 case $f in
11774 ./* )
11775 f=`echo $f | sed 's/^..//'`
11776 tm_file_list="${tm_file_list} $f"
11777 tm_include_list="${tm_include_list} $f"
11778 ;;
11779 defaults.h )
11780 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11781 tm_include_list="${tm_include_list} $f"
11782 ;;
11783 * )
11784 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11785 tm_include_list="${tm_include_list} config/$f"
11786 ;;
11787 esac
11788 done
11789
11790 tm_p_file_list=
11791 tm_p_include_list=
11792 for f in $tm_p_file; do
11793 case $f in
11794 tm-preds.h )
11795 tm_p_file_list="${tm_p_file_list} $f"
11796 tm_p_include_list="${tm_p_include_list} $f"
11797 ;;
11798 * )
11799 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11800 tm_p_include_list="${tm_p_include_list} config/$f"
11801 esac
11802 done
11803
11804 xm_file_list=
11805 xm_include_list=
11806 for f in $xm_file; do
11807 case $f in
11808 ansidecl.h )
11809 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11810 xm_include_list="${xm_include_list} $f"
11811 ;;
11812 auto-host.h )
11813 xm_file_list="${xm_file_list} $f"
11814 xm_include_list="${xm_include_list} $f"
11815 ;;
11816 * )
11817 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11818 xm_include_list="${xm_include_list} config/$f"
11819 ;;
11820 esac
11821 done
11822
11823 host_xm_file_list=
11824 host_xm_include_list=
11825 for f in $host_xm_file; do
11826 case $f in
11827 ansidecl.h )
11828 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11829 host_xm_include_list="${host_xm_include_list} $f"
11830 ;;
11831 auto-host.h )
11832 host_xm_file_list="${host_xm_file_list} $f"
11833 host_xm_include_list="${host_xm_include_list} $f"
11834 ;;
11835 * )
11836 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11837 host_xm_include_list="${host_xm_include_list} config/$f"
11838 ;;
11839 esac
11840 done
11841
11842 build_xm_file_list=
11843 for f in $build_xm_file; do
11844 case $f in
11845 ansidecl.h )
11846 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11847 build_xm_include_list="${build_xm_include_list} $f"
11848 ;;
11849 auto-build.h | auto-host.h )
11850 build_xm_file_list="${build_xm_file_list} $f"
11851 build_xm_include_list="${build_xm_include_list} $f"
11852 ;;
11853 * )
11854 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11855 build_xm_include_list="${build_xm_include_list} config/$f"
11856 ;;
11857 esac
11858 done
11859
11860 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11861 # cross-compiler which does not use the native headers and libraries.
11862 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11863 CROSS=
11864 ALL=all.internal
11865 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11866
11867 if test "x$with_build_sysroot" != x; then
11868 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11869 else
11870 # This value is used, even on a native system, because
11871 # CROSS_SYSTEM_HEADER_DIR is just
11872 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11873 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11874 fi
11875
11876 if test x$host != x$target
11877 then
11878 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11879 ALL=all.cross
11880 SYSTEM_HEADER_DIR=$build_system_header_dir
11881 case "$host","$target" in
11882 # Darwin crosses can use the host system's libraries and headers,
11883 # because of the fat library support. Of course, it must be the
11884 # same version of Darwin on both sides. Allow the user to
11885 # just say --target=foo-darwin without a version number to mean
11886 # "the version on this system".
11887 *-*-darwin*,*-*-darwin*)
11888 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11889 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11890 if test $hostos = $targetos -o $targetos = darwin ; then
11891 CROSS=
11892 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11893 with_headers=yes
11894 fi
11895 ;;
11896
11897 i?86-*-*,x86_64-*-* \
11898 | powerpc*-*-*,powerpc64*-*-*)
11899 CROSS="$CROSS -DNATIVE_CROSS" ;;
11900 esac
11901
11902 case $target in
11903 *-*-mingw*)
11904 if test "x$with_headers" = x; then
11905 with_headers=yes
11906 fi
11907 ;;
11908 *)
11909 ;;
11910 esac
11911 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11912 SYSTEM_HEADER_DIR=$build_system_header_dir
11913 fi
11914
11915 # If this is a cross-compiler that does not
11916 # have its own set of headers then define
11917 # inhibit_libc
11918
11919 # If this is using newlib, without having the headers available now,
11920 # then define inhibit_libc in LIBGCC2_CFLAGS.
11921 # This prevents libgcc2 from containing any code which requires libc
11922 # support.
11923 : ${inhibit_libc=false}
11924 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11925 test x$with_newlib = xyes ; } &&
11926 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11927 inhibit_libc=true
11928 fi
11929
11930
11931 # When building gcc with a cross-compiler, we need to adjust things so
11932 # that the generator programs are still built with the native compiler.
11933 # Also, we cannot run fixincludes.
11934
11935 # These are the normal (build=host) settings:
11936 CC_FOR_BUILD='$(CC)'
11937 BUILD_CFLAGS='$(ALL_CFLAGS)'
11938 BUILD_LDFLAGS='$(LDFLAGS)'
11939 STMP_FIXINC=stmp-fixinc
11940
11941 # And these apply if build != host, or we are generating coverage data
11942 if test x$build != x$host || test "x$coverage_flags" != x
11943 then
11944 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11945 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11946 fi
11947
11948 # Expand extra_headers to include complete path.
11949 # This substitutes for lots of t-* files.
11950 extra_headers_list=
11951 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11952 for file in ${extra_headers} ; do
11953 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11954 done
11955
11956 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11957 if test x"$use_gcc_tgmath" = xyes
11958 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11959 fi
11960
11961 # Define collect2 in Makefile.
11962 case $host_can_use_collect2 in
11963 no) collect2= ;;
11964 *) collect2='collect2$(exeext)' ;;
11965 esac
11966
11967
11968 # Add a definition of USE_COLLECT2 if system wants one.
11969 case $use_collect2 in
11970 no) use_collect2= ;;
11971 "") ;;
11972 *)
11973 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11974 xm_defines="${xm_defines} USE_COLLECT2"
11975 case $host_can_use_collect2 in
11976 no)
11977 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11978 ;;
11979 esac
11980 ;;
11981 esac
11982
11983
11984 cat >>confdefs.h <<_ACEOF
11985 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11986 _ACEOF
11987
11988
11989 # ---------------------------
11990 # Assembler & linker features
11991 # ---------------------------
11992
11993 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11994 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11995 # However when ld-new is first executed from the build tree, libtool will
11996 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11997 # to the build tree. While doing this we need to use the previous-stage
11998 # linker, or we have an infinite loop. The presence of a shell script as
11999 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12000 # the gcc/collect-ld script. So we need to know how libtool works, or
12001 # exec-tool will fail.
12002
12003
12004 case `pwd` in
12005 *\ * | *\ *)
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12007 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12008 esac
12009
12010
12011
12012 macro_version='2.2.7a'
12013 macro_revision='1.3134'
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027 ltmain="$ac_aux_dir/ltmain.sh"
12028
12029 # Backslashify metacharacters that are still active within
12030 # double-quoted strings.
12031 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12032
12033 # Same as above, but do not quote variable references.
12034 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12035
12036 # Sed substitution to delay expansion of an escaped shell variable in a
12037 # double_quote_subst'ed string.
12038 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12039
12040 # Sed substitution to delay expansion of an escaped single quote.
12041 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12042
12043 # Sed substitution to avoid accidental globbing in evaled expressions
12044 no_glob_subst='s/\*/\\\*/g'
12045
12046 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12047 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12048 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12049
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12051 $as_echo_n "checking how to print strings... " >&6; }
12052 # Test print first, because it will be a builtin if present.
12053 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12054 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12055 ECHO='print -r --'
12056 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12057 ECHO='printf %s\n'
12058 else
12059 # Use this function as a fallback that always works.
12060 func_fallback_echo ()
12061 {
12062 eval 'cat <<_LTECHO_EOF
12063 $1
12064 _LTECHO_EOF'
12065 }
12066 ECHO='func_fallback_echo'
12067 fi
12068
12069 # func_echo_all arg...
12070 # Invoke $ECHO with all args, space-separated.
12071 func_echo_all ()
12072 {
12073 $ECHO ""
12074 }
12075
12076 case "$ECHO" in
12077 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12078 $as_echo "printf" >&6; } ;;
12079 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12080 $as_echo "print -r" >&6; } ;;
12081 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12082 $as_echo "cat" >&6; } ;;
12083 esac
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12099 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12100 if test "${ac_cv_path_SED+set}" = set; then :
12101 $as_echo_n "(cached) " >&6
12102 else
12103 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12104 for ac_i in 1 2 3 4 5 6 7; do
12105 ac_script="$ac_script$as_nl$ac_script"
12106 done
12107 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12108 { ac_script=; unset ac_script;}
12109 if test -z "$SED"; then
12110 ac_path_SED_found=false
12111 # Loop through the user's path and test for each of PROGNAME-LIST
12112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113 for as_dir in $PATH
12114 do
12115 IFS=$as_save_IFS
12116 test -z "$as_dir" && as_dir=.
12117 for ac_prog in sed gsed; do
12118 for ac_exec_ext in '' $ac_executable_extensions; do
12119 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12120 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12121 # Check for GNU ac_path_SED and select it if it is found.
12122 # Check for GNU $ac_path_SED
12123 case `"$ac_path_SED" --version 2>&1` in
12124 *GNU*)
12125 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12126 *)
12127 ac_count=0
12128 $as_echo_n 0123456789 >"conftest.in"
12129 while :
12130 do
12131 cat "conftest.in" "conftest.in" >"conftest.tmp"
12132 mv "conftest.tmp" "conftest.in"
12133 cp "conftest.in" "conftest.nl"
12134 $as_echo '' >> "conftest.nl"
12135 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12137 as_fn_arith $ac_count + 1 && ac_count=$as_val
12138 if test $ac_count -gt ${ac_path_SED_max-0}; then
12139 # Best one so far, save it but keep looking for a better one
12140 ac_cv_path_SED="$ac_path_SED"
12141 ac_path_SED_max=$ac_count
12142 fi
12143 # 10*(2^10) chars as input seems more than enough
12144 test $ac_count -gt 10 && break
12145 done
12146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12147 esac
12148
12149 $ac_path_SED_found && break 3
12150 done
12151 done
12152 done
12153 IFS=$as_save_IFS
12154 if test -z "$ac_cv_path_SED"; then
12155 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12156 fi
12157 else
12158 ac_cv_path_SED=$SED
12159 fi
12160
12161 fi
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12163 $as_echo "$ac_cv_path_SED" >&6; }
12164 SED="$ac_cv_path_SED"
12165 rm -f conftest.sed
12166
12167 test -z "$SED" && SED=sed
12168 Xsed="$SED -e 1s/^X//"
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12181 $as_echo_n "checking for fgrep... " >&6; }
12182 if test "${ac_cv_path_FGREP+set}" = set; then :
12183 $as_echo_n "(cached) " >&6
12184 else
12185 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12186 then ac_cv_path_FGREP="$GREP -F"
12187 else
12188 if test -z "$FGREP"; then
12189 ac_path_FGREP_found=false
12190 # Loop through the user's path and test for each of PROGNAME-LIST
12191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12193 do
12194 IFS=$as_save_IFS
12195 test -z "$as_dir" && as_dir=.
12196 for ac_prog in fgrep; do
12197 for ac_exec_ext in '' $ac_executable_extensions; do
12198 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12199 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12200 # Check for GNU ac_path_FGREP and select it if it is found.
12201 # Check for GNU $ac_path_FGREP
12202 case `"$ac_path_FGREP" --version 2>&1` in
12203 *GNU*)
12204 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12205 *)
12206 ac_count=0
12207 $as_echo_n 0123456789 >"conftest.in"
12208 while :
12209 do
12210 cat "conftest.in" "conftest.in" >"conftest.tmp"
12211 mv "conftest.tmp" "conftest.in"
12212 cp "conftest.in" "conftest.nl"
12213 $as_echo 'FGREP' >> "conftest.nl"
12214 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12215 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12216 as_fn_arith $ac_count + 1 && ac_count=$as_val
12217 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12218 # Best one so far, save it but keep looking for a better one
12219 ac_cv_path_FGREP="$ac_path_FGREP"
12220 ac_path_FGREP_max=$ac_count
12221 fi
12222 # 10*(2^10) chars as input seems more than enough
12223 test $ac_count -gt 10 && break
12224 done
12225 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12226 esac
12227
12228 $ac_path_FGREP_found && break 3
12229 done
12230 done
12231 done
12232 IFS=$as_save_IFS
12233 if test -z "$ac_cv_path_FGREP"; then
12234 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12235 fi
12236 else
12237 ac_cv_path_FGREP=$FGREP
12238 fi
12239
12240 fi
12241 fi
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12243 $as_echo "$ac_cv_path_FGREP" >&6; }
12244 FGREP="$ac_cv_path_FGREP"
12245
12246
12247 test -z "$GREP" && GREP=grep
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267 # Check whether --with-gnu-ld was given.
12268 if test "${with_gnu_ld+set}" = set; then :
12269 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12270 else
12271 with_gnu_ld=no
12272 fi
12273
12274 ac_prog=ld
12275 if test "$GCC" = yes; then
12276 # Check if gcc -print-prog-name=ld gives a path.
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12278 $as_echo_n "checking for ld used by $CC... " >&6; }
12279 case $host in
12280 *-*-mingw*)
12281 # gcc leaves a trailing carriage return which upsets mingw
12282 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12283 *)
12284 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12285 esac
12286 case $ac_prog in
12287 # Accept absolute paths.
12288 [\\/]* | ?:[\\/]*)
12289 re_direlt='/[^/][^/]*/\.\./'
12290 # Canonicalize the pathname of ld
12291 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12292 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12293 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12294 done
12295 test -z "$LD" && LD="$ac_prog"
12296 ;;
12297 "")
12298 # If it fails, then pretend we aren't using GCC.
12299 ac_prog=ld
12300 ;;
12301 *)
12302 # If it is relative, then search for the first ld in PATH.
12303 with_gnu_ld=unknown
12304 ;;
12305 esac
12306 elif test "$with_gnu_ld" = yes; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12308 $as_echo_n "checking for GNU ld... " >&6; }
12309 else
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12311 $as_echo_n "checking for non-GNU ld... " >&6; }
12312 fi
12313 if test "${lt_cv_path_LD+set}" = set; then :
12314 $as_echo_n "(cached) " >&6
12315 else
12316 if test -z "$LD"; then
12317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12318 for ac_dir in $PATH; do
12319 IFS="$lt_save_ifs"
12320 test -z "$ac_dir" && ac_dir=.
12321 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12322 lt_cv_path_LD="$ac_dir/$ac_prog"
12323 # Check to see if the program is GNU ld. I'd rather use --version,
12324 # but apparently some variants of GNU ld only accept -v.
12325 # Break only if it was the GNU/non-GNU ld that we prefer.
12326 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12327 *GNU* | *'with BFD'*)
12328 test "$with_gnu_ld" != no && break
12329 ;;
12330 *)
12331 test "$with_gnu_ld" != yes && break
12332 ;;
12333 esac
12334 fi
12335 done
12336 IFS="$lt_save_ifs"
12337 else
12338 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12339 fi
12340 fi
12341
12342 LD="$lt_cv_path_LD"
12343 if test -n "$LD"; then
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12345 $as_echo "$LD" >&6; }
12346 else
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348 $as_echo "no" >&6; }
12349 fi
12350 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12352 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12353 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12354 $as_echo_n "(cached) " >&6
12355 else
12356 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12357 case `$LD -v 2>&1 </dev/null` in
12358 *GNU* | *'with BFD'*)
12359 lt_cv_prog_gnu_ld=yes
12360 ;;
12361 *)
12362 lt_cv_prog_gnu_ld=no
12363 ;;
12364 esac
12365 fi
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12367 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12368 with_gnu_ld=$lt_cv_prog_gnu_ld
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12379 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12380 if test "${lt_cv_path_NM+set}" = set; then :
12381 $as_echo_n "(cached) " >&6
12382 else
12383 if test -n "$NM"; then
12384 # Let the user override the test.
12385 lt_cv_path_NM="$NM"
12386 else
12387 lt_nm_to_check="${ac_tool_prefix}nm"
12388 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12389 lt_nm_to_check="$lt_nm_to_check nm"
12390 fi
12391 for lt_tmp_nm in $lt_nm_to_check; do
12392 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12393 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12394 IFS="$lt_save_ifs"
12395 test -z "$ac_dir" && ac_dir=.
12396 tmp_nm="$ac_dir/$lt_tmp_nm"
12397 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12398 # Check to see if the nm accepts a BSD-compat flag.
12399 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12400 # nm: unknown option "B" ignored
12401 # Tru64's nm complains that /dev/null is an invalid object file
12402 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12403 */dev/null* | *'Invalid file or object type'*)
12404 lt_cv_path_NM="$tmp_nm -B"
12405 break
12406 ;;
12407 *)
12408 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12409 */dev/null*)
12410 lt_cv_path_NM="$tmp_nm -p"
12411 break
12412 ;;
12413 *)
12414 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12415 continue # so that we can try to find one that supports BSD flags
12416 ;;
12417 esac
12418 ;;
12419 esac
12420 fi
12421 done
12422 IFS="$lt_save_ifs"
12423 done
12424 : ${lt_cv_path_NM=no}
12425 fi
12426 fi
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12428 $as_echo "$lt_cv_path_NM" >&6; }
12429 if test "$lt_cv_path_NM" != "no"; then
12430 NM="$lt_cv_path_NM"
12431 else
12432 # Didn't find any BSD compatible name lister, look for dumpbin.
12433 if test -n "$DUMPBIN"; then :
12434 # Let the user override the test.
12435 else
12436 if test -n "$ac_tool_prefix"; then
12437 for ac_prog in dumpbin "link -dump"
12438 do
12439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12440 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12442 $as_echo_n "checking for $ac_word... " >&6; }
12443 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12444 $as_echo_n "(cached) " >&6
12445 else
12446 if test -n "$DUMPBIN"; then
12447 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12448 else
12449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450 for as_dir in $PATH
12451 do
12452 IFS=$as_save_IFS
12453 test -z "$as_dir" && as_dir=.
12454 for ac_exec_ext in '' $ac_executable_extensions; do
12455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12456 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12458 break 2
12459 fi
12460 done
12461 done
12462 IFS=$as_save_IFS
12463
12464 fi
12465 fi
12466 DUMPBIN=$ac_cv_prog_DUMPBIN
12467 if test -n "$DUMPBIN"; then
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12469 $as_echo "$DUMPBIN" >&6; }
12470 else
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; }
12473 fi
12474
12475
12476 test -n "$DUMPBIN" && break
12477 done
12478 fi
12479 if test -z "$DUMPBIN"; then
12480 ac_ct_DUMPBIN=$DUMPBIN
12481 for ac_prog in dumpbin "link -dump"
12482 do
12483 # Extract the first word of "$ac_prog", so it can be a program name with args.
12484 set dummy $ac_prog; ac_word=$2
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12486 $as_echo_n "checking for $ac_word... " >&6; }
12487 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12488 $as_echo_n "(cached) " >&6
12489 else
12490 if test -n "$ac_ct_DUMPBIN"; then
12491 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12492 else
12493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12494 for as_dir in $PATH
12495 do
12496 IFS=$as_save_IFS
12497 test -z "$as_dir" && as_dir=.
12498 for ac_exec_ext in '' $ac_executable_extensions; do
12499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12500 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12502 break 2
12503 fi
12504 done
12505 done
12506 IFS=$as_save_IFS
12507
12508 fi
12509 fi
12510 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12511 if test -n "$ac_ct_DUMPBIN"; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12513 $as_echo "$ac_ct_DUMPBIN" >&6; }
12514 else
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516 $as_echo "no" >&6; }
12517 fi
12518
12519
12520 test -n "$ac_ct_DUMPBIN" && break
12521 done
12522
12523 if test "x$ac_ct_DUMPBIN" = x; then
12524 DUMPBIN=":"
12525 else
12526 case $cross_compiling:$ac_tool_warned in
12527 yes:)
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12530 ac_tool_warned=yes ;;
12531 esac
12532 DUMPBIN=$ac_ct_DUMPBIN
12533 fi
12534 fi
12535
12536 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12537 *COFF*)
12538 DUMPBIN="$DUMPBIN -symbols"
12539 ;;
12540 *)
12541 DUMPBIN=:
12542 ;;
12543 esac
12544 fi
12545
12546 if test "$DUMPBIN" != ":"; then
12547 NM="$DUMPBIN"
12548 fi
12549 fi
12550 test -z "$NM" && NM=nm
12551
12552
12553
12554
12555
12556
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12558 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12559 if test "${lt_cv_nm_interface+set}" = set; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 lt_cv_nm_interface="BSD nm"
12563 echo "int some_variable = 0;" > conftest.$ac_ext
12564 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12565 (eval "$ac_compile" 2>conftest.err)
12566 cat conftest.err >&5
12567 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12568 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12569 cat conftest.err >&5
12570 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12571 cat conftest.out >&5
12572 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12573 lt_cv_nm_interface="MS dumpbin"
12574 fi
12575 rm -f conftest*
12576 fi
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12578 $as_echo "$lt_cv_nm_interface" >&6; }
12579
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12581 $as_echo_n "checking whether ln -s works... " >&6; }
12582 LN_S=$as_ln_s
12583 if test "$LN_S" = "ln -s"; then
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12585 $as_echo "yes" >&6; }
12586 else
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12588 $as_echo "no, using $LN_S" >&6; }
12589 fi
12590
12591 # find the maximum length of command line arguments
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12593 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12594 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12595 $as_echo_n "(cached) " >&6
12596 else
12597 i=0
12598 teststring="ABCD"
12599
12600 case $build_os in
12601 msdosdjgpp*)
12602 # On DJGPP, this test can blow up pretty badly due to problems in libc
12603 # (any single argument exceeding 2000 bytes causes a buffer overrun
12604 # during glob expansion). Even if it were fixed, the result of this
12605 # check would be larger than it should be.
12606 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12607 ;;
12608
12609 gnu*)
12610 # Under GNU Hurd, this test is not required because there is
12611 # no limit to the length of command line arguments.
12612 # Libtool will interpret -1 as no limit whatsoever
12613 lt_cv_sys_max_cmd_len=-1;
12614 ;;
12615
12616 cygwin* | mingw* | cegcc*)
12617 # On Win9x/ME, this test blows up -- it succeeds, but takes
12618 # about 5 minutes as the teststring grows exponentially.
12619 # Worse, since 9x/ME are not pre-emptively multitasking,
12620 # you end up with a "frozen" computer, even though with patience
12621 # the test eventually succeeds (with a max line length of 256k).
12622 # Instead, let's just punt: use the minimum linelength reported by
12623 # all of the supported platforms: 8192 (on NT/2K/XP).
12624 lt_cv_sys_max_cmd_len=8192;
12625 ;;
12626
12627 mint*)
12628 # On MiNT this can take a long time and run out of memory.
12629 lt_cv_sys_max_cmd_len=8192;
12630 ;;
12631
12632 amigaos*)
12633 # On AmigaOS with pdksh, this test takes hours, literally.
12634 # So we just punt and use a minimum line length of 8192.
12635 lt_cv_sys_max_cmd_len=8192;
12636 ;;
12637
12638 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12639 # This has been around since 386BSD, at least. Likely further.
12640 if test -x /sbin/sysctl; then
12641 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12642 elif test -x /usr/sbin/sysctl; then
12643 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12644 else
12645 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12646 fi
12647 # And add a safety zone
12648 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12649 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12650 ;;
12651
12652 interix*)
12653 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12654 lt_cv_sys_max_cmd_len=196608
12655 ;;
12656
12657 osf*)
12658 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12659 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12660 # nice to cause kernel panics so lets avoid the loop below.
12661 # First set a reasonable default.
12662 lt_cv_sys_max_cmd_len=16384
12663 #
12664 if test -x /sbin/sysconfig; then
12665 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12666 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12667 esac
12668 fi
12669 ;;
12670 sco3.2v5*)
12671 lt_cv_sys_max_cmd_len=102400
12672 ;;
12673 sysv5* | sco5v6* | sysv4.2uw2*)
12674 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12675 if test -n "$kargmax"; then
12676 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12677 else
12678 lt_cv_sys_max_cmd_len=32768
12679 fi
12680 ;;
12681 *)
12682 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12683 if test -n "$lt_cv_sys_max_cmd_len"; then
12684 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12685 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12686 else
12687 # Make teststring a little bigger before we do anything with it.
12688 # a 1K string should be a reasonable start.
12689 for i in 1 2 3 4 5 6 7 8 ; do
12690 teststring=$teststring$teststring
12691 done
12692 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12693 # If test is not a shell built-in, we'll probably end up computing a
12694 # maximum length that is only half of the actual maximum length, but
12695 # we can't tell.
12696 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12697 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12698 test $i != 17 # 1/2 MB should be enough
12699 do
12700 i=`expr $i + 1`
12701 teststring=$teststring$teststring
12702 done
12703 # Only check the string length outside the loop.
12704 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12705 teststring=
12706 # Add a significant safety factor because C++ compilers can tack on
12707 # massive amounts of additional arguments before passing them to the
12708 # linker. It appears as though 1/2 is a usable value.
12709 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12710 fi
12711 ;;
12712 esac
12713
12714 fi
12715
12716 if test -n $lt_cv_sys_max_cmd_len ; then
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12718 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12719 else
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12721 $as_echo "none" >&6; }
12722 fi
12723 max_cmd_len=$lt_cv_sys_max_cmd_len
12724
12725
12726
12727
12728
12729
12730 : ${CP="cp -f"}
12731 : ${MV="mv -f"}
12732 : ${RM="rm -f"}
12733
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12735 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12736 # Try some XSI features
12737 xsi_shell=no
12738 ( _lt_dummy="a/b/c"
12739 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12740 = c,a/b,, \
12741 && eval 'test $(( 1 + 1 )) -eq 2 \
12742 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12743 && xsi_shell=yes
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12745 $as_echo "$xsi_shell" >&6; }
12746
12747
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12749 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12750 lt_shell_append=no
12751 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12752 >/dev/null 2>&1 \
12753 && lt_shell_append=yes
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12755 $as_echo "$lt_shell_append" >&6; }
12756
12757
12758 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12759 lt_unset=unset
12760 else
12761 lt_unset=false
12762 fi
12763
12764
12765
12766
12767
12768 # test EBCDIC or ASCII
12769 case `echo X|tr X '\101'` in
12770 A) # ASCII based system
12771 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12772 lt_SP2NL='tr \040 \012'
12773 lt_NL2SP='tr \015\012 \040\040'
12774 ;;
12775 *) # EBCDIC based system
12776 lt_SP2NL='tr \100 \n'
12777 lt_NL2SP='tr \r\n \100\100'
12778 ;;
12779 esac
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12790 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12791 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12792 $as_echo_n "(cached) " >&6
12793 else
12794 lt_cv_ld_reload_flag='-r'
12795 fi
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12797 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12798 reload_flag=$lt_cv_ld_reload_flag
12799 case $reload_flag in
12800 "" | " "*) ;;
12801 *) reload_flag=" $reload_flag" ;;
12802 esac
12803 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12804 case $host_os in
12805 darwin*)
12806 if test "$GCC" = yes; then
12807 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12808 else
12809 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12810 fi
12811 ;;
12812 esac
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822 if test -n "$ac_tool_prefix"; then
12823 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12824 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12826 $as_echo_n "checking for $ac_word... " >&6; }
12827 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12828 $as_echo_n "(cached) " >&6
12829 else
12830 if test -n "$OBJDUMP"; then
12831 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12832 else
12833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12834 for as_dir in $PATH
12835 do
12836 IFS=$as_save_IFS
12837 test -z "$as_dir" && as_dir=.
12838 for ac_exec_ext in '' $ac_executable_extensions; do
12839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12840 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12842 break 2
12843 fi
12844 done
12845 done
12846 IFS=$as_save_IFS
12847
12848 fi
12849 fi
12850 OBJDUMP=$ac_cv_prog_OBJDUMP
12851 if test -n "$OBJDUMP"; then
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12853 $as_echo "$OBJDUMP" >&6; }
12854 else
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856 $as_echo "no" >&6; }
12857 fi
12858
12859
12860 fi
12861 if test -z "$ac_cv_prog_OBJDUMP"; then
12862 ac_ct_OBJDUMP=$OBJDUMP
12863 # Extract the first word of "objdump", so it can be a program name with args.
12864 set dummy objdump; ac_word=$2
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12866 $as_echo_n "checking for $ac_word... " >&6; }
12867 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12868 $as_echo_n "(cached) " >&6
12869 else
12870 if test -n "$ac_ct_OBJDUMP"; then
12871 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12872 else
12873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12874 for as_dir in $PATH
12875 do
12876 IFS=$as_save_IFS
12877 test -z "$as_dir" && as_dir=.
12878 for ac_exec_ext in '' $ac_executable_extensions; do
12879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12880 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12882 break 2
12883 fi
12884 done
12885 done
12886 IFS=$as_save_IFS
12887
12888 fi
12889 fi
12890 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12891 if test -n "$ac_ct_OBJDUMP"; then
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12893 $as_echo "$ac_ct_OBJDUMP" >&6; }
12894 else
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12896 $as_echo "no" >&6; }
12897 fi
12898
12899 if test "x$ac_ct_OBJDUMP" = x; then
12900 OBJDUMP="false"
12901 else
12902 case $cross_compiling:$ac_tool_warned in
12903 yes:)
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12906 ac_tool_warned=yes ;;
12907 esac
12908 OBJDUMP=$ac_ct_OBJDUMP
12909 fi
12910 else
12911 OBJDUMP="$ac_cv_prog_OBJDUMP"
12912 fi
12913
12914 test -z "$OBJDUMP" && OBJDUMP=objdump
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12925 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12926 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12927 $as_echo_n "(cached) " >&6
12928 else
12929 lt_cv_file_magic_cmd='$MAGIC_CMD'
12930 lt_cv_file_magic_test_file=
12931 lt_cv_deplibs_check_method='unknown'
12932 # Need to set the preceding variable on all platforms that support
12933 # interlibrary dependencies.
12934 # 'none' -- dependencies not supported.
12935 # `unknown' -- same as none, but documents that we really don't know.
12936 # 'pass_all' -- all dependencies passed with no checks.
12937 # 'test_compile' -- check by making test program.
12938 # 'file_magic [[regex]]' -- check by looking for files in library path
12939 # which responds to the $file_magic_cmd with a given extended regex.
12940 # If you have `file' or equivalent on your system and you're not sure
12941 # whether `pass_all' will *always* work, you probably want this one.
12942
12943 case $host_os in
12944 aix[4-9]*)
12945 lt_cv_deplibs_check_method=pass_all
12946 ;;
12947
12948 beos*)
12949 lt_cv_deplibs_check_method=pass_all
12950 ;;
12951
12952 bsdi[45]*)
12953 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12954 lt_cv_file_magic_cmd='/usr/bin/file -L'
12955 lt_cv_file_magic_test_file=/shlib/libc.so
12956 ;;
12957
12958 cygwin*)
12959 # func_win32_libid is a shell function defined in ltmain.sh
12960 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12961 lt_cv_file_magic_cmd='func_win32_libid'
12962 ;;
12963
12964 mingw* | pw32*)
12965 # Base MSYS/MinGW do not provide the 'file' command needed by
12966 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12967 # unless we find 'file', for example because we are cross-compiling.
12968 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12969 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12970 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12971 lt_cv_file_magic_cmd='func_win32_libid'
12972 else
12973 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12974 lt_cv_file_magic_cmd='$OBJDUMP -f'
12975 fi
12976 ;;
12977
12978 cegcc*)
12979 # use the weaker test based on 'objdump'. See mingw*.
12980 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12981 lt_cv_file_magic_cmd='$OBJDUMP -f'
12982 ;;
12983
12984 darwin* | rhapsody*)
12985 lt_cv_deplibs_check_method=pass_all
12986 ;;
12987
12988 freebsd* | dragonfly*)
12989 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12990 case $host_cpu in
12991 i*86 )
12992 # Not sure whether the presence of OpenBSD here was a mistake.
12993 # Let's accept both of them until this is cleared up.
12994 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12995 lt_cv_file_magic_cmd=/usr/bin/file
12996 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12997 ;;
12998 esac
12999 else
13000 lt_cv_deplibs_check_method=pass_all
13001 fi
13002 ;;
13003
13004 gnu*)
13005 lt_cv_deplibs_check_method=pass_all
13006 ;;
13007
13008 haiku*)
13009 lt_cv_deplibs_check_method=pass_all
13010 ;;
13011
13012 hpux10.20* | hpux11*)
13013 lt_cv_file_magic_cmd=/usr/bin/file
13014 case $host_cpu in
13015 ia64*)
13016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13017 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13018 ;;
13019 hppa*64*)
13020 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]'
13021 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13022 ;;
13023 *)
13024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13025 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13026 ;;
13027 esac
13028 ;;
13029
13030 interix[3-9]*)
13031 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13033 ;;
13034
13035 irix5* | irix6* | nonstopux*)
13036 case $LD in
13037 *-32|*"-32 ") libmagic=32-bit;;
13038 *-n32|*"-n32 ") libmagic=N32;;
13039 *-64|*"-64 ") libmagic=64-bit;;
13040 *) libmagic=never-match;;
13041 esac
13042 lt_cv_deplibs_check_method=pass_all
13043 ;;
13044
13045 # This must be Linux ELF.
13046 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13047 lt_cv_deplibs_check_method=pass_all
13048 ;;
13049
13050 netbsd*)
13051 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13053 else
13054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13055 fi
13056 ;;
13057
13058 newos6*)
13059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13060 lt_cv_file_magic_cmd=/usr/bin/file
13061 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13062 ;;
13063
13064 *nto* | *qnx*)
13065 lt_cv_deplibs_check_method=pass_all
13066 ;;
13067
13068 openbsd*)
13069 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13071 else
13072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13073 fi
13074 ;;
13075
13076 osf3* | osf4* | osf5*)
13077 lt_cv_deplibs_check_method=pass_all
13078 ;;
13079
13080 rdos*)
13081 lt_cv_deplibs_check_method=pass_all
13082 ;;
13083
13084 solaris*)
13085 lt_cv_deplibs_check_method=pass_all
13086 ;;
13087
13088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13089 lt_cv_deplibs_check_method=pass_all
13090 ;;
13091
13092 sysv4 | sysv4.3*)
13093 case $host_vendor in
13094 motorola)
13095 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]'
13096 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13097 ;;
13098 ncr)
13099 lt_cv_deplibs_check_method=pass_all
13100 ;;
13101 sequent)
13102 lt_cv_file_magic_cmd='/bin/file'
13103 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13104 ;;
13105 sni)
13106 lt_cv_file_magic_cmd='/bin/file'
13107 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13108 lt_cv_file_magic_test_file=/lib/libc.so
13109 ;;
13110 siemens)
13111 lt_cv_deplibs_check_method=pass_all
13112 ;;
13113 pc)
13114 lt_cv_deplibs_check_method=pass_all
13115 ;;
13116 esac
13117 ;;
13118
13119 tpf*)
13120 lt_cv_deplibs_check_method=pass_all
13121 ;;
13122 esac
13123
13124 fi
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13126 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13127 file_magic_cmd=$lt_cv_file_magic_cmd
13128 deplibs_check_method=$lt_cv_deplibs_check_method
13129 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142 if test -n "$ac_tool_prefix"; then
13143 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13144 set dummy ${ac_tool_prefix}ar; ac_word=$2
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13146 $as_echo_n "checking for $ac_word... " >&6; }
13147 if test "${ac_cv_prog_AR+set}" = set; then :
13148 $as_echo_n "(cached) " >&6
13149 else
13150 if test -n "$AR"; then
13151 ac_cv_prog_AR="$AR" # Let the user override the test.
13152 else
13153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154 for as_dir in $PATH
13155 do
13156 IFS=$as_save_IFS
13157 test -z "$as_dir" && as_dir=.
13158 for ac_exec_ext in '' $ac_executable_extensions; do
13159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13160 ac_cv_prog_AR="${ac_tool_prefix}ar"
13161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13162 break 2
13163 fi
13164 done
13165 done
13166 IFS=$as_save_IFS
13167
13168 fi
13169 fi
13170 AR=$ac_cv_prog_AR
13171 if test -n "$AR"; then
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13173 $as_echo "$AR" >&6; }
13174 else
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176 $as_echo "no" >&6; }
13177 fi
13178
13179
13180 fi
13181 if test -z "$ac_cv_prog_AR"; then
13182 ac_ct_AR=$AR
13183 # Extract the first word of "ar", so it can be a program name with args.
13184 set dummy ar; ac_word=$2
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13186 $as_echo_n "checking for $ac_word... " >&6; }
13187 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13188 $as_echo_n "(cached) " >&6
13189 else
13190 if test -n "$ac_ct_AR"; then
13191 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13192 else
13193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194 for as_dir in $PATH
13195 do
13196 IFS=$as_save_IFS
13197 test -z "$as_dir" && as_dir=.
13198 for ac_exec_ext in '' $ac_executable_extensions; do
13199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13200 ac_cv_prog_ac_ct_AR="ar"
13201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13202 break 2
13203 fi
13204 done
13205 done
13206 IFS=$as_save_IFS
13207
13208 fi
13209 fi
13210 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13211 if test -n "$ac_ct_AR"; then
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13213 $as_echo "$ac_ct_AR" >&6; }
13214 else
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216 $as_echo "no" >&6; }
13217 fi
13218
13219 if test "x$ac_ct_AR" = x; then
13220 AR="false"
13221 else
13222 case $cross_compiling:$ac_tool_warned in
13223 yes:)
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13226 ac_tool_warned=yes ;;
13227 esac
13228 AR=$ac_ct_AR
13229 fi
13230 else
13231 AR="$ac_cv_prog_AR"
13232 fi
13233
13234 test -z "$AR" && AR=ar
13235 test -z "$AR_FLAGS" && AR_FLAGS=cru
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247 if test -n "$ac_tool_prefix"; then
13248 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13249 set dummy ${ac_tool_prefix}strip; ac_word=$2
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13251 $as_echo_n "checking for $ac_word... " >&6; }
13252 if test "${ac_cv_prog_STRIP+set}" = set; then :
13253 $as_echo_n "(cached) " >&6
13254 else
13255 if test -n "$STRIP"; then
13256 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13257 else
13258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13259 for as_dir in $PATH
13260 do
13261 IFS=$as_save_IFS
13262 test -z "$as_dir" && as_dir=.
13263 for ac_exec_ext in '' $ac_executable_extensions; do
13264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13265 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13267 break 2
13268 fi
13269 done
13270 done
13271 IFS=$as_save_IFS
13272
13273 fi
13274 fi
13275 STRIP=$ac_cv_prog_STRIP
13276 if test -n "$STRIP"; then
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13278 $as_echo "$STRIP" >&6; }
13279 else
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13281 $as_echo "no" >&6; }
13282 fi
13283
13284
13285 fi
13286 if test -z "$ac_cv_prog_STRIP"; then
13287 ac_ct_STRIP=$STRIP
13288 # Extract the first word of "strip", so it can be a program name with args.
13289 set dummy strip; ac_word=$2
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13291 $as_echo_n "checking for $ac_word... " >&6; }
13292 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13293 $as_echo_n "(cached) " >&6
13294 else
13295 if test -n "$ac_ct_STRIP"; then
13296 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13297 else
13298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299 for as_dir in $PATH
13300 do
13301 IFS=$as_save_IFS
13302 test -z "$as_dir" && as_dir=.
13303 for ac_exec_ext in '' $ac_executable_extensions; do
13304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13305 ac_cv_prog_ac_ct_STRIP="strip"
13306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13307 break 2
13308 fi
13309 done
13310 done
13311 IFS=$as_save_IFS
13312
13313 fi
13314 fi
13315 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13316 if test -n "$ac_ct_STRIP"; then
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13318 $as_echo "$ac_ct_STRIP" >&6; }
13319 else
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13321 $as_echo "no" >&6; }
13322 fi
13323
13324 if test "x$ac_ct_STRIP" = x; then
13325 STRIP=":"
13326 else
13327 case $cross_compiling:$ac_tool_warned in
13328 yes:)
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13331 ac_tool_warned=yes ;;
13332 esac
13333 STRIP=$ac_ct_STRIP
13334 fi
13335 else
13336 STRIP="$ac_cv_prog_STRIP"
13337 fi
13338
13339 test -z "$STRIP" && STRIP=:
13340
13341
13342
13343
13344
13345
13346 if test -n "$ac_tool_prefix"; then
13347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13348 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13350 $as_echo_n "checking for $ac_word... " >&6; }
13351 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13352 $as_echo_n "(cached) " >&6
13353 else
13354 if test -n "$RANLIB"; then
13355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13356 else
13357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13358 for as_dir in $PATH
13359 do
13360 IFS=$as_save_IFS
13361 test -z "$as_dir" && as_dir=.
13362 for ac_exec_ext in '' $ac_executable_extensions; do
13363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13364 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13366 break 2
13367 fi
13368 done
13369 done
13370 IFS=$as_save_IFS
13371
13372 fi
13373 fi
13374 RANLIB=$ac_cv_prog_RANLIB
13375 if test -n "$RANLIB"; then
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13377 $as_echo "$RANLIB" >&6; }
13378 else
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13380 $as_echo "no" >&6; }
13381 fi
13382
13383
13384 fi
13385 if test -z "$ac_cv_prog_RANLIB"; then
13386 ac_ct_RANLIB=$RANLIB
13387 # Extract the first word of "ranlib", so it can be a program name with args.
13388 set dummy ranlib; ac_word=$2
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13390 $as_echo_n "checking for $ac_word... " >&6; }
13391 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13392 $as_echo_n "(cached) " >&6
13393 else
13394 if test -n "$ac_ct_RANLIB"; then
13395 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13396 else
13397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13398 for as_dir in $PATH
13399 do
13400 IFS=$as_save_IFS
13401 test -z "$as_dir" && as_dir=.
13402 for ac_exec_ext in '' $ac_executable_extensions; do
13403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13404 ac_cv_prog_ac_ct_RANLIB="ranlib"
13405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13406 break 2
13407 fi
13408 done
13409 done
13410 IFS=$as_save_IFS
13411
13412 fi
13413 fi
13414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13415 if test -n "$ac_ct_RANLIB"; then
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13417 $as_echo "$ac_ct_RANLIB" >&6; }
13418 else
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13420 $as_echo "no" >&6; }
13421 fi
13422
13423 if test "x$ac_ct_RANLIB" = x; then
13424 RANLIB=":"
13425 else
13426 case $cross_compiling:$ac_tool_warned in
13427 yes:)
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13430 ac_tool_warned=yes ;;
13431 esac
13432 RANLIB=$ac_ct_RANLIB
13433 fi
13434 else
13435 RANLIB="$ac_cv_prog_RANLIB"
13436 fi
13437
13438 test -z "$RANLIB" && RANLIB=:
13439
13440
13441
13442
13443
13444
13445 # Determine commands to create old-style static archives.
13446 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13447 old_postinstall_cmds='chmod 644 $oldlib'
13448 old_postuninstall_cmds=
13449
13450 if test -n "$RANLIB"; then
13451 case $host_os in
13452 openbsd*)
13453 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13454 ;;
13455 *)
13456 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13457 ;;
13458 esac
13459 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13460 fi
13461
13462 case $host_os in
13463 darwin*)
13464 lock_old_archive_extraction=yes ;;
13465 *)
13466 lock_old_archive_extraction=no ;;
13467 esac
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507 # If no C compiler was specified, use CC.
13508 LTCC=${LTCC-"$CC"}
13509
13510 # If no C compiler flags were specified, use CFLAGS.
13511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13512
13513 # Allow CC to be a program name with arguments.
13514 compiler=$CC
13515
13516
13517 # Check for command to grab the raw symbol name followed by C symbol from nm.
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13519 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13520 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13521 $as_echo_n "(cached) " >&6
13522 else
13523
13524 # These are sane defaults that work on at least a few old systems.
13525 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13526
13527 # Character class describing NM global symbol codes.
13528 symcode='[BCDEGRST]'
13529
13530 # Regexp to match symbols that can be accessed directly from C.
13531 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13532
13533 # Define system-specific variables.
13534 case $host_os in
13535 aix*)
13536 symcode='[BCDT]'
13537 ;;
13538 cygwin* | mingw* | pw32* | cegcc*)
13539 symcode='[ABCDGISTW]'
13540 ;;
13541 hpux*)
13542 if test "$host_cpu" = ia64; then
13543 symcode='[ABCDEGRST]'
13544 fi
13545 ;;
13546 irix* | nonstopux*)
13547 symcode='[BCDEGRST]'
13548 ;;
13549 osf*)
13550 symcode='[BCDEGQRST]'
13551 ;;
13552 solaris*)
13553 symcode='[BDRT]'
13554 ;;
13555 sco3.2v5*)
13556 symcode='[DT]'
13557 ;;
13558 sysv4.2uw2*)
13559 symcode='[DT]'
13560 ;;
13561 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13562 symcode='[ABDT]'
13563 ;;
13564 sysv4)
13565 symcode='[DFNSTU]'
13566 ;;
13567 esac
13568
13569 # If we're using GNU nm, then use its standard symbol codes.
13570 case `$NM -V 2>&1` in
13571 *GNU* | *'with BFD'*)
13572 symcode='[ABCDGIRSTW]' ;;
13573 esac
13574
13575 # Transform an extracted symbol line into a proper C declaration.
13576 # Some systems (esp. on ia64) link data and code symbols differently,
13577 # so use this general approach.
13578 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13579
13580 # Transform an extracted symbol line into symbol name and symbol address
13581 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13582 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'"
13583
13584 # Handle CRLF in mingw tool chain
13585 opt_cr=
13586 case $build_os in
13587 mingw*)
13588 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13589 ;;
13590 esac
13591
13592 # Try without a prefix underscore, then with it.
13593 for ac_symprfx in "" "_"; do
13594
13595 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13596 symxfrm="\\1 $ac_symprfx\\2 \\2"
13597
13598 # Write the raw and C identifiers.
13599 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13600 # Fake it for dumpbin and say T for any non-static function
13601 # and D for any global variable.
13602 # Also find C++ and __fastcall symbols from MSVC++,
13603 # which start with @ or ?.
13604 lt_cv_sys_global_symbol_pipe="$AWK '"\
13605 " {last_section=section; section=\$ 3};"\
13606 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13607 " \$ 0!~/External *\|/{next};"\
13608 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13609 " {if(hide[section]) next};"\
13610 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13611 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13612 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13613 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13614 " ' prfx=^$ac_symprfx"
13615 else
13616 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13617 fi
13618
13619 # Check to see that the pipe works correctly.
13620 pipe_works=no
13621
13622 rm -f conftest*
13623 cat > conftest.$ac_ext <<_LT_EOF
13624 #ifdef __cplusplus
13625 extern "C" {
13626 #endif
13627 char nm_test_var;
13628 void nm_test_func(void);
13629 void nm_test_func(void){}
13630 #ifdef __cplusplus
13631 }
13632 #endif
13633 int main(){nm_test_var='a';nm_test_func();return(0);}
13634 _LT_EOF
13635
13636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13637 (eval $ac_compile) 2>&5
13638 ac_status=$?
13639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13640 test $ac_status = 0; }; then
13641 # Now try to grab the symbols.
13642 nlist=conftest.nm
13643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13644 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13645 ac_status=$?
13646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13647 test $ac_status = 0; } && test -s "$nlist"; then
13648 # Try sorting and uniquifying the output.
13649 if sort "$nlist" | uniq > "$nlist"T; then
13650 mv -f "$nlist"T "$nlist"
13651 else
13652 rm -f "$nlist"T
13653 fi
13654
13655 # Make sure that we snagged all the symbols we need.
13656 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13657 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13658 cat <<_LT_EOF > conftest.$ac_ext
13659 #ifdef __cplusplus
13660 extern "C" {
13661 #endif
13662
13663 _LT_EOF
13664 # Now generate the symbol file.
13665 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13666
13667 cat <<_LT_EOF >> conftest.$ac_ext
13668
13669 /* The mapping between symbol names and symbols. */
13670 const struct {
13671 const char *name;
13672 void *address;
13673 }
13674 lt__PROGRAM__LTX_preloaded_symbols[] =
13675 {
13676 { "@PROGRAM@", (void *) 0 },
13677 _LT_EOF
13678 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13679 cat <<\_LT_EOF >> conftest.$ac_ext
13680 {0, (void *) 0}
13681 };
13682
13683 /* This works around a problem in FreeBSD linker */
13684 #ifdef FREEBSD_WORKAROUND
13685 static const void *lt_preloaded_setup() {
13686 return lt__PROGRAM__LTX_preloaded_symbols;
13687 }
13688 #endif
13689
13690 #ifdef __cplusplus
13691 }
13692 #endif
13693 _LT_EOF
13694 # Now try linking the two files.
13695 mv conftest.$ac_objext conftstm.$ac_objext
13696 lt_save_LIBS="$LIBS"
13697 lt_save_CFLAGS="$CFLAGS"
13698 LIBS="conftstm.$ac_objext"
13699 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13701 (eval $ac_link) 2>&5
13702 ac_status=$?
13703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13704 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13705 pipe_works=yes
13706 fi
13707 LIBS="$lt_save_LIBS"
13708 CFLAGS="$lt_save_CFLAGS"
13709 else
13710 echo "cannot find nm_test_func in $nlist" >&5
13711 fi
13712 else
13713 echo "cannot find nm_test_var in $nlist" >&5
13714 fi
13715 else
13716 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13717 fi
13718 else
13719 echo "$progname: failed program was:" >&5
13720 cat conftest.$ac_ext >&5
13721 fi
13722 rm -rf conftest* conftst*
13723
13724 # Do not use the global_symbol_pipe unless it works.
13725 if test "$pipe_works" = yes; then
13726 break
13727 else
13728 lt_cv_sys_global_symbol_pipe=
13729 fi
13730 done
13731
13732 fi
13733
13734 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13735 lt_cv_sys_global_symbol_to_cdecl=
13736 fi
13737 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13739 $as_echo "failed" >&6; }
13740 else
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13742 $as_echo "ok" >&6; }
13743 fi
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766 # Check whether --enable-libtool-lock was given.
13767 if test "${enable_libtool_lock+set}" = set; then :
13768 enableval=$enable_libtool_lock;
13769 fi
13770
13771 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13772
13773 # Some flags need to be propagated to the compiler or linker for good
13774 # libtool support.
13775 case $host in
13776 ia64-*-hpux*)
13777 # Find out which ABI we are using.
13778 echo 'int i;' > conftest.$ac_ext
13779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13780 (eval $ac_compile) 2>&5
13781 ac_status=$?
13782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13783 test $ac_status = 0; }; then
13784 case `/usr/bin/file conftest.$ac_objext` in
13785 *ELF-32*)
13786 HPUX_IA64_MODE="32"
13787 ;;
13788 *ELF-64*)
13789 HPUX_IA64_MODE="64"
13790 ;;
13791 esac
13792 fi
13793 rm -rf conftest*
13794 ;;
13795 *-*-irix6*)
13796 # Find out which ABI we are using.
13797 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13799 (eval $ac_compile) 2>&5
13800 ac_status=$?
13801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13802 test $ac_status = 0; }; then
13803 if test "$lt_cv_prog_gnu_ld" = yes; then
13804 case `/usr/bin/file conftest.$ac_objext` in
13805 *32-bit*)
13806 LD="${LD-ld} -melf32bsmip"
13807 ;;
13808 *N32*)
13809 LD="${LD-ld} -melf32bmipn32"
13810 ;;
13811 *64-bit*)
13812 LD="${LD-ld} -melf64bmip"
13813 ;;
13814 esac
13815 else
13816 case `/usr/bin/file conftest.$ac_objext` in
13817 *32-bit*)
13818 LD="${LD-ld} -32"
13819 ;;
13820 *N32*)
13821 LD="${LD-ld} -n32"
13822 ;;
13823 *64-bit*)
13824 LD="${LD-ld} -64"
13825 ;;
13826 esac
13827 fi
13828 fi
13829 rm -rf conftest*
13830 ;;
13831
13832 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13833 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13834 # Find out which ABI we are using.
13835 echo 'int i;' > conftest.$ac_ext
13836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13837 (eval $ac_compile) 2>&5
13838 ac_status=$?
13839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13840 test $ac_status = 0; }; then
13841 case `/usr/bin/file conftest.o` in
13842 *32-bit*)
13843 case $host in
13844 x86_64-*kfreebsd*-gnu)
13845 LD="${LD-ld} -m elf_i386_fbsd"
13846 ;;
13847 x86_64-*linux*)
13848 LD="${LD-ld} -m elf_i386"
13849 ;;
13850 ppc64-*linux*|powerpc64-*linux*)
13851 LD="${LD-ld} -m elf32ppclinux"
13852 ;;
13853 s390x-*linux*)
13854 LD="${LD-ld} -m elf_s390"
13855 ;;
13856 sparc64-*linux*)
13857 LD="${LD-ld} -m elf32_sparc"
13858 ;;
13859 esac
13860 ;;
13861 *64-bit*)
13862 case $host in
13863 x86_64-*kfreebsd*-gnu)
13864 LD="${LD-ld} -m elf_x86_64_fbsd"
13865 ;;
13866 x86_64-*linux*)
13867 LD="${LD-ld} -m elf_x86_64"
13868 ;;
13869 ppc*-*linux*|powerpc*-*linux*)
13870 LD="${LD-ld} -m elf64ppc"
13871 ;;
13872 s390*-*linux*|s390*-*tpf*)
13873 LD="${LD-ld} -m elf64_s390"
13874 ;;
13875 sparc*-*linux*)
13876 LD="${LD-ld} -m elf64_sparc"
13877 ;;
13878 esac
13879 ;;
13880 esac
13881 fi
13882 rm -rf conftest*
13883 ;;
13884
13885 *-*-sco3.2v5*)
13886 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13887 SAVE_CFLAGS="$CFLAGS"
13888 CFLAGS="$CFLAGS -belf"
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13890 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13891 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13892 $as_echo_n "(cached) " >&6
13893 else
13894 ac_ext=c
13895 ac_cpp='$CPP $CPPFLAGS'
13896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13899
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13902
13903 int
13904 main ()
13905 {
13906
13907 ;
13908 return 0;
13909 }
13910 _ACEOF
13911 if ac_fn_c_try_link "$LINENO"; then :
13912 lt_cv_cc_needs_belf=yes
13913 else
13914 lt_cv_cc_needs_belf=no
13915 fi
13916 rm -f core conftest.err conftest.$ac_objext \
13917 conftest$ac_exeext conftest.$ac_ext
13918 ac_ext=c
13919 ac_cpp='$CPP $CPPFLAGS'
13920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13923
13924 fi
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13926 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13927 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13928 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13929 CFLAGS="$SAVE_CFLAGS"
13930 fi
13931 ;;
13932 sparc*-*solaris*)
13933 # Find out which ABI we are using.
13934 echo 'int i;' > conftest.$ac_ext
13935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13936 (eval $ac_compile) 2>&5
13937 ac_status=$?
13938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13939 test $ac_status = 0; }; then
13940 case `/usr/bin/file conftest.o` in
13941 *64-bit*)
13942 case $lt_cv_prog_gnu_ld in
13943 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13944 *)
13945 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13946 LD="${LD-ld} -64"
13947 fi
13948 ;;
13949 esac
13950 ;;
13951 esac
13952 fi
13953 rm -rf conftest*
13954 ;;
13955 esac
13956
13957 need_locks="$enable_libtool_lock"
13958
13959
13960 case $host_os in
13961 rhapsody* | darwin*)
13962 if test -n "$ac_tool_prefix"; then
13963 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13964 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13966 $as_echo_n "checking for $ac_word... " >&6; }
13967 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13968 $as_echo_n "(cached) " >&6
13969 else
13970 if test -n "$DSYMUTIL"; then
13971 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13972 else
13973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13974 for as_dir in $PATH
13975 do
13976 IFS=$as_save_IFS
13977 test -z "$as_dir" && as_dir=.
13978 for ac_exec_ext in '' $ac_executable_extensions; do
13979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13980 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13982 break 2
13983 fi
13984 done
13985 done
13986 IFS=$as_save_IFS
13987
13988 fi
13989 fi
13990 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13991 if test -n "$DSYMUTIL"; then
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13993 $as_echo "$DSYMUTIL" >&6; }
13994 else
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13996 $as_echo "no" >&6; }
13997 fi
13998
13999
14000 fi
14001 if test -z "$ac_cv_prog_DSYMUTIL"; then
14002 ac_ct_DSYMUTIL=$DSYMUTIL
14003 # Extract the first word of "dsymutil", so it can be a program name with args.
14004 set dummy dsymutil; ac_word=$2
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14006 $as_echo_n "checking for $ac_word... " >&6; }
14007 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14008 $as_echo_n "(cached) " >&6
14009 else
14010 if test -n "$ac_ct_DSYMUTIL"; then
14011 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14012 else
14013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14014 for as_dir in $PATH
14015 do
14016 IFS=$as_save_IFS
14017 test -z "$as_dir" && as_dir=.
14018 for ac_exec_ext in '' $ac_executable_extensions; do
14019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14020 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14022 break 2
14023 fi
14024 done
14025 done
14026 IFS=$as_save_IFS
14027
14028 fi
14029 fi
14030 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14031 if test -n "$ac_ct_DSYMUTIL"; then
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14033 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14034 else
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14036 $as_echo "no" >&6; }
14037 fi
14038
14039 if test "x$ac_ct_DSYMUTIL" = x; then
14040 DSYMUTIL=":"
14041 else
14042 case $cross_compiling:$ac_tool_warned in
14043 yes:)
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14046 ac_tool_warned=yes ;;
14047 esac
14048 DSYMUTIL=$ac_ct_DSYMUTIL
14049 fi
14050 else
14051 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14052 fi
14053
14054 if test -n "$ac_tool_prefix"; then
14055 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14056 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14058 $as_echo_n "checking for $ac_word... " >&6; }
14059 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14060 $as_echo_n "(cached) " >&6
14061 else
14062 if test -n "$NMEDIT"; then
14063 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14064 else
14065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14066 for as_dir in $PATH
14067 do
14068 IFS=$as_save_IFS
14069 test -z "$as_dir" && as_dir=.
14070 for ac_exec_ext in '' $ac_executable_extensions; do
14071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14072 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14074 break 2
14075 fi
14076 done
14077 done
14078 IFS=$as_save_IFS
14079
14080 fi
14081 fi
14082 NMEDIT=$ac_cv_prog_NMEDIT
14083 if test -n "$NMEDIT"; then
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14085 $as_echo "$NMEDIT" >&6; }
14086 else
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14088 $as_echo "no" >&6; }
14089 fi
14090
14091
14092 fi
14093 if test -z "$ac_cv_prog_NMEDIT"; then
14094 ac_ct_NMEDIT=$NMEDIT
14095 # Extract the first word of "nmedit", so it can be a program name with args.
14096 set dummy nmedit; ac_word=$2
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14098 $as_echo_n "checking for $ac_word... " >&6; }
14099 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14100 $as_echo_n "(cached) " >&6
14101 else
14102 if test -n "$ac_ct_NMEDIT"; then
14103 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14104 else
14105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106 for as_dir in $PATH
14107 do
14108 IFS=$as_save_IFS
14109 test -z "$as_dir" && as_dir=.
14110 for ac_exec_ext in '' $ac_executable_extensions; do
14111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14112 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14114 break 2
14115 fi
14116 done
14117 done
14118 IFS=$as_save_IFS
14119
14120 fi
14121 fi
14122 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14123 if test -n "$ac_ct_NMEDIT"; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14125 $as_echo "$ac_ct_NMEDIT" >&6; }
14126 else
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128 $as_echo "no" >&6; }
14129 fi
14130
14131 if test "x$ac_ct_NMEDIT" = x; then
14132 NMEDIT=":"
14133 else
14134 case $cross_compiling:$ac_tool_warned in
14135 yes:)
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14138 ac_tool_warned=yes ;;
14139 esac
14140 NMEDIT=$ac_ct_NMEDIT
14141 fi
14142 else
14143 NMEDIT="$ac_cv_prog_NMEDIT"
14144 fi
14145
14146 if test -n "$ac_tool_prefix"; then
14147 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14148 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14150 $as_echo_n "checking for $ac_word... " >&6; }
14151 if test "${ac_cv_prog_LIPO+set}" = set; then :
14152 $as_echo_n "(cached) " >&6
14153 else
14154 if test -n "$LIPO"; then
14155 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14156 else
14157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14158 for as_dir in $PATH
14159 do
14160 IFS=$as_save_IFS
14161 test -z "$as_dir" && as_dir=.
14162 for ac_exec_ext in '' $ac_executable_extensions; do
14163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14164 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14166 break 2
14167 fi
14168 done
14169 done
14170 IFS=$as_save_IFS
14171
14172 fi
14173 fi
14174 LIPO=$ac_cv_prog_LIPO
14175 if test -n "$LIPO"; then
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14177 $as_echo "$LIPO" >&6; }
14178 else
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14180 $as_echo "no" >&6; }
14181 fi
14182
14183
14184 fi
14185 if test -z "$ac_cv_prog_LIPO"; then
14186 ac_ct_LIPO=$LIPO
14187 # Extract the first word of "lipo", so it can be a program name with args.
14188 set dummy lipo; ac_word=$2
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14190 $as_echo_n "checking for $ac_word... " >&6; }
14191 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14192 $as_echo_n "(cached) " >&6
14193 else
14194 if test -n "$ac_ct_LIPO"; then
14195 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14196 else
14197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198 for as_dir in $PATH
14199 do
14200 IFS=$as_save_IFS
14201 test -z "$as_dir" && as_dir=.
14202 for ac_exec_ext in '' $ac_executable_extensions; do
14203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14204 ac_cv_prog_ac_ct_LIPO="lipo"
14205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14206 break 2
14207 fi
14208 done
14209 done
14210 IFS=$as_save_IFS
14211
14212 fi
14213 fi
14214 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14215 if test -n "$ac_ct_LIPO"; then
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14217 $as_echo "$ac_ct_LIPO" >&6; }
14218 else
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14220 $as_echo "no" >&6; }
14221 fi
14222
14223 if test "x$ac_ct_LIPO" = x; then
14224 LIPO=":"
14225 else
14226 case $cross_compiling:$ac_tool_warned in
14227 yes:)
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14230 ac_tool_warned=yes ;;
14231 esac
14232 LIPO=$ac_ct_LIPO
14233 fi
14234 else
14235 LIPO="$ac_cv_prog_LIPO"
14236 fi
14237
14238 if test -n "$ac_tool_prefix"; then
14239 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14240 set dummy ${ac_tool_prefix}otool; ac_word=$2
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14242 $as_echo_n "checking for $ac_word... " >&6; }
14243 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14244 $as_echo_n "(cached) " >&6
14245 else
14246 if test -n "$OTOOL"; then
14247 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14248 else
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14251 do
14252 IFS=$as_save_IFS
14253 test -z "$as_dir" && as_dir=.
14254 for ac_exec_ext in '' $ac_executable_extensions; do
14255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14256 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14258 break 2
14259 fi
14260 done
14261 done
14262 IFS=$as_save_IFS
14263
14264 fi
14265 fi
14266 OTOOL=$ac_cv_prog_OTOOL
14267 if test -n "$OTOOL"; then
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14269 $as_echo "$OTOOL" >&6; }
14270 else
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14272 $as_echo "no" >&6; }
14273 fi
14274
14275
14276 fi
14277 if test -z "$ac_cv_prog_OTOOL"; then
14278 ac_ct_OTOOL=$OTOOL
14279 # Extract the first word of "otool", so it can be a program name with args.
14280 set dummy otool; ac_word=$2
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14282 $as_echo_n "checking for $ac_word... " >&6; }
14283 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14284 $as_echo_n "(cached) " >&6
14285 else
14286 if test -n "$ac_ct_OTOOL"; then
14287 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14288 else
14289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14290 for as_dir in $PATH
14291 do
14292 IFS=$as_save_IFS
14293 test -z "$as_dir" && as_dir=.
14294 for ac_exec_ext in '' $ac_executable_extensions; do
14295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14296 ac_cv_prog_ac_ct_OTOOL="otool"
14297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14298 break 2
14299 fi
14300 done
14301 done
14302 IFS=$as_save_IFS
14303
14304 fi
14305 fi
14306 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14307 if test -n "$ac_ct_OTOOL"; then
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14309 $as_echo "$ac_ct_OTOOL" >&6; }
14310 else
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14312 $as_echo "no" >&6; }
14313 fi
14314
14315 if test "x$ac_ct_OTOOL" = x; then
14316 OTOOL=":"
14317 else
14318 case $cross_compiling:$ac_tool_warned in
14319 yes:)
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14322 ac_tool_warned=yes ;;
14323 esac
14324 OTOOL=$ac_ct_OTOOL
14325 fi
14326 else
14327 OTOOL="$ac_cv_prog_OTOOL"
14328 fi
14329
14330 if test -n "$ac_tool_prefix"; then
14331 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14332 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14334 $as_echo_n "checking for $ac_word... " >&6; }
14335 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14336 $as_echo_n "(cached) " >&6
14337 else
14338 if test -n "$OTOOL64"; then
14339 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14340 else
14341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14342 for as_dir in $PATH
14343 do
14344 IFS=$as_save_IFS
14345 test -z "$as_dir" && as_dir=.
14346 for ac_exec_ext in '' $ac_executable_extensions; do
14347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14348 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14350 break 2
14351 fi
14352 done
14353 done
14354 IFS=$as_save_IFS
14355
14356 fi
14357 fi
14358 OTOOL64=$ac_cv_prog_OTOOL64
14359 if test -n "$OTOOL64"; then
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14361 $as_echo "$OTOOL64" >&6; }
14362 else
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14364 $as_echo "no" >&6; }
14365 fi
14366
14367
14368 fi
14369 if test -z "$ac_cv_prog_OTOOL64"; then
14370 ac_ct_OTOOL64=$OTOOL64
14371 # Extract the first word of "otool64", so it can be a program name with args.
14372 set dummy otool64; ac_word=$2
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14374 $as_echo_n "checking for $ac_word... " >&6; }
14375 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14376 $as_echo_n "(cached) " >&6
14377 else
14378 if test -n "$ac_ct_OTOOL64"; then
14379 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14380 else
14381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14382 for as_dir in $PATH
14383 do
14384 IFS=$as_save_IFS
14385 test -z "$as_dir" && as_dir=.
14386 for ac_exec_ext in '' $ac_executable_extensions; do
14387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14388 ac_cv_prog_ac_ct_OTOOL64="otool64"
14389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14390 break 2
14391 fi
14392 done
14393 done
14394 IFS=$as_save_IFS
14395
14396 fi
14397 fi
14398 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14399 if test -n "$ac_ct_OTOOL64"; then
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14401 $as_echo "$ac_ct_OTOOL64" >&6; }
14402 else
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14404 $as_echo "no" >&6; }
14405 fi
14406
14407 if test "x$ac_ct_OTOOL64" = x; then
14408 OTOOL64=":"
14409 else
14410 case $cross_compiling:$ac_tool_warned in
14411 yes:)
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14414 ac_tool_warned=yes ;;
14415 esac
14416 OTOOL64=$ac_ct_OTOOL64
14417 fi
14418 else
14419 OTOOL64="$ac_cv_prog_OTOOL64"
14420 fi
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14449 $as_echo_n "checking for -single_module linker flag... " >&6; }
14450 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14451 $as_echo_n "(cached) " >&6
14452 else
14453 lt_cv_apple_cc_single_mod=no
14454 if test -z "${LT_MULTI_MODULE}"; then
14455 # By default we will add the -single_module flag. You can override
14456 # by either setting the environment variable LT_MULTI_MODULE
14457 # non-empty at configure time, or by adding -multi_module to the
14458 # link flags.
14459 rm -rf libconftest.dylib*
14460 echo "int foo(void){return 1;}" > conftest.c
14461 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14462 -dynamiclib -Wl,-single_module conftest.c" >&5
14463 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14464 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14465 _lt_result=$?
14466 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14467 lt_cv_apple_cc_single_mod=yes
14468 else
14469 cat conftest.err >&5
14470 fi
14471 rm -rf libconftest.dylib*
14472 rm -f conftest.*
14473 fi
14474 fi
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14476 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14478 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14479 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14480 $as_echo_n "(cached) " >&6
14481 else
14482 lt_cv_ld_exported_symbols_list=no
14483 save_LDFLAGS=$LDFLAGS
14484 echo "_main" > conftest.sym
14485 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487 /* end confdefs.h. */
14488
14489 int
14490 main ()
14491 {
14492
14493 ;
14494 return 0;
14495 }
14496 _ACEOF
14497 if ac_fn_c_try_link "$LINENO"; then :
14498 lt_cv_ld_exported_symbols_list=yes
14499 else
14500 lt_cv_ld_exported_symbols_list=no
14501 fi
14502 rm -f core conftest.err conftest.$ac_objext \
14503 conftest$ac_exeext conftest.$ac_ext
14504 LDFLAGS="$save_LDFLAGS"
14505
14506 fi
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14508 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14510 $as_echo_n "checking for -force_load linker flag... " >&6; }
14511 if test "${lt_cv_ld_force_load+set}" = set; then :
14512 $as_echo_n "(cached) " >&6
14513 else
14514 lt_cv_ld_force_load=no
14515 cat > conftest.c << _LT_EOF
14516 int forced_loaded() { return 2;}
14517 _LT_EOF
14518 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14519 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14520 echo "$AR cru libconftest.a conftest.o" >&5
14521 $AR cru libconftest.a conftest.o 2>&5
14522 cat > conftest.c << _LT_EOF
14523 int main() { return 0;}
14524 _LT_EOF
14525 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14526 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14527 _lt_result=$?
14528 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14529 lt_cv_ld_force_load=yes
14530 else
14531 cat conftest.err >&5
14532 fi
14533 rm -f conftest.err libconftest.a conftest conftest.c
14534 rm -rf conftest.dSYM
14535
14536 fi
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14538 $as_echo "$lt_cv_ld_force_load" >&6; }
14539 case $host_os in
14540 rhapsody* | darwin1.[012])
14541 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14542 darwin1.*)
14543 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14544 darwin*) # darwin 5.x on
14545 # if running on 10.5 or later, the deployment target defaults
14546 # to the OS version, if on x86, and 10.4, the deployment
14547 # target defaults to 10.4. Don't you love it?
14548 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14549 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14550 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14551 10.[012]*)
14552 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14553 10.*)
14554 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14555 esac
14556 ;;
14557 esac
14558 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14559 _lt_dar_single_mod='$single_module'
14560 fi
14561 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14562 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14563 else
14564 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14565 fi
14566 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14567 _lt_dsymutil='~$DSYMUTIL $lib || :'
14568 else
14569 _lt_dsymutil=
14570 fi
14571 ;;
14572 esac
14573
14574 for ac_header in dlfcn.h
14575 do :
14576 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14577 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14578 cat >>confdefs.h <<_ACEOF
14579 #define HAVE_DLFCN_H 1
14580 _ACEOF
14581
14582 fi
14583 done
14584
14585
14586
14587
14588
14589 # Set options
14590
14591
14592
14593 enable_dlopen=no
14594
14595
14596 enable_win32_dll=no
14597
14598
14599 # Check whether --enable-shared was given.
14600 if test "${enable_shared+set}" = set; then :
14601 enableval=$enable_shared; p=${PACKAGE-default}
14602 case $enableval in
14603 yes) enable_shared=yes ;;
14604 no) enable_shared=no ;;
14605 *)
14606 enable_shared=no
14607 # Look at the argument we got. We use all the common list separators.
14608 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14609 for pkg in $enableval; do
14610 IFS="$lt_save_ifs"
14611 if test "X$pkg" = "X$p"; then
14612 enable_shared=yes
14613 fi
14614 done
14615 IFS="$lt_save_ifs"
14616 ;;
14617 esac
14618 else
14619 enable_shared=yes
14620 fi
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630 # Check whether --enable-static was given.
14631 if test "${enable_static+set}" = set; then :
14632 enableval=$enable_static; p=${PACKAGE-default}
14633 case $enableval in
14634 yes) enable_static=yes ;;
14635 no) enable_static=no ;;
14636 *)
14637 enable_static=no
14638 # Look at the argument we got. We use all the common list separators.
14639 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14640 for pkg in $enableval; do
14641 IFS="$lt_save_ifs"
14642 if test "X$pkg" = "X$p"; then
14643 enable_static=yes
14644 fi
14645 done
14646 IFS="$lt_save_ifs"
14647 ;;
14648 esac
14649 else
14650 enable_static=yes
14651 fi
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662 # Check whether --with-pic was given.
14663 if test "${with_pic+set}" = set; then :
14664 withval=$with_pic; pic_mode="$withval"
14665 else
14666 pic_mode=default
14667 fi
14668
14669
14670 test -z "$pic_mode" && pic_mode=default
14671
14672
14673
14674
14675
14676
14677
14678 # Check whether --enable-fast-install was given.
14679 if test "${enable_fast_install+set}" = set; then :
14680 enableval=$enable_fast_install; p=${PACKAGE-default}
14681 case $enableval in
14682 yes) enable_fast_install=yes ;;
14683 no) enable_fast_install=no ;;
14684 *)
14685 enable_fast_install=no
14686 # Look at the argument we got. We use all the common list separators.
14687 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14688 for pkg in $enableval; do
14689 IFS="$lt_save_ifs"
14690 if test "X$pkg" = "X$p"; then
14691 enable_fast_install=yes
14692 fi
14693 done
14694 IFS="$lt_save_ifs"
14695 ;;
14696 esac
14697 else
14698 enable_fast_install=yes
14699 fi
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711 # This can be used to rebuild libtool when needed
14712 LIBTOOL_DEPS="$ltmain"
14713
14714 # Always use our own libtool.
14715 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742 test -z "$LN_S" && LN_S="ln -s"
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757 if test -n "${ZSH_VERSION+set}" ; then
14758 setopt NO_GLOB_SUBST
14759 fi
14760
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14762 $as_echo_n "checking for objdir... " >&6; }
14763 if test "${lt_cv_objdir+set}" = set; then :
14764 $as_echo_n "(cached) " >&6
14765 else
14766 rm -f .libs 2>/dev/null
14767 mkdir .libs 2>/dev/null
14768 if test -d .libs; then
14769 lt_cv_objdir=.libs
14770 else
14771 # MS-DOS does not allow filenames that begin with a dot.
14772 lt_cv_objdir=_libs
14773 fi
14774 rmdir .libs 2>/dev/null
14775 fi
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14777 $as_echo "$lt_cv_objdir" >&6; }
14778 objdir=$lt_cv_objdir
14779
14780
14781
14782
14783
14784 cat >>confdefs.h <<_ACEOF
14785 #define LT_OBJDIR "$lt_cv_objdir/"
14786 _ACEOF
14787
14788
14789
14790
14791 case $host_os in
14792 aix3*)
14793 # AIX sometimes has problems with the GCC collect2 program. For some
14794 # reason, if we set the COLLECT_NAMES environment variable, the problems
14795 # vanish in a puff of smoke.
14796 if test "X${COLLECT_NAMES+set}" != Xset; then
14797 COLLECT_NAMES=
14798 export COLLECT_NAMES
14799 fi
14800 ;;
14801 esac
14802
14803 # Global variables:
14804 ofile=libtool
14805 can_build_shared=yes
14806
14807 # All known linkers require a `.a' archive for static linking (except MSVC,
14808 # which needs '.lib').
14809 libext=a
14810
14811 with_gnu_ld="$lt_cv_prog_gnu_ld"
14812
14813 old_CC="$CC"
14814 old_CFLAGS="$CFLAGS"
14815
14816 # Set sane defaults for various variables
14817 test -z "$CC" && CC=cc
14818 test -z "$LTCC" && LTCC=$CC
14819 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14820 test -z "$LD" && LD=ld
14821 test -z "$ac_objext" && ac_objext=o
14822
14823 for cc_temp in $compiler""; do
14824 case $cc_temp in
14825 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14826 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14827 \-*) ;;
14828 *) break;;
14829 esac
14830 done
14831 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14832
14833
14834 # Only perform the check for file, if the check method requires it
14835 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14836 case $deplibs_check_method in
14837 file_magic*)
14838 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14840 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14841 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14842 $as_echo_n "(cached) " >&6
14843 else
14844 case $MAGIC_CMD in
14845 [\\/*] | ?:[\\/]*)
14846 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14847 ;;
14848 *)
14849 lt_save_MAGIC_CMD="$MAGIC_CMD"
14850 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14851 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14852 for ac_dir in $ac_dummy; do
14853 IFS="$lt_save_ifs"
14854 test -z "$ac_dir" && ac_dir=.
14855 if test -f $ac_dir/${ac_tool_prefix}file; then
14856 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14857 if test -n "$file_magic_test_file"; then
14858 case $deplibs_check_method in
14859 "file_magic "*)
14860 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14861 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14862 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14863 $EGREP "$file_magic_regex" > /dev/null; then
14864 :
14865 else
14866 cat <<_LT_EOF 1>&2
14867
14868 *** Warning: the command libtool uses to detect shared libraries,
14869 *** $file_magic_cmd, produces output that libtool cannot recognize.
14870 *** The result is that libtool may fail to recognize shared libraries
14871 *** as such. This will affect the creation of libtool libraries that
14872 *** depend on shared libraries, but programs linked with such libtool
14873 *** libraries will work regardless of this problem. Nevertheless, you
14874 *** may want to report the problem to your system manager and/or to
14875 *** bug-libtool@gnu.org
14876
14877 _LT_EOF
14878 fi ;;
14879 esac
14880 fi
14881 break
14882 fi
14883 done
14884 IFS="$lt_save_ifs"
14885 MAGIC_CMD="$lt_save_MAGIC_CMD"
14886 ;;
14887 esac
14888 fi
14889
14890 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14891 if test -n "$MAGIC_CMD"; then
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14893 $as_echo "$MAGIC_CMD" >&6; }
14894 else
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14896 $as_echo "no" >&6; }
14897 fi
14898
14899
14900
14901
14902
14903 if test -z "$lt_cv_path_MAGIC_CMD"; then
14904 if test -n "$ac_tool_prefix"; then
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14906 $as_echo_n "checking for file... " >&6; }
14907 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14908 $as_echo_n "(cached) " >&6
14909 else
14910 case $MAGIC_CMD in
14911 [\\/*] | ?:[\\/]*)
14912 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14913 ;;
14914 *)
14915 lt_save_MAGIC_CMD="$MAGIC_CMD"
14916 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14917 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14918 for ac_dir in $ac_dummy; do
14919 IFS="$lt_save_ifs"
14920 test -z "$ac_dir" && ac_dir=.
14921 if test -f $ac_dir/file; then
14922 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14923 if test -n "$file_magic_test_file"; then
14924 case $deplibs_check_method in
14925 "file_magic "*)
14926 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14927 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14928 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14929 $EGREP "$file_magic_regex" > /dev/null; then
14930 :
14931 else
14932 cat <<_LT_EOF 1>&2
14933
14934 *** Warning: the command libtool uses to detect shared libraries,
14935 *** $file_magic_cmd, produces output that libtool cannot recognize.
14936 *** The result is that libtool may fail to recognize shared libraries
14937 *** as such. This will affect the creation of libtool libraries that
14938 *** depend on shared libraries, but programs linked with such libtool
14939 *** libraries will work regardless of this problem. Nevertheless, you
14940 *** may want to report the problem to your system manager and/or to
14941 *** bug-libtool@gnu.org
14942
14943 _LT_EOF
14944 fi ;;
14945 esac
14946 fi
14947 break
14948 fi
14949 done
14950 IFS="$lt_save_ifs"
14951 MAGIC_CMD="$lt_save_MAGIC_CMD"
14952 ;;
14953 esac
14954 fi
14955
14956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14957 if test -n "$MAGIC_CMD"; then
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14959 $as_echo "$MAGIC_CMD" >&6; }
14960 else
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14962 $as_echo "no" >&6; }
14963 fi
14964
14965
14966 else
14967 MAGIC_CMD=:
14968 fi
14969 fi
14970
14971 fi
14972 ;;
14973 esac
14974
14975 # Use C for the default configuration in the libtool script
14976
14977 lt_save_CC="$CC"
14978 ac_ext=c
14979 ac_cpp='$CPP $CPPFLAGS'
14980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14983
14984
14985 # Source file extension for C test sources.
14986 ac_ext=c
14987
14988 # Object file extension for compiled C test sources.
14989 objext=o
14990 objext=$objext
14991
14992 # Code to be used in simple compile tests
14993 lt_simple_compile_test_code="int some_variable = 0;"
14994
14995 # Code to be used in simple link tests
14996 lt_simple_link_test_code='int main(){return(0);}'
14997
14998
14999
15000
15001
15002
15003
15004 # If no C compiler was specified, use CC.
15005 LTCC=${LTCC-"$CC"}
15006
15007 # If no C compiler flags were specified, use CFLAGS.
15008 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15009
15010 # Allow CC to be a program name with arguments.
15011 compiler=$CC
15012
15013 # Save the default compiler, since it gets overwritten when the other
15014 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15015 compiler_DEFAULT=$CC
15016
15017 # save warnings/boilerplate of simple test code
15018 ac_outfile=conftest.$ac_objext
15019 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15020 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15021 _lt_compiler_boilerplate=`cat conftest.err`
15022 $RM conftest*
15023
15024 ac_outfile=conftest.$ac_objext
15025 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15026 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15027 _lt_linker_boilerplate=`cat conftest.err`
15028 $RM -r conftest*
15029
15030
15031 ## CAVEAT EMPTOR:
15032 ## There is no encapsulation within the following macros, do not change
15033 ## the running order or otherwise move them around unless you know exactly
15034 ## what you are doing...
15035 if test -n "$compiler"; then
15036
15037 lt_prog_compiler_no_builtin_flag=
15038
15039 if test "$GCC" = yes; then
15040 case $cc_basename in
15041 nvcc*)
15042 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15043 *)
15044 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15045 esac
15046
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15048 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15049 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15050 $as_echo_n "(cached) " >&6
15051 else
15052 lt_cv_prog_compiler_rtti_exceptions=no
15053 ac_outfile=conftest.$ac_objext
15054 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15055 lt_compiler_flag="-fno-rtti -fno-exceptions"
15056 # Insert the option either (1) after the last *FLAGS variable, or
15057 # (2) before a word containing "conftest.", or (3) at the end.
15058 # Note that $ac_compile itself does not contain backslashes and begins
15059 # with a dollar sign (not a hyphen), so the echo should work correctly.
15060 # The option is referenced via a variable to avoid confusing sed.
15061 lt_compile=`echo "$ac_compile" | $SED \
15062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15064 -e 's:$: $lt_compiler_flag:'`
15065 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15066 (eval "$lt_compile" 2>conftest.err)
15067 ac_status=$?
15068 cat conftest.err >&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 if (exit $ac_status) && test -s "$ac_outfile"; then
15071 # The compiler can only warn and ignore the option if not recognized
15072 # So say no if there are warnings other than the usual output.
15073 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15075 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15076 lt_cv_prog_compiler_rtti_exceptions=yes
15077 fi
15078 fi
15079 $RM conftest*
15080
15081 fi
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15083 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15084
15085 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15086 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15087 else
15088 :
15089 fi
15090
15091 fi
15092
15093
15094
15095
15096
15097
15098 lt_prog_compiler_wl=
15099 lt_prog_compiler_pic=
15100 lt_prog_compiler_static=
15101
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15103 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15104
15105 if test "$GCC" = yes; then
15106 lt_prog_compiler_wl='-Wl,'
15107 lt_prog_compiler_static='-static'
15108
15109 case $host_os in
15110 aix*)
15111 # All AIX code is PIC.
15112 if test "$host_cpu" = ia64; then
15113 # AIX 5 now supports IA64 processor
15114 lt_prog_compiler_static='-Bstatic'
15115 fi
15116 ;;
15117
15118 amigaos*)
15119 case $host_cpu in
15120 powerpc)
15121 # see comment about AmigaOS4 .so support
15122 lt_prog_compiler_pic='-fPIC'
15123 ;;
15124 m68k)
15125 # FIXME: we need at least 68020 code to build shared libraries, but
15126 # adding the `-m68020' flag to GCC prevents building anything better,
15127 # like `-m68040'.
15128 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15129 ;;
15130 esac
15131 ;;
15132
15133 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15134 # PIC is the default for these OSes.
15135 ;;
15136
15137 mingw* | cygwin* | pw32* | os2* | cegcc*)
15138 # This hack is so that the source file can tell whether it is being
15139 # built for inclusion in a dll (and should export symbols for example).
15140 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15141 # (--disable-auto-import) libraries
15142 lt_prog_compiler_pic='-DDLL_EXPORT'
15143 ;;
15144
15145 darwin* | rhapsody*)
15146 # PIC is the default on this platform
15147 # Common symbols not allowed in MH_DYLIB files
15148 lt_prog_compiler_pic='-fno-common'
15149 ;;
15150
15151 haiku*)
15152 # PIC is the default for Haiku.
15153 # The "-static" flag exists, but is broken.
15154 lt_prog_compiler_static=
15155 ;;
15156
15157 hpux*)
15158 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15159 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15160 # sets the default TLS model and affects inlining.
15161 case $host_cpu in
15162 hppa*64*)
15163 # +Z the default
15164 ;;
15165 *)
15166 lt_prog_compiler_pic='-fPIC'
15167 ;;
15168 esac
15169 ;;
15170
15171 interix[3-9]*)
15172 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15173 # Instead, we relocate shared libraries at runtime.
15174 ;;
15175
15176 msdosdjgpp*)
15177 # Just because we use GCC doesn't mean we suddenly get shared libraries
15178 # on systems that don't support them.
15179 lt_prog_compiler_can_build_shared=no
15180 enable_shared=no
15181 ;;
15182
15183 *nto* | *qnx*)
15184 # QNX uses GNU C++, but need to define -shared option too, otherwise
15185 # it will coredump.
15186 lt_prog_compiler_pic='-fPIC -shared'
15187 ;;
15188
15189 sysv4*MP*)
15190 if test -d /usr/nec; then
15191 lt_prog_compiler_pic=-Kconform_pic
15192 fi
15193 ;;
15194
15195 *)
15196 lt_prog_compiler_pic='-fPIC'
15197 ;;
15198 esac
15199
15200 case $cc_basename in
15201 nvcc*) # Cuda Compiler Driver 2.2
15202 lt_prog_compiler_wl='-Xlinker '
15203 lt_prog_compiler_pic='-Xcompiler -fPIC'
15204 ;;
15205 esac
15206 else
15207 # PORTME Check for flag to pass linker flags through the system compiler.
15208 case $host_os in
15209 aix*)
15210 lt_prog_compiler_wl='-Wl,'
15211 if test "$host_cpu" = ia64; then
15212 # AIX 5 now supports IA64 processor
15213 lt_prog_compiler_static='-Bstatic'
15214 else
15215 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15216 fi
15217 ;;
15218
15219 mingw* | cygwin* | pw32* | os2* | cegcc*)
15220 # This hack is so that the source file can tell whether it is being
15221 # built for inclusion in a dll (and should export symbols for example).
15222 lt_prog_compiler_pic='-DDLL_EXPORT'
15223 ;;
15224
15225 hpux9* | hpux10* | hpux11*)
15226 lt_prog_compiler_wl='-Wl,'
15227 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15228 # not for PA HP-UX.
15229 case $host_cpu in
15230 hppa*64*|ia64*)
15231 # +Z the default
15232 ;;
15233 *)
15234 lt_prog_compiler_pic='+Z'
15235 ;;
15236 esac
15237 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15238 lt_prog_compiler_static='${wl}-a ${wl}archive'
15239 ;;
15240
15241 irix5* | irix6* | nonstopux*)
15242 lt_prog_compiler_wl='-Wl,'
15243 # PIC (with -KPIC) is the default.
15244 lt_prog_compiler_static='-non_shared'
15245 ;;
15246
15247 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15248 case $cc_basename in
15249 # old Intel for x86_64 which still supported -KPIC.
15250 ecc*)
15251 lt_prog_compiler_wl='-Wl,'
15252 lt_prog_compiler_pic='-KPIC'
15253 lt_prog_compiler_static='-static'
15254 ;;
15255 # icc used to be incompatible with GCC.
15256 # ICC 10 doesn't accept -KPIC any more.
15257 icc* | ifort*)
15258 lt_prog_compiler_wl='-Wl,'
15259 lt_prog_compiler_pic='-fPIC'
15260 lt_prog_compiler_static='-static'
15261 ;;
15262 # Lahey Fortran 8.1.
15263 lf95*)
15264 lt_prog_compiler_wl='-Wl,'
15265 lt_prog_compiler_pic='--shared'
15266 lt_prog_compiler_static='--static'
15267 ;;
15268 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15269 # Portland Group compilers (*not* the Pentium gcc compiler,
15270 # which looks to be a dead project)
15271 lt_prog_compiler_wl='-Wl,'
15272 lt_prog_compiler_pic='-fpic'
15273 lt_prog_compiler_static='-Bstatic'
15274 ;;
15275 ccc*)
15276 lt_prog_compiler_wl='-Wl,'
15277 # All Alpha code is PIC.
15278 lt_prog_compiler_static='-non_shared'
15279 ;;
15280 xl* | bgxl* | bgf* | mpixl*)
15281 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15282 lt_prog_compiler_wl='-Wl,'
15283 lt_prog_compiler_pic='-qpic'
15284 lt_prog_compiler_static='-qstaticlink'
15285 ;;
15286 *)
15287 case `$CC -V 2>&1 | sed 5q` in
15288 *Sun\ F* | *Sun*Fortran*)
15289 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15290 lt_prog_compiler_pic='-KPIC'
15291 lt_prog_compiler_static='-Bstatic'
15292 lt_prog_compiler_wl=''
15293 ;;
15294 *Sun\ C*)
15295 # Sun C 5.9
15296 lt_prog_compiler_pic='-KPIC'
15297 lt_prog_compiler_static='-Bstatic'
15298 lt_prog_compiler_wl='-Wl,'
15299 ;;
15300 esac
15301 ;;
15302 esac
15303 ;;
15304
15305 newsos6)
15306 lt_prog_compiler_pic='-KPIC'
15307 lt_prog_compiler_static='-Bstatic'
15308 ;;
15309
15310 *nto* | *qnx*)
15311 # QNX uses GNU C++, but need to define -shared option too, otherwise
15312 # it will coredump.
15313 lt_prog_compiler_pic='-fPIC -shared'
15314 ;;
15315
15316 osf3* | osf4* | osf5*)
15317 lt_prog_compiler_wl='-Wl,'
15318 # All OSF/1 code is PIC.
15319 lt_prog_compiler_static='-non_shared'
15320 ;;
15321
15322 rdos*)
15323 lt_prog_compiler_static='-non_shared'
15324 ;;
15325
15326 solaris*)
15327 lt_prog_compiler_pic='-KPIC'
15328 lt_prog_compiler_static='-Bstatic'
15329 case $cc_basename in
15330 f77* | f90* | f95*)
15331 lt_prog_compiler_wl='-Qoption ld ';;
15332 *)
15333 lt_prog_compiler_wl='-Wl,';;
15334 esac
15335 ;;
15336
15337 sunos4*)
15338 lt_prog_compiler_wl='-Qoption ld '
15339 lt_prog_compiler_pic='-PIC'
15340 lt_prog_compiler_static='-Bstatic'
15341 ;;
15342
15343 sysv4 | sysv4.2uw2* | sysv4.3*)
15344 lt_prog_compiler_wl='-Wl,'
15345 lt_prog_compiler_pic='-KPIC'
15346 lt_prog_compiler_static='-Bstatic'
15347 ;;
15348
15349 sysv4*MP*)
15350 if test -d /usr/nec ;then
15351 lt_prog_compiler_pic='-Kconform_pic'
15352 lt_prog_compiler_static='-Bstatic'
15353 fi
15354 ;;
15355
15356 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15357 lt_prog_compiler_wl='-Wl,'
15358 lt_prog_compiler_pic='-KPIC'
15359 lt_prog_compiler_static='-Bstatic'
15360 ;;
15361
15362 unicos*)
15363 lt_prog_compiler_wl='-Wl,'
15364 lt_prog_compiler_can_build_shared=no
15365 ;;
15366
15367 uts4*)
15368 lt_prog_compiler_pic='-pic'
15369 lt_prog_compiler_static='-Bstatic'
15370 ;;
15371
15372 *)
15373 lt_prog_compiler_can_build_shared=no
15374 ;;
15375 esac
15376 fi
15377
15378 case $host_os in
15379 # For platforms which do not support PIC, -DPIC is meaningless:
15380 *djgpp*)
15381 lt_prog_compiler_pic=
15382 ;;
15383 *)
15384 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15385 ;;
15386 esac
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15388 $as_echo "$lt_prog_compiler_pic" >&6; }
15389
15390
15391
15392
15393
15394
15395 #
15396 # Check to make sure the PIC flag actually works.
15397 #
15398 if test -n "$lt_prog_compiler_pic"; then
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15400 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15401 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15402 $as_echo_n "(cached) " >&6
15403 else
15404 lt_cv_prog_compiler_pic_works=no
15405 ac_outfile=conftest.$ac_objext
15406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15407 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15408 # Insert the option either (1) after the last *FLAGS variable, or
15409 # (2) before a word containing "conftest.", or (3) at the end.
15410 # Note that $ac_compile itself does not contain backslashes and begins
15411 # with a dollar sign (not a hyphen), so the echo should work correctly.
15412 # The option is referenced via a variable to avoid confusing sed.
15413 lt_compile=`echo "$ac_compile" | $SED \
15414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15416 -e 's:$: $lt_compiler_flag:'`
15417 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15418 (eval "$lt_compile" 2>conftest.err)
15419 ac_status=$?
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 if (exit $ac_status) && test -s "$ac_outfile"; then
15423 # The compiler can only warn and ignore the option if not recognized
15424 # So say no if there are warnings other than the usual output.
15425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15427 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15428 lt_cv_prog_compiler_pic_works=yes
15429 fi
15430 fi
15431 $RM conftest*
15432
15433 fi
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15435 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15436
15437 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15438 case $lt_prog_compiler_pic in
15439 "" | " "*) ;;
15440 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15441 esac
15442 else
15443 lt_prog_compiler_pic=
15444 lt_prog_compiler_can_build_shared=no
15445 fi
15446
15447 fi
15448
15449
15450
15451
15452
15453
15454 #
15455 # Check to make sure the static flag actually works.
15456 #
15457 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15459 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15460 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15461 $as_echo_n "(cached) " >&6
15462 else
15463 lt_cv_prog_compiler_static_works=no
15464 save_LDFLAGS="$LDFLAGS"
15465 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15466 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15467 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15468 # The linker can only warn and ignore the option if not recognized
15469 # So say no if there are warnings
15470 if test -s conftest.err; then
15471 # Append any errors to the config.log.
15472 cat conftest.err 1>&5
15473 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15475 if diff conftest.exp conftest.er2 >/dev/null; then
15476 lt_cv_prog_compiler_static_works=yes
15477 fi
15478 else
15479 lt_cv_prog_compiler_static_works=yes
15480 fi
15481 fi
15482 $RM -r conftest*
15483 LDFLAGS="$save_LDFLAGS"
15484
15485 fi
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15487 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15488
15489 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15490 :
15491 else
15492 lt_prog_compiler_static=
15493 fi
15494
15495
15496
15497
15498
15499
15500
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15502 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15503 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15504 $as_echo_n "(cached) " >&6
15505 else
15506 lt_cv_prog_compiler_c_o=no
15507 $RM -r conftest 2>/dev/null
15508 mkdir conftest
15509 cd conftest
15510 mkdir out
15511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15512
15513 lt_compiler_flag="-o out/conftest2.$ac_objext"
15514 # Insert the option either (1) after the last *FLAGS variable, or
15515 # (2) before a word containing "conftest.", or (3) at the end.
15516 # Note that $ac_compile itself does not contain backslashes and begins
15517 # with a dollar sign (not a hyphen), so the echo should work correctly.
15518 lt_compile=`echo "$ac_compile" | $SED \
15519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15521 -e 's:$: $lt_compiler_flag:'`
15522 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15523 (eval "$lt_compile" 2>out/conftest.err)
15524 ac_status=$?
15525 cat out/conftest.err >&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15528 then
15529 # The compiler can only warn and ignore the option if not recognized
15530 # So say no if there are warnings
15531 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15532 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15533 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15534 lt_cv_prog_compiler_c_o=yes
15535 fi
15536 fi
15537 chmod u+w . 2>&5
15538 $RM conftest*
15539 # SGI C++ compiler will create directory out/ii_files/ for
15540 # template instantiation
15541 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15542 $RM out/* && rmdir out
15543 cd ..
15544 $RM -r conftest
15545 $RM conftest*
15546
15547 fi
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15549 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15550
15551
15552
15553
15554
15555
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15557 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15558 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15559 $as_echo_n "(cached) " >&6
15560 else
15561 lt_cv_prog_compiler_c_o=no
15562 $RM -r conftest 2>/dev/null
15563 mkdir conftest
15564 cd conftest
15565 mkdir out
15566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15567
15568 lt_compiler_flag="-o out/conftest2.$ac_objext"
15569 # Insert the option either (1) after the last *FLAGS variable, or
15570 # (2) before a word containing "conftest.", or (3) at the end.
15571 # Note that $ac_compile itself does not contain backslashes and begins
15572 # with a dollar sign (not a hyphen), so the echo should work correctly.
15573 lt_compile=`echo "$ac_compile" | $SED \
15574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15576 -e 's:$: $lt_compiler_flag:'`
15577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15578 (eval "$lt_compile" 2>out/conftest.err)
15579 ac_status=$?
15580 cat out/conftest.err >&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15583 then
15584 # The compiler can only warn and ignore the option if not recognized
15585 # So say no if there are warnings
15586 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15587 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15588 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15589 lt_cv_prog_compiler_c_o=yes
15590 fi
15591 fi
15592 chmod u+w . 2>&5
15593 $RM conftest*
15594 # SGI C++ compiler will create directory out/ii_files/ for
15595 # template instantiation
15596 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15597 $RM out/* && rmdir out
15598 cd ..
15599 $RM -r conftest
15600 $RM conftest*
15601
15602 fi
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15604 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15605
15606
15607
15608
15609 hard_links="nottested"
15610 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15611 # do not overwrite the value of need_locks provided by the user
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15613 $as_echo_n "checking if we can lock with hard links... " >&6; }
15614 hard_links=yes
15615 $RM conftest*
15616 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15617 touch conftest.a
15618 ln conftest.a conftest.b 2>&5 || hard_links=no
15619 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15621 $as_echo "$hard_links" >&6; }
15622 if test "$hard_links" = no; then
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15624 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15625 need_locks=warn
15626 fi
15627 else
15628 need_locks=no
15629 fi
15630
15631
15632
15633
15634
15635
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15637 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15638
15639 runpath_var=
15640 allow_undefined_flag=
15641 always_export_symbols=no
15642 archive_cmds=
15643 archive_expsym_cmds=
15644 compiler_needs_object=no
15645 enable_shared_with_static_runtimes=no
15646 export_dynamic_flag_spec=
15647 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15648 hardcode_automatic=no
15649 hardcode_direct=no
15650 hardcode_direct_absolute=no
15651 hardcode_libdir_flag_spec=
15652 hardcode_libdir_flag_spec_ld=
15653 hardcode_libdir_separator=
15654 hardcode_minus_L=no
15655 hardcode_shlibpath_var=unsupported
15656 inherit_rpath=no
15657 link_all_deplibs=unknown
15658 module_cmds=
15659 module_expsym_cmds=
15660 old_archive_from_new_cmds=
15661 old_archive_from_expsyms_cmds=
15662 thread_safe_flag_spec=
15663 whole_archive_flag_spec=
15664 # include_expsyms should be a list of space-separated symbols to be *always*
15665 # included in the symbol list
15666 include_expsyms=
15667 # exclude_expsyms can be an extended regexp of symbols to exclude
15668 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15669 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15670 # as well as any symbol that contains `d'.
15671 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15672 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15673 # platforms (ab)use it in PIC code, but their linkers get confused if
15674 # the symbol is explicitly referenced. Since portable code cannot
15675 # rely on this symbol name, it's probably fine to never include it in
15676 # preloaded symbol tables.
15677 # Exclude shared library initialization/finalization symbols.
15678 extract_expsyms_cmds=
15679
15680 case $host_os in
15681 cygwin* | mingw* | pw32* | cegcc*)
15682 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15683 # When not using gcc, we currently assume that we are using
15684 # Microsoft Visual C++.
15685 if test "$GCC" != yes; then
15686 with_gnu_ld=no
15687 fi
15688 ;;
15689 interix*)
15690 # we just hope/assume this is gcc and not c89 (= MSVC++)
15691 with_gnu_ld=yes
15692 ;;
15693 openbsd*)
15694 with_gnu_ld=no
15695 ;;
15696 esac
15697
15698 ld_shlibs=yes
15699
15700 # On some targets, GNU ld is compatible enough with the native linker
15701 # that we're better off using the native interface for both.
15702 lt_use_gnu_ld_interface=no
15703 if test "$with_gnu_ld" = yes; then
15704 case $host_os in
15705 aix*)
15706 # The AIX port of GNU ld has always aspired to compatibility
15707 # with the native linker. However, as the warning in the GNU ld
15708 # block says, versions before 2.19.5* couldn't really create working
15709 # shared libraries, regardless of the interface used.
15710 case `$LD -v 2>&1` in
15711 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15712 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15713 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15714 *)
15715 lt_use_gnu_ld_interface=yes
15716 ;;
15717 esac
15718 ;;
15719 *)
15720 lt_use_gnu_ld_interface=yes
15721 ;;
15722 esac
15723 fi
15724
15725 if test "$lt_use_gnu_ld_interface" = yes; then
15726 # If archive_cmds runs LD, not CC, wlarc should be empty
15727 wlarc='${wl}'
15728
15729 # Set some defaults for GNU ld with shared library support. These
15730 # are reset later if shared libraries are not supported. Putting them
15731 # here allows them to be overridden if necessary.
15732 runpath_var=LD_RUN_PATH
15733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15734 export_dynamic_flag_spec='${wl}--export-dynamic'
15735 # ancient GNU ld didn't support --whole-archive et. al.
15736 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15737 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15738 else
15739 whole_archive_flag_spec=
15740 fi
15741 supports_anon_versioning=no
15742 case `$LD -v 2>&1` in
15743 *GNU\ gold*) supports_anon_versioning=yes ;;
15744 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15745 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15746 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15747 *\ 2.11.*) ;; # other 2.11 versions
15748 *) supports_anon_versioning=yes ;;
15749 esac
15750
15751 # See if GNU ld supports shared libraries.
15752 case $host_os in
15753 aix[3-9]*)
15754 # On AIX/PPC, the GNU linker is very broken
15755 if test "$host_cpu" != ia64; then
15756 ld_shlibs=no
15757 cat <<_LT_EOF 1>&2
15758
15759 *** Warning: the GNU linker, at least up to release 2.19, is reported
15760 *** to be unable to reliably create shared libraries on AIX.
15761 *** Therefore, libtool is disabling shared libraries support. If you
15762 *** really care for shared libraries, you may want to install binutils
15763 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15764 *** You will then need to restart the configuration process.
15765
15766 _LT_EOF
15767 fi
15768 ;;
15769
15770 amigaos*)
15771 case $host_cpu in
15772 powerpc)
15773 # see comment about AmigaOS4 .so support
15774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15775 archive_expsym_cmds=''
15776 ;;
15777 m68k)
15778 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)'
15779 hardcode_libdir_flag_spec='-L$libdir'
15780 hardcode_minus_L=yes
15781 ;;
15782 esac
15783 ;;
15784
15785 beos*)
15786 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15787 allow_undefined_flag=unsupported
15788 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15789 # support --undefined. This deserves some investigation. FIXME
15790 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15791 else
15792 ld_shlibs=no
15793 fi
15794 ;;
15795
15796 cygwin* | mingw* | pw32* | cegcc*)
15797 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15798 # as there is no search path for DLLs.
15799 hardcode_libdir_flag_spec='-L$libdir'
15800 export_dynamic_flag_spec='${wl}--export-all-symbols'
15801 allow_undefined_flag=unsupported
15802 always_export_symbols=no
15803 enable_shared_with_static_runtimes=yes
15804 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15805
15806 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15808 # If the export-symbols file already is a .def file (1st line
15809 # is EXPORTS), use it as is; otherwise, prepend...
15810 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15811 cp $export_symbols $output_objdir/$soname.def;
15812 else
15813 echo EXPORTS > $output_objdir/$soname.def;
15814 cat $export_symbols >> $output_objdir/$soname.def;
15815 fi~
15816 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15817 else
15818 ld_shlibs=no
15819 fi
15820 ;;
15821
15822 haiku*)
15823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15824 link_all_deplibs=yes
15825 ;;
15826
15827 interix[3-9]*)
15828 hardcode_direct=no
15829 hardcode_shlibpath_var=no
15830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15831 export_dynamic_flag_spec='${wl}-E'
15832 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15833 # Instead, shared libraries are loaded at an image base (0x10000000 by
15834 # default) and relocated if they conflict, which is a slow very memory
15835 # consuming and fragmenting process. To avoid this, we pick a random,
15836 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15837 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15838 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15839 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'
15840 ;;
15841
15842 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15843 tmp_diet=no
15844 if test "$host_os" = linux-dietlibc; then
15845 case $cc_basename in
15846 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15847 esac
15848 fi
15849 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15850 && test "$tmp_diet" = no
15851 then
15852 tmp_addflag=
15853 tmp_sharedflag='-shared'
15854 case $cc_basename,$host_cpu in
15855 pgcc*) # Portland Group C compiler
15856 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'
15857 tmp_addflag=' $pic_flag'
15858 ;;
15859 pgf77* | pgf90* | pgf95* | pgfortran*)
15860 # Portland Group f77 and f90 compilers
15861 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'
15862 tmp_addflag=' $pic_flag -Mnomain' ;;
15863 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15864 tmp_addflag=' -i_dynamic' ;;
15865 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15866 tmp_addflag=' -i_dynamic -nofor_main' ;;
15867 ifc* | ifort*) # Intel Fortran compiler
15868 tmp_addflag=' -nofor_main' ;;
15869 lf95*) # Lahey Fortran 8.1
15870 whole_archive_flag_spec=
15871 tmp_sharedflag='--shared' ;;
15872 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15873 tmp_sharedflag='-qmkshrobj'
15874 tmp_addflag= ;;
15875 nvcc*) # Cuda Compiler Driver 2.2
15876 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'
15877 compiler_needs_object=yes
15878 ;;
15879 esac
15880 case `$CC -V 2>&1 | sed 5q` in
15881 *Sun\ C*) # Sun C 5.9
15882 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'
15883 compiler_needs_object=yes
15884 tmp_sharedflag='-G' ;;
15885 *Sun\ F*) # Sun Fortran 8.3
15886 tmp_sharedflag='-G' ;;
15887 esac
15888 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15889
15890 if test "x$supports_anon_versioning" = xyes; then
15891 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15893 echo "local: *; };" >> $output_objdir/$libname.ver~
15894 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15895 fi
15896
15897 case $cc_basename in
15898 xlf* | bgf* | bgxlf* | mpixlf*)
15899 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15900 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15901 hardcode_libdir_flag_spec=
15902 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15903 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15904 if test "x$supports_anon_versioning" = xyes; then
15905 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15906 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15907 echo "local: *; };" >> $output_objdir/$libname.ver~
15908 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15909 fi
15910 ;;
15911 esac
15912 else
15913 ld_shlibs=no
15914 fi
15915 ;;
15916
15917 netbsd*)
15918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15919 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15920 wlarc=
15921 else
15922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15923 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15924 fi
15925 ;;
15926
15927 solaris*)
15928 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15929 ld_shlibs=no
15930 cat <<_LT_EOF 1>&2
15931
15932 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15933 *** create shared libraries on Solaris systems. Therefore, libtool
15934 *** is disabling shared libraries support. We urge you to upgrade GNU
15935 *** binutils to release 2.9.1 or newer. Another option is to modify
15936 *** your PATH or compiler configuration so that the native linker is
15937 *** used, and then restart.
15938
15939 _LT_EOF
15940 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15942 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15943 else
15944 ld_shlibs=no
15945 fi
15946 ;;
15947
15948 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15949 case `$LD -v 2>&1` in
15950 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15951 ld_shlibs=no
15952 cat <<_LT_EOF 1>&2
15953
15954 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15955 *** reliably create shared libraries on SCO systems. Therefore, libtool
15956 *** is disabling shared libraries support. We urge you to upgrade GNU
15957 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15958 *** your PATH or compiler configuration so that the native linker is
15959 *** used, and then restart.
15960
15961 _LT_EOF
15962 ;;
15963 *)
15964 # For security reasons, it is highly recommended that you always
15965 # use absolute paths for naming shared libraries, and exclude the
15966 # DT_RUNPATH tag from executables and libraries. But doing so
15967 # requires that you compile everything twice, which is a pain.
15968 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15970 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15971 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15972 else
15973 ld_shlibs=no
15974 fi
15975 ;;
15976 esac
15977 ;;
15978
15979 sunos4*)
15980 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15981 wlarc=
15982 hardcode_direct=yes
15983 hardcode_shlibpath_var=no
15984 ;;
15985
15986 *)
15987 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15989 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15990 else
15991 ld_shlibs=no
15992 fi
15993 ;;
15994 esac
15995
15996 if test "$ld_shlibs" = no; then
15997 runpath_var=
15998 hardcode_libdir_flag_spec=
15999 export_dynamic_flag_spec=
16000 whole_archive_flag_spec=
16001 fi
16002 else
16003 # PORTME fill in a description of your system's linker (not GNU ld)
16004 case $host_os in
16005 aix3*)
16006 allow_undefined_flag=unsupported
16007 always_export_symbols=yes
16008 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'
16009 # Note: this linker hardcodes the directories in LIBPATH if there
16010 # are no directories specified by -L.
16011 hardcode_minus_L=yes
16012 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16013 # Neither direct hardcoding nor static linking is supported with a
16014 # broken collect2.
16015 hardcode_direct=unsupported
16016 fi
16017 ;;
16018
16019 aix[4-9]*)
16020 if test "$host_cpu" = ia64; then
16021 # On IA64, the linker does run time linking by default, so we don't
16022 # have to do anything special.
16023 aix_use_runtimelinking=no
16024 exp_sym_flag='-Bexport'
16025 no_entry_flag=""
16026 else
16027 # If we're using GNU nm, then we don't want the "-C" option.
16028 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16029 # Also, AIX nm treats weak defined symbols like other global
16030 # defined symbols, whereas GNU nm marks them as "W".
16031 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16032 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'
16033 else
16034 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16035 fi
16036 aix_use_runtimelinking=no
16037
16038 # Test if we are trying to use run time linking or normal
16039 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16040 # need to do runtime linking.
16041 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16042 for ld_flag in $LDFLAGS; do
16043 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16044 aix_use_runtimelinking=yes
16045 break
16046 fi
16047 done
16048 ;;
16049 esac
16050
16051 exp_sym_flag='-bexport'
16052 no_entry_flag='-bnoentry'
16053 fi
16054
16055 # When large executables or shared objects are built, AIX ld can
16056 # have problems creating the table of contents. If linking a library
16057 # or program results in "error TOC overflow" add -mminimal-toc to
16058 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16059 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16060
16061 archive_cmds=''
16062 hardcode_direct=yes
16063 hardcode_direct_absolute=yes
16064 hardcode_libdir_separator=':'
16065 link_all_deplibs=yes
16066 file_list_spec='${wl}-f,'
16067
16068 if test "$GCC" = yes; then
16069 case $host_os in aix4.[012]|aix4.[012].*)
16070 # We only want to do this on AIX 4.2 and lower, the check
16071 # below for broken collect2 doesn't work under 4.3+
16072 collect2name=`${CC} -print-prog-name=collect2`
16073 if test -f "$collect2name" &&
16074 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16075 then
16076 # We have reworked collect2
16077 :
16078 else
16079 # We have old collect2
16080 hardcode_direct=unsupported
16081 # It fails to find uninstalled libraries when the uninstalled
16082 # path is not listed in the libpath. Setting hardcode_minus_L
16083 # to unsupported forces relinking
16084 hardcode_minus_L=yes
16085 hardcode_libdir_flag_spec='-L$libdir'
16086 hardcode_libdir_separator=
16087 fi
16088 ;;
16089 esac
16090 shared_flag='-shared'
16091 if test "$aix_use_runtimelinking" = yes; then
16092 shared_flag="$shared_flag "'${wl}-G'
16093 fi
16094 else
16095 # not using gcc
16096 if test "$host_cpu" = ia64; then
16097 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16098 # chokes on -Wl,-G. The following line is correct:
16099 shared_flag='-G'
16100 else
16101 if test "$aix_use_runtimelinking" = yes; then
16102 shared_flag='${wl}-G'
16103 else
16104 shared_flag='${wl}-bM:SRE'
16105 fi
16106 fi
16107 fi
16108
16109 export_dynamic_flag_spec='${wl}-bexpall'
16110 # It seems that -bexpall does not export symbols beginning with
16111 # underscore (_), so it is better to generate a list of symbols to export.
16112 always_export_symbols=yes
16113 if test "$aix_use_runtimelinking" = yes; then
16114 # Warning - without using the other runtime loading flags (-brtl),
16115 # -berok will link without error, but may produce a broken library.
16116 allow_undefined_flag='-berok'
16117 # Determine the default libpath from the value encoded in an
16118 # empty executable.
16119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16120 /* end confdefs.h. */
16121
16122 int
16123 main ()
16124 {
16125
16126 ;
16127 return 0;
16128 }
16129 _ACEOF
16130 if ac_fn_c_try_link "$LINENO"; then :
16131
16132 lt_aix_libpath_sed='
16133 /Import File Strings/,/^$/ {
16134 /^0/ {
16135 s/^0 *\(.*\)$/\1/
16136 p
16137 }
16138 }'
16139 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16140 # Check for a 64-bit object if we didn't find anything.
16141 if test -z "$aix_libpath"; then
16142 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16143 fi
16144 fi
16145 rm -f core conftest.err conftest.$ac_objext \
16146 conftest$ac_exeext conftest.$ac_ext
16147 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16148
16149 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16150 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"
16151 else
16152 if test "$host_cpu" = ia64; then
16153 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16154 allow_undefined_flag="-z nodefs"
16155 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"
16156 else
16157 # Determine the default libpath from the value encoded in an
16158 # empty executable.
16159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16160 /* end confdefs.h. */
16161
16162 int
16163 main ()
16164 {
16165
16166 ;
16167 return 0;
16168 }
16169 _ACEOF
16170 if ac_fn_c_try_link "$LINENO"; then :
16171
16172 lt_aix_libpath_sed='
16173 /Import File Strings/,/^$/ {
16174 /^0/ {
16175 s/^0 *\(.*\)$/\1/
16176 p
16177 }
16178 }'
16179 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16180 # Check for a 64-bit object if we didn't find anything.
16181 if test -z "$aix_libpath"; then
16182 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16183 fi
16184 fi
16185 rm -f core conftest.err conftest.$ac_objext \
16186 conftest$ac_exeext conftest.$ac_ext
16187 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16188
16189 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16190 # Warning - without using the other run time loading flags,
16191 # -berok will link without error, but may produce a broken library.
16192 no_undefined_flag=' ${wl}-bernotok'
16193 allow_undefined_flag=' ${wl}-berok'
16194 if test "$with_gnu_ld" = yes; then
16195 # We only use this code for GNU lds that support --whole-archive.
16196 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16197 else
16198 # Exported symbols can be pulled into shared objects from archives
16199 whole_archive_flag_spec='$convenience'
16200 fi
16201 archive_cmds_need_lc=yes
16202 # This is similar to how AIX traditionally builds its shared libraries.
16203 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'
16204 fi
16205 fi
16206 ;;
16207
16208 amigaos*)
16209 case $host_cpu in
16210 powerpc)
16211 # see comment about AmigaOS4 .so support
16212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16213 archive_expsym_cmds=''
16214 ;;
16215 m68k)
16216 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)'
16217 hardcode_libdir_flag_spec='-L$libdir'
16218 hardcode_minus_L=yes
16219 ;;
16220 esac
16221 ;;
16222
16223 bsdi[45]*)
16224 export_dynamic_flag_spec=-rdynamic
16225 ;;
16226
16227 cygwin* | mingw* | pw32* | cegcc*)
16228 # When not using gcc, we currently assume that we are using
16229 # Microsoft Visual C++.
16230 # hardcode_libdir_flag_spec is actually meaningless, as there is
16231 # no search path for DLLs.
16232 hardcode_libdir_flag_spec=' '
16233 allow_undefined_flag=unsupported
16234 # Tell ltmain to make .lib files, not .a files.
16235 libext=lib
16236 # Tell ltmain to make .dll files, not .so files.
16237 shrext_cmds=".dll"
16238 # FIXME: Setting linknames here is a bad hack.
16239 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16240 # The linker will automatically build a .lib file if we build a DLL.
16241 old_archive_from_new_cmds='true'
16242 # FIXME: Should let the user specify the lib program.
16243 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16244 fix_srcfile_path='`cygpath -w "$srcfile"`'
16245 enable_shared_with_static_runtimes=yes
16246 ;;
16247
16248 darwin* | rhapsody*)
16249
16250
16251 archive_cmds_need_lc=no
16252 hardcode_direct=no
16253 hardcode_automatic=yes
16254 hardcode_shlibpath_var=unsupported
16255 if test "$lt_cv_ld_force_load" = "yes"; then
16256 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\"`'
16257 else
16258 whole_archive_flag_spec=''
16259 fi
16260 link_all_deplibs=yes
16261 allow_undefined_flag="$_lt_dar_allow_undefined"
16262 case $cc_basename in
16263 ifort*) _lt_dar_can_shared=yes ;;
16264 *) _lt_dar_can_shared=$GCC ;;
16265 esac
16266 if test "$_lt_dar_can_shared" = "yes"; then
16267 output_verbose_link_cmd=func_echo_all
16268 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16269 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16270 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}"
16271 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}"
16272
16273 else
16274 ld_shlibs=no
16275 fi
16276
16277 ;;
16278
16279 dgux*)
16280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16281 hardcode_libdir_flag_spec='-L$libdir'
16282 hardcode_shlibpath_var=no
16283 ;;
16284
16285 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16286 # support. Future versions do this automatically, but an explicit c++rt0.o
16287 # does not break anything, and helps significantly (at the cost of a little
16288 # extra space).
16289 freebsd2.2*)
16290 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16291 hardcode_libdir_flag_spec='-R$libdir'
16292 hardcode_direct=yes
16293 hardcode_shlibpath_var=no
16294 ;;
16295
16296 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16297 freebsd2*)
16298 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16299 hardcode_direct=yes
16300 hardcode_minus_L=yes
16301 hardcode_shlibpath_var=no
16302 ;;
16303
16304 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16305 freebsd* | dragonfly*)
16306 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16307 hardcode_libdir_flag_spec='-R$libdir'
16308 hardcode_direct=yes
16309 hardcode_shlibpath_var=no
16310 ;;
16311
16312 hpux9*)
16313 if test "$GCC" = yes; then
16314 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'
16315 else
16316 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'
16317 fi
16318 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16319 hardcode_libdir_separator=:
16320 hardcode_direct=yes
16321
16322 # hardcode_minus_L: Not really in the search PATH,
16323 # but as the default location of the library.
16324 hardcode_minus_L=yes
16325 export_dynamic_flag_spec='${wl}-E'
16326 ;;
16327
16328 hpux10*)
16329 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16330 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16331 else
16332 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16333 fi
16334 if test "$with_gnu_ld" = no; then
16335 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16336 hardcode_libdir_flag_spec_ld='+b $libdir'
16337 hardcode_libdir_separator=:
16338 hardcode_direct=yes
16339 hardcode_direct_absolute=yes
16340 export_dynamic_flag_spec='${wl}-E'
16341 # hardcode_minus_L: Not really in the search PATH,
16342 # but as the default location of the library.
16343 hardcode_minus_L=yes
16344 fi
16345 ;;
16346
16347 hpux11*)
16348 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16349 case $host_cpu in
16350 hppa*64*)
16351 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16352 ;;
16353 ia64*)
16354 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16355 ;;
16356 *)
16357 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16358 ;;
16359 esac
16360 else
16361 case $host_cpu in
16362 hppa*64*)
16363 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16364 ;;
16365 ia64*)
16366 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16367 ;;
16368 *)
16369
16370 # Older versions of the 11.00 compiler do not understand -b yet
16371 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16373 $as_echo_n "checking if $CC understands -b... " >&6; }
16374 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16375 $as_echo_n "(cached) " >&6
16376 else
16377 lt_cv_prog_compiler__b=no
16378 save_LDFLAGS="$LDFLAGS"
16379 LDFLAGS="$LDFLAGS -b"
16380 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16381 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16382 # The linker can only warn and ignore the option if not recognized
16383 # So say no if there are warnings
16384 if test -s conftest.err; then
16385 # Append any errors to the config.log.
16386 cat conftest.err 1>&5
16387 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16389 if diff conftest.exp conftest.er2 >/dev/null; then
16390 lt_cv_prog_compiler__b=yes
16391 fi
16392 else
16393 lt_cv_prog_compiler__b=yes
16394 fi
16395 fi
16396 $RM -r conftest*
16397 LDFLAGS="$save_LDFLAGS"
16398
16399 fi
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16401 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16402
16403 if test x"$lt_cv_prog_compiler__b" = xyes; then
16404 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16405 else
16406 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16407 fi
16408
16409 ;;
16410 esac
16411 fi
16412 if test "$with_gnu_ld" = no; then
16413 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16414 hardcode_libdir_separator=:
16415
16416 case $host_cpu in
16417 hppa*64*|ia64*)
16418 hardcode_direct=no
16419 hardcode_shlibpath_var=no
16420 ;;
16421 *)
16422 hardcode_direct=yes
16423 hardcode_direct_absolute=yes
16424 export_dynamic_flag_spec='${wl}-E'
16425
16426 # hardcode_minus_L: Not really in the search PATH,
16427 # but as the default location of the library.
16428 hardcode_minus_L=yes
16429 ;;
16430 esac
16431 fi
16432 ;;
16433
16434 irix5* | irix6* | nonstopux*)
16435 if test "$GCC" = yes; then
16436 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'
16437 # Try to use the -exported_symbol ld option, if it does not
16438 # work, assume that -exports_file does not work either and
16439 # implicitly export all symbols.
16440 save_LDFLAGS="$LDFLAGS"
16441 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443 /* end confdefs.h. */
16444 int foo(void) {}
16445 _ACEOF
16446 if ac_fn_c_try_link "$LINENO"; then :
16447 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'
16448
16449 fi
16450 rm -f core conftest.err conftest.$ac_objext \
16451 conftest$ac_exeext conftest.$ac_ext
16452 LDFLAGS="$save_LDFLAGS"
16453 else
16454 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'
16455 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'
16456 fi
16457 archive_cmds_need_lc='no'
16458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16459 hardcode_libdir_separator=:
16460 inherit_rpath=yes
16461 link_all_deplibs=yes
16462 ;;
16463
16464 netbsd*)
16465 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16467 else
16468 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16469 fi
16470 hardcode_libdir_flag_spec='-R$libdir'
16471 hardcode_direct=yes
16472 hardcode_shlibpath_var=no
16473 ;;
16474
16475 newsos6)
16476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16477 hardcode_direct=yes
16478 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16479 hardcode_libdir_separator=:
16480 hardcode_shlibpath_var=no
16481 ;;
16482
16483 *nto* | *qnx*)
16484 ;;
16485
16486 openbsd*)
16487 if test -f /usr/libexec/ld.so; then
16488 hardcode_direct=yes
16489 hardcode_shlibpath_var=no
16490 hardcode_direct_absolute=yes
16491 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16492 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16493 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16494 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16495 export_dynamic_flag_spec='${wl}-E'
16496 else
16497 case $host_os in
16498 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16499 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16500 hardcode_libdir_flag_spec='-R$libdir'
16501 ;;
16502 *)
16503 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16504 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16505 ;;
16506 esac
16507 fi
16508 else
16509 ld_shlibs=no
16510 fi
16511 ;;
16512
16513 os2*)
16514 hardcode_libdir_flag_spec='-L$libdir'
16515 hardcode_minus_L=yes
16516 allow_undefined_flag=unsupported
16517 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'
16518 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16519 ;;
16520
16521 osf3*)
16522 if test "$GCC" = yes; then
16523 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16524 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'
16525 else
16526 allow_undefined_flag=' -expect_unresolved \*'
16527 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'
16528 fi
16529 archive_cmds_need_lc='no'
16530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16531 hardcode_libdir_separator=:
16532 ;;
16533
16534 osf4* | osf5*) # as osf3* with the addition of -msym flag
16535 if test "$GCC" = yes; then
16536 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16537 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'
16538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16539 else
16540 allow_undefined_flag=' -expect_unresolved \*'
16541 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'
16542 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~
16543 $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'
16544
16545 # Both c and cxx compiler support -rpath directly
16546 hardcode_libdir_flag_spec='-rpath $libdir'
16547 fi
16548 archive_cmds_need_lc='no'
16549 hardcode_libdir_separator=:
16550 ;;
16551
16552 solaris*)
16553 no_undefined_flag=' -z defs'
16554 if test "$GCC" = yes; then
16555 wlarc='${wl}'
16556 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16557 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16558 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16559 else
16560 case `$CC -V 2>&1` in
16561 *"Compilers 5.0"*)
16562 wlarc=''
16563 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16564 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16565 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16566 ;;
16567 *)
16568 wlarc='${wl}'
16569 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16570 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16571 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16572 ;;
16573 esac
16574 fi
16575 hardcode_libdir_flag_spec='-R$libdir'
16576 hardcode_shlibpath_var=no
16577 case $host_os in
16578 solaris2.[0-5] | solaris2.[0-5].*) ;;
16579 *)
16580 # The compiler driver will combine and reorder linker options,
16581 # but understands `-z linker_flag'. GCC discards it without `$wl',
16582 # but is careful enough not to reorder.
16583 # Supported since Solaris 2.6 (maybe 2.5.1?)
16584 if test "$GCC" = yes; then
16585 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16586 else
16587 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16588 fi
16589 ;;
16590 esac
16591 link_all_deplibs=yes
16592 ;;
16593
16594 sunos4*)
16595 if test "x$host_vendor" = xsequent; then
16596 # Use $CC to link under sequent, because it throws in some extra .o
16597 # files that make .init and .fini sections work.
16598 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16599 else
16600 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16601 fi
16602 hardcode_libdir_flag_spec='-L$libdir'
16603 hardcode_direct=yes
16604 hardcode_minus_L=yes
16605 hardcode_shlibpath_var=no
16606 ;;
16607
16608 sysv4)
16609 case $host_vendor in
16610 sni)
16611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16612 hardcode_direct=yes # is this really true???
16613 ;;
16614 siemens)
16615 ## LD is ld it makes a PLAMLIB
16616 ## CC just makes a GrossModule.
16617 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16618 reload_cmds='$CC -r -o $output$reload_objs'
16619 hardcode_direct=no
16620 ;;
16621 motorola)
16622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16623 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16624 ;;
16625 esac
16626 runpath_var='LD_RUN_PATH'
16627 hardcode_shlibpath_var=no
16628 ;;
16629
16630 sysv4.3*)
16631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16632 hardcode_shlibpath_var=no
16633 export_dynamic_flag_spec='-Bexport'
16634 ;;
16635
16636 sysv4*MP*)
16637 if test -d /usr/nec; then
16638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16639 hardcode_shlibpath_var=no
16640 runpath_var=LD_RUN_PATH
16641 hardcode_runpath_var=yes
16642 ld_shlibs=yes
16643 fi
16644 ;;
16645
16646 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16647 no_undefined_flag='${wl}-z,text'
16648 archive_cmds_need_lc=no
16649 hardcode_shlibpath_var=no
16650 runpath_var='LD_RUN_PATH'
16651
16652 if test "$GCC" = yes; then
16653 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16654 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16655 else
16656 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16657 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16658 fi
16659 ;;
16660
16661 sysv5* | sco3.2v5* | sco5v6*)
16662 # Note: We can NOT use -z defs as we might desire, because we do not
16663 # link with -lc, and that would cause any symbols used from libc to
16664 # always be unresolved, which means just about no library would
16665 # ever link correctly. If we're not using GNU ld we use -z text
16666 # though, which does catch some bad symbols but isn't as heavy-handed
16667 # as -z defs.
16668 no_undefined_flag='${wl}-z,text'
16669 allow_undefined_flag='${wl}-z,nodefs'
16670 archive_cmds_need_lc=no
16671 hardcode_shlibpath_var=no
16672 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16673 hardcode_libdir_separator=':'
16674 link_all_deplibs=yes
16675 export_dynamic_flag_spec='${wl}-Bexport'
16676 runpath_var='LD_RUN_PATH'
16677
16678 if test "$GCC" = yes; then
16679 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16680 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16681 else
16682 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16683 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16684 fi
16685 ;;
16686
16687 uts4*)
16688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16689 hardcode_libdir_flag_spec='-L$libdir'
16690 hardcode_shlibpath_var=no
16691 ;;
16692
16693 *)
16694 ld_shlibs=no
16695 ;;
16696 esac
16697
16698 if test x$host_vendor = xsni; then
16699 case $host in
16700 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16701 export_dynamic_flag_spec='${wl}-Blargedynsym'
16702 ;;
16703 esac
16704 fi
16705 fi
16706
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16708 $as_echo "$ld_shlibs" >&6; }
16709 test "$ld_shlibs" = no && can_build_shared=no
16710
16711 with_gnu_ld=$with_gnu_ld
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727 #
16728 # Do we need to explicitly link libc?
16729 #
16730 case "x$archive_cmds_need_lc" in
16731 x|xyes)
16732 # Assume -lc should be added
16733 archive_cmds_need_lc=yes
16734
16735 if test "$enable_shared" = yes && test "$GCC" = yes; then
16736 case $archive_cmds in
16737 *'~'*)
16738 # FIXME: we may have to deal with multi-command sequences.
16739 ;;
16740 '$CC '*)
16741 # Test whether the compiler implicitly links with -lc since on some
16742 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16743 # to ld, don't add -lc before -lgcc.
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16745 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16746 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16747 $as_echo_n "(cached) " >&6
16748 else
16749 $RM conftest*
16750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16751
16752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16753 (eval $ac_compile) 2>&5
16754 ac_status=$?
16755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16756 test $ac_status = 0; } 2>conftest.err; then
16757 soname=conftest
16758 lib=conftest
16759 libobjs=conftest.$ac_objext
16760 deplibs=
16761 wl=$lt_prog_compiler_wl
16762 pic_flag=$lt_prog_compiler_pic
16763 compiler_flags=-v
16764 linker_flags=-v
16765 verstring=
16766 output_objdir=.
16767 libname=conftest
16768 lt_save_allow_undefined_flag=$allow_undefined_flag
16769 allow_undefined_flag=
16770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16771 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16772 ac_status=$?
16773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16774 test $ac_status = 0; }
16775 then
16776 lt_cv_archive_cmds_need_lc=no
16777 else
16778 lt_cv_archive_cmds_need_lc=yes
16779 fi
16780 allow_undefined_flag=$lt_save_allow_undefined_flag
16781 else
16782 cat conftest.err 1>&5
16783 fi
16784 $RM conftest*
16785
16786 fi
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16788 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16789 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16790 ;;
16791 esac
16792 fi
16793 ;;
16794 esac
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16953 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16954
16955 if test "$GCC" = yes; then
16956 case $host_os in
16957 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16958 *) lt_awk_arg="/^libraries:/" ;;
16959 esac
16960 case $host_os in
16961 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16962 *) lt_sed_strip_eq="s,=/,/,g" ;;
16963 esac
16964 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16965 case $lt_search_path_spec in
16966 *\;*)
16967 # if the path contains ";" then we assume it to be the separator
16968 # otherwise default to the standard path separator (i.e. ":") - it is
16969 # assumed that no part of a normal pathname contains ";" but that should
16970 # okay in the real world where ";" in dirpaths is itself problematic.
16971 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16972 ;;
16973 *)
16974 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16975 ;;
16976 esac
16977 # Ok, now we have the path, separated by spaces, we can step through it
16978 # and add multilib dir if necessary.
16979 lt_tmp_lt_search_path_spec=
16980 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16981 for lt_sys_path in $lt_search_path_spec; do
16982 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16983 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16984 else
16985 test -d "$lt_sys_path" && \
16986 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16987 fi
16988 done
16989 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16990 BEGIN {RS=" "; FS="/|\n";} {
16991 lt_foo="";
16992 lt_count=0;
16993 for (lt_i = NF; lt_i > 0; lt_i--) {
16994 if ($lt_i != "" && $lt_i != ".") {
16995 if ($lt_i == "..") {
16996 lt_count++;
16997 } else {
16998 if (lt_count == 0) {
16999 lt_foo="/" $lt_i lt_foo;
17000 } else {
17001 lt_count--;
17002 }
17003 }
17004 }
17005 }
17006 if (lt_foo != "") { lt_freq[lt_foo]++; }
17007 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17008 }'`
17009 # AWK program above erroneously prepends '/' to C:/dos/paths
17010 # for these hosts.
17011 case $host_os in
17012 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17013 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17014 esac
17015 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17016 else
17017 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17018 fi
17019 library_names_spec=
17020 libname_spec='lib$name'
17021 soname_spec=
17022 shrext_cmds=".so"
17023 postinstall_cmds=
17024 postuninstall_cmds=
17025 finish_cmds=
17026 finish_eval=
17027 shlibpath_var=
17028 shlibpath_overrides_runpath=unknown
17029 version_type=none
17030 dynamic_linker="$host_os ld.so"
17031 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17032 need_lib_prefix=unknown
17033 hardcode_into_libs=no
17034
17035 # when you set need_version to no, make sure it does not cause -set_version
17036 # flags to be left without arguments
17037 need_version=unknown
17038
17039 case $host_os in
17040 aix3*)
17041 version_type=linux
17042 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17043 shlibpath_var=LIBPATH
17044
17045 # AIX 3 has no versioning support, so we append a major version to the name.
17046 soname_spec='${libname}${release}${shared_ext}$major'
17047 ;;
17048
17049 aix[4-9]*)
17050 version_type=linux
17051 need_lib_prefix=no
17052 need_version=no
17053 hardcode_into_libs=yes
17054 if test "$host_cpu" = ia64; then
17055 # AIX 5 supports IA64
17056 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17057 shlibpath_var=LD_LIBRARY_PATH
17058 else
17059 # With GCC up to 2.95.x, collect2 would create an import file
17060 # for dependence libraries. The import file would start with
17061 # the line `#! .'. This would cause the generated library to
17062 # depend on `.', always an invalid library. This was fixed in
17063 # development snapshots of GCC prior to 3.0.
17064 case $host_os in
17065 aix4 | aix4.[01] | aix4.[01].*)
17066 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17067 echo ' yes '
17068 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17069 :
17070 else
17071 can_build_shared=no
17072 fi
17073 ;;
17074 esac
17075 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17076 # soname into executable. Probably we can add versioning support to
17077 # collect2, so additional links can be useful in future.
17078 if test "$aix_use_runtimelinking" = yes; then
17079 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17080 # instead of lib<name>.a to let people know that these are not
17081 # typical AIX shared libraries.
17082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17083 else
17084 # We preserve .a as extension for shared libraries through AIX4.2
17085 # and later when we are not doing run time linking.
17086 library_names_spec='${libname}${release}.a $libname.a'
17087 soname_spec='${libname}${release}${shared_ext}$major'
17088 fi
17089 shlibpath_var=LIBPATH
17090 fi
17091 ;;
17092
17093 amigaos*)
17094 case $host_cpu in
17095 powerpc)
17096 # Since July 2007 AmigaOS4 officially supports .so libraries.
17097 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099 ;;
17100 m68k)
17101 library_names_spec='$libname.ixlibrary $libname.a'
17102 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17103 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'
17104 ;;
17105 esac
17106 ;;
17107
17108 beos*)
17109 library_names_spec='${libname}${shared_ext}'
17110 dynamic_linker="$host_os ld.so"
17111 shlibpath_var=LIBRARY_PATH
17112 ;;
17113
17114 bsdi[45]*)
17115 version_type=linux
17116 need_version=no
17117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17118 soname_spec='${libname}${release}${shared_ext}$major'
17119 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17120 shlibpath_var=LD_LIBRARY_PATH
17121 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17122 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17123 # the default ld.so.conf also contains /usr/contrib/lib and
17124 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17125 # libtool to hard-code these into programs
17126 ;;
17127
17128 cygwin* | mingw* | pw32* | cegcc*)
17129 version_type=windows
17130 shrext_cmds=".dll"
17131 need_version=no
17132 need_lib_prefix=no
17133
17134 case $GCC,$host_os in
17135 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17136 library_names_spec='$libname.dll.a'
17137 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17138 postinstall_cmds='base_file=`basename \${file}`~
17139 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17140 dldir=$destdir/`dirname \$dlpath`~
17141 test -d \$dldir || mkdir -p \$dldir~
17142 $install_prog $dir/$dlname \$dldir/$dlname~
17143 chmod a+x \$dldir/$dlname~
17144 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17145 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17146 fi'
17147 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17148 dlpath=$dir/\$dldll~
17149 $RM \$dlpath'
17150 shlibpath_overrides_runpath=yes
17151
17152 case $host_os in
17153 cygwin*)
17154 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17155 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17156
17157 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17158 ;;
17159 mingw* | cegcc*)
17160 # MinGW DLLs use traditional 'lib' prefix
17161 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17162 ;;
17163 pw32*)
17164 # pw32 DLLs use 'pw' prefix rather than 'lib'
17165 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17166 ;;
17167 esac
17168 ;;
17169
17170 *)
17171 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17172 ;;
17173 esac
17174 dynamic_linker='Win32 ld.exe'
17175 # FIXME: first we should search . and the directory the executable is in
17176 shlibpath_var=PATH
17177 ;;
17178
17179 darwin* | rhapsody*)
17180 dynamic_linker="$host_os dyld"
17181 version_type=darwin
17182 need_lib_prefix=no
17183 need_version=no
17184 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17185 soname_spec='${libname}${release}${major}$shared_ext'
17186 shlibpath_overrides_runpath=yes
17187 shlibpath_var=DYLD_LIBRARY_PATH
17188 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17189
17190 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17191 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17192 ;;
17193
17194 dgux*)
17195 version_type=linux
17196 need_lib_prefix=no
17197 need_version=no
17198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17199 soname_spec='${libname}${release}${shared_ext}$major'
17200 shlibpath_var=LD_LIBRARY_PATH
17201 ;;
17202
17203 freebsd* | dragonfly*)
17204 # DragonFly does not have aout. When/if they implement a new
17205 # versioning mechanism, adjust this.
17206 if test -x /usr/bin/objformat; then
17207 objformat=`/usr/bin/objformat`
17208 else
17209 case $host_os in
17210 freebsd[123]*) objformat=aout ;;
17211 *) objformat=elf ;;
17212 esac
17213 fi
17214 version_type=freebsd-$objformat
17215 case $version_type in
17216 freebsd-elf*)
17217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17218 need_version=no
17219 need_lib_prefix=no
17220 ;;
17221 freebsd-*)
17222 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17223 need_version=yes
17224 ;;
17225 esac
17226 shlibpath_var=LD_LIBRARY_PATH
17227 case $host_os in
17228 freebsd2*)
17229 shlibpath_overrides_runpath=yes
17230 ;;
17231 freebsd3.[01]* | freebsdelf3.[01]*)
17232 shlibpath_overrides_runpath=yes
17233 hardcode_into_libs=yes
17234 ;;
17235 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17236 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17237 shlibpath_overrides_runpath=no
17238 hardcode_into_libs=yes
17239 ;;
17240 *) # from 4.6 on, and DragonFly
17241 shlibpath_overrides_runpath=yes
17242 hardcode_into_libs=yes
17243 ;;
17244 esac
17245 ;;
17246
17247 gnu*)
17248 version_type=linux
17249 need_lib_prefix=no
17250 need_version=no
17251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17252 soname_spec='${libname}${release}${shared_ext}$major'
17253 shlibpath_var=LD_LIBRARY_PATH
17254 hardcode_into_libs=yes
17255 ;;
17256
17257 haiku*)
17258 version_type=linux
17259 need_lib_prefix=no
17260 need_version=no
17261 dynamic_linker="$host_os runtime_loader"
17262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17263 soname_spec='${libname}${release}${shared_ext}$major'
17264 shlibpath_var=LIBRARY_PATH
17265 shlibpath_overrides_runpath=yes
17266 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17267 hardcode_into_libs=yes
17268 ;;
17269
17270 hpux9* | hpux10* | hpux11*)
17271 # Give a soname corresponding to the major version so that dld.sl refuses to
17272 # link against other versions.
17273 version_type=sunos
17274 need_lib_prefix=no
17275 need_version=no
17276 case $host_cpu in
17277 ia64*)
17278 shrext_cmds='.so'
17279 hardcode_into_libs=yes
17280 dynamic_linker="$host_os dld.so"
17281 shlibpath_var=LD_LIBRARY_PATH
17282 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17284 soname_spec='${libname}${release}${shared_ext}$major'
17285 if test "X$HPUX_IA64_MODE" = X32; then
17286 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17287 else
17288 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17289 fi
17290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17291 ;;
17292 hppa*64*)
17293 shrext_cmds='.sl'
17294 hardcode_into_libs=yes
17295 dynamic_linker="$host_os dld.sl"
17296 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17297 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17299 soname_spec='${libname}${release}${shared_ext}$major'
17300 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17301 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17302 ;;
17303 *)
17304 shrext_cmds='.sl'
17305 dynamic_linker="$host_os dld.sl"
17306 shlibpath_var=SHLIB_PATH
17307 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17309 soname_spec='${libname}${release}${shared_ext}$major'
17310 ;;
17311 esac
17312 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17313 postinstall_cmds='chmod 555 $lib'
17314 # or fails outright, so override atomically:
17315 install_override_mode=555
17316 ;;
17317
17318 interix[3-9]*)
17319 version_type=linux
17320 need_lib_prefix=no
17321 need_version=no
17322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17323 soname_spec='${libname}${release}${shared_ext}$major'
17324 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17325 shlibpath_var=LD_LIBRARY_PATH
17326 shlibpath_overrides_runpath=no
17327 hardcode_into_libs=yes
17328 ;;
17329
17330 irix5* | irix6* | nonstopux*)
17331 case $host_os in
17332 nonstopux*) version_type=nonstopux ;;
17333 *)
17334 if test "$lt_cv_prog_gnu_ld" = yes; then
17335 version_type=linux
17336 else
17337 version_type=irix
17338 fi ;;
17339 esac
17340 need_lib_prefix=no
17341 need_version=no
17342 soname_spec='${libname}${release}${shared_ext}$major'
17343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17344 case $host_os in
17345 irix5* | nonstopux*)
17346 libsuff= shlibsuff=
17347 ;;
17348 *)
17349 case $LD in # libtool.m4 will add one of these switches to LD
17350 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17351 libsuff= shlibsuff= libmagic=32-bit;;
17352 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17353 libsuff=32 shlibsuff=N32 libmagic=N32;;
17354 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17355 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17356 *) libsuff= shlibsuff= libmagic=never-match;;
17357 esac
17358 ;;
17359 esac
17360 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17361 shlibpath_overrides_runpath=no
17362 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17363 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17364 hardcode_into_libs=yes
17365 ;;
17366
17367 # No shared lib support for Linux oldld, aout, or coff.
17368 linux*oldld* | linux*aout* | linux*coff*)
17369 dynamic_linker=no
17370 ;;
17371
17372 # This must be Linux ELF.
17373 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17374 version_type=linux
17375 need_lib_prefix=no
17376 need_version=no
17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378 soname_spec='${libname}${release}${shared_ext}$major'
17379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17380 shlibpath_var=LD_LIBRARY_PATH
17381 shlibpath_overrides_runpath=no
17382
17383 # Some binutils ld are patched to set DT_RUNPATH
17384 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17385 $as_echo_n "(cached) " >&6
17386 else
17387 lt_cv_shlibpath_overrides_runpath=no
17388 save_LDFLAGS=$LDFLAGS
17389 save_libdir=$libdir
17390 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17391 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17393 /* end confdefs.h. */
17394
17395 int
17396 main ()
17397 {
17398
17399 ;
17400 return 0;
17401 }
17402 _ACEOF
17403 if ac_fn_c_try_link "$LINENO"; then :
17404 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17405 lt_cv_shlibpath_overrides_runpath=yes
17406 fi
17407 fi
17408 rm -f core conftest.err conftest.$ac_objext \
17409 conftest$ac_exeext conftest.$ac_ext
17410 LDFLAGS=$save_LDFLAGS
17411 libdir=$save_libdir
17412
17413 fi
17414
17415 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17416
17417 # This implies no fast_install, which is unacceptable.
17418 # Some rework will be needed to allow for fast_install
17419 # before this can be enabled.
17420 hardcode_into_libs=yes
17421
17422 # Append ld.so.conf contents to the search path
17423 if test -f /etc/ld.so.conf; then
17424 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' ' '`
17425 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17426 fi
17427
17428 # We used to test for /lib/ld.so.1 and disable shared libraries on
17429 # powerpc, because MkLinux only supported shared libraries with the
17430 # GNU dynamic linker. Since this was broken with cross compilers,
17431 # most powerpc-linux boxes support dynamic linking these days and
17432 # people can always --disable-shared, the test was removed, and we
17433 # assume the GNU/Linux dynamic linker is in use.
17434 dynamic_linker='GNU/Linux ld.so'
17435 ;;
17436
17437 netbsd*)
17438 version_type=sunos
17439 need_lib_prefix=no
17440 need_version=no
17441 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17444 dynamic_linker='NetBSD (a.out) ld.so'
17445 else
17446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17447 soname_spec='${libname}${release}${shared_ext}$major'
17448 dynamic_linker='NetBSD ld.elf_so'
17449 fi
17450 shlibpath_var=LD_LIBRARY_PATH
17451 shlibpath_overrides_runpath=yes
17452 hardcode_into_libs=yes
17453 ;;
17454
17455 newsos6)
17456 version_type=linux
17457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17458 shlibpath_var=LD_LIBRARY_PATH
17459 shlibpath_overrides_runpath=yes
17460 ;;
17461
17462 *nto* | *qnx*)
17463 version_type=qnx
17464 need_lib_prefix=no
17465 need_version=no
17466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17467 soname_spec='${libname}${release}${shared_ext}$major'
17468 shlibpath_var=LD_LIBRARY_PATH
17469 shlibpath_overrides_runpath=no
17470 hardcode_into_libs=yes
17471 dynamic_linker='ldqnx.so'
17472 ;;
17473
17474 openbsd*)
17475 version_type=sunos
17476 sys_lib_dlsearch_path_spec="/usr/lib"
17477 need_lib_prefix=no
17478 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17479 case $host_os in
17480 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17481 *) need_version=no ;;
17482 esac
17483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17485 shlibpath_var=LD_LIBRARY_PATH
17486 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17487 case $host_os in
17488 openbsd2.[89] | openbsd2.[89].*)
17489 shlibpath_overrides_runpath=no
17490 ;;
17491 *)
17492 shlibpath_overrides_runpath=yes
17493 ;;
17494 esac
17495 else
17496 shlibpath_overrides_runpath=yes
17497 fi
17498 ;;
17499
17500 os2*)
17501 libname_spec='$name'
17502 shrext_cmds=".dll"
17503 need_lib_prefix=no
17504 library_names_spec='$libname${shared_ext} $libname.a'
17505 dynamic_linker='OS/2 ld.exe'
17506 shlibpath_var=LIBPATH
17507 ;;
17508
17509 osf3* | osf4* | osf5*)
17510 version_type=osf
17511 need_lib_prefix=no
17512 need_version=no
17513 soname_spec='${libname}${release}${shared_ext}$major'
17514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17515 shlibpath_var=LD_LIBRARY_PATH
17516 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17517 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17518 ;;
17519
17520 rdos*)
17521 dynamic_linker=no
17522 ;;
17523
17524 solaris*)
17525 version_type=linux
17526 need_lib_prefix=no
17527 need_version=no
17528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17529 soname_spec='${libname}${release}${shared_ext}$major'
17530 shlibpath_var=LD_LIBRARY_PATH
17531 shlibpath_overrides_runpath=yes
17532 hardcode_into_libs=yes
17533 # ldd complains unless libraries are executable
17534 postinstall_cmds='chmod +x $lib'
17535 ;;
17536
17537 sunos4*)
17538 version_type=sunos
17539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17540 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17541 shlibpath_var=LD_LIBRARY_PATH
17542 shlibpath_overrides_runpath=yes
17543 if test "$with_gnu_ld" = yes; then
17544 need_lib_prefix=no
17545 fi
17546 need_version=yes
17547 ;;
17548
17549 sysv4 | sysv4.3*)
17550 version_type=linux
17551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17552 soname_spec='${libname}${release}${shared_ext}$major'
17553 shlibpath_var=LD_LIBRARY_PATH
17554 case $host_vendor in
17555 sni)
17556 shlibpath_overrides_runpath=no
17557 need_lib_prefix=no
17558 runpath_var=LD_RUN_PATH
17559 ;;
17560 siemens)
17561 need_lib_prefix=no
17562 ;;
17563 motorola)
17564 need_lib_prefix=no
17565 need_version=no
17566 shlibpath_overrides_runpath=no
17567 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17568 ;;
17569 esac
17570 ;;
17571
17572 sysv4*MP*)
17573 if test -d /usr/nec ;then
17574 version_type=linux
17575 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17576 soname_spec='$libname${shared_ext}.$major'
17577 shlibpath_var=LD_LIBRARY_PATH
17578 fi
17579 ;;
17580
17581 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17582 version_type=freebsd-elf
17583 need_lib_prefix=no
17584 need_version=no
17585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17586 soname_spec='${libname}${release}${shared_ext}$major'
17587 shlibpath_var=LD_LIBRARY_PATH
17588 shlibpath_overrides_runpath=yes
17589 hardcode_into_libs=yes
17590 if test "$with_gnu_ld" = yes; then
17591 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17592 else
17593 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17594 case $host_os in
17595 sco3.2v5*)
17596 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17597 ;;
17598 esac
17599 fi
17600 sys_lib_dlsearch_path_spec='/usr/lib'
17601 ;;
17602
17603 tpf*)
17604 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17605 version_type=linux
17606 need_lib_prefix=no
17607 need_version=no
17608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17609 shlibpath_var=LD_LIBRARY_PATH
17610 shlibpath_overrides_runpath=no
17611 hardcode_into_libs=yes
17612 ;;
17613
17614 uts4*)
17615 version_type=linux
17616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17617 soname_spec='${libname}${release}${shared_ext}$major'
17618 shlibpath_var=LD_LIBRARY_PATH
17619 ;;
17620
17621 *)
17622 dynamic_linker=no
17623 ;;
17624 esac
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17626 $as_echo "$dynamic_linker" >&6; }
17627 test "$dynamic_linker" = no && can_build_shared=no
17628
17629 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17630 if test "$GCC" = yes; then
17631 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17632 fi
17633
17634 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17635 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17636 fi
17637 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17638 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17639 fi
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17733 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17734 hardcode_action=
17735 if test -n "$hardcode_libdir_flag_spec" ||
17736 test -n "$runpath_var" ||
17737 test "X$hardcode_automatic" = "Xyes" ; then
17738
17739 # We can hardcode non-existent directories.
17740 if test "$hardcode_direct" != no &&
17741 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17742 # have to relink, otherwise we might link with an installed library
17743 # when we should be linking with a yet-to-be-installed one
17744 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17745 test "$hardcode_minus_L" != no; then
17746 # Linking always hardcodes the temporary library directory.
17747 hardcode_action=relink
17748 else
17749 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17750 hardcode_action=immediate
17751 fi
17752 else
17753 # We cannot hardcode anything, or else we can only hardcode existing
17754 # directories.
17755 hardcode_action=unsupported
17756 fi
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17758 $as_echo "$hardcode_action" >&6; }
17759
17760 if test "$hardcode_action" = relink ||
17761 test "$inherit_rpath" = yes; then
17762 # Fast installation is not supported
17763 enable_fast_install=no
17764 elif test "$shlibpath_overrides_runpath" = yes ||
17765 test "$enable_shared" = no; then
17766 # Fast installation is not necessary
17767 enable_fast_install=needless
17768 fi
17769
17770
17771
17772
17773
17774
17775 if test "x$enable_dlopen" != xyes; then
17776 enable_dlopen=unknown
17777 enable_dlopen_self=unknown
17778 enable_dlopen_self_static=unknown
17779 else
17780 lt_cv_dlopen=no
17781 lt_cv_dlopen_libs=
17782
17783 case $host_os in
17784 beos*)
17785 lt_cv_dlopen="load_add_on"
17786 lt_cv_dlopen_libs=
17787 lt_cv_dlopen_self=yes
17788 ;;
17789
17790 mingw* | pw32* | cegcc*)
17791 lt_cv_dlopen="LoadLibrary"
17792 lt_cv_dlopen_libs=
17793 ;;
17794
17795 cygwin*)
17796 lt_cv_dlopen="dlopen"
17797 lt_cv_dlopen_libs=
17798 ;;
17799
17800 darwin*)
17801 # if libdl is installed we need to link against it
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17803 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17804 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17805 $as_echo_n "(cached) " >&6
17806 else
17807 ac_check_lib_save_LIBS=$LIBS
17808 LIBS="-ldl $LIBS"
17809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17810 /* end confdefs.h. */
17811
17812 /* Override any GCC internal prototype to avoid an error.
17813 Use char because int might match the return type of a GCC
17814 builtin and then its argument prototype would still apply. */
17815 #ifdef __cplusplus
17816 extern "C"
17817 #endif
17818 char dlopen ();
17819 int
17820 main ()
17821 {
17822 return dlopen ();
17823 ;
17824 return 0;
17825 }
17826 _ACEOF
17827 if ac_fn_c_try_link "$LINENO"; then :
17828 ac_cv_lib_dl_dlopen=yes
17829 else
17830 ac_cv_lib_dl_dlopen=no
17831 fi
17832 rm -f core conftest.err conftest.$ac_objext \
17833 conftest$ac_exeext conftest.$ac_ext
17834 LIBS=$ac_check_lib_save_LIBS
17835 fi
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17837 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17838 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17839 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17840 else
17841
17842 lt_cv_dlopen="dyld"
17843 lt_cv_dlopen_libs=
17844 lt_cv_dlopen_self=yes
17845
17846 fi
17847
17848 ;;
17849
17850 *)
17851 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17852 if test "x$ac_cv_func_shl_load" = x""yes; then :
17853 lt_cv_dlopen="shl_load"
17854 else
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17856 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17857 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17858 $as_echo_n "(cached) " >&6
17859 else
17860 ac_check_lib_save_LIBS=$LIBS
17861 LIBS="-ldld $LIBS"
17862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17863 /* end confdefs.h. */
17864
17865 /* Override any GCC internal prototype to avoid an error.
17866 Use char because int might match the return type of a GCC
17867 builtin and then its argument prototype would still apply. */
17868 #ifdef __cplusplus
17869 extern "C"
17870 #endif
17871 char shl_load ();
17872 int
17873 main ()
17874 {
17875 return shl_load ();
17876 ;
17877 return 0;
17878 }
17879 _ACEOF
17880 if ac_fn_c_try_link "$LINENO"; then :
17881 ac_cv_lib_dld_shl_load=yes
17882 else
17883 ac_cv_lib_dld_shl_load=no
17884 fi
17885 rm -f core conftest.err conftest.$ac_objext \
17886 conftest$ac_exeext conftest.$ac_ext
17887 LIBS=$ac_check_lib_save_LIBS
17888 fi
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17890 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17891 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17892 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17893 else
17894 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17895 if test "x$ac_cv_func_dlopen" = x""yes; then :
17896 lt_cv_dlopen="dlopen"
17897 else
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17899 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17900 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17901 $as_echo_n "(cached) " >&6
17902 else
17903 ac_check_lib_save_LIBS=$LIBS
17904 LIBS="-ldl $LIBS"
17905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17906 /* end confdefs.h. */
17907
17908 /* Override any GCC internal prototype to avoid an error.
17909 Use char because int might match the return type of a GCC
17910 builtin and then its argument prototype would still apply. */
17911 #ifdef __cplusplus
17912 extern "C"
17913 #endif
17914 char dlopen ();
17915 int
17916 main ()
17917 {
17918 return dlopen ();
17919 ;
17920 return 0;
17921 }
17922 _ACEOF
17923 if ac_fn_c_try_link "$LINENO"; then :
17924 ac_cv_lib_dl_dlopen=yes
17925 else
17926 ac_cv_lib_dl_dlopen=no
17927 fi
17928 rm -f core conftest.err conftest.$ac_objext \
17929 conftest$ac_exeext conftest.$ac_ext
17930 LIBS=$ac_check_lib_save_LIBS
17931 fi
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17933 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17934 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17935 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17936 else
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17938 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17939 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17940 $as_echo_n "(cached) " >&6
17941 else
17942 ac_check_lib_save_LIBS=$LIBS
17943 LIBS="-lsvld $LIBS"
17944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17945 /* end confdefs.h. */
17946
17947 /* Override any GCC internal prototype to avoid an error.
17948 Use char because int might match the return type of a GCC
17949 builtin and then its argument prototype would still apply. */
17950 #ifdef __cplusplus
17951 extern "C"
17952 #endif
17953 char dlopen ();
17954 int
17955 main ()
17956 {
17957 return dlopen ();
17958 ;
17959 return 0;
17960 }
17961 _ACEOF
17962 if ac_fn_c_try_link "$LINENO"; then :
17963 ac_cv_lib_svld_dlopen=yes
17964 else
17965 ac_cv_lib_svld_dlopen=no
17966 fi
17967 rm -f core conftest.err conftest.$ac_objext \
17968 conftest$ac_exeext conftest.$ac_ext
17969 LIBS=$ac_check_lib_save_LIBS
17970 fi
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17972 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17973 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17974 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17975 else
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17977 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17978 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17979 $as_echo_n "(cached) " >&6
17980 else
17981 ac_check_lib_save_LIBS=$LIBS
17982 LIBS="-ldld $LIBS"
17983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17984 /* end confdefs.h. */
17985
17986 /* Override any GCC internal prototype to avoid an error.
17987 Use char because int might match the return type of a GCC
17988 builtin and then its argument prototype would still apply. */
17989 #ifdef __cplusplus
17990 extern "C"
17991 #endif
17992 char dld_link ();
17993 int
17994 main ()
17995 {
17996 return dld_link ();
17997 ;
17998 return 0;
17999 }
18000 _ACEOF
18001 if ac_fn_c_try_link "$LINENO"; then :
18002 ac_cv_lib_dld_dld_link=yes
18003 else
18004 ac_cv_lib_dld_dld_link=no
18005 fi
18006 rm -f core conftest.err conftest.$ac_objext \
18007 conftest$ac_exeext conftest.$ac_ext
18008 LIBS=$ac_check_lib_save_LIBS
18009 fi
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18011 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18012 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18013 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18014 fi
18015
18016
18017 fi
18018
18019
18020 fi
18021
18022
18023 fi
18024
18025
18026 fi
18027
18028
18029 fi
18030
18031 ;;
18032 esac
18033
18034 if test "x$lt_cv_dlopen" != xno; then
18035 enable_dlopen=yes
18036 else
18037 enable_dlopen=no
18038 fi
18039
18040 case $lt_cv_dlopen in
18041 dlopen)
18042 save_CPPFLAGS="$CPPFLAGS"
18043 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18044
18045 save_LDFLAGS="$LDFLAGS"
18046 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18047
18048 save_LIBS="$LIBS"
18049 LIBS="$lt_cv_dlopen_libs $LIBS"
18050
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18052 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18053 if test "${lt_cv_dlopen_self+set}" = set; then :
18054 $as_echo_n "(cached) " >&6
18055 else
18056 if test "$cross_compiling" = yes; then :
18057 lt_cv_dlopen_self=cross
18058 else
18059 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18060 lt_status=$lt_dlunknown
18061 cat > conftest.$ac_ext <<_LT_EOF
18062 #line 18062 "configure"
18063 #include "confdefs.h"
18064
18065 #if HAVE_DLFCN_H
18066 #include <dlfcn.h>
18067 #endif
18068
18069 #include <stdio.h>
18070
18071 #ifdef RTLD_GLOBAL
18072 # define LT_DLGLOBAL RTLD_GLOBAL
18073 #else
18074 # ifdef DL_GLOBAL
18075 # define LT_DLGLOBAL DL_GLOBAL
18076 # else
18077 # define LT_DLGLOBAL 0
18078 # endif
18079 #endif
18080
18081 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18082 find out it does not work in some platform. */
18083 #ifndef LT_DLLAZY_OR_NOW
18084 # ifdef RTLD_LAZY
18085 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18086 # else
18087 # ifdef DL_LAZY
18088 # define LT_DLLAZY_OR_NOW DL_LAZY
18089 # else
18090 # ifdef RTLD_NOW
18091 # define LT_DLLAZY_OR_NOW RTLD_NOW
18092 # else
18093 # ifdef DL_NOW
18094 # define LT_DLLAZY_OR_NOW DL_NOW
18095 # else
18096 # define LT_DLLAZY_OR_NOW 0
18097 # endif
18098 # endif
18099 # endif
18100 # endif
18101 #endif
18102
18103 /* When -fvisbility=hidden is used, assume the code has been annotated
18104 correspondingly for the symbols needed. */
18105 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18106 void fnord () __attribute__((visibility("default")));
18107 #endif
18108
18109 void fnord () { int i=42; }
18110 int main ()
18111 {
18112 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18113 int status = $lt_dlunknown;
18114
18115 if (self)
18116 {
18117 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18118 else
18119 {
18120 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18121 else puts (dlerror ());
18122 }
18123 /* dlclose (self); */
18124 }
18125 else
18126 puts (dlerror ());
18127
18128 return status;
18129 }
18130 _LT_EOF
18131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18132 (eval $ac_link) 2>&5
18133 ac_status=$?
18134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18135 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18136 (./conftest; exit; ) >&5 2>/dev/null
18137 lt_status=$?
18138 case x$lt_status in
18139 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18140 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18141 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18142 esac
18143 else :
18144 # compilation failed
18145 lt_cv_dlopen_self=no
18146 fi
18147 fi
18148 rm -fr conftest*
18149
18150
18151 fi
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18153 $as_echo "$lt_cv_dlopen_self" >&6; }
18154
18155 if test "x$lt_cv_dlopen_self" = xyes; then
18156 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18158 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18159 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18160 $as_echo_n "(cached) " >&6
18161 else
18162 if test "$cross_compiling" = yes; then :
18163 lt_cv_dlopen_self_static=cross
18164 else
18165 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18166 lt_status=$lt_dlunknown
18167 cat > conftest.$ac_ext <<_LT_EOF
18168 #line 18168 "configure"
18169 #include "confdefs.h"
18170
18171 #if HAVE_DLFCN_H
18172 #include <dlfcn.h>
18173 #endif
18174
18175 #include <stdio.h>
18176
18177 #ifdef RTLD_GLOBAL
18178 # define LT_DLGLOBAL RTLD_GLOBAL
18179 #else
18180 # ifdef DL_GLOBAL
18181 # define LT_DLGLOBAL DL_GLOBAL
18182 # else
18183 # define LT_DLGLOBAL 0
18184 # endif
18185 #endif
18186
18187 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18188 find out it does not work in some platform. */
18189 #ifndef LT_DLLAZY_OR_NOW
18190 # ifdef RTLD_LAZY
18191 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18192 # else
18193 # ifdef DL_LAZY
18194 # define LT_DLLAZY_OR_NOW DL_LAZY
18195 # else
18196 # ifdef RTLD_NOW
18197 # define LT_DLLAZY_OR_NOW RTLD_NOW
18198 # else
18199 # ifdef DL_NOW
18200 # define LT_DLLAZY_OR_NOW DL_NOW
18201 # else
18202 # define LT_DLLAZY_OR_NOW 0
18203 # endif
18204 # endif
18205 # endif
18206 # endif
18207 #endif
18208
18209 /* When -fvisbility=hidden is used, assume the code has been annotated
18210 correspondingly for the symbols needed. */
18211 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18212 void fnord () __attribute__((visibility("default")));
18213 #endif
18214
18215 void fnord () { int i=42; }
18216 int main ()
18217 {
18218 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18219 int status = $lt_dlunknown;
18220
18221 if (self)
18222 {
18223 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18224 else
18225 {
18226 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18227 else puts (dlerror ());
18228 }
18229 /* dlclose (self); */
18230 }
18231 else
18232 puts (dlerror ());
18233
18234 return status;
18235 }
18236 _LT_EOF
18237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18238 (eval $ac_link) 2>&5
18239 ac_status=$?
18240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18241 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18242 (./conftest; exit; ) >&5 2>/dev/null
18243 lt_status=$?
18244 case x$lt_status in
18245 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18246 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18247 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18248 esac
18249 else :
18250 # compilation failed
18251 lt_cv_dlopen_self_static=no
18252 fi
18253 fi
18254 rm -fr conftest*
18255
18256
18257 fi
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18259 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18260 fi
18261
18262 CPPFLAGS="$save_CPPFLAGS"
18263 LDFLAGS="$save_LDFLAGS"
18264 LIBS="$save_LIBS"
18265 ;;
18266 esac
18267
18268 case $lt_cv_dlopen_self in
18269 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18270 *) enable_dlopen_self=unknown ;;
18271 esac
18272
18273 case $lt_cv_dlopen_self_static in
18274 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18275 *) enable_dlopen_self_static=unknown ;;
18276 esac
18277 fi
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295 striplib=
18296 old_striplib=
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18298 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18299 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18300 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18301 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18303 $as_echo "yes" >&6; }
18304 else
18305 # FIXME - insert some real tests, host_os isn't really good enough
18306 case $host_os in
18307 darwin*)
18308 if test -n "$STRIP" ; then
18309 striplib="$STRIP -x"
18310 old_striplib="$STRIP -S"
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18312 $as_echo "yes" >&6; }
18313 else
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18315 $as_echo "no" >&6; }
18316 fi
18317 ;;
18318 *)
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18320 $as_echo "no" >&6; }
18321 ;;
18322 esac
18323 fi
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336 # Report which library types will actually be built
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18338 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18340 $as_echo "$can_build_shared" >&6; }
18341
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18343 $as_echo_n "checking whether to build shared libraries... " >&6; }
18344 test "$can_build_shared" = "no" && enable_shared=no
18345
18346 # On AIX, shared libraries and static libraries use the same namespace, and
18347 # are all built from PIC.
18348 case $host_os in
18349 aix3*)
18350 test "$enable_shared" = yes && enable_static=no
18351 if test -n "$RANLIB"; then
18352 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18353 postinstall_cmds='$RANLIB $lib'
18354 fi
18355 ;;
18356
18357 aix[4-9]*)
18358 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18359 test "$enable_shared" = yes && enable_static=no
18360 fi
18361 ;;
18362 esac
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18364 $as_echo "$enable_shared" >&6; }
18365
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18367 $as_echo_n "checking whether to build static libraries... " >&6; }
18368 # Make sure either enable_shared or enable_static is yes.
18369 test "$enable_shared" = yes || enable_static=yes
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18371 $as_echo "$enable_static" >&6; }
18372
18373
18374
18375
18376 fi
18377 ac_ext=c
18378 ac_cpp='$CPP $CPPFLAGS'
18379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18382
18383 CC="$lt_save_CC"
18384
18385 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18386 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18387 (test "X$CXX" != "Xg++"))) ; then
18388 ac_ext=cpp
18389 ac_cpp='$CXXCPP $CPPFLAGS'
18390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18394 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18395 if test -z "$CXXCPP"; then
18396 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18397 $as_echo_n "(cached) " >&6
18398 else
18399 # Double quotes because CXXCPP needs to be expanded
18400 for CXXCPP in "$CXX -E" "/lib/cpp"
18401 do
18402 ac_preproc_ok=false
18403 for ac_cxx_preproc_warn_flag in '' yes
18404 do
18405 # Use a header file that comes with gcc, so configuring glibc
18406 # with a fresh cross-compiler works.
18407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18408 # <limits.h> exists even on freestanding compilers.
18409 # On the NeXT, cc -E runs the code through the compiler's parser,
18410 # not just through cpp. "Syntax error" is here to catch this case.
18411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18412 /* end confdefs.h. */
18413 #ifdef __STDC__
18414 # include <limits.h>
18415 #else
18416 # include <assert.h>
18417 #endif
18418 Syntax error
18419 _ACEOF
18420 if ac_fn_cxx_try_cpp "$LINENO"; then :
18421
18422 else
18423 # Broken: fails on valid input.
18424 continue
18425 fi
18426 rm -f conftest.err conftest.$ac_ext
18427
18428 # OK, works on sane cases. Now check whether nonexistent headers
18429 # can be detected and how.
18430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18431 /* end confdefs.h. */
18432 #include <ac_nonexistent.h>
18433 _ACEOF
18434 if ac_fn_cxx_try_cpp "$LINENO"; then :
18435 # Broken: success on invalid input.
18436 continue
18437 else
18438 # Passes both tests.
18439 ac_preproc_ok=:
18440 break
18441 fi
18442 rm -f conftest.err conftest.$ac_ext
18443
18444 done
18445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18446 rm -f conftest.err conftest.$ac_ext
18447 if $ac_preproc_ok; then :
18448 break
18449 fi
18450
18451 done
18452 ac_cv_prog_CXXCPP=$CXXCPP
18453
18454 fi
18455 CXXCPP=$ac_cv_prog_CXXCPP
18456 else
18457 ac_cv_prog_CXXCPP=$CXXCPP
18458 fi
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18460 $as_echo "$CXXCPP" >&6; }
18461 ac_preproc_ok=false
18462 for ac_cxx_preproc_warn_flag in '' yes
18463 do
18464 # Use a header file that comes with gcc, so configuring glibc
18465 # with a fresh cross-compiler works.
18466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18467 # <limits.h> exists even on freestanding compilers.
18468 # On the NeXT, cc -E runs the code through the compiler's parser,
18469 # not just through cpp. "Syntax error" is here to catch this case.
18470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471 /* end confdefs.h. */
18472 #ifdef __STDC__
18473 # include <limits.h>
18474 #else
18475 # include <assert.h>
18476 #endif
18477 Syntax error
18478 _ACEOF
18479 if ac_fn_cxx_try_cpp "$LINENO"; then :
18480
18481 else
18482 # Broken: fails on valid input.
18483 continue
18484 fi
18485 rm -f conftest.err conftest.$ac_ext
18486
18487 # OK, works on sane cases. Now check whether nonexistent headers
18488 # can be detected and how.
18489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18490 /* end confdefs.h. */
18491 #include <ac_nonexistent.h>
18492 _ACEOF
18493 if ac_fn_cxx_try_cpp "$LINENO"; then :
18494 # Broken: success on invalid input.
18495 continue
18496 else
18497 # Passes both tests.
18498 ac_preproc_ok=:
18499 break
18500 fi
18501 rm -f conftest.err conftest.$ac_ext
18502
18503 done
18504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18505 rm -f conftest.err conftest.$ac_ext
18506 if $ac_preproc_ok; then :
18507
18508 else
18509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18511 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18512 See \`config.log' for more details." "$LINENO" 5; }
18513 fi
18514
18515 ac_ext=c
18516 ac_cpp='$CPP $CPPFLAGS'
18517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18520
18521 else
18522 _lt_caught_CXX_error=yes
18523 fi
18524
18525 ac_ext=cpp
18526 ac_cpp='$CXXCPP $CPPFLAGS'
18527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18530
18531 archive_cmds_need_lc_CXX=no
18532 allow_undefined_flag_CXX=
18533 always_export_symbols_CXX=no
18534 archive_expsym_cmds_CXX=
18535 compiler_needs_object_CXX=no
18536 export_dynamic_flag_spec_CXX=
18537 hardcode_direct_CXX=no
18538 hardcode_direct_absolute_CXX=no
18539 hardcode_libdir_flag_spec_CXX=
18540 hardcode_libdir_flag_spec_ld_CXX=
18541 hardcode_libdir_separator_CXX=
18542 hardcode_minus_L_CXX=no
18543 hardcode_shlibpath_var_CXX=unsupported
18544 hardcode_automatic_CXX=no
18545 inherit_rpath_CXX=no
18546 module_cmds_CXX=
18547 module_expsym_cmds_CXX=
18548 link_all_deplibs_CXX=unknown
18549 old_archive_cmds_CXX=$old_archive_cmds
18550 reload_flag_CXX=$reload_flag
18551 reload_cmds_CXX=$reload_cmds
18552 no_undefined_flag_CXX=
18553 whole_archive_flag_spec_CXX=
18554 enable_shared_with_static_runtimes_CXX=no
18555
18556 # Source file extension for C++ test sources.
18557 ac_ext=cpp
18558
18559 # Object file extension for compiled C++ test sources.
18560 objext=o
18561 objext_CXX=$objext
18562
18563 # No sense in running all these tests if we already determined that
18564 # the CXX compiler isn't working. Some variables (like enable_shared)
18565 # are currently assumed to apply to all compilers on this platform,
18566 # and will be corrupted by setting them based on a non-working compiler.
18567 if test "$_lt_caught_CXX_error" != yes; then
18568 # Code to be used in simple compile tests
18569 lt_simple_compile_test_code="int some_variable = 0;"
18570
18571 # Code to be used in simple link tests
18572 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18573
18574 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18575
18576
18577
18578
18579
18580
18581 # If no C compiler was specified, use CC.
18582 LTCC=${LTCC-"$CC"}
18583
18584 # If no C compiler flags were specified, use CFLAGS.
18585 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18586
18587 # Allow CC to be a program name with arguments.
18588 compiler=$CC
18589
18590
18591 # save warnings/boilerplate of simple test code
18592 ac_outfile=conftest.$ac_objext
18593 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18594 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18595 _lt_compiler_boilerplate=`cat conftest.err`
18596 $RM conftest*
18597
18598 ac_outfile=conftest.$ac_objext
18599 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18600 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18601 _lt_linker_boilerplate=`cat conftest.err`
18602 $RM -r conftest*
18603
18604
18605 # Allow CC to be a program name with arguments.
18606 lt_save_CC=$CC
18607 lt_save_LD=$LD
18608 lt_save_GCC=$GCC
18609 GCC=$GXX
18610 lt_save_with_gnu_ld=$with_gnu_ld
18611 lt_save_path_LD=$lt_cv_path_LD
18612 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18613 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18614 else
18615 $as_unset lt_cv_prog_gnu_ld
18616 fi
18617 if test -n "${lt_cv_path_LDCXX+set}"; then
18618 lt_cv_path_LD=$lt_cv_path_LDCXX
18619 else
18620 $as_unset lt_cv_path_LD
18621 fi
18622 test -z "${LDCXX+set}" || LD=$LDCXX
18623 CC=${CXX-"c++"}
18624 compiler=$CC
18625 compiler_CXX=$CC
18626 for cc_temp in $compiler""; do
18627 case $cc_temp in
18628 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18629 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18630 \-*) ;;
18631 *) break;;
18632 esac
18633 done
18634 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18635
18636
18637 if test -n "$compiler"; then
18638 # We don't want -fno-exception when compiling C++ code, so set the
18639 # no_builtin_flag separately
18640 if test "$GXX" = yes; then
18641 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18642 else
18643 lt_prog_compiler_no_builtin_flag_CXX=
18644 fi
18645
18646 if test "$GXX" = yes; then
18647 # Set up default GNU C++ configuration
18648
18649
18650
18651 # Check whether --with-gnu-ld was given.
18652 if test "${with_gnu_ld+set}" = set; then :
18653 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18654 else
18655 with_gnu_ld=no
18656 fi
18657
18658 ac_prog=ld
18659 if test "$GCC" = yes; then
18660 # Check if gcc -print-prog-name=ld gives a path.
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18662 $as_echo_n "checking for ld used by $CC... " >&6; }
18663 case $host in
18664 *-*-mingw*)
18665 # gcc leaves a trailing carriage return which upsets mingw
18666 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18667 *)
18668 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18669 esac
18670 case $ac_prog in
18671 # Accept absolute paths.
18672 [\\/]* | ?:[\\/]*)
18673 re_direlt='/[^/][^/]*/\.\./'
18674 # Canonicalize the pathname of ld
18675 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18676 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18677 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18678 done
18679 test -z "$LD" && LD="$ac_prog"
18680 ;;
18681 "")
18682 # If it fails, then pretend we aren't using GCC.
18683 ac_prog=ld
18684 ;;
18685 *)
18686 # If it is relative, then search for the first ld in PATH.
18687 with_gnu_ld=unknown
18688 ;;
18689 esac
18690 elif test "$with_gnu_ld" = yes; then
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18692 $as_echo_n "checking for GNU ld... " >&6; }
18693 else
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18695 $as_echo_n "checking for non-GNU ld... " >&6; }
18696 fi
18697 if test "${lt_cv_path_LD+set}" = set; then :
18698 $as_echo_n "(cached) " >&6
18699 else
18700 if test -z "$LD"; then
18701 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18702 for ac_dir in $PATH; do
18703 IFS="$lt_save_ifs"
18704 test -z "$ac_dir" && ac_dir=.
18705 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18706 lt_cv_path_LD="$ac_dir/$ac_prog"
18707 # Check to see if the program is GNU ld. I'd rather use --version,
18708 # but apparently some variants of GNU ld only accept -v.
18709 # Break only if it was the GNU/non-GNU ld that we prefer.
18710 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18711 *GNU* | *'with BFD'*)
18712 test "$with_gnu_ld" != no && break
18713 ;;
18714 *)
18715 test "$with_gnu_ld" != yes && break
18716 ;;
18717 esac
18718 fi
18719 done
18720 IFS="$lt_save_ifs"
18721 else
18722 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18723 fi
18724 fi
18725
18726 LD="$lt_cv_path_LD"
18727 if test -n "$LD"; then
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18729 $as_echo "$LD" >&6; }
18730 else
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18732 $as_echo "no" >&6; }
18733 fi
18734 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18736 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18737 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18738 $as_echo_n "(cached) " >&6
18739 else
18740 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18741 case `$LD -v 2>&1 </dev/null` in
18742 *GNU* | *'with BFD'*)
18743 lt_cv_prog_gnu_ld=yes
18744 ;;
18745 *)
18746 lt_cv_prog_gnu_ld=no
18747 ;;
18748 esac
18749 fi
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18751 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18752 with_gnu_ld=$lt_cv_prog_gnu_ld
18753
18754
18755
18756
18757
18758
18759
18760 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18761 # archiving commands below assume that GNU ld is being used.
18762 if test "$with_gnu_ld" = yes; then
18763 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18764 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18765
18766 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18767 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18768
18769 # If archive_cmds runs LD, not CC, wlarc should be empty
18770 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18771 # investigate it a little bit more. (MM)
18772 wlarc='${wl}'
18773
18774 # ancient GNU ld didn't support --whole-archive et. al.
18775 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18776 $GREP 'no-whole-archive' > /dev/null; then
18777 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18778 else
18779 whole_archive_flag_spec_CXX=
18780 fi
18781 else
18782 with_gnu_ld=no
18783 wlarc=
18784
18785 # A generic and very simple default shared library creation
18786 # command for GNU C++ for the case where it uses the native
18787 # linker, instead of GNU ld. If possible, this setting should
18788 # overridden to take advantage of the native linker features on
18789 # the platform it is being used on.
18790 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18791 fi
18792
18793 # Commands to make compiler produce verbose output that lists
18794 # what "hidden" libraries, object files and flags are used when
18795 # linking a shared library.
18796 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18797
18798 else
18799 GXX=no
18800 with_gnu_ld=no
18801 wlarc=
18802 fi
18803
18804 # PORTME: fill in a description of your system's C++ link characteristics
18805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18806 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18807 ld_shlibs_CXX=yes
18808 case $host_os in
18809 aix3*)
18810 # FIXME: insert proper C++ library support
18811 ld_shlibs_CXX=no
18812 ;;
18813 aix[4-9]*)
18814 if test "$host_cpu" = ia64; then
18815 # On IA64, the linker does run time linking by default, so we don't
18816 # have to do anything special.
18817 aix_use_runtimelinking=no
18818 exp_sym_flag='-Bexport'
18819 no_entry_flag=""
18820 else
18821 aix_use_runtimelinking=no
18822
18823 # Test if we are trying to use run time linking or normal
18824 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18825 # need to do runtime linking.
18826 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18827 for ld_flag in $LDFLAGS; do
18828 case $ld_flag in
18829 *-brtl*)
18830 aix_use_runtimelinking=yes
18831 break
18832 ;;
18833 esac
18834 done
18835 ;;
18836 esac
18837
18838 exp_sym_flag='-bexport'
18839 no_entry_flag='-bnoentry'
18840 fi
18841
18842 # When large executables or shared objects are built, AIX ld can
18843 # have problems creating the table of contents. If linking a library
18844 # or program results in "error TOC overflow" add -mminimal-toc to
18845 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18846 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18847
18848 archive_cmds_CXX=''
18849 hardcode_direct_CXX=yes
18850 hardcode_direct_absolute_CXX=yes
18851 hardcode_libdir_separator_CXX=':'
18852 link_all_deplibs_CXX=yes
18853 file_list_spec_CXX='${wl}-f,'
18854
18855 if test "$GXX" = yes; then
18856 case $host_os in aix4.[012]|aix4.[012].*)
18857 # We only want to do this on AIX 4.2 and lower, the check
18858 # below for broken collect2 doesn't work under 4.3+
18859 collect2name=`${CC} -print-prog-name=collect2`
18860 if test -f "$collect2name" &&
18861 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18862 then
18863 # We have reworked collect2
18864 :
18865 else
18866 # We have old collect2
18867 hardcode_direct_CXX=unsupported
18868 # It fails to find uninstalled libraries when the uninstalled
18869 # path is not listed in the libpath. Setting hardcode_minus_L
18870 # to unsupported forces relinking
18871 hardcode_minus_L_CXX=yes
18872 hardcode_libdir_flag_spec_CXX='-L$libdir'
18873 hardcode_libdir_separator_CXX=
18874 fi
18875 esac
18876 shared_flag='-shared'
18877 if test "$aix_use_runtimelinking" = yes; then
18878 shared_flag="$shared_flag "'${wl}-G'
18879 fi
18880 else
18881 # not using gcc
18882 if test "$host_cpu" = ia64; then
18883 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18884 # chokes on -Wl,-G. The following line is correct:
18885 shared_flag='-G'
18886 else
18887 if test "$aix_use_runtimelinking" = yes; then
18888 shared_flag='${wl}-G'
18889 else
18890 shared_flag='${wl}-bM:SRE'
18891 fi
18892 fi
18893 fi
18894
18895 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18896 # It seems that -bexpall does not export symbols beginning with
18897 # underscore (_), so it is better to generate a list of symbols to
18898 # export.
18899 always_export_symbols_CXX=yes
18900 if test "$aix_use_runtimelinking" = yes; then
18901 # Warning - without using the other runtime loading flags (-brtl),
18902 # -berok will link without error, but may produce a broken library.
18903 allow_undefined_flag_CXX='-berok'
18904 # Determine the default libpath from the value encoded in an empty
18905 # executable.
18906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18907 /* end confdefs.h. */
18908
18909 int
18910 main ()
18911 {
18912
18913 ;
18914 return 0;
18915 }
18916 _ACEOF
18917 if ac_fn_cxx_try_link "$LINENO"; then :
18918
18919 lt_aix_libpath_sed='
18920 /Import File Strings/,/^$/ {
18921 /^0/ {
18922 s/^0 *\(.*\)$/\1/
18923 p
18924 }
18925 }'
18926 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18927 # Check for a 64-bit object if we didn't find anything.
18928 if test -z "$aix_libpath"; then
18929 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18930 fi
18931 fi
18932 rm -f core conftest.err conftest.$ac_objext \
18933 conftest$ac_exeext conftest.$ac_ext
18934 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18935
18936 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18937
18938 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"
18939 else
18940 if test "$host_cpu" = ia64; then
18941 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18942 allow_undefined_flag_CXX="-z nodefs"
18943 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"
18944 else
18945 # Determine the default libpath from the value encoded in an
18946 # empty executable.
18947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18948 /* end confdefs.h. */
18949
18950 int
18951 main ()
18952 {
18953
18954 ;
18955 return 0;
18956 }
18957 _ACEOF
18958 if ac_fn_cxx_try_link "$LINENO"; then :
18959
18960 lt_aix_libpath_sed='
18961 /Import File Strings/,/^$/ {
18962 /^0/ {
18963 s/^0 *\(.*\)$/\1/
18964 p
18965 }
18966 }'
18967 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18968 # Check for a 64-bit object if we didn't find anything.
18969 if test -z "$aix_libpath"; then
18970 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18971 fi
18972 fi
18973 rm -f core conftest.err conftest.$ac_objext \
18974 conftest$ac_exeext conftest.$ac_ext
18975 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18976
18977 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18978 # Warning - without using the other run time loading flags,
18979 # -berok will link without error, but may produce a broken library.
18980 no_undefined_flag_CXX=' ${wl}-bernotok'
18981 allow_undefined_flag_CXX=' ${wl}-berok'
18982 if test "$with_gnu_ld" = yes; then
18983 # We only use this code for GNU lds that support --whole-archive.
18984 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18985 else
18986 # Exported symbols can be pulled into shared objects from archives
18987 whole_archive_flag_spec_CXX='$convenience'
18988 fi
18989 archive_cmds_need_lc_CXX=yes
18990 # This is similar to how AIX traditionally builds its shared
18991 # libraries.
18992 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'
18993 fi
18994 fi
18995 ;;
18996
18997 beos*)
18998 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18999 allow_undefined_flag_CXX=unsupported
19000 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19001 # support --undefined. This deserves some investigation. FIXME
19002 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19003 else
19004 ld_shlibs_CXX=no
19005 fi
19006 ;;
19007
19008 chorus*)
19009 case $cc_basename in
19010 *)
19011 # FIXME: insert proper C++ library support
19012 ld_shlibs_CXX=no
19013 ;;
19014 esac
19015 ;;
19016
19017 cygwin* | mingw* | pw32* | cegcc*)
19018 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19019 # as there is no search path for DLLs.
19020 hardcode_libdir_flag_spec_CXX='-L$libdir'
19021 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19022 allow_undefined_flag_CXX=unsupported
19023 always_export_symbols_CXX=no
19024 enable_shared_with_static_runtimes_CXX=yes
19025
19026 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19027 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'
19028 # If the export-symbols file already is a .def file (1st line
19029 # is EXPORTS), use it as is; otherwise, prepend...
19030 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19031 cp $export_symbols $output_objdir/$soname.def;
19032 else
19033 echo EXPORTS > $output_objdir/$soname.def;
19034 cat $export_symbols >> $output_objdir/$soname.def;
19035 fi~
19036 $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'
19037 else
19038 ld_shlibs_CXX=no
19039 fi
19040 ;;
19041 darwin* | rhapsody*)
19042
19043
19044 archive_cmds_need_lc_CXX=no
19045 hardcode_direct_CXX=no
19046 hardcode_automatic_CXX=yes
19047 hardcode_shlibpath_var_CXX=unsupported
19048 if test "$lt_cv_ld_force_load" = "yes"; then
19049 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\"`'
19050 else
19051 whole_archive_flag_spec_CXX=''
19052 fi
19053 link_all_deplibs_CXX=yes
19054 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19055 case $cc_basename in
19056 ifort*) _lt_dar_can_shared=yes ;;
19057 *) _lt_dar_can_shared=$GCC ;;
19058 esac
19059 if test "$_lt_dar_can_shared" = "yes"; then
19060 output_verbose_link_cmd=func_echo_all
19061 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}"
19062 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19063 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}"
19064 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}"
19065 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19066 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}"
19067 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}"
19068 fi
19069
19070 else
19071 ld_shlibs_CXX=no
19072 fi
19073
19074 ;;
19075
19076 dgux*)
19077 case $cc_basename in
19078 ec++*)
19079 # FIXME: insert proper C++ library support
19080 ld_shlibs_CXX=no
19081 ;;
19082 ghcx*)
19083 # Green Hills C++ Compiler
19084 # FIXME: insert proper C++ library support
19085 ld_shlibs_CXX=no
19086 ;;
19087 *)
19088 # FIXME: insert proper C++ library support
19089 ld_shlibs_CXX=no
19090 ;;
19091 esac
19092 ;;
19093
19094 freebsd[12]*)
19095 # C++ shared libraries reported to be fairly broken before
19096 # switch to ELF
19097 ld_shlibs_CXX=no
19098 ;;
19099
19100 freebsd-elf*)
19101 archive_cmds_need_lc_CXX=no
19102 ;;
19103
19104 freebsd* | dragonfly*)
19105 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19106 # conventions
19107 ld_shlibs_CXX=yes
19108 ;;
19109
19110 gnu*)
19111 ;;
19112
19113 haiku*)
19114 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19115 link_all_deplibs_CXX=yes
19116 ;;
19117
19118 hpux9*)
19119 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19120 hardcode_libdir_separator_CXX=:
19121 export_dynamic_flag_spec_CXX='${wl}-E'
19122 hardcode_direct_CXX=yes
19123 hardcode_minus_L_CXX=yes # Not in the search PATH,
19124 # but as the default
19125 # location of the library.
19126
19127 case $cc_basename in
19128 CC*)
19129 # FIXME: insert proper C++ library support
19130 ld_shlibs_CXX=no
19131 ;;
19132 aCC*)
19133 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'
19134 # Commands to make compiler produce verbose output that lists
19135 # what "hidden" libraries, object files and flags are used when
19136 # linking a shared library.
19137 #
19138 # There doesn't appear to be a way to prevent this compiler from
19139 # explicitly linking system object files so we need to strip them
19140 # from the output so that they don't get included in the library
19141 # dependencies.
19142 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"'
19143 ;;
19144 *)
19145 if test "$GXX" = yes; then
19146 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'
19147 else
19148 # FIXME: insert proper C++ library support
19149 ld_shlibs_CXX=no
19150 fi
19151 ;;
19152 esac
19153 ;;
19154
19155 hpux10*|hpux11*)
19156 if test $with_gnu_ld = no; then
19157 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19158 hardcode_libdir_separator_CXX=:
19159
19160 case $host_cpu in
19161 hppa*64*|ia64*)
19162 ;;
19163 *)
19164 export_dynamic_flag_spec_CXX='${wl}-E'
19165 ;;
19166 esac
19167 fi
19168 case $host_cpu in
19169 hppa*64*|ia64*)
19170 hardcode_direct_CXX=no
19171 hardcode_shlibpath_var_CXX=no
19172 ;;
19173 *)
19174 hardcode_direct_CXX=yes
19175 hardcode_direct_absolute_CXX=yes
19176 hardcode_minus_L_CXX=yes # Not in the search PATH,
19177 # but as the default
19178 # location of the library.
19179 ;;
19180 esac
19181
19182 case $cc_basename in
19183 CC*)
19184 # FIXME: insert proper C++ library support
19185 ld_shlibs_CXX=no
19186 ;;
19187 aCC*)
19188 case $host_cpu in
19189 hppa*64*)
19190 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19191 ;;
19192 ia64*)
19193 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19194 ;;
19195 *)
19196 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19197 ;;
19198 esac
19199 # Commands to make compiler produce verbose output that lists
19200 # what "hidden" libraries, object files and flags are used when
19201 # linking a shared library.
19202 #
19203 # There doesn't appear to be a way to prevent this compiler from
19204 # explicitly linking system object files so we need to strip them
19205 # from the output so that they don't get included in the library
19206 # dependencies.
19207 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"'
19208 ;;
19209 *)
19210 if test "$GXX" = yes; then
19211 if test $with_gnu_ld = no; then
19212 case $host_cpu in
19213 hppa*64*)
19214 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19215 ;;
19216 ia64*)
19217 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19218 ;;
19219 *)
19220 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'
19221 ;;
19222 esac
19223 fi
19224 else
19225 # FIXME: insert proper C++ library support
19226 ld_shlibs_CXX=no
19227 fi
19228 ;;
19229 esac
19230 ;;
19231
19232 interix[3-9]*)
19233 hardcode_direct_CXX=no
19234 hardcode_shlibpath_var_CXX=no
19235 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19236 export_dynamic_flag_spec_CXX='${wl}-E'
19237 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19238 # Instead, shared libraries are loaded at an image base (0x10000000 by
19239 # default) and relocated if they conflict, which is a slow very memory
19240 # consuming and fragmenting process. To avoid this, we pick a random,
19241 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19242 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19243 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'
19244 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'
19245 ;;
19246 irix5* | irix6*)
19247 case $cc_basename in
19248 CC*)
19249 # SGI C++
19250 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'
19251
19252 # Archives containing C++ object files must be created using
19253 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19254 # necessary to make sure instantiated templates are included
19255 # in the archive.
19256 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19257 ;;
19258 *)
19259 if test "$GXX" = yes; then
19260 if test "$with_gnu_ld" = no; then
19261 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'
19262 else
19263 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'
19264 fi
19265 fi
19266 link_all_deplibs_CXX=yes
19267 ;;
19268 esac
19269 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19270 hardcode_libdir_separator_CXX=:
19271 inherit_rpath_CXX=yes
19272 ;;
19273
19274 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19275 case $cc_basename in
19276 KCC*)
19277 # Kuck and Associates, Inc. (KAI) C++ Compiler
19278
19279 # KCC will only create a shared library if the output file
19280 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19281 # to its proper name (with version) after linking.
19282 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'
19283 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'
19284 # Commands to make compiler produce verbose output that lists
19285 # what "hidden" libraries, object files and flags are used when
19286 # linking a shared library.
19287 #
19288 # There doesn't appear to be a way to prevent this compiler from
19289 # explicitly linking system object files so we need to strip them
19290 # from the output so that they don't get included in the library
19291 # dependencies.
19292 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"'
19293
19294 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19295 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19296
19297 # Archives containing C++ object files must be created using
19298 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19299 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19300 ;;
19301 icpc* | ecpc* )
19302 # Intel C++
19303 with_gnu_ld=yes
19304 # version 8.0 and above of icpc choke on multiply defined symbols
19305 # if we add $predep_objects and $postdep_objects, however 7.1 and
19306 # earlier do not add the objects themselves.
19307 case `$CC -V 2>&1` in
19308 *"Version 7."*)
19309 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19310 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'
19311 ;;
19312 *) # Version 8.0 or newer
19313 tmp_idyn=
19314 case $host_cpu in
19315 ia64*) tmp_idyn=' -i_dynamic';;
19316 esac
19317 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19318 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'
19319 ;;
19320 esac
19321 archive_cmds_need_lc_CXX=no
19322 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19323 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19324 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19325 ;;
19326 pgCC* | pgcpp*)
19327 # Portland Group C++ compiler
19328 case `$CC -V` in
19329 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19330 prelink_cmds_CXX='tpldir=Template.dir~
19331 rm -rf $tpldir~
19332 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19333 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19334 old_archive_cmds_CXX='tpldir=Template.dir~
19335 rm -rf $tpldir~
19336 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19337 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19338 $RANLIB $oldlib'
19339 archive_cmds_CXX='tpldir=Template.dir~
19340 rm -rf $tpldir~
19341 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19342 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19343 archive_expsym_cmds_CXX='tpldir=Template.dir~
19344 rm -rf $tpldir~
19345 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19346 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19347 ;;
19348 *) # Version 6 and above use weak symbols
19349 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19350 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'
19351 ;;
19352 esac
19353
19354 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19355 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19356 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'
19357 ;;
19358 cxx*)
19359 # Compaq C++
19360 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19361 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'
19362
19363 runpath_var=LD_RUN_PATH
19364 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19365 hardcode_libdir_separator_CXX=:
19366
19367 # Commands to make compiler produce verbose output that lists
19368 # what "hidden" libraries, object files and flags are used when
19369 # linking a shared library.
19370 #
19371 # There doesn't appear to be a way to prevent this compiler from
19372 # explicitly linking system object files so we need to strip them
19373 # from the output so that they don't get included in the library
19374 # dependencies.
19375 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'
19376 ;;
19377 xl* | mpixl* | bgxl*)
19378 # IBM XL 8.0 on PPC, with GNU ld
19379 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19380 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19381 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19382 if test "x$supports_anon_versioning" = xyes; then
19383 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19384 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19385 echo "local: *; };" >> $output_objdir/$libname.ver~
19386 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19387 fi
19388 ;;
19389 *)
19390 case `$CC -V 2>&1 | sed 5q` in
19391 *Sun\ C*)
19392 # Sun C++ 5.9
19393 no_undefined_flag_CXX=' -zdefs'
19394 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19395 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'
19396 hardcode_libdir_flag_spec_CXX='-R$libdir'
19397 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'
19398 compiler_needs_object_CXX=yes
19399
19400 # Not sure whether something based on
19401 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19402 # would be better.
19403 output_verbose_link_cmd='func_echo_all'
19404
19405 # Archives containing C++ object files must be created using
19406 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19407 # necessary to make sure instantiated templates are included
19408 # in the archive.
19409 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19410 ;;
19411 esac
19412 ;;
19413 esac
19414 ;;
19415
19416 lynxos*)
19417 # FIXME: insert proper C++ library support
19418 ld_shlibs_CXX=no
19419 ;;
19420
19421 m88k*)
19422 # FIXME: insert proper C++ library support
19423 ld_shlibs_CXX=no
19424 ;;
19425
19426 mvs*)
19427 case $cc_basename in
19428 cxx*)
19429 # FIXME: insert proper C++ library support
19430 ld_shlibs_CXX=no
19431 ;;
19432 *)
19433 # FIXME: insert proper C++ library support
19434 ld_shlibs_CXX=no
19435 ;;
19436 esac
19437 ;;
19438
19439 netbsd*)
19440 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19441 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19442 wlarc=
19443 hardcode_libdir_flag_spec_CXX='-R$libdir'
19444 hardcode_direct_CXX=yes
19445 hardcode_shlibpath_var_CXX=no
19446 fi
19447 # Workaround some broken pre-1.5 toolchains
19448 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19449 ;;
19450
19451 *nto* | *qnx*)
19452 ld_shlibs_CXX=yes
19453 ;;
19454
19455 openbsd2*)
19456 # C++ shared libraries are fairly broken
19457 ld_shlibs_CXX=no
19458 ;;
19459
19460 openbsd*)
19461 if test -f /usr/libexec/ld.so; then
19462 hardcode_direct_CXX=yes
19463 hardcode_shlibpath_var_CXX=no
19464 hardcode_direct_absolute_CXX=yes
19465 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19466 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19467 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19468 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19469 export_dynamic_flag_spec_CXX='${wl}-E'
19470 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19471 fi
19472 output_verbose_link_cmd=func_echo_all
19473 else
19474 ld_shlibs_CXX=no
19475 fi
19476 ;;
19477
19478 osf3* | osf4* | osf5*)
19479 case $cc_basename in
19480 KCC*)
19481 # Kuck and Associates, Inc. (KAI) C++ Compiler
19482
19483 # KCC will only create a shared library if the output file
19484 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19485 # to its proper name (with version) after linking.
19486 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'
19487
19488 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19489 hardcode_libdir_separator_CXX=:
19490
19491 # Archives containing C++ object files must be created using
19492 # the KAI C++ compiler.
19493 case $host in
19494 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19495 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19496 esac
19497 ;;
19498 RCC*)
19499 # Rational C++ 2.4.1
19500 # FIXME: insert proper C++ library support
19501 ld_shlibs_CXX=no
19502 ;;
19503 cxx*)
19504 case $host in
19505 osf3*)
19506 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19507 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'
19508 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19509 ;;
19510 *)
19511 allow_undefined_flag_CXX=' -expect_unresolved \*'
19512 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'
19513 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19514 echo "-hidden">> $lib.exp~
19515 $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~
19516 $RM $lib.exp'
19517 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19518 ;;
19519 esac
19520
19521 hardcode_libdir_separator_CXX=:
19522
19523 # Commands to make compiler produce verbose output that lists
19524 # what "hidden" libraries, object files and flags are used when
19525 # linking a shared library.
19526 #
19527 # There doesn't appear to be a way to prevent this compiler from
19528 # explicitly linking system object files so we need to strip them
19529 # from the output so that they don't get included in the library
19530 # dependencies.
19531 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"'
19532 ;;
19533 *)
19534 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19535 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19536 case $host in
19537 osf3*)
19538 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'
19539 ;;
19540 *)
19541 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'
19542 ;;
19543 esac
19544
19545 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19546 hardcode_libdir_separator_CXX=:
19547
19548 # Commands to make compiler produce verbose output that lists
19549 # what "hidden" libraries, object files and flags are used when
19550 # linking a shared library.
19551 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19552
19553 else
19554 # FIXME: insert proper C++ library support
19555 ld_shlibs_CXX=no
19556 fi
19557 ;;
19558 esac
19559 ;;
19560
19561 psos*)
19562 # FIXME: insert proper C++ library support
19563 ld_shlibs_CXX=no
19564 ;;
19565
19566 sunos4*)
19567 case $cc_basename in
19568 CC*)
19569 # Sun C++ 4.x
19570 # FIXME: insert proper C++ library support
19571 ld_shlibs_CXX=no
19572 ;;
19573 lcc*)
19574 # Lucid
19575 # FIXME: insert proper C++ library support
19576 ld_shlibs_CXX=no
19577 ;;
19578 *)
19579 # FIXME: insert proper C++ library support
19580 ld_shlibs_CXX=no
19581 ;;
19582 esac
19583 ;;
19584
19585 solaris*)
19586 case $cc_basename in
19587 CC*)
19588 # Sun C++ 4.2, 5.x and Centerline C++
19589 archive_cmds_need_lc_CXX=yes
19590 no_undefined_flag_CXX=' -zdefs'
19591 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19592 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19593 $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'
19594
19595 hardcode_libdir_flag_spec_CXX='-R$libdir'
19596 hardcode_shlibpath_var_CXX=no
19597 case $host_os in
19598 solaris2.[0-5] | solaris2.[0-5].*) ;;
19599 *)
19600 # The compiler driver will combine and reorder linker options,
19601 # but understands `-z linker_flag'.
19602 # Supported since Solaris 2.6 (maybe 2.5.1?)
19603 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19604 ;;
19605 esac
19606 link_all_deplibs_CXX=yes
19607
19608 output_verbose_link_cmd='func_echo_all'
19609
19610 # Archives containing C++ object files must be created using
19611 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19612 # necessary to make sure instantiated templates are included
19613 # in the archive.
19614 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19615 ;;
19616 gcx*)
19617 # Green Hills C++ Compiler
19618 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19619
19620 # The C++ compiler must be used to create the archive.
19621 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19622 ;;
19623 *)
19624 # GNU C++ compiler with Solaris linker
19625 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19626 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19627 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19628 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19629 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19630 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19631
19632 # Commands to make compiler produce verbose output that lists
19633 # what "hidden" libraries, object files and flags are used when
19634 # linking a shared library.
19635 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19636 else
19637 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19638 # platform.
19639 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19640 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19641 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19642
19643 # Commands to make compiler produce verbose output that lists
19644 # what "hidden" libraries, object files and flags are used when
19645 # linking a shared library.
19646 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19647 fi
19648
19649 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19650 case $host_os in
19651 solaris2.[0-5] | solaris2.[0-5].*) ;;
19652 *)
19653 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19654 ;;
19655 esac
19656 fi
19657 ;;
19658 esac
19659 ;;
19660
19661 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19662 no_undefined_flag_CXX='${wl}-z,text'
19663 archive_cmds_need_lc_CXX=no
19664 hardcode_shlibpath_var_CXX=no
19665 runpath_var='LD_RUN_PATH'
19666
19667 case $cc_basename in
19668 CC*)
19669 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19670 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19671 ;;
19672 *)
19673 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19674 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19675 ;;
19676 esac
19677 ;;
19678
19679 sysv5* | sco3.2v5* | sco5v6*)
19680 # Note: We can NOT use -z defs as we might desire, because we do not
19681 # link with -lc, and that would cause any symbols used from libc to
19682 # always be unresolved, which means just about no library would
19683 # ever link correctly. If we're not using GNU ld we use -z text
19684 # though, which does catch some bad symbols but isn't as heavy-handed
19685 # as -z defs.
19686 no_undefined_flag_CXX='${wl}-z,text'
19687 allow_undefined_flag_CXX='${wl}-z,nodefs'
19688 archive_cmds_need_lc_CXX=no
19689 hardcode_shlibpath_var_CXX=no
19690 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19691 hardcode_libdir_separator_CXX=':'
19692 link_all_deplibs_CXX=yes
19693 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19694 runpath_var='LD_RUN_PATH'
19695
19696 case $cc_basename in
19697 CC*)
19698 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19699 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19700 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19701 '"$old_archive_cmds_CXX"
19702 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19703 '"$reload_cmds_CXX"
19704 ;;
19705 *)
19706 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19707 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19708 ;;
19709 esac
19710 ;;
19711
19712 tandem*)
19713 case $cc_basename in
19714 NCC*)
19715 # NonStop-UX NCC 3.20
19716 # FIXME: insert proper C++ library support
19717 ld_shlibs_CXX=no
19718 ;;
19719 *)
19720 # FIXME: insert proper C++ library support
19721 ld_shlibs_CXX=no
19722 ;;
19723 esac
19724 ;;
19725
19726 vxworks*)
19727 # FIXME: insert proper C++ library support
19728 ld_shlibs_CXX=no
19729 ;;
19730
19731 *)
19732 # FIXME: insert proper C++ library support
19733 ld_shlibs_CXX=no
19734 ;;
19735 esac
19736
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19738 $as_echo "$ld_shlibs_CXX" >&6; }
19739 test "$ld_shlibs_CXX" = no && can_build_shared=no
19740
19741 GCC_CXX="$GXX"
19742 LD_CXX="$LD"
19743
19744 ## CAVEAT EMPTOR:
19745 ## There is no encapsulation within the following macros, do not change
19746 ## the running order or otherwise move them around unless you know exactly
19747 ## what you are doing...
19748 # Dependencies to place before and after the object being linked:
19749 predep_objects_CXX=
19750 postdep_objects_CXX=
19751 predeps_CXX=
19752 postdeps_CXX=
19753 compiler_lib_search_path_CXX=
19754
19755 cat > conftest.$ac_ext <<_LT_EOF
19756 class Foo
19757 {
19758 public:
19759 Foo (void) { a = 0; }
19760 private:
19761 int a;
19762 };
19763 _LT_EOF
19764
19765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19766 (eval $ac_compile) 2>&5
19767 ac_status=$?
19768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19769 test $ac_status = 0; }; then
19770 # Parse the compiler output and extract the necessary
19771 # objects, libraries and library flags.
19772
19773 # Sentinel used to keep track of whether or not we are before
19774 # the conftest object file.
19775 pre_test_object_deps_done=no
19776
19777 for p in `eval "$output_verbose_link_cmd"`; do
19778 case $p in
19779
19780 -L* | -R* | -l*)
19781 # Some compilers place space between "-{L,R}" and the path.
19782 # Remove the space.
19783 if test $p = "-L" ||
19784 test $p = "-R"; then
19785 prev=$p
19786 continue
19787 else
19788 prev=
19789 fi
19790
19791 if test "$pre_test_object_deps_done" = no; then
19792 case $p in
19793 -L* | -R*)
19794 # Internal compiler library paths should come after those
19795 # provided the user. The postdeps already come after the
19796 # user supplied libs so there is no need to process them.
19797 if test -z "$compiler_lib_search_path_CXX"; then
19798 compiler_lib_search_path_CXX="${prev}${p}"
19799 else
19800 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19801 fi
19802 ;;
19803 # The "-l" case would never come before the object being
19804 # linked, so don't bother handling this case.
19805 esac
19806 else
19807 if test -z "$postdeps_CXX"; then
19808 postdeps_CXX="${prev}${p}"
19809 else
19810 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19811 fi
19812 fi
19813 ;;
19814
19815 *.$objext)
19816 # This assumes that the test object file only shows up
19817 # once in the compiler output.
19818 if test "$p" = "conftest.$objext"; then
19819 pre_test_object_deps_done=yes
19820 continue
19821 fi
19822
19823 if test "$pre_test_object_deps_done" = no; then
19824 if test -z "$predep_objects_CXX"; then
19825 predep_objects_CXX="$p"
19826 else
19827 predep_objects_CXX="$predep_objects_CXX $p"
19828 fi
19829 else
19830 if test -z "$postdep_objects_CXX"; then
19831 postdep_objects_CXX="$p"
19832 else
19833 postdep_objects_CXX="$postdep_objects_CXX $p"
19834 fi
19835 fi
19836 ;;
19837
19838 *) ;; # Ignore the rest.
19839
19840 esac
19841 done
19842
19843 # Clean up.
19844 rm -f a.out a.exe
19845 else
19846 echo "libtool.m4: error: problem compiling CXX test program"
19847 fi
19848
19849 $RM -f confest.$objext
19850
19851 # PORTME: override above test on systems where it is broken
19852 case $host_os in
19853 interix[3-9]*)
19854 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19855 # hack all around it, let's just trust "g++" to DTRT.
19856 predep_objects_CXX=
19857 postdep_objects_CXX=
19858 postdeps_CXX=
19859 ;;
19860
19861 linux*)
19862 case `$CC -V 2>&1 | sed 5q` in
19863 *Sun\ C*)
19864 # Sun C++ 5.9
19865
19866 # The more standards-conforming stlport4 library is
19867 # incompatible with the Cstd library. Avoid specifying
19868 # it if it's in CXXFLAGS. Ignore libCrun as
19869 # -library=stlport4 depends on it.
19870 case " $CXX $CXXFLAGS " in
19871 *" -library=stlport4 "*)
19872 solaris_use_stlport4=yes
19873 ;;
19874 esac
19875
19876 if test "$solaris_use_stlport4" != yes; then
19877 postdeps_CXX='-library=Cstd -library=Crun'
19878 fi
19879 ;;
19880 esac
19881 ;;
19882
19883 solaris*)
19884 case $cc_basename in
19885 CC*)
19886 # The more standards-conforming stlport4 library is
19887 # incompatible with the Cstd library. Avoid specifying
19888 # it if it's in CXXFLAGS. Ignore libCrun as
19889 # -library=stlport4 depends on it.
19890 case " $CXX $CXXFLAGS " in
19891 *" -library=stlport4 "*)
19892 solaris_use_stlport4=yes
19893 ;;
19894 esac
19895
19896 # Adding this requires a known-good setup of shared libraries for
19897 # Sun compiler versions before 5.6, else PIC objects from an old
19898 # archive will be linked into the output, leading to subtle bugs.
19899 if test "$solaris_use_stlport4" != yes; then
19900 postdeps_CXX='-library=Cstd -library=Crun'
19901 fi
19902 ;;
19903 esac
19904 ;;
19905 esac
19906
19907
19908 case " $postdeps_CXX " in
19909 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19910 esac
19911 compiler_lib_search_dirs_CXX=
19912 if test -n "${compiler_lib_search_path_CXX}"; then
19913 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19914 fi
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946 lt_prog_compiler_wl_CXX=
19947 lt_prog_compiler_pic_CXX=
19948 lt_prog_compiler_static_CXX=
19949
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19951 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19952
19953 # C++ specific cases for pic, static, wl, etc.
19954 if test "$GXX" = yes; then
19955 lt_prog_compiler_wl_CXX='-Wl,'
19956 lt_prog_compiler_static_CXX='-static'
19957
19958 case $host_os in
19959 aix*)
19960 # All AIX code is PIC.
19961 if test "$host_cpu" = ia64; then
19962 # AIX 5 now supports IA64 processor
19963 lt_prog_compiler_static_CXX='-Bstatic'
19964 fi
19965 ;;
19966
19967 amigaos*)
19968 case $host_cpu in
19969 powerpc)
19970 # see comment about AmigaOS4 .so support
19971 lt_prog_compiler_pic_CXX='-fPIC'
19972 ;;
19973 m68k)
19974 # FIXME: we need at least 68020 code to build shared libraries, but
19975 # adding the `-m68020' flag to GCC prevents building anything better,
19976 # like `-m68040'.
19977 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19978 ;;
19979 esac
19980 ;;
19981
19982 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19983 # PIC is the default for these OSes.
19984 ;;
19985 mingw* | cygwin* | os2* | pw32* | cegcc*)
19986 # This hack is so that the source file can tell whether it is being
19987 # built for inclusion in a dll (and should export symbols for example).
19988 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19989 # (--disable-auto-import) libraries
19990 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19991 ;;
19992 darwin* | rhapsody*)
19993 # PIC is the default on this platform
19994 # Common symbols not allowed in MH_DYLIB files
19995 lt_prog_compiler_pic_CXX='-fno-common'
19996 ;;
19997 *djgpp*)
19998 # DJGPP does not support shared libraries at all
19999 lt_prog_compiler_pic_CXX=
20000 ;;
20001 haiku*)
20002 # PIC is the default for Haiku.
20003 # The "-static" flag exists, but is broken.
20004 lt_prog_compiler_static_CXX=
20005 ;;
20006 interix[3-9]*)
20007 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20008 # Instead, we relocate shared libraries at runtime.
20009 ;;
20010 sysv4*MP*)
20011 if test -d /usr/nec; then
20012 lt_prog_compiler_pic_CXX=-Kconform_pic
20013 fi
20014 ;;
20015 hpux*)
20016 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20017 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20018 # sets the default TLS model and affects inlining.
20019 case $host_cpu in
20020 hppa*64*)
20021 ;;
20022 *)
20023 lt_prog_compiler_pic_CXX='-fPIC'
20024 ;;
20025 esac
20026 ;;
20027 *qnx* | *nto*)
20028 # QNX uses GNU C++, but need to define -shared option too, otherwise
20029 # it will coredump.
20030 lt_prog_compiler_pic_CXX='-fPIC -shared'
20031 ;;
20032 *)
20033 lt_prog_compiler_pic_CXX='-fPIC'
20034 ;;
20035 esac
20036 else
20037 case $host_os in
20038 aix[4-9]*)
20039 # All AIX code is PIC.
20040 if test "$host_cpu" = ia64; then
20041 # AIX 5 now supports IA64 processor
20042 lt_prog_compiler_static_CXX='-Bstatic'
20043 else
20044 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20045 fi
20046 ;;
20047 chorus*)
20048 case $cc_basename in
20049 cxch68*)
20050 # Green Hills C++ Compiler
20051 # _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"
20052 ;;
20053 esac
20054 ;;
20055 dgux*)
20056 case $cc_basename in
20057 ec++*)
20058 lt_prog_compiler_pic_CXX='-KPIC'
20059 ;;
20060 ghcx*)
20061 # Green Hills C++ Compiler
20062 lt_prog_compiler_pic_CXX='-pic'
20063 ;;
20064 *)
20065 ;;
20066 esac
20067 ;;
20068 freebsd* | dragonfly*)
20069 # FreeBSD uses GNU C++
20070 ;;
20071 hpux9* | hpux10* | hpux11*)
20072 case $cc_basename in
20073 CC*)
20074 lt_prog_compiler_wl_CXX='-Wl,'
20075 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20076 if test "$host_cpu" != ia64; then
20077 lt_prog_compiler_pic_CXX='+Z'
20078 fi
20079 ;;
20080 aCC*)
20081 lt_prog_compiler_wl_CXX='-Wl,'
20082 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20083 case $host_cpu in
20084 hppa*64*|ia64*)
20085 # +Z the default
20086 ;;
20087 *)
20088 lt_prog_compiler_pic_CXX='+Z'
20089 ;;
20090 esac
20091 ;;
20092 *)
20093 ;;
20094 esac
20095 ;;
20096 interix*)
20097 # This is c89, which is MS Visual C++ (no shared libs)
20098 # Anyone wants to do a port?
20099 ;;
20100 irix5* | irix6* | nonstopux*)
20101 case $cc_basename in
20102 CC*)
20103 lt_prog_compiler_wl_CXX='-Wl,'
20104 lt_prog_compiler_static_CXX='-non_shared'
20105 # CC pic flag -KPIC is the default.
20106 ;;
20107 *)
20108 ;;
20109 esac
20110 ;;
20111 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20112 case $cc_basename in
20113 KCC*)
20114 # KAI C++ Compiler
20115 lt_prog_compiler_wl_CXX='--backend -Wl,'
20116 lt_prog_compiler_pic_CXX='-fPIC'
20117 ;;
20118 ecpc* )
20119 # old Intel C++ for x86_64 which still supported -KPIC.
20120 lt_prog_compiler_wl_CXX='-Wl,'
20121 lt_prog_compiler_pic_CXX='-KPIC'
20122 lt_prog_compiler_static_CXX='-static'
20123 ;;
20124 icpc* )
20125 # Intel C++, used to be incompatible with GCC.
20126 # ICC 10 doesn't accept -KPIC any more.
20127 lt_prog_compiler_wl_CXX='-Wl,'
20128 lt_prog_compiler_pic_CXX='-fPIC'
20129 lt_prog_compiler_static_CXX='-static'
20130 ;;
20131 pgCC* | pgcpp*)
20132 # Portland Group C++ compiler
20133 lt_prog_compiler_wl_CXX='-Wl,'
20134 lt_prog_compiler_pic_CXX='-fpic'
20135 lt_prog_compiler_static_CXX='-Bstatic'
20136 ;;
20137 cxx*)
20138 # Compaq C++
20139 # Make sure the PIC flag is empty. It appears that all Alpha
20140 # Linux and Compaq Tru64 Unix objects are PIC.
20141 lt_prog_compiler_pic_CXX=
20142 lt_prog_compiler_static_CXX='-non_shared'
20143 ;;
20144 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20145 # IBM XL 8.0, 9.0 on PPC and BlueGene
20146 lt_prog_compiler_wl_CXX='-Wl,'
20147 lt_prog_compiler_pic_CXX='-qpic'
20148 lt_prog_compiler_static_CXX='-qstaticlink'
20149 ;;
20150 *)
20151 case `$CC -V 2>&1 | sed 5q` in
20152 *Sun\ C*)
20153 # Sun C++ 5.9
20154 lt_prog_compiler_pic_CXX='-KPIC'
20155 lt_prog_compiler_static_CXX='-Bstatic'
20156 lt_prog_compiler_wl_CXX='-Qoption ld '
20157 ;;
20158 esac
20159 ;;
20160 esac
20161 ;;
20162 lynxos*)
20163 ;;
20164 m88k*)
20165 ;;
20166 mvs*)
20167 case $cc_basename in
20168 cxx*)
20169 lt_prog_compiler_pic_CXX='-W c,exportall'
20170 ;;
20171 *)
20172 ;;
20173 esac
20174 ;;
20175 netbsd*)
20176 ;;
20177 *qnx* | *nto*)
20178 # QNX uses GNU C++, but need to define -shared option too, otherwise
20179 # it will coredump.
20180 lt_prog_compiler_pic_CXX='-fPIC -shared'
20181 ;;
20182 osf3* | osf4* | osf5*)
20183 case $cc_basename in
20184 KCC*)
20185 lt_prog_compiler_wl_CXX='--backend -Wl,'
20186 ;;
20187 RCC*)
20188 # Rational C++ 2.4.1
20189 lt_prog_compiler_pic_CXX='-pic'
20190 ;;
20191 cxx*)
20192 # Digital/Compaq C++
20193 lt_prog_compiler_wl_CXX='-Wl,'
20194 # Make sure the PIC flag is empty. It appears that all Alpha
20195 # Linux and Compaq Tru64 Unix objects are PIC.
20196 lt_prog_compiler_pic_CXX=
20197 lt_prog_compiler_static_CXX='-non_shared'
20198 ;;
20199 *)
20200 ;;
20201 esac
20202 ;;
20203 psos*)
20204 ;;
20205 solaris*)
20206 case $cc_basename in
20207 CC*)
20208 # Sun C++ 4.2, 5.x and Centerline C++
20209 lt_prog_compiler_pic_CXX='-KPIC'
20210 lt_prog_compiler_static_CXX='-Bstatic'
20211 lt_prog_compiler_wl_CXX='-Qoption ld '
20212 ;;
20213 gcx*)
20214 # Green Hills C++ Compiler
20215 lt_prog_compiler_pic_CXX='-PIC'
20216 ;;
20217 *)
20218 ;;
20219 esac
20220 ;;
20221 sunos4*)
20222 case $cc_basename in
20223 CC*)
20224 # Sun C++ 4.x
20225 lt_prog_compiler_pic_CXX='-pic'
20226 lt_prog_compiler_static_CXX='-Bstatic'
20227 ;;
20228 lcc*)
20229 # Lucid
20230 lt_prog_compiler_pic_CXX='-pic'
20231 ;;
20232 *)
20233 ;;
20234 esac
20235 ;;
20236 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20237 case $cc_basename in
20238 CC*)
20239 lt_prog_compiler_wl_CXX='-Wl,'
20240 lt_prog_compiler_pic_CXX='-KPIC'
20241 lt_prog_compiler_static_CXX='-Bstatic'
20242 ;;
20243 esac
20244 ;;
20245 tandem*)
20246 case $cc_basename in
20247 NCC*)
20248 # NonStop-UX NCC 3.20
20249 lt_prog_compiler_pic_CXX='-KPIC'
20250 ;;
20251 *)
20252 ;;
20253 esac
20254 ;;
20255 vxworks*)
20256 ;;
20257 *)
20258 lt_prog_compiler_can_build_shared_CXX=no
20259 ;;
20260 esac
20261 fi
20262
20263 case $host_os in
20264 # For platforms which do not support PIC, -DPIC is meaningless:
20265 *djgpp*)
20266 lt_prog_compiler_pic_CXX=
20267 ;;
20268 *)
20269 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20270 ;;
20271 esac
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20273 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20274
20275
20276
20277 #
20278 # Check to make sure the PIC flag actually works.
20279 #
20280 if test -n "$lt_prog_compiler_pic_CXX"; then
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20282 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20283 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20284 $as_echo_n "(cached) " >&6
20285 else
20286 lt_cv_prog_compiler_pic_works_CXX=no
20287 ac_outfile=conftest.$ac_objext
20288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20289 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20290 # Insert the option either (1) after the last *FLAGS variable, or
20291 # (2) before a word containing "conftest.", or (3) at the end.
20292 # Note that $ac_compile itself does not contain backslashes and begins
20293 # with a dollar sign (not a hyphen), so the echo should work correctly.
20294 # The option is referenced via a variable to avoid confusing sed.
20295 lt_compile=`echo "$ac_compile" | $SED \
20296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20298 -e 's:$: $lt_compiler_flag:'`
20299 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20300 (eval "$lt_compile" 2>conftest.err)
20301 ac_status=$?
20302 cat conftest.err >&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 if (exit $ac_status) && test -s "$ac_outfile"; then
20305 # The compiler can only warn and ignore the option if not recognized
20306 # So say no if there are warnings other than the usual output.
20307 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20309 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20310 lt_cv_prog_compiler_pic_works_CXX=yes
20311 fi
20312 fi
20313 $RM conftest*
20314
20315 fi
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20317 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20318
20319 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20320 case $lt_prog_compiler_pic_CXX in
20321 "" | " "*) ;;
20322 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20323 esac
20324 else
20325 lt_prog_compiler_pic_CXX=
20326 lt_prog_compiler_can_build_shared_CXX=no
20327 fi
20328
20329 fi
20330
20331
20332
20333 #
20334 # Check to make sure the static flag actually works.
20335 #
20336 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20338 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20339 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20340 $as_echo_n "(cached) " >&6
20341 else
20342 lt_cv_prog_compiler_static_works_CXX=no
20343 save_LDFLAGS="$LDFLAGS"
20344 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20345 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20346 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20347 # The linker can only warn and ignore the option if not recognized
20348 # So say no if there are warnings
20349 if test -s conftest.err; then
20350 # Append any errors to the config.log.
20351 cat conftest.err 1>&5
20352 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20354 if diff conftest.exp conftest.er2 >/dev/null; then
20355 lt_cv_prog_compiler_static_works_CXX=yes
20356 fi
20357 else
20358 lt_cv_prog_compiler_static_works_CXX=yes
20359 fi
20360 fi
20361 $RM -r conftest*
20362 LDFLAGS="$save_LDFLAGS"
20363
20364 fi
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20366 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20367
20368 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20369 :
20370 else
20371 lt_prog_compiler_static_CXX=
20372 fi
20373
20374
20375
20376
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20378 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20379 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20380 $as_echo_n "(cached) " >&6
20381 else
20382 lt_cv_prog_compiler_c_o_CXX=no
20383 $RM -r conftest 2>/dev/null
20384 mkdir conftest
20385 cd conftest
20386 mkdir out
20387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20388
20389 lt_compiler_flag="-o out/conftest2.$ac_objext"
20390 # Insert the option either (1) after the last *FLAGS variable, or
20391 # (2) before a word containing "conftest.", or (3) at the end.
20392 # Note that $ac_compile itself does not contain backslashes and begins
20393 # with a dollar sign (not a hyphen), so the echo should work correctly.
20394 lt_compile=`echo "$ac_compile" | $SED \
20395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20397 -e 's:$: $lt_compiler_flag:'`
20398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20399 (eval "$lt_compile" 2>out/conftest.err)
20400 ac_status=$?
20401 cat out/conftest.err >&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20404 then
20405 # The compiler can only warn and ignore the option if not recognized
20406 # So say no if there are warnings
20407 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20408 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20409 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20410 lt_cv_prog_compiler_c_o_CXX=yes
20411 fi
20412 fi
20413 chmod u+w . 2>&5
20414 $RM conftest*
20415 # SGI C++ compiler will create directory out/ii_files/ for
20416 # template instantiation
20417 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20418 $RM out/* && rmdir out
20419 cd ..
20420 $RM -r conftest
20421 $RM conftest*
20422
20423 fi
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20425 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20426
20427
20428
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20430 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20431 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20432 $as_echo_n "(cached) " >&6
20433 else
20434 lt_cv_prog_compiler_c_o_CXX=no
20435 $RM -r conftest 2>/dev/null
20436 mkdir conftest
20437 cd conftest
20438 mkdir out
20439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20440
20441 lt_compiler_flag="-o out/conftest2.$ac_objext"
20442 # Insert the option either (1) after the last *FLAGS variable, or
20443 # (2) before a word containing "conftest.", or (3) at the end.
20444 # Note that $ac_compile itself does not contain backslashes and begins
20445 # with a dollar sign (not a hyphen), so the echo should work correctly.
20446 lt_compile=`echo "$ac_compile" | $SED \
20447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20449 -e 's:$: $lt_compiler_flag:'`
20450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20451 (eval "$lt_compile" 2>out/conftest.err)
20452 ac_status=$?
20453 cat out/conftest.err >&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20456 then
20457 # The compiler can only warn and ignore the option if not recognized
20458 # So say no if there are warnings
20459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20460 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20461 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20462 lt_cv_prog_compiler_c_o_CXX=yes
20463 fi
20464 fi
20465 chmod u+w . 2>&5
20466 $RM conftest*
20467 # SGI C++ compiler will create directory out/ii_files/ for
20468 # template instantiation
20469 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20470 $RM out/* && rmdir out
20471 cd ..
20472 $RM -r conftest
20473 $RM conftest*
20474
20475 fi
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20477 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20478
20479
20480
20481
20482 hard_links="nottested"
20483 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20484 # do not overwrite the value of need_locks provided by the user
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20486 $as_echo_n "checking if we can lock with hard links... " >&6; }
20487 hard_links=yes
20488 $RM conftest*
20489 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20490 touch conftest.a
20491 ln conftest.a conftest.b 2>&5 || hard_links=no
20492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20494 $as_echo "$hard_links" >&6; }
20495 if test "$hard_links" = no; then
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20497 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20498 need_locks=warn
20499 fi
20500 else
20501 need_locks=no
20502 fi
20503
20504
20505
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20507 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20508
20509 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20510 case $host_os in
20511 aix[4-9]*)
20512 # If we're using GNU nm, then we don't want the "-C" option.
20513 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20514 # Also, AIX nm treats weak defined symbols like other global defined
20515 # symbols, whereas GNU nm marks them as "W".
20516 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20517 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'
20518 else
20519 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20520 fi
20521 ;;
20522 pw32*)
20523 export_symbols_cmds_CXX="$ltdll_cmds"
20524 ;;
20525 cygwin* | mingw* | cegcc*)
20526 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'
20527 ;;
20528 *)
20529 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20530 ;;
20531 esac
20532 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20533
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20535 $as_echo "$ld_shlibs_CXX" >&6; }
20536 test "$ld_shlibs_CXX" = no && can_build_shared=no
20537
20538 with_gnu_ld_CXX=$with_gnu_ld
20539
20540
20541
20542
20543
20544
20545 #
20546 # Do we need to explicitly link libc?
20547 #
20548 case "x$archive_cmds_need_lc_CXX" in
20549 x|xyes)
20550 # Assume -lc should be added
20551 archive_cmds_need_lc_CXX=yes
20552
20553 if test "$enable_shared" = yes && test "$GCC" = yes; then
20554 case $archive_cmds_CXX in
20555 *'~'*)
20556 # FIXME: we may have to deal with multi-command sequences.
20557 ;;
20558 '$CC '*)
20559 # Test whether the compiler implicitly links with -lc since on some
20560 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20561 # to ld, don't add -lc before -lgcc.
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20563 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20564 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20565 $as_echo_n "(cached) " >&6
20566 else
20567 $RM conftest*
20568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20569
20570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20571 (eval $ac_compile) 2>&5
20572 ac_status=$?
20573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20574 test $ac_status = 0; } 2>conftest.err; then
20575 soname=conftest
20576 lib=conftest
20577 libobjs=conftest.$ac_objext
20578 deplibs=
20579 wl=$lt_prog_compiler_wl_CXX
20580 pic_flag=$lt_prog_compiler_pic_CXX
20581 compiler_flags=-v
20582 linker_flags=-v
20583 verstring=
20584 output_objdir=.
20585 libname=conftest
20586 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20587 allow_undefined_flag_CXX=
20588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20589 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20590 ac_status=$?
20591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20592 test $ac_status = 0; }
20593 then
20594 lt_cv_archive_cmds_need_lc_CXX=no
20595 else
20596 lt_cv_archive_cmds_need_lc_CXX=yes
20597 fi
20598 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20599 else
20600 cat conftest.err 1>&5
20601 fi
20602 $RM conftest*
20603
20604 fi
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20606 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20607 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20608 ;;
20609 esac
20610 fi
20611 ;;
20612 esac
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20678 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20679
20680 library_names_spec=
20681 libname_spec='lib$name'
20682 soname_spec=
20683 shrext_cmds=".so"
20684 postinstall_cmds=
20685 postuninstall_cmds=
20686 finish_cmds=
20687 finish_eval=
20688 shlibpath_var=
20689 shlibpath_overrides_runpath=unknown
20690 version_type=none
20691 dynamic_linker="$host_os ld.so"
20692 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20693 need_lib_prefix=unknown
20694 hardcode_into_libs=no
20695
20696 # when you set need_version to no, make sure it does not cause -set_version
20697 # flags to be left without arguments
20698 need_version=unknown
20699
20700 case $host_os in
20701 aix3*)
20702 version_type=linux
20703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20704 shlibpath_var=LIBPATH
20705
20706 # AIX 3 has no versioning support, so we append a major version to the name.
20707 soname_spec='${libname}${release}${shared_ext}$major'
20708 ;;
20709
20710 aix[4-9]*)
20711 version_type=linux
20712 need_lib_prefix=no
20713 need_version=no
20714 hardcode_into_libs=yes
20715 if test "$host_cpu" = ia64; then
20716 # AIX 5 supports IA64
20717 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20718 shlibpath_var=LD_LIBRARY_PATH
20719 else
20720 # With GCC up to 2.95.x, collect2 would create an import file
20721 # for dependence libraries. The import file would start with
20722 # the line `#! .'. This would cause the generated library to
20723 # depend on `.', always an invalid library. This was fixed in
20724 # development snapshots of GCC prior to 3.0.
20725 case $host_os in
20726 aix4 | aix4.[01] | aix4.[01].*)
20727 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20728 echo ' yes '
20729 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20730 :
20731 else
20732 can_build_shared=no
20733 fi
20734 ;;
20735 esac
20736 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20737 # soname into executable. Probably we can add versioning support to
20738 # collect2, so additional links can be useful in future.
20739 if test "$aix_use_runtimelinking" = yes; then
20740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20741 # instead of lib<name>.a to let people know that these are not
20742 # typical AIX shared libraries.
20743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20744 else
20745 # We preserve .a as extension for shared libraries through AIX4.2
20746 # and later when we are not doing run time linking.
20747 library_names_spec='${libname}${release}.a $libname.a'
20748 soname_spec='${libname}${release}${shared_ext}$major'
20749 fi
20750 shlibpath_var=LIBPATH
20751 fi
20752 ;;
20753
20754 amigaos*)
20755 case $host_cpu in
20756 powerpc)
20757 # Since July 2007 AmigaOS4 officially supports .so libraries.
20758 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20760 ;;
20761 m68k)
20762 library_names_spec='$libname.ixlibrary $libname.a'
20763 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20764 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'
20765 ;;
20766 esac
20767 ;;
20768
20769 beos*)
20770 library_names_spec='${libname}${shared_ext}'
20771 dynamic_linker="$host_os ld.so"
20772 shlibpath_var=LIBRARY_PATH
20773 ;;
20774
20775 bsdi[45]*)
20776 version_type=linux
20777 need_version=no
20778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20779 soname_spec='${libname}${release}${shared_ext}$major'
20780 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20781 shlibpath_var=LD_LIBRARY_PATH
20782 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20783 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20784 # the default ld.so.conf also contains /usr/contrib/lib and
20785 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20786 # libtool to hard-code these into programs
20787 ;;
20788
20789 cygwin* | mingw* | pw32* | cegcc*)
20790 version_type=windows
20791 shrext_cmds=".dll"
20792 need_version=no
20793 need_lib_prefix=no
20794
20795 case $GCC,$host_os in
20796 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20797 library_names_spec='$libname.dll.a'
20798 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20799 postinstall_cmds='base_file=`basename \${file}`~
20800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20801 dldir=$destdir/`dirname \$dlpath`~
20802 test -d \$dldir || mkdir -p \$dldir~
20803 $install_prog $dir/$dlname \$dldir/$dlname~
20804 chmod a+x \$dldir/$dlname~
20805 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20806 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20807 fi'
20808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20809 dlpath=$dir/\$dldll~
20810 $RM \$dlpath'
20811 shlibpath_overrides_runpath=yes
20812
20813 case $host_os in
20814 cygwin*)
20815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20817
20818 ;;
20819 mingw* | cegcc*)
20820 # MinGW DLLs use traditional 'lib' prefix
20821 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20822 ;;
20823 pw32*)
20824 # pw32 DLLs use 'pw' prefix rather than 'lib'
20825 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20826 ;;
20827 esac
20828 ;;
20829
20830 *)
20831 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20832 ;;
20833 esac
20834 dynamic_linker='Win32 ld.exe'
20835 # FIXME: first we should search . and the directory the executable is in
20836 shlibpath_var=PATH
20837 ;;
20838
20839 darwin* | rhapsody*)
20840 dynamic_linker="$host_os dyld"
20841 version_type=darwin
20842 need_lib_prefix=no
20843 need_version=no
20844 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20845 soname_spec='${libname}${release}${major}$shared_ext'
20846 shlibpath_overrides_runpath=yes
20847 shlibpath_var=DYLD_LIBRARY_PATH
20848 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20849
20850 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20851 ;;
20852
20853 dgux*)
20854 version_type=linux
20855 need_lib_prefix=no
20856 need_version=no
20857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20858 soname_spec='${libname}${release}${shared_ext}$major'
20859 shlibpath_var=LD_LIBRARY_PATH
20860 ;;
20861
20862 freebsd* | dragonfly*)
20863 # DragonFly does not have aout. When/if they implement a new
20864 # versioning mechanism, adjust this.
20865 if test -x /usr/bin/objformat; then
20866 objformat=`/usr/bin/objformat`
20867 else
20868 case $host_os in
20869 freebsd[123]*) objformat=aout ;;
20870 *) objformat=elf ;;
20871 esac
20872 fi
20873 version_type=freebsd-$objformat
20874 case $version_type in
20875 freebsd-elf*)
20876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20877 need_version=no
20878 need_lib_prefix=no
20879 ;;
20880 freebsd-*)
20881 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20882 need_version=yes
20883 ;;
20884 esac
20885 shlibpath_var=LD_LIBRARY_PATH
20886 case $host_os in
20887 freebsd2*)
20888 shlibpath_overrides_runpath=yes
20889 ;;
20890 freebsd3.[01]* | freebsdelf3.[01]*)
20891 shlibpath_overrides_runpath=yes
20892 hardcode_into_libs=yes
20893 ;;
20894 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20895 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20896 shlibpath_overrides_runpath=no
20897 hardcode_into_libs=yes
20898 ;;
20899 *) # from 4.6 on, and DragonFly
20900 shlibpath_overrides_runpath=yes
20901 hardcode_into_libs=yes
20902 ;;
20903 esac
20904 ;;
20905
20906 gnu*)
20907 version_type=linux
20908 need_lib_prefix=no
20909 need_version=no
20910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20911 soname_spec='${libname}${release}${shared_ext}$major'
20912 shlibpath_var=LD_LIBRARY_PATH
20913 hardcode_into_libs=yes
20914 ;;
20915
20916 haiku*)
20917 version_type=linux
20918 need_lib_prefix=no
20919 need_version=no
20920 dynamic_linker="$host_os runtime_loader"
20921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20922 soname_spec='${libname}${release}${shared_ext}$major'
20923 shlibpath_var=LIBRARY_PATH
20924 shlibpath_overrides_runpath=yes
20925 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20926 hardcode_into_libs=yes
20927 ;;
20928
20929 hpux9* | hpux10* | hpux11*)
20930 # Give a soname corresponding to the major version so that dld.sl refuses to
20931 # link against other versions.
20932 version_type=sunos
20933 need_lib_prefix=no
20934 need_version=no
20935 case $host_cpu in
20936 ia64*)
20937 shrext_cmds='.so'
20938 hardcode_into_libs=yes
20939 dynamic_linker="$host_os dld.so"
20940 shlibpath_var=LD_LIBRARY_PATH
20941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20943 soname_spec='${libname}${release}${shared_ext}$major'
20944 if test "X$HPUX_IA64_MODE" = X32; then
20945 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20946 else
20947 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20948 fi
20949 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20950 ;;
20951 hppa*64*)
20952 shrext_cmds='.sl'
20953 hardcode_into_libs=yes
20954 dynamic_linker="$host_os dld.sl"
20955 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20958 soname_spec='${libname}${release}${shared_ext}$major'
20959 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20961 ;;
20962 *)
20963 shrext_cmds='.sl'
20964 dynamic_linker="$host_os dld.sl"
20965 shlibpath_var=SHLIB_PATH
20966 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20968 soname_spec='${libname}${release}${shared_ext}$major'
20969 ;;
20970 esac
20971 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20972 postinstall_cmds='chmod 555 $lib'
20973 # or fails outright, so override atomically:
20974 install_override_mode=555
20975 ;;
20976
20977 interix[3-9]*)
20978 version_type=linux
20979 need_lib_prefix=no
20980 need_version=no
20981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20982 soname_spec='${libname}${release}${shared_ext}$major'
20983 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20984 shlibpath_var=LD_LIBRARY_PATH
20985 shlibpath_overrides_runpath=no
20986 hardcode_into_libs=yes
20987 ;;
20988
20989 irix5* | irix6* | nonstopux*)
20990 case $host_os in
20991 nonstopux*) version_type=nonstopux ;;
20992 *)
20993 if test "$lt_cv_prog_gnu_ld" = yes; then
20994 version_type=linux
20995 else
20996 version_type=irix
20997 fi ;;
20998 esac
20999 need_lib_prefix=no
21000 need_version=no
21001 soname_spec='${libname}${release}${shared_ext}$major'
21002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21003 case $host_os in
21004 irix5* | nonstopux*)
21005 libsuff= shlibsuff=
21006 ;;
21007 *)
21008 case $LD in # libtool.m4 will add one of these switches to LD
21009 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21010 libsuff= shlibsuff= libmagic=32-bit;;
21011 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21012 libsuff=32 shlibsuff=N32 libmagic=N32;;
21013 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21014 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21015 *) libsuff= shlibsuff= libmagic=never-match;;
21016 esac
21017 ;;
21018 esac
21019 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21020 shlibpath_overrides_runpath=no
21021 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21022 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21023 hardcode_into_libs=yes
21024 ;;
21025
21026 # No shared lib support for Linux oldld, aout, or coff.
21027 linux*oldld* | linux*aout* | linux*coff*)
21028 dynamic_linker=no
21029 ;;
21030
21031 # This must be Linux ELF.
21032 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21033 version_type=linux
21034 need_lib_prefix=no
21035 need_version=no
21036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21037 soname_spec='${libname}${release}${shared_ext}$major'
21038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21039 shlibpath_var=LD_LIBRARY_PATH
21040 shlibpath_overrides_runpath=no
21041
21042 # Some binutils ld are patched to set DT_RUNPATH
21043 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21044 $as_echo_n "(cached) " >&6
21045 else
21046 lt_cv_shlibpath_overrides_runpath=no
21047 save_LDFLAGS=$LDFLAGS
21048 save_libdir=$libdir
21049 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21050 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21052 /* end confdefs.h. */
21053
21054 int
21055 main ()
21056 {
21057
21058 ;
21059 return 0;
21060 }
21061 _ACEOF
21062 if ac_fn_cxx_try_link "$LINENO"; then :
21063 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21064 lt_cv_shlibpath_overrides_runpath=yes
21065 fi
21066 fi
21067 rm -f core conftest.err conftest.$ac_objext \
21068 conftest$ac_exeext conftest.$ac_ext
21069 LDFLAGS=$save_LDFLAGS
21070 libdir=$save_libdir
21071
21072 fi
21073
21074 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21075
21076 # This implies no fast_install, which is unacceptable.
21077 # Some rework will be needed to allow for fast_install
21078 # before this can be enabled.
21079 hardcode_into_libs=yes
21080
21081 # Append ld.so.conf contents to the search path
21082 if test -f /etc/ld.so.conf; then
21083 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' ' '`
21084 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21085 fi
21086
21087 # We used to test for /lib/ld.so.1 and disable shared libraries on
21088 # powerpc, because MkLinux only supported shared libraries with the
21089 # GNU dynamic linker. Since this was broken with cross compilers,
21090 # most powerpc-linux boxes support dynamic linking these days and
21091 # people can always --disable-shared, the test was removed, and we
21092 # assume the GNU/Linux dynamic linker is in use.
21093 dynamic_linker='GNU/Linux ld.so'
21094 ;;
21095
21096 netbsd*)
21097 version_type=sunos
21098 need_lib_prefix=no
21099 need_version=no
21100 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21103 dynamic_linker='NetBSD (a.out) ld.so'
21104 else
21105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21106 soname_spec='${libname}${release}${shared_ext}$major'
21107 dynamic_linker='NetBSD ld.elf_so'
21108 fi
21109 shlibpath_var=LD_LIBRARY_PATH
21110 shlibpath_overrides_runpath=yes
21111 hardcode_into_libs=yes
21112 ;;
21113
21114 newsos6)
21115 version_type=linux
21116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21117 shlibpath_var=LD_LIBRARY_PATH
21118 shlibpath_overrides_runpath=yes
21119 ;;
21120
21121 *nto* | *qnx*)
21122 version_type=qnx
21123 need_lib_prefix=no
21124 need_version=no
21125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21126 soname_spec='${libname}${release}${shared_ext}$major'
21127 shlibpath_var=LD_LIBRARY_PATH
21128 shlibpath_overrides_runpath=no
21129 hardcode_into_libs=yes
21130 dynamic_linker='ldqnx.so'
21131 ;;
21132
21133 openbsd*)
21134 version_type=sunos
21135 sys_lib_dlsearch_path_spec="/usr/lib"
21136 need_lib_prefix=no
21137 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21138 case $host_os in
21139 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21140 *) need_version=no ;;
21141 esac
21142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21144 shlibpath_var=LD_LIBRARY_PATH
21145 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21146 case $host_os in
21147 openbsd2.[89] | openbsd2.[89].*)
21148 shlibpath_overrides_runpath=no
21149 ;;
21150 *)
21151 shlibpath_overrides_runpath=yes
21152 ;;
21153 esac
21154 else
21155 shlibpath_overrides_runpath=yes
21156 fi
21157 ;;
21158
21159 os2*)
21160 libname_spec='$name'
21161 shrext_cmds=".dll"
21162 need_lib_prefix=no
21163 library_names_spec='$libname${shared_ext} $libname.a'
21164 dynamic_linker='OS/2 ld.exe'
21165 shlibpath_var=LIBPATH
21166 ;;
21167
21168 osf3* | osf4* | osf5*)
21169 version_type=osf
21170 need_lib_prefix=no
21171 need_version=no
21172 soname_spec='${libname}${release}${shared_ext}$major'
21173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21174 shlibpath_var=LD_LIBRARY_PATH
21175 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21176 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21177 ;;
21178
21179 rdos*)
21180 dynamic_linker=no
21181 ;;
21182
21183 solaris*)
21184 version_type=linux
21185 need_lib_prefix=no
21186 need_version=no
21187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21188 soname_spec='${libname}${release}${shared_ext}$major'
21189 shlibpath_var=LD_LIBRARY_PATH
21190 shlibpath_overrides_runpath=yes
21191 hardcode_into_libs=yes
21192 # ldd complains unless libraries are executable
21193 postinstall_cmds='chmod +x $lib'
21194 ;;
21195
21196 sunos4*)
21197 version_type=sunos
21198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21199 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21200 shlibpath_var=LD_LIBRARY_PATH
21201 shlibpath_overrides_runpath=yes
21202 if test "$with_gnu_ld" = yes; then
21203 need_lib_prefix=no
21204 fi
21205 need_version=yes
21206 ;;
21207
21208 sysv4 | sysv4.3*)
21209 version_type=linux
21210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21211 soname_spec='${libname}${release}${shared_ext}$major'
21212 shlibpath_var=LD_LIBRARY_PATH
21213 case $host_vendor in
21214 sni)
21215 shlibpath_overrides_runpath=no
21216 need_lib_prefix=no
21217 runpath_var=LD_RUN_PATH
21218 ;;
21219 siemens)
21220 need_lib_prefix=no
21221 ;;
21222 motorola)
21223 need_lib_prefix=no
21224 need_version=no
21225 shlibpath_overrides_runpath=no
21226 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21227 ;;
21228 esac
21229 ;;
21230
21231 sysv4*MP*)
21232 if test -d /usr/nec ;then
21233 version_type=linux
21234 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21235 soname_spec='$libname${shared_ext}.$major'
21236 shlibpath_var=LD_LIBRARY_PATH
21237 fi
21238 ;;
21239
21240 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21241 version_type=freebsd-elf
21242 need_lib_prefix=no
21243 need_version=no
21244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21245 soname_spec='${libname}${release}${shared_ext}$major'
21246 shlibpath_var=LD_LIBRARY_PATH
21247 shlibpath_overrides_runpath=yes
21248 hardcode_into_libs=yes
21249 if test "$with_gnu_ld" = yes; then
21250 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21251 else
21252 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21253 case $host_os in
21254 sco3.2v5*)
21255 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21256 ;;
21257 esac
21258 fi
21259 sys_lib_dlsearch_path_spec='/usr/lib'
21260 ;;
21261
21262 tpf*)
21263 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21264 version_type=linux
21265 need_lib_prefix=no
21266 need_version=no
21267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21268 shlibpath_var=LD_LIBRARY_PATH
21269 shlibpath_overrides_runpath=no
21270 hardcode_into_libs=yes
21271 ;;
21272
21273 uts4*)
21274 version_type=linux
21275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21276 soname_spec='${libname}${release}${shared_ext}$major'
21277 shlibpath_var=LD_LIBRARY_PATH
21278 ;;
21279
21280 *)
21281 dynamic_linker=no
21282 ;;
21283 esac
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21285 $as_echo "$dynamic_linker" >&6; }
21286 test "$dynamic_linker" = no && can_build_shared=no
21287
21288 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21289 if test "$GCC" = yes; then
21290 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21291 fi
21292
21293 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21294 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21295 fi
21296 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21297 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21298 fi
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21338 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21339 hardcode_action_CXX=
21340 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21341 test -n "$runpath_var_CXX" ||
21342 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21343
21344 # We can hardcode non-existent directories.
21345 if test "$hardcode_direct_CXX" != no &&
21346 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21347 # have to relink, otherwise we might link with an installed library
21348 # when we should be linking with a yet-to-be-installed one
21349 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21350 test "$hardcode_minus_L_CXX" != no; then
21351 # Linking always hardcodes the temporary library directory.
21352 hardcode_action_CXX=relink
21353 else
21354 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21355 hardcode_action_CXX=immediate
21356 fi
21357 else
21358 # We cannot hardcode anything, or else we can only hardcode existing
21359 # directories.
21360 hardcode_action_CXX=unsupported
21361 fi
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21363 $as_echo "$hardcode_action_CXX" >&6; }
21364
21365 if test "$hardcode_action_CXX" = relink ||
21366 test "$inherit_rpath_CXX" = yes; then
21367 # Fast installation is not supported
21368 enable_fast_install=no
21369 elif test "$shlibpath_overrides_runpath" = yes ||
21370 test "$enable_shared" = no; then
21371 # Fast installation is not necessary
21372 enable_fast_install=needless
21373 fi
21374
21375
21376
21377
21378
21379
21380
21381 fi # test -n "$compiler"
21382
21383 CC=$lt_save_CC
21384 LDCXX=$LD
21385 LD=$lt_save_LD
21386 GCC=$lt_save_GCC
21387 with_gnu_ld=$lt_save_with_gnu_ld
21388 lt_cv_path_LDCXX=$lt_cv_path_LD
21389 lt_cv_path_LD=$lt_save_path_LD
21390 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21391 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21392 fi # test "$_lt_caught_CXX_error" != yes
21393
21394 ac_ext=c
21395 ac_cpp='$CPP $CPPFLAGS'
21396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415 # Only expand once:
21416
21417
21418
21419
21420
21421 # Identify the assembler which will work hand-in-glove with the newly
21422 # built GCC, so that we can examine its features. This is the assembler
21423 # which will be driven by the driver program.
21424 #
21425 # If build != host, and we aren't building gas in-tree, we identify a
21426 # build->target assembler and hope that it will have the same features
21427 # as the host->target assembler we'll be using.
21428 gcc_cv_gas_major_version=
21429 gcc_cv_gas_minor_version=
21430 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21431
21432 if test "${gcc_cv_as+set}" = set; then :
21433
21434 else
21435
21436 if test -x "$DEFAULT_ASSEMBLER"; then
21437 gcc_cv_as="$DEFAULT_ASSEMBLER"
21438 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21439 && test -f ../gas/Makefile \
21440 && test x$build = x$host; then
21441 gcc_cv_as=../gas/as-new$build_exeext
21442 elif test -x as$build_exeext; then
21443 # Build using assembler in the current directory.
21444 gcc_cv_as=./as$build_exeext
21445 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21446 gcc_cv_as="$AS_FOR_TARGET"
21447 else
21448 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21449 set dummy $AS_FOR_TARGET; ac_word=$2
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21451 $as_echo_n "checking for $ac_word... " >&6; }
21452 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21453 $as_echo_n "(cached) " >&6
21454 else
21455 case $gcc_cv_as in
21456 [\\/]* | ?:[\\/]*)
21457 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21458 ;;
21459 *)
21460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21461 for as_dir in $PATH
21462 do
21463 IFS=$as_save_IFS
21464 test -z "$as_dir" && as_dir=.
21465 for ac_exec_ext in '' $ac_executable_extensions; do
21466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21467 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21469 break 2
21470 fi
21471 done
21472 done
21473 IFS=$as_save_IFS
21474
21475 ;;
21476 esac
21477 fi
21478 gcc_cv_as=$ac_cv_path_gcc_cv_as
21479 if test -n "$gcc_cv_as"; then
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21481 $as_echo "$gcc_cv_as" >&6; }
21482 else
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21484 $as_echo "no" >&6; }
21485 fi
21486
21487
21488 fi
21489 fi
21490
21491 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21492
21493 case "$ORIGINAL_AS_FOR_TARGET" in
21494 ./as | ./as$build_exeext) ;;
21495 *) ac_config_files="$ac_config_files as:exec-tool.in"
21496 ;;
21497 esac
21498
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21500 $as_echo_n "checking what assembler to use... " >&6; }
21501 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21502 # Single tree build which includes gas. We want to prefer it
21503 # over whatever linker top-level may have detected, since
21504 # we'll use what we're building after installation anyway.
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21506 $as_echo "newly built gas" >&6; }
21507 in_tree_gas=yes
21508 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21509 for f in $gcc_cv_as_bfd_srcdir/configure \
21510 $gcc_cv_as_gas_srcdir/configure \
21511 $gcc_cv_as_gas_srcdir/configure.in \
21512 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21513 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21514 if test x$gcc_cv_gas_version != x; then
21515 break
21516 fi
21517 done
21518 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21519 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21520 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21521 case $gcc_cv_gas_patch_version in
21522 "") gcc_cv_gas_patch_version="0" ;;
21523 esac
21524 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21525 + $gcc_cv_gas_minor_version \) \* 1000 \
21526 + $gcc_cv_gas_patch_version`
21527
21528 in_tree_gas_is_elf=no
21529 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21530 || (grep 'obj_format = multi' ../gas/Makefile \
21531 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21532 then
21533 in_tree_gas_is_elf=yes
21534 fi
21535 else
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21537 $as_echo "$gcc_cv_as" >&6; }
21538 in_tree_gas=no
21539 fi
21540
21541 # Identify the linker which will work hand-in-glove with the newly
21542 # built GCC, so that we can examine its features. This is the linker
21543 # which will be driven by the driver program.
21544 #
21545 # If build != host, and we aren't building gas in-tree, we identify a
21546 # build->target linker and hope that it will have the same features
21547 # as the host->target linker we'll be using.
21548 gcc_cv_gld_major_version=
21549 gcc_cv_gld_minor_version=
21550 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21551 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21552
21553 if test "${gcc_cv_ld+set}" = set; then :
21554
21555 else
21556
21557 if test -x "$DEFAULT_LINKER"; then
21558 gcc_cv_ld="$DEFAULT_LINKER"
21559 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21560 && test -f ../ld/Makefile \
21561 && test x$build = x$host; then
21562 gcc_cv_ld=../ld/ld-new$build_exeext
21563 elif test -x collect-ld$build_exeext; then
21564 # Build using linker in the current directory.
21565 gcc_cv_ld=./collect-ld$build_exeext
21566 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21567 gcc_cv_ld="$LD_FOR_TARGET"
21568 else
21569 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21570 set dummy $LD_FOR_TARGET; ac_word=$2
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21572 $as_echo_n "checking for $ac_word... " >&6; }
21573 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21574 $as_echo_n "(cached) " >&6
21575 else
21576 case $gcc_cv_ld in
21577 [\\/]* | ?:[\\/]*)
21578 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21579 ;;
21580 *)
21581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21582 for as_dir in $PATH
21583 do
21584 IFS=$as_save_IFS
21585 test -z "$as_dir" && as_dir=.
21586 for ac_exec_ext in '' $ac_executable_extensions; do
21587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21588 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21590 break 2
21591 fi
21592 done
21593 done
21594 IFS=$as_save_IFS
21595
21596 ;;
21597 esac
21598 fi
21599 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21600 if test -n "$gcc_cv_ld"; then
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21602 $as_echo "$gcc_cv_ld" >&6; }
21603 else
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21605 $as_echo "no" >&6; }
21606 fi
21607
21608
21609 fi
21610 fi
21611
21612 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21613 PLUGIN_LD=`basename $gcc_cv_ld`
21614
21615 # Check whether --with-plugin-ld was given.
21616 if test "${with_plugin_ld+set}" = set; then :
21617 withval=$with_plugin_ld; if test x"$withval" != x; then
21618 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21619 PLUGIN_LD="$withval"
21620 fi
21621 fi
21622
21623
21624
21625 cat >>confdefs.h <<_ACEOF
21626 #define PLUGIN_LD "$PLUGIN_LD"
21627 _ACEOF
21628
21629
21630 # Check to see if we are using gold instead of ld
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21632 $as_echo_n "checking whether we are using gold... " >&6; }
21633 ld_is_gold=no
21634 if test x$gcc_cv_ld != x; then
21635 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21636 | grep "GNU gold" > /dev/null; then
21637 ld_is_gold=yes
21638 fi
21639 fi
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21641 $as_echo "$ld_is_gold" >&6; }
21642
21643 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21644
21645 case "$ORIGINAL_LD_FOR_TARGET" in
21646 ./collect-ld | ./collect-ld$build_exeext) ;;
21647 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21648 ;;
21649 esac
21650
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21652 $as_echo_n "checking what linker to use... " >&6; }
21653 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21654 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21655 # Single tree build which includes ld. We want to prefer it
21656 # over whatever linker top-level may have detected, since
21657 # we'll use what we're building after installation anyway.
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21659 $as_echo "newly built ld" >&6; }
21660 in_tree_ld=yes
21661 in_tree_ld_is_elf=no
21662 if (grep 'EMUL = .*elf' ../ld/Makefile \
21663 || grep 'EMUL = .*linux' ../ld/Makefile \
21664 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21665 in_tree_ld_is_elf=yes
21666 elif test "$ld_is_gold" = yes; then
21667 in_tree_ld_is_elf=yes
21668 fi
21669 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
21670 do
21671 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21672 if test x$gcc_cv_gld_version != x; then
21673 break
21674 fi
21675 done
21676 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21677 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21678 else
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21680 $as_echo "$gcc_cv_ld" >&6; }
21681 in_tree_ld=no
21682 fi
21683
21684 # Figure out what nm we will be using.
21685 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21686 if test "${gcc_cv_nm+set}" = set; then :
21687
21688 else
21689
21690 if test -f $gcc_cv_binutils_srcdir/configure.in \
21691 && test -f ../binutils/Makefile \
21692 && test x$build = x$host; then
21693 gcc_cv_nm=../binutils/nm-new$build_exeext
21694 elif test -x nm$build_exeext; then
21695 gcc_cv_nm=./nm$build_exeext
21696 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21697 gcc_cv_nm="$NM_FOR_TARGET"
21698 else
21699 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21700 set dummy $NM_FOR_TARGET; ac_word=$2
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21702 $as_echo_n "checking for $ac_word... " >&6; }
21703 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21704 $as_echo_n "(cached) " >&6
21705 else
21706 case $gcc_cv_nm in
21707 [\\/]* | ?:[\\/]*)
21708 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21709 ;;
21710 *)
21711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21712 for as_dir in $PATH
21713 do
21714 IFS=$as_save_IFS
21715 test -z "$as_dir" && as_dir=.
21716 for ac_exec_ext in '' $ac_executable_extensions; do
21717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21718 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21720 break 2
21721 fi
21722 done
21723 done
21724 IFS=$as_save_IFS
21725
21726 ;;
21727 esac
21728 fi
21729 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21730 if test -n "$gcc_cv_nm"; then
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21732 $as_echo "$gcc_cv_nm" >&6; }
21733 else
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21735 $as_echo "no" >&6; }
21736 fi
21737
21738
21739 fi
21740 fi
21741
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21743 $as_echo_n "checking what nm to use... " >&6; }
21744 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21745 # Single tree build which includes binutils.
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21747 $as_echo "newly built nm" >&6; }
21748 in_tree_nm=yes
21749 else
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21751 $as_echo "$gcc_cv_nm" >&6; }
21752 in_tree_nm=no
21753 fi
21754
21755 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21756
21757 case "$ORIGINAL_NM_FOR_TARGET" in
21758 ./nm | ./nm$build_exeext) ;;
21759 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21760 ;;
21761 esac
21762
21763
21764 # Figure out what objdump we will be using.
21765 if test "${gcc_cv_objdump+set}" = set; then :
21766
21767 else
21768
21769 if test -f $gcc_cv_binutils_srcdir/configure.in \
21770 && test -f ../binutils/Makefile \
21771 && test x$build = x$host; then
21772 # Single tree build which includes binutils.
21773 gcc_cv_objdump=../binutils/objdump$build_exeext
21774 elif test -x objdump$build_exeext; then
21775 gcc_cv_objdump=./objdump$build_exeext
21776 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21777 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21778 else
21779 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21780 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21782 $as_echo_n "checking for $ac_word... " >&6; }
21783 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21784 $as_echo_n "(cached) " >&6
21785 else
21786 case $gcc_cv_objdump in
21787 [\\/]* | ?:[\\/]*)
21788 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21789 ;;
21790 *)
21791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21792 for as_dir in $PATH
21793 do
21794 IFS=$as_save_IFS
21795 test -z "$as_dir" && as_dir=.
21796 for ac_exec_ext in '' $ac_executable_extensions; do
21797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21798 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21800 break 2
21801 fi
21802 done
21803 done
21804 IFS=$as_save_IFS
21805
21806 ;;
21807 esac
21808 fi
21809 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21810 if test -n "$gcc_cv_objdump"; then
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21812 $as_echo "$gcc_cv_objdump" >&6; }
21813 else
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21815 $as_echo "no" >&6; }
21816 fi
21817
21818
21819 fi
21820 fi
21821
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21823 $as_echo_n "checking what objdump to use... " >&6; }
21824 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21825 # Single tree build which includes binutils.
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21827 $as_echo "newly built objdump" >&6; }
21828 elif test x$gcc_cv_objdump = x; then
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21830 $as_echo "not found" >&6; }
21831 else
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21833 $as_echo "$gcc_cv_objdump" >&6; }
21834 fi
21835
21836 # Figure out what readelf we will be using.
21837 if test "${gcc_cv_readelf+set}" = set; then :
21838
21839 else
21840
21841 if test -f $gcc_cv_binutils_srcdir/configure.in \
21842 && test -f ../binutils/Makefile \
21843 && test x$build = x$host; then
21844 # Single tree build which includes binutils.
21845 gcc_cv_readelf=../binutils/readelf$build_exeext
21846 elif test -x readelf$build_exeext; then
21847 gcc_cv_readelf=./readelf$build_exeext
21848 else
21849 # Extract the first word of "readelf", so it can be a program name with args.
21850 set dummy readelf; ac_word=$2
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21852 $as_echo_n "checking for $ac_word... " >&6; }
21853 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21854 $as_echo_n "(cached) " >&6
21855 else
21856 case $gcc_cv_readelf in
21857 [\\/]* | ?:[\\/]*)
21858 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21859 ;;
21860 *)
21861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21862 for as_dir in $PATH
21863 do
21864 IFS=$as_save_IFS
21865 test -z "$as_dir" && as_dir=.
21866 for ac_exec_ext in '' $ac_executable_extensions; do
21867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21868 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21870 break 2
21871 fi
21872 done
21873 done
21874 IFS=$as_save_IFS
21875
21876 ;;
21877 esac
21878 fi
21879 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21880 if test -n "$gcc_cv_readelf"; then
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21882 $as_echo "$gcc_cv_readelf" >&6; }
21883 else
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21885 $as_echo "no" >&6; }
21886 fi
21887
21888
21889 fi
21890 fi
21891
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21893 $as_echo_n "checking what readelf to use... " >&6; }
21894 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21895 # Single tree build which includes binutils.
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21897 $as_echo "newly built readelf" >&6; }
21898 elif test x$gcc_cv_readelf = x; then
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21900 $as_echo "not found" >&6; }
21901 else
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21903 $as_echo "$gcc_cv_readelf" >&6; }
21904 fi
21905
21906 # Figure out what assembler alignment features are present.
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21908 $as_echo_n "checking assembler flags... " >&6; }
21909 if test "${gcc_cv_as_flags+set}" = set; then :
21910 $as_echo_n "(cached) " >&6
21911 else
21912 case "$target" in
21913 i[34567]86-*-linux*)
21914 gcc_cv_as_flags="--32"
21915 ;;
21916 powerpc*-*-darwin*)
21917 gcc_cv_as_flags="-arch ppc"
21918 ;;
21919 *)
21920 gcc_cv_as_flags=" "
21921 ;;
21922 esac
21923 fi
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21925 $as_echo "$gcc_cv_as_flags" >&6; }
21926
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21928 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21929 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21930 $as_echo_n "(cached) " >&6
21931 else
21932 gcc_cv_as_balign_and_p2align=no
21933 if test $in_tree_gas = yes; then
21934 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21935 then gcc_cv_as_balign_and_p2align=yes
21936 fi
21937 elif test x$gcc_cv_as != x; then
21938 $as_echo '.balign 4
21939 .p2align 2' > conftest.s
21940 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21942 (eval $ac_try) 2>&5
21943 ac_status=$?
21944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21945 test $ac_status = 0; }; }
21946 then
21947 gcc_cv_as_balign_and_p2align=yes
21948 else
21949 echo "configure: failed program was" >&5
21950 cat conftest.s >&5
21951 fi
21952 rm -f conftest.o conftest.s
21953 fi
21954 fi
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21956 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21957 if test $gcc_cv_as_balign_and_p2align = yes; then
21958
21959 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21960
21961 fi
21962
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21964 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21965 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21966 $as_echo_n "(cached) " >&6
21967 else
21968 gcc_cv_as_max_skip_p2align=no
21969 if test $in_tree_gas = yes; then
21970 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21971 then gcc_cv_as_max_skip_p2align=yes
21972 fi
21973 elif test x$gcc_cv_as != x; then
21974 $as_echo '.p2align 4,,7' > conftest.s
21975 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21977 (eval $ac_try) 2>&5
21978 ac_status=$?
21979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21980 test $ac_status = 0; }; }
21981 then
21982 gcc_cv_as_max_skip_p2align=yes
21983 else
21984 echo "configure: failed program was" >&5
21985 cat conftest.s >&5
21986 fi
21987 rm -f conftest.o conftest.s
21988 fi
21989 fi
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21991 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21992 if test $gcc_cv_as_max_skip_p2align = yes; then
21993
21994 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21995
21996 fi
21997
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21999 $as_echo_n "checking assembler for .literal16... " >&6; }
22000 if test "${gcc_cv_as_literal16+set}" = set; then :
22001 $as_echo_n "(cached) " >&6
22002 else
22003 gcc_cv_as_literal16=no
22004 if test $in_tree_gas = yes; then
22005 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22006 then gcc_cv_as_literal16=yes
22007 fi
22008 elif test x$gcc_cv_as != x; then
22009 $as_echo '.literal16' > conftest.s
22010 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22012 (eval $ac_try) 2>&5
22013 ac_status=$?
22014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22015 test $ac_status = 0; }; }
22016 then
22017 gcc_cv_as_literal16=yes
22018 else
22019 echo "configure: failed program was" >&5
22020 cat conftest.s >&5
22021 fi
22022 rm -f conftest.o conftest.s
22023 fi
22024 fi
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22026 $as_echo "$gcc_cv_as_literal16" >&6; }
22027 if test $gcc_cv_as_literal16 = yes; then
22028
22029 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22030
22031 fi
22032
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22034 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22035 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22036 $as_echo_n "(cached) " >&6
22037 else
22038 gcc_cv_as_subsection_m1=no
22039 if test $in_tree_gas = yes; then
22040 if test $in_tree_gas_is_elf = yes \
22041 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22042 then gcc_cv_as_subsection_m1=yes
22043 fi
22044 elif test x$gcc_cv_as != x; then
22045 $as_echo 'conftest_label1: .word 0
22046 .subsection -1
22047 conftest_label2: .word 0
22048 .previous' > conftest.s
22049 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22051 (eval $ac_try) 2>&5
22052 ac_status=$?
22053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22054 test $ac_status = 0; }; }
22055 then
22056 if test x$gcc_cv_nm != x; then
22057 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22058 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22059 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22060 then :
22061 else gcc_cv_as_subsection_m1=yes
22062 fi
22063 rm -f conftest.nm1 conftest.nm2
22064 fi
22065 else
22066 echo "configure: failed program was" >&5
22067 cat conftest.s >&5
22068 fi
22069 rm -f conftest.o conftest.s
22070 fi
22071 fi
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22073 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22074 if test $gcc_cv_as_subsection_m1 = yes; then
22075
22076 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22077
22078 fi
22079
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22081 $as_echo_n "checking assembler for .weak... " >&6; }
22082 if test "${gcc_cv_as_weak+set}" = set; then :
22083 $as_echo_n "(cached) " >&6
22084 else
22085 gcc_cv_as_weak=no
22086 if test $in_tree_gas = yes; then
22087 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22088 then gcc_cv_as_weak=yes
22089 fi
22090 elif test x$gcc_cv_as != x; then
22091 $as_echo ' .weak foobar' > conftest.s
22092 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22094 (eval $ac_try) 2>&5
22095 ac_status=$?
22096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22097 test $ac_status = 0; }; }
22098 then
22099 gcc_cv_as_weak=yes
22100 else
22101 echo "configure: failed program was" >&5
22102 cat conftest.s >&5
22103 fi
22104 rm -f conftest.o conftest.s
22105 fi
22106 fi
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22108 $as_echo "$gcc_cv_as_weak" >&6; }
22109 if test $gcc_cv_as_weak = yes; then
22110
22111 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22112
22113 fi
22114
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22116 $as_echo_n "checking assembler for .weakref... " >&6; }
22117 if test "${gcc_cv_as_weakref+set}" = set; then :
22118 $as_echo_n "(cached) " >&6
22119 else
22120 gcc_cv_as_weakref=no
22121 if test $in_tree_gas = yes; then
22122 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22123 then gcc_cv_as_weakref=yes
22124 fi
22125 elif test x$gcc_cv_as != x; then
22126 $as_echo ' .weakref foobar, barfnot' > conftest.s
22127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22129 (eval $ac_try) 2>&5
22130 ac_status=$?
22131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22132 test $ac_status = 0; }; }
22133 then
22134 gcc_cv_as_weakref=yes
22135 else
22136 echo "configure: failed program was" >&5
22137 cat conftest.s >&5
22138 fi
22139 rm -f conftest.o conftest.s
22140 fi
22141 fi
22142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22143 $as_echo "$gcc_cv_as_weakref" >&6; }
22144 if test $gcc_cv_as_weakref = yes; then
22145
22146 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22147
22148 fi
22149
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22151 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22152 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22153 $as_echo_n "(cached) " >&6
22154 else
22155 gcc_cv_as_nsubspa_comdat=no
22156 if test $in_tree_gas = yes; then
22157 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22158 then gcc_cv_as_nsubspa_comdat=yes
22159 fi
22160 elif test x$gcc_cv_as != x; then
22161 $as_echo ' .SPACE $TEXT$
22162 .NSUBSPA $CODE$,COMDAT' > conftest.s
22163 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22165 (eval $ac_try) 2>&5
22166 ac_status=$?
22167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22168 test $ac_status = 0; }; }
22169 then
22170 gcc_cv_as_nsubspa_comdat=yes
22171 else
22172 echo "configure: failed program was" >&5
22173 cat conftest.s >&5
22174 fi
22175 rm -f conftest.o conftest.s
22176 fi
22177 fi
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22179 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22180 if test $gcc_cv_as_nsubspa_comdat = yes; then
22181
22182 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22183
22184 fi
22185
22186 # .hidden needs to be supported in both the assembler and the linker,
22187 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22188 # This is irritatingly difficult to feature test for; we have to check the
22189 # date string after the version number. If we've got an in-tree
22190 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22191 # to be safe.
22192 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22194 $as_echo_n "checking assembler for .hidden... " >&6; }
22195 if test "${gcc_cv_as_hidden+set}" = set; then :
22196 $as_echo_n "(cached) " >&6
22197 else
22198 gcc_cv_as_hidden=no
22199 if test $in_tree_gas = yes; then
22200 if test $in_tree_gas_is_elf = yes \
22201 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22202 then gcc_cv_as_hidden=yes
22203 fi
22204 elif test x$gcc_cv_as != x; then
22205 $as_echo ' .hidden foobar
22206 foobar:' > conftest.s
22207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22209 (eval $ac_try) 2>&5
22210 ac_status=$?
22211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22212 test $ac_status = 0; }; }
22213 then
22214
22215 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22216 # STV_HIDDEN, so disable .hidden support if so.
22217 case "${target}" in
22218 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22219 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22220 cat > conftest.s <<EOF
22221 .globl hidden
22222 .hidden hidden
22223 hidden:
22224 .globl default
22225 .set default,hidden
22226 EOF
22227 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22228 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22229 grep '\.hidden default' > /dev/null; then
22230 gcc_cv_as_hidden=no
22231 else
22232 gcc_cv_as_hidden=yes
22233 fi
22234 else
22235 # Assume bug is present if objdump is missing.
22236 gcc_cv_as_hidden=no
22237 fi
22238 ;;
22239 *)
22240 gcc_cv_as_hidden=yes
22241 ;;
22242 esac
22243 else
22244 echo "configure: failed program was" >&5
22245 cat conftest.s >&5
22246 fi
22247 rm -f conftest.o conftest.s
22248 fi
22249 fi
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22251 $as_echo "$gcc_cv_as_hidden" >&6; }
22252
22253 case "${target}" in
22254 *-*-darwin*)
22255 # Darwin as has some visibility support, though with a different syntax.
22256 gcc_cv_as_hidden=yes
22257 ;;
22258 esac
22259
22260 # gnu_indirect_function type is an extension proposed at
22261 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22262 # selection of function implementation
22263 # Check whether --enable-gnu-indirect-function was given.
22264 if test "${enable_gnu_indirect_function+set}" = set; then :
22265 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22266 yes | no) ;;
22267 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22268 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22269 esac
22270 else
22271 enable_gnu_indirect_function="$default_gnu_indirect_function"
22272 fi
22273
22274 if test x$enable_gnu_indirect_function = xyes; then
22275
22276 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22277
22278 fi
22279
22280 if test $in_tree_ld != yes ; then
22281 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22282 if echo "$ld_ver" | grep GNU > /dev/null; then
22283 if test x"$ld_is_gold" = xyes; then
22284 # GNU gold --version looks like this:
22285 #
22286 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22287 #
22288 # We extract the binutils version which is more familiar and specific
22289 # than the gold version.
22290 ld_vers=`echo $ld_ver | sed -n \
22291 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22292 else
22293 # GNU ld --version looks like this:
22294 #
22295 # GNU ld (GNU Binutils) 2.21.51.20110225
22296 ld_vers=`echo $ld_ver | sed -n \
22297 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22298 fi
22299 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'`
22300 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22301 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22302 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22303 else
22304 case "${target}" in
22305 *-*-solaris2*)
22306 #
22307 # Solaris 2 ld -V output looks like this for a regular version:
22308 #
22309 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22310 #
22311 # but test versions add stuff at the end:
22312 #
22313 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22314 #
22315 ld_ver=`$gcc_cv_ld -V 2>&1`
22316 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22317 ld_vers=`echo $ld_ver | sed -n \
22318 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22319 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22320 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22321 fi
22322 ;;
22323 esac
22324 fi
22325 fi
22326
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22328 $as_echo_n "checking linker for .hidden support... " >&6; }
22329 if test "${gcc_cv_ld_hidden+set}" = set; then :
22330 $as_echo_n "(cached) " >&6
22331 else
22332 if test $in_tree_ld = yes ; then
22333 gcc_cv_ld_hidden=no
22334 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 \
22335 && test $in_tree_ld_is_elf = yes; then
22336 gcc_cv_ld_hidden=yes
22337 fi
22338 else
22339 gcc_cv_ld_hidden=yes
22340 if test x"$ld_is_gold" = xyes; then
22341 :
22342 elif echo "$ld_ver" | grep GNU > /dev/null; then
22343 if test 0"$ld_date" -lt 20020404; then
22344 if test -n "$ld_date"; then
22345 # If there was date string, but was earlier than 2002-04-04, fail
22346 gcc_cv_ld_hidden=no
22347 elif test -z "$ld_vers"; then
22348 # If there was no date string nor ld version number, something is wrong
22349 gcc_cv_ld_hidden=no
22350 else
22351 test -z "$ld_vers_patch" && ld_vers_patch=0
22352 if test "$ld_vers_major" -lt 2; then
22353 gcc_cv_ld_hidden=no
22354 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22355 gcc_cv_ld_hidden="no"
22356 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22357 gcc_cv_ld_hidden=no
22358 fi
22359 fi
22360 fi
22361 else
22362 case "${target}" in
22363 *-*-darwin*)
22364 # Darwin ld has some visibility support.
22365 gcc_cv_ld_hidden=yes
22366 ;;
22367 hppa64*-*-hpux* | ia64*-*-hpux*)
22368 gcc_cv_ld_hidden=yes
22369 ;;
22370 *-*-solaris2.8*)
22371 # .hidden support was backported to Solaris 8, starting with ld
22372 # version 1.276.
22373 if test "$ld_vers_minor" -ge 276; then
22374 gcc_cv_ld_hidden=yes
22375 else
22376 gcc_cv_ld_hidden=no
22377 fi
22378 ;;
22379 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22380 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22381 # .symbolic was only added in Solaris 9 12/02.
22382 gcc_cv_ld_hidden=yes
22383 ;;
22384 *)
22385 gcc_cv_ld_hidden=no
22386 ;;
22387 esac
22388 fi
22389 fi
22390 fi
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22392 $as_echo "$gcc_cv_ld_hidden" >&6; }
22393 libgcc_visibility=no
22394
22395
22396 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22397 libgcc_visibility=yes
22398
22399 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22400
22401 fi
22402
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22404 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22405 gcc_cv_ld_ro_rw_mix=unknown
22406 if test $in_tree_ld = yes ; then
22407 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 \
22408 && test $in_tree_ld_is_elf = yes; then
22409 gcc_cv_ld_ro_rw_mix=read-write
22410 fi
22411 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22412 echo '.section myfoosect, "a"' > conftest1.s
22413 echo '.section myfoosect, "aw"' > conftest2.s
22414 echo '.byte 1' >> conftest2.s
22415 echo '.section myfoosect, "a"' > conftest3.s
22416 echo '.byte 0' >> conftest3.s
22417 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22418 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22419 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22420 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22421 conftest2.o conftest3.o > /dev/null 2>&1; then
22422 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22423 | sed -e '/myfoosect/!d' -e N`
22424 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22425 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22426 gcc_cv_ld_ro_rw_mix=read-only
22427 else
22428 gcc_cv_ld_ro_rw_mix=read-write
22429 fi
22430 fi
22431 fi
22432 rm -f conftest.* conftest[123].*
22433 fi
22434 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22435
22436 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22437
22438 fi
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22440 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22441
22442 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22444 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22445 if test "${gcc_cv_as_leb128+set}" = set; then :
22446 $as_echo_n "(cached) " >&6
22447 else
22448 gcc_cv_as_leb128=no
22449 if test $in_tree_gas = yes; then
22450 if test $in_tree_gas_is_elf = yes \
22451 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22452 then gcc_cv_as_leb128=yes
22453 fi
22454 elif test x$gcc_cv_as != x; then
22455 $as_echo ' .data
22456 .uleb128 L2 - L1
22457 L1:
22458 .uleb128 1280
22459 .sleb128 -1010
22460 L2:' > conftest.s
22461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22463 (eval $ac_try) 2>&5
22464 ac_status=$?
22465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22466 test $ac_status = 0; }; }
22467 then
22468 # GAS versions before 2.11 do not support uleb128,
22469 # despite appearing to.
22470 # ??? There exists an elf-specific test that will crash
22471 # the assembler. Perhaps it's better to figure out whether
22472 # arbitrary sections are supported and try the test.
22473 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22474 if echo "$as_ver" | grep GNU > /dev/null; then
22475 as_vers=`echo $as_ver | sed -n \
22476 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22477 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22478 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22479 if test $as_major -eq 2 && test $as_minor -lt 11
22480 then :
22481 else gcc_cv_as_leb128=yes
22482 fi
22483 fi
22484 else
22485 echo "configure: failed program was" >&5
22486 cat conftest.s >&5
22487 fi
22488 rm -f conftest.o conftest.s
22489 fi
22490 fi
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22492 $as_echo "$gcc_cv_as_leb128" >&6; }
22493 if test $gcc_cv_as_leb128 = yes; then
22494
22495 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22496
22497 fi
22498
22499 # Check if we have assembler support for unwind directives.
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22501 $as_echo_n "checking assembler for cfi directives... " >&6; }
22502 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22503 $as_echo_n "(cached) " >&6
22504 else
22505 gcc_cv_as_cfi_directive=no
22506 if test x$gcc_cv_as != x; then
22507 $as_echo ' .text
22508 .cfi_startproc
22509 .cfi_offset 0, 0
22510 .cfi_same_value 1
22511 .cfi_def_cfa 1, 2
22512 .cfi_escape 1, 2, 3, 4, 5
22513 .cfi_endproc' > conftest.s
22514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22516 (eval $ac_try) 2>&5
22517 ac_status=$?
22518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22519 test $ac_status = 0; }; }
22520 then
22521 case "$target" in
22522 *-*-solaris*)
22523 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22524 # read-only and read-write sections, we need to make sure that the
22525 # assembler used emits read-write .eh_frame sections.
22526 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22527 if test "x$gcc_cv_objdump" != x; then
22528 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22529 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22530 gcc_cv_as_cfi_directive=no
22531 else
22532 case "$target" in
22533 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22534 # On Solaris/x86, make sure that GCC and gas agree on using
22535 # read-only .eh_frame sections for 64-bit.
22536 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22537 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22538 sed -e /.eh_frame/!d -e N | \
22539 grep READONLY > /dev/null; then
22540 gcc_cv_as_cfi_directive=yes
22541 else
22542 gcc_cv_as_cfi_directive=no
22543 fi
22544 ;;
22545 *)
22546 gcc_cv_as_cfi_directive=yes
22547 ;;
22548 esac
22549 fi
22550 else
22551 # no objdump, err on the side of caution
22552 gcc_cv_as_cfi_directive=no
22553 fi
22554 else
22555 gcc_cv_as_cfi_directive=yes
22556 fi
22557 ;;
22558 *-*-*)
22559 gcc_cv_as_cfi_directive=yes
22560 ;;
22561 esac
22562 else
22563 echo "configure: failed program was" >&5
22564 cat conftest.s >&5
22565 fi
22566 rm -f conftest.o conftest.s
22567 fi
22568 fi
22569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22570 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22571
22572 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22574 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22575 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22576 $as_echo_n "(cached) " >&6
22577 else
22578 gcc_cv_as_cfi_advance_working=no
22579 if test x$gcc_cv_as != x; then
22580 $as_echo ' .text
22581 .cfi_startproc
22582 .cfi_adjust_cfa_offset 64
22583 .skip 75040, 0
22584 .cfi_adjust_cfa_offset 128
22585 .cfi_endproc' > conftest.s
22586 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22588 (eval $ac_try) 2>&5
22589 ac_status=$?
22590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22591 test $ac_status = 0; }; }
22592 then
22593
22594 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22595 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22596 gcc_cv_as_cfi_advance_working=yes
22597 fi
22598
22599 else
22600 echo "configure: failed program was" >&5
22601 cat conftest.s >&5
22602 fi
22603 rm -f conftest.o conftest.s
22604 fi
22605 fi
22606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22607 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22608
22609 else
22610 # no objdump, err on the side of caution
22611 gcc_cv_as_cfi_advance_working=no
22612 fi
22613
22614
22615 cat >>confdefs.h <<_ACEOF
22616 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22617 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22618 _ACEOF
22619
22620
22621
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22623 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22624 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22625 $as_echo_n "(cached) " >&6
22626 else
22627 gcc_cv_as_cfi_personality_directive=no
22628 if test x$gcc_cv_as != x; then
22629 $as_echo ' .text
22630 .cfi_startproc
22631 .cfi_personality 0, symbol
22632 .cfi_endproc' > conftest.s
22633 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22635 (eval $ac_try) 2>&5
22636 ac_status=$?
22637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22638 test $ac_status = 0; }; }
22639 then
22640 gcc_cv_as_cfi_personality_directive=yes
22641 else
22642 echo "configure: failed program was" >&5
22643 cat conftest.s >&5
22644 fi
22645 rm -f conftest.o conftest.s
22646 fi
22647 fi
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22649 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22650
22651
22652 cat >>confdefs.h <<_ACEOF
22653 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22654 then echo 1; else echo 0; fi`
22655 _ACEOF
22656
22657
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22659 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22660 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22661 $as_echo_n "(cached) " >&6
22662 else
22663 gcc_cv_as_cfi_sections_directive=no
22664 if test x$gcc_cv_as != x; then
22665 $as_echo ' .text
22666 .cfi_sections .debug_frame, .eh_frame
22667 .cfi_startproc
22668 .cfi_endproc' > conftest.s
22669 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22671 (eval $ac_try) 2>&5
22672 ac_status=$?
22673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22674 test $ac_status = 0; }; }
22675 then
22676 case $target_os in
22677 win32 | pe | cygwin* | mingw32* | uwin*)
22678 # Need to check that we generated the correct relocation for the
22679 # .debug_frame section. This was fixed for binutils 2.21.
22680 gcc_cv_as_cfi_sections_directive=no
22681 if test "x$gcc_cv_objdump" != x; then
22682 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22683 grep secrel > /dev/null; then
22684 gcc_cv_as_cfi_sections_directive=yes
22685 fi
22686 fi
22687 ;;
22688 *)
22689 gcc_cv_as_cfi_sections_directive=yes
22690 ;;
22691 esac
22692 else
22693 echo "configure: failed program was" >&5
22694 cat conftest.s >&5
22695 fi
22696 rm -f conftest.o conftest.s
22697 fi
22698 fi
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22700 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22701
22702
22703
22704 cat >>confdefs.h <<_ACEOF
22705 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22706 then echo 1; else echo 0; fi`
22707 _ACEOF
22708
22709
22710 # GAS versions up to and including 2.11.0 may mis-optimize
22711 # .eh_frame data.
22712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22713 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22714 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22715 $as_echo_n "(cached) " >&6
22716 else
22717 gcc_cv_as_eh_frame=no
22718 if test $in_tree_gas = yes; then
22719 if test $in_tree_gas_is_elf = yes \
22720 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22721 then gcc_cv_as_eh_frame=yes
22722 fi
22723 elif test x$gcc_cv_as != x; then
22724 $as_echo ' .text
22725 .LFB1:
22726 .4byte 0
22727 .L1:
22728 .4byte 0
22729 .LFE1:
22730 .section .eh_frame,"aw",@progbits
22731 __FRAME_BEGIN__:
22732 .4byte .LECIE1-.LSCIE1
22733 .LSCIE1:
22734 .4byte 0x0
22735 .byte 0x1
22736 .ascii "z\0"
22737 .byte 0x1
22738 .byte 0x78
22739 .byte 0x1a
22740 .byte 0x0
22741 .byte 0x4
22742 .4byte 1
22743 .p2align 1
22744 .LECIE1:
22745 .LSFDE1:
22746 .4byte .LEFDE1-.LASFDE1
22747 .LASFDE1:
22748 .4byte .LASFDE1-__FRAME_BEGIN__
22749 .4byte .LFB1
22750 .4byte .LFE1-.LFB1
22751 .byte 0x4
22752 .4byte .LFE1-.LFB1
22753 .byte 0x4
22754 .4byte .L1-.LFB1
22755 .LEFDE1:' > conftest.s
22756 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22758 (eval $ac_try) 2>&5
22759 ac_status=$?
22760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22761 test $ac_status = 0; }; }
22762 then
22763 cat > conftest.lit <<EOF
22764 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22765 0010 01000000 12000000 18000000 00000000 ................
22766 0020 08000000 04080000 0044 .........D
22767 EOF
22768 cat > conftest.big <<EOF
22769 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22770 0010 00000001 00000012 00000018 00000000 ................
22771 0020 00000008 04000000 0844 .........D
22772 EOF
22773 # If the assembler didn't choke, and we can objdump,
22774 # and we got the correct data, then succeed.
22775 # The text in the here-document typically retains its unix-style line
22776 # endings, while the output of objdump will use host line endings.
22777 # Therefore, use diff -b for the comparisons.
22778 if test x$gcc_cv_objdump != x \
22779 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22780 | tail -3 > conftest.got \
22781 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22782 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22783 then
22784 gcc_cv_as_eh_frame=yes
22785 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22787 (eval $ac_try) 2>&5
22788 ac_status=$?
22789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22790 test $ac_status = 0; }; }; then
22791 gcc_cv_as_eh_frame=buggy
22792 else
22793 # Uh oh, what do we do now?
22794 gcc_cv_as_eh_frame=no
22795 fi
22796 else
22797 echo "configure: failed program was" >&5
22798 cat conftest.s >&5
22799 fi
22800 rm -f conftest.o conftest.s
22801 fi
22802 fi
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22804 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22805
22806
22807 if test $gcc_cv_as_eh_frame = buggy; then
22808
22809 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22810
22811 fi
22812
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22814 $as_echo_n "checking assembler for section merging support... " >&6; }
22815 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22816 $as_echo_n "(cached) " >&6
22817 else
22818 gcc_cv_as_shf_merge=no
22819 if test $in_tree_gas = yes; then
22820 if test $in_tree_gas_is_elf = yes \
22821 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22822 then gcc_cv_as_shf_merge=yes
22823 fi
22824 elif test x$gcc_cv_as != x; then
22825 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22826 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22828 (eval $ac_try) 2>&5
22829 ac_status=$?
22830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22831 test $ac_status = 0; }; }
22832 then
22833 gcc_cv_as_shf_merge=yes
22834 else
22835 echo "configure: failed program was" >&5
22836 cat conftest.s >&5
22837 fi
22838 rm -f conftest.o conftest.s
22839 fi
22840 fi
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22842 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22843
22844 if test $gcc_cv_as_shf_merge = no; then
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22846 $as_echo_n "checking assembler for section merging support... " >&6; }
22847 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22848 $as_echo_n "(cached) " >&6
22849 else
22850 gcc_cv_as_shf_merge=no
22851 if test $in_tree_gas = yes; then
22852 if test $in_tree_gas_is_elf = yes \
22853 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22854 then gcc_cv_as_shf_merge=yes
22855 fi
22856 elif test x$gcc_cv_as != x; then
22857 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22858 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22860 (eval $ac_try) 2>&5
22861 ac_status=$?
22862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22863 test $ac_status = 0; }; }
22864 then
22865 gcc_cv_as_shf_merge=yes
22866 else
22867 echo "configure: failed program was" >&5
22868 cat conftest.s >&5
22869 fi
22870 rm -f conftest.o conftest.s
22871 fi
22872 fi
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22874 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22875
22876 fi
22877
22878 cat >>confdefs.h <<_ACEOF
22879 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22880 _ACEOF
22881
22882
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22884 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22885 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22886 $as_echo_n "(cached) " >&6
22887 else
22888 gcc_cv_as_comdat_group=no
22889 if test $in_tree_gas = yes; then
22890 if test $in_tree_gas_is_elf = yes \
22891 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22892 then gcc_cv_as_comdat_group=yes
22893 fi
22894 elif test x$gcc_cv_as != x; then
22895 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22896 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22898 (eval $ac_try) 2>&5
22899 ac_status=$?
22900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22901 test $ac_status = 0; }; }
22902 then
22903 gcc_cv_as_comdat_group=yes
22904 else
22905 echo "configure: failed program was" >&5
22906 cat conftest.s >&5
22907 fi
22908 rm -f conftest.o conftest.s
22909 fi
22910 fi
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22912 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22913
22914 if test $gcc_cv_as_comdat_group = yes; then
22915 gcc_cv_as_comdat_group_percent=no
22916 gcc_cv_as_comdat_group_group=no
22917 else
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22919 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22920 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22921 $as_echo_n "(cached) " >&6
22922 else
22923 gcc_cv_as_comdat_group_percent=no
22924 if test $in_tree_gas = yes; then
22925 if test $in_tree_gas_is_elf = yes \
22926 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22927 then gcc_cv_as_comdat_group_percent=yes
22928 fi
22929 elif test x$gcc_cv_as != x; then
22930 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22931 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22933 (eval $ac_try) 2>&5
22934 ac_status=$?
22935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22936 test $ac_status = 0; }; }
22937 then
22938 gcc_cv_as_comdat_group_percent=yes
22939 else
22940 echo "configure: failed program was" >&5
22941 cat conftest.s >&5
22942 fi
22943 rm -f conftest.o conftest.s
22944 fi
22945 fi
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22947 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22948
22949 if test $gcc_cv_as_comdat_group_percent = yes; then
22950 gcc_cv_as_comdat_group_group=no
22951 else
22952 case "${target}" in
22953 # Sun as uses a completely different syntax.
22954 *-*-solaris2*)
22955 case "${target}" in
22956 sparc*-*-solaris2*)
22957 conftest_s='
22958 .group foo,".text%foo",#comdat
22959 .section ".text%foo", #alloc,#execinstr,#progbits
22960 .globl foo
22961 foo:
22962 '
22963 ;;
22964 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22965 conftest_s='
22966 .group foo,.text%foo,#comdat
22967 .section .text%foo, "ax", @progbits
22968 .globl foo
22969 foo:
22970 '
22971 ;;
22972 esac
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22974 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22975 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22976 $as_echo_n "(cached) " >&6
22977 else
22978 gcc_cv_as_comdat_group_group=no
22979 if test x$gcc_cv_as != x; then
22980 $as_echo "$conftest_s" > conftest.s
22981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22983 (eval $ac_try) 2>&5
22984 ac_status=$?
22985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22986 test $ac_status = 0; }; }
22987 then
22988 gcc_cv_as_comdat_group_group=yes
22989 else
22990 echo "configure: failed program was" >&5
22991 cat conftest.s >&5
22992 fi
22993 rm -f conftest.o conftest.s
22994 fi
22995 fi
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22997 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22998
22999 ;;
23000 esac
23001 fi
23002 fi
23003 if test x"$ld_is_gold" = xyes; then
23004 comdat_group=yes
23005 elif test $in_tree_ld = yes ; then
23006 comdat_group=no
23007 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 \
23008 && test $in_tree_ld_is_elf = yes; then
23009 comdat_group=yes
23010 fi
23011 elif echo "$ld_ver" | grep GNU > /dev/null; then
23012 comdat_group=yes
23013 if test 0"$ld_date" -lt 20050308; then
23014 if test -n "$ld_date"; then
23015 # If there was date string, but was earlier than 2005-03-08, fail
23016 comdat_group=no
23017 elif test "$ld_vers_major" -lt 2; then
23018 comdat_group=no
23019 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23020 comdat_group=no
23021 fi
23022 fi
23023 else
23024 case "${target}" in
23025 *-*-solaris2.1[1-9]*)
23026 comdat_group=no
23027 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23028 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23029 # version 1.688.
23030 #
23031 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23032 # least ld version 1.2267.
23033 if test "$ld_vers_major" -gt 1; then
23034 comdat_group=yes
23035 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23036 comdat_group=yes
23037 elif test "$ld_vers_minor" -ge 2267; then
23038 comdat_group=yes
23039 fi
23040 ;;
23041 *)
23042 # Assume linkers other than GNU ld don't support COMDAT group.
23043 comdat_group=no
23044 ;;
23045 esac
23046 fi
23047 # Allow overriding the automatic COMDAT group tests above.
23048 # Check whether --enable-comdat was given.
23049 if test "${enable_comdat+set}" = set; then :
23050 enableval=$enable_comdat; comdat_group="$enable_comdat"
23051 fi
23052
23053 if test $comdat_group = no; then
23054 gcc_cv_as_comdat_group=no
23055 gcc_cv_as_comdat_group_percent=no
23056 gcc_cv_as_comdat_group_group=no
23057 fi
23058
23059 cat >>confdefs.h <<_ACEOF
23060 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23061 || test $gcc_cv_as_comdat_group_percent = yes \
23062 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23063 _ACEOF
23064
23065
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23067 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23068 if test "${gcc_cv_as_discriminator+set}" = set; then :
23069 $as_echo_n "(cached) " >&6
23070 else
23071 gcc_cv_as_discriminator=no
23072 if test $in_tree_gas = yes; then
23073 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23074 then gcc_cv_as_discriminator=yes
23075 fi
23076 elif test x$gcc_cv_as != x; then
23077 $as_echo ' .text
23078 .file 1 "conf.c"
23079 .loc 1 1 0 discriminator 1' > conftest.s
23080 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23082 (eval $ac_try) 2>&5
23083 ac_status=$?
23084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23085 test $ac_status = 0; }; }
23086 then
23087 gcc_cv_as_discriminator=yes
23088 else
23089 echo "configure: failed program was" >&5
23090 cat conftest.s >&5
23091 fi
23092 rm -f conftest.o conftest.s
23093 fi
23094 fi
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23096 $as_echo "$gcc_cv_as_discriminator" >&6; }
23097 if test $gcc_cv_as_discriminator = yes; then
23098
23099 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23100
23101 fi
23102
23103 # Thread-local storage - the check is heavily parameterized.
23104 conftest_s=
23105 tls_first_major=
23106 tls_first_minor=
23107 tls_as_opt=
23108 case "$target" in
23109 alpha*-*-*)
23110 conftest_s='
23111 .section ".tdata","awT",@progbits
23112 foo: .long 25
23113 .text
23114 ldq $27,__tls_get_addr($29) !literal!1
23115 lda $16,foo($29) !tlsgd!1
23116 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23117 ldq $27,__tls_get_addr($29) !literal!2
23118 lda $16,foo($29) !tlsldm!2
23119 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23120 ldq $1,foo($29) !gotdtprel
23121 ldah $2,foo($29) !dtprelhi
23122 lda $3,foo($2) !dtprello
23123 lda $4,foo($29) !dtprel
23124 ldq $1,foo($29) !gottprel
23125 ldah $2,foo($29) !tprelhi
23126 lda $3,foo($2) !tprello
23127 lda $4,foo($29) !tprel'
23128 tls_first_major=2
23129 tls_first_minor=13
23130 tls_as_opt=--fatal-warnings
23131 ;;
23132 cris-*-*|crisv32-*-*)
23133 conftest_s='
23134 .section ".tdata","awT",@progbits
23135 x: .long 25
23136 .text
23137 move.d x:IE,$r10
23138 nop'
23139 tls_first_major=2
23140 tls_first_minor=20
23141 tls_as_opt=--fatal-warnings
23142 ;;
23143 frv*-*-*)
23144 conftest_s='
23145 .section ".tdata","awT",@progbits
23146 x: .long 25
23147 .text
23148 call #gettlsoff(x)'
23149 tls_first_major=2
23150 tls_first_minor=14
23151 ;;
23152 hppa*-*-linux*)
23153 conftest_s='
23154 t1: .reg %r20
23155 t2: .reg %r21
23156 gp: .reg %r19
23157 .section ".tdata","awT",@progbits
23158 foo: .long 25
23159 .text
23160 .align 4
23161 addil LT%foo-$tls_gdidx$,gp
23162 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23163 b __tls_get_addr
23164 nop
23165 addil LT%foo-$tls_ldidx$,gp
23166 b __tls_get_addr
23167 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23168 addil LR%foo-$tls_dtpoff$,%ret0
23169 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23170 mfctl %cr27,%t1
23171 addil LT%foo-$tls_ieoff$,gp
23172 ldw RT%foo-$tls_ieoff$(%r1),%t2
23173 add %t1,%t2,%t3
23174 mfctl %cr27,%t1
23175 addil LR%foo-$tls_leoff$,%t1
23176 ldo RR%foo-$tls_leoff$(%r1),%t2'
23177 tls_first_major=2
23178 tls_first_minor=15
23179 tls_as_opt=--fatal-warnings
23180 ;;
23181 arm*-*-*)
23182 conftest_s='
23183 .section ".tdata","awT",%progbits
23184 foo: .long 25
23185 .text
23186 .word foo(gottpoff)
23187 .word foo(tpoff)
23188 .word foo(tlsgd)
23189 .word foo(tlsldm)
23190 .word foo(tlsldo)'
23191 tls_first_major=2
23192 tls_first_minor=17
23193 ;;
23194 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23195 case "$target" in
23196 i[34567]86-*-solaris2.*)
23197 on_solaris=yes
23198 tga_func=___tls_get_addr
23199 ;;
23200 x86_64-*-solaris2.1[0-9]*)
23201 on_solaris=yes
23202 tga_func=__tls_get_addr
23203 ;;
23204 *)
23205 on_solaris=no
23206 ;;
23207 esac
23208 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23209 conftest_s='
23210 .section .tdata,"awt",@progbits'
23211 tls_first_major=0
23212 tls_first_minor=0
23213
23214 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23215
23216 else
23217 conftest_s='
23218 .section ".tdata","awT",@progbits'
23219 tls_first_major=2
23220 tls_first_minor=14
23221 tls_as_opt="--fatal-warnings"
23222 fi
23223 conftest_s="$conftest_s
23224 foo: .long 25
23225 .text
23226 movl %gs:0, %eax
23227 leal foo@tlsgd(,%ebx,1), %eax
23228 leal foo@tlsldm(%ebx), %eax
23229 leal foo@dtpoff(%eax), %edx
23230 movl foo@gottpoff(%ebx), %eax
23231 subl foo@gottpoff(%ebx), %eax
23232 addl foo@gotntpoff(%ebx), %eax
23233 movl foo@indntpoff, %eax
23234 movl \$foo@tpoff, %eax
23235 subl \$foo@tpoff, %eax
23236 leal foo@ntpoff(%ecx), %eax"
23237 ;;
23238 x86_64-*-*)
23239 conftest_s='
23240 .section ".tdata","awT",@progbits
23241 foo: .long 25
23242 .text
23243 movq %fs:0, %rax
23244 leaq foo@TLSGD(%rip), %rdi
23245 leaq foo@TLSLD(%rip), %rdi
23246 leaq foo@DTPOFF(%rax), %rdx
23247 movq foo@GOTTPOFF(%rip), %rax
23248 movq $foo@TPOFF, %rax'
23249 tls_first_major=2
23250 tls_first_minor=14
23251 tls_as_opt=--fatal-warnings
23252 ;;
23253 ia64-*-*)
23254 conftest_s='
23255 .section ".tdata","awT",@progbits
23256 foo: data8 25
23257 .text
23258 addl r16 = @ltoff(@dtpmod(foo#)), gp
23259 addl r17 = @ltoff(@dtprel(foo#)), gp
23260 addl r18 = @ltoff(@tprel(foo#)), gp
23261 addl r19 = @dtprel(foo#), gp
23262 adds r21 = @dtprel(foo#), r13
23263 movl r23 = @dtprel(foo#)
23264 addl r20 = @tprel(foo#), gp
23265 adds r22 = @tprel(foo#), r13
23266 movl r24 = @tprel(foo#)'
23267 tls_first_major=2
23268 tls_first_minor=13
23269 tls_as_opt=--fatal-warnings
23270 ;;
23271 mips*-*-*)
23272 conftest_s='
23273 .section .tdata,"awT",@progbits
23274 x:
23275 .word 2
23276 .text
23277 addiu $4, $28, %tlsgd(x)
23278 addiu $4, $28, %tlsldm(x)
23279 lui $4, %dtprel_hi(x)
23280 addiu $4, $4, %dtprel_lo(x)
23281 lw $4, %gottprel(x)($28)
23282 lui $4, %tprel_hi(x)
23283 addiu $4, $4, %tprel_lo(x)'
23284 tls_first_major=2
23285 tls_first_minor=16
23286 tls_as_opt='-32 --fatal-warnings'
23287 ;;
23288 m68k-*-*)
23289 conftest_s='
23290 .section .tdata,"awT",@progbits
23291 x:
23292 .word 2
23293 .text
23294 foo:
23295 move.l x@TLSGD(%a5),%a0
23296 move.l x@TLSLDM(%a5),%a0
23297 move.l x@TLSLDO(%a5),%a0
23298 move.l x@TLSIE(%a5),%a0
23299 move.l x@TLSLE(%a5),%a0'
23300 tls_first_major=2
23301 tls_first_minor=19
23302 tls_as_opt='--fatal-warnings'
23303 ;;
23304 powerpc-*-*)
23305 conftest_s='
23306 .section ".tdata","awT",@progbits
23307 .align 2
23308 ld0: .space 4
23309 ld1: .space 4
23310 x1: .space 4
23311 x2: .space 4
23312 x3: .space 4
23313 .text
23314 addi 3,31,ld0@got@tlsgd
23315 bl __tls_get_addr
23316 addi 3,31,x1@got@tlsld
23317 bl __tls_get_addr
23318 addi 9,3,x1@dtprel
23319 addis 9,3,x2@dtprel@ha
23320 addi 9,9,x2@dtprel@l
23321 lwz 9,x3@got@tprel(31)
23322 add 9,9,x@tls
23323 addi 9,2,x1@tprel
23324 addis 9,2,x2@tprel@ha
23325 addi 9,9,x2@tprel@l'
23326 tls_first_major=2
23327 tls_first_minor=14
23328 tls_as_opt="-a32 --fatal-warnings"
23329 ;;
23330 powerpc64-*-*)
23331 conftest_s='
23332 .section ".tdata","awT",@progbits
23333 .align 3
23334 ld0: .space 8
23335 ld1: .space 8
23336 x1: .space 8
23337 x2: .space 8
23338 x3: .space 8
23339 .text
23340 addi 3,2,ld0@got@tlsgd
23341 bl .__tls_get_addr
23342 nop
23343 addi 3,2,ld1@toc
23344 bl .__tls_get_addr
23345 nop
23346 addi 3,2,x1@got@tlsld
23347 bl .__tls_get_addr
23348 nop
23349 addi 9,3,x1@dtprel
23350 bl .__tls_get_addr
23351 nop
23352 addis 9,3,x2@dtprel@ha
23353 addi 9,9,x2@dtprel@l
23354 bl .__tls_get_addr
23355 nop
23356 ld 9,x3@got@dtprel(2)
23357 add 9,9,3
23358 bl .__tls_get_addr
23359 nop'
23360 tls_first_major=2
23361 tls_first_minor=14
23362 tls_as_opt="-a64 --fatal-warnings"
23363 ;;
23364 s390-*-*)
23365 conftest_s='
23366 .section ".tdata","awT",@progbits
23367 foo: .long 25
23368 .text
23369 .long foo@TLSGD
23370 .long foo@TLSLDM
23371 .long foo@DTPOFF
23372 .long foo@NTPOFF
23373 .long foo@GOTNTPOFF
23374 .long foo@INDNTPOFF
23375 l %r1,foo@GOTNTPOFF(%r12)
23376 l %r1,0(%r1):tls_load:foo
23377 bas %r14,0(%r1,%r13):tls_gdcall:foo
23378 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23379 tls_first_major=2
23380 tls_first_minor=14
23381 tls_as_opt="-m31 --fatal-warnings"
23382 ;;
23383 s390x-*-*)
23384 conftest_s='
23385 .section ".tdata","awT",@progbits
23386 foo: .long 25
23387 .text
23388 .quad foo@TLSGD
23389 .quad foo@TLSLDM
23390 .quad foo@DTPOFF
23391 .quad foo@NTPOFF
23392 .quad foo@GOTNTPOFF
23393 lg %r1,foo@GOTNTPOFF(%r12)
23394 larl %r1,foo@INDNTPOFF
23395 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23396 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23397 tls_first_major=2
23398 tls_first_minor=14
23399 tls_as_opt="-m64 -Aesame --fatal-warnings"
23400 ;;
23401 sh-*-* | sh[34]-*-*)
23402 conftest_s='
23403 .section ".tdata","awT",@progbits
23404 foo: .long 25
23405 .text
23406 .long foo@TLSGD
23407 .long foo@TLSLDM
23408 .long foo@DTPOFF
23409 .long foo@GOTTPOFF
23410 .long foo@TPOFF'
23411 tls_first_major=2
23412 tls_first_minor=13
23413 tls_as_opt=--fatal-warnings
23414 ;;
23415 sparc*-*-*)
23416 case "$target" in
23417 sparc*-sun-solaris2.*)
23418 on_solaris=yes
23419 tga_func=__tls_get_addr
23420 ;;
23421 *)
23422 on_solaris=no
23423 ;;
23424 esac
23425 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23426 conftest_s='
23427 .section ".tdata",#alloc,#write,#tls'
23428 tls_first_major=0
23429 tls_first_minor=0
23430 else
23431 conftest_s='
23432 .section ".tdata","awT",@progbits'
23433 tls_first_major=2
23434 tls_first_minor=14
23435 tls_as_opt="-32 --fatal-warnings"
23436 fi
23437 conftest_s="$conftest_s
23438 foo: .long 25
23439 .text
23440 sethi %tgd_hi22(foo), %o0
23441 add %o0, %tgd_lo10(foo), %o1
23442 add %l7, %o1, %o0, %tgd_add(foo)
23443 call __tls_get_addr, %tgd_call(foo)
23444 sethi %tldm_hi22(foo), %l1
23445 add %l1, %tldm_lo10(foo), %l2
23446 add %l7, %l2, %o0, %tldm_add(foo)
23447 call __tls_get_addr, %tldm_call(foo)
23448 sethi %tldo_hix22(foo), %l3
23449 xor %l3, %tldo_lox10(foo), %l4
23450 add %o0, %l4, %l5, %tldo_add(foo)
23451 sethi %tie_hi22(foo), %o3
23452 add %o3, %tie_lo10(foo), %o3
23453 ld [%l7 + %o3], %o2, %tie_ld(foo)
23454 add %g7, %o2, %o4, %tie_add(foo)
23455 sethi %tle_hix22(foo), %l1
23456 xor %l1, %tle_lox10(foo), %o5
23457 ld [%g7 + %o5], %o1"
23458 ;;
23459 xtensa*-*-*)
23460 conftest_s='
23461 .section ".tdata","awT",@progbits
23462 foo: .long 25
23463 .text
23464 movi a8, foo@TLSFUNC
23465 movi a10, foo@TLSARG
23466 callx8.tls a8, foo@TLSCALL'
23467 tls_first_major=2
23468 tls_first_minor=19
23469 ;;
23470 esac
23471 set_have_as_tls=no
23472 if test "x$enable_tls" = xno ; then
23473 : # TLS explicitly disabled.
23474 elif test "x$enable_tls" = xyes ; then
23475 set_have_as_tls=yes # TLS explicitly enabled.
23476 elif test -z "$tls_first_major"; then
23477 : # If we don't have a check, assume no support.
23478 else
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23480 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23481 if test "${gcc_cv_as_tls+set}" = set; then :
23482 $as_echo_n "(cached) " >&6
23483 else
23484 gcc_cv_as_tls=no
23485 if test $in_tree_gas = yes; then
23486 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23487 then gcc_cv_as_tls=yes
23488 fi
23489 elif test x$gcc_cv_as != x; then
23490 $as_echo "$conftest_s" > conftest.s
23491 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23493 (eval $ac_try) 2>&5
23494 ac_status=$?
23495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23496 test $ac_status = 0; }; }
23497 then
23498 gcc_cv_as_tls=yes
23499 else
23500 echo "configure: failed program was" >&5
23501 cat conftest.s >&5
23502 fi
23503 rm -f conftest.o conftest.s
23504 fi
23505 fi
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23507 $as_echo "$gcc_cv_as_tls" >&6; }
23508 if test $gcc_cv_as_tls = yes; then
23509 set_have_as_tls=yes
23510 fi
23511 fi
23512 case "$target" in
23513 *-*-irix6*)
23514 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23515 # with TLS support are in use, native TLS cannot work.
23516 set_have_as_tls=no
23517 ;;
23518 *-*-osf*)
23519 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23520 # gld with TLS support are in use, native TLS cannot work.
23521 set_have_as_tls=no
23522 ;;
23523 # TLS was introduced in the Solaris 9 FCS release and backported to
23524 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23525 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23526 # ld and GCC don't support any longer.
23527 *-*-solaris2.*)
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23529 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23530 ld_tls_support=no
23531 # Check ld and ld.so.1 TLS support.
23532 if echo "$ld_ver" | grep GNU > /dev/null; then
23533 # Assume all interesting versions of GNU ld have TLS support.
23534 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23535 ld_tls_support=yes
23536 else
23537 case "$target" in
23538 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23539 i?86-*-solaris2.8)
23540 min_tls_ld_vers_minor=280
23541 ;;
23542 # Solaris 8/SPARC ld has TLS support since version 1.272.
23543 sparc*-*-solaris2.8)
23544 min_tls_ld_vers_minor=272
23545 ;;
23546 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23547 i?86-*-solaris2.9)
23548 min_tls_ld_vers_minor=374
23549 ;;
23550 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23551 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23552 min_tls_ld_vers_minor=343
23553 ;;
23554 esac
23555 if test "$ld_vers_major" -gt 1 || \
23556 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23557 ld_tls_support=yes
23558 else
23559 set_have_as_tls=no
23560 fi
23561 fi
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23563 $as_echo "$ld_tls_support" >&6; }
23564
23565 save_LIBS="$LIBS"
23566 save_LDFLAGS="$LDFLAGS"
23567 LIBS=
23568 LDFLAGS=
23569
23570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23571 $as_echo_n "checking alternate thread library... " >&6; }
23572 case "$target" in
23573 # TLS support was backported to Solaris 8 patches, but only lives in
23574 # the alternate thread library which became the default in Solaris 9.
23575 # We want to always use that, irrespective of TLS support.
23576 *-*-solaris2.8)
23577 # Take multilib subdir into account. There's no spec to handle
23578 # this. The 64 symlink exists since Solaris 8.
23579 lwp_dir=/usr/lib/lwp
23580 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23581 LDFLAGS="-L$lwp_dir -R$lwp_dir"
23582 ;;
23583 *-*-solaris2*)
23584 lwp_dir="none"
23585 lwp_spec=""
23586 ;;
23587 esac
23588 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23589
23590 cat >>confdefs.h <<_ACEOF
23591 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23592 _ACEOF
23593
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23595 $as_echo "$lwp_dir" >&6; }
23596
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23598 $as_echo_n "checking library containing $tga_func... " >&6; }
23599 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23600 # (32-bit x86) only lived in libthread, so check for that. Keep
23601 # set_have_as_tls if found, disable if not.
23602 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23604 $as_echo_n "checking for library containing $tga_func... " >&6; }
23605 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23606 $as_echo_n "(cached) " >&6
23607 else
23608 ac_func_search_save_LIBS=$LIBS
23609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23610 /* end confdefs.h. */
23611
23612 /* Override any GCC internal prototype to avoid an error.
23613 Use char because int might match the return type of a GCC
23614 builtin and then its argument prototype would still apply. */
23615 #ifdef __cplusplus
23616 extern "C"
23617 #endif
23618 char $tga_func ();
23619 int
23620 main ()
23621 {
23622 return $tga_func ();
23623 ;
23624 return 0;
23625 }
23626 _ACEOF
23627 for ac_lib in '' thread; do
23628 if test -z "$ac_lib"; then
23629 ac_res="none required"
23630 else
23631 ac_res=-l$ac_lib
23632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23633 fi
23634 if ac_fn_c_try_link "$LINENO"; then :
23635 eval "$as_ac_Search=\$ac_res"
23636 fi
23637 rm -f core conftest.err conftest.$ac_objext \
23638 conftest$ac_exeext
23639 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23640 break
23641 fi
23642 done
23643 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23644
23645 else
23646 eval "$as_ac_Search=no"
23647 fi
23648 rm conftest.$ac_ext
23649 LIBS=$ac_func_search_save_LIBS
23650 fi
23651 eval ac_res=\$$as_ac_Search
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23653 $as_echo "$ac_res" >&6; }
23654 eval ac_res=\$$as_ac_Search
23655 if test "$ac_res" != no; then :
23656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23657
23658 else
23659 set_have_as_tls=no
23660 fi
23661
23662 # Clear LIBS if we cannot support TLS.
23663 if test $set_have_as_tls = no; then
23664 LIBS=
23665 fi
23666 # Always define LIB_TLS_SPEC, even without TLS support.
23667
23668 cat >>confdefs.h <<_ACEOF
23669 #define LIB_TLS_SPEC "$LIBS"
23670 _ACEOF
23671
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23673 $as_echo "$LIBS" >&6; }
23674
23675 LIBS="$save_LIBS"
23676 LDFLAGS="$save_LDFLAGS"
23677 ;;
23678 esac
23679 if test $set_have_as_tls = yes ; then
23680
23681 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23682
23683 fi
23684
23685 # Target-specific assembler checks.
23686
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23688 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23689 gcc_cv_ld_static_dynamic=no
23690 gcc_cv_ld_static_option='-Bstatic'
23691 gcc_cv_ld_dynamic_option='-Bdynamic'
23692 if test $in_tree_ld = yes ; then
23693 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
23694 gcc_cv_ld_static_dynamic=yes
23695 fi
23696 elif test x$gcc_cv_ld != x; then
23697 # Check if linker supports -Bstatic/-Bdynamic option
23698 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23699 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23700 gcc_cv_ld_static_dynamic=yes
23701 else
23702 case "$target" in
23703 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23704 alpha*-dec-osf*)
23705 gcc_cv_ld_static_dynamic=yes
23706 gcc_cv_ld_static_option="-noso"
23707 gcc_cv_ld_dynamic_option="-so_archive"
23708 ;;
23709 # HP-UX ld uses -a flags to select between shared and archive.
23710 *-*-hpux*)
23711 if test x"$gnu_ld" = xno; then
23712 gcc_cv_ld_static_dynamic=yes
23713 gcc_cv_ld_static_option="-aarchive_shared"
23714 gcc_cv_ld_dynamic_option="-adefault"
23715 fi
23716 ;;
23717 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23718 mips-sgi-irix6*)
23719 gcc_cv_ld_static_dynamic=yes
23720 ;;
23721 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23722 *-*-solaris2*)
23723 gcc_cv_ld_static_dynamic=yes
23724 ;;
23725 esac
23726 fi
23727 fi
23728 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23729
23730 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23731
23732
23733 cat >>confdefs.h <<_ACEOF
23734 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23735 _ACEOF
23736
23737
23738 cat >>confdefs.h <<_ACEOF
23739 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23740 _ACEOF
23741
23742 fi
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23744 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23745
23746 if test x"$demangler_in_ld" = xyes; then
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23748 $as_echo_n "checking linker --demangle support... " >&6; }
23749 gcc_cv_ld_demangle=no
23750 if test $in_tree_ld = yes; then
23751 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 \
23752 gcc_cv_ld_demangle=yes
23753 fi
23754 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23755 # Check if the GNU linker supports --demangle option
23756 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23757 gcc_cv_ld_demangle=yes
23758 fi
23759 fi
23760 if test x"$gcc_cv_ld_demangle" = xyes; then
23761
23762 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23763
23764 fi
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23766 $as_echo "$gcc_cv_ld_demangle" >&6; }
23767 fi
23768
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23770 $as_echo_n "checking linker plugin support... " >&6; }
23771 gcc_cv_lto_plugin=0
23772 if test -f liblto_plugin.la; then
23773 save_ld_ver="$ld_ver"
23774 save_ld_vers_major="$ld_vers_major"
23775 save_ld_vers_minor="$ld_vers_minor"
23776 save_ld_is_gold="$ld_is_gold"
23777
23778 ld_is_gold=no
23779
23780 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23781 ld_ver="GNU ld"
23782 # FIXME: ld_is_gold?
23783 ld_vers_major="$gcc_cv_gld_major_version"
23784 ld_vers_minor="$gcc_cv_gld_minor_version"
23785 else
23786 # Determine plugin linker version.
23787 # FIXME: Partial duplicate from above, generalize.
23788 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23789 if echo "$ld_ver" | grep GNU > /dev/null; then
23790 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23791 ld_is_gold=yes
23792 ld_vers=`echo $ld_ver | sed -n \
23793 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23794 else
23795 ld_vers=`echo $ld_ver | sed -n \
23796 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23797 fi
23798 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23799 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23800 fi
23801 fi
23802
23803 # Determine plugin support.
23804 if echo "$ld_ver" | grep GNU > /dev/null; then
23805 # Require GNU ld or gold 2.21+ for plugin support by default.
23806 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23807 gcc_cv_lto_plugin=2
23808 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23809 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23810 gcc_cv_lto_plugin=1
23811 fi
23812 fi
23813
23814 ld_ver="$save_ld_ver"
23815 ld_vers_major="$save_ld_vers_major"
23816 ld_vers_minor="$save_ld_vers_minor"
23817 ld_is_gold="$save_ld_is_gold"
23818 fi
23819
23820 cat >>confdefs.h <<_ACEOF
23821 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23822 _ACEOF
23823
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23825 $as_echo "$gcc_cv_lto_plugin" >&6; }
23826
23827 case "$target" in
23828 # All TARGET_ABI_OSF targets.
23829 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23831 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23832 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23833 $as_echo_n "(cached) " >&6
23834 else
23835 gcc_cv_as_alpha_explicit_relocs=no
23836 if test $in_tree_gas = yes; then
23837 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23838 then gcc_cv_as_alpha_explicit_relocs=yes
23839 fi
23840 elif test x$gcc_cv_as != x; then
23841 $as_echo ' .set nomacro
23842 .text
23843 extbl $3, $2, $3 !lituse_bytoff!1
23844 ldq $2, a($29) !literal!1
23845 ldq $4, b($29) !literal!2
23846 ldq_u $3, 0($2) !lituse_base!1
23847 ldq $27, f($29) !literal!5
23848 jsr $26, ($27), f !lituse_jsr!5
23849 ldah $29, 0($26) !gpdisp!3
23850 lda $0, c($29) !gprel
23851 ldah $1, d($29) !gprelhigh
23852 lda $1, d($1) !gprellow
23853 lda $29, 0($29) !gpdisp!3' > conftest.s
23854 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23856 (eval $ac_try) 2>&5
23857 ac_status=$?
23858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23859 test $ac_status = 0; }; }
23860 then
23861 gcc_cv_as_alpha_explicit_relocs=yes
23862 else
23863 echo "configure: failed program was" >&5
23864 cat conftest.s >&5
23865 fi
23866 rm -f conftest.o conftest.s
23867 fi
23868 fi
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23870 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23871 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23872
23873 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23874
23875 fi
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23877 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23878 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23879 $as_echo_n "(cached) " >&6
23880 else
23881 gcc_cv_as_alpha_jsrdirect_relocs=no
23882 if test $in_tree_gas = yes; then
23883 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23884 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23885 fi
23886 elif test x$gcc_cv_as != x; then
23887 $as_echo ' .set nomacro
23888 .text
23889 ldq $27, a($29) !literal!1
23890 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23891 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23893 (eval $ac_try) 2>&5
23894 ac_status=$?
23895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23896 test $ac_status = 0; }; }
23897 then
23898 gcc_cv_as_alpha_jsrdirect_relocs=yes
23899 else
23900 echo "configure: failed program was" >&5
23901 cat conftest.s >&5
23902 fi
23903 rm -f conftest.o conftest.s
23904 fi
23905 fi
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23907 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23908 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23909
23910 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23911
23912 fi
23913 ;;
23914
23915 cris-*-*)
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23917 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23918 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23919 $as_echo_n "(cached) " >&6
23920 else
23921 gcc_cv_as_cris_no_mul_bug=no
23922 if test $in_tree_gas = yes; then
23923 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23924 then gcc_cv_as_cris_no_mul_bug=yes
23925 fi
23926 elif test x$gcc_cv_as != x; then
23927 $as_echo '.text' > conftest.s
23928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23930 (eval $ac_try) 2>&5
23931 ac_status=$?
23932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23933 test $ac_status = 0; }; }
23934 then
23935 gcc_cv_as_cris_no_mul_bug=yes
23936 else
23937 echo "configure: failed program was" >&5
23938 cat conftest.s >&5
23939 fi
23940 rm -f conftest.o conftest.s
23941 fi
23942 fi
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23944 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23945 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23946
23947 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23948
23949 fi
23950 ;;
23951
23952 sparc*-*-*)
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23954 $as_echo_n "checking assembler for .register... " >&6; }
23955 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23956 $as_echo_n "(cached) " >&6
23957 else
23958 gcc_cv_as_sparc_register_op=no
23959 if test x$gcc_cv_as != x; then
23960 $as_echo '.register %g2, #scratch' > conftest.s
23961 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23963 (eval $ac_try) 2>&5
23964 ac_status=$?
23965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23966 test $ac_status = 0; }; }
23967 then
23968 gcc_cv_as_sparc_register_op=yes
23969 else
23970 echo "configure: failed program was" >&5
23971 cat conftest.s >&5
23972 fi
23973 rm -f conftest.o conftest.s
23974 fi
23975 fi
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23977 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23978 if test $gcc_cv_as_sparc_register_op = yes; then
23979
23980 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23981
23982 fi
23983
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23985 $as_echo_n "checking assembler for -relax option... " >&6; }
23986 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23987 $as_echo_n "(cached) " >&6
23988 else
23989 gcc_cv_as_sparc_relax=no
23990 if test x$gcc_cv_as != x; then
23991 $as_echo '.text' > conftest.s
23992 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23994 (eval $ac_try) 2>&5
23995 ac_status=$?
23996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23997 test $ac_status = 0; }; }
23998 then
23999 gcc_cv_as_sparc_relax=yes
24000 else
24001 echo "configure: failed program was" >&5
24002 cat conftest.s >&5
24003 fi
24004 rm -f conftest.o conftest.s
24005 fi
24006 fi
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24008 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24009 if test $gcc_cv_as_sparc_relax = yes; then
24010
24011 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24012
24013 fi
24014
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24016 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24017 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24018 $as_echo_n "(cached) " >&6
24019 else
24020 gcc_cv_as_sparc_gotdata_op=no
24021 if test x$gcc_cv_as != x; then
24022 $as_echo '.text
24023 .align 4
24024 foo:
24025 nop
24026 bar:
24027 sethi %gdop_hix22(foo), %g1
24028 xor %g1, %gdop_lox10(foo), %g1
24029 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24030 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24032 (eval $ac_try) 2>&5
24033 ac_status=$?
24034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24035 test $ac_status = 0; }; }
24036 then
24037 if test x$gcc_cv_ld != x \
24038 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24039 if test x$gcc_cv_objdump != x; then
24040 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24041 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24042 gcc_cv_as_sparc_gotdata_op=no
24043 else
24044 gcc_cv_as_sparc_gotdata_op=yes
24045 fi
24046 fi
24047 fi
24048 rm -f conftest
24049 else
24050 echo "configure: failed program was" >&5
24051 cat conftest.s >&5
24052 fi
24053 rm -f conftest.o conftest.s
24054 fi
24055 fi
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24057 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24058 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24059
24060 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24061
24062 fi
24063
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24065 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24066 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24067 $as_echo_n "(cached) " >&6
24068 else
24069 gcc_cv_as_sparc_ua_pcrel=no
24070 if test x$gcc_cv_as != x; then
24071 $as_echo '.text
24072 foo:
24073 nop
24074 .data
24075 .align 4
24076 .byte 0
24077 .uaword %r_disp32(foo)' > conftest.s
24078 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24080 (eval $ac_try) 2>&5
24081 ac_status=$?
24082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24083 test $ac_status = 0; }; }
24084 then
24085 if test x$gcc_cv_ld != x \
24086 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24087 gcc_cv_as_sparc_ua_pcrel=yes
24088 fi
24089 rm -f conftest
24090 else
24091 echo "configure: failed program was" >&5
24092 cat conftest.s >&5
24093 fi
24094 rm -f conftest.o conftest.s
24095 fi
24096 fi
24097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24098 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24099 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24100
24101 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24102
24103
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24105 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24106 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24107 $as_echo_n "(cached) " >&6
24108 else
24109 gcc_cv_as_sparc_ua_pcrel_hidden=no
24110 if test x$gcc_cv_as != x; then
24111 $as_echo '.data
24112 .align 4
24113 .byte 0x31
24114 .uaword %r_disp32(foo)
24115 .byte 0x32, 0x33, 0x34
24116 .global foo
24117 .hidden foo
24118 foo:
24119 .skip 4' > conftest.s
24120 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24122 (eval $ac_try) 2>&5
24123 ac_status=$?
24124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24125 test $ac_status = 0; }; }
24126 then
24127 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24128 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24129 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24130 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24131 if $gcc_cv_objdump -R conftest 2> /dev/null \
24132 | grep 'DISP32' > /dev/null 2>&1; then
24133 :
24134 else
24135 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24136 fi
24137 fi
24138 rm -f conftest
24139 else
24140 echo "configure: failed program was" >&5
24141 cat conftest.s >&5
24142 fi
24143 rm -f conftest.o conftest.s
24144 fi
24145 fi
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24147 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24148 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24149
24150 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24151
24152 fi
24153
24154 fi # unaligned pcrel relocs
24155
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24157 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24158 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24159 $as_echo_n "(cached) " >&6
24160 else
24161 gcc_cv_as_sparc_offsetable_lo10=no
24162 if test x$gcc_cv_as != x; then
24163 $as_echo '.text
24164 or %g1, %lo(ab) + 12, %g1
24165 or %g1, %lo(ab + 12), %g1' > conftest.s
24166 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24168 (eval $ac_try) 2>&5
24169 ac_status=$?
24170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24171 test $ac_status = 0; }; }
24172 then
24173 if test x$gcc_cv_objdump != x \
24174 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24175 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24176 gcc_cv_as_sparc_offsetable_lo10=yes
24177 fi
24178 else
24179 echo "configure: failed program was" >&5
24180 cat conftest.s >&5
24181 fi
24182 rm -f conftest.o conftest.s
24183 fi
24184 fi
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24186 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24187 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24188
24189 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24190
24191 fi
24192
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24194 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24195 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24196 $as_echo_n "(cached) " >&6
24197 else
24198 gcc_cv_as_sparc_fmaf=no
24199 if test x$gcc_cv_as != x; then
24200 $as_echo '.text
24201 .register %g2, #scratch
24202 .register %g3, #scratch
24203 .align 4
24204 fmaddd %f0, %f2, %f4, %f6
24205 addxccc %g1, %g2, %g3
24206 fsrl32 %f2, %f4, %f8
24207 fnaddd %f10, %f12, %f14' > conftest.s
24208 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24210 (eval $ac_try) 2>&5
24211 ac_status=$?
24212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24213 test $ac_status = 0; }; }
24214 then
24215 gcc_cv_as_sparc_fmaf=yes
24216 else
24217 echo "configure: failed program was" >&5
24218 cat conftest.s >&5
24219 fi
24220 rm -f conftest.o conftest.s
24221 fi
24222 fi
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24224 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24225 if test $gcc_cv_as_sparc_fmaf = yes; then
24226
24227 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24228
24229 fi
24230 ;;
24231
24232 i[34567]86-*-* | x86_64-*-*)
24233 case $target_os in
24234 cygwin*)
24235 # Full C++ conformance when using a shared libstdc++-v3 requires some
24236 # support from the Cygwin DLL, which in more recent versions exports
24237 # wrappers to aid in interposing and redirecting operators new, delete,
24238 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24239 # are configuring for a version of Cygwin that exports the wrappers.
24240 if test x$host = x$target; then
24241 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24242 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24243 gcc_ac_cygwin_dll_wrappers=yes
24244 else
24245 gcc_ac_cygwin_dll_wrappers=no
24246 fi
24247
24248 else
24249 # Can't check presence of libc functions during cross-compile, so
24250 # we just have to assume we're building for an up-to-date target.
24251 gcc_ac_cygwin_dll_wrappers=yes
24252 fi
24253
24254 cat >>confdefs.h <<_ACEOF
24255 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24256 _ACEOF
24257
24258 esac
24259 case $target_os in
24260 cygwin* | pe | mingw32*)
24261 # Recent binutils allows the three-operand form of ".comm" on PE. This
24262 # definition is used unconditionally to initialise the default state of
24263 # the target option variable that governs usage of the feature.
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24265 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24266 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24267 $as_echo_n "(cached) " >&6
24268 else
24269 gcc_cv_as_comm_has_align=no
24270 if test $in_tree_gas = yes; then
24271 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24272 then gcc_cv_as_comm_has_align=yes
24273 fi
24274 elif test x$gcc_cv_as != x; then
24275 $as_echo '.comm foo,1,32' > conftest.s
24276 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24278 (eval $ac_try) 2>&5
24279 ac_status=$?
24280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24281 test $ac_status = 0; }; }
24282 then
24283 gcc_cv_as_comm_has_align=yes
24284 else
24285 echo "configure: failed program was" >&5
24286 cat conftest.s >&5
24287 fi
24288 rm -f conftest.o conftest.s
24289 fi
24290 fi
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24292 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24293
24294
24295 cat >>confdefs.h <<_ACEOF
24296 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24297 _ACEOF
24298
24299 # Used for DWARF 2 in PE
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24301 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24302 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24303 $as_echo_n "(cached) " >&6
24304 else
24305 gcc_cv_as_ix86_pe_secrel32=no
24306 if test $in_tree_gas = yes; then
24307 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24308 then gcc_cv_as_ix86_pe_secrel32=yes
24309 fi
24310 elif test x$gcc_cv_as != x; then
24311 $as_echo '.text
24312 foo: nop
24313 .data
24314 .secrel32 foo' > conftest.s
24315 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24317 (eval $ac_try) 2>&5
24318 ac_status=$?
24319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24320 test $ac_status = 0; }; }
24321 then
24322 if test x$gcc_cv_ld != x \
24323 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24324 gcc_cv_as_ix86_pe_secrel32=yes
24325 fi
24326 rm -f conftest
24327 else
24328 echo "configure: failed program was" >&5
24329 cat conftest.s >&5
24330 fi
24331 rm -f conftest.o conftest.s
24332 fi
24333 fi
24334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24335 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24336 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24337
24338 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24339
24340 fi
24341 # Test if the assembler supports the extended form of the .section
24342 # directive that specifies section alignment. LTO support uses this,
24343 # but normally only after installation, so we warn but don't fail the
24344 # configure if LTO is enabled but the assembler does not support it.
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24346 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24347 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24348 $as_echo_n "(cached) " >&6
24349 else
24350 gcc_cv_as_section_has_align=no
24351 if test $in_tree_gas = yes; then
24352 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24353 then gcc_cv_as_section_has_align=yes
24354 fi
24355 elif test x$gcc_cv_as != x; then
24356 $as_echo '.section lto_test,"dr0"' > conftest.s
24357 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24359 (eval $ac_try) 2>&5
24360 ac_status=$?
24361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24362 test $ac_status = 0; }; }
24363 then
24364 gcc_cv_as_section_has_align=yes
24365 else
24366 echo "configure: failed program was" >&5
24367 cat conftest.s >&5
24368 fi
24369 rm -f conftest.o conftest.s
24370 fi
24371 fi
24372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24373 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24374
24375 if test x$gcc_cv_as_section_has_align != xyes; then
24376 case ",$enable_languages," in
24377 *,lto,*)
24378 { $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
24379 $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;}
24380 ;;
24381 esac
24382 fi
24383 # Test if the assembler supports the section flag 'e' for specifying
24384 # an excluded section.
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24386 $as_echo_n "checking assembler for .section with e... " >&6; }
24387 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24388 $as_echo_n "(cached) " >&6
24389 else
24390 gcc_cv_as_section_has_e=no
24391 if test $in_tree_gas = yes; then
24392 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24393 then gcc_cv_as_section_has_e=yes
24394 fi
24395 elif test x$gcc_cv_as != x; then
24396 $as_echo '.section foo1,"e"
24397 .byte 0,0,0,0' > conftest.s
24398 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24400 (eval $ac_try) 2>&5
24401 ac_status=$?
24402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24403 test $ac_status = 0; }; }
24404 then
24405 gcc_cv_as_section_has_e=yes
24406 else
24407 echo "configure: failed program was" >&5
24408 cat conftest.s >&5
24409 fi
24410 rm -f conftest.o conftest.s
24411 fi
24412 fi
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24414 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24415
24416
24417 cat >>confdefs.h <<_ACEOF
24418 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24419 _ACEOF
24420
24421 ;;
24422 esac
24423
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24425 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24426 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24427 $as_echo_n "(cached) " >&6
24428 else
24429 gcc_cv_as_ix86_filds=no
24430 if test x$gcc_cv_as != x; then
24431 $as_echo 'filds mem; fists mem' > conftest.s
24432 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24434 (eval $ac_try) 2>&5
24435 ac_status=$?
24436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24437 test $ac_status = 0; }; }
24438 then
24439 gcc_cv_as_ix86_filds=yes
24440 else
24441 echo "configure: failed program was" >&5
24442 cat conftest.s >&5
24443 fi
24444 rm -f conftest.o conftest.s
24445 fi
24446 fi
24447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24448 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24449 if test $gcc_cv_as_ix86_filds = yes; then
24450
24451 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24452
24453 fi
24454
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24456 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24457 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24458 $as_echo_n "(cached) " >&6
24459 else
24460 gcc_cv_as_ix86_fildq=no
24461 if test x$gcc_cv_as != x; then
24462 $as_echo 'fildq mem; fistpq mem' > conftest.s
24463 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24465 (eval $ac_try) 2>&5
24466 ac_status=$?
24467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24468 test $ac_status = 0; }; }
24469 then
24470 gcc_cv_as_ix86_fildq=yes
24471 else
24472 echo "configure: failed program was" >&5
24473 cat conftest.s >&5
24474 fi
24475 rm -f conftest.o conftest.s
24476 fi
24477 fi
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24479 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24480 if test $gcc_cv_as_ix86_fildq = yes; then
24481
24482 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24483
24484 fi
24485
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24487 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24488 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24489 $as_echo_n "(cached) " >&6
24490 else
24491 gcc_cv_as_ix86_cmov_sun_syntax=no
24492 if test x$gcc_cv_as != x; then
24493 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24494 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24496 (eval $ac_try) 2>&5
24497 ac_status=$?
24498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24499 test $ac_status = 0; }; }
24500 then
24501 gcc_cv_as_ix86_cmov_sun_syntax=yes
24502 else
24503 echo "configure: failed program was" >&5
24504 cat conftest.s >&5
24505 fi
24506 rm -f conftest.o conftest.s
24507 fi
24508 fi
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24510 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24511 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24512
24513 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24514
24515 fi
24516
24517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24518 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24519 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24520 $as_echo_n "(cached) " >&6
24521 else
24522 gcc_cv_as_ix86_ffreep=no
24523 if test x$gcc_cv_as != x; then
24524 $as_echo 'ffreep %st(1)' > conftest.s
24525 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24527 (eval $ac_try) 2>&5
24528 ac_status=$?
24529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24530 test $ac_status = 0; }; }
24531 then
24532 gcc_cv_as_ix86_ffreep=yes
24533 else
24534 echo "configure: failed program was" >&5
24535 cat conftest.s >&5
24536 fi
24537 rm -f conftest.o conftest.s
24538 fi
24539 fi
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24541 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24542 if test $gcc_cv_as_ix86_ffreep = yes; then
24543
24544 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24545
24546 fi
24547
24548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24549 $as_echo_n "checking assembler for .quad directive... " >&6; }
24550 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24551 $as_echo_n "(cached) " >&6
24552 else
24553 gcc_cv_as_ix86_quad=no
24554 if test x$gcc_cv_as != x; then
24555 $as_echo '.quad 0' > conftest.s
24556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24558 (eval $ac_try) 2>&5
24559 ac_status=$?
24560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24561 test $ac_status = 0; }; }
24562 then
24563 gcc_cv_as_ix86_quad=yes
24564 else
24565 echo "configure: failed program was" >&5
24566 cat conftest.s >&5
24567 fi
24568 rm -f conftest.o conftest.s
24569 fi
24570 fi
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24572 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24573 if test $gcc_cv_as_ix86_quad = yes; then
24574
24575 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24576
24577 fi
24578
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24580 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24581 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24582 $as_echo_n "(cached) " >&6
24583 else
24584 gcc_cv_as_ix86_sahf=no
24585 if test x$gcc_cv_as != x; then
24586 $as_echo '.code64
24587 sahf' > conftest.s
24588 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24590 (eval $ac_try) 2>&5
24591 ac_status=$?
24592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24593 test $ac_status = 0; }; }
24594 then
24595 gcc_cv_as_ix86_sahf=yes
24596 else
24597 echo "configure: failed program was" >&5
24598 cat conftest.s >&5
24599 fi
24600 rm -f conftest.o conftest.s
24601 fi
24602 fi
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24604 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24605 if test $gcc_cv_as_ix86_sahf = yes; then
24606
24607 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24608
24609 fi
24610
24611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24612 $as_echo_n "checking assembler for swap suffix... " >&6; }
24613 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24614 $as_echo_n "(cached) " >&6
24615 else
24616 gcc_cv_as_ix86_swap=no
24617 if test x$gcc_cv_as != x; then
24618 $as_echo 'movl.s %esp, %ebp' > conftest.s
24619 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24621 (eval $ac_try) 2>&5
24622 ac_status=$?
24623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24624 test $ac_status = 0; }; }
24625 then
24626 gcc_cv_as_ix86_swap=yes
24627 else
24628 echo "configure: failed program was" >&5
24629 cat conftest.s >&5
24630 fi
24631 rm -f conftest.o conftest.s
24632 fi
24633 fi
24634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24635 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24636 if test $gcc_cv_as_ix86_swap = yes; then
24637
24638 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24639
24640 fi
24641
24642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24643 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24644 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24645 $as_echo_n "(cached) " >&6
24646 else
24647 gcc_cv_as_ix86_diff_sect_delta=no
24648 if test x$gcc_cv_as != x; then
24649 $as_echo '.section .rodata
24650 .L1:
24651 .long .L2-.L1
24652 .long .L3-.L1
24653 .text
24654 .L3: nop
24655 .L2: nop' > conftest.s
24656 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24658 (eval $ac_try) 2>&5
24659 ac_status=$?
24660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24661 test $ac_status = 0; }; }
24662 then
24663 gcc_cv_as_ix86_diff_sect_delta=yes
24664 else
24665 echo "configure: failed program was" >&5
24666 cat conftest.s >&5
24667 fi
24668 rm -f conftest.o conftest.s
24669 fi
24670 fi
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24672 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24673 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24674
24675 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24676
24677 fi
24678
24679 # These two are used unconditionally by i386.[ch]; it is to be defined
24680 # to 1 if the feature is present, 0 otherwise.
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24682 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24683 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24684 $as_echo_n "(cached) " >&6
24685 else
24686 gcc_cv_as_ix86_gotoff_in_data=no
24687 if test $in_tree_gas = yes; then
24688 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24689 then gcc_cv_as_ix86_gotoff_in_data=yes
24690 fi
24691 elif test x$gcc_cv_as != x; then
24692 $as_echo ' .text
24693 .L0:
24694 nop
24695 .data
24696 .long .L0@GOTOFF' > conftest.s
24697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24699 (eval $ac_try) 2>&5
24700 ac_status=$?
24701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24702 test $ac_status = 0; }; }
24703 then
24704 gcc_cv_as_ix86_gotoff_in_data=yes
24705 else
24706 echo "configure: failed program was" >&5
24707 cat conftest.s >&5
24708 fi
24709 rm -f conftest.o conftest.s
24710 fi
24711 fi
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24713 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24714
24715
24716 cat >>confdefs.h <<_ACEOF
24717 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24718 _ACEOF
24719
24720
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24722 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24723 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24724 $as_echo_n "(cached) " >&6
24725 else
24726 gcc_cv_as_ix86_rep_lock_prefix=no
24727 if test x$gcc_cv_as != x; then
24728 $as_echo 'rep movsl
24729 lock addl %edi, (%eax,%esi)
24730 lock orl $0, (%esp)' > conftest.s
24731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24733 (eval $ac_try) 2>&5
24734 ac_status=$?
24735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24736 test $ac_status = 0; }; }
24737 then
24738 gcc_cv_as_ix86_rep_lock_prefix=yes
24739 else
24740 echo "configure: failed program was" >&5
24741 cat conftest.s >&5
24742 fi
24743 rm -f conftest.o conftest.s
24744 fi
24745 fi
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24747 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24748 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24749
24750 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24751
24752 fi
24753
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24755 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24756 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24757 $as_echo_n "(cached) " >&6
24758 else
24759 gcc_cv_as_ix86_tlsgdplt=no
24760 if test x$gcc_cv_as != x; then
24761 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24762 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24764 (eval $ac_try) 2>&5
24765 ac_status=$?
24766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24767 test $ac_status = 0; }; }
24768 then
24769 gcc_cv_as_ix86_tlsgdplt=yes
24770 else
24771 echo "configure: failed program was" >&5
24772 cat conftest.s >&5
24773 fi
24774 rm -f conftest.o conftest.s
24775 fi
24776 fi
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24778 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24779 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24780
24781 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24782
24783 fi
24784
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24786 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24787 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24788 $as_echo_n "(cached) " >&6
24789 else
24790 gcc_cv_as_ix86_tlsldmplt=no
24791 if test x$gcc_cv_as != x; then
24792 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24793 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24795 (eval $ac_try) 2>&5
24796 ac_status=$?
24797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24798 test $ac_status = 0; }; }
24799 then
24800 gcc_cv_as_ix86_tlsldmplt=yes
24801 else
24802 echo "configure: failed program was" >&5
24803 cat conftest.s >&5
24804 fi
24805 rm -f conftest.o conftest.s
24806 fi
24807 fi
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24809 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24810 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24811
24812 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24813
24814 fi
24815
24816 ;;
24817
24818 ia64*-*-*)
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24820 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24821 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24822 $as_echo_n "(cached) " >&6
24823 else
24824 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24825 if test $in_tree_gas = yes; then
24826 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24827 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24828 fi
24829 elif test x$gcc_cv_as != x; then
24830 $as_echo ' .text
24831 addl r15 = @ltoffx(x#), gp
24832 ;;
24833 ld8.mov r16 = [r15], x#' > conftest.s
24834 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24836 (eval $ac_try) 2>&5
24837 ac_status=$?
24838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24839 test $ac_status = 0; }; }
24840 then
24841 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24842 else
24843 echo "configure: failed program was" >&5
24844 cat conftest.s >&5
24845 fi
24846 rm -f conftest.o conftest.s
24847 fi
24848 fi
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24850 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24851 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24852
24853 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24854
24855 fi
24856
24857 ;;
24858
24859 powerpc*-*-*)
24860 case $target in
24861 *-*-aix*) conftest_s=' .machine "pwr5"
24862 .csect .text[PR]
24863 mfcr 3,128';;
24864 *-*-darwin*)
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24866 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24867 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24868 $as_echo_n "(cached) " >&6
24869 else
24870 gcc_cv_as_machine_directive=no
24871 if test x$gcc_cv_as != x; then
24872 $as_echo ' .machine ppc7400' > conftest.s
24873 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24875 (eval $ac_try) 2>&5
24876 ac_status=$?
24877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24878 test $ac_status = 0; }; }
24879 then
24880 gcc_cv_as_machine_directive=yes
24881 else
24882 echo "configure: failed program was" >&5
24883 cat conftest.s >&5
24884 fi
24885 rm -f conftest.o conftest.s
24886 fi
24887 fi
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24889 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24890
24891 if test x$gcc_cv_as_machine_directive != xyes; then
24892 echo "*** This target requires an assembler supporting \".machine\"" >&2
24893 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24894 test x$build = x$target && exit 1
24895 fi
24896 conftest_s=' .text
24897 mfcr r3,128';;
24898 *) conftest_s=' .machine power4
24899 .text
24900 mfcr 3,128';;
24901 esac
24902
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24904 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24905 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24906 $as_echo_n "(cached) " >&6
24907 else
24908 gcc_cv_as_powerpc_mfcrf=no
24909 if test $in_tree_gas = yes; then
24910 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24911 then gcc_cv_as_powerpc_mfcrf=yes
24912 fi
24913 elif test x$gcc_cv_as != x; then
24914 $as_echo "$conftest_s" > conftest.s
24915 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24917 (eval $ac_try) 2>&5
24918 ac_status=$?
24919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24920 test $ac_status = 0; }; }
24921 then
24922 gcc_cv_as_powerpc_mfcrf=yes
24923 else
24924 echo "configure: failed program was" >&5
24925 cat conftest.s >&5
24926 fi
24927 rm -f conftest.o conftest.s
24928 fi
24929 fi
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24931 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24932 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24933
24934 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24935
24936 fi
24937
24938 case $target in
24939 *-*-aix*) conftest_s=' .machine "pwr5"
24940 .csect .text[PR]
24941 popcntb 3,3';;
24942 *) conftest_s=' .machine power5
24943 .text
24944 popcntb 3,3';;
24945 esac
24946
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24948 $as_echo_n "checking assembler for popcntb support... " >&6; }
24949 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24950 $as_echo_n "(cached) " >&6
24951 else
24952 gcc_cv_as_powerpc_popcntb=no
24953 if test $in_tree_gas = yes; then
24954 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24955 then gcc_cv_as_powerpc_popcntb=yes
24956 fi
24957 elif test x$gcc_cv_as != x; then
24958 $as_echo "$conftest_s" > conftest.s
24959 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24961 (eval $ac_try) 2>&5
24962 ac_status=$?
24963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24964 test $ac_status = 0; }; }
24965 then
24966 gcc_cv_as_powerpc_popcntb=yes
24967 else
24968 echo "configure: failed program was" >&5
24969 cat conftest.s >&5
24970 fi
24971 rm -f conftest.o conftest.s
24972 fi
24973 fi
24974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24975 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24976 if test $gcc_cv_as_powerpc_popcntb = yes; then
24977
24978 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24979
24980 fi
24981
24982 case $target in
24983 *-*-aix*) conftest_s=' .machine "pwr5x"
24984 .csect .text[PR]
24985 frin 1,1';;
24986 *) conftest_s=' .machine power5
24987 .text
24988 frin 1,1';;
24989 esac
24990
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24992 $as_echo_n "checking assembler for fp round support... " >&6; }
24993 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24994 $as_echo_n "(cached) " >&6
24995 else
24996 gcc_cv_as_powerpc_fprnd=no
24997 if test $in_tree_gas = yes; then
24998 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24999 then gcc_cv_as_powerpc_fprnd=yes
25000 fi
25001 elif test x$gcc_cv_as != x; then
25002 $as_echo "$conftest_s" > conftest.s
25003 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25005 (eval $ac_try) 2>&5
25006 ac_status=$?
25007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25008 test $ac_status = 0; }; }
25009 then
25010 gcc_cv_as_powerpc_fprnd=yes
25011 else
25012 echo "configure: failed program was" >&5
25013 cat conftest.s >&5
25014 fi
25015 rm -f conftest.o conftest.s
25016 fi
25017 fi
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25019 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25020 if test $gcc_cv_as_powerpc_fprnd = yes; then
25021
25022 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25023
25024 fi
25025
25026 case $target in
25027 *-*-aix*) conftest_s=' .machine "pwr6"
25028 .csect .text[PR]
25029 mffgpr 1,3';;
25030 *) conftest_s=' .machine power6
25031 .text
25032 mffgpr 1,3';;
25033 esac
25034
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25036 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25037 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25038 $as_echo_n "(cached) " >&6
25039 else
25040 gcc_cv_as_powerpc_mfpgpr=no
25041 if test $in_tree_gas = yes; then
25042 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25043 then gcc_cv_as_powerpc_mfpgpr=yes
25044 fi
25045 elif test x$gcc_cv_as != x; then
25046 $as_echo "$conftest_s" > conftest.s
25047 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_powerpc_mfpgpr=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_powerpc_mfpgpr" >&5
25063 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25064 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25065
25066 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25067
25068 fi
25069
25070 case $target in
25071 *-*-aix*) conftest_s=' .csect .text[PR]
25072 LCF..0:
25073 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25074 *-*-darwin*)
25075 conftest_s=' .text
25076 LCF0:
25077 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25078 *) conftest_s=' .text
25079 .LCF0:
25080 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25081 esac
25082
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25084 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25085 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25086 $as_echo_n "(cached) " >&6
25087 else
25088 gcc_cv_as_powerpc_rel16=no
25089 if test $in_tree_gas = yes; then
25090 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25091 then gcc_cv_as_powerpc_rel16=yes
25092 fi
25093 elif test x$gcc_cv_as != x; then
25094 $as_echo "$conftest_s" > conftest.s
25095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25097 (eval $ac_try) 2>&5
25098 ac_status=$?
25099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25100 test $ac_status = 0; }; }
25101 then
25102 gcc_cv_as_powerpc_rel16=yes
25103 else
25104 echo "configure: failed program was" >&5
25105 cat conftest.s >&5
25106 fi
25107 rm -f conftest.o conftest.s
25108 fi
25109 fi
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25111 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25112 if test $gcc_cv_as_powerpc_rel16 = yes; then
25113
25114 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25115
25116 fi
25117
25118 case $target in
25119 *-*-aix*) conftest_s=' .machine "pwr6"
25120 .csect .text[PR]
25121 cmpb 3,4,5';;
25122 *) conftest_s=' .machine power6
25123 .text
25124 cmpb 3,4,5';;
25125 esac
25126
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25128 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25129 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25130 $as_echo_n "(cached) " >&6
25131 else
25132 gcc_cv_as_powerpc_cmpb=no
25133 if test $in_tree_gas = yes; then
25134 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25135 then gcc_cv_as_powerpc_cmpb=yes
25136 fi
25137 elif test x$gcc_cv_as != x; then
25138 $as_echo "$conftest_s" > conftest.s
25139 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25141 (eval $ac_try) 2>&5
25142 ac_status=$?
25143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25144 test $ac_status = 0; }; }
25145 then
25146 gcc_cv_as_powerpc_cmpb=yes
25147 else
25148 echo "configure: failed program was" >&5
25149 cat conftest.s >&5
25150 fi
25151 rm -f conftest.o conftest.s
25152 fi
25153 fi
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25155 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25156 if test $gcc_cv_as_powerpc_cmpb = yes; then
25157
25158 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25159
25160 fi
25161
25162 case $target in
25163 *-*-aix*) conftest_s=' .machine "pwr6"
25164 .csect .text[PR]
25165 dadd 1,2,3';;
25166 *) conftest_s=' .machine power6
25167 .text
25168 dadd 1,2,3';;
25169 esac
25170
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25172 $as_echo_n "checking assembler for decimal float support... " >&6; }
25173 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25174 $as_echo_n "(cached) " >&6
25175 else
25176 gcc_cv_as_powerpc_dfp=no
25177 if test $in_tree_gas = yes; then
25178 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25179 then gcc_cv_as_powerpc_dfp=yes
25180 fi
25181 elif test x$gcc_cv_as != x; then
25182 $as_echo "$conftest_s" > conftest.s
25183 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25185 (eval $ac_try) 2>&5
25186 ac_status=$?
25187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25188 test $ac_status = 0; }; }
25189 then
25190 gcc_cv_as_powerpc_dfp=yes
25191 else
25192 echo "configure: failed program was" >&5
25193 cat conftest.s >&5
25194 fi
25195 rm -f conftest.o conftest.s
25196 fi
25197 fi
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25199 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25200 if test $gcc_cv_as_powerpc_dfp = yes; then
25201
25202 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25203
25204 fi
25205
25206 case $target in
25207 *-*-aix*) conftest_s=' .machine "pwr7"
25208 .csect .text[PR]
25209 lxvd2x 1,2,3';;
25210 *) conftest_s=' .machine power7
25211 .text
25212 lxvd2x 1,2,3';;
25213 esac
25214
25215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25216 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25217 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25218 $as_echo_n "(cached) " >&6
25219 else
25220 gcc_cv_as_powerpc_vsx=no
25221 if test $in_tree_gas = yes; then
25222 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25223 then gcc_cv_as_powerpc_vsx=yes
25224 fi
25225 elif test x$gcc_cv_as != x; then
25226 $as_echo "$conftest_s" > conftest.s
25227 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25229 (eval $ac_try) 2>&5
25230 ac_status=$?
25231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25232 test $ac_status = 0; }; }
25233 then
25234 gcc_cv_as_powerpc_vsx=yes
25235 else
25236 echo "configure: failed program was" >&5
25237 cat conftest.s >&5
25238 fi
25239 rm -f conftest.o conftest.s
25240 fi
25241 fi
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25243 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25244 if test $gcc_cv_as_powerpc_vsx = yes; then
25245
25246 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25247
25248 fi
25249
25250 case $target in
25251 *-*-aix*) conftest_s=' .machine "pwr7"
25252 .csect .text[PR]
25253 popcntd 3,3';;
25254 *) conftest_s=' .machine power7
25255 .text
25256 popcntd 3,3';;
25257 esac
25258
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25260 $as_echo_n "checking assembler for popcntd support... " >&6; }
25261 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25262 $as_echo_n "(cached) " >&6
25263 else
25264 gcc_cv_as_powerpc_popcntd=no
25265 if test $in_tree_gas = yes; then
25266 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25267 then gcc_cv_as_powerpc_popcntd=yes
25268 fi
25269 elif test x$gcc_cv_as != x; then
25270 $as_echo "$conftest_s" > conftest.s
25271 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25273 (eval $ac_try) 2>&5
25274 ac_status=$?
25275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25276 test $ac_status = 0; }; }
25277 then
25278 gcc_cv_as_powerpc_popcntd=yes
25279 else
25280 echo "configure: failed program was" >&5
25281 cat conftest.s >&5
25282 fi
25283 rm -f conftest.o conftest.s
25284 fi
25285 fi
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25287 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25288 if test $gcc_cv_as_powerpc_popcntd = yes; then
25289
25290 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25291
25292 fi
25293
25294 case $target in
25295 *-*-aix*) conftest_s=' .csect .text[PR]
25296 lwsync';;
25297 *) conftest_s=' .text
25298 lwsync';;
25299 esac
25300
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25302 $as_echo_n "checking assembler for lwsync support... " >&6; }
25303 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25304 $as_echo_n "(cached) " >&6
25305 else
25306 gcc_cv_as_powerpc_lwsync=no
25307 if test $in_tree_gas = yes; then
25308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25309 then gcc_cv_as_powerpc_lwsync=yes
25310 fi
25311 elif test x$gcc_cv_as != x; then
25312 $as_echo "$conftest_s" > conftest.s
25313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25315 (eval $ac_try) 2>&5
25316 ac_status=$?
25317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25318 test $ac_status = 0; }; }
25319 then
25320 gcc_cv_as_powerpc_lwsync=yes
25321 else
25322 echo "configure: failed program was" >&5
25323 cat conftest.s >&5
25324 fi
25325 rm -f conftest.o conftest.s
25326 fi
25327 fi
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25329 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25330 if test $gcc_cv_as_powerpc_lwsync = yes; then
25331
25332 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25333
25334 fi
25335
25336 case $target in
25337 *-*-aix*) conftest_s=' .machine "476"
25338 .csect .text[PR]
25339 dci 0';;
25340 *) conftest_s=' .machine "476"
25341 .text
25342 dci 0';;
25343 esac
25344
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25346 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25347 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25348 $as_echo_n "(cached) " >&6
25349 else
25350 gcc_cv_as_powerpc_dci=no
25351 if test $in_tree_gas = yes; then
25352 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25353 then gcc_cv_as_powerpc_dci=yes
25354 fi
25355 elif test x$gcc_cv_as != x; then
25356 $as_echo "$conftest_s" > conftest.s
25357 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25359 (eval $ac_try) 2>&5
25360 ac_status=$?
25361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25362 test $ac_status = 0; }; }
25363 then
25364 gcc_cv_as_powerpc_dci=yes
25365 else
25366 echo "configure: failed program was" >&5
25367 cat conftest.s >&5
25368 fi
25369 rm -f conftest.o conftest.s
25370 fi
25371 fi
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25373 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25374 if test $gcc_cv_as_powerpc_dci = yes; then
25375
25376 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25377
25378 fi
25379
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25381 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25382 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25383 $as_echo_n "(cached) " >&6
25384 else
25385 gcc_cv_as_powerpc_gnu_attribute=no
25386 if test $in_tree_gas = yes; then
25387 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25388 then gcc_cv_as_powerpc_gnu_attribute=yes
25389 fi
25390 elif test x$gcc_cv_as != x; then
25391 $as_echo '.gnu_attribute 4,1' > conftest.s
25392 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25394 (eval $ac_try) 2>&5
25395 ac_status=$?
25396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25397 test $ac_status = 0; }; }
25398 then
25399 gcc_cv_as_powerpc_gnu_attribute=yes
25400 else
25401 echo "configure: failed program was" >&5
25402 cat conftest.s >&5
25403 fi
25404 rm -f conftest.o conftest.s
25405 fi
25406 fi
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25408 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25409 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25410
25411 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25412
25413 fi
25414
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25416 $as_echo_n "checking assembler for tls marker support... " >&6; }
25417 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25418 $as_echo_n "(cached) " >&6
25419 else
25420 gcc_cv_as_powerpc_tls_markers=no
25421 if test $in_tree_gas = yes; then
25422 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25423 then gcc_cv_as_powerpc_tls_markers=yes
25424 fi
25425 elif test x$gcc_cv_as != x; then
25426 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25427 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25429 (eval $ac_try) 2>&5
25430 ac_status=$?
25431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25432 test $ac_status = 0; }; }
25433 then
25434 gcc_cv_as_powerpc_tls_markers=yes
25435 else
25436 echo "configure: failed program was" >&5
25437 cat conftest.s >&5
25438 fi
25439 rm -f conftest.o conftest.s
25440 fi
25441 fi
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25443 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25444 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25445
25446 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25447
25448 fi
25449
25450 case $target in
25451 *-*-aix*)
25452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25453 $as_echo_n "checking assembler for .ref support... " >&6; }
25454 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25455 $as_echo_n "(cached) " >&6
25456 else
25457 gcc_cv_as_aix_ref=no
25458 if test $in_tree_gas = yes; then
25459 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25460 then :
25461 fi
25462 elif test x$gcc_cv_as != x; then
25463 $as_echo ' .csect stuff[rw]
25464 stuff:
25465 .long 1
25466 .extern sym
25467 .ref sym
25468 ' > conftest.s
25469 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25471 (eval $ac_try) 2>&5
25472 ac_status=$?
25473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25474 test $ac_status = 0; }; }
25475 then
25476 gcc_cv_as_aix_ref=yes
25477 else
25478 echo "configure: failed program was" >&5
25479 cat conftest.s >&5
25480 fi
25481 rm -f conftest.o conftest.s
25482 fi
25483 fi
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25485 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25486 if test $gcc_cv_as_aix_ref = yes; then
25487
25488 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25489
25490 fi
25491 ;;
25492 esac
25493 ;;
25494
25495 mips*-*-*)
25496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25497 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25498 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25499 $as_echo_n "(cached) " >&6
25500 else
25501 gcc_cv_as_mips_explicit_relocs=no
25502 if test $in_tree_gas = yes; then
25503 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25504 then gcc_cv_as_mips_explicit_relocs=yes
25505 fi
25506 elif test x$gcc_cv_as != x; then
25507 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25508 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25510 (eval $ac_try) 2>&5
25511 ac_status=$?
25512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25513 test $ac_status = 0; }; }
25514 then
25515 gcc_cv_as_mips_explicit_relocs=yes
25516 else
25517 echo "configure: failed program was" >&5
25518 cat conftest.s >&5
25519 fi
25520 rm -f conftest.o conftest.s
25521 fi
25522 fi
25523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25524 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25525 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25526 if test x$target_cpu_default = x
25527 then target_cpu_default=MASK_EXPLICIT_RELOCS
25528 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25529 fi
25530 fi
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25532 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25533 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25534 $as_echo_n "(cached) " >&6
25535 else
25536 gcc_cv_as_mips_no_shared=no
25537 if test $in_tree_gas = yes; then
25538 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25539 then gcc_cv_as_mips_no_shared=yes
25540 fi
25541 elif test x$gcc_cv_as != x; then
25542 $as_echo 'nop' > conftest.s
25543 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25545 (eval $ac_try) 2>&5
25546 ac_status=$?
25547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25548 test $ac_status = 0; }; }
25549 then
25550 gcc_cv_as_mips_no_shared=yes
25551 else
25552 echo "configure: failed program was" >&5
25553 cat conftest.s >&5
25554 fi
25555 rm -f conftest.o conftest.s
25556 fi
25557 fi
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25559 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25560 if test $gcc_cv_as_mips_no_shared = yes; then
25561
25562 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25563
25564 fi
25565
25566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25567 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25568 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25569 $as_echo_n "(cached) " >&6
25570 else
25571 gcc_cv_as_mips_gnu_attribute=no
25572 if test $in_tree_gas = yes; then
25573 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25574 then gcc_cv_as_mips_gnu_attribute=yes
25575 fi
25576 elif test x$gcc_cv_as != x; then
25577 $as_echo '.gnu_attribute 4,1' > conftest.s
25578 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25580 (eval $ac_try) 2>&5
25581 ac_status=$?
25582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25583 test $ac_status = 0; }; }
25584 then
25585 gcc_cv_as_mips_gnu_attribute=yes
25586 else
25587 echo "configure: failed program was" >&5
25588 cat conftest.s >&5
25589 fi
25590 rm -f conftest.o conftest.s
25591 fi
25592 fi
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25594 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25595 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25596
25597 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25598
25599 fi
25600
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25602 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25603 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25604 $as_echo_n "(cached) " >&6
25605 else
25606 gcc_cv_as_mips_dtprelword=no
25607 if test $in_tree_gas = yes; then
25608 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25609 then gcc_cv_as_mips_dtprelword=yes
25610 fi
25611 elif test x$gcc_cv_as != x; then
25612 $as_echo '.section .tdata,"awT",@progbits
25613 x:
25614 .word 2
25615 .text
25616 .dtprelword x+0x8000' > conftest.s
25617 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25619 (eval $ac_try) 2>&5
25620 ac_status=$?
25621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25622 test $ac_status = 0; }; }
25623 then
25624 gcc_cv_as_mips_dtprelword=yes
25625 else
25626 echo "configure: failed program was" >&5
25627 cat conftest.s >&5
25628 fi
25629 rm -f conftest.o conftest.s
25630 fi
25631 fi
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25633 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25634 if test $gcc_cv_as_mips_dtprelword = yes; then
25635
25636 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25637
25638 fi
25639
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25641 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25642 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25643 $as_echo_n "(cached) " >&6
25644 else
25645 gcc_cv_as_mips_dspr1_mult=no
25646 if test x$gcc_cv_as != x; then
25647 $as_echo ' .set mips32r2
25648 .set nodspr2
25649 .set dsp
25650 madd $ac3,$4,$5
25651 maddu $ac3,$4,$5
25652 msub $ac3,$4,$5
25653 msubu $ac3,$4,$5
25654 mult $ac3,$4,$5
25655 multu $ac3,$4,$5' > conftest.s
25656 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25658 (eval $ac_try) 2>&5
25659 ac_status=$?
25660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25661 test $ac_status = 0; }; }
25662 then
25663 gcc_cv_as_mips_dspr1_mult=yes
25664 else
25665 echo "configure: failed program was" >&5
25666 cat conftest.s >&5
25667 fi
25668 rm -f conftest.o conftest.s
25669 fi
25670 fi
25671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25672 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25673 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25674
25675 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25676
25677 fi
25678
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25680 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25681 gcc_cv_as_ld_jalr_reloc=no
25682 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25683 if test $in_tree_ld = yes ; then
25684 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 \
25685 && test $in_tree_ld_is_elf = yes; then
25686 gcc_cv_as_ld_jalr_reloc=yes
25687 fi
25688 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25689 echo ' .ent x' > conftest.s
25690 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25691 echo ' ld $25,%call16(y)($28)' >> conftest.s
25692 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25693 echo '1: jalr $25' >> conftest.s
25694 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25695 echo '1: jalr $25' >> conftest.s
25696 echo ' .end x' >> conftest.s
25697 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25698 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25699 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25700 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25701 gcc_cv_as_ld_jalr_reloc=yes
25702 fi
25703 fi
25704 rm -f conftest.*
25705 fi
25706 fi
25707 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25708 if test x$target_cpu_default = x; then
25709 target_cpu_default=MASK_RELAX_PIC_CALLS
25710 else
25711 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25712 fi
25713 fi
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25715 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25716
25717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25718 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25719 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25720 $as_echo_n "(cached) " >&6
25721 else
25722 gcc_cv_ld_mips_personality_relaxation=no
25723 if test $in_tree_ld = yes ; then
25724 if test "$gcc_cv_gld_major_version" -eq 2 \
25725 -a "$gcc_cv_gld_minor_version" -ge 21 \
25726 -o "$gcc_cv_gld_major_version" -gt 2; then
25727 gcc_cv_ld_mips_personality_relaxation=yes
25728 fi
25729 elif test x$gcc_cv_as != x \
25730 -a x$gcc_cv_ld != x \
25731 -a x$gcc_cv_readelf != x ; then
25732 cat > conftest.s <<EOF
25733 .cfi_startproc
25734 .cfi_personality 0x80,indirect_ptr
25735 .ent test
25736 test:
25737 nop
25738 .end test
25739 .cfi_endproc
25740
25741 .section .data,"aw",@progbits
25742 indirect_ptr:
25743 .dc.a personality
25744 EOF
25745 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25746 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25747 if $gcc_cv_readelf -d conftest 2>&1 \
25748 | grep TEXTREL > /dev/null 2>&1; then
25749 :
25750 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25751 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25752 :
25753 else
25754 gcc_cv_ld_mips_personality_relaxation=yes
25755 fi
25756 fi
25757 fi
25758 rm -f conftest.s conftest.o conftest
25759 fi
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25761 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25762 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25763
25764 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25765
25766 fi
25767 ;;
25768 esac
25769
25770 # Mips and HP-UX need the GNU assembler.
25771 # Linux on IA64 might be able to use the Intel assembler.
25772
25773 case "$target" in
25774 mips*-*-* | *-*-hpux* )
25775 if test x$gas_flag = xyes \
25776 || test x"$host" != x"$build" \
25777 || test ! -x "$gcc_cv_as" \
25778 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25779 :
25780 else
25781 echo "*** This configuration requires the GNU assembler" >&2
25782 exit 1
25783 fi
25784 ;;
25785 esac
25786
25787 # ??? Not all targets support dwarf2 debug_line, even within a version
25788 # of gas. Moreover, we need to emit a valid instruction to trigger any
25789 # info to the output file. So, as supported targets are added to gas 2.11,
25790 # add some instruction here to (also) show we expect this might work.
25791 # ??? Once 2.11 is released, probably need to add first known working
25792 # version to the per-target configury.
25793 case "$cpu_type" in
25794 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25795 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25796 insn="nop"
25797 ;;
25798 ia64 | s390)
25799 insn="nop 0"
25800 ;;
25801 mmix)
25802 insn="swym 0"
25803 ;;
25804 esac
25805 if test x"$insn" != x; then
25806 conftest_s="\
25807 .file 1 \"conftest.s\"
25808 .loc 1 3 0
25809 $insn"
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25811 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25812 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25813 $as_echo_n "(cached) " >&6
25814 else
25815 gcc_cv_as_dwarf2_debug_line=no
25816 if test $in_tree_gas = yes; then
25817 if test $in_tree_gas_is_elf = yes \
25818 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25819 then gcc_cv_as_dwarf2_debug_line=yes
25820 fi
25821 elif test x$gcc_cv_as != x; then
25822 $as_echo "$conftest_s" > conftest.s
25823 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25825 (eval $ac_try) 2>&5
25826 ac_status=$?
25827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25828 test $ac_status = 0; }; }
25829 then
25830 if test x$gcc_cv_objdump != x \
25831 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25832 | grep debug_line > /dev/null 2>&1; then
25833 gcc_cv_as_dwarf2_debug_line=yes
25834 fi
25835 else
25836 echo "configure: failed program was" >&5
25837 cat conftest.s >&5
25838 fi
25839 rm -f conftest.o conftest.s
25840 fi
25841 fi
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25843 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25844
25845
25846 # The .debug_line file table must be in the exact order that
25847 # we specified the files, since these indices are also used
25848 # by DW_AT_decl_file. Approximate this test by testing if
25849 # the assembler bitches if the same index is assigned twice.
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25851 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25852 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25853 $as_echo_n "(cached) " >&6
25854 else
25855 gcc_cv_as_dwarf2_file_buggy=no
25856 if test x$gcc_cv_as != x; then
25857 $as_echo ' .file 1 "foo.s"
25858 .file 1 "bar.s"' > conftest.s
25859 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25861 (eval $ac_try) 2>&5
25862 ac_status=$?
25863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25864 test $ac_status = 0; }; }
25865 then
25866 gcc_cv_as_dwarf2_file_buggy=yes
25867 else
25868 echo "configure: failed program was" >&5
25869 cat conftest.s >&5
25870 fi
25871 rm -f conftest.o conftest.s
25872 fi
25873 fi
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25875 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25876
25877
25878 if test $gcc_cv_as_dwarf2_debug_line = yes \
25879 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25880
25881 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25882
25883 fi
25884
25885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25886 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25887 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25888 $as_echo_n "(cached) " >&6
25889 else
25890 gcc_cv_as_gdwarf2_flag=no
25891 if test $in_tree_gas = yes; then
25892 if test $in_tree_gas_is_elf = yes \
25893 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25894 then gcc_cv_as_gdwarf2_flag=yes
25895 fi
25896 elif test x$gcc_cv_as != x; then
25897 $as_echo "$insn" > conftest.s
25898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25900 (eval $ac_try) 2>&5
25901 ac_status=$?
25902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25903 test $ac_status = 0; }; }
25904 then
25905 gcc_cv_as_gdwarf2_flag=yes
25906 else
25907 echo "configure: failed program was" >&5
25908 cat conftest.s >&5
25909 fi
25910 rm -f conftest.o conftest.s
25911 fi
25912 fi
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25914 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25915 if test $gcc_cv_as_gdwarf2_flag = yes; then
25916
25917 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25918
25919 fi
25920
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25922 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25923 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25924 $as_echo_n "(cached) " >&6
25925 else
25926 gcc_cv_as_gstabs_flag=no
25927 if test $in_tree_gas = yes; then
25928 if test $in_tree_gas_is_elf = yes \
25929 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25930 then gcc_cv_as_gstabs_flag=yes
25931 fi
25932 elif test x$gcc_cv_as != x; then
25933 $as_echo "$insn" > conftest.s
25934 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25936 (eval $ac_try) 2>&5
25937 ac_status=$?
25938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25939 test $ac_status = 0; }; }
25940 then
25941 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25942 # and warns about it, but still exits successfully. So check for
25943 # this.
25944 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25946 (eval $ac_try) 2>&5
25947 ac_status=$?
25948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25949 test $ac_status = 0; }; }
25950 then :
25951 else gcc_cv_as_gstabs_flag=yes
25952 fi
25953 else
25954 echo "configure: failed program was" >&5
25955 cat conftest.s >&5
25956 fi
25957 rm -f conftest.o conftest.s
25958 fi
25959 fi
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25961 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25962 if test $gcc_cv_as_gstabs_flag = yes; then
25963
25964 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25965
25966 fi
25967
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25969 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25970 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25971 $as_echo_n "(cached) " >&6
25972 else
25973 gcc_cv_as_debug_prefix_map_flag=no
25974 if test $in_tree_gas = yes; then
25975 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25976 then gcc_cv_as_debug_prefix_map_flag=yes
25977 fi
25978 elif test x$gcc_cv_as != x; then
25979 $as_echo "$insn" > conftest.s
25980 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25982 (eval $ac_try) 2>&5
25983 ac_status=$?
25984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25985 test $ac_status = 0; }; }
25986 then
25987 gcc_cv_as_debug_prefix_map_flag=yes
25988 else
25989 echo "configure: failed program was" >&5
25990 cat conftest.s >&5
25991 fi
25992 rm -f conftest.o conftest.s
25993 fi
25994 fi
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25996 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25997 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25998
25999 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26000
26001 fi
26002 fi
26003
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26005 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26006 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26007 $as_echo_n "(cached) " >&6
26008 else
26009 gcc_cv_as_lcomm_with_alignment=no
26010 if test x$gcc_cv_as != x; then
26011 $as_echo '.lcomm bar,4,16' > conftest.s
26012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26014 (eval $ac_try) 2>&5
26015 ac_status=$?
26016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26017 test $ac_status = 0; }; }
26018 then
26019 gcc_cv_as_lcomm_with_alignment=yes
26020 else
26021 echo "configure: failed program was" >&5
26022 cat conftest.s >&5
26023 fi
26024 rm -f conftest.o conftest.s
26025 fi
26026 fi
26027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26028 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26029 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26030
26031 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26032
26033 fi
26034
26035 # Check whether --enable-gnu-unique-object was given.
26036 if test "${enable_gnu_unique_object+set}" = set; then :
26037 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26038 yes | no) ;;
26039 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26040 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26041 esac
26042 else
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26044 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26045 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26046 $as_echo_n "(cached) " >&6
26047 else
26048 gcc_cv_as_gnu_unique_object=no
26049 if test $in_tree_gas = yes; then
26050 if test $in_tree_gas_is_elf = yes \
26051 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26052 then gcc_cv_as_gnu_unique_object=yes
26053 fi
26054 elif test x$gcc_cv_as != x; then
26055 $as_echo '.type foo, @gnu_unique_object' > conftest.s
26056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26058 (eval $ac_try) 2>&5
26059 ac_status=$?
26060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26061 test $ac_status = 0; }; }
26062 then
26063 gcc_cv_as_gnu_unique_object=yes
26064 else
26065 echo "configure: failed program was" >&5
26066 cat conftest.s >&5
26067 fi
26068 rm -f conftest.o conftest.s
26069 fi
26070 fi
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26072 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26073 if test $gcc_cv_as_gnu_unique_object = yes; then
26074 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26075 if test x$host = x$build -a x$host = x$target &&
26076 ldd --version 2>/dev/null &&
26077 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26078 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26079 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26080 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26081 if test "$glibcnum" -ge 2011 ; then
26082 enable_gnu_unique_object=yes
26083 fi
26084 fi
26085 fi
26086 fi
26087
26088 if test x$enable_gnu_unique_object = xyes; then
26089
26090 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26091
26092 fi
26093
26094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26095 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26096 if test "${gcc_cv_as_line_zero+set}" = set; then :
26097 $as_echo_n "(cached) " >&6
26098 else
26099 gcc_cv_as_line_zero=no
26100 if test $in_tree_gas = yes; then
26101 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26102 then gcc_cv_as_line_zero=yes
26103 fi
26104 elif test "x$gcc_cv_as" != x; then
26105 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26106 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26108 (eval $ac_try) 2>&5
26109 ac_status=$?
26110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26111 test $ac_status = 0; }; } &&
26112 test "x`cat conftest.out`" = x
26113 then
26114 gcc_cv_as_line_zero=yes
26115 else
26116 echo "configure: failed program was" >&5
26117 cat conftest.s >&5
26118 echo "configure: error output was" >&5
26119 cat conftest.out >&5
26120 fi
26121 rm -f conftest.o conftest.s conftest.out
26122 fi
26123 fi
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26125 $as_echo "$gcc_cv_as_line_zero" >&6; }
26126 if test "x$gcc_cv_as_line_zero" = xyes; then
26127
26128 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26129
26130 fi
26131
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26133 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26134 gcc_cv_ld_eh_frame_hdr=no
26135 if test $in_tree_ld = yes ; then
26136 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 \
26137 && test $in_tree_ld_is_elf = yes; then
26138 gcc_cv_ld_eh_frame_hdr=yes
26139 fi
26140 elif test x$gcc_cv_ld != x; then
26141 if echo "$ld_ver" | grep GNU > /dev/null; then
26142 # Check if linker supports --eh-frame-hdr option
26143 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26144 gcc_cv_ld_eh_frame_hdr=yes
26145 fi
26146 else
26147 case "$target" in
26148 *-*-solaris2*)
26149 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26150 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26151 gcc_cv_ld_eh_frame_hdr=yes
26152 fi
26153 ;;
26154 esac
26155 fi
26156 fi
26157
26158 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26159
26160 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26161
26162 fi
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26164 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26165
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26167 $as_echo_n "checking linker position independent executable support... " >&6; }
26168 gcc_cv_ld_pie=no
26169 if test $in_tree_ld = yes ; then
26170 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
26171 && test $in_tree_ld_is_elf = yes; then
26172 gcc_cv_ld_pie=yes
26173 fi
26174 elif test x$gcc_cv_ld != x; then
26175 # Check if linker supports -pie option
26176 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26177 gcc_cv_ld_pie=yes
26178 fi
26179 fi
26180 if test x"$gcc_cv_ld_pie" = xyes; then
26181
26182 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26183
26184 fi
26185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26186 $as_echo "$gcc_cv_ld_pie" >&6; }
26187
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26189 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26190 gcc_cv_ld_eh_gc_sections=no
26191 if test $in_tree_ld = yes ; then
26192 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 \
26193 && test $in_tree_ld_is_elf = yes; then
26194 gcc_cv_ld_eh_gc_sections=yes
26195 fi
26196 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26197 cat > conftest.s <<EOF
26198 .section .text
26199 .globl _start
26200 .type _start, @function
26201 _start:
26202 .long foo
26203 .size _start, .-_start
26204 .section .text.foo,"ax",@progbits
26205 .type foo, @function
26206 foo:
26207 .long 0
26208 .size foo, .-foo
26209 .section .gcc_except_table.foo,"a",@progbits
26210 .L0:
26211 .long 0
26212 .section .eh_frame,"a",@progbits
26213 .long .L0
26214 EOF
26215 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26216 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26217 | grep "gc-sections option ignored" > /dev/null; then
26218 gcc_cv_ld_eh_gc_sections=no
26219 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26220 | grep gcc_except_table > /dev/null; then
26221 gcc_cv_ld_eh_gc_sections=yes
26222 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26223 if test x$gcc_cv_as_comdat_group != xyes; then
26224 gcc_cv_ld_eh_gc_sections=no
26225 cat > conftest.s <<EOF
26226 .section .text
26227 .globl _start
26228 .type _start, @function
26229 _start:
26230 .long foo
26231 .size _start, .-_start
26232 .section .gnu.linkonce.t.foo,"ax",@progbits
26233 .type foo, @function
26234 foo:
26235 .long 0
26236 .size foo, .-foo
26237 .section .gcc_except_table.foo,"a",@progbits
26238 .L0:
26239 .long 0
26240 .section .eh_frame,"a",@progbits
26241 .long .L0
26242 EOF
26243 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26244 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26245 | grep "gc-sections option ignored" > /dev/null; then
26246 gcc_cv_ld_eh_gc_sections=no
26247 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26248 | grep gcc_except_table > /dev/null; then
26249 gcc_cv_ld_eh_gc_sections=yes
26250 fi
26251 fi
26252 fi
26253 fi
26254 fi
26255 rm -f conftest.s conftest.o conftest
26256 fi
26257 case "$target" in
26258 hppa*-*-linux*)
26259 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26260 gcc_cv_ld_eh_gc_sections=no
26261 ;;
26262 esac
26263 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26264
26265 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26266
26267 fi
26268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26269 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26270
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26272 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26273 gcc_cv_ld_eh_gc_sections_bug=no
26274 if test $in_tree_ld = yes ; then
26275 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 \
26276 && test $in_tree_ld_is_elf = yes; then
26277 gcc_cv_ld_eh_gc_sections_bug=yes
26278 fi
26279 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
26280 gcc_cv_ld_eh_gc_sections_bug=yes
26281 cat > conftest.s <<EOF
26282 .section .text
26283 .globl _start
26284 .type _start, @function
26285 _start:
26286 .long foo
26287 .size _start, .-_start
26288 .section .text.startup.foo,"ax",@progbits
26289 .type foo, @function
26290 foo:
26291 .long 0
26292 .size foo, .-foo
26293 .section .gcc_except_table.foo,"a",@progbits
26294 .L0:
26295 .long 0
26296 .section .eh_frame,"a",@progbits
26297 .long .L0
26298 EOF
26299 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26300 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26301 | grep "gc-sections option ignored" > /dev/null; then
26302 :
26303 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26304 | grep gcc_except_table > /dev/null; then
26305 gcc_cv_ld_eh_gc_sections_bug=no
26306 fi
26307 fi
26308 rm -f conftest.s conftest.o conftest
26309 fi
26310 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26311
26312 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26313
26314 fi
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26316 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26317
26318 # --------
26319 # UNSORTED
26320 # --------
26321
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26323 $as_echo_n "checking linker --as-needed support... " >&6; }
26324 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26325 $as_echo_n "(cached) " >&6
26326 else
26327 gcc_cv_ld_as_needed=no
26328 if test $in_tree_ld = yes ; then
26329 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 \
26330 && test $in_tree_ld_is_elf = yes; then
26331 gcc_cv_ld_as_needed=yes
26332 fi
26333 elif test x$gcc_cv_ld != x; then
26334 # Check if linker supports --as-needed and --no-as-needed options
26335 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26336 gcc_cv_ld_as_needed=yes
26337 fi
26338 fi
26339
26340 fi
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26342 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26343 if test x"$gcc_cv_ld_as_needed" = xyes; then
26344
26345 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26346
26347 fi
26348
26349 case "$target:$tm_file" in
26350 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26352 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26353 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26354 $as_echo_n "(cached) " >&6
26355 else
26356 gcc_cv_ld_no_dot_syms=no
26357 if test $in_tree_ld = yes ; then
26358 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
26359 gcc_cv_ld_no_dot_syms=yes
26360 fi
26361 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26362 cat > conftest1.s <<EOF
26363 .text
26364 bl .foo
26365 EOF
26366 cat > conftest2.s <<EOF
26367 .section ".opd","aw"
26368 .align 3
26369 .globl foo
26370 .type foo,@function
26371 foo:
26372 .quad .LEfoo,.TOC.@tocbase,0
26373 .text
26374 .LEfoo:
26375 blr
26376 .size foo,.-.LEfoo
26377 EOF
26378 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26379 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26380 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26381 gcc_cv_ld_no_dot_syms=yes
26382 fi
26383 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26384 fi
26385
26386 fi
26387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26388 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26389 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26390
26391 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26392
26393 fi
26394
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26396 $as_echo_n "checking linker large toc support... " >&6; }
26397 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26398 $as_echo_n "(cached) " >&6
26399 else
26400 gcc_cv_ld_large_toc=no
26401 if test $in_tree_ld = yes ; then
26402 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
26403 gcc_cv_ld_large_toc=yes
26404 fi
26405 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26406 cat > conftest.s <<EOF
26407 .section ".tbss","awT",@nobits
26408 .align 3
26409 ie0: .space 8
26410 .global _start
26411 .text
26412 _start:
26413 addis 9,13,ie0@got@tprel@ha
26414 ld 9,ie0@got@tprel@l(9)
26415 EOF
26416 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26417 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26418 gcc_cv_ld_large_toc=yes
26419 fi
26420 rm -f conftest conftest.o conftest.s
26421 fi
26422
26423 fi
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26425 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26426 if test x"$gcc_cv_ld_large_toc" = xyes; then
26427
26428 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26429
26430 fi
26431 ;;
26432 esac
26433
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26435 $as_echo_n "checking linker --build-id support... " >&6; }
26436 if test "${gcc_cv_ld_buildid+set}" = set; then :
26437 $as_echo_n "(cached) " >&6
26438 else
26439 gcc_cv_ld_buildid=no
26440 if test $in_tree_ld = yes ; then
26441 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26442 "$gcc_cv_gld_minor_version" -ge 18 -o \
26443 "$gcc_cv_gld_major_version" -gt 2 \
26444 && test $in_tree_ld_is_elf = yes; then
26445 gcc_cv_ld_buildid=yes
26446 fi
26447 elif test x$gcc_cv_ld != x; then
26448 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26449 gcc_cv_ld_buildid=yes
26450 fi
26451 fi
26452 fi
26453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26454 $as_echo "$gcc_cv_ld_buildid" >&6; }
26455 if test x"$gcc_cv_ld_buildid" = xyes; then
26456
26457 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26458
26459 fi
26460
26461 # Check whether --enable-linker-build-id was given.
26462 if test "${enable_linker_build_id+set}" = set; then :
26463 enableval=$enable_linker_build_id;
26464 else
26465 enable_linker_build_id=no
26466 fi
26467
26468
26469 if test x"$enable_linker_build_id" = xyes; then
26470 if test x"$gcc_cv_ld_buildid" = xyes; then
26471
26472 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26473
26474 else
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26476 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26477 fi
26478 fi
26479
26480 # In binutils 2.21, GNU ld gained support for new emulations fully
26481 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26483 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26484 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26485 $as_echo_n "(cached) " >&6
26486 else
26487 gcc_cv_ld_sol2_emulation=no
26488 if test $in_tree_ld = yes ; then
26489 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26490 "$gcc_cv_gld_minor_version" -ge 21 -o \
26491 "$gcc_cv_gld_major_version" -gt 2 \
26492 && test $in_tree_ld_is_elf = yes; then
26493 gcc_cv_ld_sol2_emulation=yes
26494 fi
26495 elif test x$gcc_cv_ld != x; then
26496 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26497 grep _sol2 > /dev/null; then
26498 gcc_cv_ld_sol2_emulation=yes
26499 fi
26500 fi
26501 fi
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26503 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26504 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26505
26506 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26507
26508 fi
26509
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26511 $as_echo_n "checking linker --sysroot support... " >&6; }
26512 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26513 $as_echo_n "(cached) " >&6
26514 else
26515 gcc_cv_ld_sysroot=no
26516 if test $in_tree_ld = yes ; then
26517 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
26518 gcc_cv_ld_sysroot=yes
26519 fi
26520 elif test x$gcc_cv_ld != x; then
26521 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26522 gcc_cv_ld_sysroot=yes
26523 fi
26524 fi
26525 fi
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26527 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26528 if test x"$gcc_cv_ld_sysroot" = xyes; then
26529
26530 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26531
26532 fi
26533
26534 if test x$with_sysroot = x && test x$host = x$target \
26535 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26536 && test "$prefix" != "NONE"; then
26537
26538 cat >>confdefs.h <<_ACEOF
26539 #define PREFIX_INCLUDE_DIR "$prefix/include"
26540 _ACEOF
26541
26542 fi
26543
26544 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26545 if test "x$with_headers" != x; then
26546 target_header_dir=$with_headers
26547 elif test "x$with_sysroot" = x; then
26548 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26549 elif test "x$with_build_sysroot" != "x"; then
26550 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26551 elif test "x$with_sysroot" = xyes; then
26552 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26553 else
26554 target_header_dir="${with_sysroot}${native_system_header_dir}"
26555 fi
26556 else
26557 target_header_dir=${native_system_header_dir}
26558 fi
26559
26560 # Test for stack protector support in target C library.
26561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26562 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26563 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26564 $as_echo_n "(cached) " >&6
26565 else
26566 gcc_cv_libc_provides_ssp=no
26567 case "$target" in
26568 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26569 # glibc 2.4 and later provides __stack_chk_fail and
26570 # either __stack_chk_guard, or TLS access to stack guard canary.
26571 if test -f $target_header_dir/features.h \
26572 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26573 $target_header_dir/features.h > /dev/null; then
26574 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26575 $target_header_dir/features.h > /dev/null; then
26576 gcc_cv_libc_provides_ssp=yes
26577 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26578 $target_header_dir/features.h > /dev/null \
26579 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26580 $target_header_dir/features.h > /dev/null; then
26581 gcc_cv_libc_provides_ssp=yes
26582 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26583 $target_header_dir/features.h > /dev/null && \
26584 test -f $target_header_dir/bits/uClibc_config.h && \
26585 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26586 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26587 gcc_cv_libc_provides_ssp=yes
26588 fi
26589 fi
26590 ;;
26591 *-*-gnu*)
26592 # Avoid complicated tests (see
26593 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26594 # simply assert that glibc does provide this, which is true for all
26595 # realistically usable GNU/Hurd configurations.
26596 gcc_cv_libc_provides_ssp=yes;;
26597 *-*-darwin* | *-*-freebsd*)
26598 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26599 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26600 gcc_cv_libc_provides_ssp=yes
26601 else
26602 echo "no __stack_chk_fail on this target"
26603 fi
26604
26605 ;;
26606 *) gcc_cv_libc_provides_ssp=no ;;
26607 esac
26608 fi
26609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26610 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26611
26612 if test x$gcc_cv_libc_provides_ssp = xyes; then
26613
26614 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26615
26616 fi
26617
26618 # Test for <sys/sdt.h> on the target.
26619
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26621 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26622 have_sys_sdt_h=no
26623 if test -f $target_header_dir/sys/sdt.h; then
26624 have_sys_sdt_h=yes
26625
26626 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26627
26628 fi
26629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26630 $as_echo "$have_sys_sdt_h" >&6; }
26631
26632 # Check if TFmode long double should be used by default or not.
26633 # Some glibc targets used DFmode long double, but with glibc 2.4
26634 # and later they can use TFmode.
26635 case "$target" in
26636 powerpc*-*-linux* | \
26637 sparc*-*-linux* | \
26638 s390*-*-linux* | \
26639 alpha*-*-linux*)
26640
26641 # Check whether --with-long-double-128 was given.
26642 if test "${with_long_double_128+set}" = set; then :
26643 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26644 else
26645 gcc_cv_target_ldbl128=no
26646 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26647 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26648 && gcc_cv_target_ldbl128=yes
26649
26650 fi
26651
26652 ;;
26653 esac
26654 if test x$gcc_cv_target_ldbl128 = xyes; then
26655
26656 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26657
26658 fi
26659
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26661 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26662 gcc_cv_target_dl_iterate_phdr=unknown
26663 case "$target" in
26664 *-*-solaris2*)
26665 # <link.h> needs both a dl_iterate_phdr declaration and support for
26666 # compilation with largefile support.
26667 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26668 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26669 gcc_cv_target_dl_iterate_phdr=yes
26670 else
26671 gcc_cv_target_dl_iterate_phdr=no
26672 fi
26673 ;;
26674 esac
26675
26676 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26677
26678 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26679
26680 fi
26681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26682 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26683
26684 # Find out what GC implementation we want, or may, use.
26685
26686 # Check whether --with-gc was given.
26687 if test "${with_gc+set}" = set; then :
26688 withval=$with_gc; case "$withval" in
26689 page)
26690 GGC=ggc-$withval
26691 ;;
26692 zone)
26693 GGC=ggc-$withval
26694
26695 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26696
26697 ;;
26698 *)
26699 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26700 ;;
26701 esac
26702 else
26703 GGC=ggc-page
26704 fi
26705
26706
26707 echo "Using $GGC for garbage collection."
26708
26709 # Libraries to use on the host. This will normally be set by the top
26710 # level Makefile. Here we simply capture the value for our Makefile.
26711 if test -z "${HOST_LIBS+set}"; then
26712 HOST_LIBS=
26713 fi
26714
26715
26716 # Use the system's zlib library.
26717 zlibdir=-L../zlib
26718 zlibinc="-I\$(srcdir)/../zlib"
26719
26720 # Check whether --with-system-zlib was given.
26721 if test "${with_system_zlib+set}" = set; then :
26722 withval=$with_system_zlib; zlibdir=
26723 zlibinc=
26724
26725 fi
26726
26727
26728
26729
26730
26731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26732 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26733 # Check whether --enable-maintainer-mode was given.
26734 if test "${enable_maintainer_mode+set}" = set; then :
26735 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26736 else
26737 maintainer_mode=no
26738 fi
26739
26740
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26742 $as_echo "$maintainer_mode" >&6; }
26743
26744 if test "$maintainer_mode" = "yes"; then
26745 MAINT=''
26746 else
26747 MAINT='#'
26748 fi
26749
26750 # --------------
26751 # Language hooks
26752 # --------------
26753
26754 # Make empty files to contain the specs and options for each language.
26755 # Then add #include lines to for a compiler that has specs and/or options.
26756
26757 subdirs=
26758 lang_opt_files=
26759 lang_specs_files=
26760 lang_tree_files=
26761 # These (without "all_") are set in each config-lang.in.
26762 # `language' must be a single word so is spelled singularly.
26763 all_languages=
26764 all_compilers=
26765 all_outputs='Makefile'
26766 # List of language makefile fragments.
26767 all_lang_makefrags=
26768 # Additional files for gengtype
26769 all_gtfiles="$target_gtfiles"
26770
26771 # These are the languages that are set in --enable-languages,
26772 # and are available in the GCC tree.
26773 all_selected_languages=
26774
26775 # Add the language fragments.
26776 # Languages are added via two mechanisms. Some information must be
26777 # recorded in makefile variables, these are defined in config-lang.in.
26778 # We accumulate them and plug them into the main Makefile.
26779 # The other mechanism is a set of hooks for each of the main targets
26780 # like `clean', `install', etc.
26781
26782 language_hooks="Make-hooks"
26783
26784 for lang in ${srcdir}/*/config-lang.in
26785 do
26786 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26787
26788 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26789 if test "x$lang_alias" = x
26790 then
26791 echo "$lang doesn't set \$language." 1>&2
26792 exit 1
26793 fi
26794 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26795 subdirs="$subdirs $subdir"
26796
26797 # $gcc_subdir is where the gcc integration files are to be found
26798 # for a language, both for internal compiler purposes (compiler
26799 # sources implementing front-end to GCC tree converters), and for
26800 # build infrastructure purposes (Make-lang.in, etc.)
26801 #
26802 # This will be <subdir> (relative to $srcdir) if a line like
26803 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26804 # is found in <langdir>/config-lang.in, and will remain <langdir>
26805 # otherwise.
26806 #
26807 # Except for the language alias (fetched above), the regular
26808 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26809 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26810 # only this and the language alias.
26811
26812 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26813 if [ "$gcc_subdir" = "" ]; then
26814 gcc_subdir="$subdir"
26815 fi
26816
26817 case ",$enable_languages," in
26818 *,$lang_alias,*)
26819 all_selected_languages="$all_selected_languages $lang_alias"
26820 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26821 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26822 fi
26823 ;;
26824 esac
26825
26826 language=
26827 boot_language=
26828 compilers=
26829 outputs=
26830 gtfiles=
26831 subdir_requires=
26832 . ${srcdir}/$gcc_subdir/config-lang.in
26833 if test "x$language" = x
26834 then
26835 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26836 exit 1
26837 fi
26838
26839 ok=:
26840 case ",$enable_languages," in
26841 *,$lang_alias,*) ;;
26842 *)
26843 for i in $subdir_requires; do
26844 test -f "${srcdir}/$i/config-lang.in" && continue
26845 ok=false
26846 break
26847 done
26848 ;;
26849 esac
26850 $ok || continue
26851
26852 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26853 if test -f $srcdir/$gcc_subdir/lang.opt; then
26854 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26855 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26856 fi
26857 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26858 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26859 fi
26860 all_languages="$all_languages $language"
26861 all_compilers="$all_compilers $compilers"
26862 all_outputs="$all_outputs $outputs"
26863 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26864 case ",$enable_languages," in
26865 *,lto,*)
26866
26867 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26868
26869 enable_lto=yes
26870
26871 ;;
26872 *) ;;
26873 esac
26874 done
26875
26876 # Pick up gtfiles for c
26877 gtfiles=
26878 . ${srcdir}/c-config-lang.in
26879 all_gtfiles="$all_gtfiles [c] $gtfiles"
26880
26881 check_languages=
26882 for language in $all_selected_languages
26883 do
26884 check_languages="$check_languages check-$language"
26885 done
26886
26887 # We link each language in with a set of hooks, reached indirectly via
26888 # lang.${target}. Only do so for selected languages.
26889
26890 rm -f Make-hooks
26891 touch Make-hooks
26892 target_list="all.cross start.encap rest.encap tags \
26893 install-common install-man install-info install-pdf install-html dvi \
26894 pdf html uninstall info man srcextra srcman srcinfo \
26895 mostlyclean clean distclean maintainer-clean install-plugin"
26896
26897 for t in $target_list
26898 do
26899 x=
26900 for lang in $all_selected_languages
26901 do
26902 x="$x $lang.$t"
26903 done
26904 echo "lang.$t: $x" >> Make-hooks
26905 done
26906
26907 # --------
26908 # Option include files
26909 # --------
26910
26911 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26912 option_includes="option-includes.mk"
26913
26914
26915 # --------
26916 # UNSORTED
26917 # --------
26918
26919 # Create .gdbinit.
26920
26921 echo "dir ." > .gdbinit
26922 echo "dir ${srcdir}" >> .gdbinit
26923 if test x$gdb_needs_out_file_path = xyes
26924 then
26925 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26926 fi
26927 if test "x$subdirs" != x; then
26928 for s in $subdirs
26929 do
26930 echo "dir ${srcdir}/$s" >> .gdbinit
26931 done
26932 fi
26933 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26934
26935 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26936
26937
26938
26939 # Find a directory in which to install a shared libgcc.
26940
26941 # Check whether --enable-version-specific-runtime-libs was given.
26942 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26943 enableval=$enable_version_specific_runtime_libs;
26944 fi
26945
26946
26947 # Substitute configuration variables
26948
26949
26950
26951
26952
26953
26954
26955
26956
26957
26958
26959
26960
26961
26962
26963
26964
26965
26966
26967
26968
26969
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980
26981
26982
26983
26984
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011 # Echo link setup.
27012 if test x${build} = x${host} ; then
27013 if test x${host} = x${target} ; then
27014 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27015 else
27016 echo "Links are now set up to build a cross-compiler" 1>&2
27017 echo " from ${host} to ${target}." 1>&2
27018 fi
27019 else
27020 if test x${host} = x${target} ; then
27021 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27022 echo " for ${target}." 1>&2
27023 else
27024 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27025 echo " from ${host} to ${target}." 1>&2
27026 fi
27027 fi
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037 if test "x${CLOOGLIBS}" != "x" ; then
27038
27039 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27040
27041 fi
27042
27043 # Check for plugin support
27044 # Check whether --enable-plugin was given.
27045 if test "${enable_plugin+set}" = set; then :
27046 enableval=$enable_plugin; enable_plugin=$enableval
27047 else
27048 enable_plugin=yes; default_plugin=yes
27049 fi
27050
27051
27052 pluginlibs=
27053
27054 case "${host}" in
27055 *-*-darwin*)
27056 if test x$build = x$host; then
27057 export_sym_check="nm${exeext} -g"
27058 elif test x$host = x$target; then
27059 export_sym_check="$gcc_cv_nm -g"
27060 else
27061 export_sym_check=
27062 fi
27063 ;;
27064 *)
27065 if test x$build = x$host; then
27066 export_sym_check="objdump${exeext} -T"
27067 elif test x$host = x$target; then
27068 export_sym_check="$gcc_cv_objdump -T"
27069 else
27070 export_sym_check=
27071 fi
27072 ;;
27073 esac
27074
27075 if test x"$enable_plugin" = x"yes"; then
27076
27077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27078 $as_echo_n "checking for exported symbols... " >&6; }
27079 if test "x$export_sym_check" != x; then
27080 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27081 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27082 if $export_sym_check conftest | grep foobar > /dev/null; then
27083 : # No need to use a flag
27084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27085 $as_echo "yes" >&6; }
27086 else
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27088 $as_echo "yes" >&6; }
27089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27090 $as_echo_n "checking for -rdynamic... " >&6; }
27091 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27092 if $export_sym_check conftest | grep foobar > /dev/null; then
27093 plugin_rdynamic=yes
27094 pluginlibs="-rdynamic"
27095 else
27096 plugin_rdynamic=no
27097 enable_plugin=no
27098 fi
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27100 $as_echo "$plugin_rdynamic" >&6; }
27101 fi
27102 else
27103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27104 $as_echo "unable to check" >&6; }
27105 fi
27106
27107 # Check -ldl
27108 saved_LIBS="$LIBS"
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27110 $as_echo_n "checking for library containing dlopen... " >&6; }
27111 if test "${ac_cv_search_dlopen+set}" = set; then :
27112 $as_echo_n "(cached) " >&6
27113 else
27114 ac_func_search_save_LIBS=$LIBS
27115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27116 /* end confdefs.h. */
27117
27118 /* Override any GCC internal prototype to avoid an error.
27119 Use char because int might match the return type of a GCC
27120 builtin and then its argument prototype would still apply. */
27121 #ifdef __cplusplus
27122 extern "C"
27123 #endif
27124 char dlopen ();
27125 int
27126 main ()
27127 {
27128 return dlopen ();
27129 ;
27130 return 0;
27131 }
27132 _ACEOF
27133 for ac_lib in '' dl; do
27134 if test -z "$ac_lib"; then
27135 ac_res="none required"
27136 else
27137 ac_res=-l$ac_lib
27138 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27139 fi
27140 if ac_fn_c_try_link "$LINENO"; then :
27141 ac_cv_search_dlopen=$ac_res
27142 fi
27143 rm -f core conftest.err conftest.$ac_objext \
27144 conftest$ac_exeext
27145 if test "${ac_cv_search_dlopen+set}" = set; then :
27146 break
27147 fi
27148 done
27149 if test "${ac_cv_search_dlopen+set}" = set; then :
27150
27151 else
27152 ac_cv_search_dlopen=no
27153 fi
27154 rm conftest.$ac_ext
27155 LIBS=$ac_func_search_save_LIBS
27156 fi
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27158 $as_echo "$ac_cv_search_dlopen" >&6; }
27159 ac_res=$ac_cv_search_dlopen
27160 if test "$ac_res" != no; then :
27161 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27162
27163 fi
27164
27165 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27166 pluginlibs="$pluginlibs -ldl"
27167 fi
27168 LIBS="$saved_LIBS"
27169
27170 # Check that we can build shared objects with -fPIC -shared
27171 saved_LDFLAGS="$LDFLAGS"
27172 saved_CFLAGS="$CFLAGS"
27173 case "${host}" in
27174 *-*-darwin*)
27175 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27176 CFLAGS="$CFLAGS -fPIC"
27177 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27178 ;;
27179 *)
27180 CFLAGS="$CFLAGS -fPIC"
27181 LDFLAGS="$LDFLAGS -fPIC -shared"
27182 ;;
27183 esac
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27185 $as_echo_n "checking for -fPIC -shared... " >&6; }
27186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27187 /* end confdefs.h. */
27188 extern int X;
27189 int
27190 main ()
27191 {
27192 return X == 0;
27193 ;
27194 return 0;
27195 }
27196 _ACEOF
27197 if ac_fn_c_try_link "$LINENO"; then :
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27199 $as_echo "yes" >&6; }; have_pic_shared=yes
27200 else
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27202 $as_echo "no" >&6; }; have_pic_shared=no
27203 fi
27204 rm -f core conftest.err conftest.$ac_objext \
27205 conftest$ac_exeext conftest.$ac_ext
27206 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27207 pluginlibs=
27208 enable_plugin=no
27209 fi
27210 LDFLAGS="$saved_LDFLAGS"
27211 CFLAGS="$saved_CFLAGS"
27212
27213 # If plugin support had been requested but not available, fail.
27214 if test x"$enable_plugin" = x"no" ; then
27215 if test x"$default_plugin" != x"yes"; then
27216 as_fn_error "
27217 Building GCC with plugin support requires a host that supports
27218 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27219 fi
27220 fi
27221 fi
27222
27223
27224
27225 if test x"$enable_plugin" = x"yes"; then
27226
27227 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27228
27229 fi
27230
27231
27232 # Check whether --enable-libquadmath-support was given.
27233 if test "${enable_libquadmath_support+set}" = set; then :
27234 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27235 else
27236 ENABLE_LIBQUADMATH_SUPPORT=yes
27237 fi
27238
27239 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27240
27241 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27242
27243 fi
27244
27245
27246 # Specify what hash style to use by default.
27247
27248 # Check whether --with-linker-hash-style was given.
27249 if test "${with_linker_hash_style+set}" = set; then :
27250 withval=$with_linker_hash_style; case x"$withval" in
27251 xsysv)
27252 LINKER_HASH_STYLE=sysv
27253 ;;
27254 xgnu)
27255 LINKER_HASH_STYLE=gnu
27256 ;;
27257 xboth)
27258 LINKER_HASH_STYLE=both
27259 ;;
27260 *)
27261 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27262 ;;
27263 esac
27264 else
27265 LINKER_HASH_STYLE=''
27266 fi
27267
27268 if test x"${LINKER_HASH_STYLE}" != x; then
27269
27270 cat >>confdefs.h <<_ACEOF
27271 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27272 _ACEOF
27273
27274 fi
27275
27276 # Configure the subdirectories
27277 # AC_CONFIG_SUBDIRS($subdirs)
27278
27279 # Create the Makefile
27280 # and configure language subdirectories
27281 ac_config_files="$ac_config_files $all_outputs"
27282
27283
27284 ac_config_commands="$ac_config_commands default"
27285
27286 cat >confcache <<\_ACEOF
27287 # This file is a shell script that caches the results of configure
27288 # tests run on this system so they can be shared between configure
27289 # scripts and configure runs, see configure's option --config-cache.
27290 # It is not useful on other systems. If it contains results you don't
27291 # want to keep, you may remove or edit it.
27292 #
27293 # config.status only pays attention to the cache file if you give it
27294 # the --recheck option to rerun configure.
27295 #
27296 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27297 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27298 # following values.
27299
27300 _ACEOF
27301
27302 # The following way of writing the cache mishandles newlines in values,
27303 # but we know of no workaround that is simple, portable, and efficient.
27304 # So, we kill variables containing newlines.
27305 # Ultrix sh set writes to stderr and can't be redirected directly,
27306 # and sets the high bit in the cache file unless we assign to the vars.
27307 (
27308 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27309 eval ac_val=\$$ac_var
27310 case $ac_val in #(
27311 *${as_nl}*)
27312 case $ac_var in #(
27313 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27314 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27315 esac
27316 case $ac_var in #(
27317 _ | IFS | as_nl) ;; #(
27318 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27319 *) { eval $ac_var=; unset $ac_var;} ;;
27320 esac ;;
27321 esac
27322 done
27323
27324 (set) 2>&1 |
27325 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27326 *${as_nl}ac_space=\ *)
27327 # `set' does not quote correctly, so add quotes: double-quote
27328 # substitution turns \\\\ into \\, and sed turns \\ into \.
27329 sed -n \
27330 "s/'/'\\\\''/g;
27331 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27332 ;; #(
27333 *)
27334 # `set' quotes correctly as required by POSIX, so do not add quotes.
27335 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27336 ;;
27337 esac |
27338 sort
27339 ) |
27340 sed '
27341 /^ac_cv_env_/b end
27342 t clear
27343 :clear
27344 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27345 t end
27346 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27347 :end' >>confcache
27348 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27349 if test -w "$cache_file"; then
27350 test "x$cache_file" != "x/dev/null" &&
27351 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27352 $as_echo "$as_me: updating cache $cache_file" >&6;}
27353 cat confcache >$cache_file
27354 else
27355 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27356 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27357 fi
27358 fi
27359 rm -f confcache
27360
27361 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27362 # Let make expand exec_prefix.
27363 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27364
27365 DEFS=-DHAVE_CONFIG_H
27366
27367 ac_libobjs=
27368 ac_ltlibobjs=
27369 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27370 # 1. Remove the extension, and $U if already installed.
27371 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27372 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27373 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27374 # will be set to the directory where LIBOBJS objects are built.
27375 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27376 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27377 done
27378 LIBOBJS=$ac_libobjs
27379
27380 LTLIBOBJS=$ac_ltlibobjs
27381
27382
27383
27384
27385 : ${CONFIG_STATUS=./config.status}
27386 ac_write_fail=0
27387 ac_clean_files_save=$ac_clean_files
27388 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27390 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27391 as_write_fail=0
27392 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27393 #! $SHELL
27394 # Generated by $as_me.
27395 # Run this file to recreate the current configuration.
27396 # Compiler output produced by configure, useful for debugging
27397 # configure, is in config.log if it exists.
27398
27399 debug=false
27400 ac_cs_recheck=false
27401 ac_cs_silent=false
27402
27403 SHELL=\${CONFIG_SHELL-$SHELL}
27404 export SHELL
27405 _ASEOF
27406 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27407 ## -------------------- ##
27408 ## M4sh Initialization. ##
27409 ## -------------------- ##
27410
27411 # Be more Bourne compatible
27412 DUALCASE=1; export DUALCASE # for MKS sh
27413 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27414 emulate sh
27415 NULLCMD=:
27416 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27417 # is contrary to our usage. Disable this feature.
27418 alias -g '${1+"$@"}'='"$@"'
27419 setopt NO_GLOB_SUBST
27420 else
27421 case `(set -o) 2>/dev/null` in #(
27422 *posix*) :
27423 set -o posix ;; #(
27424 *) :
27425 ;;
27426 esac
27427 fi
27428
27429
27430 as_nl='
27431 '
27432 export as_nl
27433 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27434 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27435 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27436 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27437 # Prefer a ksh shell builtin over an external printf program on Solaris,
27438 # but without wasting forks for bash or zsh.
27439 if test -z "$BASH_VERSION$ZSH_VERSION" \
27440 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27441 as_echo='print -r --'
27442 as_echo_n='print -rn --'
27443 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27444 as_echo='printf %s\n'
27445 as_echo_n='printf %s'
27446 else
27447 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27448 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27449 as_echo_n='/usr/ucb/echo -n'
27450 else
27451 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27452 as_echo_n_body='eval
27453 arg=$1;
27454 case $arg in #(
27455 *"$as_nl"*)
27456 expr "X$arg" : "X\\(.*\\)$as_nl";
27457 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27458 esac;
27459 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27460 '
27461 export as_echo_n_body
27462 as_echo_n='sh -c $as_echo_n_body as_echo'
27463 fi
27464 export as_echo_body
27465 as_echo='sh -c $as_echo_body as_echo'
27466 fi
27467
27468 # The user is always right.
27469 if test "${PATH_SEPARATOR+set}" != set; then
27470 PATH_SEPARATOR=:
27471 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27472 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27473 PATH_SEPARATOR=';'
27474 }
27475 fi
27476
27477
27478 # IFS
27479 # We need space, tab and new line, in precisely that order. Quoting is
27480 # there to prevent editors from complaining about space-tab.
27481 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27482 # splitting by setting IFS to empty value.)
27483 IFS=" "" $as_nl"
27484
27485 # Find who we are. Look in the path if we contain no directory separator.
27486 case $0 in #((
27487 *[\\/]* ) as_myself=$0 ;;
27488 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27489 for as_dir in $PATH
27490 do
27491 IFS=$as_save_IFS
27492 test -z "$as_dir" && as_dir=.
27493 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27494 done
27495 IFS=$as_save_IFS
27496
27497 ;;
27498 esac
27499 # We did not find ourselves, most probably we were run as `sh COMMAND'
27500 # in which case we are not to be found in the path.
27501 if test "x$as_myself" = x; then
27502 as_myself=$0
27503 fi
27504 if test ! -f "$as_myself"; then
27505 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27506 exit 1
27507 fi
27508
27509 # Unset variables that we do not need and which cause bugs (e.g. in
27510 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27511 # suppresses any "Segmentation fault" message there. '((' could
27512 # trigger a bug in pdksh 5.2.14.
27513 for as_var in BASH_ENV ENV MAIL MAILPATH
27514 do eval test x\${$as_var+set} = xset \
27515 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27516 done
27517 PS1='$ '
27518 PS2='> '
27519 PS4='+ '
27520
27521 # NLS nuisances.
27522 LC_ALL=C
27523 export LC_ALL
27524 LANGUAGE=C
27525 export LANGUAGE
27526
27527 # CDPATH.
27528 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27529
27530
27531 # as_fn_error ERROR [LINENO LOG_FD]
27532 # ---------------------------------
27533 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27534 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27535 # script with status $?, using 1 if that was 0.
27536 as_fn_error ()
27537 {
27538 as_status=$?; test $as_status -eq 0 && as_status=1
27539 if test "$3"; then
27540 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27541 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27542 fi
27543 $as_echo "$as_me: error: $1" >&2
27544 as_fn_exit $as_status
27545 } # as_fn_error
27546
27547
27548 # as_fn_set_status STATUS
27549 # -----------------------
27550 # Set $? to STATUS, without forking.
27551 as_fn_set_status ()
27552 {
27553 return $1
27554 } # as_fn_set_status
27555
27556 # as_fn_exit STATUS
27557 # -----------------
27558 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27559 as_fn_exit ()
27560 {
27561 set +e
27562 as_fn_set_status $1
27563 exit $1
27564 } # as_fn_exit
27565
27566 # as_fn_unset VAR
27567 # ---------------
27568 # Portably unset VAR.
27569 as_fn_unset ()
27570 {
27571 { eval $1=; unset $1;}
27572 }
27573 as_unset=as_fn_unset
27574 # as_fn_append VAR VALUE
27575 # ----------------------
27576 # Append the text in VALUE to the end of the definition contained in VAR. Take
27577 # advantage of any shell optimizations that allow amortized linear growth over
27578 # repeated appends, instead of the typical quadratic growth present in naive
27579 # implementations.
27580 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27581 eval 'as_fn_append ()
27582 {
27583 eval $1+=\$2
27584 }'
27585 else
27586 as_fn_append ()
27587 {
27588 eval $1=\$$1\$2
27589 }
27590 fi # as_fn_append
27591
27592 # as_fn_arith ARG...
27593 # ------------------
27594 # Perform arithmetic evaluation on the ARGs, and store the result in the
27595 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27596 # must be portable across $(()) and expr.
27597 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27598 eval 'as_fn_arith ()
27599 {
27600 as_val=$(( $* ))
27601 }'
27602 else
27603 as_fn_arith ()
27604 {
27605 as_val=`expr "$@" || test $? -eq 1`
27606 }
27607 fi # as_fn_arith
27608
27609
27610 if expr a : '\(a\)' >/dev/null 2>&1 &&
27611 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27612 as_expr=expr
27613 else
27614 as_expr=false
27615 fi
27616
27617 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27618 as_basename=basename
27619 else
27620 as_basename=false
27621 fi
27622
27623 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27624 as_dirname=dirname
27625 else
27626 as_dirname=false
27627 fi
27628
27629 as_me=`$as_basename -- "$0" ||
27630 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27631 X"$0" : 'X\(//\)$' \| \
27632 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27633 $as_echo X/"$0" |
27634 sed '/^.*\/\([^/][^/]*\)\/*$/{
27635 s//\1/
27636 q
27637 }
27638 /^X\/\(\/\/\)$/{
27639 s//\1/
27640 q
27641 }
27642 /^X\/\(\/\).*/{
27643 s//\1/
27644 q
27645 }
27646 s/.*/./; q'`
27647
27648 # Avoid depending upon Character Ranges.
27649 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27650 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27651 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27652 as_cr_digits='0123456789'
27653 as_cr_alnum=$as_cr_Letters$as_cr_digits
27654
27655 ECHO_C= ECHO_N= ECHO_T=
27656 case `echo -n x` in #(((((
27657 -n*)
27658 case `echo 'xy\c'` in
27659 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27660 xy) ECHO_C='\c';;
27661 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27662 ECHO_T=' ';;
27663 esac;;
27664 *)
27665 ECHO_N='-n';;
27666 esac
27667
27668 rm -f conf$$ conf$$.exe conf$$.file
27669 if test -d conf$$.dir; then
27670 rm -f conf$$.dir/conf$$.file
27671 else
27672 rm -f conf$$.dir
27673 mkdir conf$$.dir 2>/dev/null
27674 fi
27675 if (echo >conf$$.file) 2>/dev/null; then
27676 if ln -s conf$$.file conf$$ 2>/dev/null; then
27677 as_ln_s='ln -s'
27678 # ... but there are two gotchas:
27679 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27680 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27681 # In both cases, we have to default to `cp -p'.
27682 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27683 as_ln_s='cp -p'
27684 elif ln conf$$.file conf$$ 2>/dev/null; then
27685 as_ln_s=ln
27686 else
27687 as_ln_s='cp -p'
27688 fi
27689 else
27690 as_ln_s='cp -p'
27691 fi
27692 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27693 rmdir conf$$.dir 2>/dev/null
27694
27695
27696 # as_fn_mkdir_p
27697 # -------------
27698 # Create "$as_dir" as a directory, including parents if necessary.
27699 as_fn_mkdir_p ()
27700 {
27701
27702 case $as_dir in #(
27703 -*) as_dir=./$as_dir;;
27704 esac
27705 test -d "$as_dir" || eval $as_mkdir_p || {
27706 as_dirs=
27707 while :; do
27708 case $as_dir in #(
27709 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27710 *) as_qdir=$as_dir;;
27711 esac
27712 as_dirs="'$as_qdir' $as_dirs"
27713 as_dir=`$as_dirname -- "$as_dir" ||
27714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27715 X"$as_dir" : 'X\(//\)[^/]' \| \
27716 X"$as_dir" : 'X\(//\)$' \| \
27717 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27718 $as_echo X"$as_dir" |
27719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27720 s//\1/
27721 q
27722 }
27723 /^X\(\/\/\)[^/].*/{
27724 s//\1/
27725 q
27726 }
27727 /^X\(\/\/\)$/{
27728 s//\1/
27729 q
27730 }
27731 /^X\(\/\).*/{
27732 s//\1/
27733 q
27734 }
27735 s/.*/./; q'`
27736 test -d "$as_dir" && break
27737 done
27738 test -z "$as_dirs" || eval "mkdir $as_dirs"
27739 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27740
27741
27742 } # as_fn_mkdir_p
27743 if mkdir -p . 2>/dev/null; then
27744 as_mkdir_p='mkdir -p "$as_dir"'
27745 else
27746 test -d ./-p && rmdir ./-p
27747 as_mkdir_p=false
27748 fi
27749
27750 if test -x / >/dev/null 2>&1; then
27751 as_test_x='test -x'
27752 else
27753 if ls -dL / >/dev/null 2>&1; then
27754 as_ls_L_option=L
27755 else
27756 as_ls_L_option=
27757 fi
27758 as_test_x='
27759 eval sh -c '\''
27760 if test -d "$1"; then
27761 test -d "$1/.";
27762 else
27763 case $1 in #(
27764 -*)set "./$1";;
27765 esac;
27766 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27767 ???[sx]*):;;*)false;;esac;fi
27768 '\'' sh
27769 '
27770 fi
27771 as_executable_p=$as_test_x
27772
27773 # Sed expression to map a string onto a valid CPP name.
27774 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27775
27776 # Sed expression to map a string onto a valid variable name.
27777 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27778
27779
27780 exec 6>&1
27781 ## ----------------------------------- ##
27782 ## Main body of $CONFIG_STATUS script. ##
27783 ## ----------------------------------- ##
27784 _ASEOF
27785 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27786
27787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27788 # Save the log message, to keep $0 and so on meaningful, and to
27789 # report actual input values of CONFIG_FILES etc. instead of their
27790 # values after options handling.
27791 ac_log="
27792 This file was extended by $as_me, which was
27793 generated by GNU Autoconf 2.64. Invocation command line was
27794
27795 CONFIG_FILES = $CONFIG_FILES
27796 CONFIG_HEADERS = $CONFIG_HEADERS
27797 CONFIG_LINKS = $CONFIG_LINKS
27798 CONFIG_COMMANDS = $CONFIG_COMMANDS
27799 $ $0 $@
27800
27801 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27802 "
27803
27804 _ACEOF
27805
27806 case $ac_config_files in *"
27807 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27808 esac
27809
27810 case $ac_config_headers in *"
27811 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27812 esac
27813
27814
27815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27816 # Files that config.status was made for.
27817 config_files="$ac_config_files"
27818 config_headers="$ac_config_headers"
27819 config_commands="$ac_config_commands"
27820
27821 _ACEOF
27822
27823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27824 ac_cs_usage="\
27825 \`$as_me' instantiates files and other configuration actions
27826 from templates according to the current configuration. Unless the files
27827 and actions are specified as TAGs, all are instantiated by default.
27828
27829 Usage: $0 [OPTION]... [TAG]...
27830
27831 -h, --help print this help, then exit
27832 -V, --version print version number and configuration settings, then exit
27833 -q, --quiet, --silent
27834 do not print progress messages
27835 -d, --debug don't remove temporary files
27836 --recheck update $as_me by reconfiguring in the same conditions
27837 --file=FILE[:TEMPLATE]
27838 instantiate the configuration file FILE
27839 --header=FILE[:TEMPLATE]
27840 instantiate the configuration header FILE
27841
27842 Configuration files:
27843 $config_files
27844
27845 Configuration headers:
27846 $config_headers
27847
27848 Configuration commands:
27849 $config_commands
27850
27851 Report bugs to the package provider."
27852
27853 _ACEOF
27854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27855 ac_cs_version="\\
27856 config.status
27857 configured by $0, generated by GNU Autoconf 2.64,
27858 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27859
27860 Copyright (C) 2009 Free Software Foundation, Inc.
27861 This config.status script is free software; the Free Software Foundation
27862 gives unlimited permission to copy, distribute and modify it."
27863
27864 ac_pwd='$ac_pwd'
27865 srcdir='$srcdir'
27866 AWK='$AWK'
27867 test -n "\$AWK" || AWK=awk
27868 _ACEOF
27869
27870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27871 # The default lists apply if the user does not specify any file.
27872 ac_need_defaults=:
27873 while test $# != 0
27874 do
27875 case $1 in
27876 --*=*)
27877 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27878 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27879 ac_shift=:
27880 ;;
27881 *)
27882 ac_option=$1
27883 ac_optarg=$2
27884 ac_shift=shift
27885 ;;
27886 esac
27887
27888 case $ac_option in
27889 # Handling of the options.
27890 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27891 ac_cs_recheck=: ;;
27892 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27893 $as_echo "$ac_cs_version"; exit ;;
27894 --debug | --debu | --deb | --de | --d | -d )
27895 debug=: ;;
27896 --file | --fil | --fi | --f )
27897 $ac_shift
27898 case $ac_optarg in
27899 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27900 esac
27901 as_fn_append CONFIG_FILES " '$ac_optarg'"
27902 ac_need_defaults=false;;
27903 --header | --heade | --head | --hea )
27904 $ac_shift
27905 case $ac_optarg in
27906 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27907 esac
27908 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27909 ac_need_defaults=false;;
27910 --he | --h)
27911 # Conflict between --help and --header
27912 as_fn_error "ambiguous option: \`$1'
27913 Try \`$0 --help' for more information.";;
27914 --help | --hel | -h )
27915 $as_echo "$ac_cs_usage"; exit ;;
27916 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27917 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27918 ac_cs_silent=: ;;
27919
27920 # This is an error.
27921 -*) as_fn_error "unrecognized option: \`$1'
27922 Try \`$0 --help' for more information." ;;
27923
27924 *) as_fn_append ac_config_targets " $1"
27925 ac_need_defaults=false ;;
27926
27927 esac
27928 shift
27929 done
27930
27931 ac_configure_extra_args=
27932
27933 if $ac_cs_silent; then
27934 exec 6>/dev/null
27935 ac_configure_extra_args="$ac_configure_extra_args --silent"
27936 fi
27937
27938 _ACEOF
27939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27940 if \$ac_cs_recheck; then
27941 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27942 shift
27943 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27944 CONFIG_SHELL='$SHELL'
27945 export CONFIG_SHELL
27946 exec "\$@"
27947 fi
27948
27949 _ACEOF
27950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27951 exec 5>>config.log
27952 {
27953 echo
27954 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27955 ## Running $as_me. ##
27956 _ASBOX
27957 $as_echo "$ac_log"
27958 } >&5
27959
27960 _ACEOF
27961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27962 #
27963 # INIT-COMMANDS
27964 #
27965 subdirs='$subdirs'
27966
27967 _ACEOF
27968
27969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27970
27971 # Handling of arguments.
27972 for ac_config_target in $ac_config_targets
27973 do
27974 case $ac_config_target in
27975 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27976 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27977 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27978 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27979 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27980 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27981
27982 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27983 esac
27984 done
27985
27986
27987 # If the user did not use the arguments to specify the items to instantiate,
27988 # then the envvar interface is used. Set only those that are not.
27989 # We use the long form for the default assignment because of an extremely
27990 # bizarre bug on SunOS 4.1.3.
27991 if $ac_need_defaults; then
27992 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27993 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27994 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27995 fi
27996
27997 # Have a temporary directory for convenience. Make it in the build tree
27998 # simply because there is no reason against having it here, and in addition,
27999 # creating and moving files from /tmp can sometimes cause problems.
28000 # Hook for its removal unless debugging.
28001 # Note that there is a small window in which the directory will not be cleaned:
28002 # after its creation but before its name has been assigned to `$tmp'.
28003 $debug ||
28004 {
28005 tmp=
28006 trap 'exit_status=$?
28007 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28008 ' 0
28009 trap 'as_fn_exit 1' 1 2 13 15
28010 }
28011 # Create a (secure) tmp directory for tmp files.
28012
28013 {
28014 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28015 test -n "$tmp" && test -d "$tmp"
28016 } ||
28017 {
28018 tmp=./conf$$-$RANDOM
28019 (umask 077 && mkdir "$tmp")
28020 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28021
28022 # Set up the scripts for CONFIG_FILES section.
28023 # No need to generate them if there are no CONFIG_FILES.
28024 # This happens for instance with `./config.status config.h'.
28025 if test -n "$CONFIG_FILES"; then
28026
28027 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28028 ac_cs_awk_getline=:
28029 ac_cs_awk_pipe_init=
28030 ac_cs_awk_read_file='
28031 while ((getline aline < (F[key])) > 0)
28032 print(aline)
28033 close(F[key])'
28034 ac_cs_awk_pipe_fini=
28035 else
28036 ac_cs_awk_getline=false
28037 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28038 ac_cs_awk_read_file='
28039 print "|#_!!_#|"
28040 print "cat " F[key] " &&"
28041 '$ac_cs_awk_pipe_init
28042 # The final `:' finishes the AND list.
28043 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28044 fi
28045 ac_cr=`echo X | tr X '\015'`
28046 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28047 # But we know of no other shell where ac_cr would be empty at this
28048 # point, so we can use a bashism as a fallback.
28049 if test "x$ac_cr" = x; then
28050 eval ac_cr=\$\'\\r\'
28051 fi
28052 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28053 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28054 ac_cs_awk_cr='\r'
28055 else
28056 ac_cs_awk_cr=$ac_cr
28057 fi
28058
28059 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28060 _ACEOF
28061
28062 # Create commands to substitute file output variables.
28063 {
28064 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28065 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28066 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28067 echo "_ACAWK" &&
28068 echo "_ACEOF"
28069 } >conf$$files.sh &&
28070 . ./conf$$files.sh ||
28071 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28072 rm -f conf$$files.sh
28073
28074 {
28075 echo "cat >conf$$subs.awk <<_ACEOF" &&
28076 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28077 echo "_ACEOF"
28078 } >conf$$subs.sh ||
28079 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28080 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28081 ac_delim='%!_!# '
28082 for ac_last_try in false false false false false :; do
28083 . ./conf$$subs.sh ||
28084 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28085
28086 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28087 if test $ac_delim_n = $ac_delim_num; then
28088 break
28089 elif $ac_last_try; then
28090 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28091 else
28092 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28093 fi
28094 done
28095 rm -f conf$$subs.sh
28096
28097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28098 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28099 _ACEOF
28100 sed -n '
28101 h
28102 s/^/S["/; s/!.*/"]=/
28103 p
28104 g
28105 s/^[^!]*!//
28106 :repl
28107 t repl
28108 s/'"$ac_delim"'$//
28109 t delim
28110 :nl
28111 h
28112 s/\(.\{148\}\).*/\1/
28113 t more1
28114 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28115 p
28116 n
28117 b repl
28118 :more1
28119 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28120 p
28121 g
28122 s/.\{148\}//
28123 t nl
28124 :delim
28125 h
28126 s/\(.\{148\}\).*/\1/
28127 t more2
28128 s/["\\]/\\&/g; s/^/"/; s/$/"/
28129 p
28130 b
28131 :more2
28132 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28133 p
28134 g
28135 s/.\{148\}//
28136 t delim
28137 ' <conf$$subs.awk | sed '
28138 /^[^""]/{
28139 N
28140 s/\n//
28141 }
28142 ' >>$CONFIG_STATUS || ac_write_fail=1
28143 rm -f conf$$subs.awk
28144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28145 _ACAWK
28146 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28147 for (key in S) S_is_set[key] = 1
28148 FS = "\a"
28149 \$ac_cs_awk_pipe_init
28150 }
28151 {
28152 line = $ 0
28153 nfields = split(line, field, "@")
28154 substed = 0
28155 len = length(field[1])
28156 for (i = 2; i < nfields; i++) {
28157 key = field[i]
28158 keylen = length(key)
28159 if (S_is_set[key]) {
28160 value = S[key]
28161 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28162 len += length(value) + length(field[++i])
28163 substed = 1
28164 } else
28165 len += 1 + keylen
28166 }
28167 if (nfields == 3 && !substed) {
28168 key = field[2]
28169 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28170 \$ac_cs_awk_read_file
28171 next
28172 }
28173 }
28174 print line
28175 }
28176 \$ac_cs_awk_pipe_fini
28177 _ACAWK
28178 _ACEOF
28179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28180 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28181 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28182 else
28183 cat
28184 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28185 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28186 _ACEOF
28187
28188 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28189 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28190 # trailing colons and then remove the whole line if VPATH becomes empty
28191 # (actually we leave an empty line to preserve line numbers).
28192 if test "x$srcdir" = x.; then
28193 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28194 s/:*\$(srcdir):*/:/
28195 s/:*\${srcdir}:*/:/
28196 s/:*@srcdir@:*/:/
28197 s/^\([^=]*=[ ]*\):*/\1/
28198 s/:*$//
28199 s/^[^=]*=[ ]*$//
28200 }'
28201 fi
28202
28203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28204 fi # test -n "$CONFIG_FILES"
28205
28206 # Set up the scripts for CONFIG_HEADERS section.
28207 # No need to generate them if there are no CONFIG_HEADERS.
28208 # This happens for instance with `./config.status Makefile'.
28209 if test -n "$CONFIG_HEADERS"; then
28210 cat >"$tmp/defines.awk" <<\_ACAWK ||
28211 BEGIN {
28212 _ACEOF
28213
28214 # Transform confdefs.h into an awk script `defines.awk', embedded as
28215 # here-document in config.status, that substitutes the proper values into
28216 # config.h.in to produce config.h.
28217
28218 # Create a delimiter string that does not exist in confdefs.h, to ease
28219 # handling of long lines.
28220 ac_delim='%!_!# '
28221 for ac_last_try in false false :; do
28222 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28223 if test -z "$ac_t"; then
28224 break
28225 elif $ac_last_try; then
28226 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28227 else
28228 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28229 fi
28230 done
28231
28232 # For the awk script, D is an array of macro values keyed by name,
28233 # likewise P contains macro parameters if any. Preserve backslash
28234 # newline sequences.
28235
28236 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28237 sed -n '
28238 s/.\{148\}/&'"$ac_delim"'/g
28239 t rset
28240 :rset
28241 s/^[ ]*#[ ]*define[ ][ ]*/ /
28242 t def
28243 d
28244 :def
28245 s/\\$//
28246 t bsnl
28247 s/["\\]/\\&/g
28248 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28249 D["\1"]=" \3"/p
28250 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28251 d
28252 :bsnl
28253 s/["\\]/\\&/g
28254 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28255 D["\1"]=" \3\\\\\\n"\\/p
28256 t cont
28257 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28258 t cont
28259 d
28260 :cont
28261 n
28262 s/.\{148\}/&'"$ac_delim"'/g
28263 t clear
28264 :clear
28265 s/\\$//
28266 t bsnlc
28267 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28268 d
28269 :bsnlc
28270 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28271 b cont
28272 ' <confdefs.h | sed '
28273 s/'"$ac_delim"'/"\\\
28274 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28275
28276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28277 for (key in D) D_is_set[key] = 1
28278 FS = "\a"
28279 }
28280 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28281 line = \$ 0
28282 split(line, arg, " ")
28283 if (arg[1] == "#") {
28284 defundef = arg[2]
28285 mac1 = arg[3]
28286 } else {
28287 defundef = substr(arg[1], 2)
28288 mac1 = arg[2]
28289 }
28290 split(mac1, mac2, "(") #)
28291 macro = mac2[1]
28292 prefix = substr(line, 1, index(line, defundef) - 1)
28293 if (D_is_set[macro]) {
28294 # Preserve the white space surrounding the "#".
28295 print prefix "define", macro P[macro] D[macro]
28296 next
28297 } else {
28298 # Replace #undef with comments. This is necessary, for example,
28299 # in the case of _POSIX_SOURCE, which is predefined and required
28300 # on some systems where configure will not decide to define it.
28301 if (defundef == "undef") {
28302 print "/*", prefix defundef, macro, "*/"
28303 next
28304 }
28305 }
28306 }
28307 { print }
28308 _ACAWK
28309 _ACEOF
28310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28311 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28312 fi # test -n "$CONFIG_HEADERS"
28313
28314
28315 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28316 shift
28317 for ac_tag
28318 do
28319 case $ac_tag in
28320 :[FHLC]) ac_mode=$ac_tag; continue;;
28321 esac
28322 case $ac_mode$ac_tag in
28323 :[FHL]*:*);;
28324 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28325 :[FH]-) ac_tag=-:-;;
28326 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28327 esac
28328 ac_save_IFS=$IFS
28329 IFS=:
28330 set x $ac_tag
28331 IFS=$ac_save_IFS
28332 shift
28333 ac_file=$1
28334 shift
28335
28336 case $ac_mode in
28337 :L) ac_source=$1;;
28338 :[FH])
28339 ac_file_inputs=
28340 for ac_f
28341 do
28342 case $ac_f in
28343 -) ac_f="$tmp/stdin";;
28344 *) # Look for the file first in the build tree, then in the source tree
28345 # (if the path is not absolute). The absolute path cannot be DOS-style,
28346 # because $ac_f cannot contain `:'.
28347 test -f "$ac_f" ||
28348 case $ac_f in
28349 [\\/$]*) false;;
28350 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28351 esac ||
28352 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28353 esac
28354 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28355 as_fn_append ac_file_inputs " '$ac_f'"
28356 done
28357
28358 # Let's still pretend it is `configure' which instantiates (i.e., don't
28359 # use $as_me), people would be surprised to read:
28360 # /* config.h. Generated by config.status. */
28361 configure_input='Generated from '`
28362 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28363 `' by configure.'
28364 if test x"$ac_file" != x-; then
28365 configure_input="$ac_file. $configure_input"
28366 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28367 $as_echo "$as_me: creating $ac_file" >&6;}
28368 fi
28369 # Neutralize special characters interpreted by sed in replacement strings.
28370 case $configure_input in #(
28371 *\&* | *\|* | *\\* )
28372 ac_sed_conf_input=`$as_echo "$configure_input" |
28373 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28374 *) ac_sed_conf_input=$configure_input;;
28375 esac
28376
28377 case $ac_tag in
28378 *:-:* | *:-) cat >"$tmp/stdin" \
28379 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28380 esac
28381 ;;
28382 esac
28383
28384 ac_dir=`$as_dirname -- "$ac_file" ||
28385 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28386 X"$ac_file" : 'X\(//\)[^/]' \| \
28387 X"$ac_file" : 'X\(//\)$' \| \
28388 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28389 $as_echo X"$ac_file" |
28390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28391 s//\1/
28392 q
28393 }
28394 /^X\(\/\/\)[^/].*/{
28395 s//\1/
28396 q
28397 }
28398 /^X\(\/\/\)$/{
28399 s//\1/
28400 q
28401 }
28402 /^X\(\/\).*/{
28403 s//\1/
28404 q
28405 }
28406 s/.*/./; q'`
28407 as_dir="$ac_dir"; as_fn_mkdir_p
28408 ac_builddir=.
28409
28410 case "$ac_dir" in
28411 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28412 *)
28413 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28414 # A ".." for each directory in $ac_dir_suffix.
28415 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28416 case $ac_top_builddir_sub in
28417 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28418 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28419 esac ;;
28420 esac
28421 ac_abs_top_builddir=$ac_pwd
28422 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28423 # for backward compatibility:
28424 ac_top_builddir=$ac_top_build_prefix
28425
28426 case $srcdir in
28427 .) # We are building in place.
28428 ac_srcdir=.
28429 ac_top_srcdir=$ac_top_builddir_sub
28430 ac_abs_top_srcdir=$ac_pwd ;;
28431 [\\/]* | ?:[\\/]* ) # Absolute name.
28432 ac_srcdir=$srcdir$ac_dir_suffix;
28433 ac_top_srcdir=$srcdir
28434 ac_abs_top_srcdir=$srcdir ;;
28435 *) # Relative name.
28436 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28437 ac_top_srcdir=$ac_top_build_prefix$srcdir
28438 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28439 esac
28440 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28441
28442
28443 case $ac_mode in
28444 :F)
28445 #
28446 # CONFIG_FILE
28447 #
28448
28449 _ACEOF
28450
28451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28452 # If the template does not know about datarootdir, expand it.
28453 # FIXME: This hack should be removed a few years after 2.60.
28454 ac_datarootdir_hack=; ac_datarootdir_seen=
28455 ac_sed_dataroot='
28456 /datarootdir/ {
28457 p
28458 q
28459 }
28460 /@datadir@/p
28461 /@docdir@/p
28462 /@infodir@/p
28463 /@localedir@/p
28464 /@mandir@/p'
28465 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28466 *datarootdir*) ac_datarootdir_seen=yes;;
28467 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28469 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28470 _ACEOF
28471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28472 ac_datarootdir_hack='
28473 s&@datadir@&$datadir&g
28474 s&@docdir@&$docdir&g
28475 s&@infodir@&$infodir&g
28476 s&@localedir@&$localedir&g
28477 s&@mandir@&$mandir&g
28478 s&\\\${datarootdir}&$datarootdir&g' ;;
28479 esac
28480 _ACEOF
28481
28482 # Neutralize VPATH when `$srcdir' = `.'.
28483 # Shell code in configure.ac might set extrasub.
28484 # FIXME: do we really want to maintain this feature?
28485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28486 ac_sed_extra="$ac_vpsub
28487 $extrasub
28488 _ACEOF
28489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28490 :t
28491 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28492 s|@configure_input@|$ac_sed_conf_input|;t t
28493 s&@top_builddir@&$ac_top_builddir_sub&;t t
28494 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28495 s&@srcdir@&$ac_srcdir&;t t
28496 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28497 s&@top_srcdir@&$ac_top_srcdir&;t t
28498 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28499 s&@builddir@&$ac_builddir&;t t
28500 s&@abs_builddir@&$ac_abs_builddir&;t t
28501 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28502 $ac_datarootdir_hack
28503 "
28504 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28505 if $ac_cs_awk_getline; then
28506 $AWK -f "$tmp/subs.awk"
28507 else
28508 $AWK -f "$tmp/subs.awk" | $SHELL
28509 fi >$tmp/out \
28510 || as_fn_error "could not create $ac_file" "$LINENO" 5
28511
28512 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28513 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28514 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28516 which seems to be undefined. Please make sure it is defined." >&5
28517 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28518 which seems to be undefined. Please make sure it is defined." >&2;}
28519
28520 rm -f "$tmp/stdin"
28521 case $ac_file in
28522 -) cat "$tmp/out" && rm -f "$tmp/out";;
28523 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28524 esac \
28525 || as_fn_error "could not create $ac_file" "$LINENO" 5
28526 ;;
28527 :H)
28528 #
28529 # CONFIG_HEADER
28530 #
28531 if test x"$ac_file" != x-; then
28532 {
28533 $as_echo "/* $configure_input */" \
28534 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28535 } >"$tmp/config.h" \
28536 || as_fn_error "could not create $ac_file" "$LINENO" 5
28537 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28538 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28539 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28540 else
28541 rm -f "$ac_file"
28542 mv "$tmp/config.h" "$ac_file" \
28543 || as_fn_error "could not create $ac_file" "$LINENO" 5
28544 fi
28545 else
28546 $as_echo "/* $configure_input */" \
28547 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28548 || as_fn_error "could not create -" "$LINENO" 5
28549 fi
28550 ;;
28551
28552 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28553 $as_echo "$as_me: executing $ac_file commands" >&6;}
28554 ;;
28555 esac
28556
28557
28558 case $ac_file$ac_mode in
28559 "as":F) chmod +x as ;;
28560 "collect-ld":F) chmod +x collect-ld ;;
28561 "nm":F) chmod +x nm ;;
28562 "default":C)
28563 case ${CONFIG_HEADERS} in
28564 *auto-host.h:config.in*)
28565 echo > cstamp-h ;;
28566 esac
28567 # Make sure all the subdirs exist.
28568 for d in $subdirs doc build common c-family
28569 do
28570 test -d $d || mkdir $d
28571 done
28572 ;;
28573
28574 esac
28575 done # for ac_tag
28576
28577
28578 as_fn_exit 0
28579 _ACEOF
28580 ac_clean_files=$ac_clean_files_save
28581
28582 test $ac_write_fail = 0 ||
28583 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28584
28585
28586 # configure is writing to config.log, and then calls config.status.
28587 # config.status does its own redirection, appending to config.log.
28588 # Unfortunately, on DOS this fails, as config.log is still kept open
28589 # by configure, so config.status won't be able to write to it; its
28590 # output is simply discarded. So we exec the FD to /dev/null,
28591 # effectively closing config.log, so it can be properly (re)opened and
28592 # appended to by config.status. When coming back to configure, we
28593 # need to make the FD available again.
28594 if test "$no_create" != yes; then
28595 ac_cs_success=:
28596 ac_config_status_args=
28597 test "$silent" = yes &&
28598 ac_config_status_args="$ac_config_status_args --quiet"
28599 exec 5>/dev/null
28600 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28601 exec 5>>config.log
28602 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28603 # would make configure fail if this is the last instruction.
28604 $ac_cs_success || as_fn_exit $?
28605 fi
28606 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28608 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28609 fi
28610
28611