Imported Upstream version 2.4
[debian/cpmtools] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="cpmfs.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP LIBOBJS LDLIBS LDDEPS DEVICE DATADIR DISKDEFS DEFFORMAT FSED_CPM UPDATED 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 this package 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 System types:
835   --build=BUILD     configure for building on BUILD [guessed]
836   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
837 _ACEOF
838 fi
839
840 if test -n "$ac_init_help"; then
841
842   cat <<\_ACEOF
843
844 Optional Packages:
845   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
846   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
847   --with-defformat        Specify default format (ibm-3740)
848   --with-libdsk           Specify path to libdsk library
849   --with-dmalloc          Specify path to dmalloc library
850
851 Some influential environment variables:
852   CC          C compiler command
853   CFLAGS      C compiler flags
854   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
855               nonstandard directory <lib dir>
856   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
857               headers in a nonstandard directory <include dir>
858   CPP         C preprocessor
859
860 Use these variables to override the choices made by `configure' or to help
861 it to find libraries and programs with nonstandard names/locations.
862
863 _ACEOF
864 fi
865
866 if test "$ac_init_help" = "recursive"; then
867   # If there are subdirs, report their specific --help.
868   ac_popdir=`pwd`
869   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
870     test -d $ac_dir || continue
871     ac_builddir=.
872
873 if test "$ac_dir" != .; then
874   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
875   # A "../" for each directory in $ac_dir_suffix.
876   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
877 else
878   ac_dir_suffix= ac_top_builddir=
879 fi
880
881 case $srcdir in
882   .)  # No --srcdir option.  We are building in place.
883     ac_srcdir=.
884     if test -z "$ac_top_builddir"; then
885        ac_top_srcdir=.
886     else
887        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
888     fi ;;
889   [\\/]* | ?:[\\/]* )  # Absolute path.
890     ac_srcdir=$srcdir$ac_dir_suffix;
891     ac_top_srcdir=$srcdir ;;
892   *) # Relative path.
893     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
894     ac_top_srcdir=$ac_top_builddir$srcdir ;;
895 esac
896 case "$ac_dir" in
897 .) ac_abs_builddir=$ac_builddir;;
898 *)
899   case $ac_builddir in
900   .) ac_abs_builddir="$ac_dir";;
901   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
902   *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
903   esac;;
904 esac
905 case "$ac_dir" in
906 .) ac_abs_top_builddir=${ac_top_builddir}.;;
907 *)
908   case ${ac_top_builddir}. in
909   .) ac_abs_top_builddir="$ac_dir";;
910   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
911   *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
912   esac;;
913 esac
914 case "$ac_dir" in
915 .) ac_abs_srcdir=$ac_srcdir;;
916 *)
917   case $ac_srcdir in
918   .) ac_abs_srcdir="$ac_dir";;
919   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
920   *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
921   esac;;
922 esac
923 case "$ac_dir" in
924 .) ac_abs_top_srcdir=$ac_top_srcdir;;
925 *)
926   case $ac_top_srcdir in
927   .) ac_abs_top_srcdir="$ac_dir";;
928   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
929   *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
930   esac;;
931 esac
932
933     cd $ac_dir
934     # Check for guested configure; otherwise get Cygnus style configure.
935     if test -f $ac_srcdir/configure.gnu; then
936       echo
937       $SHELL $ac_srcdir/configure.gnu  --help=recursive
938     elif test -f $ac_srcdir/configure; then
939       echo
940       $SHELL $ac_srcdir/configure  --help=recursive
941     elif test -f $ac_srcdir/configure.ac ||
942            test -f $ac_srcdir/configure.in; then
943       echo
944       $ac_configure --help
945     else
946       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
947     fi
948     cd $ac_popdir
949   done
950 fi
951
952 test -n "$ac_init_help" && exit 0
953 if $ac_init_version; then
954   cat <<\_ACEOF
955
956 Copyright (C) 2003 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
959 _ACEOF
960   exit 0
961 fi
962 exec 5>config.log
963 cat >&5 <<_ACEOF
964 This file contains any messages produced by compilers while
965 running configure, to aid debugging if configure makes a mistake.
966
967 It was created by $as_me, which was
968 generated by GNU Autoconf 2.58.  Invocation command line was
969
970   $ $0 $@
971
972 _ACEOF
973 {
974 cat <<_ASUNAME
975 ## --------- ##
976 ## Platform. ##
977 ## --------- ##
978
979 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
980 uname -m = `(uname -m) 2>/dev/null || echo unknown`
981 uname -r = `(uname -r) 2>/dev/null || echo unknown`
982 uname -s = `(uname -s) 2>/dev/null || echo unknown`
983 uname -v = `(uname -v) 2>/dev/null || echo unknown`
984
985 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
986 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
987
988 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
989 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
990 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
991 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
992 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
993 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
994 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
995
996 _ASUNAME
997
998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
999 for as_dir in $PATH
1000 do
1001   IFS=$as_save_IFS
1002   test -z "$as_dir" && as_dir=.
1003   echo "PATH: $as_dir"
1004 done
1005
1006 } >&5
1007
1008 cat >&5 <<_ACEOF
1009
1010
1011 ## ----------- ##
1012 ## Core tests. ##
1013 ## ----------- ##
1014
1015 _ACEOF
1016
1017
1018 # Keep a trace of the command line.
1019 # Strip out --no-create and --no-recursion so they do not pile up.
1020 # Strip out --silent because we don't want to record it for future runs.
1021 # Also quote any args containing shell meta-characters.
1022 # Make two passes to allow for proper duplicate-argument suppression.
1023 ac_configure_args=
1024 ac_configure_args0=
1025 ac_configure_args1=
1026 ac_sep=
1027 ac_must_keep_next=false
1028 for ac_pass in 1 2
1029 do
1030   for ac_arg
1031   do
1032     case $ac_arg in
1033     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1034     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1035     | -silent | --silent | --silen | --sile | --sil)
1036       continue ;;
1037     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1038       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1039     esac
1040     case $ac_pass in
1041     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1042     2)
1043       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1044       if test $ac_must_keep_next = true; then
1045         ac_must_keep_next=false # Got value, back to normal.
1046       else
1047         case $ac_arg in
1048           *=* | --config-cache | -C | -disable-* | --disable-* \
1049           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1050           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1051           | -with-* | --with-* | -without-* | --without-* | --x)
1052             case "$ac_configure_args0 " in
1053               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1054             esac
1055             ;;
1056           -* ) ac_must_keep_next=true ;;
1057         esac
1058       fi
1059       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1060       # Get rid of the leading space.
1061       ac_sep=" "
1062       ;;
1063     esac
1064   done
1065 done
1066 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1067 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1068
1069 # When interrupted or exit'd, cleanup temporary files, and complete
1070 # config.log.  We remove comments because anyway the quotes in there
1071 # would cause problems or look ugly.
1072 # WARNING: Be sure not to use single quotes in there, as some shells,
1073 # such as our DU 5.0 friend, will then `close' the trap.
1074 trap 'exit_status=$?
1075   # Save into config.log some information that might help in debugging.
1076   {
1077     echo
1078
1079     cat <<\_ASBOX
1080 ## ---------------- ##
1081 ## Cache variables. ##
1082 ## ---------------- ##
1083 _ASBOX
1084     echo
1085     # The following way of writing the cache mishandles newlines in values,
1086 {
1087   (set) 2>&1 |
1088     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1089     *ac_space=\ *)
1090       sed -n \
1091         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1092           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1093       ;;
1094     *)
1095       sed -n \
1096         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1097       ;;
1098     esac;
1099 }
1100     echo
1101
1102     cat <<\_ASBOX
1103 ## ----------------- ##
1104 ## Output variables. ##
1105 ## ----------------- ##
1106 _ASBOX
1107     echo
1108     for ac_var in $ac_subst_vars
1109     do
1110       eval ac_val=$`echo $ac_var`
1111       echo "$ac_var='"'"'$ac_val'"'"'"
1112     done | sort
1113     echo
1114
1115     if test -n "$ac_subst_files"; then
1116       cat <<\_ASBOX
1117 ## ------------- ##
1118 ## Output files. ##
1119 ## ------------- ##
1120 _ASBOX
1121       echo
1122       for ac_var in $ac_subst_files
1123       do
1124         eval ac_val=$`echo $ac_var`
1125         echo "$ac_var='"'"'$ac_val'"'"'"
1126       done | sort
1127       echo
1128     fi
1129
1130     if test -s confdefs.h; then
1131       cat <<\_ASBOX
1132 ## ----------- ##
1133 ## confdefs.h. ##
1134 ## ----------- ##
1135 _ASBOX
1136       echo
1137       sed "/^$/d" confdefs.h | sort
1138       echo
1139     fi
1140     test "$ac_signal" != 0 &&
1141       echo "$as_me: caught signal $ac_signal"
1142     echo "$as_me: exit $exit_status"
1143   } >&5
1144   rm -f core *.core &&
1145   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1146     exit $exit_status
1147      ' 0
1148 for ac_signal in 1 2 13 15; do
1149   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1150 done
1151 ac_signal=0
1152
1153 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1154 rm -rf conftest* confdefs.h
1155 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1156 echo >confdefs.h
1157
1158 # Predefined preprocessor variables.
1159
1160 cat >>confdefs.h <<_ACEOF
1161 #define PACKAGE_NAME "$PACKAGE_NAME"
1162 _ACEOF
1163
1164
1165 cat >>confdefs.h <<_ACEOF
1166 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1167 _ACEOF
1168
1169
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1172 _ACEOF
1173
1174
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_STRING "$PACKAGE_STRING"
1177 _ACEOF
1178
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1182 _ACEOF
1183
1184
1185 # Let the site file select an alternate cache file if it wants to.
1186 # Prefer explicitly selected file to automatically selected ones.
1187 if test -z "$CONFIG_SITE"; then
1188   if test "x$prefix" != xNONE; then
1189     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1190   else
1191     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1192   fi
1193 fi
1194 for ac_site_file in $CONFIG_SITE; do
1195   if test -r "$ac_site_file"; then
1196     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1197 echo "$as_me: loading site script $ac_site_file" >&6;}
1198     sed 's/^/| /' "$ac_site_file" >&5
1199     . "$ac_site_file"
1200   fi
1201 done
1202
1203 if test -r "$cache_file"; then
1204   # Some versions of bash will fail to source /dev/null (special
1205   # files actually), so we avoid doing that.
1206   if test -f "$cache_file"; then
1207     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1208 echo "$as_me: loading cache $cache_file" >&6;}
1209     case $cache_file in
1210       [\\/]* | ?:[\\/]* ) . $cache_file;;
1211       *)                      . ./$cache_file;;
1212     esac
1213   fi
1214 else
1215   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1216 echo "$as_me: creating cache $cache_file" >&6;}
1217   >$cache_file
1218 fi
1219
1220 # Check that the precious variables saved in the cache have kept the same
1221 # value.
1222 ac_cache_corrupted=false
1223 for ac_var in `(set) 2>&1 |
1224                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1225   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1226   eval ac_new_set=\$ac_env_${ac_var}_set
1227   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1228   eval ac_new_val="\$ac_env_${ac_var}_value"
1229   case $ac_old_set,$ac_new_set in
1230     set,)
1231       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1232 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1233       ac_cache_corrupted=: ;;
1234     ,set)
1235       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1236 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1237       ac_cache_corrupted=: ;;
1238     ,);;
1239     *)
1240       if test "x$ac_old_val" != "x$ac_new_val"; then
1241         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1242 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1243         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1244 echo "$as_me:   former value:  $ac_old_val" >&2;}
1245         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1246 echo "$as_me:   current value: $ac_new_val" >&2;}
1247         ac_cache_corrupted=:
1248       fi;;
1249   esac
1250   # Pass precious variables to config.status.
1251   if test "$ac_new_set" = set; then
1252     case $ac_new_val in
1253     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1254       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1255     *) ac_arg=$ac_var=$ac_new_val ;;
1256     esac
1257     case " $ac_configure_args " in
1258       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1259       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1260     esac
1261   fi
1262 done
1263 if $ac_cache_corrupted; then
1264   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1265 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1266   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1267 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1268    { (exit 1); exit 1; }; }
1269 fi
1270
1271 ac_ext=c
1272 ac_cpp='$CPP $CPPFLAGS'
1273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295           ac_config_headers="$ac_config_headers config.h"
1296
1297 ac_aux_dir=
1298 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1299   if test -f $ac_dir/install-sh; then
1300     ac_aux_dir=$ac_dir
1301     ac_install_sh="$ac_aux_dir/install-sh -c"
1302     break
1303   elif test -f $ac_dir/install.sh; then
1304     ac_aux_dir=$ac_dir
1305     ac_install_sh="$ac_aux_dir/install.sh -c"
1306     break
1307   elif test -f $ac_dir/shtool; then
1308     ac_aux_dir=$ac_dir
1309     ac_install_sh="$ac_aux_dir/shtool install -c"
1310     break
1311   fi
1312 done
1313 if test -z "$ac_aux_dir"; then
1314   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1315 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1316    { (exit 1); exit 1; }; }
1317 fi
1318 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1319 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1320 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1321
1322 # Make sure we can run config.sub.
1323 $ac_config_sub sun4 >/dev/null 2>&1 ||
1324   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1325 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1326    { (exit 1); exit 1; }; }
1327
1328 echo "$as_me:$LINENO: checking build system type" >&5
1329 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1330 if test "${ac_cv_build+set}" = set; then
1331   echo $ECHO_N "(cached) $ECHO_C" >&6
1332 else
1333   ac_cv_build_alias=$build_alias
1334 test -z "$ac_cv_build_alias" &&
1335   ac_cv_build_alias=`$ac_config_guess`
1336 test -z "$ac_cv_build_alias" &&
1337   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1338 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1339    { (exit 1); exit 1; }; }
1340 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1341   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1342 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1343    { (exit 1); exit 1; }; }
1344
1345 fi
1346 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1347 echo "${ECHO_T}$ac_cv_build" >&6
1348 build=$ac_cv_build
1349 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1350 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1351 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1352
1353
1354 echo "$as_me:$LINENO: checking host system type" >&5
1355 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1356 if test "${ac_cv_host+set}" = set; then
1357   echo $ECHO_N "(cached) $ECHO_C" >&6
1358 else
1359   ac_cv_host_alias=$host_alias
1360 test -z "$ac_cv_host_alias" &&
1361   ac_cv_host_alias=$ac_cv_build_alias
1362 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1363   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1364 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1365    { (exit 1); exit 1; }; }
1366
1367 fi
1368 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1369 echo "${ECHO_T}$ac_cv_host" >&6
1370 host=$ac_cv_host
1371 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1372 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1373 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1374
1375
1376 VERSION=2.4
1377 UPDATED='Oct 6, 2004'
1378
1379 DEVICE="posix"
1380
1381 if test "$prefix" = NONE
1382 then
1383   case $host in
1384     *-linux-*)
1385       PIPE="-pipe "
1386     ;;
1387   esac
1388   case $host in
1389     *-netbsd*)
1390       PIPE="-pipe "
1391     ;;
1392   esac
1393 fi
1394
1395 ac_ext=c
1396 ac_cpp='$CPP $CPPFLAGS'
1397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1400 if test -n "$ac_tool_prefix"; then
1401   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1402 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1403 echo "$as_me:$LINENO: checking for $ac_word" >&5
1404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1405 if test "${ac_cv_prog_CC+set}" = set; then
1406   echo $ECHO_N "(cached) $ECHO_C" >&6
1407 else
1408   if test -n "$CC"; then
1409   ac_cv_prog_CC="$CC" # Let the user override the test.
1410 else
1411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1412 for as_dir in $PATH
1413 do
1414   IFS=$as_save_IFS
1415   test -z "$as_dir" && as_dir=.
1416   for ac_exec_ext in '' $ac_executable_extensions; do
1417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1418     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1420     break 2
1421   fi
1422 done
1423 done
1424
1425 fi
1426 fi
1427 CC=$ac_cv_prog_CC
1428 if test -n "$CC"; then
1429   echo "$as_me:$LINENO: result: $CC" >&5
1430 echo "${ECHO_T}$CC" >&6
1431 else
1432   echo "$as_me:$LINENO: result: no" >&5
1433 echo "${ECHO_T}no" >&6
1434 fi
1435
1436 fi
1437 if test -z "$ac_cv_prog_CC"; then
1438   ac_ct_CC=$CC
1439   # Extract the first word of "gcc", so it can be a program name with args.
1440 set dummy gcc; ac_word=$2
1441 echo "$as_me:$LINENO: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1444   echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446   if test -n "$ac_ct_CC"; then
1447   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1448 else
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 for as_dir in $PATH
1451 do
1452   IFS=$as_save_IFS
1453   test -z "$as_dir" && as_dir=.
1454   for ac_exec_ext in '' $ac_executable_extensions; do
1455   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456     ac_cv_prog_ac_ct_CC="gcc"
1457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458     break 2
1459   fi
1460 done
1461 done
1462
1463 fi
1464 fi
1465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1466 if test -n "$ac_ct_CC"; then
1467   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1468 echo "${ECHO_T}$ac_ct_CC" >&6
1469 else
1470   echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1472 fi
1473
1474   CC=$ac_ct_CC
1475 else
1476   CC="$ac_cv_prog_CC"
1477 fi
1478
1479 if test -z "$CC"; then
1480   if test -n "$ac_tool_prefix"; then
1481   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1482 set dummy ${ac_tool_prefix}cc; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_prog_CC+set}" = set; then
1486   echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488   if test -n "$CC"; then
1489   ac_cv_prog_CC="$CC" # Let the user override the test.
1490 else
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1493 do
1494   IFS=$as_save_IFS
1495   test -z "$as_dir" && as_dir=.
1496   for ac_exec_ext in '' $ac_executable_extensions; do
1497   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498     ac_cv_prog_CC="${ac_tool_prefix}cc"
1499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500     break 2
1501   fi
1502 done
1503 done
1504
1505 fi
1506 fi
1507 CC=$ac_cv_prog_CC
1508 if test -n "$CC"; then
1509   echo "$as_me:$LINENO: result: $CC" >&5
1510 echo "${ECHO_T}$CC" >&6
1511 else
1512   echo "$as_me:$LINENO: result: no" >&5
1513 echo "${ECHO_T}no" >&6
1514 fi
1515
1516 fi
1517 if test -z "$ac_cv_prog_CC"; then
1518   ac_ct_CC=$CC
1519   # Extract the first word of "cc", so it can be a program name with args.
1520 set dummy cc; ac_word=$2
1521 echo "$as_me:$LINENO: checking for $ac_word" >&5
1522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1524   echo $ECHO_N "(cached) $ECHO_C" >&6
1525 else
1526   if test -n "$ac_ct_CC"; then
1527   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1528 else
1529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 for as_dir in $PATH
1531 do
1532   IFS=$as_save_IFS
1533   test -z "$as_dir" && as_dir=.
1534   for ac_exec_ext in '' $ac_executable_extensions; do
1535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536     ac_cv_prog_ac_ct_CC="cc"
1537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538     break 2
1539   fi
1540 done
1541 done
1542
1543 fi
1544 fi
1545 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1546 if test -n "$ac_ct_CC"; then
1547   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1548 echo "${ECHO_T}$ac_ct_CC" >&6
1549 else
1550   echo "$as_me:$LINENO: result: no" >&5
1551 echo "${ECHO_T}no" >&6
1552 fi
1553
1554   CC=$ac_ct_CC
1555 else
1556   CC="$ac_cv_prog_CC"
1557 fi
1558
1559 fi
1560 if test -z "$CC"; then
1561   # Extract the first word of "cc", so it can be a program name with args.
1562 set dummy cc; ac_word=$2
1563 echo "$as_me:$LINENO: checking for $ac_word" >&5
1564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1565 if test "${ac_cv_prog_CC+set}" = set; then
1566   echo $ECHO_N "(cached) $ECHO_C" >&6
1567 else
1568   if test -n "$CC"; then
1569   ac_cv_prog_CC="$CC" # Let the user override the test.
1570 else
1571   ac_prog_rejected=no
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 for as_dir in $PATH
1574 do
1575   IFS=$as_save_IFS
1576   test -z "$as_dir" && as_dir=.
1577   for ac_exec_ext in '' $ac_executable_extensions; do
1578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1580        ac_prog_rejected=yes
1581        continue
1582      fi
1583     ac_cv_prog_CC="cc"
1584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1585     break 2
1586   fi
1587 done
1588 done
1589
1590 if test $ac_prog_rejected = yes; then
1591   # We found a bogon in the path, so make sure we never use it.
1592   set dummy $ac_cv_prog_CC
1593   shift
1594   if test $# != 0; then
1595     # We chose a different compiler from the bogus one.
1596     # However, it has the same basename, so the bogon will be chosen
1597     # first if we set CC to just the basename; use the full file name.
1598     shift
1599     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1600   fi
1601 fi
1602 fi
1603 fi
1604 CC=$ac_cv_prog_CC
1605 if test -n "$CC"; then
1606   echo "$as_me:$LINENO: result: $CC" >&5
1607 echo "${ECHO_T}$CC" >&6
1608 else
1609   echo "$as_me:$LINENO: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1611 fi
1612
1613 fi
1614 if test -z "$CC"; then
1615   if test -n "$ac_tool_prefix"; then
1616   for ac_prog in cl
1617   do
1618     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1620 echo "$as_me:$LINENO: checking for $ac_word" >&5
1621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622 if test "${ac_cv_prog_CC+set}" = set; then
1623   echo $ECHO_N "(cached) $ECHO_C" >&6
1624 else
1625   if test -n "$CC"; then
1626   ac_cv_prog_CC="$CC" # Let the user override the test.
1627 else
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 for as_dir in $PATH
1630 do
1631   IFS=$as_save_IFS
1632   test -z "$as_dir" && as_dir=.
1633   for ac_exec_ext in '' $ac_executable_extensions; do
1634   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1635     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1637     break 2
1638   fi
1639 done
1640 done
1641
1642 fi
1643 fi
1644 CC=$ac_cv_prog_CC
1645 if test -n "$CC"; then
1646   echo "$as_me:$LINENO: result: $CC" >&5
1647 echo "${ECHO_T}$CC" >&6
1648 else
1649   echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1651 fi
1652
1653     test -n "$CC" && break
1654   done
1655 fi
1656 if test -z "$CC"; then
1657   ac_ct_CC=$CC
1658   for ac_prog in cl
1659 do
1660   # Extract the first word of "$ac_prog", so it can be a program name with args.
1661 set dummy $ac_prog; ac_word=$2
1662 echo "$as_me:$LINENO: checking for $ac_word" >&5
1663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1665   echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667   if test -n "$ac_ct_CC"; then
1668   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1669 else
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 for as_dir in $PATH
1672 do
1673   IFS=$as_save_IFS
1674   test -z "$as_dir" && as_dir=.
1675   for ac_exec_ext in '' $ac_executable_extensions; do
1676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1677     ac_cv_prog_ac_ct_CC="$ac_prog"
1678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679     break 2
1680   fi
1681 done
1682 done
1683
1684 fi
1685 fi
1686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1687 if test -n "$ac_ct_CC"; then
1688   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1689 echo "${ECHO_T}$ac_ct_CC" >&6
1690 else
1691   echo "$as_me:$LINENO: result: no" >&5
1692 echo "${ECHO_T}no" >&6
1693 fi
1694
1695   test -n "$ac_ct_CC" && break
1696 done
1697
1698   CC=$ac_ct_CC
1699 fi
1700
1701 fi
1702
1703
1704 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1705 See \`config.log' for more details." >&5
1706 echo "$as_me: error: no acceptable C compiler found in \$PATH
1707 See \`config.log' for more details." >&2;}
1708    { (exit 1); exit 1; }; }
1709
1710 # Provide some information about the compiler.
1711 echo "$as_me:$LINENO:" \
1712      "checking for C compiler version" >&5
1713 ac_compiler=`set X $ac_compile; echo $2`
1714 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1715   (eval $ac_compiler --version </dev/null >&5) 2>&5
1716   ac_status=$?
1717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1718   (exit $ac_status); }
1719 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1720   (eval $ac_compiler -v </dev/null >&5) 2>&5
1721   ac_status=$?
1722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1723   (exit $ac_status); }
1724 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1725   (eval $ac_compiler -V </dev/null >&5) 2>&5
1726   ac_status=$?
1727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1728   (exit $ac_status); }
1729
1730 cat >conftest.$ac_ext <<_ACEOF
1731 /* confdefs.h.  */
1732 _ACEOF
1733 cat confdefs.h >>conftest.$ac_ext
1734 cat >>conftest.$ac_ext <<_ACEOF
1735 /* end confdefs.h.  */
1736
1737 int
1738 main ()
1739 {
1740
1741   ;
1742   return 0;
1743 }
1744 _ACEOF
1745 ac_clean_files_save=$ac_clean_files
1746 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1747 # Try to create an executable without -o first, disregard a.out.
1748 # It will help us diagnose broken compilers, and finding out an intuition
1749 # of exeext.
1750 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1751 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1752 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1753 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1754   (eval $ac_link_default) 2>&5
1755   ac_status=$?
1756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757   (exit $ac_status); }; then
1758   # Find the output, starting from the most likely.  This scheme is
1759 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1760 # resort.
1761
1762 # Be careful to initialize this variable, since it used to be cached.
1763 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1764 ac_cv_exeext=
1765 # b.out is created by i960 compilers.
1766 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1767 do
1768   test -f "$ac_file" || continue
1769   case $ac_file in
1770     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1771         ;;
1772     conftest.$ac_ext )
1773         # This is the source file.
1774         ;;
1775     [ab].out )
1776         # We found the default executable, but exeext='' is most
1777         # certainly right.
1778         break;;
1779     *.* )
1780         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1781         # FIXME: I believe we export ac_cv_exeext for Libtool,
1782         # but it would be cool to find out if it's true.  Does anybody
1783         # maintain Libtool? --akim.
1784         export ac_cv_exeext
1785         break;;
1786     * )
1787         break;;
1788   esac
1789 done
1790 else
1791   echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1793
1794 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1795 See \`config.log' for more details." >&5
1796 echo "$as_me: error: C compiler cannot create executables
1797 See \`config.log' for more details." >&2;}
1798    { (exit 77); exit 77; }; }
1799 fi
1800
1801 ac_exeext=$ac_cv_exeext
1802 echo "$as_me:$LINENO: result: $ac_file" >&5
1803 echo "${ECHO_T}$ac_file" >&6
1804
1805 # Check the compiler produces executables we can run.  If not, either
1806 # the compiler is broken, or we cross compile.
1807 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1808 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1809 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1810 # If not cross compiling, check that we can run a simple program.
1811 if test "$cross_compiling" != yes; then
1812   if { ac_try='./$ac_file'
1813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1814   (eval $ac_try) 2>&5
1815   ac_status=$?
1816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1817   (exit $ac_status); }; }; then
1818     cross_compiling=no
1819   else
1820     if test "$cross_compiling" = maybe; then
1821         cross_compiling=yes
1822     else
1823         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1824 If you meant to cross compile, use \`--host'.
1825 See \`config.log' for more details." >&5
1826 echo "$as_me: error: cannot run C compiled programs.
1827 If you meant to cross compile, use \`--host'.
1828 See \`config.log' for more details." >&2;}
1829    { (exit 1); exit 1; }; }
1830     fi
1831   fi
1832 fi
1833 echo "$as_me:$LINENO: result: yes" >&5
1834 echo "${ECHO_T}yes" >&6
1835
1836 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1837 ac_clean_files=$ac_clean_files_save
1838 # Check the compiler produces executables we can run.  If not, either
1839 # the compiler is broken, or we cross compile.
1840 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1841 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1842 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1843 echo "${ECHO_T}$cross_compiling" >&6
1844
1845 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1846 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1848   (eval $ac_link) 2>&5
1849   ac_status=$?
1850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851   (exit $ac_status); }; then
1852   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1853 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1854 # work properly (i.e., refer to `conftest.exe'), while it won't with
1855 # `rm'.
1856 for ac_file in conftest.exe conftest conftest.*; do
1857   test -f "$ac_file" || continue
1858   case $ac_file in
1859     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1860     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1861           export ac_cv_exeext
1862           break;;
1863     * ) break;;
1864   esac
1865 done
1866 else
1867   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1868 See \`config.log' for more details." >&5
1869 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1870 See \`config.log' for more details." >&2;}
1871    { (exit 1); exit 1; }; }
1872 fi
1873
1874 rm -f conftest$ac_cv_exeext
1875 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1876 echo "${ECHO_T}$ac_cv_exeext" >&6
1877
1878 rm -f conftest.$ac_ext
1879 EXEEXT=$ac_cv_exeext
1880 ac_exeext=$EXEEXT
1881 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1882 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1883 if test "${ac_cv_objext+set}" = set; then
1884   echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886   cat >conftest.$ac_ext <<_ACEOF
1887 /* confdefs.h.  */
1888 _ACEOF
1889 cat confdefs.h >>conftest.$ac_ext
1890 cat >>conftest.$ac_ext <<_ACEOF
1891 /* end confdefs.h.  */
1892
1893 int
1894 main ()
1895 {
1896
1897   ;
1898   return 0;
1899 }
1900 _ACEOF
1901 rm -f conftest.o conftest.obj
1902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1903   (eval $ac_compile) 2>&5
1904   ac_status=$?
1905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906   (exit $ac_status); }; then
1907   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1908   case $ac_file in
1909     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1910     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1911        break;;
1912   esac
1913 done
1914 else
1915   echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1921 See \`config.log' for more details." >&2;}
1922    { (exit 1); exit 1; }; }
1923 fi
1924
1925 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1926 fi
1927 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1928 echo "${ECHO_T}$ac_cv_objext" >&6
1929 OBJEXT=$ac_cv_objext
1930 ac_objext=$OBJEXT
1931 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1932 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1933 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1934   echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936   cat >conftest.$ac_ext <<_ACEOF
1937 /* confdefs.h.  */
1938 _ACEOF
1939 cat confdefs.h >>conftest.$ac_ext
1940 cat >>conftest.$ac_ext <<_ACEOF
1941 /* end confdefs.h.  */
1942
1943 int
1944 main ()
1945 {
1946 #ifndef __GNUC__
1947        choke me
1948 #endif
1949
1950   ;
1951   return 0;
1952 }
1953 _ACEOF
1954 rm -f conftest.$ac_objext
1955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1956   (eval $ac_compile) 2>conftest.er1
1957   ac_status=$?
1958   grep -v '^ *+' conftest.er1 >conftest.err
1959   rm -f conftest.er1
1960   cat conftest.err >&5
1961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962   (exit $ac_status); } &&
1963          { ac_try='test -z "$ac_c_werror_flag"
1964                          || test ! -s conftest.err'
1965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1966   (eval $ac_try) 2>&5
1967   ac_status=$?
1968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969   (exit $ac_status); }; } &&
1970          { ac_try='test -s conftest.$ac_objext'
1971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1972   (eval $ac_try) 2>&5
1973   ac_status=$?
1974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975   (exit $ac_status); }; }; then
1976   ac_compiler_gnu=yes
1977 else
1978   echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1980
1981 ac_compiler_gnu=no
1982 fi
1983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1984 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1985
1986 fi
1987 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1988 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1989 GCC=`test $ac_compiler_gnu = yes && echo yes`
1990 ac_test_CFLAGS=${CFLAGS+set}
1991 ac_save_CFLAGS=$CFLAGS
1992 CFLAGS="-g"
1993 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1994 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1995 if test "${ac_cv_prog_cc_g+set}" = set; then
1996   echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998   cat >conftest.$ac_ext <<_ACEOF
1999 /* confdefs.h.  */
2000 _ACEOF
2001 cat confdefs.h >>conftest.$ac_ext
2002 cat >>conftest.$ac_ext <<_ACEOF
2003 /* end confdefs.h.  */
2004
2005 int
2006 main ()
2007 {
2008
2009   ;
2010   return 0;
2011 }
2012 _ACEOF
2013 rm -f conftest.$ac_objext
2014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2015   (eval $ac_compile) 2>conftest.er1
2016   ac_status=$?
2017   grep -v '^ *+' conftest.er1 >conftest.err
2018   rm -f conftest.er1
2019   cat conftest.err >&5
2020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021   (exit $ac_status); } &&
2022          { ac_try='test -z "$ac_c_werror_flag"
2023                          || test ! -s conftest.err'
2024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2025   (eval $ac_try) 2>&5
2026   ac_status=$?
2027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028   (exit $ac_status); }; } &&
2029          { ac_try='test -s conftest.$ac_objext'
2030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031   (eval $ac_try) 2>&5
2032   ac_status=$?
2033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034   (exit $ac_status); }; }; then
2035   ac_cv_prog_cc_g=yes
2036 else
2037   echo "$as_me: failed program was:" >&5
2038 sed 's/^/| /' conftest.$ac_ext >&5
2039
2040 ac_cv_prog_cc_g=no
2041 fi
2042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2043 fi
2044 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2045 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2046 if test "$ac_test_CFLAGS" = set; then
2047   CFLAGS=$ac_save_CFLAGS
2048 elif test $ac_cv_prog_cc_g = yes; then
2049   if test "$GCC" = yes; then
2050     CFLAGS="-g -O2"
2051   else
2052     CFLAGS="-g"
2053   fi
2054 else
2055   if test "$GCC" = yes; then
2056     CFLAGS="-O2"
2057   else
2058     CFLAGS=
2059   fi
2060 fi
2061 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2062 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2063 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2064   echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066   ac_cv_prog_cc_stdc=no
2067 ac_save_CC=$CC
2068 cat >conftest.$ac_ext <<_ACEOF
2069 /* confdefs.h.  */
2070 _ACEOF
2071 cat confdefs.h >>conftest.$ac_ext
2072 cat >>conftest.$ac_ext <<_ACEOF
2073 /* end confdefs.h.  */
2074 #include <stdarg.h>
2075 #include <stdio.h>
2076 #include <sys/types.h>
2077 #include <sys/stat.h>
2078 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2079 struct buf { int x; };
2080 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2081 static char *e (p, i)
2082      char **p;
2083      int i;
2084 {
2085   return p[i];
2086 }
2087 static char *f (char * (*g) (char **, int), char **p, ...)
2088 {
2089   char *s;
2090   va_list v;
2091   va_start (v,p);
2092   s = g (p, va_arg (v,int));
2093   va_end (v);
2094   return s;
2095 }
2096
2097 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2098    function prototypes and stuff, but not '\xHH' hex character constants.
2099    These don't provoke an error unfortunately, instead are silently treated
2100    as 'x'.  The following induces an error, until -std1 is added to get
2101    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2102    array size at least.  It's necessary to write '\x00'==0 to get something
2103    that's true only with -std1.  */
2104 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2105
2106 int test (int i, double x);
2107 struct s1 {int (*f) (int a);};
2108 struct s2 {int (*f) (double a);};
2109 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2110 int argc;
2111 char **argv;
2112 int
2113 main ()
2114 {
2115 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2116   ;
2117   return 0;
2118 }
2119 _ACEOF
2120 # Don't try gcc -ansi; that turns off useful extensions and
2121 # breaks some systems' header files.
2122 # AIX                   -qlanglvl=ansi
2123 # Ultrix and OSF/1      -std1
2124 # HP-UX 10.20 and later -Ae
2125 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2126 # SVR4                  -Xc -D__EXTENSIONS__
2127 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2128 do
2129   CC="$ac_save_CC $ac_arg"
2130   rm -f conftest.$ac_objext
2131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2132   (eval $ac_compile) 2>conftest.er1
2133   ac_status=$?
2134   grep -v '^ *+' conftest.er1 >conftest.err
2135   rm -f conftest.er1
2136   cat conftest.err >&5
2137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138   (exit $ac_status); } &&
2139          { ac_try='test -z "$ac_c_werror_flag"
2140                          || test ! -s conftest.err'
2141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2142   (eval $ac_try) 2>&5
2143   ac_status=$?
2144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145   (exit $ac_status); }; } &&
2146          { ac_try='test -s conftest.$ac_objext'
2147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2148   (eval $ac_try) 2>&5
2149   ac_status=$?
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); }; }; then
2152   ac_cv_prog_cc_stdc=$ac_arg
2153 break
2154 else
2155   echo "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.$ac_ext >&5
2157
2158 fi
2159 rm -f conftest.err conftest.$ac_objext
2160 done
2161 rm -f conftest.$ac_ext conftest.$ac_objext
2162 CC=$ac_save_CC
2163
2164 fi
2165
2166 case "x$ac_cv_prog_cc_stdc" in
2167   x|xno)
2168     echo "$as_me:$LINENO: result: none needed" >&5
2169 echo "${ECHO_T}none needed" >&6 ;;
2170   *)
2171     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2172 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2173     CC="$CC $ac_cv_prog_cc_stdc" ;;
2174 esac
2175
2176 # Some people use a C++ compiler to compile C.  Since we use `exit',
2177 # in C++ we need to declare it.  In case someone uses the same compiler
2178 # for both compiling C and C++ we need to have the C++ compiler decide
2179 # the declaration of exit, since it's the most demanding environment.
2180 cat >conftest.$ac_ext <<_ACEOF
2181 #ifndef __cplusplus
2182   choke me
2183 #endif
2184 _ACEOF
2185 rm -f conftest.$ac_objext
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187   (eval $ac_compile) 2>conftest.er1
2188   ac_status=$?
2189   grep -v '^ *+' conftest.er1 >conftest.err
2190   rm -f conftest.er1
2191   cat conftest.err >&5
2192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193   (exit $ac_status); } &&
2194          { ac_try='test -z "$ac_c_werror_flag"
2195                          || test ! -s conftest.err'
2196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197   (eval $ac_try) 2>&5
2198   ac_status=$?
2199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200   (exit $ac_status); }; } &&
2201          { ac_try='test -s conftest.$ac_objext'
2202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203   (eval $ac_try) 2>&5
2204   ac_status=$?
2205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206   (exit $ac_status); }; }; then
2207   for ac_declaration in \
2208    '' \
2209    'extern "C" void std::exit (int) throw (); using std::exit;' \
2210    'extern "C" void std::exit (int); using std::exit;' \
2211    'extern "C" void exit (int) throw ();' \
2212    'extern "C" void exit (int);' \
2213    'void exit (int);'
2214 do
2215   cat >conftest.$ac_ext <<_ACEOF
2216 /* confdefs.h.  */
2217 _ACEOF
2218 cat confdefs.h >>conftest.$ac_ext
2219 cat >>conftest.$ac_ext <<_ACEOF
2220 /* end confdefs.h.  */
2221 $ac_declaration
2222 #include <stdlib.h>
2223 int
2224 main ()
2225 {
2226 exit (42);
2227   ;
2228   return 0;
2229 }
2230 _ACEOF
2231 rm -f conftest.$ac_objext
2232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2233   (eval $ac_compile) 2>conftest.er1
2234   ac_status=$?
2235   grep -v '^ *+' conftest.er1 >conftest.err
2236   rm -f conftest.er1
2237   cat conftest.err >&5
2238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239   (exit $ac_status); } &&
2240          { ac_try='test -z "$ac_c_werror_flag"
2241                          || test ! -s conftest.err'
2242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243   (eval $ac_try) 2>&5
2244   ac_status=$?
2245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246   (exit $ac_status); }; } &&
2247          { ac_try='test -s conftest.$ac_objext'
2248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249   (eval $ac_try) 2>&5
2250   ac_status=$?
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); }; }; then
2253   :
2254 else
2255   echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.$ac_ext >&5
2257
2258 continue
2259 fi
2260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2261   cat >conftest.$ac_ext <<_ACEOF
2262 /* confdefs.h.  */
2263 _ACEOF
2264 cat confdefs.h >>conftest.$ac_ext
2265 cat >>conftest.$ac_ext <<_ACEOF
2266 /* end confdefs.h.  */
2267 $ac_declaration
2268 int
2269 main ()
2270 {
2271 exit (42);
2272   ;
2273   return 0;
2274 }
2275 _ACEOF
2276 rm -f conftest.$ac_objext
2277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2278   (eval $ac_compile) 2>conftest.er1
2279   ac_status=$?
2280   grep -v '^ *+' conftest.er1 >conftest.err
2281   rm -f conftest.er1
2282   cat conftest.err >&5
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); } &&
2285          { ac_try='test -z "$ac_c_werror_flag"
2286                          || test ! -s conftest.err'
2287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288   (eval $ac_try) 2>&5
2289   ac_status=$?
2290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291   (exit $ac_status); }; } &&
2292          { ac_try='test -s conftest.$ac_objext'
2293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294   (eval $ac_try) 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; }; then
2298   break
2299 else
2300   echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2302
2303 fi
2304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2305 done
2306 rm -f conftest*
2307 if test -n "$ac_declaration"; then
2308   echo '#ifdef __cplusplus' >>confdefs.h
2309   echo $ac_declaration      >>confdefs.h
2310   echo '#endif'             >>confdefs.h
2311 fi
2312
2313 else
2314   echo "$as_me: failed program was:" >&5
2315 sed 's/^/| /' conftest.$ac_ext >&5
2316
2317 fi
2318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2319 ac_ext=c
2320 ac_cpp='$CPP $CPPFLAGS'
2321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2324
2325 # Find a good install program.  We prefer a C program (faster),
2326 # so one script is as good as another.  But avoid the broken or
2327 # incompatible versions:
2328 # SysV /etc/install, /usr/sbin/install
2329 # SunOS /usr/etc/install
2330 # IRIX /sbin/install
2331 # AIX /bin/install
2332 # AmigaOS /C/install, which installs bootblocks on floppy discs
2333 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2334 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2335 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2336 # OS/2's system install, which has a completely different semantic
2337 # ./install, which can be erroneously created by make from ./install.sh.
2338 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2339 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2340 if test -z "$INSTALL"; then
2341 if test "${ac_cv_path_install+set}" = set; then
2342   echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2346 do
2347   IFS=$as_save_IFS
2348   test -z "$as_dir" && as_dir=.
2349   # Account for people who put trailing slashes in PATH elements.
2350 case $as_dir/ in
2351   ./ | .// | /cC/* | \
2352   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2353   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2354   /usr/ucb/* ) ;;
2355   *)
2356     # OSF1 and SCO ODT 3.0 have their own names for install.
2357     # Don't use installbsd from OSF since it installs stuff as root
2358     # by default.
2359     for ac_prog in ginstall scoinst install; do
2360       for ac_exec_ext in '' $ac_executable_extensions; do
2361         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2362           if test $ac_prog = install &&
2363             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2364             # AIX install.  It has an incompatible calling convention.
2365             :
2366           elif test $ac_prog = install &&
2367             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2368             # program-specific install script used by HP pwplus--don't use.
2369             :
2370           else
2371             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2372             break 3
2373           fi
2374         fi
2375       done
2376     done
2377     ;;
2378 esac
2379 done
2380
2381
2382 fi
2383   if test "${ac_cv_path_install+set}" = set; then
2384     INSTALL=$ac_cv_path_install
2385   else
2386     # As a last resort, use the slow shell script.  We don't cache a
2387     # path for INSTALL within a source directory, because that will
2388     # break other packages using the cache if that directory is
2389     # removed, or if the path is relative.
2390     INSTALL=$ac_install_sh
2391   fi
2392 fi
2393 echo "$as_me:$LINENO: result: $INSTALL" >&5
2394 echo "${ECHO_T}$INSTALL" >&6
2395
2396 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2397 # It thinks the first close brace ends the variable substitution.
2398 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2399
2400 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2401
2402 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2403
2404 ac_ext=c
2405 ac_cpp='$CPP $CPPFLAGS'
2406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2409 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2410 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2411 # On Suns, sometimes $CPP names a directory.
2412 if test -n "$CPP" && test -d "$CPP"; then
2413   CPP=
2414 fi
2415 if test -z "$CPP"; then
2416   if test "${ac_cv_prog_CPP+set}" = set; then
2417   echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419       # Double quotes because CPP needs to be expanded
2420     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2421     do
2422       ac_preproc_ok=false
2423 for ac_c_preproc_warn_flag in '' yes
2424 do
2425   # Use a header file that comes with gcc, so configuring glibc
2426   # with a fresh cross-compiler works.
2427   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2428   # <limits.h> exists even on freestanding compilers.
2429   # On the NeXT, cc -E runs the code through the compiler's parser,
2430   # not just through cpp. "Syntax error" is here to catch this case.
2431   cat >conftest.$ac_ext <<_ACEOF
2432 /* confdefs.h.  */
2433 _ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h.  */
2437 #ifdef __STDC__
2438 # include <limits.h>
2439 #else
2440 # include <assert.h>
2441 #endif
2442                      Syntax error
2443 _ACEOF
2444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2445   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2446   ac_status=$?
2447   grep -v '^ *+' conftest.er1 >conftest.err
2448   rm -f conftest.er1
2449   cat conftest.err >&5
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); } >/dev/null; then
2452   if test -s conftest.err; then
2453     ac_cpp_err=$ac_c_preproc_warn_flag
2454     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2455   else
2456     ac_cpp_err=
2457   fi
2458 else
2459   ac_cpp_err=yes
2460 fi
2461 if test -z "$ac_cpp_err"; then
2462   :
2463 else
2464   echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2466
2467   # Broken: fails on valid input.
2468 continue
2469 fi
2470 rm -f conftest.err conftest.$ac_ext
2471
2472   # OK, works on sane cases.  Now check whether non-existent headers
2473   # can be detected and how.
2474   cat >conftest.$ac_ext <<_ACEOF
2475 /* confdefs.h.  */
2476 _ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h.  */
2480 #include <ac_nonexistent.h>
2481 _ACEOF
2482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2483   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2484   ac_status=$?
2485   grep -v '^ *+' conftest.er1 >conftest.err
2486   rm -f conftest.er1
2487   cat conftest.err >&5
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); } >/dev/null; then
2490   if test -s conftest.err; then
2491     ac_cpp_err=$ac_c_preproc_warn_flag
2492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2493   else
2494     ac_cpp_err=
2495   fi
2496 else
2497   ac_cpp_err=yes
2498 fi
2499 if test -z "$ac_cpp_err"; then
2500   # Broken: success on invalid input.
2501 continue
2502 else
2503   echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2505
2506   # Passes both tests.
2507 ac_preproc_ok=:
2508 break
2509 fi
2510 rm -f conftest.err conftest.$ac_ext
2511
2512 done
2513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2514 rm -f conftest.err conftest.$ac_ext
2515 if $ac_preproc_ok; then
2516   break
2517 fi
2518
2519     done
2520     ac_cv_prog_CPP=$CPP
2521
2522 fi
2523   CPP=$ac_cv_prog_CPP
2524 else
2525   ac_cv_prog_CPP=$CPP
2526 fi
2527 echo "$as_me:$LINENO: result: $CPP" >&5
2528 echo "${ECHO_T}$CPP" >&6
2529 ac_preproc_ok=false
2530 for ac_c_preproc_warn_flag in '' yes
2531 do
2532   # Use a header file that comes with gcc, so configuring glibc
2533   # with a fresh cross-compiler works.
2534   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2535   # <limits.h> exists even on freestanding compilers.
2536   # On the NeXT, cc -E runs the code through the compiler's parser,
2537   # not just through cpp. "Syntax error" is here to catch this case.
2538   cat >conftest.$ac_ext <<_ACEOF
2539 /* confdefs.h.  */
2540 _ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h.  */
2544 #ifdef __STDC__
2545 # include <limits.h>
2546 #else
2547 # include <assert.h>
2548 #endif
2549                      Syntax error
2550 _ACEOF
2551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2552   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2553   ac_status=$?
2554   grep -v '^ *+' conftest.er1 >conftest.err
2555   rm -f conftest.er1
2556   cat conftest.err >&5
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); } >/dev/null; then
2559   if test -s conftest.err; then
2560     ac_cpp_err=$ac_c_preproc_warn_flag
2561     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2562   else
2563     ac_cpp_err=
2564   fi
2565 else
2566   ac_cpp_err=yes
2567 fi
2568 if test -z "$ac_cpp_err"; then
2569   :
2570 else
2571   echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574   # Broken: fails on valid input.
2575 continue
2576 fi
2577 rm -f conftest.err conftest.$ac_ext
2578
2579   # OK, works on sane cases.  Now check whether non-existent headers
2580   # can be detected and how.
2581   cat >conftest.$ac_ext <<_ACEOF
2582 /* confdefs.h.  */
2583 _ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h.  */
2587 #include <ac_nonexistent.h>
2588 _ACEOF
2589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2590   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2591   ac_status=$?
2592   grep -v '^ *+' conftest.er1 >conftest.err
2593   rm -f conftest.er1
2594   cat conftest.err >&5
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); } >/dev/null; then
2597   if test -s conftest.err; then
2598     ac_cpp_err=$ac_c_preproc_warn_flag
2599     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2600   else
2601     ac_cpp_err=
2602   fi
2603 else
2604   ac_cpp_err=yes
2605 fi
2606 if test -z "$ac_cpp_err"; then
2607   # Broken: success on invalid input.
2608 continue
2609 else
2610   echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2612
2613   # Passes both tests.
2614 ac_preproc_ok=:
2615 break
2616 fi
2617 rm -f conftest.err conftest.$ac_ext
2618
2619 done
2620 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2621 rm -f conftest.err conftest.$ac_ext
2622 if $ac_preproc_ok; then
2623   :
2624 else
2625   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2626 See \`config.log' for more details." >&5
2627 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2628 See \`config.log' for more details." >&2;}
2629    { (exit 1); exit 1; }; }
2630 fi
2631
2632 ac_ext=c
2633 ac_cpp='$CPP $CPPFLAGS'
2634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637
2638
2639 if test "$GCC" = yes
2640 then
2641   CFLAGS="${CFLAGS} ${PIPE}-Wmissing-prototypes -Wstrict-prototypes -Wcast-qual -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-declarations -Wnested-externs -pedantic -fno-common"
2642   LDFLAGS='-g'
2643 fi
2644
2645
2646 # Check whether --with-defformat or --without-defformat was given.
2647 if test "${with_defformat+set}" = set; then
2648   withval="$with_defformat"
2649   DEFFORMAT="$withval"
2650 else
2651   DEFFORMAT="ibm-3740"
2652 fi;
2653
2654 # Check whether --with-libdsk or --without-libdsk was given.
2655 if test "${with_libdsk+set}" = set; then
2656   withval="$with_libdsk"
2657   LIBDSK="$withval"
2658 else
2659   LIBDSK=""
2660 fi;
2661
2662 # Check whether --with-dmalloc or --without-dmalloc was given.
2663 if test "${with_dmalloc+set}" = set; then
2664   withval="$with_dmalloc"
2665   DMALLOC="$withval"
2666 else
2667   DMALLOC=""
2668 fi;
2669
2670
2671 case $host_os in
2672   *cygwin* ) CYGWIN=yes;;
2673          * ) CYGWIN=no;;
2674 esac
2675
2676
2677 case $host_os in
2678   *mingw32* ) MINGW32=yes;;
2679           * ) MINGW32=no;;
2680 esac
2681
2682 DEVICE="posix"
2683
2684 if test "$CYGWIN" = "yes"
2685 then
2686   DEVICE="win32"
2687 fi
2688 if test "$MINGW32" = "yes"
2689 then
2690   DEVICE="win32"
2691 fi
2692
2693
2694
2695 echo "$as_me:$LINENO: checking for printw in -lcurses" >&5
2696 echo $ECHO_N "checking for printw in -lcurses... $ECHO_C" >&6
2697 if test "${ac_cv_lib_curses_printw+set}" = set; then
2698   echo $ECHO_N "(cached) $ECHO_C" >&6
2699 else
2700   ac_check_lib_save_LIBS=$LIBS
2701 LIBS="-lcurses  $LIBS"
2702 cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h.  */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h.  */
2708
2709 /* Override any gcc2 internal prototype to avoid an error.  */
2710 #ifdef __cplusplus
2711 extern "C"
2712 #endif
2713 /* We use char because int might match the return type of a gcc2
2714    builtin and then its argument prototype would still apply.  */
2715 char printw ();
2716 int
2717 main ()
2718 {
2719 printw ();
2720   ;
2721   return 0;
2722 }
2723 _ACEOF
2724 rm -f conftest.$ac_objext conftest$ac_exeext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2726   (eval $ac_link) 2>conftest.er1
2727   ac_status=$?
2728   grep -v '^ *+' conftest.er1 >conftest.err
2729   rm -f conftest.er1
2730   cat conftest.err >&5
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); } &&
2733          { ac_try='test -z "$ac_c_werror_flag"
2734                          || test ! -s conftest.err'
2735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736   (eval $ac_try) 2>&5
2737   ac_status=$?
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); }; } &&
2740          { ac_try='test -s conftest$ac_exeext'
2741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742   (eval $ac_try) 2>&5
2743   ac_status=$?
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); }; }; then
2746   ac_cv_lib_curses_printw=yes
2747 else
2748   echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2750
2751 ac_cv_lib_curses_printw=no
2752 fi
2753 rm -f conftest.err conftest.$ac_objext \
2754       conftest$ac_exeext conftest.$ac_ext
2755 LIBS=$ac_check_lib_save_LIBS
2756 fi
2757 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_printw" >&5
2758 echo "${ECHO_T}$ac_cv_lib_curses_printw" >&6
2759 if test $ac_cv_lib_curses_printw = yes; then
2760   FSED_CPM=fsed.cpm LIBS="-lcurses $LIBS"
2761 else
2762   FSED_CPM=
2763 fi
2764
2765 if test x"$FSED_CPM" = x""; then
2766   echo "$as_me:$LINENO: checking for printw in -lncurses" >&5
2767 echo $ECHO_N "checking for printw in -lncurses... $ECHO_C" >&6
2768 if test "${ac_cv_lib_ncurses_printw+set}" = set; then
2769   echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771   ac_check_lib_save_LIBS=$LIBS
2772 LIBS="-lncurses  $LIBS"
2773 cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h.  */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h.  */
2779
2780 /* Override any gcc2 internal prototype to avoid an error.  */
2781 #ifdef __cplusplus
2782 extern "C"
2783 #endif
2784 /* We use char because int might match the return type of a gcc2
2785    builtin and then its argument prototype would still apply.  */
2786 char printw ();
2787 int
2788 main ()
2789 {
2790 printw ();
2791   ;
2792   return 0;
2793 }
2794 _ACEOF
2795 rm -f conftest.$ac_objext conftest$ac_exeext
2796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2797   (eval $ac_link) 2>conftest.er1
2798   ac_status=$?
2799   grep -v '^ *+' conftest.er1 >conftest.err
2800   rm -f conftest.er1
2801   cat conftest.err >&5
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); } &&
2804          { ac_try='test -z "$ac_c_werror_flag"
2805                          || test ! -s conftest.err'
2806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807   (eval $ac_try) 2>&5
2808   ac_status=$?
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); }; } &&
2811          { ac_try='test -s conftest$ac_exeext'
2812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813   (eval $ac_try) 2>&5
2814   ac_status=$?
2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816   (exit $ac_status); }; }; then
2817   ac_cv_lib_ncurses_printw=yes
2818 else
2819   echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2821
2822 ac_cv_lib_ncurses_printw=no
2823 fi
2824 rm -f conftest.err conftest.$ac_objext \
2825       conftest$ac_exeext conftest.$ac_ext
2826 LIBS=$ac_check_lib_save_LIBS
2827 fi
2828 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_printw" >&5
2829 echo "${ECHO_T}$ac_cv_lib_ncurses_printw" >&6
2830 if test $ac_cv_lib_ncurses_printw = yes; then
2831   FSED_CPM=fsed.cpm LIBS="-lncurses $LIBS"
2832 else
2833   FSED_CPM=
2834 fi
2835
2836 fi
2837
2838 if test "$LIBDSK" != ""; then
2839   DEVICE="libdsk"
2840   CPPFLAGS="$CPPFLAGS -I$LIBDSK/include"
2841   CFLAGS="$CFLAGS -I$LIBDSK/include"
2842   LDFLAGS="$LDFLAGS -L$LIBDSK/lib"
2843
2844 echo "$as_me:$LINENO: checking for dsk_open in -ldsk" >&5
2845 echo $ECHO_N "checking for dsk_open in -ldsk... $ECHO_C" >&6
2846 if test "${ac_cv_lib_dsk_dsk_open+set}" = set; then
2847   echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849   ac_check_lib_save_LIBS=$LIBS
2850 LIBS="-ldsk  $LIBS"
2851 cat >conftest.$ac_ext <<_ACEOF
2852 /* confdefs.h.  */
2853 _ACEOF
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h.  */
2857
2858 /* Override any gcc2 internal prototype to avoid an error.  */
2859 #ifdef __cplusplus
2860 extern "C"
2861 #endif
2862 /* We use char because int might match the return type of a gcc2
2863    builtin and then its argument prototype would still apply.  */
2864 char dsk_open ();
2865 int
2866 main ()
2867 {
2868 dsk_open ();
2869   ;
2870   return 0;
2871 }
2872 _ACEOF
2873 rm -f conftest.$ac_objext conftest$ac_exeext
2874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2875   (eval $ac_link) 2>conftest.er1
2876   ac_status=$?
2877   grep -v '^ *+' conftest.er1 >conftest.err
2878   rm -f conftest.er1
2879   cat conftest.err >&5
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); } &&
2882          { ac_try='test -z "$ac_c_werror_flag"
2883                          || test ! -s conftest.err'
2884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885   (eval $ac_try) 2>&5
2886   ac_status=$?
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }; } &&
2889          { ac_try='test -s conftest$ac_exeext'
2890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891   (eval $ac_try) 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }; }; then
2895   ac_cv_lib_dsk_dsk_open=yes
2896 else
2897   echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2899
2900 ac_cv_lib_dsk_dsk_open=no
2901 fi
2902 rm -f conftest.err conftest.$ac_objext \
2903       conftest$ac_exeext conftest.$ac_ext
2904 LIBS=$ac_check_lib_save_LIBS
2905 fi
2906 echo "$as_me:$LINENO: result: $ac_cv_lib_dsk_dsk_open" >&5
2907 echo "${ECHO_T}$ac_cv_lib_dsk_dsk_open" >&6
2908 if test $ac_cv_lib_dsk_dsk_open = yes; then
2909   cat >>confdefs.h <<_ACEOF
2910 #define HAVE_LIBDSK 1
2911 _ACEOF
2912
2913   LIBS="-ldsk $LIBS"
2914
2915 fi
2916
2917
2918 echo "$as_me:$LINENO: checking for egrep" >&5
2919 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2920 if test "${ac_cv_prog_egrep+set}" = set; then
2921   echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2924     then ac_cv_prog_egrep='grep -E'
2925     else ac_cv_prog_egrep='egrep'
2926     fi
2927 fi
2928 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2929 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2930  EGREP=$ac_cv_prog_egrep
2931
2932
2933 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2934 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2935 if test "${ac_cv_header_stdc+set}" = set; then
2936   echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938   cat >conftest.$ac_ext <<_ACEOF
2939 /* confdefs.h.  */
2940 _ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h.  */
2944 #include <stdlib.h>
2945 #include <stdarg.h>
2946 #include <string.h>
2947 #include <float.h>
2948
2949 int
2950 main ()
2951 {
2952
2953   ;
2954   return 0;
2955 }
2956 _ACEOF
2957 rm -f conftest.$ac_objext
2958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2959   (eval $ac_compile) 2>conftest.er1
2960   ac_status=$?
2961   grep -v '^ *+' conftest.er1 >conftest.err
2962   rm -f conftest.er1
2963   cat conftest.err >&5
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); } &&
2966          { ac_try='test -z "$ac_c_werror_flag"
2967                          || test ! -s conftest.err'
2968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969   (eval $ac_try) 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); }; } &&
2973          { ac_try='test -s conftest.$ac_objext'
2974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975   (eval $ac_try) 2>&5
2976   ac_status=$?
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); }; }; then
2979   ac_cv_header_stdc=yes
2980 else
2981   echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984 ac_cv_header_stdc=no
2985 fi
2986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2987
2988 if test $ac_cv_header_stdc = yes; then
2989   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2990   cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h.  */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h.  */
2996 #include <string.h>
2997
2998 _ACEOF
2999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3000   $EGREP "memchr" >/dev/null 2>&1; then
3001   :
3002 else
3003   ac_cv_header_stdc=no
3004 fi
3005 rm -f conftest*
3006
3007 fi
3008
3009 if test $ac_cv_header_stdc = yes; then
3010   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3011   cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h.  */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h.  */
3017 #include <stdlib.h>
3018
3019 _ACEOF
3020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3021   $EGREP "free" >/dev/null 2>&1; then
3022   :
3023 else
3024   ac_cv_header_stdc=no
3025 fi
3026 rm -f conftest*
3027
3028 fi
3029
3030 if test $ac_cv_header_stdc = yes; then
3031   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3032   if test "$cross_compiling" = yes; then
3033   :
3034 else
3035   cat >conftest.$ac_ext <<_ACEOF
3036 /* confdefs.h.  */
3037 _ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h.  */
3041 #include <ctype.h>
3042 #if ((' ' & 0x0FF) == 0x020)
3043 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3044 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3045 #else
3046 # define ISLOWER(c) \
3047                    (('a' <= (c) && (c) <= 'i') \
3048                      || ('j' <= (c) && (c) <= 'r') \
3049                      || ('s' <= (c) && (c) <= 'z'))
3050 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3051 #endif
3052
3053 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3054 int
3055 main ()
3056 {
3057   int i;
3058   for (i = 0; i < 256; i++)
3059     if (XOR (islower (i), ISLOWER (i))
3060         || toupper (i) != TOUPPER (i))
3061       exit(2);
3062   exit (0);
3063 }
3064 _ACEOF
3065 rm -f conftest$ac_exeext
3066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3067   (eval $ac_link) 2>&5
3068   ac_status=$?
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072   (eval $ac_try) 2>&5
3073   ac_status=$?
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); }; }; then
3076   :
3077 else
3078   echo "$as_me: program exited with status $ac_status" >&5
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3081
3082 ( exit $ac_status )
3083 ac_cv_header_stdc=no
3084 fi
3085 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3086 fi
3087 fi
3088 fi
3089 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3090 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3091 if test $ac_cv_header_stdc = yes; then
3092
3093 cat >>confdefs.h <<\_ACEOF
3094 #define STDC_HEADERS 1
3095 _ACEOF
3096
3097 fi
3098
3099 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3110                   inttypes.h stdint.h unistd.h
3111 do
3112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3113 echo "$as_me:$LINENO: checking for $ac_header" >&5
3114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3116   echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118   cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h.  */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h.  */
3124 $ac_includes_default
3125
3126 #include <$ac_header>
3127 _ACEOF
3128 rm -f conftest.$ac_objext
3129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3130   (eval $ac_compile) 2>conftest.er1
3131   ac_status=$?
3132   grep -v '^ *+' conftest.er1 >conftest.err
3133   rm -f conftest.er1
3134   cat conftest.err >&5
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); } &&
3137          { ac_try='test -z "$ac_c_werror_flag"
3138                          || test ! -s conftest.err'
3139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140   (eval $ac_try) 2>&5
3141   ac_status=$?
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); }; } &&
3144          { ac_try='test -s conftest.$ac_objext'
3145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146   (eval $ac_try) 2>&5
3147   ac_status=$?
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); }; }; then
3150   eval "$as_ac_Header=yes"
3151 else
3152   echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155 eval "$as_ac_Header=no"
3156 fi
3157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3158 fi
3159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3162   cat >>confdefs.h <<_ACEOF
3163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3164 _ACEOF
3165
3166 fi
3167
3168 done
3169
3170
3171
3172 for ac_header in libdsk.h
3173 do
3174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3176   echo "$as_me:$LINENO: checking for $ac_header" >&5
3177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3179   echo $ECHO_N "(cached) $ECHO_C" >&6
3180 fi
3181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3183 else
3184   # Is the header compilable?
3185 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3187 cat >conftest.$ac_ext <<_ACEOF
3188 /* confdefs.h.  */
3189 _ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h.  */
3193 $ac_includes_default
3194 #include <$ac_header>
3195 _ACEOF
3196 rm -f conftest.$ac_objext
3197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3198   (eval $ac_compile) 2>conftest.er1
3199   ac_status=$?
3200   grep -v '^ *+' conftest.er1 >conftest.err
3201   rm -f conftest.er1
3202   cat conftest.err >&5
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); } &&
3205          { ac_try='test -z "$ac_c_werror_flag"
3206                          || test ! -s conftest.err'
3207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208   (eval $ac_try) 2>&5
3209   ac_status=$?
3210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211   (exit $ac_status); }; } &&
3212          { ac_try='test -s conftest.$ac_objext'
3213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214   (eval $ac_try) 2>&5
3215   ac_status=$?
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); }; }; then
3218   ac_header_compiler=yes
3219 else
3220   echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3222
3223 ac_header_compiler=no
3224 fi
3225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3227 echo "${ECHO_T}$ac_header_compiler" >&6
3228
3229 # Is the header present?
3230 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3232 cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h.  */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h.  */
3238 #include <$ac_header>
3239 _ACEOF
3240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3241   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3242   ac_status=$?
3243   grep -v '^ *+' conftest.er1 >conftest.err
3244   rm -f conftest.er1
3245   cat conftest.err >&5
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); } >/dev/null; then
3248   if test -s conftest.err; then
3249     ac_cpp_err=$ac_c_preproc_warn_flag
3250     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3251   else
3252     ac_cpp_err=
3253   fi
3254 else
3255   ac_cpp_err=yes
3256 fi
3257 if test -z "$ac_cpp_err"; then
3258   ac_header_preproc=yes
3259 else
3260   echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263   ac_header_preproc=no
3264 fi
3265 rm -f conftest.err conftest.$ac_ext
3266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3267 echo "${ECHO_T}$ac_header_preproc" >&6
3268
3269 # So?  What about this header?
3270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3271   yes:no: )
3272     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3276     ac_header_preproc=yes
3277     ;;
3278   no:yes:* )
3279     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3281     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3282 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3283     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3285     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3286 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3287     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3289     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3291     (
3292       cat <<\_ASBOX
3293 ## ------------------------------------------ ##
3294 ## Report this to the AC_PACKAGE_NAME lists.  ##
3295 ## ------------------------------------------ ##
3296 _ASBOX
3297     ) |
3298       sed "s/^/$as_me: WARNING:     /" >&2
3299     ;;
3300 esac
3301 echo "$as_me:$LINENO: checking for $ac_header" >&5
3302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3304   echo $ECHO_N "(cached) $ECHO_C" >&6
3305 else
3306   eval "$as_ac_Header=\$ac_header_preproc"
3307 fi
3308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3310
3311 fi
3312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3313   cat >>confdefs.h <<_ACEOF
3314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3315 _ACEOF
3316
3317 else
3318   echo "No libdsk.h - aborting"; exit 1
3319 fi
3320
3321 done
3322
3323 fi
3324
3325 if test x"$DEVICE" = x"win32"; then
3326
3327
3328 for ac_header in windows.h winioctl.h
3329 do
3330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3332   echo "$as_me:$LINENO: checking for $ac_header" >&5
3333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3335   echo $ECHO_N "(cached) $ECHO_C" >&6
3336 fi
3337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3339 else
3340   # Is the header compilable?
3341 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3343 cat >conftest.$ac_ext <<_ACEOF
3344 /* confdefs.h.  */
3345 _ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h.  */
3349 $ac_includes_default
3350 #include <$ac_header>
3351 _ACEOF
3352 rm -f conftest.$ac_objext
3353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3354   (eval $ac_compile) 2>conftest.er1
3355   ac_status=$?
3356   grep -v '^ *+' conftest.er1 >conftest.err
3357   rm -f conftest.er1
3358   cat conftest.err >&5
3359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360   (exit $ac_status); } &&
3361          { ac_try='test -z "$ac_c_werror_flag"
3362                          || test ! -s conftest.err'
3363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364   (eval $ac_try) 2>&5
3365   ac_status=$?
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); }; } &&
3368          { ac_try='test -s conftest.$ac_objext'
3369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370   (eval $ac_try) 2>&5
3371   ac_status=$?
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); }; }; then
3374   ac_header_compiler=yes
3375 else
3376   echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3378
3379 ac_header_compiler=no
3380 fi
3381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3383 echo "${ECHO_T}$ac_header_compiler" >&6
3384
3385 # Is the header present?
3386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394 #include <$ac_header>
3395 _ACEOF
3396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3398   ac_status=$?
3399   grep -v '^ *+' conftest.er1 >conftest.err
3400   rm -f conftest.er1
3401   cat conftest.err >&5
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); } >/dev/null; then
3404   if test -s conftest.err; then
3405     ac_cpp_err=$ac_c_preproc_warn_flag
3406     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3407   else
3408     ac_cpp_err=
3409   fi
3410 else
3411   ac_cpp_err=yes
3412 fi
3413 if test -z "$ac_cpp_err"; then
3414   ac_header_preproc=yes
3415 else
3416   echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3418
3419   ac_header_preproc=no
3420 fi
3421 rm -f conftest.err conftest.$ac_ext
3422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3423 echo "${ECHO_T}$ac_header_preproc" >&6
3424
3425 # So?  What about this header?
3426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3427   yes:no: )
3428     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3432     ac_header_preproc=yes
3433     ;;
3434   no:yes:* )
3435     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3437     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3438 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3439     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3441     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3442 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3443     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3445     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3447     (
3448       cat <<\_ASBOX
3449 ## ------------------------------------------ ##
3450 ## Report this to the AC_PACKAGE_NAME lists.  ##
3451 ## ------------------------------------------ ##
3452 _ASBOX
3453     ) |
3454       sed "s/^/$as_me: WARNING:     /" >&2
3455     ;;
3456 esac
3457 echo "$as_me:$LINENO: checking for $ac_header" >&5
3458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3460   echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462   eval "$as_ac_Header=\$ac_header_preproc"
3463 fi
3464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3466
3467 fi
3468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3469   cat >>confdefs.h <<_ACEOF
3470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3471 _ACEOF
3472
3473 else
3474   echo "Windows headers not found - aborting"; exit 1
3475 fi
3476
3477 done
3478
3479 fi
3480
3481 if test x"$DMALLOC" != x""; then
3482    CPPFLAGS  = "-I$DMALLOC/include $CPPFLAGS"
3483    CFLAGS  = "-I$DMALLOC/include $CFLAGS"
3484    LDFLAGS = "-L$DMALLOC/lib $LDFLAGS"
3485
3486 echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
3487 echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6
3488 if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
3489   echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491   ac_check_lib_save_LIBS=$LIBS
3492 LIBS="-ldmalloc  $LIBS"
3493 cat >conftest.$ac_ext <<_ACEOF
3494 /* confdefs.h.  */
3495 _ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h.  */
3499
3500 /* Override any gcc2 internal prototype to avoid an error.  */
3501 #ifdef __cplusplus
3502 extern "C"
3503 #endif
3504 /* We use char because int might match the return type of a gcc2
3505    builtin and then its argument prototype would still apply.  */
3506 char malloc ();
3507 int
3508 main ()
3509 {
3510 malloc ();
3511   ;
3512   return 0;
3513 }
3514 _ACEOF
3515 rm -f conftest.$ac_objext conftest$ac_exeext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3517   (eval $ac_link) 2>conftest.er1
3518   ac_status=$?
3519   grep -v '^ *+' conftest.er1 >conftest.err
3520   rm -f conftest.er1
3521   cat conftest.err >&5
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); } &&
3524          { ac_try='test -z "$ac_c_werror_flag"
3525                          || test ! -s conftest.err'
3526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527   (eval $ac_try) 2>&5
3528   ac_status=$?
3529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530   (exit $ac_status); }; } &&
3531          { ac_try='test -s conftest$ac_exeext'
3532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533   (eval $ac_try) 2>&5
3534   ac_status=$?
3535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536   (exit $ac_status); }; }; then
3537   ac_cv_lib_dmalloc_malloc=yes
3538 else
3539   echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3541
3542 ac_cv_lib_dmalloc_malloc=no
3543 fi
3544 rm -f conftest.err conftest.$ac_objext \
3545       conftest$ac_exeext conftest.$ac_ext
3546 LIBS=$ac_check_lib_save_LIBS
3547 fi
3548 echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
3549 echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6
3550 if test $ac_cv_lib_dmalloc_malloc = yes; then
3551   cat >>confdefs.h <<_ACEOF
3552 #define HAVE_LIBDMALLOC 1
3553 _ACEOF
3554
3555   LIBS="-ldmalloc $LIBS"
3556
3557 fi
3558
3559
3560 for ac_header in dmalloc.h
3561 do
3562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3564   echo "$as_me:$LINENO: checking for $ac_header" >&5
3565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3567   echo $ECHO_N "(cached) $ECHO_C" >&6
3568 fi
3569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3571 else
3572   # Is the header compilable?
3573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3575 cat >conftest.$ac_ext <<_ACEOF
3576 /* confdefs.h.  */
3577 _ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h.  */
3581 $ac_includes_default
3582 #include <$ac_header>
3583 _ACEOF
3584 rm -f conftest.$ac_objext
3585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3586   (eval $ac_compile) 2>conftest.er1
3587   ac_status=$?
3588   grep -v '^ *+' conftest.er1 >conftest.err
3589   rm -f conftest.er1
3590   cat conftest.err >&5
3591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592   (exit $ac_status); } &&
3593          { ac_try='test -z "$ac_c_werror_flag"
3594                          || test ! -s conftest.err'
3595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596   (eval $ac_try) 2>&5
3597   ac_status=$?
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); }; } &&
3600          { ac_try='test -s conftest.$ac_objext'
3601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602   (eval $ac_try) 2>&5
3603   ac_status=$?
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); }; }; then
3606   ac_header_compiler=yes
3607 else
3608   echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611 ac_header_compiler=no
3612 fi
3613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3615 echo "${ECHO_T}$ac_header_compiler" >&6
3616
3617 # Is the header present?
3618 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3620 cat >conftest.$ac_ext <<_ACEOF
3621 /* confdefs.h.  */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h.  */
3626 #include <$ac_header>
3627 _ACEOF
3628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3629   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3630   ac_status=$?
3631   grep -v '^ *+' conftest.er1 >conftest.err
3632   rm -f conftest.er1
3633   cat conftest.err >&5
3634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635   (exit $ac_status); } >/dev/null; then
3636   if test -s conftest.err; then
3637     ac_cpp_err=$ac_c_preproc_warn_flag
3638     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3639   else
3640     ac_cpp_err=
3641   fi
3642 else
3643   ac_cpp_err=yes
3644 fi
3645 if test -z "$ac_cpp_err"; then
3646   ac_header_preproc=yes
3647 else
3648   echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3650
3651   ac_header_preproc=no
3652 fi
3653 rm -f conftest.err conftest.$ac_ext
3654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3655 echo "${ECHO_T}$ac_header_preproc" >&6
3656
3657 # So?  What about this header?
3658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3659   yes:no: )
3660     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3662     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3664     ac_header_preproc=yes
3665     ;;
3666   no:yes:* )
3667     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3669     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3670 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3671     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3673     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3674 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3677     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3679     (
3680       cat <<\_ASBOX
3681 ## ------------------------------------------ ##
3682 ## Report this to the AC_PACKAGE_NAME lists.  ##
3683 ## ------------------------------------------ ##
3684 _ASBOX
3685     ) |
3686       sed "s/^/$as_me: WARNING:     /" >&2
3687     ;;
3688 esac
3689 echo "$as_me:$LINENO: checking for $ac_header" >&5
3690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3692   echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694   eval "$as_ac_Header=\$ac_header_preproc"
3695 fi
3696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3698
3699 fi
3700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3701   cat >>confdefs.h <<_ACEOF
3702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3703 _ACEOF
3704
3705 fi
3706
3707 done
3708
3709 fi
3710
3711
3712 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3713 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3714 if test "${ac_cv_header_stdc+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   cat >conftest.$ac_ext <<_ACEOF
3718 /* confdefs.h.  */
3719 _ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h.  */
3723 #include <stdlib.h>
3724 #include <stdarg.h>
3725 #include <string.h>
3726 #include <float.h>
3727
3728 int
3729 main ()
3730 {
3731
3732   ;
3733   return 0;
3734 }
3735 _ACEOF
3736 rm -f conftest.$ac_objext
3737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738   (eval $ac_compile) 2>conftest.er1
3739   ac_status=$?
3740   grep -v '^ *+' conftest.er1 >conftest.err
3741   rm -f conftest.er1
3742   cat conftest.err >&5
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); } &&
3745          { ac_try='test -z "$ac_c_werror_flag"
3746                          || test ! -s conftest.err'
3747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748   (eval $ac_try) 2>&5
3749   ac_status=$?
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); }; } &&
3752          { ac_try='test -s conftest.$ac_objext'
3753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754   (eval $ac_try) 2>&5
3755   ac_status=$?
3756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757   (exit $ac_status); }; }; then
3758   ac_cv_header_stdc=yes
3759 else
3760   echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3762
3763 ac_cv_header_stdc=no
3764 fi
3765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3766
3767 if test $ac_cv_header_stdc = yes; then
3768   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3769   cat >conftest.$ac_ext <<_ACEOF
3770 /* confdefs.h.  */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h.  */
3775 #include <string.h>
3776
3777 _ACEOF
3778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3779   $EGREP "memchr" >/dev/null 2>&1; then
3780   :
3781 else
3782   ac_cv_header_stdc=no
3783 fi
3784 rm -f conftest*
3785
3786 fi
3787
3788 if test $ac_cv_header_stdc = yes; then
3789   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3790   cat >conftest.$ac_ext <<_ACEOF
3791 /* confdefs.h.  */
3792 _ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h.  */
3796 #include <stdlib.h>
3797
3798 _ACEOF
3799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3800   $EGREP "free" >/dev/null 2>&1; then
3801   :
3802 else
3803   ac_cv_header_stdc=no
3804 fi
3805 rm -f conftest*
3806
3807 fi
3808
3809 if test $ac_cv_header_stdc = yes; then
3810   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3811   if test "$cross_compiling" = yes; then
3812   :
3813 else
3814   cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h.  */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h.  */
3820 #include <ctype.h>
3821 #if ((' ' & 0x0FF) == 0x020)
3822 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3823 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3824 #else
3825 # define ISLOWER(c) \
3826                    (('a' <= (c) && (c) <= 'i') \
3827                      || ('j' <= (c) && (c) <= 'r') \
3828                      || ('s' <= (c) && (c) <= 'z'))
3829 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3830 #endif
3831
3832 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3833 int
3834 main ()
3835 {
3836   int i;
3837   for (i = 0; i < 256; i++)
3838     if (XOR (islower (i), ISLOWER (i))
3839         || toupper (i) != TOUPPER (i))
3840       exit(2);
3841   exit (0);
3842 }
3843 _ACEOF
3844 rm -f conftest$ac_exeext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3846   (eval $ac_link) 2>&5
3847   ac_status=$?
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851   (eval $ac_try) 2>&5
3852   ac_status=$?
3853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854   (exit $ac_status); }; }; then
3855   :
3856 else
3857   echo "$as_me: program exited with status $ac_status" >&5
3858 echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3860
3861 ( exit $ac_status )
3862 ac_cv_header_stdc=no
3863 fi
3864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3865 fi
3866 fi
3867 fi
3868 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3869 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3870 if test $ac_cv_header_stdc = yes; then
3871
3872 cat >>confdefs.h <<\_ACEOF
3873 #define STDC_HEADERS 1
3874 _ACEOF
3875
3876 fi
3877
3878
3879
3880
3881
3882
3883 for ac_header in fcntl.h sys/types.h sys/stat.h limits.h unistd.h
3884 do
3885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3887   echo "$as_me:$LINENO: checking for $ac_header" >&5
3888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3890   echo $ECHO_N "(cached) $ECHO_C" >&6
3891 fi
3892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3894 else
3895   # Is the header compilable?
3896 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3898 cat >conftest.$ac_ext <<_ACEOF
3899 /* confdefs.h.  */
3900 _ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h.  */
3904 $ac_includes_default
3905 #include <$ac_header>
3906 _ACEOF
3907 rm -f conftest.$ac_objext
3908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3909   (eval $ac_compile) 2>conftest.er1
3910   ac_status=$?
3911   grep -v '^ *+' conftest.er1 >conftest.err
3912   rm -f conftest.er1
3913   cat conftest.err >&5
3914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915   (exit $ac_status); } &&
3916          { ac_try='test -z "$ac_c_werror_flag"
3917                          || test ! -s conftest.err'
3918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919   (eval $ac_try) 2>&5
3920   ac_status=$?
3921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922   (exit $ac_status); }; } &&
3923          { ac_try='test -s conftest.$ac_objext'
3924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925   (eval $ac_try) 2>&5
3926   ac_status=$?
3927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928   (exit $ac_status); }; }; then
3929   ac_header_compiler=yes
3930 else
3931   echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3933
3934 ac_header_compiler=no
3935 fi
3936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3938 echo "${ECHO_T}$ac_header_compiler" >&6
3939
3940 # Is the header present?
3941 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3943 cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h.  */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h.  */
3949 #include <$ac_header>
3950 _ACEOF
3951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3952   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3953   ac_status=$?
3954   grep -v '^ *+' conftest.er1 >conftest.err
3955   rm -f conftest.er1
3956   cat conftest.err >&5
3957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958   (exit $ac_status); } >/dev/null; then
3959   if test -s conftest.err; then
3960     ac_cpp_err=$ac_c_preproc_warn_flag
3961     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3962   else
3963     ac_cpp_err=
3964   fi
3965 else
3966   ac_cpp_err=yes
3967 fi
3968 if test -z "$ac_cpp_err"; then
3969   ac_header_preproc=yes
3970 else
3971   echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3973
3974   ac_header_preproc=no
3975 fi
3976 rm -f conftest.err conftest.$ac_ext
3977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3978 echo "${ECHO_T}$ac_header_preproc" >&6
3979
3980 # So?  What about this header?
3981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3982   yes:no: )
3983     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3987     ac_header_preproc=yes
3988     ;;
3989   no:yes:* )
3990     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3992     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3993 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3994     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3996     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3997 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4000     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4002     (
4003       cat <<\_ASBOX
4004 ## ------------------------------------------ ##
4005 ## Report this to the AC_PACKAGE_NAME lists.  ##
4006 ## ------------------------------------------ ##
4007 _ASBOX
4008     ) |
4009       sed "s/^/$as_me: WARNING:     /" >&2
4010     ;;
4011 esac
4012 echo "$as_me:$LINENO: checking for $ac_header" >&5
4013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4015   echo $ECHO_N "(cached) $ECHO_C" >&6
4016 else
4017   eval "$as_ac_Header=\$ac_header_preproc"
4018 fi
4019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4021
4022 fi
4023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4024   cat >>confdefs.h <<_ACEOF
4025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4026 _ACEOF
4027
4028 fi
4029
4030 done
4031
4032
4033 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4034 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4035 if test "${ac_cv_c_const+set}" = set; then
4036   echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038   cat >conftest.$ac_ext <<_ACEOF
4039 /* confdefs.h.  */
4040 _ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h.  */
4044
4045 int
4046 main ()
4047 {
4048 /* FIXME: Include the comments suggested by Paul. */
4049 #ifndef __cplusplus
4050   /* Ultrix mips cc rejects this.  */
4051   typedef int charset[2];
4052   const charset x;
4053   /* SunOS 4.1.1 cc rejects this.  */
4054   char const *const *ccp;
4055   char **p;
4056   /* NEC SVR4.0.2 mips cc rejects this.  */
4057   struct point {int x, y;};
4058   static struct point const zero = {0,0};
4059   /* AIX XL C 1.02.0.0 rejects this.
4060      It does not let you subtract one const X* pointer from another in
4061      an arm of an if-expression whose if-part is not a constant
4062      expression */
4063   const char *g = "string";
4064   ccp = &g + (g ? g-g : 0);
4065   /* HPUX 7.0 cc rejects these. */
4066   ++ccp;
4067   p = (char**) ccp;
4068   ccp = (char const *const *) p;
4069   { /* SCO 3.2v4 cc rejects this.  */
4070     char *t;
4071     char const *s = 0 ? (char *) 0 : (char const *) 0;
4072
4073     *t++ = 0;
4074   }
4075   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4076     int x[] = {25, 17};
4077     const int *foo = &x[0];
4078     ++foo;
4079   }
4080   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4081     typedef const int *iptr;
4082     iptr p = 0;
4083     ++p;
4084   }
4085   { /* AIX XL C 1.02.0.0 rejects this saying
4086        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4087     struct s { int j; const int *ap[3]; };
4088     struct s *b; b->j = 5;
4089   }
4090   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4091     const int foo = 10;
4092   }
4093 #endif
4094
4095   ;
4096   return 0;
4097 }
4098 _ACEOF
4099 rm -f conftest.$ac_objext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101   (eval $ac_compile) 2>conftest.er1
4102   ac_status=$?
4103   grep -v '^ *+' conftest.er1 >conftest.err
4104   rm -f conftest.er1
4105   cat conftest.err >&5
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); } &&
4108          { ac_try='test -z "$ac_c_werror_flag"
4109                          || test ! -s conftest.err'
4110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111   (eval $ac_try) 2>&5
4112   ac_status=$?
4113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114   (exit $ac_status); }; } &&
4115          { ac_try='test -s conftest.$ac_objext'
4116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117   (eval $ac_try) 2>&5
4118   ac_status=$?
4119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120   (exit $ac_status); }; }; then
4121   ac_cv_c_const=yes
4122 else
4123   echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4125
4126 ac_cv_c_const=no
4127 fi
4128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4129 fi
4130 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4131 echo "${ECHO_T}$ac_cv_c_const" >&6
4132 if test $ac_cv_c_const = no; then
4133
4134 cat >>confdefs.h <<\_ACEOF
4135 #define const
4136 _ACEOF
4137
4138 fi
4139
4140 echo "$as_me:$LINENO: checking for mode_t" >&5
4141 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4142 if test "${ac_cv_type_mode_t+set}" = set; then
4143   echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145   cat >conftest.$ac_ext <<_ACEOF
4146 /* confdefs.h.  */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h.  */
4151 $ac_includes_default
4152 int
4153 main ()
4154 {
4155 if ((mode_t *) 0)
4156   return 0;
4157 if (sizeof (mode_t))
4158   return 0;
4159   ;
4160   return 0;
4161 }
4162 _ACEOF
4163 rm -f conftest.$ac_objext
4164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4165   (eval $ac_compile) 2>conftest.er1
4166   ac_status=$?
4167   grep -v '^ *+' conftest.er1 >conftest.err
4168   rm -f conftest.er1
4169   cat conftest.err >&5
4170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171   (exit $ac_status); } &&
4172          { ac_try='test -z "$ac_c_werror_flag"
4173                          || test ! -s conftest.err'
4174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175   (eval $ac_try) 2>&5
4176   ac_status=$?
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); }; } &&
4179          { ac_try='test -s conftest.$ac_objext'
4180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181   (eval $ac_try) 2>&5
4182   ac_status=$?
4183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184   (exit $ac_status); }; }; then
4185   ac_cv_type_mode_t=yes
4186 else
4187   echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4189
4190 ac_cv_type_mode_t=no
4191 fi
4192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4193 fi
4194 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4195 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4196 if test $ac_cv_type_mode_t = yes; then
4197   :
4198 else
4199
4200 cat >>confdefs.h <<_ACEOF
4201 #define mode_t int
4202 _ACEOF
4203
4204 fi
4205
4206 echo "$as_me:$LINENO: checking for off_t" >&5
4207 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4208 if test "${ac_cv_type_off_t+set}" = set; then
4209   echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211   cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h.  */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h.  */
4217 $ac_includes_default
4218 int
4219 main ()
4220 {
4221 if ((off_t *) 0)
4222   return 0;
4223 if (sizeof (off_t))
4224   return 0;
4225   ;
4226   return 0;
4227 }
4228 _ACEOF
4229 rm -f conftest.$ac_objext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4231   (eval $ac_compile) 2>conftest.er1
4232   ac_status=$?
4233   grep -v '^ *+' conftest.er1 >conftest.err
4234   rm -f conftest.er1
4235   cat conftest.err >&5
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); } &&
4238          { ac_try='test -z "$ac_c_werror_flag"
4239                          || test ! -s conftest.err'
4240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241   (eval $ac_try) 2>&5
4242   ac_status=$?
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); }; } &&
4245          { ac_try='test -s conftest.$ac_objext'
4246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247   (eval $ac_try) 2>&5
4248   ac_status=$?
4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); }; }; then
4251   ac_cv_type_off_t=yes
4252 else
4253   echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4255
4256 ac_cv_type_off_t=no
4257 fi
4258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4259 fi
4260 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4261 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4262 if test $ac_cv_type_off_t = yes; then
4263   :
4264 else
4265
4266 cat >>confdefs.h <<_ACEOF
4267 #define off_t long
4268 _ACEOF
4269
4270 fi
4271
4272 echo "$as_me:$LINENO: checking for pid_t" >&5
4273 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4274 if test "${ac_cv_type_pid_t+set}" = set; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   cat >conftest.$ac_ext <<_ACEOF
4278 /* confdefs.h.  */
4279 _ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h.  */
4283 $ac_includes_default
4284 int
4285 main ()
4286 {
4287 if ((pid_t *) 0)
4288   return 0;
4289 if (sizeof (pid_t))
4290   return 0;
4291   ;
4292   return 0;
4293 }
4294 _ACEOF
4295 rm -f conftest.$ac_objext
4296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4297   (eval $ac_compile) 2>conftest.er1
4298   ac_status=$?
4299   grep -v '^ *+' conftest.er1 >conftest.err
4300   rm -f conftest.er1
4301   cat conftest.err >&5
4302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303   (exit $ac_status); } &&
4304          { ac_try='test -z "$ac_c_werror_flag"
4305                          || test ! -s conftest.err'
4306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307   (eval $ac_try) 2>&5
4308   ac_status=$?
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); }; } &&
4311          { ac_try='test -s conftest.$ac_objext'
4312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313   (eval $ac_try) 2>&5
4314   ac_status=$?
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); }; }; then
4317   ac_cv_type_pid_t=yes
4318 else
4319   echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4321
4322 ac_cv_type_pid_t=no
4323 fi
4324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4325 fi
4326 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4327 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4328 if test $ac_cv_type_pid_t = yes; then
4329   :
4330 else
4331
4332 cat >>confdefs.h <<_ACEOF
4333 #define pid_t int
4334 _ACEOF
4335
4336 fi
4337
4338 echo "$as_me:$LINENO: checking for size_t" >&5
4339 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4340 if test "${ac_cv_type_size_t+set}" = set; then
4341   echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343   cat >conftest.$ac_ext <<_ACEOF
4344 /* confdefs.h.  */
4345 _ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h.  */
4349 $ac_includes_default
4350 int
4351 main ()
4352 {
4353 if ((size_t *) 0)
4354   return 0;
4355 if (sizeof (size_t))
4356   return 0;
4357   ;
4358   return 0;
4359 }
4360 _ACEOF
4361 rm -f conftest.$ac_objext
4362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4363   (eval $ac_compile) 2>conftest.er1
4364   ac_status=$?
4365   grep -v '^ *+' conftest.er1 >conftest.err
4366   rm -f conftest.er1
4367   cat conftest.err >&5
4368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369   (exit $ac_status); } &&
4370          { ac_try='test -z "$ac_c_werror_flag"
4371                          || test ! -s conftest.err'
4372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373   (eval $ac_try) 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); }; } &&
4377          { ac_try='test -s conftest.$ac_objext'
4378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379   (eval $ac_try) 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); }; }; then
4383   ac_cv_type_size_t=yes
4384 else
4385   echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4387
4388 ac_cv_type_size_t=no
4389 fi
4390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4391 fi
4392 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4393 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4394 if test $ac_cv_type_size_t = yes; then
4395   :
4396 else
4397
4398 cat >>confdefs.h <<_ACEOF
4399 #define size_t unsigned
4400 _ACEOF
4401
4402 fi
4403
4404 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4405 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4406 if test "${ac_cv_struct_tm+set}" = set; then
4407   echo $ECHO_N "(cached) $ECHO_C" >&6
4408 else
4409   cat >conftest.$ac_ext <<_ACEOF
4410 /* confdefs.h.  */
4411 _ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h.  */
4415 #include <sys/types.h>
4416 #include <time.h>
4417
4418 int
4419 main ()
4420 {
4421 struct tm *tp; tp->tm_sec;
4422   ;
4423   return 0;
4424 }
4425 _ACEOF
4426 rm -f conftest.$ac_objext
4427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4428   (eval $ac_compile) 2>conftest.er1
4429   ac_status=$?
4430   grep -v '^ *+' conftest.er1 >conftest.err
4431   rm -f conftest.er1
4432   cat conftest.err >&5
4433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434   (exit $ac_status); } &&
4435          { ac_try='test -z "$ac_c_werror_flag"
4436                          || test ! -s conftest.err'
4437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438   (eval $ac_try) 2>&5
4439   ac_status=$?
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); }; } &&
4442          { ac_try='test -s conftest.$ac_objext'
4443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444   (eval $ac_try) 2>&5
4445   ac_status=$?
4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); }; }; then
4448   ac_cv_struct_tm=time.h
4449 else
4450   echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4452
4453 ac_cv_struct_tm=sys/time.h
4454 fi
4455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4456 fi
4457 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4458 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4459 if test $ac_cv_struct_tm = sys/time.h; then
4460
4461 cat >>confdefs.h <<\_ACEOF
4462 #define TM_IN_SYS_TIME 1
4463 _ACEOF
4464
4465 fi
4466
4467
4468
4469
4470 if test x"$FSED_CPM" != x""; then
4471   FSED_CPM="$FSED_CPM$EXEEXT"
4472 fi
4473
4474 echo "$as_me:$LINENO: checking for working memcmp" >&5
4475 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4476 if test "${ac_cv_func_memcmp_working+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   if test "$cross_compiling" = yes; then
4480   ac_cv_func_memcmp_working=no
4481 else
4482   cat >conftest.$ac_ext <<_ACEOF
4483 /* confdefs.h.  */
4484 _ACEOF
4485 cat confdefs.h >>conftest.$ac_ext
4486 cat >>conftest.$ac_ext <<_ACEOF
4487 /* end confdefs.h.  */
4488 $ac_includes_default
4489 int
4490 main ()
4491 {
4492
4493   /* Some versions of memcmp are not 8-bit clean.  */
4494   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4495   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4496     exit (1);
4497
4498   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4499      or more and with at least one buffer not starting on a 4-byte boundary.
4500      William Lewis provided this test program.   */
4501   {
4502     char foo[21];
4503     char bar[21];
4504     int i;
4505     for (i = 0; i < 4; i++)
4506       {
4507         char *a = foo + i;
4508         char *b = bar + i;
4509         strcpy (a, "--------01111111");
4510         strcpy (b, "--------10000000");
4511         if (memcmp (a, b, 16) >= 0)
4512           exit (1);
4513       }
4514     exit (0);
4515   }
4516
4517   ;
4518   return 0;
4519 }
4520 _ACEOF
4521 rm -f conftest$ac_exeext
4522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4523   (eval $ac_link) 2>&5
4524   ac_status=$?
4525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528   (eval $ac_try) 2>&5
4529   ac_status=$?
4530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531   (exit $ac_status); }; }; then
4532   ac_cv_func_memcmp_working=yes
4533 else
4534   echo "$as_me: program exited with status $ac_status" >&5
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4537
4538 ( exit $ac_status )
4539 ac_cv_func_memcmp_working=no
4540 fi
4541 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4542 fi
4543 fi
4544 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4545 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4546 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
4547     "memcmp.$ac_objext"   | \
4548   *" memcmp.$ac_objext"   | \
4549     "memcmp.$ac_objext "* | \
4550   *" memcmp.$ac_objext "* ) ;;
4551   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
4552 esac
4553
4554
4555
4556 for ac_func in strftime
4557 do
4558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4559 echo "$as_me:$LINENO: checking for $ac_func" >&5
4560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4561 if eval "test \"\${$as_ac_var+set}\" = set"; then
4562   echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564   cat >conftest.$ac_ext <<_ACEOF
4565 /* confdefs.h.  */
4566 _ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h.  */
4570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4572 #define $ac_func innocuous_$ac_func
4573
4574 /* System header to define __stub macros and hopefully few prototypes,
4575     which can conflict with char $ac_func (); below.
4576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4577     <limits.h> exists even on freestanding compilers.  */
4578
4579 #ifdef __STDC__
4580 # include <limits.h>
4581 #else
4582 # include <assert.h>
4583 #endif
4584
4585 #undef $ac_func
4586
4587 /* Override any gcc2 internal prototype to avoid an error.  */
4588 #ifdef __cplusplus
4589 extern "C"
4590 {
4591 #endif
4592 /* We use char because int might match the return type of a gcc2
4593    builtin and then its argument prototype would still apply.  */
4594 char $ac_func ();
4595 /* The GNU C library defines this for functions which it implements
4596     to always fail with ENOSYS.  Some functions are actually named
4597     something starting with __ and the normal name is an alias.  */
4598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4599 choke me
4600 #else
4601 char (*f) () = $ac_func;
4602 #endif
4603 #ifdef __cplusplus
4604 }
4605 #endif
4606
4607 int
4608 main ()
4609 {
4610 return f != $ac_func;
4611   ;
4612   return 0;
4613 }
4614 _ACEOF
4615 rm -f conftest.$ac_objext conftest$ac_exeext
4616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4617   (eval $ac_link) 2>conftest.er1
4618   ac_status=$?
4619   grep -v '^ *+' conftest.er1 >conftest.err
4620   rm -f conftest.er1
4621   cat conftest.err >&5
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); } &&
4624          { ac_try='test -z "$ac_c_werror_flag"
4625                          || test ! -s conftest.err'
4626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627   (eval $ac_try) 2>&5
4628   ac_status=$?
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); }; } &&
4631          { ac_try='test -s conftest$ac_exeext'
4632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633   (eval $ac_try) 2>&5
4634   ac_status=$?
4635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636   (exit $ac_status); }; }; then
4637   eval "$as_ac_var=yes"
4638 else
4639   echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4641
4642 eval "$as_ac_var=no"
4643 fi
4644 rm -f conftest.err conftest.$ac_objext \
4645       conftest$ac_exeext conftest.$ac_ext
4646 fi
4647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4649 if test `eval echo '${'$as_ac_var'}'` = yes; then
4650   cat >>confdefs.h <<_ACEOF
4651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4652 _ACEOF
4653
4654 else
4655   # strftime is in -lintl on SCO UNIX.
4656 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
4657 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
4658 if test "${ac_cv_lib_intl_strftime+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661   ac_check_lib_save_LIBS=$LIBS
4662 LIBS="-lintl  $LIBS"
4663 cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h.  */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h.  */
4669
4670 /* Override any gcc2 internal prototype to avoid an error.  */
4671 #ifdef __cplusplus
4672 extern "C"
4673 #endif
4674 /* We use char because int might match the return type of a gcc2
4675    builtin and then its argument prototype would still apply.  */
4676 char strftime ();
4677 int
4678 main ()
4679 {
4680 strftime ();
4681   ;
4682   return 0;
4683 }
4684 _ACEOF
4685 rm -f conftest.$ac_objext conftest$ac_exeext
4686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4687   (eval $ac_link) 2>conftest.er1
4688   ac_status=$?
4689   grep -v '^ *+' conftest.er1 >conftest.err
4690   rm -f conftest.er1
4691   cat conftest.err >&5
4692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); } &&
4694          { ac_try='test -z "$ac_c_werror_flag"
4695                          || test ! -s conftest.err'
4696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697   (eval $ac_try) 2>&5
4698   ac_status=$?
4699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); }; } &&
4701          { ac_try='test -s conftest$ac_exeext'
4702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703   (eval $ac_try) 2>&5
4704   ac_status=$?
4705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706   (exit $ac_status); }; }; then
4707   ac_cv_lib_intl_strftime=yes
4708 else
4709   echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4711
4712 ac_cv_lib_intl_strftime=no
4713 fi
4714 rm -f conftest.err conftest.$ac_objext \
4715       conftest$ac_exeext conftest.$ac_ext
4716 LIBS=$ac_check_lib_save_LIBS
4717 fi
4718 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
4719 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
4720 if test $ac_cv_lib_intl_strftime = yes; then
4721   cat >>confdefs.h <<\_ACEOF
4722 #define HAVE_STRFTIME 1
4723 _ACEOF
4724
4725 LIBS="-lintl $LIBS"
4726 fi
4727
4728 fi
4729 done
4730
4731
4732
4733 for ac_func in mktime strerror
4734 do
4735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4736 echo "$as_me:$LINENO: checking for $ac_func" >&5
4737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4738 if eval "test \"\${$as_ac_var+set}\" = set"; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h.  */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h.  */
4747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4749 #define $ac_func innocuous_$ac_func
4750
4751 /* System header to define __stub macros and hopefully few prototypes,
4752     which can conflict with char $ac_func (); below.
4753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4754     <limits.h> exists even on freestanding compilers.  */
4755
4756 #ifdef __STDC__
4757 # include <limits.h>
4758 #else
4759 # include <assert.h>
4760 #endif
4761
4762 #undef $ac_func
4763
4764 /* Override any gcc2 internal prototype to avoid an error.  */
4765 #ifdef __cplusplus
4766 extern "C"
4767 {
4768 #endif
4769 /* We use char because int might match the return type of a gcc2
4770    builtin and then its argument prototype would still apply.  */
4771 char $ac_func ();
4772 /* The GNU C library defines this for functions which it implements
4773     to always fail with ENOSYS.  Some functions are actually named
4774     something starting with __ and the normal name is an alias.  */
4775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4776 choke me
4777 #else
4778 char (*f) () = $ac_func;
4779 #endif
4780 #ifdef __cplusplus
4781 }
4782 #endif
4783
4784 int
4785 main ()
4786 {
4787 return f != $ac_func;
4788   ;
4789   return 0;
4790 }
4791 _ACEOF
4792 rm -f conftest.$ac_objext conftest$ac_exeext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4794   (eval $ac_link) 2>conftest.er1
4795   ac_status=$?
4796   grep -v '^ *+' conftest.er1 >conftest.err
4797   rm -f conftest.er1
4798   cat conftest.err >&5
4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800   (exit $ac_status); } &&
4801          { ac_try='test -z "$ac_c_werror_flag"
4802                          || test ! -s conftest.err'
4803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804   (eval $ac_try) 2>&5
4805   ac_status=$?
4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); }; } &&
4808          { ac_try='test -s conftest$ac_exeext'
4809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810   (eval $ac_try) 2>&5
4811   ac_status=$?
4812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813   (exit $ac_status); }; }; then
4814   eval "$as_ac_var=yes"
4815 else
4816   echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4818
4819 eval "$as_ac_var=no"
4820 fi
4821 rm -f conftest.err conftest.$ac_objext \
4822       conftest$ac_exeext conftest.$ac_ext
4823 fi
4824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4826 if test `eval echo '${'$as_ac_var'}'` = yes; then
4827   cat >>confdefs.h <<_ACEOF
4828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4829 _ACEOF
4830
4831 fi
4832 done
4833
4834
4835
4836
4837
4838 eval DATADIR=$datadir
4839
4840
4841
4842
4843
4844                                                                                                     ac_config_files="$ac_config_files Makefile cpm.5 cpmchattr.1 cpmchmod.1 cpmcp.1 cpmls.1 cpmrm.1 fsck.cpm.1 fsed.cpm.1 mkfs.cpm.1"
4845 cat >confcache <<\_ACEOF
4846 # This file is a shell script that caches the results of configure
4847 # tests run on this system so they can be shared between configure
4848 # scripts and configure runs, see configure's option --config-cache.
4849 # It is not useful on other systems.  If it contains results you don't
4850 # want to keep, you may remove or edit it.
4851 #
4852 # config.status only pays attention to the cache file if you give it
4853 # the --recheck option to rerun configure.
4854 #
4855 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4856 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4857 # following values.
4858
4859 _ACEOF
4860
4861 # The following way of writing the cache mishandles newlines in values,
4862 # but we know of no workaround that is simple, portable, and efficient.
4863 # So, don't put newlines in cache variables' values.
4864 # Ultrix sh set writes to stderr and can't be redirected directly,
4865 # and sets the high bit in the cache file unless we assign to the vars.
4866 {
4867   (set) 2>&1 |
4868     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4869     *ac_space=\ *)
4870       # `set' does not quote correctly, so add quotes (double-quote
4871       # substitution turns \\\\ into \\, and sed turns \\ into \).
4872       sed -n \
4873         "s/'/'\\\\''/g;
4874           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4875       ;;
4876     *)
4877       # `set' quotes correctly as required by POSIX, so do not add quotes.
4878       sed -n \
4879         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4880       ;;
4881     esac;
4882 } |
4883   sed '
4884      t clear
4885      : clear
4886      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4887      t end
4888      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4889      : end' >>confcache
4890 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4891   if test -w $cache_file; then
4892     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4893     cat confcache >$cache_file
4894   else
4895     echo "not updating unwritable cache $cache_file"
4896   fi
4897 fi
4898 rm -f confcache
4899
4900 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4901 # Let make expand exec_prefix.
4902 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4903
4904 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4905 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4906 # trailing colons and then remove the whole line if VPATH becomes empty
4907 # (actually we leave an empty line to preserve line numbers).
4908 if test "x$srcdir" = x.; then
4909   ac_vpsub='/^[  ]*VPATH[        ]*=/{
4910 s/:*\$(srcdir):*/:/;
4911 s/:*\${srcdir}:*/:/;
4912 s/:*@srcdir@:*/:/;
4913 s/^\([^=]*=[     ]*\):*/\1/;
4914 s/:*$//;
4915 s/^[^=]*=[       ]*$//;
4916 }'
4917 fi
4918
4919 DEFS=-DHAVE_CONFIG_H
4920
4921 ac_libobjs=
4922 ac_ltlibobjs=
4923 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4924   # 1. Remove the extension, and $U if already installed.
4925   ac_i=`echo "$ac_i" |
4926          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4927   # 2. Add them.
4928   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4929   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4930 done
4931 LIBOBJS=$ac_libobjs
4932
4933 LTLIBOBJS=$ac_ltlibobjs
4934
4935
4936
4937 : ${CONFIG_STATUS=./config.status}
4938 ac_clean_files_save=$ac_clean_files
4939 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4940 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4941 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4942 cat >$CONFIG_STATUS <<_ACEOF
4943 #! $SHELL
4944 # Generated by $as_me.
4945 # Run this file to recreate the current configuration.
4946 # Compiler output produced by configure, useful for debugging
4947 # configure, is in config.log if it exists.
4948
4949 debug=false
4950 ac_cs_recheck=false
4951 ac_cs_silent=false
4952 SHELL=\${CONFIG_SHELL-$SHELL}
4953 _ACEOF
4954
4955 cat >>$CONFIG_STATUS <<\_ACEOF
4956 ## --------------------- ##
4957 ## M4sh Initialization.  ##
4958 ## --------------------- ##
4959
4960 # Be Bourne compatible
4961 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4962   emulate sh
4963   NULLCMD=:
4964   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4965   # is contrary to our usage.  Disable this feature.
4966   alias -g '${1+"$@"}'='"$@"'
4967 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4968   set -o posix
4969 fi
4970 DUALCASE=1; export DUALCASE # for MKS sh
4971
4972 # Support unset when possible.
4973 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4974   as_unset=unset
4975 else
4976   as_unset=false
4977 fi
4978
4979
4980 # Work around bugs in pre-3.0 UWIN ksh.
4981 $as_unset ENV MAIL MAILPATH
4982 PS1='$ '
4983 PS2='> '
4984 PS4='+ '
4985
4986 # NLS nuisances.
4987 for as_var in \
4988   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4989   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4990   LC_TELEPHONE LC_TIME
4991 do
4992   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4993     eval $as_var=C; export $as_var
4994   else
4995     $as_unset $as_var
4996   fi
4997 done
4998
4999 # Required to use basename.
5000 if expr a : '\(a\)' >/dev/null 2>&1; then
5001   as_expr=expr
5002 else
5003   as_expr=false
5004 fi
5005
5006 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5007   as_basename=basename
5008 else
5009   as_basename=false
5010 fi
5011
5012
5013 # Name of the executable.
5014 as_me=`$as_basename "$0" ||
5015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5016          X"$0" : 'X\(//\)$' \| \
5017          X"$0" : 'X\(/\)$' \| \
5018          .     : '\(.\)' 2>/dev/null ||
5019 echo X/"$0" |
5020     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5021           /^X\/\(\/\/\)$/{ s//\1/; q; }
5022           /^X\/\(\/\).*/{ s//\1/; q; }
5023           s/.*/./; q'`
5024
5025
5026 # PATH needs CR, and LINENO needs CR and PATH.
5027 # Avoid depending upon Character Ranges.
5028 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5029 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5030 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5031 as_cr_digits='0123456789'
5032 as_cr_alnum=$as_cr_Letters$as_cr_digits
5033
5034 # The user is always right.
5035 if test "${PATH_SEPARATOR+set}" != set; then
5036   echo "#! /bin/sh" >conf$$.sh
5037   echo  "exit 0"   >>conf$$.sh
5038   chmod +x conf$$.sh
5039   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5040     PATH_SEPARATOR=';'
5041   else
5042     PATH_SEPARATOR=:
5043   fi
5044   rm -f conf$$.sh
5045 fi
5046
5047
5048   as_lineno_1=$LINENO
5049   as_lineno_2=$LINENO
5050   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5051   test "x$as_lineno_1" != "x$as_lineno_2" &&
5052   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5053   # Find who we are.  Look in the path if we contain no path at all
5054   # relative or not.
5055   case $0 in
5056     *[\\/]* ) as_myself=$0 ;;
5057     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060   IFS=$as_save_IFS
5061   test -z "$as_dir" && as_dir=.
5062   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5063 done
5064
5065        ;;
5066   esac
5067   # We did not find ourselves, most probably we were run as `sh COMMAND'
5068   # in which case we are not to be found in the path.
5069   if test "x$as_myself" = x; then
5070     as_myself=$0
5071   fi
5072   if test ! -f "$as_myself"; then
5073     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5074 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5075    { (exit 1); exit 1; }; }
5076   fi
5077   case $CONFIG_SHELL in
5078   '')
5079     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5081 do
5082   IFS=$as_save_IFS
5083   test -z "$as_dir" && as_dir=.
5084   for as_base in sh bash ksh sh5; do
5085          case $as_dir in
5086          /*)
5087            if ("$as_dir/$as_base" -c '
5088   as_lineno_1=$LINENO
5089   as_lineno_2=$LINENO
5090   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5091   test "x$as_lineno_1" != "x$as_lineno_2" &&
5092   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5093              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5094              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5095              CONFIG_SHELL=$as_dir/$as_base
5096              export CONFIG_SHELL
5097              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5098            fi;;
5099          esac
5100        done
5101 done
5102 ;;
5103   esac
5104
5105   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5106   # uniformly replaced by the line number.  The first 'sed' inserts a
5107   # line-number line before each line; the second 'sed' does the real
5108   # work.  The second script uses 'N' to pair each line-number line
5109   # with the numbered line, and appends trailing '-' during
5110   # substitution so that $LINENO is not a special case at line end.
5111   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5112   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5113   sed '=' <$as_myself |
5114     sed '
5115       N
5116       s,$,-,
5117       : loop
5118       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5119       t loop
5120       s,-$,,
5121       s,^['$as_cr_digits']*\n,,
5122     ' >$as_me.lineno &&
5123   chmod +x $as_me.lineno ||
5124     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5125 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5126    { (exit 1); exit 1; }; }
5127
5128   # Don't try to exec as it changes $[0], causing all sort of problems
5129   # (the dirname of $[0] is not the place where we might find the
5130   # original and so on.  Autoconf is especially sensible to this).
5131   . ./$as_me.lineno
5132   # Exit status is that of the last command.
5133   exit
5134 }
5135
5136
5137 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5138   *c*,-n*) ECHO_N= ECHO_C='
5139 ' ECHO_T='      ' ;;
5140   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5141   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5142 esac
5143
5144 if expr a : '\(a\)' >/dev/null 2>&1; then
5145   as_expr=expr
5146 else
5147   as_expr=false
5148 fi
5149
5150 rm -f conf$$ conf$$.exe conf$$.file
5151 echo >conf$$.file
5152 if ln -s conf$$.file conf$$ 2>/dev/null; then
5153   # We could just check for DJGPP; but this test a) works b) is more generic
5154   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5155   if test -f conf$$.exe; then
5156     # Don't use ln at all; we don't have any links
5157     as_ln_s='cp -p'
5158   else
5159     as_ln_s='ln -s'
5160   fi
5161 elif ln conf$$.file conf$$ 2>/dev/null; then
5162   as_ln_s=ln
5163 else
5164   as_ln_s='cp -p'
5165 fi
5166 rm -f conf$$ conf$$.exe conf$$.file
5167
5168 if mkdir -p . 2>/dev/null; then
5169   as_mkdir_p=:
5170 else
5171   test -d ./-p && rmdir ./-p
5172   as_mkdir_p=false
5173 fi
5174
5175 as_executable_p="test -f"
5176
5177 # Sed expression to map a string onto a valid CPP name.
5178 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5179
5180 # Sed expression to map a string onto a valid variable name.
5181 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5182
5183
5184 # IFS
5185 # We need space, tab and new line, in precisely that order.
5186 as_nl='
5187 '
5188 IFS="   $as_nl"
5189
5190 # CDPATH.
5191 $as_unset CDPATH
5192
5193 exec 6>&1
5194
5195 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5196 # report actual input values of CONFIG_FILES etc. instead of their
5197 # values after options handling.  Logging --version etc. is OK.
5198 exec 5>>config.log
5199 {
5200   echo
5201   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5202 ## Running $as_me. ##
5203 _ASBOX
5204 } >&5
5205 cat >&5 <<_CSEOF
5206
5207 This file was extended by $as_me, which was
5208 generated by GNU Autoconf 2.58.  Invocation command line was
5209
5210   CONFIG_FILES    = $CONFIG_FILES
5211   CONFIG_HEADERS  = $CONFIG_HEADERS
5212   CONFIG_LINKS    = $CONFIG_LINKS
5213   CONFIG_COMMANDS = $CONFIG_COMMANDS
5214   $ $0 $@
5215
5216 _CSEOF
5217 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5218 echo >&5
5219 _ACEOF
5220
5221 # Files that config.status was made for.
5222 if test -n "$ac_config_files"; then
5223   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5224 fi
5225
5226 if test -n "$ac_config_headers"; then
5227   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5228 fi
5229
5230 if test -n "$ac_config_links"; then
5231   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5232 fi
5233
5234 if test -n "$ac_config_commands"; then
5235   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5236 fi
5237
5238 cat >>$CONFIG_STATUS <<\_ACEOF
5239
5240 ac_cs_usage="\
5241 \`$as_me' instantiates files from templates according to the
5242 current configuration.
5243
5244 Usage: $0 [OPTIONS] [FILE]...
5245
5246   -h, --help       print this help, then exit
5247   -V, --version    print version number, then exit
5248   -q, --quiet      do not print progress messages
5249   -d, --debug      don't remove temporary files
5250       --recheck    update $as_me by reconfiguring in the same conditions
5251   --file=FILE[:TEMPLATE]
5252                    instantiate the configuration file FILE
5253   --header=FILE[:TEMPLATE]
5254                    instantiate the configuration header FILE
5255
5256 Configuration files:
5257 $config_files
5258
5259 Configuration headers:
5260 $config_headers
5261
5262 Report bugs to <bug-autoconf@gnu.org>."
5263 _ACEOF
5264
5265 cat >>$CONFIG_STATUS <<_ACEOF
5266 ac_cs_version="\\
5267 config.status
5268 configured by $0, generated by GNU Autoconf 2.58,
5269   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5270
5271 Copyright (C) 2003 Free Software Foundation, Inc.
5272 This config.status script is free software; the Free Software Foundation
5273 gives unlimited permission to copy, distribute and modify it."
5274 srcdir=$srcdir
5275 INSTALL="$INSTALL"
5276 _ACEOF
5277
5278 cat >>$CONFIG_STATUS <<\_ACEOF
5279 # If no file are specified by the user, then we need to provide default
5280 # value.  By we need to know if files were specified by the user.
5281 ac_need_defaults=:
5282 while test $# != 0
5283 do
5284   case $1 in
5285   --*=*)
5286     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5287     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5288     ac_shift=:
5289     ;;
5290   -*)
5291     ac_option=$1
5292     ac_optarg=$2
5293     ac_shift=shift
5294     ;;
5295   *) # This is not an option, so the user has probably given explicit
5296      # arguments.
5297      ac_option=$1
5298      ac_need_defaults=false;;
5299   esac
5300
5301   case $ac_option in
5302   # Handling of the options.
5303 _ACEOF
5304 cat >>$CONFIG_STATUS <<\_ACEOF
5305   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5306     ac_cs_recheck=: ;;
5307   --version | --vers* | -V )
5308     echo "$ac_cs_version"; exit 0 ;;
5309   --he | --h)
5310     # Conflict between --help and --header
5311     { { echo "$as_me:$LINENO: error: ambiguous option: $1
5312 Try \`$0 --help' for more information." >&5
5313 echo "$as_me: error: ambiguous option: $1
5314 Try \`$0 --help' for more information." >&2;}
5315    { (exit 1); exit 1; }; };;
5316   --help | --hel | -h )
5317     echo "$ac_cs_usage"; exit 0 ;;
5318   --debug | --d* | -d )
5319     debug=: ;;
5320   --file | --fil | --fi | --f )
5321     $ac_shift
5322     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5323     ac_need_defaults=false;;
5324   --header | --heade | --head | --hea )
5325     $ac_shift
5326     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5327     ac_need_defaults=false;;
5328   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5329   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5330     ac_cs_silent=: ;;
5331
5332   # This is an error.
5333   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5334 Try \`$0 --help' for more information." >&5
5335 echo "$as_me: error: unrecognized option: $1
5336 Try \`$0 --help' for more information." >&2;}
5337    { (exit 1); exit 1; }; } ;;
5338
5339   *) ac_config_targets="$ac_config_targets $1" ;;
5340
5341   esac
5342   shift
5343 done
5344
5345 ac_configure_extra_args=
5346
5347 if $ac_cs_silent; then
5348   exec 6>/dev/null
5349   ac_configure_extra_args="$ac_configure_extra_args --silent"
5350 fi
5351
5352 _ACEOF
5353 cat >>$CONFIG_STATUS <<_ACEOF
5354 if \$ac_cs_recheck; then
5355   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5356   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5357 fi
5358
5359 _ACEOF
5360
5361
5362
5363
5364
5365 cat >>$CONFIG_STATUS <<\_ACEOF
5366 for ac_config_target in $ac_config_targets
5367 do
5368   case "$ac_config_target" in
5369   # Handling of arguments.
5370   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5371   "cpm.5" ) CONFIG_FILES="$CONFIG_FILES cpm.5" ;;
5372   "cpmchattr.1" ) CONFIG_FILES="$CONFIG_FILES cpmchattr.1" ;;
5373   "cpmchmod.1" ) CONFIG_FILES="$CONFIG_FILES cpmchmod.1" ;;
5374   "cpmcp.1" ) CONFIG_FILES="$CONFIG_FILES cpmcp.1" ;;
5375   "cpmls.1" ) CONFIG_FILES="$CONFIG_FILES cpmls.1" ;;
5376   "cpmrm.1" ) CONFIG_FILES="$CONFIG_FILES cpmrm.1" ;;
5377   "fsck.cpm.1" ) CONFIG_FILES="$CONFIG_FILES fsck.cpm.1" ;;
5378   "fsed.cpm.1" ) CONFIG_FILES="$CONFIG_FILES fsed.cpm.1" ;;
5379   "mkfs.cpm.1" ) CONFIG_FILES="$CONFIG_FILES mkfs.cpm.1" ;;
5380   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5381   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5382 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5383    { (exit 1); exit 1; }; };;
5384   esac
5385 done
5386
5387 # If the user did not use the arguments to specify the items to instantiate,
5388 # then the envvar interface is used.  Set only those that are not.
5389 # We use the long form for the default assignment because of an extremely
5390 # bizarre bug on SunOS 4.1.3.
5391 if $ac_need_defaults; then
5392   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5393   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5394 fi
5395
5396 # Have a temporary directory for convenience.  Make it in the build tree
5397 # simply because there is no reason to put it here, and in addition,
5398 # creating and moving files from /tmp can sometimes cause problems.
5399 # Create a temporary directory, and hook for its removal unless debugging.
5400 $debug ||
5401 {
5402   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5403   trap '{ (exit 1); exit 1; }' 1 2 13 15
5404 }
5405
5406 # Create a (secure) tmp directory for tmp files.
5407
5408 {
5409   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5410   test -n "$tmp" && test -d "$tmp"
5411 }  ||
5412 {
5413   tmp=./confstat$$-$RANDOM
5414   (umask 077 && mkdir $tmp)
5415 } ||
5416 {
5417    echo "$me: cannot create a temporary directory in ." >&2
5418    { (exit 1); exit 1; }
5419 }
5420
5421 _ACEOF
5422
5423 cat >>$CONFIG_STATUS <<_ACEOF
5424
5425 #
5426 # CONFIG_FILES section.
5427 #
5428
5429 # No need to generate the scripts if there are no CONFIG_FILES.
5430 # This happens for instance when ./config.status config.h
5431 if test -n "\$CONFIG_FILES"; then
5432   # Protect against being on the right side of a sed subst in config.status.
5433   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5434    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5435 s,@SHELL@,$SHELL,;t t
5436 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5437 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5438 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5439 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5440 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5441 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5442 s,@exec_prefix@,$exec_prefix,;t t
5443 s,@prefix@,$prefix,;t t
5444 s,@program_transform_name@,$program_transform_name,;t t
5445 s,@bindir@,$bindir,;t t
5446 s,@sbindir@,$sbindir,;t t
5447 s,@libexecdir@,$libexecdir,;t t
5448 s,@datadir@,$datadir,;t t
5449 s,@sysconfdir@,$sysconfdir,;t t
5450 s,@sharedstatedir@,$sharedstatedir,;t t
5451 s,@localstatedir@,$localstatedir,;t t
5452 s,@libdir@,$libdir,;t t
5453 s,@includedir@,$includedir,;t t
5454 s,@oldincludedir@,$oldincludedir,;t t
5455 s,@infodir@,$infodir,;t t
5456 s,@mandir@,$mandir,;t t
5457 s,@build_alias@,$build_alias,;t t
5458 s,@host_alias@,$host_alias,;t t
5459 s,@target_alias@,$target_alias,;t t
5460 s,@DEFS@,$DEFS,;t t
5461 s,@ECHO_C@,$ECHO_C,;t t
5462 s,@ECHO_N@,$ECHO_N,;t t
5463 s,@ECHO_T@,$ECHO_T,;t t
5464 s,@LIBS@,$LIBS,;t t
5465 s,@build@,$build,;t t
5466 s,@build_cpu@,$build_cpu,;t t
5467 s,@build_vendor@,$build_vendor,;t t
5468 s,@build_os@,$build_os,;t t
5469 s,@host@,$host,;t t
5470 s,@host_cpu@,$host_cpu,;t t
5471 s,@host_vendor@,$host_vendor,;t t
5472 s,@host_os@,$host_os,;t t
5473 s,@CC@,$CC,;t t
5474 s,@CFLAGS@,$CFLAGS,;t t
5475 s,@LDFLAGS@,$LDFLAGS,;t t
5476 s,@CPPFLAGS@,$CPPFLAGS,;t t
5477 s,@ac_ct_CC@,$ac_ct_CC,;t t
5478 s,@EXEEXT@,$EXEEXT,;t t
5479 s,@OBJEXT@,$OBJEXT,;t t
5480 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5481 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5482 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5483 s,@CPP@,$CPP,;t t
5484 s,@EGREP@,$EGREP,;t t
5485 s,@LIBOBJS@,$LIBOBJS,;t t
5486 s,@LDLIBS@,$LDLIBS,;t t
5487 s,@LDDEPS@,$LDDEPS,;t t
5488 s,@DEVICE@,$DEVICE,;t t
5489 s,@DATADIR@,$DATADIR,;t t
5490 s,@DISKDEFS@,$DISKDEFS,;t t
5491 s,@DEFFORMAT@,$DEFFORMAT,;t t
5492 s,@FSED_CPM@,$FSED_CPM,;t t
5493 s,@UPDATED@,$UPDATED,;t t
5494 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5495 CEOF
5496
5497 _ACEOF
5498
5499   cat >>$CONFIG_STATUS <<\_ACEOF
5500   # Split the substitutions into bite-sized pieces for seds with
5501   # small command number limits, like on Digital OSF/1 and HP-UX.
5502   ac_max_sed_lines=48
5503   ac_sed_frag=1 # Number of current file.
5504   ac_beg=1 # First line for current file.
5505   ac_end=$ac_max_sed_lines # Line after last line for current file.
5506   ac_more_lines=:
5507   ac_sed_cmds=
5508   while $ac_more_lines; do
5509     if test $ac_beg -gt 1; then
5510       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5511     else
5512       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5513     fi
5514     if test ! -s $tmp/subs.frag; then
5515       ac_more_lines=false
5516     else
5517       # The purpose of the label and of the branching condition is to
5518       # speed up the sed processing (if there are no `@' at all, there
5519       # is no need to browse any of the substitutions).
5520       # These are the two extra sed commands mentioned above.
5521       (echo ':t
5522   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5523       if test -z "$ac_sed_cmds"; then
5524         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5525       else
5526         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5527       fi
5528       ac_sed_frag=`expr $ac_sed_frag + 1`
5529       ac_beg=$ac_end
5530       ac_end=`expr $ac_end + $ac_max_sed_lines`
5531     fi
5532   done
5533   if test -z "$ac_sed_cmds"; then
5534     ac_sed_cmds=cat
5535   fi
5536 fi # test -n "$CONFIG_FILES"
5537
5538 _ACEOF
5539 cat >>$CONFIG_STATUS <<\_ACEOF
5540 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5541   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5542   case $ac_file in
5543   - | *:- | *:-:* ) # input from stdin
5544         cat >$tmp/stdin
5545         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5546         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5547   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5548         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5549   * )   ac_file_in=$ac_file.in ;;
5550   esac
5551
5552   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5553   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5554 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5555          X"$ac_file" : 'X\(//\)[^/]' \| \
5556          X"$ac_file" : 'X\(//\)$' \| \
5557          X"$ac_file" : 'X\(/\)' \| \
5558          .     : '\(.\)' 2>/dev/null ||
5559 echo X"$ac_file" |
5560     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5561           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5562           /^X\(\/\/\)$/{ s//\1/; q; }
5563           /^X\(\/\).*/{ s//\1/; q; }
5564           s/.*/./; q'`
5565   { if $as_mkdir_p; then
5566     mkdir -p "$ac_dir"
5567   else
5568     as_dir="$ac_dir"
5569     as_dirs=
5570     while test ! -d "$as_dir"; do
5571       as_dirs="$as_dir $as_dirs"
5572       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5573 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5574          X"$as_dir" : 'X\(//\)[^/]' \| \
5575          X"$as_dir" : 'X\(//\)$' \| \
5576          X"$as_dir" : 'X\(/\)' \| \
5577          .     : '\(.\)' 2>/dev/null ||
5578 echo X"$as_dir" |
5579     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5580           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5581           /^X\(\/\/\)$/{ s//\1/; q; }
5582           /^X\(\/\).*/{ s//\1/; q; }
5583           s/.*/./; q'`
5584     done
5585     test ! -n "$as_dirs" || mkdir $as_dirs
5586   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5587 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5588    { (exit 1); exit 1; }; }; }
5589
5590   ac_builddir=.
5591
5592 if test "$ac_dir" != .; then
5593   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5594   # A "../" for each directory in $ac_dir_suffix.
5595   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5596 else
5597   ac_dir_suffix= ac_top_builddir=
5598 fi
5599
5600 case $srcdir in
5601   .)  # No --srcdir option.  We are building in place.
5602     ac_srcdir=.
5603     if test -z "$ac_top_builddir"; then
5604        ac_top_srcdir=.
5605     else
5606        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5607     fi ;;
5608   [\\/]* | ?:[\\/]* )  # Absolute path.
5609     ac_srcdir=$srcdir$ac_dir_suffix;
5610     ac_top_srcdir=$srcdir ;;
5611   *) # Relative path.
5612     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5613     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5614 esac
5615 case "$ac_dir" in
5616 .) ac_abs_builddir=$ac_builddir;;
5617 *)
5618   case $ac_builddir in
5619   .) ac_abs_builddir="$ac_dir";;
5620   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
5621   *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
5622   esac;;
5623 esac
5624 case "$ac_dir" in
5625 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5626 *)
5627   case ${ac_top_builddir}. in
5628   .) ac_abs_top_builddir="$ac_dir";;
5629   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5630   *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
5631   esac;;
5632 esac
5633 case "$ac_dir" in
5634 .) ac_abs_srcdir=$ac_srcdir;;
5635 *)
5636   case $ac_srcdir in
5637   .) ac_abs_srcdir="$ac_dir";;
5638   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5639   *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
5640   esac;;
5641 esac
5642 case "$ac_dir" in
5643 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5644 *)
5645   case $ac_top_srcdir in
5646   .) ac_abs_top_srcdir="$ac_dir";;
5647   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5648   *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
5649   esac;;
5650 esac
5651
5652
5653   case $INSTALL in
5654   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5655   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5656   esac
5657
5658   if test x"$ac_file" != x-; then
5659     { echo "$as_me:$LINENO: creating $ac_file" >&5
5660 echo "$as_me: creating $ac_file" >&6;}
5661     rm -f "$ac_file"
5662   fi
5663   # Let's still pretend it is `configure' which instantiates (i.e., don't
5664   # use $as_me), people would be surprised to read:
5665   #    /* config.h.  Generated by config.status.  */
5666   if test x"$ac_file" = x-; then
5667     configure_input=
5668   else
5669     configure_input="$ac_file.  "
5670   fi
5671   configure_input=$configure_input"Generated from `echo $ac_file_in |
5672                                      sed 's,.*/,,'` by configure."
5673
5674   # First look for the input files in the build tree, otherwise in the
5675   # src tree.
5676   ac_file_inputs=`IFS=:
5677     for f in $ac_file_in; do
5678       case $f in
5679       -) echo $tmp/stdin ;;
5680       [\\/$]*)
5681          # Absolute (can't be DOS-style, as IFS=:)
5682          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5683 echo "$as_me: error: cannot find input file: $f" >&2;}
5684    { (exit 1); exit 1; }; }
5685          echo "$f";;
5686       *) # Relative
5687          if test -f "$f"; then
5688            # Build tree
5689            echo "$f"
5690          elif test -f "$srcdir/$f"; then
5691            # Source tree
5692            echo "$srcdir/$f"
5693          else
5694            # /dev/null tree
5695            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5696 echo "$as_me: error: cannot find input file: $f" >&2;}
5697    { (exit 1); exit 1; }; }
5698          fi;;
5699       esac
5700     done` || { (exit 1); exit 1; }
5701 _ACEOF
5702 cat >>$CONFIG_STATUS <<_ACEOF
5703   sed "$ac_vpsub
5704 $extrasub
5705 _ACEOF
5706 cat >>$CONFIG_STATUS <<\_ACEOF
5707 :t
5708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5709 s,@configure_input@,$configure_input,;t t
5710 s,@srcdir@,$ac_srcdir,;t t
5711 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5712 s,@top_srcdir@,$ac_top_srcdir,;t t
5713 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5714 s,@builddir@,$ac_builddir,;t t
5715 s,@abs_builddir@,$ac_abs_builddir,;t t
5716 s,@top_builddir@,$ac_top_builddir,;t t
5717 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5718 s,@INSTALL@,$ac_INSTALL,;t t
5719 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5720   rm -f $tmp/stdin
5721   if test x"$ac_file" != x-; then
5722     mv $tmp/out $ac_file
5723   else
5724     cat $tmp/out
5725     rm -f $tmp/out
5726   fi
5727
5728 done
5729 _ACEOF
5730 cat >>$CONFIG_STATUS <<\_ACEOF
5731
5732 #
5733 # CONFIG_HEADER section.
5734 #
5735
5736 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5737 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5738 #
5739 # ac_d sets the value in "#define NAME VALUE" lines.
5740 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
5741 ac_dB='[         ].*$,\1#\2'
5742 ac_dC=' '
5743 ac_dD=',;t'
5744 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5745 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5746 ac_uB='$,\1#\2define\3'
5747 ac_uC=' '
5748 ac_uD=',;t'
5749
5750 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5751   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5752   case $ac_file in
5753   - | *:- | *:-:* ) # input from stdin
5754         cat >$tmp/stdin
5755         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5756         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5757   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5758         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5759   * )   ac_file_in=$ac_file.in ;;
5760   esac
5761
5762   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5763 echo "$as_me: creating $ac_file" >&6;}
5764
5765   # First look for the input files in the build tree, otherwise in the
5766   # src tree.
5767   ac_file_inputs=`IFS=:
5768     for f in $ac_file_in; do
5769       case $f in
5770       -) echo $tmp/stdin ;;
5771       [\\/$]*)
5772          # Absolute (can't be DOS-style, as IFS=:)
5773          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5774 echo "$as_me: error: cannot find input file: $f" >&2;}
5775    { (exit 1); exit 1; }; }
5776          # Do quote $f, to prevent DOS paths from being IFS'd.
5777          echo "$f";;
5778       *) # Relative
5779          if test -f "$f"; then
5780            # Build tree
5781            echo "$f"
5782          elif test -f "$srcdir/$f"; then
5783            # Source tree
5784            echo "$srcdir/$f"
5785          else
5786            # /dev/null tree
5787            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5788 echo "$as_me: error: cannot find input file: $f" >&2;}
5789    { (exit 1); exit 1; }; }
5790          fi;;
5791       esac
5792     done` || { (exit 1); exit 1; }
5793   # Remove the trailing spaces.
5794   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
5795
5796 _ACEOF
5797
5798 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5799 # `conftest.undefs', that substitutes the proper values into
5800 # config.h.in to produce config.h.  The first handles `#define'
5801 # templates, and the second `#undef' templates.
5802 # And first: Protect against being on the right side of a sed subst in
5803 # config.status.  Protect against being in an unquoted here document
5804 # in config.status.
5805 rm -f conftest.defines conftest.undefs
5806 # Using a here document instead of a string reduces the quoting nightmare.
5807 # Putting comments in sed scripts is not portable.
5808 #
5809 # `end' is used to avoid that the second main sed command (meant for
5810 # 0-ary CPP macros) applies to n-ary macro definitions.
5811 # See the Autoconf documentation for `clear'.
5812 cat >confdef2sed.sed <<\_ACEOF
5813 s/[\\&,]/\\&/g
5814 s,[\\$`],\\&,g
5815 t clear
5816 : clear
5817 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5818 t end
5819 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5820 : end
5821 _ACEOF
5822 # If some macros were called several times there might be several times
5823 # the same #defines, which is useless.  Nevertheless, we may not want to
5824 # sort them, since we want the *last* AC-DEFINE to be honored.
5825 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5826 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5827 rm -f confdef2sed.sed
5828
5829 # This sed command replaces #undef with comments.  This is necessary, for
5830 # example, in the case of _POSIX_SOURCE, which is predefined and required
5831 # on some systems where configure will not decide to define it.
5832 cat >>conftest.undefs <<\_ACEOF
5833 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5834 _ACEOF
5835
5836 # Break up conftest.defines because some shells have a limit on the size
5837 # of here documents, and old seds have small limits too (100 cmds).
5838 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5839 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5840 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5841 echo '  :' >>$CONFIG_STATUS
5842 rm -f conftest.tail
5843 while grep . conftest.defines >/dev/null
5844 do
5845   # Write a limited-size here document to $tmp/defines.sed.
5846   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5847   # Speed up: don't consider the non `#define' lines.
5848   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
5849   # Work around the forget-to-reset-the-flag bug.
5850   echo 't clr' >>$CONFIG_STATUS
5851   echo ': clr' >>$CONFIG_STATUS
5852   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5853   echo 'CEOF
5854   sed -f $tmp/defines.sed $tmp/in >$tmp/out
5855   rm -f $tmp/in
5856   mv $tmp/out $tmp/in
5857 ' >>$CONFIG_STATUS
5858   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5859   rm -f conftest.defines
5860   mv conftest.tail conftest.defines
5861 done
5862 rm -f conftest.defines
5863 echo '  fi # grep' >>$CONFIG_STATUS
5864 echo >>$CONFIG_STATUS
5865
5866 # Break up conftest.undefs because some shells have a limit on the size
5867 # of here documents, and old seds have small limits too (100 cmds).
5868 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5869 rm -f conftest.tail
5870 while grep . conftest.undefs >/dev/null
5871 do
5872   # Write a limited-size here document to $tmp/undefs.sed.
5873   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5874   # Speed up: don't consider the non `#undef'
5875   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
5876   # Work around the forget-to-reset-the-flag bug.
5877   echo 't clr' >>$CONFIG_STATUS
5878   echo ': clr' >>$CONFIG_STATUS
5879   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5880   echo 'CEOF
5881   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5882   rm -f $tmp/in
5883   mv $tmp/out $tmp/in
5884 ' >>$CONFIG_STATUS
5885   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5886   rm -f conftest.undefs
5887   mv conftest.tail conftest.undefs
5888 done
5889 rm -f conftest.undefs
5890
5891 cat >>$CONFIG_STATUS <<\_ACEOF
5892   # Let's still pretend it is `configure' which instantiates (i.e., don't
5893   # use $as_me), people would be surprised to read:
5894   #    /* config.h.  Generated by config.status.  */
5895   if test x"$ac_file" = x-; then
5896     echo "/* Generated by configure.  */" >$tmp/config.h
5897   else
5898     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
5899   fi
5900   cat $tmp/in >>$tmp/config.h
5901   rm -f $tmp/in
5902   if test x"$ac_file" != x-; then
5903     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5904       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5905 echo "$as_me: $ac_file is unchanged" >&6;}
5906     else
5907       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5908 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5909          X"$ac_file" : 'X\(//\)[^/]' \| \
5910          X"$ac_file" : 'X\(//\)$' \| \
5911          X"$ac_file" : 'X\(/\)' \| \
5912          .     : '\(.\)' 2>/dev/null ||
5913 echo X"$ac_file" |
5914     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5915           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5916           /^X\(\/\/\)$/{ s//\1/; q; }
5917           /^X\(\/\).*/{ s//\1/; q; }
5918           s/.*/./; q'`
5919       { if $as_mkdir_p; then
5920     mkdir -p "$ac_dir"
5921   else
5922     as_dir="$ac_dir"
5923     as_dirs=
5924     while test ! -d "$as_dir"; do
5925       as_dirs="$as_dir $as_dirs"
5926       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5928          X"$as_dir" : 'X\(//\)[^/]' \| \
5929          X"$as_dir" : 'X\(//\)$' \| \
5930          X"$as_dir" : 'X\(/\)' \| \
5931          .     : '\(.\)' 2>/dev/null ||
5932 echo X"$as_dir" |
5933     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5934           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5935           /^X\(\/\/\)$/{ s//\1/; q; }
5936           /^X\(\/\).*/{ s//\1/; q; }
5937           s/.*/./; q'`
5938     done
5939     test ! -n "$as_dirs" || mkdir $as_dirs
5940   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5941 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5942    { (exit 1); exit 1; }; }; }
5943
5944       rm -f $ac_file
5945       mv $tmp/config.h $ac_file
5946     fi
5947   else
5948     cat $tmp/config.h
5949     rm -f $tmp/config.h
5950   fi
5951 done
5952 _ACEOF
5953
5954 cat >>$CONFIG_STATUS <<\_ACEOF
5955
5956 { (exit 0); exit 0; }
5957 _ACEOF
5958 chmod +x $CONFIG_STATUS
5959 ac_clean_files=$ac_clean_files_save
5960
5961
5962 # configure is writing to config.log, and then calls config.status.
5963 # config.status does its own redirection, appending to config.log.
5964 # Unfortunately, on DOS this fails, as config.log is still kept open
5965 # by configure, so config.status won't be able to write to it; its
5966 # output is simply discarded.  So we exec the FD to /dev/null,
5967 # effectively closing config.log, so it can be properly (re)opened and
5968 # appended to by config.status.  When coming back to configure, we
5969 # need to make the FD available again.
5970 if test "$no_create" != yes; then
5971   ac_cs_success=:
5972   ac_config_status_args=
5973   test "$silent" = yes &&
5974     ac_config_status_args="$ac_config_status_args --quiet"
5975   exec 5>/dev/null
5976   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5977   exec 5>>config.log
5978   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5979   # would make configure fail if this is the last instruction.
5980   $ac_cs_success || { (exit 1); exit 1; }
5981 fi
5982