trans-stmt.c (compute_overall_iter_number): Document function arguments.
[gcc.git] / boehm-gc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="gcj_mlc.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical mkinstalldirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CFLAGS CXXFLAGS CCAS CCASFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GC_CFLAGS LN_S LIBTOOL CXXCPP CPPFLAGS THREADLIBS POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE EXTRA_TEST_LIBS target_all CPLUSPLUS_TRUE CPLUSPLUS_FALSE AM_CPPFLAGS addobjs addincludes addlibs addtests CPP EGREP MY_CFLAGS toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CXXCPP_set=${CXXCPP+set}
754 ac_env_CXXCPP_value=$CXXCPP
755 ac_cv_env_CXXCPP_set=${CXXCPP+set}
756 ac_cv_env_CXXCPP_value=$CXXCPP
757 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758 ac_env_CPPFLAGS_value=$CPPFLAGS
759 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
761 ac_env_CPP_set=${CPP+set}
762 ac_env_CPP_value=$CPP
763 ac_cv_env_CPP_set=${CPP+set}
764 ac_cv_env_CPP_value=$CPP
765
766 #
767 # Report the --help message.
768 #
769 if test "$ac_init_help" = "long"; then
770 # Omit some internal or obsolete options to make the list less imposing.
771 # This message is too long to be a string in the A/UX 3.1 sh.
772 cat <<_ACEOF
773 \`configure' configures this package to adapt to many kinds of systems.
774
775 Usage: $0 [OPTION]... [VAR=VALUE]...
776
777 To assign environment variables (e.g., CC, CFLAGS...), specify them as
778 VAR=VALUE. See below for descriptions of some of the useful variables.
779
780 Defaults for the options are specified in brackets.
781
782 Configuration:
783 -h, --help display this help and exit
784 --help=short display options specific to this package
785 --help=recursive display the short help of all the included packages
786 -V, --version display version information and exit
787 -q, --quiet, --silent do not print \`checking...' messages
788 --cache-file=FILE cache test results in FILE [disabled]
789 -C, --config-cache alias for \`--cache-file=config.cache'
790 -n, --no-create do not create output files
791 --srcdir=DIR find the sources in DIR [configure dir or \`..']
792
793 _ACEOF
794
795 cat <<_ACEOF
796 Installation directories:
797 --prefix=PREFIX install architecture-independent files in PREFIX
798 [$ac_default_prefix]
799 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
800 [PREFIX]
801
802 By default, \`make install' will install all the files in
803 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
804 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
805 for instance \`--prefix=\$HOME'.
806
807 For better control, use the options below.
808
809 Fine tuning of the installation directories:
810 --bindir=DIR user executables [EPREFIX/bin]
811 --sbindir=DIR system admin executables [EPREFIX/sbin]
812 --libexecdir=DIR program executables [EPREFIX/libexec]
813 --datadir=DIR read-only architecture-independent data [PREFIX/share]
814 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
815 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
816 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
817 --libdir=DIR object code libraries [EPREFIX/lib]
818 --includedir=DIR C header files [PREFIX/include]
819 --oldincludedir=DIR C header files for non-gcc [/usr/include]
820 --infodir=DIR info documentation [PREFIX/info]
821 --mandir=DIR man documentation [PREFIX/man]
822 _ACEOF
823
824 cat <<\_ACEOF
825
826 Program names:
827 --program-prefix=PREFIX prepend PREFIX to installed program names
828 --program-suffix=SUFFIX append SUFFIX to installed program names
829 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
830
831 System types:
832 --build=BUILD configure for building on BUILD [guessed]
833 --host=HOST cross-compile to build programs to run on HOST [BUILD]
834 --target=TARGET configure for building compilers for TARGET [HOST]
835 _ACEOF
836 fi
837
838 if test -n "$ac_init_help"; then
839
840 cat <<\_ACEOF
841
842 Optional Features:
843 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
844 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
845 --enable-multilib build many library versions (default)
846 --disable-dependency-tracking speeds up one-time build
847 --enable-dependency-tracking do not reject slow dependency extractors
848 --enable-maintainer-mode enable make rules and dependencies not useful
849 (and sometimes confusing) to the casual installer
850 --enable-shared=PKGS build shared libraries default=yes
851 --enable-static=PKGS build static libraries default=yes
852 --enable-fast-install=PKGS optimize for fast installation default=yes
853 --disable-libtool-lock avoid locking (might break parallel builds)
854 --enable-parallel-mark parallelize marking and free list construction
855 --enable-gc-debug include full support for pointer backtracing etc.
856
857 Optional Packages:
858 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
859 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
860 --with-gnu-ld assume the C compiler uses GNU ld default=no
861 --with-pic try to use only PIC/non-PIC objects default=use both
862 --with-target-subdir=SUBDIR
863 configuring with a cross compiler
864 --with-cross-host=HOST configuring with a cross compiler
865 --with-ecos enable runtime eCos target support
866
867 Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
874 CXX C++ compiler command
875 CXXFLAGS C++ compiler flags
876 CXXCPP C++ preprocessor
877 CPP C preprocessor
878
879 Use these variables to override the choices made by `configure' or to help
880 it to find libraries and programs with nonstandard names/locations.
881
882 _ACEOF
883 fi
884
885 if test "$ac_init_help" = "recursive"; then
886 # If there are subdirs, report their specific --help.
887 ac_popdir=`pwd`
888 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
889 test -d $ac_dir || continue
890 ac_builddir=.
891
892 if test "$ac_dir" != .; then
893 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
894 # A "../" for each directory in $ac_dir_suffix.
895 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
896 else
897 ac_dir_suffix= ac_top_builddir=
898 fi
899
900 case $srcdir in
901 .) # No --srcdir option. We are building in place.
902 ac_srcdir=.
903 if test -z "$ac_top_builddir"; then
904 ac_top_srcdir=.
905 else
906 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
907 fi ;;
908 [\\/]* | ?:[\\/]* ) # Absolute path.
909 ac_srcdir=$srcdir$ac_dir_suffix;
910 ac_top_srcdir=$srcdir ;;
911 *) # Relative path.
912 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
913 ac_top_srcdir=$ac_top_builddir$srcdir ;;
914 esac
915
916 # Do not use `cd foo && pwd` to compute absolute paths, because
917 # the directories may not exist.
918 case `pwd` in
919 .) ac_abs_builddir="$ac_dir";;
920 *)
921 case "$ac_dir" in
922 .) ac_abs_builddir=`pwd`;;
923 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
924 *) ac_abs_builddir=`pwd`/"$ac_dir";;
925 esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_top_builddir=${ac_top_builddir}.;;
929 *)
930 case ${ac_top_builddir}. in
931 .) ac_abs_top_builddir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
933 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_srcdir=$ac_srcdir;;
938 *)
939 case $ac_srcdir in
940 .) ac_abs_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
942 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
943 esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_top_srcdir=$ac_top_srcdir;;
947 *)
948 case $ac_top_srcdir in
949 .) ac_abs_top_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
951 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
952 esac;;
953 esac
954
955 cd $ac_dir
956 # Check for guested configure; otherwise get Cygnus style configure.
957 if test -f $ac_srcdir/configure.gnu; then
958 echo
959 $SHELL $ac_srcdir/configure.gnu --help=recursive
960 elif test -f $ac_srcdir/configure; then
961 echo
962 $SHELL $ac_srcdir/configure --help=recursive
963 elif test -f $ac_srcdir/configure.ac ||
964 test -f $ac_srcdir/configure.in; then
965 echo
966 $ac_configure --help
967 else
968 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
969 fi
970 cd $ac_popdir
971 done
972 fi
973
974 test -n "$ac_init_help" && exit 0
975 if $ac_init_version; then
976 cat <<\_ACEOF
977
978 Copyright (C) 2003 Free Software Foundation, Inc.
979 This configure script is free software; the Free Software Foundation
980 gives unlimited permission to copy, distribute and modify it.
981 _ACEOF
982 exit 0
983 fi
984 exec 5>config.log
985 cat >&5 <<_ACEOF
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
988
989 It was created by $as_me, which was
990 generated by GNU Autoconf 2.59. Invocation command line was
991
992 $ $0 $@
993
994 _ACEOF
995 {
996 cat <<_ASUNAME
997 ## --------- ##
998 ## Platform. ##
999 ## --------- ##
1000
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1009
1010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1017
1018 _ASUNAME
1019
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 for as_dir in $PATH
1022 do
1023 IFS=$as_save_IFS
1024 test -z "$as_dir" && as_dir=.
1025 echo "PATH: $as_dir"
1026 done
1027
1028 } >&5
1029
1030 cat >&5 <<_ACEOF
1031
1032
1033 ## ----------- ##
1034 ## Core tests. ##
1035 ## ----------- ##
1036
1037 _ACEOF
1038
1039
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Strip out --silent because we don't want to record it for future runs.
1043 # Also quote any args containing shell meta-characters.
1044 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_configure_args=
1046 ac_configure_args0=
1047 ac_configure_args1=
1048 ac_sep=
1049 ac_must_keep_next=false
1050 for ac_pass in 1 2
1051 do
1052 for ac_arg
1053 do
1054 case $ac_arg in
1055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 continue ;;
1059 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1061 esac
1062 case $ac_pass in
1063 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1064 2)
1065 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1066 if test $ac_must_keep_next = true; then
1067 ac_must_keep_next=false # Got value, back to normal.
1068 else
1069 case $ac_arg in
1070 *=* | --config-cache | -C | -disable-* | --disable-* \
1071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1073 | -with-* | --with-* | -without-* | --without-* | --x)
1074 case "$ac_configure_args0 " in
1075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1076 esac
1077 ;;
1078 -* ) ac_must_keep_next=true ;;
1079 esac
1080 fi
1081 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1082 # Get rid of the leading space.
1083 ac_sep=" "
1084 ;;
1085 esac
1086 done
1087 done
1088 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1089 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1090
1091 # When interrupted or exit'd, cleanup temporary files, and complete
1092 # config.log. We remove comments because anyway the quotes in there
1093 # would cause problems or look ugly.
1094 # WARNING: Be sure not to use single quotes in there, as some shells,
1095 # such as our DU 5.0 friend, will then `close' the trap.
1096 trap 'exit_status=$?
1097 # Save into config.log some information that might help in debugging.
1098 {
1099 echo
1100
1101 cat <<\_ASBOX
1102 ## ---------------- ##
1103 ## Cache variables. ##
1104 ## ---------------- ##
1105 _ASBOX
1106 echo
1107 # The following way of writing the cache mishandles newlines in values,
1108 {
1109 (set) 2>&1 |
1110 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111 *ac_space=\ *)
1112 sed -n \
1113 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1115 ;;
1116 *)
1117 sed -n \
1118 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1119 ;;
1120 esac;
1121 }
1122 echo
1123
1124 cat <<\_ASBOX
1125 ## ----------------- ##
1126 ## Output variables. ##
1127 ## ----------------- ##
1128 _ASBOX
1129 echo
1130 for ac_var in $ac_subst_vars
1131 do
1132 eval ac_val=$`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1134 done | sort
1135 echo
1136
1137 if test -n "$ac_subst_files"; then
1138 cat <<\_ASBOX
1139 ## ------------- ##
1140 ## Output files. ##
1141 ## ------------- ##
1142 _ASBOX
1143 echo
1144 for ac_var in $ac_subst_files
1145 do
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1150 fi
1151
1152 if test -s confdefs.h; then
1153 cat <<\_ASBOX
1154 ## ----------- ##
1155 ## confdefs.h. ##
1156 ## ----------- ##
1157 _ASBOX
1158 echo
1159 sed "/^$/d" confdefs.h | sort
1160 echo
1161 fi
1162 test "$ac_signal" != 0 &&
1163 echo "$as_me: caught signal $ac_signal"
1164 echo "$as_me: exit $exit_status"
1165 } >&5
1166 rm -f core *.core &&
1167 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1168 exit $exit_status
1169 ' 0
1170 for ac_signal in 1 2 13 15; do
1171 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 done
1173 ac_signal=0
1174
1175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1176 rm -rf conftest* confdefs.h
1177 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178 echo >confdefs.h
1179
1180 # Predefined preprocessor variables.
1181
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 _ACEOF
1185
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 _ACEOF
1205
1206
1207 # Let the site file select an alternate cache file if it wants to.
1208 # Prefer explicitly selected file to automatically selected ones.
1209 if test -z "$CONFIG_SITE"; then
1210 if test "x$prefix" != xNONE; then
1211 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212 else
1213 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1214 fi
1215 fi
1216 for ac_site_file in $CONFIG_SITE; do
1217 if test -r "$ac_site_file"; then
1218 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219 echo "$as_me: loading site script $ac_site_file" >&6;}
1220 sed 's/^/| /' "$ac_site_file" >&5
1221 . "$ac_site_file"
1222 fi
1223 done
1224
1225 if test -r "$cache_file"; then
1226 # Some versions of bash will fail to source /dev/null (special
1227 # files actually), so we avoid doing that.
1228 if test -f "$cache_file"; then
1229 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1230 echo "$as_me: loading cache $cache_file" >&6;}
1231 case $cache_file in
1232 [\\/]* | ?:[\\/]* ) . $cache_file;;
1233 *) . ./$cache_file;;
1234 esac
1235 fi
1236 else
1237 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1238 echo "$as_me: creating cache $cache_file" >&6;}
1239 >$cache_file
1240 fi
1241
1242 # Check that the precious variables saved in the cache have kept the same
1243 # value.
1244 ac_cache_corrupted=false
1245 for ac_var in `(set) 2>&1 |
1246 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1248 eval ac_new_set=\$ac_env_${ac_var}_set
1249 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1250 eval ac_new_val="\$ac_env_${ac_var}_value"
1251 case $ac_old_set,$ac_new_set in
1252 set,)
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1256 ,set)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,);;
1261 *)
1262 if test "x$ac_old_val" != "x$ac_new_val"; then
1263 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1264 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1265 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1266 echo "$as_me: former value: $ac_old_val" >&2;}
1267 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1268 echo "$as_me: current value: $ac_new_val" >&2;}
1269 ac_cache_corrupted=:
1270 fi;;
1271 esac
1272 # Pass precious variables to config.status.
1273 if test "$ac_new_set" = set; then
1274 case $ac_new_val in
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 *) ac_arg=$ac_var=$ac_new_val ;;
1278 esac
1279 case " $ac_configure_args " in
1280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1281 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282 esac
1283 fi
1284 done
1285 if $ac_cache_corrupted; then
1286 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1289 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290 { (exit 1); exit 1; }; }
1291 fi
1292
1293 ac_ext=c
1294 ac_cpp='$CPP $CPPFLAGS'
1295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318 # This works around the fact that libtool configuration may change LD
1319 # for this particular configuration, but some shells, instead of
1320 # keeping the changes in LD private, export them just because LD is
1321 # exported.
1322 ORIGINAL_LD_FOR_MULTILIBS=$LD
1323
1324 # Default to --enable-multilib
1325 # Check whether --enable-multilib or --disable-multilib was given.
1326 if test "${enable_multilib+set}" = set; then
1327 enableval="$enable_multilib"
1328 case "$enableval" in
1329 yes) multilib=yes ;;
1330 no) multilib=no ;;
1331 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1332 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1333 { (exit 1); exit 1; }; } ;;
1334 esac
1335 else
1336 multilib=yes
1337 fi;
1338
1339 # We may get other options which we leave undocumented:
1340 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1341 # See config-ml.in if you want the gory details.
1342
1343 if test "$srcdir" = "."; then
1344 if test "$with_target_subdir" != "."; then
1345 multi_basedir="$srcdir/$with_multisrctop../.."
1346 else
1347 multi_basedir="$srcdir/$with_multisrctop.."
1348 fi
1349 else
1350 multi_basedir="$srcdir/.."
1351 fi
1352
1353
1354 # Even if the default multilib is not a cross compilation,
1355 # it may be that some of the other multilibs are.
1356 if test $cross_compiling = no && test $multilib = yes \
1357 && test "x${with_multisubdir}" != x ; then
1358 cross_compiling=maybe
1359 fi
1360
1361 ac_config_commands="$ac_config_commands default-1"
1362
1363
1364 ac_aux_dir=
1365 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1366 if test -f $ac_dir/install-sh; then
1367 ac_aux_dir=$ac_dir
1368 ac_install_sh="$ac_aux_dir/install-sh -c"
1369 break
1370 elif test -f $ac_dir/install.sh; then
1371 ac_aux_dir=$ac_dir
1372 ac_install_sh="$ac_aux_dir/install.sh -c"
1373 break
1374 elif test -f $ac_dir/shtool; then
1375 ac_aux_dir=$ac_dir
1376 ac_install_sh="$ac_aux_dir/shtool install -c"
1377 break
1378 fi
1379 done
1380 if test -z "$ac_aux_dir"; then
1381 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1382 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1383 { (exit 1); exit 1; }; }
1384 fi
1385 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1386 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1387 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1388
1389 # Make sure we can run config.sub.
1390 $ac_config_sub sun4 >/dev/null 2>&1 ||
1391 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1392 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1393 { (exit 1); exit 1; }; }
1394
1395 echo "$as_me:$LINENO: checking build system type" >&5
1396 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1397 if test "${ac_cv_build+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1399 else
1400 ac_cv_build_alias=$build_alias
1401 test -z "$ac_cv_build_alias" &&
1402 ac_cv_build_alias=`$ac_config_guess`
1403 test -z "$ac_cv_build_alias" &&
1404 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1405 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1406 { (exit 1); exit 1; }; }
1407 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1408 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1409 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1410 { (exit 1); exit 1; }; }
1411
1412 fi
1413 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1414 echo "${ECHO_T}$ac_cv_build" >&6
1415 build=$ac_cv_build
1416 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1417 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1418 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1419
1420
1421 echo "$as_me:$LINENO: checking host system type" >&5
1422 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1423 if test "${ac_cv_host+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1425 else
1426 ac_cv_host_alias=$host_alias
1427 test -z "$ac_cv_host_alias" &&
1428 ac_cv_host_alias=$ac_cv_build_alias
1429 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1430 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1431 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1432 { (exit 1); exit 1; }; }
1433
1434 fi
1435 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1436 echo "${ECHO_T}$ac_cv_host" >&6
1437 host=$ac_cv_host
1438 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1439 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1440 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1441
1442
1443 echo "$as_me:$LINENO: checking target system type" >&5
1444 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1445 if test "${ac_cv_target+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448 ac_cv_target_alias=$target_alias
1449 test "x$ac_cv_target_alias" = "x" &&
1450 ac_cv_target_alias=$ac_cv_host_alias
1451 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1452 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1453 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1454 { (exit 1); exit 1; }; }
1455
1456 fi
1457 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1458 echo "${ECHO_T}$ac_cv_target" >&6
1459 target=$ac_cv_target
1460 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1461 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1462 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1463
1464
1465 # The aliases save the names the user supplied, while $host etc.
1466 # will get canonicalized.
1467 test -n "$target_alias" &&
1468 test "$program_prefix$program_suffix$program_transform_name" = \
1469 NONENONEs,x,x, &&
1470 program_prefix=${target_alias}-
1471
1472 # Get the 'noncanonical' system names.
1473 case ${build_alias} in
1474 "") build_noncanonical=${build} ;;
1475 *) build_noncanonical=${build_alias} ;;
1476 esac
1477
1478 case ${host_alias} in
1479 "") host_noncanonical=${build_noncanonical} ;;
1480 *) host_noncanonical=${host_alias} ;;
1481 esac
1482
1483 case ${target_alias} in
1484 "") target_noncanonical=${host_noncanonical} ;;
1485 *) target_noncanonical=${target_alias} ;;
1486 esac
1487
1488
1489
1490
1491 # This works around an automake problem.
1492 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1493
1494
1495 am__api_version="1.9"
1496 # Find a good install program. We prefer a C program (faster),
1497 # so one script is as good as another. But avoid the broken or
1498 # incompatible versions:
1499 # SysV /etc/install, /usr/sbin/install
1500 # SunOS /usr/etc/install
1501 # IRIX /sbin/install
1502 # AIX /bin/install
1503 # AmigaOS /C/install, which installs bootblocks on floppy discs
1504 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1505 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1506 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1507 # OS/2's system install, which has a completely different semantic
1508 # ./install, which can be erroneously created by make from ./install.sh.
1509 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1510 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1511 if test -z "$INSTALL"; then
1512 if test "${ac_cv_path_install+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1514 else
1515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516 for as_dir in $PATH
1517 do
1518 IFS=$as_save_IFS
1519 test -z "$as_dir" && as_dir=.
1520 # Account for people who put trailing slashes in PATH elements.
1521 case $as_dir/ in
1522 ./ | .// | /cC/* | \
1523 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1524 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1525 /usr/ucb/* ) ;;
1526 *)
1527 # OSF1 and SCO ODT 3.0 have their own names for install.
1528 # Don't use installbsd from OSF since it installs stuff as root
1529 # by default.
1530 for ac_prog in ginstall scoinst install; do
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1533 if test $ac_prog = install &&
1534 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1535 # AIX install. It has an incompatible calling convention.
1536 :
1537 elif test $ac_prog = install &&
1538 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1539 # program-specific install script used by HP pwplus--don't use.
1540 :
1541 else
1542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1543 break 3
1544 fi
1545 fi
1546 done
1547 done
1548 ;;
1549 esac
1550 done
1551
1552
1553 fi
1554 if test "${ac_cv_path_install+set}" = set; then
1555 INSTALL=$ac_cv_path_install
1556 else
1557 # As a last resort, use the slow shell script. We don't cache a
1558 # path for INSTALL within a source directory, because that will
1559 # break other packages using the cache if that directory is
1560 # removed, or if the path is relative.
1561 INSTALL=$ac_install_sh
1562 fi
1563 fi
1564 echo "$as_me:$LINENO: result: $INSTALL" >&5
1565 echo "${ECHO_T}$INSTALL" >&6
1566
1567 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1568 # It thinks the first close brace ends the variable substitution.
1569 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1570
1571 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1572
1573 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1574
1575 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1576 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1577 # Just in case
1578 sleep 1
1579 echo timestamp > conftest.file
1580 # Do `set' in a subshell so we don't clobber the current shell's
1581 # arguments. Must try -L first in case configure is actually a
1582 # symlink; some systems play weird games with the mod time of symlinks
1583 # (eg FreeBSD returns the mod time of the symlink's containing
1584 # directory).
1585 if (
1586 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1587 if test "$*" = "X"; then
1588 # -L didn't work.
1589 set X `ls -t $srcdir/configure conftest.file`
1590 fi
1591 rm -f conftest.file
1592 if test "$*" != "X $srcdir/configure conftest.file" \
1593 && test "$*" != "X conftest.file $srcdir/configure"; then
1594
1595 # If neither matched, then we have a broken ls. This can happen
1596 # if, for instance, CONFIG_SHELL is bash and it inherits a
1597 # broken ls alias from the environment. This has actually
1598 # happened. Such a system could not be considered "sane".
1599 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1600 alias in your environment" >&5
1601 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1602 alias in your environment" >&2;}
1603 { (exit 1); exit 1; }; }
1604 fi
1605
1606 test "$2" = conftest.file
1607 )
1608 then
1609 # Ok.
1610 :
1611 else
1612 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1613 Check your system clock" >&5
1614 echo "$as_me: error: newly created file is older than distributed files!
1615 Check your system clock" >&2;}
1616 { (exit 1); exit 1; }; }
1617 fi
1618 echo "$as_me:$LINENO: result: yes" >&5
1619 echo "${ECHO_T}yes" >&6
1620 test "$program_prefix" != NONE &&
1621 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1622 # Use a double $ so make ignores it.
1623 test "$program_suffix" != NONE &&
1624 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1625 # Double any \ or $. echo might interpret backslashes.
1626 # By default was `s,x,x', remove it if useless.
1627 cat <<\_ACEOF >conftest.sed
1628 s/[\\$]/&&/g;s/;s,x,x,$//
1629 _ACEOF
1630 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1631 rm conftest.sed
1632
1633 # expand $ac_aux_dir to an absolute path
1634 am_aux_dir=`cd $ac_aux_dir && pwd`
1635
1636 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1637 # Use eval to expand $SHELL
1638 if eval "$MISSING --run true"; then
1639 am_missing_run="$MISSING --run "
1640 else
1641 am_missing_run=
1642 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1643 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1644 fi
1645
1646 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1647 # We used to keeping the `.' as first argument, in order to
1648 # allow $(mkdir_p) to be used without argument. As in
1649 # $(mkdir_p) $(somedir)
1650 # where $(somedir) is conditionally defined. However this is wrong
1651 # for two reasons:
1652 # 1. if the package is installed by a user who cannot write `.'
1653 # make install will fail,
1654 # 2. the above comment should most certainly read
1655 # $(mkdir_p) $(DESTDIR)$(somedir)
1656 # so it does not work when $(somedir) is undefined and
1657 # $(DESTDIR) is not.
1658 # To support the latter case, we have to write
1659 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1660 # so the `.' trick is pointless.
1661 mkdir_p='mkdir -p --'
1662 else
1663 # On NextStep and OpenStep, the `mkdir' command does not
1664 # recognize any option. It will interpret all options as
1665 # directories to create, and then abort because `.' already
1666 # exists.
1667 for d in ./-p ./--version;
1668 do
1669 test -d $d && rmdir $d
1670 done
1671 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1672 if test -f "$ac_aux_dir/mkinstalldirs"; then
1673 mkdir_p='$(mkinstalldirs)'
1674 else
1675 mkdir_p='$(install_sh) -d'
1676 fi
1677 fi
1678
1679 for ac_prog in gawk mawk nawk awk
1680 do
1681 # Extract the first word of "$ac_prog", so it can be a program name with args.
1682 set dummy $ac_prog; ac_word=$2
1683 echo "$as_me:$LINENO: checking for $ac_word" >&5
1684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685 if test "${ac_cv_prog_AWK+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 else
1688 if test -n "$AWK"; then
1689 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1690 else
1691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 for as_dir in $PATH
1693 do
1694 IFS=$as_save_IFS
1695 test -z "$as_dir" && as_dir=.
1696 for ac_exec_ext in '' $ac_executable_extensions; do
1697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1698 ac_cv_prog_AWK="$ac_prog"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 break 2
1701 fi
1702 done
1703 done
1704
1705 fi
1706 fi
1707 AWK=$ac_cv_prog_AWK
1708 if test -n "$AWK"; then
1709 echo "$as_me:$LINENO: result: $AWK" >&5
1710 echo "${ECHO_T}$AWK" >&6
1711 else
1712 echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6
1714 fi
1715
1716 test -n "$AWK" && break
1717 done
1718
1719 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1720 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1721 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1722 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 else
1725 cat >conftest.make <<\_ACEOF
1726 all:
1727 @echo 'ac_maketemp="$(MAKE)"'
1728 _ACEOF
1729 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1730 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1731 if test -n "$ac_maketemp"; then
1732 eval ac_cv_prog_make_${ac_make}_set=yes
1733 else
1734 eval ac_cv_prog_make_${ac_make}_set=no
1735 fi
1736 rm -f conftest.make
1737 fi
1738 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1739 echo "$as_me:$LINENO: result: yes" >&5
1740 echo "${ECHO_T}yes" >&6
1741 SET_MAKE=
1742 else
1743 echo "$as_me:$LINENO: result: no" >&5
1744 echo "${ECHO_T}no" >&6
1745 SET_MAKE="MAKE=${MAKE-make}"
1746 fi
1747
1748 rm -rf .tst 2>/dev/null
1749 mkdir .tst 2>/dev/null
1750 if test -d .tst; then
1751 am__leading_dot=.
1752 else
1753 am__leading_dot=_
1754 fi
1755 rmdir .tst 2>/dev/null
1756
1757 # test to see if srcdir already configured
1758 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1759 test -f $srcdir/config.status; then
1760 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1761 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1762 { (exit 1); exit 1; }; }
1763 fi
1764
1765 # test whether we have cygpath
1766 if test -z "$CYGPATH_W"; then
1767 if (cygpath --version) >/dev/null 2>/dev/null; then
1768 CYGPATH_W='cygpath -w'
1769 else
1770 CYGPATH_W=echo
1771 fi
1772 fi
1773
1774
1775 # Define the identity of the package.
1776 PACKAGE=gc
1777 VERSION=6.6
1778
1779
1780 # Some tools Automake needs.
1781
1782 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1783
1784
1785 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1786
1787
1788 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1789
1790
1791 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1792
1793
1794 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1795
1796 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1797
1798 # Installed binaries are usually stripped using `strip' when the user
1799 # run `make install-strip'. However `strip' might not be the right
1800 # tool to use in cross-compilation environments, therefore Automake
1801 # will honor the `STRIP' environment variable to overrule this program.
1802 if test "$cross_compiling" != no; then
1803 if test -n "$ac_tool_prefix"; then
1804 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1805 set dummy ${ac_tool_prefix}strip; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_STRIP+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811 if test -n "$STRIP"; then
1812 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1813 else
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1816 do
1817 IFS=$as_save_IFS
1818 test -z "$as_dir" && as_dir=.
1819 for ac_exec_ext in '' $ac_executable_extensions; do
1820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 break 2
1824 fi
1825 done
1826 done
1827
1828 fi
1829 fi
1830 STRIP=$ac_cv_prog_STRIP
1831 if test -n "$STRIP"; then
1832 echo "$as_me:$LINENO: result: $STRIP" >&5
1833 echo "${ECHO_T}$STRIP" >&6
1834 else
1835 echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1837 fi
1838
1839 fi
1840 if test -z "$ac_cv_prog_STRIP"; then
1841 ac_ct_STRIP=$STRIP
1842 # Extract the first word of "strip", so it can be a program name with args.
1843 set dummy strip; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849 if test -n "$ac_ct_STRIP"; then
1850 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1851 else
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1854 do
1855 IFS=$as_save_IFS
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_ac_ct_STRIP="strip"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861 break 2
1862 fi
1863 done
1864 done
1865
1866 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1867 fi
1868 fi
1869 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1870 if test -n "$ac_ct_STRIP"; then
1871 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1872 echo "${ECHO_T}$ac_ct_STRIP" >&6
1873 else
1874 echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1876 fi
1877
1878 STRIP=$ac_ct_STRIP
1879 else
1880 STRIP="$ac_cv_prog_STRIP"
1881 fi
1882
1883 fi
1884 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1885
1886 # We need awk for the "check" target. The system "awk" is bad on
1887 # some platforms.
1888 # Always define AMTAR for backward compatibility.
1889
1890 AMTAR=${AMTAR-"${am_missing_run}tar"}
1891
1892 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1893
1894
1895
1896
1897
1898
1899 # The autoconf 2.5x version of the no-executables hack.
1900
1901
1902 # Yak. We must force CC and CXX to /not/ be precious variables; otherwise
1903 # the wrong, non-multilib-adjusted value will be used in multilibs.
1904 # As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
1905
1906
1907
1908 ac_ext=c
1909 ac_cpp='$CPP $CPPFLAGS'
1910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1913 if test -n "$ac_tool_prefix"; then
1914 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1915 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 if test -n "$CC"; then
1922 ac_cv_prog_CC="$CC" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927 IFS=$as_save_IFS
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 break 2
1934 fi
1935 done
1936 done
1937
1938 fi
1939 fi
1940 CC=$ac_cv_prog_CC
1941 if test -n "$CC"; then
1942 echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6
1944 else
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1947 fi
1948
1949 fi
1950 if test -z "$ac_cv_prog_CC"; then
1951 ac_ct_CC=$CC
1952 # Extract the first word of "gcc", so it can be a program name with args.
1953 set dummy gcc; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959 if test -n "$ac_ct_CC"; then
1960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1961 else
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 for as_dir in $PATH
1964 do
1965 IFS=$as_save_IFS
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969 ac_cv_prog_ac_ct_CC="gcc"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 break 2
1972 fi
1973 done
1974 done
1975
1976 fi
1977 fi
1978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1979 if test -n "$ac_ct_CC"; then
1980 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1981 echo "${ECHO_T}$ac_ct_CC" >&6
1982 else
1983 echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1985 fi
1986
1987 CC=$ac_ct_CC
1988 else
1989 CC="$ac_cv_prog_CC"
1990 fi
1991
1992 if test -z "$CC"; then
1993 if test -n "$ac_tool_prefix"; then
1994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1995 set dummy ${ac_tool_prefix}cc; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC="$CC" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_CC="${ac_tool_prefix}cc"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 break 2
2014 fi
2015 done
2016 done
2017
2018 fi
2019 fi
2020 CC=$ac_cv_prog_CC
2021 if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023 echo "${ECHO_T}$CC" >&6
2024 else
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2027 fi
2028
2029 fi
2030 if test -z "$ac_cv_prog_CC"; then
2031 ac_ct_CC=$CC
2032 # Extract the first word of "cc", so it can be a program name with args.
2033 set dummy cc; ac_word=$2
2034 echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2036 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039 if test -n "$ac_ct_CC"; then
2040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2041 else
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2044 do
2045 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2049 ac_cv_prog_ac_ct_CC="cc"
2050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 break 2
2052 fi
2053 done
2054 done
2055
2056 fi
2057 fi
2058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2059 if test -n "$ac_ct_CC"; then
2060 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2061 echo "${ECHO_T}$ac_ct_CC" >&6
2062 else
2063 echo "$as_me:$LINENO: result: no" >&5
2064 echo "${ECHO_T}no" >&6
2065 fi
2066
2067 CC=$ac_ct_CC
2068 else
2069 CC="$ac_cv_prog_CC"
2070 fi
2071
2072 fi
2073 if test -z "$CC"; then
2074 # Extract the first word of "cc", so it can be a program name with args.
2075 set dummy cc; ac_word=$2
2076 echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2078 if test "${ac_cv_prog_CC+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081 if test -n "$CC"; then
2082 ac_cv_prog_CC="$CC" # Let the user override the test.
2083 else
2084 ac_prog_rejected=no
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2087 do
2088 IFS=$as_save_IFS
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2093 ac_prog_rejected=yes
2094 continue
2095 fi
2096 ac_cv_prog_CC="cc"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 break 2
2099 fi
2100 done
2101 done
2102
2103 if test $ac_prog_rejected = yes; then
2104 # We found a bogon in the path, so make sure we never use it.
2105 set dummy $ac_cv_prog_CC
2106 shift
2107 if test $# != 0; then
2108 # We chose a different compiler from the bogus one.
2109 # However, it has the same basename, so the bogon will be chosen
2110 # first if we set CC to just the basename; use the full file name.
2111 shift
2112 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2113 fi
2114 fi
2115 fi
2116 fi
2117 CC=$ac_cv_prog_CC
2118 if test -n "$CC"; then
2119 echo "$as_me:$LINENO: result: $CC" >&5
2120 echo "${ECHO_T}$CC" >&6
2121 else
2122 echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6
2124 fi
2125
2126 fi
2127 if test -z "$CC"; then
2128 if test -n "$ac_tool_prefix"; then
2129 for ac_prog in cl
2130 do
2131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2132 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138 if test -n "$CC"; then
2139 ac_cv_prog_CC="$CC" # Let the user override the test.
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 break 2
2151 fi
2152 done
2153 done
2154
2155 fi
2156 fi
2157 CC=$ac_cv_prog_CC
2158 if test -n "$CC"; then
2159 echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6
2161 else
2162 echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2164 fi
2165
2166 test -n "$CC" && break
2167 done
2168 fi
2169 if test -z "$CC"; then
2170 ac_ct_CC=$CC
2171 for ac_prog in cl
2172 do
2173 # Extract the first word of "$ac_prog", so it can be a program name with args.
2174 set dummy $ac_prog; ac_word=$2
2175 echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180 if test -n "$ac_ct_CC"; then
2181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2182 else
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH
2185 do
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
2189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2190 ac_cv_prog_ac_ct_CC="$ac_prog"
2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 break 2
2193 fi
2194 done
2195 done
2196
2197 fi
2198 fi
2199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2200 if test -n "$ac_ct_CC"; then
2201 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2202 echo "${ECHO_T}$ac_ct_CC" >&6
2203 else
2204 echo "$as_me:$LINENO: result: no" >&5
2205 echo "${ECHO_T}no" >&6
2206 fi
2207
2208 test -n "$ac_ct_CC" && break
2209 done
2210
2211 CC=$ac_ct_CC
2212 fi
2213
2214 fi
2215
2216
2217 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2218 See \`config.log' for more details." >&5
2219 echo "$as_me: error: no acceptable C compiler found in \$PATH
2220 See \`config.log' for more details." >&2;}
2221 { (exit 1); exit 1; }; }
2222
2223 # Provide some information about the compiler.
2224 echo "$as_me:$LINENO:" \
2225 "checking for C compiler version" >&5
2226 ac_compiler=`set X $ac_compile; echo $2`
2227 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2228 (eval $ac_compiler --version </dev/null >&5) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }
2232 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2233 (eval $ac_compiler -v </dev/null >&5) 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }
2237 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2238 (eval $ac_compiler -V </dev/null >&5) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }
2242
2243 cat >conftest.$ac_ext <<_ACEOF
2244 /* confdefs.h. */
2245 _ACEOF
2246 cat confdefs.h >>conftest.$ac_ext
2247 cat >>conftest.$ac_ext <<_ACEOF
2248 /* end confdefs.h. */
2249
2250 int
2251 main ()
2252 {
2253
2254 ;
2255 return 0;
2256 }
2257 _ACEOF
2258 # FIXME: Cleanup?
2259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2260 (eval $ac_link) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; then
2264 gcc_no_link=no
2265 else
2266 gcc_no_link=yes
2267 fi
2268
2269 if test x$gcc_no_link = xyes; then
2270 # Setting cross_compile will disable run tests; it will
2271 # also disable AC_CHECK_FILE but that's generally
2272 # correct if we can't link.
2273 cross_compiling=yes
2274 EXEEXT=
2275 else
2276 cat >conftest.$ac_ext <<_ACEOF
2277 /* confdefs.h. */
2278 _ACEOF
2279 cat confdefs.h >>conftest.$ac_ext
2280 cat >>conftest.$ac_ext <<_ACEOF
2281 /* end confdefs.h. */
2282
2283 int
2284 main ()
2285 {
2286
2287 ;
2288 return 0;
2289 }
2290 _ACEOF
2291 ac_clean_files_save=$ac_clean_files
2292 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2293 # Try to create an executable without -o first, disregard a.out.
2294 # It will help us diagnose broken compilers, and finding out an intuition
2295 # of exeext.
2296 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2297 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2298 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2299 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2300 (eval $ac_link_default) 2>&5
2301 ac_status=$?
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; then
2304 # Find the output, starting from the most likely. This scheme is
2305 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2306 # resort.
2307
2308 # Be careful to initialize this variable, since it used to be cached.
2309 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2310 ac_cv_exeext=
2311 # b.out is created by i960 compilers.
2312 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2313 do
2314 test -f "$ac_file" || continue
2315 case $ac_file in
2316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2317 ;;
2318 conftest.$ac_ext )
2319 # This is the source file.
2320 ;;
2321 [ab].out )
2322 # We found the default executable, but exeext='' is most
2323 # certainly right.
2324 break;;
2325 *.* )
2326 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2327 # FIXME: I believe we export ac_cv_exeext for Libtool,
2328 # but it would be cool to find out if it's true. Does anybody
2329 # maintain Libtool? --akim.
2330 export ac_cv_exeext
2331 break;;
2332 * )
2333 break;;
2334 esac
2335 done
2336 else
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2339
2340 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2341 See \`config.log' for more details." >&5
2342 echo "$as_me: error: C compiler cannot create executables
2343 See \`config.log' for more details." >&2;}
2344 { (exit 77); exit 77; }; }
2345 fi
2346
2347 ac_exeext=$ac_cv_exeext
2348 echo "$as_me:$LINENO: result: $ac_file" >&5
2349 echo "${ECHO_T}$ac_file" >&6
2350
2351 # Check the compiler produces executables we can run. If not, either
2352 # the compiler is broken, or we cross compile.
2353 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2354 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2355 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2356 # If not cross compiling, check that we can run a simple program.
2357 if test "$cross_compiling" != yes; then
2358 if { ac_try='./$ac_file'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2364 cross_compiling=no
2365 else
2366 if test "$cross_compiling" = maybe; then
2367 cross_compiling=yes
2368 else
2369 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2370 If you meant to cross compile, use \`--host'.
2371 See \`config.log' for more details." >&5
2372 echo "$as_me: error: cannot run C compiled programs.
2373 If you meant to cross compile, use \`--host'.
2374 See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2376 fi
2377 fi
2378 fi
2379 echo "$as_me:$LINENO: result: yes" >&5
2380 echo "${ECHO_T}yes" >&6
2381
2382 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2383 ac_clean_files=$ac_clean_files_save
2384 # Check the compiler produces executables we can run. If not, either
2385 # the compiler is broken, or we cross compile.
2386 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2387 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2388 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2389 echo "${ECHO_T}$cross_compiling" >&6
2390
2391 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2392 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2394 (eval $ac_link) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; then
2398 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2399 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2400 # work properly (i.e., refer to `conftest.exe'), while it won't with
2401 # `rm'.
2402 for ac_file in conftest.exe conftest conftest.*; do
2403 test -f "$ac_file" || continue
2404 case $ac_file in
2405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2406 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2407 export ac_cv_exeext
2408 break;;
2409 * ) break;;
2410 esac
2411 done
2412 else
2413 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2414 See \`config.log' for more details." >&5
2415 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2416 See \`config.log' for more details." >&2;}
2417 { (exit 1); exit 1; }; }
2418 fi
2419
2420 rm -f conftest$ac_cv_exeext
2421 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2422 echo "${ECHO_T}$ac_cv_exeext" >&6
2423
2424 rm -f conftest.$ac_ext
2425 EXEEXT=$ac_cv_exeext
2426 ac_exeext=$EXEEXT
2427 fi
2428 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2429 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2430 if test "${ac_cv_objext+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433 cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h. */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2439
2440 int
2441 main ()
2442 {
2443
2444 ;
2445 return 0;
2446 }
2447 _ACEOF
2448 rm -f conftest.o conftest.obj
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450 (eval $ac_compile) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; then
2454 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2455 case $ac_file in
2456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2457 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2458 break;;
2459 esac
2460 done
2461 else
2462 echo "$as_me: failed program was:" >&5
2463 sed 's/^/| /' conftest.$ac_ext >&5
2464
2465 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2466 See \`config.log' for more details." >&5
2467 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2468 See \`config.log' for more details." >&2;}
2469 { (exit 1); exit 1; }; }
2470 fi
2471
2472 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2473 fi
2474 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2475 echo "${ECHO_T}$ac_cv_objext" >&6
2476 OBJEXT=$ac_cv_objext
2477 ac_objext=$OBJEXT
2478 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2479 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2480 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483 cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h. */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2489
2490 int
2491 main ()
2492 {
2493 #ifndef __GNUC__
2494 choke me
2495 #endif
2496
2497 ;
2498 return 0;
2499 }
2500 _ACEOF
2501 rm -f conftest.$ac_objext
2502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2503 (eval $ac_compile) 2>conftest.er1
2504 ac_status=$?
2505 grep -v '^ *+' conftest.er1 >conftest.err
2506 rm -f conftest.er1
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try='test -z "$ac_c_werror_flag"
2511 || test ! -s conftest.err'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 (eval $ac_try) 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519 (eval $ac_try) 2>&5
2520 ac_status=$?
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2523 ac_compiler_gnu=yes
2524 else
2525 echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2527
2528 ac_compiler_gnu=no
2529 fi
2530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2531 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2532
2533 fi
2534 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2535 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2536 GCC=`test $ac_compiler_gnu = yes && echo yes`
2537 ac_test_CFLAGS=${CFLAGS+set}
2538 ac_save_CFLAGS=$CFLAGS
2539 CFLAGS="-g"
2540 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2541 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2542 if test "${ac_cv_prog_cc_g+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545 cat >conftest.$ac_ext <<_ACEOF
2546 /* confdefs.h. */
2547 _ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2551
2552 int
2553 main ()
2554 {
2555
2556 ;
2557 return 0;
2558 }
2559 _ACEOF
2560 rm -f conftest.$ac_objext
2561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562 (eval $ac_compile) 2>conftest.er1
2563 ac_status=$?
2564 grep -v '^ *+' conftest.er1 >conftest.err
2565 rm -f conftest.er1
2566 cat conftest.err >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); } &&
2569 { ac_try='test -z "$ac_c_werror_flag"
2570 || test ! -s conftest.err'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 (eval $ac_try) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578 (eval $ac_try) 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; }; then
2582 ac_cv_prog_cc_g=yes
2583 else
2584 echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2586
2587 ac_cv_prog_cc_g=no
2588 fi
2589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590 fi
2591 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2592 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2593 if test "$ac_test_CFLAGS" = set; then
2594 CFLAGS=$ac_save_CFLAGS
2595 elif test $ac_cv_prog_cc_g = yes; then
2596 if test "$GCC" = yes; then
2597 CFLAGS="-g -O2"
2598 else
2599 CFLAGS="-g"
2600 fi
2601 else
2602 if test "$GCC" = yes; then
2603 CFLAGS="-O2"
2604 else
2605 CFLAGS=
2606 fi
2607 fi
2608 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2609 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2610 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613 ac_cv_prog_cc_stdc=no
2614 ac_save_CC=$CC
2615 cat >conftest.$ac_ext <<_ACEOF
2616 /* confdefs.h. */
2617 _ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h. */
2621 #include <stdarg.h>
2622 #include <stdio.h>
2623 #include <sys/types.h>
2624 #include <sys/stat.h>
2625 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2626 struct buf { int x; };
2627 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2628 static char *e (p, i)
2629 char **p;
2630 int i;
2631 {
2632 return p[i];
2633 }
2634 static char *f (char * (*g) (char **, int), char **p, ...)
2635 {
2636 char *s;
2637 va_list v;
2638 va_start (v,p);
2639 s = g (p, va_arg (v,int));
2640 va_end (v);
2641 return s;
2642 }
2643
2644 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2645 function prototypes and stuff, but not '\xHH' hex character constants.
2646 These don't provoke an error unfortunately, instead are silently treated
2647 as 'x'. The following induces an error, until -std1 is added to get
2648 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2649 array size at least. It's necessary to write '\x00'==0 to get something
2650 that's true only with -std1. */
2651 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2652
2653 int test (int i, double x);
2654 struct s1 {int (*f) (int a);};
2655 struct s2 {int (*f) (double a);};
2656 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2657 int argc;
2658 char **argv;
2659 int
2660 main ()
2661 {
2662 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2663 ;
2664 return 0;
2665 }
2666 _ACEOF
2667 # Don't try gcc -ansi; that turns off useful extensions and
2668 # breaks some systems' header files.
2669 # AIX -qlanglvl=ansi
2670 # Ultrix and OSF/1 -std1
2671 # HP-UX 10.20 and later -Ae
2672 # HP-UX older versions -Aa -D_HPUX_SOURCE
2673 # SVR4 -Xc -D__EXTENSIONS__
2674 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2675 do
2676 CC="$ac_save_CC $ac_arg"
2677 rm -f conftest.$ac_objext
2678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679 (eval $ac_compile) 2>conftest.er1
2680 ac_status=$?
2681 grep -v '^ *+' conftest.er1 >conftest.err
2682 rm -f conftest.er1
2683 cat conftest.err >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); } &&
2686 { ac_try='test -z "$ac_c_werror_flag"
2687 || test ! -s conftest.err'
2688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689 (eval $ac_try) 2>&5
2690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; } &&
2693 { ac_try='test -s conftest.$ac_objext'
2694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 (eval $ac_try) 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; }; then
2699 ac_cv_prog_cc_stdc=$ac_arg
2700 break
2701 else
2702 echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2704
2705 fi
2706 rm -f conftest.err conftest.$ac_objext
2707 done
2708 rm -f conftest.$ac_ext conftest.$ac_objext
2709 CC=$ac_save_CC
2710
2711 fi
2712
2713 case "x$ac_cv_prog_cc_stdc" in
2714 x|xno)
2715 echo "$as_me:$LINENO: result: none needed" >&5
2716 echo "${ECHO_T}none needed" >&6 ;;
2717 *)
2718 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2719 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2720 CC="$CC $ac_cv_prog_cc_stdc" ;;
2721 esac
2722
2723 # Some people use a C++ compiler to compile C. Since we use `exit',
2724 # in C++ we need to declare it. In case someone uses the same compiler
2725 # for both compiling C and C++ we need to have the C++ compiler decide
2726 # the declaration of exit, since it's the most demanding environment.
2727 cat >conftest.$ac_ext <<_ACEOF
2728 #ifndef __cplusplus
2729 choke me
2730 #endif
2731 _ACEOF
2732 rm -f conftest.$ac_objext
2733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2734 (eval $ac_compile) 2>conftest.er1
2735 ac_status=$?
2736 grep -v '^ *+' conftest.er1 >conftest.err
2737 rm -f conftest.er1
2738 cat conftest.err >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
2741 { ac_try='test -z "$ac_c_werror_flag"
2742 || test ! -s conftest.err'
2743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 (eval $ac_try) 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; } &&
2748 { ac_try='test -s conftest.$ac_objext'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 (eval $ac_try) 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; }; then
2754 for ac_declaration in \
2755 '' \
2756 'extern "C" void std::exit (int) throw (); using std::exit;' \
2757 'extern "C" void std::exit (int); using std::exit;' \
2758 'extern "C" void exit (int) throw ();' \
2759 'extern "C" void exit (int);' \
2760 'void exit (int);'
2761 do
2762 cat >conftest.$ac_ext <<_ACEOF
2763 /* confdefs.h. */
2764 _ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2768 $ac_declaration
2769 #include <stdlib.h>
2770 int
2771 main ()
2772 {
2773 exit (42);
2774 ;
2775 return 0;
2776 }
2777 _ACEOF
2778 rm -f conftest.$ac_objext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780 (eval $ac_compile) 2>conftest.er1
2781 ac_status=$?
2782 grep -v '^ *+' conftest.er1 >conftest.err
2783 rm -f conftest.er1
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try='test -z "$ac_c_werror_flag"
2788 || test ! -s conftest.err'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 (eval $ac_try) 2>&5
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 (eval $ac_try) 2>&5
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 :
2801 else
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2804
2805 continue
2806 fi
2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2808 cat >conftest.$ac_ext <<_ACEOF
2809 /* confdefs.h. */
2810 _ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2814 $ac_declaration
2815 int
2816 main ()
2817 {
2818 exit (42);
2819 ;
2820 return 0;
2821 }
2822 _ACEOF
2823 rm -f conftest.$ac_objext
2824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825 (eval $ac_compile) 2>conftest.er1
2826 ac_status=$?
2827 grep -v '^ *+' conftest.er1 >conftest.err
2828 rm -f conftest.er1
2829 cat conftest.err >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } &&
2832 { ac_try='test -z "$ac_c_werror_flag"
2833 || test ! -s conftest.err'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; } &&
2839 { ac_try='test -s conftest.$ac_objext'
2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 (eval $ac_try) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; }; then
2845 break
2846 else
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2849
2850 fi
2851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2852 done
2853 rm -f conftest*
2854 if test -n "$ac_declaration"; then
2855 echo '#ifdef __cplusplus' >>confdefs.h
2856 echo $ac_declaration >>confdefs.h
2857 echo '#endif' >>confdefs.h
2858 fi
2859
2860 else
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864 fi
2865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2866 ac_ext=c
2867 ac_cpp='$CPP $CPPFLAGS'
2868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 DEPDIR="${am__leading_dot}deps"
2872
2873 ac_config_commands="$ac_config_commands depfiles"
2874
2875
2876 am_make=${MAKE-make}
2877 cat > confinc << 'END'
2878 am__doit:
2879 @echo done
2880 .PHONY: am__doit
2881 END
2882 # If we don't find an include directive, just comment out the code.
2883 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2884 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2885 am__include="#"
2886 am__quote=
2887 _am_result=none
2888 # First try GNU make style include.
2889 echo "include confinc" > confmf
2890 # We grep out `Entering directory' and `Leaving directory'
2891 # messages which can occur if `w' ends up in MAKEFLAGS.
2892 # In particular we don't look at `^make:' because GNU make might
2893 # be invoked under some other name (usually "gmake"), in which
2894 # case it prints its new name instead of `make'.
2895 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2896 am__include=include
2897 am__quote=
2898 _am_result=GNU
2899 fi
2900 # Now try BSD make style include.
2901 if test "$am__include" = "#"; then
2902 echo '.include "confinc"' > confmf
2903 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2904 am__include=.include
2905 am__quote="\""
2906 _am_result=BSD
2907 fi
2908 fi
2909
2910
2911 echo "$as_me:$LINENO: result: $_am_result" >&5
2912 echo "${ECHO_T}$_am_result" >&6
2913 rm -f confinc confmf
2914
2915 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2916 if test "${enable_dependency_tracking+set}" = set; then
2917 enableval="$enable_dependency_tracking"
2918
2919 fi;
2920 if test "x$enable_dependency_tracking" != xno; then
2921 am_depcomp="$ac_aux_dir/depcomp"
2922 AMDEPBACKSLASH='\'
2923 fi
2924
2925
2926 if test "x$enable_dependency_tracking" != xno; then
2927 AMDEP_TRUE=
2928 AMDEP_FALSE='#'
2929 else
2930 AMDEP_TRUE='#'
2931 AMDEP_FALSE=
2932 fi
2933
2934
2935
2936
2937 depcc="$CC" am_compiler_list=
2938
2939 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2940 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2941 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2945 # We make a subdir and do the tests there. Otherwise we can end up
2946 # making bogus files that we don't know about and never remove. For
2947 # instance it was reported that on HP-UX the gcc test will end up
2948 # making a dummy file named `D' -- because `-MD' means `put the output
2949 # in D'.
2950 mkdir conftest.dir
2951 # Copy depcomp to subdir because otherwise we won't find it if we're
2952 # using a relative directory.
2953 cp "$am_depcomp" conftest.dir
2954 cd conftest.dir
2955 # We will build objects and dependencies in a subdirectory because
2956 # it helps to detect inapplicable dependency modes. For instance
2957 # both Tru64's cc and ICC support -MD to output dependencies as a
2958 # side effect of compilation, but ICC will put the dependencies in
2959 # the current directory while Tru64 will put them in the object
2960 # directory.
2961 mkdir sub
2962
2963 am_cv_CC_dependencies_compiler_type=none
2964 if test "$am_compiler_list" = ""; then
2965 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2966 fi
2967 for depmode in $am_compiler_list; do
2968 # Setup a source with many dependencies, because some compilers
2969 # like to wrap large dependency lists on column 80 (with \), and
2970 # we should not choose a depcomp mode which is confused by this.
2971 #
2972 # We need to recreate these files for each test, as the compiler may
2973 # overwrite some of them when testing with obscure command lines.
2974 # This happens at least with the AIX C compiler.
2975 : > sub/conftest.c
2976 for i in 1 2 3 4 5 6; do
2977 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2978 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2979 # Solaris 8's {/usr,}/bin/sh.
2980 touch sub/conftst$i.h
2981 done
2982 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2983
2984 case $depmode in
2985 nosideeffect)
2986 # after this tag, mechanisms are not by side-effect, so they'll
2987 # only be used when explicitly requested
2988 if test "x$enable_dependency_tracking" = xyes; then
2989 continue
2990 else
2991 break
2992 fi
2993 ;;
2994 none) break ;;
2995 esac
2996 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2997 # mode. It turns out that the SunPro C++ compiler does not properly
2998 # handle `-M -o', and we need to detect this.
2999 if depmode=$depmode \
3000 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3001 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3002 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3003 >/dev/null 2>conftest.err &&
3004 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3005 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3006 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3007 # icc doesn't choke on unknown options, it will just issue warnings
3008 # or remarks (even with -Werror). So we grep stderr for any message
3009 # that says an option was ignored or not supported.
3010 # When given -MP, icc 7.0 and 7.1 complain thusly:
3011 # icc: Command line warning: ignoring option '-M'; no argument required
3012 # The diagnosis changed in icc 8.0:
3013 # icc: Command line remark: option '-MP' not supported
3014 if (grep 'ignoring option' conftest.err ||
3015 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3016 am_cv_CC_dependencies_compiler_type=$depmode
3017 break
3018 fi
3019 fi
3020 done
3021
3022 cd ..
3023 rm -rf conftest.dir
3024 else
3025 am_cv_CC_dependencies_compiler_type=none
3026 fi
3027
3028 fi
3029 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3030 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3031 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3032
3033
3034
3035 if
3036 test "x$enable_dependency_tracking" != xno \
3037 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3038 am__fastdepCC_TRUE=
3039 am__fastdepCC_FALSE='#'
3040 else
3041 am__fastdepCC_TRUE='#'
3042 am__fastdepCC_FALSE=
3043 fi
3044
3045
3046 ac_ext=cc
3047 ac_cpp='$CXXCPP $CPPFLAGS'
3048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3051 if test -n "$ac_tool_prefix"; then
3052 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3053 do
3054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3056 echo "$as_me:$LINENO: checking for $ac_word" >&5
3057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3058 if test "${ac_cv_prog_CXX+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061 if test -n "$CXX"; then
3062 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3071 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 break 2
3074 fi
3075 done
3076 done
3077
3078 fi
3079 fi
3080 CXX=$ac_cv_prog_CXX
3081 if test -n "$CXX"; then
3082 echo "$as_me:$LINENO: result: $CXX" >&5
3083 echo "${ECHO_T}$CXX" >&6
3084 else
3085 echo "$as_me:$LINENO: result: no" >&5
3086 echo "${ECHO_T}no" >&6
3087 fi
3088
3089 test -n "$CXX" && break
3090 done
3091 fi
3092 if test -z "$CXX"; then
3093 ac_ct_CXX=$CXX
3094 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3095 do
3096 # Extract the first word of "$ac_prog", so it can be a program name with args.
3097 set dummy $ac_prog; ac_word=$2
3098 echo "$as_me:$LINENO: checking for $ac_word" >&5
3099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3100 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 else
3103 if test -n "$ac_ct_CXX"; then
3104 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3105 else
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3108 do
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113 ac_cv_prog_ac_ct_CXX="$ac_prog"
3114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 break 2
3116 fi
3117 done
3118 done
3119
3120 fi
3121 fi
3122 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3123 if test -n "$ac_ct_CXX"; then
3124 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3125 echo "${ECHO_T}$ac_ct_CXX" >&6
3126 else
3127 echo "$as_me:$LINENO: result: no" >&5
3128 echo "${ECHO_T}no" >&6
3129 fi
3130
3131 test -n "$ac_ct_CXX" && break
3132 done
3133 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3134
3135 CXX=$ac_ct_CXX
3136 fi
3137
3138
3139 # Provide some information about the compiler.
3140 echo "$as_me:$LINENO:" \
3141 "checking for C++ compiler version" >&5
3142 ac_compiler=`set X $ac_compile; echo $2`
3143 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3144 (eval $ac_compiler --version </dev/null >&5) 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }
3148 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3149 (eval $ac_compiler -v </dev/null >&5) 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }
3153 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3154 (eval $ac_compiler -V </dev/null >&5) 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }
3158
3159 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3160 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3161 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
3164 cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h. */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3170
3171 int
3172 main ()
3173 {
3174 #ifndef __GNUC__
3175 choke me
3176 #endif
3177
3178 ;
3179 return 0;
3180 }
3181 _ACEOF
3182 rm -f conftest.$ac_objext
3183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3184 (eval $ac_compile) 2>conftest.er1
3185 ac_status=$?
3186 grep -v '^ *+' conftest.er1 >conftest.err
3187 rm -f conftest.er1
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } &&
3191 { ac_try='test -z "$ac_cxx_werror_flag"
3192 || test ! -s conftest.err'
3193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 (eval $ac_try) 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; } &&
3198 { ac_try='test -s conftest.$ac_objext'
3199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200 (eval $ac_try) 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; }; then
3204 ac_compiler_gnu=yes
3205 else
3206 echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3208
3209 ac_compiler_gnu=no
3210 fi
3211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3212 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3213
3214 fi
3215 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3216 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3217 GXX=`test $ac_compiler_gnu = yes && echo yes`
3218 ac_test_CXXFLAGS=${CXXFLAGS+set}
3219 ac_save_CXXFLAGS=$CXXFLAGS
3220 CXXFLAGS="-g"
3221 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3222 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3223 if test "${ac_cv_prog_cxx_g+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226 cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h. */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3232
3233 int
3234 main ()
3235 {
3236
3237 ;
3238 return 0;
3239 }
3240 _ACEOF
3241 rm -f conftest.$ac_objext
3242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3243 (eval $ac_compile) 2>conftest.er1
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -z "$ac_cxx_werror_flag"
3251 || test ! -s conftest.err'
3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 (eval $ac_try) 2>&5
3254 ac_status=$?
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; } &&
3257 { ac_try='test -s conftest.$ac_objext'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 (eval $ac_try) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3263 ac_cv_prog_cxx_g=yes
3264 else
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268 ac_cv_prog_cxx_g=no
3269 fi
3270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3271 fi
3272 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3273 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3274 if test "$ac_test_CXXFLAGS" = set; then
3275 CXXFLAGS=$ac_save_CXXFLAGS
3276 elif test $ac_cv_prog_cxx_g = yes; then
3277 if test "$GXX" = yes; then
3278 CXXFLAGS="-g -O2"
3279 else
3280 CXXFLAGS="-g"
3281 fi
3282 else
3283 if test "$GXX" = yes; then
3284 CXXFLAGS="-O2"
3285 else
3286 CXXFLAGS=
3287 fi
3288 fi
3289 for ac_declaration in \
3290 '' \
3291 'extern "C" void std::exit (int) throw (); using std::exit;' \
3292 'extern "C" void std::exit (int); using std::exit;' \
3293 'extern "C" void exit (int) throw ();' \
3294 'extern "C" void exit (int);' \
3295 'void exit (int);'
3296 do
3297 cat >conftest.$ac_ext <<_ACEOF
3298 /* confdefs.h. */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3303 $ac_declaration
3304 #include <stdlib.h>
3305 int
3306 main ()
3307 {
3308 exit (42);
3309 ;
3310 return 0;
3311 }
3312 _ACEOF
3313 rm -f conftest.$ac_objext
3314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3315 (eval $ac_compile) 2>conftest.er1
3316 ac_status=$?
3317 grep -v '^ *+' conftest.er1 >conftest.err
3318 rm -f conftest.er1
3319 cat conftest.err >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); } &&
3322 { ac_try='test -z "$ac_cxx_werror_flag"
3323 || test ! -s conftest.err'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 (eval $ac_try) 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; } &&
3329 { ac_try='test -s conftest.$ac_objext'
3330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331 (eval $ac_try) 2>&5
3332 ac_status=$?
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; }; then
3335 :
3336 else
3337 echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3339
3340 continue
3341 fi
3342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3343 cat >conftest.$ac_ext <<_ACEOF
3344 /* confdefs.h. */
3345 _ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3349 $ac_declaration
3350 int
3351 main ()
3352 {
3353 exit (42);
3354 ;
3355 return 0;
3356 }
3357 _ACEOF
3358 rm -f conftest.$ac_objext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3360 (eval $ac_compile) 2>conftest.er1
3361 ac_status=$?
3362 grep -v '^ *+' conftest.er1 >conftest.err
3363 rm -f conftest.er1
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } &&
3367 { ac_try='test -z "$ac_cxx_werror_flag"
3368 || test ! -s conftest.err'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 (eval $ac_try) 2>&5
3371 ac_status=$?
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; } &&
3374 { ac_try='test -s conftest.$ac_objext'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376 (eval $ac_try) 2>&5
3377 ac_status=$?
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3380 break
3381 else
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385 fi
3386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3387 done
3388 rm -f conftest*
3389 if test -n "$ac_declaration"; then
3390 echo '#ifdef __cplusplus' >>confdefs.h
3391 echo $ac_declaration >>confdefs.h
3392 echo '#endif' >>confdefs.h
3393 fi
3394
3395 ac_ext=c
3396 ac_cpp='$CPP $CPPFLAGS'
3397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400
3401 depcc="$CXX" am_compiler_list=
3402
3403 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3404 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3405 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3409 # We make a subdir and do the tests there. Otherwise we can end up
3410 # making bogus files that we don't know about and never remove. For
3411 # instance it was reported that on HP-UX the gcc test will end up
3412 # making a dummy file named `D' -- because `-MD' means `put the output
3413 # in D'.
3414 mkdir conftest.dir
3415 # Copy depcomp to subdir because otherwise we won't find it if we're
3416 # using a relative directory.
3417 cp "$am_depcomp" conftest.dir
3418 cd conftest.dir
3419 # We will build objects and dependencies in a subdirectory because
3420 # it helps to detect inapplicable dependency modes. For instance
3421 # both Tru64's cc and ICC support -MD to output dependencies as a
3422 # side effect of compilation, but ICC will put the dependencies in
3423 # the current directory while Tru64 will put them in the object
3424 # directory.
3425 mkdir sub
3426
3427 am_cv_CXX_dependencies_compiler_type=none
3428 if test "$am_compiler_list" = ""; then
3429 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3430 fi
3431 for depmode in $am_compiler_list; do
3432 # Setup a source with many dependencies, because some compilers
3433 # like to wrap large dependency lists on column 80 (with \), and
3434 # we should not choose a depcomp mode which is confused by this.
3435 #
3436 # We need to recreate these files for each test, as the compiler may
3437 # overwrite some of them when testing with obscure command lines.
3438 # This happens at least with the AIX C compiler.
3439 : > sub/conftest.c
3440 for i in 1 2 3 4 5 6; do
3441 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3442 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3443 # Solaris 8's {/usr,}/bin/sh.
3444 touch sub/conftst$i.h
3445 done
3446 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3447
3448 case $depmode in
3449 nosideeffect)
3450 # after this tag, mechanisms are not by side-effect, so they'll
3451 # only be used when explicitly requested
3452 if test "x$enable_dependency_tracking" = xyes; then
3453 continue
3454 else
3455 break
3456 fi
3457 ;;
3458 none) break ;;
3459 esac
3460 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3461 # mode. It turns out that the SunPro C++ compiler does not properly
3462 # handle `-M -o', and we need to detect this.
3463 if depmode=$depmode \
3464 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3465 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3466 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3467 >/dev/null 2>conftest.err &&
3468 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3469 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3470 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3471 # icc doesn't choke on unknown options, it will just issue warnings
3472 # or remarks (even with -Werror). So we grep stderr for any message
3473 # that says an option was ignored or not supported.
3474 # When given -MP, icc 7.0 and 7.1 complain thusly:
3475 # icc: Command line warning: ignoring option '-M'; no argument required
3476 # The diagnosis changed in icc 8.0:
3477 # icc: Command line remark: option '-MP' not supported
3478 if (grep 'ignoring option' conftest.err ||
3479 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3480 am_cv_CXX_dependencies_compiler_type=$depmode
3481 break
3482 fi
3483 fi
3484 done
3485
3486 cd ..
3487 rm -rf conftest.dir
3488 else
3489 am_cv_CXX_dependencies_compiler_type=none
3490 fi
3491
3492 fi
3493 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3494 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3495 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3496
3497
3498
3499 if
3500 test "x$enable_dependency_tracking" != xno \
3501 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3502 am__fastdepCXX_TRUE=
3503 am__fastdepCXX_FALSE='#'
3504 else
3505 am__fastdepCXX_TRUE='#'
3506 am__fastdepCXX_FALSE=
3507 fi
3508
3509
3510
3511
3512 if test "x$CC" != xcc; then
3513 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3514 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3515 else
3516 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3517 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3518 fi
3519 set dummy $CC; ac_cc=`echo $2 |
3520 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3521 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524 cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h. */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3530
3531 int
3532 main ()
3533 {
3534
3535 ;
3536 return 0;
3537 }
3538 _ACEOF
3539 # Make sure it works both with $CC and with simple cc.
3540 # We do the test twice because some compilers refuse to overwrite an
3541 # existing .o file with -o, though they will create one.
3542 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3543 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544 (eval $ac_try) 2>&5
3545 ac_status=$?
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } &&
3548 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 (eval $ac_try) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); };
3553 then
3554 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3555 if test "x$CC" != xcc; then
3556 # Test first that cc exists at all.
3557 if { ac_try='cc -c conftest.$ac_ext >&5'
3558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559 (eval $ac_try) 2>&5
3560 ac_status=$?
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; }; then
3563 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3564 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 (eval $ac_try) 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
3569 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 (eval $ac_try) 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); };
3574 then
3575 # cc works too.
3576 :
3577 else
3578 # cc exists but doesn't like -o.
3579 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3580 fi
3581 fi
3582 fi
3583 else
3584 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3585 fi
3586 rm -f conftest*
3587
3588 fi
3589 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3590 echo "$as_me:$LINENO: result: yes" >&5
3591 echo "${ECHO_T}yes" >&6
3592 else
3593 echo "$as_me:$LINENO: result: no" >&5
3594 echo "${ECHO_T}no" >&6
3595
3596 cat >>confdefs.h <<\_ACEOF
3597 #define NO_MINUS_C_MINUS_O 1
3598 _ACEOF
3599
3600 fi
3601
3602 # FIXME: we rely on the cache variable name because
3603 # there is no other way.
3604 set dummy $CC
3605 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3606 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3607 # Losing compiler, so override with the script.
3608 # FIXME: It is wrong to rewrite CC.
3609 # But if we don't then we get into trouble of one sort or another.
3610 # A longer-term fix would be to have automake use am__CC in this case,
3611 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3612 CC="$am_aux_dir/compile $CC"
3613 fi
3614
3615
3616
3617
3618
3619 # Newer automakes demand CCAS and CCASFLAGS.
3620 : ${CCAS='$(CC)'}
3621 : ${CCASFLAGS='$(CFLAGS)'}
3622
3623
3624
3625 if test -n "$ac_tool_prefix"; then
3626 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3627 set dummy ${ac_tool_prefix}as; ac_word=$2
3628 echo "$as_me:$LINENO: checking for $ac_word" >&5
3629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3630 if test "${ac_cv_prog_AS+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633 if test -n "$AS"; then
3634 ac_cv_prog_AS="$AS" # Let the user override the test.
3635 else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3638 do
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643 ac_cv_prog_AS="${ac_tool_prefix}as"
3644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 break 2
3646 fi
3647 done
3648 done
3649
3650 fi
3651 fi
3652 AS=$ac_cv_prog_AS
3653 if test -n "$AS"; then
3654 echo "$as_me:$LINENO: result: $AS" >&5
3655 echo "${ECHO_T}$AS" >&6
3656 else
3657 echo "$as_me:$LINENO: result: no" >&5
3658 echo "${ECHO_T}no" >&6
3659 fi
3660
3661 fi
3662 if test -z "$ac_cv_prog_AS"; then
3663 ac_ct_AS=$AS
3664 # Extract the first word of "as", so it can be a program name with args.
3665 set dummy as; ac_word=$2
3666 echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3668 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671 if test -n "$ac_ct_AS"; then
3672 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3673 else
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH
3676 do
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3681 ac_cv_prog_ac_ct_AS="as"
3682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 break 2
3684 fi
3685 done
3686 done
3687
3688 fi
3689 fi
3690 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3691 if test -n "$ac_ct_AS"; then
3692 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3693 echo "${ECHO_T}$ac_ct_AS" >&6
3694 else
3695 echo "$as_me:$LINENO: result: no" >&5
3696 echo "${ECHO_T}no" >&6
3697 fi
3698
3699 AS=$ac_ct_AS
3700 else
3701 AS="$ac_cv_prog_AS"
3702 fi
3703
3704 if test -n "$ac_tool_prefix"; then
3705 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3706 set dummy ${ac_tool_prefix}ar; ac_word=$2
3707 echo "$as_me:$LINENO: checking for $ac_word" >&5
3708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3709 if test "${ac_cv_prog_AR+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712 if test -n "$AR"; then
3713 ac_cv_prog_AR="$AR" # Let the user override the test.
3714 else
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH
3717 do
3718 IFS=$as_save_IFS
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3722 ac_cv_prog_AR="${ac_tool_prefix}ar"
3723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 break 2
3725 fi
3726 done
3727 done
3728
3729 fi
3730 fi
3731 AR=$ac_cv_prog_AR
3732 if test -n "$AR"; then
3733 echo "$as_me:$LINENO: result: $AR" >&5
3734 echo "${ECHO_T}$AR" >&6
3735 else
3736 echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6
3738 fi
3739
3740 fi
3741 if test -z "$ac_cv_prog_AR"; then
3742 ac_ct_AR=$AR
3743 # Extract the first word of "ar", so it can be a program name with args.
3744 set dummy ar; ac_word=$2
3745 echo "$as_me:$LINENO: checking for $ac_word" >&5
3746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3747 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750 if test -n "$ac_ct_AR"; then
3751 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3755 do
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_ac_ct_AR="ar"
3761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3763 fi
3764 done
3765 done
3766
3767 fi
3768 fi
3769 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3770 if test -n "$ac_ct_AR"; then
3771 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3772 echo "${ECHO_T}$ac_ct_AR" >&6
3773 else
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3776 fi
3777
3778 AR=$ac_ct_AR
3779 else
3780 AR="$ac_cv_prog_AR"
3781 fi
3782
3783 if test -n "$ac_tool_prefix"; then
3784 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3785 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3786 echo "$as_me:$LINENO: checking for $ac_word" >&5
3787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3788 if test "${ac_cv_prog_RANLIB+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791 if test -n "$RANLIB"; then
3792 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3796 do
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 break 2
3804 fi
3805 done
3806 done
3807
3808 fi
3809 fi
3810 RANLIB=$ac_cv_prog_RANLIB
3811 if test -n "$RANLIB"; then
3812 echo "$as_me:$LINENO: result: $RANLIB" >&5
3813 echo "${ECHO_T}$RANLIB" >&6
3814 else
3815 echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3817 fi
3818
3819 fi
3820 if test -z "$ac_cv_prog_RANLIB"; then
3821 ac_ct_RANLIB=$RANLIB
3822 # Extract the first word of "ranlib", so it can be a program name with args.
3823 set dummy ranlib; ac_word=$2
3824 echo "$as_me:$LINENO: checking for $ac_word" >&5
3825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3826 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829 if test -n "$ac_ct_RANLIB"; then
3830 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3831 else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3834 do
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839 ac_cv_prog_ac_ct_RANLIB="ranlib"
3840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 break 2
3842 fi
3843 done
3844 done
3845
3846 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3847 fi
3848 fi
3849 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3850 if test -n "$ac_ct_RANLIB"; then
3851 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3852 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3853 else
3854 echo "$as_me:$LINENO: result: no" >&5
3855 echo "${ECHO_T}no" >&6
3856 fi
3857
3858 RANLIB=$ac_ct_RANLIB
3859 else
3860 RANLIB="$ac_cv_prog_RANLIB"
3861 fi
3862
3863
3864 # Find a good install program. We prefer a C program (faster),
3865 # so one script is as good as another. But avoid the broken or
3866 # incompatible versions:
3867 # SysV /etc/install, /usr/sbin/install
3868 # SunOS /usr/etc/install
3869 # IRIX /sbin/install
3870 # AIX /bin/install
3871 # AmigaOS /C/install, which installs bootblocks on floppy discs
3872 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3873 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3874 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3875 # OS/2's system install, which has a completely different semantic
3876 # ./install, which can be erroneously created by make from ./install.sh.
3877 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3878 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3879 if test -z "$INSTALL"; then
3880 if test "${ac_cv_path_install+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH
3885 do
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
3888 # Account for people who put trailing slashes in PATH elements.
3889 case $as_dir/ in
3890 ./ | .// | /cC/* | \
3891 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3892 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3893 /usr/ucb/* ) ;;
3894 *)
3895 # OSF1 and SCO ODT 3.0 have their own names for install.
3896 # Don't use installbsd from OSF since it installs stuff as root
3897 # by default.
3898 for ac_prog in ginstall scoinst install; do
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3901 if test $ac_prog = install &&
3902 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3903 # AIX install. It has an incompatible calling convention.
3904 :
3905 elif test $ac_prog = install &&
3906 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3907 # program-specific install script used by HP pwplus--don't use.
3908 :
3909 else
3910 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3911 break 3
3912 fi
3913 fi
3914 done
3915 done
3916 ;;
3917 esac
3918 done
3919
3920
3921 fi
3922 if test "${ac_cv_path_install+set}" = set; then
3923 INSTALL=$ac_cv_path_install
3924 else
3925 # As a last resort, use the slow shell script. We don't cache a
3926 # path for INSTALL within a source directory, because that will
3927 # break other packages using the cache if that directory is
3928 # removed, or if the path is relative.
3929 INSTALL=$ac_install_sh
3930 fi
3931 fi
3932 echo "$as_me:$LINENO: result: $INSTALL" >&5
3933 echo "${ECHO_T}$INSTALL" >&6
3934
3935 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3936 # It thinks the first close brace ends the variable substitution.
3937 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3938
3939 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3940
3941 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3942
3943
3944 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3945 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3946 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3947 if test "${enable_maintainer_mode+set}" = set; then
3948 enableval="$enable_maintainer_mode"
3949 USE_MAINTAINER_MODE=$enableval
3950 else
3951 USE_MAINTAINER_MODE=no
3952 fi;
3953 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3954 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3955
3956
3957 if test $USE_MAINTAINER_MODE = yes; then
3958 MAINTAINER_MODE_TRUE=
3959 MAINTAINER_MODE_FALSE='#'
3960 else
3961 MAINTAINER_MODE_TRUE='#'
3962 MAINTAINER_MODE_FALSE=
3963 fi
3964
3965 MAINT=$MAINTAINER_MODE_TRUE
3966
3967
3968
3969 . ${srcdir}/configure.host
3970
3971 case ${gc_basedir} in
3972 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
3973 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
3974 esac
3975
3976 gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
3977 case "${host}" in
3978 *-*-cygwin32*)
3979 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
3980 ;;
3981 esac
3982
3983
3984 GC_CFLAGS=${gc_cflags}
3985
3986
3987 # Check whether --enable-shared or --disable-shared was given.
3988 if test "${enable_shared+set}" = set; then
3989 enableval="$enable_shared"
3990 p=${PACKAGE-default}
3991 case $enableval in
3992 yes) enable_shared=yes ;;
3993 no) enable_shared=no ;;
3994 *)
3995 enable_shared=no
3996 # Look at the argument we got. We use all the common list separators.
3997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3998 for pkg in $enableval; do
3999 if test "X$pkg" = "X$p"; then
4000 enable_shared=yes
4001 fi
4002 done
4003 IFS="$ac_save_ifs"
4004 ;;
4005 esac
4006 else
4007 enable_shared=yes
4008 fi;
4009 # Check whether --enable-static or --disable-static was given.
4010 if test "${enable_static+set}" = set; then
4011 enableval="$enable_static"
4012 p=${PACKAGE-default}
4013 case $enableval in
4014 yes) enable_static=yes ;;
4015 no) enable_static=no ;;
4016 *)
4017 enable_static=no
4018 # Look at the argument we got. We use all the common list separators.
4019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4020 for pkg in $enableval; do
4021 if test "X$pkg" = "X$p"; then
4022 enable_static=yes
4023 fi
4024 done
4025 IFS="$ac_save_ifs"
4026 ;;
4027 esac
4028 else
4029 enable_static=yes
4030 fi;
4031 # Check whether --enable-fast-install or --disable-fast-install was given.
4032 if test "${enable_fast_install+set}" = set; then
4033 enableval="$enable_fast_install"
4034 p=${PACKAGE-default}
4035 case $enableval in
4036 yes) enable_fast_install=yes ;;
4037 no) enable_fast_install=no ;;
4038 *)
4039 enable_fast_install=no
4040 # Look at the argument we got. We use all the common list separators.
4041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4042 for pkg in $enableval; do
4043 if test "X$pkg" = "X$p"; then
4044 enable_fast_install=yes
4045 fi
4046 done
4047 IFS="$ac_save_ifs"
4048 ;;
4049 esac
4050 else
4051 enable_fast_install=yes
4052 fi;
4053
4054 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4055 if test "${with_gnu_ld+set}" = set; then
4056 withval="$with_gnu_ld"
4057 test "$withval" = no || with_gnu_ld=yes
4058 else
4059 with_gnu_ld=no
4060 fi;
4061 ac_prog=ld
4062 if test "$GCC" = yes; then
4063 # Check if gcc -print-prog-name=ld gives a path.
4064 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4065 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4066 case $host in
4067 *-*-mingw*)
4068 # gcc leaves a trailing carriage return which upsets mingw
4069 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4070 *)
4071 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4072 esac
4073 case $ac_prog in
4074 # Accept absolute paths.
4075 [\\/]* | [A-Za-z]:[\\/]*)
4076 re_direlt='/[^/][^/]*/\.\./'
4077 # Canonicalize the path of ld
4078 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4079 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4080 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4081 done
4082 test -z "$LD" && LD="$ac_prog"
4083 ;;
4084 "")
4085 # If it fails, then pretend we aren't using GCC.
4086 ac_prog=ld
4087 ;;
4088 *)
4089 # If it is relative, then search for the first ld in PATH.
4090 with_gnu_ld=unknown
4091 ;;
4092 esac
4093 elif test "$with_gnu_ld" = yes; then
4094 echo "$as_me:$LINENO: checking for GNU ld" >&5
4095 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4096 else
4097 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4098 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4099 fi
4100 if test "${lt_cv_path_LD+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103 if test -z "$LD"; then
4104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4105 for ac_dir in $PATH; do
4106 test -z "$ac_dir" && ac_dir=.
4107 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4108 lt_cv_path_LD="$ac_dir/$ac_prog"
4109 # Check to see if the program is GNU ld. I'd rather use --version,
4110 # but apparently some GNU ld's only accept -v.
4111 # Break only if it was the GNU/non-GNU ld that we prefer.
4112 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4113 test "$with_gnu_ld" != no && break
4114 else
4115 test "$with_gnu_ld" != yes && break
4116 fi
4117 fi
4118 done
4119 IFS="$ac_save_ifs"
4120 else
4121 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4122 fi
4123 fi
4124
4125 LD="$lt_cv_path_LD"
4126 if test -n "$LD"; then
4127 echo "$as_me:$LINENO: result: $LD" >&5
4128 echo "${ECHO_T}$LD" >&6
4129 else
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4132 fi
4133 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4134 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4135 { (exit 1); exit 1; }; }
4136 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4137 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4138 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4142 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4143 lt_cv_prog_gnu_ld=yes
4144 else
4145 lt_cv_prog_gnu_ld=no
4146 fi
4147 fi
4148 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4149 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4150 with_gnu_ld=$lt_cv_prog_gnu_ld
4151
4152
4153 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4154 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4155 if test "${lt_cv_ld_reload_flag+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 else
4158 lt_cv_ld_reload_flag='-r'
4159 fi
4160 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4161 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4162 reload_flag=$lt_cv_ld_reload_flag
4163 test -n "$reload_flag" && reload_flag=" $reload_flag"
4164
4165 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4166 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4167 if test "${lt_cv_path_NM+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170 if test -n "$NM"; then
4171 # Let the user override the test.
4172 lt_cv_path_NM="$NM"
4173 else
4174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4175 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4176 test -z "$ac_dir" && ac_dir=.
4177 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4178 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4179 # Check to see if the nm accepts a BSD-compat flag.
4180 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4181 # nm: unknown option "B" ignored
4182 # Tru64's nm complains that /dev/null is an invalid object file
4183 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4184 lt_cv_path_NM="$tmp_nm -B"
4185 break
4186 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4187 lt_cv_path_NM="$tmp_nm -p"
4188 break
4189 else
4190 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4191 continue # so that we can try to find one that supports BSD flags
4192 fi
4193 fi
4194 done
4195 IFS="$ac_save_ifs"
4196 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4197 fi
4198 fi
4199
4200 NM="$lt_cv_path_NM"
4201 echo "$as_me:$LINENO: result: $NM" >&5
4202 echo "${ECHO_T}$NM" >&6
4203
4204 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4205 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4206 LN_S=$as_ln_s
4207 if test "$LN_S" = "ln -s"; then
4208 echo "$as_me:$LINENO: result: yes" >&5
4209 echo "${ECHO_T}yes" >&6
4210 else
4211 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4212 echo "${ECHO_T}no, using $LN_S" >&6
4213 fi
4214
4215 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4216 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4217 if test "${lt_cv_deplibs_check_method+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220 lt_cv_file_magic_cmd='$MAGIC_CMD'
4221 lt_cv_file_magic_test_file=
4222 lt_cv_deplibs_check_method='unknown'
4223 # Need to set the preceding variable on all platforms that support
4224 # interlibrary dependencies.
4225 # 'none' -- dependencies not supported.
4226 # `unknown' -- same as none, but documents that we really don't know.
4227 # 'pass_all' -- all dependencies passed with no checks.
4228 # 'test_compile' -- check by making test program.
4229 # 'file_magic [regex]' -- check by looking for files in library path
4230 # which responds to the $file_magic_cmd with a given egrep regex.
4231 # If you have `file' or equivalent on your system and you're not sure
4232 # whether `pass_all' will *always* work, you probably want this one.
4233
4234 case $host_os in
4235 aix*)
4236 lt_cv_deplibs_check_method=pass_all
4237 ;;
4238
4239 beos*)
4240 lt_cv_deplibs_check_method=pass_all
4241 ;;
4242
4243 bsdi4*)
4244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4245 lt_cv_file_magic_cmd='/usr/bin/file -L'
4246 lt_cv_file_magic_test_file=/shlib/libc.so
4247 ;;
4248
4249 cygwin* | mingw* |pw32*)
4250 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4251 lt_cv_file_magic_cmd='$OBJDUMP -f'
4252 ;;
4253
4254 darwin* | rhapsody*)
4255 # this will be overwritten by pass_all, but leave it in just in case
4256 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4257 lt_cv_file_magic_cmd='/usr/bin/file -L'
4258 case "$host_os" in
4259 rhapsody* | darwin1.012)
4260 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4261 ;;
4262 *) # Darwin 1.3 on
4263 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4264 ;;
4265 esac
4266 lt_cv_deplibs_check_method=pass_all
4267 ;;
4268
4269 freebsd* | kfreebsd*-gnu)
4270 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4271 case $host_cpu in
4272 i*86 )
4273 # Not sure whether the presence of OpenBSD here was a mistake.
4274 # Let's accept both of them until this is cleared up.
4275 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4276 lt_cv_file_magic_cmd=/usr/bin/file
4277 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4278 ;;
4279 esac
4280 else
4281 lt_cv_deplibs_check_method=pass_all
4282 fi
4283 ;;
4284
4285 gnu*)
4286 lt_cv_deplibs_check_method=pass_all
4287 ;;
4288
4289 hpux10.20*|hpux11*)
4290 case $host_cpu in
4291 hppa*)
4292 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4293 lt_cv_file_magic_cmd=/usr/bin/file
4294 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4295 ;;
4296 ia64*)
4297 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4298 lt_cv_file_magic_cmd=/usr/bin/file
4299 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4300 ;;
4301 esac
4302 ;;
4303
4304 irix5* | irix6*)
4305 case $host_os in
4306 irix5*)
4307 # this will be overridden with pass_all, but let us keep it just in case
4308 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4309 ;;
4310 *)
4311 case $LD in
4312 *-32|*"-32 ") libmagic=32-bit;;
4313 *-n32|*"-n32 ") libmagic=N32;;
4314 *-64|*"-64 ") libmagic=64-bit;;
4315 *) libmagic=never-match;;
4316 esac
4317 # this will be overridden with pass_all, but let us keep it just in case
4318 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4319 ;;
4320 esac
4321 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4322 lt_cv_deplibs_check_method=pass_all
4323 ;;
4324
4325 # This must be Linux ELF.
4326 linux-gnu*)
4327 lt_cv_deplibs_check_method=pass_all
4328 ;;
4329
4330 netbsd* | knetbsd*-gnu)
4331 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4332 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4333 else
4334 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4335 fi
4336 ;;
4337
4338 newsos6)
4339 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4340 lt_cv_file_magic_cmd=/usr/bin/file
4341 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4342 ;;
4343
4344 osf3* | osf4* | osf5*)
4345 # this will be overridden with pass_all, but let us keep it just in case
4346 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4347 lt_cv_file_magic_test_file=/shlib/libc.so
4348 lt_cv_deplibs_check_method=pass_all
4349 ;;
4350
4351 sco3.2v5*)
4352 lt_cv_deplibs_check_method=pass_all
4353 ;;
4354
4355 solaris*)
4356 lt_cv_deplibs_check_method=pass_all
4357 lt_cv_file_magic_test_file=/lib/libc.so
4358 ;;
4359
4360 sysv5uw[78]* | sysv4*uw2*)
4361 lt_cv_deplibs_check_method=pass_all
4362 ;;
4363
4364 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4365 case $host_vendor in
4366 ncr)
4367 lt_cv_deplibs_check_method=pass_all
4368 ;;
4369 motorola)
4370 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]'
4371 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4372 ;;
4373 esac
4374 ;;
4375 esac
4376
4377 fi
4378 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4379 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4380 file_magic_cmd=$lt_cv_file_magic_cmd
4381 deplibs_check_method=$lt_cv_deplibs_check_method
4382
4383
4384
4385
4386
4387 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4388
4389 # find the maximum length of command line arguments
4390 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4391 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4392 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 else
4395 i=0
4396 teststring="ABCD"
4397
4398 case $build_os in
4399 msdosdjgpp*)
4400 # On DJGPP, this test can blow up pretty badly due to problems in libc
4401 # (any single argument exceeding 2000 bytes causes a buffer overrun
4402 # during glob expansion). Even if it were fixed, the result of this
4403 # check would be larger than it should be.
4404 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4405 ;;
4406
4407 cygwin* | mingw*)
4408 # On Win9x/ME, this test blows up -- it succeeds, but takes
4409 # about 5 minutes as the teststring grows exponentially.
4410 # Worse, since 9x/ME are not pre-emptively multitasking,
4411 # you end up with a "frozen" computer, even though with patience
4412 # the test eventually succeeds (with a max line length of 256k).
4413 # Instead, let's just punt: use the minimum linelength reported by
4414 # all of the supported platforms: 8192 (on NT/2K/XP).
4415 lt_cv_sys_max_cmd_len=8192;
4416 ;;
4417
4418 amigaos*)
4419 # On AmigaOS with pdksh, this test takes hours, literally.
4420 # So we just punt and use a minimum line length of 8192.
4421 lt_cv_sys_max_cmd_len=8192;
4422 ;;
4423
4424 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4425 # This has been around since 386BSD, at least. Likely further.
4426 if test -x /sbin/sysctl; then
4427 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4428 elif test -x /usr/sbin/sysctl; then
4429 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4430 else
4431 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4432 fi
4433 # And add a safety zone
4434 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4436 ;;
4437 esac
4438
4439 fi
4440
4441 if test -n "$lt_cv_sys_max_cmd_len" ; then
4442 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4443 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4444 else
4445 echo "$as_me:$LINENO: result: none" >&5
4446 echo "${ECHO_T}none" >&6
4447 fi
4448
4449
4450 # Only perform the check for file, if the check method requires it
4451 case $deplibs_check_method in
4452 file_magic*)
4453 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4454 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4455 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4456 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459 case $MAGIC_CMD in
4460 /*)
4461 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4462 ;;
4463 ?:/*)
4464 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4465 ;;
4466 *)
4467 ac_save_MAGIC_CMD="$MAGIC_CMD"
4468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4469 ac_dummy="/usr/bin:$PATH"
4470 for ac_dir in $ac_dummy; do
4471 test -z "$ac_dir" && ac_dir=.
4472 if test -f $ac_dir/${ac_tool_prefix}file; then
4473 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4474 if test -n "$file_magic_test_file"; then
4475 case $deplibs_check_method in
4476 "file_magic "*)
4477 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4479 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4480 egrep "$file_magic_regex" > /dev/null; then
4481 :
4482 else
4483 cat <<EOF 1>&2
4484
4485 *** Warning: the command libtool uses to detect shared libraries,
4486 *** $file_magic_cmd, produces output that libtool cannot recognize.
4487 *** The result is that libtool may fail to recognize shared libraries
4488 *** as such. This will affect the creation of libtool libraries that
4489 *** depend on shared libraries, but programs linked with such libtool
4490 *** libraries will work regardless of this problem. Nevertheless, you
4491 *** may want to report the problem to your system manager and/or to
4492 *** bug-libtool@gnu.org
4493
4494 EOF
4495 fi ;;
4496 esac
4497 fi
4498 break
4499 fi
4500 done
4501 IFS="$ac_save_ifs"
4502 MAGIC_CMD="$ac_save_MAGIC_CMD"
4503 ;;
4504 esac
4505 fi
4506
4507 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4508 if test -n "$MAGIC_CMD"; then
4509 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4510 echo "${ECHO_T}$MAGIC_CMD" >&6
4511 else
4512 echo "$as_me:$LINENO: result: no" >&5
4513 echo "${ECHO_T}no" >&6
4514 fi
4515
4516 if test -z "$lt_cv_path_MAGIC_CMD"; then
4517 if test -n "$ac_tool_prefix"; then
4518 echo "$as_me:$LINENO: checking for file" >&5
4519 echo $ECHO_N "checking for file... $ECHO_C" >&6
4520 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523 case $MAGIC_CMD in
4524 /*)
4525 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4526 ;;
4527 ?:/*)
4528 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4529 ;;
4530 *)
4531 ac_save_MAGIC_CMD="$MAGIC_CMD"
4532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4533 ac_dummy="/usr/bin:$PATH"
4534 for ac_dir in $ac_dummy; do
4535 test -z "$ac_dir" && ac_dir=.
4536 if test -f $ac_dir/file; then
4537 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4538 if test -n "$file_magic_test_file"; then
4539 case $deplibs_check_method in
4540 "file_magic "*)
4541 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4542 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4543 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4544 egrep "$file_magic_regex" > /dev/null; then
4545 :
4546 else
4547 cat <<EOF 1>&2
4548
4549 *** Warning: the command libtool uses to detect shared libraries,
4550 *** $file_magic_cmd, produces output that libtool cannot recognize.
4551 *** The result is that libtool may fail to recognize shared libraries
4552 *** as such. This will affect the creation of libtool libraries that
4553 *** depend on shared libraries, but programs linked with such libtool
4554 *** libraries will work regardless of this problem. Nevertheless, you
4555 *** may want to report the problem to your system manager and/or to
4556 *** bug-libtool@gnu.org
4557
4558 EOF
4559 fi ;;
4560 esac
4561 fi
4562 break
4563 fi
4564 done
4565 IFS="$ac_save_ifs"
4566 MAGIC_CMD="$ac_save_MAGIC_CMD"
4567 ;;
4568 esac
4569 fi
4570
4571 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4572 if test -n "$MAGIC_CMD"; then
4573 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4574 echo "${ECHO_T}$MAGIC_CMD" >&6
4575 else
4576 echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6
4578 fi
4579
4580 else
4581 MAGIC_CMD=:
4582 fi
4583 fi
4584
4585 fi
4586 ;;
4587 esac
4588
4589 if test -n "$ac_tool_prefix"; then
4590 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4591 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4592 echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4594 if test "${ac_cv_prog_RANLIB+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597 if test -n "$RANLIB"; then
4598 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611 done
4612 done
4613
4614 fi
4615 fi
4616 RANLIB=$ac_cv_prog_RANLIB
4617 if test -n "$RANLIB"; then
4618 echo "$as_me:$LINENO: result: $RANLIB" >&5
4619 echo "${ECHO_T}$RANLIB" >&6
4620 else
4621 echo "$as_me:$LINENO: result: no" >&5
4622 echo "${ECHO_T}no" >&6
4623 fi
4624
4625 fi
4626 if test -z "$ac_cv_prog_RANLIB"; then
4627 ac_ct_RANLIB=$RANLIB
4628 # Extract the first word of "ranlib", so it can be a program name with args.
4629 set dummy ranlib; ac_word=$2
4630 echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4632 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635 if test -n "$ac_ct_RANLIB"; then
4636 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4640 do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4645 ac_cv_prog_ac_ct_RANLIB="ranlib"
4646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 break 2
4648 fi
4649 done
4650 done
4651
4652 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4653 fi
4654 fi
4655 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4656 if test -n "$ac_ct_RANLIB"; then
4657 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4658 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4659 else
4660 echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6
4662 fi
4663
4664 RANLIB=$ac_ct_RANLIB
4665 else
4666 RANLIB="$ac_cv_prog_RANLIB"
4667 fi
4668
4669 if test -n "$ac_tool_prefix"; then
4670 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4671 set dummy ${ac_tool_prefix}strip; ac_word=$2
4672 echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674 if test "${ac_cv_prog_STRIP+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677 if test -n "$STRIP"; then
4678 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4682 do
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4687 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 break 2
4690 fi
4691 done
4692 done
4693
4694 fi
4695 fi
4696 STRIP=$ac_cv_prog_STRIP
4697 if test -n "$STRIP"; then
4698 echo "$as_me:$LINENO: result: $STRIP" >&5
4699 echo "${ECHO_T}$STRIP" >&6
4700 else
4701 echo "$as_me:$LINENO: result: no" >&5
4702 echo "${ECHO_T}no" >&6
4703 fi
4704
4705 fi
4706 if test -z "$ac_cv_prog_STRIP"; then
4707 ac_ct_STRIP=$STRIP
4708 # Extract the first word of "strip", so it can be a program name with args.
4709 set dummy strip; ac_word=$2
4710 echo "$as_me:$LINENO: checking for $ac_word" >&5
4711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4712 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715 if test -n "$ac_ct_STRIP"; then
4716 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4717 else
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4720 do
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4725 ac_cv_prog_ac_ct_STRIP="strip"
4726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 break 2
4728 fi
4729 done
4730 done
4731
4732 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4733 fi
4734 fi
4735 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4736 if test -n "$ac_ct_STRIP"; then
4737 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4738 echo "${ECHO_T}$ac_ct_STRIP" >&6
4739 else
4740 echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6
4742 fi
4743
4744 STRIP=$ac_ct_STRIP
4745 else
4746 STRIP="$ac_cv_prog_STRIP"
4747 fi
4748
4749
4750 # Check for any special flags to pass to ltconfig.
4751 libtool_flags="--cache-file=$cache_file"
4752 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4753 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4754 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4755 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4756 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4757
4758
4759 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4760 if test "${enable_libtool_lock+set}" = set; then
4761 enableval="$enable_libtool_lock"
4762
4763 fi;
4764 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4765 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4766
4767
4768 # Check whether --with-pic or --without-pic was given.
4769 if test "${with_pic+set}" = set; then
4770 withval="$with_pic"
4771 pic_mode="$withval"
4772 else
4773 pic_mode=default
4774 fi;
4775 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4776 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4777
4778 # Some flags need to be propagated to the compiler or linker for good
4779 # libtool support.
4780 case $host in
4781 *-*-irix6*)
4782 # Find out which ABI we are using.
4783 echo '#line 4783 "configure"' > conftest.$ac_ext
4784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785 (eval $ac_compile) 2>&5
4786 ac_status=$?
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; then
4789 if test "$lt_cv_prog_gnu_ld" = yes; then
4790 case `/usr/bin/file conftest.$ac_objext` in
4791 *32-bit*)
4792 LD="${LD-ld} -melf32bsmip"
4793 ;;
4794 *N32*)
4795 LD="${LD-ld} -melf32bmipn32"
4796 ;;
4797 *64-bit*)
4798 LD="${LD-ld} -melf64bmip"
4799 ;;
4800 esac
4801 else
4802 case `/usr/bin/file conftest.$ac_objext` in
4803 *32-bit*)
4804 LD="${LD-ld} -32"
4805 ;;
4806 *N32*)
4807 LD="${LD-ld} -n32"
4808 ;;
4809 *64-bit*)
4810 LD="${LD-ld} -64"
4811 ;;
4812 esac
4813 fi
4814 fi
4815 rm -rf conftest*
4816 ;;
4817
4818 ia64-*-hpux*)
4819 # Find out which ABI we are using.
4820 echo 'int i;' > conftest.$ac_ext
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822 (eval $ac_compile) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; then
4826 case "`/usr/bin/file conftest.o`" in
4827 *ELF-32*)
4828 HPUX_IA64_MODE="32"
4829 ;;
4830 *ELF-64*)
4831 HPUX_IA64_MODE="64"
4832 ;;
4833 esac
4834 fi
4835 rm -rf conftest*
4836 ;;
4837
4838 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4839 # Find out which ABI we are using.
4840 echo 'int i;' > conftest.$ac_ext
4841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4842 (eval $ac_compile) 2>&5
4843 ac_status=$?
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; then
4846 case "`/usr/bin/file conftest.o`" in
4847 *32-bit*)
4848 case $host in
4849 x86_64-*linux*)
4850 LD="${LD-ld} -m elf_i386"
4851 ;;
4852 ppc64-*linux*|powerpc64-*linux*)
4853 LD="${LD-ld} -m elf32ppclinux"
4854 ;;
4855 s390x-*linux*)
4856 LD="${LD-ld} -m elf_s390"
4857 ;;
4858 sparc64-*linux*)
4859 LD="${LD-ld} -m elf32_sparc"
4860 ;;
4861 esac
4862 ;;
4863 *64-bit*)
4864 case $host in
4865 x86_64-*linux*)
4866 LD="${LD-ld} -m elf_x86_64"
4867 ;;
4868 ppc*-*linux*|powerpc*-*linux*)
4869 LD="${LD-ld} -m elf64ppc"
4870 ;;
4871 s390*-*linux*)
4872 LD="${LD-ld} -m elf64_s390"
4873 ;;
4874 sparc*-*linux*)
4875 LD="${LD-ld} -m elf64_sparc"
4876 ;;
4877 esac
4878 ;;
4879 esac
4880 fi
4881 rm -rf conftest*
4882 ;;
4883
4884 *-*-sco3.2v5*)
4885 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4886 SAVE_CFLAGS="$CFLAGS"
4887 CFLAGS="$CFLAGS -belf"
4888 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4889 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4890 if test "${lt_cv_cc_needs_belf+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893
4894
4895 ac_ext=c
4896 ac_cpp='$CPP $CPPFLAGS'
4897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4900
4901 if test x$gcc_no_link = xyes; then
4902 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4903 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4904 { (exit 1); exit 1; }; }
4905 fi
4906 cat >conftest.$ac_ext <<_ACEOF
4907 /* confdefs.h. */
4908 _ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4912
4913 int
4914 main ()
4915 {
4916
4917 ;
4918 return 0;
4919 }
4920 _ACEOF
4921 rm -f conftest.$ac_objext conftest$ac_exeext
4922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4923 (eval $ac_link) 2>conftest.er1
4924 ac_status=$?
4925 grep -v '^ *+' conftest.er1 >conftest.err
4926 rm -f conftest.er1
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } &&
4930 { ac_try='test -z "$ac_c_werror_flag"
4931 || test ! -s conftest.err'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 (eval $ac_try) 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; } &&
4937 { ac_try='test -s conftest$ac_exeext'
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 (eval $ac_try) 2>&5
4940 ac_status=$?
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; }; then
4943 lt_cv_cc_needs_belf=yes
4944 else
4945 echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4947
4948 lt_cv_cc_needs_belf=no
4949 fi
4950 rm -f conftest.err conftest.$ac_objext \
4951 conftest$ac_exeext conftest.$ac_ext
4952 ac_ext=c
4953 ac_cpp='$CPP $CPPFLAGS'
4954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4957
4958 fi
4959 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4960 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4961 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4962 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4963 CFLAGS="$SAVE_CFLAGS"
4964 fi
4965 ;;
4966
4967
4968 esac
4969
4970
4971 # Save cache, so that ltconfig can load it
4972 cat >confcache <<\_ACEOF
4973 # This file is a shell script that caches the results of configure
4974 # tests run on this system so they can be shared between configure
4975 # scripts and configure runs, see configure's option --config-cache.
4976 # It is not useful on other systems. If it contains results you don't
4977 # want to keep, you may remove or edit it.
4978 #
4979 # config.status only pays attention to the cache file if you give it
4980 # the --recheck option to rerun configure.
4981 #
4982 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4983 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4984 # following values.
4985
4986 _ACEOF
4987
4988 # The following way of writing the cache mishandles newlines in values,
4989 # but we know of no workaround that is simple, portable, and efficient.
4990 # So, don't put newlines in cache variables' values.
4991 # Ultrix sh set writes to stderr and can't be redirected directly,
4992 # and sets the high bit in the cache file unless we assign to the vars.
4993 {
4994 (set) 2>&1 |
4995 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4996 *ac_space=\ *)
4997 # `set' does not quote correctly, so add quotes (double-quote
4998 # substitution turns \\\\ into \\, and sed turns \\ into \).
4999 sed -n \
5000 "s/'/'\\\\''/g;
5001 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5002 ;;
5003 *)
5004 # `set' quotes correctly as required by POSIX, so do not add quotes.
5005 sed -n \
5006 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5007 ;;
5008 esac;
5009 } |
5010 sed '
5011 t clear
5012 : clear
5013 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5014 t end
5015 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5016 : end' >>confcache
5017 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5018 if test -w $cache_file; then
5019 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5020 cat confcache >$cache_file
5021 else
5022 echo "not updating unwritable cache $cache_file"
5023 fi
5024 fi
5025 rm -f confcache
5026
5027 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5028 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5029 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5030 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5031 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5032 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5033 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5034 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5035 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5036 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5037 echo "$as_me: error: libtool configure failed" >&2;}
5038 { (exit 1); exit 1; }; }
5039
5040 # Reload cache, that may have been modified by ltconfig
5041 if test -r "$cache_file"; then
5042 # Some versions of bash will fail to source /dev/null (special
5043 # files actually), so we avoid doing that.
5044 if test -f "$cache_file"; then
5045 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5046 echo "$as_me: loading cache $cache_file" >&6;}
5047 case $cache_file in
5048 [\\/]* | ?:[\\/]* ) . $cache_file;;
5049 *) . ./$cache_file;;
5050 esac
5051 fi
5052 else
5053 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5054 echo "$as_me: creating cache $cache_file" >&6;}
5055 >$cache_file
5056 fi
5057
5058
5059 # This can be used to rebuild libtool when needed
5060 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5061
5062 # Always use our own libtool.
5063 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5064
5065 # Redirect the config.log output again, so that the ltconfig log is not
5066 # clobbered by the next message.
5067 exec 5>>./config.log
5068
5069 ac_ext=cc
5070 ac_cpp='$CXXCPP $CPPFLAGS'
5071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5074 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5075 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5076 if test -z "$CXXCPP"; then
5077 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 else
5080 # Double quotes because CXXCPP needs to be expanded
5081 for CXXCPP in "$CXX -E" "/lib/cpp"
5082 do
5083 ac_preproc_ok=false
5084 for ac_cxx_preproc_warn_flag in '' yes
5085 do
5086 # Use a header file that comes with gcc, so configuring glibc
5087 # with a fresh cross-compiler works.
5088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089 # <limits.h> exists even on freestanding compilers.
5090 # On the NeXT, cc -E runs the code through the compiler's parser,
5091 # not just through cpp. "Syntax error" is here to catch this case.
5092 cat >conftest.$ac_ext <<_ACEOF
5093 /* confdefs.h. */
5094 _ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5098 #ifdef __STDC__
5099 # include <limits.h>
5100 #else
5101 # include <assert.h>
5102 #endif
5103 Syntax error
5104 _ACEOF
5105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5107 ac_status=$?
5108 grep -v '^ *+' conftest.er1 >conftest.err
5109 rm -f conftest.er1
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } >/dev/null; then
5113 if test -s conftest.err; then
5114 ac_cpp_err=$ac_cxx_preproc_warn_flag
5115 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5116 else
5117 ac_cpp_err=
5118 fi
5119 else
5120 ac_cpp_err=yes
5121 fi
5122 if test -z "$ac_cpp_err"; then
5123 :
5124 else
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128 # Broken: fails on valid input.
5129 continue
5130 fi
5131 rm -f conftest.err conftest.$ac_ext
5132
5133 # OK, works on sane cases. Now check whether non-existent headers
5134 # can be detected and how.
5135 cat >conftest.$ac_ext <<_ACEOF
5136 /* confdefs.h. */
5137 _ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5141 #include <ac_nonexistent.h>
5142 _ACEOF
5143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5145 ac_status=$?
5146 grep -v '^ *+' conftest.er1 >conftest.err
5147 rm -f conftest.er1
5148 cat conftest.err >&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } >/dev/null; then
5151 if test -s conftest.err; then
5152 ac_cpp_err=$ac_cxx_preproc_warn_flag
5153 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5154 else
5155 ac_cpp_err=
5156 fi
5157 else
5158 ac_cpp_err=yes
5159 fi
5160 if test -z "$ac_cpp_err"; then
5161 # Broken: success on invalid input.
5162 continue
5163 else
5164 echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5166
5167 # Passes both tests.
5168 ac_preproc_ok=:
5169 break
5170 fi
5171 rm -f conftest.err conftest.$ac_ext
5172
5173 done
5174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5175 rm -f conftest.err conftest.$ac_ext
5176 if $ac_preproc_ok; then
5177 break
5178 fi
5179
5180 done
5181 ac_cv_prog_CXXCPP=$CXXCPP
5182
5183 fi
5184 CXXCPP=$ac_cv_prog_CXXCPP
5185 else
5186 ac_cv_prog_CXXCPP=$CXXCPP
5187 fi
5188 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5189 echo "${ECHO_T}$CXXCPP" >&6
5190 ac_preproc_ok=false
5191 for ac_cxx_preproc_warn_flag in '' yes
5192 do
5193 # Use a header file that comes with gcc, so configuring glibc
5194 # with a fresh cross-compiler works.
5195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5196 # <limits.h> exists even on freestanding compilers.
5197 # On the NeXT, cc -E runs the code through the compiler's parser,
5198 # not just through cpp. "Syntax error" is here to catch this case.
5199 cat >conftest.$ac_ext <<_ACEOF
5200 /* confdefs.h. */
5201 _ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h. */
5205 #ifdef __STDC__
5206 # include <limits.h>
5207 #else
5208 # include <assert.h>
5209 #endif
5210 Syntax error
5211 _ACEOF
5212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5214 ac_status=$?
5215 grep -v '^ *+' conftest.er1 >conftest.err
5216 rm -f conftest.er1
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } >/dev/null; then
5220 if test -s conftest.err; then
5221 ac_cpp_err=$ac_cxx_preproc_warn_flag
5222 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5223 else
5224 ac_cpp_err=
5225 fi
5226 else
5227 ac_cpp_err=yes
5228 fi
5229 if test -z "$ac_cpp_err"; then
5230 :
5231 else
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.$ac_ext >&5
5234
5235 # Broken: fails on valid input.
5236 continue
5237 fi
5238 rm -f conftest.err conftest.$ac_ext
5239
5240 # OK, works on sane cases. Now check whether non-existent headers
5241 # can be detected and how.
5242 cat >conftest.$ac_ext <<_ACEOF
5243 /* confdefs.h. */
5244 _ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5248 #include <ac_nonexistent.h>
5249 _ACEOF
5250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5252 ac_status=$?
5253 grep -v '^ *+' conftest.er1 >conftest.err
5254 rm -f conftest.er1
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } >/dev/null; then
5258 if test -s conftest.err; then
5259 ac_cpp_err=$ac_cxx_preproc_warn_flag
5260 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5261 else
5262 ac_cpp_err=
5263 fi
5264 else
5265 ac_cpp_err=yes
5266 fi
5267 if test -z "$ac_cpp_err"; then
5268 # Broken: success on invalid input.
5269 continue
5270 else
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5273
5274 # Passes both tests.
5275 ac_preproc_ok=:
5276 break
5277 fi
5278 rm -f conftest.err conftest.$ac_ext
5279
5280 done
5281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5282 rm -f conftest.err conftest.$ac_ext
5283 if $ac_preproc_ok; then
5284 :
5285 else
5286 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5287 See \`config.log' for more details." >&5
5288 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5289 See \`config.log' for more details." >&2;}
5290 { (exit 1); exit 1; }; }
5291 fi
5292
5293 ac_ext=c
5294 ac_cpp='$CPP $CPPFLAGS'
5295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5298
5299
5300
5301 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5302 lt_save_CC="$CC"
5303 lt_save_CFLAGS="$CFLAGS"
5304 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5305 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5306 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5307 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5308 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5309 deplibs_check_method="$deplibs_check_method" \
5310 file_magic_cmd="$file_magic_cmd" \
5311 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5312 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5313 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5314 echo "$as_me: error: libtool tag configuration failed" >&2;}
5315 { (exit 1); exit 1; }; }
5316 CC="$lt_save_CC"
5317 CFLAGS="$lt_save_CFLAGS"
5318
5319 # Redirect the config.log output again, so that the ltconfig log is not
5320 # clobbered by the next message.
5321 exec 5>>./config.log
5322
5323
5324
5325
5326
5327
5328
5329
5330 # Check whether --with-target-subdir or --without-target-subdir was given.
5331 if test "${with_target_subdir+set}" = set; then
5332 withval="$with_target_subdir"
5333
5334 fi;
5335
5336 # Check whether --with-cross-host or --without-cross-host was given.
5337 if test "${with_cross_host+set}" = set; then
5338 withval="$with_cross_host"
5339
5340 fi;
5341
5342 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
5343 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
5344 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
5345 if test -z "$THREADS"; then
5346 THREADS=no
5347 fi
5348 echo "$as_me:$LINENO: result: $THREADS" >&5
5349 echo "${ECHO_T}$THREADS" >&6
5350
5351 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
5352 if test "${enable_parallel_mark+set}" = set; then
5353 enableval="$enable_parallel_mark"
5354 case "$THREADS" in
5355 no | none | single)
5356 { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
5357 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
5358 { (exit 1); exit 1; }; }
5359 ;;
5360 esac
5361
5362 fi;
5363
5364 AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
5365 THREADLIBS=
5366 case "$THREADS" in
5367 no | none | single)
5368 THREADS=none
5369 ;;
5370 posix | posix95 | pthreads)
5371 THREADS=posix
5372 THREADLIBS=-lpthread
5373 case "$host" in
5374 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
5375
5376 cat >>confdefs.h <<\_ACEOF
5377 #define GC_LINUX_THREADS 1
5378 _ACEOF
5379
5380
5381 cat >>confdefs.h <<\_ACEOF
5382 #define _REENTRANT 1
5383 _ACEOF
5384
5385 if test "${enable_parallel_mark}" = yes; then
5386
5387 cat >>confdefs.h <<\_ACEOF
5388 #define PARALLEL_MARK 1
5389 _ACEOF
5390
5391 fi
5392
5393 cat >>confdefs.h <<\_ACEOF
5394 #define THREAD_LOCAL_ALLOC 1
5395 _ACEOF
5396
5397 ;;
5398 *-*-linux*)
5399 cat >>confdefs.h <<\_ACEOF
5400 #define GC_LINUX_THREADS 1
5401 _ACEOF
5402
5403 cat >>confdefs.h <<\_ACEOF
5404 #define _REENTRANT 1
5405 _ACEOF
5406
5407 ;;
5408 *-*-aix*)
5409
5410 cat >>confdefs.h <<\_ACEOF
5411 #define GC_AIX_THREADS 1
5412 _ACEOF
5413
5414 cat >>confdefs.h <<\_ACEOF
5415 #define _REENTRANT 1
5416 _ACEOF
5417
5418 ;;
5419 *-*-hpux11*)
5420 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
5421 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
5422
5423 cat >>confdefs.h <<\_ACEOF
5424 #define GC_HPUX_THREADS 1
5425 _ACEOF
5426
5427
5428 cat >>confdefs.h <<\_ACEOF
5429 #define _POSIX_C_SOURCE 199506L
5430 _ACEOF
5431
5432 if test "${enable_parallel_mark}" = yes; then
5433 cat >>confdefs.h <<\_ACEOF
5434 #define PARALLEL_MARK 1
5435 _ACEOF
5436
5437 fi
5438 cat >>confdefs.h <<\_ACEOF
5439 #define THREAD_LOCAL_ALLOC 1
5440 _ACEOF
5441
5442 THREADLIBS="-lpthread -lrt"
5443 # HPUX needs REENTRANT for the _r calls.
5444
5445 cat >>confdefs.h <<\_ACEOF
5446 #define _REENTRANT 1
5447 _ACEOF
5448
5449 ;;
5450 *-*-hpux10*)
5451 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
5452 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
5453 ;;
5454 *-*-kfreebsd*-gnu)
5455 cat >>confdefs.h <<\_ACEOF
5456 #define GC_FREEBSD_THREADS 1
5457 _ACEOF
5458
5459 INCLUDES="$INCLUDES -pthread"
5460 THREADDLLIBS=-pthread
5461 cat >>confdefs.h <<\_ACEOF
5462 #define _REENTRANT 1
5463 _ACEOF
5464
5465 if test "${enable_parallel_mark}" = yes; then
5466 cat >>confdefs.h <<\_ACEOF
5467 #define PARALLEL_MARK 1
5468 _ACEOF
5469
5470 fi
5471 cat >>confdefs.h <<\_ACEOF
5472 #define THREAD_LOCAL_ALLOC 1
5473 _ACEOF
5474
5475
5476 cat >>confdefs.h <<\_ACEOF
5477 #define USE_COMPILER_TLS 1
5478 _ACEOF
5479
5480 ;;
5481 *-*-freebsd*)
5482 { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
5483 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
5484
5485 cat >>confdefs.h <<\_ACEOF
5486 #define GC_FREEBSD_THREADS 1
5487 _ACEOF
5488
5489 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
5490 THREADLIBS=-pthread
5491 ;;
5492 *-*-solaris*)
5493
5494 cat >>confdefs.h <<\_ACEOF
5495 #define GC_SOLARIS_THREADS 1
5496 _ACEOF
5497
5498
5499 cat >>confdefs.h <<\_ACEOF
5500 #define GC_SOLARIS_PTHREADS 1
5501 _ACEOF
5502
5503 ;;
5504 *-*-irix*)
5505
5506 cat >>confdefs.h <<\_ACEOF
5507 #define GC_IRIX_THREADS 1
5508 _ACEOF
5509
5510 ;;
5511 *-*-cygwin*)
5512
5513 cat >>confdefs.h <<\_ACEOF
5514 #define GC_WIN32_THREADS 1
5515 _ACEOF
5516
5517 ;;
5518 *-*-darwin*)
5519
5520 cat >>confdefs.h <<\_ACEOF
5521 #define GC_DARWIN_THREADS 1
5522 _ACEOF
5523
5524 cat >>confdefs.h <<\_ACEOF
5525 #define THREAD_LOCAL_ALLOC 1
5526 _ACEOF
5527
5528 if test "${enable_parallel_mark}" = yes; then
5529 cat >>confdefs.h <<\_ACEOF
5530 #define PARALLEL_MARK 1
5531 _ACEOF
5532
5533 fi
5534 ;;
5535 *-*-osf*)
5536
5537 cat >>confdefs.h <<\_ACEOF
5538 #define GC_OSF1_THREADS 1
5539 _ACEOF
5540
5541 if test "${enable_parallel_mark}" = yes; then
5542 cat >>confdefs.h <<\_ACEOF
5543 #define PARALLEL_MARK 1
5544 _ACEOF
5545
5546 cat >>confdefs.h <<\_ACEOF
5547 #define THREAD_LOCAL_ALLOC 1
5548 _ACEOF
5549
5550 # May want to enable it in other cases, too.
5551 # Measurements havent yet been done.
5552 fi
5553 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
5554 THREADLIBS="-lpthread -lrt"
5555 ;;
5556 esac
5557 ;;
5558 win32)
5559 cat >>confdefs.h <<\_ACEOF
5560 #define GC_WIN32_THREADS 1
5561 _ACEOF
5562
5563 ;;
5564 dgux386)
5565 THREADS=dgux386
5566 echo "$as_me:$LINENO: result: $THREADLIBS" >&5
5567 echo "${ECHO_T}$THREADLIBS" >&6
5568 # Use pthread GCC switch
5569 THREADLIBS=-pthread
5570 if test "${enable_parallel_mark}" = yes; then
5571 cat >>confdefs.h <<\_ACEOF
5572 #define PARALLEL_MARK 1
5573 _ACEOF
5574
5575 fi
5576 cat >>confdefs.h <<\_ACEOF
5577 #define THREAD_LOCAL_ALLOC 1
5578 _ACEOF
5579
5580
5581 cat >>confdefs.h <<\_ACEOF
5582 #define GC_DGUX386_THREADS 1
5583 _ACEOF
5584
5585
5586 cat >>confdefs.h <<\_ACEOF
5587 #define DGUX_THREADS 1
5588 _ACEOF
5589
5590 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
5591 AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
5592 ;;
5593 aix)
5594 THREADS=posix
5595 THREADLIBS=-lpthread
5596 cat >>confdefs.h <<\_ACEOF
5597 #define GC_AIX_THREADS 1
5598 _ACEOF
5599
5600 cat >>confdefs.h <<\_ACEOF
5601 #define _REENTRANT 1
5602 _ACEOF
5603
5604 ;;
5605 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
5606 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
5607 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
5608 { (exit 1); exit 1; }; }
5609 ;;
5610 *)
5611 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
5612 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
5613 { (exit 1); exit 1; }; }
5614 ;;
5615 esac
5616
5617
5618 case "$host" in
5619 powerpc-*-darwin*)
5620 powerpc_darwin=true
5621 ;;
5622 esac
5623
5624
5625 if test x$powerpc_darwin = xtrue; then
5626 POWERPC_DARWIN_TRUE=
5627 POWERPC_DARWIN_FALSE='#'
5628 else
5629 POWERPC_DARWIN_TRUE='#'
5630 POWERPC_DARWIN_FALSE=
5631 fi
5632
5633
5634 # Darwin needs a few extra special tests to deal with variation in the
5635 # system headers.
5636 case "$host" in
5637 powerpc*-*-darwin*)
5638 echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5
5639 echo $ECHO_N "checking for ppc_thread_state_t.r0... $ECHO_C" >&6
5640 if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643 cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h. */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 #include <mach/thread_status.h>
5650
5651 int
5652 main ()
5653 {
5654 static ppc_thread_state_t ac_aggr;
5655 if (ac_aggr.r0)
5656 return 0;
5657 ;
5658 return 0;
5659 }
5660 _ACEOF
5661 rm -f conftest.$ac_objext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5663 (eval $ac_compile) 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
5670 { ac_try='test -z "$ac_c_werror_flag"
5671 || test ! -s conftest.err'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 (eval $ac_try) 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; } &&
5677 { ac_try='test -s conftest.$ac_objext'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 (eval $ac_try) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5683 ac_cv_member_ppc_thread_state_t_r0=yes
5684 else
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5687
5688 cat >conftest.$ac_ext <<_ACEOF
5689 /* confdefs.h. */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5694 #include <mach/thread_status.h>
5695
5696 int
5697 main ()
5698 {
5699 static ppc_thread_state_t ac_aggr;
5700 if (sizeof ac_aggr.r0)
5701 return 0;
5702 ;
5703 return 0;
5704 }
5705 _ACEOF
5706 rm -f conftest.$ac_objext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5708 (eval $ac_compile) 2>conftest.er1
5709 ac_status=$?
5710 grep -v '^ *+' conftest.er1 >conftest.err
5711 rm -f conftest.er1
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } &&
5715 { ac_try='test -z "$ac_c_werror_flag"
5716 || test ! -s conftest.err'
5717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718 (eval $ac_try) 2>&5
5719 ac_status=$?
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }; } &&
5722 { ac_try='test -s conftest.$ac_objext'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 (eval $ac_try) 2>&5
5725 ac_status=$?
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; }; then
5728 ac_cv_member_ppc_thread_state_t_r0=yes
5729 else
5730 echo "$as_me: failed program was:" >&5
5731 sed 's/^/| /' conftest.$ac_ext >&5
5732
5733 ac_cv_member_ppc_thread_state_t_r0=no
5734 fi
5735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5736 fi
5737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5738 fi
5739 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5
5740 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_r0" >&6
5741 if test $ac_cv_member_ppc_thread_state_t_r0 = yes; then
5742
5743 cat >>confdefs.h <<\_ACEOF
5744 #define HAS_PPC_THREAD_STATE_R0 1
5745 _ACEOF
5746
5747 fi
5748
5749 echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5
5750 echo $ECHO_N "checking for ppc_thread_state_t.__r0... $ECHO_C" >&6
5751 if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754 cat >conftest.$ac_ext <<_ACEOF
5755 /* confdefs.h. */
5756 _ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5760 #include <mach/thread_status.h>
5761
5762 int
5763 main ()
5764 {
5765 static ppc_thread_state_t ac_aggr;
5766 if (ac_aggr.__r0)
5767 return 0;
5768 ;
5769 return 0;
5770 }
5771 _ACEOF
5772 rm -f conftest.$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774 (eval $ac_compile) 2>conftest.er1
5775 ac_status=$?
5776 grep -v '^ *+' conftest.er1 >conftest.err
5777 rm -f conftest.er1
5778 cat conftest.err >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } &&
5781 { ac_try='test -z "$ac_c_werror_flag"
5782 || test ! -s conftest.err'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 (eval $ac_try) 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; } &&
5788 { ac_try='test -s conftest.$ac_objext'
5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 (eval $ac_try) 2>&5
5791 ac_status=$?
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; }; then
5794 ac_cv_member_ppc_thread_state_t___r0=yes
5795 else
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5798
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 #include <mach/thread_status.h>
5806
5807 int
5808 main ()
5809 {
5810 static ppc_thread_state_t ac_aggr;
5811 if (sizeof ac_aggr.__r0)
5812 return 0;
5813 ;
5814 return 0;
5815 }
5816 _ACEOF
5817 rm -f conftest.$ac_objext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5819 (eval $ac_compile) 2>conftest.er1
5820 ac_status=$?
5821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try='test -z "$ac_c_werror_flag"
5827 || test ! -s conftest.err'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 (eval $ac_try) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; } &&
5833 { ac_try='test -s conftest.$ac_objext'
5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 (eval $ac_try) 2>&5
5836 ac_status=$?
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; }; then
5839 ac_cv_member_ppc_thread_state_t___r0=yes
5840 else
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5843
5844 ac_cv_member_ppc_thread_state_t___r0=no
5845 fi
5846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5847 fi
5848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5849 fi
5850 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5
5851 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t___r0" >&6
5852 if test $ac_cv_member_ppc_thread_state_t___r0 = yes; then
5853
5854 cat >>confdefs.h <<\_ACEOF
5855 #define HAS_PPC_THREAD_STATE___R0 1
5856 _ACEOF
5857
5858 fi
5859
5860 echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5
5861 echo $ECHO_N "checking for ppc_thread_state64_t.r0... $ECHO_C" >&6
5862 if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865 cat >conftest.$ac_ext <<_ACEOF
5866 /* confdefs.h. */
5867 _ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5871 #include <mach/thread_status.h>
5872
5873 int
5874 main ()
5875 {
5876 static ppc_thread_state64_t ac_aggr;
5877 if (ac_aggr.r0)
5878 return 0;
5879 ;
5880 return 0;
5881 }
5882 _ACEOF
5883 rm -f conftest.$ac_objext
5884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5885 (eval $ac_compile) 2>conftest.er1
5886 ac_status=$?
5887 grep -v '^ *+' conftest.er1 >conftest.err
5888 rm -f conftest.er1
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } &&
5892 { ac_try='test -z "$ac_c_werror_flag"
5893 || test ! -s conftest.err'
5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 (eval $ac_try) 2>&5
5896 ac_status=$?
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; } &&
5899 { ac_try='test -s conftest.$ac_objext'
5900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901 (eval $ac_try) 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
5905 ac_cv_member_ppc_thread_state64_t_r0=yes
5906 else
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h. */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 #include <mach/thread_status.h>
5917
5918 int
5919 main ()
5920 {
5921 static ppc_thread_state64_t ac_aggr;
5922 if (sizeof ac_aggr.r0)
5923 return 0;
5924 ;
5925 return 0;
5926 }
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_cv_member_ppc_thread_state64_t_r0=yes
5951 else
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5954
5955 ac_cv_member_ppc_thread_state64_t_r0=no
5956 fi
5957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5958 fi
5959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5960 fi
5961 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5
5962 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t_r0" >&6
5963 if test $ac_cv_member_ppc_thread_state64_t_r0 = yes; then
5964
5965 cat >>confdefs.h <<\_ACEOF
5966 #define HAS_PPC_THREAD_STATE64_R0 1
5967 _ACEOF
5968
5969 fi
5970
5971 echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5
5972 echo $ECHO_N "checking for ppc_thread_state64_t.__r0... $ECHO_C" >&6
5973 if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976 cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h. */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 #include <mach/thread_status.h>
5983
5984 int
5985 main ()
5986 {
5987 static ppc_thread_state64_t ac_aggr;
5988 if (ac_aggr.__r0)
5989 return 0;
5990 ;
5991 return 0;
5992 }
5993 _ACEOF
5994 rm -f conftest.$ac_objext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5996 (eval $ac_compile) 2>conftest.er1
5997 ac_status=$?
5998 grep -v '^ *+' conftest.er1 >conftest.err
5999 rm -f conftest.er1
6000 cat conftest.err >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } &&
6003 { ac_try='test -z "$ac_c_werror_flag"
6004 || test ! -s conftest.err'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; } &&
6010 { ac_try='test -s conftest.$ac_objext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 ac_cv_member_ppc_thread_state64_t___r0=yes
6017 else
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6020
6021 cat >conftest.$ac_ext <<_ACEOF
6022 /* confdefs.h. */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 #include <mach/thread_status.h>
6028
6029 int
6030 main ()
6031 {
6032 static ppc_thread_state64_t ac_aggr;
6033 if (sizeof ac_aggr.__r0)
6034 return 0;
6035 ;
6036 return 0;
6037 }
6038 _ACEOF
6039 rm -f conftest.$ac_objext
6040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6041 (eval $ac_compile) 2>conftest.er1
6042 ac_status=$?
6043 grep -v '^ *+' conftest.er1 >conftest.err
6044 rm -f conftest.er1
6045 cat conftest.err >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } &&
6048 { ac_try='test -z "$ac_c_werror_flag"
6049 || test ! -s conftest.err'
6050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051 (eval $ac_try) 2>&5
6052 ac_status=$?
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; } &&
6055 { ac_try='test -s conftest.$ac_objext'
6056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057 (eval $ac_try) 2>&5
6058 ac_status=$?
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }; }; then
6061 ac_cv_member_ppc_thread_state64_t___r0=yes
6062 else
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6065
6066 ac_cv_member_ppc_thread_state64_t___r0=no
6067 fi
6068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6069 fi
6070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6071 fi
6072 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5
6073 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t___r0" >&6
6074 if test $ac_cv_member_ppc_thread_state64_t___r0 = yes; then
6075
6076 cat >>confdefs.h <<\_ACEOF
6077 #define HAS_PPC_THREAD_STATE64___R0 1
6078 _ACEOF
6079
6080 fi
6081
6082 ;;
6083 i?86*-*-darwin*)
6084 echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5
6085 echo $ECHO_N "checking for x86_thread_state32_t.eax... $ECHO_C" >&6
6086 if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 cat >conftest.$ac_ext <<_ACEOF
6090 /* confdefs.h. */
6091 _ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6095 #include <sys/cdefs.h>
6096 #include <mach/thread_status.h>
6097
6098 int
6099 main ()
6100 {
6101 static x86_thread_state32_t ac_aggr;
6102 if (ac_aggr.eax)
6103 return 0;
6104 ;
6105 return 0;
6106 }
6107 _ACEOF
6108 rm -f conftest.$ac_objext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6110 (eval $ac_compile) 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } &&
6117 { ac_try='test -z "$ac_c_werror_flag"
6118 || test ! -s conftest.err'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 (eval $ac_try) 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; } &&
6124 { ac_try='test -s conftest.$ac_objext'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 (eval $ac_try) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 ac_cv_member_x86_thread_state32_t_eax=yes
6131 else
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6134
6135 cat >conftest.$ac_ext <<_ACEOF
6136 /* confdefs.h. */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6141 #include <sys/cdefs.h>
6142 #include <mach/thread_status.h>
6143
6144 int
6145 main ()
6146 {
6147 static x86_thread_state32_t ac_aggr;
6148 if (sizeof ac_aggr.eax)
6149 return 0;
6150 ;
6151 return 0;
6152 }
6153 _ACEOF
6154 rm -f conftest.$ac_objext
6155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6156 (eval $ac_compile) 2>conftest.er1
6157 ac_status=$?
6158 grep -v '^ *+' conftest.er1 >conftest.err
6159 rm -f conftest.er1
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -z "$ac_c_werror_flag"
6164 || test ! -s conftest.err'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 (eval $ac_try) 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; } &&
6170 { ac_try='test -s conftest.$ac_objext'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 (eval $ac_try) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6176 ac_cv_member_x86_thread_state32_t_eax=yes
6177 else
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6180
6181 ac_cv_member_x86_thread_state32_t_eax=no
6182 fi
6183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6184 fi
6185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6186 fi
6187 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5
6188 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t_eax" >&6
6189 if test $ac_cv_member_x86_thread_state32_t_eax = yes; then
6190
6191 cat >>confdefs.h <<\_ACEOF
6192 #define HAS_X86_THREAD_STATE32_EAX 1
6193 _ACEOF
6194
6195 fi
6196
6197 echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5
6198 echo $ECHO_N "checking for x86_thread_state32_t.__eax... $ECHO_C" >&6
6199 if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202 cat >conftest.$ac_ext <<_ACEOF
6203 /* confdefs.h. */
6204 _ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 #include <sys/cdefs.h>
6209 #include <mach/thread_status.h>
6210
6211 int
6212 main ()
6213 {
6214 static x86_thread_state32_t ac_aggr;
6215 if (ac_aggr.__eax)
6216 return 0;
6217 ;
6218 return 0;
6219 }
6220 _ACEOF
6221 rm -f conftest.$ac_objext
6222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6223 (eval $ac_compile) 2>conftest.er1
6224 ac_status=$?
6225 grep -v '^ *+' conftest.er1 >conftest.err
6226 rm -f conftest.er1
6227 cat conftest.err >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try='test -z "$ac_c_werror_flag"
6231 || test ! -s conftest.err'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 (eval $ac_try) 2>&5
6234 ac_status=$?
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try='test -s conftest.$ac_objext'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 (eval $ac_try) 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
6243 ac_cv_member_x86_thread_state32_t___eax=yes
6244 else
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6247
6248 cat >conftest.$ac_ext <<_ACEOF
6249 /* confdefs.h. */
6250 _ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h. */
6254 #include <sys/cdefs.h>
6255 #include <mach/thread_status.h>
6256
6257 int
6258 main ()
6259 {
6260 static x86_thread_state32_t ac_aggr;
6261 if (sizeof ac_aggr.__eax)
6262 return 0;
6263 ;
6264 return 0;
6265 }
6266 _ACEOF
6267 rm -f conftest.$ac_objext
6268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6269 (eval $ac_compile) 2>conftest.er1
6270 ac_status=$?
6271 grep -v '^ *+' conftest.er1 >conftest.err
6272 rm -f conftest.er1
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } &&
6276 { ac_try='test -z "$ac_c_werror_flag"
6277 || test ! -s conftest.err'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 (eval $ac_try) 2>&5
6280 ac_status=$?
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; } &&
6283 { ac_try='test -s conftest.$ac_objext'
6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285 (eval $ac_try) 2>&5
6286 ac_status=$?
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; }; then
6289 ac_cv_member_x86_thread_state32_t___eax=yes
6290 else
6291 echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6293
6294 ac_cv_member_x86_thread_state32_t___eax=no
6295 fi
6296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6297 fi
6298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6299 fi
6300 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5
6301 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t___eax" >&6
6302 if test $ac_cv_member_x86_thread_state32_t___eax = yes; then
6303
6304 cat >>confdefs.h <<\_ACEOF
6305 #define HAS_X86_THREAD_STATE32___EAX 1
6306 _ACEOF
6307
6308 fi
6309
6310 ;;
6311 x86_64-*-darwin*)
6312 echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5
6313 echo $ECHO_N "checking for x86_thread_state64_t.rax... $ECHO_C" >&6
6314 if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317 cat >conftest.$ac_ext <<_ACEOF
6318 /* confdefs.h. */
6319 _ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 #include <sys/cdefs.h>
6324 #include <mach/thread_status.h>
6325
6326 int
6327 main ()
6328 {
6329 static x86_thread_state64_t ac_aggr;
6330 if (ac_aggr.rax)
6331 return 0;
6332 ;
6333 return 0;
6334 }
6335 _ACEOF
6336 rm -f conftest.$ac_objext
6337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6338 (eval $ac_compile) 2>conftest.er1
6339 ac_status=$?
6340 grep -v '^ *+' conftest.er1 >conftest.err
6341 rm -f conftest.er1
6342 cat conftest.err >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } &&
6345 { ac_try='test -z "$ac_c_werror_flag"
6346 || test ! -s conftest.err'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 (eval $ac_try) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; } &&
6352 { ac_try='test -s conftest.$ac_objext'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 (eval $ac_try) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6358 ac_cv_member_x86_thread_state64_t_rax=yes
6359 else
6360 echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6362
6363 cat >conftest.$ac_ext <<_ACEOF
6364 /* confdefs.h. */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6369 #include <sys/cdefs.h>
6370 #include <mach/thread_status.h>
6371
6372 int
6373 main ()
6374 {
6375 static x86_thread_state64_t ac_aggr;
6376 if (sizeof ac_aggr.rax)
6377 return 0;
6378 ;
6379 return 0;
6380 }
6381 _ACEOF
6382 rm -f conftest.$ac_objext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384 (eval $ac_compile) 2>conftest.er1
6385 ac_status=$?
6386 grep -v '^ *+' conftest.er1 >conftest.err
6387 rm -f conftest.er1
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
6391 { ac_try='test -z "$ac_c_werror_flag"
6392 || test ! -s conftest.err'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; } &&
6398 { ac_try='test -s conftest.$ac_objext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 (eval $ac_try) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 ac_cv_member_x86_thread_state64_t_rax=yes
6405 else
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6408
6409 ac_cv_member_x86_thread_state64_t_rax=no
6410 fi
6411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6412 fi
6413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6414 fi
6415 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5
6416 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t_rax" >&6
6417 if test $ac_cv_member_x86_thread_state64_t_rax = yes; then
6418
6419 cat >>confdefs.h <<\_ACEOF
6420 #define HAS_X86_THREAD_STATE64_RAX 1
6421 _ACEOF
6422
6423 fi
6424
6425 echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5
6426 echo $ECHO_N "checking for x86_thread_state64_t.__rax... $ECHO_C" >&6
6427 if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6429 else
6430 cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h. */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 #include <sys/cdefs.h>
6437 #include <mach/thread_status.h>
6438
6439 int
6440 main ()
6441 {
6442 static x86_thread_state64_t ac_aggr;
6443 if (ac_aggr.__rax)
6444 return 0;
6445 ;
6446 return 0;
6447 }
6448 _ACEOF
6449 rm -f conftest.$ac_objext
6450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6451 (eval $ac_compile) 2>conftest.er1
6452 ac_status=$?
6453 grep -v '^ *+' conftest.er1 >conftest.err
6454 rm -f conftest.er1
6455 cat conftest.err >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try='test -z "$ac_c_werror_flag"
6459 || test ! -s conftest.err'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 (eval $ac_try) 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; } &&
6465 { ac_try='test -s conftest.$ac_objext'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 (eval $ac_try) 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6471 ac_cv_member_x86_thread_state64_t___rax=yes
6472 else
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6475
6476 cat >conftest.$ac_ext <<_ACEOF
6477 /* confdefs.h. */
6478 _ACEOF
6479 cat confdefs.h >>conftest.$ac_ext
6480 cat >>conftest.$ac_ext <<_ACEOF
6481 /* end confdefs.h. */
6482 #include <sys/cdefs.h>
6483 #include <mach/thread_status.h>
6484
6485 int
6486 main ()
6487 {
6488 static x86_thread_state64_t ac_aggr;
6489 if (sizeof ac_aggr.__rax)
6490 return 0;
6491 ;
6492 return 0;
6493 }
6494 _ACEOF
6495 rm -f conftest.$ac_objext
6496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6497 (eval $ac_compile) 2>conftest.er1
6498 ac_status=$?
6499 grep -v '^ *+' conftest.er1 >conftest.err
6500 rm -f conftest.er1
6501 cat conftest.err >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } &&
6504 { ac_try='test -z "$ac_c_werror_flag"
6505 || test ! -s conftest.err'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 (eval $ac_try) 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; } &&
6511 { ac_try='test -s conftest.$ac_objext'
6512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513 (eval $ac_try) 2>&5
6514 ac_status=$?
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }; }; then
6517 ac_cv_member_x86_thread_state64_t___rax=yes
6518 else
6519 echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6521
6522 ac_cv_member_x86_thread_state64_t___rax=no
6523 fi
6524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6525 fi
6526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6527 fi
6528 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5
6529 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t___rax" >&6
6530 if test $ac_cv_member_x86_thread_state64_t___rax = yes; then
6531
6532 cat >>confdefs.h <<\_ACEOF
6533 #define HAS_X86_THREAD_STATE64___RAX 1
6534 _ACEOF
6535
6536 fi
6537
6538 ;;
6539 *) ;;
6540 esac
6541
6542 # We never want libdl on darwin. It is a fake libdl that just ends up making
6543 # dyld calls anyway
6544 case "$host" in
6545 *-*-darwin*) ;;
6546 *)
6547 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6548 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6549 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 else
6552 ac_check_lib_save_LIBS=$LIBS
6553 LIBS="-ldl $LIBS"
6554 if test x$gcc_no_link = xyes; then
6555 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6556 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6557 { (exit 1); exit 1; }; }
6558 fi
6559 cat >conftest.$ac_ext <<_ACEOF
6560 /* confdefs.h. */
6561 _ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6565
6566 /* Override any gcc2 internal prototype to avoid an error. */
6567 #ifdef __cplusplus
6568 extern "C"
6569 #endif
6570 /* We use char because int might match the return type of a gcc2
6571 builtin and then its argument prototype would still apply. */
6572 char dlopen ();
6573 int
6574 main ()
6575 {
6576 dlopen ();
6577 ;
6578 return 0;
6579 }
6580 _ACEOF
6581 rm -f conftest.$ac_objext conftest$ac_exeext
6582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6583 (eval $ac_link) 2>conftest.er1
6584 ac_status=$?
6585 grep -v '^ *+' conftest.er1 >conftest.err
6586 rm -f conftest.er1
6587 cat conftest.err >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } &&
6590 { ac_try='test -z "$ac_c_werror_flag"
6591 || test ! -s conftest.err'
6592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593 (eval $ac_try) 2>&5
6594 ac_status=$?
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; } &&
6597 { ac_try='test -s conftest$ac_exeext'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 (eval $ac_try) 2>&5
6600 ac_status=$?
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; }; then
6603 ac_cv_lib_dl_dlopen=yes
6604 else
6605 echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6607
6608 ac_cv_lib_dl_dlopen=no
6609 fi
6610 rm -f conftest.err conftest.$ac_objext \
6611 conftest$ac_exeext conftest.$ac_ext
6612 LIBS=$ac_check_lib_save_LIBS
6613 fi
6614 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6615 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6616 if test $ac_cv_lib_dl_dlopen = yes; then
6617 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
6618 fi
6619
6620 ;;
6621 esac
6622
6623
6624
6625 target_all=libgcjgc.la
6626
6627
6628 TARGET_ECOS="no"
6629
6630 # Check whether --with-ecos or --without-ecos was given.
6631 if test "${with_ecos+set}" = set; then
6632 withval="$with_ecos"
6633 TARGET_ECOS="$with_ecos"
6634
6635 fi;
6636
6637 addobjs=
6638 addlibs=
6639 addincludes=
6640 addtests=
6641 case "$TARGET_ECOS" in
6642 no)
6643 ;;
6644 *)
6645
6646 cat >>confdefs.h <<\_ACEOF
6647 #define ECOS 1
6648 _ACEOF
6649
6650 AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
6651 addobjs="$addobjs ecos.lo"
6652 ;;
6653 esac
6654
6655 if test "${enable_cplusplus}" = yes; then
6656 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
6657 addtests="$addtests test_cpp"
6658 fi
6659
6660
6661
6662 if test "${enable_cplusplus}" = yes; then
6663 CPLUSPLUS_TRUE=
6664 CPLUSPLUS_FALSE='#'
6665 else
6666 CPLUSPLUS_TRUE='#'
6667 CPLUSPLUS_FALSE=
6668 fi
6669
6670
6671
6672
6673
6674
6675 # Configuration of shared libraries
6676 #
6677 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6678 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6679 # Check whether --enable-shared or --disable-shared was given.
6680 if test "${enable_shared+set}" = set; then
6681 enableval="$enable_shared"
6682 p=${PACKAGE-default}
6683 case $enableval in
6684 yes) enable_shared=yes ;;
6685 no) enable_shared=no ;;
6686 *)
6687 enable_shared=no
6688 # Look at the argument we got. We use all the common list separators.
6689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6690 for pkg in $enableval; do
6691 if test "X$pkg" = "X$p"; then
6692 enable_shared=yes
6693 fi
6694 done
6695 IFS="$ac_save_ifs"
6696 ;;
6697 esac
6698 else
6699 enable_shared=yes
6700 fi;
6701
6702 case "$host" in
6703 alpha-*-openbsd*)
6704 enable_shared=no
6705 echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6
6707 ;;
6708 *)
6709 echo "$as_me:$LINENO: result: yes" >&5
6710 echo "${ECHO_T}yes" >&6
6711 ;;
6712 esac
6713
6714 # Checks for pthreads functions
6715 #
6716 oldLIBS="$LIBS"
6717 LIBS="$LIBS $THREADLIBS"
6718
6719 for ac_func in pthread_getattr_np
6720 do
6721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6722 echo "$as_me:$LINENO: checking for $ac_func" >&5
6723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6724 if eval "test \"\${$as_ac_var+set}\" = set"; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727 if test x$gcc_no_link = xyes; then
6728 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6729 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6730 { (exit 1); exit 1; }; }
6731 fi
6732 cat >conftest.$ac_ext <<_ACEOF
6733 /* confdefs.h. */
6734 _ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6740 #define $ac_func innocuous_$ac_func
6741
6742 /* System header to define __stub macros and hopefully few prototypes,
6743 which can conflict with char $ac_func (); below.
6744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6745 <limits.h> exists even on freestanding compilers. */
6746
6747 #ifdef __STDC__
6748 # include <limits.h>
6749 #else
6750 # include <assert.h>
6751 #endif
6752
6753 #undef $ac_func
6754
6755 /* Override any gcc2 internal prototype to avoid an error. */
6756 #ifdef __cplusplus
6757 extern "C"
6758 {
6759 #endif
6760 /* We use char because int might match the return type of a gcc2
6761 builtin and then its argument prototype would still apply. */
6762 char $ac_func ();
6763 /* The GNU C library defines this for functions which it implements
6764 to always fail with ENOSYS. Some functions are actually named
6765 something starting with __ and the normal name is an alias. */
6766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6767 choke me
6768 #else
6769 char (*f) () = $ac_func;
6770 #endif
6771 #ifdef __cplusplus
6772 }
6773 #endif
6774
6775 int
6776 main ()
6777 {
6778 return f != $ac_func;
6779 ;
6780 return 0;
6781 }
6782 _ACEOF
6783 rm -f conftest.$ac_objext conftest$ac_exeext
6784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6785 (eval $ac_link) 2>conftest.er1
6786 ac_status=$?
6787 grep -v '^ *+' conftest.er1 >conftest.err
6788 rm -f conftest.er1
6789 cat conftest.err >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } &&
6792 { ac_try='test -z "$ac_c_werror_flag"
6793 || test ! -s conftest.err'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 (eval $ac_try) 2>&5
6796 ac_status=$?
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; } &&
6799 { ac_try='test -s conftest$ac_exeext'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 eval "$as_ac_var=yes"
6806 else
6807 echo "$as_me: failed program was:" >&5
6808 sed 's/^/| /' conftest.$ac_ext >&5
6809
6810 eval "$as_ac_var=no"
6811 fi
6812 rm -f conftest.err conftest.$ac_objext \
6813 conftest$ac_exeext conftest.$ac_ext
6814 fi
6815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6817 if test `eval echo '${'$as_ac_var'}'` = yes; then
6818 cat >>confdefs.h <<_ACEOF
6819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6820 _ACEOF
6821
6822 fi
6823 done
6824
6825 LIBS="$oldLIBS"
6826
6827 # Configuration of machine-dependent code
6828 #
6829 # We don't set NO_EXECUTE_PERMISSION by default because gcj (and
6830 # anything else that creates trampolines in gc-allocated memory)
6831 # always needs exec permission. The exceptions to this are IA-64 and
6832 # some variations of Power PC, where trampolines don't contain
6833 # executable code.
6834 #
6835 echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
6836 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
6837 machdep=
6838 case "$host" in
6839 alpha*-*-openbsd*)
6840 machdep="alpha_mach_dep.lo"
6841 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
6842 { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
6843 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
6844 fi
6845 ;;
6846 alpha*-*-linux*)
6847 machdep="alpha_mach_dep.lo"
6848 ;;
6849 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
6850
6851 cat >>confdefs.h <<\_ACEOF
6852 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
6853 _ACEOF
6854
6855 ;;
6856 mipstx39-*-elf*)
6857 machdep="mips_ultrix_mach_dep.lo"
6858
6859 cat >>confdefs.h <<\_ACEOF
6860 #define STACKBASE __stackbase
6861 _ACEOF
6862
6863
6864 cat >>confdefs.h <<\_ACEOF
6865 #define DATASTART_IS_ETEXT 1
6866 _ACEOF
6867
6868 ;;
6869 mips-dec-ultrix*)
6870 machdep="mips_ultrix_mach-dep.lo"
6871 ;;
6872 mips-nec-sysv*|mips-unknown-sysv*)
6873 ;;
6874 mips*-*-linux*)
6875 ;;
6876 mips-*-*)
6877 machdep="mips_sgi_mach_dep.lo"
6878 ;;
6879 sparc-*-netbsd*)
6880 machdep="sparc_netbsd_mach_dep.lo"
6881 ;;
6882 sparc-sun-solaris2.3)
6883 machdep="sparc_mach_dep.lo"
6884
6885 cat >>confdefs.h <<\_ACEOF
6886 #define SUNOS53_SHARED_LIB 1
6887 _ACEOF
6888
6889 ;;
6890 sparc*-sun-solaris2.*)
6891 machdep="sparc_mach_dep.lo"
6892 ;;
6893 ia64-*-*)
6894
6895 cat >>confdefs.h <<\_ACEOF
6896 #define NO_EXECUTE_PERMISSION 1
6897 _ACEOF
6898
6899 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
6900 ;;
6901 esac
6902 if test x"$machdep" = x; then
6903 echo "$as_me:$LINENO: result: $machdep" >&5
6904 echo "${ECHO_T}$machdep" >&6
6905 machdep="mach_dep.lo"
6906 fi
6907 addobjs="$addobjs $machdep"
6908
6909
6910
6911
6912
6913 #
6914 # Check for AViiON Machines running DGUX
6915 #
6916 echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
6917 echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
6918 ac_is_dgux=no
6919 ac_ext=c
6920 ac_cpp='$CPP $CPPFLAGS'
6921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6924 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6925 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6926 # On Suns, sometimes $CPP names a directory.
6927 if test -n "$CPP" && test -d "$CPP"; then
6928 CPP=
6929 fi
6930 if test -z "$CPP"; then
6931 if test "${ac_cv_prog_CPP+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934 # Double quotes because CPP needs to be expanded
6935 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6936 do
6937 ac_preproc_ok=false
6938 for ac_c_preproc_warn_flag in '' yes
6939 do
6940 # Use a header file that comes with gcc, so configuring glibc
6941 # with a fresh cross-compiler works.
6942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6943 # <limits.h> exists even on freestanding compilers.
6944 # On the NeXT, cc -E runs the code through the compiler's parser,
6945 # not just through cpp. "Syntax error" is here to catch this case.
6946 cat >conftest.$ac_ext <<_ACEOF
6947 /* confdefs.h. */
6948 _ACEOF
6949 cat confdefs.h >>conftest.$ac_ext
6950 cat >>conftest.$ac_ext <<_ACEOF
6951 /* end confdefs.h. */
6952 #ifdef __STDC__
6953 # include <limits.h>
6954 #else
6955 # include <assert.h>
6956 #endif
6957 Syntax error
6958 _ACEOF
6959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6961 ac_status=$?
6962 grep -v '^ *+' conftest.er1 >conftest.err
6963 rm -f conftest.er1
6964 cat conftest.err >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } >/dev/null; then
6967 if test -s conftest.err; then
6968 ac_cpp_err=$ac_c_preproc_warn_flag
6969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6970 else
6971 ac_cpp_err=
6972 fi
6973 else
6974 ac_cpp_err=yes
6975 fi
6976 if test -z "$ac_cpp_err"; then
6977 :
6978 else
6979 echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6981
6982 # Broken: fails on valid input.
6983 continue
6984 fi
6985 rm -f conftest.err conftest.$ac_ext
6986
6987 # OK, works on sane cases. Now check whether non-existent headers
6988 # can be detected and how.
6989 cat >conftest.$ac_ext <<_ACEOF
6990 /* confdefs.h. */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6995 #include <ac_nonexistent.h>
6996 _ACEOF
6997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6999 ac_status=$?
7000 grep -v '^ *+' conftest.er1 >conftest.err
7001 rm -f conftest.er1
7002 cat conftest.err >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } >/dev/null; then
7005 if test -s conftest.err; then
7006 ac_cpp_err=$ac_c_preproc_warn_flag
7007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7008 else
7009 ac_cpp_err=
7010 fi
7011 else
7012 ac_cpp_err=yes
7013 fi
7014 if test -z "$ac_cpp_err"; then
7015 # Broken: success on invalid input.
7016 continue
7017 else
7018 echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7020
7021 # Passes both tests.
7022 ac_preproc_ok=:
7023 break
7024 fi
7025 rm -f conftest.err conftest.$ac_ext
7026
7027 done
7028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7029 rm -f conftest.err conftest.$ac_ext
7030 if $ac_preproc_ok; then
7031 break
7032 fi
7033
7034 done
7035 ac_cv_prog_CPP=$CPP
7036
7037 fi
7038 CPP=$ac_cv_prog_CPP
7039 else
7040 ac_cv_prog_CPP=$CPP
7041 fi
7042 echo "$as_me:$LINENO: result: $CPP" >&5
7043 echo "${ECHO_T}$CPP" >&6
7044 ac_preproc_ok=false
7045 for ac_c_preproc_warn_flag in '' yes
7046 do
7047 # Use a header file that comes with gcc, so configuring glibc
7048 # with a fresh cross-compiler works.
7049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7050 # <limits.h> exists even on freestanding compilers.
7051 # On the NeXT, cc -E runs the code through the compiler's parser,
7052 # not just through cpp. "Syntax error" is here to catch this case.
7053 cat >conftest.$ac_ext <<_ACEOF
7054 /* confdefs.h. */
7055 _ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7059 #ifdef __STDC__
7060 # include <limits.h>
7061 #else
7062 # include <assert.h>
7063 #endif
7064 Syntax error
7065 _ACEOF
7066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } >/dev/null; then
7074 if test -s conftest.err; then
7075 ac_cpp_err=$ac_c_preproc_warn_flag
7076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7077 else
7078 ac_cpp_err=
7079 fi
7080 else
7081 ac_cpp_err=yes
7082 fi
7083 if test -z "$ac_cpp_err"; then
7084 :
7085 else
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7088
7089 # Broken: fails on valid input.
7090 continue
7091 fi
7092 rm -f conftest.err conftest.$ac_ext
7093
7094 # OK, works on sane cases. Now check whether non-existent headers
7095 # can be detected and how.
7096 cat >conftest.$ac_ext <<_ACEOF
7097 /* confdefs.h. */
7098 _ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7102 #include <ac_nonexistent.h>
7103 _ACEOF
7104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7106 ac_status=$?
7107 grep -v '^ *+' conftest.er1 >conftest.err
7108 rm -f conftest.er1
7109 cat conftest.err >&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); } >/dev/null; then
7112 if test -s conftest.err; then
7113 ac_cpp_err=$ac_c_preproc_warn_flag
7114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7115 else
7116 ac_cpp_err=
7117 fi
7118 else
7119 ac_cpp_err=yes
7120 fi
7121 if test -z "$ac_cpp_err"; then
7122 # Broken: success on invalid input.
7123 continue
7124 else
7125 echo "$as_me: failed program was:" >&5
7126 sed 's/^/| /' conftest.$ac_ext >&5
7127
7128 # Passes both tests.
7129 ac_preproc_ok=:
7130 break
7131 fi
7132 rm -f conftest.err conftest.$ac_ext
7133
7134 done
7135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7136 rm -f conftest.err conftest.$ac_ext
7137 if $ac_preproc_ok; then
7138 :
7139 else
7140 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7141 See \`config.log' for more details." >&5
7142 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7143 See \`config.log' for more details." >&2;}
7144 { (exit 1); exit 1; }; }
7145 fi
7146
7147 ac_ext=c
7148 ac_cpp='$CPP $CPPFLAGS'
7149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7152
7153
7154 echo "$as_me:$LINENO: checking for egrep" >&5
7155 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7156 if test "${ac_cv_prog_egrep+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7160 then ac_cv_prog_egrep='grep -E'
7161 else ac_cv_prog_egrep='egrep'
7162 fi
7163 fi
7164 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7165 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7166 EGREP=$ac_cv_prog_egrep
7167
7168
7169 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7170 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7171 if test "${ac_cv_header_stdc+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174 cat >conftest.$ac_ext <<_ACEOF
7175 /* confdefs.h. */
7176 _ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 #include <stdlib.h>
7181 #include <stdarg.h>
7182 #include <string.h>
7183 #include <float.h>
7184
7185 int
7186 main ()
7187 {
7188
7189 ;
7190 return 0;
7191 }
7192 _ACEOF
7193 rm -f conftest.$ac_objext
7194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7195 (eval $ac_compile) 2>conftest.er1
7196 ac_status=$?
7197 grep -v '^ *+' conftest.er1 >conftest.err
7198 rm -f conftest.er1
7199 cat conftest.err >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } &&
7202 { ac_try='test -z "$ac_c_werror_flag"
7203 || test ! -s conftest.err'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 (eval $ac_try) 2>&5
7206 ac_status=$?
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; } &&
7209 { ac_try='test -s conftest.$ac_objext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 (eval $ac_try) 2>&5
7212 ac_status=$?
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 ac_cv_header_stdc=yes
7216 else
7217 echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7219
7220 ac_cv_header_stdc=no
7221 fi
7222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7223
7224 if test $ac_cv_header_stdc = yes; then
7225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7226 cat >conftest.$ac_ext <<_ACEOF
7227 /* confdefs.h. */
7228 _ACEOF
7229 cat confdefs.h >>conftest.$ac_ext
7230 cat >>conftest.$ac_ext <<_ACEOF
7231 /* end confdefs.h. */
7232 #include <string.h>
7233
7234 _ACEOF
7235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7236 $EGREP "memchr" >/dev/null 2>&1; then
7237 :
7238 else
7239 ac_cv_header_stdc=no
7240 fi
7241 rm -f conftest*
7242
7243 fi
7244
7245 if test $ac_cv_header_stdc = yes; then
7246 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7247 cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h. */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 #include <stdlib.h>
7254
7255 _ACEOF
7256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7257 $EGREP "free" >/dev/null 2>&1; then
7258 :
7259 else
7260 ac_cv_header_stdc=no
7261 fi
7262 rm -f conftest*
7263
7264 fi
7265
7266 if test $ac_cv_header_stdc = yes; then
7267 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7268 if test "$cross_compiling" = yes; then
7269 :
7270 else
7271 cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h. */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277 #include <ctype.h>
7278 #if ((' ' & 0x0FF) == 0x020)
7279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7281 #else
7282 # define ISLOWER(c) \
7283 (('a' <= (c) && (c) <= 'i') \
7284 || ('j' <= (c) && (c) <= 'r') \
7285 || ('s' <= (c) && (c) <= 'z'))
7286 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7287 #endif
7288
7289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7290 int
7291 main ()
7292 {
7293 int i;
7294 for (i = 0; i < 256; i++)
7295 if (XOR (islower (i), ISLOWER (i))
7296 || toupper (i) != TOUPPER (i))
7297 exit(2);
7298 exit (0);
7299 }
7300 _ACEOF
7301 rm -f conftest$ac_exeext
7302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7303 (eval $ac_link) 2>&5
7304 ac_status=$?
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308 (eval $ac_try) 2>&5
7309 ac_status=$?
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); }; }; then
7312 :
7313 else
7314 echo "$as_me: program exited with status $ac_status" >&5
7315 echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7317
7318 ( exit $ac_status )
7319 ac_cv_header_stdc=no
7320 fi
7321 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7322 fi
7323 fi
7324 fi
7325 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7326 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7327 if test $ac_cv_header_stdc = yes; then
7328
7329 cat >>confdefs.h <<\_ACEOF
7330 #define STDC_HEADERS 1
7331 _ACEOF
7332
7333 fi
7334
7335 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7346 inttypes.h stdint.h unistd.h
7347 do
7348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7349 echo "$as_me:$LINENO: checking for $ac_header" >&5
7350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 else
7354 cat >conftest.$ac_ext <<_ACEOF
7355 /* confdefs.h. */
7356 _ACEOF
7357 cat confdefs.h >>conftest.$ac_ext
7358 cat >>conftest.$ac_ext <<_ACEOF
7359 /* end confdefs.h. */
7360 $ac_includes_default
7361
7362 #include <$ac_header>
7363 _ACEOF
7364 rm -f conftest.$ac_objext
7365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7366 (eval $ac_compile) 2>conftest.er1
7367 ac_status=$?
7368 grep -v '^ *+' conftest.er1 >conftest.err
7369 rm -f conftest.er1
7370 cat conftest.err >&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); } &&
7373 { ac_try='test -z "$ac_c_werror_flag"
7374 || test ! -s conftest.err'
7375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7376 (eval $ac_try) 2>&5
7377 ac_status=$?
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); }; } &&
7380 { ac_try='test -s conftest.$ac_objext'
7381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382 (eval $ac_try) 2>&5
7383 ac_status=$?
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; }; then
7386 eval "$as_ac_Header=yes"
7387 else
7388 echo "$as_me: failed program was:" >&5
7389 sed 's/^/| /' conftest.$ac_ext >&5
7390
7391 eval "$as_ac_Header=no"
7392 fi
7393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7394 fi
7395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7398 cat >>confdefs.h <<_ACEOF
7399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7400 _ACEOF
7401
7402 fi
7403
7404 done
7405
7406
7407 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
7408 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
7409 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
7410 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 fi
7413 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
7414 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
7415 else
7416 # Is the header compilable?
7417 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
7418 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
7419 cat >conftest.$ac_ext <<_ACEOF
7420 /* confdefs.h. */
7421 _ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7425 $ac_includes_default
7426 #include <sys/dg_sys_info.h>
7427 _ACEOF
7428 rm -f conftest.$ac_objext
7429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7430 (eval $ac_compile) 2>conftest.er1
7431 ac_status=$?
7432 grep -v '^ *+' conftest.er1 >conftest.err
7433 rm -f conftest.er1
7434 cat conftest.err >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } &&
7437 { ac_try='test -z "$ac_c_werror_flag"
7438 || test ! -s conftest.err'
7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440 (eval $ac_try) 2>&5
7441 ac_status=$?
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; } &&
7444 { ac_try='test -s conftest.$ac_objext'
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446 (eval $ac_try) 2>&5
7447 ac_status=$?
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; }; then
7450 ac_header_compiler=yes
7451 else
7452 echo "$as_me: failed program was:" >&5
7453 sed 's/^/| /' conftest.$ac_ext >&5
7454
7455 ac_header_compiler=no
7456 fi
7457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7459 echo "${ECHO_T}$ac_header_compiler" >&6
7460
7461 # Is the header present?
7462 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
7463 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
7464 cat >conftest.$ac_ext <<_ACEOF
7465 /* confdefs.h. */
7466 _ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h. */
7470 #include <sys/dg_sys_info.h>
7471 _ACEOF
7472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7474 ac_status=$?
7475 grep -v '^ *+' conftest.er1 >conftest.err
7476 rm -f conftest.er1
7477 cat conftest.err >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } >/dev/null; then
7480 if test -s conftest.err; then
7481 ac_cpp_err=$ac_c_preproc_warn_flag
7482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7483 else
7484 ac_cpp_err=
7485 fi
7486 else
7487 ac_cpp_err=yes
7488 fi
7489 if test -z "$ac_cpp_err"; then
7490 ac_header_preproc=yes
7491 else
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7494
7495 ac_header_preproc=no
7496 fi
7497 rm -f conftest.err conftest.$ac_ext
7498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7499 echo "${ECHO_T}$ac_header_preproc" >&6
7500
7501 # So? What about this header?
7502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7503 yes:no: )
7504 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
7505 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7506 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
7507 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
7508 ac_header_preproc=yes
7509 ;;
7510 no:yes:* )
7511 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
7512 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
7513 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
7514 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
7515 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
7516 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
7517 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
7518 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
7519 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
7520 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
7521 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
7522 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
7523 (
7524 cat <<\_ASBOX
7525 ## ------------------------------------------ ##
7526 ## Report this to the AC_PACKAGE_NAME lists. ##
7527 ## ------------------------------------------ ##
7528 _ASBOX
7529 ) |
7530 sed "s/^/$as_me: WARNING: /" >&2
7531 ;;
7532 esac
7533 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
7534 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
7535 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 else
7538 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
7539 fi
7540 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
7541 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
7542
7543 fi
7544 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
7545 ac_is_dgux=yes;
7546 fi
7547
7548
7549
7550 echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
7551 echo "${ECHO_T}$ac_is_dgux" >&6
7552 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
7553 if test $ac_is_dgux = yes; then
7554 if test "$enable_full_debug" = "yes"; then
7555 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
7556 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
7557 else
7558 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
7559 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
7560 fi
7561
7562
7563 fi
7564
7565 echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
7566 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
7567 case "$host" in
7568 *aix*)
7569 if test "$GCC" = yes; then
7570 echo "$as_me:$LINENO: result: yes" >&5
7571 echo "${ECHO_T}yes" >&6
7572 new_CFLAGS=
7573 for i in $CFLAGS; do
7574 case "$i" in
7575 -O*)
7576 ;;
7577 *)
7578 new_CFLAGS="$new_CFLAGS $i"
7579 ;;
7580 esac
7581 done
7582 CFLAGS="$new_CFLAGS"
7583 else
7584 echo "$as_me:$LINENO: result: no" >&5
7585 echo "${ECHO_T}no" >&6
7586 fi
7587 ;;
7588 *) echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6 ;;
7590 esac
7591
7592 MY_CFLAGS="$CFLAGS"
7593
7594
7595
7596 cat >>confdefs.h <<\_ACEOF
7597 #define SILENT 1
7598 _ACEOF
7599
7600
7601 cat >>confdefs.h <<\_ACEOF
7602 #define NO_SIGNALS 1
7603 _ACEOF
7604
7605
7606 cat >>confdefs.h <<\_ACEOF
7607 #define ALL_INTERIOR_POINTERS 1
7608 _ACEOF
7609
7610
7611
7612 cat >>confdefs.h <<\_ACEOF
7613 #define JAVA_FINALIZATION 1
7614 _ACEOF
7615
7616
7617 cat >>confdefs.h <<\_ACEOF
7618 #define GC_GCJ_SUPPORT 1
7619 _ACEOF
7620
7621
7622 cat >>confdefs.h <<\_ACEOF
7623 #define ATOMIC_UNCOLLECTABLE 1
7624 _ACEOF
7625
7626
7627 # Check whether --enable-gc-debug or --disable-gc-debug was given.
7628 if test "${enable_gc_debug+set}" = set; then
7629 enableval="$enable_gc_debug"
7630 if test "$enable_gc_debug" = "yes"; then
7631 { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
7632 echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
7633
7634 cat >>confdefs.h <<\_ACEOF
7635 #define KEEP_BACK_PTRS 1
7636 _ACEOF
7637
7638
7639 cat >>confdefs.h <<\_ACEOF
7640 #define DBG_HDRS_ALL 1
7641 _ACEOF
7642
7643 case $host in
7644 ia64-*-linux* )
7645
7646 cat >>confdefs.h <<\_ACEOF
7647 #define MAKE_BACK_GRAPH 1
7648 _ACEOF
7649
7650 ;;
7651 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
7652 cat >>confdefs.h <<\_ACEOF
7653 #define MAKE_BACK_GRAPH 1
7654 _ACEOF
7655
7656 { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
7657 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
7658
7659 cat >>confdefs.h <<\_ACEOF
7660 #define SAVE_CALL_COUNT 8
7661 _ACEOF
7662
7663 ;;
7664 i345686-*-dgux*)
7665 cat >>confdefs.h <<\_ACEOF
7666 #define MAKE_BACK_GRAPH 1
7667 _ACEOF
7668
7669 ;;
7670 esac
7671 fi
7672 fi;
7673
7674 if test "${gc_use_mmap}" = "yes"; then
7675
7676 cat >>confdefs.h <<\_ACEOF
7677 #define USE_MMAP 1
7678 _ACEOF
7679
7680 fi
7681
7682 if test -n "$with_cross_host" &&
7683 test x"$with_cross_host" != x"no"; then
7684 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
7685 toolexeclibdir='$(toolexecdir)/lib'
7686 else
7687 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
7688 toolexeclibdir='$(libdir)'
7689 fi
7690 multi_os_directory=`$CC -print-multi-os-directory`
7691 case $multi_os_directory in
7692 .) ;; # Avoid trailing /.
7693 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
7694 esac
7695
7696
7697
7698 if test "${multilib}" = "yes"; then
7699 multilib_arg="--enable-multilib"
7700 else
7701 multilib_arg=
7702 fi
7703
7704 ac_config_headers="$ac_config_headers include/gc_config.h include/gc_ext_config.h"
7705
7706
7707 ac_config_files="$ac_config_files Makefile include/Makefile"
7708
7709 cat >confcache <<\_ACEOF
7710 # This file is a shell script that caches the results of configure
7711 # tests run on this system so they can be shared between configure
7712 # scripts and configure runs, see configure's option --config-cache.
7713 # It is not useful on other systems. If it contains results you don't
7714 # want to keep, you may remove or edit it.
7715 #
7716 # config.status only pays attention to the cache file if you give it
7717 # the --recheck option to rerun configure.
7718 #
7719 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7720 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7721 # following values.
7722
7723 _ACEOF
7724
7725 # The following way of writing the cache mishandles newlines in values,
7726 # but we know of no workaround that is simple, portable, and efficient.
7727 # So, don't put newlines in cache variables' values.
7728 # Ultrix sh set writes to stderr and can't be redirected directly,
7729 # and sets the high bit in the cache file unless we assign to the vars.
7730 {
7731 (set) 2>&1 |
7732 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7733 *ac_space=\ *)
7734 # `set' does not quote correctly, so add quotes (double-quote
7735 # substitution turns \\\\ into \\, and sed turns \\ into \).
7736 sed -n \
7737 "s/'/'\\\\''/g;
7738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7739 ;;
7740 *)
7741 # `set' quotes correctly as required by POSIX, so do not add quotes.
7742 sed -n \
7743 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7744 ;;
7745 esac;
7746 } |
7747 sed '
7748 t clear
7749 : clear
7750 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7751 t end
7752 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7753 : end' >>confcache
7754 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7755 if test -w $cache_file; then
7756 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7757 cat confcache >$cache_file
7758 else
7759 echo "not updating unwritable cache $cache_file"
7760 fi
7761 fi
7762 rm -f confcache
7763
7764 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7765 # Let make expand exec_prefix.
7766 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7767
7768 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7769 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7770 # trailing colons and then remove the whole line if VPATH becomes empty
7771 # (actually we leave an empty line to preserve line numbers).
7772 if test "x$srcdir" = x.; then
7773 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7774 s/:*\$(srcdir):*/:/;
7775 s/:*\${srcdir}:*/:/;
7776 s/:*@srcdir@:*/:/;
7777 s/^\([^=]*=[ ]*\):*/\1/;
7778 s/:*$//;
7779 s/^[^=]*=[ ]*$//;
7780 }'
7781 fi
7782
7783 DEFS=-DHAVE_CONFIG_H
7784
7785 ac_libobjs=
7786 ac_ltlibobjs=
7787 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7788 # 1. Remove the extension, and $U if already installed.
7789 ac_i=`echo "$ac_i" |
7790 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7791 # 2. Add them.
7792 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7793 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7794 done
7795 LIBOBJS=$ac_libobjs
7796
7797 LTLIBOBJS=$ac_ltlibobjs
7798
7799
7800 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7801 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7802 Usually this means the macro was only invoked conditionally." >&5
7803 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7804 Usually this means the macro was only invoked conditionally." >&2;}
7805 { (exit 1); exit 1; }; }
7806 fi
7807 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7808 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7809 Usually this means the macro was only invoked conditionally." >&5
7810 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7811 Usually this means the macro was only invoked conditionally." >&2;}
7812 { (exit 1); exit 1; }; }
7813 fi
7814 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7815 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
7816 Usually this means the macro was only invoked conditionally." >&5
7817 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
7818 Usually this means the macro was only invoked conditionally." >&2;}
7819 { (exit 1); exit 1; }; }
7820 fi
7821 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7822 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7823 Usually this means the macro was only invoked conditionally." >&5
7824 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7825 Usually this means the macro was only invoked conditionally." >&2;}
7826 { (exit 1); exit 1; }; }
7827 fi
7828 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
7829 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
7830 Usually this means the macro was only invoked conditionally." >&5
7831 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
7832 Usually this means the macro was only invoked conditionally." >&2;}
7833 { (exit 1); exit 1; }; }
7834 fi
7835 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
7836 { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
7837 Usually this means the macro was only invoked conditionally." >&5
7838 echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
7839 Usually this means the macro was only invoked conditionally." >&2;}
7840 { (exit 1); exit 1; }; }
7841 fi
7842
7843 : ${CONFIG_STATUS=./config.status}
7844 ac_clean_files_save=$ac_clean_files
7845 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7846 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7847 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7848 cat >$CONFIG_STATUS <<_ACEOF
7849 #! $SHELL
7850 # Generated by $as_me.
7851 # Run this file to recreate the current configuration.
7852 # Compiler output produced by configure, useful for debugging
7853 # configure, is in config.log if it exists.
7854
7855 debug=false
7856 ac_cs_recheck=false
7857 ac_cs_silent=false
7858 SHELL=\${CONFIG_SHELL-$SHELL}
7859 _ACEOF
7860
7861 cat >>$CONFIG_STATUS <<\_ACEOF
7862 ## --------------------- ##
7863 ## M4sh Initialization. ##
7864 ## --------------------- ##
7865
7866 # Be Bourne compatible
7867 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7868 emulate sh
7869 NULLCMD=:
7870 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7871 # is contrary to our usage. Disable this feature.
7872 alias -g '${1+"$@"}'='"$@"'
7873 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7874 set -o posix
7875 fi
7876 DUALCASE=1; export DUALCASE # for MKS sh
7877
7878 # Support unset when possible.
7879 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7880 as_unset=unset
7881 else
7882 as_unset=false
7883 fi
7884
7885
7886 # Work around bugs in pre-3.0 UWIN ksh.
7887 $as_unset ENV MAIL MAILPATH
7888 PS1='$ '
7889 PS2='> '
7890 PS4='+ '
7891
7892 # NLS nuisances.
7893 for as_var in \
7894 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7895 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7896 LC_TELEPHONE LC_TIME
7897 do
7898 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7899 eval $as_var=C; export $as_var
7900 else
7901 $as_unset $as_var
7902 fi
7903 done
7904
7905 # Required to use basename.
7906 if expr a : '\(a\)' >/dev/null 2>&1; then
7907 as_expr=expr
7908 else
7909 as_expr=false
7910 fi
7911
7912 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7913 as_basename=basename
7914 else
7915 as_basename=false
7916 fi
7917
7918
7919 # Name of the executable.
7920 as_me=`$as_basename "$0" ||
7921 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7922 X"$0" : 'X\(//\)$' \| \
7923 X"$0" : 'X\(/\)$' \| \
7924 . : '\(.\)' 2>/dev/null ||
7925 echo X/"$0" |
7926 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7927 /^X\/\(\/\/\)$/{ s//\1/; q; }
7928 /^X\/\(\/\).*/{ s//\1/; q; }
7929 s/.*/./; q'`
7930
7931
7932 # PATH needs CR, and LINENO needs CR and PATH.
7933 # Avoid depending upon Character Ranges.
7934 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7935 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7936 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7937 as_cr_digits='0123456789'
7938 as_cr_alnum=$as_cr_Letters$as_cr_digits
7939
7940 # The user is always right.
7941 if test "${PATH_SEPARATOR+set}" != set; then
7942 echo "#! /bin/sh" >conf$$.sh
7943 echo "exit 0" >>conf$$.sh
7944 chmod +x conf$$.sh
7945 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7946 PATH_SEPARATOR=';'
7947 else
7948 PATH_SEPARATOR=:
7949 fi
7950 rm -f conf$$.sh
7951 fi
7952
7953
7954 as_lineno_1=$LINENO
7955 as_lineno_2=$LINENO
7956 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7957 test "x$as_lineno_1" != "x$as_lineno_2" &&
7958 test "x$as_lineno_3" = "x$as_lineno_2" || {
7959 # Find who we are. Look in the path if we contain no path at all
7960 # relative or not.
7961 case $0 in
7962 *[\\/]* ) as_myself=$0 ;;
7963 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 for as_dir in $PATH
7965 do
7966 IFS=$as_save_IFS
7967 test -z "$as_dir" && as_dir=.
7968 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7969 done
7970
7971 ;;
7972 esac
7973 # We did not find ourselves, most probably we were run as `sh COMMAND'
7974 # in which case we are not to be found in the path.
7975 if test "x$as_myself" = x; then
7976 as_myself=$0
7977 fi
7978 if test ! -f "$as_myself"; then
7979 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7980 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7981 { (exit 1); exit 1; }; }
7982 fi
7983 case $CONFIG_SHELL in
7984 '')
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7987 do
7988 IFS=$as_save_IFS
7989 test -z "$as_dir" && as_dir=.
7990 for as_base in sh bash ksh sh5; do
7991 case $as_dir in
7992 /*)
7993 if ("$as_dir/$as_base" -c '
7994 as_lineno_1=$LINENO
7995 as_lineno_2=$LINENO
7996 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7997 test "x$as_lineno_1" != "x$as_lineno_2" &&
7998 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7999 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8000 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8001 CONFIG_SHELL=$as_dir/$as_base
8002 export CONFIG_SHELL
8003 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8004 fi;;
8005 esac
8006 done
8007 done
8008 ;;
8009 esac
8010
8011 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8012 # uniformly replaced by the line number. The first 'sed' inserts a
8013 # line-number line before each line; the second 'sed' does the real
8014 # work. The second script uses 'N' to pair each line-number line
8015 # with the numbered line, and appends trailing '-' during
8016 # substitution so that $LINENO is not a special case at line end.
8017 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8018 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8019 sed '=' <$as_myself |
8020 sed '
8021 N
8022 s,$,-,
8023 : loop
8024 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8025 t loop
8026 s,-$,,
8027 s,^['$as_cr_digits']*\n,,
8028 ' >$as_me.lineno &&
8029 chmod +x $as_me.lineno ||
8030 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8031 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8032 { (exit 1); exit 1; }; }
8033
8034 # Don't try to exec as it changes $[0], causing all sort of problems
8035 # (the dirname of $[0] is not the place where we might find the
8036 # original and so on. Autoconf is especially sensible to this).
8037 . ./$as_me.lineno
8038 # Exit status is that of the last command.
8039 exit
8040 }
8041
8042
8043 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8044 *c*,-n*) ECHO_N= ECHO_C='
8045 ' ECHO_T=' ' ;;
8046 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8047 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8048 esac
8049
8050 if expr a : '\(a\)' >/dev/null 2>&1; then
8051 as_expr=expr
8052 else
8053 as_expr=false
8054 fi
8055
8056 rm -f conf$$ conf$$.exe conf$$.file
8057 echo >conf$$.file
8058 if ln -s conf$$.file conf$$ 2>/dev/null; then
8059 # We could just check for DJGPP; but this test a) works b) is more generic
8060 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8061 if test -f conf$$.exe; then
8062 # Don't use ln at all; we don't have any links
8063 as_ln_s='cp -p'
8064 else
8065 as_ln_s='ln -s'
8066 fi
8067 elif ln conf$$.file conf$$ 2>/dev/null; then
8068 as_ln_s=ln
8069 else
8070 as_ln_s='cp -p'
8071 fi
8072 rm -f conf$$ conf$$.exe conf$$.file
8073
8074 if mkdir -p . 2>/dev/null; then
8075 as_mkdir_p=:
8076 else
8077 test -d ./-p && rmdir ./-p
8078 as_mkdir_p=false
8079 fi
8080
8081 as_executable_p="test -f"
8082
8083 # Sed expression to map a string onto a valid CPP name.
8084 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8085
8086 # Sed expression to map a string onto a valid variable name.
8087 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8088
8089
8090 # IFS
8091 # We need space, tab and new line, in precisely that order.
8092 as_nl='
8093 '
8094 IFS=" $as_nl"
8095
8096 # CDPATH.
8097 $as_unset CDPATH
8098
8099 exec 6>&1
8100
8101 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8102 # report actual input values of CONFIG_FILES etc. instead of their
8103 # values after options handling. Logging --version etc. is OK.
8104 exec 5>>config.log
8105 {
8106 echo
8107 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8108 ## Running $as_me. ##
8109 _ASBOX
8110 } >&5
8111 cat >&5 <<_CSEOF
8112
8113 This file was extended by $as_me, which was
8114 generated by GNU Autoconf 2.59. Invocation command line was
8115
8116 CONFIG_FILES = $CONFIG_FILES
8117 CONFIG_HEADERS = $CONFIG_HEADERS
8118 CONFIG_LINKS = $CONFIG_LINKS
8119 CONFIG_COMMANDS = $CONFIG_COMMANDS
8120 $ $0 $@
8121
8122 _CSEOF
8123 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8124 echo >&5
8125 _ACEOF
8126
8127 # Files that config.status was made for.
8128 if test -n "$ac_config_files"; then
8129 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8130 fi
8131
8132 if test -n "$ac_config_headers"; then
8133 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8134 fi
8135
8136 if test -n "$ac_config_links"; then
8137 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8138 fi
8139
8140 if test -n "$ac_config_commands"; then
8141 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8142 fi
8143
8144 cat >>$CONFIG_STATUS <<\_ACEOF
8145
8146 ac_cs_usage="\
8147 \`$as_me' instantiates files from templates according to the
8148 current configuration.
8149
8150 Usage: $0 [OPTIONS] [FILE]...
8151
8152 -h, --help print this help, then exit
8153 -V, --version print version number, then exit
8154 -q, --quiet do not print progress messages
8155 -d, --debug don't remove temporary files
8156 --recheck update $as_me by reconfiguring in the same conditions
8157 --file=FILE[:TEMPLATE]
8158 instantiate the configuration file FILE
8159 --header=FILE[:TEMPLATE]
8160 instantiate the configuration header FILE
8161
8162 Configuration files:
8163 $config_files
8164
8165 Configuration headers:
8166 $config_headers
8167
8168 Configuration commands:
8169 $config_commands
8170
8171 Report bugs to <bug-autoconf@gnu.org>."
8172 _ACEOF
8173
8174 cat >>$CONFIG_STATUS <<_ACEOF
8175 ac_cs_version="\\
8176 config.status
8177 configured by $0, generated by GNU Autoconf 2.59,
8178 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8179
8180 Copyright (C) 2003 Free Software Foundation, Inc.
8181 This config.status script is free software; the Free Software Foundation
8182 gives unlimited permission to copy, distribute and modify it."
8183 srcdir=$srcdir
8184 INSTALL="$INSTALL"
8185 _ACEOF
8186
8187 cat >>$CONFIG_STATUS <<\_ACEOF
8188 # If no file are specified by the user, then we need to provide default
8189 # value. By we need to know if files were specified by the user.
8190 ac_need_defaults=:
8191 while test $# != 0
8192 do
8193 case $1 in
8194 --*=*)
8195 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8196 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8197 ac_shift=:
8198 ;;
8199 -*)
8200 ac_option=$1
8201 ac_optarg=$2
8202 ac_shift=shift
8203 ;;
8204 *) # This is not an option, so the user has probably given explicit
8205 # arguments.
8206 ac_option=$1
8207 ac_need_defaults=false;;
8208 esac
8209
8210 case $ac_option in
8211 # Handling of the options.
8212 _ACEOF
8213 cat >>$CONFIG_STATUS <<\_ACEOF
8214 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8215 ac_cs_recheck=: ;;
8216 --version | --vers* | -V )
8217 echo "$ac_cs_version"; exit 0 ;;
8218 --he | --h)
8219 # Conflict between --help and --header
8220 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8221 Try \`$0 --help' for more information." >&5
8222 echo "$as_me: error: ambiguous option: $1
8223 Try \`$0 --help' for more information." >&2;}
8224 { (exit 1); exit 1; }; };;
8225 --help | --hel | -h )
8226 echo "$ac_cs_usage"; exit 0 ;;
8227 --debug | --d* | -d )
8228 debug=: ;;
8229 --file | --fil | --fi | --f )
8230 $ac_shift
8231 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8232 ac_need_defaults=false;;
8233 --header | --heade | --head | --hea )
8234 $ac_shift
8235 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8236 ac_need_defaults=false;;
8237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8238 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8239 ac_cs_silent=: ;;
8240
8241 # This is an error.
8242 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8243 Try \`$0 --help' for more information." >&5
8244 echo "$as_me: error: unrecognized option: $1
8245 Try \`$0 --help' for more information." >&2;}
8246 { (exit 1); exit 1; }; } ;;
8247
8248 *) ac_config_targets="$ac_config_targets $1" ;;
8249
8250 esac
8251 shift
8252 done
8253
8254 ac_configure_extra_args=
8255
8256 if $ac_cs_silent; then
8257 exec 6>/dev/null
8258 ac_configure_extra_args="$ac_configure_extra_args --silent"
8259 fi
8260
8261 _ACEOF
8262 cat >>$CONFIG_STATUS <<_ACEOF
8263 if \$ac_cs_recheck; then
8264 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8265 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8266 fi
8267
8268 _ACEOF
8269
8270 cat >>$CONFIG_STATUS <<_ACEOF
8271 #
8272 # INIT-COMMANDS section.
8273 #
8274
8275
8276 srcdir="$srcdir"
8277 host="$host"
8278 target="$target"
8279 with_multisubdir="$with_multisubdir"
8280 with_multisrctop="$with_multisrctop"
8281 with_target_subdir="$with_target_subdir"
8282 ac_configure_args="${multilib_arg} ${ac_configure_args}"
8283 multi_basedir="$multi_basedir"
8284 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
8285 CC="$CC"
8286 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8287
8288 _ACEOF
8289
8290
8291
8292 cat >>$CONFIG_STATUS <<\_ACEOF
8293 for ac_config_target in $ac_config_targets
8294 do
8295 case "$ac_config_target" in
8296 # Handling of arguments.
8297 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8298 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8299 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8300 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8301 "include/gc_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;;
8302 "include/gc_ext_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_ext_config.h" ;;
8303 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8304 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8305 { (exit 1); exit 1; }; };;
8306 esac
8307 done
8308
8309 # If the user did not use the arguments to specify the items to instantiate,
8310 # then the envvar interface is used. Set only those that are not.
8311 # We use the long form for the default assignment because of an extremely
8312 # bizarre bug on SunOS 4.1.3.
8313 if $ac_need_defaults; then
8314 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8315 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8316 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8317 fi
8318
8319 # Have a temporary directory for convenience. Make it in the build tree
8320 # simply because there is no reason to put it here, and in addition,
8321 # creating and moving files from /tmp can sometimes cause problems.
8322 # Create a temporary directory, and hook for its removal unless debugging.
8323 $debug ||
8324 {
8325 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8326 trap '{ (exit 1); exit 1; }' 1 2 13 15
8327 }
8328
8329 # Create a (secure) tmp directory for tmp files.
8330
8331 {
8332 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8333 test -n "$tmp" && test -d "$tmp"
8334 } ||
8335 {
8336 tmp=./confstat$$-$RANDOM
8337 (umask 077 && mkdir $tmp)
8338 } ||
8339 {
8340 echo "$me: cannot create a temporary directory in ." >&2
8341 { (exit 1); exit 1; }
8342 }
8343
8344 _ACEOF
8345
8346 cat >>$CONFIG_STATUS <<_ACEOF
8347
8348 #
8349 # CONFIG_FILES section.
8350 #
8351
8352 # No need to generate the scripts if there are no CONFIG_FILES.
8353 # This happens for instance when ./config.status config.h
8354 if test -n "\$CONFIG_FILES"; then
8355 # Protect against being on the right side of a sed subst in config.status.
8356 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8357 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8358 s,@SHELL@,$SHELL,;t t
8359 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8360 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8361 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8362 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8363 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8364 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8365 s,@exec_prefix@,$exec_prefix,;t t
8366 s,@prefix@,$prefix,;t t
8367 s,@program_transform_name@,$program_transform_name,;t t
8368 s,@bindir@,$bindir,;t t
8369 s,@sbindir@,$sbindir,;t t
8370 s,@libexecdir@,$libexecdir,;t t
8371 s,@datadir@,$datadir,;t t
8372 s,@sysconfdir@,$sysconfdir,;t t
8373 s,@sharedstatedir@,$sharedstatedir,;t t
8374 s,@localstatedir@,$localstatedir,;t t
8375 s,@libdir@,$libdir,;t t
8376 s,@includedir@,$includedir,;t t
8377 s,@oldincludedir@,$oldincludedir,;t t
8378 s,@infodir@,$infodir,;t t
8379 s,@mandir@,$mandir,;t t
8380 s,@build_alias@,$build_alias,;t t
8381 s,@host_alias@,$host_alias,;t t
8382 s,@target_alias@,$target_alias,;t t
8383 s,@DEFS@,$DEFS,;t t
8384 s,@ECHO_C@,$ECHO_C,;t t
8385 s,@ECHO_N@,$ECHO_N,;t t
8386 s,@ECHO_T@,$ECHO_T,;t t
8387 s,@LIBS@,$LIBS,;t t
8388 s,@multi_basedir@,$multi_basedir,;t t
8389 s,@build@,$build,;t t
8390 s,@build_cpu@,$build_cpu,;t t
8391 s,@build_vendor@,$build_vendor,;t t
8392 s,@build_os@,$build_os,;t t
8393 s,@host@,$host,;t t
8394 s,@host_cpu@,$host_cpu,;t t
8395 s,@host_vendor@,$host_vendor,;t t
8396 s,@host_os@,$host_os,;t t
8397 s,@target@,$target,;t t
8398 s,@target_cpu@,$target_cpu,;t t
8399 s,@target_vendor@,$target_vendor,;t t
8400 s,@target_os@,$target_os,;t t
8401 s,@target_noncanonical@,$target_noncanonical,;t t
8402 s,@mkinstalldirs@,$mkinstalldirs,;t t
8403 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8404 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8405 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8406 s,@CYGPATH_W@,$CYGPATH_W,;t t
8407 s,@PACKAGE@,$PACKAGE,;t t
8408 s,@VERSION@,$VERSION,;t t
8409 s,@ACLOCAL@,$ACLOCAL,;t t
8410 s,@AUTOCONF@,$AUTOCONF,;t t
8411 s,@AUTOMAKE@,$AUTOMAKE,;t t
8412 s,@AUTOHEADER@,$AUTOHEADER,;t t
8413 s,@MAKEINFO@,$MAKEINFO,;t t
8414 s,@install_sh@,$install_sh,;t t
8415 s,@STRIP@,$STRIP,;t t
8416 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8417 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8418 s,@mkdir_p@,$mkdir_p,;t t
8419 s,@AWK@,$AWK,;t t
8420 s,@SET_MAKE@,$SET_MAKE,;t t
8421 s,@am__leading_dot@,$am__leading_dot,;t t
8422 s,@AMTAR@,$AMTAR,;t t
8423 s,@am__tar@,$am__tar,;t t
8424 s,@am__untar@,$am__untar,;t t
8425 s,@CC@,$CC,;t t
8426 s,@ac_ct_CC@,$ac_ct_CC,;t t
8427 s,@EXEEXT@,$EXEEXT,;t t
8428 s,@OBJEXT@,$OBJEXT,;t t
8429 s,@DEPDIR@,$DEPDIR,;t t
8430 s,@am__include@,$am__include,;t t
8431 s,@am__quote@,$am__quote,;t t
8432 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8433 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8434 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8435 s,@CCDEPMODE@,$CCDEPMODE,;t t
8436 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8437 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8438 s,@CXX@,$CXX,;t t
8439 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8440 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
8441 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
8442 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
8443 s,@CFLAGS@,$CFLAGS,;t t
8444 s,@CXXFLAGS@,$CXXFLAGS,;t t
8445 s,@CCAS@,$CCAS,;t t
8446 s,@CCASFLAGS@,$CCASFLAGS,;t t
8447 s,@AS@,$AS,;t t
8448 s,@ac_ct_AS@,$ac_ct_AS,;t t
8449 s,@AR@,$AR,;t t
8450 s,@ac_ct_AR@,$ac_ct_AR,;t t
8451 s,@RANLIB@,$RANLIB,;t t
8452 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8453 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
8454 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
8455 s,@MAINT@,$MAINT,;t t
8456 s,@GC_CFLAGS@,$GC_CFLAGS,;t t
8457 s,@LN_S@,$LN_S,;t t
8458 s,@LIBTOOL@,$LIBTOOL,;t t
8459 s,@CXXCPP@,$CXXCPP,;t t
8460 s,@CPPFLAGS@,$CPPFLAGS,;t t
8461 s,@THREADLIBS@,$THREADLIBS,;t t
8462 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
8463 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
8464 s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
8465 s,@target_all@,$target_all,;t t
8466 s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
8467 s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
8468 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
8469 s,@addobjs@,$addobjs,;t t
8470 s,@addincludes@,$addincludes,;t t
8471 s,@addlibs@,$addlibs,;t t
8472 s,@addtests@,$addtests,;t t
8473 s,@CPP@,$CPP,;t t
8474 s,@EGREP@,$EGREP,;t t
8475 s,@MY_CFLAGS@,$MY_CFLAGS,;t t
8476 s,@toolexecdir@,$toolexecdir,;t t
8477 s,@toolexeclibdir@,$toolexeclibdir,;t t
8478 s,@LIBOBJS@,$LIBOBJS,;t t
8479 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8480 CEOF
8481
8482 _ACEOF
8483
8484 cat >>$CONFIG_STATUS <<\_ACEOF
8485 # Split the substitutions into bite-sized pieces for seds with
8486 # small command number limits, like on Digital OSF/1 and HP-UX.
8487 ac_max_sed_lines=48
8488 ac_sed_frag=1 # Number of current file.
8489 ac_beg=1 # First line for current file.
8490 ac_end=$ac_max_sed_lines # Line after last line for current file.
8491 ac_more_lines=:
8492 ac_sed_cmds=
8493 while $ac_more_lines; do
8494 if test $ac_beg -gt 1; then
8495 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8496 else
8497 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8498 fi
8499 if test ! -s $tmp/subs.frag; then
8500 ac_more_lines=false
8501 else
8502 # The purpose of the label and of the branching condition is to
8503 # speed up the sed processing (if there are no `@' at all, there
8504 # is no need to browse any of the substitutions).
8505 # These are the two extra sed commands mentioned above.
8506 (echo ':t
8507 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8508 if test -z "$ac_sed_cmds"; then
8509 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8510 else
8511 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8512 fi
8513 ac_sed_frag=`expr $ac_sed_frag + 1`
8514 ac_beg=$ac_end
8515 ac_end=`expr $ac_end + $ac_max_sed_lines`
8516 fi
8517 done
8518 if test -z "$ac_sed_cmds"; then
8519 ac_sed_cmds=cat
8520 fi
8521 fi # test -n "$CONFIG_FILES"
8522
8523 _ACEOF
8524 cat >>$CONFIG_STATUS <<\_ACEOF
8525 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8526 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8527 case $ac_file in
8528 - | *:- | *:-:* ) # input from stdin
8529 cat >$tmp/stdin
8530 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8531 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8532 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8533 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8534 * ) ac_file_in=$ac_file.in ;;
8535 esac
8536
8537 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8538 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8539 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8540 X"$ac_file" : 'X\(//\)[^/]' \| \
8541 X"$ac_file" : 'X\(//\)$' \| \
8542 X"$ac_file" : 'X\(/\)' \| \
8543 . : '\(.\)' 2>/dev/null ||
8544 echo X"$ac_file" |
8545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8546 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8547 /^X\(\/\/\)$/{ s//\1/; q; }
8548 /^X\(\/\).*/{ s//\1/; q; }
8549 s/.*/./; q'`
8550 { if $as_mkdir_p; then
8551 mkdir -p "$ac_dir"
8552 else
8553 as_dir="$ac_dir"
8554 as_dirs=
8555 while test ! -d "$as_dir"; do
8556 as_dirs="$as_dir $as_dirs"
8557 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8559 X"$as_dir" : 'X\(//\)[^/]' \| \
8560 X"$as_dir" : 'X\(//\)$' \| \
8561 X"$as_dir" : 'X\(/\)' \| \
8562 . : '\(.\)' 2>/dev/null ||
8563 echo X"$as_dir" |
8564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8565 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8566 /^X\(\/\/\)$/{ s//\1/; q; }
8567 /^X\(\/\).*/{ s//\1/; q; }
8568 s/.*/./; q'`
8569 done
8570 test ! -n "$as_dirs" || mkdir $as_dirs
8571 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8572 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8573 { (exit 1); exit 1; }; }; }
8574
8575 ac_builddir=.
8576
8577 if test "$ac_dir" != .; then
8578 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8579 # A "../" for each directory in $ac_dir_suffix.
8580 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8581 else
8582 ac_dir_suffix= ac_top_builddir=
8583 fi
8584
8585 case $srcdir in
8586 .) # No --srcdir option. We are building in place.
8587 ac_srcdir=.
8588 if test -z "$ac_top_builddir"; then
8589 ac_top_srcdir=.
8590 else
8591 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8592 fi ;;
8593 [\\/]* | ?:[\\/]* ) # Absolute path.
8594 ac_srcdir=$srcdir$ac_dir_suffix;
8595 ac_top_srcdir=$srcdir ;;
8596 *) # Relative path.
8597 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8598 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8599 esac
8600
8601 # Do not use `cd foo && pwd` to compute absolute paths, because
8602 # the directories may not exist.
8603 case `pwd` in
8604 .) ac_abs_builddir="$ac_dir";;
8605 *)
8606 case "$ac_dir" in
8607 .) ac_abs_builddir=`pwd`;;
8608 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8609 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8610 esac;;
8611 esac
8612 case $ac_abs_builddir in
8613 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8614 *)
8615 case ${ac_top_builddir}. in
8616 .) ac_abs_top_builddir=$ac_abs_builddir;;
8617 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8618 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8619 esac;;
8620 esac
8621 case $ac_abs_builddir in
8622 .) ac_abs_srcdir=$ac_srcdir;;
8623 *)
8624 case $ac_srcdir in
8625 .) ac_abs_srcdir=$ac_abs_builddir;;
8626 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8627 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8628 esac;;
8629 esac
8630 case $ac_abs_builddir in
8631 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8632 *)
8633 case $ac_top_srcdir in
8634 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8635 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8636 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8637 esac;;
8638 esac
8639
8640
8641 case $INSTALL in
8642 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8643 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8644 esac
8645
8646 if test x"$ac_file" != x-; then
8647 { echo "$as_me:$LINENO: creating $ac_file" >&5
8648 echo "$as_me: creating $ac_file" >&6;}
8649 rm -f "$ac_file"
8650 fi
8651 # Let's still pretend it is `configure' which instantiates (i.e., don't
8652 # use $as_me), people would be surprised to read:
8653 # /* config.h. Generated by config.status. */
8654 if test x"$ac_file" = x-; then
8655 configure_input=
8656 else
8657 configure_input="$ac_file. "
8658 fi
8659 configure_input=$configure_input"Generated from `echo $ac_file_in |
8660 sed 's,.*/,,'` by configure."
8661
8662 # First look for the input files in the build tree, otherwise in the
8663 # src tree.
8664 ac_file_inputs=`IFS=:
8665 for f in $ac_file_in; do
8666 case $f in
8667 -) echo $tmp/stdin ;;
8668 [\\/$]*)
8669 # Absolute (can't be DOS-style, as IFS=:)
8670 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8671 echo "$as_me: error: cannot find input file: $f" >&2;}
8672 { (exit 1); exit 1; }; }
8673 echo "$f";;
8674 *) # Relative
8675 if test -f "$f"; then
8676 # Build tree
8677 echo "$f"
8678 elif test -f "$srcdir/$f"; then
8679 # Source tree
8680 echo "$srcdir/$f"
8681 else
8682 # /dev/null tree
8683 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8684 echo "$as_me: error: cannot find input file: $f" >&2;}
8685 { (exit 1); exit 1; }; }
8686 fi;;
8687 esac
8688 done` || { (exit 1); exit 1; }
8689 _ACEOF
8690 cat >>$CONFIG_STATUS <<_ACEOF
8691 sed "$ac_vpsub
8692 $extrasub
8693 _ACEOF
8694 cat >>$CONFIG_STATUS <<\_ACEOF
8695 :t
8696 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8697 s,@configure_input@,$configure_input,;t t
8698 s,@srcdir@,$ac_srcdir,;t t
8699 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8700 s,@top_srcdir@,$ac_top_srcdir,;t t
8701 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8702 s,@builddir@,$ac_builddir,;t t
8703 s,@abs_builddir@,$ac_abs_builddir,;t t
8704 s,@top_builddir@,$ac_top_builddir,;t t
8705 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8706 s,@INSTALL@,$ac_INSTALL,;t t
8707 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8708 rm -f $tmp/stdin
8709 if test x"$ac_file" != x-; then
8710 mv $tmp/out $ac_file
8711 else
8712 cat $tmp/out
8713 rm -f $tmp/out
8714 fi
8715
8716 done
8717 _ACEOF
8718 cat >>$CONFIG_STATUS <<\_ACEOF
8719
8720 #
8721 # CONFIG_HEADER section.
8722 #
8723
8724 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8725 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8726 #
8727 # ac_d sets the value in "#define NAME VALUE" lines.
8728 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8729 ac_dB='[ ].*$,\1#\2'
8730 ac_dC=' '
8731 ac_dD=',;t'
8732 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8733 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8734 ac_uB='$,\1#\2define\3'
8735 ac_uC=' '
8736 ac_uD=',;t'
8737
8738 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8739 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8740 case $ac_file in
8741 - | *:- | *:-:* ) # input from stdin
8742 cat >$tmp/stdin
8743 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8744 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8745 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8746 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8747 * ) ac_file_in=$ac_file.in ;;
8748 esac
8749
8750 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8751 echo "$as_me: creating $ac_file" >&6;}
8752
8753 # First look for the input files in the build tree, otherwise in the
8754 # src tree.
8755 ac_file_inputs=`IFS=:
8756 for f in $ac_file_in; do
8757 case $f in
8758 -) echo $tmp/stdin ;;
8759 [\\/$]*)
8760 # Absolute (can't be DOS-style, as IFS=:)
8761 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8762 echo "$as_me: error: cannot find input file: $f" >&2;}
8763 { (exit 1); exit 1; }; }
8764 # Do quote $f, to prevent DOS paths from being IFS'd.
8765 echo "$f";;
8766 *) # Relative
8767 if test -f "$f"; then
8768 # Build tree
8769 echo "$f"
8770 elif test -f "$srcdir/$f"; then
8771 # Source tree
8772 echo "$srcdir/$f"
8773 else
8774 # /dev/null tree
8775 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8776 echo "$as_me: error: cannot find input file: $f" >&2;}
8777 { (exit 1); exit 1; }; }
8778 fi;;
8779 esac
8780 done` || { (exit 1); exit 1; }
8781 # Remove the trailing spaces.
8782 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8783
8784 _ACEOF
8785
8786 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8787 # `conftest.undefs', that substitutes the proper values into
8788 # config.h.in to produce config.h. The first handles `#define'
8789 # templates, and the second `#undef' templates.
8790 # And first: Protect against being on the right side of a sed subst in
8791 # config.status. Protect against being in an unquoted here document
8792 # in config.status.
8793 rm -f conftest.defines conftest.undefs
8794 # Using a here document instead of a string reduces the quoting nightmare.
8795 # Putting comments in sed scripts is not portable.
8796 #
8797 # `end' is used to avoid that the second main sed command (meant for
8798 # 0-ary CPP macros) applies to n-ary macro definitions.
8799 # See the Autoconf documentation for `clear'.
8800 cat >confdef2sed.sed <<\_ACEOF
8801 s/[\\&,]/\\&/g
8802 s,[\\$`],\\&,g
8803 t clear
8804 : clear
8805 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8806 t end
8807 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8808 : end
8809 _ACEOF
8810 # If some macros were called several times there might be several times
8811 # the same #defines, which is useless. Nevertheless, we may not want to
8812 # sort them, since we want the *last* AC-DEFINE to be honored.
8813 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8814 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8815 rm -f confdef2sed.sed
8816
8817 # This sed command replaces #undef with comments. This is necessary, for
8818 # example, in the case of _POSIX_SOURCE, which is predefined and required
8819 # on some systems where configure will not decide to define it.
8820 cat >>conftest.undefs <<\_ACEOF
8821 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8822 _ACEOF
8823
8824 # Break up conftest.defines because some shells have a limit on the size
8825 # of here documents, and old seds have small limits too (100 cmds).
8826 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8827 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8828 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8829 echo ' :' >>$CONFIG_STATUS
8830 rm -f conftest.tail
8831 while grep . conftest.defines >/dev/null
8832 do
8833 # Write a limited-size here document to $tmp/defines.sed.
8834 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8835 # Speed up: don't consider the non `#define' lines.
8836 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8837 # Work around the forget-to-reset-the-flag bug.
8838 echo 't clr' >>$CONFIG_STATUS
8839 echo ': clr' >>$CONFIG_STATUS
8840 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8841 echo 'CEOF
8842 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8843 rm -f $tmp/in
8844 mv $tmp/out $tmp/in
8845 ' >>$CONFIG_STATUS
8846 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8847 rm -f conftest.defines
8848 mv conftest.tail conftest.defines
8849 done
8850 rm -f conftest.defines
8851 echo ' fi # grep' >>$CONFIG_STATUS
8852 echo >>$CONFIG_STATUS
8853
8854 # Break up conftest.undefs because some shells have a limit on the size
8855 # of here documents, and old seds have small limits too (100 cmds).
8856 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8857 rm -f conftest.tail
8858 while grep . conftest.undefs >/dev/null
8859 do
8860 # Write a limited-size here document to $tmp/undefs.sed.
8861 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8862 # Speed up: don't consider the non `#undef'
8863 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8864 # Work around the forget-to-reset-the-flag bug.
8865 echo 't clr' >>$CONFIG_STATUS
8866 echo ': clr' >>$CONFIG_STATUS
8867 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8868 echo 'CEOF
8869 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8870 rm -f $tmp/in
8871 mv $tmp/out $tmp/in
8872 ' >>$CONFIG_STATUS
8873 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8874 rm -f conftest.undefs
8875 mv conftest.tail conftest.undefs
8876 done
8877 rm -f conftest.undefs
8878
8879 cat >>$CONFIG_STATUS <<\_ACEOF
8880 # Let's still pretend it is `configure' which instantiates (i.e., don't
8881 # use $as_me), people would be surprised to read:
8882 # /* config.h. Generated by config.status. */
8883 if test x"$ac_file" = x-; then
8884 echo "/* Generated by configure. */" >$tmp/config.h
8885 else
8886 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8887 fi
8888 cat $tmp/in >>$tmp/config.h
8889 rm -f $tmp/in
8890 if test x"$ac_file" != x-; then
8891 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8892 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8893 echo "$as_me: $ac_file is unchanged" >&6;}
8894 else
8895 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8896 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8897 X"$ac_file" : 'X\(//\)[^/]' \| \
8898 X"$ac_file" : 'X\(//\)$' \| \
8899 X"$ac_file" : 'X\(/\)' \| \
8900 . : '\(.\)' 2>/dev/null ||
8901 echo X"$ac_file" |
8902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8904 /^X\(\/\/\)$/{ s//\1/; q; }
8905 /^X\(\/\).*/{ s//\1/; q; }
8906 s/.*/./; q'`
8907 { if $as_mkdir_p; then
8908 mkdir -p "$ac_dir"
8909 else
8910 as_dir="$ac_dir"
8911 as_dirs=
8912 while test ! -d "$as_dir"; do
8913 as_dirs="$as_dir $as_dirs"
8914 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8916 X"$as_dir" : 'X\(//\)[^/]' \| \
8917 X"$as_dir" : 'X\(//\)$' \| \
8918 X"$as_dir" : 'X\(/\)' \| \
8919 . : '\(.\)' 2>/dev/null ||
8920 echo X"$as_dir" |
8921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8922 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8923 /^X\(\/\/\)$/{ s//\1/; q; }
8924 /^X\(\/\).*/{ s//\1/; q; }
8925 s/.*/./; q'`
8926 done
8927 test ! -n "$as_dirs" || mkdir $as_dirs
8928 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8929 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8930 { (exit 1); exit 1; }; }; }
8931
8932 rm -f $ac_file
8933 mv $tmp/config.h $ac_file
8934 fi
8935 else
8936 cat $tmp/config.h
8937 rm -f $tmp/config.h
8938 fi
8939 # Compute $ac_file's index in $config_headers.
8940 _am_stamp_count=1
8941 for _am_header in $config_headers :; do
8942 case $_am_header in
8943 $ac_file | $ac_file:* )
8944 break ;;
8945 * )
8946 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8947 esac
8948 done
8949 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8950 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8951 X$ac_file : 'X\(//\)[^/]' \| \
8952 X$ac_file : 'X\(//\)$' \| \
8953 X$ac_file : 'X\(/\)' \| \
8954 . : '\(.\)' 2>/dev/null ||
8955 echo X$ac_file |
8956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8958 /^X\(\/\/\)$/{ s//\1/; q; }
8959 /^X\(\/\).*/{ s//\1/; q; }
8960 s/.*/./; q'`/stamp-h$_am_stamp_count
8961 done
8962 _ACEOF
8963 cat >>$CONFIG_STATUS <<\_ACEOF
8964
8965 #
8966 # CONFIG_COMMANDS section.
8967 #
8968 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8969 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8970 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8971 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8972 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8973 X"$ac_dest" : 'X\(//\)[^/]' \| \
8974 X"$ac_dest" : 'X\(//\)$' \| \
8975 X"$ac_dest" : 'X\(/\)' \| \
8976 . : '\(.\)' 2>/dev/null ||
8977 echo X"$ac_dest" |
8978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8979 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8980 /^X\(\/\/\)$/{ s//\1/; q; }
8981 /^X\(\/\).*/{ s//\1/; q; }
8982 s/.*/./; q'`
8983 { if $as_mkdir_p; then
8984 mkdir -p "$ac_dir"
8985 else
8986 as_dir="$ac_dir"
8987 as_dirs=
8988 while test ! -d "$as_dir"; do
8989 as_dirs="$as_dir $as_dirs"
8990 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8991 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8992 X"$as_dir" : 'X\(//\)[^/]' \| \
8993 X"$as_dir" : 'X\(//\)$' \| \
8994 X"$as_dir" : 'X\(/\)' \| \
8995 . : '\(.\)' 2>/dev/null ||
8996 echo X"$as_dir" |
8997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8998 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8999 /^X\(\/\/\)$/{ s//\1/; q; }
9000 /^X\(\/\).*/{ s//\1/; q; }
9001 s/.*/./; q'`
9002 done
9003 test ! -n "$as_dirs" || mkdir $as_dirs
9004 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9005 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9006 { (exit 1); exit 1; }; }; }
9007
9008 ac_builddir=.
9009
9010 if test "$ac_dir" != .; then
9011 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9012 # A "../" for each directory in $ac_dir_suffix.
9013 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9014 else
9015 ac_dir_suffix= ac_top_builddir=
9016 fi
9017
9018 case $srcdir in
9019 .) # No --srcdir option. We are building in place.
9020 ac_srcdir=.
9021 if test -z "$ac_top_builddir"; then
9022 ac_top_srcdir=.
9023 else
9024 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9025 fi ;;
9026 [\\/]* | ?:[\\/]* ) # Absolute path.
9027 ac_srcdir=$srcdir$ac_dir_suffix;
9028 ac_top_srcdir=$srcdir ;;
9029 *) # Relative path.
9030 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9031 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9032 esac
9033
9034 # Do not use `cd foo && pwd` to compute absolute paths, because
9035 # the directories may not exist.
9036 case `pwd` in
9037 .) ac_abs_builddir="$ac_dir";;
9038 *)
9039 case "$ac_dir" in
9040 .) ac_abs_builddir=`pwd`;;
9041 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9042 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9043 esac;;
9044 esac
9045 case $ac_abs_builddir in
9046 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9047 *)
9048 case ${ac_top_builddir}. in
9049 .) ac_abs_top_builddir=$ac_abs_builddir;;
9050 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9051 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9052 esac;;
9053 esac
9054 case $ac_abs_builddir in
9055 .) ac_abs_srcdir=$ac_srcdir;;
9056 *)
9057 case $ac_srcdir in
9058 .) ac_abs_srcdir=$ac_abs_builddir;;
9059 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9060 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9061 esac;;
9062 esac
9063 case $ac_abs_builddir in
9064 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9065 *)
9066 case $ac_top_srcdir in
9067 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9068 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9069 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9070 esac;;
9071 esac
9072
9073
9074 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9075 echo "$as_me: executing $ac_dest commands" >&6;}
9076 case $ac_dest in
9077 default-1 )
9078 # Only add multilib support code if we just rebuilt the top-level
9079 # Makefile.
9080 case " $CONFIG_FILES " in
9081 *" Makefile "*)
9082 ac_file=Makefile . ${multi_basedir}/config-ml.in
9083 ;;
9084 esac ;;
9085 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9086 # Strip MF so we end up with the name of the file.
9087 mf=`echo "$mf" | sed -e 's/:.*$//'`
9088 # Check whether this is an Automake generated Makefile or not.
9089 # We used to match only the files named `Makefile.in', but
9090 # some people rename them; so instead we look at the file content.
9091 # Grep'ing the first line is not enough: some people post-process
9092 # each Makefile.in and add a new line on top of each file to say so.
9093 # So let's grep whole file.
9094 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9095 dirpart=`(dirname "$mf") 2>/dev/null ||
9096 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9097 X"$mf" : 'X\(//\)[^/]' \| \
9098 X"$mf" : 'X\(//\)$' \| \
9099 X"$mf" : 'X\(/\)' \| \
9100 . : '\(.\)' 2>/dev/null ||
9101 echo X"$mf" |
9102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9103 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9104 /^X\(\/\/\)$/{ s//\1/; q; }
9105 /^X\(\/\).*/{ s//\1/; q; }
9106 s/.*/./; q'`
9107 else
9108 continue
9109 fi
9110 # Extract the definition of DEPDIR, am__include, and am__quote
9111 # from the Makefile without running `make'.
9112 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9113 test -z "$DEPDIR" && continue
9114 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9115 test -z "am__include" && continue
9116 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9117 # When using ansi2knr, U may be empty or an underscore; expand it
9118 U=`sed -n 's/^U = //p' < "$mf"`
9119 # Find all dependency output files, they are included files with
9120 # $(DEPDIR) in their names. We invoke sed twice because it is the
9121 # simplest approach to changing $(DEPDIR) to its actual value in the
9122 # expansion.
9123 for file in `sed -n "
9124 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9125 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9126 # Make sure the directory exists.
9127 test -f "$dirpart/$file" && continue
9128 fdir=`(dirname "$file") 2>/dev/null ||
9129 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9130 X"$file" : 'X\(//\)[^/]' \| \
9131 X"$file" : 'X\(//\)$' \| \
9132 X"$file" : 'X\(/\)' \| \
9133 . : '\(.\)' 2>/dev/null ||
9134 echo X"$file" |
9135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9136 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9137 /^X\(\/\/\)$/{ s//\1/; q; }
9138 /^X\(\/\).*/{ s//\1/; q; }
9139 s/.*/./; q'`
9140 { if $as_mkdir_p; then
9141 mkdir -p $dirpart/$fdir
9142 else
9143 as_dir=$dirpart/$fdir
9144 as_dirs=
9145 while test ! -d "$as_dir"; do
9146 as_dirs="$as_dir $as_dirs"
9147 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9148 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9149 X"$as_dir" : 'X\(//\)[^/]' \| \
9150 X"$as_dir" : 'X\(//\)$' \| \
9151 X"$as_dir" : 'X\(/\)' \| \
9152 . : '\(.\)' 2>/dev/null ||
9153 echo X"$as_dir" |
9154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9155 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9156 /^X\(\/\/\)$/{ s//\1/; q; }
9157 /^X\(\/\).*/{ s//\1/; q; }
9158 s/.*/./; q'`
9159 done
9160 test ! -n "$as_dirs" || mkdir $as_dirs
9161 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9162 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9163 { (exit 1); exit 1; }; }; }
9164
9165 # echo "creating $dirpart/$file"
9166 echo '# dummy' > "$dirpart/$file"
9167 done
9168 done
9169 ;;
9170 esac
9171 done
9172 _ACEOF
9173
9174 cat >>$CONFIG_STATUS <<\_ACEOF
9175
9176 { (exit 0); exit 0; }
9177 _ACEOF
9178 chmod +x $CONFIG_STATUS
9179 ac_clean_files=$ac_clean_files_save
9180
9181
9182 # configure is writing to config.log, and then calls config.status.
9183 # config.status does its own redirection, appending to config.log.
9184 # Unfortunately, on DOS this fails, as config.log is still kept open
9185 # by configure, so config.status won't be able to write to it; its
9186 # output is simply discarded. So we exec the FD to /dev/null,
9187 # effectively closing config.log, so it can be properly (re)opened and
9188 # appended to by config.status. When coming back to configure, we
9189 # need to make the FD available again.
9190 if test "$no_create" != yes; then
9191 ac_cs_success=:
9192 ac_config_status_args=
9193 test "$silent" = yes &&
9194 ac_config_status_args="$ac_config_status_args --quiet"
9195 exec 5>/dev/null
9196 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9197 exec 5>>config.log
9198 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9199 # would make configure fail if this is the last instruction.
9200 $ac_cs_success || { (exit 1); exit 1; }
9201 fi
9202