acinclude.m4: Remove obsolete and bogus constructs.
[gcc.git] / boehm-gc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="gcj_mlc.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 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 gc_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os mkinstalldirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GC_CFLAGS LN_S STRIP ac_ct_STRIP LIBTOOL CXXCPP CPPFLAGS THREADLIBS POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE EXTRA_TEST_LIBS target_all target_noncanonical CPLUSPLUS_TRUE CPLUSPLUS_FALSE INCLUDES CXXINCLUDES addobjs addincludes addlibs addtests CPP EGREP MY_CFLAGS toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
366 case $ac_option in
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
372
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
435
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
584
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
629
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
640 *)
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 ;;
647
648 esac
649 done
650
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671 do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724 else
725 ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
734 fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CXXCPP_set=${CXXCPP+set}
753 ac_env_CXXCPP_value=$CXXCPP
754 ac_cv_env_CXXCPP_set=${CXXCPP+set}
755 ac_cv_env_CXXCPP_value=$CXXCPP
756 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
757 ac_env_CPPFLAGS_value=$CPPFLAGS
758 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
760 ac_env_CPP_set=${CPP+set}
761 ac_env_CPP_value=$CPP
762 ac_cv_env_CPP_set=${CPP+set}
763 ac_cv_env_CPP_value=$CPP
764
765 #
766 # Report the --help message.
767 #
768 if test "$ac_init_help" = "long"; then
769 # Omit some internal or obsolete options to make the list less imposing.
770 # This message is too long to be a string in the A/UX 3.1 sh.
771 cat <<_ACEOF
772 \`configure' configures this package to adapt to many kinds of systems.
773
774 Usage: $0 [OPTION]... [VAR=VALUE]...
775
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE. See below for descriptions of some of the useful variables.
778
779 Defaults for the options are specified in brackets.
780
781 Configuration:
782 -h, --help display this help and exit
783 --help=short display options specific to this package
784 --help=recursive display the short help of all the included packages
785 -V, --version display version information and exit
786 -q, --quiet, --silent do not print \`checking...' messages
787 --cache-file=FILE cache test results in FILE [disabled]
788 -C, --config-cache alias for \`--cache-file=config.cache'
789 -n, --no-create do not create output files
790 --srcdir=DIR find the sources in DIR [configure dir or \`..']
791
792 _ACEOF
793
794 cat <<_ACEOF
795 Installation directories:
796 --prefix=PREFIX install architecture-independent files in PREFIX
797 [$ac_default_prefix]
798 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
799 [PREFIX]
800
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
805
806 For better control, use the options below.
807
808 Fine tuning of the installation directories:
809 --bindir=DIR user executables [EPREFIX/bin]
810 --sbindir=DIR system admin executables [EPREFIX/sbin]
811 --libexecdir=DIR program executables [EPREFIX/libexec]
812 --datadir=DIR read-only architecture-independent data [PREFIX/share]
813 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
814 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
815 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
816 --libdir=DIR object code libraries [EPREFIX/lib]
817 --includedir=DIR C header files [PREFIX/include]
818 --oldincludedir=DIR C header files for non-gcc [/usr/include]
819 --infodir=DIR info documentation [PREFIX/info]
820 --mandir=DIR man documentation [PREFIX/man]
821 _ACEOF
822
823 cat <<\_ACEOF
824
825 Program names:
826 --program-prefix=PREFIX prepend PREFIX to installed program names
827 --program-suffix=SUFFIX append SUFFIX to installed program names
828 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
829
830 System types:
831 --build=BUILD configure for building on BUILD [guessed]
832 --host=HOST cross-compile to build programs to run on HOST [BUILD]
833 --target=TARGET configure for building compilers for TARGET [HOST]
834 _ACEOF
835 fi
836
837 if test -n "$ac_init_help"; then
838
839 cat <<\_ACEOF
840
841 Optional Features:
842 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
843 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
844 --enable-multilib build many library versions (default)
845 --enable-maintainer-mode enable make rules and dependencies not useful
846 (and sometimes confusing) to the casual installer
847 --enable-shared=PKGS build shared libraries default=yes
848 --enable-static=PKGS build static libraries default=yes
849 --enable-fast-install=PKGS optimize for fast installation default=yes
850 --disable-libtool-lock avoid locking (might break parallel builds)
851 --enable-parallel-mark parallelize marking and free list construction
852 --enable-full-debug include full support for pointer backtracing etc.
853
854 Optional Packages:
855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
857 --with-gnu-ld assume the C compiler uses GNU ld default=no
858 --with-pic try to use only PIC/non-PIC objects default=use both
859 --with-target-subdir=SUBDIR
860 configuring with a cross compiler
861 --with-cross-host=HOST configuring with a cross compiler
862 --with-ecos enable runtime eCos target support
863
864 Some influential environment variables:
865 CC C compiler command
866 CFLAGS C compiler flags
867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
868 nonstandard directory <lib dir>
869 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
870 headers in a nonstandard directory <include dir>
871 CXX C++ compiler command
872 CXXFLAGS C++ compiler flags
873 CXXCPP C++ preprocessor
874 CPP C preprocessor
875
876 Use these variables to override the choices made by `configure' or to help
877 it to find libraries and programs with nonstandard names/locations.
878
879 _ACEOF
880 fi
881
882 if test "$ac_init_help" = "recursive"; then
883 # If there are subdirs, report their specific --help.
884 ac_popdir=`pwd`
885 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
886 test -d $ac_dir || continue
887 ac_builddir=.
888
889 if test "$ac_dir" != .; then
890 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
891 # A "../" for each directory in $ac_dir_suffix.
892 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
893 else
894 ac_dir_suffix= ac_top_builddir=
895 fi
896
897 case $srcdir in
898 .) # No --srcdir option. We are building in place.
899 ac_srcdir=.
900 if test -z "$ac_top_builddir"; then
901 ac_top_srcdir=.
902 else
903 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
904 fi ;;
905 [\\/]* | ?:[\\/]* ) # Absolute path.
906 ac_srcdir=$srcdir$ac_dir_suffix;
907 ac_top_srcdir=$srcdir ;;
908 *) # Relative path.
909 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
910 ac_top_srcdir=$ac_top_builddir$srcdir ;;
911 esac
912 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
913 # absolute.
914 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
915 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
916 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
917 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
918
919 cd $ac_dir
920 # Check for guested configure; otherwise get Cygnus style configure.
921 if test -f $ac_srcdir/configure.gnu; then
922 echo
923 $SHELL $ac_srcdir/configure.gnu --help=recursive
924 elif test -f $ac_srcdir/configure; then
925 echo
926 $SHELL $ac_srcdir/configure --help=recursive
927 elif test -f $ac_srcdir/configure.ac ||
928 test -f $ac_srcdir/configure.in; then
929 echo
930 $ac_configure --help
931 else
932 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
933 fi
934 cd "$ac_popdir"
935 done
936 fi
937
938 test -n "$ac_init_help" && exit 0
939 if $ac_init_version; then
940 cat <<\_ACEOF
941
942 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
943 Free Software Foundation, Inc.
944 This configure script is free software; the Free Software Foundation
945 gives unlimited permission to copy, distribute and modify it.
946 _ACEOF
947 exit 0
948 fi
949 exec 5>config.log
950 cat >&5 <<_ACEOF
951 This file contains any messages produced by compilers while
952 running configure, to aid debugging if configure makes a mistake.
953
954 It was created by $as_me, which was
955 generated by GNU Autoconf 2.57. Invocation command line was
956
957 $ $0 $@
958
959 _ACEOF
960 {
961 cat <<_ASUNAME
962 ## --------- ##
963 ## Platform. ##
964 ## --------- ##
965
966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
971
972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
973 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
974
975 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
976 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
978 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
979 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
980 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
981 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
982
983 _ASUNAME
984
985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
986 for as_dir in $PATH
987 do
988 IFS=$as_save_IFS
989 test -z "$as_dir" && as_dir=.
990 echo "PATH: $as_dir"
991 done
992
993 } >&5
994
995 cat >&5 <<_ACEOF
996
997
998 ## ----------- ##
999 ## Core tests. ##
1000 ## ----------- ##
1001
1002 _ACEOF
1003
1004
1005 # Keep a trace of the command line.
1006 # Strip out --no-create and --no-recursion so they do not pile up.
1007 # Strip out --silent because we don't want to record it for future runs.
1008 # Also quote any args containing shell meta-characters.
1009 # Make two passes to allow for proper duplicate-argument suppression.
1010 ac_configure_args=
1011 ac_configure_args0=
1012 ac_configure_args1=
1013 ac_sep=
1014 ac_must_keep_next=false
1015 for ac_pass in 1 2
1016 do
1017 for ac_arg
1018 do
1019 case $ac_arg in
1020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022 | -silent | --silent | --silen | --sile | --sil)
1023 continue ;;
1024 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1025 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1026 esac
1027 case $ac_pass in
1028 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1029 2)
1030 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1031 if test $ac_must_keep_next = true; then
1032 ac_must_keep_next=false # Got value, back to normal.
1033 else
1034 case $ac_arg in
1035 *=* | --config-cache | -C | -disable-* | --disable-* \
1036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1038 | -with-* | --with-* | -without-* | --without-* | --x)
1039 case "$ac_configure_args0 " in
1040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1041 esac
1042 ;;
1043 -* ) ac_must_keep_next=true ;;
1044 esac
1045 fi
1046 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1047 # Get rid of the leading space.
1048 ac_sep=" "
1049 ;;
1050 esac
1051 done
1052 done
1053 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1054 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1055
1056 # When interrupted or exit'd, cleanup temporary files, and complete
1057 # config.log. We remove comments because anyway the quotes in there
1058 # would cause problems or look ugly.
1059 # WARNING: Be sure not to use single quotes in there, as some shells,
1060 # such as our DU 5.0 friend, will then `close' the trap.
1061 trap 'exit_status=$?
1062 # Save into config.log some information that might help in debugging.
1063 {
1064 echo
1065
1066 cat <<\_ASBOX
1067 ## ---------------- ##
1068 ## Cache variables. ##
1069 ## ---------------- ##
1070 _ASBOX
1071 echo
1072 # The following way of writing the cache mishandles newlines in values,
1073 {
1074 (set) 2>&1 |
1075 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1076 *ac_space=\ *)
1077 sed -n \
1078 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1080 ;;
1081 *)
1082 sed -n \
1083 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1084 ;;
1085 esac;
1086 }
1087 echo
1088
1089 cat <<\_ASBOX
1090 ## ----------------- ##
1091 ## Output variables. ##
1092 ## ----------------- ##
1093 _ASBOX
1094 echo
1095 for ac_var in $ac_subst_vars
1096 do
1097 eval ac_val=$`echo $ac_var`
1098 echo "$ac_var='"'"'$ac_val'"'"'"
1099 done | sort
1100 echo
1101
1102 if test -n "$ac_subst_files"; then
1103 cat <<\_ASBOX
1104 ## ------------- ##
1105 ## Output files. ##
1106 ## ------------- ##
1107 _ASBOX
1108 echo
1109 for ac_var in $ac_subst_files
1110 do
1111 eval ac_val=$`echo $ac_var`
1112 echo "$ac_var='"'"'$ac_val'"'"'"
1113 done | sort
1114 echo
1115 fi
1116
1117 if test -s confdefs.h; then
1118 cat <<\_ASBOX
1119 ## ----------- ##
1120 ## confdefs.h. ##
1121 ## ----------- ##
1122 _ASBOX
1123 echo
1124 sed "/^$/d" confdefs.h | sort
1125 echo
1126 fi
1127 test "$ac_signal" != 0 &&
1128 echo "$as_me: caught signal $ac_signal"
1129 echo "$as_me: exit $exit_status"
1130 } >&5
1131 rm -f core *.core &&
1132 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1133 exit $exit_status
1134 ' 0
1135 for ac_signal in 1 2 13 15; do
1136 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1137 done
1138 ac_signal=0
1139
1140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1141 rm -rf conftest* confdefs.h
1142 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1143 echo >confdefs.h
1144
1145 # Predefined preprocessor variables.
1146
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_NAME "$PACKAGE_NAME"
1149 _ACEOF
1150
1151
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1154 _ACEOF
1155
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1159 _ACEOF
1160
1161
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_STRING "$PACKAGE_STRING"
1164 _ACEOF
1165
1166
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1169 _ACEOF
1170
1171
1172 # Let the site file select an alternate cache file if it wants to.
1173 # Prefer explicitly selected file to automatically selected ones.
1174 if test -z "$CONFIG_SITE"; then
1175 if test "x$prefix" != xNONE; then
1176 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1177 else
1178 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1179 fi
1180 fi
1181 for ac_site_file in $CONFIG_SITE; do
1182 if test -r "$ac_site_file"; then
1183 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1184 echo "$as_me: loading site script $ac_site_file" >&6;}
1185 sed 's/^/| /' "$ac_site_file" >&5
1186 . "$ac_site_file"
1187 fi
1188 done
1189
1190 if test -r "$cache_file"; then
1191 # Some versions of bash will fail to source /dev/null (special
1192 # files actually), so we avoid doing that.
1193 if test -f "$cache_file"; then
1194 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1195 echo "$as_me: loading cache $cache_file" >&6;}
1196 case $cache_file in
1197 [\\/]* | ?:[\\/]* ) . $cache_file;;
1198 *) . ./$cache_file;;
1199 esac
1200 fi
1201 else
1202 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1203 echo "$as_me: creating cache $cache_file" >&6;}
1204 >$cache_file
1205 fi
1206
1207 # Check that the precious variables saved in the cache have kept the same
1208 # value.
1209 ac_cache_corrupted=false
1210 for ac_var in `(set) 2>&1 |
1211 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1213 eval ac_new_set=\$ac_env_${ac_var}_set
1214 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1215 eval ac_new_val="\$ac_env_${ac_var}_value"
1216 case $ac_old_set,$ac_new_set in
1217 set,)
1218 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1219 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1220 ac_cache_corrupted=: ;;
1221 ,set)
1222 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1223 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1224 ac_cache_corrupted=: ;;
1225 ,);;
1226 *)
1227 if test "x$ac_old_val" != "x$ac_new_val"; then
1228 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1229 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1230 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1231 echo "$as_me: former value: $ac_old_val" >&2;}
1232 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1233 echo "$as_me: current value: $ac_new_val" >&2;}
1234 ac_cache_corrupted=:
1235 fi;;
1236 esac
1237 # Pass precious variables to config.status.
1238 if test "$ac_new_set" = set; then
1239 case $ac_new_val in
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1242 *) ac_arg=$ac_var=$ac_new_val ;;
1243 esac
1244 case " $ac_configure_args " in
1245 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1246 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1247 esac
1248 fi
1249 done
1250 if $ac_cache_corrupted; then
1251 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1252 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1253 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1254 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1255 { (exit 1); exit 1; }; }
1256 fi
1257
1258 ac_ext=c
1259 ac_cpp='$CPP $CPPFLAGS'
1260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283 # This works around the fact that libtool configuration may change LD
1284 # for this particular configuration, but some shells, instead of
1285 # keeping the changes in LD private, export them just because LD is
1286 # exported.
1287 ORIGINAL_LD_FOR_MULTILIBS=$LD
1288
1289 ac_aux_dir=
1290 for ac_dir in . $srcdir/.; do
1291 if test -f $ac_dir/install-sh; then
1292 ac_aux_dir=$ac_dir
1293 ac_install_sh="$ac_aux_dir/install-sh -c"
1294 break
1295 elif test -f $ac_dir/install.sh; then
1296 ac_aux_dir=$ac_dir
1297 ac_install_sh="$ac_aux_dir/install.sh -c"
1298 break
1299 elif test -f $ac_dir/shtool; then
1300 ac_aux_dir=$ac_dir
1301 ac_install_sh="$ac_aux_dir/shtool install -c"
1302 break
1303 fi
1304 done
1305 if test -z "$ac_aux_dir"; then
1306 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1307 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1308 { (exit 1); exit 1; }; }
1309 fi
1310 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1311 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1312 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1313
1314
1315 # Check whether --enable-multilib or --disable-multilib was given.
1316 if test "${enable_multilib+set}" = set; then
1317 enableval="$enable_multilib"
1318 case "${enableval}" in
1319 yes) multilib=yes ;;
1320 no) multilib=no ;;
1321 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1322 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1323 { (exit 1); exit 1; }; } ;;
1324 esac
1325 else
1326 multilib=yes
1327 fi;
1328
1329 if test "${srcdir}" = "."; then
1330 if test "${with_target_subdir}" != "." -a -n "${with_target_subdir}"; then
1331 gc_basedir="${srcdir}/${with_multisrctop}../."
1332 else
1333 gc_basedir="${srcdir}/${with_multisrctop}."
1334 fi
1335 else
1336 gc_basedir="${srcdir}/."
1337 fi
1338
1339 ac_aux_dir=
1340 for ac_dir in $gc_basedir/.. $srcdir/$gc_basedir/..; do
1341 if test -f $ac_dir/install-sh; then
1342 ac_aux_dir=$ac_dir
1343 ac_install_sh="$ac_aux_dir/install-sh -c"
1344 break
1345 elif test -f $ac_dir/install.sh; then
1346 ac_aux_dir=$ac_dir
1347 ac_install_sh="$ac_aux_dir/install.sh -c"
1348 break
1349 elif test -f $ac_dir/shtool; then
1350 ac_aux_dir=$ac_dir
1351 ac_install_sh="$ac_aux_dir/shtool install -c"
1352 break
1353 fi
1354 done
1355 if test -z "$ac_aux_dir"; then
1356 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $gc_basedir/.. $srcdir/$gc_basedir/.." >&5
1357 echo "$as_me: error: cannot find install-sh or install.sh in $gc_basedir/.. $srcdir/$gc_basedir/.." >&2;}
1358 { (exit 1); exit 1; }; }
1359 fi
1360 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1361 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1362 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1363
1364 if :; then :; else
1365 # This overrides the previous occurrence for automake, but not for
1366 # autoconf, which is exactly what we want.
1367 ac_aux_dir=
1368 for ac_dir in .. $srcdir/..; do
1369 if test -f $ac_dir/install-sh; then
1370 ac_aux_dir=$ac_dir
1371 ac_install_sh="$ac_aux_dir/install-sh -c"
1372 break
1373 elif test -f $ac_dir/install.sh; then
1374 ac_aux_dir=$ac_dir
1375 ac_install_sh="$ac_aux_dir/install.sh -c"
1376 break
1377 elif test -f $ac_dir/shtool; then
1378 ac_aux_dir=$ac_dir
1379 ac_install_sh="$ac_aux_dir/shtool install -c"
1380 break
1381 fi
1382 done
1383 if test -z "$ac_aux_dir"; then
1384 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1385 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1386 { (exit 1); exit 1; }; }
1387 fi
1388 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1389 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1390 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1391
1392 fi
1393
1394 # Make sure we can run config.sub.
1395 $ac_config_sub sun4 >/dev/null 2>&1 ||
1396 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1397 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1398 { (exit 1); exit 1; }; }
1399
1400 echo "$as_me:$LINENO: checking build system type" >&5
1401 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1402 if test "${ac_cv_build+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1404 else
1405 ac_cv_build_alias=$build_alias
1406 test -z "$ac_cv_build_alias" &&
1407 ac_cv_build_alias=`$ac_config_guess`
1408 test -z "$ac_cv_build_alias" &&
1409 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1410 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1411 { (exit 1); exit 1; }; }
1412 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1413 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1414 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1415 { (exit 1); exit 1; }; }
1416
1417 fi
1418 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1419 echo "${ECHO_T}$ac_cv_build" >&6
1420 build=$ac_cv_build
1421 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424
1425
1426 echo "$as_me:$LINENO: checking host system type" >&5
1427 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1428 if test "${ac_cv_host+set}" = set; then
1429 echo $ECHO_N "(cached) $ECHO_C" >&6
1430 else
1431 ac_cv_host_alias=$host_alias
1432 test -z "$ac_cv_host_alias" &&
1433 ac_cv_host_alias=$ac_cv_build_alias
1434 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1435 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1436 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1437 { (exit 1); exit 1; }; }
1438
1439 fi
1440 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1441 echo "${ECHO_T}$ac_cv_host" >&6
1442 host=$ac_cv_host
1443 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1444 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1445 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1446
1447
1448 echo "$as_me:$LINENO: checking target system type" >&5
1449 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1450 if test "${ac_cv_target+set}" = set; then
1451 echo $ECHO_N "(cached) $ECHO_C" >&6
1452 else
1453 ac_cv_target_alias=$target_alias
1454 test "x$ac_cv_target_alias" = "x" &&
1455 ac_cv_target_alias=$ac_cv_host_alias
1456 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1457 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1458 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1459 { (exit 1); exit 1; }; }
1460
1461 fi
1462 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1463 echo "${ECHO_T}$ac_cv_target" >&6
1464 target=$ac_cv_target
1465 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1466 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1467 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1468
1469
1470 # The aliases save the names the user supplied, while $host etc.
1471 # will get canonicalized.
1472 test -n "$target_alias" &&
1473 test "$program_prefix$program_suffix$program_transform_name" = \
1474 NONENONEs,x,x, &&
1475 program_prefix=${target_alias}-
1476
1477 # Get the 'noncanonical' system names.
1478 # Autoconf M4 include file defining utility macros for complex Canadian
1479 # cross builds.
1480
1481
1482
1483
1484
1485
1486 ####
1487 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
1488 # or AC_INIT.
1489 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
1490
1491 ####
1492 # NCN_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
1493 # Like AC_CHECK_TOOL, but tries a prefix of the target, not the host.
1494 # Code is pretty much lifted from autoconf2.53.
1495
1496
1497
1498 ####
1499 # NCN_STRICT_CHECK_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
1500 # Like AC_CHECK_TOOL, but requires the prefix if build!=host.
1501
1502
1503
1504 ####
1505 # NCN_STRICT_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
1506 # Like NCN_CHECK_TARGET_TOOL, but requires the prefix if build!=target.
1507
1508
1509 ###
1510 # AC_PROG_CPP_WERROR
1511 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
1512 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
1513 # For now, using this also overrides header checks to use only the
1514 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
1515 # bit harder from here).
1516 # Eventually autoconf will default to checking headers with the compiler
1517 # instead, and we'll have to do this differently.
1518
1519 # AC_PROG_CPP_WERROR
1520
1521 case ${build_alias} in
1522 "") build_noncanonical=${build} ;;
1523 *) build_noncanonical=${build_alias} ;;
1524 esac
1525
1526 case ${host_alias} in
1527 "") host_noncanonical=${build_noncanonical} ;;
1528 *) host_noncanonical=${host_alias} ;;
1529 esac
1530
1531 case ${target_alias} in
1532 "") target_noncanonical=${host_noncanonical} ;;
1533 *) target_noncanonical=${target_alias} ;;
1534 esac
1535
1536
1537 # This works around an automake problem.
1538 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1539
1540
1541 # Find a good install program. We prefer a C program (faster),
1542 # so one script is as good as another. But avoid the broken or
1543 # incompatible versions:
1544 # SysV /etc/install, /usr/sbin/install
1545 # SunOS /usr/etc/install
1546 # IRIX /sbin/install
1547 # AIX /bin/install
1548 # AmigaOS /C/install, which installs bootblocks on floppy discs
1549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1552 # ./install, which can be erroneously created by make from ./install.sh.
1553 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1554 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1555 if test -z "$INSTALL"; then
1556 if test "${ac_cv_path_install+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 else
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 for as_dir in $PATH
1561 do
1562 IFS=$as_save_IFS
1563 test -z "$as_dir" && as_dir=.
1564 # Account for people who put trailing slashes in PATH elements.
1565 case $as_dir/ in
1566 ./ | .// | /cC/* | \
1567 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1568 /usr/ucb/* ) ;;
1569 *)
1570 # OSF1 and SCO ODT 3.0 have their own names for install.
1571 # Don't use installbsd from OSF since it installs stuff as root
1572 # by default.
1573 for ac_prog in ginstall scoinst install; do
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1576 if test $ac_prog = install &&
1577 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1578 # AIX install. It has an incompatible calling convention.
1579 :
1580 elif test $ac_prog = install &&
1581 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1582 # program-specific install script used by HP pwplus--don't use.
1583 :
1584 else
1585 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1586 break 3
1587 fi
1588 fi
1589 done
1590 done
1591 ;;
1592 esac
1593 done
1594
1595
1596 fi
1597 if test "${ac_cv_path_install+set}" = set; then
1598 INSTALL=$ac_cv_path_install
1599 else
1600 # As a last resort, use the slow shell script. We don't cache a
1601 # path for INSTALL within a source directory, because that will
1602 # break other packages using the cache if that directory is
1603 # removed, or if the path is relative.
1604 INSTALL=$ac_install_sh
1605 fi
1606 fi
1607 echo "$as_me:$LINENO: result: $INSTALL" >&5
1608 echo "${ECHO_T}$INSTALL" >&6
1609
1610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1611 # It thinks the first close brace ends the variable substitution.
1612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1613
1614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1615
1616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1617
1618 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1619 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1620 # Just in case
1621 sleep 1
1622 echo timestamp > conftestfile
1623 # Do `set' in a subshell so we don't clobber the current shell's
1624 # arguments. Must try -L first in case configure is actually a
1625 # symlink; some systems play weird games with the mod time of symlinks
1626 # (eg FreeBSD returns the mod time of the symlink's containing
1627 # directory).
1628 if (
1629 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1630 if test "$*" = "X"; then
1631 # -L didn't work.
1632 set X `ls -t $srcdir/configure conftestfile`
1633 fi
1634 if test "$*" != "X $srcdir/configure conftestfile" \
1635 && test "$*" != "X conftestfile $srcdir/configure"; then
1636
1637 # If neither matched, then we have a broken ls. This can happen
1638 # if, for instance, CONFIG_SHELL is bash and it inherits a
1639 # broken ls alias from the environment. This has actually
1640 # happened. Such a system could not be considered "sane".
1641 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1642 alias in your environment" >&5
1643 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1644 alias in your environment" >&2;}
1645 { (exit 1); exit 1; }; }
1646 fi
1647
1648 test "$2" = conftestfile
1649 )
1650 then
1651 # Ok.
1652 :
1653 else
1654 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1655 Check your system clock" >&5
1656 echo "$as_me: error: newly created file is older than distributed files!
1657 Check your system clock" >&2;}
1658 { (exit 1); exit 1; }; }
1659 fi
1660 rm -f conftest*
1661 echo "$as_me:$LINENO: result: yes" >&5
1662 echo "${ECHO_T}yes" >&6
1663 test "$program_prefix" != NONE &&
1664 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1665 # Use a double $ so make ignores it.
1666 test "$program_suffix" != NONE &&
1667 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1668 # Double any \ or $. echo might interpret backslashes.
1669 # By default was `s,x,x', remove it if useless.
1670 cat <<\_ACEOF >conftest.sed
1671 s/[\\$]/&&/g;s/;s,x,x,$//
1672 _ACEOF
1673 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1674 rm conftest.sed
1675
1676 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1677 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1678 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1679 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 else
1682 cat >conftest.make <<\_ACEOF
1683 all:
1684 @echo 'ac_maketemp="$(MAKE)"'
1685 _ACEOF
1686 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1687 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1688 if test -n "$ac_maketemp"; then
1689 eval ac_cv_prog_make_${ac_make}_set=yes
1690 else
1691 eval ac_cv_prog_make_${ac_make}_set=no
1692 fi
1693 rm -f conftest.make
1694 fi
1695 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1696 echo "$as_me:$LINENO: result: yes" >&5
1697 echo "${ECHO_T}yes" >&6
1698 SET_MAKE=
1699 else
1700 echo "$as_me:$LINENO: result: no" >&5
1701 echo "${ECHO_T}no" >&6
1702 SET_MAKE="MAKE=${MAKE-make}"
1703 fi
1704
1705
1706
1707
1708 PACKAGE=gc
1709
1710 VERSION=6.1a1
1711
1712 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1713 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1714 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1715 { (exit 1); exit 1; }; }
1716 fi
1717
1718
1719
1720 missing_dir=`cd $ac_aux_dir && pwd`
1721 echo "$as_me:$LINENO: checking for working aclocal" >&5
1722 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1723 # Run test in a subshell; some versions of sh will print an error if
1724 # an executable is not found, even if stderr is redirected.
1725 # Redirect stdin to placate older versions of autoconf. Sigh.
1726 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1727 ACLOCAL=aclocal
1728 echo "$as_me:$LINENO: result: found" >&5
1729 echo "${ECHO_T}found" >&6
1730 else
1731 ACLOCAL="$missing_dir/missing aclocal"
1732 echo "$as_me:$LINENO: result: missing" >&5
1733 echo "${ECHO_T}missing" >&6
1734 fi
1735
1736 echo "$as_me:$LINENO: checking for working autoconf" >&5
1737 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1738 # Run test in a subshell; some versions of sh will print an error if
1739 # an executable is not found, even if stderr is redirected.
1740 # Redirect stdin to placate older versions of autoconf. Sigh.
1741 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1742 AUTOCONF=autoconf
1743 echo "$as_me:$LINENO: result: found" >&5
1744 echo "${ECHO_T}found" >&6
1745 else
1746 AUTOCONF="$missing_dir/missing autoconf"
1747 echo "$as_me:$LINENO: result: missing" >&5
1748 echo "${ECHO_T}missing" >&6
1749 fi
1750
1751 echo "$as_me:$LINENO: checking for working automake" >&5
1752 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1753 # Run test in a subshell; some versions of sh will print an error if
1754 # an executable is not found, even if stderr is redirected.
1755 # Redirect stdin to placate older versions of autoconf. Sigh.
1756 if (automake --version) < /dev/null > /dev/null 2>&1; then
1757 AUTOMAKE=automake
1758 echo "$as_me:$LINENO: result: found" >&5
1759 echo "${ECHO_T}found" >&6
1760 else
1761 AUTOMAKE="$missing_dir/missing automake"
1762 echo "$as_me:$LINENO: result: missing" >&5
1763 echo "${ECHO_T}missing" >&6
1764 fi
1765
1766 echo "$as_me:$LINENO: checking for working autoheader" >&5
1767 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1768 # Run test in a subshell; some versions of sh will print an error if
1769 # an executable is not found, even if stderr is redirected.
1770 # Redirect stdin to placate older versions of autoconf. Sigh.
1771 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1772 AUTOHEADER=autoheader
1773 echo "$as_me:$LINENO: result: found" >&5
1774 echo "${ECHO_T}found" >&6
1775 else
1776 AUTOHEADER="$missing_dir/missing autoheader"
1777 echo "$as_me:$LINENO: result: missing" >&5
1778 echo "${ECHO_T}missing" >&6
1779 fi
1780
1781 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1782 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1783 # Run test in a subshell; some versions of sh will print an error if
1784 # an executable is not found, even if stderr is redirected.
1785 # Redirect stdin to placate older versions of autoconf. Sigh.
1786 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1787 MAKEINFO=makeinfo
1788 echo "$as_me:$LINENO: result: found" >&5
1789 echo "${ECHO_T}found" >&6
1790 else
1791 MAKEINFO="$missing_dir/missing makeinfo"
1792 echo "$as_me:$LINENO: result: missing" >&5
1793 echo "${ECHO_T}missing" >&6
1794 fi
1795
1796
1797
1798 # The autoconf 2.5x version of the no-executables hack.
1799 # GCC_NO_EXECUTABLES
1800 # -----------------
1801 # FIXME: The GCC team has specific needs which the current Autoconf
1802 # framework cannot solve elegantly. This macro implements a dirty
1803 # hack until Autoconf is able to provide the services its users
1804 # need.
1805 #
1806 # Several of the support libraries that are often built with GCC can't
1807 # assume the tool-chain is already capable of linking a program: the
1808 # compiler often expects to be able to link with some of such
1809 # libraries.
1810 #
1811 # In several of these libraries, workarounds have been introduced to
1812 # avoid the AC_PROG_CC_WORKS test, that would just abort their
1813 # configuration. The introduction of AC_EXEEXT, enabled either by
1814 # libtool or by CVS autoconf, have just made matters worse.
1815 #
1816 # Unlike the previous AC_NO_EXECUTABLES, this test does not
1817 # disable link tests at autoconf time, but at configure time.
1818 # This allows AC_NO_EXECUTABLES to be invoked conditionally.
1819 # GCC_NO_EXECUTABLES
1820
1821
1822
1823 # Yak. We must force CC and CXX to /not/ be precious variables; otherwise
1824 # the wrong, non-multilib-adjusted value will be used in multilibs.
1825 # As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
1826
1827
1828
1829 ac_ext=c
1830 ac_cpp='$CPP $CPPFLAGS'
1831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1834 if test -n "$ac_tool_prefix"; then
1835 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1836 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1837 echo "$as_me:$LINENO: checking for $ac_word" >&5
1838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1839 if test "${ac_cv_prog_CC+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 else
1842 if test -n "$CC"; then
1843 ac_cv_prog_CC="$CC" # Let the user override the test.
1844 else
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 for as_dir in $PATH
1847 do
1848 IFS=$as_save_IFS
1849 test -z "$as_dir" && as_dir=.
1850 for ac_exec_ext in '' $ac_executable_extensions; do
1851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1852 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854 break 2
1855 fi
1856 done
1857 done
1858
1859 fi
1860 fi
1861 CC=$ac_cv_prog_CC
1862 if test -n "$CC"; then
1863 echo "$as_me:$LINENO: result: $CC" >&5
1864 echo "${ECHO_T}$CC" >&6
1865 else
1866 echo "$as_me:$LINENO: result: no" >&5
1867 echo "${ECHO_T}no" >&6
1868 fi
1869
1870 fi
1871 if test -z "$ac_cv_prog_CC"; then
1872 ac_ct_CC=$CC
1873 # Extract the first word of "gcc", so it can be a program name with args.
1874 set dummy gcc; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880 if test -n "$ac_ct_CC"; then
1881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1882 else
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1885 do
1886 IFS=$as_save_IFS
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890 ac_cv_prog_ac_ct_CC="gcc"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 break 2
1893 fi
1894 done
1895 done
1896
1897 fi
1898 fi
1899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1900 if test -n "$ac_ct_CC"; then
1901 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1902 echo "${ECHO_T}$ac_ct_CC" >&6
1903 else
1904 echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1906 fi
1907
1908 CC=$ac_ct_CC
1909 else
1910 CC="$ac_cv_prog_CC"
1911 fi
1912
1913 if test -z "$CC"; then
1914 if test -n "$ac_tool_prefix"; then
1915 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1916 set dummy ${ac_tool_prefix}cc; ac_word=$2
1917 echo "$as_me:$LINENO: checking for $ac_word" >&5
1918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919 if test "${ac_cv_prog_CC+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922 if test -n "$CC"; then
1923 ac_cv_prog_CC="$CC" # Let the user override the test.
1924 else
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 for as_dir in $PATH
1927 do
1928 IFS=$as_save_IFS
1929 test -z "$as_dir" && as_dir=.
1930 for ac_exec_ext in '' $ac_executable_extensions; do
1931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932 ac_cv_prog_CC="${ac_tool_prefix}cc"
1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 break 2
1935 fi
1936 done
1937 done
1938
1939 fi
1940 fi
1941 CC=$ac_cv_prog_CC
1942 if test -n "$CC"; then
1943 echo "$as_me:$LINENO: result: $CC" >&5
1944 echo "${ECHO_T}$CC" >&6
1945 else
1946 echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6
1948 fi
1949
1950 fi
1951 if test -z "$ac_cv_prog_CC"; then
1952 ac_ct_CC=$CC
1953 # Extract the first word of "cc", so it can be a program name with args.
1954 set dummy cc; ac_word=$2
1955 echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960 if test -n "$ac_ct_CC"; then
1961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1962 else
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970 ac_cv_prog_ac_ct_CC="cc"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972 break 2
1973 fi
1974 done
1975 done
1976
1977 fi
1978 fi
1979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1980 if test -n "$ac_ct_CC"; then
1981 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1982 echo "${ECHO_T}$ac_ct_CC" >&6
1983 else
1984 echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6
1986 fi
1987
1988 CC=$ac_ct_CC
1989 else
1990 CC="$ac_cv_prog_CC"
1991 fi
1992
1993 fi
1994 if test -z "$CC"; then
1995 # Extract the first word of "cc", so it can be a program name with args.
1996 set dummy cc; ac_word=$2
1997 echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999 if test "${ac_cv_prog_CC+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002 if test -n "$CC"; then
2003 ac_cv_prog_CC="$CC" # Let the user override the test.
2004 else
2005 ac_prog_rejected=no
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2008 do
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2014 ac_prog_rejected=yes
2015 continue
2016 fi
2017 ac_cv_prog_CC="cc"
2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019 break 2
2020 fi
2021 done
2022 done
2023
2024 if test $ac_prog_rejected = yes; then
2025 # We found a bogon in the path, so make sure we never use it.
2026 set dummy $ac_cv_prog_CC
2027 shift
2028 if test $# != 0; then
2029 # We chose a different compiler from the bogus one.
2030 # However, it has the same basename, so the bogon will be chosen
2031 # first if we set CC to just the basename; use the full file name.
2032 shift
2033 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2034 fi
2035 fi
2036 fi
2037 fi
2038 CC=$ac_cv_prog_CC
2039 if test -n "$CC"; then
2040 echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6
2042 else
2043 echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6
2045 fi
2046
2047 fi
2048 if test -z "$CC"; then
2049 if test -n "$ac_tool_prefix"; then
2050 for ac_prog in cl
2051 do
2052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2054 echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056 if test "${ac_cv_prog_CC+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059 if test -n "$CC"; then
2060 ac_cv_prog_CC="$CC" # Let the user override the test.
2061 else
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065 IFS=$as_save_IFS
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 break 2
2072 fi
2073 done
2074 done
2075
2076 fi
2077 fi
2078 CC=$ac_cv_prog_CC
2079 if test -n "$CC"; then
2080 echo "$as_me:$LINENO: result: $CC" >&5
2081 echo "${ECHO_T}$CC" >&6
2082 else
2083 echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6
2085 fi
2086
2087 test -n "$CC" && break
2088 done
2089 fi
2090 if test -z "$CC"; then
2091 ac_ct_CC=$CC
2092 for ac_prog in cl
2093 do
2094 # Extract the first word of "$ac_prog", so it can be a program name with args.
2095 set dummy $ac_prog; ac_word=$2
2096 echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101 if test -n "$ac_ct_CC"; then
2102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2103 else
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2106 do
2107 IFS=$as_save_IFS
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111 ac_cv_prog_ac_ct_CC="$ac_prog"
2112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 break 2
2114 fi
2115 done
2116 done
2117
2118 fi
2119 fi
2120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2121 if test -n "$ac_ct_CC"; then
2122 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2123 echo "${ECHO_T}$ac_ct_CC" >&6
2124 else
2125 echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6
2127 fi
2128
2129 test -n "$ac_ct_CC" && break
2130 done
2131
2132 CC=$ac_ct_CC
2133 fi
2134
2135 fi
2136
2137
2138 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2139 See \`config.log' for more details." >&5
2140 echo "$as_me: error: no acceptable C compiler found in \$PATH
2141 See \`config.log' for more details." >&2;}
2142 { (exit 1); exit 1; }; }
2143
2144 # Provide some information about the compiler.
2145 echo "$as_me:$LINENO:" \
2146 "checking for C compiler version" >&5
2147 ac_compiler=`set X $ac_compile; echo $2`
2148 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2149 (eval $ac_compiler --version </dev/null >&5) 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }
2153 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2154 (eval $ac_compiler -v </dev/null >&5) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }
2158 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2159 (eval $ac_compiler -V </dev/null >&5) 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }
2163
2164 cat >conftest.$ac_ext <<_ACEOF
2165 #line $LINENO "configure"
2166 /* confdefs.h. */
2167 _ACEOF
2168 cat confdefs.h >>conftest.$ac_ext
2169 cat >>conftest.$ac_ext <<_ACEOF
2170 /* end confdefs.h. */
2171
2172 int
2173 main ()
2174 {
2175
2176 ;
2177 return 0;
2178 }
2179 _ACEOF
2180 # FIXME: Cleanup?
2181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2182 (eval $ac_link) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; then
2186 gcc_no_link=no
2187 else
2188 gcc_no_link=yes
2189 fi
2190
2191 if test x$gcc_no_link = xyes; then
2192 # Setting cross_compile will disable run tests; it will
2193 # also disable AC_CHECK_FILE but that's generally
2194 # correct if we can't link.
2195 cross_compiling=yes
2196 EXEEXT=
2197 else
2198 cat >conftest.$ac_ext <<_ACEOF
2199 #line $LINENO "configure"
2200 /* confdefs.h. */
2201 _ACEOF
2202 cat confdefs.h >>conftest.$ac_ext
2203 cat >>conftest.$ac_ext <<_ACEOF
2204 /* end confdefs.h. */
2205
2206 int
2207 main ()
2208 {
2209
2210 ;
2211 return 0;
2212 }
2213 _ACEOF
2214 ac_clean_files_save=$ac_clean_files
2215 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2216 # Try to create an executable without -o first, disregard a.out.
2217 # It will help us diagnose broken compilers, and finding out an intuition
2218 # of exeext.
2219 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2220 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2221 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2222 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2223 (eval $ac_link_default) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; then
2227 # Find the output, starting from the most likely. This scheme is
2228 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2229 # resort.
2230
2231 # Be careful to initialize this variable, since it used to be cached.
2232 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2233 ac_cv_exeext=
2234 # b.out is created by i960 compilers.
2235 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2236 do
2237 test -f "$ac_file" || continue
2238 case $ac_file in
2239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2240 ;;
2241 conftest.$ac_ext )
2242 # This is the source file.
2243 ;;
2244 [ab].out )
2245 # We found the default executable, but exeext='' is most
2246 # certainly right.
2247 break;;
2248 *.* )
2249 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2250 # FIXME: I believe we export ac_cv_exeext for Libtool,
2251 # but it would be cool to find out if it's true. Does anybody
2252 # maintain Libtool? --akim.
2253 export ac_cv_exeext
2254 break;;
2255 * )
2256 break;;
2257 esac
2258 done
2259 else
2260 echo "$as_me: failed program was:" >&5
2261 sed 's/^/| /' conftest.$ac_ext >&5
2262
2263 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: C compiler cannot create executables
2266 See \`config.log' for more details." >&2;}
2267 { (exit 77); exit 77; }; }
2268 fi
2269
2270 ac_exeext=$ac_cv_exeext
2271 echo "$as_me:$LINENO: result: $ac_file" >&5
2272 echo "${ECHO_T}$ac_file" >&6
2273
2274 # Check the compiler produces executables we can run. If not, either
2275 # the compiler is broken, or we cross compile.
2276 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2277 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2278 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2279 # If not cross compiling, check that we can run a simple program.
2280 if test "$cross_compiling" != yes; then
2281 if { ac_try='./$ac_file'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2287 cross_compiling=no
2288 else
2289 if test "$cross_compiling" = maybe; then
2290 cross_compiling=yes
2291 else
2292 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2293 If you meant to cross compile, use \`--host'.
2294 See \`config.log' for more details." >&5
2295 echo "$as_me: error: cannot run C compiled programs.
2296 If you meant to cross compile, use \`--host'.
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2299 fi
2300 fi
2301 fi
2302 echo "$as_me:$LINENO: result: yes" >&5
2303 echo "${ECHO_T}yes" >&6
2304
2305 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2306 ac_clean_files=$ac_clean_files_save
2307 # Check the compiler produces executables we can run. If not, either
2308 # the compiler is broken, or we cross compile.
2309 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2310 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2311 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2312 echo "${ECHO_T}$cross_compiling" >&6
2313
2314 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2315 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2317 (eval $ac_link) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; then
2321 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2322 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2323 # work properly (i.e., refer to `conftest.exe'), while it won't with
2324 # `rm'.
2325 for ac_file in conftest.exe conftest conftest.*; do
2326 test -f "$ac_file" || continue
2327 case $ac_file in
2328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2329 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2330 export ac_cv_exeext
2331 break;;
2332 * ) break;;
2333 esac
2334 done
2335 else
2336 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2337 See \`config.log' for more details." >&5
2338 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2339 See \`config.log' for more details." >&2;}
2340 { (exit 1); exit 1; }; }
2341 fi
2342
2343 rm -f conftest$ac_cv_exeext
2344 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2345 echo "${ECHO_T}$ac_cv_exeext" >&6
2346
2347 rm -f conftest.$ac_ext
2348 EXEEXT=$ac_cv_exeext
2349 ac_exeext=$EXEEXT
2350 fi
2351 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2352 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2353 if test "${ac_cv_objext+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356 cat >conftest.$ac_ext <<_ACEOF
2357 #line $LINENO "configure"
2358 /* confdefs.h. */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2363
2364 int
2365 main ()
2366 {
2367
2368 ;
2369 return 0;
2370 }
2371 _ACEOF
2372 rm -f conftest.o conftest.obj
2373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374 (eval $ac_compile) 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; then
2378 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2379 case $ac_file in
2380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2381 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2382 break;;
2383 esac
2384 done
2385 else
2386 echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2392 See \`config.log' for more details." >&2;}
2393 { (exit 1); exit 1; }; }
2394 fi
2395
2396 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2397 fi
2398 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2399 echo "${ECHO_T}$ac_cv_objext" >&6
2400 OBJEXT=$ac_cv_objext
2401 ac_objext=$OBJEXT
2402 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2403 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2404 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407 cat >conftest.$ac_ext <<_ACEOF
2408 #line $LINENO "configure"
2409 /* confdefs.h. */
2410 _ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2414
2415 int
2416 main ()
2417 {
2418 #ifndef __GNUC__
2419 choke me
2420 #endif
2421
2422 ;
2423 return 0;
2424 }
2425 _ACEOF
2426 rm -f conftest.$ac_objext
2427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428 (eval $ac_compile) 2>&5
2429 ac_status=$?
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); } &&
2432 { ac_try='test -s conftest.$ac_objext'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 (eval $ac_try) 2>&5
2435 ac_status=$?
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; }; then
2438 ac_compiler_gnu=yes
2439 else
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2442
2443 ac_compiler_gnu=no
2444 fi
2445 rm -f conftest.$ac_objext conftest.$ac_ext
2446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2447
2448 fi
2449 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2450 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2451 GCC=`test $ac_compiler_gnu = yes && echo yes`
2452 ac_test_CFLAGS=${CFLAGS+set}
2453 ac_save_CFLAGS=$CFLAGS
2454 CFLAGS="-g"
2455 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2456 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2457 if test "${ac_cv_prog_cc_g+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460 cat >conftest.$ac_ext <<_ACEOF
2461 #line $LINENO "configure"
2462 /* confdefs.h. */
2463 _ACEOF
2464 cat confdefs.h >>conftest.$ac_ext
2465 cat >>conftest.$ac_ext <<_ACEOF
2466 /* end confdefs.h. */
2467
2468 int
2469 main ()
2470 {
2471
2472 ;
2473 return 0;
2474 }
2475 _ACEOF
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478 (eval $ac_compile) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 (eval $ac_try) 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2488 ac_cv_prog_cc_g=yes
2489 else
2490 echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2492
2493 ac_cv_prog_cc_g=no
2494 fi
2495 rm -f conftest.$ac_objext conftest.$ac_ext
2496 fi
2497 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2498 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2499 if test "$ac_test_CFLAGS" = set; then
2500 CFLAGS=$ac_save_CFLAGS
2501 elif test $ac_cv_prog_cc_g = yes; then
2502 if test "$GCC" = yes; then
2503 CFLAGS="-g -O2"
2504 else
2505 CFLAGS="-g"
2506 fi
2507 else
2508 if test "$GCC" = yes; then
2509 CFLAGS="-O2"
2510 else
2511 CFLAGS=
2512 fi
2513 fi
2514 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2515 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2516 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519 ac_cv_prog_cc_stdc=no
2520 ac_save_CC=$CC
2521 cat >conftest.$ac_ext <<_ACEOF
2522 #line $LINENO "configure"
2523 /* confdefs.h. */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2528 #include <stdarg.h>
2529 #include <stdio.h>
2530 #include <sys/types.h>
2531 #include <sys/stat.h>
2532 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2533 struct buf { int x; };
2534 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2535 static char *e (p, i)
2536 char **p;
2537 int i;
2538 {
2539 return p[i];
2540 }
2541 static char *f (char * (*g) (char **, int), char **p, ...)
2542 {
2543 char *s;
2544 va_list v;
2545 va_start (v,p);
2546 s = g (p, va_arg (v,int));
2547 va_end (v);
2548 return s;
2549 }
2550 int test (int i, double x);
2551 struct s1 {int (*f) (int a);};
2552 struct s2 {int (*f) (double a);};
2553 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2554 int argc;
2555 char **argv;
2556 int
2557 main ()
2558 {
2559 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2560 ;
2561 return 0;
2562 }
2563 _ACEOF
2564 # Don't try gcc -ansi; that turns off useful extensions and
2565 # breaks some systems' header files.
2566 # AIX -qlanglvl=ansi
2567 # Ultrix and OSF/1 -std1
2568 # HP-UX 10.20 and later -Ae
2569 # HP-UX older versions -Aa -D_HPUX_SOURCE
2570 # SVR4 -Xc -D__EXTENSIONS__
2571 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2572 do
2573 CC="$ac_save_CC $ac_arg"
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576 (eval $ac_compile) 2>&5
2577 ac_status=$?
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
2580 { ac_try='test -s conftest.$ac_objext'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 (eval $ac_try) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2586 ac_cv_prog_cc_stdc=$ac_arg
2587 break
2588 else
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2591
2592 fi
2593 rm -f conftest.$ac_objext
2594 done
2595 rm -f conftest.$ac_ext conftest.$ac_objext
2596 CC=$ac_save_CC
2597
2598 fi
2599
2600 case "x$ac_cv_prog_cc_stdc" in
2601 x|xno)
2602 echo "$as_me:$LINENO: result: none needed" >&5
2603 echo "${ECHO_T}none needed" >&6 ;;
2604 *)
2605 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2606 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2607 CC="$CC $ac_cv_prog_cc_stdc" ;;
2608 esac
2609
2610 # Some people use a C++ compiler to compile C. Since we use `exit',
2611 # in C++ we need to declare it. In case someone uses the same compiler
2612 # for both compiling C and C++ we need to have the C++ compiler decide
2613 # the declaration of exit, since it's the most demanding environment.
2614 cat >conftest.$ac_ext <<_ACEOF
2615 #ifndef __cplusplus
2616 choke me
2617 #endif
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2631 for ac_declaration in \
2632 '' \
2633 'extern "C" void std::exit (int) throw (); using std::exit;' \
2634 'extern "C" void std::exit (int); using std::exit;' \
2635 'extern "C" void exit (int) throw ();' \
2636 'extern "C" void exit (int);' \
2637 'void exit (int);'
2638 do
2639 cat >conftest.$ac_ext <<_ACEOF
2640 #line $LINENO "configure"
2641 /* confdefs.h. */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2646 $ac_declaration
2647 #include <stdlib.h>
2648 int
2649 main ()
2650 {
2651 exit (42);
2652 ;
2653 return 0;
2654 }
2655 _ACEOF
2656 rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658 (eval $ac_compile) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); } &&
2662 { ac_try='test -s conftest.$ac_objext'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2668 :
2669 else
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2672
2673 continue
2674 fi
2675 rm -f conftest.$ac_objext conftest.$ac_ext
2676 cat >conftest.$ac_ext <<_ACEOF
2677 #line $LINENO "configure"
2678 /* confdefs.h. */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2683 $ac_declaration
2684 int
2685 main ()
2686 {
2687 exit (42);
2688 ;
2689 return 0;
2690 }
2691 _ACEOF
2692 rm -f conftest.$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } &&
2698 { ac_try='test -s conftest.$ac_objext'
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 (eval $ac_try) 2>&5
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; }; then
2704 break
2705 else
2706 echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2708
2709 fi
2710 rm -f conftest.$ac_objext conftest.$ac_ext
2711 done
2712 rm -f conftest*
2713 if test -n "$ac_declaration"; then
2714 echo '#ifdef __cplusplus' >>confdefs.h
2715 echo $ac_declaration >>confdefs.h
2716 echo '#endif' >>confdefs.h
2717 fi
2718
2719 else
2720 echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2722
2723 fi
2724 rm -f conftest.$ac_objext conftest.$ac_ext
2725 ac_ext=c
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730
2731 ac_ext=cc
2732 ac_cpp='$CXXCPP $CPPFLAGS'
2733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2736 if test -n "$ac_tool_prefix"; then
2737 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2738 do
2739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2740 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2741 echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2743 if test "${ac_cv_prog_CXX+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 else
2746 if test -n "$CXX"; then
2747 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760 done
2761 done
2762
2763 fi
2764 fi
2765 CXX=$ac_cv_prog_CXX
2766 if test -n "$CXX"; then
2767 echo "$as_me:$LINENO: result: $CXX" >&5
2768 echo "${ECHO_T}$CXX" >&6
2769 else
2770 echo "$as_me:$LINENO: result: no" >&5
2771 echo "${ECHO_T}no" >&6
2772 fi
2773
2774 test -n "$CXX" && break
2775 done
2776 fi
2777 if test -z "$CXX"; then
2778 ac_ct_CXX=$CXX
2779 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2780 do
2781 # Extract the first word of "$ac_prog", so it can be a program name with args.
2782 set dummy $ac_prog; ac_word=$2
2783 echo "$as_me:$LINENO: checking for $ac_word" >&5
2784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2785 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788 if test -n "$ac_ct_CXX"; then
2789 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2798 ac_cv_prog_ac_ct_CXX="$ac_prog"
2799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 break 2
2801 fi
2802 done
2803 done
2804
2805 fi
2806 fi
2807 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2808 if test -n "$ac_ct_CXX"; then
2809 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2810 echo "${ECHO_T}$ac_ct_CXX" >&6
2811 else
2812 echo "$as_me:$LINENO: result: no" >&5
2813 echo "${ECHO_T}no" >&6
2814 fi
2815
2816 test -n "$ac_ct_CXX" && break
2817 done
2818 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2819
2820 CXX=$ac_ct_CXX
2821 fi
2822
2823
2824 # Provide some information about the compiler.
2825 echo "$as_me:$LINENO:" \
2826 "checking for C++ compiler version" >&5
2827 ac_compiler=`set X $ac_compile; echo $2`
2828 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2829 (eval $ac_compiler --version </dev/null >&5) 2>&5
2830 ac_status=$?
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }
2833 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2834 (eval $ac_compiler -v </dev/null >&5) 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }
2838 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2839 (eval $ac_compiler -V </dev/null >&5) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }
2843
2844 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2845 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2846 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849 cat >conftest.$ac_ext <<_ACEOF
2850 #line $LINENO "configure"
2851 /* confdefs.h. */
2852 _ACEOF
2853 cat confdefs.h >>conftest.$ac_ext
2854 cat >>conftest.$ac_ext <<_ACEOF
2855 /* end confdefs.h. */
2856
2857 int
2858 main ()
2859 {
2860 #ifndef __GNUC__
2861 choke me
2862 #endif
2863
2864 ;
2865 return 0;
2866 }
2867 _ACEOF
2868 rm -f conftest.$ac_objext
2869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2870 (eval $ac_compile) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } &&
2874 { ac_try='test -s conftest.$ac_objext'
2875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876 (eval $ac_try) 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; }; then
2880 ac_compiler_gnu=yes
2881 else
2882 echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2884
2885 ac_compiler_gnu=no
2886 fi
2887 rm -f conftest.$ac_objext conftest.$ac_ext
2888 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2889
2890 fi
2891 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2892 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2893 GXX=`test $ac_compiler_gnu = yes && echo yes`
2894 ac_test_CXXFLAGS=${CXXFLAGS+set}
2895 ac_save_CXXFLAGS=$CXXFLAGS
2896 CXXFLAGS="-g"
2897 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2898 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2899 if test "${ac_cv_prog_cxx_g+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902 cat >conftest.$ac_ext <<_ACEOF
2903 #line $LINENO "configure"
2904 /* confdefs.h. */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2909
2910 int
2911 main ()
2912 {
2913
2914 ;
2915 return 0;
2916 }
2917 _ACEOF
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920 (eval $ac_compile) 2>&5
2921 ac_status=$?
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } &&
2924 { ac_try='test -s conftest.$ac_objext'
2925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 (eval $ac_try) 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; }; then
2930 ac_cv_prog_cxx_g=yes
2931 else
2932 echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2934
2935 ac_cv_prog_cxx_g=no
2936 fi
2937 rm -f conftest.$ac_objext conftest.$ac_ext
2938 fi
2939 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2940 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2941 if test "$ac_test_CXXFLAGS" = set; then
2942 CXXFLAGS=$ac_save_CXXFLAGS
2943 elif test $ac_cv_prog_cxx_g = yes; then
2944 if test "$GXX" = yes; then
2945 CXXFLAGS="-g -O2"
2946 else
2947 CXXFLAGS="-g"
2948 fi
2949 else
2950 if test "$GXX" = yes; then
2951 CXXFLAGS="-O2"
2952 else
2953 CXXFLAGS=
2954 fi
2955 fi
2956 for ac_declaration in \
2957 '' \
2958 'extern "C" void std::exit (int) throw (); using std::exit;' \
2959 'extern "C" void std::exit (int); using std::exit;' \
2960 'extern "C" void exit (int) throw ();' \
2961 'extern "C" void exit (int);' \
2962 'void exit (int);'
2963 do
2964 cat >conftest.$ac_ext <<_ACEOF
2965 #line $LINENO "configure"
2966 /* confdefs.h. */
2967 _ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2971 $ac_declaration
2972 #include <stdlib.h>
2973 int
2974 main ()
2975 {
2976 exit (42);
2977 ;
2978 return 0;
2979 }
2980 _ACEOF
2981 rm -f conftest.$ac_objext
2982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2983 (eval $ac_compile) 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); } &&
2987 { ac_try='test -s conftest.$ac_objext'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 (eval $ac_try) 2>&5
2990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; }; then
2993 :
2994 else
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998 continue
2999 fi
3000 rm -f conftest.$ac_objext conftest.$ac_ext
3001 cat >conftest.$ac_ext <<_ACEOF
3002 #line $LINENO "configure"
3003 /* confdefs.h. */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3008 $ac_declaration
3009 int
3010 main ()
3011 {
3012 exit (42);
3013 ;
3014 return 0;
3015 }
3016 _ACEOF
3017 rm -f conftest.$ac_objext
3018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3019 (eval $ac_compile) 2>&5
3020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); } &&
3023 { ac_try='test -s conftest.$ac_objext'
3024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025 (eval $ac_try) 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
3029 break
3030 else
3031 echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3033
3034 fi
3035 rm -f conftest.$ac_objext conftest.$ac_ext
3036 done
3037 rm -f conftest*
3038 if test -n "$ac_declaration"; then
3039 echo '#ifdef __cplusplus' >>confdefs.h
3040 echo $ac_declaration >>confdefs.h
3041 echo '#endif' >>confdefs.h
3042 fi
3043
3044 ac_ext=c
3045 ac_cpp='$CPP $CPPFLAGS'
3046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3049
3050
3051
3052
3053
3054
3055 if test -n "$ac_tool_prefix"; then
3056 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3057 set dummy ${ac_tool_prefix}as; ac_word=$2
3058 echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3060 if test "${ac_cv_prog_AS+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063 if test -n "$AS"; then
3064 ac_cv_prog_AS="$AS" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3068 do
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073 ac_cv_prog_AS="${ac_tool_prefix}as"
3074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3076 fi
3077 done
3078 done
3079
3080 fi
3081 fi
3082 AS=$ac_cv_prog_AS
3083 if test -n "$AS"; then
3084 echo "$as_me:$LINENO: result: $AS" >&5
3085 echo "${ECHO_T}$AS" >&6
3086 else
3087 echo "$as_me:$LINENO: result: no" >&5
3088 echo "${ECHO_T}no" >&6
3089 fi
3090
3091 fi
3092 if test -z "$ac_cv_prog_AS"; then
3093 ac_ct_AS=$AS
3094 # Extract the first word of "as", so it can be a program name with args.
3095 set dummy as; ac_word=$2
3096 echo "$as_me:$LINENO: checking for $ac_word" >&5
3097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3098 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 else
3101 if test -n "$ac_ct_AS"; then
3102 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_ac_ct_AS="as"
3112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3114 fi
3115 done
3116 done
3117
3118 fi
3119 fi
3120 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3121 if test -n "$ac_ct_AS"; then
3122 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3123 echo "${ECHO_T}$ac_ct_AS" >&6
3124 else
3125 echo "$as_me:$LINENO: result: no" >&5
3126 echo "${ECHO_T}no" >&6
3127 fi
3128
3129 AS=$ac_ct_AS
3130 else
3131 AS="$ac_cv_prog_AS"
3132 fi
3133
3134 if test -n "$ac_tool_prefix"; then
3135 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3136 set dummy ${ac_tool_prefix}ar; ac_word=$2
3137 echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3139 if test "${ac_cv_prog_AR+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142 if test -n "$AR"; then
3143 ac_cv_prog_AR="$AR" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148 IFS=$as_save_IFS
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152 ac_cv_prog_AR="${ac_tool_prefix}ar"
3153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 break 2
3155 fi
3156 done
3157 done
3158
3159 fi
3160 fi
3161 AR=$ac_cv_prog_AR
3162 if test -n "$AR"; then
3163 echo "$as_me:$LINENO: result: $AR" >&5
3164 echo "${ECHO_T}$AR" >&6
3165 else
3166 echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3168 fi
3169
3170 fi
3171 if test -z "$ac_cv_prog_AR"; then
3172 ac_ct_AR=$AR
3173 # Extract the first word of "ar", so it can be a program name with args.
3174 set dummy ar; ac_word=$2
3175 echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180 if test -n "$ac_ct_AR"; then
3181 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_ac_ct_AR="ar"
3191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3193 fi
3194 done
3195 done
3196
3197 fi
3198 fi
3199 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3200 if test -n "$ac_ct_AR"; then
3201 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3202 echo "${ECHO_T}$ac_ct_AR" >&6
3203 else
3204 echo "$as_me:$LINENO: result: no" >&5
3205 echo "${ECHO_T}no" >&6
3206 fi
3207
3208 AR=$ac_ct_AR
3209 else
3210 AR="$ac_cv_prog_AR"
3211 fi
3212
3213 if test -n "$ac_tool_prefix"; then
3214 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3215 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3216 echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218 if test "${ac_cv_prog_RANLIB+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221 if test -n "$RANLIB"; then
3222 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3234 fi
3235 done
3236 done
3237
3238 fi
3239 fi
3240 RANLIB=$ac_cv_prog_RANLIB
3241 if test -n "$RANLIB"; then
3242 echo "$as_me:$LINENO: result: $RANLIB" >&5
3243 echo "${ECHO_T}$RANLIB" >&6
3244 else
3245 echo "$as_me:$LINENO: result: no" >&5
3246 echo "${ECHO_T}no" >&6
3247 fi
3248
3249 fi
3250 if test -z "$ac_cv_prog_RANLIB"; then
3251 ac_ct_RANLIB=$RANLIB
3252 # Extract the first word of "ranlib", so it can be a program name with args.
3253 set dummy ranlib; ac_word=$2
3254 echo "$as_me:$LINENO: checking for $ac_word" >&5
3255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3256 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 if test -n "$ac_ct_RANLIB"; then
3260 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3261 else
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3264 do
3265 IFS=$as_save_IFS
3266 test -z "$as_dir" && as_dir=.
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269 ac_cv_prog_ac_ct_RANLIB="ranlib"
3270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 break 2
3272 fi
3273 done
3274 done
3275
3276 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3277 fi
3278 fi
3279 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3280 if test -n "$ac_ct_RANLIB"; then
3281 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3282 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3283 else
3284 echo "$as_me:$LINENO: result: no" >&5
3285 echo "${ECHO_T}no" >&6
3286 fi
3287
3288 RANLIB=$ac_ct_RANLIB
3289 else
3290 RANLIB="$ac_cv_prog_RANLIB"
3291 fi
3292
3293
3294 # Find a good install program. We prefer a C program (faster),
3295 # so one script is as good as another. But avoid the broken or
3296 # incompatible versions:
3297 # SysV /etc/install, /usr/sbin/install
3298 # SunOS /usr/etc/install
3299 # IRIX /sbin/install
3300 # AIX /bin/install
3301 # AmigaOS /C/install, which installs bootblocks on floppy discs
3302 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3303 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3304 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3305 # ./install, which can be erroneously created by make from ./install.sh.
3306 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3307 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3308 if test -z "$INSTALL"; then
3309 if test "${ac_cv_path_install+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3314 do
3315 IFS=$as_save_IFS
3316 test -z "$as_dir" && as_dir=.
3317 # Account for people who put trailing slashes in PATH elements.
3318 case $as_dir/ in
3319 ./ | .// | /cC/* | \
3320 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3321 /usr/ucb/* ) ;;
3322 *)
3323 # OSF1 and SCO ODT 3.0 have their own names for install.
3324 # Don't use installbsd from OSF since it installs stuff as root
3325 # by default.
3326 for ac_prog in ginstall scoinst install; do
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3329 if test $ac_prog = install &&
3330 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3331 # AIX install. It has an incompatible calling convention.
3332 :
3333 elif test $ac_prog = install &&
3334 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3335 # program-specific install script used by HP pwplus--don't use.
3336 :
3337 else
3338 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3339 break 3
3340 fi
3341 fi
3342 done
3343 done
3344 ;;
3345 esac
3346 done
3347
3348
3349 fi
3350 if test "${ac_cv_path_install+set}" = set; then
3351 INSTALL=$ac_cv_path_install
3352 else
3353 # As a last resort, use the slow shell script. We don't cache a
3354 # path for INSTALL within a source directory, because that will
3355 # break other packages using the cache if that directory is
3356 # removed, or if the path is relative.
3357 INSTALL=$ac_install_sh
3358 fi
3359 fi
3360 echo "$as_me:$LINENO: result: $INSTALL" >&5
3361 echo "${ECHO_T}$INSTALL" >&6
3362
3363 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3364 # It thinks the first close brace ends the variable substitution.
3365 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3366
3367 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3368
3369 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3370
3371
3372 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3373 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3374 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3375 if test "${enable_maintainer_mode+set}" = set; then
3376 enableval="$enable_maintainer_mode"
3377 USE_MAINTAINER_MODE=$enableval
3378 else
3379 USE_MAINTAINER_MODE=no
3380 fi;
3381 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3382 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3383
3384
3385 if test $USE_MAINTAINER_MODE = yes; then
3386 MAINTAINER_MODE_TRUE=
3387 MAINTAINER_MODE_FALSE='#'
3388 else
3389 MAINTAINER_MODE_TRUE='#'
3390 MAINTAINER_MODE_FALSE=
3391 fi
3392 MAINT=$MAINTAINER_MODE_TRUE
3393
3394
3395
3396 . ${srcdir}/configure.host
3397
3398 case ${gc_basedir} in
3399 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
3400 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
3401 esac
3402
3403 gc_cflags="${gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
3404 case "${host}" in
3405 *-*-cygwin32*)
3406 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
3407 ;;
3408 esac
3409
3410
3411 GC_CFLAGS=${gc_cflags}
3412
3413
3414
3415 # Check whether --enable-shared or --disable-shared was given.
3416 if test "${enable_shared+set}" = set; then
3417 enableval="$enable_shared"
3418 p=${PACKAGE-default}
3419 case $enableval in
3420 yes) enable_shared=yes ;;
3421 no) enable_shared=no ;;
3422 *)
3423 enable_shared=no
3424 # Look at the argument we got. We use all the common list separators.
3425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3426 for pkg in $enableval; do
3427 if test "X$pkg" = "X$p"; then
3428 enable_shared=yes
3429 fi
3430 done
3431 IFS="$ac_save_ifs"
3432 ;;
3433 esac
3434 else
3435 enable_shared=yes
3436 fi;
3437 # Check whether --enable-static or --disable-static was given.
3438 if test "${enable_static+set}" = set; then
3439 enableval="$enable_static"
3440 p=${PACKAGE-default}
3441 case $enableval in
3442 yes) enable_static=yes ;;
3443 no) enable_static=no ;;
3444 *)
3445 enable_static=no
3446 # Look at the argument we got. We use all the common list separators.
3447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3448 for pkg in $enableval; do
3449 if test "X$pkg" = "X$p"; then
3450 enable_static=yes
3451 fi
3452 done
3453 IFS="$ac_save_ifs"
3454 ;;
3455 esac
3456 else
3457 enable_static=yes
3458 fi;
3459 # Check whether --enable-fast-install or --disable-fast-install was given.
3460 if test "${enable_fast_install+set}" = set; then
3461 enableval="$enable_fast_install"
3462 p=${PACKAGE-default}
3463 case $enableval in
3464 yes) enable_fast_install=yes ;;
3465 no) enable_fast_install=no ;;
3466 *)
3467 enable_fast_install=no
3468 # Look at the argument we got. We use all the common list separators.
3469 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3470 for pkg in $enableval; do
3471 if test "X$pkg" = "X$p"; then
3472 enable_fast_install=yes
3473 fi
3474 done
3475 IFS="$ac_save_ifs"
3476 ;;
3477 esac
3478 else
3479 enable_fast_install=yes
3480 fi;
3481
3482 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3483 if test "${with_gnu_ld+set}" = set; then
3484 withval="$with_gnu_ld"
3485 test "$withval" = no || with_gnu_ld=yes
3486 else
3487 with_gnu_ld=no
3488 fi;
3489 ac_prog=ld
3490 if test "$GCC" = yes; then
3491 # Check if gcc -print-prog-name=ld gives a path.
3492 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3493 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3494 case $host in
3495 *-*-mingw*)
3496 # gcc leaves a trailing carriage return which upsets mingw
3497 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3498 *)
3499 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3500 esac
3501 case $ac_prog in
3502 # Accept absolute paths.
3503 [\\/]* | [A-Za-z]:[\\/]*)
3504 re_direlt='/[^/][^/]*/\.\./'
3505 # Canonicalize the path of ld
3506 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3507 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3508 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3509 done
3510 test -z "$LD" && LD="$ac_prog"
3511 ;;
3512 "")
3513 # If it fails, then pretend we aren't using GCC.
3514 ac_prog=ld
3515 ;;
3516 *)
3517 # If it is relative, then search for the first ld in PATH.
3518 with_gnu_ld=unknown
3519 ;;
3520 esac
3521 elif test "$with_gnu_ld" = yes; then
3522 echo "$as_me:$LINENO: checking for GNU ld" >&5
3523 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3524 else
3525 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3526 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3527 fi
3528 if test "${lt_cv_path_LD+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531 if test -z "$LD"; then
3532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3533 for ac_dir in $PATH; do
3534 test -z "$ac_dir" && ac_dir=.
3535 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3536 lt_cv_path_LD="$ac_dir/$ac_prog"
3537 # Check to see if the program is GNU ld. I'd rather use --version,
3538 # but apparently some GNU ld's only accept -v.
3539 # Break only if it was the GNU/non-GNU ld that we prefer.
3540 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3541 test "$with_gnu_ld" != no && break
3542 else
3543 test "$with_gnu_ld" != yes && break
3544 fi
3545 fi
3546 done
3547 IFS="$ac_save_ifs"
3548 else
3549 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3550 fi
3551 fi
3552
3553 LD="$lt_cv_path_LD"
3554 if test -n "$LD"; then
3555 echo "$as_me:$LINENO: result: $LD" >&5
3556 echo "${ECHO_T}$LD" >&6
3557 else
3558 echo "$as_me:$LINENO: result: no" >&5
3559 echo "${ECHO_T}no" >&6
3560 fi
3561 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3562 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3563 { (exit 1); exit 1; }; }
3564 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3565 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3566 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 else
3569 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3570 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3571 lt_cv_prog_gnu_ld=yes
3572 else
3573 lt_cv_prog_gnu_ld=no
3574 fi
3575 fi
3576 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3577 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3578 with_gnu_ld=$lt_cv_prog_gnu_ld
3579
3580
3581 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3582 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3583 if test "${lt_cv_ld_reload_flag+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586 lt_cv_ld_reload_flag='-r'
3587 fi
3588 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3589 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3590 reload_flag=$lt_cv_ld_reload_flag
3591 test -n "$reload_flag" && reload_flag=" $reload_flag"
3592
3593 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3594 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3595 if test "${lt_cv_path_NM+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 else
3598 if test -n "$NM"; then
3599 # Let the user override the test.
3600 lt_cv_path_NM="$NM"
3601 else
3602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3603 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3604 test -z "$ac_dir" && ac_dir=.
3605 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3606 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3607 # Check to see if the nm accepts a BSD-compat flag.
3608 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3609 # nm: unknown option "B" ignored
3610 # Tru64's nm complains that /dev/null is an invalid object file
3611 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3612 lt_cv_path_NM="$tmp_nm -B"
3613 break
3614 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3615 lt_cv_path_NM="$tmp_nm -p"
3616 break
3617 else
3618 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3619 continue # so that we can try to find one that supports BSD flags
3620 fi
3621 fi
3622 done
3623 IFS="$ac_save_ifs"
3624 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3625 fi
3626 fi
3627
3628 NM="$lt_cv_path_NM"
3629 echo "$as_me:$LINENO: result: $NM" >&5
3630 echo "${ECHO_T}$NM" >&6
3631
3632 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3633 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3634 LN_S=$as_ln_s
3635 if test "$LN_S" = "ln -s"; then
3636 echo "$as_me:$LINENO: result: yes" >&5
3637 echo "${ECHO_T}yes" >&6
3638 else
3639 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3640 echo "${ECHO_T}no, using $LN_S" >&6
3641 fi
3642
3643 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3644 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3645 if test "${lt_cv_deplibs_check_method+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648 lt_cv_file_magic_cmd='$MAGIC_CMD'
3649 lt_cv_file_magic_test_file=
3650 lt_cv_deplibs_check_method='unknown'
3651 # Need to set the preceding variable on all platforms that support
3652 # interlibrary dependencies.
3653 # 'none' -- dependencies not supported.
3654 # `unknown' -- same as none, but documents that we really don't know.
3655 # 'pass_all' -- all dependencies passed with no checks.
3656 # 'test_compile' -- check by making test program.
3657 # 'file_magic [regex]' -- check by looking for files in library path
3658 # which responds to the $file_magic_cmd with a given egrep regex.
3659 # If you have `file' or equivalent on your system and you're not sure
3660 # whether `pass_all' will *always* work, you probably want this one.
3661
3662 case $host_os in
3663 aix*)
3664 lt_cv_deplibs_check_method=pass_all
3665 ;;
3666
3667 beos*)
3668 lt_cv_deplibs_check_method=pass_all
3669 ;;
3670
3671 bsdi4*)
3672 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3673 lt_cv_file_magic_cmd='/usr/bin/file -L'
3674 lt_cv_file_magic_test_file=/shlib/libc.so
3675 ;;
3676
3677 cygwin* | mingw* |pw32*)
3678 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3679 lt_cv_file_magic_cmd='$OBJDUMP -f'
3680 ;;
3681
3682 darwin* | rhapsody*)
3683 # this will be overwritten by pass_all, but leave it in just in case
3684 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3685 lt_cv_file_magic_cmd='/usr/bin/file -L'
3686 case "$host_os" in
3687 rhapsody* | darwin1.012)
3688 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3689 ;;
3690 *) # Darwin 1.3 on
3691 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3692 ;;
3693 esac
3694 lt_cv_deplibs_check_method=pass_all
3695 ;;
3696
3697 freebsd* )
3698 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3699 case $host_cpu in
3700 i*86 )
3701 # Not sure whether the presence of OpenBSD here was a mistake.
3702 # Let's accept both of them until this is cleared up.
3703 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3704 lt_cv_file_magic_cmd=/usr/bin/file
3705 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3706 ;;
3707 esac
3708 else
3709 lt_cv_deplibs_check_method=pass_all
3710 fi
3711 ;;
3712
3713 gnu*)
3714 lt_cv_deplibs_check_method=pass_all
3715 ;;
3716
3717 hpux10.20*|hpux11*)
3718 case $host_cpu in
3719 hppa*)
3720 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3721 lt_cv_file_magic_cmd=/usr/bin/file
3722 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3723 ;;
3724 ia64*)
3725 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3726 lt_cv_file_magic_cmd=/usr/bin/file
3727 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3728 ;;
3729 esac
3730 ;;
3731
3732 irix5* | irix6*)
3733 case $host_os in
3734 irix5*)
3735 # this will be overridden with pass_all, but let us keep it just in case
3736 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3737 ;;
3738 *)
3739 case $LD in
3740 *-32|*"-32 ") libmagic=32-bit;;
3741 *-n32|*"-n32 ") libmagic=N32;;
3742 *-64|*"-64 ") libmagic=64-bit;;
3743 *) libmagic=never-match;;
3744 esac
3745 # this will be overridden with pass_all, but let us keep it just in case
3746 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3747 ;;
3748 esac
3749 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3750 lt_cv_deplibs_check_method=pass_all
3751 ;;
3752
3753 # This must be Linux ELF.
3754 linux-gnu*)
3755 case $host_cpu in
3756 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3757 lt_cv_deplibs_check_method=pass_all ;;
3758 *)
3759 # glibc up to 2.1.1 does not perform some relocations on ARM
3760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3761 esac
3762 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3763 ;;
3764
3765 netbsd*)
3766 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3767 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3768 else
3769 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3770 fi
3771 ;;
3772
3773 newsos6)
3774 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3775 lt_cv_file_magic_cmd=/usr/bin/file
3776 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3777 ;;
3778
3779 osf3* | osf4* | osf5*)
3780 # this will be overridden with pass_all, but let us keep it just in case
3781 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3782 lt_cv_file_magic_test_file=/shlib/libc.so
3783 lt_cv_deplibs_check_method=pass_all
3784 ;;
3785
3786 sco3.2v5*)
3787 lt_cv_deplibs_check_method=pass_all
3788 ;;
3789
3790 solaris*)
3791 lt_cv_deplibs_check_method=pass_all
3792 lt_cv_file_magic_test_file=/lib/libc.so
3793 ;;
3794
3795 sysv5uw[78]* | sysv4*uw2*)
3796 lt_cv_deplibs_check_method=pass_all
3797 ;;
3798
3799 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3800 case $host_vendor in
3801 ncr)
3802 lt_cv_deplibs_check_method=pass_all
3803 ;;
3804 motorola)
3805 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]'
3806 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3807 ;;
3808 esac
3809 ;;
3810 esac
3811
3812 fi
3813 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3814 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3815 file_magic_cmd=$lt_cv_file_magic_cmd
3816 deplibs_check_method=$lt_cv_deplibs_check_method
3817
3818
3819
3820
3821
3822 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3823
3824 # Only perform the check for file, if the check method requires it
3825 case $deplibs_check_method in
3826 file_magic*)
3827 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3828 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3829 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3830 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
3833 case $MAGIC_CMD in
3834 /*)
3835 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3836 ;;
3837 ?:/*)
3838 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3839 ;;
3840 *)
3841 ac_save_MAGIC_CMD="$MAGIC_CMD"
3842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3843 ac_dummy="/usr/bin:$PATH"
3844 for ac_dir in $ac_dummy; do
3845 test -z "$ac_dir" && ac_dir=.
3846 if test -f $ac_dir/${ac_tool_prefix}file; then
3847 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3848 if test -n "$file_magic_test_file"; then
3849 case $deplibs_check_method in
3850 "file_magic "*)
3851 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3852 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3853 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3854 egrep "$file_magic_regex" > /dev/null; then
3855 :
3856 else
3857 cat <<EOF 1>&2
3858
3859 *** Warning: the command libtool uses to detect shared libraries,
3860 *** $file_magic_cmd, produces output that libtool cannot recognize.
3861 *** The result is that libtool may fail to recognize shared libraries
3862 *** as such. This will affect the creation of libtool libraries that
3863 *** depend on shared libraries, but programs linked with such libtool
3864 *** libraries will work regardless of this problem. Nevertheless, you
3865 *** may want to report the problem to your system manager and/or to
3866 *** bug-libtool@gnu.org
3867
3868 EOF
3869 fi ;;
3870 esac
3871 fi
3872 break
3873 fi
3874 done
3875 IFS="$ac_save_ifs"
3876 MAGIC_CMD="$ac_save_MAGIC_CMD"
3877 ;;
3878 esac
3879 fi
3880
3881 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3882 if test -n "$MAGIC_CMD"; then
3883 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3884 echo "${ECHO_T}$MAGIC_CMD" >&6
3885 else
3886 echo "$as_me:$LINENO: result: no" >&5
3887 echo "${ECHO_T}no" >&6
3888 fi
3889
3890 if test -z "$lt_cv_path_MAGIC_CMD"; then
3891 if test -n "$ac_tool_prefix"; then
3892 echo "$as_me:$LINENO: checking for file" >&5
3893 echo $ECHO_N "checking for file... $ECHO_C" >&6
3894 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897 case $MAGIC_CMD in
3898 /*)
3899 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3900 ;;
3901 ?:/*)
3902 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3903 ;;
3904 *)
3905 ac_save_MAGIC_CMD="$MAGIC_CMD"
3906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3907 ac_dummy="/usr/bin:$PATH"
3908 for ac_dir in $ac_dummy; do
3909 test -z "$ac_dir" && ac_dir=.
3910 if test -f $ac_dir/file; then
3911 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3912 if test -n "$file_magic_test_file"; then
3913 case $deplibs_check_method in
3914 "file_magic "*)
3915 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3916 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3917 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3918 egrep "$file_magic_regex" > /dev/null; then
3919 :
3920 else
3921 cat <<EOF 1>&2
3922
3923 *** Warning: the command libtool uses to detect shared libraries,
3924 *** $file_magic_cmd, produces output that libtool cannot recognize.
3925 *** The result is that libtool may fail to recognize shared libraries
3926 *** as such. This will affect the creation of libtool libraries that
3927 *** depend on shared libraries, but programs linked with such libtool
3928 *** libraries will work regardless of this problem. Nevertheless, you
3929 *** may want to report the problem to your system manager and/or to
3930 *** bug-libtool@gnu.org
3931
3932 EOF
3933 fi ;;
3934 esac
3935 fi
3936 break
3937 fi
3938 done
3939 IFS="$ac_save_ifs"
3940 MAGIC_CMD="$ac_save_MAGIC_CMD"
3941 ;;
3942 esac
3943 fi
3944
3945 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3946 if test -n "$MAGIC_CMD"; then
3947 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3948 echo "${ECHO_T}$MAGIC_CMD" >&6
3949 else
3950 echo "$as_me:$LINENO: result: no" >&5
3951 echo "${ECHO_T}no" >&6
3952 fi
3953
3954 else
3955 MAGIC_CMD=:
3956 fi
3957 fi
3958
3959 fi
3960 ;;
3961 esac
3962
3963 if test -n "$ac_tool_prefix"; then
3964 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3965 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3966 echo "$as_me:$LINENO: checking for $ac_word" >&5
3967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3968 if test "${ac_cv_prog_RANLIB+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971 if test -n "$RANLIB"; then
3972 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3973 else
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3976 do
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 break 2
3984 fi
3985 done
3986 done
3987
3988 fi
3989 fi
3990 RANLIB=$ac_cv_prog_RANLIB
3991 if test -n "$RANLIB"; then
3992 echo "$as_me:$LINENO: result: $RANLIB" >&5
3993 echo "${ECHO_T}$RANLIB" >&6
3994 else
3995 echo "$as_me:$LINENO: result: no" >&5
3996 echo "${ECHO_T}no" >&6
3997 fi
3998
3999 fi
4000 if test -z "$ac_cv_prog_RANLIB"; then
4001 ac_ct_RANLIB=$RANLIB
4002 # Extract the first word of "ranlib", so it can be a program name with args.
4003 set dummy ranlib; ac_word=$2
4004 echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009 if test -n "$ac_ct_RANLIB"; then
4010 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4011 else
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4014 do
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_ac_ct_RANLIB="ranlib"
4020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 break 2
4022 fi
4023 done
4024 done
4025
4026 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4027 fi
4028 fi
4029 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4030 if test -n "$ac_ct_RANLIB"; then
4031 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4032 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4033 else
4034 echo "$as_me:$LINENO: result: no" >&5
4035 echo "${ECHO_T}no" >&6
4036 fi
4037
4038 RANLIB=$ac_ct_RANLIB
4039 else
4040 RANLIB="$ac_cv_prog_RANLIB"
4041 fi
4042
4043 if test -n "$ac_tool_prefix"; then
4044 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4045 set dummy ${ac_tool_prefix}strip; ac_word=$2
4046 echo "$as_me:$LINENO: checking for $ac_word" >&5
4047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4048 if test "${ac_cv_prog_STRIP+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051 if test -n "$STRIP"; then
4052 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4053 else
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH
4056 do
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 break 2
4064 fi
4065 done
4066 done
4067
4068 fi
4069 fi
4070 STRIP=$ac_cv_prog_STRIP
4071 if test -n "$STRIP"; then
4072 echo "$as_me:$LINENO: result: $STRIP" >&5
4073 echo "${ECHO_T}$STRIP" >&6
4074 else
4075 echo "$as_me:$LINENO: result: no" >&5
4076 echo "${ECHO_T}no" >&6
4077 fi
4078
4079 fi
4080 if test -z "$ac_cv_prog_STRIP"; then
4081 ac_ct_STRIP=$STRIP
4082 # Extract the first word of "strip", so it can be a program name with args.
4083 set dummy strip; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089 if test -n "$ac_ct_STRIP"; then
4090 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4094 do
4095 IFS=$as_save_IFS
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_prog_ac_ct_STRIP="strip"
4100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101 break 2
4102 fi
4103 done
4104 done
4105
4106 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4107 fi
4108 fi
4109 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4110 if test -n "$ac_ct_STRIP"; then
4111 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4112 echo "${ECHO_T}$ac_ct_STRIP" >&6
4113 else
4114 echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4116 fi
4117
4118 STRIP=$ac_ct_STRIP
4119 else
4120 STRIP="$ac_cv_prog_STRIP"
4121 fi
4122
4123
4124 # Check for any special flags to pass to ltconfig.
4125 libtool_flags="--cache-file=$cache_file"
4126 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4127 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4128 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4129 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4130 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4131
4132
4133 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4134 if test "${enable_libtool_lock+set}" = set; then
4135 enableval="$enable_libtool_lock"
4136
4137 fi;
4138 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4139 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4140
4141
4142 # Check whether --with-pic or --without-pic was given.
4143 if test "${with_pic+set}" = set; then
4144 withval="$with_pic"
4145 pic_mode="$withval"
4146 else
4147 pic_mode=default
4148 fi;
4149 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4150 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4151
4152 # Some flags need to be propagated to the compiler or linker for good
4153 # libtool support.
4154 case $host in
4155 *-*-irix6*)
4156 # Find out which ABI we are using.
4157 echo '#line 4157 "configure"' > conftest.$ac_ext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159 (eval $ac_compile) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; then
4163 if test "$lt_cv_prog_gnu_ld" = yes; then
4164 case `/usr/bin/file conftest.$ac_objext` in
4165 *32-bit*)
4166 LD="${LD-ld} -melf32bsmip"
4167 ;;
4168 *N32*)
4169 LD="${LD-ld} -melf32bmipn32"
4170 ;;
4171 *64-bit*)
4172 LD="${LD-ld} -melf64bmip"
4173 ;;
4174 esac
4175 else
4176 case `/usr/bin/file conftest.$ac_objext` in
4177 *32-bit*)
4178 LD="${LD-ld} -32"
4179 ;;
4180 *N32*)
4181 LD="${LD-ld} -n32"
4182 ;;
4183 *64-bit*)
4184 LD="${LD-ld} -64"
4185 ;;
4186 esac
4187 fi
4188 fi
4189 rm -rf conftest*
4190 ;;
4191
4192 ia64-*-hpux*)
4193 # Find out which ABI we are using.
4194 echo 'int i;' > conftest.$ac_ext
4195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4196 (eval $ac_compile) 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; then
4200 case "`/usr/bin/file conftest.o`" in
4201 *ELF-32*)
4202 HPUX_IA64_MODE="32"
4203 ;;
4204 *ELF-64*)
4205 HPUX_IA64_MODE="64"
4206 ;;
4207 esac
4208 fi
4209 rm -rf conftest*
4210 ;;
4211
4212 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4213 # Find out which ABI we are using.
4214 echo 'int i;' > conftest.$ac_ext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4216 (eval $ac_compile) 2>&5
4217 ac_status=$?
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; then
4220 case "`/usr/bin/file conftest.o`" in
4221 *32-bit*)
4222 case $host in
4223 x86_64-*linux*)
4224 LD="${LD-ld} -m elf_i386"
4225 ;;
4226 ppc64-*linux*|powerpc64-*linux*)
4227 LD="${LD-ld} -m elf32ppclinux"
4228 ;;
4229 s390x-*linux*)
4230 LD="${LD-ld} -m elf_s390"
4231 ;;
4232 sparc64-*linux*)
4233 LD="${LD-ld} -m elf32_sparc"
4234 ;;
4235 esac
4236 ;;
4237 *64-bit*)
4238 case $host in
4239 x86_64-*linux*)
4240 LD="${LD-ld} -m elf_x86_64"
4241 ;;
4242 ppc*-*linux*|powerpc*-*linux*)
4243 LD="${LD-ld} -m elf64ppc"
4244 ;;
4245 s390*-*linux*)
4246 LD="${LD-ld} -m elf64_s390"
4247 ;;
4248 sparc*-*linux*)
4249 LD="${LD-ld} -m elf64_sparc"
4250 ;;
4251 esac
4252 ;;
4253 esac
4254 fi
4255 rm -rf conftest*
4256 ;;
4257
4258 *-*-sco3.2v5*)
4259 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4260 SAVE_CFLAGS="$CFLAGS"
4261 CFLAGS="$CFLAGS -belf"
4262 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4263 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4264 if test "${lt_cv_cc_needs_belf+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267
4268
4269 ac_ext=c
4270 ac_cpp='$CPP $CPPFLAGS'
4271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4274
4275 if test x$gcc_no_link = xyes; then
4276 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4277 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4278 { (exit 1); exit 1; }; }
4279 fi
4280 cat >conftest.$ac_ext <<_ACEOF
4281 #line $LINENO "configure"
4282 /* confdefs.h. */
4283 _ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h. */
4287
4288 int
4289 main ()
4290 {
4291
4292 ;
4293 return 0;
4294 }
4295 _ACEOF
4296 rm -f conftest.$ac_objext conftest$ac_exeext
4297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4298 (eval $ac_link) 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } &&
4302 { ac_try='test -s conftest$ac_exeext'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 (eval $ac_try) 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4308 lt_cv_cc_needs_belf=yes
4309 else
4310 echo "$as_me: failed program was:" >&5
4311 sed 's/^/| /' conftest.$ac_ext >&5
4312
4313 lt_cv_cc_needs_belf=no
4314 fi
4315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4316 ac_ext=c
4317 ac_cpp='$CPP $CPPFLAGS'
4318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321
4322 fi
4323 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4324 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4325 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4326 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4327 CFLAGS="$SAVE_CFLAGS"
4328 fi
4329 ;;
4330
4331
4332 esac
4333
4334
4335 # Save cache, so that ltconfig can load it
4336 cat >confcache <<\_ACEOF
4337 # This file is a shell script that caches the results of configure
4338 # tests run on this system so they can be shared between configure
4339 # scripts and configure runs, see configure's option --config-cache.
4340 # It is not useful on other systems. If it contains results you don't
4341 # want to keep, you may remove or edit it.
4342 #
4343 # config.status only pays attention to the cache file if you give it
4344 # the --recheck option to rerun configure.
4345 #
4346 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4347 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4348 # following values.
4349
4350 _ACEOF
4351
4352 # The following way of writing the cache mishandles newlines in values,
4353 # but we know of no workaround that is simple, portable, and efficient.
4354 # So, don't put newlines in cache variables' values.
4355 # Ultrix sh set writes to stderr and can't be redirected directly,
4356 # and sets the high bit in the cache file unless we assign to the vars.
4357 {
4358 (set) 2>&1 |
4359 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4360 *ac_space=\ *)
4361 # `set' does not quote correctly, so add quotes (double-quote
4362 # substitution turns \\\\ into \\, and sed turns \\ into \).
4363 sed -n \
4364 "s/'/'\\\\''/g;
4365 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4366 ;;
4367 *)
4368 # `set' quotes correctly as required by POSIX, so do not add quotes.
4369 sed -n \
4370 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4371 ;;
4372 esac;
4373 } |
4374 sed '
4375 t clear
4376 : clear
4377 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4378 t end
4379 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4380 : end' >>confcache
4381 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4382 if test -w $cache_file; then
4383 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4384 cat confcache >$cache_file
4385 else
4386 echo "not updating unwritable cache $cache_file"
4387 fi
4388 fi
4389 rm -f confcache
4390
4391 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4392 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4393 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4394 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4395 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4396 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4397 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4398 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4399 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4400 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4401 echo "$as_me: error: libtool configure failed" >&2;}
4402 { (exit 1); exit 1; }; }
4403
4404 # Reload cache, that may have been modified by ltconfig
4405 if test -r "$cache_file"; then
4406 # Some versions of bash will fail to source /dev/null (special
4407 # files actually), so we avoid doing that.
4408 if test -f "$cache_file"; then
4409 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4410 echo "$as_me: loading cache $cache_file" >&6;}
4411 case $cache_file in
4412 [\\/]* | ?:[\\/]* ) . $cache_file;;
4413 *) . ./$cache_file;;
4414 esac
4415 fi
4416 else
4417 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4418 echo "$as_me: creating cache $cache_file" >&6;}
4419 >$cache_file
4420 fi
4421
4422
4423 # This can be used to rebuild libtool when needed
4424 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4425
4426 # Always use our own libtool.
4427 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4428
4429 # Redirect the config.log output again, so that the ltconfig log is not
4430 # clobbered by the next message.
4431 exec 5>>./config.log
4432
4433 ac_ext=cc
4434 ac_cpp='$CXXCPP $CPPFLAGS'
4435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4438 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4439 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4440 if test -z "$CXXCPP"; then
4441 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444 # Double quotes because CXXCPP needs to be expanded
4445 for CXXCPP in "$CXX -E" "/lib/cpp"
4446 do
4447 ac_preproc_ok=false
4448 for ac_cxx_preproc_warn_flag in '' yes
4449 do
4450 # Use a header file that comes with gcc, so configuring glibc
4451 # with a fresh cross-compiler works.
4452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4453 # <limits.h> exists even on freestanding compilers.
4454 # On the NeXT, cc -E runs the code through the compiler's parser,
4455 # not just through cpp. "Syntax error" is here to catch this case.
4456 cat >conftest.$ac_ext <<_ACEOF
4457 #line $LINENO "configure"
4458 /* confdefs.h. */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4463 #ifdef __STDC__
4464 # include <limits.h>
4465 #else
4466 # include <assert.h>
4467 #endif
4468 Syntax error
4469 _ACEOF
4470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4472 ac_status=$?
4473 grep -v '^ *+' conftest.er1 >conftest.err
4474 rm -f conftest.er1
4475 cat conftest.err >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } >/dev/null; then
4478 if test -s conftest.err; then
4479 ac_cpp_err=$ac_cxx_preproc_warn_flag
4480 else
4481 ac_cpp_err=
4482 fi
4483 else
4484 ac_cpp_err=yes
4485 fi
4486 if test -z "$ac_cpp_err"; then
4487 :
4488 else
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4491
4492 # Broken: fails on valid input.
4493 continue
4494 fi
4495 rm -f conftest.err conftest.$ac_ext
4496
4497 # OK, works on sane cases. Now check whether non-existent headers
4498 # can be detected and how.
4499 cat >conftest.$ac_ext <<_ACEOF
4500 #line $LINENO "configure"
4501 /* confdefs.h. */
4502 _ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506 #include <ac_nonexistent.h>
4507 _ACEOF
4508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } >/dev/null; then
4516 if test -s conftest.err; then
4517 ac_cpp_err=$ac_cxx_preproc_warn_flag
4518 else
4519 ac_cpp_err=
4520 fi
4521 else
4522 ac_cpp_err=yes
4523 fi
4524 if test -z "$ac_cpp_err"; then
4525 # Broken: success on invalid input.
4526 continue
4527 else
4528 echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4530
4531 # Passes both tests.
4532 ac_preproc_ok=:
4533 break
4534 fi
4535 rm -f conftest.err conftest.$ac_ext
4536
4537 done
4538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4539 rm -f conftest.err conftest.$ac_ext
4540 if $ac_preproc_ok; then
4541 break
4542 fi
4543
4544 done
4545 ac_cv_prog_CXXCPP=$CXXCPP
4546
4547 fi
4548 CXXCPP=$ac_cv_prog_CXXCPP
4549 else
4550 ac_cv_prog_CXXCPP=$CXXCPP
4551 fi
4552 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4553 echo "${ECHO_T}$CXXCPP" >&6
4554 ac_preproc_ok=false
4555 for ac_cxx_preproc_warn_flag in '' yes
4556 do
4557 # Use a header file that comes with gcc, so configuring glibc
4558 # with a fresh cross-compiler works.
4559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4560 # <limits.h> exists even on freestanding compilers.
4561 # On the NeXT, cc -E runs the code through the compiler's parser,
4562 # not just through cpp. "Syntax error" is here to catch this case.
4563 cat >conftest.$ac_ext <<_ACEOF
4564 #line $LINENO "configure"
4565 /* confdefs.h. */
4566 _ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 #ifdef __STDC__
4571 # include <limits.h>
4572 #else
4573 # include <assert.h>
4574 #endif
4575 Syntax error
4576 _ACEOF
4577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4579 ac_status=$?
4580 grep -v '^ *+' conftest.er1 >conftest.err
4581 rm -f conftest.er1
4582 cat conftest.err >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); } >/dev/null; then
4585 if test -s conftest.err; then
4586 ac_cpp_err=$ac_cxx_preproc_warn_flag
4587 else
4588 ac_cpp_err=
4589 fi
4590 else
4591 ac_cpp_err=yes
4592 fi
4593 if test -z "$ac_cpp_err"; then
4594 :
4595 else
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4598
4599 # Broken: fails on valid input.
4600 continue
4601 fi
4602 rm -f conftest.err conftest.$ac_ext
4603
4604 # OK, works on sane cases. Now check whether non-existent headers
4605 # can be detected and how.
4606 cat >conftest.$ac_ext <<_ACEOF
4607 #line $LINENO "configure"
4608 /* confdefs.h. */
4609 _ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 #include <ac_nonexistent.h>
4614 _ACEOF
4615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4617 ac_status=$?
4618 grep -v '^ *+' conftest.er1 >conftest.err
4619 rm -f conftest.er1
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } >/dev/null; then
4623 if test -s conftest.err; then
4624 ac_cpp_err=$ac_cxx_preproc_warn_flag
4625 else
4626 ac_cpp_err=
4627 fi
4628 else
4629 ac_cpp_err=yes
4630 fi
4631 if test -z "$ac_cpp_err"; then
4632 # Broken: success on invalid input.
4633 continue
4634 else
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4637
4638 # Passes both tests.
4639 ac_preproc_ok=:
4640 break
4641 fi
4642 rm -f conftest.err conftest.$ac_ext
4643
4644 done
4645 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4646 rm -f conftest.err conftest.$ac_ext
4647 if $ac_preproc_ok; then
4648 :
4649 else
4650 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4651 See \`config.log' for more details." >&5
4652 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4653 See \`config.log' for more details." >&2;}
4654 { (exit 1); exit 1; }; }
4655 fi
4656
4657 ac_ext=c
4658 ac_cpp='$CPP $CPPFLAGS'
4659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4662
4663
4664
4665 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4666 lt_save_CC="$CC"
4667 lt_save_CFLAGS="$CFLAGS"
4668 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4669 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4670 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4671 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4672 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4673 deplibs_check_method="$deplibs_check_method" \
4674 file_magic_cmd="$file_magic_cmd" \
4675 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4676 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4677 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4678 echo "$as_me: error: libtool tag configuration failed" >&2;}
4679 { (exit 1); exit 1; }; }
4680 CC="$lt_save_CC"
4681 CFLAGS="$lt_save_CFLAGS"
4682
4683 # Redirect the config.log output again, so that the ltconfig log is not
4684 # clobbered by the next message.
4685 exec 5>>./config.log
4686
4687
4688
4689
4690
4691
4692
4693
4694 # Check whether --with-target-subdir or --without-target-subdir was given.
4695 if test "${with_target_subdir+set}" = set; then
4696 withval="$with_target_subdir"
4697
4698 fi;
4699
4700 # Check whether --with-cross-host or --without-cross-host was given.
4701 if test "${with_cross_host+set}" = set; then
4702 withval="$with_cross_host"
4703
4704 fi;
4705
4706 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4707 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4708 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4709 if test "${enable_maintainer_mode+set}" = set; then
4710 enableval="$enable_maintainer_mode"
4711 USE_MAINTAINER_MODE=$enableval
4712 else
4713 USE_MAINTAINER_MODE=no
4714 fi;
4715 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4716 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4717
4718
4719 if test $USE_MAINTAINER_MODE = yes; then
4720 MAINTAINER_MODE_TRUE=
4721 MAINTAINER_MODE_FALSE='#'
4722 else
4723 MAINTAINER_MODE_TRUE='#'
4724 MAINTAINER_MODE_FALSE=
4725 fi
4726 MAINT=$MAINTAINER_MODE_TRUE
4727
4728
4729 # automake wants to see AC_EXEEXT. But we don't need it. And having
4730 # it is actually a problem, because the compiler we're passed can't
4731 # necessarily do a full link. So we fool automake here.
4732 if false; then
4733 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
4734 # to nothing, so nothing would remain between `then' and `fi' if it
4735 # were not for the `:' below.
4736 :
4737
4738 fi
4739
4740 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
4741 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
4742 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4743 if test -z "$THREADS"; then
4744 THREADS=no
4745 fi
4746 echo "$as_me:$LINENO: result: $THREADS" >&5
4747 echo "${ECHO_T}$THREADS" >&6
4748
4749 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
4750 if test "${enable_parallel_mark+set}" = set; then
4751 enableval="$enable_parallel_mark"
4752 case "$THREADS" in
4753 no | none | single)
4754 { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
4755 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
4756 { (exit 1); exit 1; }; }
4757 ;;
4758 esac
4759
4760 fi;
4761
4762 INCLUDES="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
4763 THREADLIBS=
4764 case "$THREADS" in
4765 no | none | single)
4766 THREADS=none
4767 ;;
4768 posix | pthreads)
4769 THREADS=posix
4770 THREADLIBS=-lpthread
4771 case "$host" in
4772 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
4773 cat >>confdefs.h <<\_ACEOF
4774 #define GC_LINUX_THREADS 1
4775 _ACEOF
4776
4777 cat >>confdefs.h <<\_ACEOF
4778 #define _REENTRANT 1
4779 _ACEOF
4780
4781 if test "${enable_parallel_mark}" = yes; then
4782 cat >>confdefs.h <<\_ACEOF
4783 #define PARALLEL_MARK 1
4784 _ACEOF
4785
4786 fi
4787 cat >>confdefs.h <<\_ACEOF
4788 #define THREAD_LOCAL_ALLOC 1
4789 _ACEOF
4790
4791 ;;
4792 *-*-linux*)
4793 cat >>confdefs.h <<\_ACEOF
4794 #define GC_LINUX_THREADS 1
4795 _ACEOF
4796
4797 cat >>confdefs.h <<\_ACEOF
4798 #define _REENTRANT 1
4799 _ACEOF
4800
4801 ;;
4802 *-*-aix*)
4803 cat >>confdefs.h <<\_ACEOF
4804 #define GC_AIX_THREADS 1
4805 _ACEOF
4806
4807 cat >>confdefs.h <<\_ACEOF
4808 #define _REENTRANT 1
4809 _ACEOF
4810
4811 ;;
4812 *-*-hpux*)
4813 { echo "$as_me:$LINENO: WARNING: \"Only HP/UX 11 threads are supported.\"" >&5
4814 echo "$as_me: WARNING: \"Only HP/UX 11 threads are supported.\"" >&2;}
4815 cat >>confdefs.h <<\_ACEOF
4816 #define GC_HPUX_THREADS 1
4817 _ACEOF
4818
4819 cat >>confdefs.h <<\_ACEOF
4820 #define _POSIX_C_SOURCE 199506L
4821 _ACEOF
4822
4823 if test "${enable_parallel_mark}" = yes; then
4824 cat >>confdefs.h <<\_ACEOF
4825 #define PARALLEL_MARK 1
4826 _ACEOF
4827
4828 fi
4829 cat >>confdefs.h <<\_ACEOF
4830 #define THREAD_LOCAL_ALLOC 1
4831 _ACEOF
4832
4833 THREADLIBS="-lpthread -lrt"
4834 ;;
4835 *-*-freebsd*)
4836 { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
4837 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
4838 cat >>confdefs.h <<\_ACEOF
4839 #define GC_FREEBSD_THREADS 1
4840 _ACEOF
4841
4842 INCLUDES="$INCLUDES -pthread"
4843 THREADLIBS=-pthread
4844 ;;
4845 *-*-solaris*)
4846 cat >>confdefs.h <<\_ACEOF
4847 #define GC_SOLARIS_THREADS 1
4848 _ACEOF
4849
4850 cat >>confdefs.h <<\_ACEOF
4851 #define GC_SOLARIS_PTHREADS 1
4852 _ACEOF
4853
4854 ;;
4855 *-*-irix*)
4856 cat >>confdefs.h <<\_ACEOF
4857 #define GC_IRIX_THREADS 1
4858 _ACEOF
4859
4860 ;;
4861 *-*-cygwin*)
4862 cat >>confdefs.h <<\_ACEOF
4863 #define GC_WIN32_THREADS 1
4864 _ACEOF
4865
4866 ;;
4867 *-*-darwin*)
4868 cat >>confdefs.h <<\_ACEOF
4869 #define GC_DARWIN_THREADS 1
4870 _ACEOF
4871
4872 cat >>confdefs.h <<\_ACEOF
4873 #define THREAD_LOCAL_ALLOC 1
4874 _ACEOF
4875
4876 if test "${enable_parallel_mark}" = yes; then
4877 cat >>confdefs.h <<\_ACEOF
4878 #define PARALLEL_MARK 1
4879 _ACEOF
4880
4881 fi
4882 ;;
4883 *-*-osf*)
4884 cat >>confdefs.h <<\_ACEOF
4885 #define GC_OSF1_THREADS 1
4886 _ACEOF
4887
4888 if test "${enable_parallel_mark}" = yes; then
4889 cat >>confdefs.h <<\_ACEOF
4890 #define PARALLEL_MARK 1
4891 _ACEOF
4892
4893 cat >>confdefs.h <<\_ACEOF
4894 #define THREAD_LOCAL_ALLOC 1
4895 _ACEOF
4896
4897 # May want to enable it in other cases, too.
4898 # Measurements havent yet been done.
4899 fi
4900 INCLUDES="$INCLUDES -pthread"
4901 THREADLIBS="-lpthread -lrt"
4902 ;;
4903 esac
4904 ;;
4905 win32)
4906 cat >>confdefs.h <<\_ACEOF
4907 #define GC_WIN32_THREADS 1
4908 _ACEOF
4909
4910 ;;
4911 dgux386)
4912 THREADS=dgux386
4913 echo "$as_me:$LINENO: result: $THREADLIBS" >&5
4914 echo "${ECHO_T}$THREADLIBS" >&6
4915 # Use pthread GCC switch
4916 THREADLIBS=-pthread
4917 if test "${enable_parallel_mark}" = yes; then
4918 cat >>confdefs.h <<\_ACEOF
4919 #define PARALLEL_MARK 1
4920 _ACEOF
4921
4922 fi
4923 cat >>confdefs.h <<\_ACEOF
4924 #define THREAD_LOCAL_ALLOC 1
4925 _ACEOF
4926
4927 cat >>confdefs.h <<\_ACEOF
4928 #define GC_DGUX386_THREADS 1
4929 _ACEOF
4930
4931 cat >>confdefs.h <<\_ACEOF
4932 #define DGUX_THREADS 1
4933 _ACEOF
4934
4935 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
4936 INCLUDES="-pthread $INCLUDES"
4937 ;;
4938 aix)
4939 THREADS=posix
4940 THREADLIBS=-lpthread
4941 cat >>confdefs.h <<\_ACEOF
4942 #define GC_AIX_THREADS 1
4943 _ACEOF
4944
4945 cat >>confdefs.h <<\_ACEOF
4946 #define _REENTRANT 1
4947 _ACEOF
4948
4949 ;;
4950 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4951 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
4952 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
4953 { (exit 1); exit 1; }; }
4954 ;;
4955 *)
4956 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
4957 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
4958 { (exit 1); exit 1; }; }
4959 ;;
4960 esac
4961
4962
4963 case "$host" in
4964 powerpc-*-darwin*)
4965 powerpc_darwin=true
4966 ;;
4967 esac
4968
4969
4970 if test x$powerpc_darwin = xtrue; then
4971 POWERPC_DARWIN_TRUE=
4972 POWERPC_DARWIN_FALSE='#'
4973 else
4974 POWERPC_DARWIN_TRUE='#'
4975 POWERPC_DARWIN_FALSE=
4976 fi
4977
4978 # We never want libdl on darwin. It is a fake libdl that just ends up making
4979 # dyld calls anyway
4980 case "$host" in
4981 *-*-darwin*) ;;
4982 *)
4983 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4984 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4985 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988 ac_check_lib_save_LIBS=$LIBS
4989 LIBS="-ldl $LIBS"
4990 if test x$gcc_no_link = xyes; then
4991 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4992 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4993 { (exit 1); exit 1; }; }
4994 fi
4995 cat >conftest.$ac_ext <<_ACEOF
4996 #line $LINENO "configure"
4997 /* confdefs.h. */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5002
5003 /* Override any gcc2 internal prototype to avoid an error. */
5004 #ifdef __cplusplus
5005 extern "C"
5006 #endif
5007 /* We use char because int might match the return type of a gcc2
5008 builtin and then its argument prototype would still apply. */
5009 char dlopen ();
5010 int
5011 main ()
5012 {
5013 dlopen ();
5014 ;
5015 return 0;
5016 }
5017 _ACEOF
5018 rm -f conftest.$ac_objext conftest$ac_exeext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5020 (eval $ac_link) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } &&
5024 { ac_try='test -s conftest$ac_exeext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_cv_lib_dl_dlopen=yes
5031 else
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5034
5035 ac_cv_lib_dl_dlopen=no
5036 fi
5037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5038 LIBS=$ac_check_lib_save_LIBS
5039 fi
5040 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5041 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5042 if test $ac_cv_lib_dl_dlopen = yes; then
5043 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
5044 fi
5045
5046 ;;
5047 esac
5048
5049
5050
5051 target_all=libgcjgc.la
5052
5053
5054
5055 TARGET_ECOS="no"
5056
5057 # Check whether --with-ecos or --without-ecos was given.
5058 if test "${with_ecos+set}" = set; then
5059 withval="$with_ecos"
5060 TARGET_ECOS="$with_ecos"
5061
5062 fi;
5063
5064 addobjs=
5065 addlibs=
5066 addincludes=
5067 addtests=
5068 CXXINCLUDES=
5069 case "$TARGET_ECOS" in
5070 no)
5071 ;;
5072 *)
5073 cat >>confdefs.h <<\_ACEOF
5074 #define ECOS 1
5075 _ACEOF
5076
5077 CXXINCLUDES="-I${TARGET_ECOS}/include"
5078 addobjs="$addobjs ecos.lo"
5079 ;;
5080 esac
5081
5082 if test "${enable_cplusplus}" = yes; then
5083 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
5084 addtests="$addtests test_cpp"
5085 fi
5086
5087
5088
5089 if test "${enable_cplusplus}" = yes; then
5090 CPLUSPLUS_TRUE=
5091 CPLUSPLUS_FALSE='#'
5092 else
5093 CPLUSPLUS_TRUE='#'
5094 CPLUSPLUS_FALSE=
5095 fi
5096
5097
5098
5099
5100
5101
5102 # Configuration of shared libraries
5103 #
5104 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5105 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5106 # Check whether --enable-shared or --disable-shared was given.
5107 if test "${enable_shared+set}" = set; then
5108 enableval="$enable_shared"
5109 p=${PACKAGE-default}
5110 case $enableval in
5111 yes) enable_shared=yes ;;
5112 no) enable_shared=no ;;
5113 *)
5114 enable_shared=no
5115 # Look at the argument we got. We use all the common list separators.
5116 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5117 for pkg in $enableval; do
5118 if test "X$pkg" = "X$p"; then
5119 enable_shared=yes
5120 fi
5121 done
5122 IFS="$ac_save_ifs"
5123 ;;
5124 esac
5125 else
5126 enable_shared=yes
5127 fi;
5128
5129 case "$host" in
5130 alpha-*-openbsd*)
5131 enable_shared=no
5132 echo "$as_me:$LINENO: result: no" >&5
5133 echo "${ECHO_T}no" >&6
5134 ;;
5135 *)
5136 echo "$as_me:$LINENO: result: yes" >&5
5137 echo "${ECHO_T}yes" >&6
5138 ;;
5139 esac
5140
5141 # Configuration of machine-dependent code
5142 #
5143 # We don't set NO_EXECUTE_PERMISSION by default because gcj (and
5144 # anything else that creates trampolines in gc-allocated memory)
5145 # always needs exec permission. The exceptions to this are IA-64 and
5146 # some variations of Power PC, where trampolines don't contain
5147 # executable code.
5148 #
5149 echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
5150 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
5151 machdep=
5152 case "$host" in
5153 alpha*-*-openbsd*)
5154 machdep="alpha_mach_dep.lo"
5155 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
5156 { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
5157 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
5158 fi
5159 ;;
5160 alpha*-*-linux*)
5161 machdep="alpha_mach_dep.lo"
5162 ;;
5163 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
5164 cat >>confdefs.h <<\_ACEOF
5165 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
5166 _ACEOF
5167
5168 ;;
5169 mipstx39-*-elf*)
5170 machdep="mips_ultrix_mach_dep.lo"
5171 cat >>confdefs.h <<\_ACEOF
5172 #define STACKBASE __stackbase
5173 _ACEOF
5174
5175 cat >>confdefs.h <<\_ACEOF
5176 #define DATASTART_IS_ETEXT 1
5177 _ACEOF
5178
5179 ;;
5180 mips-dec-ultrix*)
5181 machdep="mips_ultrix_mach-dep.lo"
5182 ;;
5183 mips-nec-sysv*|mips-unknown-sysv*)
5184 ;;
5185 mips*-*-linux*)
5186 ;;
5187 mips-*-*)
5188 machdep="mips_sgi_mach_dep.lo"
5189 ;;
5190 sparc-*-netbsd*)
5191 machdep="sparc_netbsd_mach_dep.lo"
5192 ;;
5193 sparc-sun-solaris2.3)
5194 machdep="sparc_mach_dep.lo"
5195 cat >>confdefs.h <<\_ACEOF
5196 #define SUNOS53_SHARED_LIB 1
5197 _ACEOF
5198
5199 ;;
5200 sparc-sun-solaris2.*)
5201 machdep="sparc_mach_dep.lo"
5202 ;;
5203 ia64-*-*)
5204 cat >>confdefs.h <<\_ACEOF
5205 #define NO_EXECUTE_PERMISSION 1
5206 _ACEOF
5207
5208 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
5209 ;;
5210 esac
5211 if test x"$machdep" = x; then
5212 echo "$as_me:$LINENO: result: $machdep" >&5
5213 echo "${ECHO_T}$machdep" >&6
5214 machdep="mach_dep.lo"
5215 fi
5216 addobjs="$addobjs $machdep"
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228 #
5229 # Check for AViiON Machines running DGUX
5230 #
5231 echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
5232 echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
5233 ac_is_dgux=no
5234 ac_ext=c
5235 ac_cpp='$CPP $CPPFLAGS'
5236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5240 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5241 # On Suns, sometimes $CPP names a directory.
5242 if test -n "$CPP" && test -d "$CPP"; then
5243 CPP=
5244 fi
5245 if test -z "$CPP"; then
5246 if test "${ac_cv_prog_CPP+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249 # Double quotes because CPP needs to be expanded
5250 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5251 do
5252 ac_preproc_ok=false
5253 for ac_c_preproc_warn_flag in '' yes
5254 do
5255 # Use a header file that comes with gcc, so configuring glibc
5256 # with a fresh cross-compiler works.
5257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5258 # <limits.h> exists even on freestanding compilers.
5259 # On the NeXT, cc -E runs the code through the compiler's parser,
5260 # not just through cpp. "Syntax error" is here to catch this case.
5261 cat >conftest.$ac_ext <<_ACEOF
5262 #line $LINENO "configure"
5263 /* confdefs.h. */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 #ifdef __STDC__
5269 # include <limits.h>
5270 #else
5271 # include <assert.h>
5272 #endif
5273 Syntax error
5274 _ACEOF
5275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5277 ac_status=$?
5278 grep -v '^ *+' conftest.er1 >conftest.err
5279 rm -f conftest.er1
5280 cat conftest.err >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } >/dev/null; then
5283 if test -s conftest.err; then
5284 ac_cpp_err=$ac_c_preproc_warn_flag
5285 else
5286 ac_cpp_err=
5287 fi
5288 else
5289 ac_cpp_err=yes
5290 fi
5291 if test -z "$ac_cpp_err"; then
5292 :
5293 else
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5296
5297 # Broken: fails on valid input.
5298 continue
5299 fi
5300 rm -f conftest.err conftest.$ac_ext
5301
5302 # OK, works on sane cases. Now check whether non-existent headers
5303 # can be detected and how.
5304 cat >conftest.$ac_ext <<_ACEOF
5305 #line $LINENO "configure"
5306 /* confdefs.h. */
5307 _ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5311 #include <ac_nonexistent.h>
5312 _ACEOF
5313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5315 ac_status=$?
5316 grep -v '^ *+' conftest.er1 >conftest.err
5317 rm -f conftest.er1
5318 cat conftest.err >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } >/dev/null; then
5321 if test -s conftest.err; then
5322 ac_cpp_err=$ac_c_preproc_warn_flag
5323 else
5324 ac_cpp_err=
5325 fi
5326 else
5327 ac_cpp_err=yes
5328 fi
5329 if test -z "$ac_cpp_err"; then
5330 # Broken: success on invalid input.
5331 continue
5332 else
5333 echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.$ac_ext >&5
5335
5336 # Passes both tests.
5337 ac_preproc_ok=:
5338 break
5339 fi
5340 rm -f conftest.err conftest.$ac_ext
5341
5342 done
5343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5344 rm -f conftest.err conftest.$ac_ext
5345 if $ac_preproc_ok; then
5346 break
5347 fi
5348
5349 done
5350 ac_cv_prog_CPP=$CPP
5351
5352 fi
5353 CPP=$ac_cv_prog_CPP
5354 else
5355 ac_cv_prog_CPP=$CPP
5356 fi
5357 echo "$as_me:$LINENO: result: $CPP" >&5
5358 echo "${ECHO_T}$CPP" >&6
5359 ac_preproc_ok=false
5360 for ac_c_preproc_warn_flag in '' yes
5361 do
5362 # Use a header file that comes with gcc, so configuring glibc
5363 # with a fresh cross-compiler works.
5364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5365 # <limits.h> exists even on freestanding compilers.
5366 # On the NeXT, cc -E runs the code through the compiler's parser,
5367 # not just through cpp. "Syntax error" is here to catch this case.
5368 cat >conftest.$ac_ext <<_ACEOF
5369 #line $LINENO "configure"
5370 /* confdefs.h. */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5375 #ifdef __STDC__
5376 # include <limits.h>
5377 #else
5378 # include <assert.h>
5379 #endif
5380 Syntax error
5381 _ACEOF
5382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5384 ac_status=$?
5385 grep -v '^ *+' conftest.er1 >conftest.err
5386 rm -f conftest.er1
5387 cat conftest.err >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } >/dev/null; then
5390 if test -s conftest.err; then
5391 ac_cpp_err=$ac_c_preproc_warn_flag
5392 else
5393 ac_cpp_err=
5394 fi
5395 else
5396 ac_cpp_err=yes
5397 fi
5398 if test -z "$ac_cpp_err"; then
5399 :
5400 else
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404 # Broken: fails on valid input.
5405 continue
5406 fi
5407 rm -f conftest.err conftest.$ac_ext
5408
5409 # OK, works on sane cases. Now check whether non-existent headers
5410 # can be detected and how.
5411 cat >conftest.$ac_ext <<_ACEOF
5412 #line $LINENO "configure"
5413 /* confdefs.h. */
5414 _ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5418 #include <ac_nonexistent.h>
5419 _ACEOF
5420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5422 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err
5424 rm -f conftest.er1
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } >/dev/null; then
5428 if test -s conftest.err; then
5429 ac_cpp_err=$ac_c_preproc_warn_flag
5430 else
5431 ac_cpp_err=
5432 fi
5433 else
5434 ac_cpp_err=yes
5435 fi
5436 if test -z "$ac_cpp_err"; then
5437 # Broken: success on invalid input.
5438 continue
5439 else
5440 echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5442
5443 # Passes both tests.
5444 ac_preproc_ok=:
5445 break
5446 fi
5447 rm -f conftest.err conftest.$ac_ext
5448
5449 done
5450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5451 rm -f conftest.err conftest.$ac_ext
5452 if $ac_preproc_ok; then
5453 :
5454 else
5455 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5456 See \`config.log' for more details." >&5
5457 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5458 See \`config.log' for more details." >&2;}
5459 { (exit 1); exit 1; }; }
5460 fi
5461
5462 ac_ext=c
5463 ac_cpp='$CPP $CPPFLAGS'
5464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5467
5468
5469 echo "$as_me:$LINENO: checking for egrep" >&5
5470 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5471 if test "${ac_cv_prog_egrep+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5475 then ac_cv_prog_egrep='grep -E'
5476 else ac_cv_prog_egrep='egrep'
5477 fi
5478 fi
5479 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5480 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5481 EGREP=$ac_cv_prog_egrep
5482
5483
5484 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5485 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5486 if test "${ac_cv_header_stdc+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489 cat >conftest.$ac_ext <<_ACEOF
5490 #line $LINENO "configure"
5491 /* confdefs.h. */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5496 #include <stdlib.h>
5497 #include <stdarg.h>
5498 #include <string.h>
5499 #include <float.h>
5500
5501 int
5502 main ()
5503 {
5504
5505 ;
5506 return 0;
5507 }
5508 _ACEOF
5509 rm -f conftest.$ac_objext
5510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5511 (eval $ac_compile) 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } &&
5515 { ac_try='test -s conftest.$ac_objext'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 (eval $ac_try) 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; }; then
5521 ac_cv_header_stdc=yes
5522 else
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5525
5526 ac_cv_header_stdc=no
5527 fi
5528 rm -f conftest.$ac_objext conftest.$ac_ext
5529
5530 if test $ac_cv_header_stdc = yes; then
5531 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5532 cat >conftest.$ac_ext <<_ACEOF
5533 #line $LINENO "configure"
5534 /* confdefs.h. */
5535 _ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5539 #include <string.h>
5540
5541 _ACEOF
5542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5543 $EGREP "memchr" >/dev/null 2>&1; then
5544 :
5545 else
5546 ac_cv_header_stdc=no
5547 fi
5548 rm -f conftest*
5549
5550 fi
5551
5552 if test $ac_cv_header_stdc = yes; then
5553 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5554 cat >conftest.$ac_ext <<_ACEOF
5555 #line $LINENO "configure"
5556 /* confdefs.h. */
5557 _ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5561 #include <stdlib.h>
5562
5563 _ACEOF
5564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5565 $EGREP "free" >/dev/null 2>&1; then
5566 :
5567 else
5568 ac_cv_header_stdc=no
5569 fi
5570 rm -f conftest*
5571
5572 fi
5573
5574 if test $ac_cv_header_stdc = yes; then
5575 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5576 if test "$cross_compiling" = yes; then
5577 :
5578 else
5579 cat >conftest.$ac_ext <<_ACEOF
5580 #line $LINENO "configure"
5581 /* confdefs.h. */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 #include <ctype.h>
5587 #if ((' ' & 0x0FF) == 0x020)
5588 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5589 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5590 #else
5591 # define ISLOWER(c) \
5592 (('a' <= (c) && (c) <= 'i') \
5593 || ('j' <= (c) && (c) <= 'r') \
5594 || ('s' <= (c) && (c) <= 'z'))
5595 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5596 #endif
5597
5598 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5599 int
5600 main ()
5601 {
5602 int i;
5603 for (i = 0; i < 256; i++)
5604 if (XOR (islower (i), ISLOWER (i))
5605 || toupper (i) != TOUPPER (i))
5606 exit(2);
5607 exit (0);
5608 }
5609 _ACEOF
5610 rm -f conftest$ac_exeext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5612 (eval $ac_link) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 (eval $ac_try) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 :
5622 else
5623 echo "$as_me: program exited with status $ac_status" >&5
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5626
5627 ( exit $ac_status )
5628 ac_cv_header_stdc=no
5629 fi
5630 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5631 fi
5632 fi
5633 fi
5634 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5635 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5636 if test $ac_cv_header_stdc = yes; then
5637
5638 cat >>confdefs.h <<\_ACEOF
5639 #define STDC_HEADERS 1
5640 _ACEOF
5641
5642 fi
5643
5644 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5655 inttypes.h stdint.h unistd.h
5656 do
5657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5658 echo "$as_me:$LINENO: checking for $ac_header" >&5
5659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 else
5663 cat >conftest.$ac_ext <<_ACEOF
5664 #line $LINENO "configure"
5665 /* confdefs.h. */
5666 _ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5670 $ac_includes_default
5671
5672 #include <$ac_header>
5673 _ACEOF
5674 rm -f conftest.$ac_objext
5675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5676 (eval $ac_compile) 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } &&
5680 { ac_try='test -s conftest.$ac_objext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 eval "$as_ac_Header=yes"
5687 else
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5690
5691 eval "$as_ac_Header=no"
5692 fi
5693 rm -f conftest.$ac_objext conftest.$ac_ext
5694 fi
5695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5698 cat >>confdefs.h <<_ACEOF
5699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5700 _ACEOF
5701
5702 fi
5703
5704 done
5705
5706
5707 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5708 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
5709 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
5710 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 fi
5713 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
5714 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
5715 else
5716 # Is the header compilable?
5717 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
5718 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
5719 cat >conftest.$ac_ext <<_ACEOF
5720 #line $LINENO "configure"
5721 /* confdefs.h. */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 $ac_includes_default
5727 #include <sys/dg_sys_info.h>
5728 _ACEOF
5729 rm -f conftest.$ac_objext
5730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5731 (eval $ac_compile) 2>&5
5732 ac_status=$?
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } &&
5735 { ac_try='test -s conftest.$ac_objext'
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 (eval $ac_try) 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; }; then
5741 ac_header_compiler=yes
5742 else
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5745
5746 ac_header_compiler=no
5747 fi
5748 rm -f conftest.$ac_objext conftest.$ac_ext
5749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5750 echo "${ECHO_T}$ac_header_compiler" >&6
5751
5752 # Is the header present?
5753 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
5754 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
5755 cat >conftest.$ac_ext <<_ACEOF
5756 #line $LINENO "configure"
5757 /* confdefs.h. */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5762 #include <sys/dg_sys_info.h>
5763 _ACEOF
5764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5766 ac_status=$?
5767 grep -v '^ *+' conftest.er1 >conftest.err
5768 rm -f conftest.er1
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } >/dev/null; then
5772 if test -s conftest.err; then
5773 ac_cpp_err=$ac_c_preproc_warn_flag
5774 else
5775 ac_cpp_err=
5776 fi
5777 else
5778 ac_cpp_err=yes
5779 fi
5780 if test -z "$ac_cpp_err"; then
5781 ac_header_preproc=yes
5782 else
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5785
5786 ac_header_preproc=no
5787 fi
5788 rm -f conftest.err conftest.$ac_ext
5789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5790 echo "${ECHO_T}$ac_header_preproc" >&6
5791
5792 # So? What about this header?
5793 case $ac_header_compiler:$ac_header_preproc in
5794 yes:no )
5795 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
5796 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5797 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
5798 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
5799 (
5800 cat <<\_ASBOX
5801 ## ------------------------------------ ##
5802 ## Report this to bug-autoconf@gnu.org. ##
5803 ## ------------------------------------ ##
5804 _ASBOX
5805 ) |
5806 sed "s/^/$as_me: WARNING: /" >&2
5807 ;;
5808 no:yes )
5809 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
5810 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
5811 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
5812 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
5813 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
5814 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
5815 (
5816 cat <<\_ASBOX
5817 ## ------------------------------------ ##
5818 ## Report this to bug-autoconf@gnu.org. ##
5819 ## ------------------------------------ ##
5820 _ASBOX
5821 ) |
5822 sed "s/^/$as_me: WARNING: /" >&2
5823 ;;
5824 esac
5825 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
5826 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
5827 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
5831 fi
5832 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
5833 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
5834
5835 fi
5836 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
5837 ac_is_dgux=yes;
5838 fi
5839
5840
5841
5842 echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
5843 echo "${ECHO_T}$ac_is_dgux" >&6
5844 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
5845 if test $ac_is_dgux = yes; then
5846 if test "$enable_full_debug" = "yes"; then
5847 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5848 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5849 else
5850 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5851 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5852 fi
5853
5854
5855 fi
5856
5857
5858 # Check whether --with-target-subdir or --without-target-subdir was given.
5859 if test "${with_target_subdir+set}" = set; then
5860 withval="$with_target_subdir"
5861
5862 fi;
5863
5864 # Check whether --with-cross-host or --without-cross-host was given.
5865 if test "${with_cross_host+set}" = set; then
5866 withval="$with_cross_host"
5867
5868 fi;
5869
5870 # automake wants to see AC_EXEEXT. But we don't need it. And having
5871 # it is actually a problem, because the compiler we're passed can't
5872 # necessarily do a full link. So we fool automake here.
5873 if false; then
5874 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
5875 # to nothing, so nothing would remain between `then' and `fi' if it
5876 # were not for the `:' below.
5877 :
5878
5879 fi
5880
5881 echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
5882 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
5883 case "$host" in
5884 sparc-sun-solaris2*|*aix*)
5885 if test "$GCC" = yes; then
5886 echo "$as_me:$LINENO: result: yes" >&5
5887 echo "${ECHO_T}yes" >&6
5888 new_CFLAGS=
5889 for i in $CFLAGS; do
5890 case "$i" in
5891 -O*)
5892 ;;
5893 *)
5894 new_CFLAGS="$new_CFLAGS $i"
5895 ;;
5896 esac
5897 done
5898 CFLAGS="$new_CFLAGS"
5899 else
5900 echo "$as_me:$LINENO: result: no" >&5
5901 echo "${ECHO_T}no" >&6
5902 fi
5903 ;;
5904 *) echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6 ;;
5906 esac
5907
5908 MY_CFLAGS="$CFLAGS"
5909
5910
5911 cat >>confdefs.h <<\_ACEOF
5912 #define SILENT 1
5913 _ACEOF
5914
5915 cat >>confdefs.h <<\_ACEOF
5916 #define NO_SIGNALS 1
5917 _ACEOF
5918
5919 cat >>confdefs.h <<\_ACEOF
5920 #define ALL_INTERIOR_POINTERS 1
5921 _ACEOF
5922
5923
5924 cat >>confdefs.h <<\_ACEOF
5925 #define JAVA_FINALIZATION 1
5926 _ACEOF
5927
5928 cat >>confdefs.h <<\_ACEOF
5929 #define GC_GCJ_SUPPORT 1
5930 _ACEOF
5931
5932 cat >>confdefs.h <<\_ACEOF
5933 #define ATOMIC_UNCOLLECTABLE 1
5934 _ACEOF
5935
5936
5937 if test -n "${with_cross_host}"; then
5938 cat >>confdefs.h <<\_ACEOF
5939 #define NO_SIGSET 1
5940 _ACEOF
5941
5942 cat >>confdefs.h <<\_ACEOF
5943 #define NO_DEBUGGING 1
5944 _ACEOF
5945
5946 fi
5947
5948 # Check whether --enable-full-debug or --disable-full-debug was given.
5949 if test "${enable_full_debug+set}" = set; then
5950 enableval="$enable_full_debug"
5951 if test "$enable_full_debug" = "yes"; then
5952 { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
5953 echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
5954 cat >>confdefs.h <<\_ACEOF
5955 #define KEEP_BACK_PTRS 1
5956 _ACEOF
5957
5958 cat >>confdefs.h <<\_ACEOF
5959 #define DBG_HDRS_ALL 1
5960 _ACEOF
5961
5962 case $host in
5963 ia64-*-linux* )
5964 cat >>confdefs.h <<\_ACEOF
5965 #define MAKE_BACK_GRAPH 1
5966 _ACEOF
5967
5968 ;;
5969 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
5970 cat >>confdefs.h <<\_ACEOF
5971 #define MAKE_BACK_GRAPH 1
5972 _ACEOF
5973
5974 { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
5975 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
5976 cat >>confdefs.h <<\_ACEOF
5977 #define SAVE_CALL_COUNT 8
5978 _ACEOF
5979
5980 ;;
5981 i345686-*-dgux*)
5982 cat >>confdefs.h <<\_ACEOF
5983 #define MAKE_BACK_GRAPH 1
5984 _ACEOF
5985
5986 ;;
5987 esac
5988 fi
5989 fi;
5990
5991 if test -n "$with_cross_host" &&
5992 test x"$with_cross_host" != x"no"; then
5993 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
5994 toolexeclibdir='$(toolexecdir)/lib'
5995 else
5996 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
5997 toolexeclibdir='$(libdir)'
5998 fi
5999 multi_os_directory=`$CC -print-multi-os-directory`
6000 case $multi_os_directory in
6001 .) ;; # Avoid trailing /.
6002 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
6003 esac
6004
6005
6006
6007 if test "${multilib}" = "yes"; then
6008 multilib_arg="--enable-multilib"
6009 else
6010 multilib_arg=
6011 fi
6012
6013 ac_config_files="$ac_config_files Makefile include/Makefile"
6014 ac_config_commands="$ac_config_commands default"
6015 cat >confcache <<\_ACEOF
6016 # This file is a shell script that caches the results of configure
6017 # tests run on this system so they can be shared between configure
6018 # scripts and configure runs, see configure's option --config-cache.
6019 # It is not useful on other systems. If it contains results you don't
6020 # want to keep, you may remove or edit it.
6021 #
6022 # config.status only pays attention to the cache file if you give it
6023 # the --recheck option to rerun configure.
6024 #
6025 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6026 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6027 # following values.
6028
6029 _ACEOF
6030
6031 # The following way of writing the cache mishandles newlines in values,
6032 # but we know of no workaround that is simple, portable, and efficient.
6033 # So, don't put newlines in cache variables' values.
6034 # Ultrix sh set writes to stderr and can't be redirected directly,
6035 # and sets the high bit in the cache file unless we assign to the vars.
6036 {
6037 (set) 2>&1 |
6038 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6039 *ac_space=\ *)
6040 # `set' does not quote correctly, so add quotes (double-quote
6041 # substitution turns \\\\ into \\, and sed turns \\ into \).
6042 sed -n \
6043 "s/'/'\\\\''/g;
6044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6045 ;;
6046 *)
6047 # `set' quotes correctly as required by POSIX, so do not add quotes.
6048 sed -n \
6049 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6050 ;;
6051 esac;
6052 } |
6053 sed '
6054 t clear
6055 : clear
6056 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6057 t end
6058 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6059 : end' >>confcache
6060 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6061 if test -w $cache_file; then
6062 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6063 cat confcache >$cache_file
6064 else
6065 echo "not updating unwritable cache $cache_file"
6066 fi
6067 fi
6068 rm -f confcache
6069
6070 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6071 # Let make expand exec_prefix.
6072 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6073
6074 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6075 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6076 # trailing colons and then remove the whole line if VPATH becomes empty
6077 # (actually we leave an empty line to preserve line numbers).
6078 if test "x$srcdir" = x.; then
6079 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6080 s/:*\$(srcdir):*/:/;
6081 s/:*\${srcdir}:*/:/;
6082 s/:*@srcdir@:*/:/;
6083 s/^\([^=]*=[ ]*\):*/\1/;
6084 s/:*$//;
6085 s/^[^=]*=[ ]*$//;
6086 }'
6087 fi
6088
6089 # Transform confdefs.h into DEFS.
6090 # Protect against shell expansion while executing Makefile rules.
6091 # Protect against Makefile macro expansion.
6092 #
6093 # If the first sed substitution is executed (which looks for macros that
6094 # take arguments), then we branch to the quote section. Otherwise,
6095 # look for a macro that doesn't take arguments.
6096 cat >confdef2opt.sed <<\_ACEOF
6097 t clear
6098 : clear
6099 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
6100 t quote
6101 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
6102 t quote
6103 d
6104 : quote
6105 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
6106 s,\[,\\&,g
6107 s,\],\\&,g
6108 s,\$,$$,g
6109 p
6110 _ACEOF
6111 # We use echo to avoid assuming a particular line-breaking character.
6112 # The extra dot is to prevent the shell from consuming trailing
6113 # line-breaks from the sub-command output. A line-break within
6114 # single-quotes doesn't work because, if this script is created in a
6115 # platform that uses two characters for line-breaks (e.g., DOS), tr
6116 # would break.
6117 ac_LF_and_DOT=`echo; echo .`
6118 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6119 rm -f confdef2opt.sed
6120
6121
6122 ac_libobjs=
6123 ac_ltlibobjs=
6124 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6125 # 1. Remove the extension, and $U if already installed.
6126 ac_i=`echo "$ac_i" |
6127 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6128 # 2. Add them.
6129 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6130 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6131 done
6132 LIBOBJS=$ac_libobjs
6133
6134 LTLIBOBJS=$ac_ltlibobjs
6135
6136
6137
6138 : ${CONFIG_STATUS=./config.status}
6139 ac_clean_files_save=$ac_clean_files
6140 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6141 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6142 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6143 cat >$CONFIG_STATUS <<_ACEOF
6144 #! $SHELL
6145 # Generated by $as_me.
6146 # Run this file to recreate the current configuration.
6147 # Compiler output produced by configure, useful for debugging
6148 # configure, is in config.log if it exists.
6149
6150 debug=false
6151 ac_cs_recheck=false
6152 ac_cs_silent=false
6153 SHELL=\${CONFIG_SHELL-$SHELL}
6154 _ACEOF
6155
6156 cat >>$CONFIG_STATUS <<\_ACEOF
6157 ## --------------------- ##
6158 ## M4sh Initialization. ##
6159 ## --------------------- ##
6160
6161 # Be Bourne compatible
6162 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6163 emulate sh
6164 NULLCMD=:
6165 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6166 # is contrary to our usage. Disable this feature.
6167 alias -g '${1+"$@"}'='"$@"'
6168 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6169 set -o posix
6170 fi
6171
6172 # Support unset when possible.
6173 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6174 as_unset=unset
6175 else
6176 as_unset=false
6177 fi
6178
6179
6180 # Work around bugs in pre-3.0 UWIN ksh.
6181 $as_unset ENV MAIL MAILPATH
6182 PS1='$ '
6183 PS2='> '
6184 PS4='+ '
6185
6186 # NLS nuisances.
6187 for as_var in \
6188 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6189 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6190 LC_TELEPHONE LC_TIME
6191 do
6192 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6193 eval $as_var=C; export $as_var
6194 else
6195 $as_unset $as_var
6196 fi
6197 done
6198
6199 # Required to use basename.
6200 if expr a : '\(a\)' >/dev/null 2>&1; then
6201 as_expr=expr
6202 else
6203 as_expr=false
6204 fi
6205
6206 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6207 as_basename=basename
6208 else
6209 as_basename=false
6210 fi
6211
6212
6213 # Name of the executable.
6214 as_me=`$as_basename "$0" ||
6215 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6216 X"$0" : 'X\(//\)$' \| \
6217 X"$0" : 'X\(/\)$' \| \
6218 . : '\(.\)' 2>/dev/null ||
6219 echo X/"$0" |
6220 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6221 /^X\/\(\/\/\)$/{ s//\1/; q; }
6222 /^X\/\(\/\).*/{ s//\1/; q; }
6223 s/.*/./; q'`
6224
6225
6226 # PATH needs CR, and LINENO needs CR and PATH.
6227 # Avoid depending upon Character Ranges.
6228 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6229 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6230 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6231 as_cr_digits='0123456789'
6232 as_cr_alnum=$as_cr_Letters$as_cr_digits
6233
6234 # The user is always right.
6235 if test "${PATH_SEPARATOR+set}" != set; then
6236 echo "#! /bin/sh" >conf$$.sh
6237 echo "exit 0" >>conf$$.sh
6238 chmod +x conf$$.sh
6239 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6240 PATH_SEPARATOR=';'
6241 else
6242 PATH_SEPARATOR=:
6243 fi
6244 rm -f conf$$.sh
6245 fi
6246
6247
6248 as_lineno_1=$LINENO
6249 as_lineno_2=$LINENO
6250 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6251 test "x$as_lineno_1" != "x$as_lineno_2" &&
6252 test "x$as_lineno_3" = "x$as_lineno_2" || {
6253 # Find who we are. Look in the path if we contain no path at all
6254 # relative or not.
6255 case $0 in
6256 *[\\/]* ) as_myself=$0 ;;
6257 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6259 do
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6263 done
6264
6265 ;;
6266 esac
6267 # We did not find ourselves, most probably we were run as `sh COMMAND'
6268 # in which case we are not to be found in the path.
6269 if test "x$as_myself" = x; then
6270 as_myself=$0
6271 fi
6272 if test ! -f "$as_myself"; then
6273 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6274 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6275 { (exit 1); exit 1; }; }
6276 fi
6277 case $CONFIG_SHELL in
6278 '')
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6281 do
6282 IFS=$as_save_IFS
6283 test -z "$as_dir" && as_dir=.
6284 for as_base in sh bash ksh sh5; do
6285 case $as_dir in
6286 /*)
6287 if ("$as_dir/$as_base" -c '
6288 as_lineno_1=$LINENO
6289 as_lineno_2=$LINENO
6290 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6291 test "x$as_lineno_1" != "x$as_lineno_2" &&
6292 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6293 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6294 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6295 CONFIG_SHELL=$as_dir/$as_base
6296 export CONFIG_SHELL
6297 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6298 fi;;
6299 esac
6300 done
6301 done
6302 ;;
6303 esac
6304
6305 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6306 # uniformly replaced by the line number. The first 'sed' inserts a
6307 # line-number line before each line; the second 'sed' does the real
6308 # work. The second script uses 'N' to pair each line-number line
6309 # with the numbered line, and appends trailing '-' during
6310 # substitution so that $LINENO is not a special case at line end.
6311 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6312 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6313 sed '=' <$as_myself |
6314 sed '
6315 N
6316 s,$,-,
6317 : loop
6318 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6319 t loop
6320 s,-$,,
6321 s,^['$as_cr_digits']*\n,,
6322 ' >$as_me.lineno &&
6323 chmod +x $as_me.lineno ||
6324 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6325 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6326 { (exit 1); exit 1; }; }
6327
6328 # Don't try to exec as it changes $[0], causing all sort of problems
6329 # (the dirname of $[0] is not the place where we might find the
6330 # original and so on. Autoconf is especially sensible to this).
6331 . ./$as_me.lineno
6332 # Exit status is that of the last command.
6333 exit
6334 }
6335
6336
6337 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6338 *c*,-n*) ECHO_N= ECHO_C='
6339 ' ECHO_T=' ' ;;
6340 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6341 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6342 esac
6343
6344 if expr a : '\(a\)' >/dev/null 2>&1; then
6345 as_expr=expr
6346 else
6347 as_expr=false
6348 fi
6349
6350 rm -f conf$$ conf$$.exe conf$$.file
6351 echo >conf$$.file
6352 if ln -s conf$$.file conf$$ 2>/dev/null; then
6353 # We could just check for DJGPP; but this test a) works b) is more generic
6354 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6355 if test -f conf$$.exe; then
6356 # Don't use ln at all; we don't have any links
6357 as_ln_s='cp -p'
6358 else
6359 as_ln_s='ln -s'
6360 fi
6361 elif ln conf$$.file conf$$ 2>/dev/null; then
6362 as_ln_s=ln
6363 else
6364 as_ln_s='cp -p'
6365 fi
6366 rm -f conf$$ conf$$.exe conf$$.file
6367
6368 if mkdir -p . 2>/dev/null; then
6369 as_mkdir_p=:
6370 else
6371 as_mkdir_p=false
6372 fi
6373
6374 as_executable_p="test -f"
6375
6376 # Sed expression to map a string onto a valid CPP name.
6377 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6378
6379 # Sed expression to map a string onto a valid variable name.
6380 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6381
6382
6383 # IFS
6384 # We need space, tab and new line, in precisely that order.
6385 as_nl='
6386 '
6387 IFS=" $as_nl"
6388
6389 # CDPATH.
6390 $as_unset CDPATH
6391
6392 exec 6>&1
6393
6394 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6395 # report actual input values of CONFIG_FILES etc. instead of their
6396 # values after options handling. Logging --version etc. is OK.
6397 exec 5>>config.log
6398 {
6399 echo
6400 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6401 ## Running $as_me. ##
6402 _ASBOX
6403 } >&5
6404 cat >&5 <<_CSEOF
6405
6406 This file was extended by $as_me, which was
6407 generated by GNU Autoconf 2.57. Invocation command line was
6408
6409 CONFIG_FILES = $CONFIG_FILES
6410 CONFIG_HEADERS = $CONFIG_HEADERS
6411 CONFIG_LINKS = $CONFIG_LINKS
6412 CONFIG_COMMANDS = $CONFIG_COMMANDS
6413 $ $0 $@
6414
6415 _CSEOF
6416 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6417 echo >&5
6418 _ACEOF
6419
6420 # Files that config.status was made for.
6421 if test -n "$ac_config_files"; then
6422 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6423 fi
6424
6425 if test -n "$ac_config_headers"; then
6426 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6427 fi
6428
6429 if test -n "$ac_config_links"; then
6430 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6431 fi
6432
6433 if test -n "$ac_config_commands"; then
6434 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6435 fi
6436
6437 cat >>$CONFIG_STATUS <<\_ACEOF
6438
6439 ac_cs_usage="\
6440 \`$as_me' instantiates files from templates according to the
6441 current configuration.
6442
6443 Usage: $0 [OPTIONS] [FILE]...
6444
6445 -h, --help print this help, then exit
6446 -V, --version print version number, then exit
6447 -q, --quiet do not print progress messages
6448 -d, --debug don't remove temporary files
6449 --recheck update $as_me by reconfiguring in the same conditions
6450 --file=FILE[:TEMPLATE]
6451 instantiate the configuration file FILE
6452
6453 Configuration files:
6454 $config_files
6455
6456 Configuration commands:
6457 $config_commands
6458
6459 Report bugs to <bug-autoconf@gnu.org>."
6460 _ACEOF
6461
6462 cat >>$CONFIG_STATUS <<_ACEOF
6463 ac_cs_version="\\
6464 config.status
6465 configured by $0, generated by GNU Autoconf 2.57,
6466 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6467
6468 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6469 Free Software Foundation, Inc.
6470 This config.status script is free software; the Free Software Foundation
6471 gives unlimited permission to copy, distribute and modify it."
6472 srcdir=$srcdir
6473 INSTALL="$INSTALL"
6474 _ACEOF
6475
6476 cat >>$CONFIG_STATUS <<\_ACEOF
6477 # If no file are specified by the user, then we need to provide default
6478 # value. By we need to know if files were specified by the user.
6479 ac_need_defaults=:
6480 while test $# != 0
6481 do
6482 case $1 in
6483 --*=*)
6484 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6485 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6486 ac_shift=:
6487 ;;
6488 -*)
6489 ac_option=$1
6490 ac_optarg=$2
6491 ac_shift=shift
6492 ;;
6493 *) # This is not an option, so the user has probably given explicit
6494 # arguments.
6495 ac_option=$1
6496 ac_need_defaults=false;;
6497 esac
6498
6499 case $ac_option in
6500 # Handling of the options.
6501 _ACEOF
6502 cat >>$CONFIG_STATUS <<\_ACEOF
6503 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6504 ac_cs_recheck=: ;;
6505 --version | --vers* | -V )
6506 echo "$ac_cs_version"; exit 0 ;;
6507 --he | --h)
6508 # Conflict between --help and --header
6509 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6510 Try \`$0 --help' for more information." >&5
6511 echo "$as_me: error: ambiguous option: $1
6512 Try \`$0 --help' for more information." >&2;}
6513 { (exit 1); exit 1; }; };;
6514 --help | --hel | -h )
6515 echo "$ac_cs_usage"; exit 0 ;;
6516 --debug | --d* | -d )
6517 debug=: ;;
6518 --file | --fil | --fi | --f )
6519 $ac_shift
6520 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6521 ac_need_defaults=false;;
6522 --header | --heade | --head | --hea )
6523 $ac_shift
6524 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6525 ac_need_defaults=false;;
6526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6527 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6528 ac_cs_silent=: ;;
6529
6530 # This is an error.
6531 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6532 Try \`$0 --help' for more information." >&5
6533 echo "$as_me: error: unrecognized option: $1
6534 Try \`$0 --help' for more information." >&2;}
6535 { (exit 1); exit 1; }; } ;;
6536
6537 *) ac_config_targets="$ac_config_targets $1" ;;
6538
6539 esac
6540 shift
6541 done
6542
6543 ac_configure_extra_args=
6544
6545 if $ac_cs_silent; then
6546 exec 6>/dev/null
6547 ac_configure_extra_args="$ac_configure_extra_args --silent"
6548 fi
6549
6550 _ACEOF
6551 cat >>$CONFIG_STATUS <<_ACEOF
6552 if \$ac_cs_recheck; then
6553 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6554 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6555 fi
6556
6557 _ACEOF
6558
6559 cat >>$CONFIG_STATUS <<_ACEOF
6560 #
6561 # INIT-COMMANDS section.
6562 #
6563
6564 srcdir=${srcdir}
6565 host=${host}
6566 target=${target}
6567 with_multisubdir=${with_multisubdir}
6568 ac_configure_args="${multilib_arg} ${ac_configure_args}"
6569 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6570 gc_basedir=${gc_basedir}
6571 CC="${CC}"
6572 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
6573 DEFS="$DEFS"
6574 INCLUDES="$INCLUDES"
6575
6576
6577 _ACEOF
6578
6579
6580
6581 cat >>$CONFIG_STATUS <<\_ACEOF
6582 for ac_config_target in $ac_config_targets
6583 do
6584 case "$ac_config_target" in
6585 # Handling of arguments.
6586 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6587 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6588 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6589 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6590 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6591 { (exit 1); exit 1; }; };;
6592 esac
6593 done
6594
6595 # If the user did not use the arguments to specify the items to instantiate,
6596 # then the envvar interface is used. Set only those that are not.
6597 # We use the long form for the default assignment because of an extremely
6598 # bizarre bug on SunOS 4.1.3.
6599 if $ac_need_defaults; then
6600 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6601 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6602 fi
6603
6604 # Have a temporary directory for convenience. Make it in the build tree
6605 # simply because there is no reason to put it here, and in addition,
6606 # creating and moving files from /tmp can sometimes cause problems.
6607 # Create a temporary directory, and hook for its removal unless debugging.
6608 $debug ||
6609 {
6610 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6611 trap '{ (exit 1); exit 1; }' 1 2 13 15
6612 }
6613
6614 # Create a (secure) tmp directory for tmp files.
6615
6616 {
6617 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6618 test -n "$tmp" && test -d "$tmp"
6619 } ||
6620 {
6621 tmp=./confstat$$-$RANDOM
6622 (umask 077 && mkdir $tmp)
6623 } ||
6624 {
6625 echo "$me: cannot create a temporary directory in ." >&2
6626 { (exit 1); exit 1; }
6627 }
6628
6629 _ACEOF
6630
6631 cat >>$CONFIG_STATUS <<_ACEOF
6632
6633 #
6634 # CONFIG_FILES section.
6635 #
6636
6637 # No need to generate the scripts if there are no CONFIG_FILES.
6638 # This happens for instance when ./config.status config.h
6639 if test -n "\$CONFIG_FILES"; then
6640 # Protect against being on the right side of a sed subst in config.status.
6641 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6642 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6643 s,@SHELL@,$SHELL,;t t
6644 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6645 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6646 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6647 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6648 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6649 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6650 s,@exec_prefix@,$exec_prefix,;t t
6651 s,@prefix@,$prefix,;t t
6652 s,@program_transform_name@,$program_transform_name,;t t
6653 s,@bindir@,$bindir,;t t
6654 s,@sbindir@,$sbindir,;t t
6655 s,@libexecdir@,$libexecdir,;t t
6656 s,@datadir@,$datadir,;t t
6657 s,@sysconfdir@,$sysconfdir,;t t
6658 s,@sharedstatedir@,$sharedstatedir,;t t
6659 s,@localstatedir@,$localstatedir,;t t
6660 s,@libdir@,$libdir,;t t
6661 s,@includedir@,$includedir,;t t
6662 s,@oldincludedir@,$oldincludedir,;t t
6663 s,@infodir@,$infodir,;t t
6664 s,@mandir@,$mandir,;t t
6665 s,@build_alias@,$build_alias,;t t
6666 s,@host_alias@,$host_alias,;t t
6667 s,@target_alias@,$target_alias,;t t
6668 s,@DEFS@,$DEFS,;t t
6669 s,@ECHO_C@,$ECHO_C,;t t
6670 s,@ECHO_N@,$ECHO_N,;t t
6671 s,@ECHO_T@,$ECHO_T,;t t
6672 s,@LIBS@,$LIBS,;t t
6673 s,@gc_basedir@,$gc_basedir,;t t
6674 s,@build@,$build,;t t
6675 s,@build_cpu@,$build_cpu,;t t
6676 s,@build_vendor@,$build_vendor,;t t
6677 s,@build_os@,$build_os,;t t
6678 s,@host@,$host,;t t
6679 s,@host_cpu@,$host_cpu,;t t
6680 s,@host_vendor@,$host_vendor,;t t
6681 s,@host_os@,$host_os,;t t
6682 s,@target@,$target,;t t
6683 s,@target_cpu@,$target_cpu,;t t
6684 s,@target_vendor@,$target_vendor,;t t
6685 s,@target_os@,$target_os,;t t
6686 s,@mkinstalldirs@,$mkinstalldirs,;t t
6687 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6688 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6689 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6690 s,@PACKAGE@,$PACKAGE,;t t
6691 s,@VERSION@,$VERSION,;t t
6692 s,@ACLOCAL@,$ACLOCAL,;t t
6693 s,@AUTOCONF@,$AUTOCONF,;t t
6694 s,@AUTOMAKE@,$AUTOMAKE,;t t
6695 s,@AUTOHEADER@,$AUTOHEADER,;t t
6696 s,@MAKEINFO@,$MAKEINFO,;t t
6697 s,@SET_MAKE@,$SET_MAKE,;t t
6698 s,@CC@,$CC,;t t
6699 s,@ac_ct_CC@,$ac_ct_CC,;t t
6700 s,@EXEEXT@,$EXEEXT,;t t
6701 s,@OBJEXT@,$OBJEXT,;t t
6702 s,@CXX@,$CXX,;t t
6703 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6704 s,@CFLAGS@,$CFLAGS,;t t
6705 s,@CXXFLAGS@,$CXXFLAGS,;t t
6706 s,@AS@,$AS,;t t
6707 s,@ac_ct_AS@,$ac_ct_AS,;t t
6708 s,@AR@,$AR,;t t
6709 s,@ac_ct_AR@,$ac_ct_AR,;t t
6710 s,@RANLIB@,$RANLIB,;t t
6711 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6712 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6713 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6714 s,@MAINT@,$MAINT,;t t
6715 s,@GC_CFLAGS@,$GC_CFLAGS,;t t
6716 s,@LN_S@,$LN_S,;t t
6717 s,@STRIP@,$STRIP,;t t
6718 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6719 s,@LIBTOOL@,$LIBTOOL,;t t
6720 s,@CXXCPP@,$CXXCPP,;t t
6721 s,@CPPFLAGS@,$CPPFLAGS,;t t
6722 s,@THREADLIBS@,$THREADLIBS,;t t
6723 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
6724 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
6725 s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
6726 s,@target_all@,$target_all,;t t
6727 s,@target_noncanonical@,$target_noncanonical,;t t
6728 s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
6729 s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
6730 s,@INCLUDES@,$INCLUDES,;t t
6731 s,@CXXINCLUDES@,$CXXINCLUDES,;t t
6732 s,@addobjs@,$addobjs,;t t
6733 s,@addincludes@,$addincludes,;t t
6734 s,@addlibs@,$addlibs,;t t
6735 s,@addtests@,$addtests,;t t
6736 s,@CPP@,$CPP,;t t
6737 s,@EGREP@,$EGREP,;t t
6738 s,@MY_CFLAGS@,$MY_CFLAGS,;t t
6739 s,@toolexecdir@,$toolexecdir,;t t
6740 s,@toolexeclibdir@,$toolexeclibdir,;t t
6741 s,@LIBOBJS@,$LIBOBJS,;t t
6742 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6743 CEOF
6744
6745 _ACEOF
6746
6747 cat >>$CONFIG_STATUS <<\_ACEOF
6748 # Split the substitutions into bite-sized pieces for seds with
6749 # small command number limits, like on Digital OSF/1 and HP-UX.
6750 ac_max_sed_lines=48
6751 ac_sed_frag=1 # Number of current file.
6752 ac_beg=1 # First line for current file.
6753 ac_end=$ac_max_sed_lines # Line after last line for current file.
6754 ac_more_lines=:
6755 ac_sed_cmds=
6756 while $ac_more_lines; do
6757 if test $ac_beg -gt 1; then
6758 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6759 else
6760 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6761 fi
6762 if test ! -s $tmp/subs.frag; then
6763 ac_more_lines=false
6764 else
6765 # The purpose of the label and of the branching condition is to
6766 # speed up the sed processing (if there are no `@' at all, there
6767 # is no need to browse any of the substitutions).
6768 # These are the two extra sed commands mentioned above.
6769 (echo ':t
6770 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6771 if test -z "$ac_sed_cmds"; then
6772 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6773 else
6774 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6775 fi
6776 ac_sed_frag=`expr $ac_sed_frag + 1`
6777 ac_beg=$ac_end
6778 ac_end=`expr $ac_end + $ac_max_sed_lines`
6779 fi
6780 done
6781 if test -z "$ac_sed_cmds"; then
6782 ac_sed_cmds=cat
6783 fi
6784 fi # test -n "$CONFIG_FILES"
6785
6786 _ACEOF
6787 cat >>$CONFIG_STATUS <<\_ACEOF
6788 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6789 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6790 case $ac_file in
6791 - | *:- | *:-:* ) # input from stdin
6792 cat >$tmp/stdin
6793 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6794 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6795 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6796 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6797 * ) ac_file_in=$ac_file.in ;;
6798 esac
6799
6800 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6801 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6802 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6803 X"$ac_file" : 'X\(//\)[^/]' \| \
6804 X"$ac_file" : 'X\(//\)$' \| \
6805 X"$ac_file" : 'X\(/\)' \| \
6806 . : '\(.\)' 2>/dev/null ||
6807 echo X"$ac_file" |
6808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6809 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6810 /^X\(\/\/\)$/{ s//\1/; q; }
6811 /^X\(\/\).*/{ s//\1/; q; }
6812 s/.*/./; q'`
6813 { if $as_mkdir_p; then
6814 mkdir -p "$ac_dir"
6815 else
6816 as_dir="$ac_dir"
6817 as_dirs=
6818 while test ! -d "$as_dir"; do
6819 as_dirs="$as_dir $as_dirs"
6820 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6822 X"$as_dir" : 'X\(//\)[^/]' \| \
6823 X"$as_dir" : 'X\(//\)$' \| \
6824 X"$as_dir" : 'X\(/\)' \| \
6825 . : '\(.\)' 2>/dev/null ||
6826 echo X"$as_dir" |
6827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6829 /^X\(\/\/\)$/{ s//\1/; q; }
6830 /^X\(\/\).*/{ s//\1/; q; }
6831 s/.*/./; q'`
6832 done
6833 test ! -n "$as_dirs" || mkdir $as_dirs
6834 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6835 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6836 { (exit 1); exit 1; }; }; }
6837
6838 ac_builddir=.
6839
6840 if test "$ac_dir" != .; then
6841 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6842 # A "../" for each directory in $ac_dir_suffix.
6843 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6844 else
6845 ac_dir_suffix= ac_top_builddir=
6846 fi
6847
6848 case $srcdir in
6849 .) # No --srcdir option. We are building in place.
6850 ac_srcdir=.
6851 if test -z "$ac_top_builddir"; then
6852 ac_top_srcdir=.
6853 else
6854 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6855 fi ;;
6856 [\\/]* | ?:[\\/]* ) # Absolute path.
6857 ac_srcdir=$srcdir$ac_dir_suffix;
6858 ac_top_srcdir=$srcdir ;;
6859 *) # Relative path.
6860 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6861 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6862 esac
6863 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6864 # absolute.
6865 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6866 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6867 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6868 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6869
6870
6871 case $INSTALL in
6872 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6873 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6874 esac
6875
6876 if test x"$ac_file" != x-; then
6877 { echo "$as_me:$LINENO: creating $ac_file" >&5
6878 echo "$as_me: creating $ac_file" >&6;}
6879 rm -f "$ac_file"
6880 fi
6881 # Let's still pretend it is `configure' which instantiates (i.e., don't
6882 # use $as_me), people would be surprised to read:
6883 # /* config.h. Generated by config.status. */
6884 if test x"$ac_file" = x-; then
6885 configure_input=
6886 else
6887 configure_input="$ac_file. "
6888 fi
6889 configure_input=$configure_input"Generated from `echo $ac_file_in |
6890 sed 's,.*/,,'` by configure."
6891
6892 # First look for the input files in the build tree, otherwise in the
6893 # src tree.
6894 ac_file_inputs=`IFS=:
6895 for f in $ac_file_in; do
6896 case $f in
6897 -) echo $tmp/stdin ;;
6898 [\\/$]*)
6899 # Absolute (can't be DOS-style, as IFS=:)
6900 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6901 echo "$as_me: error: cannot find input file: $f" >&2;}
6902 { (exit 1); exit 1; }; }
6903 echo $f;;
6904 *) # Relative
6905 if test -f "$f"; then
6906 # Build tree
6907 echo $f
6908 elif test -f "$srcdir/$f"; then
6909 # Source tree
6910 echo $srcdir/$f
6911 else
6912 # /dev/null tree
6913 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6914 echo "$as_me: error: cannot find input file: $f" >&2;}
6915 { (exit 1); exit 1; }; }
6916 fi;;
6917 esac
6918 done` || { (exit 1); exit 1; }
6919 _ACEOF
6920 cat >>$CONFIG_STATUS <<_ACEOF
6921 sed "$ac_vpsub
6922 $extrasub
6923 _ACEOF
6924 cat >>$CONFIG_STATUS <<\_ACEOF
6925 :t
6926 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6927 s,@configure_input@,$configure_input,;t t
6928 s,@srcdir@,$ac_srcdir,;t t
6929 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6930 s,@top_srcdir@,$ac_top_srcdir,;t t
6931 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6932 s,@builddir@,$ac_builddir,;t t
6933 s,@abs_builddir@,$ac_abs_builddir,;t t
6934 s,@top_builddir@,$ac_top_builddir,;t t
6935 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6936 s,@INSTALL@,$ac_INSTALL,;t t
6937 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6938 rm -f $tmp/stdin
6939 if test x"$ac_file" != x-; then
6940 mv $tmp/out $ac_file
6941 else
6942 cat $tmp/out
6943 rm -f $tmp/out
6944 fi
6945
6946 done
6947 _ACEOF
6948 cat >>$CONFIG_STATUS <<\_ACEOF
6949
6950 #
6951 # CONFIG_COMMANDS section.
6952 #
6953 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6954 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6955 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6956 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6957 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6958 X"$ac_dest" : 'X\(//\)[^/]' \| \
6959 X"$ac_dest" : 'X\(//\)$' \| \
6960 X"$ac_dest" : 'X\(/\)' \| \
6961 . : '\(.\)' 2>/dev/null ||
6962 echo X"$ac_dest" |
6963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6964 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6965 /^X\(\/\/\)$/{ s//\1/; q; }
6966 /^X\(\/\).*/{ s//\1/; q; }
6967 s/.*/./; q'`
6968 ac_builddir=.
6969
6970 if test "$ac_dir" != .; then
6971 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6972 # A "../" for each directory in $ac_dir_suffix.
6973 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6974 else
6975 ac_dir_suffix= ac_top_builddir=
6976 fi
6977
6978 case $srcdir in
6979 .) # No --srcdir option. We are building in place.
6980 ac_srcdir=.
6981 if test -z "$ac_top_builddir"; then
6982 ac_top_srcdir=.
6983 else
6984 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6985 fi ;;
6986 [\\/]* | ?:[\\/]* ) # Absolute path.
6987 ac_srcdir=$srcdir$ac_dir_suffix;
6988 ac_top_srcdir=$srcdir ;;
6989 *) # Relative path.
6990 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6991 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6992 esac
6993 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6994 # absolute.
6995 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6996 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6997 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6998 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6999
7000
7001 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7002 echo "$as_me: executing $ac_dest commands" >&6;}
7003 case $ac_dest in
7004 default )
7005 echo "$INCLUDES $DEFS" > boehm-cflags
7006
7007 if test -n "$CONFIG_FILES"; then
7008 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
7009 ac_file=Makefile . ${gc_basedir}/../config-ml.in
7010 fi ;;
7011 esac
7012 done
7013 _ACEOF
7014
7015 cat >>$CONFIG_STATUS <<\_ACEOF
7016
7017 { (exit 0); exit 0; }
7018 _ACEOF
7019 chmod +x $CONFIG_STATUS
7020 ac_clean_files=$ac_clean_files_save
7021
7022
7023 # configure is writing to config.log, and then calls config.status.
7024 # config.status does its own redirection, appending to config.log.
7025 # Unfortunately, on DOS this fails, as config.log is still kept open
7026 # by configure, so config.status won't be able to write to it; its
7027 # output is simply discarded. So we exec the FD to /dev/null,
7028 # effectively closing config.log, so it can be properly (re)opened and
7029 # appended to by config.status. When coming back to configure, we
7030 # need to make the FD available again.
7031 if test "$no_create" != yes; then
7032 ac_cs_success=:
7033 ac_config_status_args=
7034 test "$silent" = yes &&
7035 ac_config_status_args="$ac_config_status_args --quiet"
7036 exec 5>/dev/null
7037 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7038 exec 5>>config.log
7039 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7040 # would make configure fail if this is the last instruction.
7041 $ac_cs_success || { (exit 1); exit 1; }
7042 fi
7043