copied from isamc.h, simplifying
[idzebra-moved-to-github.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-tclconfig        Path for tclConfig.sh"
16
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
20 build=NONE
21 cache_file=./config.cache
22 exec_prefix=NONE
23 host=NONE
24 no_create=
25 nonopt=NONE
26 no_recursion=
27 prefix=NONE
28 program_prefix=NONE
29 program_suffix=NONE
30 program_transform_name=s,x,x,
31 silent=
32 site=
33 srcdir=
34 target=NONE
35 verbose=
36 x_includes=NONE
37 x_libraries=NONE
38 bindir='${exec_prefix}/bin'
39 sbindir='${exec_prefix}/sbin'
40 libexecdir='${exec_prefix}/libexec'
41 datadir='${prefix}/share'
42 sysconfdir='${prefix}/etc'
43 sharedstatedir='${prefix}/com'
44 localstatedir='${prefix}/var'
45 libdir='${exec_prefix}/lib'
46 includedir='${prefix}/include'
47 oldincludedir='/usr/include'
48 infodir='${prefix}/info'
49 mandir='${prefix}/man'
50
51 # Initialize some other variables.
52 subdirs=
53 MFLAGS= MAKEFLAGS=
54 SHELL=${CONFIG_SHELL-/bin/sh}
55 # Maximum number of lines to put in a shell here document.
56 ac_max_here_lines=12
57
58 ac_prev=
59 for ac_option
60 do
61
62   # If the previous option needs an argument, assign it.
63   if test -n "$ac_prev"; then
64     eval "$ac_prev=\$ac_option"
65     ac_prev=
66     continue
67   fi
68
69   case "$ac_option" in
70   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71   *) ac_optarg= ;;
72   esac
73
74   # Accept the important Cygnus configure options, so we can diagnose typos.
75
76   case "$ac_option" in
77
78   -bindir | --bindir | --bindi | --bind | --bin | --bi)
79     ac_prev=bindir ;;
80   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81     bindir="$ac_optarg" ;;
82
83   -build | --build | --buil | --bui | --bu)
84     ac_prev=build ;;
85   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86     build="$ac_optarg" ;;
87
88   -cache-file | --cache-file | --cache-fil | --cache-fi \
89   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
90     ac_prev=cache_file ;;
91   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93     cache_file="$ac_optarg" ;;
94
95   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
96     ac_prev=datadir ;;
97   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
98   | --da=*)
99     datadir="$ac_optarg" ;;
100
101   -disable-* | --disable-*)
102     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103     # Reject names that are not valid shell variable names.
104     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
106     fi
107     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108     eval "enable_${ac_feature}=no" ;;
109
110   -enable-* | --enable-*)
111     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112     # Reject names that are not valid shell variable names.
113     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115     fi
116     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117     case "$ac_option" in
118       *=*) ;;
119       *) ac_optarg=yes ;;
120     esac
121     eval "enable_${ac_feature}='$ac_optarg'" ;;
122
123   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125   | --exec | --exe | --ex)
126     ac_prev=exec_prefix ;;
127   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129   | --exec=* | --exe=* | --ex=*)
130     exec_prefix="$ac_optarg" ;;
131
132   -gas | --gas | --ga | --g)
133     # Obsolete; use --with-gas.
134     with_gas=yes ;;
135
136   -help | --help | --hel | --he)
137     # Omit some internal or obsolete options to make the list less imposing.
138     # This message is too long to be a string in the A/UX 3.1 sh.
139     cat << EOF
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
142 Configuration:
143   --cache-file=FILE       cache test results in FILE
144   --help                  print this message
145   --no-create             do not create output files
146   --quiet, --silent       do not print \`checking...' messages
147   --version               print the version of autoconf that created configure
148 Directory and file names:
149   --prefix=PREFIX         install architecture-independent files in PREFIX
150                           [$ac_default_prefix]
151   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
152                           [same as prefix]
153   --bindir=DIR            user executables in DIR [EPREFIX/bin]
154   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
155   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
156   --datadir=DIR           read-only architecture-independent data in DIR
157                           [PREFIX/share]
158   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
159   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
160                           [PREFIX/com]
161   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
162   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
163   --includedir=DIR        C header files in DIR [PREFIX/include]
164   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
165   --infodir=DIR           info documentation in DIR [PREFIX/info]
166   --mandir=DIR            man documentation in DIR [PREFIX/man]
167   --srcdir=DIR            find the sources in DIR [configure dir or ..]
168   --program-prefix=PREFIX prepend PREFIX to installed program names
169   --program-suffix=SUFFIX append SUFFIX to installed program names
170   --program-transform-name=PROGRAM
171                           run sed PROGRAM on installed program names
172 EOF
173     cat << EOF
174 Host type:
175   --build=BUILD           configure for building on BUILD [BUILD=HOST]
176   --host=HOST             configure for HOST [guessed]
177   --target=TARGET         configure for TARGET [TARGET=HOST]
178 Features and packages:
179   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
180   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
181   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
182   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
183   --x-includes=DIR        X include files are in DIR
184   --x-libraries=DIR       X library files are in DIR
185 EOF
186     if test -n "$ac_help"; then
187       echo "--enable and --with options recognized:$ac_help"
188     fi
189     exit 0 ;;
190
191   -host | --host | --hos | --ho)
192     ac_prev=host ;;
193   -host=* | --host=* | --hos=* | --ho=*)
194     host="$ac_optarg" ;;
195
196   -includedir | --includedir | --includedi | --included | --include \
197   | --includ | --inclu | --incl | --inc)
198     ac_prev=includedir ;;
199   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200   | --includ=* | --inclu=* | --incl=* | --inc=*)
201     includedir="$ac_optarg" ;;
202
203   -infodir | --infodir | --infodi | --infod | --info | --inf)
204     ac_prev=infodir ;;
205   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206     infodir="$ac_optarg" ;;
207
208   -libdir | --libdir | --libdi | --libd)
209     ac_prev=libdir ;;
210   -libdir=* | --libdir=* | --libdi=* | --libd=*)
211     libdir="$ac_optarg" ;;
212
213   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214   | --libexe | --libex | --libe)
215     ac_prev=libexecdir ;;
216   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217   | --libexe=* | --libex=* | --libe=*)
218     libexecdir="$ac_optarg" ;;
219
220   -localstatedir | --localstatedir | --localstatedi | --localstated \
221   | --localstate | --localstat | --localsta | --localst \
222   | --locals | --local | --loca | --loc | --lo)
223     ac_prev=localstatedir ;;
224   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227     localstatedir="$ac_optarg" ;;
228
229   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230     ac_prev=mandir ;;
231   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232     mandir="$ac_optarg" ;;
233
234   -nfp | --nfp | --nf)
235     # Obsolete; use --without-fp.
236     with_fp=no ;;
237
238   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239   | --no-cr | --no-c)
240     no_create=yes ;;
241
242   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244     no_recursion=yes ;;
245
246   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248   | --oldin | --oldi | --old | --ol | --o)
249     ac_prev=oldincludedir ;;
250   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253     oldincludedir="$ac_optarg" ;;
254
255   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256     ac_prev=prefix ;;
257   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258     prefix="$ac_optarg" ;;
259
260   -program-prefix | --program-prefix | --program-prefi | --program-pref \
261   | --program-pre | --program-pr | --program-p)
262     ac_prev=program_prefix ;;
263   -program-prefix=* | --program-prefix=* | --program-prefi=* \
264   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265     program_prefix="$ac_optarg" ;;
266
267   -program-suffix | --program-suffix | --program-suffi | --program-suff \
268   | --program-suf | --program-su | --program-s)
269     ac_prev=program_suffix ;;
270   -program-suffix=* | --program-suffix=* | --program-suffi=* \
271   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272     program_suffix="$ac_optarg" ;;
273
274   -program-transform-name | --program-transform-name \
275   | --program-transform-nam | --program-transform-na \
276   | --program-transform-n | --program-transform- \
277   | --program-transform | --program-transfor \
278   | --program-transfo | --program-transf \
279   | --program-trans | --program-tran \
280   | --progr-tra | --program-tr | --program-t)
281     ac_prev=program_transform_name ;;
282   -program-transform-name=* | --program-transform-name=* \
283   | --program-transform-nam=* | --program-transform-na=* \
284   | --program-transform-n=* | --program-transform-=* \
285   | --program-transform=* | --program-transfor=* \
286   | --program-transfo=* | --program-transf=* \
287   | --program-trans=* | --program-tran=* \
288   | --progr-tra=* | --program-tr=* | --program-t=*)
289     program_transform_name="$ac_optarg" ;;
290
291   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292   | -silent | --silent | --silen | --sile | --sil)
293     silent=yes ;;
294
295   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296     ac_prev=sbindir ;;
297   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298   | --sbi=* | --sb=*)
299     sbindir="$ac_optarg" ;;
300
301   -sharedstatedir | --sharedstatedir | --sharedstatedi \
302   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303   | --sharedst | --shareds | --shared | --share | --shar \
304   | --sha | --sh)
305     ac_prev=sharedstatedir ;;
306   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309   | --sha=* | --sh=*)
310     sharedstatedir="$ac_optarg" ;;
311
312   -site | --site | --sit)
313     ac_prev=site ;;
314   -site=* | --site=* | --sit=*)
315     site="$ac_optarg" ;;
316
317   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
318     ac_prev=srcdir ;;
319   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320     srcdir="$ac_optarg" ;;
321
322   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323   | --syscon | --sysco | --sysc | --sys | --sy)
324     ac_prev=sysconfdir ;;
325   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327     sysconfdir="$ac_optarg" ;;
328
329   -target | --target | --targe | --targ | --tar | --ta | --t)
330     ac_prev=target ;;
331   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332     target="$ac_optarg" ;;
333
334   -v | -verbose | --verbose | --verbos | --verbo | --verb)
335     verbose=yes ;;
336
337   -version | --version | --versio | --versi | --vers)
338     echo "configure generated by autoconf version 2.13"
339     exit 0 ;;
340
341   -with-* | --with-*)
342     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343     # Reject names that are not valid shell variable names.
344     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
346     fi
347     ac_package=`echo $ac_package| sed 's/-/_/g'`
348     case "$ac_option" in
349       *=*) ;;
350       *) ac_optarg=yes ;;
351     esac
352     eval "with_${ac_package}='$ac_optarg'" ;;
353
354   -without-* | --without-*)
355     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356     # Reject names that are not valid shell variable names.
357     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359     fi
360     ac_package=`echo $ac_package| sed 's/-/_/g'`
361     eval "with_${ac_package}=no" ;;
362
363   --x)
364     # Obsolete; use --with-x.
365     with_x=yes ;;
366
367   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368   | --x-incl | --x-inc | --x-in | --x-i)
369     ac_prev=x_includes ;;
370   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372     x_includes="$ac_optarg" ;;
373
374   -x-libraries | --x-libraries | --x-librarie | --x-librari \
375   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376     ac_prev=x_libraries ;;
377   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379     x_libraries="$ac_optarg" ;;
380
381   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382     ;;
383
384   *)
385     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386       echo "configure: warning: $ac_option: invalid host type" 1>&2
387     fi
388     if test "x$nonopt" != xNONE; then
389       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
390     fi
391     nonopt="$ac_option"
392     ;;
393
394   esac
395 done
396
397 if test -n "$ac_prev"; then
398   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 fi
400
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402
403 # File descriptor usage:
404 # 0 standard input
405 # 1 file creation
406 # 2 errors and warnings
407 # 3 some systems may open it to /dev/tty
408 # 4 used on the Kubota Titan
409 # 6 checking for... messages and results
410 # 5 compiler messages saved in config.log
411 if test "$silent" = yes; then
412   exec 6>/dev/null
413 else
414   exec 6>&1
415 fi
416 exec 5>./config.log
417
418 echo "\
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
421 " 1>&5
422
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
425 ac_configure_args=
426 for ac_arg
427 do
428   case "$ac_arg" in
429   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430   | --no-cr | --no-c) ;;
431   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
436   esac
437 done
438
439 # NLS nuisances.
440 # Only set these to C if already set.  These must not be set unconditionally
441 # because not all systems understand e.g. LANG=C (notably SCO).
442 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443 # Non-C LC_CTYPE values break the ctype check.
444 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
445 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
448
449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
450 rm -rf conftest* confdefs.h
451 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 echo > confdefs.h
453
454 # A filename unique to this package, relative to the directory that
455 # configure is in, which we can look for to find out if srcdir is correct.
456 ac_unique_file=include/zebraver.h
457
458 # Find the source files, if location was not specified.
459 if test -z "$srcdir"; then
460   ac_srcdir_defaulted=yes
461   # Try the directory containing this script, then its parent.
462   ac_prog=$0
463   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
465   srcdir=$ac_confdir
466   if test ! -r $srcdir/$ac_unique_file; then
467     srcdir=..
468   fi
469 else
470   ac_srcdir_defaulted=no
471 fi
472 if test ! -r $srcdir/$ac_unique_file; then
473   if test "$ac_srcdir_defaulted" = yes; then
474     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
475   else
476     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477   fi
478 fi
479 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480
481 # Prefer explicitly selected file to automatically selected ones.
482 if test -z "$CONFIG_SITE"; then
483   if test "x$prefix" != xNONE; then
484     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
485   else
486     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487   fi
488 fi
489 for ac_site_file in $CONFIG_SITE; do
490   if test -r "$ac_site_file"; then
491     echo "loading site script $ac_site_file"
492     . "$ac_site_file"
493   fi
494 done
495
496 if test -r "$cache_file"; then
497   echo "loading cache $cache_file"
498   . $cache_file
499 else
500   echo "creating cache $cache_file"
501   > $cache_file
502 fi
503
504 ac_ext=c
505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506 ac_cpp='$CPP $CPPFLAGS'
507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509 cross_compiling=$ac_cv_prog_cc_cross
510
511 ac_exeext=
512 ac_objext=o
513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
516     ac_n= ac_c='
517 ' ac_t='        '
518   else
519     ac_n=-n ac_c= ac_t=
520   fi
521 else
522   ac_n= ac_c='\c' ac_t=
523 fi
524
525
526
527
528
529
530 # Extract the first word of "gcc", so it can be a program name with args.
531 set dummy gcc; ac_word=$2
532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
533 echo "configure:534: checking for $ac_word" >&5
534 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
535   echo $ac_n "(cached) $ac_c" 1>&6
536 else
537   if test -n "$CC"; then
538   ac_cv_prog_CC="$CC" # Let the user override the test.
539 else
540   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
541   ac_dummy="$PATH"
542   for ac_dir in $ac_dummy; do
543     test -z "$ac_dir" && ac_dir=.
544     if test -f $ac_dir/$ac_word; then
545       ac_cv_prog_CC="gcc"
546       break
547     fi
548   done
549   IFS="$ac_save_ifs"
550 fi
551 fi
552 CC="$ac_cv_prog_CC"
553 if test -n "$CC"; then
554   echo "$ac_t""$CC" 1>&6
555 else
556   echo "$ac_t""no" 1>&6
557 fi
558
559 if test -z "$CC"; then
560   # Extract the first word of "cc", so it can be a program name with args.
561 set dummy cc; ac_word=$2
562 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
563 echo "configure:564: checking for $ac_word" >&5
564 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
565   echo $ac_n "(cached) $ac_c" 1>&6
566 else
567   if test -n "$CC"; then
568   ac_cv_prog_CC="$CC" # Let the user override the test.
569 else
570   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
571   ac_prog_rejected=no
572   ac_dummy="$PATH"
573   for ac_dir in $ac_dummy; do
574     test -z "$ac_dir" && ac_dir=.
575     if test -f $ac_dir/$ac_word; then
576       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
577         ac_prog_rejected=yes
578         continue
579       fi
580       ac_cv_prog_CC="cc"
581       break
582     fi
583   done
584   IFS="$ac_save_ifs"
585 if test $ac_prog_rejected = yes; then
586   # We found a bogon in the path, so make sure we never use it.
587   set dummy $ac_cv_prog_CC
588   shift
589   if test $# -gt 0; then
590     # We chose a different compiler from the bogus one.
591     # However, it has the same basename, so the bogon will be chosen
592     # first if we set CC to just the basename; use the full file name.
593     shift
594     set dummy "$ac_dir/$ac_word" "$@"
595     shift
596     ac_cv_prog_CC="$@"
597   fi
598 fi
599 fi
600 fi
601 CC="$ac_cv_prog_CC"
602 if test -n "$CC"; then
603   echo "$ac_t""$CC" 1>&6
604 else
605   echo "$ac_t""no" 1>&6
606 fi
607
608   if test -z "$CC"; then
609     case "`uname -s`" in
610     *win32* | *WIN32*)
611       # Extract the first word of "cl", so it can be a program name with args.
612 set dummy cl; ac_word=$2
613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
614 echo "configure:615: checking for $ac_word" >&5
615 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
616   echo $ac_n "(cached) $ac_c" 1>&6
617 else
618   if test -n "$CC"; then
619   ac_cv_prog_CC="$CC" # Let the user override the test.
620 else
621   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
622   ac_dummy="$PATH"
623   for ac_dir in $ac_dummy; do
624     test -z "$ac_dir" && ac_dir=.
625     if test -f $ac_dir/$ac_word; then
626       ac_cv_prog_CC="cl"
627       break
628     fi
629   done
630   IFS="$ac_save_ifs"
631 fi
632 fi
633 CC="$ac_cv_prog_CC"
634 if test -n "$CC"; then
635   echo "$ac_t""$CC" 1>&6
636 else
637   echo "$ac_t""no" 1>&6
638 fi
639  ;;
640     esac
641   fi
642   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
643 fi
644
645 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
646 echo "configure:647: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
647
648 ac_ext=c
649 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
650 ac_cpp='$CPP $CPPFLAGS'
651 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
652 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
653 cross_compiling=$ac_cv_prog_cc_cross
654
655 cat > conftest.$ac_ext << EOF
656
657 #line 658 "configure"
658 #include "confdefs.h"
659
660 main(){return(0);}
661 EOF
662 if { (eval echo configure:663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
663   ac_cv_prog_cc_works=yes
664   # If we can't run a trivial program, we are probably using a cross compiler.
665   if (./conftest; exit) 2>/dev/null; then
666     ac_cv_prog_cc_cross=no
667   else
668     ac_cv_prog_cc_cross=yes
669   fi
670 else
671   echo "configure: failed program was:" >&5
672   cat conftest.$ac_ext >&5
673   ac_cv_prog_cc_works=no
674 fi
675 rm -fr conftest*
676 ac_ext=c
677 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
678 ac_cpp='$CPP $CPPFLAGS'
679 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
680 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
681 cross_compiling=$ac_cv_prog_cc_cross
682
683 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
684 if test $ac_cv_prog_cc_works = no; then
685   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
686 fi
687 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
688 echo "configure:689: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
689 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
690 cross_compiling=$ac_cv_prog_cc_cross
691
692 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
693 echo "configure:694: checking whether we are using GNU C" >&5
694 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
695   echo $ac_n "(cached) $ac_c" 1>&6
696 else
697   cat > conftest.c <<EOF
698 #ifdef __GNUC__
699   yes;
700 #endif
701 EOF
702 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
703   ac_cv_prog_gcc=yes
704 else
705   ac_cv_prog_gcc=no
706 fi
707 fi
708
709 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
710
711 if test $ac_cv_prog_gcc = yes; then
712   GCC=yes
713 else
714   GCC=
715 fi
716
717 ac_test_CFLAGS="${CFLAGS+set}"
718 ac_save_CFLAGS="$CFLAGS"
719 CFLAGS=
720 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
721 echo "configure:722: checking whether ${CC-cc} accepts -g" >&5
722 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
723   echo $ac_n "(cached) $ac_c" 1>&6
724 else
725   echo 'void f(){}' > conftest.c
726 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
727   ac_cv_prog_cc_g=yes
728 else
729   ac_cv_prog_cc_g=no
730 fi
731 rm -f conftest*
732
733 fi
734
735 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
736 if test "$ac_test_CFLAGS" = set; then
737   CFLAGS="$ac_save_CFLAGS"
738 elif test $ac_cv_prog_cc_g = yes; then
739   if test "$GCC" = yes; then
740     CFLAGS="-g -O2"
741   else
742     CFLAGS="-g"
743   fi
744 else
745   if test "$GCC" = yes; then
746     CFLAGS="-O2"
747   else
748     CFLAGS=
749   fi
750 fi
751
752 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
753 echo "configure:754: checking how to run the C preprocessor" >&5
754 # On Suns, sometimes $CPP names a directory.
755 if test -n "$CPP" && test -d "$CPP"; then
756   CPP=
757 fi
758 if test -z "$CPP"; then
759 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
760   echo $ac_n "(cached) $ac_c" 1>&6
761 else
762     # This must be in double quotes, not single quotes, because CPP may get
763   # substituted into the Makefile and "${CC-cc}" will confuse make.
764   CPP="${CC-cc} -E"
765   # On the NeXT, cc -E runs the code through the compiler's parser,
766   # not just through cpp.
767   cat > conftest.$ac_ext <<EOF
768 #line 769 "configure"
769 #include "confdefs.h"
770 #include <assert.h>
771 Syntax Error
772 EOF
773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
774 { (eval echo configure:775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
776 if test -z "$ac_err"; then
777   :
778 else
779   echo "$ac_err" >&5
780   echo "configure: failed program was:" >&5
781   cat conftest.$ac_ext >&5
782   rm -rf conftest*
783   CPP="${CC-cc} -E -traditional-cpp"
784   cat > conftest.$ac_ext <<EOF
785 #line 786 "configure"
786 #include "confdefs.h"
787 #include <assert.h>
788 Syntax Error
789 EOF
790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
791 { (eval echo configure:792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
793 if test -z "$ac_err"; then
794   :
795 else
796   echo "$ac_err" >&5
797   echo "configure: failed program was:" >&5
798   cat conftest.$ac_ext >&5
799   rm -rf conftest*
800   CPP="${CC-cc} -nologo -E"
801   cat > conftest.$ac_ext <<EOF
802 #line 803 "configure"
803 #include "confdefs.h"
804 #include <assert.h>
805 Syntax Error
806 EOF
807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
808 { (eval echo configure:809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
810 if test -z "$ac_err"; then
811   :
812 else
813   echo "$ac_err" >&5
814   echo "configure: failed program was:" >&5
815   cat conftest.$ac_ext >&5
816   rm -rf conftest*
817   CPP=/lib/cpp
818 fi
819 rm -f conftest*
820 fi
821 rm -f conftest*
822 fi
823 rm -f conftest*
824   ac_cv_prog_CPP="$CPP"
825 fi
826   CPP="$ac_cv_prog_CPP"
827 else
828   ac_cv_prog_CPP="$CPP"
829 fi
830 echo "$ac_t""$CPP" 1>&6
831
832 ac_aux_dir=
833 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
834   if test -f $ac_dir/install-sh; then
835     ac_aux_dir=$ac_dir
836     ac_install_sh="$ac_aux_dir/install-sh -c"
837     break
838   elif test -f $ac_dir/install.sh; then
839     ac_aux_dir=$ac_dir
840     ac_install_sh="$ac_aux_dir/install.sh -c"
841     break
842   fi
843 done
844 if test -z "$ac_aux_dir"; then
845   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
846 fi
847 ac_config_guess=$ac_aux_dir/config.guess
848 ac_config_sub=$ac_aux_dir/config.sub
849 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
850
851 # Find a good install program.  We prefer a C program (faster),
852 # so one script is as good as another.  But avoid the broken or
853 # incompatible versions:
854 # SysV /etc/install, /usr/sbin/install
855 # SunOS /usr/etc/install
856 # IRIX /sbin/install
857 # AIX /bin/install
858 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
859 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
860 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
861 # ./install, which can be erroneously created by make from ./install.sh.
862 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
863 echo "configure:864: checking for a BSD compatible install" >&5
864 if test -z "$INSTALL"; then
865 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
866   echo $ac_n "(cached) $ac_c" 1>&6
867 else
868     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
869   for ac_dir in $PATH; do
870     # Account for people who put trailing slashes in PATH elements.
871     case "$ac_dir/" in
872     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
873     *)
874       # OSF1 and SCO ODT 3.0 have their own names for install.
875       # Don't use installbsd from OSF since it installs stuff as root
876       # by default.
877       for ac_prog in ginstall scoinst install; do
878         if test -f $ac_dir/$ac_prog; then
879           if test $ac_prog = install &&
880             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
881             # AIX install.  It has an incompatible calling convention.
882             :
883           else
884             ac_cv_path_install="$ac_dir/$ac_prog -c"
885             break 2
886           fi
887         fi
888       done
889       ;;
890     esac
891   done
892   IFS="$ac_save_IFS"
893
894 fi
895   if test "${ac_cv_path_install+set}" = set; then
896     INSTALL="$ac_cv_path_install"
897   else
898     # As a last resort, use the slow shell script.  We don't cache a
899     # path for INSTALL within a source directory, because that will
900     # break other packages using the cache if that directory is
901     # removed, or if the path is relative.
902     INSTALL="$ac_install_sh"
903   fi
904 fi
905 echo "$ac_t""$INSTALL" 1>&6
906
907 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
908 # It thinks the first close brace ends the variable substitution.
909 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
910
911 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
912
913 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
914
915 # Extract the first word of "ranlib", so it can be a program name with args.
916 set dummy ranlib; ac_word=$2
917 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
918 echo "configure:919: checking for $ac_word" >&5
919 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
920   echo $ac_n "(cached) $ac_c" 1>&6
921 else
922   if test -n "$RANLIB"; then
923   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
924 else
925   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
926   ac_dummy="$PATH"
927   for ac_dir in $ac_dummy; do
928     test -z "$ac_dir" && ac_dir=.
929     if test -f $ac_dir/$ac_word; then
930       ac_cv_prog_RANLIB="ranlib"
931       break
932     fi
933   done
934   IFS="$ac_save_ifs"
935   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
936 fi
937 fi
938 RANLIB="$ac_cv_prog_RANLIB"
939 if test -n "$RANLIB"; then
940   echo "$ac_t""$RANLIB" 1>&6
941 else
942   echo "$ac_t""no" 1>&6
943 fi
944
945 TCL_LIB=""
946 TCL_INCLUDE=""
947 tclconfig=NONE
948 # Check whether --with-tclconfig or --without-tclconfig was given.
949 if test "${with_tclconfig+set}" = set; then
950   withval="$with_tclconfig"
951   tclconfig=$withval
952 fi
953
954 if test "x$tclconfig" = xNONE; then
955         saveprefix=${prefix}
956         if test "x$prefix" = xNONE; then
957 echo $ac_n "checking for prefix by $ac_c" 1>&6
958 # Extract the first word of "tclsh", so it can be a program name with args.
959 set dummy tclsh; ac_word=$2
960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
961 echo "configure:962: checking for $ac_word" >&5
962 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
963   echo $ac_n "(cached) $ac_c" 1>&6
964 else
965   case "$TCLSH" in
966   /*)
967   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
968   ;;
969   ?:/*)                  
970   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
971   ;;
972   *)
973   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
974   ac_dummy="$PATH"
975   for ac_dir in $ac_dummy; do 
976     test -z "$ac_dir" && ac_dir=.
977     if test -f $ac_dir/$ac_word; then
978       ac_cv_path_TCLSH="$ac_dir/$ac_word"
979       break
980     fi
981   done
982   IFS="$ac_save_ifs"
983   ;;
984 esac
985 fi
986 TCLSH="$ac_cv_path_TCLSH"
987 if test -n "$TCLSH"; then
988   echo "$ac_t""$TCLSH" 1>&6
989 else
990   echo "$ac_t""no" 1>&6
991 fi
992
993   if test -n "$ac_cv_path_TCLSH"; then
994     prefix=`echo $ac_cv_path_TCLSH|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
995   fi
996 fi
997
998         tclconfig=${prefix}/lib
999         prefix=${saveprefix}
1000 fi
1001 if test -r ${tclconfig}/tclConfig.sh; then
1002         echo $ac_n "checking for Tcl""... $ac_c" 1>&6
1003 echo "configure:1004: checking for Tcl" >&5
1004         . ${tclconfig}/tclConfig.sh
1005         if test -r ${tclconfig}/../generic/tcl.h; then
1006                 TCL_INCLUDE=-I${tclconfig}/../generic
1007                 TCL_LIB="$TCL_BUILD_LIB_SPEC $TCL_LIBS"
1008         else
1009                 TCL_INCLUDE=-I${TCL_PREFIX}/include
1010                 TCL_LIB="$TCL_LIB_SPEC $TCL_LIBS"
1011         fi
1012         SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
1013         SHLIB_LD=$TCL_SHLIB_LD
1014         SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
1015         SHLIB_VERSION=$TCL_SHLIB_VERSION
1016         echo "$ac_t""$TCL_VERSION" 1>&6
1017         ODEFS="-DHAVE_TCL_H=1"
1018 else
1019         ODEFS="-DHAVE_TCL_H=0"
1020 fi
1021 checkBoth=0
1022 echo $ac_n "checking for connect""... $ac_c" 1>&6
1023 echo "configure:1024: checking for connect" >&5
1024 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1025   echo $ac_n "(cached) $ac_c" 1>&6
1026 else
1027   cat > conftest.$ac_ext <<EOF
1028 #line 1029 "configure"
1029 #include "confdefs.h"
1030 /* System header to define __stub macros and hopefully few prototypes,
1031     which can conflict with char connect(); below.  */
1032 #include <assert.h>
1033 /* Override any gcc2 internal prototype to avoid an error.  */
1034 /* We use char because int might match the return type of a gcc2
1035     builtin and then its argument prototype would still apply.  */
1036 char connect();
1037
1038 int main() {
1039
1040 /* The GNU C library defines this for functions which it implements
1041     to always fail with ENOSYS.  Some functions are actually named
1042     something starting with __ and the normal name is an alias.  */
1043 #if defined (__stub_connect) || defined (__stub___connect)
1044 choke me
1045 #else
1046 connect();
1047 #endif
1048
1049 ; return 0; }
1050 EOF
1051 if { (eval echo configure:1052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1052   rm -rf conftest*
1053   eval "ac_cv_func_connect=yes"
1054 else
1055   echo "configure: failed program was:" >&5
1056   cat conftest.$ac_ext >&5
1057   rm -rf conftest*
1058   eval "ac_cv_func_connect=no"
1059 fi
1060 rm -f conftest*
1061 fi
1062
1063 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1064   echo "$ac_t""yes" 1>&6
1065   :
1066 else
1067   echo "$ac_t""no" 1>&6
1068 fi
1069
1070 if test "$ac_cv_func_connect" = "no"; then
1071         echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1072 echo "configure:1073: checking for main in -lsocket" >&5
1073 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1075   echo $ac_n "(cached) $ac_c" 1>&6
1076 else
1077   ac_save_LIBS="$LIBS"
1078 LIBS="-lsocket  $LIBS"
1079 cat > conftest.$ac_ext <<EOF
1080 #line 1081 "configure"
1081 #include "confdefs.h"
1082
1083 int main() {
1084 main()
1085 ; return 0; }
1086 EOF
1087 if { (eval echo configure:1088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1088   rm -rf conftest*
1089   eval "ac_cv_lib_$ac_lib_var=yes"
1090 else
1091   echo "configure: failed program was:" >&5
1092   cat conftest.$ac_ext >&5
1093   rm -rf conftest*
1094   eval "ac_cv_lib_$ac_lib_var=no"
1095 fi
1096 rm -f conftest*
1097 LIBS="$ac_save_LIBS"
1098
1099 fi
1100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1101   echo "$ac_t""yes" 1>&6
1102   LIBS="$LIBS -lsocket"
1103 else
1104   echo "$ac_t""no" 1>&6
1105 checkBoth=1
1106 fi
1107
1108 fi
1109 if test "$checkBoth" = "1"; then
1110         oldLibs=$LIBS
1111         LIBS="$LIBS -lsocket -lnsl"
1112         echo $ac_n "checking for accept""... $ac_c" 1>&6
1113 echo "configure:1114: checking for accept" >&5
1114 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
1115   echo $ac_n "(cached) $ac_c" 1>&6
1116 else
1117   cat > conftest.$ac_ext <<EOF
1118 #line 1119 "configure"
1119 #include "confdefs.h"
1120 /* System header to define __stub macros and hopefully few prototypes,
1121     which can conflict with char accept(); below.  */
1122 #include <assert.h>
1123 /* Override any gcc2 internal prototype to avoid an error.  */
1124 /* We use char because int might match the return type of a gcc2
1125     builtin and then its argument prototype would still apply.  */
1126 char accept();
1127
1128 int main() {
1129
1130 /* The GNU C library defines this for functions which it implements
1131     to always fail with ENOSYS.  Some functions are actually named
1132     something starting with __ and the normal name is an alias.  */
1133 #if defined (__stub_accept) || defined (__stub___accept)
1134 choke me
1135 #else
1136 accept();
1137 #endif
1138
1139 ; return 0; }
1140 EOF
1141 if { (eval echo configure:1142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1142   rm -rf conftest*
1143   eval "ac_cv_func_accept=yes"
1144 else
1145   echo "configure: failed program was:" >&5
1146   cat conftest.$ac_ext >&5
1147   rm -rf conftest*
1148   eval "ac_cv_func_accept=no"
1149 fi
1150 rm -f conftest*
1151 fi
1152
1153 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
1154   echo "$ac_t""yes" 1>&6
1155   :
1156 else
1157   echo "$ac_t""no" 1>&6
1158 LIBS=$oldLibs
1159 fi
1160
1161 fi
1162 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1163 echo "configure:1164: checking for gethostbyname" >&5
1164 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1165   echo $ac_n "(cached) $ac_c" 1>&6
1166 else
1167   cat > conftest.$ac_ext <<EOF
1168 #line 1169 "configure"
1169 #include "confdefs.h"
1170 /* System header to define __stub macros and hopefully few prototypes,
1171     which can conflict with char gethostbyname(); below.  */
1172 #include <assert.h>
1173 /* Override any gcc2 internal prototype to avoid an error.  */
1174 /* We use char because int might match the return type of a gcc2
1175     builtin and then its argument prototype would still apply.  */
1176 char gethostbyname();
1177
1178 int main() {
1179
1180 /* The GNU C library defines this for functions which it implements
1181     to always fail with ENOSYS.  Some functions are actually named
1182     something starting with __ and the normal name is an alias.  */
1183 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1184 choke me
1185 #else
1186 gethostbyname();
1187 #endif
1188
1189 ; return 0; }
1190 EOF
1191 if { (eval echo configure:1192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1192   rm -rf conftest*
1193   eval "ac_cv_func_gethostbyname=yes"
1194 else
1195   echo "configure: failed program was:" >&5
1196   cat conftest.$ac_ext >&5
1197   rm -rf conftest*
1198   eval "ac_cv_func_gethostbyname=no"
1199 fi
1200 rm -f conftest*
1201 fi
1202
1203 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1204   echo "$ac_t""yes" 1>&6
1205   :
1206 else
1207   echo "$ac_t""no" 1>&6
1208 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1209 echo "configure:1210: checking for main in -lnsl" >&5
1210 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1212   echo $ac_n "(cached) $ac_c" 1>&6
1213 else
1214   ac_save_LIBS="$LIBS"
1215 LIBS="-lnsl  $LIBS"
1216 cat > conftest.$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1219
1220 int main() {
1221 main()
1222 ; return 0; }
1223 EOF
1224 if { (eval echo configure:1225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1225   rm -rf conftest*
1226   eval "ac_cv_lib_$ac_lib_var=yes"
1227 else
1228   echo "configure: failed program was:" >&5
1229   cat conftest.$ac_ext >&5
1230   rm -rf conftest*
1231   eval "ac_cv_lib_$ac_lib_var=no"
1232 fi
1233 rm -f conftest*
1234 LIBS="$ac_save_LIBS"
1235
1236 fi
1237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1238   echo "$ac_t""yes" 1>&6
1239   LIBS="$LIBS -lnsl"
1240 else
1241   echo "$ac_t""no" 1>&6
1242 fi
1243
1244 fi
1245
1246 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
1247 echo "configure:1248: checking for main in -lwrap" >&5
1248 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
1249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1250   echo $ac_n "(cached) $ac_c" 1>&6
1251 else
1252   ac_save_LIBS="$LIBS"
1253 LIBS="-lwrap  $LIBS"
1254 cat > conftest.$ac_ext <<EOF
1255 #line 1256 "configure"
1256 #include "confdefs.h"
1257
1258 int main() {
1259 main()
1260 ; return 0; }
1261 EOF
1262 if { (eval echo configure:1263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1263   rm -rf conftest*
1264   eval "ac_cv_lib_$ac_lib_var=yes"
1265 else
1266   echo "configure: failed program was:" >&5
1267   cat conftest.$ac_ext >&5
1268   rm -rf conftest*
1269   eval "ac_cv_lib_$ac_lib_var=no"
1270 fi
1271 rm -f conftest*
1272 LIBS="$ac_save_LIBS"
1273
1274 fi
1275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1276   echo "$ac_t""yes" 1>&6
1277   LIBS="$LIBS -lwrap"
1278 else
1279   echo "$ac_t""no" 1>&6
1280 fi
1281
1282 echo $ac_n "checking for bzCompressInit in -lbz2""... $ac_c" 1>&6
1283 echo "configure:1284: checking for bzCompressInit in -lbz2" >&5
1284 ac_lib_var=`echo bz2'_'bzCompressInit | sed 'y%./+-%__p_%'`
1285 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1286   echo $ac_n "(cached) $ac_c" 1>&6
1287 else
1288   ac_save_LIBS="$LIBS"
1289 LIBS="-lbz2  $LIBS"
1290 cat > conftest.$ac_ext <<EOF
1291 #line 1292 "configure"
1292 #include "confdefs.h"
1293 /* Override any gcc2 internal prototype to avoid an error.  */
1294 /* We use char because int might match the return type of a gcc2
1295     builtin and then its argument prototype would still apply.  */
1296 char bzCompressInit();
1297
1298 int main() {
1299 bzCompressInit()
1300 ; return 0; }
1301 EOF
1302 if { (eval echo configure:1303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1303   rm -rf conftest*
1304   eval "ac_cv_lib_$ac_lib_var=yes"
1305 else
1306   echo "configure: failed program was:" >&5
1307   cat conftest.$ac_ext >&5
1308   rm -rf conftest*
1309   eval "ac_cv_lib_$ac_lib_var=no"
1310 fi
1311 rm -f conftest*
1312 LIBS="$ac_save_LIBS"
1313
1314 fi
1315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1316   echo "$ac_t""yes" 1>&6
1317     ac_tr_lib=HAVE_LIB`echo bz2 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1318     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1319   cat >> confdefs.h <<EOF
1320 #define $ac_tr_lib 1
1321 EOF
1322
1323   LIBS="-lbz2 $LIBS"
1324
1325 else
1326   echo "$ac_t""no" 1>&6
1327 fi
1328
1329 if test "$ac_cv_lib_bz2_bzCompressInit" = "yes"; then
1330         for ac_hdr in bzlib.h
1331 do
1332 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1334 echo "configure:1335: checking for $ac_hdr" >&5
1335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1336   echo $ac_n "(cached) $ac_c" 1>&6
1337 else
1338   cat > conftest.$ac_ext <<EOF
1339 #line 1340 "configure"
1340 #include "confdefs.h"
1341 #include <$ac_hdr>
1342 EOF
1343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1344 { (eval echo configure:1345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1346 if test -z "$ac_err"; then
1347   rm -rf conftest*
1348   eval "ac_cv_header_$ac_safe=yes"
1349 else
1350   echo "$ac_err" >&5
1351   echo "configure: failed program was:" >&5
1352   cat conftest.$ac_ext >&5
1353   rm -rf conftest*
1354   eval "ac_cv_header_$ac_safe=no"
1355 fi
1356 rm -f conftest*
1357 fi
1358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1359   echo "$ac_t""yes" 1>&6
1360     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1361   cat >> confdefs.h <<EOF
1362 #define $ac_tr_hdr 1
1363 EOF
1364  
1365 else
1366   echo "$ac_t""no" 1>&6
1367 fi
1368 done
1369
1370 fi
1371 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1372 echo "configure:1373: checking for ANSI C header files" >&5
1373 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1374   echo $ac_n "(cached) $ac_c" 1>&6
1375 else
1376   cat > conftest.$ac_ext <<EOF
1377 #line 1378 "configure"
1378 #include "confdefs.h"
1379 #include <stdlib.h>
1380 #include <stdarg.h>
1381 #include <string.h>
1382 #include <float.h>
1383 EOF
1384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1385 { (eval echo configure:1386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1387 if test -z "$ac_err"; then
1388   rm -rf conftest*
1389   ac_cv_header_stdc=yes
1390 else
1391   echo "$ac_err" >&5
1392   echo "configure: failed program was:" >&5
1393   cat conftest.$ac_ext >&5
1394   rm -rf conftest*
1395   ac_cv_header_stdc=no
1396 fi
1397 rm -f conftest*
1398
1399 if test $ac_cv_header_stdc = yes; then
1400   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1401 cat > conftest.$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1404 #include <string.h>
1405 EOF
1406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1407   egrep "memchr" >/dev/null 2>&1; then
1408   :
1409 else
1410   rm -rf conftest*
1411   ac_cv_header_stdc=no
1412 fi
1413 rm -f conftest*
1414
1415 fi
1416
1417 if test $ac_cv_header_stdc = yes; then
1418   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1419 cat > conftest.$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1422 #include <stdlib.h>
1423 EOF
1424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1425   egrep "free" >/dev/null 2>&1; then
1426   :
1427 else
1428   rm -rf conftest*
1429   ac_cv_header_stdc=no
1430 fi
1431 rm -f conftest*
1432
1433 fi
1434
1435 if test $ac_cv_header_stdc = yes; then
1436   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1437 if test "$cross_compiling" = yes; then
1438   :
1439 else
1440   cat > conftest.$ac_ext <<EOF
1441 #line 1442 "configure"
1442 #include "confdefs.h"
1443 #include <ctype.h>
1444 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1445 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1446 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1447 int main () { int i; for (i = 0; i < 256; i++)
1448 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1449 exit (0); }
1450
1451 EOF
1452 if { (eval echo configure:1453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1453 then
1454   :
1455 else
1456   echo "configure: failed program was:" >&5
1457   cat conftest.$ac_ext >&5
1458   rm -fr conftest*
1459   ac_cv_header_stdc=no
1460 fi
1461 rm -fr conftest*
1462 fi
1463
1464 fi
1465 fi
1466
1467 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1468 if test $ac_cv_header_stdc = yes; then
1469   cat >> confdefs.h <<\EOF
1470 #define STDC_HEADERS 1
1471 EOF
1472
1473 fi
1474
1475 if test "$ac_cv_header_stdc" = "no"; then
1476         echo "configure: warning: Your system doesn't seem to support ANSI C" 1>&2
1477 fi
1478 trap '' 1 2 15
1479 cat > confcache <<\EOF
1480 # This file is a shell script that caches the results of configure
1481 # tests run on this system so they can be shared between configure
1482 # scripts and configure runs.  It is not useful on other systems.
1483 # If it contains results you don't want to keep, you may remove or edit it.
1484 #
1485 # By default, configure uses ./config.cache as the cache file,
1486 # creating it if it does not exist already.  You can give configure
1487 # the --cache-file=FILE option to use a different cache file; that is
1488 # what configure does when it calls configure scripts in
1489 # subdirectories, so they share the cache.
1490 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1491 # config.status only pays attention to the cache file if you give it the
1492 # --recheck option to rerun configure.
1493 #
1494 EOF
1495 # The following way of writing the cache mishandles newlines in values,
1496 # but we know of no workaround that is simple, portable, and efficient.
1497 # So, don't put newlines in cache variables' values.
1498 # Ultrix sh set writes to stderr and can't be redirected directly,
1499 # and sets the high bit in the cache file unless we assign to the vars.
1500 (set) 2>&1 |
1501   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1502   *ac_space=\ *)
1503     # `set' does not quote correctly, so add quotes (double-quote substitution
1504     # turns \\\\ into \\, and sed turns \\ into \).
1505     sed -n \
1506       -e "s/'/'\\\\''/g" \
1507       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1508     ;;
1509   *)
1510     # `set' quotes correctly as required by POSIX, so do not add quotes.
1511     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1512     ;;
1513   esac >> confcache
1514 if cmp -s $cache_file confcache; then
1515   :
1516 else
1517   if test -w $cache_file; then
1518     echo "updating cache $cache_file"
1519     cat confcache > $cache_file
1520   else
1521     echo "not updating unwritable cache $cache_file"
1522   fi
1523 fi
1524 rm -f confcache
1525
1526 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1527
1528 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1529 # Let make expand exec_prefix.
1530 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1531
1532 # Any assignment to VPATH causes Sun make to only execute
1533 # the first set of double-colon rules, so remove it if not needed.
1534 # If there is a colon in the path, we need to keep it.
1535 if test "x$srcdir" = x.; then
1536   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1537 fi
1538
1539 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1540
1541 # Transform confdefs.h into DEFS.
1542 # Protect against shell expansion while executing Makefile rules.
1543 # Protect against Makefile macro expansion.
1544 cat > conftest.defs <<\EOF
1545 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1546 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1547 s%\[%\\&%g
1548 s%\]%\\&%g
1549 s%\$%$$%g
1550 EOF
1551 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1552 rm -f conftest.defs
1553
1554
1555 # Without the "./", some shells look in PATH for config.status.
1556 : ${CONFIG_STATUS=./config.status}
1557
1558 echo creating $CONFIG_STATUS
1559 rm -f $CONFIG_STATUS
1560 cat > $CONFIG_STATUS <<EOF
1561 #! /bin/sh
1562 # Generated automatically by configure.
1563 # Run this file to recreate the current configuration.
1564 # This directory was configured as follows,
1565 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1566 #
1567 # $0 $ac_configure_args
1568 #
1569 # Compiler output produced by configure, useful for debugging
1570 # configure, is in ./config.log if it exists.
1571
1572 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1573 for ac_option
1574 do
1575   case "\$ac_option" in
1576   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1577     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1578     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1579   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1580     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1581     exit 0 ;;
1582   -help | --help | --hel | --he | --h)
1583     echo "\$ac_cs_usage"; exit 0 ;;
1584   *) echo "\$ac_cs_usage"; exit 1 ;;
1585   esac
1586 done
1587
1588 ac_given_srcdir=$srcdir
1589 ac_given_INSTALL="$INSTALL"
1590
1591 trap 'rm -fr `echo "Makefile util/Makefile bfile/Makefile dfa/Makefile dict/Makefile isam/Makefile isamc/Makefile recctrl/Makefile rset/Makefile index/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1592 EOF
1593 cat >> $CONFIG_STATUS <<EOF
1594
1595 # Protect against being on the right side of a sed subst in config.status.
1596 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1597  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1598 $ac_vpsub
1599 $extrasub
1600 s%@SHELL@%$SHELL%g
1601 s%@CFLAGS@%$CFLAGS%g
1602 s%@CPPFLAGS@%$CPPFLAGS%g
1603 s%@CXXFLAGS@%$CXXFLAGS%g
1604 s%@FFLAGS@%$FFLAGS%g
1605 s%@DEFS@%$DEFS%g
1606 s%@LDFLAGS@%$LDFLAGS%g
1607 s%@LIBS@%$LIBS%g
1608 s%@exec_prefix@%$exec_prefix%g
1609 s%@prefix@%$prefix%g
1610 s%@program_transform_name@%$program_transform_name%g
1611 s%@bindir@%$bindir%g
1612 s%@sbindir@%$sbindir%g
1613 s%@libexecdir@%$libexecdir%g
1614 s%@datadir@%$datadir%g
1615 s%@sysconfdir@%$sysconfdir%g
1616 s%@sharedstatedir@%$sharedstatedir%g
1617 s%@localstatedir@%$localstatedir%g
1618 s%@libdir@%$libdir%g
1619 s%@includedir@%$includedir%g
1620 s%@oldincludedir@%$oldincludedir%g
1621 s%@infodir@%$infodir%g
1622 s%@mandir@%$mandir%g
1623 s%@ODEFS@%$ODEFS%g
1624 s%@TCL_INCLUDE@%$TCL_INCLUDE%g
1625 s%@TCL_LIB@%$TCL_LIB%g
1626 s%@CC@%$CC%g
1627 s%@CPP@%$CPP%g
1628 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1629 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1630 s%@INSTALL_DATA@%$INSTALL_DATA%g
1631 s%@RANLIB@%$RANLIB%g
1632 s%@TCLSH@%$TCLSH%g
1633
1634 CEOF
1635 EOF
1636
1637 cat >> $CONFIG_STATUS <<\EOF
1638
1639 # Split the substitutions into bite-sized pieces for seds with
1640 # small command number limits, like on Digital OSF/1 and HP-UX.
1641 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1642 ac_file=1 # Number of current file.
1643 ac_beg=1 # First line for current file.
1644 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1645 ac_more_lines=:
1646 ac_sed_cmds=""
1647 while $ac_more_lines; do
1648   if test $ac_beg -gt 1; then
1649     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1650   else
1651     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1652   fi
1653   if test ! -s conftest.s$ac_file; then
1654     ac_more_lines=false
1655     rm -f conftest.s$ac_file
1656   else
1657     if test -z "$ac_sed_cmds"; then
1658       ac_sed_cmds="sed -f conftest.s$ac_file"
1659     else
1660       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1661     fi
1662     ac_file=`expr $ac_file + 1`
1663     ac_beg=$ac_end
1664     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1665   fi
1666 done
1667 if test -z "$ac_sed_cmds"; then
1668   ac_sed_cmds=cat
1669 fi
1670 EOF
1671
1672 cat >> $CONFIG_STATUS <<EOF
1673
1674 CONFIG_FILES=\${CONFIG_FILES-"Makefile util/Makefile bfile/Makefile dfa/Makefile dict/Makefile isam/Makefile isamc/Makefile recctrl/Makefile rset/Makefile index/Makefile"}
1675 EOF
1676 cat >> $CONFIG_STATUS <<\EOF
1677 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1678   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1679   case "$ac_file" in
1680   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1681        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1682   *) ac_file_in="${ac_file}.in" ;;
1683   esac
1684
1685   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1686
1687   # Remove last slash and all that follows it.  Not all systems have dirname.
1688   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1689   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1690     # The file is in a subdirectory.
1691     test ! -d "$ac_dir" && mkdir "$ac_dir"
1692     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1693     # A "../" for each directory in $ac_dir_suffix.
1694     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1695   else
1696     ac_dir_suffix= ac_dots=
1697   fi
1698
1699   case "$ac_given_srcdir" in
1700   .)  srcdir=.
1701       if test -z "$ac_dots"; then top_srcdir=.
1702       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1703   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1704   *) # Relative path.
1705     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1706     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1707   esac
1708
1709   case "$ac_given_INSTALL" in
1710   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1711   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1712   esac
1713
1714   echo creating "$ac_file"
1715   rm -f "$ac_file"
1716   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1717   case "$ac_file" in
1718   *Makefile*) ac_comsub="1i\\
1719 # $configure_input" ;;
1720   *) ac_comsub= ;;
1721   esac
1722
1723   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1724   sed -e "$ac_comsub
1725 s%@configure_input@%$configure_input%g
1726 s%@srcdir@%$srcdir%g
1727 s%@top_srcdir@%$top_srcdir%g
1728 s%@INSTALL@%$INSTALL%g
1729 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1730 fi; done
1731 rm -f conftest.s*
1732
1733 EOF
1734 cat >> $CONFIG_STATUS <<EOF
1735
1736 EOF
1737 cat >> $CONFIG_STATUS <<\EOF
1738
1739 exit 0
1740 EOF
1741 chmod +x $CONFIG_STATUS
1742 rm -fr confdefs* $ac_clean_files
1743 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1744