configure.in: Remove more obsolete, bogus code.
[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
4730 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
4731 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
4732 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4733 if test -z "$THREADS"; then
4734 THREADS=no
4735 fi
4736 echo "$as_me:$LINENO: result: $THREADS" >&5
4737 echo "${ECHO_T}$THREADS" >&6
4738
4739 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
4740 if test "${enable_parallel_mark+set}" = set; then
4741 enableval="$enable_parallel_mark"
4742 case "$THREADS" in
4743 no | none | single)
4744 { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
4745 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
4746 { (exit 1); exit 1; }; }
4747 ;;
4748 esac
4749
4750 fi;
4751
4752 INCLUDES="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
4753 THREADLIBS=
4754 case "$THREADS" in
4755 no | none | single)
4756 THREADS=none
4757 ;;
4758 posix | pthreads)
4759 THREADS=posix
4760 THREADLIBS=-lpthread
4761 case "$host" in
4762 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
4763 cat >>confdefs.h <<\_ACEOF
4764 #define GC_LINUX_THREADS 1
4765 _ACEOF
4766
4767 cat >>confdefs.h <<\_ACEOF
4768 #define _REENTRANT 1
4769 _ACEOF
4770
4771 if test "${enable_parallel_mark}" = yes; then
4772 cat >>confdefs.h <<\_ACEOF
4773 #define PARALLEL_MARK 1
4774 _ACEOF
4775
4776 fi
4777 cat >>confdefs.h <<\_ACEOF
4778 #define THREAD_LOCAL_ALLOC 1
4779 _ACEOF
4780
4781 ;;
4782 *-*-linux*)
4783 cat >>confdefs.h <<\_ACEOF
4784 #define GC_LINUX_THREADS 1
4785 _ACEOF
4786
4787 cat >>confdefs.h <<\_ACEOF
4788 #define _REENTRANT 1
4789 _ACEOF
4790
4791 ;;
4792 *-*-aix*)
4793 cat >>confdefs.h <<\_ACEOF
4794 #define GC_AIX_THREADS 1
4795 _ACEOF
4796
4797 cat >>confdefs.h <<\_ACEOF
4798 #define _REENTRANT 1
4799 _ACEOF
4800
4801 ;;
4802 *-*-hpux*)
4803 { echo "$as_me:$LINENO: WARNING: \"Only HP/UX 11 threads are supported.\"" >&5
4804 echo "$as_me: WARNING: \"Only HP/UX 11 threads are supported.\"" >&2;}
4805 cat >>confdefs.h <<\_ACEOF
4806 #define GC_HPUX_THREADS 1
4807 _ACEOF
4808
4809 cat >>confdefs.h <<\_ACEOF
4810 #define _POSIX_C_SOURCE 199506L
4811 _ACEOF
4812
4813 if test "${enable_parallel_mark}" = yes; then
4814 cat >>confdefs.h <<\_ACEOF
4815 #define PARALLEL_MARK 1
4816 _ACEOF
4817
4818 fi
4819 cat >>confdefs.h <<\_ACEOF
4820 #define THREAD_LOCAL_ALLOC 1
4821 _ACEOF
4822
4823 THREADLIBS="-lpthread -lrt"
4824 ;;
4825 *-*-freebsd*)
4826 { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
4827 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
4828 cat >>confdefs.h <<\_ACEOF
4829 #define GC_FREEBSD_THREADS 1
4830 _ACEOF
4831
4832 INCLUDES="$INCLUDES -pthread"
4833 THREADLIBS=-pthread
4834 ;;
4835 *-*-solaris*)
4836 cat >>confdefs.h <<\_ACEOF
4837 #define GC_SOLARIS_THREADS 1
4838 _ACEOF
4839
4840 cat >>confdefs.h <<\_ACEOF
4841 #define GC_SOLARIS_PTHREADS 1
4842 _ACEOF
4843
4844 ;;
4845 *-*-irix*)
4846 cat >>confdefs.h <<\_ACEOF
4847 #define GC_IRIX_THREADS 1
4848 _ACEOF
4849
4850 ;;
4851 *-*-cygwin*)
4852 cat >>confdefs.h <<\_ACEOF
4853 #define GC_WIN32_THREADS 1
4854 _ACEOF
4855
4856 ;;
4857 *-*-darwin*)
4858 cat >>confdefs.h <<\_ACEOF
4859 #define GC_DARWIN_THREADS 1
4860 _ACEOF
4861
4862 cat >>confdefs.h <<\_ACEOF
4863 #define THREAD_LOCAL_ALLOC 1
4864 _ACEOF
4865
4866 if test "${enable_parallel_mark}" = yes; then
4867 cat >>confdefs.h <<\_ACEOF
4868 #define PARALLEL_MARK 1
4869 _ACEOF
4870
4871 fi
4872 ;;
4873 *-*-osf*)
4874 cat >>confdefs.h <<\_ACEOF
4875 #define GC_OSF1_THREADS 1
4876 _ACEOF
4877
4878 if test "${enable_parallel_mark}" = yes; then
4879 cat >>confdefs.h <<\_ACEOF
4880 #define PARALLEL_MARK 1
4881 _ACEOF
4882
4883 cat >>confdefs.h <<\_ACEOF
4884 #define THREAD_LOCAL_ALLOC 1
4885 _ACEOF
4886
4887 # May want to enable it in other cases, too.
4888 # Measurements havent yet been done.
4889 fi
4890 INCLUDES="$INCLUDES -pthread"
4891 THREADLIBS="-lpthread -lrt"
4892 ;;
4893 esac
4894 ;;
4895 win32)
4896 cat >>confdefs.h <<\_ACEOF
4897 #define GC_WIN32_THREADS 1
4898 _ACEOF
4899
4900 ;;
4901 dgux386)
4902 THREADS=dgux386
4903 echo "$as_me:$LINENO: result: $THREADLIBS" >&5
4904 echo "${ECHO_T}$THREADLIBS" >&6
4905 # Use pthread GCC switch
4906 THREADLIBS=-pthread
4907 if test "${enable_parallel_mark}" = yes; then
4908 cat >>confdefs.h <<\_ACEOF
4909 #define PARALLEL_MARK 1
4910 _ACEOF
4911
4912 fi
4913 cat >>confdefs.h <<\_ACEOF
4914 #define THREAD_LOCAL_ALLOC 1
4915 _ACEOF
4916
4917 cat >>confdefs.h <<\_ACEOF
4918 #define GC_DGUX386_THREADS 1
4919 _ACEOF
4920
4921 cat >>confdefs.h <<\_ACEOF
4922 #define DGUX_THREADS 1
4923 _ACEOF
4924
4925 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
4926 INCLUDES="-pthread $INCLUDES"
4927 ;;
4928 aix)
4929 THREADS=posix
4930 THREADLIBS=-lpthread
4931 cat >>confdefs.h <<\_ACEOF
4932 #define GC_AIX_THREADS 1
4933 _ACEOF
4934
4935 cat >>confdefs.h <<\_ACEOF
4936 #define _REENTRANT 1
4937 _ACEOF
4938
4939 ;;
4940 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4941 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
4942 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
4943 { (exit 1); exit 1; }; }
4944 ;;
4945 *)
4946 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
4947 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
4948 { (exit 1); exit 1; }; }
4949 ;;
4950 esac
4951
4952
4953 case "$host" in
4954 powerpc-*-darwin*)
4955 powerpc_darwin=true
4956 ;;
4957 esac
4958
4959
4960 if test x$powerpc_darwin = xtrue; then
4961 POWERPC_DARWIN_TRUE=
4962 POWERPC_DARWIN_FALSE='#'
4963 else
4964 POWERPC_DARWIN_TRUE='#'
4965 POWERPC_DARWIN_FALSE=
4966 fi
4967
4968 # We never want libdl on darwin. It is a fake libdl that just ends up making
4969 # dyld calls anyway
4970 case "$host" in
4971 *-*-darwin*) ;;
4972 *)
4973 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4974 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4975 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978 ac_check_lib_save_LIBS=$LIBS
4979 LIBS="-ldl $LIBS"
4980 if test x$gcc_no_link = xyes; then
4981 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4982 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4983 { (exit 1); exit 1; }; }
4984 fi
4985 cat >conftest.$ac_ext <<_ACEOF
4986 #line $LINENO "configure"
4987 /* confdefs.h. */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4992
4993 /* Override any gcc2 internal prototype to avoid an error. */
4994 #ifdef __cplusplus
4995 extern "C"
4996 #endif
4997 /* We use char because int might match the return type of a gcc2
4998 builtin and then its argument prototype would still apply. */
4999 char dlopen ();
5000 int
5001 main ()
5002 {
5003 dlopen ();
5004 ;
5005 return 0;
5006 }
5007 _ACEOF
5008 rm -f conftest.$ac_objext conftest$ac_exeext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5010 (eval $ac_link) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } &&
5014 { ac_try='test -s conftest$ac_exeext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 ac_cv_lib_dl_dlopen=yes
5021 else
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5024
5025 ac_cv_lib_dl_dlopen=no
5026 fi
5027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5028 LIBS=$ac_check_lib_save_LIBS
5029 fi
5030 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5031 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5032 if test $ac_cv_lib_dl_dlopen = yes; then
5033 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
5034 fi
5035
5036 ;;
5037 esac
5038
5039
5040
5041 target_all=libgcjgc.la
5042
5043
5044
5045 TARGET_ECOS="no"
5046
5047 # Check whether --with-ecos or --without-ecos was given.
5048 if test "${with_ecos+set}" = set; then
5049 withval="$with_ecos"
5050 TARGET_ECOS="$with_ecos"
5051
5052 fi;
5053
5054 addobjs=
5055 addlibs=
5056 addincludes=
5057 addtests=
5058 CXXINCLUDES=
5059 case "$TARGET_ECOS" in
5060 no)
5061 ;;
5062 *)
5063 cat >>confdefs.h <<\_ACEOF
5064 #define ECOS 1
5065 _ACEOF
5066
5067 CXXINCLUDES="-I${TARGET_ECOS}/include"
5068 addobjs="$addobjs ecos.lo"
5069 ;;
5070 esac
5071
5072 if test "${enable_cplusplus}" = yes; then
5073 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
5074 addtests="$addtests test_cpp"
5075 fi
5076
5077
5078
5079 if test "${enable_cplusplus}" = yes; then
5080 CPLUSPLUS_TRUE=
5081 CPLUSPLUS_FALSE='#'
5082 else
5083 CPLUSPLUS_TRUE='#'
5084 CPLUSPLUS_FALSE=
5085 fi
5086
5087
5088
5089
5090
5091
5092 # Configuration of shared libraries
5093 #
5094 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5095 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5096 # Check whether --enable-shared or --disable-shared was given.
5097 if test "${enable_shared+set}" = set; then
5098 enableval="$enable_shared"
5099 p=${PACKAGE-default}
5100 case $enableval in
5101 yes) enable_shared=yes ;;
5102 no) enable_shared=no ;;
5103 *)
5104 enable_shared=no
5105 # Look at the argument we got. We use all the common list separators.
5106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5107 for pkg in $enableval; do
5108 if test "X$pkg" = "X$p"; then
5109 enable_shared=yes
5110 fi
5111 done
5112 IFS="$ac_save_ifs"
5113 ;;
5114 esac
5115 else
5116 enable_shared=yes
5117 fi;
5118
5119 case "$host" in
5120 alpha-*-openbsd*)
5121 enable_shared=no
5122 echo "$as_me:$LINENO: result: no" >&5
5123 echo "${ECHO_T}no" >&6
5124 ;;
5125 *)
5126 echo "$as_me:$LINENO: result: yes" >&5
5127 echo "${ECHO_T}yes" >&6
5128 ;;
5129 esac
5130
5131 # Configuration of machine-dependent code
5132 #
5133 # We don't set NO_EXECUTE_PERMISSION by default because gcj (and
5134 # anything else that creates trampolines in gc-allocated memory)
5135 # always needs exec permission. The exceptions to this are IA-64 and
5136 # some variations of Power PC, where trampolines don't contain
5137 # executable code.
5138 #
5139 echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
5140 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
5141 machdep=
5142 case "$host" in
5143 alpha*-*-openbsd*)
5144 machdep="alpha_mach_dep.lo"
5145 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
5146 { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
5147 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
5148 fi
5149 ;;
5150 alpha*-*-linux*)
5151 machdep="alpha_mach_dep.lo"
5152 ;;
5153 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
5154 cat >>confdefs.h <<\_ACEOF
5155 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
5156 _ACEOF
5157
5158 ;;
5159 mipstx39-*-elf*)
5160 machdep="mips_ultrix_mach_dep.lo"
5161 cat >>confdefs.h <<\_ACEOF
5162 #define STACKBASE __stackbase
5163 _ACEOF
5164
5165 cat >>confdefs.h <<\_ACEOF
5166 #define DATASTART_IS_ETEXT 1
5167 _ACEOF
5168
5169 ;;
5170 mips-dec-ultrix*)
5171 machdep="mips_ultrix_mach-dep.lo"
5172 ;;
5173 mips-nec-sysv*|mips-unknown-sysv*)
5174 ;;
5175 mips*-*-linux*)
5176 ;;
5177 mips-*-*)
5178 machdep="mips_sgi_mach_dep.lo"
5179 ;;
5180 sparc-*-netbsd*)
5181 machdep="sparc_netbsd_mach_dep.lo"
5182 ;;
5183 sparc-sun-solaris2.3)
5184 machdep="sparc_mach_dep.lo"
5185 cat >>confdefs.h <<\_ACEOF
5186 #define SUNOS53_SHARED_LIB 1
5187 _ACEOF
5188
5189 ;;
5190 sparc-sun-solaris2.*)
5191 machdep="sparc_mach_dep.lo"
5192 ;;
5193 ia64-*-*)
5194 cat >>confdefs.h <<\_ACEOF
5195 #define NO_EXECUTE_PERMISSION 1
5196 _ACEOF
5197
5198 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
5199 ;;
5200 esac
5201 if test x"$machdep" = x; then
5202 echo "$as_me:$LINENO: result: $machdep" >&5
5203 echo "${ECHO_T}$machdep" >&6
5204 machdep="mach_dep.lo"
5205 fi
5206 addobjs="$addobjs $machdep"
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218 #
5219 # Check for AViiON Machines running DGUX
5220 #
5221 echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
5222 echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
5223 ac_is_dgux=no
5224 ac_ext=c
5225 ac_cpp='$CPP $CPPFLAGS'
5226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5229 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5230 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5231 # On Suns, sometimes $CPP names a directory.
5232 if test -n "$CPP" && test -d "$CPP"; then
5233 CPP=
5234 fi
5235 if test -z "$CPP"; then
5236 if test "${ac_cv_prog_CPP+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239 # Double quotes because CPP needs to be expanded
5240 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5241 do
5242 ac_preproc_ok=false
5243 for ac_c_preproc_warn_flag in '' yes
5244 do
5245 # Use a header file that comes with gcc, so configuring glibc
5246 # with a fresh cross-compiler works.
5247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5248 # <limits.h> exists even on freestanding compilers.
5249 # On the NeXT, cc -E runs the code through the compiler's parser,
5250 # not just through cpp. "Syntax error" is here to catch this case.
5251 cat >conftest.$ac_ext <<_ACEOF
5252 #line $LINENO "configure"
5253 /* confdefs.h. */
5254 _ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5258 #ifdef __STDC__
5259 # include <limits.h>
5260 #else
5261 # include <assert.h>
5262 #endif
5263 Syntax error
5264 _ACEOF
5265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5267 ac_status=$?
5268 grep -v '^ *+' conftest.er1 >conftest.err
5269 rm -f conftest.er1
5270 cat conftest.err >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } >/dev/null; then
5273 if test -s conftest.err; then
5274 ac_cpp_err=$ac_c_preproc_warn_flag
5275 else
5276 ac_cpp_err=
5277 fi
5278 else
5279 ac_cpp_err=yes
5280 fi
5281 if test -z "$ac_cpp_err"; then
5282 :
5283 else
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5286
5287 # Broken: fails on valid input.
5288 continue
5289 fi
5290 rm -f conftest.err conftest.$ac_ext
5291
5292 # OK, works on sane cases. Now check whether non-existent headers
5293 # can be detected and how.
5294 cat >conftest.$ac_ext <<_ACEOF
5295 #line $LINENO "configure"
5296 /* confdefs.h. */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301 #include <ac_nonexistent.h>
5302 _ACEOF
5303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5305 ac_status=$?
5306 grep -v '^ *+' conftest.er1 >conftest.err
5307 rm -f conftest.er1
5308 cat conftest.err >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } >/dev/null; then
5311 if test -s conftest.err; then
5312 ac_cpp_err=$ac_c_preproc_warn_flag
5313 else
5314 ac_cpp_err=
5315 fi
5316 else
5317 ac_cpp_err=yes
5318 fi
5319 if test -z "$ac_cpp_err"; then
5320 # Broken: success on invalid input.
5321 continue
5322 else
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5325
5326 # Passes both tests.
5327 ac_preproc_ok=:
5328 break
5329 fi
5330 rm -f conftest.err conftest.$ac_ext
5331
5332 done
5333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5334 rm -f conftest.err conftest.$ac_ext
5335 if $ac_preproc_ok; then
5336 break
5337 fi
5338
5339 done
5340 ac_cv_prog_CPP=$CPP
5341
5342 fi
5343 CPP=$ac_cv_prog_CPP
5344 else
5345 ac_cv_prog_CPP=$CPP
5346 fi
5347 echo "$as_me:$LINENO: result: $CPP" >&5
5348 echo "${ECHO_T}$CPP" >&6
5349 ac_preproc_ok=false
5350 for ac_c_preproc_warn_flag in '' yes
5351 do
5352 # Use a header file that comes with gcc, so configuring glibc
5353 # with a fresh cross-compiler works.
5354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5355 # <limits.h> exists even on freestanding compilers.
5356 # On the NeXT, cc -E runs the code through the compiler's parser,
5357 # not just through cpp. "Syntax error" is here to catch this case.
5358 cat >conftest.$ac_ext <<_ACEOF
5359 #line $LINENO "configure"
5360 /* confdefs.h. */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 #ifdef __STDC__
5366 # include <limits.h>
5367 #else
5368 # include <assert.h>
5369 #endif
5370 Syntax error
5371 _ACEOF
5372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5374 ac_status=$?
5375 grep -v '^ *+' conftest.er1 >conftest.err
5376 rm -f conftest.er1
5377 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } >/dev/null; then
5380 if test -s conftest.err; then
5381 ac_cpp_err=$ac_c_preproc_warn_flag
5382 else
5383 ac_cpp_err=
5384 fi
5385 else
5386 ac_cpp_err=yes
5387 fi
5388 if test -z "$ac_cpp_err"; then
5389 :
5390 else
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5393
5394 # Broken: fails on valid input.
5395 continue
5396 fi
5397 rm -f conftest.err conftest.$ac_ext
5398
5399 # OK, works on sane cases. Now check whether non-existent headers
5400 # can be detected and how.
5401 cat >conftest.$ac_ext <<_ACEOF
5402 #line $LINENO "configure"
5403 /* confdefs.h. */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5408 #include <ac_nonexistent.h>
5409 _ACEOF
5410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5412 ac_status=$?
5413 grep -v '^ *+' conftest.er1 >conftest.err
5414 rm -f conftest.er1
5415 cat conftest.err >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } >/dev/null; then
5418 if test -s conftest.err; then
5419 ac_cpp_err=$ac_c_preproc_warn_flag
5420 else
5421 ac_cpp_err=
5422 fi
5423 else
5424 ac_cpp_err=yes
5425 fi
5426 if test -z "$ac_cpp_err"; then
5427 # Broken: success on invalid input.
5428 continue
5429 else
5430 echo "$as_me: failed program was:" >&5
5431 sed 's/^/| /' conftest.$ac_ext >&5
5432
5433 # Passes both tests.
5434 ac_preproc_ok=:
5435 break
5436 fi
5437 rm -f conftest.err conftest.$ac_ext
5438
5439 done
5440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5441 rm -f conftest.err conftest.$ac_ext
5442 if $ac_preproc_ok; then
5443 :
5444 else
5445 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5446 See \`config.log' for more details." >&5
5447 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5448 See \`config.log' for more details." >&2;}
5449 { (exit 1); exit 1; }; }
5450 fi
5451
5452 ac_ext=c
5453 ac_cpp='$CPP $CPPFLAGS'
5454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5457
5458
5459 echo "$as_me:$LINENO: checking for egrep" >&5
5460 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5461 if test "${ac_cv_prog_egrep+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5465 then ac_cv_prog_egrep='grep -E'
5466 else ac_cv_prog_egrep='egrep'
5467 fi
5468 fi
5469 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5470 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5471 EGREP=$ac_cv_prog_egrep
5472
5473
5474 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5475 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5476 if test "${ac_cv_header_stdc+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479 cat >conftest.$ac_ext <<_ACEOF
5480 #line $LINENO "configure"
5481 /* confdefs.h. */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5486 #include <stdlib.h>
5487 #include <stdarg.h>
5488 #include <string.h>
5489 #include <float.h>
5490
5491 int
5492 main ()
5493 {
5494
5495 ;
5496 return 0;
5497 }
5498 _ACEOF
5499 rm -f conftest.$ac_objext
5500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5501 (eval $ac_compile) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } &&
5505 { ac_try='test -s conftest.$ac_objext'
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 (eval $ac_try) 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; }; then
5511 ac_cv_header_stdc=yes
5512 else
5513 echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5515
5516 ac_cv_header_stdc=no
5517 fi
5518 rm -f conftest.$ac_objext conftest.$ac_ext
5519
5520 if test $ac_cv_header_stdc = yes; then
5521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5522 cat >conftest.$ac_ext <<_ACEOF
5523 #line $LINENO "configure"
5524 /* confdefs.h. */
5525 _ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h. */
5529 #include <string.h>
5530
5531 _ACEOF
5532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5533 $EGREP "memchr" >/dev/null 2>&1; then
5534 :
5535 else
5536 ac_cv_header_stdc=no
5537 fi
5538 rm -f conftest*
5539
5540 fi
5541
5542 if test $ac_cv_header_stdc = yes; then
5543 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5544 cat >conftest.$ac_ext <<_ACEOF
5545 #line $LINENO "configure"
5546 /* confdefs.h. */
5547 _ACEOF
5548 cat confdefs.h >>conftest.$ac_ext
5549 cat >>conftest.$ac_ext <<_ACEOF
5550 /* end confdefs.h. */
5551 #include <stdlib.h>
5552
5553 _ACEOF
5554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5555 $EGREP "free" >/dev/null 2>&1; then
5556 :
5557 else
5558 ac_cv_header_stdc=no
5559 fi
5560 rm -f conftest*
5561
5562 fi
5563
5564 if test $ac_cv_header_stdc = yes; then
5565 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5566 if test "$cross_compiling" = yes; then
5567 :
5568 else
5569 cat >conftest.$ac_ext <<_ACEOF
5570 #line $LINENO "configure"
5571 /* confdefs.h. */
5572 _ACEOF
5573 cat confdefs.h >>conftest.$ac_ext
5574 cat >>conftest.$ac_ext <<_ACEOF
5575 /* end confdefs.h. */
5576 #include <ctype.h>
5577 #if ((' ' & 0x0FF) == 0x020)
5578 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5579 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5580 #else
5581 # define ISLOWER(c) \
5582 (('a' <= (c) && (c) <= 'i') \
5583 || ('j' <= (c) && (c) <= 'r') \
5584 || ('s' <= (c) && (c) <= 'z'))
5585 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5586 #endif
5587
5588 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5589 int
5590 main ()
5591 {
5592 int i;
5593 for (i = 0; i < 256; i++)
5594 if (XOR (islower (i), ISLOWER (i))
5595 || toupper (i) != TOUPPER (i))
5596 exit(2);
5597 exit (0);
5598 }
5599 _ACEOF
5600 rm -f conftest$ac_exeext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5602 (eval $ac_link) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 (eval $ac_try) 2>&5
5608 ac_status=$?
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; }; then
5611 :
5612 else
5613 echo "$as_me: program exited with status $ac_status" >&5
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5616
5617 ( exit $ac_status )
5618 ac_cv_header_stdc=no
5619 fi
5620 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5621 fi
5622 fi
5623 fi
5624 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5625 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5626 if test $ac_cv_header_stdc = yes; then
5627
5628 cat >>confdefs.h <<\_ACEOF
5629 #define STDC_HEADERS 1
5630 _ACEOF
5631
5632 fi
5633
5634 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5645 inttypes.h stdint.h unistd.h
5646 do
5647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5648 echo "$as_me:$LINENO: checking for $ac_header" >&5
5649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653 cat >conftest.$ac_ext <<_ACEOF
5654 #line $LINENO "configure"
5655 /* confdefs.h. */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5660 $ac_includes_default
5661
5662 #include <$ac_header>
5663 _ACEOF
5664 rm -f conftest.$ac_objext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5666 (eval $ac_compile) 2>&5
5667 ac_status=$?
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
5670 { ac_try='test -s conftest.$ac_objext'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 (eval $ac_try) 2>&5
5673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
5676 eval "$as_ac_Header=yes"
5677 else
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5680
5681 eval "$as_ac_Header=no"
5682 fi
5683 rm -f conftest.$ac_objext conftest.$ac_ext
5684 fi
5685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5688 cat >>confdefs.h <<_ACEOF
5689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5690 _ACEOF
5691
5692 fi
5693
5694 done
5695
5696
5697 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5698 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
5699 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
5700 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 fi
5703 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
5704 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
5705 else
5706 # Is the header compilable?
5707 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
5708 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
5709 cat >conftest.$ac_ext <<_ACEOF
5710 #line $LINENO "configure"
5711 /* confdefs.h. */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5716 $ac_includes_default
5717 #include <sys/dg_sys_info.h>
5718 _ACEOF
5719 rm -f conftest.$ac_objext
5720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5721 (eval $ac_compile) 2>&5
5722 ac_status=$?
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } &&
5725 { ac_try='test -s conftest.$ac_objext'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 (eval $ac_try) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; }; then
5731 ac_header_compiler=yes
5732 else
5733 echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5735
5736 ac_header_compiler=no
5737 fi
5738 rm -f conftest.$ac_objext conftest.$ac_ext
5739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5740 echo "${ECHO_T}$ac_header_compiler" >&6
5741
5742 # Is the header present?
5743 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
5744 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
5745 cat >conftest.$ac_ext <<_ACEOF
5746 #line $LINENO "configure"
5747 /* confdefs.h. */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 #include <sys/dg_sys_info.h>
5753 _ACEOF
5754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } >/dev/null; then
5762 if test -s conftest.err; then
5763 ac_cpp_err=$ac_c_preproc_warn_flag
5764 else
5765 ac_cpp_err=
5766 fi
5767 else
5768 ac_cpp_err=yes
5769 fi
5770 if test -z "$ac_cpp_err"; then
5771 ac_header_preproc=yes
5772 else
5773 echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5775
5776 ac_header_preproc=no
5777 fi
5778 rm -f conftest.err conftest.$ac_ext
5779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5780 echo "${ECHO_T}$ac_header_preproc" >&6
5781
5782 # So? What about this header?
5783 case $ac_header_compiler:$ac_header_preproc in
5784 yes:no )
5785 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
5786 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5787 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
5788 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
5789 (
5790 cat <<\_ASBOX
5791 ## ------------------------------------ ##
5792 ## Report this to bug-autoconf@gnu.org. ##
5793 ## ------------------------------------ ##
5794 _ASBOX
5795 ) |
5796 sed "s/^/$as_me: WARNING: /" >&2
5797 ;;
5798 no:yes )
5799 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
5800 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
5801 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
5802 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
5803 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
5804 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
5805 (
5806 cat <<\_ASBOX
5807 ## ------------------------------------ ##
5808 ## Report this to bug-autoconf@gnu.org. ##
5809 ## ------------------------------------ ##
5810 _ASBOX
5811 ) |
5812 sed "s/^/$as_me: WARNING: /" >&2
5813 ;;
5814 esac
5815 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
5816 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
5817 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
5821 fi
5822 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
5823 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
5824
5825 fi
5826 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
5827 ac_is_dgux=yes;
5828 fi
5829
5830
5831
5832 echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
5833 echo "${ECHO_T}$ac_is_dgux" >&6
5834 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
5835 if test $ac_is_dgux = yes; then
5836 if test "$enable_full_debug" = "yes"; then
5837 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5838 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5839 else
5840 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5841 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5842 fi
5843
5844
5845 fi
5846
5847
5848 # Check whether --with-target-subdir or --without-target-subdir was given.
5849 if test "${with_target_subdir+set}" = set; then
5850 withval="$with_target_subdir"
5851
5852 fi;
5853
5854 # Check whether --with-cross-host or --without-cross-host was given.
5855 if test "${with_cross_host+set}" = set; then
5856 withval="$with_cross_host"
5857
5858 fi;
5859
5860 echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
5861 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
5862 case "$host" in
5863 sparc-sun-solaris2*|*aix*)
5864 if test "$GCC" = yes; then
5865 echo "$as_me:$LINENO: result: yes" >&5
5866 echo "${ECHO_T}yes" >&6
5867 new_CFLAGS=
5868 for i in $CFLAGS; do
5869 case "$i" in
5870 -O*)
5871 ;;
5872 *)
5873 new_CFLAGS="$new_CFLAGS $i"
5874 ;;
5875 esac
5876 done
5877 CFLAGS="$new_CFLAGS"
5878 else
5879 echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6
5881 fi
5882 ;;
5883 *) echo "$as_me:$LINENO: result: no" >&5
5884 echo "${ECHO_T}no" >&6 ;;
5885 esac
5886
5887 MY_CFLAGS="$CFLAGS"
5888
5889
5890 cat >>confdefs.h <<\_ACEOF
5891 #define SILENT 1
5892 _ACEOF
5893
5894 cat >>confdefs.h <<\_ACEOF
5895 #define NO_SIGNALS 1
5896 _ACEOF
5897
5898 cat >>confdefs.h <<\_ACEOF
5899 #define ALL_INTERIOR_POINTERS 1
5900 _ACEOF
5901
5902
5903 cat >>confdefs.h <<\_ACEOF
5904 #define JAVA_FINALIZATION 1
5905 _ACEOF
5906
5907 cat >>confdefs.h <<\_ACEOF
5908 #define GC_GCJ_SUPPORT 1
5909 _ACEOF
5910
5911 cat >>confdefs.h <<\_ACEOF
5912 #define ATOMIC_UNCOLLECTABLE 1
5913 _ACEOF
5914
5915
5916 if test -n "${with_cross_host}"; then
5917 cat >>confdefs.h <<\_ACEOF
5918 #define NO_SIGSET 1
5919 _ACEOF
5920
5921 cat >>confdefs.h <<\_ACEOF
5922 #define NO_DEBUGGING 1
5923 _ACEOF
5924
5925 fi
5926
5927 # Check whether --enable-full-debug or --disable-full-debug was given.
5928 if test "${enable_full_debug+set}" = set; then
5929 enableval="$enable_full_debug"
5930 if test "$enable_full_debug" = "yes"; then
5931 { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
5932 echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
5933 cat >>confdefs.h <<\_ACEOF
5934 #define KEEP_BACK_PTRS 1
5935 _ACEOF
5936
5937 cat >>confdefs.h <<\_ACEOF
5938 #define DBG_HDRS_ALL 1
5939 _ACEOF
5940
5941 case $host in
5942 ia64-*-linux* )
5943 cat >>confdefs.h <<\_ACEOF
5944 #define MAKE_BACK_GRAPH 1
5945 _ACEOF
5946
5947 ;;
5948 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
5949 cat >>confdefs.h <<\_ACEOF
5950 #define MAKE_BACK_GRAPH 1
5951 _ACEOF
5952
5953 { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
5954 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
5955 cat >>confdefs.h <<\_ACEOF
5956 #define SAVE_CALL_COUNT 8
5957 _ACEOF
5958
5959 ;;
5960 i345686-*-dgux*)
5961 cat >>confdefs.h <<\_ACEOF
5962 #define MAKE_BACK_GRAPH 1
5963 _ACEOF
5964
5965 ;;
5966 esac
5967 fi
5968 fi;
5969
5970 if test -n "$with_cross_host" &&
5971 test x"$with_cross_host" != x"no"; then
5972 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
5973 toolexeclibdir='$(toolexecdir)/lib'
5974 else
5975 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
5976 toolexeclibdir='$(libdir)'
5977 fi
5978 multi_os_directory=`$CC -print-multi-os-directory`
5979 case $multi_os_directory in
5980 .) ;; # Avoid trailing /.
5981 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5982 esac
5983
5984
5985
5986 if test "${multilib}" = "yes"; then
5987 multilib_arg="--enable-multilib"
5988 else
5989 multilib_arg=
5990 fi
5991
5992 ac_config_files="$ac_config_files Makefile include/Makefile"
5993 ac_config_commands="$ac_config_commands default"
5994 cat >confcache <<\_ACEOF
5995 # This file is a shell script that caches the results of configure
5996 # tests run on this system so they can be shared between configure
5997 # scripts and configure runs, see configure's option --config-cache.
5998 # It is not useful on other systems. If it contains results you don't
5999 # want to keep, you may remove or edit it.
6000 #
6001 # config.status only pays attention to the cache file if you give it
6002 # the --recheck option to rerun configure.
6003 #
6004 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6005 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6006 # following values.
6007
6008 _ACEOF
6009
6010 # The following way of writing the cache mishandles newlines in values,
6011 # but we know of no workaround that is simple, portable, and efficient.
6012 # So, don't put newlines in cache variables' values.
6013 # Ultrix sh set writes to stderr and can't be redirected directly,
6014 # and sets the high bit in the cache file unless we assign to the vars.
6015 {
6016 (set) 2>&1 |
6017 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6018 *ac_space=\ *)
6019 # `set' does not quote correctly, so add quotes (double-quote
6020 # substitution turns \\\\ into \\, and sed turns \\ into \).
6021 sed -n \
6022 "s/'/'\\\\''/g;
6023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6024 ;;
6025 *)
6026 # `set' quotes correctly as required by POSIX, so do not add quotes.
6027 sed -n \
6028 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6029 ;;
6030 esac;
6031 } |
6032 sed '
6033 t clear
6034 : clear
6035 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6036 t end
6037 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6038 : end' >>confcache
6039 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6040 if test -w $cache_file; then
6041 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6042 cat confcache >$cache_file
6043 else
6044 echo "not updating unwritable cache $cache_file"
6045 fi
6046 fi
6047 rm -f confcache
6048
6049 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6050 # Let make expand exec_prefix.
6051 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6052
6053 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6054 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6055 # trailing colons and then remove the whole line if VPATH becomes empty
6056 # (actually we leave an empty line to preserve line numbers).
6057 if test "x$srcdir" = x.; then
6058 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6059 s/:*\$(srcdir):*/:/;
6060 s/:*\${srcdir}:*/:/;
6061 s/:*@srcdir@:*/:/;
6062 s/^\([^=]*=[ ]*\):*/\1/;
6063 s/:*$//;
6064 s/^[^=]*=[ ]*$//;
6065 }'
6066 fi
6067
6068 # Transform confdefs.h into DEFS.
6069 # Protect against shell expansion while executing Makefile rules.
6070 # Protect against Makefile macro expansion.
6071 #
6072 # If the first sed substitution is executed (which looks for macros that
6073 # take arguments), then we branch to the quote section. Otherwise,
6074 # look for a macro that doesn't take arguments.
6075 cat >confdef2opt.sed <<\_ACEOF
6076 t clear
6077 : clear
6078 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
6079 t quote
6080 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
6081 t quote
6082 d
6083 : quote
6084 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
6085 s,\[,\\&,g
6086 s,\],\\&,g
6087 s,\$,$$,g
6088 p
6089 _ACEOF
6090 # We use echo to avoid assuming a particular line-breaking character.
6091 # The extra dot is to prevent the shell from consuming trailing
6092 # line-breaks from the sub-command output. A line-break within
6093 # single-quotes doesn't work because, if this script is created in a
6094 # platform that uses two characters for line-breaks (e.g., DOS), tr
6095 # would break.
6096 ac_LF_and_DOT=`echo; echo .`
6097 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6098 rm -f confdef2opt.sed
6099
6100
6101 ac_libobjs=
6102 ac_ltlibobjs=
6103 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6104 # 1. Remove the extension, and $U if already installed.
6105 ac_i=`echo "$ac_i" |
6106 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6107 # 2. Add them.
6108 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6109 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6110 done
6111 LIBOBJS=$ac_libobjs
6112
6113 LTLIBOBJS=$ac_ltlibobjs
6114
6115
6116
6117 : ${CONFIG_STATUS=./config.status}
6118 ac_clean_files_save=$ac_clean_files
6119 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6120 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6121 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6122 cat >$CONFIG_STATUS <<_ACEOF
6123 #! $SHELL
6124 # Generated by $as_me.
6125 # Run this file to recreate the current configuration.
6126 # Compiler output produced by configure, useful for debugging
6127 # configure, is in config.log if it exists.
6128
6129 debug=false
6130 ac_cs_recheck=false
6131 ac_cs_silent=false
6132 SHELL=\${CONFIG_SHELL-$SHELL}
6133 _ACEOF
6134
6135 cat >>$CONFIG_STATUS <<\_ACEOF
6136 ## --------------------- ##
6137 ## M4sh Initialization. ##
6138 ## --------------------- ##
6139
6140 # Be Bourne compatible
6141 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6142 emulate sh
6143 NULLCMD=:
6144 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6145 # is contrary to our usage. Disable this feature.
6146 alias -g '${1+"$@"}'='"$@"'
6147 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6148 set -o posix
6149 fi
6150
6151 # Support unset when possible.
6152 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6153 as_unset=unset
6154 else
6155 as_unset=false
6156 fi
6157
6158
6159 # Work around bugs in pre-3.0 UWIN ksh.
6160 $as_unset ENV MAIL MAILPATH
6161 PS1='$ '
6162 PS2='> '
6163 PS4='+ '
6164
6165 # NLS nuisances.
6166 for as_var in \
6167 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6168 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6169 LC_TELEPHONE LC_TIME
6170 do
6171 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6172 eval $as_var=C; export $as_var
6173 else
6174 $as_unset $as_var
6175 fi
6176 done
6177
6178 # Required to use basename.
6179 if expr a : '\(a\)' >/dev/null 2>&1; then
6180 as_expr=expr
6181 else
6182 as_expr=false
6183 fi
6184
6185 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6186 as_basename=basename
6187 else
6188 as_basename=false
6189 fi
6190
6191
6192 # Name of the executable.
6193 as_me=`$as_basename "$0" ||
6194 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6195 X"$0" : 'X\(//\)$' \| \
6196 X"$0" : 'X\(/\)$' \| \
6197 . : '\(.\)' 2>/dev/null ||
6198 echo X/"$0" |
6199 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6200 /^X\/\(\/\/\)$/{ s//\1/; q; }
6201 /^X\/\(\/\).*/{ s//\1/; q; }
6202 s/.*/./; q'`
6203
6204
6205 # PATH needs CR, and LINENO needs CR and PATH.
6206 # Avoid depending upon Character Ranges.
6207 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6208 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6209 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6210 as_cr_digits='0123456789'
6211 as_cr_alnum=$as_cr_Letters$as_cr_digits
6212
6213 # The user is always right.
6214 if test "${PATH_SEPARATOR+set}" != set; then
6215 echo "#! /bin/sh" >conf$$.sh
6216 echo "exit 0" >>conf$$.sh
6217 chmod +x conf$$.sh
6218 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6219 PATH_SEPARATOR=';'
6220 else
6221 PATH_SEPARATOR=:
6222 fi
6223 rm -f conf$$.sh
6224 fi
6225
6226
6227 as_lineno_1=$LINENO
6228 as_lineno_2=$LINENO
6229 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6230 test "x$as_lineno_1" != "x$as_lineno_2" &&
6231 test "x$as_lineno_3" = "x$as_lineno_2" || {
6232 # Find who we are. Look in the path if we contain no path at all
6233 # relative or not.
6234 case $0 in
6235 *[\\/]* ) as_myself=$0 ;;
6236 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6238 do
6239 IFS=$as_save_IFS
6240 test -z "$as_dir" && as_dir=.
6241 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6242 done
6243
6244 ;;
6245 esac
6246 # We did not find ourselves, most probably we were run as `sh COMMAND'
6247 # in which case we are not to be found in the path.
6248 if test "x$as_myself" = x; then
6249 as_myself=$0
6250 fi
6251 if test ! -f "$as_myself"; then
6252 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6253 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6254 { (exit 1); exit 1; }; }
6255 fi
6256 case $CONFIG_SHELL in
6257 '')
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6260 do
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 for as_base in sh bash ksh sh5; do
6264 case $as_dir in
6265 /*)
6266 if ("$as_dir/$as_base" -c '
6267 as_lineno_1=$LINENO
6268 as_lineno_2=$LINENO
6269 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6270 test "x$as_lineno_1" != "x$as_lineno_2" &&
6271 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6272 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6273 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6274 CONFIG_SHELL=$as_dir/$as_base
6275 export CONFIG_SHELL
6276 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6277 fi;;
6278 esac
6279 done
6280 done
6281 ;;
6282 esac
6283
6284 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6285 # uniformly replaced by the line number. The first 'sed' inserts a
6286 # line-number line before each line; the second 'sed' does the real
6287 # work. The second script uses 'N' to pair each line-number line
6288 # with the numbered line, and appends trailing '-' during
6289 # substitution so that $LINENO is not a special case at line end.
6290 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6291 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6292 sed '=' <$as_myself |
6293 sed '
6294 N
6295 s,$,-,
6296 : loop
6297 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6298 t loop
6299 s,-$,,
6300 s,^['$as_cr_digits']*\n,,
6301 ' >$as_me.lineno &&
6302 chmod +x $as_me.lineno ||
6303 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6304 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6305 { (exit 1); exit 1; }; }
6306
6307 # Don't try to exec as it changes $[0], causing all sort of problems
6308 # (the dirname of $[0] is not the place where we might find the
6309 # original and so on. Autoconf is especially sensible to this).
6310 . ./$as_me.lineno
6311 # Exit status is that of the last command.
6312 exit
6313 }
6314
6315
6316 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6317 *c*,-n*) ECHO_N= ECHO_C='
6318 ' ECHO_T=' ' ;;
6319 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6320 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6321 esac
6322
6323 if expr a : '\(a\)' >/dev/null 2>&1; then
6324 as_expr=expr
6325 else
6326 as_expr=false
6327 fi
6328
6329 rm -f conf$$ conf$$.exe conf$$.file
6330 echo >conf$$.file
6331 if ln -s conf$$.file conf$$ 2>/dev/null; then
6332 # We could just check for DJGPP; but this test a) works b) is more generic
6333 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6334 if test -f conf$$.exe; then
6335 # Don't use ln at all; we don't have any links
6336 as_ln_s='cp -p'
6337 else
6338 as_ln_s='ln -s'
6339 fi
6340 elif ln conf$$.file conf$$ 2>/dev/null; then
6341 as_ln_s=ln
6342 else
6343 as_ln_s='cp -p'
6344 fi
6345 rm -f conf$$ conf$$.exe conf$$.file
6346
6347 if mkdir -p . 2>/dev/null; then
6348 as_mkdir_p=:
6349 else
6350 as_mkdir_p=false
6351 fi
6352
6353 as_executable_p="test -f"
6354
6355 # Sed expression to map a string onto a valid CPP name.
6356 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6357
6358 # Sed expression to map a string onto a valid variable name.
6359 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6360
6361
6362 # IFS
6363 # We need space, tab and new line, in precisely that order.
6364 as_nl='
6365 '
6366 IFS=" $as_nl"
6367
6368 # CDPATH.
6369 $as_unset CDPATH
6370
6371 exec 6>&1
6372
6373 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6374 # report actual input values of CONFIG_FILES etc. instead of their
6375 # values after options handling. Logging --version etc. is OK.
6376 exec 5>>config.log
6377 {
6378 echo
6379 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6380 ## Running $as_me. ##
6381 _ASBOX
6382 } >&5
6383 cat >&5 <<_CSEOF
6384
6385 This file was extended by $as_me, which was
6386 generated by GNU Autoconf 2.57. Invocation command line was
6387
6388 CONFIG_FILES = $CONFIG_FILES
6389 CONFIG_HEADERS = $CONFIG_HEADERS
6390 CONFIG_LINKS = $CONFIG_LINKS
6391 CONFIG_COMMANDS = $CONFIG_COMMANDS
6392 $ $0 $@
6393
6394 _CSEOF
6395 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6396 echo >&5
6397 _ACEOF
6398
6399 # Files that config.status was made for.
6400 if test -n "$ac_config_files"; then
6401 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6402 fi
6403
6404 if test -n "$ac_config_headers"; then
6405 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6406 fi
6407
6408 if test -n "$ac_config_links"; then
6409 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6410 fi
6411
6412 if test -n "$ac_config_commands"; then
6413 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6414 fi
6415
6416 cat >>$CONFIG_STATUS <<\_ACEOF
6417
6418 ac_cs_usage="\
6419 \`$as_me' instantiates files from templates according to the
6420 current configuration.
6421
6422 Usage: $0 [OPTIONS] [FILE]...
6423
6424 -h, --help print this help, then exit
6425 -V, --version print version number, then exit
6426 -q, --quiet do not print progress messages
6427 -d, --debug don't remove temporary files
6428 --recheck update $as_me by reconfiguring in the same conditions
6429 --file=FILE[:TEMPLATE]
6430 instantiate the configuration file FILE
6431
6432 Configuration files:
6433 $config_files
6434
6435 Configuration commands:
6436 $config_commands
6437
6438 Report bugs to <bug-autoconf@gnu.org>."
6439 _ACEOF
6440
6441 cat >>$CONFIG_STATUS <<_ACEOF
6442 ac_cs_version="\\
6443 config.status
6444 configured by $0, generated by GNU Autoconf 2.57,
6445 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6446
6447 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6448 Free Software Foundation, Inc.
6449 This config.status script is free software; the Free Software Foundation
6450 gives unlimited permission to copy, distribute and modify it."
6451 srcdir=$srcdir
6452 INSTALL="$INSTALL"
6453 _ACEOF
6454
6455 cat >>$CONFIG_STATUS <<\_ACEOF
6456 # If no file are specified by the user, then we need to provide default
6457 # value. By we need to know if files were specified by the user.
6458 ac_need_defaults=:
6459 while test $# != 0
6460 do
6461 case $1 in
6462 --*=*)
6463 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6464 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6465 ac_shift=:
6466 ;;
6467 -*)
6468 ac_option=$1
6469 ac_optarg=$2
6470 ac_shift=shift
6471 ;;
6472 *) # This is not an option, so the user has probably given explicit
6473 # arguments.
6474 ac_option=$1
6475 ac_need_defaults=false;;
6476 esac
6477
6478 case $ac_option in
6479 # Handling of the options.
6480 _ACEOF
6481 cat >>$CONFIG_STATUS <<\_ACEOF
6482 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6483 ac_cs_recheck=: ;;
6484 --version | --vers* | -V )
6485 echo "$ac_cs_version"; exit 0 ;;
6486 --he | --h)
6487 # Conflict between --help and --header
6488 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6489 Try \`$0 --help' for more information." >&5
6490 echo "$as_me: error: ambiguous option: $1
6491 Try \`$0 --help' for more information." >&2;}
6492 { (exit 1); exit 1; }; };;
6493 --help | --hel | -h )
6494 echo "$ac_cs_usage"; exit 0 ;;
6495 --debug | --d* | -d )
6496 debug=: ;;
6497 --file | --fil | --fi | --f )
6498 $ac_shift
6499 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6500 ac_need_defaults=false;;
6501 --header | --heade | --head | --hea )
6502 $ac_shift
6503 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6504 ac_need_defaults=false;;
6505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6506 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6507 ac_cs_silent=: ;;
6508
6509 # This is an error.
6510 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6511 Try \`$0 --help' for more information." >&5
6512 echo "$as_me: error: unrecognized option: $1
6513 Try \`$0 --help' for more information." >&2;}
6514 { (exit 1); exit 1; }; } ;;
6515
6516 *) ac_config_targets="$ac_config_targets $1" ;;
6517
6518 esac
6519 shift
6520 done
6521
6522 ac_configure_extra_args=
6523
6524 if $ac_cs_silent; then
6525 exec 6>/dev/null
6526 ac_configure_extra_args="$ac_configure_extra_args --silent"
6527 fi
6528
6529 _ACEOF
6530 cat >>$CONFIG_STATUS <<_ACEOF
6531 if \$ac_cs_recheck; then
6532 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6533 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6534 fi
6535
6536 _ACEOF
6537
6538 cat >>$CONFIG_STATUS <<_ACEOF
6539 #
6540 # INIT-COMMANDS section.
6541 #
6542
6543 srcdir=${srcdir}
6544 host=${host}
6545 target=${target}
6546 with_multisubdir=${with_multisubdir}
6547 ac_configure_args="${multilib_arg} ${ac_configure_args}"
6548 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6549 gc_basedir=${gc_basedir}
6550 CC="${CC}"
6551 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
6552 DEFS="$DEFS"
6553 INCLUDES="$INCLUDES"
6554
6555
6556 _ACEOF
6557
6558
6559
6560 cat >>$CONFIG_STATUS <<\_ACEOF
6561 for ac_config_target in $ac_config_targets
6562 do
6563 case "$ac_config_target" in
6564 # Handling of arguments.
6565 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6566 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6567 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6568 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6569 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6570 { (exit 1); exit 1; }; };;
6571 esac
6572 done
6573
6574 # If the user did not use the arguments to specify the items to instantiate,
6575 # then the envvar interface is used. Set only those that are not.
6576 # We use the long form for the default assignment because of an extremely
6577 # bizarre bug on SunOS 4.1.3.
6578 if $ac_need_defaults; then
6579 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6580 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6581 fi
6582
6583 # Have a temporary directory for convenience. Make it in the build tree
6584 # simply because there is no reason to put it here, and in addition,
6585 # creating and moving files from /tmp can sometimes cause problems.
6586 # Create a temporary directory, and hook for its removal unless debugging.
6587 $debug ||
6588 {
6589 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6590 trap '{ (exit 1); exit 1; }' 1 2 13 15
6591 }
6592
6593 # Create a (secure) tmp directory for tmp files.
6594
6595 {
6596 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6597 test -n "$tmp" && test -d "$tmp"
6598 } ||
6599 {
6600 tmp=./confstat$$-$RANDOM
6601 (umask 077 && mkdir $tmp)
6602 } ||
6603 {
6604 echo "$me: cannot create a temporary directory in ." >&2
6605 { (exit 1); exit 1; }
6606 }
6607
6608 _ACEOF
6609
6610 cat >>$CONFIG_STATUS <<_ACEOF
6611
6612 #
6613 # CONFIG_FILES section.
6614 #
6615
6616 # No need to generate the scripts if there are no CONFIG_FILES.
6617 # This happens for instance when ./config.status config.h
6618 if test -n "\$CONFIG_FILES"; then
6619 # Protect against being on the right side of a sed subst in config.status.
6620 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6621 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6622 s,@SHELL@,$SHELL,;t t
6623 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6624 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6625 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6626 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6627 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6628 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6629 s,@exec_prefix@,$exec_prefix,;t t
6630 s,@prefix@,$prefix,;t t
6631 s,@program_transform_name@,$program_transform_name,;t t
6632 s,@bindir@,$bindir,;t t
6633 s,@sbindir@,$sbindir,;t t
6634 s,@libexecdir@,$libexecdir,;t t
6635 s,@datadir@,$datadir,;t t
6636 s,@sysconfdir@,$sysconfdir,;t t
6637 s,@sharedstatedir@,$sharedstatedir,;t t
6638 s,@localstatedir@,$localstatedir,;t t
6639 s,@libdir@,$libdir,;t t
6640 s,@includedir@,$includedir,;t t
6641 s,@oldincludedir@,$oldincludedir,;t t
6642 s,@infodir@,$infodir,;t t
6643 s,@mandir@,$mandir,;t t
6644 s,@build_alias@,$build_alias,;t t
6645 s,@host_alias@,$host_alias,;t t
6646 s,@target_alias@,$target_alias,;t t
6647 s,@DEFS@,$DEFS,;t t
6648 s,@ECHO_C@,$ECHO_C,;t t
6649 s,@ECHO_N@,$ECHO_N,;t t
6650 s,@ECHO_T@,$ECHO_T,;t t
6651 s,@LIBS@,$LIBS,;t t
6652 s,@gc_basedir@,$gc_basedir,;t t
6653 s,@build@,$build,;t t
6654 s,@build_cpu@,$build_cpu,;t t
6655 s,@build_vendor@,$build_vendor,;t t
6656 s,@build_os@,$build_os,;t t
6657 s,@host@,$host,;t t
6658 s,@host_cpu@,$host_cpu,;t t
6659 s,@host_vendor@,$host_vendor,;t t
6660 s,@host_os@,$host_os,;t t
6661 s,@target@,$target,;t t
6662 s,@target_cpu@,$target_cpu,;t t
6663 s,@target_vendor@,$target_vendor,;t t
6664 s,@target_os@,$target_os,;t t
6665 s,@mkinstalldirs@,$mkinstalldirs,;t t
6666 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6667 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6668 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6669 s,@PACKAGE@,$PACKAGE,;t t
6670 s,@VERSION@,$VERSION,;t t
6671 s,@ACLOCAL@,$ACLOCAL,;t t
6672 s,@AUTOCONF@,$AUTOCONF,;t t
6673 s,@AUTOMAKE@,$AUTOMAKE,;t t
6674 s,@AUTOHEADER@,$AUTOHEADER,;t t
6675 s,@MAKEINFO@,$MAKEINFO,;t t
6676 s,@SET_MAKE@,$SET_MAKE,;t t
6677 s,@CC@,$CC,;t t
6678 s,@ac_ct_CC@,$ac_ct_CC,;t t
6679 s,@EXEEXT@,$EXEEXT,;t t
6680 s,@OBJEXT@,$OBJEXT,;t t
6681 s,@CXX@,$CXX,;t t
6682 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6683 s,@CFLAGS@,$CFLAGS,;t t
6684 s,@CXXFLAGS@,$CXXFLAGS,;t t
6685 s,@AS@,$AS,;t t
6686 s,@ac_ct_AS@,$ac_ct_AS,;t t
6687 s,@AR@,$AR,;t t
6688 s,@ac_ct_AR@,$ac_ct_AR,;t t
6689 s,@RANLIB@,$RANLIB,;t t
6690 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6691 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6692 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6693 s,@MAINT@,$MAINT,;t t
6694 s,@GC_CFLAGS@,$GC_CFLAGS,;t t
6695 s,@LN_S@,$LN_S,;t t
6696 s,@STRIP@,$STRIP,;t t
6697 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6698 s,@LIBTOOL@,$LIBTOOL,;t t
6699 s,@CXXCPP@,$CXXCPP,;t t
6700 s,@CPPFLAGS@,$CPPFLAGS,;t t
6701 s,@THREADLIBS@,$THREADLIBS,;t t
6702 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
6703 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
6704 s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
6705 s,@target_all@,$target_all,;t t
6706 s,@target_noncanonical@,$target_noncanonical,;t t
6707 s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
6708 s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
6709 s,@INCLUDES@,$INCLUDES,;t t
6710 s,@CXXINCLUDES@,$CXXINCLUDES,;t t
6711 s,@addobjs@,$addobjs,;t t
6712 s,@addincludes@,$addincludes,;t t
6713 s,@addlibs@,$addlibs,;t t
6714 s,@addtests@,$addtests,;t t
6715 s,@CPP@,$CPP,;t t
6716 s,@EGREP@,$EGREP,;t t
6717 s,@MY_CFLAGS@,$MY_CFLAGS,;t t
6718 s,@toolexecdir@,$toolexecdir,;t t
6719 s,@toolexeclibdir@,$toolexeclibdir,;t t
6720 s,@LIBOBJS@,$LIBOBJS,;t t
6721 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6722 CEOF
6723
6724 _ACEOF
6725
6726 cat >>$CONFIG_STATUS <<\_ACEOF
6727 # Split the substitutions into bite-sized pieces for seds with
6728 # small command number limits, like on Digital OSF/1 and HP-UX.
6729 ac_max_sed_lines=48
6730 ac_sed_frag=1 # Number of current file.
6731 ac_beg=1 # First line for current file.
6732 ac_end=$ac_max_sed_lines # Line after last line for current file.
6733 ac_more_lines=:
6734 ac_sed_cmds=
6735 while $ac_more_lines; do
6736 if test $ac_beg -gt 1; then
6737 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6738 else
6739 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6740 fi
6741 if test ! -s $tmp/subs.frag; then
6742 ac_more_lines=false
6743 else
6744 # The purpose of the label and of the branching condition is to
6745 # speed up the sed processing (if there are no `@' at all, there
6746 # is no need to browse any of the substitutions).
6747 # These are the two extra sed commands mentioned above.
6748 (echo ':t
6749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6750 if test -z "$ac_sed_cmds"; then
6751 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6752 else
6753 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6754 fi
6755 ac_sed_frag=`expr $ac_sed_frag + 1`
6756 ac_beg=$ac_end
6757 ac_end=`expr $ac_end + $ac_max_sed_lines`
6758 fi
6759 done
6760 if test -z "$ac_sed_cmds"; then
6761 ac_sed_cmds=cat
6762 fi
6763 fi # test -n "$CONFIG_FILES"
6764
6765 _ACEOF
6766 cat >>$CONFIG_STATUS <<\_ACEOF
6767 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6768 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6769 case $ac_file in
6770 - | *:- | *:-:* ) # input from stdin
6771 cat >$tmp/stdin
6772 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6773 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6774 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6775 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6776 * ) ac_file_in=$ac_file.in ;;
6777 esac
6778
6779 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6780 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6782 X"$ac_file" : 'X\(//\)[^/]' \| \
6783 X"$ac_file" : 'X\(//\)$' \| \
6784 X"$ac_file" : 'X\(/\)' \| \
6785 . : '\(.\)' 2>/dev/null ||
6786 echo X"$ac_file" |
6787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6789 /^X\(\/\/\)$/{ s//\1/; q; }
6790 /^X\(\/\).*/{ s//\1/; q; }
6791 s/.*/./; q'`
6792 { if $as_mkdir_p; then
6793 mkdir -p "$ac_dir"
6794 else
6795 as_dir="$ac_dir"
6796 as_dirs=
6797 while test ! -d "$as_dir"; do
6798 as_dirs="$as_dir $as_dirs"
6799 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6801 X"$as_dir" : 'X\(//\)[^/]' \| \
6802 X"$as_dir" : 'X\(//\)$' \| \
6803 X"$as_dir" : 'X\(/\)' \| \
6804 . : '\(.\)' 2>/dev/null ||
6805 echo X"$as_dir" |
6806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6808 /^X\(\/\/\)$/{ s//\1/; q; }
6809 /^X\(\/\).*/{ s//\1/; q; }
6810 s/.*/./; q'`
6811 done
6812 test ! -n "$as_dirs" || mkdir $as_dirs
6813 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6814 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6815 { (exit 1); exit 1; }; }; }
6816
6817 ac_builddir=.
6818
6819 if test "$ac_dir" != .; then
6820 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6821 # A "../" for each directory in $ac_dir_suffix.
6822 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6823 else
6824 ac_dir_suffix= ac_top_builddir=
6825 fi
6826
6827 case $srcdir in
6828 .) # No --srcdir option. We are building in place.
6829 ac_srcdir=.
6830 if test -z "$ac_top_builddir"; then
6831 ac_top_srcdir=.
6832 else
6833 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6834 fi ;;
6835 [\\/]* | ?:[\\/]* ) # Absolute path.
6836 ac_srcdir=$srcdir$ac_dir_suffix;
6837 ac_top_srcdir=$srcdir ;;
6838 *) # Relative path.
6839 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6840 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6841 esac
6842 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6843 # absolute.
6844 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6845 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6846 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6847 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6848
6849
6850 case $INSTALL in
6851 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6852 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6853 esac
6854
6855 if test x"$ac_file" != x-; then
6856 { echo "$as_me:$LINENO: creating $ac_file" >&5
6857 echo "$as_me: creating $ac_file" >&6;}
6858 rm -f "$ac_file"
6859 fi
6860 # Let's still pretend it is `configure' which instantiates (i.e., don't
6861 # use $as_me), people would be surprised to read:
6862 # /* config.h. Generated by config.status. */
6863 if test x"$ac_file" = x-; then
6864 configure_input=
6865 else
6866 configure_input="$ac_file. "
6867 fi
6868 configure_input=$configure_input"Generated from `echo $ac_file_in |
6869 sed 's,.*/,,'` by configure."
6870
6871 # First look for the input files in the build tree, otherwise in the
6872 # src tree.
6873 ac_file_inputs=`IFS=:
6874 for f in $ac_file_in; do
6875 case $f in
6876 -) echo $tmp/stdin ;;
6877 [\\/$]*)
6878 # Absolute (can't be DOS-style, as IFS=:)
6879 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6880 echo "$as_me: error: cannot find input file: $f" >&2;}
6881 { (exit 1); exit 1; }; }
6882 echo $f;;
6883 *) # Relative
6884 if test -f "$f"; then
6885 # Build tree
6886 echo $f
6887 elif test -f "$srcdir/$f"; then
6888 # Source tree
6889 echo $srcdir/$f
6890 else
6891 # /dev/null tree
6892 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6893 echo "$as_me: error: cannot find input file: $f" >&2;}
6894 { (exit 1); exit 1; }; }
6895 fi;;
6896 esac
6897 done` || { (exit 1); exit 1; }
6898 _ACEOF
6899 cat >>$CONFIG_STATUS <<_ACEOF
6900 sed "$ac_vpsub
6901 $extrasub
6902 _ACEOF
6903 cat >>$CONFIG_STATUS <<\_ACEOF
6904 :t
6905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6906 s,@configure_input@,$configure_input,;t t
6907 s,@srcdir@,$ac_srcdir,;t t
6908 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6909 s,@top_srcdir@,$ac_top_srcdir,;t t
6910 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6911 s,@builddir@,$ac_builddir,;t t
6912 s,@abs_builddir@,$ac_abs_builddir,;t t
6913 s,@top_builddir@,$ac_top_builddir,;t t
6914 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6915 s,@INSTALL@,$ac_INSTALL,;t t
6916 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6917 rm -f $tmp/stdin
6918 if test x"$ac_file" != x-; then
6919 mv $tmp/out $ac_file
6920 else
6921 cat $tmp/out
6922 rm -f $tmp/out
6923 fi
6924
6925 done
6926 _ACEOF
6927 cat >>$CONFIG_STATUS <<\_ACEOF
6928
6929 #
6930 # CONFIG_COMMANDS section.
6931 #
6932 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6933 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6934 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6935 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6936 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6937 X"$ac_dest" : 'X\(//\)[^/]' \| \
6938 X"$ac_dest" : 'X\(//\)$' \| \
6939 X"$ac_dest" : 'X\(/\)' \| \
6940 . : '\(.\)' 2>/dev/null ||
6941 echo X"$ac_dest" |
6942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6943 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6944 /^X\(\/\/\)$/{ s//\1/; q; }
6945 /^X\(\/\).*/{ s//\1/; q; }
6946 s/.*/./; q'`
6947 ac_builddir=.
6948
6949 if test "$ac_dir" != .; then
6950 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6951 # A "../" for each directory in $ac_dir_suffix.
6952 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6953 else
6954 ac_dir_suffix= ac_top_builddir=
6955 fi
6956
6957 case $srcdir in
6958 .) # No --srcdir option. We are building in place.
6959 ac_srcdir=.
6960 if test -z "$ac_top_builddir"; then
6961 ac_top_srcdir=.
6962 else
6963 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6964 fi ;;
6965 [\\/]* | ?:[\\/]* ) # Absolute path.
6966 ac_srcdir=$srcdir$ac_dir_suffix;
6967 ac_top_srcdir=$srcdir ;;
6968 *) # Relative path.
6969 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6970 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6971 esac
6972 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6973 # absolute.
6974 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6975 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6976 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6977 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6978
6979
6980 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6981 echo "$as_me: executing $ac_dest commands" >&6;}
6982 case $ac_dest in
6983 default )
6984 echo "$INCLUDES $DEFS" > boehm-cflags
6985
6986 if test -n "$CONFIG_FILES"; then
6987 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
6988 ac_file=Makefile . ${gc_basedir}/../config-ml.in
6989 fi ;;
6990 esac
6991 done
6992 _ACEOF
6993
6994 cat >>$CONFIG_STATUS <<\_ACEOF
6995
6996 { (exit 0); exit 0; }
6997 _ACEOF
6998 chmod +x $CONFIG_STATUS
6999 ac_clean_files=$ac_clean_files_save
7000
7001
7002 # configure is writing to config.log, and then calls config.status.
7003 # config.status does its own redirection, appending to config.log.
7004 # Unfortunately, on DOS this fails, as config.log is still kept open
7005 # by configure, so config.status won't be able to write to it; its
7006 # output is simply discarded. So we exec the FD to /dev/null,
7007 # effectively closing config.log, so it can be properly (re)opened and
7008 # appended to by config.status. When coming back to configure, we
7009 # need to make the FD available again.
7010 if test "$no_create" != yes; then
7011 ac_cs_success=:
7012 ac_config_status_args=
7013 test "$silent" = yes &&
7014 ac_config_status_args="$ac_config_status_args --quiet"
7015 exec 5>/dev/null
7016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7017 exec 5>>config.log
7018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7019 # would make configure fail if this is the last instruction.
7020 $ac_cs_success || { (exit 1); exit 1; }
7021 fi
7022