1d687acea82510fdd176fa56545cb5e0b785382a
[debian/cpmtools] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
16
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25   emulate sh
26   NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28   set -o posix
29 fi
30
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
33
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35   as_expr=expr
36 else
37   as_expr=false
38 fi
39
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43   # We could just check for DJGPP; but this test a) works b) is more generic
44   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45   if test -f conf$$.exe; then
46     # Don't use ln at all; we don't have any links
47     as_ln_s='cp -p'
48   else
49     as_ln_s='ln -s'
50   fi
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52   as_ln_s=ln
53 else
54   as_ln_s='cp -p'
55 fi
56 rm -f conf$$ conf$$.exe conf$$.file
57
58 as_executable_p="test -f"
59
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62   as_unset=unset
63 else
64   as_unset=false
65 fi
66
67 # NLS nuisances.
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
80 '
81 IFS="   $as_nl"
82
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85
86 # Name of the host.
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91 exec 6>&1
92
93 #
94 # Initializations.
95 #
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
101
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete.  It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
106
107 ac_unique_file="cpmfs.c"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
110 #include <stdio.h>
111 #if HAVE_SYS_TYPES_H
112 # include <sys/types.h>
113 #endif
114 #if HAVE_SYS_STAT_H
115 # include <sys/stat.h>
116 #endif
117 #if STDC_HEADERS
118 # include <stdlib.h>
119 # include <stddef.h>
120 #else
121 # if HAVE_STDLIB_H
122 #  include <stdlib.h>
123 # endif
124 #endif
125 #if HAVE_STRING_H
126 # if !STDC_HEADERS && HAVE_MEMORY_H
127 #  include <memory.h>
128 # endif
129 # include <string.h>
130 #endif
131 #if HAVE_STRINGS_H
132 # include <strings.h>
133 #endif
134 #if HAVE_INTTYPES_H
135 # include <inttypes.h>
136 #else
137 # if HAVE_STDINT_H
138 #  include <stdint.h>
139 # endif
140 #endif
141 #if HAVE_UNISTD_H
142 # include <unistd.h>
143 #endif"
144
145 # Initialize some variables set by options.
146 ac_init_help=
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
150 cache_file=/dev/null
151 exec_prefix=NONE
152 no_create=
153 no_recursion=
154 prefix=NONE
155 program_prefix=NONE
156 program_suffix=NONE
157 program_transform_name=s,x,x,
158 silent=
159 site=
160 srcdir=
161 verbose=
162 x_includes=NONE
163 x_libraries=NONE
164
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datadir='${prefix}/share'
174 sysconfdir='${prefix}/etc'
175 sharedstatedir='${prefix}/com'
176 localstatedir='${prefix}/var'
177 libdir='${exec_prefix}/lib'
178 includedir='${prefix}/include'
179 oldincludedir='/usr/include'
180 infodir='${prefix}/info'
181 mandir='${prefix}/man'
182
183 # Identity of this package.
184 PACKAGE_NAME=
185 PACKAGE_TARNAME=
186 PACKAGE_VERSION=
187 PACKAGE_STRING=
188 PACKAGE_BUGREPORT=
189
190 ac_prev=
191 for ac_option
192 do
193   # If the previous option needs an argument, assign it.
194   if test -n "$ac_prev"; then
195     eval "$ac_prev=\$ac_option"
196     ac_prev=
197     continue
198   fi
199
200   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
201
202   # Accept the important Cygnus configure options, so we can diagnose typos.
203
204   case $ac_option in
205
206   -bindir | --bindir | --bindi | --bind | --bin | --bi)
207     ac_prev=bindir ;;
208   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
209     bindir=$ac_optarg ;;
210
211   -build | --build | --buil | --bui | --bu)
212     ac_prev=build_alias ;;
213   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214     build_alias=$ac_optarg ;;
215
216   -cache-file | --cache-file | --cache-fil | --cache-fi \
217   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218     ac_prev=cache_file ;;
219   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221     cache_file=$ac_optarg ;;
222
223   --config-cache | -C)
224     cache_file=config.cache ;;
225
226   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227     ac_prev=datadir ;;
228   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229   | --da=*)
230     datadir=$ac_optarg ;;
231
232   -disable-* | --disable-*)
233     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234     # Reject names that are not valid shell variable names.
235     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237    { (exit 1); exit 1; }; }
238     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239     eval "enable_$ac_feature=no" ;;
240
241   -enable-* | --enable-*)
242     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243     # Reject names that are not valid shell variable names.
244     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246    { (exit 1); exit 1; }; }
247     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248     case $ac_option in
249       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
250       *) ac_optarg=yes ;;
251     esac
252     eval "enable_$ac_feature='$ac_optarg'" ;;
253
254   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256   | --exec | --exe | --ex)
257     ac_prev=exec_prefix ;;
258   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260   | --exec=* | --exe=* | --ex=*)
261     exec_prefix=$ac_optarg ;;
262
263   -gas | --gas | --ga | --g)
264     # Obsolete; use --with-gas.
265     with_gas=yes ;;
266
267   -help | --help | --hel | --he | -h)
268     ac_init_help=long ;;
269   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270     ac_init_help=recursive ;;
271   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272     ac_init_help=short ;;
273
274   -host | --host | --hos | --ho)
275     ac_prev=host_alias ;;
276   -host=* | --host=* | --hos=* | --ho=*)
277     host_alias=$ac_optarg ;;
278
279   -includedir | --includedir | --includedi | --included | --include \
280   | --includ | --inclu | --incl | --inc)
281     ac_prev=includedir ;;
282   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283   | --includ=* | --inclu=* | --incl=* | --inc=*)
284     includedir=$ac_optarg ;;
285
286   -infodir | --infodir | --infodi | --infod | --info | --inf)
287     ac_prev=infodir ;;
288   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289     infodir=$ac_optarg ;;
290
291   -libdir | --libdir | --libdi | --libd)
292     ac_prev=libdir ;;
293   -libdir=* | --libdir=* | --libdi=* | --libd=*)
294     libdir=$ac_optarg ;;
295
296   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297   | --libexe | --libex | --libe)
298     ac_prev=libexecdir ;;
299   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300   | --libexe=* | --libex=* | --libe=*)
301     libexecdir=$ac_optarg ;;
302
303   -localstatedir | --localstatedir | --localstatedi | --localstated \
304   | --localstate | --localstat | --localsta | --localst \
305   | --locals | --local | --loca | --loc | --lo)
306     ac_prev=localstatedir ;;
307   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310     localstatedir=$ac_optarg ;;
311
312   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313     ac_prev=mandir ;;
314   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315     mandir=$ac_optarg ;;
316
317   -nfp | --nfp | --nf)
318     # Obsolete; use --without-fp.
319     with_fp=no ;;
320
321   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322   | --no-cr | --no-c)
323     no_create=yes ;;
324
325   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327     no_recursion=yes ;;
328
329   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331   | --oldin | --oldi | --old | --ol | --o)
332     ac_prev=oldincludedir ;;
333   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336     oldincludedir=$ac_optarg ;;
337
338   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339     ac_prev=prefix ;;
340   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341     prefix=$ac_optarg ;;
342
343   -program-prefix | --program-prefix | --program-prefi | --program-pref \
344   | --program-pre | --program-pr | --program-p)
345     ac_prev=program_prefix ;;
346   -program-prefix=* | --program-prefix=* | --program-prefi=* \
347   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348     program_prefix=$ac_optarg ;;
349
350   -program-suffix | --program-suffix | --program-suffi | --program-suff \
351   | --program-suf | --program-su | --program-s)
352     ac_prev=program_suffix ;;
353   -program-suffix=* | --program-suffix=* | --program-suffi=* \
354   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355     program_suffix=$ac_optarg ;;
356
357   -program-transform-name | --program-transform-name \
358   | --program-transform-nam | --program-transform-na \
359   | --program-transform-n | --program-transform- \
360   | --program-transform | --program-transfor \
361   | --program-transfo | --program-transf \
362   | --program-trans | --program-tran \
363   | --progr-tra | --program-tr | --program-t)
364     ac_prev=program_transform_name ;;
365   -program-transform-name=* | --program-transform-name=* \
366   | --program-transform-nam=* | --program-transform-na=* \
367   | --program-transform-n=* | --program-transform-=* \
368   | --program-transform=* | --program-transfor=* \
369   | --program-transfo=* | --program-transf=* \
370   | --program-trans=* | --program-tran=* \
371   | --progr-tra=* | --program-tr=* | --program-t=*)
372     program_transform_name=$ac_optarg ;;
373
374   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375   | -silent | --silent | --silen | --sile | --sil)
376     silent=yes ;;
377
378   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379     ac_prev=sbindir ;;
380   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381   | --sbi=* | --sb=*)
382     sbindir=$ac_optarg ;;
383
384   -sharedstatedir | --sharedstatedir | --sharedstatedi \
385   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386   | --sharedst | --shareds | --shared | --share | --shar \
387   | --sha | --sh)
388     ac_prev=sharedstatedir ;;
389   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392   | --sha=* | --sh=*)
393     sharedstatedir=$ac_optarg ;;
394
395   -site | --site | --sit)
396     ac_prev=site ;;
397   -site=* | --site=* | --sit=*)
398     site=$ac_optarg ;;
399
400   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401     ac_prev=srcdir ;;
402   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403     srcdir=$ac_optarg ;;
404
405   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406   | --syscon | --sysco | --sysc | --sys | --sy)
407     ac_prev=sysconfdir ;;
408   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410     sysconfdir=$ac_optarg ;;
411
412   -target | --target | --targe | --targ | --tar | --ta | --t)
413     ac_prev=target_alias ;;
414   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415     target_alias=$ac_optarg ;;
416
417   -v | -verbose | --verbose | --verbos | --verbo | --verb)
418     verbose=yes ;;
419
420   -version | --version | --versio | --versi | --vers | -V)
421     ac_init_version=: ;;
422
423   -with-* | --with-*)
424     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425     # Reject names that are not valid shell variable names.
426     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427       { echo "$as_me: error: invalid package name: $ac_package" >&2
428    { (exit 1); exit 1; }; }
429     ac_package=`echo $ac_package| sed 's/-/_/g'`
430     case $ac_option in
431       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
432       *) ac_optarg=yes ;;
433     esac
434     eval "with_$ac_package='$ac_optarg'" ;;
435
436   -without-* | --without-*)
437     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438     # Reject names that are not valid shell variable names.
439     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440       { echo "$as_me: error: invalid package name: $ac_package" >&2
441    { (exit 1); exit 1; }; }
442     ac_package=`echo $ac_package | sed 's/-/_/g'`
443     eval "with_$ac_package=no" ;;
444
445   --x)
446     # Obsolete; use --with-x.
447     with_x=yes ;;
448
449   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450   | --x-incl | --x-inc | --x-in | --x-i)
451     ac_prev=x_includes ;;
452   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454     x_includes=$ac_optarg ;;
455
456   -x-libraries | --x-libraries | --x-librarie | --x-librari \
457   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458     ac_prev=x_libraries ;;
459   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461     x_libraries=$ac_optarg ;;
462
463   -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465    { (exit 1); exit 1; }; }
466     ;;
467
468   *=*)
469     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470     # Reject names that are not valid shell variable names.
471     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473    { (exit 1); exit 1; }; }
474     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475     eval "$ac_envvar='$ac_optarg'"
476     export $ac_envvar ;;
477
478   *)
479     # FIXME: should be removed in autoconf 3.0.
480     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
484     ;;
485
486   esac
487 done
488
489 if test -n "$ac_prev"; then
490   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491   { echo "$as_me: error: missing argument to $ac_option" >&2
492    { (exit 1); exit 1; }; }
493 fi
494
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
497 do
498   eval ac_val=$`echo $ac_var`
499   case $ac_val in
500     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502    { (exit 1); exit 1; }; };;
503   esac
504 done
505
506 # Be sure to have absolute paths.
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508               localstatedir libdir includedir oldincludedir infodir mandir
509 do
510   eval ac_val=$`echo $ac_var`
511   case $ac_val in
512     [\\/$]* | ?:[\\/]* ) ;;
513     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514    { (exit 1); exit 1; }; };;
515   esac
516 done
517
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
520 build=$build_alias
521 host=$host_alias
522 target=$target_alias
523
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x; then
526   if test "x$build_alias" = x; then
527     cross_compiling=maybe
528     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529     If a cross compiler is detected then cross compile mode will be used." >&2
530   elif test "x$build_alias" != "x$host_alias"; then
531     cross_compiling=yes
532   fi
533 fi
534
535 ac_tool_prefix=
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
537
538 test "$silent" = yes && exec 6>/dev/null
539
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542   ac_srcdir_defaulted=yes
543   # Try the directory containing this script, then its parent.
544   ac_prog=$0
545   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547   srcdir=$ac_confdir
548   if test ! -r $srcdir/$ac_unique_file; then
549     srcdir=..
550   fi
551 else
552   ac_srcdir_defaulted=no
553 fi
554 if test ! -r $srcdir/$ac_unique_file; then
555   if test "$ac_srcdir_defaulted" = yes; then
556     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557    { (exit 1); exit 1; }; }
558   else
559     { echo "$as_me: error: cannot find sources in $srcdir" >&2
560    { (exit 1); exit 1; }; }
561   fi
562 fi
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set}
565 ac_env_build_alias_value=$build_alias
566 ac_cv_env_build_alias_set=${build_alias+set}
567 ac_cv_env_build_alias_value=$build_alias
568 ac_env_host_alias_set=${host_alias+set}
569 ac_env_host_alias_value=$host_alias
570 ac_cv_env_host_alias_set=${host_alias+set}
571 ac_cv_env_host_alias_value=$host_alias
572 ac_env_target_alias_set=${target_alias+set}
573 ac_env_target_alias_value=$target_alias
574 ac_cv_env_target_alias_set=${target_alias+set}
575 ac_cv_env_target_alias_value=$target_alias
576 ac_env_CC_set=${CC+set}
577 ac_env_CC_value=$CC
578 ac_cv_env_CC_set=${CC+set}
579 ac_cv_env_CC_value=$CC
580 ac_env_CFLAGS_set=${CFLAGS+set}
581 ac_env_CFLAGS_value=$CFLAGS
582 ac_cv_env_CFLAGS_set=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value=$CFLAGS
584 ac_env_LDFLAGS_set=${LDFLAGS+set}
585 ac_env_LDFLAGS_value=$LDFLAGS
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value=$LDFLAGS
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 ac_env_CPP_set=${CPP+set}
593 ac_env_CPP_value=$CPP
594 ac_cv_env_CPP_set=${CPP+set}
595 ac_cv_env_CPP_value=$CPP
596
597 #
598 # Report the --help message.
599 #
600 if test "$ac_init_help" = "long"; then
601   # Omit some internal or obsolete options to make the list less imposing.
602   # This message is too long to be a string in the A/UX 3.1 sh.
603   cat <<EOF
604 \`configure' configures this package to adapt to many kinds of systems.
605
606 Usage: $0 [OPTION]... [VAR=VALUE]...
607
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE.  See below for descriptions of some of the useful variables.
610
611 Defaults for the options are specified in brackets.
612
613 Configuration:
614   -h, --help              display this help and exit
615       --help=short        display options specific to this package
616       --help=recursive    display the short help of all the included packages
617   -V, --version           display version information and exit
618   -q, --quiet, --silent   do not print \`checking...' messages
619       --cache-file=FILE   cache test results in FILE [disabled]
620   -C, --config-cache      alias for \`--cache-file=config.cache'
621   -n, --no-create         do not create output files
622       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
623
624 EOF
625
626   cat <<EOF
627 Installation directories:
628   --prefix=PREFIX         install architecture-independent files in PREFIX
629                           [$ac_default_prefix]
630   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
631                           [PREFIX]
632
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
637
638 For better control, use the options below.
639
640 Fine tuning of the installation directories:
641   --bindir=DIR           user executables [EPREFIX/bin]
642   --sbindir=DIR          system admin executables [EPREFIX/sbin]
643   --libexecdir=DIR       program executables [EPREFIX/libexec]
644   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
645   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
646   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
647   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
648   --libdir=DIR           object code libraries [EPREFIX/lib]
649   --includedir=DIR       C header files [PREFIX/include]
650   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
651   --infodir=DIR          info documentation [PREFIX/info]
652   --mandir=DIR           man documentation [PREFIX/man]
653 EOF
654
655   cat <<\EOF
656
657 System types:
658   --build=BUILD     configure for building on BUILD [guessed]
659   --host=HOST       build programs to run on HOST [BUILD]
660 EOF
661 fi
662
663 if test -n "$ac_init_help"; then
664
665   cat <<\EOF
666
667 Optional Packages:
668   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
669   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
670   --with-defformat        Specify default format (ibm-3740)
671   --with-libdsk           Specify path to libdsk library
672   --with-dmalloc          Specify path to dmalloc library
673
674 Some influential environment variables:
675   CC          C compiler command
676   CFLAGS      C compiler flags
677   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
678               nonstandard directory <lib dir>
679   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
680               headers in a nonstandard directory <include dir>
681   CPP         C preprocessor
682
683 Use these variables to override the choices made by `configure' or to help
684 it to find libraries and programs with nonstandard names/locations.
685
686 EOF
687 fi
688
689 if test "$ac_init_help" = "recursive"; then
690   # If there are subdirs, report their specific --help.
691   ac_popdir=`pwd`
692   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
693     cd $ac_subdir
694     # A "../" for each directory in /$ac_subdir.
695     ac_dots=`echo $ac_subdir |
696              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
697
698     case $srcdir in
699     .) # No --srcdir option.  We are building in place.
700       ac_sub_srcdir=$srcdir ;;
701     [\\/]* | ?:[\\/]* ) # Absolute path.
702       ac_sub_srcdir=$srcdir/$ac_subdir ;;
703     *) # Relative path.
704       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
705     esac
706
707     # Check for guested configure; otherwise get Cygnus style configure.
708     if test -f $ac_sub_srcdir/configure.gnu; then
709       echo
710       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
711     elif test -f $ac_sub_srcdir/configure; then
712       echo
713       $SHELL $ac_sub_srcdir/configure  --help=recursive
714     elif test -f $ac_sub_srcdir/configure.ac ||
715            test -f $ac_sub_srcdir/configure.in; then
716       echo
717       $ac_configure --help
718     else
719       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
720     fi
721     cd $ac_popdir
722   done
723 fi
724
725 test -n "$ac_init_help" && exit 0
726 if $ac_init_version; then
727   cat <<\EOF
728
729 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
730 Free Software Foundation, Inc.
731 This configure script is free software; the Free Software Foundation
732 gives unlimited permission to copy, distribute and modify it.
733 EOF
734   exit 0
735 fi
736 exec 5>config.log
737 cat >&5 <<EOF
738 This file contains any messages produced by compilers while
739 running configure, to aid debugging if configure makes a mistake.
740
741 It was created by $as_me, which was
742 generated by GNU Autoconf 2.52.  Invocation command line was
743
744   $ $0 $@
745
746 EOF
747 {
748 cat <<_ASUNAME
749 ## ---------- ##
750 ## Platform.  ##
751 ## ---------- ##
752
753 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
754 uname -m = `(uname -m) 2>/dev/null || echo unknown`
755 uname -r = `(uname -r) 2>/dev/null || echo unknown`
756 uname -s = `(uname -s) 2>/dev/null || echo unknown`
757 uname -v = `(uname -v) 2>/dev/null || echo unknown`
758
759 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
760 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
761
762 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
763 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
764 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
765 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
766 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
767 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
768 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
769
770 PATH = $PATH
771
772 _ASUNAME
773 } >&5
774
775 cat >&5 <<EOF
776 ## ------------ ##
777 ## Core tests.  ##
778 ## ------------ ##
779
780 EOF
781
782 # Keep a trace of the command line.
783 # Strip out --no-create and --no-recursion so they do not pile up.
784 # Also quote any args containing shell meta-characters.
785 ac_configure_args=
786 ac_sep=
787 for ac_arg
788 do
789   case $ac_arg in
790   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
791   | --no-cr | --no-c) ;;
792   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
793   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
794   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
795     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
796     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
797     ac_sep=" " ;;
798   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
799      ac_sep=" " ;;
800   esac
801   # Get rid of the leading space.
802 done
803
804 # When interrupted or exit'd, cleanup temporary files, and complete
805 # config.log.  We remove comments because anyway the quotes in there
806 # would cause problems or look ugly.
807 trap 'exit_status=$?
808   # Save into config.log some information that might help in debugging.
809   echo >&5
810   echo "## ----------------- ##" >&5
811   echo "## Cache variables.  ##" >&5
812   echo "## ----------------- ##" >&5
813   echo >&5
814   # The following way of writing the cache mishandles newlines in values,
815 {
816   (set) 2>&1 |
817     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
818     *ac_space=\ *)
819       sed -n \
820         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
821           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
822       ;;
823     *)
824       sed -n \
825         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
826       ;;
827     esac;
828 } >&5
829   sed "/^$/d" confdefs.h >conftest.log
830   if test -s conftest.log; then
831     echo >&5
832     echo "## ------------ ##" >&5
833     echo "## confdefs.h.  ##" >&5
834     echo "## ------------ ##" >&5
835     echo >&5
836     cat conftest.log >&5
837   fi
838   (echo; echo) >&5
839   test "$ac_signal" != 0 &&
840     echo "$as_me: caught signal $ac_signal" >&5
841   echo "$as_me: exit $exit_status" >&5
842   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
843     exit $exit_status
844      ' 0
845 for ac_signal in 1 2 13 15; do
846   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
847 done
848 ac_signal=0
849
850 # confdefs.h avoids OS command line length limits that DEFS can exceed.
851 rm -rf conftest* confdefs.h
852 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
853 echo >confdefs.h
854
855 # Let the site file select an alternate cache file if it wants to.
856 # Prefer explicitly selected file to automatically selected ones.
857 if test -z "$CONFIG_SITE"; then
858   if test "x$prefix" != xNONE; then
859     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
860   else
861     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
862   fi
863 fi
864 for ac_site_file in $CONFIG_SITE; do
865   if test -r "$ac_site_file"; then
866     { echo "$as_me:866: loading site script $ac_site_file" >&5
867 echo "$as_me: loading site script $ac_site_file" >&6;}
868     cat "$ac_site_file" >&5
869     . "$ac_site_file"
870   fi
871 done
872
873 if test -r "$cache_file"; then
874   # Some versions of bash will fail to source /dev/null (special
875   # files actually), so we avoid doing that.
876   if test -f "$cache_file"; then
877     { echo "$as_me:877: loading cache $cache_file" >&5
878 echo "$as_me: loading cache $cache_file" >&6;}
879     case $cache_file in
880       [\\/]* | ?:[\\/]* ) . $cache_file;;
881       *)                      . ./$cache_file;;
882     esac
883   fi
884 else
885   { echo "$as_me:885: creating cache $cache_file" >&5
886 echo "$as_me: creating cache $cache_file" >&6;}
887   >$cache_file
888 fi
889
890 # Check that the precious variables saved in the cache have kept the same
891 # value.
892 ac_cache_corrupted=false
893 for ac_var in `(set) 2>&1 |
894                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
895   eval ac_old_set=\$ac_cv_env_${ac_var}_set
896   eval ac_new_set=\$ac_env_${ac_var}_set
897   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
898   eval ac_new_val="\$ac_env_${ac_var}_value"
899   case $ac_old_set,$ac_new_set in
900     set,)
901       { echo "$as_me:901: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
902 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
903       ac_cache_corrupted=: ;;
904     ,set)
905       { echo "$as_me:905: error: \`$ac_var' was not set in the previous run" >&5
906 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
907       ac_cache_corrupted=: ;;
908     ,);;
909     *)
910       if test "x$ac_old_val" != "x$ac_new_val"; then
911         { echo "$as_me:911: error: \`$ac_var' has changed since the previous run:" >&5
912 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
913         { echo "$as_me:913:   former value:  $ac_old_val" >&5
914 echo "$as_me:   former value:  $ac_old_val" >&2;}
915         { echo "$as_me:915:   current value: $ac_new_val" >&5
916 echo "$as_me:   current value: $ac_new_val" >&2;}
917         ac_cache_corrupted=:
918       fi;;
919   esac
920   # Pass precious variables to config.status.  It doesn't matter if
921   # we pass some twice (in addition to the command line arguments).
922   if test "$ac_new_set" = set; then
923     case $ac_new_val in
924     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
925       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
926       ac_configure_args="$ac_configure_args '$ac_arg'"
927       ;;
928     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
929        ;;
930     esac
931   fi
932 done
933 if $ac_cache_corrupted; then
934   { echo "$as_me:934: error: changes in the environment can compromise the build" >&5
935 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
936   { { echo "$as_me:936: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
937 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
938    { (exit 1); exit 1; }; }
939 fi
940
941 ac_ext=c
942 ac_cpp='$CPP $CPPFLAGS'
943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
946
947 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
948   *c*,-n*) ECHO_N= ECHO_C='
949 ' ECHO_T='      ' ;;
950   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
951   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
952 esac
953 echo "#! $SHELL" >conftest.sh
954 echo  "exit 0"   >>conftest.sh
955 chmod +x conftest.sh
956 if { (echo "$as_me:956: PATH=\".;.\"; conftest.sh") >&5
957   (PATH=".;."; conftest.sh) 2>&5
958   ac_status=$?
959   echo "$as_me:959: \$? = $ac_status" >&5
960   (exit $ac_status); }; then
961   ac_path_separator=';'
962 else
963   ac_path_separator=:
964 fi
965 PATH_SEPARATOR="$ac_path_separator"
966 rm -f conftest.sh
967
968 ac_config_headers="$ac_config_headers config.h"
969
970 ac_aux_dir=
971 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
972   if test -f $ac_dir/install-sh; then
973     ac_aux_dir=$ac_dir
974     ac_install_sh="$ac_aux_dir/install-sh -c"
975     break
976   elif test -f $ac_dir/install.sh; then
977     ac_aux_dir=$ac_dir
978     ac_install_sh="$ac_aux_dir/install.sh -c"
979     break
980   elif test -f $ac_dir/shtool; then
981     ac_aux_dir=$ac_dir
982     ac_install_sh="$ac_aux_dir/shtool install -c"
983     break
984   fi
985 done
986 if test -z "$ac_aux_dir"; then
987   { { echo "$as_me:987: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
988 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
989    { (exit 1); exit 1; }; }
990 fi
991 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
992 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
993 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
994
995 # Make sure we can run config.sub.
996 $ac_config_sub sun4 >/dev/null 2>&1 ||
997   { { echo "$as_me:997: error: cannot run $ac_config_sub" >&5
998 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
999    { (exit 1); exit 1; }; }
1000
1001 echo "$as_me:1001: checking build system type" >&5
1002 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1003 if test "${ac_cv_build+set}" = set; then
1004   echo $ECHO_N "(cached) $ECHO_C" >&6
1005 else
1006   ac_cv_build_alias=$build_alias
1007 test -z "$ac_cv_build_alias" &&
1008   ac_cv_build_alias=`$ac_config_guess`
1009 test -z "$ac_cv_build_alias" &&
1010   { { echo "$as_me:1010: error: cannot guess build type; you must specify one" >&5
1011 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1012    { (exit 1); exit 1; }; }
1013 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1014   { { echo "$as_me:1014: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1015 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1016    { (exit 1); exit 1; }; }
1017
1018 fi
1019 echo "$as_me:1019: result: $ac_cv_build" >&5
1020 echo "${ECHO_T}$ac_cv_build" >&6
1021 build=$ac_cv_build
1022 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1023 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1024 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1025
1026 echo "$as_me:1026: checking host system type" >&5
1027 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1028 if test "${ac_cv_host+set}" = set; then
1029   echo $ECHO_N "(cached) $ECHO_C" >&6
1030 else
1031   ac_cv_host_alias=$host_alias
1032 test -z "$ac_cv_host_alias" &&
1033   ac_cv_host_alias=$ac_cv_build_alias
1034 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1035   { { echo "$as_me:1035: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1036 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1037    { (exit 1); exit 1; }; }
1038
1039 fi
1040 echo "$as_me:1040: result: $ac_cv_host" >&5
1041 echo "${ECHO_T}$ac_cv_host" >&6
1042 host=$ac_cv_host
1043 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1044 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1045 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1046
1047 VERSION=2.1
1048 UPDATED='April 21, 2002'
1049
1050 DEVICE="posix"
1051
1052 if test "$prefix" = NONE
1053 then
1054   case $host in
1055     *-linux-*)
1056       PIPE="-pipe "
1057     ;;
1058   esac
1059   case $host in
1060     *-netbsd*)
1061       PIPE="-pipe "
1062     ;;
1063   esac
1064 fi
1065
1066 ac_ext=c
1067 ac_cpp='$CPP $CPPFLAGS'
1068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1071 if test -n "$ac_tool_prefix"; then
1072   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1073 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1074 echo "$as_me:1074: checking for $ac_word" >&5
1075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1076 if test "${ac_cv_prog_CC+set}" = set; then
1077   echo $ECHO_N "(cached) $ECHO_C" >&6
1078 else
1079   if test -n "$CC"; then
1080   ac_cv_prog_CC="$CC" # Let the user override the test.
1081 else
1082   ac_save_IFS=$IFS; IFS=$ac_path_separator
1083 ac_dummy="$PATH"
1084 for ac_dir in $ac_dummy; do
1085   IFS=$ac_save_IFS
1086   test -z "$ac_dir" && ac_dir=.
1087   $as_executable_p "$ac_dir/$ac_word" || continue
1088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1089 echo "$as_me:1089: found $ac_dir/$ac_word" >&5
1090 break
1091 done
1092
1093 fi
1094 fi
1095 CC=$ac_cv_prog_CC
1096 if test -n "$CC"; then
1097   echo "$as_me:1097: result: $CC" >&5
1098 echo "${ECHO_T}$CC" >&6
1099 else
1100   echo "$as_me:1100: result: no" >&5
1101 echo "${ECHO_T}no" >&6
1102 fi
1103
1104 fi
1105 if test -z "$ac_cv_prog_CC"; then
1106   ac_ct_CC=$CC
1107   # Extract the first word of "gcc", so it can be a program name with args.
1108 set dummy gcc; ac_word=$2
1109 echo "$as_me:1109: checking for $ac_word" >&5
1110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1111 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1112   echo $ECHO_N "(cached) $ECHO_C" >&6
1113 else
1114   if test -n "$ac_ct_CC"; then
1115   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1116 else
1117   ac_save_IFS=$IFS; IFS=$ac_path_separator
1118 ac_dummy="$PATH"
1119 for ac_dir in $ac_dummy; do
1120   IFS=$ac_save_IFS
1121   test -z "$ac_dir" && ac_dir=.
1122   $as_executable_p "$ac_dir/$ac_word" || continue
1123 ac_cv_prog_ac_ct_CC="gcc"
1124 echo "$as_me:1124: found $ac_dir/$ac_word" >&5
1125 break
1126 done
1127
1128 fi
1129 fi
1130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1131 if test -n "$ac_ct_CC"; then
1132   echo "$as_me:1132: result: $ac_ct_CC" >&5
1133 echo "${ECHO_T}$ac_ct_CC" >&6
1134 else
1135   echo "$as_me:1135: result: no" >&5
1136 echo "${ECHO_T}no" >&6
1137 fi
1138
1139   CC=$ac_ct_CC
1140 else
1141   CC="$ac_cv_prog_CC"
1142 fi
1143
1144 if test -z "$CC"; then
1145   if test -n "$ac_tool_prefix"; then
1146   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1147 set dummy ${ac_tool_prefix}cc; ac_word=$2
1148 echo "$as_me:1148: checking for $ac_word" >&5
1149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1150 if test "${ac_cv_prog_CC+set}" = set; then
1151   echo $ECHO_N "(cached) $ECHO_C" >&6
1152 else
1153   if test -n "$CC"; then
1154   ac_cv_prog_CC="$CC" # Let the user override the test.
1155 else
1156   ac_save_IFS=$IFS; IFS=$ac_path_separator
1157 ac_dummy="$PATH"
1158 for ac_dir in $ac_dummy; do
1159   IFS=$ac_save_IFS
1160   test -z "$ac_dir" && ac_dir=.
1161   $as_executable_p "$ac_dir/$ac_word" || continue
1162 ac_cv_prog_CC="${ac_tool_prefix}cc"
1163 echo "$as_me:1163: found $ac_dir/$ac_word" >&5
1164 break
1165 done
1166
1167 fi
1168 fi
1169 CC=$ac_cv_prog_CC
1170 if test -n "$CC"; then
1171   echo "$as_me:1171: result: $CC" >&5
1172 echo "${ECHO_T}$CC" >&6
1173 else
1174   echo "$as_me:1174: result: no" >&5
1175 echo "${ECHO_T}no" >&6
1176 fi
1177
1178 fi
1179 if test -z "$ac_cv_prog_CC"; then
1180   ac_ct_CC=$CC
1181   # Extract the first word of "cc", so it can be a program name with args.
1182 set dummy cc; ac_word=$2
1183 echo "$as_me:1183: checking for $ac_word" >&5
1184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1186   echo $ECHO_N "(cached) $ECHO_C" >&6
1187 else
1188   if test -n "$ac_ct_CC"; then
1189   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1190 else
1191   ac_save_IFS=$IFS; IFS=$ac_path_separator
1192 ac_dummy="$PATH"
1193 for ac_dir in $ac_dummy; do
1194   IFS=$ac_save_IFS
1195   test -z "$ac_dir" && ac_dir=.
1196   $as_executable_p "$ac_dir/$ac_word" || continue
1197 ac_cv_prog_ac_ct_CC="cc"
1198 echo "$as_me:1198: found $ac_dir/$ac_word" >&5
1199 break
1200 done
1201
1202 fi
1203 fi
1204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1205 if test -n "$ac_ct_CC"; then
1206   echo "$as_me:1206: result: $ac_ct_CC" >&5
1207 echo "${ECHO_T}$ac_ct_CC" >&6
1208 else
1209   echo "$as_me:1209: result: no" >&5
1210 echo "${ECHO_T}no" >&6
1211 fi
1212
1213   CC=$ac_ct_CC
1214 else
1215   CC="$ac_cv_prog_CC"
1216 fi
1217
1218 fi
1219 if test -z "$CC"; then
1220   # Extract the first word of "cc", so it can be a program name with args.
1221 set dummy cc; ac_word=$2
1222 echo "$as_me:1222: checking for $ac_word" >&5
1223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1224 if test "${ac_cv_prog_CC+set}" = set; then
1225   echo $ECHO_N "(cached) $ECHO_C" >&6
1226 else
1227   if test -n "$CC"; then
1228   ac_cv_prog_CC="$CC" # Let the user override the test.
1229 else
1230   ac_prog_rejected=no
1231   ac_save_IFS=$IFS; IFS=$ac_path_separator
1232 ac_dummy="$PATH"
1233 for ac_dir in $ac_dummy; do
1234   IFS=$ac_save_IFS
1235   test -z "$ac_dir" && ac_dir=.
1236   $as_executable_p "$ac_dir/$ac_word" || continue
1237 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1238   ac_prog_rejected=yes
1239   continue
1240 fi
1241 ac_cv_prog_CC="cc"
1242 echo "$as_me:1242: found $ac_dir/$ac_word" >&5
1243 break
1244 done
1245
1246 if test $ac_prog_rejected = yes; then
1247   # We found a bogon in the path, so make sure we never use it.
1248   set dummy $ac_cv_prog_CC
1249   shift
1250   if test $# != 0; then
1251     # We chose a different compiler from the bogus one.
1252     # However, it has the same basename, so the bogon will be chosen
1253     # first if we set CC to just the basename; use the full file name.
1254     shift
1255     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1256     shift
1257     ac_cv_prog_CC="$@"
1258   fi
1259 fi
1260 fi
1261 fi
1262 CC=$ac_cv_prog_CC
1263 if test -n "$CC"; then
1264   echo "$as_me:1264: result: $CC" >&5
1265 echo "${ECHO_T}$CC" >&6
1266 else
1267   echo "$as_me:1267: result: no" >&5
1268 echo "${ECHO_T}no" >&6
1269 fi
1270
1271 fi
1272 if test -z "$CC"; then
1273   if test -n "$ac_tool_prefix"; then
1274   for ac_prog in cl
1275   do
1276     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1277 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1278 echo "$as_me:1278: checking for $ac_word" >&5
1279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1280 if test "${ac_cv_prog_CC+set}" = set; then
1281   echo $ECHO_N "(cached) $ECHO_C" >&6
1282 else
1283   if test -n "$CC"; then
1284   ac_cv_prog_CC="$CC" # Let the user override the test.
1285 else
1286   ac_save_IFS=$IFS; IFS=$ac_path_separator
1287 ac_dummy="$PATH"
1288 for ac_dir in $ac_dummy; do
1289   IFS=$ac_save_IFS
1290   test -z "$ac_dir" && ac_dir=.
1291   $as_executable_p "$ac_dir/$ac_word" || continue
1292 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1293 echo "$as_me:1293: found $ac_dir/$ac_word" >&5
1294 break
1295 done
1296
1297 fi
1298 fi
1299 CC=$ac_cv_prog_CC
1300 if test -n "$CC"; then
1301   echo "$as_me:1301: result: $CC" >&5
1302 echo "${ECHO_T}$CC" >&6
1303 else
1304   echo "$as_me:1304: result: no" >&5
1305 echo "${ECHO_T}no" >&6
1306 fi
1307
1308     test -n "$CC" && break
1309   done
1310 fi
1311 if test -z "$CC"; then
1312   ac_ct_CC=$CC
1313   for ac_prog in cl
1314 do
1315   # Extract the first word of "$ac_prog", so it can be a program name with args.
1316 set dummy $ac_prog; ac_word=$2
1317 echo "$as_me:1317: checking for $ac_word" >&5
1318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1319 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1320   echo $ECHO_N "(cached) $ECHO_C" >&6
1321 else
1322   if test -n "$ac_ct_CC"; then
1323   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1324 else
1325   ac_save_IFS=$IFS; IFS=$ac_path_separator
1326 ac_dummy="$PATH"
1327 for ac_dir in $ac_dummy; do
1328   IFS=$ac_save_IFS
1329   test -z "$ac_dir" && ac_dir=.
1330   $as_executable_p "$ac_dir/$ac_word" || continue
1331 ac_cv_prog_ac_ct_CC="$ac_prog"
1332 echo "$as_me:1332: found $ac_dir/$ac_word" >&5
1333 break
1334 done
1335
1336 fi
1337 fi
1338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1339 if test -n "$ac_ct_CC"; then
1340   echo "$as_me:1340: result: $ac_ct_CC" >&5
1341 echo "${ECHO_T}$ac_ct_CC" >&6
1342 else
1343   echo "$as_me:1343: result: no" >&5
1344 echo "${ECHO_T}no" >&6
1345 fi
1346
1347   test -n "$ac_ct_CC" && break
1348 done
1349
1350   CC=$ac_ct_CC
1351 fi
1352
1353 fi
1354
1355 test -z "$CC" && { { echo "$as_me:1355: error: no acceptable cc found in \$PATH" >&5
1356 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1357    { (exit 1); exit 1; }; }
1358
1359 # Provide some information about the compiler.
1360 echo "$as_me:1360:" \
1361      "checking for C compiler version" >&5
1362 ac_compiler=`set X $ac_compile; echo $2`
1363 { (eval echo "$as_me:1363: \"$ac_compiler --version </dev/null >&5\"") >&5
1364   (eval $ac_compiler --version </dev/null >&5) 2>&5
1365   ac_status=$?
1366   echo "$as_me:1366: \$? = $ac_status" >&5
1367   (exit $ac_status); }
1368 { (eval echo "$as_me:1368: \"$ac_compiler -v </dev/null >&5\"") >&5
1369   (eval $ac_compiler -v </dev/null >&5) 2>&5
1370   ac_status=$?
1371   echo "$as_me:1371: \$? = $ac_status" >&5
1372   (exit $ac_status); }
1373 { (eval echo "$as_me:1373: \"$ac_compiler -V </dev/null >&5\"") >&5
1374   (eval $ac_compiler -V </dev/null >&5) 2>&5
1375   ac_status=$?
1376   echo "$as_me:1376: \$? = $ac_status" >&5
1377   (exit $ac_status); }
1378
1379 cat >conftest.$ac_ext <<_ACEOF
1380 #line 1380 "configure"
1381 #include "confdefs.h"
1382
1383 int
1384 main ()
1385 {
1386
1387   ;
1388   return 0;
1389 }
1390 _ACEOF
1391 ac_clean_files_save=$ac_clean_files
1392 ac_clean_files="$ac_clean_files a.out a.exe"
1393 # Try to create an executable without -o first, disregard a.out.
1394 # It will help us diagnose broken compilers, and finding out an intuition
1395 # of exeext.
1396 echo "$as_me:1396: checking for C compiler default output" >&5
1397 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1398 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1399 if { (eval echo "$as_me:1399: \"$ac_link_default\"") >&5
1400   (eval $ac_link_default) 2>&5
1401   ac_status=$?
1402   echo "$as_me:1402: \$? = $ac_status" >&5
1403   (exit $ac_status); }; then
1404   # Find the output, starting from the most likely.  This scheme is
1405 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1406 # resort.
1407 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1408                 ls a.out conftest 2>/dev/null;
1409                 ls a.* conftest.* 2>/dev/null`; do
1410   case $ac_file in
1411     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1412     a.out ) # We found the default executable, but exeext='' is most
1413             # certainly right.
1414             break;;
1415     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1416           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1417           export ac_cv_exeext
1418           break;;
1419     * ) break;;
1420   esac
1421 done
1422 else
1423   echo "$as_me: failed program was:" >&5
1424 cat conftest.$ac_ext >&5
1425 { { echo "$as_me:1425: error: C compiler cannot create executables" >&5
1426 echo "$as_me: error: C compiler cannot create executables" >&2;}
1427    { (exit 77); exit 77; }; }
1428 fi
1429
1430 ac_exeext=$ac_cv_exeext
1431 echo "$as_me:1431: result: $ac_file" >&5
1432 echo "${ECHO_T}$ac_file" >&6
1433
1434 # Check the compiler produces executables we can run.  If not, either
1435 # the compiler is broken, or we cross compile.
1436 echo "$as_me:1436: checking whether the C compiler works" >&5
1437 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1438 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1439 # If not cross compiling, check that we can run a simple program.
1440 if test "$cross_compiling" != yes; then
1441   if { ac_try='./$ac_file'
1442   { (eval echo "$as_me:1442: \"$ac_try\"") >&5
1443   (eval $ac_try) 2>&5
1444   ac_status=$?
1445   echo "$as_me:1445: \$? = $ac_status" >&5
1446   (exit $ac_status); }; }; then
1447     cross_compiling=no
1448   else
1449     if test "$cross_compiling" = maybe; then
1450         cross_compiling=yes
1451     else
1452         { { echo "$as_me:1452: error: cannot run C compiled programs.
1453 If you meant to cross compile, use \`--host'." >&5
1454 echo "$as_me: error: cannot run C compiled programs.
1455 If you meant to cross compile, use \`--host'." >&2;}
1456    { (exit 1); exit 1; }; }
1457     fi
1458   fi
1459 fi
1460 echo "$as_me:1460: result: yes" >&5
1461 echo "${ECHO_T}yes" >&6
1462
1463 rm -f a.out a.exe conftest$ac_cv_exeext
1464 ac_clean_files=$ac_clean_files_save
1465 # Check the compiler produces executables we can run.  If not, either
1466 # the compiler is broken, or we cross compile.
1467 echo "$as_me:1467: checking whether we are cross compiling" >&5
1468 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1469 echo "$as_me:1469: result: $cross_compiling" >&5
1470 echo "${ECHO_T}$cross_compiling" >&6
1471
1472 echo "$as_me:1472: checking for executable suffix" >&5
1473 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1474 if { (eval echo "$as_me:1474: \"$ac_link\"") >&5
1475   (eval $ac_link) 2>&5
1476   ac_status=$?
1477   echo "$as_me:1477: \$? = $ac_status" >&5
1478   (exit $ac_status); }; then
1479   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1480 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1481 # work properly (i.e., refer to `conftest.exe'), while it won't with
1482 # `rm'.
1483 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1484   case $ac_file in
1485     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1486     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1487           export ac_cv_exeext
1488           break;;
1489     * ) break;;
1490   esac
1491 done
1492 else
1493   { { echo "$as_me:1493: error: cannot compute EXEEXT: cannot compile and link" >&5
1494 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1495    { (exit 1); exit 1; }; }
1496 fi
1497
1498 rm -f conftest$ac_cv_exeext
1499 echo "$as_me:1499: result: $ac_cv_exeext" >&5
1500 echo "${ECHO_T}$ac_cv_exeext" >&6
1501
1502 rm -f conftest.$ac_ext
1503 EXEEXT=$ac_cv_exeext
1504 ac_exeext=$EXEEXT
1505 echo "$as_me:1505: checking for object suffix" >&5
1506 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1507 if test "${ac_cv_objext+set}" = set; then
1508   echo $ECHO_N "(cached) $ECHO_C" >&6
1509 else
1510   cat >conftest.$ac_ext <<_ACEOF
1511 #line 1511 "configure"
1512 #include "confdefs.h"
1513
1514 int
1515 main ()
1516 {
1517
1518   ;
1519   return 0;
1520 }
1521 _ACEOF
1522 rm -f conftest.o conftest.obj
1523 if { (eval echo "$as_me:1523: \"$ac_compile\"") >&5
1524   (eval $ac_compile) 2>&5
1525   ac_status=$?
1526   echo "$as_me:1526: \$? = $ac_status" >&5
1527   (exit $ac_status); }; then
1528   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1529   case $ac_file in
1530     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1531     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1532        break;;
1533   esac
1534 done
1535 else
1536   echo "$as_me: failed program was:" >&5
1537 cat conftest.$ac_ext >&5
1538 { { echo "$as_me:1538: error: cannot compute OBJEXT: cannot compile" >&5
1539 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1540    { (exit 1); exit 1; }; }
1541 fi
1542
1543 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1544 fi
1545 echo "$as_me:1545: result: $ac_cv_objext" >&5
1546 echo "${ECHO_T}$ac_cv_objext" >&6
1547 OBJEXT=$ac_cv_objext
1548 ac_objext=$OBJEXT
1549 echo "$as_me:1549: checking whether we are using the GNU C compiler" >&5
1550 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1551 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1552   echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554   cat >conftest.$ac_ext <<_ACEOF
1555 #line 1555 "configure"
1556 #include "confdefs.h"
1557
1558 int
1559 main ()
1560 {
1561 #ifndef __GNUC__
1562        choke me
1563 #endif
1564
1565   ;
1566   return 0;
1567 }
1568 _ACEOF
1569 rm -f conftest.$ac_objext
1570 if { (eval echo "$as_me:1570: \"$ac_compile\"") >&5
1571   (eval $ac_compile) 2>&5
1572   ac_status=$?
1573   echo "$as_me:1573: \$? = $ac_status" >&5
1574   (exit $ac_status); } &&
1575          { ac_try='test -s conftest.$ac_objext'
1576   { (eval echo "$as_me:1576: \"$ac_try\"") >&5
1577   (eval $ac_try) 2>&5
1578   ac_status=$?
1579   echo "$as_me:1579: \$? = $ac_status" >&5
1580   (exit $ac_status); }; }; then
1581   ac_compiler_gnu=yes
1582 else
1583   echo "$as_me: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1585 ac_compiler_gnu=no
1586 fi
1587 rm -f conftest.$ac_objext conftest.$ac_ext
1588 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1589
1590 fi
1591 echo "$as_me:1591: result: $ac_cv_c_compiler_gnu" >&5
1592 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1593 GCC=`test $ac_compiler_gnu = yes && echo yes`
1594 ac_test_CFLAGS=${CFLAGS+set}
1595 ac_save_CFLAGS=$CFLAGS
1596 CFLAGS="-g"
1597 echo "$as_me:1597: checking whether $CC accepts -g" >&5
1598 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1599 if test "${ac_cv_prog_cc_g+set}" = set; then
1600   echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602   cat >conftest.$ac_ext <<_ACEOF
1603 #line 1603 "configure"
1604 #include "confdefs.h"
1605
1606 int
1607 main ()
1608 {
1609
1610   ;
1611   return 0;
1612 }
1613 _ACEOF
1614 rm -f conftest.$ac_objext
1615 if { (eval echo "$as_me:1615: \"$ac_compile\"") >&5
1616   (eval $ac_compile) 2>&5
1617   ac_status=$?
1618   echo "$as_me:1618: \$? = $ac_status" >&5
1619   (exit $ac_status); } &&
1620          { ac_try='test -s conftest.$ac_objext'
1621   { (eval echo "$as_me:1621: \"$ac_try\"") >&5
1622   (eval $ac_try) 2>&5
1623   ac_status=$?
1624   echo "$as_me:1624: \$? = $ac_status" >&5
1625   (exit $ac_status); }; }; then
1626   ac_cv_prog_cc_g=yes
1627 else
1628   echo "$as_me: failed program was:" >&5
1629 cat conftest.$ac_ext >&5
1630 ac_cv_prog_cc_g=no
1631 fi
1632 rm -f conftest.$ac_objext conftest.$ac_ext
1633 fi
1634 echo "$as_me:1634: result: $ac_cv_prog_cc_g" >&5
1635 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1636 if test "$ac_test_CFLAGS" = set; then
1637   CFLAGS=$ac_save_CFLAGS
1638 elif test $ac_cv_prog_cc_g = yes; then
1639   if test "$GCC" = yes; then
1640     CFLAGS="-g -O2"
1641   else
1642     CFLAGS="-g"
1643   fi
1644 else
1645   if test "$GCC" = yes; then
1646     CFLAGS="-O2"
1647   else
1648     CFLAGS=
1649   fi
1650 fi
1651 # Some people use a C++ compiler to compile C.  Since we use `exit',
1652 # in C++ we need to declare it.  In case someone uses the same compiler
1653 # for both compiling C and C++ we need to have the C++ compiler decide
1654 # the declaration of exit, since it's the most demanding environment.
1655 cat >conftest.$ac_ext <<_ACEOF
1656 #ifndef __cplusplus
1657   choke me
1658 #endif
1659 _ACEOF
1660 rm -f conftest.$ac_objext
1661 if { (eval echo "$as_me:1661: \"$ac_compile\"") >&5
1662   (eval $ac_compile) 2>&5
1663   ac_status=$?
1664   echo "$as_me:1664: \$? = $ac_status" >&5
1665   (exit $ac_status); } &&
1666          { ac_try='test -s conftest.$ac_objext'
1667   { (eval echo "$as_me:1667: \"$ac_try\"") >&5
1668   (eval $ac_try) 2>&5
1669   ac_status=$?
1670   echo "$as_me:1670: \$? = $ac_status" >&5
1671   (exit $ac_status); }; }; then
1672   for ac_declaration in \
1673    ''\
1674    '#include <stdlib.h>' \
1675    'extern "C" void std::exit (int) throw (); using std::exit;' \
1676    'extern "C" void std::exit (int); using std::exit;' \
1677    'extern "C" void exit (int) throw ();' \
1678    'extern "C" void exit (int);' \
1679    'void exit (int);'
1680 do
1681   cat >conftest.$ac_ext <<_ACEOF
1682 #line 1682 "configure"
1683 #include "confdefs.h"
1684 #include <stdlib.h>
1685 $ac_declaration
1686 int
1687 main ()
1688 {
1689 exit (42);
1690   ;
1691   return 0;
1692 }
1693 _ACEOF
1694 rm -f conftest.$ac_objext
1695 if { (eval echo "$as_me:1695: \"$ac_compile\"") >&5
1696   (eval $ac_compile) 2>&5
1697   ac_status=$?
1698   echo "$as_me:1698: \$? = $ac_status" >&5
1699   (exit $ac_status); } &&
1700          { ac_try='test -s conftest.$ac_objext'
1701   { (eval echo "$as_me:1701: \"$ac_try\"") >&5
1702   (eval $ac_try) 2>&5
1703   ac_status=$?
1704   echo "$as_me:1704: \$? = $ac_status" >&5
1705   (exit $ac_status); }; }; then
1706   :
1707 else
1708   echo "$as_me: failed program was:" >&5
1709 cat conftest.$ac_ext >&5
1710 continue
1711 fi
1712 rm -f conftest.$ac_objext conftest.$ac_ext
1713   cat >conftest.$ac_ext <<_ACEOF
1714 #line 1714 "configure"
1715 #include "confdefs.h"
1716 $ac_declaration
1717 int
1718 main ()
1719 {
1720 exit (42);
1721   ;
1722   return 0;
1723 }
1724 _ACEOF
1725 rm -f conftest.$ac_objext
1726 if { (eval echo "$as_me:1726: \"$ac_compile\"") >&5
1727   (eval $ac_compile) 2>&5
1728   ac_status=$?
1729   echo "$as_me:1729: \$? = $ac_status" >&5
1730   (exit $ac_status); } &&
1731          { ac_try='test -s conftest.$ac_objext'
1732   { (eval echo "$as_me:1732: \"$ac_try\"") >&5
1733   (eval $ac_try) 2>&5
1734   ac_status=$?
1735   echo "$as_me:1735: \$? = $ac_status" >&5
1736   (exit $ac_status); }; }; then
1737   break
1738 else
1739   echo "$as_me: failed program was:" >&5
1740 cat conftest.$ac_ext >&5
1741 fi
1742 rm -f conftest.$ac_objext conftest.$ac_ext
1743 done
1744 rm -f conftest*
1745 if test -n "$ac_declaration"; then
1746   echo '#ifdef __cplusplus' >>confdefs.h
1747   echo $ac_declaration      >>confdefs.h
1748   echo '#endif'             >>confdefs.h
1749 fi
1750
1751 else
1752   echo "$as_me: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1754 fi
1755 rm -f conftest.$ac_objext conftest.$ac_ext
1756 ac_ext=c
1757 ac_cpp='$CPP $CPPFLAGS'
1758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1761
1762 # Find a good install program.  We prefer a C program (faster),
1763 # so one script is as good as another.  But avoid the broken or
1764 # incompatible versions:
1765 # SysV /etc/install, /usr/sbin/install
1766 # SunOS /usr/etc/install
1767 # IRIX /sbin/install
1768 # AIX /bin/install
1769 # AmigaOS /C/install, which installs bootblocks on floppy discs
1770 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1771 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1772 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1773 # ./install, which can be erroneously created by make from ./install.sh.
1774 echo "$as_me:1774: checking for a BSD compatible install" >&5
1775 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1776 if test -z "$INSTALL"; then
1777 if test "${ac_cv_path_install+set}" = set; then
1778   echo $ECHO_N "(cached) $ECHO_C" >&6
1779 else
1780     ac_save_IFS=$IFS; IFS=$ac_path_separator
1781   for ac_dir in $PATH; do
1782     IFS=$ac_save_IFS
1783     # Account for people who put trailing slashes in PATH elements.
1784     case $ac_dir/ in
1785     / | ./ | .// | /cC/* \
1786     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1787     | /usr/ucb/* ) ;;
1788     *)
1789       # OSF1 and SCO ODT 3.0 have their own names for install.
1790       # Don't use installbsd from OSF since it installs stuff as root
1791       # by default.
1792       for ac_prog in ginstall scoinst install; do
1793         if $as_executable_p "$ac_dir/$ac_prog"; then
1794           if test $ac_prog = install &&
1795             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1796             # AIX install.  It has an incompatible calling convention.
1797             :
1798           elif test $ac_prog = install &&
1799             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1800             # program-specific install script used by HP pwplus--don't use.
1801             :
1802           else
1803             ac_cv_path_install="$ac_dir/$ac_prog -c"
1804             break 2
1805           fi
1806         fi
1807       done
1808       ;;
1809     esac
1810   done
1811
1812 fi
1813   if test "${ac_cv_path_install+set}" = set; then
1814     INSTALL=$ac_cv_path_install
1815   else
1816     # As a last resort, use the slow shell script.  We don't cache a
1817     # path for INSTALL within a source directory, because that will
1818     # break other packages using the cache if that directory is
1819     # removed, or if the path is relative.
1820     INSTALL=$ac_install_sh
1821   fi
1822 fi
1823 echo "$as_me:1823: result: $INSTALL" >&5
1824 echo "${ECHO_T}$INSTALL" >&6
1825
1826 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1827 # It thinks the first close brace ends the variable substitution.
1828 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1829
1830 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1831
1832 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1833
1834 ac_ext=c
1835 ac_cpp='$CPP $CPPFLAGS'
1836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1839 echo "$as_me:1839: checking how to run the C preprocessor" >&5
1840 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1841 # On Suns, sometimes $CPP names a directory.
1842 if test -n "$CPP" && test -d "$CPP"; then
1843   CPP=
1844 fi
1845 if test -z "$CPP"; then
1846   if test "${ac_cv_prog_CPP+set}" = set; then
1847   echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849       # Double quotes because CPP needs to be expanded
1850     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1851     do
1852       ac_preproc_ok=false
1853 for ac_c_preproc_warn_flag in '' yes
1854 do
1855   # Use a header file that comes with gcc, so configuring glibc
1856   # with a fresh cross-compiler works.
1857   # On the NeXT, cc -E runs the code through the compiler's parser,
1858   # not just through cpp. "Syntax error" is here to catch this case.
1859   cat >conftest.$ac_ext <<_ACEOF
1860 #line 1860 "configure"
1861 #include "confdefs.h"
1862 #include <assert.h>
1863                      Syntax error
1864 _ACEOF
1865 if { (eval echo "$as_me:1865: \"$ac_cpp conftest.$ac_ext\"") >&5
1866   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1867   ac_status=$?
1868   egrep -v '^ *\+' conftest.er1 >conftest.err
1869   rm -f conftest.er1
1870   cat conftest.err >&5
1871   echo "$as_me:1871: \$? = $ac_status" >&5
1872   (exit $ac_status); } >/dev/null; then
1873   if test -s conftest.err; then
1874     ac_cpp_err=$ac_c_preproc_warn_flag
1875   else
1876     ac_cpp_err=
1877   fi
1878 else
1879   ac_cpp_err=yes
1880 fi
1881 if test -z "$ac_cpp_err"; then
1882   :
1883 else
1884   echo "$as_me: failed program was:" >&5
1885   cat conftest.$ac_ext >&5
1886   # Broken: fails on valid input.
1887 continue
1888 fi
1889 rm -f conftest.err conftest.$ac_ext
1890
1891   # OK, works on sane cases.  Now check whether non-existent headers
1892   # can be detected and how.
1893   cat >conftest.$ac_ext <<_ACEOF
1894 #line 1894 "configure"
1895 #include "confdefs.h"
1896 #include <ac_nonexistent.h>
1897 _ACEOF
1898 if { (eval echo "$as_me:1898: \"$ac_cpp conftest.$ac_ext\"") >&5
1899   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1900   ac_status=$?
1901   egrep -v '^ *\+' conftest.er1 >conftest.err
1902   rm -f conftest.er1
1903   cat conftest.err >&5
1904   echo "$as_me:1904: \$? = $ac_status" >&5
1905   (exit $ac_status); } >/dev/null; then
1906   if test -s conftest.err; then
1907     ac_cpp_err=$ac_c_preproc_warn_flag
1908   else
1909     ac_cpp_err=
1910   fi
1911 else
1912   ac_cpp_err=yes
1913 fi
1914 if test -z "$ac_cpp_err"; then
1915   # Broken: success on invalid input.
1916 continue
1917 else
1918   echo "$as_me: failed program was:" >&5
1919   cat conftest.$ac_ext >&5
1920   # Passes both tests.
1921 ac_preproc_ok=:
1922 break
1923 fi
1924 rm -f conftest.err conftest.$ac_ext
1925
1926 done
1927 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1928 rm -f conftest.err conftest.$ac_ext
1929 if $ac_preproc_ok; then
1930   break
1931 fi
1932
1933     done
1934     ac_cv_prog_CPP=$CPP
1935
1936 fi
1937   CPP=$ac_cv_prog_CPP
1938 else
1939   ac_cv_prog_CPP=$CPP
1940 fi
1941 echo "$as_me:1941: result: $CPP" >&5
1942 echo "${ECHO_T}$CPP" >&6
1943 ac_preproc_ok=false
1944 for ac_c_preproc_warn_flag in '' yes
1945 do
1946   # Use a header file that comes with gcc, so configuring glibc
1947   # with a fresh cross-compiler works.
1948   # On the NeXT, cc -E runs the code through the compiler's parser,
1949   # not just through cpp. "Syntax error" is here to catch this case.
1950   cat >conftest.$ac_ext <<_ACEOF
1951 #line 1951 "configure"
1952 #include "confdefs.h"
1953 #include <assert.h>
1954                      Syntax error
1955 _ACEOF
1956 if { (eval echo "$as_me:1956: \"$ac_cpp conftest.$ac_ext\"") >&5
1957   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1958   ac_status=$?
1959   egrep -v '^ *\+' conftest.er1 >conftest.err
1960   rm -f conftest.er1
1961   cat conftest.err >&5
1962   echo "$as_me:1962: \$? = $ac_status" >&5
1963   (exit $ac_status); } >/dev/null; then
1964   if test -s conftest.err; then
1965     ac_cpp_err=$ac_c_preproc_warn_flag
1966   else
1967     ac_cpp_err=
1968   fi
1969 else
1970   ac_cpp_err=yes
1971 fi
1972 if test -z "$ac_cpp_err"; then
1973   :
1974 else
1975   echo "$as_me: failed program was:" >&5
1976   cat conftest.$ac_ext >&5
1977   # Broken: fails on valid input.
1978 continue
1979 fi
1980 rm -f conftest.err conftest.$ac_ext
1981
1982   # OK, works on sane cases.  Now check whether non-existent headers
1983   # can be detected and how.
1984   cat >conftest.$ac_ext <<_ACEOF
1985 #line 1985 "configure"
1986 #include "confdefs.h"
1987 #include <ac_nonexistent.h>
1988 _ACEOF
1989 if { (eval echo "$as_me:1989: \"$ac_cpp conftest.$ac_ext\"") >&5
1990   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1991   ac_status=$?
1992   egrep -v '^ *\+' conftest.er1 >conftest.err
1993   rm -f conftest.er1
1994   cat conftest.err >&5
1995   echo "$as_me:1995: \$? = $ac_status" >&5
1996   (exit $ac_status); } >/dev/null; then
1997   if test -s conftest.err; then
1998     ac_cpp_err=$ac_c_preproc_warn_flag
1999   else
2000     ac_cpp_err=
2001   fi
2002 else
2003   ac_cpp_err=yes
2004 fi
2005 if test -z "$ac_cpp_err"; then
2006   # Broken: success on invalid input.
2007 continue
2008 else
2009   echo "$as_me: failed program was:" >&5
2010   cat conftest.$ac_ext >&5
2011   # Passes both tests.
2012 ac_preproc_ok=:
2013 break
2014 fi
2015 rm -f conftest.err conftest.$ac_ext
2016
2017 done
2018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2019 rm -f conftest.err conftest.$ac_ext
2020 if $ac_preproc_ok; then
2021   :
2022 else
2023   { { echo "$as_me:2023: error: C preprocessor \"$CPP\" fails sanity check" >&5
2024 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2025    { (exit 1); exit 1; }; }
2026 fi
2027
2028 ac_ext=c
2029 ac_cpp='$CPP $CPPFLAGS'
2030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033
2034 if test "$GCC" = yes
2035 then
2036   CFLAGS="${CFLAGS} ${PIPE}-Wmissing-prototypes -Wstrict-prototypes -Wcast-qual -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-declarations -Wnested-externs -pedantic -fno-common"
2037   LDFLAGS='-g'
2038 fi
2039
2040 # Check whether --with-defformat or --without-defformat was given.
2041 if test "${with_defformat+set}" = set; then
2042   withval="$with_defformat"
2043   DEFFORMAT="$withval"
2044 else
2045   DEFFORMAT="ibm-3740"
2046 fi;
2047
2048 # Check whether --with-libdsk or --without-libdsk was given.
2049 if test "${with_libdsk+set}" = set; then
2050   withval="$with_libdsk"
2051   LIBDSK="$withval"
2052 else
2053   LIBDSK=""
2054 fi;
2055
2056 # Check whether --with-dmalloc or --without-dmalloc was given.
2057 if test "${with_dmalloc+set}" = set; then
2058   withval="$with_dmalloc"
2059   DMALLOC="$withval"
2060 else
2061   DMALLOC=""
2062 fi;
2063
2064 case $host_os in
2065   *cygwin* ) CYGWIN=yes;;
2066          * ) CYGWIN=no;;
2067 esac
2068
2069 case $host_os in
2070   *mingw32* ) MINGW32=yes;;
2071           * ) MINGW32=no;;
2072 esac
2073
2074 DEVICE="posix"
2075
2076 if test "$CYGWIN" = "yes"
2077 then
2078   DEVICE="win32"
2079 fi
2080 if test "$MINGW32" = "yes"
2081 then
2082   DEVICE="win32"
2083 fi
2084
2085 echo "$as_me:2085: checking for printw in -lcurses" >&5
2086 echo $ECHO_N "checking for printw in -lcurses... $ECHO_C" >&6
2087 if test "${ac_cv_lib_curses_printw+set}" = set; then
2088   echo $ECHO_N "(cached) $ECHO_C" >&6
2089 else
2090   ac_check_lib_save_LIBS=$LIBS
2091 LIBS="-lcurses  $LIBS"
2092 cat >conftest.$ac_ext <<_ACEOF
2093 #line 2093 "configure"
2094 #include "confdefs.h"
2095
2096 /* Override any gcc2 internal prototype to avoid an error.  */
2097 #ifdef __cplusplus
2098 extern "C"
2099 #endif
2100 /* We use char because int might match the return type of a gcc2
2101    builtin and then its argument prototype would still apply.  */
2102 char printw ();
2103 int
2104 main ()
2105 {
2106 printw ();
2107   ;
2108   return 0;
2109 }
2110 _ACEOF
2111 rm -f conftest.$ac_objext conftest$ac_exeext
2112 if { (eval echo "$as_me:2112: \"$ac_link\"") >&5
2113   (eval $ac_link) 2>&5
2114   ac_status=$?
2115   echo "$as_me:2115: \$? = $ac_status" >&5
2116   (exit $ac_status); } &&
2117          { ac_try='test -s conftest$ac_exeext'
2118   { (eval echo "$as_me:2118: \"$ac_try\"") >&5
2119   (eval $ac_try) 2>&5
2120   ac_status=$?
2121   echo "$as_me:2121: \$? = $ac_status" >&5
2122   (exit $ac_status); }; }; then
2123   ac_cv_lib_curses_printw=yes
2124 else
2125   echo "$as_me: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2127 ac_cv_lib_curses_printw=no
2128 fi
2129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2130 LIBS=$ac_check_lib_save_LIBS
2131 fi
2132 echo "$as_me:2132: result: $ac_cv_lib_curses_printw" >&5
2133 echo "${ECHO_T}$ac_cv_lib_curses_printw" >&6
2134 if test $ac_cv_lib_curses_printw = yes; then
2135   FSED_CPM=fsed.cpm LIBS="-lcurses $LIBS"
2136 else
2137   FSED_CPM=
2138 fi
2139
2140 if test x"$FSED_CPM" = x""; then
2141   echo "$as_me:2141: checking for printw in -lncurses" >&5
2142 echo $ECHO_N "checking for printw in -lncurses... $ECHO_C" >&6
2143 if test "${ac_cv_lib_ncurses_printw+set}" = set; then
2144   echo $ECHO_N "(cached) $ECHO_C" >&6
2145 else
2146   ac_check_lib_save_LIBS=$LIBS
2147 LIBS="-lncurses  $LIBS"
2148 cat >conftest.$ac_ext <<_ACEOF
2149 #line 2149 "configure"
2150 #include "confdefs.h"
2151
2152 /* Override any gcc2 internal prototype to avoid an error.  */
2153 #ifdef __cplusplus
2154 extern "C"
2155 #endif
2156 /* We use char because int might match the return type of a gcc2
2157    builtin and then its argument prototype would still apply.  */
2158 char printw ();
2159 int
2160 main ()
2161 {
2162 printw ();
2163   ;
2164   return 0;
2165 }
2166 _ACEOF
2167 rm -f conftest.$ac_objext conftest$ac_exeext
2168 if { (eval echo "$as_me:2168: \"$ac_link\"") >&5
2169   (eval $ac_link) 2>&5
2170   ac_status=$?
2171   echo "$as_me:2171: \$? = $ac_status" >&5
2172   (exit $ac_status); } &&
2173          { ac_try='test -s conftest$ac_exeext'
2174   { (eval echo "$as_me:2174: \"$ac_try\"") >&5
2175   (eval $ac_try) 2>&5
2176   ac_status=$?
2177   echo "$as_me:2177: \$? = $ac_status" >&5
2178   (exit $ac_status); }; }; then
2179   ac_cv_lib_ncurses_printw=yes
2180 else
2181   echo "$as_me: failed program was:" >&5
2182 cat conftest.$ac_ext >&5
2183 ac_cv_lib_ncurses_printw=no
2184 fi
2185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2186 LIBS=$ac_check_lib_save_LIBS
2187 fi
2188 echo "$as_me:2188: result: $ac_cv_lib_ncurses_printw" >&5
2189 echo "${ECHO_T}$ac_cv_lib_ncurses_printw" >&6
2190 if test $ac_cv_lib_ncurses_printw = yes; then
2191   FSED_CPM=fsed.cpm LIBS="-lncurses $LIBS"
2192 else
2193   FSED_CPM=
2194 fi
2195
2196 fi
2197
2198 if test "$LIBDSK" != ""; then
2199   DEVICE="libdsk"
2200   CPPFLAGS="$CPPFLAGS -I$LIBDSK/include"
2201   CFLAGS="$CFLAGS -I$LIBDSK/include"
2202   LDFLAGS="$LDFLAGS -L$LIBDSK/lib"
2203
2204 echo "$as_me:2204: checking for dsk_open in -ldsk" >&5
2205 echo $ECHO_N "checking for dsk_open in -ldsk... $ECHO_C" >&6
2206 if test "${ac_cv_lib_dsk_dsk_open+set}" = set; then
2207   echo $ECHO_N "(cached) $ECHO_C" >&6
2208 else
2209   ac_check_lib_save_LIBS=$LIBS
2210 LIBS="-ldsk  $LIBS"
2211 cat >conftest.$ac_ext <<_ACEOF
2212 #line 2212 "configure"
2213 #include "confdefs.h"
2214
2215 /* Override any gcc2 internal prototype to avoid an error.  */
2216 #ifdef __cplusplus
2217 extern "C"
2218 #endif
2219 /* We use char because int might match the return type of a gcc2
2220    builtin and then its argument prototype would still apply.  */
2221 char dsk_open ();
2222 int
2223 main ()
2224 {
2225 dsk_open ();
2226   ;
2227   return 0;
2228 }
2229 _ACEOF
2230 rm -f conftest.$ac_objext conftest$ac_exeext
2231 if { (eval echo "$as_me:2231: \"$ac_link\"") >&5
2232   (eval $ac_link) 2>&5
2233   ac_status=$?
2234   echo "$as_me:2234: \$? = $ac_status" >&5
2235   (exit $ac_status); } &&
2236          { ac_try='test -s conftest$ac_exeext'
2237   { (eval echo "$as_me:2237: \"$ac_try\"") >&5
2238   (eval $ac_try) 2>&5
2239   ac_status=$?
2240   echo "$as_me:2240: \$? = $ac_status" >&5
2241   (exit $ac_status); }; }; then
2242   ac_cv_lib_dsk_dsk_open=yes
2243 else
2244   echo "$as_me: failed program was:" >&5
2245 cat conftest.$ac_ext >&5
2246 ac_cv_lib_dsk_dsk_open=no
2247 fi
2248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2249 LIBS=$ac_check_lib_save_LIBS
2250 fi
2251 echo "$as_me:2251: result: $ac_cv_lib_dsk_dsk_open" >&5
2252 echo "${ECHO_T}$ac_cv_lib_dsk_dsk_open" >&6
2253 if test $ac_cv_lib_dsk_dsk_open = yes; then
2254   cat >>confdefs.h <<EOF
2255 #define HAVE_LIBDSK 1
2256 EOF
2257
2258   LIBS="-ldsk $LIBS"
2259
2260 fi
2261
2262 for ac_header in libdsk.h
2263 do
2264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2265 echo "$as_me:2265: checking for $ac_header" >&5
2266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2268   echo $ECHO_N "(cached) $ECHO_C" >&6
2269 else
2270   cat >conftest.$ac_ext <<_ACEOF
2271 #line 2271 "configure"
2272 #include "confdefs.h"
2273 #include <$ac_header>
2274 _ACEOF
2275 if { (eval echo "$as_me:2275: \"$ac_cpp conftest.$ac_ext\"") >&5
2276   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2277   ac_status=$?
2278   egrep -v '^ *\+' conftest.er1 >conftest.err
2279   rm -f conftest.er1
2280   cat conftest.err >&5
2281   echo "$as_me:2281: \$? = $ac_status" >&5
2282   (exit $ac_status); } >/dev/null; then
2283   if test -s conftest.err; then
2284     ac_cpp_err=$ac_c_preproc_warn_flag
2285   else
2286     ac_cpp_err=
2287   fi
2288 else
2289   ac_cpp_err=yes
2290 fi
2291 if test -z "$ac_cpp_err"; then
2292   eval "$as_ac_Header=yes"
2293 else
2294   echo "$as_me: failed program was:" >&5
2295   cat conftest.$ac_ext >&5
2296   eval "$as_ac_Header=no"
2297 fi
2298 rm -f conftest.err conftest.$ac_ext
2299 fi
2300 echo "$as_me:2300: result: `eval echo '${'$as_ac_Header'}'`" >&5
2301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2303   cat >>confdefs.h <<EOF
2304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2305 EOF
2306
2307 else
2308   echo "No libdsk.h - aborting"; exit 1
2309 fi
2310 done
2311
2312 fi
2313
2314 if test x"$DEVICE" = x"win32"; then
2315
2316 for ac_header in windows.h winioctl.h
2317 do
2318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2319 echo "$as_me:2319: checking for $ac_header" >&5
2320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2322   echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324   cat >conftest.$ac_ext <<_ACEOF
2325 #line 2325 "configure"
2326 #include "confdefs.h"
2327 #include <$ac_header>
2328 _ACEOF
2329 if { (eval echo "$as_me:2329: \"$ac_cpp conftest.$ac_ext\"") >&5
2330   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2331   ac_status=$?
2332   egrep -v '^ *\+' conftest.er1 >conftest.err
2333   rm -f conftest.er1
2334   cat conftest.err >&5
2335   echo "$as_me:2335: \$? = $ac_status" >&5
2336   (exit $ac_status); } >/dev/null; then
2337   if test -s conftest.err; then
2338     ac_cpp_err=$ac_c_preproc_warn_flag
2339   else
2340     ac_cpp_err=
2341   fi
2342 else
2343   ac_cpp_err=yes
2344 fi
2345 if test -z "$ac_cpp_err"; then
2346   eval "$as_ac_Header=yes"
2347 else
2348   echo "$as_me: failed program was:" >&5
2349   cat conftest.$ac_ext >&5
2350   eval "$as_ac_Header=no"
2351 fi
2352 rm -f conftest.err conftest.$ac_ext
2353 fi
2354 echo "$as_me:2354: result: `eval echo '${'$as_ac_Header'}'`" >&5
2355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2357   cat >>confdefs.h <<EOF
2358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2359 EOF
2360
2361 else
2362   echo "Windows headers not found - aborting"; exit 1
2363 fi
2364 done
2365
2366 fi
2367
2368 if test x"$DMALLOC" != x""; then
2369    CPPFLAGS  = "-I$DMALLOC/include $CPPFLAGS"
2370    CFLAGS  = "-I$DMALLOC/include $CFLAGS"
2371    LDFLAGS = "-L$DMALLOC/lib $LDFLAGS"
2372
2373 echo "$as_me:2373: checking for malloc in -ldmalloc" >&5
2374 echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6
2375 if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
2376   echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378   ac_check_lib_save_LIBS=$LIBS
2379 LIBS="-ldmalloc  $LIBS"
2380 cat >conftest.$ac_ext <<_ACEOF
2381 #line 2381 "configure"
2382 #include "confdefs.h"
2383
2384 /* Override any gcc2 internal prototype to avoid an error.  */
2385 #ifdef __cplusplus
2386 extern "C"
2387 #endif
2388 /* We use char because int might match the return type of a gcc2
2389    builtin and then its argument prototype would still apply.  */
2390 char malloc ();
2391 int
2392 main ()
2393 {
2394 malloc ();
2395   ;
2396   return 0;
2397 }
2398 _ACEOF
2399 rm -f conftest.$ac_objext conftest$ac_exeext
2400 if { (eval echo "$as_me:2400: \"$ac_link\"") >&5
2401   (eval $ac_link) 2>&5
2402   ac_status=$?
2403   echo "$as_me:2403: \$? = $ac_status" >&5
2404   (exit $ac_status); } &&
2405          { ac_try='test -s conftest$ac_exeext'
2406   { (eval echo "$as_me:2406: \"$ac_try\"") >&5
2407   (eval $ac_try) 2>&5
2408   ac_status=$?
2409   echo "$as_me:2409: \$? = $ac_status" >&5
2410   (exit $ac_status); }; }; then
2411   ac_cv_lib_dmalloc_malloc=yes
2412 else
2413   echo "$as_me: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2415 ac_cv_lib_dmalloc_malloc=no
2416 fi
2417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2418 LIBS=$ac_check_lib_save_LIBS
2419 fi
2420 echo "$as_me:2420: result: $ac_cv_lib_dmalloc_malloc" >&5
2421 echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6
2422 if test $ac_cv_lib_dmalloc_malloc = yes; then
2423   cat >>confdefs.h <<EOF
2424 #define HAVE_LIBDMALLOC 1
2425 EOF
2426
2427   LIBS="-ldmalloc $LIBS"
2428
2429 fi
2430
2431 for ac_header in dmalloc.h
2432 do
2433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2434 echo "$as_me:2434: checking for $ac_header" >&5
2435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2437   echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439   cat >conftest.$ac_ext <<_ACEOF
2440 #line 2440 "configure"
2441 #include "confdefs.h"
2442 #include <$ac_header>
2443 _ACEOF
2444 if { (eval echo "$as_me:2444: \"$ac_cpp conftest.$ac_ext\"") >&5
2445   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2446   ac_status=$?
2447   egrep -v '^ *\+' conftest.er1 >conftest.err
2448   rm -f conftest.er1
2449   cat conftest.err >&5
2450   echo "$as_me:2450: \$? = $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   else
2455     ac_cpp_err=
2456   fi
2457 else
2458   ac_cpp_err=yes
2459 fi
2460 if test -z "$ac_cpp_err"; then
2461   eval "$as_ac_Header=yes"
2462 else
2463   echo "$as_me: failed program was:" >&5
2464   cat conftest.$ac_ext >&5
2465   eval "$as_ac_Header=no"
2466 fi
2467 rm -f conftest.err conftest.$ac_ext
2468 fi
2469 echo "$as_me:2469: result: `eval echo '${'$as_ac_Header'}'`" >&5
2470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2472   cat >>confdefs.h <<EOF
2473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2474 EOF
2475
2476 fi
2477 done
2478
2479 fi
2480
2481 echo "$as_me:2481: checking for ANSI C header files" >&5
2482 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2483 if test "${ac_cv_header_stdc+set}" = set; then
2484   echo $ECHO_N "(cached) $ECHO_C" >&6
2485 else
2486   cat >conftest.$ac_ext <<_ACEOF
2487 #line 2487 "configure"
2488 #include "confdefs.h"
2489 #include <stdlib.h>
2490 #include <stdarg.h>
2491 #include <string.h>
2492 #include <float.h>
2493
2494 _ACEOF
2495 if { (eval echo "$as_me:2495: \"$ac_cpp conftest.$ac_ext\"") >&5
2496   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2497   ac_status=$?
2498   egrep -v '^ *\+' conftest.er1 >conftest.err
2499   rm -f conftest.er1
2500   cat conftest.err >&5
2501   echo "$as_me:2501: \$? = $ac_status" >&5
2502   (exit $ac_status); } >/dev/null; then
2503   if test -s conftest.err; then
2504     ac_cpp_err=$ac_c_preproc_warn_flag
2505   else
2506     ac_cpp_err=
2507   fi
2508 else
2509   ac_cpp_err=yes
2510 fi
2511 if test -z "$ac_cpp_err"; then
2512   ac_cv_header_stdc=yes
2513 else
2514   echo "$as_me: failed program was:" >&5
2515   cat conftest.$ac_ext >&5
2516   ac_cv_header_stdc=no
2517 fi
2518 rm -f conftest.err conftest.$ac_ext
2519
2520 if test $ac_cv_header_stdc = yes; then
2521   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2522   cat >conftest.$ac_ext <<_ACEOF
2523 #line 2523 "configure"
2524 #include "confdefs.h"
2525 #include <string.h>
2526
2527 _ACEOF
2528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2529   egrep "memchr" >/dev/null 2>&1; then
2530   :
2531 else
2532   ac_cv_header_stdc=no
2533 fi
2534 rm -f conftest*
2535
2536 fi
2537
2538 if test $ac_cv_header_stdc = yes; then
2539   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2540   cat >conftest.$ac_ext <<_ACEOF
2541 #line 2541 "configure"
2542 #include "confdefs.h"
2543 #include <stdlib.h>
2544
2545 _ACEOF
2546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2547   egrep "free" >/dev/null 2>&1; then
2548   :
2549 else
2550   ac_cv_header_stdc=no
2551 fi
2552 rm -f conftest*
2553
2554 fi
2555
2556 if test $ac_cv_header_stdc = yes; then
2557   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2558   if test "$cross_compiling" = yes; then
2559   :
2560 else
2561   cat >conftest.$ac_ext <<_ACEOF
2562 #line 2562 "configure"
2563 #include "confdefs.h"
2564 #include <ctype.h>
2565 #if ((' ' & 0x0FF) == 0x020)
2566 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2567 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2568 #else
2569 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2570                      || ('j' <= (c) && (c) <= 'r') \
2571                      || ('s' <= (c) && (c) <= 'z'))
2572 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2573 #endif
2574
2575 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2576 int
2577 main ()
2578 {
2579   int i;
2580   for (i = 0; i < 256; i++)
2581     if (XOR (islower (i), ISLOWER (i))
2582         || toupper (i) != TOUPPER (i))
2583       exit(2);
2584   exit (0);
2585 }
2586 _ACEOF
2587 rm -f conftest$ac_exeext
2588 if { (eval echo "$as_me:2588: \"$ac_link\"") >&5
2589   (eval $ac_link) 2>&5
2590   ac_status=$?
2591   echo "$as_me:2591: \$? = $ac_status" >&5
2592   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2593   { (eval echo "$as_me:2593: \"$ac_try\"") >&5
2594   (eval $ac_try) 2>&5
2595   ac_status=$?
2596   echo "$as_me:2596: \$? = $ac_status" >&5
2597   (exit $ac_status); }; }; then
2598   :
2599 else
2600   echo "$as_me: program exited with status $ac_status" >&5
2601 echo "$as_me: failed program was:" >&5
2602 cat conftest.$ac_ext >&5
2603 ac_cv_header_stdc=no
2604 fi
2605 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2606 fi
2607 fi
2608 fi
2609 echo "$as_me:2609: result: $ac_cv_header_stdc" >&5
2610 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2611 if test $ac_cv_header_stdc = yes; then
2612
2613 cat >>confdefs.h <<\EOF
2614 #define STDC_HEADERS 1
2615 EOF
2616
2617 fi
2618
2619 for ac_header in fcntl.h sys/types.h sys/stat.h limits.h unistd.h
2620 do
2621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2622 echo "$as_me:2622: checking for $ac_header" >&5
2623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2625   echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627   cat >conftest.$ac_ext <<_ACEOF
2628 #line 2628 "configure"
2629 #include "confdefs.h"
2630 #include <$ac_header>
2631 _ACEOF
2632 if { (eval echo "$as_me:2632: \"$ac_cpp conftest.$ac_ext\"") >&5
2633   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2634   ac_status=$?
2635   egrep -v '^ *\+' conftest.er1 >conftest.err
2636   rm -f conftest.er1
2637   cat conftest.err >&5
2638   echo "$as_me:2638: \$? = $ac_status" >&5
2639   (exit $ac_status); } >/dev/null; then
2640   if test -s conftest.err; then
2641     ac_cpp_err=$ac_c_preproc_warn_flag
2642   else
2643     ac_cpp_err=
2644   fi
2645 else
2646   ac_cpp_err=yes
2647 fi
2648 if test -z "$ac_cpp_err"; then
2649   eval "$as_ac_Header=yes"
2650 else
2651   echo "$as_me: failed program was:" >&5
2652   cat conftest.$ac_ext >&5
2653   eval "$as_ac_Header=no"
2654 fi
2655 rm -f conftest.err conftest.$ac_ext
2656 fi
2657 echo "$as_me:2657: result: `eval echo '${'$as_ac_Header'}'`" >&5
2658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2660   cat >>confdefs.h <<EOF
2661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2662 EOF
2663
2664 fi
2665 done
2666
2667 echo "$as_me:2667: checking for $CC option to accept ANSI C" >&5
2668 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2669 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2670   echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672   ac_cv_prog_cc_stdc=no
2673 ac_save_CC=$CC
2674 cat >conftest.$ac_ext <<_ACEOF
2675 #line 2675 "configure"
2676 #include "confdefs.h"
2677 #include <stdarg.h>
2678 #include <stdio.h>
2679 #include <sys/types.h>
2680 #include <sys/stat.h>
2681 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2682 struct buf { int x; };
2683 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2684 static char *e (p, i)
2685      char **p;
2686      int i;
2687 {
2688   return p[i];
2689 }
2690 static char *f (char * (*g) (char **, int), char **p, ...)
2691 {
2692   char *s;
2693   va_list v;
2694   va_start (v,p);
2695   s = g (p, va_arg (v,int));
2696   va_end (v);
2697   return s;
2698 }
2699 int test (int i, double x);
2700 struct s1 {int (*f) (int a);};
2701 struct s2 {int (*f) (double a);};
2702 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2703 int argc;
2704 char **argv;
2705 int
2706 main ()
2707 {
2708 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2709   ;
2710   return 0;
2711 }
2712 _ACEOF
2713 # Don't try gcc -ansi; that turns off useful extensions and
2714 # breaks some systems' header files.
2715 # AIX                   -qlanglvl=ansi
2716 # Ultrix and OSF/1      -std1
2717 # HP-UX 10.20 and later -Ae
2718 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2719 # SVR4                  -Xc -D__EXTENSIONS__
2720 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2721 do
2722   CC="$ac_save_CC $ac_arg"
2723   rm -f conftest.$ac_objext
2724 if { (eval echo "$as_me:2724: \"$ac_compile\"") >&5
2725   (eval $ac_compile) 2>&5
2726   ac_status=$?
2727   echo "$as_me:2727: \$? = $ac_status" >&5
2728   (exit $ac_status); } &&
2729          { ac_try='test -s conftest.$ac_objext'
2730   { (eval echo "$as_me:2730: \"$ac_try\"") >&5
2731   (eval $ac_try) 2>&5
2732   ac_status=$?
2733   echo "$as_me:2733: \$? = $ac_status" >&5
2734   (exit $ac_status); }; }; then
2735   ac_cv_prog_cc_stdc=$ac_arg
2736 break
2737 else
2738   echo "$as_me: failed program was:" >&5
2739 cat conftest.$ac_ext >&5
2740 fi
2741 rm -f conftest.$ac_objext
2742 done
2743 rm -f conftest.$ac_ext conftest.$ac_objext
2744 CC=$ac_save_CC
2745
2746 fi
2747
2748 case "x$ac_cv_prog_cc_stdc" in
2749   x|xno)
2750     echo "$as_me:2750: result: none needed" >&5
2751 echo "${ECHO_T}none needed" >&6 ;;
2752   *)
2753     echo "$as_me:2753: result: $ac_cv_prog_cc_stdc" >&5
2754 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2755     CC="$CC $ac_cv_prog_cc_stdc" ;;
2756 esac
2757
2758 echo "$as_me:2758: checking for an ANSI C-conforming const" >&5
2759 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2760 if test "${ac_cv_c_const+set}" = set; then
2761   echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763   cat >conftest.$ac_ext <<_ACEOF
2764 #line 2764 "configure"
2765 #include "confdefs.h"
2766
2767 int
2768 main ()
2769 {
2770 /* FIXME: Include the comments suggested by Paul. */
2771 #ifndef __cplusplus
2772   /* Ultrix mips cc rejects this.  */
2773   typedef int charset[2];
2774   const charset x;
2775   /* SunOS 4.1.1 cc rejects this.  */
2776   char const *const *ccp;
2777   char **p;
2778   /* NEC SVR4.0.2 mips cc rejects this.  */
2779   struct point {int x, y;};
2780   static struct point const zero = {0,0};
2781   /* AIX XL C 1.02.0.0 rejects this.
2782      It does not let you subtract one const X* pointer from another in
2783      an arm of an if-expression whose if-part is not a constant
2784      expression */
2785   const char *g = "string";
2786   ccp = &g + (g ? g-g : 0);
2787   /* HPUX 7.0 cc rejects these. */
2788   ++ccp;
2789   p = (char**) ccp;
2790   ccp = (char const *const *) p;
2791   { /* SCO 3.2v4 cc rejects this.  */
2792     char *t;
2793     char const *s = 0 ? (char *) 0 : (char const *) 0;
2794
2795     *t++ = 0;
2796   }
2797   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2798     int x[] = {25, 17};
2799     const int *foo = &x[0];
2800     ++foo;
2801   }
2802   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2803     typedef const int *iptr;
2804     iptr p = 0;
2805     ++p;
2806   }
2807   { /* AIX XL C 1.02.0.0 rejects this saying
2808        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2809     struct s { int j; const int *ap[3]; };
2810     struct s *b; b->j = 5;
2811   }
2812   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2813     const int foo = 10;
2814   }
2815 #endif
2816
2817   ;
2818   return 0;
2819 }
2820 _ACEOF
2821 rm -f conftest.$ac_objext
2822 if { (eval echo "$as_me:2822: \"$ac_compile\"") >&5
2823   (eval $ac_compile) 2>&5
2824   ac_status=$?
2825   echo "$as_me:2825: \$? = $ac_status" >&5
2826   (exit $ac_status); } &&
2827          { ac_try='test -s conftest.$ac_objext'
2828   { (eval echo "$as_me:2828: \"$ac_try\"") >&5
2829   (eval $ac_try) 2>&5
2830   ac_status=$?
2831   echo "$as_me:2831: \$? = $ac_status" >&5
2832   (exit $ac_status); }; }; then
2833   ac_cv_c_const=yes
2834 else
2835   echo "$as_me: failed program was:" >&5
2836 cat conftest.$ac_ext >&5
2837 ac_cv_c_const=no
2838 fi
2839 rm -f conftest.$ac_objext conftest.$ac_ext
2840 fi
2841 echo "$as_me:2841: result: $ac_cv_c_const" >&5
2842 echo "${ECHO_T}$ac_cv_c_const" >&6
2843 if test $ac_cv_c_const = no; then
2844
2845 cat >>confdefs.h <<\EOF
2846 #define const
2847 EOF
2848
2849 fi
2850
2851 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2852
2853 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2854                   inttypes.h stdint.h unistd.h
2855 do
2856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2857 echo "$as_me:2857: checking for $ac_header" >&5
2858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2860   echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862   cat >conftest.$ac_ext <<_ACEOF
2863 #line 2863 "configure"
2864 #include "confdefs.h"
2865 $ac_includes_default
2866 #include <$ac_header>
2867 _ACEOF
2868 rm -f conftest.$ac_objext
2869 if { (eval echo "$as_me:2869: \"$ac_compile\"") >&5
2870   (eval $ac_compile) 2>&5
2871   ac_status=$?
2872   echo "$as_me:2872: \$? = $ac_status" >&5
2873   (exit $ac_status); } &&
2874          { ac_try='test -s conftest.$ac_objext'
2875   { (eval echo "$as_me:2875: \"$ac_try\"") >&5
2876   (eval $ac_try) 2>&5
2877   ac_status=$?
2878   echo "$as_me:2878: \$? = $ac_status" >&5
2879   (exit $ac_status); }; }; then
2880   eval "$as_ac_Header=yes"
2881 else
2882   echo "$as_me: failed program was:" >&5
2883 cat conftest.$ac_ext >&5
2884 eval "$as_ac_Header=no"
2885 fi
2886 rm -f conftest.$ac_objext conftest.$ac_ext
2887 fi
2888 echo "$as_me:2888: result: `eval echo '${'$as_ac_Header'}'`" >&5
2889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2891   cat >>confdefs.h <<EOF
2892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2893 EOF
2894
2895 fi
2896 done
2897
2898 echo "$as_me:2898: checking for mode_t" >&5
2899 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
2900 if test "${ac_cv_type_mode_t+set}" = set; then
2901   echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903   cat >conftest.$ac_ext <<_ACEOF
2904 #line 2904 "configure"
2905 #include "confdefs.h"
2906 $ac_includes_default
2907 int
2908 main ()
2909 {
2910 if ((mode_t *) 0)
2911   return 0;
2912 if (sizeof (mode_t))
2913   return 0;
2914   ;
2915   return 0;
2916 }
2917 _ACEOF
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:2919: \"$ac_compile\"") >&5
2920   (eval $ac_compile) 2>&5
2921   ac_status=$?
2922   echo "$as_me:2922: \$? = $ac_status" >&5
2923   (exit $ac_status); } &&
2924          { ac_try='test -s conftest.$ac_objext'
2925   { (eval echo "$as_me:2925: \"$ac_try\"") >&5
2926   (eval $ac_try) 2>&5
2927   ac_status=$?
2928   echo "$as_me:2928: \$? = $ac_status" >&5
2929   (exit $ac_status); }; }; then
2930   ac_cv_type_mode_t=yes
2931 else
2932   echo "$as_me: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2934 ac_cv_type_mode_t=no
2935 fi
2936 rm -f conftest.$ac_objext conftest.$ac_ext
2937 fi
2938 echo "$as_me:2938: result: $ac_cv_type_mode_t" >&5
2939 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
2940 if test $ac_cv_type_mode_t = yes; then
2941   :
2942 else
2943
2944 cat >>confdefs.h <<EOF
2945 #define mode_t int
2946 EOF
2947
2948 fi
2949
2950 echo "$as_me:2950: checking for off_t" >&5
2951 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2952 if test "${ac_cv_type_off_t+set}" = set; then
2953   echo $ECHO_N "(cached) $ECHO_C" >&6
2954 else
2955   cat >conftest.$ac_ext <<_ACEOF
2956 #line 2956 "configure"
2957 #include "confdefs.h"
2958 $ac_includes_default
2959 int
2960 main ()
2961 {
2962 if ((off_t *) 0)
2963   return 0;
2964 if (sizeof (off_t))
2965   return 0;
2966   ;
2967   return 0;
2968 }
2969 _ACEOF
2970 rm -f conftest.$ac_objext
2971 if { (eval echo "$as_me:2971: \"$ac_compile\"") >&5
2972   (eval $ac_compile) 2>&5
2973   ac_status=$?
2974   echo "$as_me:2974: \$? = $ac_status" >&5
2975   (exit $ac_status); } &&
2976          { ac_try='test -s conftest.$ac_objext'
2977   { (eval echo "$as_me:2977: \"$ac_try\"") >&5
2978   (eval $ac_try) 2>&5
2979   ac_status=$?
2980   echo "$as_me:2980: \$? = $ac_status" >&5
2981   (exit $ac_status); }; }; then
2982   ac_cv_type_off_t=yes
2983 else
2984   echo "$as_me: failed program was:" >&5
2985 cat conftest.$ac_ext >&5
2986 ac_cv_type_off_t=no
2987 fi
2988 rm -f conftest.$ac_objext conftest.$ac_ext
2989 fi
2990 echo "$as_me:2990: result: $ac_cv_type_off_t" >&5
2991 echo "${ECHO_T}$ac_cv_type_off_t" >&6
2992 if test $ac_cv_type_off_t = yes; then
2993   :
2994 else
2995
2996 cat >>confdefs.h <<EOF
2997 #define off_t long
2998 EOF
2999
3000 fi
3001
3002 echo "$as_me:3002: checking for pid_t" >&5
3003 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3004 if test "${ac_cv_type_pid_t+set}" = set; then
3005   echo $ECHO_N "(cached) $ECHO_C" >&6
3006 else
3007   cat >conftest.$ac_ext <<_ACEOF
3008 #line 3008 "configure"
3009 #include "confdefs.h"
3010 $ac_includes_default
3011 int
3012 main ()
3013 {
3014 if ((pid_t *) 0)
3015   return 0;
3016 if (sizeof (pid_t))
3017   return 0;
3018   ;
3019   return 0;
3020 }
3021 _ACEOF
3022 rm -f conftest.$ac_objext
3023 if { (eval echo "$as_me:3023: \"$ac_compile\"") >&5
3024   (eval $ac_compile) 2>&5
3025   ac_status=$?
3026   echo "$as_me:3026: \$? = $ac_status" >&5
3027   (exit $ac_status); } &&
3028          { ac_try='test -s conftest.$ac_objext'
3029   { (eval echo "$as_me:3029: \"$ac_try\"") >&5
3030   (eval $ac_try) 2>&5
3031   ac_status=$?
3032   echo "$as_me:3032: \$? = $ac_status" >&5
3033   (exit $ac_status); }; }; then
3034   ac_cv_type_pid_t=yes
3035 else
3036   echo "$as_me: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3038 ac_cv_type_pid_t=no
3039 fi
3040 rm -f conftest.$ac_objext conftest.$ac_ext
3041 fi
3042 echo "$as_me:3042: result: $ac_cv_type_pid_t" >&5
3043 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3044 if test $ac_cv_type_pid_t = yes; then
3045   :
3046 else
3047
3048 cat >>confdefs.h <<EOF
3049 #define pid_t int
3050 EOF
3051
3052 fi
3053
3054 echo "$as_me:3054: checking for size_t" >&5
3055 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3056 if test "${ac_cv_type_size_t+set}" = set; then
3057   echo $ECHO_N "(cached) $ECHO_C" >&6
3058 else
3059   cat >conftest.$ac_ext <<_ACEOF
3060 #line 3060 "configure"
3061 #include "confdefs.h"
3062 $ac_includes_default
3063 int
3064 main ()
3065 {
3066 if ((size_t *) 0)
3067   return 0;
3068 if (sizeof (size_t))
3069   return 0;
3070   ;
3071   return 0;
3072 }
3073 _ACEOF
3074 rm -f conftest.$ac_objext
3075 if { (eval echo "$as_me:3075: \"$ac_compile\"") >&5
3076   (eval $ac_compile) 2>&5
3077   ac_status=$?
3078   echo "$as_me:3078: \$? = $ac_status" >&5
3079   (exit $ac_status); } &&
3080          { ac_try='test -s conftest.$ac_objext'
3081   { (eval echo "$as_me:3081: \"$ac_try\"") >&5
3082   (eval $ac_try) 2>&5
3083   ac_status=$?
3084   echo "$as_me:3084: \$? = $ac_status" >&5
3085   (exit $ac_status); }; }; then
3086   ac_cv_type_size_t=yes
3087 else
3088   echo "$as_me: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3090 ac_cv_type_size_t=no
3091 fi
3092 rm -f conftest.$ac_objext conftest.$ac_ext
3093 fi
3094 echo "$as_me:3094: result: $ac_cv_type_size_t" >&5
3095 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3096 if test $ac_cv_type_size_t = yes; then
3097   :
3098 else
3099
3100 cat >>confdefs.h <<EOF
3101 #define size_t unsigned
3102 EOF
3103
3104 fi
3105
3106 echo "$as_me:3106: checking whether struct tm is in sys/time.h or time.h" >&5
3107 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3108 if test "${ac_cv_struct_tm+set}" = set; then
3109   echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111   cat >conftest.$ac_ext <<_ACEOF
3112 #line 3112 "configure"
3113 #include "confdefs.h"
3114 #include <sys/types.h>
3115 #include <time.h>
3116
3117 int
3118 main ()
3119 {
3120 struct tm *tp; tp->tm_sec;
3121   ;
3122   return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (eval echo "$as_me:3126: \"$ac_compile\"") >&5
3127   (eval $ac_compile) 2>&5
3128   ac_status=$?
3129   echo "$as_me:3129: \$? = $ac_status" >&5
3130   (exit $ac_status); } &&
3131          { ac_try='test -s conftest.$ac_objext'
3132   { (eval echo "$as_me:3132: \"$ac_try\"") >&5
3133   (eval $ac_try) 2>&5
3134   ac_status=$?
3135   echo "$as_me:3135: \$? = $ac_status" >&5
3136   (exit $ac_status); }; }; then
3137   ac_cv_struct_tm=time.h
3138 else
3139   echo "$as_me: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3141 ac_cv_struct_tm=sys/time.h
3142 fi
3143 rm -f conftest.$ac_objext conftest.$ac_ext
3144 fi
3145 echo "$as_me:3145: result: $ac_cv_struct_tm" >&5
3146 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3147 if test $ac_cv_struct_tm = sys/time.h; then
3148
3149 cat >>confdefs.h <<\EOF
3150 #define TM_IN_SYS_TIME 1
3151 EOF
3152
3153 fi
3154
3155 if test x"$FSED_CPM" != x""; then
3156   FSED_CPM="$FSED_CPM$EXEEXT"
3157 fi
3158
3159 echo "$as_me:3159: checking for working memcmp" >&5
3160 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
3161 if test "${ac_cv_func_memcmp_working+set}" = set; then
3162   echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
3164   if test "$cross_compiling" = yes; then
3165   ac_cv_func_memcmp_working=no
3166 else
3167   cat >conftest.$ac_ext <<_ACEOF
3168 #line 3168 "configure"
3169 #include "confdefs.h"
3170
3171 int
3172 main ()
3173 {
3174
3175   /* Some versions of memcmp are not 8-bit clean.  */
3176   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3177   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
3178     exit (1);
3179
3180   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
3181      or more and with at least one buffer not starting on a 4-byte boundary.
3182      William Lewis provided this test program.   */
3183   {
3184     char foo[21];
3185     char bar[21];
3186     int i;
3187     for (i = 0; i < 4; i++)
3188       {
3189         char *a = foo + i;
3190         char *b = bar + i;
3191         strcpy (a, "--------01111111");
3192         strcpy (b, "--------10000000");
3193         if (memcmp (a, b, 16) >= 0)
3194           exit (1);
3195       }
3196     exit (0);
3197   }
3198
3199   ;
3200   return 0;
3201 }
3202 _ACEOF
3203 rm -f conftest$ac_exeext
3204 if { (eval echo "$as_me:3204: \"$ac_link\"") >&5
3205   (eval $ac_link) 2>&5
3206   ac_status=$?
3207   echo "$as_me:3207: \$? = $ac_status" >&5
3208   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3209   { (eval echo "$as_me:3209: \"$ac_try\"") >&5
3210   (eval $ac_try) 2>&5
3211   ac_status=$?
3212   echo "$as_me:3212: \$? = $ac_status" >&5
3213   (exit $ac_status); }; }; then
3214   ac_cv_func_memcmp_working=yes
3215 else
3216   echo "$as_me: program exited with status $ac_status" >&5
3217 echo "$as_me: failed program was:" >&5
3218 cat conftest.$ac_ext >&5
3219 ac_cv_func_memcmp_working=no
3220 fi
3221 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3222 fi
3223 fi
3224 echo "$as_me:3224: result: $ac_cv_func_memcmp_working" >&5
3225 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
3226 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
3227
3228 for ac_func in strftime
3229 do
3230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3231 echo "$as_me:3231: checking for $ac_func" >&5
3232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3233 if eval "test \"\${$as_ac_var+set}\" = set"; then
3234   echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236   cat >conftest.$ac_ext <<_ACEOF
3237 #line 3237 "configure"
3238 #include "confdefs.h"
3239 /* System header to define __stub macros and hopefully few prototypes,
3240     which can conflict with char $ac_func (); below.  */
3241 #include <assert.h>
3242 /* Override any gcc2 internal prototype to avoid an error.  */
3243 #ifdef __cplusplus
3244 extern "C"
3245 #endif
3246 /* We use char because int might match the return type of a gcc2
3247    builtin and then its argument prototype would still apply.  */
3248 char $ac_func ();
3249 char (*f) ();
3250
3251 int
3252 main ()
3253 {
3254 /* The GNU C library defines this for functions which it implements
3255     to always fail with ENOSYS.  Some functions are actually named
3256     something starting with __ and the normal name is an alias.  */
3257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3258 choke me
3259 #else
3260 f = $ac_func;
3261 #endif
3262
3263   ;
3264   return 0;
3265 }
3266 _ACEOF
3267 rm -f conftest.$ac_objext conftest$ac_exeext
3268 if { (eval echo "$as_me:3268: \"$ac_link\"") >&5
3269   (eval $ac_link) 2>&5
3270   ac_status=$?
3271   echo "$as_me:3271: \$? = $ac_status" >&5
3272   (exit $ac_status); } &&
3273          { ac_try='test -s conftest$ac_exeext'
3274   { (eval echo "$as_me:3274: \"$ac_try\"") >&5
3275   (eval $ac_try) 2>&5
3276   ac_status=$?
3277   echo "$as_me:3277: \$? = $ac_status" >&5
3278   (exit $ac_status); }; }; then
3279   eval "$as_ac_var=yes"
3280 else
3281   echo "$as_me: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3283 eval "$as_ac_var=no"
3284 fi
3285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3286 fi
3287 echo "$as_me:3287: result: `eval echo '${'$as_ac_var'}'`" >&5
3288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3289 if test `eval echo '${'$as_ac_var'}'` = yes; then
3290   cat >>confdefs.h <<EOF
3291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3292 EOF
3293
3294 else
3295   # strftime is in -lintl on SCO UNIX.
3296 echo "$as_me:3296: checking for strftime in -lintl" >&5
3297 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
3298 if test "${ac_cv_lib_intl_strftime+set}" = set; then
3299   echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301   ac_check_lib_save_LIBS=$LIBS
3302 LIBS="-lintl  $LIBS"
3303 cat >conftest.$ac_ext <<_ACEOF
3304 #line 3304 "configure"
3305 #include "confdefs.h"
3306
3307 /* Override any gcc2 internal prototype to avoid an error.  */
3308 #ifdef __cplusplus
3309 extern "C"
3310 #endif
3311 /* We use char because int might match the return type of a gcc2
3312    builtin and then its argument prototype would still apply.  */
3313 char strftime ();
3314 int
3315 main ()
3316 {
3317 strftime ();
3318   ;
3319   return 0;
3320 }
3321 _ACEOF
3322 rm -f conftest.$ac_objext conftest$ac_exeext
3323 if { (eval echo "$as_me:3323: \"$ac_link\"") >&5
3324   (eval $ac_link) 2>&5
3325   ac_status=$?
3326   echo "$as_me:3326: \$? = $ac_status" >&5
3327   (exit $ac_status); } &&
3328          { ac_try='test -s conftest$ac_exeext'
3329   { (eval echo "$as_me:3329: \"$ac_try\"") >&5
3330   (eval $ac_try) 2>&5
3331   ac_status=$?
3332   echo "$as_me:3332: \$? = $ac_status" >&5
3333   (exit $ac_status); }; }; then
3334   ac_cv_lib_intl_strftime=yes
3335 else
3336   echo "$as_me: failed program was:" >&5
3337 cat conftest.$ac_ext >&5
3338 ac_cv_lib_intl_strftime=no
3339 fi
3340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3341 LIBS=$ac_check_lib_save_LIBS
3342 fi
3343 echo "$as_me:3343: result: $ac_cv_lib_intl_strftime" >&5
3344 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
3345 if test $ac_cv_lib_intl_strftime = yes; then
3346   cat >>confdefs.h <<\EOF
3347 #define HAVE_STRFTIME 1
3348 EOF
3349
3350 LIBS="-lintl $LIBS"
3351 fi
3352
3353 fi
3354 done
3355
3356 for ac_func in mktime strerror
3357 do
3358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3359 echo "$as_me:3359: checking for $ac_func" >&5
3360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3361 if eval "test \"\${$as_ac_var+set}\" = set"; then
3362   echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364   cat >conftest.$ac_ext <<_ACEOF
3365 #line 3365 "configure"
3366 #include "confdefs.h"
3367 /* System header to define __stub macros and hopefully few prototypes,
3368     which can conflict with char $ac_func (); below.  */
3369 #include <assert.h>
3370 /* Override any gcc2 internal prototype to avoid an error.  */
3371 #ifdef __cplusplus
3372 extern "C"
3373 #endif
3374 /* We use char because int might match the return type of a gcc2
3375    builtin and then its argument prototype would still apply.  */
3376 char $ac_func ();
3377 char (*f) ();
3378
3379 int
3380 main ()
3381 {
3382 /* The GNU C library defines this for functions which it implements
3383     to always fail with ENOSYS.  Some functions are actually named
3384     something starting with __ and the normal name is an alias.  */
3385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3386 choke me
3387 #else
3388 f = $ac_func;
3389 #endif
3390
3391   ;
3392   return 0;
3393 }
3394 _ACEOF
3395 rm -f conftest.$ac_objext conftest$ac_exeext
3396 if { (eval echo "$as_me:3396: \"$ac_link\"") >&5
3397   (eval $ac_link) 2>&5
3398   ac_status=$?
3399   echo "$as_me:3399: \$? = $ac_status" >&5
3400   (exit $ac_status); } &&
3401          { ac_try='test -s conftest$ac_exeext'
3402   { (eval echo "$as_me:3402: \"$ac_try\"") >&5
3403   (eval $ac_try) 2>&5
3404   ac_status=$?
3405   echo "$as_me:3405: \$? = $ac_status" >&5
3406   (exit $ac_status); }; }; then
3407   eval "$as_ac_var=yes"
3408 else
3409   echo "$as_me: failed program was:" >&5
3410 cat conftest.$ac_ext >&5
3411 eval "$as_ac_var=no"
3412 fi
3413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3414 fi
3415 echo "$as_me:3415: result: `eval echo '${'$as_ac_var'}'`" >&5
3416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3417 if test `eval echo '${'$as_ac_var'}'` = yes; then
3418   cat >>confdefs.h <<EOF
3419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3420 EOF
3421
3422 fi
3423 done
3424
3425 eval DATADIR=$datadir
3426
3427 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"
3428 cat >confcache <<\_ACEOF
3429 # This file is a shell script that caches the results of configure
3430 # tests run on this system so they can be shared between configure
3431 # scripts and configure runs, see configure's option --config-cache.
3432 # It is not useful on other systems.  If it contains results you don't
3433 # want to keep, you may remove or edit it.
3434 #
3435 # config.status only pays attention to the cache file if you give it
3436 # the --recheck option to rerun configure.
3437 #
3438 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3439 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3440 # following values.
3441
3442 _ACEOF
3443
3444 # The following way of writing the cache mishandles newlines in values,
3445 # but we know of no workaround that is simple, portable, and efficient.
3446 # So, don't put newlines in cache variables' values.
3447 # Ultrix sh set writes to stderr and can't be redirected directly,
3448 # and sets the high bit in the cache file unless we assign to the vars.
3449 {
3450   (set) 2>&1 |
3451     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3452     *ac_space=\ *)
3453       # `set' does not quote correctly, so add quotes (double-quote
3454       # substitution turns \\\\ into \\, and sed turns \\ into \).
3455       sed -n \
3456         "s/'/'\\\\''/g;
3457           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3458       ;;
3459     *)
3460       # `set' quotes correctly as required by POSIX, so do not add quotes.
3461       sed -n \
3462         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3463       ;;
3464     esac;
3465 } |
3466   sed '
3467      t clear
3468      : clear
3469      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3470      t end
3471      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3472      : end' >>confcache
3473 if cmp -s $cache_file confcache; then :; else
3474   if test -w $cache_file; then
3475     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3476     cat confcache >$cache_file
3477   else
3478     echo "not updating unwritable cache $cache_file"
3479   fi
3480 fi
3481 rm -f confcache
3482
3483 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3484 # Let make expand exec_prefix.
3485 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3486
3487 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3488 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3489 # trailing colons and then remove the whole line if VPATH becomes empty
3490 # (actually we leave an empty line to preserve line numbers).
3491 if test "x$srcdir" = x.; then
3492   ac_vpsub='/^[         ]*VPATH[        ]*=/{
3493 s/:*\$(srcdir):*/:/;
3494 s/:*\${srcdir}:*/:/;
3495 s/:*@srcdir@:*/:/;
3496 s/^\([^=]*=[    ]*\):*/\1/;
3497 s/:*$//;
3498 s/^[^=]*=[      ]*$//;
3499 }'
3500 fi
3501
3502 DEFS=-DHAVE_CONFIG_H
3503
3504 : ${CONFIG_STATUS=./config.status}
3505 ac_clean_files_save=$ac_clean_files
3506 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3507 { echo "$as_me:3507: creating $CONFIG_STATUS" >&5
3508 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3509 cat >$CONFIG_STATUS <<_ACEOF
3510 #! $SHELL
3511 # Generated automatically by configure.
3512 # Run this file to recreate the current configuration.
3513 # Compiler output produced by configure, useful for debugging
3514 # configure, is in config.log if it exists.
3515
3516 debug=false
3517 SHELL=\${CONFIG_SHELL-$SHELL}
3518 ac_cs_invocation="\$0 \$@"
3519
3520 _ACEOF
3521
3522 cat >>$CONFIG_STATUS <<\_ACEOF
3523 # Be Bourne compatible
3524 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3525   emulate sh
3526   NULLCMD=:
3527 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3528   set -o posix
3529 fi
3530
3531 # Name of the executable.
3532 as_me=`echo "$0" |sed 's,.*[\\/],,'`
3533
3534 if expr a : '\(a\)' >/dev/null 2>&1; then
3535   as_expr=expr
3536 else
3537   as_expr=false
3538 fi
3539
3540 rm -f conf$$ conf$$.exe conf$$.file
3541 echo >conf$$.file
3542 if ln -s conf$$.file conf$$ 2>/dev/null; then
3543   # We could just check for DJGPP; but this test a) works b) is more generic
3544   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3545   if test -f conf$$.exe; then
3546     # Don't use ln at all; we don't have any links
3547     as_ln_s='cp -p'
3548   else
3549     as_ln_s='ln -s'
3550   fi
3551 elif ln conf$$.file conf$$ 2>/dev/null; then
3552   as_ln_s=ln
3553 else
3554   as_ln_s='cp -p'
3555 fi
3556 rm -f conf$$ conf$$.exe conf$$.file
3557
3558 as_executable_p="test -f"
3559
3560 # Support unset when possible.
3561 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3562   as_unset=unset
3563 else
3564   as_unset=false
3565 fi
3566
3567 # NLS nuisances.
3568 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3569 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3570 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3571 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3572 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3573 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3574 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3575 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3576
3577 # IFS
3578 # We need space, tab and new line, in precisely that order.
3579 as_nl='
3580 '
3581 IFS="   $as_nl"
3582
3583 # CDPATH.
3584 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3585
3586 exec 6>&1
3587
3588 _ACEOF
3589
3590 # Files that config.status was made for.
3591 if test -n "$ac_config_files"; then
3592   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3593 fi
3594
3595 if test -n "$ac_config_headers"; then
3596   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3597 fi
3598
3599 if test -n "$ac_config_links"; then
3600   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3601 fi
3602
3603 if test -n "$ac_config_commands"; then
3604   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3605 fi
3606
3607 cat >>$CONFIG_STATUS <<\EOF
3608
3609 ac_cs_usage="\
3610 \`$as_me' instantiates files from templates according to the
3611 current configuration.
3612
3613 Usage: $0 [OPTIONS] [FILE]...
3614
3615   -h, --help       print this help, then exit
3616   -V, --version    print version number, then exit
3617   -d, --debug      don't remove temporary files
3618       --recheck    update $as_me by reconfiguring in the same conditions
3619   --file=FILE[:TEMPLATE]
3620                    instantiate the configuration file FILE
3621   --header=FILE[:TEMPLATE]
3622                    instantiate the configuration header FILE
3623
3624 Configuration files:
3625 $config_files
3626
3627 Configuration headers:
3628 $config_headers
3629
3630 Report bugs to <bug-autoconf@gnu.org>."
3631 EOF
3632
3633 cat >>$CONFIG_STATUS <<EOF
3634 ac_cs_version="\\
3635 config.status
3636 configured by $0, generated by GNU Autoconf 2.52,
3637   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3638
3639 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3640 Free Software Foundation, Inc.
3641 This config.status script is free software; the Free Software Foundation
3642 gives unlimited permission to copy, distribute and modify it."
3643 srcdir=$srcdir
3644 INSTALL="$INSTALL"
3645 EOF
3646
3647 cat >>$CONFIG_STATUS <<\EOF
3648 # If no file are specified by the user, then we need to provide default
3649 # value.  By we need to know if files were specified by the user.
3650 ac_need_defaults=:
3651 while test $# != 0
3652 do
3653   case $1 in
3654   --*=*)
3655     ac_option=`expr "x$1" : 'x\([^=]*\)='`
3656     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3657     shift
3658     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3659     shift
3660     ;;
3661   -*);;
3662   *) # This is not an option, so the user has probably given explicit
3663      # arguments.
3664      ac_need_defaults=false;;
3665   esac
3666
3667   case $1 in
3668   # Handling of the options.
3669 EOF
3670 cat >>$CONFIG_STATUS <<EOF
3671   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3672     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3673     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3674 EOF
3675 cat >>$CONFIG_STATUS <<\EOF
3676   --version | --vers* | -V )
3677     echo "$ac_cs_version"; exit 0 ;;
3678   --he | --h)
3679     # Conflict between --help and --header
3680     { { echo "$as_me:3680: error: ambiguous option: $1
3681 Try \`$0 --help' for more information." >&5
3682 echo "$as_me: error: ambiguous option: $1
3683 Try \`$0 --help' for more information." >&2;}
3684    { (exit 1); exit 1; }; };;
3685   --help | --hel | -h )
3686     echo "$ac_cs_usage"; exit 0 ;;
3687   --debug | --d* | -d )
3688     debug=: ;;
3689   --file | --fil | --fi | --f )
3690     shift
3691     CONFIG_FILES="$CONFIG_FILES $1"
3692     ac_need_defaults=false;;
3693   --header | --heade | --head | --hea )
3694     shift
3695     CONFIG_HEADERS="$CONFIG_HEADERS $1"
3696     ac_need_defaults=false;;
3697
3698   # This is an error.
3699   -*) { { echo "$as_me:3699: error: unrecognized option: $1
3700 Try \`$0 --help' for more information." >&5
3701 echo "$as_me: error: unrecognized option: $1
3702 Try \`$0 --help' for more information." >&2;}
3703    { (exit 1); exit 1; }; } ;;
3704
3705   *) ac_config_targets="$ac_config_targets $1" ;;
3706
3707   esac
3708   shift
3709 done
3710
3711 exec 5>>config.log
3712 cat >&5 << _ACEOF
3713
3714 ## ----------------------- ##
3715 ## Running config.status.  ##
3716 ## ----------------------- ##
3717
3718 This file was extended by $as_me 2.52, executed with
3719   CONFIG_FILES    = $CONFIG_FILES
3720   CONFIG_HEADERS  = $CONFIG_HEADERS
3721   CONFIG_LINKS    = $CONFIG_LINKS
3722   CONFIG_COMMANDS = $CONFIG_COMMANDS
3723   > $ac_cs_invocation
3724 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3725
3726 _ACEOF
3727 EOF
3728
3729 cat >>$CONFIG_STATUS <<\EOF
3730 for ac_config_target in $ac_config_targets
3731 do
3732   case "$ac_config_target" in
3733   # Handling of arguments.
3734   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3735   "cpm.5" ) CONFIG_FILES="$CONFIG_FILES cpm.5" ;;
3736   "cpmchattr.1" ) CONFIG_FILES="$CONFIG_FILES cpmchattr.1" ;;
3737   "cpmchmod.1" ) CONFIG_FILES="$CONFIG_FILES cpmchmod.1" ;;
3738   "cpmcp.1" ) CONFIG_FILES="$CONFIG_FILES cpmcp.1" ;;
3739   "cpmls.1" ) CONFIG_FILES="$CONFIG_FILES cpmls.1" ;;
3740   "cpmrm.1" ) CONFIG_FILES="$CONFIG_FILES cpmrm.1" ;;
3741   "fsck.cpm.1" ) CONFIG_FILES="$CONFIG_FILES fsck.cpm.1" ;;
3742   "fsed.cpm.1" ) CONFIG_FILES="$CONFIG_FILES fsed.cpm.1" ;;
3743   "mkfs.cpm.1" ) CONFIG_FILES="$CONFIG_FILES mkfs.cpm.1" ;;
3744   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3745   *) { { echo "$as_me:3745: error: invalid argument: $ac_config_target" >&5
3746 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3747    { (exit 1); exit 1; }; };;
3748   esac
3749 done
3750
3751 # If the user did not use the arguments to specify the items to instantiate,
3752 # then the envvar interface is used.  Set only those that are not.
3753 # We use the long form for the default assignment because of an extremely
3754 # bizarre bug on SunOS 4.1.3.
3755 if $ac_need_defaults; then
3756   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3757   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3758 fi
3759
3760 # Create a temporary directory, and hook for its removal unless debugging.
3761 $debug ||
3762 {
3763   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3764   trap '{ (exit 1); exit 1; }' 1 2 13 15
3765 }
3766
3767 # Create a (secure) tmp directory for tmp files.
3768 : ${TMPDIR=/tmp}
3769 {
3770   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3771   test -n "$tmp" && test -d "$tmp"
3772 }  ||
3773 {
3774   tmp=$TMPDIR/cs$$-$RANDOM
3775   (umask 077 && mkdir $tmp)
3776 } ||
3777 {
3778    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3779    { (exit 1); exit 1; }
3780 }
3781
3782 EOF
3783
3784 cat >>$CONFIG_STATUS <<EOF
3785
3786 #
3787 # CONFIG_FILES section.
3788 #
3789
3790 # No need to generate the scripts if there are no CONFIG_FILES.
3791 # This happens for instance when ./config.status config.h
3792 if test -n "\$CONFIG_FILES"; then
3793   # Protect against being on the right side of a sed subst in config.status.
3794   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3795    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3796 s,@SHELL@,$SHELL,;t t
3797 s,@exec_prefix@,$exec_prefix,;t t
3798 s,@prefix@,$prefix,;t t
3799 s,@program_transform_name@,$program_transform_name,;t t
3800 s,@bindir@,$bindir,;t t
3801 s,@sbindir@,$sbindir,;t t
3802 s,@libexecdir@,$libexecdir,;t t
3803 s,@datadir@,$datadir,;t t
3804 s,@sysconfdir@,$sysconfdir,;t t
3805 s,@sharedstatedir@,$sharedstatedir,;t t
3806 s,@localstatedir@,$localstatedir,;t t
3807 s,@libdir@,$libdir,;t t
3808 s,@includedir@,$includedir,;t t
3809 s,@oldincludedir@,$oldincludedir,;t t
3810 s,@infodir@,$infodir,;t t
3811 s,@mandir@,$mandir,;t t
3812 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3813 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3814 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3815 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3816 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3817 s,@build_alias@,$build_alias,;t t
3818 s,@host_alias@,$host_alias,;t t
3819 s,@target_alias@,$target_alias,;t t
3820 s,@ECHO_C@,$ECHO_C,;t t
3821 s,@ECHO_N@,$ECHO_N,;t t
3822 s,@ECHO_T@,$ECHO_T,;t t
3823 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3824 s,@DEFS@,$DEFS,;t t
3825 s,@LIBS@,$LIBS,;t t
3826 s,@build@,$build,;t t
3827 s,@build_cpu@,$build_cpu,;t t
3828 s,@build_vendor@,$build_vendor,;t t
3829 s,@build_os@,$build_os,;t t
3830 s,@host@,$host,;t t
3831 s,@host_cpu@,$host_cpu,;t t
3832 s,@host_vendor@,$host_vendor,;t t
3833 s,@host_os@,$host_os,;t t
3834 s,@CC@,$CC,;t t
3835 s,@CFLAGS@,$CFLAGS,;t t
3836 s,@LDFLAGS@,$LDFLAGS,;t t
3837 s,@CPPFLAGS@,$CPPFLAGS,;t t
3838 s,@ac_ct_CC@,$ac_ct_CC,;t t
3839 s,@EXEEXT@,$EXEEXT,;t t
3840 s,@OBJEXT@,$OBJEXT,;t t
3841 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3842 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3843 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3844 s,@CPP@,$CPP,;t t
3845 s,@LIBOBJS@,$LIBOBJS,;t t
3846 s,@LDLIBS@,$LDLIBS,;t t
3847 s,@LDDEPS@,$LDDEPS,;t t
3848 s,@DEVICE@,$DEVICE,;t t
3849 s,@DATADIR@,$DATADIR,;t t
3850 s,@DISKDEFS@,$DISKDEFS,;t t
3851 s,@DEFFORMAT@,$DEFFORMAT,;t t
3852 s,@FSED_CPM@,$FSED_CPM,;t t
3853 s,@UPDATED@,$UPDATED,;t t
3854 CEOF
3855
3856 EOF
3857
3858   cat >>$CONFIG_STATUS <<\EOF
3859   # Split the substitutions into bite-sized pieces for seds with
3860   # small command number limits, like on Digital OSF/1 and HP-UX.
3861   ac_max_sed_lines=48
3862   ac_sed_frag=1 # Number of current file.
3863   ac_beg=1 # First line for current file.
3864   ac_end=$ac_max_sed_lines # Line after last line for current file.
3865   ac_more_lines=:
3866   ac_sed_cmds=
3867   while $ac_more_lines; do
3868     if test $ac_beg -gt 1; then
3869       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3870     else
3871       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3872     fi
3873     if test ! -s $tmp/subs.frag; then
3874       ac_more_lines=false
3875     else
3876       # The purpose of the label and of the branching condition is to
3877       # speed up the sed processing (if there are no `@' at all, there
3878       # is no need to browse any of the substitutions).
3879       # These are the two extra sed commands mentioned above.
3880       (echo ':t
3881   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3882       if test -z "$ac_sed_cmds"; then
3883         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3884       else
3885         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3886       fi
3887       ac_sed_frag=`expr $ac_sed_frag + 1`
3888       ac_beg=$ac_end
3889       ac_end=`expr $ac_end + $ac_max_sed_lines`
3890     fi
3891   done
3892   if test -z "$ac_sed_cmds"; then
3893     ac_sed_cmds=cat
3894   fi
3895 fi # test -n "$CONFIG_FILES"
3896
3897 EOF
3898 cat >>$CONFIG_STATUS <<\EOF
3899 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3900   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3901   case $ac_file in
3902   - | *:- | *:-:* ) # input from stdin
3903         cat >$tmp/stdin
3904         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3905         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3906   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3907         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3908   * )   ac_file_in=$ac_file.in ;;
3909   esac
3910
3911   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3912   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3913          X"$ac_file" : 'X\(//\)[^/]' \| \
3914          X"$ac_file" : 'X\(//\)$' \| \
3915          X"$ac_file" : 'X\(/\)' \| \
3916          .     : '\(.\)' 2>/dev/null ||
3917 echo X"$ac_file" |
3918     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3919           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3920           /^X\(\/\/\)$/{ s//\1/; q; }
3921           /^X\(\/\).*/{ s//\1/; q; }
3922           s/.*/./; q'`
3923   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3924     { case "$ac_dir" in
3925   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3926   *)                      as_incr_dir=.;;
3927 esac
3928 as_dummy="$ac_dir"
3929 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3930   case $as_mkdir_dir in
3931     # Skip DOS drivespec
3932     ?:) as_incr_dir=$as_mkdir_dir ;;
3933     *)
3934       as_incr_dir=$as_incr_dir/$as_mkdir_dir
3935       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3936     ;;
3937   esac
3938 done; }
3939
3940     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
3941     # A "../" for each directory in $ac_dir_suffix.
3942     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
3943   else
3944     ac_dir_suffix= ac_dots=
3945   fi
3946
3947   case $srcdir in
3948   .)  ac_srcdir=.
3949       if test -z "$ac_dots"; then
3950          ac_top_srcdir=.
3951       else
3952          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
3953       fi ;;
3954   [\\/]* | ?:[\\/]* )
3955       ac_srcdir=$srcdir$ac_dir_suffix;
3956       ac_top_srcdir=$srcdir ;;
3957   *) # Relative path.
3958     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
3959     ac_top_srcdir=$ac_dots$srcdir ;;
3960   esac
3961
3962   case $INSTALL in
3963   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3964   *) ac_INSTALL=$ac_dots$INSTALL ;;
3965   esac
3966
3967   if test x"$ac_file" != x-; then
3968     { echo "$as_me:3968: creating $ac_file" >&5
3969 echo "$as_me: creating $ac_file" >&6;}
3970     rm -f "$ac_file"
3971   fi
3972   # Let's still pretend it is `configure' which instantiates (i.e., don't
3973   # use $as_me), people would be surprised to read:
3974   #    /* config.h.  Generated automatically by config.status.  */
3975   configure_input="Generated automatically from `echo $ac_file_in |
3976                                                  sed 's,.*/,,'` by configure."
3977
3978   # First look for the input files in the build tree, otherwise in the
3979   # src tree.
3980   ac_file_inputs=`IFS=:
3981     for f in $ac_file_in; do
3982       case $f in
3983       -) echo $tmp/stdin ;;
3984       [\\/$]*)
3985          # Absolute (can't be DOS-style, as IFS=:)
3986          test -f "$f" || { { echo "$as_me:3986: error: cannot find input file: $f" >&5
3987 echo "$as_me: error: cannot find input file: $f" >&2;}
3988    { (exit 1); exit 1; }; }
3989          echo $f;;
3990       *) # Relative
3991          if test -f "$f"; then
3992            # Build tree
3993            echo $f
3994          elif test -f "$srcdir/$f"; then
3995            # Source tree
3996            echo $srcdir/$f
3997          else
3998            # /dev/null tree
3999            { { echo "$as_me:3999: error: cannot find input file: $f" >&5
4000 echo "$as_me: error: cannot find input file: $f" >&2;}
4001    { (exit 1); exit 1; }; }
4002          fi;;
4003       esac
4004     done` || { (exit 1); exit 1; }
4005 EOF
4006 cat >>$CONFIG_STATUS <<EOF
4007   sed "$ac_vpsub
4008 $extrasub
4009 EOF
4010 cat >>$CONFIG_STATUS <<\EOF
4011 :t
4012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4013 s,@configure_input@,$configure_input,;t t
4014 s,@srcdir@,$ac_srcdir,;t t
4015 s,@top_srcdir@,$ac_top_srcdir,;t t
4016 s,@INSTALL@,$ac_INSTALL,;t t
4017 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4018   rm -f $tmp/stdin
4019   if test x"$ac_file" != x-; then
4020     mv $tmp/out $ac_file
4021   else
4022     cat $tmp/out
4023     rm -f $tmp/out
4024   fi
4025
4026 done
4027 EOF
4028 cat >>$CONFIG_STATUS <<\EOF
4029
4030 #
4031 # CONFIG_HEADER section.
4032 #
4033
4034 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4035 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4036 #
4037 # ac_d sets the value in "#define NAME VALUE" lines.
4038 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4039 ac_dB='[        ].*$,\1#\2'
4040 ac_dC=' '
4041 ac_dD=',;t'
4042 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4043 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4044 ac_uB='$,\1#\2define\3'
4045 ac_uC=' '
4046 ac_uD=',;t'
4047
4048 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4049   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4050   case $ac_file in
4051   - | *:- | *:-:* ) # input from stdin
4052         cat >$tmp/stdin
4053         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4054         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4055   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4056         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4057   * )   ac_file_in=$ac_file.in ;;
4058   esac
4059
4060   test x"$ac_file" != x- && { echo "$as_me:4060: creating $ac_file" >&5
4061 echo "$as_me: creating $ac_file" >&6;}
4062
4063   # First look for the input files in the build tree, otherwise in the
4064   # src tree.
4065   ac_file_inputs=`IFS=:
4066     for f in $ac_file_in; do
4067       case $f in
4068       -) echo $tmp/stdin ;;
4069       [\\/$]*)
4070          # Absolute (can't be DOS-style, as IFS=:)
4071          test -f "$f" || { { echo "$as_me:4071: error: cannot find input file: $f" >&5
4072 echo "$as_me: error: cannot find input file: $f" >&2;}
4073    { (exit 1); exit 1; }; }
4074          echo $f;;
4075       *) # Relative
4076          if test -f "$f"; then
4077            # Build tree
4078            echo $f
4079          elif test -f "$srcdir/$f"; then
4080            # Source tree
4081            echo $srcdir/$f
4082          else
4083            # /dev/null tree
4084            { { echo "$as_me:4084: error: cannot find input file: $f" >&5
4085 echo "$as_me: error: cannot find input file: $f" >&2;}
4086    { (exit 1); exit 1; }; }
4087          fi;;
4088       esac
4089     done` || { (exit 1); exit 1; }
4090   # Remove the trailing spaces.
4091   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
4092
4093 EOF
4094
4095 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4096 # `conftest.undefs', that substitutes the proper values into
4097 # config.h.in to produce config.h.  The first handles `#define'
4098 # templates, and the second `#undef' templates.
4099 # And first: Protect against being on the right side of a sed subst in
4100 # config.status.  Protect against being in an unquoted here document
4101 # in config.status.
4102 rm -f conftest.defines conftest.undefs
4103 # Using a here document instead of a string reduces the quoting nightmare.
4104 # Putting comments in sed scripts is not portable.
4105 #
4106 # `end' is used to avoid that the second main sed command (meant for
4107 # 0-ary CPP macros) applies to n-ary macro definitions.
4108 # See the Autoconf documentation for `clear'.
4109 cat >confdef2sed.sed <<\EOF
4110 s/[\\&,]/\\&/g
4111 s,[\\$`],\\&,g
4112 t clear
4113 : clear
4114 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
4115 t end
4116 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4117 : end
4118 EOF
4119 # If some macros were called several times there might be several times
4120 # the same #defines, which is useless.  Nevertheless, we may not want to
4121 # sort them, since we want the *last* AC-DEFINE to be honored.
4122 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4123 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4124 rm -f confdef2sed.sed
4125
4126 # This sed command replaces #undef with comments.  This is necessary, for
4127 # example, in the case of _POSIX_SOURCE, which is predefined and required
4128 # on some systems where configure will not decide to define it.
4129 cat >>conftest.undefs <<\EOF
4130 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4131 EOF
4132
4133 # Break up conftest.defines because some shells have a limit on the size
4134 # of here documents, and old seds have small limits too (100 cmds).
4135 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4136 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4137 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4138 echo '  :' >>$CONFIG_STATUS
4139 rm -f conftest.tail
4140 while grep . conftest.defines >/dev/null
4141 do
4142   # Write a limited-size here document to $tmp/defines.sed.
4143   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4144   # Speed up: don't consider the non `#define' lines.
4145   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
4146   # Work around the forget-to-reset-the-flag bug.
4147   echo 't clr' >>$CONFIG_STATUS
4148   echo ': clr' >>$CONFIG_STATUS
4149   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4150   echo 'CEOF
4151   sed -f $tmp/defines.sed $tmp/in >$tmp/out
4152   rm -f $tmp/in
4153   mv $tmp/out $tmp/in
4154 ' >>$CONFIG_STATUS
4155   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4156   rm -f conftest.defines
4157   mv conftest.tail conftest.defines
4158 done
4159 rm -f conftest.defines
4160 echo '  fi # egrep' >>$CONFIG_STATUS
4161 echo >>$CONFIG_STATUS
4162
4163 # Break up conftest.undefs because some shells have a limit on the size
4164 # of here documents, and old seds have small limits too (100 cmds).
4165 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
4166 rm -f conftest.tail
4167 while grep . conftest.undefs >/dev/null
4168 do
4169   # Write a limited-size here document to $tmp/undefs.sed.
4170   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4171   # Speed up: don't consider the non `#undef'
4172   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
4173   # Work around the forget-to-reset-the-flag bug.
4174   echo 't clr' >>$CONFIG_STATUS
4175   echo ': clr' >>$CONFIG_STATUS
4176   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4177   echo 'CEOF
4178   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4179   rm -f $tmp/in
4180   mv $tmp/out $tmp/in
4181 ' >>$CONFIG_STATUS
4182   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4183   rm -f conftest.undefs
4184   mv conftest.tail conftest.undefs
4185 done
4186 rm -f conftest.undefs
4187
4188 cat >>$CONFIG_STATUS <<\EOF
4189   # Let's still pretend it is `configure' which instantiates (i.e., don't
4190   # use $as_me), people would be surprised to read:
4191   #    /* config.h.  Generated automatically by config.status.  */
4192   if test x"$ac_file" = x-; then
4193     echo "/* Generated automatically by configure.  */" >$tmp/config.h
4194   else
4195     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
4196   fi
4197   cat $tmp/in >>$tmp/config.h
4198   rm -f $tmp/in
4199   if test x"$ac_file" != x-; then
4200     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4201       { echo "$as_me:4201: $ac_file is unchanged" >&5
4202 echo "$as_me: $ac_file is unchanged" >&6;}
4203     else
4204       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4205          X"$ac_file" : 'X\(//\)[^/]' \| \
4206          X"$ac_file" : 'X\(//\)$' \| \
4207          X"$ac_file" : 'X\(/\)' \| \
4208          .     : '\(.\)' 2>/dev/null ||
4209 echo X"$ac_file" |
4210     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4211           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4212           /^X\(\/\/\)$/{ s//\1/; q; }
4213           /^X\(\/\).*/{ s//\1/; q; }
4214           s/.*/./; q'`
4215       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4216         { case "$ac_dir" in
4217   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4218   *)                      as_incr_dir=.;;
4219 esac
4220 as_dummy="$ac_dir"
4221 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4222   case $as_mkdir_dir in
4223     # Skip DOS drivespec
4224     ?:) as_incr_dir=$as_mkdir_dir ;;
4225     *)
4226       as_incr_dir=$as_incr_dir/$as_mkdir_dir
4227       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4228     ;;
4229   esac
4230 done; }
4231
4232       fi
4233       rm -f $ac_file
4234       mv $tmp/config.h $ac_file
4235     fi
4236   else
4237     cat $tmp/config.h
4238     rm -f $tmp/config.h
4239   fi
4240 done
4241 EOF
4242
4243 cat >>$CONFIG_STATUS <<\EOF
4244
4245 { (exit 0); exit 0; }
4246 EOF
4247 chmod +x $CONFIG_STATUS
4248 ac_clean_files=$ac_clean_files_save
4249
4250 # configure is writing to config.log, and then calls config.status.
4251 # config.status does its own redirection, appending to config.log.
4252 # Unfortunately, on DOS this fails, as config.log is still kept open
4253 # by configure, so config.status won't be able to write to it; its
4254 # output is simply discarded.  So we exec the FD to /dev/null,
4255 # effectively closing config.log, so it can be properly (re)opened and
4256 # appended to by config.status.  When coming back to configure, we
4257 # need to make the FD available again.
4258 if test "$no_create" != yes; then
4259   ac_cs_success=:
4260   exec 5>/dev/null
4261   $SHELL $CONFIG_STATUS || ac_cs_success=false
4262   exec 5>>config.log
4263   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4264   # would make configure fail if this is the last instruction.
4265   $ac_cs_success || { (exit 1); exit 1; }
4266 fi
4267