Initial commit
[profile/ivi/bc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for bc 1.06.95.
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='bc'
269 PACKAGE_TARNAME='bc'
270 PACKAGE_VERSION='1.06.95'
271 PACKAGE_STRING='bc 1.06.95'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="doc/bc.1"
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 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 CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LEX LEXLIB LEX_OUTPUT_ROOT YACC RANLIB ac_ct_RANLIB READLINELIB BC_VERSION DC_VERSION 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_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures bc 1.06.95 to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 Program names:
835   --program-prefix=PREFIX            prepend PREFIX to installed program names
836   --program-suffix=SUFFIX            append SUFFIX to installed program names
837   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842   case $ac_init_help in
843      short | recursive ) echo "Configuration of bc 1.06.95:";;
844    esac
845   cat <<\_ACEOF
846
847 Optional Features:
848   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
849   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
850   --disable-dependency-tracking  speeds up one-time build
851   --enable-dependency-tracking   do not reject slow dependency extractors
852
853 Optional Packages:
854   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
855   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
856   --with-pkg              use software installed in /usr/pkg tree
857   --with-libedit          support fancy BSD command input editing
858   --with-readline         support fancy command input editing
859
860 Some influential environment variables:
861   CC          C compiler command
862   CFLAGS      C compiler flags
863   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
864               nonstandard directory <lib dir>
865   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
866               headers in a nonstandard directory <include dir>
867   CPP         C preprocessor
868
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
871
872 _ACEOF
873 fi
874
875 if test "$ac_init_help" = "recursive"; then
876   # If there are subdirs, report their specific --help.
877   ac_popdir=`pwd`
878   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879     test -d $ac_dir || continue
880     ac_builddir=.
881
882 if test "$ac_dir" != .; then
883   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884   # A "../" for each directory in $ac_dir_suffix.
885   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887   ac_dir_suffix= ac_top_builddir=
888 fi
889
890 case $srcdir in
891   .)  # No --srcdir option.  We are building in place.
892     ac_srcdir=.
893     if test -z "$ac_top_builddir"; then
894        ac_top_srcdir=.
895     else
896        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897     fi ;;
898   [\\/]* | ?:[\\/]* )  # Absolute path.
899     ac_srcdir=$srcdir$ac_dir_suffix;
900     ac_top_srcdir=$srcdir ;;
901   *) # Relative path.
902     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903     ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
905
906 # Do not use `cd foo && pwd` to compute absolute paths, because
907 # the directories may not exist.
908 case `pwd` in
909 .) ac_abs_builddir="$ac_dir";;
910 *)
911   case "$ac_dir" in
912   .) ac_abs_builddir=`pwd`;;
913   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914   *) ac_abs_builddir=`pwd`/"$ac_dir";;
915   esac;;
916 esac
917 case $ac_abs_builddir in
918 .) ac_abs_top_builddir=${ac_top_builddir}.;;
919 *)
920   case ${ac_top_builddir}. in
921   .) ac_abs_top_builddir=$ac_abs_builddir;;
922   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
923   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
924   esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_srcdir=$ac_srcdir;;
928 *)
929   case $ac_srcdir in
930   .) ac_abs_srcdir=$ac_abs_builddir;;
931   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
933   esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_srcdir=$ac_top_srcdir;;
937 *)
938   case $ac_top_srcdir in
939   .) ac_abs_top_srcdir=$ac_abs_builddir;;
940   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
941   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
942   esac;;
943 esac
944
945     cd $ac_dir
946     # Check for guested configure; otherwise get Cygnus style configure.
947     if test -f $ac_srcdir/configure.gnu; then
948       echo
949       $SHELL $ac_srcdir/configure.gnu  --help=recursive
950     elif test -f $ac_srcdir/configure; then
951       echo
952       $SHELL $ac_srcdir/configure  --help=recursive
953     elif test -f $ac_srcdir/configure.ac ||
954            test -f $ac_srcdir/configure.in; then
955       echo
956       $ac_configure --help
957     else
958       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
959     fi
960     cd $ac_popdir
961   done
962 fi
963
964 test -n "$ac_init_help" && exit 0
965 if $ac_init_version; then
966   cat <<\_ACEOF
967 bc configure 1.06.95
968 generated by GNU Autoconf 2.59
969
970 Copyright (C) 2003 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
973 _ACEOF
974   exit 0
975 fi
976 exec 5>config.log
977 cat >&5 <<_ACEOF
978 This file contains any messages produced by compilers while
979 running configure, to aid debugging if configure makes a mistake.
980
981 It was created by bc $as_me 1.06.95, which was
982 generated by GNU Autoconf 2.59.  Invocation command line was
983
984   $ $0 $@
985
986 _ACEOF
987 {
988 cat <<_ASUNAME
989 ## --------- ##
990 ## Platform. ##
991 ## --------- ##
992
993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
998
999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1001
1002 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1003 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1006 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1007 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1008 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1009
1010 _ASUNAME
1011
1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1013 for as_dir in $PATH
1014 do
1015   IFS=$as_save_IFS
1016   test -z "$as_dir" && as_dir=.
1017   echo "PATH: $as_dir"
1018 done
1019
1020 } >&5
1021
1022 cat >&5 <<_ACEOF
1023
1024
1025 ## ----------- ##
1026 ## Core tests. ##
1027 ## ----------- ##
1028
1029 _ACEOF
1030
1031
1032 # Keep a trace of the command line.
1033 # Strip out --no-create and --no-recursion so they do not pile up.
1034 # Strip out --silent because we don't want to record it for future runs.
1035 # Also quote any args containing shell meta-characters.
1036 # Make two passes to allow for proper duplicate-argument suppression.
1037 ac_configure_args=
1038 ac_configure_args0=
1039 ac_configure_args1=
1040 ac_sep=
1041 ac_must_keep_next=false
1042 for ac_pass in 1 2
1043 do
1044   for ac_arg
1045   do
1046     case $ac_arg in
1047     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049     | -silent | --silent | --silen | --sile | --sil)
1050       continue ;;
1051     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1053     esac
1054     case $ac_pass in
1055     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1056     2)
1057       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058       if test $ac_must_keep_next = true; then
1059         ac_must_keep_next=false # Got value, back to normal.
1060       else
1061         case $ac_arg in
1062           *=* | --config-cache | -C | -disable-* | --disable-* \
1063           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065           | -with-* | --with-* | -without-* | --without-* | --x)
1066             case "$ac_configure_args0 " in
1067               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1068             esac
1069             ;;
1070           -* ) ac_must_keep_next=true ;;
1071         esac
1072       fi
1073       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074       # Get rid of the leading space.
1075       ac_sep=" "
1076       ;;
1077     esac
1078   done
1079 done
1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1082
1083 # When interrupted or exit'd, cleanup temporary files, and complete
1084 # config.log.  We remove comments because anyway the quotes in there
1085 # would cause problems or look ugly.
1086 # WARNING: Be sure not to use single quotes in there, as some shells,
1087 # such as our DU 5.0 friend, will then `close' the trap.
1088 trap 'exit_status=$?
1089   # Save into config.log some information that might help in debugging.
1090   {
1091     echo
1092
1093     cat <<\_ASBOX
1094 ## ---------------- ##
1095 ## Cache variables. ##
1096 ## ---------------- ##
1097 _ASBOX
1098     echo
1099     # The following way of writing the cache mishandles newlines in values,
1100 {
1101   (set) 2>&1 |
1102     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1103     *ac_space=\ *)
1104       sed -n \
1105         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1107       ;;
1108     *)
1109       sed -n \
1110         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1111       ;;
1112     esac;
1113 }
1114     echo
1115
1116     cat <<\_ASBOX
1117 ## ----------------- ##
1118 ## Output variables. ##
1119 ## ----------------- ##
1120 _ASBOX
1121     echo
1122     for ac_var in $ac_subst_vars
1123     do
1124       eval ac_val=$`echo $ac_var`
1125       echo "$ac_var='"'"'$ac_val'"'"'"
1126     done | sort
1127     echo
1128
1129     if test -n "$ac_subst_files"; then
1130       cat <<\_ASBOX
1131 ## ------------- ##
1132 ## Output files. ##
1133 ## ------------- ##
1134 _ASBOX
1135       echo
1136       for ac_var in $ac_subst_files
1137       do
1138         eval ac_val=$`echo $ac_var`
1139         echo "$ac_var='"'"'$ac_val'"'"'"
1140       done | sort
1141       echo
1142     fi
1143
1144     if test -s confdefs.h; then
1145       cat <<\_ASBOX
1146 ## ----------- ##
1147 ## confdefs.h. ##
1148 ## ----------- ##
1149 _ASBOX
1150       echo
1151       sed "/^$/d" confdefs.h | sort
1152       echo
1153     fi
1154     test "$ac_signal" != 0 &&
1155       echo "$as_me: caught signal $ac_signal"
1156     echo "$as_me: exit $exit_status"
1157   } >&5
1158   rm -f core *.core &&
1159   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1160     exit $exit_status
1161      ' 0
1162 for ac_signal in 1 2 13 15; do
1163   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1164 done
1165 ac_signal=0
1166
1167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168 rm -rf conftest* confdefs.h
1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1170 echo >confdefs.h
1171
1172 # Predefined preprocessor variables.
1173
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_NAME "$PACKAGE_NAME"
1176 _ACEOF
1177
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1181 _ACEOF
1182
1183
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1186 _ACEOF
1187
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_STRING "$PACKAGE_STRING"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1196 _ACEOF
1197
1198
1199 # Let the site file select an alternate cache file if it wants to.
1200 # Prefer explicitly selected file to automatically selected ones.
1201 if test -z "$CONFIG_SITE"; then
1202   if test "x$prefix" != xNONE; then
1203     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204   else
1205     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1206   fi
1207 fi
1208 for ac_site_file in $CONFIG_SITE; do
1209   if test -r "$ac_site_file"; then
1210     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211 echo "$as_me: loading site script $ac_site_file" >&6;}
1212     sed 's/^/| /' "$ac_site_file" >&5
1213     . "$ac_site_file"
1214   fi
1215 done
1216
1217 if test -r "$cache_file"; then
1218   # Some versions of bash will fail to source /dev/null (special
1219   # files actually), so we avoid doing that.
1220   if test -f "$cache_file"; then
1221     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222 echo "$as_me: loading cache $cache_file" >&6;}
1223     case $cache_file in
1224       [\\/]* | ?:[\\/]* ) . $cache_file;;
1225       *)                      . ./$cache_file;;
1226     esac
1227   fi
1228 else
1229   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230 echo "$as_me: creating cache $cache_file" >&6;}
1231   >$cache_file
1232 fi
1233
1234 # Check that the precious variables saved in the cache have kept the same
1235 # value.
1236 ac_cache_corrupted=false
1237 for ac_var in `(set) 2>&1 |
1238                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240   eval ac_new_set=\$ac_env_${ac_var}_set
1241   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242   eval ac_new_val="\$ac_env_${ac_var}_value"
1243   case $ac_old_set,$ac_new_set in
1244     set,)
1245       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247       ac_cache_corrupted=: ;;
1248     ,set)
1249       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251       ac_cache_corrupted=: ;;
1252     ,);;
1253     *)
1254       if test "x$ac_old_val" != "x$ac_new_val"; then
1255         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1258 echo "$as_me:   former value:  $ac_old_val" >&2;}
1259         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1260 echo "$as_me:   current value: $ac_new_val" >&2;}
1261         ac_cache_corrupted=:
1262       fi;;
1263   esac
1264   # Pass precious variables to config.status.
1265   if test "$ac_new_set" = set; then
1266     case $ac_new_val in
1267     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269     *) ac_arg=$ac_var=$ac_new_val ;;
1270     esac
1271     case " $ac_configure_args " in
1272       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1273       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1274     esac
1275   fi
1276 done
1277 if $ac_cache_corrupted; then
1278   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1280   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282    { (exit 1); exit 1; }; }
1283 fi
1284
1285 ac_ext=c
1286 ac_cpp='$CPP $CPPFLAGS'
1287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318 am__api_version="1.9"
1319 ac_aux_dir=
1320 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1321   if test -f $ac_dir/install-sh; then
1322     ac_aux_dir=$ac_dir
1323     ac_install_sh="$ac_aux_dir/install-sh -c"
1324     break
1325   elif test -f $ac_dir/install.sh; then
1326     ac_aux_dir=$ac_dir
1327     ac_install_sh="$ac_aux_dir/install.sh -c"
1328     break
1329   elif test -f $ac_dir/shtool; then
1330     ac_aux_dir=$ac_dir
1331     ac_install_sh="$ac_aux_dir/shtool install -c"
1332     break
1333   fi
1334 done
1335 if test -z "$ac_aux_dir"; then
1336   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1337 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1338    { (exit 1); exit 1; }; }
1339 fi
1340 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1341 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1342 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1343
1344 # Find a good install program.  We prefer a C program (faster),
1345 # so one script is as good as another.  But avoid the broken or
1346 # incompatible versions:
1347 # SysV /etc/install, /usr/sbin/install
1348 # SunOS /usr/etc/install
1349 # IRIX /sbin/install
1350 # AIX /bin/install
1351 # AmigaOS /C/install, which installs bootblocks on floppy discs
1352 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1353 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1354 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1355 # OS/2's system install, which has a completely different semantic
1356 # ./install, which can be erroneously created by make from ./install.sh.
1357 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1358 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1359 if test -z "$INSTALL"; then
1360 if test "${ac_cv_path_install+set}" = set; then
1361   echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1364 for as_dir in $PATH
1365 do
1366   IFS=$as_save_IFS
1367   test -z "$as_dir" && as_dir=.
1368   # Account for people who put trailing slashes in PATH elements.
1369 case $as_dir/ in
1370   ./ | .// | /cC/* | \
1371   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1372   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1373   /usr/ucb/* ) ;;
1374   *)
1375     # OSF1 and SCO ODT 3.0 have their own names for install.
1376     # Don't use installbsd from OSF since it installs stuff as root
1377     # by default.
1378     for ac_prog in ginstall scoinst install; do
1379       for ac_exec_ext in '' $ac_executable_extensions; do
1380         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1381           if test $ac_prog = install &&
1382             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1383             # AIX install.  It has an incompatible calling convention.
1384             :
1385           elif test $ac_prog = install &&
1386             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1387             # program-specific install script used by HP pwplus--don't use.
1388             :
1389           else
1390             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1391             break 3
1392           fi
1393         fi
1394       done
1395     done
1396     ;;
1397 esac
1398 done
1399
1400
1401 fi
1402   if test "${ac_cv_path_install+set}" = set; then
1403     INSTALL=$ac_cv_path_install
1404   else
1405     # As a last resort, use the slow shell script.  We don't cache a
1406     # path for INSTALL within a source directory, because that will
1407     # break other packages using the cache if that directory is
1408     # removed, or if the path is relative.
1409     INSTALL=$ac_install_sh
1410   fi
1411 fi
1412 echo "$as_me:$LINENO: result: $INSTALL" >&5
1413 echo "${ECHO_T}$INSTALL" >&6
1414
1415 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1416 # It thinks the first close brace ends the variable substitution.
1417 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1418
1419 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1420
1421 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1422
1423 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1424 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1425 # Just in case
1426 sleep 1
1427 echo timestamp > conftest.file
1428 # Do `set' in a subshell so we don't clobber the current shell's
1429 # arguments.  Must try -L first in case configure is actually a
1430 # symlink; some systems play weird games with the mod time of symlinks
1431 # (eg FreeBSD returns the mod time of the symlink's containing
1432 # directory).
1433 if (
1434    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1435    if test "$*" = "X"; then
1436       # -L didn't work.
1437       set X `ls -t $srcdir/configure conftest.file`
1438    fi
1439    rm -f conftest.file
1440    if test "$*" != "X $srcdir/configure conftest.file" \
1441       && test "$*" != "X conftest.file $srcdir/configure"; then
1442
1443       # If neither matched, then we have a broken ls.  This can happen
1444       # if, for instance, CONFIG_SHELL is bash and it inherits a
1445       # broken ls alias from the environment.  This has actually
1446       # happened.  Such a system could not be considered "sane".
1447       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1448 alias in your environment" >&5
1449 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1450 alias in your environment" >&2;}
1451    { (exit 1); exit 1; }; }
1452    fi
1453
1454    test "$2" = conftest.file
1455    )
1456 then
1457    # Ok.
1458    :
1459 else
1460    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1461 Check your system clock" >&5
1462 echo "$as_me: error: newly created file is older than distributed files!
1463 Check your system clock" >&2;}
1464    { (exit 1); exit 1; }; }
1465 fi
1466 echo "$as_me:$LINENO: result: yes" >&5
1467 echo "${ECHO_T}yes" >&6
1468 test "$program_prefix" != NONE &&
1469   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1470 # Use a double $ so make ignores it.
1471 test "$program_suffix" != NONE &&
1472   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1473 # Double any \ or $.  echo might interpret backslashes.
1474 # By default was `s,x,x', remove it if useless.
1475 cat <<\_ACEOF >conftest.sed
1476 s/[\\$]/&&/g;s/;s,x,x,$//
1477 _ACEOF
1478 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1479 rm conftest.sed
1480
1481 # expand $ac_aux_dir to an absolute path
1482 am_aux_dir=`cd $ac_aux_dir && pwd`
1483
1484 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1485 # Use eval to expand $SHELL
1486 if eval "$MISSING --run true"; then
1487   am_missing_run="$MISSING --run "
1488 else
1489   am_missing_run=
1490   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1491 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1492 fi
1493
1494 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1495   # We used to keeping the `.' as first argument, in order to
1496   # allow $(mkdir_p) to be used without argument.  As in
1497   #   $(mkdir_p) $(somedir)
1498   # where $(somedir) is conditionally defined.  However this is wrong
1499   # for two reasons:
1500   #  1. if the package is installed by a user who cannot write `.'
1501   #     make install will fail,
1502   #  2. the above comment should most certainly read
1503   #     $(mkdir_p) $(DESTDIR)$(somedir)
1504   #     so it does not work when $(somedir) is undefined and
1505   #     $(DESTDIR) is not.
1506   #  To support the latter case, we have to write
1507   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1508   #  so the `.' trick is pointless.
1509   mkdir_p='mkdir -p --'
1510 else
1511   # On NextStep and OpenStep, the `mkdir' command does not
1512   # recognize any option.  It will interpret all options as
1513   # directories to create, and then abort because `.' already
1514   # exists.
1515   for d in ./-p ./--version;
1516   do
1517     test -d $d && rmdir $d
1518   done
1519   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1520   if test -f "$ac_aux_dir/mkinstalldirs"; then
1521     mkdir_p='$(mkinstalldirs)'
1522   else
1523     mkdir_p='$(install_sh) -d'
1524   fi
1525 fi
1526
1527 for ac_prog in gawk mawk nawk awk
1528 do
1529   # Extract the first word of "$ac_prog", so it can be a program name with args.
1530 set dummy $ac_prog; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_AWK+set}" = set; then
1534   echo $ECHO_N "(cached) $ECHO_C" >&6
1535 else
1536   if test -n "$AWK"; then
1537   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1538 else
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 for as_dir in $PATH
1541 do
1542   IFS=$as_save_IFS
1543   test -z "$as_dir" && as_dir=.
1544   for ac_exec_ext in '' $ac_executable_extensions; do
1545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546     ac_cv_prog_AWK="$ac_prog"
1547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548     break 2
1549   fi
1550 done
1551 done
1552
1553 fi
1554 fi
1555 AWK=$ac_cv_prog_AWK
1556 if test -n "$AWK"; then
1557   echo "$as_me:$LINENO: result: $AWK" >&5
1558 echo "${ECHO_T}$AWK" >&6
1559 else
1560   echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1562 fi
1563
1564   test -n "$AWK" && break
1565 done
1566
1567 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1568 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1569 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1570 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1571   echo $ECHO_N "(cached) $ECHO_C" >&6
1572 else
1573   cat >conftest.make <<\_ACEOF
1574 all:
1575         @echo 'ac_maketemp="$(MAKE)"'
1576 _ACEOF
1577 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1578 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1579 if test -n "$ac_maketemp"; then
1580   eval ac_cv_prog_make_${ac_make}_set=yes
1581 else
1582   eval ac_cv_prog_make_${ac_make}_set=no
1583 fi
1584 rm -f conftest.make
1585 fi
1586 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1587   echo "$as_me:$LINENO: result: yes" >&5
1588 echo "${ECHO_T}yes" >&6
1589   SET_MAKE=
1590 else
1591   echo "$as_me:$LINENO: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1593   SET_MAKE="MAKE=${MAKE-make}"
1594 fi
1595
1596 rm -rf .tst 2>/dev/null
1597 mkdir .tst 2>/dev/null
1598 if test -d .tst; then
1599   am__leading_dot=.
1600 else
1601   am__leading_dot=_
1602 fi
1603 rmdir .tst 2>/dev/null
1604
1605 # test to see if srcdir already configured
1606 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1607    test -f $srcdir/config.status; then
1608   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1609 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1610    { (exit 1); exit 1; }; }
1611 fi
1612
1613 # test whether we have cygpath
1614 if test -z "$CYGPATH_W"; then
1615   if (cygpath --version) >/dev/null 2>/dev/null; then
1616     CYGPATH_W='cygpath -w'
1617   else
1618     CYGPATH_W=echo
1619   fi
1620 fi
1621
1622
1623 # Define the identity of the package.
1624  PACKAGE='bc'
1625  VERSION='1.06.95'
1626
1627
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE "$PACKAGE"
1630 _ACEOF
1631
1632
1633 cat >>confdefs.h <<_ACEOF
1634 #define VERSION "$VERSION"
1635 _ACEOF
1636
1637 # Some tools Automake needs.
1638
1639 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1640
1641
1642 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1643
1644
1645 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1646
1647
1648 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1649
1650
1651 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1652
1653 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1654
1655 # Installed binaries are usually stripped using `strip' when the user
1656 # run `make install-strip'.  However `strip' might not be the right
1657 # tool to use in cross-compilation environments, therefore Automake
1658 # will honor the `STRIP' environment variable to overrule this program.
1659 if test "$cross_compiling" != no; then
1660   if test -n "$ac_tool_prefix"; then
1661   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1662 set dummy ${ac_tool_prefix}strip; ac_word=$2
1663 echo "$as_me:$LINENO: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_STRIP+set}" = set; then
1666   echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668   if test -n "$STRIP"; then
1669   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1670 else
1671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 for as_dir in $PATH
1673 do
1674   IFS=$as_save_IFS
1675   test -z "$as_dir" && as_dir=.
1676   for ac_exec_ext in '' $ac_executable_extensions; do
1677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680     break 2
1681   fi
1682 done
1683 done
1684
1685 fi
1686 fi
1687 STRIP=$ac_cv_prog_STRIP
1688 if test -n "$STRIP"; then
1689   echo "$as_me:$LINENO: result: $STRIP" >&5
1690 echo "${ECHO_T}$STRIP" >&6
1691 else
1692   echo "$as_me:$LINENO: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1694 fi
1695
1696 fi
1697 if test -z "$ac_cv_prog_STRIP"; then
1698   ac_ct_STRIP=$STRIP
1699   # Extract the first word of "strip", so it can be a program name with args.
1700 set dummy strip; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1704   echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706   if test -n "$ac_ct_STRIP"; then
1707   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1708 else
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1711 do
1712   IFS=$as_save_IFS
1713   test -z "$as_dir" && as_dir=.
1714   for ac_exec_ext in '' $ac_executable_extensions; do
1715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716     ac_cv_prog_ac_ct_STRIP="strip"
1717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718     break 2
1719   fi
1720 done
1721 done
1722
1723   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1724 fi
1725 fi
1726 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1727 if test -n "$ac_ct_STRIP"; then
1728   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1729 echo "${ECHO_T}$ac_ct_STRIP" >&6
1730 else
1731   echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1733 fi
1734
1735   STRIP=$ac_ct_STRIP
1736 else
1737   STRIP="$ac_cv_prog_STRIP"
1738 fi
1739
1740 fi
1741 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1742
1743 # We need awk for the "check" target.  The system "awk" is bad on
1744 # some platforms.
1745 # Always define AMTAR for backward compatibility.
1746
1747 AMTAR=${AMTAR-"${am_missing_run}tar"}
1748
1749 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1750
1751
1752
1753
1754
1755           ac_config_headers="$ac_config_headers config.h"
1756
1757
1758
1759 cat >>confdefs.h <<\_ACEOF
1760 #define DC_VERSION "1.3.95"
1761 _ACEOF
1762
1763
1764
1765 cat >>confdefs.h <<\_ACEOF
1766 #define BC_COPYRIGHT "Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc."
1767 _ACEOF
1768
1769
1770
1771 cat >>confdefs.h <<\_ACEOF
1772 #define DC_COPYRIGHT "Copyright 1994, 1997, 1998, 2000, 2001, 2004, 2005, 2006 Free Software Foundation, Inc."
1773 _ACEOF
1774
1775
1776 ac_ext=c
1777 ac_cpp='$CPP $CPPFLAGS'
1778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1781 if test -n "$ac_tool_prefix"; then
1782   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1783 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1784 echo "$as_me:$LINENO: checking for $ac_word" >&5
1785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1786 if test "${ac_cv_prog_CC+set}" = set; then
1787   echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789   if test -n "$CC"; then
1790   ac_cv_prog_CC="$CC" # Let the user override the test.
1791 else
1792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793 for as_dir in $PATH
1794 do
1795   IFS=$as_save_IFS
1796   test -z "$as_dir" && as_dir=.
1797   for ac_exec_ext in '' $ac_executable_extensions; do
1798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1799     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801     break 2
1802   fi
1803 done
1804 done
1805
1806 fi
1807 fi
1808 CC=$ac_cv_prog_CC
1809 if test -n "$CC"; then
1810   echo "$as_me:$LINENO: result: $CC" >&5
1811 echo "${ECHO_T}$CC" >&6
1812 else
1813   echo "$as_me:$LINENO: result: no" >&5
1814 echo "${ECHO_T}no" >&6
1815 fi
1816
1817 fi
1818 if test -z "$ac_cv_prog_CC"; then
1819   ac_ct_CC=$CC
1820   # Extract the first word of "gcc", so it can be a program name with args.
1821 set dummy gcc; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1825   echo $ECHO_N "(cached) $ECHO_C" >&6
1826 else
1827   if test -n "$ac_ct_CC"; then
1828   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1829 else
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 for as_dir in $PATH
1832 do
1833   IFS=$as_save_IFS
1834   test -z "$as_dir" && as_dir=.
1835   for ac_exec_ext in '' $ac_executable_extensions; do
1836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837     ac_cv_prog_ac_ct_CC="gcc"
1838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839     break 2
1840   fi
1841 done
1842 done
1843
1844 fi
1845 fi
1846 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1847 if test -n "$ac_ct_CC"; then
1848   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1849 echo "${ECHO_T}$ac_ct_CC" >&6
1850 else
1851   echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1853 fi
1854
1855   CC=$ac_ct_CC
1856 else
1857   CC="$ac_cv_prog_CC"
1858 fi
1859
1860 if test -z "$CC"; then
1861   if test -n "$ac_tool_prefix"; then
1862   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1863 set dummy ${ac_tool_prefix}cc; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_CC+set}" = set; then
1867   echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869   if test -n "$CC"; then
1870   ac_cv_prog_CC="$CC" # Let the user override the test.
1871 else
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1874 do
1875   IFS=$as_save_IFS
1876   test -z "$as_dir" && as_dir=.
1877   for ac_exec_ext in '' $ac_executable_extensions; do
1878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879     ac_cv_prog_CC="${ac_tool_prefix}cc"
1880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881     break 2
1882   fi
1883 done
1884 done
1885
1886 fi
1887 fi
1888 CC=$ac_cv_prog_CC
1889 if test -n "$CC"; then
1890   echo "$as_me:$LINENO: result: $CC" >&5
1891 echo "${ECHO_T}$CC" >&6
1892 else
1893   echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1895 fi
1896
1897 fi
1898 if test -z "$ac_cv_prog_CC"; then
1899   ac_ct_CC=$CC
1900   # Extract the first word of "cc", so it can be a program name with args.
1901 set dummy cc; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1905   echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907   if test -n "$ac_ct_CC"; then
1908   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1909 else
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1912 do
1913   IFS=$as_save_IFS
1914   test -z "$as_dir" && as_dir=.
1915   for ac_exec_ext in '' $ac_executable_extensions; do
1916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917     ac_cv_prog_ac_ct_CC="cc"
1918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919     break 2
1920   fi
1921 done
1922 done
1923
1924 fi
1925 fi
1926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1927 if test -n "$ac_ct_CC"; then
1928   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1929 echo "${ECHO_T}$ac_ct_CC" >&6
1930 else
1931   echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1933 fi
1934
1935   CC=$ac_ct_CC
1936 else
1937   CC="$ac_cv_prog_CC"
1938 fi
1939
1940 fi
1941 if test -z "$CC"; then
1942   # Extract the first word of "cc", so it can be a program name with args.
1943 set dummy cc; ac_word=$2
1944 echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946 if test "${ac_cv_prog_CC+set}" = set; then
1947   echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949   if test -n "$CC"; then
1950   ac_cv_prog_CC="$CC" # Let the user override the test.
1951 else
1952   ac_prog_rejected=no
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1955 do
1956   IFS=$as_save_IFS
1957   test -z "$as_dir" && as_dir=.
1958   for ac_exec_ext in '' $ac_executable_extensions; do
1959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1961        ac_prog_rejected=yes
1962        continue
1963      fi
1964     ac_cv_prog_CC="cc"
1965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966     break 2
1967   fi
1968 done
1969 done
1970
1971 if test $ac_prog_rejected = yes; then
1972   # We found a bogon in the path, so make sure we never use it.
1973   set dummy $ac_cv_prog_CC
1974   shift
1975   if test $# != 0; then
1976     # We chose a different compiler from the bogus one.
1977     # However, it has the same basename, so the bogon will be chosen
1978     # first if we set CC to just the basename; use the full file name.
1979     shift
1980     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1981   fi
1982 fi
1983 fi
1984 fi
1985 CC=$ac_cv_prog_CC
1986 if test -n "$CC"; then
1987   echo "$as_me:$LINENO: result: $CC" >&5
1988 echo "${ECHO_T}$CC" >&6
1989 else
1990   echo "$as_me:$LINENO: result: no" >&5
1991 echo "${ECHO_T}no" >&6
1992 fi
1993
1994 fi
1995 if test -z "$CC"; then
1996   if test -n "$ac_tool_prefix"; then
1997   for ac_prog in cl
1998   do
1999     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2000 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_CC+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   if test -n "$CC"; then
2007   ac_cv_prog_CC="$CC" # Let the user override the test.
2008 else
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2011 do
2012   IFS=$as_save_IFS
2013   test -z "$as_dir" && as_dir=.
2014   for ac_exec_ext in '' $ac_executable_extensions; do
2015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018     break 2
2019   fi
2020 done
2021 done
2022
2023 fi
2024 fi
2025 CC=$ac_cv_prog_CC
2026 if test -n "$CC"; then
2027   echo "$as_me:$LINENO: result: $CC" >&5
2028 echo "${ECHO_T}$CC" >&6
2029 else
2030   echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2032 fi
2033
2034     test -n "$CC" && break
2035   done
2036 fi
2037 if test -z "$CC"; then
2038   ac_ct_CC=$CC
2039   for ac_prog in cl
2040 do
2041   # Extract the first word of "$ac_prog", so it can be a program name with args.
2042 set dummy $ac_prog; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2046   echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048   if test -n "$ac_ct_CC"; then
2049   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2050 else
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2053 do
2054   IFS=$as_save_IFS
2055   test -z "$as_dir" && as_dir=.
2056   for ac_exec_ext in '' $ac_executable_extensions; do
2057   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058     ac_cv_prog_ac_ct_CC="$ac_prog"
2059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060     break 2
2061   fi
2062 done
2063 done
2064
2065 fi
2066 fi
2067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2068 if test -n "$ac_ct_CC"; then
2069   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2070 echo "${ECHO_T}$ac_ct_CC" >&6
2071 else
2072   echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2074 fi
2075
2076   test -n "$ac_ct_CC" && break
2077 done
2078
2079   CC=$ac_ct_CC
2080 fi
2081
2082 fi
2083
2084
2085 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2086 See \`config.log' for more details." >&5
2087 echo "$as_me: error: no acceptable C compiler found in \$PATH
2088 See \`config.log' for more details." >&2;}
2089    { (exit 1); exit 1; }; }
2090
2091 # Provide some information about the compiler.
2092 echo "$as_me:$LINENO:" \
2093      "checking for C compiler version" >&5
2094 ac_compiler=`set X $ac_compile; echo $2`
2095 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2096   (eval $ac_compiler --version </dev/null >&5) 2>&5
2097   ac_status=$?
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); }
2100 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2101   (eval $ac_compiler -v </dev/null >&5) 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }
2105 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2106   (eval $ac_compiler -V </dev/null >&5) 2>&5
2107   ac_status=$?
2108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109   (exit $ac_status); }
2110
2111 cat >conftest.$ac_ext <<_ACEOF
2112 /* confdefs.h.  */
2113 _ACEOF
2114 cat confdefs.h >>conftest.$ac_ext
2115 cat >>conftest.$ac_ext <<_ACEOF
2116 /* end confdefs.h.  */
2117
2118 int
2119 main ()
2120 {
2121
2122   ;
2123   return 0;
2124 }
2125 _ACEOF
2126 ac_clean_files_save=$ac_clean_files
2127 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2128 # Try to create an executable without -o first, disregard a.out.
2129 # It will help us diagnose broken compilers, and finding out an intuition
2130 # of exeext.
2131 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2132 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2133 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2134 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2135   (eval $ac_link_default) 2>&5
2136   ac_status=$?
2137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138   (exit $ac_status); }; then
2139   # Find the output, starting from the most likely.  This scheme is
2140 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2141 # resort.
2142
2143 # Be careful to initialize this variable, since it used to be cached.
2144 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2145 ac_cv_exeext=
2146 # b.out is created by i960 compilers.
2147 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2148 do
2149   test -f "$ac_file" || continue
2150   case $ac_file in
2151     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2152         ;;
2153     conftest.$ac_ext )
2154         # This is the source file.
2155         ;;
2156     [ab].out )
2157         # We found the default executable, but exeext='' is most
2158         # certainly right.
2159         break;;
2160     *.* )
2161         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2162         # FIXME: I believe we export ac_cv_exeext for Libtool,
2163         # but it would be cool to find out if it's true.  Does anybody
2164         # maintain Libtool? --akim.
2165         export ac_cv_exeext
2166         break;;
2167     * )
2168         break;;
2169   esac
2170 done
2171 else
2172   echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2174
2175 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2176 See \`config.log' for more details." >&5
2177 echo "$as_me: error: C compiler cannot create executables
2178 See \`config.log' for more details." >&2;}
2179    { (exit 77); exit 77; }; }
2180 fi
2181
2182 ac_exeext=$ac_cv_exeext
2183 echo "$as_me:$LINENO: result: $ac_file" >&5
2184 echo "${ECHO_T}$ac_file" >&6
2185
2186 # Check the compiler produces executables we can run.  If not, either
2187 # the compiler is broken, or we cross compile.
2188 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2189 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2190 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2191 # If not cross compiling, check that we can run a simple program.
2192 if test "$cross_compiling" != yes; then
2193   if { ac_try='./$ac_file'
2194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195   (eval $ac_try) 2>&5
2196   ac_status=$?
2197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198   (exit $ac_status); }; }; then
2199     cross_compiling=no
2200   else
2201     if test "$cross_compiling" = maybe; then
2202         cross_compiling=yes
2203     else
2204         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2205 If you meant to cross compile, use \`--host'.
2206 See \`config.log' for more details." >&5
2207 echo "$as_me: error: cannot run C compiled programs.
2208 If you meant to cross compile, use \`--host'.
2209 See \`config.log' for more details." >&2;}
2210    { (exit 1); exit 1; }; }
2211     fi
2212   fi
2213 fi
2214 echo "$as_me:$LINENO: result: yes" >&5
2215 echo "${ECHO_T}yes" >&6
2216
2217 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2218 ac_clean_files=$ac_clean_files_save
2219 # Check the compiler produces executables we can run.  If not, either
2220 # the compiler is broken, or we cross compile.
2221 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2222 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2223 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2224 echo "${ECHO_T}$cross_compiling" >&6
2225
2226 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2227 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2229   (eval $ac_link) 2>&5
2230   ac_status=$?
2231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232   (exit $ac_status); }; then
2233   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2234 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2235 # work properly (i.e., refer to `conftest.exe'), while it won't with
2236 # `rm'.
2237 for ac_file in conftest.exe conftest conftest.*; do
2238   test -f "$ac_file" || continue
2239   case $ac_file in
2240     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2241     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2242           export ac_cv_exeext
2243           break;;
2244     * ) break;;
2245   esac
2246 done
2247 else
2248   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2249 See \`config.log' for more details." >&5
2250 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2251 See \`config.log' for more details." >&2;}
2252    { (exit 1); exit 1; }; }
2253 fi
2254
2255 rm -f conftest$ac_cv_exeext
2256 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2257 echo "${ECHO_T}$ac_cv_exeext" >&6
2258
2259 rm -f conftest.$ac_ext
2260 EXEEXT=$ac_cv_exeext
2261 ac_exeext=$EXEEXT
2262 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2263 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2264 if test "${ac_cv_objext+set}" = set; then
2265   echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267   cat >conftest.$ac_ext <<_ACEOF
2268 /* confdefs.h.  */
2269 _ACEOF
2270 cat confdefs.h >>conftest.$ac_ext
2271 cat >>conftest.$ac_ext <<_ACEOF
2272 /* end confdefs.h.  */
2273
2274 int
2275 main ()
2276 {
2277
2278   ;
2279   return 0;
2280 }
2281 _ACEOF
2282 rm -f conftest.o conftest.obj
2283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2284   (eval $ac_compile) 2>&5
2285   ac_status=$?
2286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287   (exit $ac_status); }; then
2288   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2289   case $ac_file in
2290     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2291     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2292        break;;
2293   esac
2294 done
2295 else
2296   echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.$ac_ext >&5
2298
2299 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2300 See \`config.log' for more details." >&5
2301 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2302 See \`config.log' for more details." >&2;}
2303    { (exit 1); exit 1; }; }
2304 fi
2305
2306 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2307 fi
2308 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2309 echo "${ECHO_T}$ac_cv_objext" >&6
2310 OBJEXT=$ac_cv_objext
2311 ac_objext=$OBJEXT
2312 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2313 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2314 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2315   echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317   cat >conftest.$ac_ext <<_ACEOF
2318 /* confdefs.h.  */
2319 _ACEOF
2320 cat confdefs.h >>conftest.$ac_ext
2321 cat >>conftest.$ac_ext <<_ACEOF
2322 /* end confdefs.h.  */
2323
2324 int
2325 main ()
2326 {
2327 #ifndef __GNUC__
2328        choke me
2329 #endif
2330
2331   ;
2332   return 0;
2333 }
2334 _ACEOF
2335 rm -f conftest.$ac_objext
2336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337   (eval $ac_compile) 2>conftest.er1
2338   ac_status=$?
2339   grep -v '^ *+' conftest.er1 >conftest.err
2340   rm -f conftest.er1
2341   cat conftest.err >&5
2342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343   (exit $ac_status); } &&
2344          { ac_try='test -z "$ac_c_werror_flag"
2345                          || test ! -s conftest.err'
2346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347   (eval $ac_try) 2>&5
2348   ac_status=$?
2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350   (exit $ac_status); }; } &&
2351          { ac_try='test -s conftest.$ac_objext'
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   ac_compiler_gnu=yes
2358 else
2359   echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2361
2362 ac_compiler_gnu=no
2363 fi
2364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2365 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2366
2367 fi
2368 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2369 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2370 GCC=`test $ac_compiler_gnu = yes && echo yes`
2371 ac_test_CFLAGS=${CFLAGS+set}
2372 ac_save_CFLAGS=$CFLAGS
2373 CFLAGS="-g"
2374 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2375 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2376 if test "${ac_cv_prog_cc_g+set}" = set; then
2377   echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379   cat >conftest.$ac_ext <<_ACEOF
2380 /* confdefs.h.  */
2381 _ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h.  */
2385
2386 int
2387 main ()
2388 {
2389
2390   ;
2391   return 0;
2392 }
2393 _ACEOF
2394 rm -f conftest.$ac_objext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396   (eval $ac_compile) 2>conftest.er1
2397   ac_status=$?
2398   grep -v '^ *+' conftest.er1 >conftest.err
2399   rm -f conftest.er1
2400   cat conftest.err >&5
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); } &&
2403          { ac_try='test -z "$ac_c_werror_flag"
2404                          || test ! -s conftest.err'
2405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406   (eval $ac_try) 2>&5
2407   ac_status=$?
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); }; } &&
2410          { ac_try='test -s conftest.$ac_objext'
2411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412   (eval $ac_try) 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; }; then
2416   ac_cv_prog_cc_g=yes
2417 else
2418   echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2420
2421 ac_cv_prog_cc_g=no
2422 fi
2423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2424 fi
2425 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2426 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2427 if test "$ac_test_CFLAGS" = set; then
2428   CFLAGS=$ac_save_CFLAGS
2429 elif test $ac_cv_prog_cc_g = yes; then
2430   if test "$GCC" = yes; then
2431     CFLAGS="-g -O2"
2432   else
2433     CFLAGS="-g"
2434   fi
2435 else
2436   if test "$GCC" = yes; then
2437     CFLAGS="-O2"
2438   else
2439     CFLAGS=
2440   fi
2441 fi
2442 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2443 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2444 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2445   echo $ECHO_N "(cached) $ECHO_C" >&6
2446 else
2447   ac_cv_prog_cc_stdc=no
2448 ac_save_CC=$CC
2449 cat >conftest.$ac_ext <<_ACEOF
2450 /* confdefs.h.  */
2451 _ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h.  */
2455 #include <stdarg.h>
2456 #include <stdio.h>
2457 #include <sys/types.h>
2458 #include <sys/stat.h>
2459 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2460 struct buf { int x; };
2461 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2462 static char *e (p, i)
2463      char **p;
2464      int i;
2465 {
2466   return p[i];
2467 }
2468 static char *f (char * (*g) (char **, int), char **p, ...)
2469 {
2470   char *s;
2471   va_list v;
2472   va_start (v,p);
2473   s = g (p, va_arg (v,int));
2474   va_end (v);
2475   return s;
2476 }
2477
2478 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2479    function prototypes and stuff, but not '\xHH' hex character constants.
2480    These don't provoke an error unfortunately, instead are silently treated
2481    as 'x'.  The following induces an error, until -std1 is added to get
2482    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2483    array size at least.  It's necessary to write '\x00'==0 to get something
2484    that's true only with -std1.  */
2485 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2486
2487 int test (int i, double x);
2488 struct s1 {int (*f) (int a);};
2489 struct s2 {int (*f) (double a);};
2490 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2491 int argc;
2492 char **argv;
2493 int
2494 main ()
2495 {
2496 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2497   ;
2498   return 0;
2499 }
2500 _ACEOF
2501 # Don't try gcc -ansi; that turns off useful extensions and
2502 # breaks some systems' header files.
2503 # AIX                   -qlanglvl=ansi
2504 # Ultrix and OSF/1      -std1
2505 # HP-UX 10.20 and later -Ae
2506 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2507 # SVR4                  -Xc -D__EXTENSIONS__
2508 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2509 do
2510   CC="$ac_save_CC $ac_arg"
2511   rm -f conftest.$ac_objext
2512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513   (eval $ac_compile) 2>conftest.er1
2514   ac_status=$?
2515   grep -v '^ *+' conftest.er1 >conftest.err
2516   rm -f conftest.er1
2517   cat conftest.err >&5
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); } &&
2520          { ac_try='test -z "$ac_c_werror_flag"
2521                          || test ! -s conftest.err'
2522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523   (eval $ac_try) 2>&5
2524   ac_status=$?
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); }; } &&
2527          { ac_try='test -s conftest.$ac_objext'
2528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529   (eval $ac_try) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); }; }; then
2533   ac_cv_prog_cc_stdc=$ac_arg
2534 break
2535 else
2536   echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2538
2539 fi
2540 rm -f conftest.err conftest.$ac_objext
2541 done
2542 rm -f conftest.$ac_ext conftest.$ac_objext
2543 CC=$ac_save_CC
2544
2545 fi
2546
2547 case "x$ac_cv_prog_cc_stdc" in
2548   x|xno)
2549     echo "$as_me:$LINENO: result: none needed" >&5
2550 echo "${ECHO_T}none needed" >&6 ;;
2551   *)
2552     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2553 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2554     CC="$CC $ac_cv_prog_cc_stdc" ;;
2555 esac
2556
2557 # Some people use a C++ compiler to compile C.  Since we use `exit',
2558 # in C++ we need to declare it.  In case someone uses the same compiler
2559 # for both compiling C and C++ we need to have the C++ compiler decide
2560 # the declaration of exit, since it's the most demanding environment.
2561 cat >conftest.$ac_ext <<_ACEOF
2562 #ifndef __cplusplus
2563   choke me
2564 #endif
2565 _ACEOF
2566 rm -f conftest.$ac_objext
2567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568   (eval $ac_compile) 2>conftest.er1
2569   ac_status=$?
2570   grep -v '^ *+' conftest.er1 >conftest.err
2571   rm -f conftest.er1
2572   cat conftest.err >&5
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); } &&
2575          { ac_try='test -z "$ac_c_werror_flag"
2576                          || test ! -s conftest.err'
2577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578   (eval $ac_try) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); }; } &&
2582          { ac_try='test -s conftest.$ac_objext'
2583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584   (eval $ac_try) 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); }; }; then
2588   for ac_declaration in \
2589    '' \
2590    'extern "C" void std::exit (int) throw (); using std::exit;' \
2591    'extern "C" void std::exit (int); using std::exit;' \
2592    'extern "C" void exit (int) throw ();' \
2593    'extern "C" void exit (int);' \
2594    'void exit (int);'
2595 do
2596   cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h.  */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h.  */
2602 $ac_declaration
2603 #include <stdlib.h>
2604 int
2605 main ()
2606 {
2607 exit (42);
2608   ;
2609   return 0;
2610 }
2611 _ACEOF
2612 rm -f conftest.$ac_objext
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614   (eval $ac_compile) 2>conftest.er1
2615   ac_status=$?
2616   grep -v '^ *+' conftest.er1 >conftest.err
2617   rm -f conftest.er1
2618   cat conftest.err >&5
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); } &&
2621          { ac_try='test -z "$ac_c_werror_flag"
2622                          || test ! -s conftest.err'
2623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624   (eval $ac_try) 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); }; } &&
2628          { ac_try='test -s conftest.$ac_objext'
2629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630   (eval $ac_try) 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); }; }; then
2634   :
2635 else
2636   echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639 continue
2640 fi
2641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2642   cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648 $ac_declaration
2649 int
2650 main ()
2651 {
2652 exit (42);
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659   (eval $ac_compile) 2>conftest.er1
2660   ac_status=$?
2661   grep -v '^ *+' conftest.er1 >conftest.err
2662   rm -f conftest.er1
2663   cat conftest.err >&5
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); } &&
2666          { ac_try='test -z "$ac_c_werror_flag"
2667                          || test ! -s conftest.err'
2668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669   (eval $ac_try) 2>&5
2670   ac_status=$?
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); }; } &&
2673          { ac_try='test -s conftest.$ac_objext'
2674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675   (eval $ac_try) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }; }; then
2679   break
2680 else
2681   echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684 fi
2685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686 done
2687 rm -f conftest*
2688 if test -n "$ac_declaration"; then
2689   echo '#ifdef __cplusplus' >>confdefs.h
2690   echo $ac_declaration      >>confdefs.h
2691   echo '#endif'             >>confdefs.h
2692 fi
2693
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 conftest.$ac_ext
2700 ac_ext=c
2701 ac_cpp='$CPP $CPPFLAGS'
2702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2705 DEPDIR="${am__leading_dot}deps"
2706
2707           ac_config_commands="$ac_config_commands depfiles"
2708
2709
2710 am_make=${MAKE-make}
2711 cat > confinc << 'END'
2712 am__doit:
2713         @echo done
2714 .PHONY: am__doit
2715 END
2716 # If we don't find an include directive, just comment out the code.
2717 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2718 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2719 am__include="#"
2720 am__quote=
2721 _am_result=none
2722 # First try GNU make style include.
2723 echo "include confinc" > confmf
2724 # We grep out `Entering directory' and `Leaving directory'
2725 # messages which can occur if `w' ends up in MAKEFLAGS.
2726 # In particular we don't look at `^make:' because GNU make might
2727 # be invoked under some other name (usually "gmake"), in which
2728 # case it prints its new name instead of `make'.
2729 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2730    am__include=include
2731    am__quote=
2732    _am_result=GNU
2733 fi
2734 # Now try BSD make style include.
2735 if test "$am__include" = "#"; then
2736    echo '.include "confinc"' > confmf
2737    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2738       am__include=.include
2739       am__quote="\""
2740       _am_result=BSD
2741    fi
2742 fi
2743
2744
2745 echo "$as_me:$LINENO: result: $_am_result" >&5
2746 echo "${ECHO_T}$_am_result" >&6
2747 rm -f confinc confmf
2748
2749 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2750 if test "${enable_dependency_tracking+set}" = set; then
2751   enableval="$enable_dependency_tracking"
2752
2753 fi;
2754 if test "x$enable_dependency_tracking" != xno; then
2755   am_depcomp="$ac_aux_dir/depcomp"
2756   AMDEPBACKSLASH='\'
2757 fi
2758
2759
2760 if test "x$enable_dependency_tracking" != xno; then
2761   AMDEP_TRUE=
2762   AMDEP_FALSE='#'
2763 else
2764   AMDEP_TRUE='#'
2765   AMDEP_FALSE=
2766 fi
2767
2768
2769
2770
2771 depcc="$CC"   am_compiler_list=
2772
2773 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2774 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2775 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2776   echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2779   # We make a subdir and do the tests there.  Otherwise we can end up
2780   # making bogus files that we don't know about and never remove.  For
2781   # instance it was reported that on HP-UX the gcc test will end up
2782   # making a dummy file named `D' -- because `-MD' means `put the output
2783   # in D'.
2784   mkdir conftest.dir
2785   # Copy depcomp to subdir because otherwise we won't find it if we're
2786   # using a relative directory.
2787   cp "$am_depcomp" conftest.dir
2788   cd conftest.dir
2789   # We will build objects and dependencies in a subdirectory because
2790   # it helps to detect inapplicable dependency modes.  For instance
2791   # both Tru64's cc and ICC support -MD to output dependencies as a
2792   # side effect of compilation, but ICC will put the dependencies in
2793   # the current directory while Tru64 will put them in the object
2794   # directory.
2795   mkdir sub
2796
2797   am_cv_CC_dependencies_compiler_type=none
2798   if test "$am_compiler_list" = ""; then
2799      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2800   fi
2801   for depmode in $am_compiler_list; do
2802     # Setup a source with many dependencies, because some compilers
2803     # like to wrap large dependency lists on column 80 (with \), and
2804     # we should not choose a depcomp mode which is confused by this.
2805     #
2806     # We need to recreate these files for each test, as the compiler may
2807     # overwrite some of them when testing with obscure command lines.
2808     # This happens at least with the AIX C compiler.
2809     : > sub/conftest.c
2810     for i in 1 2 3 4 5 6; do
2811       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2812       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2813       # Solaris 8's {/usr,}/bin/sh.
2814       touch sub/conftst$i.h
2815     done
2816     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2817
2818     case $depmode in
2819     nosideeffect)
2820       # after this tag, mechanisms are not by side-effect, so they'll
2821       # only be used when explicitly requested
2822       if test "x$enable_dependency_tracking" = xyes; then
2823         continue
2824       else
2825         break
2826       fi
2827       ;;
2828     none) break ;;
2829     esac
2830     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2831     # mode.  It turns out that the SunPro C++ compiler does not properly
2832     # handle `-M -o', and we need to detect this.
2833     if depmode=$depmode \
2834        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2835        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2836        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2837          >/dev/null 2>conftest.err &&
2838        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2839        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2840        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2841       # icc doesn't choke on unknown options, it will just issue warnings
2842       # or remarks (even with -Werror).  So we grep stderr for any message
2843       # that says an option was ignored or not supported.
2844       # When given -MP, icc 7.0 and 7.1 complain thusly:
2845       #   icc: Command line warning: ignoring option '-M'; no argument required
2846       # The diagnosis changed in icc 8.0:
2847       #   icc: Command line remark: option '-MP' not supported
2848       if (grep 'ignoring option' conftest.err ||
2849           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2850         am_cv_CC_dependencies_compiler_type=$depmode
2851         break
2852       fi
2853     fi
2854   done
2855
2856   cd ..
2857   rm -rf conftest.dir
2858 else
2859   am_cv_CC_dependencies_compiler_type=none
2860 fi
2861
2862 fi
2863 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2864 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2865 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2866
2867
2868
2869 if
2870   test "x$enable_dependency_tracking" != xno \
2871   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2872   am__fastdepCC_TRUE=
2873   am__fastdepCC_FALSE='#'
2874 else
2875   am__fastdepCC_TRUE='#'
2876   am__fastdepCC_FALSE=
2877 fi
2878
2879
2880
2881 ac_ext=c
2882 ac_cpp='$CPP $CPPFLAGS'
2883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2886 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2887 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2888 # On Suns, sometimes $CPP names a directory.
2889 if test -n "$CPP" && test -d "$CPP"; then
2890   CPP=
2891 fi
2892 if test -z "$CPP"; then
2893   if test "${ac_cv_prog_CPP+set}" = set; then
2894   echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896       # Double quotes because CPP needs to be expanded
2897     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2898     do
2899       ac_preproc_ok=false
2900 for ac_c_preproc_warn_flag in '' yes
2901 do
2902   # Use a header file that comes with gcc, so configuring glibc
2903   # with a fresh cross-compiler works.
2904   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2905   # <limits.h> exists even on freestanding compilers.
2906   # On the NeXT, cc -E runs the code through the compiler's parser,
2907   # not just through cpp. "Syntax error" is here to catch this case.
2908   cat >conftest.$ac_ext <<_ACEOF
2909 /* confdefs.h.  */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h.  */
2914 #ifdef __STDC__
2915 # include <limits.h>
2916 #else
2917 # include <assert.h>
2918 #endif
2919                      Syntax error
2920 _ACEOF
2921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2922   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2923   ac_status=$?
2924   grep -v '^ *+' conftest.er1 >conftest.err
2925   rm -f conftest.er1
2926   cat conftest.err >&5
2927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928   (exit $ac_status); } >/dev/null; then
2929   if test -s conftest.err; then
2930     ac_cpp_err=$ac_c_preproc_warn_flag
2931     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2932   else
2933     ac_cpp_err=
2934   fi
2935 else
2936   ac_cpp_err=yes
2937 fi
2938 if test -z "$ac_cpp_err"; then
2939   :
2940 else
2941   echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2943
2944   # Broken: fails on valid input.
2945 continue
2946 fi
2947 rm -f conftest.err conftest.$ac_ext
2948
2949   # OK, works on sane cases.  Now check whether non-existent headers
2950   # can be detected and how.
2951   cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h.  */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h.  */
2957 #include <ac_nonexistent.h>
2958 _ACEOF
2959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2960   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2961   ac_status=$?
2962   grep -v '^ *+' conftest.er1 >conftest.err
2963   rm -f conftest.er1
2964   cat conftest.err >&5
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); } >/dev/null; then
2967   if test -s conftest.err; then
2968     ac_cpp_err=$ac_c_preproc_warn_flag
2969     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2970   else
2971     ac_cpp_err=
2972   fi
2973 else
2974   ac_cpp_err=yes
2975 fi
2976 if test -z "$ac_cpp_err"; then
2977   # Broken: success on invalid input.
2978 continue
2979 else
2980   echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.$ac_ext >&5
2982
2983   # Passes both tests.
2984 ac_preproc_ok=:
2985 break
2986 fi
2987 rm -f conftest.err conftest.$ac_ext
2988
2989 done
2990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2991 rm -f conftest.err conftest.$ac_ext
2992 if $ac_preproc_ok; then
2993   break
2994 fi
2995
2996     done
2997     ac_cv_prog_CPP=$CPP
2998
2999 fi
3000   CPP=$ac_cv_prog_CPP
3001 else
3002   ac_cv_prog_CPP=$CPP
3003 fi
3004 echo "$as_me:$LINENO: result: $CPP" >&5
3005 echo "${ECHO_T}$CPP" >&6
3006 ac_preproc_ok=false
3007 for ac_c_preproc_warn_flag in '' yes
3008 do
3009   # Use a header file that comes with gcc, so configuring glibc
3010   # with a fresh cross-compiler works.
3011   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3012   # <limits.h> exists even on freestanding compilers.
3013   # On the NeXT, cc -E runs the code through the compiler's parser,
3014   # not just through cpp. "Syntax error" is here to catch this case.
3015   cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h.  */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h.  */
3021 #ifdef __STDC__
3022 # include <limits.h>
3023 #else
3024 # include <assert.h>
3025 #endif
3026                      Syntax error
3027 _ACEOF
3028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3029   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3030   ac_status=$?
3031   grep -v '^ *+' conftest.er1 >conftest.err
3032   rm -f conftest.er1
3033   cat conftest.err >&5
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); } >/dev/null; then
3036   if test -s conftest.err; then
3037     ac_cpp_err=$ac_c_preproc_warn_flag
3038     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3039   else
3040     ac_cpp_err=
3041   fi
3042 else
3043   ac_cpp_err=yes
3044 fi
3045 if test -z "$ac_cpp_err"; then
3046   :
3047 else
3048   echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3050
3051   # Broken: fails on valid input.
3052 continue
3053 fi
3054 rm -f conftest.err conftest.$ac_ext
3055
3056   # OK, works on sane cases.  Now check whether non-existent headers
3057   # can be detected and how.
3058   cat >conftest.$ac_ext <<_ACEOF
3059 /* confdefs.h.  */
3060 _ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h.  */
3064 #include <ac_nonexistent.h>
3065 _ACEOF
3066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3067   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3068   ac_status=$?
3069   grep -v '^ *+' conftest.er1 >conftest.err
3070   rm -f conftest.er1
3071   cat conftest.err >&5
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); } >/dev/null; then
3074   if test -s conftest.err; then
3075     ac_cpp_err=$ac_c_preproc_warn_flag
3076     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3077   else
3078     ac_cpp_err=
3079   fi
3080 else
3081   ac_cpp_err=yes
3082 fi
3083 if test -z "$ac_cpp_err"; then
3084   # Broken: success on invalid input.
3085 continue
3086 else
3087   echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3089
3090   # Passes both tests.
3091 ac_preproc_ok=:
3092 break
3093 fi
3094 rm -f conftest.err conftest.$ac_ext
3095
3096 done
3097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3098 rm -f conftest.err conftest.$ac_ext
3099 if $ac_preproc_ok; then
3100   :
3101 else
3102   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3103 See \`config.log' for more details." >&5
3104 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3105 See \`config.log' for more details." >&2;}
3106    { (exit 1); exit 1; }; }
3107 fi
3108
3109 ac_ext=c
3110 ac_cpp='$CPP $CPPFLAGS'
3111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114
3115
3116 echo "$as_me:$LINENO: checking for egrep" >&5
3117 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3118 if test "${ac_cv_prog_egrep+set}" = set; then
3119   echo $ECHO_N "(cached) $ECHO_C" >&6
3120 else
3121   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3122     then ac_cv_prog_egrep='grep -E'
3123     else ac_cv_prog_egrep='egrep'
3124     fi
3125 fi
3126 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3127 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3128  EGREP=$ac_cv_prog_egrep
3129
3130
3131 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3133 if test "${ac_cv_header_stdc+set}" = set; then
3134   echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136   cat >conftest.$ac_ext <<_ACEOF
3137 /* confdefs.h.  */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h.  */
3142 #include <stdlib.h>
3143 #include <stdarg.h>
3144 #include <string.h>
3145 #include <float.h>
3146
3147 int
3148 main ()
3149 {
3150
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3157   (eval $ac_compile) 2>conftest.er1
3158   ac_status=$?
3159   grep -v '^ *+' conftest.er1 >conftest.err
3160   rm -f conftest.er1
3161   cat conftest.err >&5
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); } &&
3164          { ac_try='test -z "$ac_c_werror_flag"
3165                          || test ! -s conftest.err'
3166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167   (eval $ac_try) 2>&5
3168   ac_status=$?
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); }; } &&
3171          { ac_try='test -s conftest.$ac_objext'
3172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173   (eval $ac_try) 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); }; }; then
3177   ac_cv_header_stdc=yes
3178 else
3179   echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3181
3182 ac_cv_header_stdc=no
3183 fi
3184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3185
3186 if test $ac_cv_header_stdc = yes; then
3187   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3188   cat >conftest.$ac_ext <<_ACEOF
3189 /* confdefs.h.  */
3190 _ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h.  */
3194 #include <string.h>
3195
3196 _ACEOF
3197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3198   $EGREP "memchr" >/dev/null 2>&1; then
3199   :
3200 else
3201   ac_cv_header_stdc=no
3202 fi
3203 rm -f conftest*
3204
3205 fi
3206
3207 if test $ac_cv_header_stdc = yes; then
3208   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3209   cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h.  */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h.  */
3215 #include <stdlib.h>
3216
3217 _ACEOF
3218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3219   $EGREP "free" >/dev/null 2>&1; then
3220   :
3221 else
3222   ac_cv_header_stdc=no
3223 fi
3224 rm -f conftest*
3225
3226 fi
3227
3228 if test $ac_cv_header_stdc = yes; then
3229   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3230   if test "$cross_compiling" = yes; then
3231   :
3232 else
3233   cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h.  */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h.  */
3239 #include <ctype.h>
3240 #if ((' ' & 0x0FF) == 0x020)
3241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3243 #else
3244 # define ISLOWER(c) \
3245                    (('a' <= (c) && (c) <= 'i') \
3246                      || ('j' <= (c) && (c) <= 'r') \
3247                      || ('s' <= (c) && (c) <= 'z'))
3248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3249 #endif
3250
3251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3252 int
3253 main ()
3254 {
3255   int i;
3256   for (i = 0; i < 256; i++)
3257     if (XOR (islower (i), ISLOWER (i))
3258         || toupper (i) != TOUPPER (i))
3259       exit(2);
3260   exit (0);
3261 }
3262 _ACEOF
3263 rm -f conftest$ac_exeext
3264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3265   (eval $ac_link) 2>&5
3266   ac_status=$?
3267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270   (eval $ac_try) 2>&5
3271   ac_status=$?
3272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273   (exit $ac_status); }; }; then
3274   :
3275 else
3276   echo "$as_me: program exited with status $ac_status" >&5
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280 ( exit $ac_status )
3281 ac_cv_header_stdc=no
3282 fi
3283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3284 fi
3285 fi
3286 fi
3287 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3288 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3289 if test $ac_cv_header_stdc = yes; then
3290
3291 cat >>confdefs.h <<\_ACEOF
3292 #define STDC_HEADERS 1
3293 _ACEOF
3294
3295 fi
3296
3297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3308                   inttypes.h stdint.h unistd.h
3309 do
3310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3311 echo "$as_me:$LINENO: checking for $ac_header" >&5
3312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3314   echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316   cat >conftest.$ac_ext <<_ACEOF
3317 /* confdefs.h.  */
3318 _ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h.  */
3322 $ac_includes_default
3323
3324 #include <$ac_header>
3325 _ACEOF
3326 rm -f conftest.$ac_objext
3327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3328   (eval $ac_compile) 2>conftest.er1
3329   ac_status=$?
3330   grep -v '^ *+' conftest.er1 >conftest.err
3331   rm -f conftest.er1
3332   cat conftest.err >&5
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); } &&
3335          { ac_try='test -z "$ac_c_werror_flag"
3336                          || test ! -s conftest.err'
3337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338   (eval $ac_try) 2>&5
3339   ac_status=$?
3340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341   (exit $ac_status); }; } &&
3342          { ac_try='test -s conftest.$ac_objext'
3343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344   (eval $ac_try) 2>&5
3345   ac_status=$?
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); }; }; then
3348   eval "$as_ac_Header=yes"
3349 else
3350   echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353 eval "$as_ac_Header=no"
3354 fi
3355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3356 fi
3357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3360   cat >>confdefs.h <<_ACEOF
3361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3362 _ACEOF
3363
3364 fi
3365
3366 done
3367
3368
3369 if test "${ac_cv_header_minix_config_h+set}" = set; then
3370   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3371 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3372 if test "${ac_cv_header_minix_config_h+set}" = set; then
3373   echo $ECHO_N "(cached) $ECHO_C" >&6
3374 fi
3375 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3376 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3377 else
3378   # Is the header compilable?
3379 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3380 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3381 cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h.  */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h.  */
3387 $ac_includes_default
3388 #include <minix/config.h>
3389 _ACEOF
3390 rm -f conftest.$ac_objext
3391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392   (eval $ac_compile) 2>conftest.er1
3393   ac_status=$?
3394   grep -v '^ *+' conftest.er1 >conftest.err
3395   rm -f conftest.er1
3396   cat conftest.err >&5
3397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398   (exit $ac_status); } &&
3399          { ac_try='test -z "$ac_c_werror_flag"
3400                          || test ! -s conftest.err'
3401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402   (eval $ac_try) 2>&5
3403   ac_status=$?
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); }; } &&
3406          { ac_try='test -s conftest.$ac_objext'
3407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408   (eval $ac_try) 2>&5
3409   ac_status=$?
3410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411   (exit $ac_status); }; }; then
3412   ac_header_compiler=yes
3413 else
3414   echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3416
3417 ac_header_compiler=no
3418 fi
3419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3421 echo "${ECHO_T}$ac_header_compiler" >&6
3422
3423 # Is the header present?
3424 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3425 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3426 cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432 #include <minix/config.h>
3433 _ACEOF
3434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3435   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3436   ac_status=$?
3437   grep -v '^ *+' conftest.er1 >conftest.err
3438   rm -f conftest.er1
3439   cat conftest.err >&5
3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); } >/dev/null; then
3442   if test -s conftest.err; then
3443     ac_cpp_err=$ac_c_preproc_warn_flag
3444     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3445   else
3446     ac_cpp_err=
3447   fi
3448 else
3449   ac_cpp_err=yes
3450 fi
3451 if test -z "$ac_cpp_err"; then
3452   ac_header_preproc=yes
3453 else
3454   echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3456
3457   ac_header_preproc=no
3458 fi
3459 rm -f conftest.err conftest.$ac_ext
3460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3461 echo "${ECHO_T}$ac_header_preproc" >&6
3462
3463 # So?  What about this header?
3464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3465   yes:no: )
3466     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3467 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3468     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3469 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3470     ac_header_preproc=yes
3471     ;;
3472   no:yes:* )
3473     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3474 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3475     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3476 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3477     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3478 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3479     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3480 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3481     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3482 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3483     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3484 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3485     (
3486       cat <<\_ASBOX
3487 ## ----------------------------- ##
3488 ## Report this to the bc lists.  ##
3489 ## ----------------------------- ##
3490 _ASBOX
3491     ) |
3492       sed "s/^/$as_me: WARNING:     /" >&2
3493     ;;
3494 esac
3495 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3496 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3497 if test "${ac_cv_header_minix_config_h+set}" = set; then
3498   echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500   ac_cv_header_minix_config_h=$ac_header_preproc
3501 fi
3502 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3503 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3504
3505 fi
3506 if test $ac_cv_header_minix_config_h = yes; then
3507   MINIX=yes
3508 else
3509   MINIX=
3510 fi
3511
3512
3513 if test "$MINIX" = yes; then
3514
3515 cat >>confdefs.h <<\_ACEOF
3516 #define _POSIX_SOURCE 1
3517 _ACEOF
3518
3519
3520 cat >>confdefs.h <<\_ACEOF
3521 #define _POSIX_1_SOURCE 2
3522 _ACEOF
3523
3524
3525 cat >>confdefs.h <<\_ACEOF
3526 #define _MINIX 1
3527 _ACEOF
3528
3529 fi
3530
3531
3532 for ac_prog in flex lex
3533 do
3534   # Extract the first word of "$ac_prog", so it can be a program name with args.
3535 set dummy $ac_prog; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_prog_LEX+set}" = set; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   if test -n "$LEX"; then
3542   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3546 do
3547   IFS=$as_save_IFS
3548   test -z "$as_dir" && as_dir=.
3549   for ac_exec_ext in '' $ac_executable_extensions; do
3550   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551     ac_cv_prog_LEX="$ac_prog"
3552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3553     break 2
3554   fi
3555 done
3556 done
3557
3558 fi
3559 fi
3560 LEX=$ac_cv_prog_LEX
3561 if test -n "$LEX"; then
3562   echo "$as_me:$LINENO: result: $LEX" >&5
3563 echo "${ECHO_T}$LEX" >&6
3564 else
3565   echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6
3567 fi
3568
3569   test -n "$LEX" && break
3570 done
3571 test -n "$LEX" || LEX=":"
3572
3573 if test -z "$LEXLIB"
3574 then
3575   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3576 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3577 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3578   echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580   ac_check_lib_save_LIBS=$LIBS
3581 LIBS="-lfl  $LIBS"
3582 cat >conftest.$ac_ext <<_ACEOF
3583 /* confdefs.h.  */
3584 _ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h.  */
3588
3589 /* Override any gcc2 internal prototype to avoid an error.  */
3590 #ifdef __cplusplus
3591 extern "C"
3592 #endif
3593 /* We use char because int might match the return type of a gcc2
3594    builtin and then its argument prototype would still apply.  */
3595 char yywrap ();
3596 int
3597 main ()
3598 {
3599 yywrap ();
3600   ;
3601   return 0;
3602 }
3603 _ACEOF
3604 rm -f conftest.$ac_objext conftest$ac_exeext
3605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3606   (eval $ac_link) 2>conftest.er1
3607   ac_status=$?
3608   grep -v '^ *+' conftest.er1 >conftest.err
3609   rm -f conftest.er1
3610   cat conftest.err >&5
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); } &&
3613          { ac_try='test -z "$ac_c_werror_flag"
3614                          || test ! -s conftest.err'
3615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616   (eval $ac_try) 2>&5
3617   ac_status=$?
3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); }; } &&
3620          { ac_try='test -s conftest$ac_exeext'
3621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622   (eval $ac_try) 2>&5
3623   ac_status=$?
3624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625   (exit $ac_status); }; }; then
3626   ac_cv_lib_fl_yywrap=yes
3627 else
3628   echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3630
3631 ac_cv_lib_fl_yywrap=no
3632 fi
3633 rm -f conftest.err conftest.$ac_objext \
3634       conftest$ac_exeext conftest.$ac_ext
3635 LIBS=$ac_check_lib_save_LIBS
3636 fi
3637 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3638 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3639 if test $ac_cv_lib_fl_yywrap = yes; then
3640   LEXLIB="-lfl"
3641 else
3642   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3643 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3644 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3645   echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3647   ac_check_lib_save_LIBS=$LIBS
3648 LIBS="-ll  $LIBS"
3649 cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h.  */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h.  */
3655
3656 /* Override any gcc2 internal prototype to avoid an error.  */
3657 #ifdef __cplusplus
3658 extern "C"
3659 #endif
3660 /* We use char because int might match the return type of a gcc2
3661    builtin and then its argument prototype would still apply.  */
3662 char yywrap ();
3663 int
3664 main ()
3665 {
3666 yywrap ();
3667   ;
3668   return 0;
3669 }
3670 _ACEOF
3671 rm -f conftest.$ac_objext conftest$ac_exeext
3672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3673   (eval $ac_link) 2>conftest.er1
3674   ac_status=$?
3675   grep -v '^ *+' conftest.er1 >conftest.err
3676   rm -f conftest.er1
3677   cat conftest.err >&5
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); } &&
3680          { ac_try='test -z "$ac_c_werror_flag"
3681                          || test ! -s conftest.err'
3682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683   (eval $ac_try) 2>&5
3684   ac_status=$?
3685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686   (exit $ac_status); }; } &&
3687          { ac_try='test -s conftest$ac_exeext'
3688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689   (eval $ac_try) 2>&5
3690   ac_status=$?
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); }; }; then
3693   ac_cv_lib_l_yywrap=yes
3694 else
3695   echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3697
3698 ac_cv_lib_l_yywrap=no
3699 fi
3700 rm -f conftest.err conftest.$ac_objext \
3701       conftest$ac_exeext conftest.$ac_ext
3702 LIBS=$ac_check_lib_save_LIBS
3703 fi
3704 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3705 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3706 if test $ac_cv_lib_l_yywrap = yes; then
3707   LEXLIB="-ll"
3708 fi
3709
3710 fi
3711
3712 fi
3713
3714 if test "x$LEX" != "x:"; then
3715   echo "$as_me:$LINENO: checking lex output file root" >&5
3716 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3717 if test "${ac_cv_prog_lex_root+set}" = set; then
3718   echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720   # The minimal lex program is just a single line: %%.  But some broken lexes
3721 # (Solaris, I think it was) want two %% lines, so accommodate them.
3722 cat >conftest.l <<_ACEOF
3723 %%
3724 %%
3725 _ACEOF
3726 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3727   (eval $LEX conftest.l) 2>&5
3728   ac_status=$?
3729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730   (exit $ac_status); }
3731 if test -f lex.yy.c; then
3732   ac_cv_prog_lex_root=lex.yy
3733 elif test -f lexyy.c; then
3734   ac_cv_prog_lex_root=lexyy
3735 else
3736   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3737 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3738    { (exit 1); exit 1; }; }
3739 fi
3740 fi
3741 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3742 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3743 rm -f conftest.l
3744 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3745
3746 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3747 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3748 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751   # POSIX says lex can declare yytext either as a pointer or an array; the
3752 # default is implementation-dependent. Figure out which it is, since
3753 # not all implementations provide the %pointer and %array declarations.
3754 ac_cv_prog_lex_yytext_pointer=no
3755 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3756 ac_save_LIBS=$LIBS
3757 LIBS="$LIBS $LEXLIB"
3758 cat >conftest.$ac_ext <<_ACEOF
3759 `cat $LEX_OUTPUT_ROOT.c`
3760 _ACEOF
3761 rm -f conftest.$ac_objext conftest$ac_exeext
3762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3763   (eval $ac_link) 2>conftest.er1
3764   ac_status=$?
3765   grep -v '^ *+' conftest.er1 >conftest.err
3766   rm -f conftest.er1
3767   cat conftest.err >&5
3768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769   (exit $ac_status); } &&
3770          { ac_try='test -z "$ac_c_werror_flag"
3771                          || test ! -s conftest.err'
3772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773   (eval $ac_try) 2>&5
3774   ac_status=$?
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); }; } &&
3777          { ac_try='test -s conftest$ac_exeext'
3778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779   (eval $ac_try) 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); }; }; then
3783   ac_cv_prog_lex_yytext_pointer=yes
3784 else
3785   echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788 fi
3789 rm -f conftest.err conftest.$ac_objext \
3790       conftest$ac_exeext conftest.$ac_ext
3791 LIBS=$ac_save_LIBS
3792 rm -f "${LEX_OUTPUT_ROOT}.c"
3793
3794 fi
3795 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3796 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3797 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3798
3799 cat >>confdefs.h <<\_ACEOF
3800 #define YYTEXT_POINTER 1
3801 _ACEOF
3802
3803 fi
3804
3805 fi
3806 if test "$LEX" = :; then
3807   LEX=${am_missing_run}flex
3808 fi
3809 for ac_prog in 'bison -y' byacc
3810 do
3811   # Extract the first word of "$ac_prog", so it can be a program name with args.
3812 set dummy $ac_prog; ac_word=$2
3813 echo "$as_me:$LINENO: checking for $ac_word" >&5
3814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3815 if test "${ac_cv_prog_YACC+set}" = set; then
3816   echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818   if test -n "$YACC"; then
3819   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3820 else
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824   IFS=$as_save_IFS
3825   test -z "$as_dir" && as_dir=.
3826   for ac_exec_ext in '' $ac_executable_extensions; do
3827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828     ac_cv_prog_YACC="$ac_prog"
3829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3830     break 2
3831   fi
3832 done
3833 done
3834
3835 fi
3836 fi
3837 YACC=$ac_cv_prog_YACC
3838 if test -n "$YACC"; then
3839   echo "$as_me:$LINENO: result: $YACC" >&5
3840 echo "${ECHO_T}$YACC" >&6
3841 else
3842   echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6
3844 fi
3845
3846   test -n "$YACC" && break
3847 done
3848 test -n "$YACC" || YACC="yacc"
3849
3850 # Find a good install program.  We prefer a C program (faster),
3851 # so one script is as good as another.  But avoid the broken or
3852 # incompatible versions:
3853 # SysV /etc/install, /usr/sbin/install
3854 # SunOS /usr/etc/install
3855 # IRIX /sbin/install
3856 # AIX /bin/install
3857 # AmigaOS /C/install, which installs bootblocks on floppy discs
3858 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3859 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3860 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3861 # OS/2's system install, which has a completely different semantic
3862 # ./install, which can be erroneously created by make from ./install.sh.
3863 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3864 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3865 if test -z "$INSTALL"; then
3866 if test "${ac_cv_path_install+set}" = set; then
3867   echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH
3871 do
3872   IFS=$as_save_IFS
3873   test -z "$as_dir" && as_dir=.
3874   # Account for people who put trailing slashes in PATH elements.
3875 case $as_dir/ in
3876   ./ | .// | /cC/* | \
3877   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3878   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3879   /usr/ucb/* ) ;;
3880   *)
3881     # OSF1 and SCO ODT 3.0 have their own names for install.
3882     # Don't use installbsd from OSF since it installs stuff as root
3883     # by default.
3884     for ac_prog in ginstall scoinst install; do
3885       for ac_exec_ext in '' $ac_executable_extensions; do
3886         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3887           if test $ac_prog = install &&
3888             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3889             # AIX install.  It has an incompatible calling convention.
3890             :
3891           elif test $ac_prog = install &&
3892             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3893             # program-specific install script used by HP pwplus--don't use.
3894             :
3895           else
3896             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3897             break 3
3898           fi
3899         fi
3900       done
3901     done
3902     ;;
3903 esac
3904 done
3905
3906
3907 fi
3908   if test "${ac_cv_path_install+set}" = set; then
3909     INSTALL=$ac_cv_path_install
3910   else
3911     # As a last resort, use the slow shell script.  We don't cache a
3912     # path for INSTALL within a source directory, because that will
3913     # break other packages using the cache if that directory is
3914     # removed, or if the path is relative.
3915     INSTALL=$ac_install_sh
3916   fi
3917 fi
3918 echo "$as_me:$LINENO: result: $INSTALL" >&5
3919 echo "${ECHO_T}$INSTALL" >&6
3920
3921 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3922 # It thinks the first close brace ends the variable substitution.
3923 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3924
3925 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3926
3927 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3928
3929 if test -n "$ac_tool_prefix"; then
3930   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3931 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3932 echo "$as_me:$LINENO: checking for $ac_word" >&5
3933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3934 if test "${ac_cv_prog_RANLIB+set}" = set; then
3935   echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937   if test -n "$RANLIB"; then
3938   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3939 else
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH
3942 do
3943   IFS=$as_save_IFS
3944   test -z "$as_dir" && as_dir=.
3945   for ac_exec_ext in '' $ac_executable_extensions; do
3946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3947     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3949     break 2
3950   fi
3951 done
3952 done
3953
3954 fi
3955 fi
3956 RANLIB=$ac_cv_prog_RANLIB
3957 if test -n "$RANLIB"; then
3958   echo "$as_me:$LINENO: result: $RANLIB" >&5
3959 echo "${ECHO_T}$RANLIB" >&6
3960 else
3961   echo "$as_me:$LINENO: result: no" >&5
3962 echo "${ECHO_T}no" >&6
3963 fi
3964
3965 fi
3966 if test -z "$ac_cv_prog_RANLIB"; then
3967   ac_ct_RANLIB=$RANLIB
3968   # Extract the first word of "ranlib", so it can be a program name with args.
3969 set dummy ranlib; ac_word=$2
3970 echo "$as_me:$LINENO: checking for $ac_word" >&5
3971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3972 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3973   echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975   if test -n "$ac_ct_RANLIB"; then
3976   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3977 else
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981   IFS=$as_save_IFS
3982   test -z "$as_dir" && as_dir=.
3983   for ac_exec_ext in '' $ac_executable_extensions; do
3984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3985     ac_cv_prog_ac_ct_RANLIB="ranlib"
3986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3987     break 2
3988   fi
3989 done
3990 done
3991
3992   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3993 fi
3994 fi
3995 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3996 if test -n "$ac_ct_RANLIB"; then
3997   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3998 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3999 else
4000   echo "$as_me:$LINENO: result: no" >&5
4001 echo "${ECHO_T}no" >&6
4002 fi
4003
4004   RANLIB=$ac_ct_RANLIB
4005 else
4006   RANLIB="$ac_cv_prog_RANLIB"
4007 fi
4008
4009 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4010 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4011 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4012 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4013   echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015   cat >conftest.make <<\_ACEOF
4016 all:
4017         @echo 'ac_maketemp="$(MAKE)"'
4018 _ACEOF
4019 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4020 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4021 if test -n "$ac_maketemp"; then
4022   eval ac_cv_prog_make_${ac_make}_set=yes
4023 else
4024   eval ac_cv_prog_make_${ac_make}_set=no
4025 fi
4026 rm -f conftest.make
4027 fi
4028 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4029   echo "$as_me:$LINENO: result: yes" >&5
4030 echo "${ECHO_T}yes" >&6
4031   SET_MAKE=
4032 else
4033   echo "$as_me:$LINENO: result: no" >&5
4034 echo "${ECHO_T}no" >&6
4035   SET_MAKE="MAKE=${MAKE-make}"
4036 fi
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047 for ac_header in stdarg.h stddef.h stdlib.h string.h errno.h limits.h unistd.h lib.h
4048 do
4049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4051   echo "$as_me:$LINENO: checking for $ac_header" >&5
4052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4054   echo $ECHO_N "(cached) $ECHO_C" >&6
4055 fi
4056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4058 else
4059   # Is the header compilable?
4060 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4062 cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h.  */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h.  */
4068 $ac_includes_default
4069 #include <$ac_header>
4070 _ACEOF
4071 rm -f conftest.$ac_objext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073   (eval $ac_compile) 2>conftest.er1
4074   ac_status=$?
4075   grep -v '^ *+' conftest.er1 >conftest.err
4076   rm -f conftest.er1
4077   cat conftest.err >&5
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); } &&
4080          { ac_try='test -z "$ac_c_werror_flag"
4081                          || test ! -s conftest.err'
4082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083   (eval $ac_try) 2>&5
4084   ac_status=$?
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); }; } &&
4087          { ac_try='test -s conftest.$ac_objext'
4088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089   (eval $ac_try) 2>&5
4090   ac_status=$?
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); }; }; then
4093   ac_header_compiler=yes
4094 else
4095   echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4097
4098 ac_header_compiler=no
4099 fi
4100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4102 echo "${ECHO_T}$ac_header_compiler" >&6
4103
4104 # Is the header present?
4105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4107 cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h.  */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h.  */
4113 #include <$ac_header>
4114 _ACEOF
4115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4116   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4117   ac_status=$?
4118   grep -v '^ *+' conftest.er1 >conftest.err
4119   rm -f conftest.er1
4120   cat conftest.err >&5
4121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122   (exit $ac_status); } >/dev/null; then
4123   if test -s conftest.err; then
4124     ac_cpp_err=$ac_c_preproc_warn_flag
4125     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4126   else
4127     ac_cpp_err=
4128   fi
4129 else
4130   ac_cpp_err=yes
4131 fi
4132 if test -z "$ac_cpp_err"; then
4133   ac_header_preproc=yes
4134 else
4135   echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4137
4138   ac_header_preproc=no
4139 fi
4140 rm -f conftest.err conftest.$ac_ext
4141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4142 echo "${ECHO_T}$ac_header_preproc" >&6
4143
4144 # So?  What about this header?
4145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4146   yes:no: )
4147     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4151     ac_header_preproc=yes
4152     ;;
4153   no:yes:* )
4154     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4156     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4157 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4158     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4160     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4161 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4164     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4166     (
4167       cat <<\_ASBOX
4168 ## ----------------------------- ##
4169 ## Report this to the bc lists.  ##
4170 ## ----------------------------- ##
4171 _ASBOX
4172     ) |
4173       sed "s/^/$as_me: WARNING:     /" >&2
4174     ;;
4175 esac
4176 echo "$as_me:$LINENO: checking for $ac_header" >&5
4177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4179   echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181   eval "$as_ac_Header=\$ac_header_preproc"
4182 fi
4183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4185
4186 fi
4187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4188   cat >>confdefs.h <<_ACEOF
4189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4190 _ACEOF
4191
4192 fi
4193
4194 done
4195
4196 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4197 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4198 if test "${ac_cv_c_const+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h.  */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h.  */
4207
4208 int
4209 main ()
4210 {
4211 /* FIXME: Include the comments suggested by Paul. */
4212 #ifndef __cplusplus
4213   /* Ultrix mips cc rejects this.  */
4214   typedef int charset[2];
4215   const charset x;
4216   /* SunOS 4.1.1 cc rejects this.  */
4217   char const *const *ccp;
4218   char **p;
4219   /* NEC SVR4.0.2 mips cc rejects this.  */
4220   struct point {int x, y;};
4221   static struct point const zero = {0,0};
4222   /* AIX XL C 1.02.0.0 rejects this.
4223      It does not let you subtract one const X* pointer from another in
4224      an arm of an if-expression whose if-part is not a constant
4225      expression */
4226   const char *g = "string";
4227   ccp = &g + (g ? g-g : 0);
4228   /* HPUX 7.0 cc rejects these. */
4229   ++ccp;
4230   p = (char**) ccp;
4231   ccp = (char const *const *) p;
4232   { /* SCO 3.2v4 cc rejects this.  */
4233     char *t;
4234     char const *s = 0 ? (char *) 0 : (char const *) 0;
4235
4236     *t++ = 0;
4237   }
4238   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4239     int x[] = {25, 17};
4240     const int *foo = &x[0];
4241     ++foo;
4242   }
4243   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4244     typedef const int *iptr;
4245     iptr p = 0;
4246     ++p;
4247   }
4248   { /* AIX XL C 1.02.0.0 rejects this saying
4249        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4250     struct s { int j; const int *ap[3]; };
4251     struct s *b; b->j = 5;
4252   }
4253   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4254     const int foo = 10;
4255   }
4256 #endif
4257
4258   ;
4259   return 0;
4260 }
4261 _ACEOF
4262 rm -f conftest.$ac_objext
4263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4264   (eval $ac_compile) 2>conftest.er1
4265   ac_status=$?
4266   grep -v '^ *+' conftest.er1 >conftest.err
4267   rm -f conftest.er1
4268   cat conftest.err >&5
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); } &&
4271          { ac_try='test -z "$ac_c_werror_flag"
4272                          || test ! -s conftest.err'
4273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274   (eval $ac_try) 2>&5
4275   ac_status=$?
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); }; } &&
4278          { ac_try='test -s conftest.$ac_objext'
4279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280   (eval $ac_try) 2>&5
4281   ac_status=$?
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); }; }; then
4284   ac_cv_c_const=yes
4285 else
4286   echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4288
4289 ac_cv_c_const=no
4290 fi
4291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4292 fi
4293 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4294 echo "${ECHO_T}$ac_cv_c_const" >&6
4295 if test $ac_cv_c_const = no; then
4296
4297 cat >>confdefs.h <<\_ACEOF
4298 #define const
4299 _ACEOF
4300
4301 fi
4302
4303 echo "$as_me:$LINENO: checking for size_t" >&5
4304 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4305 if test "${ac_cv_type_size_t+set}" = set; then
4306   echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308   cat >conftest.$ac_ext <<_ACEOF
4309 /* confdefs.h.  */
4310 _ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h.  */
4314 $ac_includes_default
4315 int
4316 main ()
4317 {
4318 if ((size_t *) 0)
4319   return 0;
4320 if (sizeof (size_t))
4321   return 0;
4322   ;
4323   return 0;
4324 }
4325 _ACEOF
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328   (eval $ac_compile) 2>conftest.er1
4329   ac_status=$?
4330   grep -v '^ *+' conftest.er1 >conftest.err
4331   rm -f conftest.er1
4332   cat conftest.err >&5
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); } &&
4335          { ac_try='test -z "$ac_c_werror_flag"
4336                          || test ! -s conftest.err'
4337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338   (eval $ac_try) 2>&5
4339   ac_status=$?
4340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341   (exit $ac_status); }; } &&
4342          { ac_try='test -s conftest.$ac_objext'
4343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344   (eval $ac_try) 2>&5
4345   ac_status=$?
4346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); }; }; then
4348   ac_cv_type_size_t=yes
4349 else
4350   echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4352
4353 ac_cv_type_size_t=no
4354 fi
4355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4356 fi
4357 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4358 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4359 if test $ac_cv_type_size_t = yes; then
4360   :
4361 else
4362
4363 cat >>confdefs.h <<_ACEOF
4364 #define size_t unsigned
4365 _ACEOF
4366
4367 fi
4368
4369 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
4370 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
4371 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
4372   echo $ECHO_N "(cached) $ECHO_C" >&6
4373 else
4374   cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h.  */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h.  */
4380 $ac_includes_default
4381 int
4382 main ()
4383 {
4384 if ((ptrdiff_t *) 0)
4385   return 0;
4386 if (sizeof (ptrdiff_t))
4387   return 0;
4388   ;
4389   return 0;
4390 }
4391 _ACEOF
4392 rm -f conftest.$ac_objext
4393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4394   (eval $ac_compile) 2>conftest.er1
4395   ac_status=$?
4396   grep -v '^ *+' conftest.er1 >conftest.err
4397   rm -f conftest.er1
4398   cat conftest.err >&5
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); } &&
4401          { ac_try='test -z "$ac_c_werror_flag"
4402                          || test ! -s conftest.err'
4403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404   (eval $ac_try) 2>&5
4405   ac_status=$?
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); }; } &&
4408          { ac_try='test -s conftest.$ac_objext'
4409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410   (eval $ac_try) 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); }; }; then
4414   ac_cv_type_ptrdiff_t=yes
4415 else
4416   echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4418
4419 ac_cv_type_ptrdiff_t=no
4420 fi
4421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4422 fi
4423 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
4424 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
4425 if test $ac_cv_type_ptrdiff_t = yes; then
4426   :
4427 else
4428
4429 cat >>confdefs.h <<_ACEOF
4430 #define ptrdiff_t size_t
4431 _ACEOF
4432
4433 fi
4434
4435
4436
4437 for ac_func in vprintf
4438 do
4439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4440 echo "$as_me:$LINENO: checking for $ac_func" >&5
4441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4442 if eval "test \"\${$as_ac_var+set}\" = set"; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445   cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h.  */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h.  */
4451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4453 #define $ac_func innocuous_$ac_func
4454
4455 /* System header to define __stub macros and hopefully few prototypes,
4456     which can conflict with char $ac_func (); below.
4457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4458     <limits.h> exists even on freestanding compilers.  */
4459
4460 #ifdef __STDC__
4461 # include <limits.h>
4462 #else
4463 # include <assert.h>
4464 #endif
4465
4466 #undef $ac_func
4467
4468 /* Override any gcc2 internal prototype to avoid an error.  */
4469 #ifdef __cplusplus
4470 extern "C"
4471 {
4472 #endif
4473 /* We use char because int might match the return type of a gcc2
4474    builtin and then its argument prototype would still apply.  */
4475 char $ac_func ();
4476 /* The GNU C library defines this for functions which it implements
4477     to always fail with ENOSYS.  Some functions are actually named
4478     something starting with __ and the normal name is an alias.  */
4479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4480 choke me
4481 #else
4482 char (*f) () = $ac_func;
4483 #endif
4484 #ifdef __cplusplus
4485 }
4486 #endif
4487
4488 int
4489 main ()
4490 {
4491 return f != $ac_func;
4492   ;
4493   return 0;
4494 }
4495 _ACEOF
4496 rm -f conftest.$ac_objext conftest$ac_exeext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4498   (eval $ac_link) 2>conftest.er1
4499   ac_status=$?
4500   grep -v '^ *+' conftest.er1 >conftest.err
4501   rm -f conftest.er1
4502   cat conftest.err >&5
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); } &&
4505          { ac_try='test -z "$ac_c_werror_flag"
4506                          || test ! -s conftest.err'
4507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508   (eval $ac_try) 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); }; } &&
4512          { ac_try='test -s conftest$ac_exeext'
4513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514   (eval $ac_try) 2>&5
4515   ac_status=$?
4516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); }; }; then
4518   eval "$as_ac_var=yes"
4519 else
4520   echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4522
4523 eval "$as_ac_var=no"
4524 fi
4525 rm -f conftest.err conftest.$ac_objext \
4526       conftest$ac_exeext conftest.$ac_ext
4527 fi
4528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4530 if test `eval echo '${'$as_ac_var'}'` = yes; then
4531   cat >>confdefs.h <<_ACEOF
4532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4533 _ACEOF
4534
4535 echo "$as_me:$LINENO: checking for _doprnt" >&5
4536 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4537 if test "${ac_cv_func__doprnt+set}" = set; then
4538   echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540   cat >conftest.$ac_ext <<_ACEOF
4541 /* confdefs.h.  */
4542 _ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h.  */
4546 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4548 #define _doprnt innocuous__doprnt
4549
4550 /* System header to define __stub macros and hopefully few prototypes,
4551     which can conflict with char _doprnt (); below.
4552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4553     <limits.h> exists even on freestanding compilers.  */
4554
4555 #ifdef __STDC__
4556 # include <limits.h>
4557 #else
4558 # include <assert.h>
4559 #endif
4560
4561 #undef _doprnt
4562
4563 /* Override any gcc2 internal prototype to avoid an error.  */
4564 #ifdef __cplusplus
4565 extern "C"
4566 {
4567 #endif
4568 /* We use char because int might match the return type of a gcc2
4569    builtin and then its argument prototype would still apply.  */
4570 char _doprnt ();
4571 /* The GNU C library defines this for functions which it implements
4572     to always fail with ENOSYS.  Some functions are actually named
4573     something starting with __ and the normal name is an alias.  */
4574 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4575 choke me
4576 #else
4577 char (*f) () = _doprnt;
4578 #endif
4579 #ifdef __cplusplus
4580 }
4581 #endif
4582
4583 int
4584 main ()
4585 {
4586 return f != _doprnt;
4587   ;
4588   return 0;
4589 }
4590 _ACEOF
4591 rm -f conftest.$ac_objext conftest$ac_exeext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4593   (eval $ac_link) 2>conftest.er1
4594   ac_status=$?
4595   grep -v '^ *+' conftest.er1 >conftest.err
4596   rm -f conftest.er1
4597   cat conftest.err >&5
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); } &&
4600          { ac_try='test -z "$ac_c_werror_flag"
4601                          || test ! -s conftest.err'
4602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603   (eval $ac_try) 2>&5
4604   ac_status=$?
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); }; } &&
4607          { ac_try='test -s conftest$ac_exeext'
4608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609   (eval $ac_try) 2>&5
4610   ac_status=$?
4611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612   (exit $ac_status); }; }; then
4613   ac_cv_func__doprnt=yes
4614 else
4615   echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4617
4618 ac_cv_func__doprnt=no
4619 fi
4620 rm -f conftest.err conftest.$ac_objext \
4621       conftest$ac_exeext conftest.$ac_ext
4622 fi
4623 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4624 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4625 if test $ac_cv_func__doprnt = yes; then
4626
4627 cat >>confdefs.h <<\_ACEOF
4628 #define HAVE_DOPRNT 1
4629 _ACEOF
4630
4631 fi
4632
4633 fi
4634 done
4635
4636
4637
4638
4639
4640
4641 for ac_func in isgraph setvbuf fstat strtol
4642 do
4643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4644 echo "$as_me:$LINENO: checking for $ac_func" >&5
4645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4646 if eval "test \"\${$as_ac_var+set}\" = set"; then
4647   echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649   cat >conftest.$ac_ext <<_ACEOF
4650 /* confdefs.h.  */
4651 _ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h.  */
4655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4657 #define $ac_func innocuous_$ac_func
4658
4659 /* System header to define __stub macros and hopefully few prototypes,
4660     which can conflict with char $ac_func (); below.
4661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4662     <limits.h> exists even on freestanding compilers.  */
4663
4664 #ifdef __STDC__
4665 # include <limits.h>
4666 #else
4667 # include <assert.h>
4668 #endif
4669
4670 #undef $ac_func
4671
4672 /* Override any gcc2 internal prototype to avoid an error.  */
4673 #ifdef __cplusplus
4674 extern "C"
4675 {
4676 #endif
4677 /* We use char because int might match the return type of a gcc2
4678    builtin and then its argument prototype would still apply.  */
4679 char $ac_func ();
4680 /* The GNU C library defines this for functions which it implements
4681     to always fail with ENOSYS.  Some functions are actually named
4682     something starting with __ and the normal name is an alias.  */
4683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4684 choke me
4685 #else
4686 char (*f) () = $ac_func;
4687 #endif
4688 #ifdef __cplusplus
4689 }
4690 #endif
4691
4692 int
4693 main ()
4694 {
4695 return f != $ac_func;
4696   ;
4697   return 0;
4698 }
4699 _ACEOF
4700 rm -f conftest.$ac_objext conftest$ac_exeext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4702   (eval $ac_link) 2>conftest.er1
4703   ac_status=$?
4704   grep -v '^ *+' conftest.er1 >conftest.err
4705   rm -f conftest.er1
4706   cat conftest.err >&5
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); } &&
4709          { ac_try='test -z "$ac_c_werror_flag"
4710                          || test ! -s conftest.err'
4711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712   (eval $ac_try) 2>&5
4713   ac_status=$?
4714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715   (exit $ac_status); }; } &&
4716          { ac_try='test -s conftest$ac_exeext'
4717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718   (eval $ac_try) 2>&5
4719   ac_status=$?
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); }; }; then
4722   eval "$as_ac_var=yes"
4723 else
4724   echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4726
4727 eval "$as_ac_var=no"
4728 fi
4729 rm -f conftest.err conftest.$ac_objext \
4730       conftest$ac_exeext conftest.$ac_ext
4731 fi
4732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4734 if test `eval echo '${'$as_ac_var'}'` = yes; then
4735   cat >>confdefs.h <<_ACEOF
4736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4737 _ACEOF
4738
4739 fi
4740 done
4741
4742
4743
4744 # Check whether --with-pkg or --without-pkg was given.
4745 if test "${with_pkg+set}" = set; then
4746   withval="$with_pkg"
4747   case $withval in no) ;;
4748       *) CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
4749          LDFLAGS="$LDFLAGS -L/usr/pkg/lib"
4750          echo Using /usr/pkg/include and /usr/pkg/lib ;;
4751     esac
4752 fi;
4753
4754 bcle=n
4755
4756 # Check whether --with-libedit or --without-libedit was given.
4757 if test "${with_libedit+set}" = set; then
4758   withval="$with_libedit"
4759   case $withval in no) ;;
4760       *) LDSAVE=$LDFLAGS
4761          echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
4762 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
4763 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
4764   echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766   ac_check_lib_save_LIBS=$LIBS
4767 LIBS="-ltermcap  $LIBS"
4768 cat >conftest.$ac_ext <<_ACEOF
4769 /* confdefs.h.  */
4770 _ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h.  */
4774
4775 /* Override any gcc2 internal prototype to avoid an error.  */
4776 #ifdef __cplusplus
4777 extern "C"
4778 #endif
4779 /* We use char because int might match the return type of a gcc2
4780    builtin and then its argument prototype would still apply.  */
4781 char tgetent ();
4782 int
4783 main ()
4784 {
4785 tgetent ();
4786   ;
4787   return 0;
4788 }
4789 _ACEOF
4790 rm -f conftest.$ac_objext conftest$ac_exeext
4791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4792   (eval $ac_link) 2>conftest.er1
4793   ac_status=$?
4794   grep -v '^ *+' conftest.er1 >conftest.err
4795   rm -f conftest.er1
4796   cat conftest.err >&5
4797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798   (exit $ac_status); } &&
4799          { ac_try='test -z "$ac_c_werror_flag"
4800                          || test ! -s conftest.err'
4801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802   (eval $ac_try) 2>&5
4803   ac_status=$?
4804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805   (exit $ac_status); }; } &&
4806          { ac_try='test -s conftest$ac_exeext'
4807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808   (eval $ac_try) 2>&5
4809   ac_status=$?
4810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811   (exit $ac_status); }; }; then
4812   ac_cv_lib_termcap_tgetent=yes
4813 else
4814   echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4816
4817 ac_cv_lib_termcap_tgetent=no
4818 fi
4819 rm -f conftest.err conftest.$ac_objext \
4820       conftest$ac_exeext conftest.$ac_ext
4821 LIBS=$ac_check_lib_save_LIBS
4822 fi
4823 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
4824 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
4825 if test $ac_cv_lib_termcap_tgetent = yes; then
4826   TERMLIB=-ltermcap
4827 fi
4828
4829          LDFLAGS="$LDFLAGS $TERMLIB"
4830          echo "$as_me:$LINENO: checking for el_gets in -ledit" >&5
4831 echo $ECHO_N "checking for el_gets in -ledit... $ECHO_C" >&6
4832 if test "${ac_cv_lib_edit_el_gets+set}" = set; then
4833   echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835   ac_check_lib_save_LIBS=$LIBS
4836 LIBS="-ledit  $LIBS"
4837 cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h.  */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h.  */
4843
4844 /* Override any gcc2 internal prototype to avoid an error.  */
4845 #ifdef __cplusplus
4846 extern "C"
4847 #endif
4848 /* We use char because int might match the return type of a gcc2
4849    builtin and then its argument prototype would still apply.  */
4850 char el_gets ();
4851 int
4852 main ()
4853 {
4854 el_gets ();
4855   ;
4856   return 0;
4857 }
4858 _ACEOF
4859 rm -f conftest.$ac_objext conftest$ac_exeext
4860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4861   (eval $ac_link) 2>conftest.er1
4862   ac_status=$?
4863   grep -v '^ *+' conftest.er1 >conftest.err
4864   rm -f conftest.er1
4865   cat conftest.err >&5
4866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867   (exit $ac_status); } &&
4868          { ac_try='test -z "$ac_c_werror_flag"
4869                          || test ! -s conftest.err'
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); }; } &&
4875          { ac_try='test -s conftest$ac_exeext'
4876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877   (eval $ac_try) 2>&5
4878   ac_status=$?
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); }; }; then
4881   ac_cv_lib_edit_el_gets=yes
4882 else
4883   echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4885
4886 ac_cv_lib_edit_el_gets=no
4887 fi
4888 rm -f conftest.err conftest.$ac_objext \
4889       conftest$ac_exeext conftest.$ac_ext
4890 LIBS=$ac_check_lib_save_LIBS
4891 fi
4892 echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_gets" >&5
4893 echo "${ECHO_T}$ac_cv_lib_edit_el_gets" >&6
4894 if test $ac_cv_lib_edit_el_gets = yes; then
4895   if test "${ac_cv_header_histedit_h+set}" = set; then
4896   echo "$as_me:$LINENO: checking for histedit.h" >&5
4897 echo $ECHO_N "checking for histedit.h... $ECHO_C" >&6
4898 if test "${ac_cv_header_histedit_h+set}" = set; then
4899   echo $ECHO_N "(cached) $ECHO_C" >&6
4900 fi
4901 echo "$as_me:$LINENO: result: $ac_cv_header_histedit_h" >&5
4902 echo "${ECHO_T}$ac_cv_header_histedit_h" >&6
4903 else
4904   # Is the header compilable?
4905 echo "$as_me:$LINENO: checking histedit.h usability" >&5
4906 echo $ECHO_N "checking histedit.h usability... $ECHO_C" >&6
4907 cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h.  */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h.  */
4913 $ac_includes_default
4914 #include <histedit.h>
4915 _ACEOF
4916 rm -f conftest.$ac_objext
4917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4918   (eval $ac_compile) 2>conftest.er1
4919   ac_status=$?
4920   grep -v '^ *+' conftest.er1 >conftest.err
4921   rm -f conftest.er1
4922   cat conftest.err >&5
4923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924   (exit $ac_status); } &&
4925          { ac_try='test -z "$ac_c_werror_flag"
4926                          || test ! -s conftest.err'
4927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928   (eval $ac_try) 2>&5
4929   ac_status=$?
4930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931   (exit $ac_status); }; } &&
4932          { ac_try='test -s conftest.$ac_objext'
4933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934   (eval $ac_try) 2>&5
4935   ac_status=$?
4936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937   (exit $ac_status); }; }; then
4938   ac_header_compiler=yes
4939 else
4940   echo "$as_me: failed program was:" >&5
4941 sed 's/^/| /' conftest.$ac_ext >&5
4942
4943 ac_header_compiler=no
4944 fi
4945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4947 echo "${ECHO_T}$ac_header_compiler" >&6
4948
4949 # Is the header present?
4950 echo "$as_me:$LINENO: checking histedit.h presence" >&5
4951 echo $ECHO_N "checking histedit.h presence... $ECHO_C" >&6
4952 cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h.  */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h.  */
4958 #include <histedit.h>
4959 _ACEOF
4960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4962   ac_status=$?
4963   grep -v '^ *+' conftest.er1 >conftest.err
4964   rm -f conftest.er1
4965   cat conftest.err >&5
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); } >/dev/null; then
4968   if test -s conftest.err; then
4969     ac_cpp_err=$ac_c_preproc_warn_flag
4970     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4971   else
4972     ac_cpp_err=
4973   fi
4974 else
4975   ac_cpp_err=yes
4976 fi
4977 if test -z "$ac_cpp_err"; then
4978   ac_header_preproc=yes
4979 else
4980   echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4982
4983   ac_header_preproc=no
4984 fi
4985 rm -f conftest.err conftest.$ac_ext
4986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4987 echo "${ECHO_T}$ac_header_preproc" >&6
4988
4989 # So?  What about this header?
4990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4991   yes:no: )
4992     { echo "$as_me:$LINENO: WARNING: histedit.h: accepted by the compiler, rejected by the preprocessor!" >&5
4993 echo "$as_me: WARNING: histedit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4994     { echo "$as_me:$LINENO: WARNING: histedit.h: proceeding with the compiler's result" >&5
4995 echo "$as_me: WARNING: histedit.h: proceeding with the compiler's result" >&2;}
4996     ac_header_preproc=yes
4997     ;;
4998   no:yes:* )
4999     { echo "$as_me:$LINENO: WARNING: histedit.h: present but cannot be compiled" >&5
5000 echo "$as_me: WARNING: histedit.h: present but cannot be compiled" >&2;}
5001     { echo "$as_me:$LINENO: WARNING: histedit.h:     check for missing prerequisite headers?" >&5
5002 echo "$as_me: WARNING: histedit.h:     check for missing prerequisite headers?" >&2;}
5003     { echo "$as_me:$LINENO: WARNING: histedit.h: see the Autoconf documentation" >&5
5004 echo "$as_me: WARNING: histedit.h: see the Autoconf documentation" >&2;}
5005     { echo "$as_me:$LINENO: WARNING: histedit.h:     section \"Present But Cannot Be Compiled\"" >&5
5006 echo "$as_me: WARNING: histedit.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5007     { echo "$as_me:$LINENO: WARNING: histedit.h: proceeding with the preprocessor's result" >&5
5008 echo "$as_me: WARNING: histedit.h: proceeding with the preprocessor's result" >&2;}
5009     { echo "$as_me:$LINENO: WARNING: histedit.h: in the future, the compiler will take precedence" >&5
5010 echo "$as_me: WARNING: histedit.h: in the future, the compiler will take precedence" >&2;}
5011     (
5012       cat <<\_ASBOX
5013 ## ----------------------------- ##
5014 ## Report this to the bc lists.  ##
5015 ## ----------------------------- ##
5016 _ASBOX
5017     ) |
5018       sed "s/^/$as_me: WARNING:     /" >&2
5019     ;;
5020 esac
5021 echo "$as_me:$LINENO: checking for histedit.h" >&5
5022 echo $ECHO_N "checking for histedit.h... $ECHO_C" >&6
5023 if test "${ac_cv_header_histedit_h+set}" = set; then
5024   echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026   ac_cv_header_histedit_h=$ac_header_preproc
5027 fi
5028 echo "$as_me:$LINENO: result: $ac_cv_header_histedit_h" >&5
5029 echo "${ECHO_T}$ac_cv_header_histedit_h" >&6
5030
5031 fi
5032 if test $ac_cv_header_histedit_h = yes; then
5033   READLINELIB="-ledit $TERMLIB";bcle=y
5034 fi
5035
5036
5037 else
5038   READLINELIB=""
5039 fi
5040
5041          case $bcle in
5042            y)
5043 cat >>confdefs.h <<\_ACEOF
5044 #define LIBEDIT 1
5045 _ACEOF
5046
5047               echo Using the libedit library. ;;
5048          esac
5049          LDFLAGS=$LDSAVE
5050          ;;
5051     esac
5052 fi;
5053
5054 bcrl=n
5055
5056 # Check whether --with-readline or --without-readline was given.
5057 if test "${with_readline+set}" = set; then
5058   withval="$with_readline"
5059   case $withval in no) ;;
5060       *) LDSAVE=$LDFLAGS
5061          echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
5062 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
5063 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   ac_check_lib_save_LIBS=$LIBS
5067 LIBS="-lncurses  $LIBS"
5068 cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h.  */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h.  */
5074
5075 /* Override any gcc2 internal prototype to avoid an error.  */
5076 #ifdef __cplusplus
5077 extern "C"
5078 #endif
5079 /* We use char because int might match the return type of a gcc2
5080    builtin and then its argument prototype would still apply.  */
5081 char tparm ();
5082 int
5083 main ()
5084 {
5085 tparm ();
5086   ;
5087   return 0;
5088 }
5089 _ACEOF
5090 rm -f conftest.$ac_objext conftest$ac_exeext
5091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5092   (eval $ac_link) 2>conftest.er1
5093   ac_status=$?
5094   grep -v '^ *+' conftest.er1 >conftest.err
5095   rm -f conftest.er1
5096   cat conftest.err >&5
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); } &&
5099          { ac_try='test -z "$ac_c_werror_flag"
5100                          || test ! -s conftest.err'
5101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102   (eval $ac_try) 2>&5
5103   ac_status=$?
5104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105   (exit $ac_status); }; } &&
5106          { ac_try='test -s conftest$ac_exeext'
5107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108   (eval $ac_try) 2>&5
5109   ac_status=$?
5110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111   (exit $ac_status); }; }; then
5112   ac_cv_lib_ncurses_tparm=yes
5113 else
5114   echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5116
5117 ac_cv_lib_ncurses_tparm=no
5118 fi
5119 rm -f conftest.err conftest.$ac_objext \
5120       conftest$ac_exeext conftest.$ac_ext
5121 LIBS=$ac_check_lib_save_LIBS
5122 fi
5123 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
5124 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
5125 if test $ac_cv_lib_ncurses_tparm = yes; then
5126   TERMLIB=-lncurses
5127 else
5128   echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5129 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5130 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5131   echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133   ac_check_lib_save_LIBS=$LIBS
5134 LIBS="-ltermcap  $LIBS"
5135 cat >conftest.$ac_ext <<_ACEOF
5136 /* confdefs.h.  */
5137 _ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h.  */
5141
5142 /* Override any gcc2 internal prototype to avoid an error.  */
5143 #ifdef __cplusplus
5144 extern "C"
5145 #endif
5146 /* We use char because int might match the return type of a gcc2
5147    builtin and then its argument prototype would still apply.  */
5148 char tgetent ();
5149 int
5150 main ()
5151 {
5152 tgetent ();
5153   ;
5154   return 0;
5155 }
5156 _ACEOF
5157 rm -f conftest.$ac_objext conftest$ac_exeext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5159   (eval $ac_link) 2>conftest.er1
5160   ac_status=$?
5161   grep -v '^ *+' conftest.er1 >conftest.err
5162   rm -f conftest.er1
5163   cat conftest.err >&5
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); } &&
5166          { ac_try='test -z "$ac_c_werror_flag"
5167                          || test ! -s conftest.err'
5168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169   (eval $ac_try) 2>&5
5170   ac_status=$?
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); }; } &&
5173          { ac_try='test -s conftest$ac_exeext'
5174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175   (eval $ac_try) 2>&5
5176   ac_status=$?
5177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178   (exit $ac_status); }; }; then
5179   ac_cv_lib_termcap_tgetent=yes
5180 else
5181   echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5183
5184 ac_cv_lib_termcap_tgetent=no
5185 fi
5186 rm -f conftest.err conftest.$ac_objext \
5187       conftest$ac_exeext conftest.$ac_ext
5188 LIBS=$ac_check_lib_save_LIBS
5189 fi
5190 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5191 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5192 if test $ac_cv_lib_termcap_tgetent = yes; then
5193   TERMLIB=-ltermcap
5194 fi
5195
5196 fi
5197
5198          LDFLAGS="$LDFLAGS $TERMLIB"
5199          echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
5200 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
5201 if test "${ac_cv_lib_readline_readline+set}" = set; then
5202   echo $ECHO_N "(cached) $ECHO_C" >&6
5203 else
5204   ac_check_lib_save_LIBS=$LIBS
5205 LIBS="-lreadline  $LIBS"
5206 cat >conftest.$ac_ext <<_ACEOF
5207 /* confdefs.h.  */
5208 _ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h.  */
5212
5213 /* Override any gcc2 internal prototype to avoid an error.  */
5214 #ifdef __cplusplus
5215 extern "C"
5216 #endif
5217 /* We use char because int might match the return type of a gcc2
5218    builtin and then its argument prototype would still apply.  */
5219 char readline ();
5220 int
5221 main ()
5222 {
5223 readline ();
5224   ;
5225   return 0;
5226 }
5227 _ACEOF
5228 rm -f conftest.$ac_objext conftest$ac_exeext
5229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5230   (eval $ac_link) 2>conftest.er1
5231   ac_status=$?
5232   grep -v '^ *+' conftest.er1 >conftest.err
5233   rm -f conftest.er1
5234   cat conftest.err >&5
5235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236   (exit $ac_status); } &&
5237          { ac_try='test -z "$ac_c_werror_flag"
5238                          || test ! -s conftest.err'
5239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240   (eval $ac_try) 2>&5
5241   ac_status=$?
5242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243   (exit $ac_status); }; } &&
5244          { ac_try='test -s conftest$ac_exeext'
5245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246   (eval $ac_try) 2>&5
5247   ac_status=$?
5248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249   (exit $ac_status); }; }; then
5250   ac_cv_lib_readline_readline=yes
5251 else
5252   echo "$as_me: failed program was:" >&5
5253 sed 's/^/| /' conftest.$ac_ext >&5
5254
5255 ac_cv_lib_readline_readline=no
5256 fi
5257 rm -f conftest.err conftest.$ac_objext \
5258       conftest$ac_exeext conftest.$ac_ext
5259 LIBS=$ac_check_lib_save_LIBS
5260 fi
5261 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
5262 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
5263 if test $ac_cv_lib_readline_readline = yes; then
5264   if test "${ac_cv_header_readline_readline_h+set}" = set; then
5265   echo "$as_me:$LINENO: checking for readline/readline.h" >&5
5266 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
5267 if test "${ac_cv_header_readline_readline_h+set}" = set; then
5268   echo $ECHO_N "(cached) $ECHO_C" >&6
5269 fi
5270 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
5271 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
5272 else
5273   # Is the header compilable?
5274 echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
5275 echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6
5276 cat >conftest.$ac_ext <<_ACEOF
5277 /* confdefs.h.  */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h.  */
5282 $ac_includes_default
5283 #include <readline/readline.h>
5284 _ACEOF
5285 rm -f conftest.$ac_objext
5286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5287   (eval $ac_compile) 2>conftest.er1
5288   ac_status=$?
5289   grep -v '^ *+' conftest.er1 >conftest.err
5290   rm -f conftest.er1
5291   cat conftest.err >&5
5292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293   (exit $ac_status); } &&
5294          { ac_try='test -z "$ac_c_werror_flag"
5295                          || test ! -s conftest.err'
5296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297   (eval $ac_try) 2>&5
5298   ac_status=$?
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); }; } &&
5301          { ac_try='test -s conftest.$ac_objext'
5302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303   (eval $ac_try) 2>&5
5304   ac_status=$?
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); }; }; then
5307   ac_header_compiler=yes
5308 else
5309   echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5311
5312 ac_header_compiler=no
5313 fi
5314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5316 echo "${ECHO_T}$ac_header_compiler" >&6
5317
5318 # Is the header present?
5319 echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
5320 echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6
5321 cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h.  */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h.  */
5327 #include <readline/readline.h>
5328 _ACEOF
5329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5330   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5331   ac_status=$?
5332   grep -v '^ *+' conftest.er1 >conftest.err
5333   rm -f conftest.er1
5334   cat conftest.err >&5
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); } >/dev/null; then
5337   if test -s conftest.err; then
5338     ac_cpp_err=$ac_c_preproc_warn_flag
5339     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5340   else
5341     ac_cpp_err=
5342   fi
5343 else
5344   ac_cpp_err=yes
5345 fi
5346 if test -z "$ac_cpp_err"; then
5347   ac_header_preproc=yes
5348 else
5349   echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5351
5352   ac_header_preproc=no
5353 fi
5354 rm -f conftest.err conftest.$ac_ext
5355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5356 echo "${ECHO_T}$ac_header_preproc" >&6
5357
5358 # So?  What about this header?
5359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5360   yes:no: )
5361     { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5362 echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5363     { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5
5364 echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;}
5365     ac_header_preproc=yes
5366     ;;
5367   no:yes:* )
5368     { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
5369 echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
5370     { echo "$as_me:$LINENO: WARNING: readline/readline.h:     check for missing prerequisite headers?" >&5
5371 echo "$as_me: WARNING: readline/readline.h:     check for missing prerequisite headers?" >&2;}
5372     { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5
5373 echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;}
5374     { echo "$as_me:$LINENO: WARNING: readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
5375 echo "$as_me: WARNING: readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5376     { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
5377 echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
5378     { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5
5379 echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;}
5380     (
5381       cat <<\_ASBOX
5382 ## ----------------------------- ##
5383 ## Report this to the bc lists.  ##
5384 ## ----------------------------- ##
5385 _ASBOX
5386     ) |
5387       sed "s/^/$as_me: WARNING:     /" >&2
5388     ;;
5389 esac
5390 echo "$as_me:$LINENO: checking for readline/readline.h" >&5
5391 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
5392 if test "${ac_cv_header_readline_readline_h+set}" = set; then
5393   echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395   ac_cv_header_readline_readline_h=$ac_header_preproc
5396 fi
5397 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
5398 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
5399
5400 fi
5401 if test $ac_cv_header_readline_readline_h = yes; then
5402   READLINELIB="-lreadline $TERMLIB";bcrl=y
5403 fi
5404
5405
5406 else
5407   READLINELIB=""
5408 fi
5409
5410          case $bcrl in
5411            y)
5412 cat >>confdefs.h <<\_ACEOF
5413 #define READLINE 1
5414 _ACEOF
5415
5416               echo Using the readline library. ;;
5417          esac
5418          LDFLAGS=$LDSAVE
5419          ;;
5420     esac
5421 fi;
5422
5423 case $bcle-$bcrl-$LEX in
5424    y-y-*)
5425         { { echo "$as_me:$LINENO: error: Can not use both readline and libedit.  Aborting." >&5
5426 echo "$as_me: error: Can not use both readline and libedit.  Aborting." >&2;}
5427    { (exit 1); exit 1; }; } ;;
5428    ?-?-flex)
5429         LEX="flex -I -8"
5430         case $bcrl in
5431           n) { echo "$as_me:$LINENO: WARNING: readline works only with flex." >&5
5432 echo "$as_me: WARNING: readline works only with flex." >&2;} ;;
5433         esac ;;
5434 esac
5435
5436 case $LEX-`uname -s` in
5437   lex-SunOS) LEXLIB=""; echo "SunOS using lex does not have a -ll." ;;
5438 esac
5439
5440 case $GCC in
5441   yes) CFLAGS="$CFLAGS -Wall -funsigned-char"
5442        echo "Adding GCC specific compile flags." ;;
5443 esac
5444
5445
5446 BC_VERSION=1.06.95
5447
5448 DC_VERSION=1.3.95
5449
5450                                                             ac_config_files="$ac_config_files Makefile bc/Makefile dc/Makefile doc/Makefile doc/texi-ver.incl lib/Makefile"
5451 cat >confcache <<\_ACEOF
5452 # This file is a shell script that caches the results of configure
5453 # tests run on this system so they can be shared between configure
5454 # scripts and configure runs, see configure's option --config-cache.
5455 # It is not useful on other systems.  If it contains results you don't
5456 # want to keep, you may remove or edit it.
5457 #
5458 # config.status only pays attention to the cache file if you give it
5459 # the --recheck option to rerun configure.
5460 #
5461 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5462 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5463 # following values.
5464
5465 _ACEOF
5466
5467 # The following way of writing the cache mishandles newlines in values,
5468 # but we know of no workaround that is simple, portable, and efficient.
5469 # So, don't put newlines in cache variables' values.
5470 # Ultrix sh set writes to stderr and can't be redirected directly,
5471 # and sets the high bit in the cache file unless we assign to the vars.
5472 {
5473   (set) 2>&1 |
5474     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5475     *ac_space=\ *)
5476       # `set' does not quote correctly, so add quotes (double-quote
5477       # substitution turns \\\\ into \\, and sed turns \\ into \).
5478       sed -n \
5479         "s/'/'\\\\''/g;
5480           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5481       ;;
5482     *)
5483       # `set' quotes correctly as required by POSIX, so do not add quotes.
5484       sed -n \
5485         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5486       ;;
5487     esac;
5488 } |
5489   sed '
5490      t clear
5491      : clear
5492      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5493      t end
5494      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5495      : end' >>confcache
5496 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5497   if test -w $cache_file; then
5498     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5499     cat confcache >$cache_file
5500   else
5501     echo "not updating unwritable cache $cache_file"
5502   fi
5503 fi
5504 rm -f confcache
5505
5506 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5507 # Let make expand exec_prefix.
5508 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5509
5510 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5511 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5512 # trailing colons and then remove the whole line if VPATH becomes empty
5513 # (actually we leave an empty line to preserve line numbers).
5514 if test "x$srcdir" = x.; then
5515   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5516 s/:*\$(srcdir):*/:/;
5517 s/:*\${srcdir}:*/:/;
5518 s/:*@srcdir@:*/:/;
5519 s/^\([^=]*=[     ]*\):*/\1/;
5520 s/:*$//;
5521 s/^[^=]*=[       ]*$//;
5522 }'
5523 fi
5524
5525 DEFS=-DHAVE_CONFIG_H
5526
5527 ac_libobjs=
5528 ac_ltlibobjs=
5529 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5530   # 1. Remove the extension, and $U if already installed.
5531   ac_i=`echo "$ac_i" |
5532          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5533   # 2. Add them.
5534   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5535   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5536 done
5537 LIBOBJS=$ac_libobjs
5538
5539 LTLIBOBJS=$ac_ltlibobjs
5540
5541
5542 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5543   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5544 Usually this means the macro was only invoked conditionally." >&5
5545 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5546 Usually this means the macro was only invoked conditionally." >&2;}
5547    { (exit 1); exit 1; }; }
5548 fi
5549 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5550   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5551 Usually this means the macro was only invoked conditionally." >&5
5552 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5553 Usually this means the macro was only invoked conditionally." >&2;}
5554    { (exit 1); exit 1; }; }
5555 fi
5556
5557 : ${CONFIG_STATUS=./config.status}
5558 ac_clean_files_save=$ac_clean_files
5559 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5560 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5561 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5562 cat >$CONFIG_STATUS <<_ACEOF
5563 #! $SHELL
5564 # Generated by $as_me.
5565 # Run this file to recreate the current configuration.
5566 # Compiler output produced by configure, useful for debugging
5567 # configure, is in config.log if it exists.
5568
5569 debug=false
5570 ac_cs_recheck=false
5571 ac_cs_silent=false
5572 SHELL=\${CONFIG_SHELL-$SHELL}
5573 _ACEOF
5574
5575 cat >>$CONFIG_STATUS <<\_ACEOF
5576 ## --------------------- ##
5577 ## M4sh Initialization.  ##
5578 ## --------------------- ##
5579
5580 # Be Bourne compatible
5581 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5582   emulate sh
5583   NULLCMD=:
5584   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5585   # is contrary to our usage.  Disable this feature.
5586   alias -g '${1+"$@"}'='"$@"'
5587 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5588   set -o posix
5589 fi
5590 DUALCASE=1; export DUALCASE # for MKS sh
5591
5592 # Support unset when possible.
5593 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5594   as_unset=unset
5595 else
5596   as_unset=false
5597 fi
5598
5599
5600 # Work around bugs in pre-3.0 UWIN ksh.
5601 $as_unset ENV MAIL MAILPATH
5602 PS1='$ '
5603 PS2='> '
5604 PS4='+ '
5605
5606 # NLS nuisances.
5607 for as_var in \
5608   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5609   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5610   LC_TELEPHONE LC_TIME
5611 do
5612   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5613     eval $as_var=C; export $as_var
5614   else
5615     $as_unset $as_var
5616   fi
5617 done
5618
5619 # Required to use basename.
5620 if expr a : '\(a\)' >/dev/null 2>&1; then
5621   as_expr=expr
5622 else
5623   as_expr=false
5624 fi
5625
5626 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5627   as_basename=basename
5628 else
5629   as_basename=false
5630 fi
5631
5632
5633 # Name of the executable.
5634 as_me=`$as_basename "$0" ||
5635 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5636          X"$0" : 'X\(//\)$' \| \
5637          X"$0" : 'X\(/\)$' \| \
5638          .     : '\(.\)' 2>/dev/null ||
5639 echo X/"$0" |
5640     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5641           /^X\/\(\/\/\)$/{ s//\1/; q; }
5642           /^X\/\(\/\).*/{ s//\1/; q; }
5643           s/.*/./; q'`
5644
5645
5646 # PATH needs CR, and LINENO needs CR and PATH.
5647 # Avoid depending upon Character Ranges.
5648 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5649 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5650 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5651 as_cr_digits='0123456789'
5652 as_cr_alnum=$as_cr_Letters$as_cr_digits
5653
5654 # The user is always right.
5655 if test "${PATH_SEPARATOR+set}" != set; then
5656   echo "#! /bin/sh" >conf$$.sh
5657   echo  "exit 0"   >>conf$$.sh
5658   chmod +x conf$$.sh
5659   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5660     PATH_SEPARATOR=';'
5661   else
5662     PATH_SEPARATOR=:
5663   fi
5664   rm -f conf$$.sh
5665 fi
5666
5667
5668   as_lineno_1=$LINENO
5669   as_lineno_2=$LINENO
5670   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5671   test "x$as_lineno_1" != "x$as_lineno_2" &&
5672   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5673   # Find who we are.  Look in the path if we contain no path at all
5674   # relative or not.
5675   case $0 in
5676     *[\\/]* ) as_myself=$0 ;;
5677     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 for as_dir in $PATH
5679 do
5680   IFS=$as_save_IFS
5681   test -z "$as_dir" && as_dir=.
5682   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5683 done
5684
5685        ;;
5686   esac
5687   # We did not find ourselves, most probably we were run as `sh COMMAND'
5688   # in which case we are not to be found in the path.
5689   if test "x$as_myself" = x; then
5690     as_myself=$0
5691   fi
5692   if test ! -f "$as_myself"; then
5693     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5694 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5695    { (exit 1); exit 1; }; }
5696   fi
5697   case $CONFIG_SHELL in
5698   '')
5699     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5701 do
5702   IFS=$as_save_IFS
5703   test -z "$as_dir" && as_dir=.
5704   for as_base in sh bash ksh sh5; do
5705          case $as_dir in
5706          /*)
5707            if ("$as_dir/$as_base" -c '
5708   as_lineno_1=$LINENO
5709   as_lineno_2=$LINENO
5710   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5711   test "x$as_lineno_1" != "x$as_lineno_2" &&
5712   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5713              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5714              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5715              CONFIG_SHELL=$as_dir/$as_base
5716              export CONFIG_SHELL
5717              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5718            fi;;
5719          esac
5720        done
5721 done
5722 ;;
5723   esac
5724
5725   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5726   # uniformly replaced by the line number.  The first 'sed' inserts a
5727   # line-number line before each line; the second 'sed' does the real
5728   # work.  The second script uses 'N' to pair each line-number line
5729   # with the numbered line, and appends trailing '-' during
5730   # substitution so that $LINENO is not a special case at line end.
5731   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5732   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5733   sed '=' <$as_myself |
5734     sed '
5735       N
5736       s,$,-,
5737       : loop
5738       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5739       t loop
5740       s,-$,,
5741       s,^['$as_cr_digits']*\n,,
5742     ' >$as_me.lineno &&
5743   chmod +x $as_me.lineno ||
5744     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5745 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5746    { (exit 1); exit 1; }; }
5747
5748   # Don't try to exec as it changes $[0], causing all sort of problems
5749   # (the dirname of $[0] is not the place where we might find the
5750   # original and so on.  Autoconf is especially sensible to this).
5751   . ./$as_me.lineno
5752   # Exit status is that of the last command.
5753   exit
5754 }
5755
5756
5757 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5758   *c*,-n*) ECHO_N= ECHO_C='
5759 ' ECHO_T='      ' ;;
5760   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5761   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5762 esac
5763
5764 if expr a : '\(a\)' >/dev/null 2>&1; then
5765   as_expr=expr
5766 else
5767   as_expr=false
5768 fi
5769
5770 rm -f conf$$ conf$$.exe conf$$.file
5771 echo >conf$$.file
5772 if ln -s conf$$.file conf$$ 2>/dev/null; then
5773   # We could just check for DJGPP; but this test a) works b) is more generic
5774   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5775   if test -f conf$$.exe; then
5776     # Don't use ln at all; we don't have any links
5777     as_ln_s='cp -p'
5778   else
5779     as_ln_s='ln -s'
5780   fi
5781 elif ln conf$$.file conf$$ 2>/dev/null; then
5782   as_ln_s=ln
5783 else
5784   as_ln_s='cp -p'
5785 fi
5786 rm -f conf$$ conf$$.exe conf$$.file
5787
5788 if mkdir -p . 2>/dev/null; then
5789   as_mkdir_p=:
5790 else
5791   test -d ./-p && rmdir ./-p
5792   as_mkdir_p=false
5793 fi
5794
5795 as_executable_p="test -f"
5796
5797 # Sed expression to map a string onto a valid CPP name.
5798 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5799
5800 # Sed expression to map a string onto a valid variable name.
5801 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5802
5803
5804 # IFS
5805 # We need space, tab and new line, in precisely that order.
5806 as_nl='
5807 '
5808 IFS="   $as_nl"
5809
5810 # CDPATH.
5811 $as_unset CDPATH
5812
5813 exec 6>&1
5814
5815 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5816 # report actual input values of CONFIG_FILES etc. instead of their
5817 # values after options handling.  Logging --version etc. is OK.
5818 exec 5>>config.log
5819 {
5820   echo
5821   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5822 ## Running $as_me. ##
5823 _ASBOX
5824 } >&5
5825 cat >&5 <<_CSEOF
5826
5827 This file was extended by bc $as_me 1.06.95, which was
5828 generated by GNU Autoconf 2.59.  Invocation command line was
5829
5830   CONFIG_FILES    = $CONFIG_FILES
5831   CONFIG_HEADERS  = $CONFIG_HEADERS
5832   CONFIG_LINKS    = $CONFIG_LINKS
5833   CONFIG_COMMANDS = $CONFIG_COMMANDS
5834   $ $0 $@
5835
5836 _CSEOF
5837 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5838 echo >&5
5839 _ACEOF
5840
5841 # Files that config.status was made for.
5842 if test -n "$ac_config_files"; then
5843   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5844 fi
5845
5846 if test -n "$ac_config_headers"; then
5847   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5848 fi
5849
5850 if test -n "$ac_config_links"; then
5851   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5852 fi
5853
5854 if test -n "$ac_config_commands"; then
5855   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5856 fi
5857
5858 cat >>$CONFIG_STATUS <<\_ACEOF
5859
5860 ac_cs_usage="\
5861 \`$as_me' instantiates files from templates according to the
5862 current configuration.
5863
5864 Usage: $0 [OPTIONS] [FILE]...
5865
5866   -h, --help       print this help, then exit
5867   -V, --version    print version number, then exit
5868   -q, --quiet      do not print progress messages
5869   -d, --debug      don't remove temporary files
5870       --recheck    update $as_me by reconfiguring in the same conditions
5871   --file=FILE[:TEMPLATE]
5872                    instantiate the configuration file FILE
5873   --header=FILE[:TEMPLATE]
5874                    instantiate the configuration header FILE
5875
5876 Configuration files:
5877 $config_files
5878
5879 Configuration headers:
5880 $config_headers
5881
5882 Configuration commands:
5883 $config_commands
5884
5885 Report bugs to <bug-autoconf@gnu.org>."
5886 _ACEOF
5887
5888 cat >>$CONFIG_STATUS <<_ACEOF
5889 ac_cs_version="\\
5890 bc config.status 1.06.95
5891 configured by $0, generated by GNU Autoconf 2.59,
5892   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5893
5894 Copyright (C) 2003 Free Software Foundation, Inc.
5895 This config.status script is free software; the Free Software Foundation
5896 gives unlimited permission to copy, distribute and modify it."
5897 srcdir=$srcdir
5898 INSTALL="$INSTALL"
5899 _ACEOF
5900
5901 cat >>$CONFIG_STATUS <<\_ACEOF
5902 # If no file are specified by the user, then we need to provide default
5903 # value.  By we need to know if files were specified by the user.
5904 ac_need_defaults=:
5905 while test $# != 0
5906 do
5907   case $1 in
5908   --*=*)
5909     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5910     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5911     ac_shift=:
5912     ;;
5913   -*)
5914     ac_option=$1
5915     ac_optarg=$2
5916     ac_shift=shift
5917     ;;
5918   *) # This is not an option, so the user has probably given explicit
5919      # arguments.
5920      ac_option=$1
5921      ac_need_defaults=false;;
5922   esac
5923
5924   case $ac_option in
5925   # Handling of the options.
5926 _ACEOF
5927 cat >>$CONFIG_STATUS <<\_ACEOF
5928   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5929     ac_cs_recheck=: ;;
5930   --version | --vers* | -V )
5931     echo "$ac_cs_version"; exit 0 ;;
5932   --he | --h)
5933     # Conflict between --help and --header
5934     { { echo "$as_me:$LINENO: error: ambiguous option: $1
5935 Try \`$0 --help' for more information." >&5
5936 echo "$as_me: error: ambiguous option: $1
5937 Try \`$0 --help' for more information." >&2;}
5938    { (exit 1); exit 1; }; };;
5939   --help | --hel | -h )
5940     echo "$ac_cs_usage"; exit 0 ;;
5941   --debug | --d* | -d )
5942     debug=: ;;
5943   --file | --fil | --fi | --f )
5944     $ac_shift
5945     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5946     ac_need_defaults=false;;
5947   --header | --heade | --head | --hea )
5948     $ac_shift
5949     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5950     ac_need_defaults=false;;
5951   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5952   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5953     ac_cs_silent=: ;;
5954
5955   # This is an error.
5956   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5957 Try \`$0 --help' for more information." >&5
5958 echo "$as_me: error: unrecognized option: $1
5959 Try \`$0 --help' for more information." >&2;}
5960    { (exit 1); exit 1; }; } ;;
5961
5962   *) ac_config_targets="$ac_config_targets $1" ;;
5963
5964   esac
5965   shift
5966 done
5967
5968 ac_configure_extra_args=
5969
5970 if $ac_cs_silent; then
5971   exec 6>/dev/null
5972   ac_configure_extra_args="$ac_configure_extra_args --silent"
5973 fi
5974
5975 _ACEOF
5976 cat >>$CONFIG_STATUS <<_ACEOF
5977 if \$ac_cs_recheck; then
5978   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5979   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5980 fi
5981
5982 _ACEOF
5983
5984 cat >>$CONFIG_STATUS <<_ACEOF
5985 #
5986 # INIT-COMMANDS section.
5987 #
5988
5989 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5990
5991 _ACEOF
5992
5993
5994
5995 cat >>$CONFIG_STATUS <<\_ACEOF
5996 for ac_config_target in $ac_config_targets
5997 do
5998   case "$ac_config_target" in
5999   # Handling of arguments.
6000   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6001   "bc/Makefile" ) CONFIG_FILES="$CONFIG_FILES bc/Makefile" ;;
6002   "dc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dc/Makefile" ;;
6003   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6004   "doc/texi-ver.incl" ) CONFIG_FILES="$CONFIG_FILES doc/texi-ver.incl" ;;
6005   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
6006   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6007   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6008   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6009 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6010    { (exit 1); exit 1; }; };;
6011   esac
6012 done
6013
6014 # If the user did not use the arguments to specify the items to instantiate,
6015 # then the envvar interface is used.  Set only those that are not.
6016 # We use the long form for the default assignment because of an extremely
6017 # bizarre bug on SunOS 4.1.3.
6018 if $ac_need_defaults; then
6019   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6020   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6021   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6022 fi
6023
6024 # Have a temporary directory for convenience.  Make it in the build tree
6025 # simply because there is no reason to put it here, and in addition,
6026 # creating and moving files from /tmp can sometimes cause problems.
6027 # Create a temporary directory, and hook for its removal unless debugging.
6028 $debug ||
6029 {
6030   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6031   trap '{ (exit 1); exit 1; }' 1 2 13 15
6032 }
6033
6034 # Create a (secure) tmp directory for tmp files.
6035
6036 {
6037   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6038   test -n "$tmp" && test -d "$tmp"
6039 }  ||
6040 {
6041   tmp=./confstat$$-$RANDOM
6042   (umask 077 && mkdir $tmp)
6043 } ||
6044 {
6045    echo "$me: cannot create a temporary directory in ." >&2
6046    { (exit 1); exit 1; }
6047 }
6048
6049 _ACEOF
6050
6051 cat >>$CONFIG_STATUS <<_ACEOF
6052
6053 #
6054 # CONFIG_FILES section.
6055 #
6056
6057 # No need to generate the scripts if there are no CONFIG_FILES.
6058 # This happens for instance when ./config.status config.h
6059 if test -n "\$CONFIG_FILES"; then
6060   # Protect against being on the right side of a sed subst in config.status.
6061   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6062    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6063 s,@SHELL@,$SHELL,;t t
6064 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6065 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6066 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6067 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6068 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6069 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6070 s,@exec_prefix@,$exec_prefix,;t t
6071 s,@prefix@,$prefix,;t t
6072 s,@program_transform_name@,$program_transform_name,;t t
6073 s,@bindir@,$bindir,;t t
6074 s,@sbindir@,$sbindir,;t t
6075 s,@libexecdir@,$libexecdir,;t t
6076 s,@datadir@,$datadir,;t t
6077 s,@sysconfdir@,$sysconfdir,;t t
6078 s,@sharedstatedir@,$sharedstatedir,;t t
6079 s,@localstatedir@,$localstatedir,;t t
6080 s,@libdir@,$libdir,;t t
6081 s,@includedir@,$includedir,;t t
6082 s,@oldincludedir@,$oldincludedir,;t t
6083 s,@infodir@,$infodir,;t t
6084 s,@mandir@,$mandir,;t t
6085 s,@build_alias@,$build_alias,;t t
6086 s,@host_alias@,$host_alias,;t t
6087 s,@target_alias@,$target_alias,;t t
6088 s,@DEFS@,$DEFS,;t t
6089 s,@ECHO_C@,$ECHO_C,;t t
6090 s,@ECHO_N@,$ECHO_N,;t t
6091 s,@ECHO_T@,$ECHO_T,;t t
6092 s,@LIBS@,$LIBS,;t t
6093 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6094 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6095 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6096 s,@CYGPATH_W@,$CYGPATH_W,;t t
6097 s,@PACKAGE@,$PACKAGE,;t t
6098 s,@VERSION@,$VERSION,;t t
6099 s,@ACLOCAL@,$ACLOCAL,;t t
6100 s,@AUTOCONF@,$AUTOCONF,;t t
6101 s,@AUTOMAKE@,$AUTOMAKE,;t t
6102 s,@AUTOHEADER@,$AUTOHEADER,;t t
6103 s,@MAKEINFO@,$MAKEINFO,;t t
6104 s,@install_sh@,$install_sh,;t t
6105 s,@STRIP@,$STRIP,;t t
6106 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6107 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6108 s,@mkdir_p@,$mkdir_p,;t t
6109 s,@AWK@,$AWK,;t t
6110 s,@SET_MAKE@,$SET_MAKE,;t t
6111 s,@am__leading_dot@,$am__leading_dot,;t t
6112 s,@AMTAR@,$AMTAR,;t t
6113 s,@am__tar@,$am__tar,;t t
6114 s,@am__untar@,$am__untar,;t t
6115 s,@CC@,$CC,;t t
6116 s,@CFLAGS@,$CFLAGS,;t t
6117 s,@LDFLAGS@,$LDFLAGS,;t t
6118 s,@CPPFLAGS@,$CPPFLAGS,;t t
6119 s,@ac_ct_CC@,$ac_ct_CC,;t t
6120 s,@EXEEXT@,$EXEEXT,;t t
6121 s,@OBJEXT@,$OBJEXT,;t t
6122 s,@DEPDIR@,$DEPDIR,;t t
6123 s,@am__include@,$am__include,;t t
6124 s,@am__quote@,$am__quote,;t t
6125 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6126 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6127 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6128 s,@CCDEPMODE@,$CCDEPMODE,;t t
6129 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6130 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6131 s,@CPP@,$CPP,;t t
6132 s,@EGREP@,$EGREP,;t t
6133 s,@LEX@,$LEX,;t t
6134 s,@LEXLIB@,$LEXLIB,;t t
6135 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
6136 s,@YACC@,$YACC,;t t
6137 s,@RANLIB@,$RANLIB,;t t
6138 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6139 s,@READLINELIB@,$READLINELIB,;t t
6140 s,@BC_VERSION@,$BC_VERSION,;t t
6141 s,@DC_VERSION@,$DC_VERSION,;t t
6142 s,@LIBOBJS@,$LIBOBJS,;t t
6143 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6144 CEOF
6145
6146 _ACEOF
6147
6148   cat >>$CONFIG_STATUS <<\_ACEOF
6149   # Split the substitutions into bite-sized pieces for seds with
6150   # small command number limits, like on Digital OSF/1 and HP-UX.
6151   ac_max_sed_lines=48
6152   ac_sed_frag=1 # Number of current file.
6153   ac_beg=1 # First line for current file.
6154   ac_end=$ac_max_sed_lines # Line after last line for current file.
6155   ac_more_lines=:
6156   ac_sed_cmds=
6157   while $ac_more_lines; do
6158     if test $ac_beg -gt 1; then
6159       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6160     else
6161       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6162     fi
6163     if test ! -s $tmp/subs.frag; then
6164       ac_more_lines=false
6165     else
6166       # The purpose of the label and of the branching condition is to
6167       # speed up the sed processing (if there are no `@' at all, there
6168       # is no need to browse any of the substitutions).
6169       # These are the two extra sed commands mentioned above.
6170       (echo ':t
6171   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6172       if test -z "$ac_sed_cmds"; then
6173         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6174       else
6175         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6176       fi
6177       ac_sed_frag=`expr $ac_sed_frag + 1`
6178       ac_beg=$ac_end
6179       ac_end=`expr $ac_end + $ac_max_sed_lines`
6180     fi
6181   done
6182   if test -z "$ac_sed_cmds"; then
6183     ac_sed_cmds=cat
6184   fi
6185 fi # test -n "$CONFIG_FILES"
6186
6187 _ACEOF
6188 cat >>$CONFIG_STATUS <<\_ACEOF
6189 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6190   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6191   case $ac_file in
6192   - | *:- | *:-:* ) # input from stdin
6193         cat >$tmp/stdin
6194         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6195         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6196   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6197         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6198   * )   ac_file_in=$ac_file.in ;;
6199   esac
6200
6201   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6202   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6203 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6204          X"$ac_file" : 'X\(//\)[^/]' \| \
6205          X"$ac_file" : 'X\(//\)$' \| \
6206          X"$ac_file" : 'X\(/\)' \| \
6207          .     : '\(.\)' 2>/dev/null ||
6208 echo X"$ac_file" |
6209     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6210           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6211           /^X\(\/\/\)$/{ s//\1/; q; }
6212           /^X\(\/\).*/{ s//\1/; q; }
6213           s/.*/./; q'`
6214   { if $as_mkdir_p; then
6215     mkdir -p "$ac_dir"
6216   else
6217     as_dir="$ac_dir"
6218     as_dirs=
6219     while test ! -d "$as_dir"; do
6220       as_dirs="$as_dir $as_dirs"
6221       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6222 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6223          X"$as_dir" : 'X\(//\)[^/]' \| \
6224          X"$as_dir" : 'X\(//\)$' \| \
6225          X"$as_dir" : 'X\(/\)' \| \
6226          .     : '\(.\)' 2>/dev/null ||
6227 echo X"$as_dir" |
6228     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6229           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6230           /^X\(\/\/\)$/{ s//\1/; q; }
6231           /^X\(\/\).*/{ s//\1/; q; }
6232           s/.*/./; q'`
6233     done
6234     test ! -n "$as_dirs" || mkdir $as_dirs
6235   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6236 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6237    { (exit 1); exit 1; }; }; }
6238
6239   ac_builddir=.
6240
6241 if test "$ac_dir" != .; then
6242   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6243   # A "../" for each directory in $ac_dir_suffix.
6244   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6245 else
6246   ac_dir_suffix= ac_top_builddir=
6247 fi
6248
6249 case $srcdir in
6250   .)  # No --srcdir option.  We are building in place.
6251     ac_srcdir=.
6252     if test -z "$ac_top_builddir"; then
6253        ac_top_srcdir=.
6254     else
6255        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6256     fi ;;
6257   [\\/]* | ?:[\\/]* )  # Absolute path.
6258     ac_srcdir=$srcdir$ac_dir_suffix;
6259     ac_top_srcdir=$srcdir ;;
6260   *) # Relative path.
6261     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6262     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6263 esac
6264
6265 # Do not use `cd foo && pwd` to compute absolute paths, because
6266 # the directories may not exist.
6267 case `pwd` in
6268 .) ac_abs_builddir="$ac_dir";;
6269 *)
6270   case "$ac_dir" in
6271   .) ac_abs_builddir=`pwd`;;
6272   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6273   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6274   esac;;
6275 esac
6276 case $ac_abs_builddir in
6277 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6278 *)
6279   case ${ac_top_builddir}. in
6280   .) ac_abs_top_builddir=$ac_abs_builddir;;
6281   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6282   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6283   esac;;
6284 esac
6285 case $ac_abs_builddir in
6286 .) ac_abs_srcdir=$ac_srcdir;;
6287 *)
6288   case $ac_srcdir in
6289   .) ac_abs_srcdir=$ac_abs_builddir;;
6290   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6291   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6292   esac;;
6293 esac
6294 case $ac_abs_builddir in
6295 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6296 *)
6297   case $ac_top_srcdir in
6298   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6299   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6300   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6301   esac;;
6302 esac
6303
6304
6305   case $INSTALL in
6306   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6307   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6308   esac
6309
6310   if test x"$ac_file" != x-; then
6311     { echo "$as_me:$LINENO: creating $ac_file" >&5
6312 echo "$as_me: creating $ac_file" >&6;}
6313     rm -f "$ac_file"
6314   fi
6315   # Let's still pretend it is `configure' which instantiates (i.e., don't
6316   # use $as_me), people would be surprised to read:
6317   #    /* config.h.  Generated by config.status.  */
6318   if test x"$ac_file" = x-; then
6319     configure_input=
6320   else
6321     configure_input="$ac_file.  "
6322   fi
6323   configure_input=$configure_input"Generated from `echo $ac_file_in |
6324                                      sed 's,.*/,,'` by configure."
6325
6326   # First look for the input files in the build tree, otherwise in the
6327   # src tree.
6328   ac_file_inputs=`IFS=:
6329     for f in $ac_file_in; do
6330       case $f in
6331       -) echo $tmp/stdin ;;
6332       [\\/$]*)
6333          # Absolute (can't be DOS-style, as IFS=:)
6334          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6335 echo "$as_me: error: cannot find input file: $f" >&2;}
6336    { (exit 1); exit 1; }; }
6337          echo "$f";;
6338       *) # Relative
6339          if test -f "$f"; then
6340            # Build tree
6341            echo "$f"
6342          elif test -f "$srcdir/$f"; then
6343            # Source tree
6344            echo "$srcdir/$f"
6345          else
6346            # /dev/null tree
6347            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6348 echo "$as_me: error: cannot find input file: $f" >&2;}
6349    { (exit 1); exit 1; }; }
6350          fi;;
6351       esac
6352     done` || { (exit 1); exit 1; }
6353 _ACEOF
6354 cat >>$CONFIG_STATUS <<_ACEOF
6355   sed "$ac_vpsub
6356 $extrasub
6357 _ACEOF
6358 cat >>$CONFIG_STATUS <<\_ACEOF
6359 :t
6360 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6361 s,@configure_input@,$configure_input,;t t
6362 s,@srcdir@,$ac_srcdir,;t t
6363 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6364 s,@top_srcdir@,$ac_top_srcdir,;t t
6365 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6366 s,@builddir@,$ac_builddir,;t t
6367 s,@abs_builddir@,$ac_abs_builddir,;t t
6368 s,@top_builddir@,$ac_top_builddir,;t t
6369 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6370 s,@INSTALL@,$ac_INSTALL,;t t
6371 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6372   rm -f $tmp/stdin
6373   if test x"$ac_file" != x-; then
6374     mv $tmp/out $ac_file
6375   else
6376     cat $tmp/out
6377     rm -f $tmp/out
6378   fi
6379
6380 done
6381 _ACEOF
6382 cat >>$CONFIG_STATUS <<\_ACEOF
6383
6384 #
6385 # CONFIG_HEADER section.
6386 #
6387
6388 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6389 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6390 #
6391 # ac_d sets the value in "#define NAME VALUE" lines.
6392 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
6393 ac_dB='[         ].*$,\1#\2'
6394 ac_dC=' '
6395 ac_dD=',;t'
6396 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6397 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6398 ac_uB='$,\1#\2define\3'
6399 ac_uC=' '
6400 ac_uD=',;t'
6401
6402 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6403   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6404   case $ac_file in
6405   - | *:- | *:-:* ) # input from stdin
6406         cat >$tmp/stdin
6407         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6408         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6409   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6410         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6411   * )   ac_file_in=$ac_file.in ;;
6412   esac
6413
6414   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6415 echo "$as_me: creating $ac_file" >&6;}
6416
6417   # First look for the input files in the build tree, otherwise in the
6418   # src tree.
6419   ac_file_inputs=`IFS=:
6420     for f in $ac_file_in; do
6421       case $f in
6422       -) echo $tmp/stdin ;;
6423       [\\/$]*)
6424          # Absolute (can't be DOS-style, as IFS=:)
6425          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6426 echo "$as_me: error: cannot find input file: $f" >&2;}
6427    { (exit 1); exit 1; }; }
6428          # Do quote $f, to prevent DOS paths from being IFS'd.
6429          echo "$f";;
6430       *) # Relative
6431          if test -f "$f"; then
6432            # Build tree
6433            echo "$f"
6434          elif test -f "$srcdir/$f"; then
6435            # Source tree
6436            echo "$srcdir/$f"
6437          else
6438            # /dev/null tree
6439            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6440 echo "$as_me: error: cannot find input file: $f" >&2;}
6441    { (exit 1); exit 1; }; }
6442          fi;;
6443       esac
6444     done` || { (exit 1); exit 1; }
6445   # Remove the trailing spaces.
6446   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
6447
6448 _ACEOF
6449
6450 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6451 # `conftest.undefs', that substitutes the proper values into
6452 # config.h.in to produce config.h.  The first handles `#define'
6453 # templates, and the second `#undef' templates.
6454 # And first: Protect against being on the right side of a sed subst in
6455 # config.status.  Protect against being in an unquoted here document
6456 # in config.status.
6457 rm -f conftest.defines conftest.undefs
6458 # Using a here document instead of a string reduces the quoting nightmare.
6459 # Putting comments in sed scripts is not portable.
6460 #
6461 # `end' is used to avoid that the second main sed command (meant for
6462 # 0-ary CPP macros) applies to n-ary macro definitions.
6463 # See the Autoconf documentation for `clear'.
6464 cat >confdef2sed.sed <<\_ACEOF
6465 s/[\\&,]/\\&/g
6466 s,[\\$`],\\&,g
6467 t clear
6468 : clear
6469 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6470 t end
6471 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6472 : end
6473 _ACEOF
6474 # If some macros were called several times there might be several times
6475 # the same #defines, which is useless.  Nevertheless, we may not want to
6476 # sort them, since we want the *last* AC-DEFINE to be honored.
6477 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6478 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6479 rm -f confdef2sed.sed
6480
6481 # This sed command replaces #undef with comments.  This is necessary, for
6482 # example, in the case of _POSIX_SOURCE, which is predefined and required
6483 # on some systems where configure will not decide to define it.
6484 cat >>conftest.undefs <<\_ACEOF
6485 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6486 _ACEOF
6487
6488 # Break up conftest.defines because some shells have a limit on the size
6489 # of here documents, and old seds have small limits too (100 cmds).
6490 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6491 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6492 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6493 echo '  :' >>$CONFIG_STATUS
6494 rm -f conftest.tail
6495 while grep . conftest.defines >/dev/null
6496 do
6497   # Write a limited-size here document to $tmp/defines.sed.
6498   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6499   # Speed up: don't consider the non `#define' lines.
6500   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
6501   # Work around the forget-to-reset-the-flag bug.
6502   echo 't clr' >>$CONFIG_STATUS
6503   echo ': clr' >>$CONFIG_STATUS
6504   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6505   echo 'CEOF
6506   sed -f $tmp/defines.sed $tmp/in >$tmp/out
6507   rm -f $tmp/in
6508   mv $tmp/out $tmp/in
6509 ' >>$CONFIG_STATUS
6510   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6511   rm -f conftest.defines
6512   mv conftest.tail conftest.defines
6513 done
6514 rm -f conftest.defines
6515 echo '  fi # grep' >>$CONFIG_STATUS
6516 echo >>$CONFIG_STATUS
6517
6518 # Break up conftest.undefs because some shells have a limit on the size
6519 # of here documents, and old seds have small limits too (100 cmds).
6520 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6521 rm -f conftest.tail
6522 while grep . conftest.undefs >/dev/null
6523 do
6524   # Write a limited-size here document to $tmp/undefs.sed.
6525   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6526   # Speed up: don't consider the non `#undef'
6527   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6528   # Work around the forget-to-reset-the-flag bug.
6529   echo 't clr' >>$CONFIG_STATUS
6530   echo ': clr' >>$CONFIG_STATUS
6531   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6532   echo 'CEOF
6533   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6534   rm -f $tmp/in
6535   mv $tmp/out $tmp/in
6536 ' >>$CONFIG_STATUS
6537   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6538   rm -f conftest.undefs
6539   mv conftest.tail conftest.undefs
6540 done
6541 rm -f conftest.undefs
6542
6543 cat >>$CONFIG_STATUS <<\_ACEOF
6544   # Let's still pretend it is `configure' which instantiates (i.e., don't
6545   # use $as_me), people would be surprised to read:
6546   #    /* config.h.  Generated by config.status.  */
6547   if test x"$ac_file" = x-; then
6548     echo "/* Generated by configure.  */" >$tmp/config.h
6549   else
6550     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6551   fi
6552   cat $tmp/in >>$tmp/config.h
6553   rm -f $tmp/in
6554   if test x"$ac_file" != x-; then
6555     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6556       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6557 echo "$as_me: $ac_file is unchanged" >&6;}
6558     else
6559       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6560 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6561          X"$ac_file" : 'X\(//\)[^/]' \| \
6562          X"$ac_file" : 'X\(//\)$' \| \
6563          X"$ac_file" : 'X\(/\)' \| \
6564          .     : '\(.\)' 2>/dev/null ||
6565 echo X"$ac_file" |
6566     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6567           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6568           /^X\(\/\/\)$/{ s//\1/; q; }
6569           /^X\(\/\).*/{ s//\1/; q; }
6570           s/.*/./; q'`
6571       { if $as_mkdir_p; then
6572     mkdir -p "$ac_dir"
6573   else
6574     as_dir="$ac_dir"
6575     as_dirs=
6576     while test ! -d "$as_dir"; do
6577       as_dirs="$as_dir $as_dirs"
6578       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6580          X"$as_dir" : 'X\(//\)[^/]' \| \
6581          X"$as_dir" : 'X\(//\)$' \| \
6582          X"$as_dir" : 'X\(/\)' \| \
6583          .     : '\(.\)' 2>/dev/null ||
6584 echo X"$as_dir" |
6585     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6586           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6587           /^X\(\/\/\)$/{ s//\1/; q; }
6588           /^X\(\/\).*/{ s//\1/; q; }
6589           s/.*/./; q'`
6590     done
6591     test ! -n "$as_dirs" || mkdir $as_dirs
6592   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6593 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6594    { (exit 1); exit 1; }; }; }
6595
6596       rm -f $ac_file
6597       mv $tmp/config.h $ac_file
6598     fi
6599   else
6600     cat $tmp/config.h
6601     rm -f $tmp/config.h
6602   fi
6603 # Compute $ac_file's index in $config_headers.
6604 _am_stamp_count=1
6605 for _am_header in $config_headers :; do
6606   case $_am_header in
6607     $ac_file | $ac_file:* )
6608       break ;;
6609     * )
6610       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6611   esac
6612 done
6613 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6614 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6615          X$ac_file : 'X\(//\)[^/]' \| \
6616          X$ac_file : 'X\(//\)$' \| \
6617          X$ac_file : 'X\(/\)' \| \
6618          .     : '\(.\)' 2>/dev/null ||
6619 echo X$ac_file |
6620     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6621           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6622           /^X\(\/\/\)$/{ s//\1/; q; }
6623           /^X\(\/\).*/{ s//\1/; q; }
6624           s/.*/./; q'`/stamp-h$_am_stamp_count
6625 done
6626 _ACEOF
6627 cat >>$CONFIG_STATUS <<\_ACEOF
6628
6629 #
6630 # CONFIG_COMMANDS section.
6631 #
6632 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6633   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6634   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6635   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6636 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6637          X"$ac_dest" : 'X\(//\)[^/]' \| \
6638          X"$ac_dest" : 'X\(//\)$' \| \
6639          X"$ac_dest" : 'X\(/\)' \| \
6640          .     : '\(.\)' 2>/dev/null ||
6641 echo X"$ac_dest" |
6642     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6643           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6644           /^X\(\/\/\)$/{ s//\1/; q; }
6645           /^X\(\/\).*/{ s//\1/; q; }
6646           s/.*/./; q'`
6647   { if $as_mkdir_p; then
6648     mkdir -p "$ac_dir"
6649   else
6650     as_dir="$ac_dir"
6651     as_dirs=
6652     while test ! -d "$as_dir"; do
6653       as_dirs="$as_dir $as_dirs"
6654       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6655 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6656          X"$as_dir" : 'X\(//\)[^/]' \| \
6657          X"$as_dir" : 'X\(//\)$' \| \
6658          X"$as_dir" : 'X\(/\)' \| \
6659          .     : '\(.\)' 2>/dev/null ||
6660 echo X"$as_dir" |
6661     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6662           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6663           /^X\(\/\/\)$/{ s//\1/; q; }
6664           /^X\(\/\).*/{ s//\1/; q; }
6665           s/.*/./; q'`
6666     done
6667     test ! -n "$as_dirs" || mkdir $as_dirs
6668   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6669 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6670    { (exit 1); exit 1; }; }; }
6671
6672   ac_builddir=.
6673
6674 if test "$ac_dir" != .; then
6675   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6676   # A "../" for each directory in $ac_dir_suffix.
6677   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6678 else
6679   ac_dir_suffix= ac_top_builddir=
6680 fi
6681
6682 case $srcdir in
6683   .)  # No --srcdir option.  We are building in place.
6684     ac_srcdir=.
6685     if test -z "$ac_top_builddir"; then
6686        ac_top_srcdir=.
6687     else
6688        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6689     fi ;;
6690   [\\/]* | ?:[\\/]* )  # Absolute path.
6691     ac_srcdir=$srcdir$ac_dir_suffix;
6692     ac_top_srcdir=$srcdir ;;
6693   *) # Relative path.
6694     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6695     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6696 esac
6697
6698 # Do not use `cd foo && pwd` to compute absolute paths, because
6699 # the directories may not exist.
6700 case `pwd` in
6701 .) ac_abs_builddir="$ac_dir";;
6702 *)
6703   case "$ac_dir" in
6704   .) ac_abs_builddir=`pwd`;;
6705   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6706   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6707   esac;;
6708 esac
6709 case $ac_abs_builddir in
6710 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6711 *)
6712   case ${ac_top_builddir}. in
6713   .) ac_abs_top_builddir=$ac_abs_builddir;;
6714   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6715   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6716   esac;;
6717 esac
6718 case $ac_abs_builddir in
6719 .) ac_abs_srcdir=$ac_srcdir;;
6720 *)
6721   case $ac_srcdir in
6722   .) ac_abs_srcdir=$ac_abs_builddir;;
6723   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6724   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6725   esac;;
6726 esac
6727 case $ac_abs_builddir in
6728 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6729 *)
6730   case $ac_top_srcdir in
6731   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6732   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6733   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6734   esac;;
6735 esac
6736
6737
6738   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6739 echo "$as_me: executing $ac_dest commands" >&6;}
6740   case $ac_dest in
6741     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6742   # Strip MF so we end up with the name of the file.
6743   mf=`echo "$mf" | sed -e 's/:.*$//'`
6744   # Check whether this is an Automake generated Makefile or not.
6745   # We used to match only the files named `Makefile.in', but
6746   # some people rename them; so instead we look at the file content.
6747   # Grep'ing the first line is not enough: some people post-process
6748   # each Makefile.in and add a new line on top of each file to say so.
6749   # So let's grep whole file.
6750   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6751     dirpart=`(dirname "$mf") 2>/dev/null ||
6752 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6753          X"$mf" : 'X\(//\)[^/]' \| \
6754          X"$mf" : 'X\(//\)$' \| \
6755          X"$mf" : 'X\(/\)' \| \
6756          .     : '\(.\)' 2>/dev/null ||
6757 echo X"$mf" |
6758     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6759           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6760           /^X\(\/\/\)$/{ s//\1/; q; }
6761           /^X\(\/\).*/{ s//\1/; q; }
6762           s/.*/./; q'`
6763   else
6764     continue
6765   fi
6766   # Extract the definition of DEPDIR, am__include, and am__quote
6767   # from the Makefile without running `make'.
6768   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6769   test -z "$DEPDIR" && continue
6770   am__include=`sed -n 's/^am__include = //p' < "$mf"`
6771   test -z "am__include" && continue
6772   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6773   # When using ansi2knr, U may be empty or an underscore; expand it
6774   U=`sed -n 's/^U = //p' < "$mf"`
6775   # Find all dependency output files, they are included files with
6776   # $(DEPDIR) in their names.  We invoke sed twice because it is the
6777   # simplest approach to changing $(DEPDIR) to its actual value in the
6778   # expansion.
6779   for file in `sed -n "
6780     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6781        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6782     # Make sure the directory exists.
6783     test -f "$dirpart/$file" && continue
6784     fdir=`(dirname "$file") 2>/dev/null ||
6785 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6786          X"$file" : 'X\(//\)[^/]' \| \
6787          X"$file" : 'X\(//\)$' \| \
6788          X"$file" : 'X\(/\)' \| \
6789          .     : '\(.\)' 2>/dev/null ||
6790 echo X"$file" |
6791     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6792           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6793           /^X\(\/\/\)$/{ s//\1/; q; }
6794           /^X\(\/\).*/{ s//\1/; q; }
6795           s/.*/./; q'`
6796     { if $as_mkdir_p; then
6797     mkdir -p $dirpart/$fdir
6798   else
6799     as_dir=$dirpart/$fdir
6800     as_dirs=
6801     while test ! -d "$as_dir"; do
6802       as_dirs="$as_dir $as_dirs"
6803       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6804 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6805          X"$as_dir" : 'X\(//\)[^/]' \| \
6806          X"$as_dir" : 'X\(//\)$' \| \
6807          X"$as_dir" : 'X\(/\)' \| \
6808          .     : '\(.\)' 2>/dev/null ||
6809 echo X"$as_dir" |
6810     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6811           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6812           /^X\(\/\/\)$/{ s//\1/; q; }
6813           /^X\(\/\).*/{ s//\1/; q; }
6814           s/.*/./; q'`
6815     done
6816     test ! -n "$as_dirs" || mkdir $as_dirs
6817   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6818 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6819    { (exit 1); exit 1; }; }; }
6820
6821     # echo "creating $dirpart/$file"
6822     echo '# dummy' > "$dirpart/$file"
6823   done
6824 done
6825  ;;
6826   esac
6827 done
6828 _ACEOF
6829
6830 cat >>$CONFIG_STATUS <<\_ACEOF
6831
6832 { (exit 0); exit 0; }
6833 _ACEOF
6834 chmod +x $CONFIG_STATUS
6835 ac_clean_files=$ac_clean_files_save
6836
6837
6838 # configure is writing to config.log, and then calls config.status.
6839 # config.status does its own redirection, appending to config.log.
6840 # Unfortunately, on DOS this fails, as config.log is still kept open
6841 # by configure, so config.status won't be able to write to it; its
6842 # output is simply discarded.  So we exec the FD to /dev/null,
6843 # effectively closing config.log, so it can be properly (re)opened and
6844 # appended to by config.status.  When coming back to configure, we
6845 # need to make the FD available again.
6846 if test "$no_create" != yes; then
6847   ac_cs_success=:
6848   ac_config_status_args=
6849   test "$silent" = yes &&
6850     ac_config_status_args="$ac_config_status_args --quiet"
6851   exec 5>/dev/null
6852   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6853   exec 5>>config.log
6854   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6855   # would make configure fail if this is the last instruction.
6856   $ac_cs_success || { (exit 1); exit 1; }
6857 fi
6858