OSDN Git Service

* Makefile.am: Remove bogus duplicate setting of AM_CFLAGS.
[pf3gnuchains/gcc-fork.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 PACKAGE=gc
1707
1708 VERSION=6.1a1
1709
1710 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1711   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1712 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1713    { (exit 1); exit 1; }; }
1714 fi
1715
1716
1717
1718 missing_dir=`cd $ac_aux_dir && pwd`
1719 echo "$as_me:$LINENO: checking for working aclocal" >&5
1720 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1721 # Run test in a subshell; some versions of sh will print an error if
1722 # an executable is not found, even if stderr is redirected.
1723 # Redirect stdin to placate older versions of autoconf.  Sigh.
1724 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1725    ACLOCAL=aclocal
1726    echo "$as_me:$LINENO: result: found" >&5
1727 echo "${ECHO_T}found" >&6
1728 else
1729    ACLOCAL="$missing_dir/missing aclocal"
1730    echo "$as_me:$LINENO: result: missing" >&5
1731 echo "${ECHO_T}missing" >&6
1732 fi
1733
1734 echo "$as_me:$LINENO: checking for working autoconf" >&5
1735 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1736 # Run test in a subshell; some versions of sh will print an error if
1737 # an executable is not found, even if stderr is redirected.
1738 # Redirect stdin to placate older versions of autoconf.  Sigh.
1739 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1740    AUTOCONF=autoconf
1741    echo "$as_me:$LINENO: result: found" >&5
1742 echo "${ECHO_T}found" >&6
1743 else
1744    AUTOCONF="$missing_dir/missing autoconf"
1745    echo "$as_me:$LINENO: result: missing" >&5
1746 echo "${ECHO_T}missing" >&6
1747 fi
1748
1749 echo "$as_me:$LINENO: checking for working automake" >&5
1750 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1751 # Run test in a subshell; some versions of sh will print an error if
1752 # an executable is not found, even if stderr is redirected.
1753 # Redirect stdin to placate older versions of autoconf.  Sigh.
1754 if (automake --version) < /dev/null > /dev/null 2>&1; then
1755    AUTOMAKE=automake
1756    echo "$as_me:$LINENO: result: found" >&5
1757 echo "${ECHO_T}found" >&6
1758 else
1759    AUTOMAKE="$missing_dir/missing automake"
1760    echo "$as_me:$LINENO: result: missing" >&5
1761 echo "${ECHO_T}missing" >&6
1762 fi
1763
1764 echo "$as_me:$LINENO: checking for working autoheader" >&5
1765 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1766 # Run test in a subshell; some versions of sh will print an error if
1767 # an executable is not found, even if stderr is redirected.
1768 # Redirect stdin to placate older versions of autoconf.  Sigh.
1769 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1770    AUTOHEADER=autoheader
1771    echo "$as_me:$LINENO: result: found" >&5
1772 echo "${ECHO_T}found" >&6
1773 else
1774    AUTOHEADER="$missing_dir/missing autoheader"
1775    echo "$as_me:$LINENO: result: missing" >&5
1776 echo "${ECHO_T}missing" >&6
1777 fi
1778
1779 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1780 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1781 # Run test in a subshell; some versions of sh will print an error if
1782 # an executable is not found, even if stderr is redirected.
1783 # Redirect stdin to placate older versions of autoconf.  Sigh.
1784 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1785    MAKEINFO=makeinfo
1786    echo "$as_me:$LINENO: result: found" >&5
1787 echo "${ECHO_T}found" >&6
1788 else
1789    MAKEINFO="$missing_dir/missing makeinfo"
1790    echo "$as_me:$LINENO: result: missing" >&5
1791 echo "${ECHO_T}missing" >&6
1792 fi
1793
1794
1795
1796 # The autoconf 2.5x version of the no-executables hack.
1797 # GCC_NO_EXECUTABLES
1798 # -----------------
1799 # FIXME: The GCC team has specific needs which the current Autoconf
1800 # framework cannot solve elegantly.  This macro implements a dirty
1801 # hack until Autoconf is able to provide the services its users
1802 # need.
1803 #
1804 # Several of the support libraries that are often built with GCC can't
1805 # assume the tool-chain is already capable of linking a program: the
1806 # compiler often expects to be able to link with some of such
1807 # libraries.
1808 #
1809 # In several of these libraries, workarounds have been introduced to
1810 # avoid the AC_PROG_CC_WORKS test, that would just abort their
1811 # configuration.  The introduction of AC_EXEEXT, enabled either by
1812 # libtool or by CVS autoconf, have just made matters worse.
1813 #
1814 # Unlike the previous AC_NO_EXECUTABLES, this test does not
1815 # disable link tests at autoconf time, but at configure time.
1816 # This allows AC_NO_EXECUTABLES to be invoked conditionally.
1817 # GCC_NO_EXECUTABLES
1818
1819
1820
1821 # Yak.  We must force CC and CXX to /not/ be precious variables; otherwise
1822 # the wrong, non-multilib-adjusted value will be used in multilibs.
1823 # As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
1824
1825
1826
1827 ac_ext=c
1828 ac_cpp='$CPP $CPPFLAGS'
1829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1832 if test -n "$ac_tool_prefix"; then
1833   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1834 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1835 echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837 if test "${ac_cv_prog_CC+set}" = set; then
1838   echo $ECHO_N "(cached) $ECHO_C" >&6
1839 else
1840   if test -n "$CC"; then
1841   ac_cv_prog_CC="$CC" # Let the user override the test.
1842 else
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 for as_dir in $PATH
1845 do
1846   IFS=$as_save_IFS
1847   test -z "$as_dir" && as_dir=.
1848   for ac_exec_ext in '' $ac_executable_extensions; do
1849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1850     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852     break 2
1853   fi
1854 done
1855 done
1856
1857 fi
1858 fi
1859 CC=$ac_cv_prog_CC
1860 if test -n "$CC"; then
1861   echo "$as_me:$LINENO: result: $CC" >&5
1862 echo "${ECHO_T}$CC" >&6
1863 else
1864   echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1866 fi
1867
1868 fi
1869 if test -z "$ac_cv_prog_CC"; then
1870   ac_ct_CC=$CC
1871   # Extract the first word of "gcc", so it can be a program name with args.
1872 set dummy gcc; ac_word=$2
1873 echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1876   echo $ECHO_N "(cached) $ECHO_C" >&6
1877 else
1878   if test -n "$ac_ct_CC"; then
1879   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1880 else
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 for as_dir in $PATH
1883 do
1884   IFS=$as_save_IFS
1885   test -z "$as_dir" && as_dir=.
1886   for ac_exec_ext in '' $ac_executable_extensions; do
1887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888     ac_cv_prog_ac_ct_CC="gcc"
1889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890     break 2
1891   fi
1892 done
1893 done
1894
1895 fi
1896 fi
1897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1898 if test -n "$ac_ct_CC"; then
1899   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1900 echo "${ECHO_T}$ac_ct_CC" >&6
1901 else
1902   echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1904 fi
1905
1906   CC=$ac_ct_CC
1907 else
1908   CC="$ac_cv_prog_CC"
1909 fi
1910
1911 if test -z "$CC"; then
1912   if test -n "$ac_tool_prefix"; then
1913   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1914 set dummy ${ac_tool_prefix}cc; ac_word=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_CC+set}" = set; then
1918   echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920   if test -n "$CC"; then
1921   ac_cv_prog_CC="$CC" # Let the user override the test.
1922 else
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926   IFS=$as_save_IFS
1927   test -z "$as_dir" && as_dir=.
1928   for ac_exec_ext in '' $ac_executable_extensions; do
1929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930     ac_cv_prog_CC="${ac_tool_prefix}cc"
1931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932     break 2
1933   fi
1934 done
1935 done
1936
1937 fi
1938 fi
1939 CC=$ac_cv_prog_CC
1940 if test -n "$CC"; then
1941   echo "$as_me:$LINENO: result: $CC" >&5
1942 echo "${ECHO_T}$CC" >&6
1943 else
1944   echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1946 fi
1947
1948 fi
1949 if test -z "$ac_cv_prog_CC"; then
1950   ac_ct_CC=$CC
1951   # Extract the first word of "cc", so it can be a program name with args.
1952 set dummy cc; ac_word=$2
1953 echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1956   echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958   if test -n "$ac_ct_CC"; then
1959   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1960 else
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 for as_dir in $PATH
1963 do
1964   IFS=$as_save_IFS
1965   test -z "$as_dir" && as_dir=.
1966   for ac_exec_ext in '' $ac_executable_extensions; do
1967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968     ac_cv_prog_ac_ct_CC="cc"
1969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970     break 2
1971   fi
1972 done
1973 done
1974
1975 fi
1976 fi
1977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1978 if test -n "$ac_ct_CC"; then
1979   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1980 echo "${ECHO_T}$ac_ct_CC" >&6
1981 else
1982   echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6
1984 fi
1985
1986   CC=$ac_ct_CC
1987 else
1988   CC="$ac_cv_prog_CC"
1989 fi
1990
1991 fi
1992 if test -z "$CC"; then
1993   # Extract the first word of "cc", so it can be a program name with args.
1994 set dummy cc; ac_word=$2
1995 echo "$as_me:$LINENO: checking for $ac_word" >&5
1996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997 if test "${ac_cv_prog_CC+set}" = set; then
1998   echo $ECHO_N "(cached) $ECHO_C" >&6
1999 else
2000   if test -n "$CC"; then
2001   ac_cv_prog_CC="$CC" # Let the user override the test.
2002 else
2003   ac_prog_rejected=no
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007   IFS=$as_save_IFS
2008   test -z "$as_dir" && as_dir=.
2009   for ac_exec_ext in '' $ac_executable_extensions; do
2010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2012        ac_prog_rejected=yes
2013        continue
2014      fi
2015     ac_cv_prog_CC="cc"
2016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017     break 2
2018   fi
2019 done
2020 done
2021
2022 if test $ac_prog_rejected = yes; then
2023   # We found a bogon in the path, so make sure we never use it.
2024   set dummy $ac_cv_prog_CC
2025   shift
2026   if test $# != 0; then
2027     # We chose a different compiler from the bogus one.
2028     # However, it has the same basename, so the bogon will be chosen
2029     # first if we set CC to just the basename; use the full file name.
2030     shift
2031     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2032   fi
2033 fi
2034 fi
2035 fi
2036 CC=$ac_cv_prog_CC
2037 if test -n "$CC"; then
2038   echo "$as_me:$LINENO: result: $CC" >&5
2039 echo "${ECHO_T}$CC" >&6
2040 else
2041   echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2043 fi
2044
2045 fi
2046 if test -z "$CC"; then
2047   if test -n "$ac_tool_prefix"; then
2048   for ac_prog in cl
2049   do
2050     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055   echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057   if test -n "$CC"; then
2058   ac_cv_prog_CC="$CC" # Let the user override the test.
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063   IFS=$as_save_IFS
2064   test -z "$as_dir" && as_dir=.
2065   for ac_exec_ext in '' $ac_executable_extensions; do
2066   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069     break 2
2070   fi
2071 done
2072 done
2073
2074 fi
2075 fi
2076 CC=$ac_cv_prog_CC
2077 if test -n "$CC"; then
2078   echo "$as_me:$LINENO: result: $CC" >&5
2079 echo "${ECHO_T}$CC" >&6
2080 else
2081   echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6
2083 fi
2084
2085     test -n "$CC" && break
2086   done
2087 fi
2088 if test -z "$CC"; then
2089   ac_ct_CC=$CC
2090   for ac_prog in cl
2091 do
2092   # Extract the first word of "$ac_prog", so it can be a program name with args.
2093 set dummy $ac_prog; ac_word=$2
2094 echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2097   echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099   if test -n "$ac_ct_CC"; then
2100   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2101 else
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105   IFS=$as_save_IFS
2106   test -z "$as_dir" && as_dir=.
2107   for ac_exec_ext in '' $ac_executable_extensions; do
2108   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109     ac_cv_prog_ac_ct_CC="$ac_prog"
2110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111     break 2
2112   fi
2113 done
2114 done
2115
2116 fi
2117 fi
2118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2119 if test -n "$ac_ct_CC"; then
2120   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2121 echo "${ECHO_T}$ac_ct_CC" >&6
2122 else
2123   echo "$as_me:$LINENO: result: no" >&5
2124 echo "${ECHO_T}no" >&6
2125 fi
2126
2127   test -n "$ac_ct_CC" && break
2128 done
2129
2130   CC=$ac_ct_CC
2131 fi
2132
2133 fi
2134
2135
2136 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2137 See \`config.log' for more details." >&5
2138 echo "$as_me: error: no acceptable C compiler found in \$PATH
2139 See \`config.log' for more details." >&2;}
2140    { (exit 1); exit 1; }; }
2141
2142 # Provide some information about the compiler.
2143 echo "$as_me:$LINENO:" \
2144      "checking for C compiler version" >&5
2145 ac_compiler=`set X $ac_compile; echo $2`
2146 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2147   (eval $ac_compiler --version </dev/null >&5) 2>&5
2148   ac_status=$?
2149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150   (exit $ac_status); }
2151 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2152   (eval $ac_compiler -v </dev/null >&5) 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }
2156 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2157   (eval $ac_compiler -V </dev/null >&5) 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }
2161
2162 cat >conftest.$ac_ext <<_ACEOF
2163 #line $LINENO "configure"
2164 /* confdefs.h.  */
2165 _ACEOF
2166 cat confdefs.h >>conftest.$ac_ext
2167 cat >>conftest.$ac_ext <<_ACEOF
2168 /* end confdefs.h.  */
2169
2170 int
2171 main ()
2172 {
2173
2174   ;
2175   return 0;
2176 }
2177 _ACEOF
2178 # FIXME: Cleanup?
2179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2180   (eval $ac_link) 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); }; then
2184   gcc_no_link=no
2185 else
2186   gcc_no_link=yes
2187 fi
2188
2189 if test x$gcc_no_link = xyes; then
2190   # Setting cross_compile will disable run tests; it will
2191   # also disable AC_CHECK_FILE but that's generally
2192   # correct if we can't link.
2193   cross_compiling=yes
2194   EXEEXT=
2195 else
2196   cat >conftest.$ac_ext <<_ACEOF
2197 #line $LINENO "configure"
2198 /* confdefs.h.  */
2199 _ACEOF
2200 cat confdefs.h >>conftest.$ac_ext
2201 cat >>conftest.$ac_ext <<_ACEOF
2202 /* end confdefs.h.  */
2203
2204 int
2205 main ()
2206 {
2207
2208   ;
2209   return 0;
2210 }
2211 _ACEOF
2212 ac_clean_files_save=$ac_clean_files
2213 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2214 # Try to create an executable without -o first, disregard a.out.
2215 # It will help us diagnose broken compilers, and finding out an intuition
2216 # of exeext.
2217 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2218 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2219 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2220 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2221   (eval $ac_link_default) 2>&5
2222   ac_status=$?
2223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224   (exit $ac_status); }; then
2225   # Find the output, starting from the most likely.  This scheme is
2226 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2227 # resort.
2228
2229 # Be careful to initialize this variable, since it used to be cached.
2230 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2231 ac_cv_exeext=
2232 # b.out is created by i960 compilers.
2233 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2234 do
2235   test -f "$ac_file" || continue
2236   case $ac_file in
2237     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2238         ;;
2239     conftest.$ac_ext )
2240         # This is the source file.
2241         ;;
2242     [ab].out )
2243         # We found the default executable, but exeext='' is most
2244         # certainly right.
2245         break;;
2246     *.* )
2247         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2248         # FIXME: I believe we export ac_cv_exeext for Libtool,
2249         # but it would be cool to find out if it's true.  Does anybody
2250         # maintain Libtool? --akim.
2251         export ac_cv_exeext
2252         break;;
2253     * )
2254         break;;
2255   esac
2256 done
2257 else
2258   echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.$ac_ext >&5
2260
2261 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2262 See \`config.log' for more details." >&5
2263 echo "$as_me: error: C compiler cannot create executables
2264 See \`config.log' for more details." >&2;}
2265    { (exit 77); exit 77; }; }
2266 fi
2267
2268 ac_exeext=$ac_cv_exeext
2269 echo "$as_me:$LINENO: result: $ac_file" >&5
2270 echo "${ECHO_T}$ac_file" >&6
2271
2272 # Check the compiler produces executables we can run.  If not, either
2273 # the compiler is broken, or we cross compile.
2274 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2275 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2276 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2277 # If not cross compiling, check that we can run a simple program.
2278 if test "$cross_compiling" != yes; then
2279   if { ac_try='./$ac_file'
2280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281   (eval $ac_try) 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); }; }; then
2285     cross_compiling=no
2286   else
2287     if test "$cross_compiling" = maybe; then
2288         cross_compiling=yes
2289     else
2290         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2291 If you meant to cross compile, use \`--host'.
2292 See \`config.log' for more details." >&5
2293 echo "$as_me: error: cannot run C compiled programs.
2294 If you meant to cross compile, use \`--host'.
2295 See \`config.log' for more details." >&2;}
2296    { (exit 1); exit 1; }; }
2297     fi
2298   fi
2299 fi
2300 echo "$as_me:$LINENO: result: yes" >&5
2301 echo "${ECHO_T}yes" >&6
2302
2303 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2304 ac_clean_files=$ac_clean_files_save
2305 # Check the compiler produces executables we can run.  If not, either
2306 # the compiler is broken, or we cross compile.
2307 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2308 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2309 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2310 echo "${ECHO_T}$cross_compiling" >&6
2311
2312 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2313 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2315   (eval $ac_link) 2>&5
2316   ac_status=$?
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); }; then
2319   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2320 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2321 # work properly (i.e., refer to `conftest.exe'), while it won't with
2322 # `rm'.
2323 for ac_file in conftest.exe conftest conftest.*; do
2324   test -f "$ac_file" || continue
2325   case $ac_file in
2326     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2327     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2328           export ac_cv_exeext
2329           break;;
2330     * ) break;;
2331   esac
2332 done
2333 else
2334   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2335 See \`config.log' for more details." >&5
2336 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2337 See \`config.log' for more details." >&2;}
2338    { (exit 1); exit 1; }; }
2339 fi
2340
2341 rm -f conftest$ac_cv_exeext
2342 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2343 echo "${ECHO_T}$ac_cv_exeext" >&6
2344
2345 rm -f conftest.$ac_ext
2346 EXEEXT=$ac_cv_exeext
2347 ac_exeext=$EXEEXT
2348 fi
2349 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2350 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2351 if test "${ac_cv_objext+set}" = set; then
2352   echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354   cat >conftest.$ac_ext <<_ACEOF
2355 #line $LINENO "configure"
2356 /* confdefs.h.  */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h.  */
2361
2362 int
2363 main ()
2364 {
2365
2366   ;
2367   return 0;
2368 }
2369 _ACEOF
2370 rm -f conftest.o conftest.obj
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372   (eval $ac_compile) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }; then
2376   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2377   case $ac_file in
2378     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2379     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2380        break;;
2381   esac
2382 done
2383 else
2384   echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2386
2387 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2388 See \`config.log' for more details." >&5
2389 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2390 See \`config.log' for more details." >&2;}
2391    { (exit 1); exit 1; }; }
2392 fi
2393
2394 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2395 fi
2396 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2397 echo "${ECHO_T}$ac_cv_objext" >&6
2398 OBJEXT=$ac_cv_objext
2399 ac_objext=$OBJEXT
2400 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2401 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2402 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2403   echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405   cat >conftest.$ac_ext <<_ACEOF
2406 #line $LINENO "configure"
2407 /* confdefs.h.  */
2408 _ACEOF
2409 cat confdefs.h >>conftest.$ac_ext
2410 cat >>conftest.$ac_ext <<_ACEOF
2411 /* end confdefs.h.  */
2412
2413 int
2414 main ()
2415 {
2416 #ifndef __GNUC__
2417        choke me
2418 #endif
2419
2420   ;
2421   return 0;
2422 }
2423 _ACEOF
2424 rm -f conftest.$ac_objext
2425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426   (eval $ac_compile) 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); } &&
2430          { ac_try='test -s conftest.$ac_objext'
2431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432   (eval $ac_try) 2>&5
2433   ac_status=$?
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); }; }; then
2436   ac_compiler_gnu=yes
2437 else
2438   echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2440
2441 ac_compiler_gnu=no
2442 fi
2443 rm -f conftest.$ac_objext conftest.$ac_ext
2444 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2445
2446 fi
2447 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2448 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2449 GCC=`test $ac_compiler_gnu = yes && echo yes`
2450 ac_test_CFLAGS=${CFLAGS+set}
2451 ac_save_CFLAGS=$CFLAGS
2452 CFLAGS="-g"
2453 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2454 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2455 if test "${ac_cv_prog_cc_g+set}" = set; then
2456   echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458   cat >conftest.$ac_ext <<_ACEOF
2459 #line $LINENO "configure"
2460 /* confdefs.h.  */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h.  */
2465
2466 int
2467 main ()
2468 {
2469
2470   ;
2471   return 0;
2472 }
2473 _ACEOF
2474 rm -f conftest.$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476   (eval $ac_compile) 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); } &&
2480          { ac_try='test -s conftest.$ac_objext'
2481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482   (eval $ac_try) 2>&5
2483   ac_status=$?
2484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485   (exit $ac_status); }; }; then
2486   ac_cv_prog_cc_g=yes
2487 else
2488   echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2490
2491 ac_cv_prog_cc_g=no
2492 fi
2493 rm -f conftest.$ac_objext conftest.$ac_ext
2494 fi
2495 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2496 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2497 if test "$ac_test_CFLAGS" = set; then
2498   CFLAGS=$ac_save_CFLAGS
2499 elif test $ac_cv_prog_cc_g = yes; then
2500   if test "$GCC" = yes; then
2501     CFLAGS="-g -O2"
2502   else
2503     CFLAGS="-g"
2504   fi
2505 else
2506   if test "$GCC" = yes; then
2507     CFLAGS="-O2"
2508   else
2509     CFLAGS=
2510   fi
2511 fi
2512 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2513 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2514 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2515   echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517   ac_cv_prog_cc_stdc=no
2518 ac_save_CC=$CC
2519 cat >conftest.$ac_ext <<_ACEOF
2520 #line $LINENO "configure"
2521 /* confdefs.h.  */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h.  */
2526 #include <stdarg.h>
2527 #include <stdio.h>
2528 #include <sys/types.h>
2529 #include <sys/stat.h>
2530 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2531 struct buf { int x; };
2532 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2533 static char *e (p, i)
2534      char **p;
2535      int i;
2536 {
2537   return p[i];
2538 }
2539 static char *f (char * (*g) (char **, int), char **p, ...)
2540 {
2541   char *s;
2542   va_list v;
2543   va_start (v,p);
2544   s = g (p, va_arg (v,int));
2545   va_end (v);
2546   return s;
2547 }
2548 int test (int i, double x);
2549 struct s1 {int (*f) (int a);};
2550 struct s2 {int (*f) (double a);};
2551 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2552 int argc;
2553 char **argv;
2554 int
2555 main ()
2556 {
2557 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2558   ;
2559   return 0;
2560 }
2561 _ACEOF
2562 # Don't try gcc -ansi; that turns off useful extensions and
2563 # breaks some systems' header files.
2564 # AIX                   -qlanglvl=ansi
2565 # Ultrix and OSF/1      -std1
2566 # HP-UX 10.20 and later -Ae
2567 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2568 # SVR4                  -Xc -D__EXTENSIONS__
2569 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2570 do
2571   CC="$ac_save_CC $ac_arg"
2572   rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574   (eval $ac_compile) 2>&5
2575   ac_status=$?
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); } &&
2578          { ac_try='test -s conftest.$ac_objext'
2579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580   (eval $ac_try) 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }; }; then
2584   ac_cv_prog_cc_stdc=$ac_arg
2585 break
2586 else
2587   echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2589
2590 fi
2591 rm -f conftest.$ac_objext
2592 done
2593 rm -f conftest.$ac_ext conftest.$ac_objext
2594 CC=$ac_save_CC
2595
2596 fi
2597
2598 case "x$ac_cv_prog_cc_stdc" in
2599   x|xno)
2600     echo "$as_me:$LINENO: result: none needed" >&5
2601 echo "${ECHO_T}none needed" >&6 ;;
2602   *)
2603     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2605     CC="$CC $ac_cv_prog_cc_stdc" ;;
2606 esac
2607
2608 # Some people use a C++ compiler to compile C.  Since we use `exit',
2609 # in C++ we need to declare it.  In case someone uses the same compiler
2610 # for both compiling C and C++ we need to have the C++ compiler decide
2611 # the declaration of exit, since it's the most demanding environment.
2612 cat >conftest.$ac_ext <<_ACEOF
2613 #ifndef __cplusplus
2614   choke me
2615 #endif
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619   (eval $ac_compile) 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); } &&
2623          { ac_try='test -s conftest.$ac_objext'
2624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625   (eval $ac_try) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }; }; then
2629   for ac_declaration in \
2630    '' \
2631    'extern "C" void std::exit (int) throw (); using std::exit;' \
2632    'extern "C" void std::exit (int); using std::exit;' \
2633    'extern "C" void exit (int) throw ();' \
2634    'extern "C" void exit (int);' \
2635    'void exit (int);'
2636 do
2637   cat >conftest.$ac_ext <<_ACEOF
2638 #line $LINENO "configure"
2639 /* confdefs.h.  */
2640 _ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h.  */
2644 $ac_declaration
2645 #include <stdlib.h>
2646 int
2647 main ()
2648 {
2649 exit (42);
2650   ;
2651   return 0;
2652 }
2653 _ACEOF
2654 rm -f conftest.$ac_objext
2655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656   (eval $ac_compile) 2>&5
2657   ac_status=$?
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); } &&
2660          { ac_try='test -s conftest.$ac_objext'
2661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662   (eval $ac_try) 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }; }; then
2666   :
2667 else
2668   echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2670
2671 continue
2672 fi
2673 rm -f conftest.$ac_objext conftest.$ac_ext
2674   cat >conftest.$ac_ext <<_ACEOF
2675 #line $LINENO "configure"
2676 /* confdefs.h.  */
2677 _ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h.  */
2681 $ac_declaration
2682 int
2683 main ()
2684 {
2685 exit (42);
2686   ;
2687   return 0;
2688 }
2689 _ACEOF
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692   (eval $ac_compile) 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); } &&
2696          { ac_try='test -s conftest.$ac_objext'
2697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698   (eval $ac_try) 2>&5
2699   ac_status=$?
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); }; }; then
2702   break
2703 else
2704   echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2706
2707 fi
2708 rm -f conftest.$ac_objext conftest.$ac_ext
2709 done
2710 rm -f conftest*
2711 if test -n "$ac_declaration"; then
2712   echo '#ifdef __cplusplus' >>confdefs.h
2713   echo $ac_declaration      >>confdefs.h
2714   echo '#endif'             >>confdefs.h
2715 fi
2716
2717 else
2718   echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2720
2721 fi
2722 rm -f conftest.$ac_objext conftest.$ac_ext
2723 ac_ext=c
2724 ac_cpp='$CPP $CPPFLAGS'
2725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2728
2729 ac_ext=cc
2730 ac_cpp='$CXXCPP $CPPFLAGS'
2731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2734 if test -n "$ac_tool_prefix"; then
2735   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2736   do
2737     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2738 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2739 echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2741 if test "${ac_cv_prog_CXX+set}" = set; then
2742   echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744   if test -n "$CXX"; then
2745   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2749 do
2750   IFS=$as_save_IFS
2751   test -z "$as_dir" && as_dir=.
2752   for ac_exec_ext in '' $ac_executable_extensions; do
2753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2754     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756     break 2
2757   fi
2758 done
2759 done
2760
2761 fi
2762 fi
2763 CXX=$ac_cv_prog_CXX
2764 if test -n "$CXX"; then
2765   echo "$as_me:$LINENO: result: $CXX" >&5
2766 echo "${ECHO_T}$CXX" >&6
2767 else
2768   echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6
2770 fi
2771
2772     test -n "$CXX" && break
2773   done
2774 fi
2775 if test -z "$CXX"; then
2776   ac_ct_CXX=$CXX
2777   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2778 do
2779   # Extract the first word of "$ac_prog", so it can be a program name with args.
2780 set dummy $ac_prog; ac_word=$2
2781 echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2783 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2784   echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786   if test -n "$ac_ct_CXX"; then
2787   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792   IFS=$as_save_IFS
2793   test -z "$as_dir" && as_dir=.
2794   for ac_exec_ext in '' $ac_executable_extensions; do
2795   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796     ac_cv_prog_ac_ct_CXX="$ac_prog"
2797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798     break 2
2799   fi
2800 done
2801 done
2802
2803 fi
2804 fi
2805 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2806 if test -n "$ac_ct_CXX"; then
2807   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2808 echo "${ECHO_T}$ac_ct_CXX" >&6
2809 else
2810   echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6
2812 fi
2813
2814   test -n "$ac_ct_CXX" && break
2815 done
2816 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2817
2818   CXX=$ac_ct_CXX
2819 fi
2820
2821
2822 # Provide some information about the compiler.
2823 echo "$as_me:$LINENO:" \
2824      "checking for C++ compiler version" >&5
2825 ac_compiler=`set X $ac_compile; echo $2`
2826 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2827   (eval $ac_compiler --version </dev/null >&5) 2>&5
2828   ac_status=$?
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); }
2831 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2832   (eval $ac_compiler -v </dev/null >&5) 2>&5
2833   ac_status=$?
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); }
2836 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2837   (eval $ac_compiler -V </dev/null >&5) 2>&5
2838   ac_status=$?
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); }
2841
2842 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2843 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2844 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2845   echo $ECHO_N "(cached) $ECHO_C" >&6
2846 else
2847   cat >conftest.$ac_ext <<_ACEOF
2848 #line $LINENO "configure"
2849 /* confdefs.h.  */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h.  */
2854
2855 int
2856 main ()
2857 {
2858 #ifndef __GNUC__
2859        choke me
2860 #endif
2861
2862   ;
2863   return 0;
2864 }
2865 _ACEOF
2866 rm -f conftest.$ac_objext
2867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2868   (eval $ac_compile) 2>&5
2869   ac_status=$?
2870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871   (exit $ac_status); } &&
2872          { ac_try='test -s conftest.$ac_objext'
2873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874   (eval $ac_try) 2>&5
2875   ac_status=$?
2876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877   (exit $ac_status); }; }; then
2878   ac_compiler_gnu=yes
2879 else
2880   echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2882
2883 ac_compiler_gnu=no
2884 fi
2885 rm -f conftest.$ac_objext conftest.$ac_ext
2886 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2887
2888 fi
2889 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2890 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2891 GXX=`test $ac_compiler_gnu = yes && echo yes`
2892 ac_test_CXXFLAGS=${CXXFLAGS+set}
2893 ac_save_CXXFLAGS=$CXXFLAGS
2894 CXXFLAGS="-g"
2895 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2896 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2897 if test "${ac_cv_prog_cxx_g+set}" = set; then
2898   echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900   cat >conftest.$ac_ext <<_ACEOF
2901 #line $LINENO "configure"
2902 /* confdefs.h.  */
2903 _ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h.  */
2907
2908 int
2909 main ()
2910 {
2911
2912   ;
2913   return 0;
2914 }
2915 _ACEOF
2916 rm -f conftest.$ac_objext
2917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2918   (eval $ac_compile) 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); } &&
2922          { ac_try='test -s conftest.$ac_objext'
2923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924   (eval $ac_try) 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }; }; then
2928   ac_cv_prog_cxx_g=yes
2929 else
2930   echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933 ac_cv_prog_cxx_g=no
2934 fi
2935 rm -f conftest.$ac_objext conftest.$ac_ext
2936 fi
2937 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2938 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2939 if test "$ac_test_CXXFLAGS" = set; then
2940   CXXFLAGS=$ac_save_CXXFLAGS
2941 elif test $ac_cv_prog_cxx_g = yes; then
2942   if test "$GXX" = yes; then
2943     CXXFLAGS="-g -O2"
2944   else
2945     CXXFLAGS="-g"
2946   fi
2947 else
2948   if test "$GXX" = yes; then
2949     CXXFLAGS="-O2"
2950   else
2951     CXXFLAGS=
2952   fi
2953 fi
2954 for ac_declaration in \
2955    '' \
2956    'extern "C" void std::exit (int) throw (); using std::exit;' \
2957    'extern "C" void std::exit (int); using std::exit;' \
2958    'extern "C" void exit (int) throw ();' \
2959    'extern "C" void exit (int);' \
2960    'void exit (int);'
2961 do
2962   cat >conftest.$ac_ext <<_ACEOF
2963 #line $LINENO "configure"
2964 /* confdefs.h.  */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h.  */
2969 $ac_declaration
2970 #include <stdlib.h>
2971 int
2972 main ()
2973 {
2974 exit (42);
2975   ;
2976   return 0;
2977 }
2978 _ACEOF
2979 rm -f conftest.$ac_objext
2980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2981   (eval $ac_compile) 2>&5
2982   ac_status=$?
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); } &&
2985          { ac_try='test -s conftest.$ac_objext'
2986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987   (eval $ac_try) 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }; }; then
2991   :
2992 else
2993   echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996 continue
2997 fi
2998 rm -f conftest.$ac_objext conftest.$ac_ext
2999   cat >conftest.$ac_ext <<_ACEOF
3000 #line $LINENO "configure"
3001 /* confdefs.h.  */
3002 _ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h.  */
3006 $ac_declaration
3007 int
3008 main ()
3009 {
3010 exit (42);
3011   ;
3012   return 0;
3013 }
3014 _ACEOF
3015 rm -f conftest.$ac_objext
3016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3017   (eval $ac_compile) 2>&5
3018   ac_status=$?
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); } &&
3021          { ac_try='test -s conftest.$ac_objext'
3022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023   (eval $ac_try) 2>&5
3024   ac_status=$?
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); }; }; then
3027   break
3028 else
3029   echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3031
3032 fi
3033 rm -f conftest.$ac_objext conftest.$ac_ext
3034 done
3035 rm -f conftest*
3036 if test -n "$ac_declaration"; then
3037   echo '#ifdef __cplusplus' >>confdefs.h
3038   echo $ac_declaration      >>confdefs.h
3039   echo '#endif'             >>confdefs.h
3040 fi
3041
3042 ac_ext=c
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047
3048
3049
3050
3051
3052
3053 if test -n "$ac_tool_prefix"; then
3054   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3055 set dummy ${ac_tool_prefix}as; ac_word=$2
3056 echo "$as_me:$LINENO: checking for $ac_word" >&5
3057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3058 if test "${ac_cv_prog_AS+set}" = set; then
3059   echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061   if test -n "$AS"; then
3062   ac_cv_prog_AS="$AS" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067   IFS=$as_save_IFS
3068   test -z "$as_dir" && as_dir=.
3069   for ac_exec_ext in '' $ac_executable_extensions; do
3070   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3071     ac_cv_prog_AS="${ac_tool_prefix}as"
3072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073     break 2
3074   fi
3075 done
3076 done
3077
3078 fi
3079 fi
3080 AS=$ac_cv_prog_AS
3081 if test -n "$AS"; then
3082   echo "$as_me:$LINENO: result: $AS" >&5
3083 echo "${ECHO_T}$AS" >&6
3084 else
3085   echo "$as_me:$LINENO: result: no" >&5
3086 echo "${ECHO_T}no" >&6
3087 fi
3088
3089 fi
3090 if test -z "$ac_cv_prog_AS"; then
3091   ac_ct_AS=$AS
3092   # Extract the first word of "as", so it can be a program name with args.
3093 set dummy as; ac_word=$2
3094 echo "$as_me:$LINENO: checking for $ac_word" >&5
3095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3096 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3097   echo $ECHO_N "(cached) $ECHO_C" >&6
3098 else
3099   if test -n "$ac_ct_AS"; then
3100   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3101 else
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3104 do
3105   IFS=$as_save_IFS
3106   test -z "$as_dir" && as_dir=.
3107   for ac_exec_ext in '' $ac_executable_extensions; do
3108   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3109     ac_cv_prog_ac_ct_AS="as"
3110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3111     break 2
3112   fi
3113 done
3114 done
3115
3116 fi
3117 fi
3118 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3119 if test -n "$ac_ct_AS"; then
3120   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3121 echo "${ECHO_T}$ac_ct_AS" >&6
3122 else
3123   echo "$as_me:$LINENO: result: no" >&5
3124 echo "${ECHO_T}no" >&6
3125 fi
3126
3127   AS=$ac_ct_AS
3128 else
3129   AS="$ac_cv_prog_AS"
3130 fi
3131
3132 if test -n "$ac_tool_prefix"; then
3133   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3134 set dummy ${ac_tool_prefix}ar; ac_word=$2
3135 echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3137 if test "${ac_cv_prog_AR+set}" = set; then
3138   echo $ECHO_N "(cached) $ECHO_C" >&6
3139 else
3140   if test -n "$AR"; then
3141   ac_cv_prog_AR="$AR" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146   IFS=$as_save_IFS
3147   test -z "$as_dir" && as_dir=.
3148   for ac_exec_ext in '' $ac_executable_extensions; do
3149   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150     ac_cv_prog_AR="${ac_tool_prefix}ar"
3151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152     break 2
3153   fi
3154 done
3155 done
3156
3157 fi
3158 fi
3159 AR=$ac_cv_prog_AR
3160 if test -n "$AR"; then
3161   echo "$as_me:$LINENO: result: $AR" >&5
3162 echo "${ECHO_T}$AR" >&6
3163 else
3164   echo "$as_me:$LINENO: result: no" >&5
3165 echo "${ECHO_T}no" >&6
3166 fi
3167
3168 fi
3169 if test -z "$ac_cv_prog_AR"; then
3170   ac_ct_AR=$AR
3171   # Extract the first word of "ar", so it can be a program name with args.
3172 set dummy ar; ac_word=$2
3173 echo "$as_me:$LINENO: checking for $ac_word" >&5
3174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3175 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3176   echo $ECHO_N "(cached) $ECHO_C" >&6
3177 else
3178   if test -n "$ac_ct_AR"; then
3179   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3183 do
3184   IFS=$as_save_IFS
3185   test -z "$as_dir" && as_dir=.
3186   for ac_exec_ext in '' $ac_executable_extensions; do
3187   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188     ac_cv_prog_ac_ct_AR="ar"
3189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190     break 2
3191   fi
3192 done
3193 done
3194
3195 fi
3196 fi
3197 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3198 if test -n "$ac_ct_AR"; then
3199   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3200 echo "${ECHO_T}$ac_ct_AR" >&6
3201 else
3202   echo "$as_me:$LINENO: result: no" >&5
3203 echo "${ECHO_T}no" >&6
3204 fi
3205
3206   AR=$ac_ct_AR
3207 else
3208   AR="$ac_cv_prog_AR"
3209 fi
3210
3211 if test -n "$ac_tool_prefix"; then
3212   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3213 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3214 echo "$as_me:$LINENO: checking for $ac_word" >&5
3215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3216 if test "${ac_cv_prog_RANLIB+set}" = set; then
3217   echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219   if test -n "$RANLIB"; then
3220   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3221 else
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH
3224 do
3225   IFS=$as_save_IFS
3226   test -z "$as_dir" && as_dir=.
3227   for ac_exec_ext in '' $ac_executable_extensions; do
3228   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3231     break 2
3232   fi
3233 done
3234 done
3235
3236 fi
3237 fi
3238 RANLIB=$ac_cv_prog_RANLIB
3239 if test -n "$RANLIB"; then
3240   echo "$as_me:$LINENO: result: $RANLIB" >&5
3241 echo "${ECHO_T}$RANLIB" >&6
3242 else
3243   echo "$as_me:$LINENO: result: no" >&5
3244 echo "${ECHO_T}no" >&6
3245 fi
3246
3247 fi
3248 if test -z "$ac_cv_prog_RANLIB"; then
3249   ac_ct_RANLIB=$RANLIB
3250   # Extract the first word of "ranlib", so it can be a program name with args.
3251 set dummy ranlib; ac_word=$2
3252 echo "$as_me:$LINENO: checking for $ac_word" >&5
3253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3254 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3255   echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257   if test -n "$ac_ct_RANLIB"; then
3258   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3259 else
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3262 do
3263   IFS=$as_save_IFS
3264   test -z "$as_dir" && as_dir=.
3265   for ac_exec_ext in '' $ac_executable_extensions; do
3266   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267     ac_cv_prog_ac_ct_RANLIB="ranlib"
3268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269     break 2
3270   fi
3271 done
3272 done
3273
3274   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3275 fi
3276 fi
3277 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3278 if test -n "$ac_ct_RANLIB"; then
3279   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3280 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3281 else
3282   echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6
3284 fi
3285
3286   RANLIB=$ac_ct_RANLIB
3287 else
3288   RANLIB="$ac_cv_prog_RANLIB"
3289 fi
3290
3291
3292 # Find a good install program.  We prefer a C program (faster),
3293 # so one script is as good as another.  But avoid the broken or
3294 # incompatible versions:
3295 # SysV /etc/install, /usr/sbin/install
3296 # SunOS /usr/etc/install
3297 # IRIX /sbin/install
3298 # AIX /bin/install
3299 # AmigaOS /C/install, which installs bootblocks on floppy discs
3300 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3301 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3302 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3303 # ./install, which can be erroneously created by make from ./install.sh.
3304 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3305 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3306 if test -z "$INSTALL"; then
3307 if test "${ac_cv_path_install+set}" = set; then
3308   echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313   IFS=$as_save_IFS
3314   test -z "$as_dir" && as_dir=.
3315   # Account for people who put trailing slashes in PATH elements.
3316 case $as_dir/ in
3317   ./ | .// | /cC/* | \
3318   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3319   /usr/ucb/* ) ;;
3320   *)
3321     # OSF1 and SCO ODT 3.0 have their own names for install.
3322     # Don't use installbsd from OSF since it installs stuff as root
3323     # by default.
3324     for ac_prog in ginstall scoinst install; do
3325       for ac_exec_ext in '' $ac_executable_extensions; do
3326         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3327           if test $ac_prog = install &&
3328             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3329             # AIX install.  It has an incompatible calling convention.
3330             :
3331           elif test $ac_prog = install &&
3332             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3333             # program-specific install script used by HP pwplus--don't use.
3334             :
3335           else
3336             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3337             break 3
3338           fi
3339         fi
3340       done
3341     done
3342     ;;
3343 esac
3344 done
3345
3346
3347 fi
3348   if test "${ac_cv_path_install+set}" = set; then
3349     INSTALL=$ac_cv_path_install
3350   else
3351     # As a last resort, use the slow shell script.  We don't cache a
3352     # path for INSTALL within a source directory, because that will
3353     # break other packages using the cache if that directory is
3354     # removed, or if the path is relative.
3355     INSTALL=$ac_install_sh
3356   fi
3357 fi
3358 echo "$as_me:$LINENO: result: $INSTALL" >&5
3359 echo "${ECHO_T}$INSTALL" >&6
3360
3361 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3362 # It thinks the first close brace ends the variable substitution.
3363 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3364
3365 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3366
3367 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3368
3369
3370 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3371 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3372     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3373 if test "${enable_maintainer_mode+set}" = set; then
3374   enableval="$enable_maintainer_mode"
3375   USE_MAINTAINER_MODE=$enableval
3376 else
3377   USE_MAINTAINER_MODE=no
3378 fi;
3379   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3380 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3381
3382
3383 if test $USE_MAINTAINER_MODE = yes; then
3384   MAINTAINER_MODE_TRUE=
3385   MAINTAINER_MODE_FALSE='#'
3386 else
3387   MAINTAINER_MODE_TRUE='#'
3388   MAINTAINER_MODE_FALSE=
3389 fi
3390   MAINT=$MAINTAINER_MODE_TRUE
3391
3392
3393
3394 . ${srcdir}/configure.host
3395
3396 case ${gc_basedir} in
3397 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
3398 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
3399 esac
3400
3401 gc_cflags="${gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
3402 case "${host}" in
3403   *-*-cygwin32*)
3404     gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
3405     ;;
3406 esac
3407
3408
3409 GC_CFLAGS=${gc_cflags}
3410
3411
3412 # Check whether --enable-shared or --disable-shared was given.
3413 if test "${enable_shared+set}" = set; then
3414   enableval="$enable_shared"
3415   p=${PACKAGE-default}
3416 case $enableval in
3417 yes) enable_shared=yes ;;
3418 no) enable_shared=no ;;
3419 *)
3420   enable_shared=no
3421   # Look at the argument we got.  We use all the common list separators.
3422   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3423   for pkg in $enableval; do
3424     if test "X$pkg" = "X$p"; then
3425       enable_shared=yes
3426     fi
3427   done
3428   IFS="$ac_save_ifs"
3429   ;;
3430 esac
3431 else
3432   enable_shared=yes
3433 fi;
3434 # Check whether --enable-static or --disable-static was given.
3435 if test "${enable_static+set}" = set; then
3436   enableval="$enable_static"
3437   p=${PACKAGE-default}
3438 case $enableval in
3439 yes) enable_static=yes ;;
3440 no) enable_static=no ;;
3441 *)
3442   enable_static=no
3443   # Look at the argument we got.  We use all the common list separators.
3444   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3445   for pkg in $enableval; do
3446     if test "X$pkg" = "X$p"; then
3447       enable_static=yes
3448     fi
3449   done
3450   IFS="$ac_save_ifs"
3451   ;;
3452 esac
3453 else
3454   enable_static=yes
3455 fi;
3456 # Check whether --enable-fast-install or --disable-fast-install was given.
3457 if test "${enable_fast_install+set}" = set; then
3458   enableval="$enable_fast_install"
3459   p=${PACKAGE-default}
3460 case $enableval in
3461 yes) enable_fast_install=yes ;;
3462 no) enable_fast_install=no ;;
3463 *)
3464   enable_fast_install=no
3465   # Look at the argument we got.  We use all the common list separators.
3466   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3467   for pkg in $enableval; do
3468     if test "X$pkg" = "X$p"; then
3469       enable_fast_install=yes
3470     fi
3471   done
3472   IFS="$ac_save_ifs"
3473   ;;
3474 esac
3475 else
3476   enable_fast_install=yes
3477 fi;
3478
3479 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3480 if test "${with_gnu_ld+set}" = set; then
3481   withval="$with_gnu_ld"
3482   test "$withval" = no || with_gnu_ld=yes
3483 else
3484   with_gnu_ld=no
3485 fi;
3486 ac_prog=ld
3487 if test "$GCC" = yes; then
3488   # Check if gcc -print-prog-name=ld gives a path.
3489   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3490 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3491   case $host in
3492   *-*-mingw*)
3493     # gcc leaves a trailing carriage return which upsets mingw
3494     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3495   *)
3496     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3497   esac
3498   case $ac_prog in
3499     # Accept absolute paths.
3500     [\\/]* | [A-Za-z]:[\\/]*)
3501       re_direlt='/[^/][^/]*/\.\./'
3502       # Canonicalize the path of ld
3503       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3504       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3505         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3506       done
3507       test -z "$LD" && LD="$ac_prog"
3508       ;;
3509   "")
3510     # If it fails, then pretend we aren't using GCC.
3511     ac_prog=ld
3512     ;;
3513   *)
3514     # If it is relative, then search for the first ld in PATH.
3515     with_gnu_ld=unknown
3516     ;;
3517   esac
3518 elif test "$with_gnu_ld" = yes; then
3519   echo "$as_me:$LINENO: checking for GNU ld" >&5
3520 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3521 else
3522   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3523 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3524 fi
3525 if test "${lt_cv_path_LD+set}" = set; then
3526   echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528   if test -z "$LD"; then
3529   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3530   for ac_dir in $PATH; do
3531     test -z "$ac_dir" && ac_dir=.
3532     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3533       lt_cv_path_LD="$ac_dir/$ac_prog"
3534       # Check to see if the program is GNU ld.  I'd rather use --version,
3535       # but apparently some GNU ld's only accept -v.
3536       # Break only if it was the GNU/non-GNU ld that we prefer.
3537       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3538         test "$with_gnu_ld" != no && break
3539       else
3540         test "$with_gnu_ld" != yes && break
3541       fi
3542     fi
3543   done
3544   IFS="$ac_save_ifs"
3545 else
3546   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3547 fi
3548 fi
3549
3550 LD="$lt_cv_path_LD"
3551 if test -n "$LD"; then
3552   echo "$as_me:$LINENO: result: $LD" >&5
3553 echo "${ECHO_T}$LD" >&6
3554 else
3555   echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6
3557 fi
3558 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3559 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3560    { (exit 1); exit 1; }; }
3561 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3562 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3563 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3564   echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3567 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3568   lt_cv_prog_gnu_ld=yes
3569 else
3570   lt_cv_prog_gnu_ld=no
3571 fi
3572 fi
3573 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3574 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3575 with_gnu_ld=$lt_cv_prog_gnu_ld
3576
3577
3578 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3579 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3580 if test "${lt_cv_ld_reload_flag+set}" = set; then
3581   echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583   lt_cv_ld_reload_flag='-r'
3584 fi
3585 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3586 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3587 reload_flag=$lt_cv_ld_reload_flag
3588 test -n "$reload_flag" && reload_flag=" $reload_flag"
3589
3590 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3591 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3592 if test "${lt_cv_path_NM+set}" = set; then
3593   echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595   if test -n "$NM"; then
3596   # Let the user override the test.
3597   lt_cv_path_NM="$NM"
3598 else
3599   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3600   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3601     test -z "$ac_dir" && ac_dir=.
3602     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3603     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3604       # Check to see if the nm accepts a BSD-compat flag.
3605       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3606       #   nm: unknown option "B" ignored
3607       # Tru64's nm complains that /dev/null is an invalid object file
3608       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3609         lt_cv_path_NM="$tmp_nm -B"
3610         break
3611       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3612         lt_cv_path_NM="$tmp_nm -p"
3613         break
3614       else
3615         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3616         continue # so that we can try to find one that supports BSD flags
3617       fi
3618     fi
3619   done
3620   IFS="$ac_save_ifs"
3621   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3622 fi
3623 fi
3624
3625 NM="$lt_cv_path_NM"
3626 echo "$as_me:$LINENO: result: $NM" >&5
3627 echo "${ECHO_T}$NM" >&6
3628
3629 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3630 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3631 LN_S=$as_ln_s
3632 if test "$LN_S" = "ln -s"; then
3633   echo "$as_me:$LINENO: result: yes" >&5
3634 echo "${ECHO_T}yes" >&6
3635 else
3636   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3637 echo "${ECHO_T}no, using $LN_S" >&6
3638 fi
3639
3640 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3641 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3642 if test "${lt_cv_deplibs_check_method+set}" = set; then
3643   echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645   lt_cv_file_magic_cmd='$MAGIC_CMD'
3646 lt_cv_file_magic_test_file=
3647 lt_cv_deplibs_check_method='unknown'
3648 # Need to set the preceding variable on all platforms that support
3649 # interlibrary dependencies.
3650 # 'none' -- dependencies not supported.
3651 # `unknown' -- same as none, but documents that we really don't know.
3652 # 'pass_all' -- all dependencies passed with no checks.
3653 # 'test_compile' -- check by making test program.
3654 # 'file_magic [regex]' -- check by looking for files in library path
3655 # which responds to the $file_magic_cmd with a given egrep regex.
3656 # If you have `file' or equivalent on your system and you're not sure
3657 # whether `pass_all' will *always* work, you probably want this one.
3658
3659 case $host_os in
3660 aix*)
3661   lt_cv_deplibs_check_method=pass_all
3662   ;;
3663
3664 beos*)
3665   lt_cv_deplibs_check_method=pass_all
3666   ;;
3667
3668 bsdi4*)
3669   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3670   lt_cv_file_magic_cmd='/usr/bin/file -L'
3671   lt_cv_file_magic_test_file=/shlib/libc.so
3672   ;;
3673
3674 cygwin* | mingw* |pw32*)
3675   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3676   lt_cv_file_magic_cmd='$OBJDUMP -f'
3677   ;;
3678
3679 darwin* | rhapsody*)
3680   # this will be overwritten by pass_all, but leave it in just in case
3681   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3682   lt_cv_file_magic_cmd='/usr/bin/file -L'
3683   case "$host_os" in
3684   rhapsody* | darwin1.012)
3685     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3686     ;;
3687   *) # Darwin 1.3 on
3688     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3689     ;;
3690   esac
3691   lt_cv_deplibs_check_method=pass_all
3692   ;;
3693
3694 freebsd* )
3695   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3696     case $host_cpu in
3697     i*86 )
3698       # Not sure whether the presence of OpenBSD here was a mistake.
3699       # Let's accept both of them until this is cleared up.
3700       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3701       lt_cv_file_magic_cmd=/usr/bin/file
3702       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3703       ;;
3704     esac
3705   else
3706     lt_cv_deplibs_check_method=pass_all
3707   fi
3708   ;;
3709
3710 gnu*)
3711   lt_cv_deplibs_check_method=pass_all
3712   ;;
3713
3714 hpux10.20*|hpux11*)
3715   case $host_cpu in
3716   hppa*)
3717     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3718     lt_cv_file_magic_cmd=/usr/bin/file
3719     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3720     ;;
3721   ia64*)
3722     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3723     lt_cv_file_magic_cmd=/usr/bin/file
3724     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3725     ;;
3726   esac
3727   ;;
3728
3729 irix5* | irix6*)
3730   case $host_os in
3731   irix5*)
3732     # this will be overridden with pass_all, but let us keep it just in case
3733     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3734     ;;
3735   *)
3736     case $LD in
3737     *-32|*"-32 ") libmagic=32-bit;;
3738     *-n32|*"-n32 ") libmagic=N32;;
3739     *-64|*"-64 ") libmagic=64-bit;;
3740     *) libmagic=never-match;;
3741     esac
3742     # this will be overridden with pass_all, but let us keep it just in case
3743     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3744     ;;
3745   esac
3746   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3747   lt_cv_deplibs_check_method=pass_all
3748   ;;
3749
3750 # This must be Linux ELF.
3751 linux-gnu*)
3752   case $host_cpu in
3753   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3754     lt_cv_deplibs_check_method=pass_all ;;
3755   *)
3756     # glibc up to 2.1.1 does not perform some relocations on ARM
3757     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3758   esac
3759   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3760   ;;
3761
3762 netbsd*)
3763   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3764     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3765   else
3766     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3767   fi
3768   ;;
3769
3770 newsos6)
3771   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3772   lt_cv_file_magic_cmd=/usr/bin/file
3773   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3774   ;;
3775
3776 osf3* | osf4* | osf5*)
3777   # this will be overridden with pass_all, but let us keep it just in case
3778   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3779   lt_cv_file_magic_test_file=/shlib/libc.so
3780   lt_cv_deplibs_check_method=pass_all
3781   ;;
3782
3783 sco3.2v5*)
3784   lt_cv_deplibs_check_method=pass_all
3785   ;;
3786
3787 solaris*)
3788   lt_cv_deplibs_check_method=pass_all
3789   lt_cv_file_magic_test_file=/lib/libc.so
3790   ;;
3791
3792 sysv5uw[78]* | sysv4*uw2*)
3793   lt_cv_deplibs_check_method=pass_all
3794   ;;
3795
3796 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3797   case $host_vendor in
3798   ncr)
3799     lt_cv_deplibs_check_method=pass_all
3800     ;;
3801   motorola)
3802     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]'
3803     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3804     ;;
3805   esac
3806   ;;
3807 esac
3808
3809 fi
3810 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3811 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3812 file_magic_cmd=$lt_cv_file_magic_cmd
3813 deplibs_check_method=$lt_cv_deplibs_check_method
3814
3815
3816
3817
3818
3819 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3820
3821 # Only perform the check for file, if the check method requires it
3822 case $deplibs_check_method in
3823 file_magic*)
3824   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3825     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3826 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3827 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3828   echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830   case $MAGIC_CMD in
3831   /*)
3832   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3833   ;;
3834   ?:/*)
3835   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3836   ;;
3837   *)
3838   ac_save_MAGIC_CMD="$MAGIC_CMD"
3839   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3840   ac_dummy="/usr/bin:$PATH"
3841   for ac_dir in $ac_dummy; do
3842     test -z "$ac_dir" && ac_dir=.
3843     if test -f $ac_dir/${ac_tool_prefix}file; then
3844       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3845       if test -n "$file_magic_test_file"; then
3846         case $deplibs_check_method in
3847         "file_magic "*)
3848           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3849           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3850           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3851             egrep "$file_magic_regex" > /dev/null; then
3852             :
3853           else
3854             cat <<EOF 1>&2
3855
3856 *** Warning: the command libtool uses to detect shared libraries,
3857 *** $file_magic_cmd, produces output that libtool cannot recognize.
3858 *** The result is that libtool may fail to recognize shared libraries
3859 *** as such.  This will affect the creation of libtool libraries that
3860 *** depend on shared libraries, but programs linked with such libtool
3861 *** libraries will work regardless of this problem.  Nevertheless, you
3862 *** may want to report the problem to your system manager and/or to
3863 *** bug-libtool@gnu.org
3864
3865 EOF
3866           fi ;;
3867         esac
3868       fi
3869       break
3870     fi
3871   done
3872   IFS="$ac_save_ifs"
3873   MAGIC_CMD="$ac_save_MAGIC_CMD"
3874   ;;
3875 esac
3876 fi
3877
3878 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3879 if test -n "$MAGIC_CMD"; then
3880   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3881 echo "${ECHO_T}$MAGIC_CMD" >&6
3882 else
3883   echo "$as_me:$LINENO: result: no" >&5
3884 echo "${ECHO_T}no" >&6
3885 fi
3886
3887 if test -z "$lt_cv_path_MAGIC_CMD"; then
3888   if test -n "$ac_tool_prefix"; then
3889     echo "$as_me:$LINENO: checking for file" >&5
3890 echo $ECHO_N "checking for file... $ECHO_C" >&6
3891 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3892   echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894   case $MAGIC_CMD in
3895   /*)
3896   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3897   ;;
3898   ?:/*)
3899   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3900   ;;
3901   *)
3902   ac_save_MAGIC_CMD="$MAGIC_CMD"
3903   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3904   ac_dummy="/usr/bin:$PATH"
3905   for ac_dir in $ac_dummy; do
3906     test -z "$ac_dir" && ac_dir=.
3907     if test -f $ac_dir/file; then
3908       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3909       if test -n "$file_magic_test_file"; then
3910         case $deplibs_check_method in
3911         "file_magic "*)
3912           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3913           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3914           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3915             egrep "$file_magic_regex" > /dev/null; then
3916             :
3917           else
3918             cat <<EOF 1>&2
3919
3920 *** Warning: the command libtool uses to detect shared libraries,
3921 *** $file_magic_cmd, produces output that libtool cannot recognize.
3922 *** The result is that libtool may fail to recognize shared libraries
3923 *** as such.  This will affect the creation of libtool libraries that
3924 *** depend on shared libraries, but programs linked with such libtool
3925 *** libraries will work regardless of this problem.  Nevertheless, you
3926 *** may want to report the problem to your system manager and/or to
3927 *** bug-libtool@gnu.org
3928
3929 EOF
3930           fi ;;
3931         esac
3932       fi
3933       break
3934     fi
3935   done
3936   IFS="$ac_save_ifs"
3937   MAGIC_CMD="$ac_save_MAGIC_CMD"
3938   ;;
3939 esac
3940 fi
3941
3942 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3943 if test -n "$MAGIC_CMD"; then
3944   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3945 echo "${ECHO_T}$MAGIC_CMD" >&6
3946 else
3947   echo "$as_me:$LINENO: result: no" >&5
3948 echo "${ECHO_T}no" >&6
3949 fi
3950
3951   else
3952     MAGIC_CMD=:
3953   fi
3954 fi
3955
3956   fi
3957   ;;
3958 esac
3959
3960 if test -n "$ac_tool_prefix"; then
3961   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3962 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_prog_RANLIB+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   if test -n "$RANLIB"; then
3969   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3973 do
3974   IFS=$as_save_IFS
3975   test -z "$as_dir" && as_dir=.
3976   for ac_exec_ext in '' $ac_executable_extensions; do
3977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980     break 2
3981   fi
3982 done
3983 done
3984
3985 fi
3986 fi
3987 RANLIB=$ac_cv_prog_RANLIB
3988 if test -n "$RANLIB"; then
3989   echo "$as_me:$LINENO: result: $RANLIB" >&5
3990 echo "${ECHO_T}$RANLIB" >&6
3991 else
3992   echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3994 fi
3995
3996 fi
3997 if test -z "$ac_cv_prog_RANLIB"; then
3998   ac_ct_RANLIB=$RANLIB
3999   # Extract the first word of "ranlib", so it can be a program name with args.
4000 set dummy ranlib; ac_word=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4004   echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006   if test -n "$ac_ct_RANLIB"; then
4007   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4011 do
4012   IFS=$as_save_IFS
4013   test -z "$as_dir" && as_dir=.
4014   for ac_exec_ext in '' $ac_executable_extensions; do
4015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016     ac_cv_prog_ac_ct_RANLIB="ranlib"
4017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018     break 2
4019   fi
4020 done
4021 done
4022
4023   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4024 fi
4025 fi
4026 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4027 if test -n "$ac_ct_RANLIB"; then
4028   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4029 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4030 else
4031   echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6
4033 fi
4034
4035   RANLIB=$ac_ct_RANLIB
4036 else
4037   RANLIB="$ac_cv_prog_RANLIB"
4038 fi
4039
4040 if test -n "$ac_tool_prefix"; then
4041   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4042 set dummy ${ac_tool_prefix}strip; ac_word=$2
4043 echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_prog_STRIP+set}" = set; then
4046   echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048   if test -n "$STRIP"; then
4049   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4050 else
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH
4053 do
4054   IFS=$as_save_IFS
4055   test -z "$as_dir" && as_dir=.
4056   for ac_exec_ext in '' $ac_executable_extensions; do
4057   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4060     break 2
4061   fi
4062 done
4063 done
4064
4065 fi
4066 fi
4067 STRIP=$ac_cv_prog_STRIP
4068 if test -n "$STRIP"; then
4069   echo "$as_me:$LINENO: result: $STRIP" >&5
4070 echo "${ECHO_T}$STRIP" >&6
4071 else
4072   echo "$as_me:$LINENO: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4074 fi
4075
4076 fi
4077 if test -z "$ac_cv_prog_STRIP"; then
4078   ac_ct_STRIP=$STRIP
4079   # Extract the first word of "strip", so it can be a program name with args.
4080 set dummy strip; ac_word=$2
4081 echo "$as_me:$LINENO: checking for $ac_word" >&5
4082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4084   echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086   if test -n "$ac_ct_STRIP"; then
4087   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4088 else
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4091 do
4092   IFS=$as_save_IFS
4093   test -z "$as_dir" && as_dir=.
4094   for ac_exec_ext in '' $ac_executable_extensions; do
4095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096     ac_cv_prog_ac_ct_STRIP="strip"
4097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098     break 2
4099   fi
4100 done
4101 done
4102
4103   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4104 fi
4105 fi
4106 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4107 if test -n "$ac_ct_STRIP"; then
4108   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4109 echo "${ECHO_T}$ac_ct_STRIP" >&6
4110 else
4111   echo "$as_me:$LINENO: result: no" >&5
4112 echo "${ECHO_T}no" >&6
4113 fi
4114
4115   STRIP=$ac_ct_STRIP
4116 else
4117   STRIP="$ac_cv_prog_STRIP"
4118 fi
4119
4120
4121 # Check for any special flags to pass to ltconfig.
4122 libtool_flags="--cache-file=$cache_file"
4123 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4124 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4125 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4126 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4127 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4128
4129
4130 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4131 if test "${enable_libtool_lock+set}" = set; then
4132   enableval="$enable_libtool_lock"
4133
4134 fi;
4135 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4136 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4137
4138
4139 # Check whether --with-pic or --without-pic was given.
4140 if test "${with_pic+set}" = set; then
4141   withval="$with_pic"
4142   pic_mode="$withval"
4143 else
4144   pic_mode=default
4145 fi;
4146 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4147 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4148
4149 # Some flags need to be propagated to the compiler or linker for good
4150 # libtool support.
4151 case $host in
4152 *-*-irix6*)
4153   # Find out which ABI we are using.
4154   echo '#line 4154 "configure"' > conftest.$ac_ext
4155   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4156   (eval $ac_compile) 2>&5
4157   ac_status=$?
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); }; then
4160    if test "$lt_cv_prog_gnu_ld" = yes; then
4161     case `/usr/bin/file conftest.$ac_objext` in
4162     *32-bit*)
4163       LD="${LD-ld} -melf32bsmip"
4164       ;;
4165     *N32*)
4166       LD="${LD-ld} -melf32bmipn32"
4167       ;;
4168     *64-bit*)
4169       LD="${LD-ld} -melf64bmip"
4170       ;;
4171     esac
4172    else
4173     case `/usr/bin/file conftest.$ac_objext` in
4174     *32-bit*)
4175       LD="${LD-ld} -32"
4176       ;;
4177     *N32*)
4178       LD="${LD-ld} -n32"
4179       ;;
4180     *64-bit*)
4181       LD="${LD-ld} -64"
4182       ;;
4183     esac
4184    fi
4185   fi
4186   rm -rf conftest*
4187   ;;
4188
4189 ia64-*-hpux*)
4190   # Find out which ABI we are using.
4191   echo 'int i;' > conftest.$ac_ext
4192   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4193   (eval $ac_compile) 2>&5
4194   ac_status=$?
4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); }; then
4197     case "`/usr/bin/file conftest.o`" in
4198     *ELF-32*)
4199       HPUX_IA64_MODE="32"
4200       ;;
4201     *ELF-64*)
4202       HPUX_IA64_MODE="64"
4203       ;;
4204     esac
4205   fi
4206   rm -rf conftest*
4207   ;;
4208
4209 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4210   # Find out which ABI we are using.
4211   echo 'int i;' > conftest.$ac_ext
4212   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4213   (eval $ac_compile) 2>&5
4214   ac_status=$?
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); }; then
4217     case "`/usr/bin/file conftest.o`" in
4218     *32-bit*)
4219       case $host in
4220         x86_64-*linux*)
4221           LD="${LD-ld} -m elf_i386"
4222           ;;
4223         ppc64-*linux*|powerpc64-*linux*)
4224           LD="${LD-ld} -m elf32ppclinux"
4225           ;;
4226         s390x-*linux*)
4227           LD="${LD-ld} -m elf_s390"
4228           ;;
4229         sparc64-*linux*)
4230           LD="${LD-ld} -m elf32_sparc"
4231           ;;
4232       esac
4233       ;;
4234     *64-bit*)
4235       case $host in
4236         x86_64-*linux*)
4237           LD="${LD-ld} -m elf_x86_64"
4238           ;;
4239         ppc*-*linux*|powerpc*-*linux*)
4240           LD="${LD-ld} -m elf64ppc"
4241           ;;
4242         s390*-*linux*)
4243           LD="${LD-ld} -m elf64_s390"
4244           ;;
4245         sparc*-*linux*)
4246           LD="${LD-ld} -m elf64_sparc"
4247           ;;
4248       esac
4249       ;;
4250     esac
4251   fi
4252   rm -rf conftest*
4253   ;;
4254
4255 *-*-sco3.2v5*)
4256   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4257   SAVE_CFLAGS="$CFLAGS"
4258   CFLAGS="$CFLAGS -belf"
4259   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4260 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4261 if test "${lt_cv_cc_needs_belf+set}" = set; then
4262   echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264
4265
4266      ac_ext=c
4267 ac_cpp='$CPP $CPPFLAGS'
4268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4271
4272      if test x$gcc_no_link = xyes; then
4273   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4274 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4275    { (exit 1); exit 1; }; }
4276 fi
4277 cat >conftest.$ac_ext <<_ACEOF
4278 #line $LINENO "configure"
4279 /* confdefs.h.  */
4280 _ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h.  */
4284
4285 int
4286 main ()
4287 {
4288
4289   ;
4290   return 0;
4291 }
4292 _ACEOF
4293 rm -f conftest.$ac_objext conftest$ac_exeext
4294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4295   (eval $ac_link) 2>&5
4296   ac_status=$?
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); } &&
4299          { ac_try='test -s conftest$ac_exeext'
4300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301   (eval $ac_try) 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); }; }; then
4305   lt_cv_cc_needs_belf=yes
4306 else
4307   echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4309
4310 lt_cv_cc_needs_belf=no
4311 fi
4312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4313      ac_ext=c
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318
4319 fi
4320 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4321 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4322   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4323     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4324     CFLAGS="$SAVE_CFLAGS"
4325   fi
4326   ;;
4327
4328
4329 esac
4330
4331
4332 # Save cache, so that ltconfig can load it
4333 cat >confcache <<\_ACEOF
4334 # This file is a shell script that caches the results of configure
4335 # tests run on this system so they can be shared between configure
4336 # scripts and configure runs, see configure's option --config-cache.
4337 # It is not useful on other systems.  If it contains results you don't
4338 # want to keep, you may remove or edit it.
4339 #
4340 # config.status only pays attention to the cache file if you give it
4341 # the --recheck option to rerun configure.
4342 #
4343 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4344 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4345 # following values.
4346
4347 _ACEOF
4348
4349 # The following way of writing the cache mishandles newlines in values,
4350 # but we know of no workaround that is simple, portable, and efficient.
4351 # So, don't put newlines in cache variables' values.
4352 # Ultrix sh set writes to stderr and can't be redirected directly,
4353 # and sets the high bit in the cache file unless we assign to the vars.
4354 {
4355   (set) 2>&1 |
4356     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4357     *ac_space=\ *)
4358       # `set' does not quote correctly, so add quotes (double-quote
4359       # substitution turns \\\\ into \\, and sed turns \\ into \).
4360       sed -n \
4361         "s/'/'\\\\''/g;
4362           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4363       ;;
4364     *)
4365       # `set' quotes correctly as required by POSIX, so do not add quotes.
4366       sed -n \
4367         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4368       ;;
4369     esac;
4370 } |
4371   sed '
4372      t clear
4373      : clear
4374      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4375      t end
4376      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4377      : end' >>confcache
4378 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4379   if test -w $cache_file; then
4380     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4381     cat confcache >$cache_file
4382   else
4383     echo "not updating unwritable cache $cache_file"
4384   fi
4385 fi
4386 rm -f confcache
4387
4388 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4389 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4390 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4391 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4392 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4393 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4394 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4395 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4396 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4397 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4398 echo "$as_me: error: libtool configure failed" >&2;}
4399    { (exit 1); exit 1; }; }
4400
4401 # Reload cache, that may have been modified by ltconfig
4402 if test -r "$cache_file"; then
4403   # Some versions of bash will fail to source /dev/null (special
4404   # files actually), so we avoid doing that.
4405   if test -f "$cache_file"; then
4406     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4407 echo "$as_me: loading cache $cache_file" >&6;}
4408     case $cache_file in
4409       [\\/]* | ?:[\\/]* ) . $cache_file;;
4410       *)                      . ./$cache_file;;
4411     esac
4412   fi
4413 else
4414   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4415 echo "$as_me: creating cache $cache_file" >&6;}
4416   >$cache_file
4417 fi
4418
4419
4420 # This can be used to rebuild libtool when needed
4421 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4422
4423 # Always use our own libtool.
4424 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4425
4426 # Redirect the config.log output again, so that the ltconfig log is not
4427 # clobbered by the next message.
4428 exec 5>>./config.log
4429
4430 ac_ext=cc
4431 ac_cpp='$CXXCPP $CPPFLAGS'
4432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4435 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4436 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4437 if test -z "$CXXCPP"; then
4438   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4439   echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441       # Double quotes because CXXCPP needs to be expanded
4442     for CXXCPP in "$CXX -E" "/lib/cpp"
4443     do
4444       ac_preproc_ok=false
4445 for ac_cxx_preproc_warn_flag in '' yes
4446 do
4447   # Use a header file that comes with gcc, so configuring glibc
4448   # with a fresh cross-compiler works.
4449   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4450   # <limits.h> exists even on freestanding compilers.
4451   # On the NeXT, cc -E runs the code through the compiler's parser,
4452   # not just through cpp. "Syntax error" is here to catch this case.
4453   cat >conftest.$ac_ext <<_ACEOF
4454 #line $LINENO "configure"
4455 /* confdefs.h.  */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h.  */
4460 #ifdef __STDC__
4461 # include <limits.h>
4462 #else
4463 # include <assert.h>
4464 #endif
4465                      Syntax error
4466 _ACEOF
4467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4468   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4469   ac_status=$?
4470   grep -v '^ *+' conftest.er1 >conftest.err
4471   rm -f conftest.er1
4472   cat conftest.err >&5
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); } >/dev/null; then
4475   if test -s conftest.err; then
4476     ac_cpp_err=$ac_cxx_preproc_warn_flag
4477   else
4478     ac_cpp_err=
4479   fi
4480 else
4481   ac_cpp_err=yes
4482 fi
4483 if test -z "$ac_cpp_err"; then
4484   :
4485 else
4486   echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489   # Broken: fails on valid input.
4490 continue
4491 fi
4492 rm -f conftest.err conftest.$ac_ext
4493
4494   # OK, works on sane cases.  Now check whether non-existent headers
4495   # can be detected and how.
4496   cat >conftest.$ac_ext <<_ACEOF
4497 #line $LINENO "configure"
4498 /* confdefs.h.  */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h.  */
4503 #include <ac_nonexistent.h>
4504 _ACEOF
4505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4506   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4507   ac_status=$?
4508   grep -v '^ *+' conftest.er1 >conftest.err
4509   rm -f conftest.er1
4510   cat conftest.err >&5
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); } >/dev/null; then
4513   if test -s conftest.err; then
4514     ac_cpp_err=$ac_cxx_preproc_warn_flag
4515   else
4516     ac_cpp_err=
4517   fi
4518 else
4519   ac_cpp_err=yes
4520 fi
4521 if test -z "$ac_cpp_err"; then
4522   # Broken: success on invalid input.
4523 continue
4524 else
4525   echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4527
4528   # Passes both tests.
4529 ac_preproc_ok=:
4530 break
4531 fi
4532 rm -f conftest.err conftest.$ac_ext
4533
4534 done
4535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4536 rm -f conftest.err conftest.$ac_ext
4537 if $ac_preproc_ok; then
4538   break
4539 fi
4540
4541     done
4542     ac_cv_prog_CXXCPP=$CXXCPP
4543
4544 fi
4545   CXXCPP=$ac_cv_prog_CXXCPP
4546 else
4547   ac_cv_prog_CXXCPP=$CXXCPP
4548 fi
4549 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4550 echo "${ECHO_T}$CXXCPP" >&6
4551 ac_preproc_ok=false
4552 for ac_cxx_preproc_warn_flag in '' yes
4553 do
4554   # Use a header file that comes with gcc, so configuring glibc
4555   # with a fresh cross-compiler works.
4556   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4557   # <limits.h> exists even on freestanding compilers.
4558   # On the NeXT, cc -E runs the code through the compiler's parser,
4559   # not just through cpp. "Syntax error" is here to catch this case.
4560   cat >conftest.$ac_ext <<_ACEOF
4561 #line $LINENO "configure"
4562 /* confdefs.h.  */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h.  */
4567 #ifdef __STDC__
4568 # include <limits.h>
4569 #else
4570 # include <assert.h>
4571 #endif
4572                      Syntax error
4573 _ACEOF
4574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4575   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4576   ac_status=$?
4577   grep -v '^ *+' conftest.er1 >conftest.err
4578   rm -f conftest.er1
4579   cat conftest.err >&5
4580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581   (exit $ac_status); } >/dev/null; then
4582   if test -s conftest.err; then
4583     ac_cpp_err=$ac_cxx_preproc_warn_flag
4584   else
4585     ac_cpp_err=
4586   fi
4587 else
4588   ac_cpp_err=yes
4589 fi
4590 if test -z "$ac_cpp_err"; then
4591   :
4592 else
4593   echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4595
4596   # Broken: fails on valid input.
4597 continue
4598 fi
4599 rm -f conftest.err conftest.$ac_ext
4600
4601   # OK, works on sane cases.  Now check whether non-existent headers
4602   # can be detected and how.
4603   cat >conftest.$ac_ext <<_ACEOF
4604 #line $LINENO "configure"
4605 /* confdefs.h.  */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h.  */
4610 #include <ac_nonexistent.h>
4611 _ACEOF
4612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4613   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4614   ac_status=$?
4615   grep -v '^ *+' conftest.er1 >conftest.err
4616   rm -f conftest.er1
4617   cat conftest.err >&5
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); } >/dev/null; then
4620   if test -s conftest.err; then
4621     ac_cpp_err=$ac_cxx_preproc_warn_flag
4622   else
4623     ac_cpp_err=
4624   fi
4625 else
4626   ac_cpp_err=yes
4627 fi
4628 if test -z "$ac_cpp_err"; then
4629   # Broken: success on invalid input.
4630 continue
4631 else
4632   echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4634
4635   # Passes both tests.
4636 ac_preproc_ok=:
4637 break
4638 fi
4639 rm -f conftest.err conftest.$ac_ext
4640
4641 done
4642 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4643 rm -f conftest.err conftest.$ac_ext
4644 if $ac_preproc_ok; then
4645   :
4646 else
4647   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4648 See \`config.log' for more details." >&5
4649 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4650 See \`config.log' for more details." >&2;}
4651    { (exit 1); exit 1; }; }
4652 fi
4653
4654 ac_ext=c
4655 ac_cpp='$CPP $CPPFLAGS'
4656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659
4660
4661
4662 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4663 lt_save_CC="$CC"
4664 lt_save_CFLAGS="$CFLAGS"
4665 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4666 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4667 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4668 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4669 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4670 deplibs_check_method="$deplibs_check_method" \
4671 file_magic_cmd="$file_magic_cmd" \
4672 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4673 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4674 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4675 echo "$as_me: error: libtool tag configuration failed" >&2;}
4676    { (exit 1); exit 1; }; }
4677 CC="$lt_save_CC"
4678 CFLAGS="$lt_save_CFLAGS"
4679
4680 # Redirect the config.log output again, so that the ltconfig log is not
4681 # clobbered by the next message.
4682 exec 5>>./config.log
4683
4684
4685
4686
4687
4688
4689
4690
4691 # Check whether --with-target-subdir or --without-target-subdir was given.
4692 if test "${with_target_subdir+set}" = set; then
4693   withval="$with_target_subdir"
4694
4695 fi;
4696
4697 # Check whether --with-cross-host or --without-cross-host was given.
4698 if test "${with_cross_host+set}" = set; then
4699   withval="$with_cross_host"
4700
4701 fi;
4702
4703 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
4704 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
4705 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4706 if test -z "$THREADS"; then
4707    THREADS=no
4708 fi
4709 echo "$as_me:$LINENO: result: $THREADS" >&5
4710 echo "${ECHO_T}$THREADS" >&6
4711
4712 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
4713 if test "${enable_parallel_mark+set}" = set; then
4714   enableval="$enable_parallel_mark"
4715   case "$THREADS" in
4716       no | none | single)
4717         { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
4718 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
4719    { (exit 1); exit 1; }; }
4720         ;;
4721     esac
4722
4723 fi;
4724
4725 INCLUDES="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
4726 THREADLIBS=
4727 case "$THREADS" in
4728  no | none | single)
4729     THREADS=none
4730     ;;
4731  posix | pthreads)
4732     THREADS=posix
4733     THREADLIBS=-lpthread
4734     case "$host" in
4735      x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
4736         cat >>confdefs.h <<\_ACEOF
4737 #define GC_LINUX_THREADS 1
4738 _ACEOF
4739
4740         cat >>confdefs.h <<\_ACEOF
4741 #define _REENTRANT 1
4742 _ACEOF
4743
4744         if test "${enable_parallel_mark}" = yes; then
4745           cat >>confdefs.h <<\_ACEOF
4746 #define PARALLEL_MARK 1
4747 _ACEOF
4748
4749         fi
4750         cat >>confdefs.h <<\_ACEOF
4751 #define THREAD_LOCAL_ALLOC 1
4752 _ACEOF
4753
4754         ;;
4755      *-*-linux*)
4756         cat >>confdefs.h <<\_ACEOF
4757 #define GC_LINUX_THREADS 1
4758 _ACEOF
4759
4760         cat >>confdefs.h <<\_ACEOF
4761 #define _REENTRANT 1
4762 _ACEOF
4763
4764         ;;
4765      *-*-aix*)
4766         cat >>confdefs.h <<\_ACEOF
4767 #define GC_AIX_THREADS 1
4768 _ACEOF
4769
4770         cat >>confdefs.h <<\_ACEOF
4771 #define _REENTRANT 1
4772 _ACEOF
4773
4774         ;;
4775      *-*-hpux*)
4776         { echo "$as_me:$LINENO: WARNING: \"Only HP/UX 11 threads are supported.\"" >&5
4777 echo "$as_me: WARNING: \"Only HP/UX 11 threads are supported.\"" >&2;}
4778         cat >>confdefs.h <<\_ACEOF
4779 #define GC_HPUX_THREADS 1
4780 _ACEOF
4781
4782         cat >>confdefs.h <<\_ACEOF
4783 #define _POSIX_C_SOURCE 199506L
4784 _ACEOF
4785
4786         if test "${enable_parallel_mark}" = yes; then
4787           cat >>confdefs.h <<\_ACEOF
4788 #define PARALLEL_MARK 1
4789 _ACEOF
4790
4791         fi
4792         cat >>confdefs.h <<\_ACEOF
4793 #define THREAD_LOCAL_ALLOC 1
4794 _ACEOF
4795
4796         THREADLIBS="-lpthread -lrt"
4797         ;;
4798      *-*-freebsd*)
4799         { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
4800 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
4801         cat >>confdefs.h <<\_ACEOF
4802 #define GC_FREEBSD_THREADS 1
4803 _ACEOF
4804
4805         INCLUDES="$INCLUDES -pthread"
4806         THREADLIBS=-pthread
4807         ;;
4808      *-*-solaris*)
4809         cat >>confdefs.h <<\_ACEOF
4810 #define GC_SOLARIS_THREADS 1
4811 _ACEOF
4812
4813         cat >>confdefs.h <<\_ACEOF
4814 #define GC_SOLARIS_PTHREADS 1
4815 _ACEOF
4816
4817         ;;
4818      *-*-irix*)
4819         cat >>confdefs.h <<\_ACEOF
4820 #define GC_IRIX_THREADS 1
4821 _ACEOF
4822
4823         ;;
4824      *-*-cygwin*)
4825         cat >>confdefs.h <<\_ACEOF
4826 #define GC_WIN32_THREADS 1
4827 _ACEOF
4828
4829         ;;
4830      *-*-darwin*)
4831         cat >>confdefs.h <<\_ACEOF
4832 #define GC_DARWIN_THREADS 1
4833 _ACEOF
4834
4835         cat >>confdefs.h <<\_ACEOF
4836 #define THREAD_LOCAL_ALLOC 1
4837 _ACEOF
4838
4839         if test "${enable_parallel_mark}" = yes; then
4840           cat >>confdefs.h <<\_ACEOF
4841 #define PARALLEL_MARK 1
4842 _ACEOF
4843
4844         fi
4845         ;;
4846      *-*-osf*)
4847         cat >>confdefs.h <<\_ACEOF
4848 #define GC_OSF1_THREADS 1
4849 _ACEOF
4850
4851         if test "${enable_parallel_mark}" = yes; then
4852           cat >>confdefs.h <<\_ACEOF
4853 #define PARALLEL_MARK 1
4854 _ACEOF
4855
4856           cat >>confdefs.h <<\_ACEOF
4857 #define THREAD_LOCAL_ALLOC 1
4858 _ACEOF
4859
4860           # May want to enable it in other cases, too.
4861           # Measurements havent yet been done.
4862         fi
4863         INCLUDES="$INCLUDES -pthread"
4864         THREADLIBS="-lpthread -lrt"
4865         ;;
4866     esac
4867     ;;
4868  win32)
4869     cat >>confdefs.h <<\_ACEOF
4870 #define GC_WIN32_THREADS 1
4871 _ACEOF
4872
4873             ;;
4874  dgux386)
4875     THREADS=dgux386
4876 echo "$as_me:$LINENO: result: $THREADLIBS" >&5
4877 echo "${ECHO_T}$THREADLIBS" >&6
4878     # Use pthread GCC  switch
4879     THREADLIBS=-pthread
4880     if test "${enable_parallel_mark}" = yes; then
4881         cat >>confdefs.h <<\_ACEOF
4882 #define PARALLEL_MARK 1
4883 _ACEOF
4884
4885     fi
4886     cat >>confdefs.h <<\_ACEOF
4887 #define THREAD_LOCAL_ALLOC 1
4888 _ACEOF
4889
4890     cat >>confdefs.h <<\_ACEOF
4891 #define GC_DGUX386_THREADS 1
4892 _ACEOF
4893
4894     cat >>confdefs.h <<\_ACEOF
4895 #define DGUX_THREADS 1
4896 _ACEOF
4897
4898     # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
4899     INCLUDES="-pthread $INCLUDES"
4900     ;;
4901  aix)
4902     THREADS=posix
4903     THREADLIBS=-lpthread
4904     cat >>confdefs.h <<\_ACEOF
4905 #define GC_AIX_THREADS 1
4906 _ACEOF
4907
4908     cat >>confdefs.h <<\_ACEOF
4909 #define _REENTRANT 1
4910 _ACEOF
4911
4912     ;;
4913  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4914     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
4915 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
4916    { (exit 1); exit 1; }; }
4917     ;;
4918  *)
4919     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
4920 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
4921    { (exit 1); exit 1; }; }
4922     ;;
4923 esac
4924
4925
4926 case "$host" in
4927    powerpc-*-darwin*)
4928       powerpc_darwin=true
4929       ;;
4930 esac
4931
4932
4933 if test x$powerpc_darwin = xtrue; then
4934   POWERPC_DARWIN_TRUE=
4935   POWERPC_DARWIN_FALSE='#'
4936 else
4937   POWERPC_DARWIN_TRUE='#'
4938   POWERPC_DARWIN_FALSE=
4939 fi
4940
4941 # We never want libdl on darwin. It is a fake libdl that just ends up making
4942 # dyld calls anyway
4943 case "$host" in
4944   *-*-darwin*) ;;
4945   *)
4946     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4947 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4948 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4949   echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951   ac_check_lib_save_LIBS=$LIBS
4952 LIBS="-ldl  $LIBS"
4953 if test x$gcc_no_link = xyes; then
4954   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4955 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4956    { (exit 1); exit 1; }; }
4957 fi
4958 cat >conftest.$ac_ext <<_ACEOF
4959 #line $LINENO "configure"
4960 /* confdefs.h.  */
4961 _ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h.  */
4965
4966 /* Override any gcc2 internal prototype to avoid an error.  */
4967 #ifdef __cplusplus
4968 extern "C"
4969 #endif
4970 /* We use char because int might match the return type of a gcc2
4971    builtin and then its argument prototype would still apply.  */
4972 char dlopen ();
4973 int
4974 main ()
4975 {
4976 dlopen ();
4977   ;
4978   return 0;
4979 }
4980 _ACEOF
4981 rm -f conftest.$ac_objext conftest$ac_exeext
4982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4983   (eval $ac_link) 2>&5
4984   ac_status=$?
4985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986   (exit $ac_status); } &&
4987          { ac_try='test -s conftest$ac_exeext'
4988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989   (eval $ac_try) 2>&5
4990   ac_status=$?
4991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992   (exit $ac_status); }; }; then
4993   ac_cv_lib_dl_dlopen=yes
4994 else
4995   echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4997
4998 ac_cv_lib_dl_dlopen=no
4999 fi
5000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5001 LIBS=$ac_check_lib_save_LIBS
5002 fi
5003 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5004 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5005 if test $ac_cv_lib_dl_dlopen = yes; then
5006   EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
5007 fi
5008
5009     ;;
5010 esac
5011
5012
5013
5014 target_all=libgcjgc.la
5015
5016
5017
5018 TARGET_ECOS="no"
5019
5020 # Check whether --with-ecos or --without-ecos was given.
5021 if test "${with_ecos+set}" = set; then
5022   withval="$with_ecos"
5023   TARGET_ECOS="$with_ecos"
5024
5025 fi;
5026
5027 addobjs=
5028 addlibs=
5029 addincludes=
5030 addtests=
5031 CXXINCLUDES=
5032 case "$TARGET_ECOS" in
5033    no)
5034       ;;
5035    *)
5036       cat >>confdefs.h <<\_ACEOF
5037 #define ECOS 1
5038 _ACEOF
5039
5040       CXXINCLUDES="-I${TARGET_ECOS}/include"
5041       addobjs="$addobjs ecos.lo"
5042       ;;
5043 esac
5044
5045 if test "${enable_cplusplus}" = yes; then
5046       addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
5047       addtests="$addtests test_cpp"
5048 fi
5049
5050
5051
5052 if test "${enable_cplusplus}" = yes; then
5053   CPLUSPLUS_TRUE=
5054   CPLUSPLUS_FALSE='#'
5055 else
5056   CPLUSPLUS_TRUE='#'
5057   CPLUSPLUS_FALSE=
5058 fi
5059
5060
5061
5062
5063
5064
5065 # Configuration of shared libraries
5066 #
5067 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5068 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5069 # Check whether --enable-shared or --disable-shared was given.
5070 if test "${enable_shared+set}" = set; then
5071   enableval="$enable_shared"
5072   p=${PACKAGE-default}
5073 case $enableval in
5074 yes) enable_shared=yes ;;
5075 no) enable_shared=no ;;
5076 *)
5077   enable_shared=no
5078   # Look at the argument we got.  We use all the common list separators.
5079   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5080   for pkg in $enableval; do
5081     if test "X$pkg" = "X$p"; then
5082       enable_shared=yes
5083     fi
5084   done
5085   IFS="$ac_save_ifs"
5086   ;;
5087 esac
5088 else
5089   enable_shared=yes
5090 fi;
5091
5092 case "$host" in
5093  alpha-*-openbsd*)
5094      enable_shared=no
5095      echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6
5097      ;;
5098  *)
5099      echo "$as_me:$LINENO: result: yes" >&5
5100 echo "${ECHO_T}yes" >&6
5101      ;;
5102 esac
5103
5104 # Configuration of machine-dependent code
5105 #
5106 # We don't set NO_EXECUTE_PERMISSION by default because gcj (and
5107 # anything else that creates trampolines in gc-allocated memory)
5108 # always needs exec permission.  The exceptions to this are IA-64 and
5109 # some variations of Power PC, where trampolines don't contain
5110 # executable code.
5111 #
5112 echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
5113 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
5114 machdep=
5115 case "$host" in
5116  alpha*-*-openbsd*)
5117     machdep="alpha_mach_dep.lo"
5118     if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
5119        { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
5120 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
5121     fi
5122     ;;
5123  alpha*-*-linux*)
5124     machdep="alpha_mach_dep.lo"
5125     ;;
5126  i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
5127     cat >>confdefs.h <<\_ACEOF
5128 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
5129 _ACEOF
5130
5131     ;;
5132  mipstx39-*-elf*)
5133     machdep="mips_ultrix_mach_dep.lo"
5134     cat >>confdefs.h <<\_ACEOF
5135 #define STACKBASE __stackbase
5136 _ACEOF
5137
5138     cat >>confdefs.h <<\_ACEOF
5139 #define DATASTART_IS_ETEXT 1
5140 _ACEOF
5141
5142     ;;
5143  mips-dec-ultrix*)
5144     machdep="mips_ultrix_mach-dep.lo"
5145     ;;
5146  mips-nec-sysv*|mips-unknown-sysv*)
5147     ;;
5148  mips*-*-linux*)
5149     ;;
5150  mips-*-*)
5151     machdep="mips_sgi_mach_dep.lo"
5152     ;;
5153  sparc-*-netbsd*)
5154     machdep="sparc_netbsd_mach_dep.lo"
5155     ;;
5156  sparc-sun-solaris2.3)
5157     machdep="sparc_mach_dep.lo"
5158     cat >>confdefs.h <<\_ACEOF
5159 #define SUNOS53_SHARED_LIB 1
5160 _ACEOF
5161
5162     ;;
5163  sparc-sun-solaris2.*)
5164     machdep="sparc_mach_dep.lo"
5165     ;;
5166  ia64-*-*)
5167     cat >>confdefs.h <<\_ACEOF
5168 #define NO_EXECUTE_PERMISSION 1
5169 _ACEOF
5170
5171     machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
5172     ;;
5173 esac
5174 if test x"$machdep" = x; then
5175 echo "$as_me:$LINENO: result: $machdep" >&5
5176 echo "${ECHO_T}$machdep" >&6
5177    machdep="mach_dep.lo"
5178 fi
5179 addobjs="$addobjs $machdep"
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191 #
5192 # Check for AViiON Machines running DGUX
5193 #
5194 echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
5195 echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
5196 ac_is_dgux=no
5197 ac_ext=c
5198 ac_cpp='$CPP $CPPFLAGS'
5199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5202 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5203 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5204 # On Suns, sometimes $CPP names a directory.
5205 if test -n "$CPP" && test -d "$CPP"; then
5206   CPP=
5207 fi
5208 if test -z "$CPP"; then
5209   if test "${ac_cv_prog_CPP+set}" = set; then
5210   echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212       # Double quotes because CPP needs to be expanded
5213     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5214     do
5215       ac_preproc_ok=false
5216 for ac_c_preproc_warn_flag in '' yes
5217 do
5218   # Use a header file that comes with gcc, so configuring glibc
5219   # with a fresh cross-compiler works.
5220   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5221   # <limits.h> exists even on freestanding compilers.
5222   # On the NeXT, cc -E runs the code through the compiler's parser,
5223   # not just through cpp. "Syntax error" is here to catch this case.
5224   cat >conftest.$ac_ext <<_ACEOF
5225 #line $LINENO "configure"
5226 /* confdefs.h.  */
5227 _ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h.  */
5231 #ifdef __STDC__
5232 # include <limits.h>
5233 #else
5234 # include <assert.h>
5235 #endif
5236                      Syntax error
5237 _ACEOF
5238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5239   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5240   ac_status=$?
5241   grep -v '^ *+' conftest.er1 >conftest.err
5242   rm -f conftest.er1
5243   cat conftest.err >&5
5244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245   (exit $ac_status); } >/dev/null; then
5246   if test -s conftest.err; then
5247     ac_cpp_err=$ac_c_preproc_warn_flag
5248   else
5249     ac_cpp_err=
5250   fi
5251 else
5252   ac_cpp_err=yes
5253 fi
5254 if test -z "$ac_cpp_err"; then
5255   :
5256 else
5257   echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5259
5260   # Broken: fails on valid input.
5261 continue
5262 fi
5263 rm -f conftest.err conftest.$ac_ext
5264
5265   # OK, works on sane cases.  Now check whether non-existent headers
5266   # can be detected and how.
5267   cat >conftest.$ac_ext <<_ACEOF
5268 #line $LINENO "configure"
5269 /* confdefs.h.  */
5270 _ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h.  */
5274 #include <ac_nonexistent.h>
5275 _ACEOF
5276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5277   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5278   ac_status=$?
5279   grep -v '^ *+' conftest.er1 >conftest.err
5280   rm -f conftest.er1
5281   cat conftest.err >&5
5282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283   (exit $ac_status); } >/dev/null; then
5284   if test -s conftest.err; then
5285     ac_cpp_err=$ac_c_preproc_warn_flag
5286   else
5287     ac_cpp_err=
5288   fi
5289 else
5290   ac_cpp_err=yes
5291 fi
5292 if test -z "$ac_cpp_err"; then
5293   # Broken: success on invalid input.
5294 continue
5295 else
5296   echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5298
5299   # Passes both tests.
5300 ac_preproc_ok=:
5301 break
5302 fi
5303 rm -f conftest.err conftest.$ac_ext
5304
5305 done
5306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5307 rm -f conftest.err conftest.$ac_ext
5308 if $ac_preproc_ok; then
5309   break
5310 fi
5311
5312     done
5313     ac_cv_prog_CPP=$CPP
5314
5315 fi
5316   CPP=$ac_cv_prog_CPP
5317 else
5318   ac_cv_prog_CPP=$CPP
5319 fi
5320 echo "$as_me:$LINENO: result: $CPP" >&5
5321 echo "${ECHO_T}$CPP" >&6
5322 ac_preproc_ok=false
5323 for ac_c_preproc_warn_flag in '' yes
5324 do
5325   # Use a header file that comes with gcc, so configuring glibc
5326   # with a fresh cross-compiler works.
5327   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328   # <limits.h> exists even on freestanding compilers.
5329   # On the NeXT, cc -E runs the code through the compiler's parser,
5330   # not just through cpp. "Syntax error" is here to catch this case.
5331   cat >conftest.$ac_ext <<_ACEOF
5332 #line $LINENO "configure"
5333 /* confdefs.h.  */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h.  */
5338 #ifdef __STDC__
5339 # include <limits.h>
5340 #else
5341 # include <assert.h>
5342 #endif
5343                      Syntax error
5344 _ACEOF
5345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5346   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5347   ac_status=$?
5348   grep -v '^ *+' conftest.er1 >conftest.err
5349   rm -f conftest.er1
5350   cat conftest.err >&5
5351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352   (exit $ac_status); } >/dev/null; then
5353   if test -s conftest.err; then
5354     ac_cpp_err=$ac_c_preproc_warn_flag
5355   else
5356     ac_cpp_err=
5357   fi
5358 else
5359   ac_cpp_err=yes
5360 fi
5361 if test -z "$ac_cpp_err"; then
5362   :
5363 else
5364   echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5366
5367   # Broken: fails on valid input.
5368 continue
5369 fi
5370 rm -f conftest.err conftest.$ac_ext
5371
5372   # OK, works on sane cases.  Now check whether non-existent headers
5373   # can be detected and how.
5374   cat >conftest.$ac_ext <<_ACEOF
5375 #line $LINENO "configure"
5376 /* confdefs.h.  */
5377 _ACEOF
5378 cat confdefs.h >>conftest.$ac_ext
5379 cat >>conftest.$ac_ext <<_ACEOF
5380 /* end confdefs.h.  */
5381 #include <ac_nonexistent.h>
5382 _ACEOF
5383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5384   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5385   ac_status=$?
5386   grep -v '^ *+' conftest.er1 >conftest.err
5387   rm -f conftest.er1
5388   cat conftest.err >&5
5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390   (exit $ac_status); } >/dev/null; then
5391   if test -s conftest.err; then
5392     ac_cpp_err=$ac_c_preproc_warn_flag
5393   else
5394     ac_cpp_err=
5395   fi
5396 else
5397   ac_cpp_err=yes
5398 fi
5399 if test -z "$ac_cpp_err"; then
5400   # Broken: success on invalid input.
5401 continue
5402 else
5403   echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5405
5406   # Passes both tests.
5407 ac_preproc_ok=:
5408 break
5409 fi
5410 rm -f conftest.err conftest.$ac_ext
5411
5412 done
5413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5414 rm -f conftest.err conftest.$ac_ext
5415 if $ac_preproc_ok; then
5416   :
5417 else
5418   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5419 See \`config.log' for more details." >&5
5420 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5421 See \`config.log' for more details." >&2;}
5422    { (exit 1); exit 1; }; }
5423 fi
5424
5425 ac_ext=c
5426 ac_cpp='$CPP $CPPFLAGS'
5427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5430
5431
5432 echo "$as_me:$LINENO: checking for egrep" >&5
5433 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5434 if test "${ac_cv_prog_egrep+set}" = set; then
5435   echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5438     then ac_cv_prog_egrep='grep -E'
5439     else ac_cv_prog_egrep='egrep'
5440     fi
5441 fi
5442 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5443 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5444  EGREP=$ac_cv_prog_egrep
5445
5446
5447 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5448 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5449 if test "${ac_cv_header_stdc+set}" = set; then
5450   echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452   cat >conftest.$ac_ext <<_ACEOF
5453 #line $LINENO "configure"
5454 /* confdefs.h.  */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h.  */
5459 #include <stdlib.h>
5460 #include <stdarg.h>
5461 #include <string.h>
5462 #include <float.h>
5463
5464 int
5465 main ()
5466 {
5467
5468   ;
5469   return 0;
5470 }
5471 _ACEOF
5472 rm -f conftest.$ac_objext
5473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5474   (eval $ac_compile) 2>&5
5475   ac_status=$?
5476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477   (exit $ac_status); } &&
5478          { ac_try='test -s conftest.$ac_objext'
5479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480   (eval $ac_try) 2>&5
5481   ac_status=$?
5482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483   (exit $ac_status); }; }; then
5484   ac_cv_header_stdc=yes
5485 else
5486   echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5488
5489 ac_cv_header_stdc=no
5490 fi
5491 rm -f conftest.$ac_objext conftest.$ac_ext
5492
5493 if test $ac_cv_header_stdc = yes; then
5494   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5495   cat >conftest.$ac_ext <<_ACEOF
5496 #line $LINENO "configure"
5497 /* confdefs.h.  */
5498 _ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h.  */
5502 #include <string.h>
5503
5504 _ACEOF
5505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5506   $EGREP "memchr" >/dev/null 2>&1; then
5507   :
5508 else
5509   ac_cv_header_stdc=no
5510 fi
5511 rm -f conftest*
5512
5513 fi
5514
5515 if test $ac_cv_header_stdc = yes; then
5516   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5517   cat >conftest.$ac_ext <<_ACEOF
5518 #line $LINENO "configure"
5519 /* confdefs.h.  */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h.  */
5524 #include <stdlib.h>
5525
5526 _ACEOF
5527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5528   $EGREP "free" >/dev/null 2>&1; then
5529   :
5530 else
5531   ac_cv_header_stdc=no
5532 fi
5533 rm -f conftest*
5534
5535 fi
5536
5537 if test $ac_cv_header_stdc = yes; then
5538   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5539   if test "$cross_compiling" = yes; then
5540   :
5541 else
5542   cat >conftest.$ac_ext <<_ACEOF
5543 #line $LINENO "configure"
5544 /* confdefs.h.  */
5545 _ACEOF
5546 cat confdefs.h >>conftest.$ac_ext
5547 cat >>conftest.$ac_ext <<_ACEOF
5548 /* end confdefs.h.  */
5549 #include <ctype.h>
5550 #if ((' ' & 0x0FF) == 0x020)
5551 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5552 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5553 #else
5554 # define ISLOWER(c) \
5555                    (('a' <= (c) && (c) <= 'i') \
5556                      || ('j' <= (c) && (c) <= 'r') \
5557                      || ('s' <= (c) && (c) <= 'z'))
5558 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5559 #endif
5560
5561 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5562 int
5563 main ()
5564 {
5565   int i;
5566   for (i = 0; i < 256; i++)
5567     if (XOR (islower (i), ISLOWER (i))
5568         || toupper (i) != TOUPPER (i))
5569       exit(2);
5570   exit (0);
5571 }
5572 _ACEOF
5573 rm -f conftest$ac_exeext
5574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5575   (eval $ac_link) 2>&5
5576   ac_status=$?
5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580   (eval $ac_try) 2>&5
5581   ac_status=$?
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); }; }; then
5584   :
5585 else
5586   echo "$as_me: program exited with status $ac_status" >&5
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5589
5590 ( exit $ac_status )
5591 ac_cv_header_stdc=no
5592 fi
5593 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5594 fi
5595 fi
5596 fi
5597 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5598 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5599 if test $ac_cv_header_stdc = yes; then
5600
5601 cat >>confdefs.h <<\_ACEOF
5602 #define STDC_HEADERS 1
5603 _ACEOF
5604
5605 fi
5606
5607 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5618                   inttypes.h stdint.h unistd.h
5619 do
5620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5621 echo "$as_me:$LINENO: checking for $ac_header" >&5
5622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5624   echo $ECHO_N "(cached) $ECHO_C" >&6
5625 else
5626   cat >conftest.$ac_ext <<_ACEOF
5627 #line $LINENO "configure"
5628 /* confdefs.h.  */
5629 _ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h.  */
5633 $ac_includes_default
5634
5635 #include <$ac_header>
5636 _ACEOF
5637 rm -f conftest.$ac_objext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5639   (eval $ac_compile) 2>&5
5640   ac_status=$?
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); } &&
5643          { ac_try='test -s conftest.$ac_objext'
5644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645   (eval $ac_try) 2>&5
5646   ac_status=$?
5647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648   (exit $ac_status); }; }; then
5649   eval "$as_ac_Header=yes"
5650 else
5651   echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5653
5654 eval "$as_ac_Header=no"
5655 fi
5656 rm -f conftest.$ac_objext conftest.$ac_ext
5657 fi
5658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5661   cat >>confdefs.h <<_ACEOF
5662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5663 _ACEOF
5664
5665 fi
5666
5667 done
5668
5669
5670 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5671   echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
5672 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
5673 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5674   echo $ECHO_N "(cached) $ECHO_C" >&6
5675 fi
5676 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
5677 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
5678 else
5679   # Is the header compilable?
5680 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
5681 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
5682 cat >conftest.$ac_ext <<_ACEOF
5683 #line $LINENO "configure"
5684 /* confdefs.h.  */
5685 _ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h.  */
5689 $ac_includes_default
5690 #include <sys/dg_sys_info.h>
5691 _ACEOF
5692 rm -f conftest.$ac_objext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5694   (eval $ac_compile) 2>&5
5695   ac_status=$?
5696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697   (exit $ac_status); } &&
5698          { ac_try='test -s conftest.$ac_objext'
5699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700   (eval $ac_try) 2>&5
5701   ac_status=$?
5702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); }; }; then
5704   ac_header_compiler=yes
5705 else
5706   echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5708
5709 ac_header_compiler=no
5710 fi
5711 rm -f conftest.$ac_objext conftest.$ac_ext
5712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5713 echo "${ECHO_T}$ac_header_compiler" >&6
5714
5715 # Is the header present?
5716 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
5717 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
5718 cat >conftest.$ac_ext <<_ACEOF
5719 #line $LINENO "configure"
5720 /* confdefs.h.  */
5721 _ACEOF
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h.  */
5725 #include <sys/dg_sys_info.h>
5726 _ACEOF
5727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5728   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5729   ac_status=$?
5730   grep -v '^ *+' conftest.er1 >conftest.err
5731   rm -f conftest.er1
5732   cat conftest.err >&5
5733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734   (exit $ac_status); } >/dev/null; then
5735   if test -s conftest.err; then
5736     ac_cpp_err=$ac_c_preproc_warn_flag
5737   else
5738     ac_cpp_err=
5739   fi
5740 else
5741   ac_cpp_err=yes
5742 fi
5743 if test -z "$ac_cpp_err"; then
5744   ac_header_preproc=yes
5745 else
5746   echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5748
5749   ac_header_preproc=no
5750 fi
5751 rm -f conftest.err conftest.$ac_ext
5752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5753 echo "${ECHO_T}$ac_header_preproc" >&6
5754
5755 # So?  What about this header?
5756 case $ac_header_compiler:$ac_header_preproc in
5757   yes:no )
5758     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
5759 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5760     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
5761 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
5762     (
5763       cat <<\_ASBOX
5764 ## ------------------------------------ ##
5765 ## Report this to bug-autoconf@gnu.org. ##
5766 ## ------------------------------------ ##
5767 _ASBOX
5768     ) |
5769       sed "s/^/$as_me: WARNING:     /" >&2
5770     ;;
5771   no:yes )
5772     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
5773 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
5774     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
5775 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
5776     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
5777 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
5778     (
5779       cat <<\_ASBOX
5780 ## ------------------------------------ ##
5781 ## Report this to bug-autoconf@gnu.org. ##
5782 ## ------------------------------------ ##
5783 _ASBOX
5784     ) |
5785       sed "s/^/$as_me: WARNING:     /" >&2
5786     ;;
5787 esac
5788 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
5789 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
5790 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
5791   echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
5794 fi
5795 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
5796 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
5797
5798 fi
5799 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
5800   ac_is_dgux=yes;
5801 fi
5802
5803
5804
5805 echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
5806 echo "${ECHO_T}$ac_is_dgux" >&6
5807     ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
5808 if test $ac_is_dgux = yes; then
5809     if test "$enable_full_debug" = "yes"; then
5810       CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5811       CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5812     else
5813       CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5814       CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
5815     fi
5816
5817
5818 fi
5819
5820
5821 # Check whether --with-target-subdir or --without-target-subdir was given.
5822 if test "${with_target_subdir+set}" = set; then
5823   withval="$with_target_subdir"
5824
5825 fi;
5826
5827 # Check whether --with-cross-host or --without-cross-host was given.
5828 if test "${with_cross_host+set}" = set; then
5829   withval="$with_cross_host"
5830
5831 fi;
5832
5833 echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
5834 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
5835 case "$host" in
5836  sparc-sun-solaris2*|*aix*)
5837     if test "$GCC" = yes; then
5838        echo "$as_me:$LINENO: result: yes" >&5
5839 echo "${ECHO_T}yes" >&6
5840        new_CFLAGS=
5841        for i in $CFLAGS; do
5842           case "$i" in
5843            -O*)
5844               ;;
5845            *)
5846               new_CFLAGS="$new_CFLAGS $i"
5847               ;;
5848           esac
5849        done
5850        CFLAGS="$new_CFLAGS"
5851     else
5852        echo "$as_me:$LINENO: result: no" >&5
5853 echo "${ECHO_T}no" >&6
5854     fi
5855     ;;
5856  *) echo "$as_me:$LINENO: result: no" >&5
5857 echo "${ECHO_T}no" >&6 ;;
5858 esac
5859
5860 MY_CFLAGS="$CFLAGS"
5861
5862
5863 cat >>confdefs.h <<\_ACEOF
5864 #define SILENT 1
5865 _ACEOF
5866
5867 cat >>confdefs.h <<\_ACEOF
5868 #define NO_SIGNALS 1
5869 _ACEOF
5870
5871 cat >>confdefs.h <<\_ACEOF
5872 #define ALL_INTERIOR_POINTERS 1
5873 _ACEOF
5874
5875
5876 cat >>confdefs.h <<\_ACEOF
5877 #define JAVA_FINALIZATION 1
5878 _ACEOF
5879
5880 cat >>confdefs.h <<\_ACEOF
5881 #define GC_GCJ_SUPPORT 1
5882 _ACEOF
5883
5884 cat >>confdefs.h <<\_ACEOF
5885 #define ATOMIC_UNCOLLECTABLE 1
5886 _ACEOF
5887
5888
5889 if test -n "${with_cross_host}"; then
5890    cat >>confdefs.h <<\_ACEOF
5891 #define NO_SIGSET 1
5892 _ACEOF
5893
5894    cat >>confdefs.h <<\_ACEOF
5895 #define NO_DEBUGGING 1
5896 _ACEOF
5897
5898 fi
5899
5900 # Check whether --enable-full-debug or --disable-full-debug was given.
5901 if test "${enable_full_debug+set}" = set; then
5902   enableval="$enable_full_debug"
5903    if test "$enable_full_debug" = "yes"; then
5904     { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
5905 echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
5906     cat >>confdefs.h <<\_ACEOF
5907 #define KEEP_BACK_PTRS 1
5908 _ACEOF
5909
5910     cat >>confdefs.h <<\_ACEOF
5911 #define DBG_HDRS_ALL 1
5912 _ACEOF
5913
5914     case $host in
5915       ia64-*-linux* )
5916         cat >>confdefs.h <<\_ACEOF
5917 #define MAKE_BACK_GRAPH 1
5918 _ACEOF
5919
5920       ;;
5921       x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
5922         cat >>confdefs.h <<\_ACEOF
5923 #define MAKE_BACK_GRAPH 1
5924 _ACEOF
5925
5926         { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
5927 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
5928         cat >>confdefs.h <<\_ACEOF
5929 #define SAVE_CALL_COUNT 8
5930 _ACEOF
5931
5932       ;;
5933       i345686-*-dgux*)
5934         cat >>confdefs.h <<\_ACEOF
5935 #define MAKE_BACK_GRAPH 1
5936 _ACEOF
5937
5938       ;;
5939     esac
5940   fi
5941 fi;
5942
5943 if test -n "$with_cross_host" &&
5944    test x"$with_cross_host" != x"no"; then
5945   toolexecdir='$(exec_prefix)/$(target_noncanonical)'
5946   toolexeclibdir='$(toolexecdir)/lib'
5947 else
5948   toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
5949   toolexeclibdir='$(libdir)'
5950 fi
5951 multi_os_directory=`$CC -print-multi-os-directory`
5952 case $multi_os_directory in
5953   .) ;; # Avoid trailing /.
5954   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5955 esac
5956
5957
5958
5959 if test "${multilib}" = "yes"; then
5960   multilib_arg="--enable-multilib"
5961 else
5962   multilib_arg=
5963 fi
5964
5965                     ac_config_files="$ac_config_files Makefile include/Makefile"
5966           ac_config_commands="$ac_config_commands default"
5967 cat >confcache <<\_ACEOF
5968 # This file is a shell script that caches the results of configure
5969 # tests run on this system so they can be shared between configure
5970 # scripts and configure runs, see configure's option --config-cache.
5971 # It is not useful on other systems.  If it contains results you don't
5972 # want to keep, you may remove or edit it.
5973 #
5974 # config.status only pays attention to the cache file if you give it
5975 # the --recheck option to rerun configure.
5976 #
5977 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5978 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5979 # following values.
5980
5981 _ACEOF
5982
5983 # The following way of writing the cache mishandles newlines in values,
5984 # but we know of no workaround that is simple, portable, and efficient.
5985 # So, don't put newlines in cache variables' values.
5986 # Ultrix sh set writes to stderr and can't be redirected directly,
5987 # and sets the high bit in the cache file unless we assign to the vars.
5988 {
5989   (set) 2>&1 |
5990     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5991     *ac_space=\ *)
5992       # `set' does not quote correctly, so add quotes (double-quote
5993       # substitution turns \\\\ into \\, and sed turns \\ into \).
5994       sed -n \
5995         "s/'/'\\\\''/g;
5996           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5997       ;;
5998     *)
5999       # `set' quotes correctly as required by POSIX, so do not add quotes.
6000       sed -n \
6001         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6002       ;;
6003     esac;
6004 } |
6005   sed '
6006      t clear
6007      : clear
6008      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6009      t end
6010      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6011      : end' >>confcache
6012 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6013   if test -w $cache_file; then
6014     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6015     cat confcache >$cache_file
6016   else
6017     echo "not updating unwritable cache $cache_file"
6018   fi
6019 fi
6020 rm -f confcache
6021
6022 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6023 # Let make expand exec_prefix.
6024 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6025
6026 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6027 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6028 # trailing colons and then remove the whole line if VPATH becomes empty
6029 # (actually we leave an empty line to preserve line numbers).
6030 if test "x$srcdir" = x.; then
6031   ac_vpsub='/^[         ]*VPATH[        ]*=/{
6032 s/:*\$(srcdir):*/:/;
6033 s/:*\${srcdir}:*/:/;
6034 s/:*@srcdir@:*/:/;
6035 s/^\([^=]*=[    ]*\):*/\1/;
6036 s/:*$//;
6037 s/^[^=]*=[      ]*$//;
6038 }'
6039 fi
6040
6041 # Transform confdefs.h into DEFS.
6042 # Protect against shell expansion while executing Makefile rules.
6043 # Protect against Makefile macro expansion.
6044 #
6045 # If the first sed substitution is executed (which looks for macros that
6046 # take arguments), then we branch to the quote section.  Otherwise,
6047 # look for a macro that doesn't take arguments.
6048 cat >confdef2opt.sed <<\_ACEOF
6049 t clear
6050 : clear
6051 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
6052 t quote
6053 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
6054 t quote
6055 d
6056 : quote
6057 s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
6058 s,\[,\\&,g
6059 s,\],\\&,g
6060 s,\$,$$,g
6061 p
6062 _ACEOF
6063 # We use echo to avoid assuming a particular line-breaking character.
6064 # The extra dot is to prevent the shell from consuming trailing
6065 # line-breaks from the sub-command output.  A line-break within
6066 # single-quotes doesn't work because, if this script is created in a
6067 # platform that uses two characters for line-breaks (e.g., DOS), tr
6068 # would break.
6069 ac_LF_and_DOT=`echo; echo .`
6070 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6071 rm -f confdef2opt.sed
6072
6073
6074 ac_libobjs=
6075 ac_ltlibobjs=
6076 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6077   # 1. Remove the extension, and $U if already installed.
6078   ac_i=`echo "$ac_i" |
6079          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6080   # 2. Add them.
6081   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6082   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6083 done
6084 LIBOBJS=$ac_libobjs
6085
6086 LTLIBOBJS=$ac_ltlibobjs
6087
6088
6089
6090 : ${CONFIG_STATUS=./config.status}
6091 ac_clean_files_save=$ac_clean_files
6092 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6093 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6094 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6095 cat >$CONFIG_STATUS <<_ACEOF
6096 #! $SHELL
6097 # Generated by $as_me.
6098 # Run this file to recreate the current configuration.
6099 # Compiler output produced by configure, useful for debugging
6100 # configure, is in config.log if it exists.
6101
6102 debug=false
6103 ac_cs_recheck=false
6104 ac_cs_silent=false
6105 SHELL=\${CONFIG_SHELL-$SHELL}
6106 _ACEOF
6107
6108 cat >>$CONFIG_STATUS <<\_ACEOF
6109 ## --------------------- ##
6110 ## M4sh Initialization.  ##
6111 ## --------------------- ##
6112
6113 # Be Bourne compatible
6114 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6115   emulate sh
6116   NULLCMD=:
6117   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6118   # is contrary to our usage.  Disable this feature.
6119   alias -g '${1+"$@"}'='"$@"'
6120 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6121   set -o posix
6122 fi
6123
6124 # Support unset when possible.
6125 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6126   as_unset=unset
6127 else
6128   as_unset=false
6129 fi
6130
6131
6132 # Work around bugs in pre-3.0 UWIN ksh.
6133 $as_unset ENV MAIL MAILPATH
6134 PS1='$ '
6135 PS2='> '
6136 PS4='+ '
6137
6138 # NLS nuisances.
6139 for as_var in \
6140   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6141   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6142   LC_TELEPHONE LC_TIME
6143 do
6144   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6145     eval $as_var=C; export $as_var
6146   else
6147     $as_unset $as_var
6148   fi
6149 done
6150
6151 # Required to use basename.
6152 if expr a : '\(a\)' >/dev/null 2>&1; then
6153   as_expr=expr
6154 else
6155   as_expr=false
6156 fi
6157
6158 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6159   as_basename=basename
6160 else
6161   as_basename=false
6162 fi
6163
6164
6165 # Name of the executable.
6166 as_me=`$as_basename "$0" ||
6167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6168          X"$0" : 'X\(//\)$' \| \
6169          X"$0" : 'X\(/\)$' \| \
6170          .     : '\(.\)' 2>/dev/null ||
6171 echo X/"$0" |
6172     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6173           /^X\/\(\/\/\)$/{ s//\1/; q; }
6174           /^X\/\(\/\).*/{ s//\1/; q; }
6175           s/.*/./; q'`
6176
6177
6178 # PATH needs CR, and LINENO needs CR and PATH.
6179 # Avoid depending upon Character Ranges.
6180 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6181 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6182 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6183 as_cr_digits='0123456789'
6184 as_cr_alnum=$as_cr_Letters$as_cr_digits
6185
6186 # The user is always right.
6187 if test "${PATH_SEPARATOR+set}" != set; then
6188   echo "#! /bin/sh" >conf$$.sh
6189   echo  "exit 0"   >>conf$$.sh
6190   chmod +x conf$$.sh
6191   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6192     PATH_SEPARATOR=';'
6193   else
6194     PATH_SEPARATOR=:
6195   fi
6196   rm -f conf$$.sh
6197 fi
6198
6199
6200   as_lineno_1=$LINENO
6201   as_lineno_2=$LINENO
6202   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6203   test "x$as_lineno_1" != "x$as_lineno_2" &&
6204   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6205   # Find who we are.  Look in the path if we contain no path at all
6206   # relative or not.
6207   case $0 in
6208     *[\\/]* ) as_myself=$0 ;;
6209     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 for as_dir in $PATH
6211 do
6212   IFS=$as_save_IFS
6213   test -z "$as_dir" && as_dir=.
6214   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6215 done
6216
6217        ;;
6218   esac
6219   # We did not find ourselves, most probably we were run as `sh COMMAND'
6220   # in which case we are not to be found in the path.
6221   if test "x$as_myself" = x; then
6222     as_myself=$0
6223   fi
6224   if test ! -f "$as_myself"; then
6225     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6226 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6227    { (exit 1); exit 1; }; }
6228   fi
6229   case $CONFIG_SHELL in
6230   '')
6231     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6233 do
6234   IFS=$as_save_IFS
6235   test -z "$as_dir" && as_dir=.
6236   for as_base in sh bash ksh sh5; do
6237          case $as_dir in
6238          /*)
6239            if ("$as_dir/$as_base" -c '
6240   as_lineno_1=$LINENO
6241   as_lineno_2=$LINENO
6242   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6243   test "x$as_lineno_1" != "x$as_lineno_2" &&
6244   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6245              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6246              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6247              CONFIG_SHELL=$as_dir/$as_base
6248              export CONFIG_SHELL
6249              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6250            fi;;
6251          esac
6252        done
6253 done
6254 ;;
6255   esac
6256
6257   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6258   # uniformly replaced by the line number.  The first 'sed' inserts a
6259   # line-number line before each line; the second 'sed' does the real
6260   # work.  The second script uses 'N' to pair each line-number line
6261   # with the numbered line, and appends trailing '-' during
6262   # substitution so that $LINENO is not a special case at line end.
6263   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6264   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6265   sed '=' <$as_myself |
6266     sed '
6267       N
6268       s,$,-,
6269       : loop
6270       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6271       t loop
6272       s,-$,,
6273       s,^['$as_cr_digits']*\n,,
6274     ' >$as_me.lineno &&
6275   chmod +x $as_me.lineno ||
6276     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6277 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6278    { (exit 1); exit 1; }; }
6279
6280   # Don't try to exec as it changes $[0], causing all sort of problems
6281   # (the dirname of $[0] is not the place where we might find the
6282   # original and so on.  Autoconf is especially sensible to this).
6283   . ./$as_me.lineno
6284   # Exit status is that of the last command.
6285   exit
6286 }
6287
6288
6289 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6290   *c*,-n*) ECHO_N= ECHO_C='
6291 ' ECHO_T='      ' ;;
6292   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6293   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6294 esac
6295
6296 if expr a : '\(a\)' >/dev/null 2>&1; then
6297   as_expr=expr
6298 else
6299   as_expr=false
6300 fi
6301
6302 rm -f conf$$ conf$$.exe conf$$.file
6303 echo >conf$$.file
6304 if ln -s conf$$.file conf$$ 2>/dev/null; then
6305   # We could just check for DJGPP; but this test a) works b) is more generic
6306   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6307   if test -f conf$$.exe; then
6308     # Don't use ln at all; we don't have any links
6309     as_ln_s='cp -p'
6310   else
6311     as_ln_s='ln -s'
6312   fi
6313 elif ln conf$$.file conf$$ 2>/dev/null; then
6314   as_ln_s=ln
6315 else
6316   as_ln_s='cp -p'
6317 fi
6318 rm -f conf$$ conf$$.exe conf$$.file
6319
6320 if mkdir -p . 2>/dev/null; then
6321   as_mkdir_p=:
6322 else
6323   as_mkdir_p=false
6324 fi
6325
6326 as_executable_p="test -f"
6327
6328 # Sed expression to map a string onto a valid CPP name.
6329 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6330
6331 # Sed expression to map a string onto a valid variable name.
6332 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6333
6334
6335 # IFS
6336 # We need space, tab and new line, in precisely that order.
6337 as_nl='
6338 '
6339 IFS="   $as_nl"
6340
6341 # CDPATH.
6342 $as_unset CDPATH
6343
6344 exec 6>&1
6345
6346 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6347 # report actual input values of CONFIG_FILES etc. instead of their
6348 # values after options handling.  Logging --version etc. is OK.
6349 exec 5>>config.log
6350 {
6351   echo
6352   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6353 ## Running $as_me. ##
6354 _ASBOX
6355 } >&5
6356 cat >&5 <<_CSEOF
6357
6358 This file was extended by $as_me, which was
6359 generated by GNU Autoconf 2.57.  Invocation command line was
6360
6361   CONFIG_FILES    = $CONFIG_FILES
6362   CONFIG_HEADERS  = $CONFIG_HEADERS
6363   CONFIG_LINKS    = $CONFIG_LINKS
6364   CONFIG_COMMANDS = $CONFIG_COMMANDS
6365   $ $0 $@
6366
6367 _CSEOF
6368 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6369 echo >&5
6370 _ACEOF
6371
6372 # Files that config.status was made for.
6373 if test -n "$ac_config_files"; then
6374   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6375 fi
6376
6377 if test -n "$ac_config_headers"; then
6378   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6379 fi
6380
6381 if test -n "$ac_config_links"; then
6382   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6383 fi
6384
6385 if test -n "$ac_config_commands"; then
6386   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6387 fi
6388
6389 cat >>$CONFIG_STATUS <<\_ACEOF
6390
6391 ac_cs_usage="\
6392 \`$as_me' instantiates files from templates according to the
6393 current configuration.
6394
6395 Usage: $0 [OPTIONS] [FILE]...
6396
6397   -h, --help       print this help, then exit
6398   -V, --version    print version number, then exit
6399   -q, --quiet      do not print progress messages
6400   -d, --debug      don't remove temporary files
6401       --recheck    update $as_me by reconfiguring in the same conditions
6402   --file=FILE[:TEMPLATE]
6403                    instantiate the configuration file FILE
6404
6405 Configuration files:
6406 $config_files
6407
6408 Configuration commands:
6409 $config_commands
6410
6411 Report bugs to <bug-autoconf@gnu.org>."
6412 _ACEOF
6413
6414 cat >>$CONFIG_STATUS <<_ACEOF
6415 ac_cs_version="\\
6416 config.status
6417 configured by $0, generated by GNU Autoconf 2.57,
6418   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6419
6420 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6421 Free Software Foundation, Inc.
6422 This config.status script is free software; the Free Software Foundation
6423 gives unlimited permission to copy, distribute and modify it."
6424 srcdir=$srcdir
6425 INSTALL="$INSTALL"
6426 _ACEOF
6427
6428 cat >>$CONFIG_STATUS <<\_ACEOF
6429 # If no file are specified by the user, then we need to provide default
6430 # value.  By we need to know if files were specified by the user.
6431 ac_need_defaults=:
6432 while test $# != 0
6433 do
6434   case $1 in
6435   --*=*)
6436     ac_option=`expr "x$1" : 'x\([^=]*\)='`
6437     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6438     ac_shift=:
6439     ;;
6440   -*)
6441     ac_option=$1
6442     ac_optarg=$2
6443     ac_shift=shift
6444     ;;
6445   *) # This is not an option, so the user has probably given explicit
6446      # arguments.
6447      ac_option=$1
6448      ac_need_defaults=false;;
6449   esac
6450
6451   case $ac_option in
6452   # Handling of the options.
6453 _ACEOF
6454 cat >>$CONFIG_STATUS <<\_ACEOF
6455   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6456     ac_cs_recheck=: ;;
6457   --version | --vers* | -V )
6458     echo "$ac_cs_version"; exit 0 ;;
6459   --he | --h)
6460     # Conflict between --help and --header
6461     { { echo "$as_me:$LINENO: error: ambiguous option: $1
6462 Try \`$0 --help' for more information." >&5
6463 echo "$as_me: error: ambiguous option: $1
6464 Try \`$0 --help' for more information." >&2;}
6465    { (exit 1); exit 1; }; };;
6466   --help | --hel | -h )
6467     echo "$ac_cs_usage"; exit 0 ;;
6468   --debug | --d* | -d )
6469     debug=: ;;
6470   --file | --fil | --fi | --f )
6471     $ac_shift
6472     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6473     ac_need_defaults=false;;
6474   --header | --heade | --head | --hea )
6475     $ac_shift
6476     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6477     ac_need_defaults=false;;
6478   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6479   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6480     ac_cs_silent=: ;;
6481
6482   # This is an error.
6483   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6484 Try \`$0 --help' for more information." >&5
6485 echo "$as_me: error: unrecognized option: $1
6486 Try \`$0 --help' for more information." >&2;}
6487    { (exit 1); exit 1; }; } ;;
6488
6489   *) ac_config_targets="$ac_config_targets $1" ;;
6490
6491   esac
6492   shift
6493 done
6494
6495 ac_configure_extra_args=
6496
6497 if $ac_cs_silent; then
6498   exec 6>/dev/null
6499   ac_configure_extra_args="$ac_configure_extra_args --silent"
6500 fi
6501
6502 _ACEOF
6503 cat >>$CONFIG_STATUS <<_ACEOF
6504 if \$ac_cs_recheck; then
6505   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6506   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6507 fi
6508
6509 _ACEOF
6510
6511 cat >>$CONFIG_STATUS <<_ACEOF
6512 #
6513 # INIT-COMMANDS section.
6514 #
6515
6516 srcdir=${srcdir}
6517 host=${host}
6518 target=${target}
6519 with_multisubdir=${with_multisubdir}
6520 ac_configure_args="${multilib_arg} ${ac_configure_args}"
6521 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6522 gc_basedir=${gc_basedir}
6523 CC="${CC}"
6524 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
6525 DEFS="$DEFS"
6526 INCLUDES="$INCLUDES"
6527
6528
6529 _ACEOF
6530
6531
6532
6533 cat >>$CONFIG_STATUS <<\_ACEOF
6534 for ac_config_target in $ac_config_targets
6535 do
6536   case "$ac_config_target" in
6537   # Handling of arguments.
6538   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6539   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6540   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6541   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6542 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6543    { (exit 1); exit 1; }; };;
6544   esac
6545 done
6546
6547 # If the user did not use the arguments to specify the items to instantiate,
6548 # then the envvar interface is used.  Set only those that are not.
6549 # We use the long form for the default assignment because of an extremely
6550 # bizarre bug on SunOS 4.1.3.
6551 if $ac_need_defaults; then
6552   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6553   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6554 fi
6555
6556 # Have a temporary directory for convenience.  Make it in the build tree
6557 # simply because there is no reason to put it here, and in addition,
6558 # creating and moving files from /tmp can sometimes cause problems.
6559 # Create a temporary directory, and hook for its removal unless debugging.
6560 $debug ||
6561 {
6562   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6563   trap '{ (exit 1); exit 1; }' 1 2 13 15
6564 }
6565
6566 # Create a (secure) tmp directory for tmp files.
6567
6568 {
6569   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6570   test -n "$tmp" && test -d "$tmp"
6571 }  ||
6572 {
6573   tmp=./confstat$$-$RANDOM
6574   (umask 077 && mkdir $tmp)
6575 } ||
6576 {
6577    echo "$me: cannot create a temporary directory in ." >&2
6578    { (exit 1); exit 1; }
6579 }
6580
6581 _ACEOF
6582
6583 cat >>$CONFIG_STATUS <<_ACEOF
6584
6585 #
6586 # CONFIG_FILES section.
6587 #
6588
6589 # No need to generate the scripts if there are no CONFIG_FILES.
6590 # This happens for instance when ./config.status config.h
6591 if test -n "\$CONFIG_FILES"; then
6592   # Protect against being on the right side of a sed subst in config.status.
6593   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6594    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6595 s,@SHELL@,$SHELL,;t t
6596 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6597 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6598 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6599 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6600 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6601 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6602 s,@exec_prefix@,$exec_prefix,;t t
6603 s,@prefix@,$prefix,;t t
6604 s,@program_transform_name@,$program_transform_name,;t t
6605 s,@bindir@,$bindir,;t t
6606 s,@sbindir@,$sbindir,;t t
6607 s,@libexecdir@,$libexecdir,;t t
6608 s,@datadir@,$datadir,;t t
6609 s,@sysconfdir@,$sysconfdir,;t t
6610 s,@sharedstatedir@,$sharedstatedir,;t t
6611 s,@localstatedir@,$localstatedir,;t t
6612 s,@libdir@,$libdir,;t t
6613 s,@includedir@,$includedir,;t t
6614 s,@oldincludedir@,$oldincludedir,;t t
6615 s,@infodir@,$infodir,;t t
6616 s,@mandir@,$mandir,;t t
6617 s,@build_alias@,$build_alias,;t t
6618 s,@host_alias@,$host_alias,;t t
6619 s,@target_alias@,$target_alias,;t t
6620 s,@DEFS@,$DEFS,;t t
6621 s,@ECHO_C@,$ECHO_C,;t t
6622 s,@ECHO_N@,$ECHO_N,;t t
6623 s,@ECHO_T@,$ECHO_T,;t t
6624 s,@LIBS@,$LIBS,;t t
6625 s,@gc_basedir@,$gc_basedir,;t t
6626 s,@build@,$build,;t t
6627 s,@build_cpu@,$build_cpu,;t t
6628 s,@build_vendor@,$build_vendor,;t t
6629 s,@build_os@,$build_os,;t t
6630 s,@host@,$host,;t t
6631 s,@host_cpu@,$host_cpu,;t t
6632 s,@host_vendor@,$host_vendor,;t t
6633 s,@host_os@,$host_os,;t t
6634 s,@target@,$target,;t t
6635 s,@target_cpu@,$target_cpu,;t t
6636 s,@target_vendor@,$target_vendor,;t t
6637 s,@target_os@,$target_os,;t t
6638 s,@mkinstalldirs@,$mkinstalldirs,;t t
6639 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6640 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6641 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6642 s,@PACKAGE@,$PACKAGE,;t t
6643 s,@VERSION@,$VERSION,;t t
6644 s,@ACLOCAL@,$ACLOCAL,;t t
6645 s,@AUTOCONF@,$AUTOCONF,;t t
6646 s,@AUTOMAKE@,$AUTOMAKE,;t t
6647 s,@AUTOHEADER@,$AUTOHEADER,;t t
6648 s,@MAKEINFO@,$MAKEINFO,;t t
6649 s,@SET_MAKE@,$SET_MAKE,;t t
6650 s,@CC@,$CC,;t t
6651 s,@ac_ct_CC@,$ac_ct_CC,;t t
6652 s,@EXEEXT@,$EXEEXT,;t t
6653 s,@OBJEXT@,$OBJEXT,;t t
6654 s,@CXX@,$CXX,;t t
6655 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6656 s,@CFLAGS@,$CFLAGS,;t t
6657 s,@CXXFLAGS@,$CXXFLAGS,;t t
6658 s,@AS@,$AS,;t t
6659 s,@ac_ct_AS@,$ac_ct_AS,;t t
6660 s,@AR@,$AR,;t t
6661 s,@ac_ct_AR@,$ac_ct_AR,;t t
6662 s,@RANLIB@,$RANLIB,;t t
6663 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6664 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6665 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6666 s,@MAINT@,$MAINT,;t t
6667 s,@GC_CFLAGS@,$GC_CFLAGS,;t t
6668 s,@LN_S@,$LN_S,;t t
6669 s,@STRIP@,$STRIP,;t t
6670 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6671 s,@LIBTOOL@,$LIBTOOL,;t t
6672 s,@CXXCPP@,$CXXCPP,;t t
6673 s,@CPPFLAGS@,$CPPFLAGS,;t t
6674 s,@THREADLIBS@,$THREADLIBS,;t t
6675 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
6676 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
6677 s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
6678 s,@target_all@,$target_all,;t t
6679 s,@target_noncanonical@,$target_noncanonical,;t t
6680 s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
6681 s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
6682 s,@INCLUDES@,$INCLUDES,;t t
6683 s,@CXXINCLUDES@,$CXXINCLUDES,;t t
6684 s,@addobjs@,$addobjs,;t t
6685 s,@addincludes@,$addincludes,;t t
6686 s,@addlibs@,$addlibs,;t t
6687 s,@addtests@,$addtests,;t t
6688 s,@CPP@,$CPP,;t t
6689 s,@EGREP@,$EGREP,;t t
6690 s,@MY_CFLAGS@,$MY_CFLAGS,;t t
6691 s,@toolexecdir@,$toolexecdir,;t t
6692 s,@toolexeclibdir@,$toolexeclibdir,;t t
6693 s,@LIBOBJS@,$LIBOBJS,;t t
6694 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6695 CEOF
6696
6697 _ACEOF
6698
6699   cat >>$CONFIG_STATUS <<\_ACEOF
6700   # Split the substitutions into bite-sized pieces for seds with
6701   # small command number limits, like on Digital OSF/1 and HP-UX.
6702   ac_max_sed_lines=48
6703   ac_sed_frag=1 # Number of current file.
6704   ac_beg=1 # First line for current file.
6705   ac_end=$ac_max_sed_lines # Line after last line for current file.
6706   ac_more_lines=:
6707   ac_sed_cmds=
6708   while $ac_more_lines; do
6709     if test $ac_beg -gt 1; then
6710       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6711     else
6712       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6713     fi
6714     if test ! -s $tmp/subs.frag; then
6715       ac_more_lines=false
6716     else
6717       # The purpose of the label and of the branching condition is to
6718       # speed up the sed processing (if there are no `@' at all, there
6719       # is no need to browse any of the substitutions).
6720       # These are the two extra sed commands mentioned above.
6721       (echo ':t
6722   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6723       if test -z "$ac_sed_cmds"; then
6724         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6725       else
6726         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6727       fi
6728       ac_sed_frag=`expr $ac_sed_frag + 1`
6729       ac_beg=$ac_end
6730       ac_end=`expr $ac_end + $ac_max_sed_lines`
6731     fi
6732   done
6733   if test -z "$ac_sed_cmds"; then
6734     ac_sed_cmds=cat
6735   fi
6736 fi # test -n "$CONFIG_FILES"
6737
6738 _ACEOF
6739 cat >>$CONFIG_STATUS <<\_ACEOF
6740 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6741   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6742   case $ac_file in
6743   - | *:- | *:-:* ) # input from stdin
6744         cat >$tmp/stdin
6745         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6746         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6747   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6748         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6749   * )   ac_file_in=$ac_file.in ;;
6750   esac
6751
6752   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6753   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6754 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6755          X"$ac_file" : 'X\(//\)[^/]' \| \
6756          X"$ac_file" : 'X\(//\)$' \| \
6757          X"$ac_file" : 'X\(/\)' \| \
6758          .     : '\(.\)' 2>/dev/null ||
6759 echo X"$ac_file" |
6760     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6761           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6762           /^X\(\/\/\)$/{ s//\1/; q; }
6763           /^X\(\/\).*/{ s//\1/; q; }
6764           s/.*/./; q'`
6765   { if $as_mkdir_p; then
6766     mkdir -p "$ac_dir"
6767   else
6768     as_dir="$ac_dir"
6769     as_dirs=
6770     while test ! -d "$as_dir"; do
6771       as_dirs="$as_dir $as_dirs"
6772       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6773 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6774          X"$as_dir" : 'X\(//\)[^/]' \| \
6775          X"$as_dir" : 'X\(//\)$' \| \
6776          X"$as_dir" : 'X\(/\)' \| \
6777          .     : '\(.\)' 2>/dev/null ||
6778 echo X"$as_dir" |
6779     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6780           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6781           /^X\(\/\/\)$/{ s//\1/; q; }
6782           /^X\(\/\).*/{ s//\1/; q; }
6783           s/.*/./; q'`
6784     done
6785     test ! -n "$as_dirs" || mkdir $as_dirs
6786   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6787 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6788    { (exit 1); exit 1; }; }; }
6789
6790   ac_builddir=.
6791
6792 if test "$ac_dir" != .; then
6793   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6794   # A "../" for each directory in $ac_dir_suffix.
6795   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6796 else
6797   ac_dir_suffix= ac_top_builddir=
6798 fi
6799
6800 case $srcdir in
6801   .)  # No --srcdir option.  We are building in place.
6802     ac_srcdir=.
6803     if test -z "$ac_top_builddir"; then
6804        ac_top_srcdir=.
6805     else
6806        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6807     fi ;;
6808   [\\/]* | ?:[\\/]* )  # Absolute path.
6809     ac_srcdir=$srcdir$ac_dir_suffix;
6810     ac_top_srcdir=$srcdir ;;
6811   *) # Relative path.
6812     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6813     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6814 esac
6815 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6816 # absolute.
6817 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6818 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6819 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6820 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6821
6822
6823   case $INSTALL in
6824   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6825   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6826   esac
6827
6828   if test x"$ac_file" != x-; then
6829     { echo "$as_me:$LINENO: creating $ac_file" >&5
6830 echo "$as_me: creating $ac_file" >&6;}
6831     rm -f "$ac_file"
6832   fi
6833   # Let's still pretend it is `configure' which instantiates (i.e., don't
6834   # use $as_me), people would be surprised to read:
6835   #    /* config.h.  Generated by config.status.  */
6836   if test x"$ac_file" = x-; then
6837     configure_input=
6838   else
6839     configure_input="$ac_file.  "
6840   fi
6841   configure_input=$configure_input"Generated from `echo $ac_file_in |
6842                                      sed 's,.*/,,'` by configure."
6843
6844   # First look for the input files in the build tree, otherwise in the
6845   # src tree.
6846   ac_file_inputs=`IFS=:
6847     for f in $ac_file_in; do
6848       case $f in
6849       -) echo $tmp/stdin ;;
6850       [\\/$]*)
6851          # Absolute (can't be DOS-style, as IFS=:)
6852          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6853 echo "$as_me: error: cannot find input file: $f" >&2;}
6854    { (exit 1); exit 1; }; }
6855          echo $f;;
6856       *) # Relative
6857          if test -f "$f"; then
6858            # Build tree
6859            echo $f
6860          elif test -f "$srcdir/$f"; then
6861            # Source tree
6862            echo $srcdir/$f
6863          else
6864            # /dev/null tree
6865            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6866 echo "$as_me: error: cannot find input file: $f" >&2;}
6867    { (exit 1); exit 1; }; }
6868          fi;;
6869       esac
6870     done` || { (exit 1); exit 1; }
6871 _ACEOF
6872 cat >>$CONFIG_STATUS <<_ACEOF
6873   sed "$ac_vpsub
6874 $extrasub
6875 _ACEOF
6876 cat >>$CONFIG_STATUS <<\_ACEOF
6877 :t
6878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6879 s,@configure_input@,$configure_input,;t t
6880 s,@srcdir@,$ac_srcdir,;t t
6881 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6882 s,@top_srcdir@,$ac_top_srcdir,;t t
6883 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6884 s,@builddir@,$ac_builddir,;t t
6885 s,@abs_builddir@,$ac_abs_builddir,;t t
6886 s,@top_builddir@,$ac_top_builddir,;t t
6887 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6888 s,@INSTALL@,$ac_INSTALL,;t t
6889 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6890   rm -f $tmp/stdin
6891   if test x"$ac_file" != x-; then
6892     mv $tmp/out $ac_file
6893   else
6894     cat $tmp/out
6895     rm -f $tmp/out
6896   fi
6897
6898 done
6899 _ACEOF
6900 cat >>$CONFIG_STATUS <<\_ACEOF
6901
6902 #
6903 # CONFIG_COMMANDS section.
6904 #
6905 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6906   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6907   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6908   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6909 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6910          X"$ac_dest" : 'X\(//\)[^/]' \| \
6911          X"$ac_dest" : 'X\(//\)$' \| \
6912          X"$ac_dest" : 'X\(/\)' \| \
6913          .     : '\(.\)' 2>/dev/null ||
6914 echo X"$ac_dest" |
6915     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6916           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6917           /^X\(\/\/\)$/{ s//\1/; q; }
6918           /^X\(\/\).*/{ s//\1/; q; }
6919           s/.*/./; q'`
6920   ac_builddir=.
6921
6922 if test "$ac_dir" != .; then
6923   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6924   # A "../" for each directory in $ac_dir_suffix.
6925   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6926 else
6927   ac_dir_suffix= ac_top_builddir=
6928 fi
6929
6930 case $srcdir in
6931   .)  # No --srcdir option.  We are building in place.
6932     ac_srcdir=.
6933     if test -z "$ac_top_builddir"; then
6934        ac_top_srcdir=.
6935     else
6936        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6937     fi ;;
6938   [\\/]* | ?:[\\/]* )  # Absolute path.
6939     ac_srcdir=$srcdir$ac_dir_suffix;
6940     ac_top_srcdir=$srcdir ;;
6941   *) # Relative path.
6942     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6943     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6944 esac
6945 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6946 # absolute.
6947 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6948 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6949 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6950 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6951
6952
6953   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6954 echo "$as_me: executing $ac_dest commands" >&6;}
6955   case $ac_dest in
6956     default )
6957 echo "$INCLUDES $DEFS" > boehm-cflags
6958
6959 if test -n "$CONFIG_FILES"; then
6960   LD="${ORIGINAL_LD_FOR_MULTILIBS}"
6961   ac_file=Makefile . ${gc_basedir}/../config-ml.in
6962 fi ;;
6963   esac
6964 done
6965 _ACEOF
6966
6967 cat >>$CONFIG_STATUS <<\_ACEOF
6968
6969 { (exit 0); exit 0; }
6970 _ACEOF
6971 chmod +x $CONFIG_STATUS
6972 ac_clean_files=$ac_clean_files_save
6973
6974
6975 # configure is writing to config.log, and then calls config.status.
6976 # config.status does its own redirection, appending to config.log.
6977 # Unfortunately, on DOS this fails, as config.log is still kept open
6978 # by configure, so config.status won't be able to write to it; its
6979 # output is simply discarded.  So we exec the FD to /dev/null,
6980 # effectively closing config.log, so it can be properly (re)opened and
6981 # appended to by config.status.  When coming back to configure, we
6982 # need to make the FD available again.
6983 if test "$no_create" != yes; then
6984   ac_cs_success=:
6985   ac_config_status_args=
6986   test "$silent" = yes &&
6987     ac_config_status_args="$ac_config_status_args --quiet"
6988   exec 5>/dev/null
6989   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6990   exec 5>>config.log
6991   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6992   # would make configure fail if this is the last instruction.
6993   $ac_cs_success || { (exit 1); exit 1; }
6994 fi
6995