b83c502dd10cf3697391fa96b4621ba5734f70e1
[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 for ac_hdr in sys/times.h
1247 do
1248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1250 echo "configure:1251: checking for $ac_hdr" >&5
1251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1252   echo $ac_n "(cached) $ac_c" 1>&6
1253 else
1254   cat > conftest.$ac_ext <<EOF
1255 #line 1256 "configure"
1256 #include "confdefs.h"
1257 #include <$ac_hdr>
1258 EOF
1259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1260 { (eval echo configure:1261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1262 if test -z "$ac_err"; then
1263   rm -rf conftest*
1264   eval "ac_cv_header_$ac_safe=yes"
1265 else
1266   echo "$ac_err" >&5
1267   echo "configure: failed program was:" >&5
1268   cat conftest.$ac_ext >&5
1269   rm -rf conftest*
1270   eval "ac_cv_header_$ac_safe=no"
1271 fi
1272 rm -f conftest*
1273 fi
1274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1275   echo "$ac_t""yes" 1>&6
1276     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1277   cat >> confdefs.h <<EOF
1278 #define $ac_tr_hdr 1
1279 EOF
1280  
1281 else
1282   echo "$ac_t""no" 1>&6
1283 fi
1284 done
1285
1286 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
1287 echo "configure:1288: checking for main in -lwrap" >&5
1288 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
1289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1290   echo $ac_n "(cached) $ac_c" 1>&6
1291 else
1292   ac_save_LIBS="$LIBS"
1293 LIBS="-lwrap  $LIBS"
1294 cat > conftest.$ac_ext <<EOF
1295 #line 1296 "configure"
1296 #include "confdefs.h"
1297
1298 int main() {
1299 main()
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   LIBS="$LIBS -lwrap"
1318 else
1319   echo "$ac_t""no" 1>&6
1320 fi
1321
1322 echo $ac_n "checking for bzCompressInit in -lbz2""... $ac_c" 1>&6
1323 echo "configure:1324: checking for bzCompressInit in -lbz2" >&5
1324 ac_lib_var=`echo bz2'_'bzCompressInit | sed 'y%./+-%__p_%'`
1325 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1326   echo $ac_n "(cached) $ac_c" 1>&6
1327 else
1328   ac_save_LIBS="$LIBS"
1329 LIBS="-lbz2  $LIBS"
1330 cat > conftest.$ac_ext <<EOF
1331 #line 1332 "configure"
1332 #include "confdefs.h"
1333 /* Override any gcc2 internal prototype to avoid an error.  */
1334 /* We use char because int might match the return type of a gcc2
1335     builtin and then its argument prototype would still apply.  */
1336 char bzCompressInit();
1337
1338 int main() {
1339 bzCompressInit()
1340 ; return 0; }
1341 EOF
1342 if { (eval echo configure:1343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1343   rm -rf conftest*
1344   eval "ac_cv_lib_$ac_lib_var=yes"
1345 else
1346   echo "configure: failed program was:" >&5
1347   cat conftest.$ac_ext >&5
1348   rm -rf conftest*
1349   eval "ac_cv_lib_$ac_lib_var=no"
1350 fi
1351 rm -f conftest*
1352 LIBS="$ac_save_LIBS"
1353
1354 fi
1355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1356   echo "$ac_t""yes" 1>&6
1357     ac_tr_lib=HAVE_LIB`echo bz2 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1358     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1359   cat >> confdefs.h <<EOF
1360 #define $ac_tr_lib 1
1361 EOF
1362
1363   LIBS="-lbz2 $LIBS"
1364
1365 else
1366   echo "$ac_t""no" 1>&6
1367 fi
1368
1369 if test "$ac_cv_lib_bz2_bzCompressInit" = "yes"; then
1370         for ac_hdr in bzlib.h
1371 do
1372 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1373 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1374 echo "configure:1375: checking for $ac_hdr" >&5
1375 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1376   echo $ac_n "(cached) $ac_c" 1>&6
1377 else
1378   cat > conftest.$ac_ext <<EOF
1379 #line 1380 "configure"
1380 #include "confdefs.h"
1381 #include <$ac_hdr>
1382 EOF
1383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1384 { (eval echo configure:1385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1386 if test -z "$ac_err"; then
1387   rm -rf conftest*
1388   eval "ac_cv_header_$ac_safe=yes"
1389 else
1390   echo "$ac_err" >&5
1391   echo "configure: failed program was:" >&5
1392   cat conftest.$ac_ext >&5
1393   rm -rf conftest*
1394   eval "ac_cv_header_$ac_safe=no"
1395 fi
1396 rm -f conftest*
1397 fi
1398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1399   echo "$ac_t""yes" 1>&6
1400     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1401   cat >> confdefs.h <<EOF
1402 #define $ac_tr_hdr 1
1403 EOF
1404  
1405 else
1406   echo "$ac_t""no" 1>&6
1407 fi
1408 done
1409
1410 fi
1411 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1412 echo "configure:1413: checking for ANSI C header files" >&5
1413 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1414   echo $ac_n "(cached) $ac_c" 1>&6
1415 else
1416   cat > conftest.$ac_ext <<EOF
1417 #line 1418 "configure"
1418 #include "confdefs.h"
1419 #include <stdlib.h>
1420 #include <stdarg.h>
1421 #include <string.h>
1422 #include <float.h>
1423 EOF
1424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1425 { (eval echo configure:1426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1427 if test -z "$ac_err"; then
1428   rm -rf conftest*
1429   ac_cv_header_stdc=yes
1430 else
1431   echo "$ac_err" >&5
1432   echo "configure: failed program was:" >&5
1433   cat conftest.$ac_ext >&5
1434   rm -rf conftest*
1435   ac_cv_header_stdc=no
1436 fi
1437 rm -f conftest*
1438
1439 if test $ac_cv_header_stdc = yes; then
1440   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1441 cat > conftest.$ac_ext <<EOF
1442 #line 1443 "configure"
1443 #include "confdefs.h"
1444 #include <string.h>
1445 EOF
1446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1447   egrep "memchr" >/dev/null 2>&1; then
1448   :
1449 else
1450   rm -rf conftest*
1451   ac_cv_header_stdc=no
1452 fi
1453 rm -f conftest*
1454
1455 fi
1456
1457 if test $ac_cv_header_stdc = yes; then
1458   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1459 cat > conftest.$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1462 #include <stdlib.h>
1463 EOF
1464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1465   egrep "free" >/dev/null 2>&1; then
1466   :
1467 else
1468   rm -rf conftest*
1469   ac_cv_header_stdc=no
1470 fi
1471 rm -f conftest*
1472
1473 fi
1474
1475 if test $ac_cv_header_stdc = yes; then
1476   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1477 if test "$cross_compiling" = yes; then
1478   :
1479 else
1480   cat > conftest.$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1483 #include <ctype.h>
1484 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1485 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1486 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1487 int main () { int i; for (i = 0; i < 256; i++)
1488 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1489 exit (0); }
1490
1491 EOF
1492 if { (eval echo configure:1493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1493 then
1494   :
1495 else
1496   echo "configure: failed program was:" >&5
1497   cat conftest.$ac_ext >&5
1498   rm -fr conftest*
1499   ac_cv_header_stdc=no
1500 fi
1501 rm -fr conftest*
1502 fi
1503
1504 fi
1505 fi
1506
1507 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1508 if test $ac_cv_header_stdc = yes; then
1509   cat >> confdefs.h <<\EOF
1510 #define STDC_HEADERS 1
1511 EOF
1512
1513 fi
1514
1515 if test "$ac_cv_header_stdc" = "no"; then
1516         echo "configure: warning: Your system doesn't seem to support ANSI C" 1>&2
1517 fi
1518 trap '' 1 2 15
1519 cat > confcache <<\EOF
1520 # This file is a shell script that caches the results of configure
1521 # tests run on this system so they can be shared between configure
1522 # scripts and configure runs.  It is not useful on other systems.
1523 # If it contains results you don't want to keep, you may remove or edit it.
1524 #
1525 # By default, configure uses ./config.cache as the cache file,
1526 # creating it if it does not exist already.  You can give configure
1527 # the --cache-file=FILE option to use a different cache file; that is
1528 # what configure does when it calls configure scripts in
1529 # subdirectories, so they share the cache.
1530 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1531 # config.status only pays attention to the cache file if you give it the
1532 # --recheck option to rerun configure.
1533 #
1534 EOF
1535 # The following way of writing the cache mishandles newlines in values,
1536 # but we know of no workaround that is simple, portable, and efficient.
1537 # So, don't put newlines in cache variables' values.
1538 # Ultrix sh set writes to stderr and can't be redirected directly,
1539 # and sets the high bit in the cache file unless we assign to the vars.
1540 (set) 2>&1 |
1541   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1542   *ac_space=\ *)
1543     # `set' does not quote correctly, so add quotes (double-quote substitution
1544     # turns \\\\ into \\, and sed turns \\ into \).
1545     sed -n \
1546       -e "s/'/'\\\\''/g" \
1547       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1548     ;;
1549   *)
1550     # `set' quotes correctly as required by POSIX, so do not add quotes.
1551     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1552     ;;
1553   esac >> confcache
1554 if cmp -s $cache_file confcache; then
1555   :
1556 else
1557   if test -w $cache_file; then
1558     echo "updating cache $cache_file"
1559     cat confcache > $cache_file
1560   else
1561     echo "not updating unwritable cache $cache_file"
1562   fi
1563 fi
1564 rm -f confcache
1565
1566 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1567
1568 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1569 # Let make expand exec_prefix.
1570 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1571
1572 # Any assignment to VPATH causes Sun make to only execute
1573 # the first set of double-colon rules, so remove it if not needed.
1574 # If there is a colon in the path, we need to keep it.
1575 if test "x$srcdir" = x.; then
1576   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1577 fi
1578
1579 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1580
1581 # Transform confdefs.h into DEFS.
1582 # Protect against shell expansion while executing Makefile rules.
1583 # Protect against Makefile macro expansion.
1584 cat > conftest.defs <<\EOF
1585 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1586 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1587 s%\[%\\&%g
1588 s%\]%\\&%g
1589 s%\$%$$%g
1590 EOF
1591 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1592 rm -f conftest.defs
1593
1594
1595 # Without the "./", some shells look in PATH for config.status.
1596 : ${CONFIG_STATUS=./config.status}
1597
1598 echo creating $CONFIG_STATUS
1599 rm -f $CONFIG_STATUS
1600 cat > $CONFIG_STATUS <<EOF
1601 #! /bin/sh
1602 # Generated automatically by configure.
1603 # Run this file to recreate the current configuration.
1604 # This directory was configured as follows,
1605 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1606 #
1607 # $0 $ac_configure_args
1608 #
1609 # Compiler output produced by configure, useful for debugging
1610 # configure, is in ./config.log if it exists.
1611
1612 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1613 for ac_option
1614 do
1615   case "\$ac_option" in
1616   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1617     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1618     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1619   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1620     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1621     exit 0 ;;
1622   -help | --help | --hel | --he | --h)
1623     echo "\$ac_cs_usage"; exit 0 ;;
1624   *) echo "\$ac_cs_usage"; exit 1 ;;
1625   esac
1626 done
1627
1628 ac_given_srcdir=$srcdir
1629 ac_given_INSTALL="$INSTALL"
1630
1631 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
1632 EOF
1633 cat >> $CONFIG_STATUS <<EOF
1634
1635 # Protect against being on the right side of a sed subst in config.status.
1636 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1637  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1638 $ac_vpsub
1639 $extrasub
1640 s%@SHELL@%$SHELL%g
1641 s%@CFLAGS@%$CFLAGS%g
1642 s%@CPPFLAGS@%$CPPFLAGS%g
1643 s%@CXXFLAGS@%$CXXFLAGS%g
1644 s%@FFLAGS@%$FFLAGS%g
1645 s%@DEFS@%$DEFS%g
1646 s%@LDFLAGS@%$LDFLAGS%g
1647 s%@LIBS@%$LIBS%g
1648 s%@exec_prefix@%$exec_prefix%g
1649 s%@prefix@%$prefix%g
1650 s%@program_transform_name@%$program_transform_name%g
1651 s%@bindir@%$bindir%g
1652 s%@sbindir@%$sbindir%g
1653 s%@libexecdir@%$libexecdir%g
1654 s%@datadir@%$datadir%g
1655 s%@sysconfdir@%$sysconfdir%g
1656 s%@sharedstatedir@%$sharedstatedir%g
1657 s%@localstatedir@%$localstatedir%g
1658 s%@libdir@%$libdir%g
1659 s%@includedir@%$includedir%g
1660 s%@oldincludedir@%$oldincludedir%g
1661 s%@infodir@%$infodir%g
1662 s%@mandir@%$mandir%g
1663 s%@ODEFS@%$ODEFS%g
1664 s%@TCL_INCLUDE@%$TCL_INCLUDE%g
1665 s%@TCL_LIB@%$TCL_LIB%g
1666 s%@CC@%$CC%g
1667 s%@CPP@%$CPP%g
1668 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1669 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1670 s%@INSTALL_DATA@%$INSTALL_DATA%g
1671 s%@RANLIB@%$RANLIB%g
1672 s%@TCLSH@%$TCLSH%g
1673
1674 CEOF
1675 EOF
1676
1677 cat >> $CONFIG_STATUS <<\EOF
1678
1679 # Split the substitutions into bite-sized pieces for seds with
1680 # small command number limits, like on Digital OSF/1 and HP-UX.
1681 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1682 ac_file=1 # Number of current file.
1683 ac_beg=1 # First line for current file.
1684 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1685 ac_more_lines=:
1686 ac_sed_cmds=""
1687 while $ac_more_lines; do
1688   if test $ac_beg -gt 1; then
1689     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1690   else
1691     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1692   fi
1693   if test ! -s conftest.s$ac_file; then
1694     ac_more_lines=false
1695     rm -f conftest.s$ac_file
1696   else
1697     if test -z "$ac_sed_cmds"; then
1698       ac_sed_cmds="sed -f conftest.s$ac_file"
1699     else
1700       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1701     fi
1702     ac_file=`expr $ac_file + 1`
1703     ac_beg=$ac_end
1704     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1705   fi
1706 done
1707 if test -z "$ac_sed_cmds"; then
1708   ac_sed_cmds=cat
1709 fi
1710 EOF
1711
1712 cat >> $CONFIG_STATUS <<EOF
1713
1714 CONFIG_FILES=\${CONFIG_FILES-"Makefile util/Makefile bfile/Makefile dfa/Makefile dict/Makefile isam/Makefile isamc/Makefile recctrl/Makefile rset/Makefile index/Makefile"}
1715 EOF
1716 cat >> $CONFIG_STATUS <<\EOF
1717 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1718   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1719   case "$ac_file" in
1720   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1721        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1722   *) ac_file_in="${ac_file}.in" ;;
1723   esac
1724
1725   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1726
1727   # Remove last slash and all that follows it.  Not all systems have dirname.
1728   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1729   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1730     # The file is in a subdirectory.
1731     test ! -d "$ac_dir" && mkdir "$ac_dir"
1732     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1733     # A "../" for each directory in $ac_dir_suffix.
1734     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1735   else
1736     ac_dir_suffix= ac_dots=
1737   fi
1738
1739   case "$ac_given_srcdir" in
1740   .)  srcdir=.
1741       if test -z "$ac_dots"; then top_srcdir=.
1742       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1743   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1744   *) # Relative path.
1745     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1746     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1747   esac
1748
1749   case "$ac_given_INSTALL" in
1750   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1751   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1752   esac
1753
1754   echo creating "$ac_file"
1755   rm -f "$ac_file"
1756   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1757   case "$ac_file" in
1758   *Makefile*) ac_comsub="1i\\
1759 # $configure_input" ;;
1760   *) ac_comsub= ;;
1761   esac
1762
1763   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1764   sed -e "$ac_comsub
1765 s%@configure_input@%$configure_input%g
1766 s%@srcdir@%$srcdir%g
1767 s%@top_srcdir@%$top_srcdir%g
1768 s%@INSTALL@%$INSTALL%g
1769 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1770 fi; done
1771 rm -f conftest.s*
1772
1773 EOF
1774 cat >> $CONFIG_STATUS <<EOF
1775
1776 EOF
1777 cat >> $CONFIG_STATUS <<\EOF
1778
1779 exit 0
1780 EOF
1781 chmod +x $CONFIG_STATUS
1782 rm -fr confdefs* $ac_clean_files
1783 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1784