OSDN Git Service

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