Implemented TCL filter. Updated recctrl system.
[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         TCL_LIB="$TCL_LIB_SPEC $TCL_LIBS"
1006         TCL_INCLUDE=-I${TCL_PREFIX}/include
1007         SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
1008         SHLIB_LD=$TCL_SHLIB_LD
1009         SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
1010         SHLIB_VERSION=$TCL_SHLIB_VERSION
1011         echo "$ac_t""$TCL_VERSION" 1>&6
1012         ODEFS="-DHAVE_TCL_H=1"
1013 fi
1014 checkBoth=0
1015 echo $ac_n "checking for connect""... $ac_c" 1>&6
1016 echo "configure:1017: checking for connect" >&5
1017 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1018   echo $ac_n "(cached) $ac_c" 1>&6
1019 else
1020   cat > conftest.$ac_ext <<EOF
1021 #line 1022 "configure"
1022 #include "confdefs.h"
1023 /* System header to define __stub macros and hopefully few prototypes,
1024     which can conflict with char connect(); below.  */
1025 #include <assert.h>
1026 /* Override any gcc2 internal prototype to avoid an error.  */
1027 /* We use char because int might match the return type of a gcc2
1028     builtin and then its argument prototype would still apply.  */
1029 char connect();
1030
1031 int main() {
1032
1033 /* The GNU C library defines this for functions which it implements
1034     to always fail with ENOSYS.  Some functions are actually named
1035     something starting with __ and the normal name is an alias.  */
1036 #if defined (__stub_connect) || defined (__stub___connect)
1037 choke me
1038 #else
1039 connect();
1040 #endif
1041
1042 ; return 0; }
1043 EOF
1044 if { (eval echo configure:1045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1045   rm -rf conftest*
1046   eval "ac_cv_func_connect=yes"
1047 else
1048   echo "configure: failed program was:" >&5
1049   cat conftest.$ac_ext >&5
1050   rm -rf conftest*
1051   eval "ac_cv_func_connect=no"
1052 fi
1053 rm -f conftest*
1054 fi
1055
1056 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1057   echo "$ac_t""yes" 1>&6
1058   :
1059 else
1060   echo "$ac_t""no" 1>&6
1061 fi
1062
1063 if test "$ac_cv_func_connect" = "no"; then
1064         echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1065 echo "configure:1066: checking for main in -lsocket" >&5
1066 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1068   echo $ac_n "(cached) $ac_c" 1>&6
1069 else
1070   ac_save_LIBS="$LIBS"
1071 LIBS="-lsocket  $LIBS"
1072 cat > conftest.$ac_ext <<EOF
1073 #line 1074 "configure"
1074 #include "confdefs.h"
1075
1076 int main() {
1077 main()
1078 ; return 0; }
1079 EOF
1080 if { (eval echo configure:1081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1081   rm -rf conftest*
1082   eval "ac_cv_lib_$ac_lib_var=yes"
1083 else
1084   echo "configure: failed program was:" >&5
1085   cat conftest.$ac_ext >&5
1086   rm -rf conftest*
1087   eval "ac_cv_lib_$ac_lib_var=no"
1088 fi
1089 rm -f conftest*
1090 LIBS="$ac_save_LIBS"
1091
1092 fi
1093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1094   echo "$ac_t""yes" 1>&6
1095   LIBS="$LIBS -lsocket"
1096 else
1097   echo "$ac_t""no" 1>&6
1098 checkBoth=1
1099 fi
1100
1101 fi
1102 if test "$checkBoth" = "1"; then
1103         oldLibs=$LIBS
1104         LIBS="$LIBS -lsocket -lnsl"
1105         echo $ac_n "checking for accept""... $ac_c" 1>&6
1106 echo "configure:1107: checking for accept" >&5
1107 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
1108   echo $ac_n "(cached) $ac_c" 1>&6
1109 else
1110   cat > conftest.$ac_ext <<EOF
1111 #line 1112 "configure"
1112 #include "confdefs.h"
1113 /* System header to define __stub macros and hopefully few prototypes,
1114     which can conflict with char accept(); below.  */
1115 #include <assert.h>
1116 /* Override any gcc2 internal prototype to avoid an error.  */
1117 /* We use char because int might match the return type of a gcc2
1118     builtin and then its argument prototype would still apply.  */
1119 char accept();
1120
1121 int main() {
1122
1123 /* The GNU C library defines this for functions which it implements
1124     to always fail with ENOSYS.  Some functions are actually named
1125     something starting with __ and the normal name is an alias.  */
1126 #if defined (__stub_accept) || defined (__stub___accept)
1127 choke me
1128 #else
1129 accept();
1130 #endif
1131
1132 ; return 0; }
1133 EOF
1134 if { (eval echo configure:1135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1135   rm -rf conftest*
1136   eval "ac_cv_func_accept=yes"
1137 else
1138   echo "configure: failed program was:" >&5
1139   cat conftest.$ac_ext >&5
1140   rm -rf conftest*
1141   eval "ac_cv_func_accept=no"
1142 fi
1143 rm -f conftest*
1144 fi
1145
1146 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
1147   echo "$ac_t""yes" 1>&6
1148   :
1149 else
1150   echo "$ac_t""no" 1>&6
1151 LIBS=$oldLibs
1152 fi
1153
1154 fi
1155 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1156 echo "configure:1157: checking for gethostbyname" >&5
1157 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1158   echo $ac_n "(cached) $ac_c" 1>&6
1159 else
1160   cat > conftest.$ac_ext <<EOF
1161 #line 1162 "configure"
1162 #include "confdefs.h"
1163 /* System header to define __stub macros and hopefully few prototypes,
1164     which can conflict with char gethostbyname(); below.  */
1165 #include <assert.h>
1166 /* Override any gcc2 internal prototype to avoid an error.  */
1167 /* We use char because int might match the return type of a gcc2
1168     builtin and then its argument prototype would still apply.  */
1169 char gethostbyname();
1170
1171 int main() {
1172
1173 /* The GNU C library defines this for functions which it implements
1174     to always fail with ENOSYS.  Some functions are actually named
1175     something starting with __ and the normal name is an alias.  */
1176 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1177 choke me
1178 #else
1179 gethostbyname();
1180 #endif
1181
1182 ; return 0; }
1183 EOF
1184 if { (eval echo configure:1185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1185   rm -rf conftest*
1186   eval "ac_cv_func_gethostbyname=yes"
1187 else
1188   echo "configure: failed program was:" >&5
1189   cat conftest.$ac_ext >&5
1190   rm -rf conftest*
1191   eval "ac_cv_func_gethostbyname=no"
1192 fi
1193 rm -f conftest*
1194 fi
1195
1196 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1197   echo "$ac_t""yes" 1>&6
1198   :
1199 else
1200   echo "$ac_t""no" 1>&6
1201 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1202 echo "configure:1203: checking for main in -lnsl" >&5
1203 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1204 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1205   echo $ac_n "(cached) $ac_c" 1>&6
1206 else
1207   ac_save_LIBS="$LIBS"
1208 LIBS="-lnsl  $LIBS"
1209 cat > conftest.$ac_ext <<EOF
1210 #line 1211 "configure"
1211 #include "confdefs.h"
1212
1213 int main() {
1214 main()
1215 ; return 0; }
1216 EOF
1217 if { (eval echo configure:1218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1218   rm -rf conftest*
1219   eval "ac_cv_lib_$ac_lib_var=yes"
1220 else
1221   echo "configure: failed program was:" >&5
1222   cat conftest.$ac_ext >&5
1223   rm -rf conftest*
1224   eval "ac_cv_lib_$ac_lib_var=no"
1225 fi
1226 rm -f conftest*
1227 LIBS="$ac_save_LIBS"
1228
1229 fi
1230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1231   echo "$ac_t""yes" 1>&6
1232   LIBS="$LIBS -lnsl"
1233 else
1234   echo "$ac_t""no" 1>&6
1235 fi
1236
1237 fi
1238
1239 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
1240 echo "configure:1241: checking for main in -lwrap" >&5
1241 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
1242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1243   echo $ac_n "(cached) $ac_c" 1>&6
1244 else
1245   ac_save_LIBS="$LIBS"
1246 LIBS="-lwrap  $LIBS"
1247 cat > conftest.$ac_ext <<EOF
1248 #line 1249 "configure"
1249 #include "confdefs.h"
1250
1251 int main() {
1252 main()
1253 ; return 0; }
1254 EOF
1255 if { (eval echo configure:1256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1256   rm -rf conftest*
1257   eval "ac_cv_lib_$ac_lib_var=yes"
1258 else
1259   echo "configure: failed program was:" >&5
1260   cat conftest.$ac_ext >&5
1261   rm -rf conftest*
1262   eval "ac_cv_lib_$ac_lib_var=no"
1263 fi
1264 rm -f conftest*
1265 LIBS="$ac_save_LIBS"
1266
1267 fi
1268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1269   echo "$ac_t""yes" 1>&6
1270   LIBS="$LIBS -lwrap"
1271 else
1272   echo "$ac_t""no" 1>&6
1273 fi
1274
1275 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1276 echo "configure:1277: checking for ANSI C header files" >&5
1277 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1278   echo $ac_n "(cached) $ac_c" 1>&6
1279 else
1280   cat > conftest.$ac_ext <<EOF
1281 #line 1282 "configure"
1282 #include "confdefs.h"
1283 #include <stdlib.h>
1284 #include <stdarg.h>
1285 #include <string.h>
1286 #include <float.h>
1287 EOF
1288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1289 { (eval echo configure:1290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1291 if test -z "$ac_err"; then
1292   rm -rf conftest*
1293   ac_cv_header_stdc=yes
1294 else
1295   echo "$ac_err" >&5
1296   echo "configure: failed program was:" >&5
1297   cat conftest.$ac_ext >&5
1298   rm -rf conftest*
1299   ac_cv_header_stdc=no
1300 fi
1301 rm -f conftest*
1302
1303 if test $ac_cv_header_stdc = yes; then
1304   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1305 cat > conftest.$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1308 #include <string.h>
1309 EOF
1310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1311   egrep "memchr" >/dev/null 2>&1; then
1312   :
1313 else
1314   rm -rf conftest*
1315   ac_cv_header_stdc=no
1316 fi
1317 rm -f conftest*
1318
1319 fi
1320
1321 if test $ac_cv_header_stdc = yes; then
1322   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1323 cat > conftest.$ac_ext <<EOF
1324 #line 1325 "configure"
1325 #include "confdefs.h"
1326 #include <stdlib.h>
1327 EOF
1328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1329   egrep "free" >/dev/null 2>&1; then
1330   :
1331 else
1332   rm -rf conftest*
1333   ac_cv_header_stdc=no
1334 fi
1335 rm -f conftest*
1336
1337 fi
1338
1339 if test $ac_cv_header_stdc = yes; then
1340   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1341 if test "$cross_compiling" = yes; then
1342   :
1343 else
1344   cat > conftest.$ac_ext <<EOF
1345 #line 1346 "configure"
1346 #include "confdefs.h"
1347 #include <ctype.h>
1348 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1349 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1350 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1351 int main () { int i; for (i = 0; i < 256; i++)
1352 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1353 exit (0); }
1354
1355 EOF
1356 if { (eval echo configure:1357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1357 then
1358   :
1359 else
1360   echo "configure: failed program was:" >&5
1361   cat conftest.$ac_ext >&5
1362   rm -fr conftest*
1363   ac_cv_header_stdc=no
1364 fi
1365 rm -fr conftest*
1366 fi
1367
1368 fi
1369 fi
1370
1371 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1372 if test $ac_cv_header_stdc = yes; then
1373   cat >> confdefs.h <<\EOF
1374 #define STDC_HEADERS 1
1375 EOF
1376
1377 fi
1378
1379 if test "$ac_cv_header_stdc" = "no"; then
1380         echo "configure: warning: Your system doesn't seem to support ANSI C" 1>&2
1381 fi
1382 trap '' 1 2 15
1383 cat > confcache <<\EOF
1384 # This file is a shell script that caches the results of configure
1385 # tests run on this system so they can be shared between configure
1386 # scripts and configure runs.  It is not useful on other systems.
1387 # If it contains results you don't want to keep, you may remove or edit it.
1388 #
1389 # By default, configure uses ./config.cache as the cache file,
1390 # creating it if it does not exist already.  You can give configure
1391 # the --cache-file=FILE option to use a different cache file; that is
1392 # what configure does when it calls configure scripts in
1393 # subdirectories, so they share the cache.
1394 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1395 # config.status only pays attention to the cache file if you give it the
1396 # --recheck option to rerun configure.
1397 #
1398 EOF
1399 # The following way of writing the cache mishandles newlines in values,
1400 # but we know of no workaround that is simple, portable, and efficient.
1401 # So, don't put newlines in cache variables' values.
1402 # Ultrix sh set writes to stderr and can't be redirected directly,
1403 # and sets the high bit in the cache file unless we assign to the vars.
1404 (set) 2>&1 |
1405   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1406   *ac_space=\ *)
1407     # `set' does not quote correctly, so add quotes (double-quote substitution
1408     # turns \\\\ into \\, and sed turns \\ into \).
1409     sed -n \
1410       -e "s/'/'\\\\''/g" \
1411       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1412     ;;
1413   *)
1414     # `set' quotes correctly as required by POSIX, so do not add quotes.
1415     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1416     ;;
1417   esac >> confcache
1418 if cmp -s $cache_file confcache; then
1419   :
1420 else
1421   if test -w $cache_file; then
1422     echo "updating cache $cache_file"
1423     cat confcache > $cache_file
1424   else
1425     echo "not updating unwritable cache $cache_file"
1426   fi
1427 fi
1428 rm -f confcache
1429
1430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1431
1432 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1433 # Let make expand exec_prefix.
1434 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1435
1436 # Any assignment to VPATH causes Sun make to only execute
1437 # the first set of double-colon rules, so remove it if not needed.
1438 # If there is a colon in the path, we need to keep it.
1439 if test "x$srcdir" = x.; then
1440   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1441 fi
1442
1443 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1444
1445 # Transform confdefs.h into DEFS.
1446 # Protect against shell expansion while executing Makefile rules.
1447 # Protect against Makefile macro expansion.
1448 cat > conftest.defs <<\EOF
1449 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1450 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1451 s%\[%\\&%g
1452 s%\]%\\&%g
1453 s%\$%$$%g
1454 EOF
1455 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1456 rm -f conftest.defs
1457
1458
1459 # Without the "./", some shells look in PATH for config.status.
1460 : ${CONFIG_STATUS=./config.status}
1461
1462 echo creating $CONFIG_STATUS
1463 rm -f $CONFIG_STATUS
1464 cat > $CONFIG_STATUS <<EOF
1465 #! /bin/sh
1466 # Generated automatically by configure.
1467 # Run this file to recreate the current configuration.
1468 # This directory was configured as follows,
1469 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1470 #
1471 # $0 $ac_configure_args
1472 #
1473 # Compiler output produced by configure, useful for debugging
1474 # configure, is in ./config.log if it exists.
1475
1476 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1477 for ac_option
1478 do
1479   case "\$ac_option" in
1480   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1481     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1482     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1483   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1484     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1485     exit 0 ;;
1486   -help | --help | --hel | --he | --h)
1487     echo "\$ac_cs_usage"; exit 0 ;;
1488   *) echo "\$ac_cs_usage"; exit 1 ;;
1489   esac
1490 done
1491
1492 ac_given_srcdir=$srcdir
1493 ac_given_INSTALL="$INSTALL"
1494
1495 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
1496 EOF
1497 cat >> $CONFIG_STATUS <<EOF
1498
1499 # Protect against being on the right side of a sed subst in config.status.
1500 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1501  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1502 $ac_vpsub
1503 $extrasub
1504 s%@SHELL@%$SHELL%g
1505 s%@CFLAGS@%$CFLAGS%g
1506 s%@CPPFLAGS@%$CPPFLAGS%g
1507 s%@CXXFLAGS@%$CXXFLAGS%g
1508 s%@FFLAGS@%$FFLAGS%g
1509 s%@DEFS@%$DEFS%g
1510 s%@LDFLAGS@%$LDFLAGS%g
1511 s%@LIBS@%$LIBS%g
1512 s%@exec_prefix@%$exec_prefix%g
1513 s%@prefix@%$prefix%g
1514 s%@program_transform_name@%$program_transform_name%g
1515 s%@bindir@%$bindir%g
1516 s%@sbindir@%$sbindir%g
1517 s%@libexecdir@%$libexecdir%g
1518 s%@datadir@%$datadir%g
1519 s%@sysconfdir@%$sysconfdir%g
1520 s%@sharedstatedir@%$sharedstatedir%g
1521 s%@localstatedir@%$localstatedir%g
1522 s%@libdir@%$libdir%g
1523 s%@includedir@%$includedir%g
1524 s%@oldincludedir@%$oldincludedir%g
1525 s%@infodir@%$infodir%g
1526 s%@mandir@%$mandir%g
1527 s%@ODEFS@%$ODEFS%g
1528 s%@TCL_INCLUDE@%$TCL_INCLUDE%g
1529 s%@TCL_LIB@%$TCL_LIB%g
1530 s%@CC@%$CC%g
1531 s%@CPP@%$CPP%g
1532 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1533 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1534 s%@INSTALL_DATA@%$INSTALL_DATA%g
1535 s%@RANLIB@%$RANLIB%g
1536 s%@TCLSH@%$TCLSH%g
1537
1538 CEOF
1539 EOF
1540
1541 cat >> $CONFIG_STATUS <<\EOF
1542
1543 # Split the substitutions into bite-sized pieces for seds with
1544 # small command number limits, like on Digital OSF/1 and HP-UX.
1545 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1546 ac_file=1 # Number of current file.
1547 ac_beg=1 # First line for current file.
1548 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1549 ac_more_lines=:
1550 ac_sed_cmds=""
1551 while $ac_more_lines; do
1552   if test $ac_beg -gt 1; then
1553     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1554   else
1555     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1556   fi
1557   if test ! -s conftest.s$ac_file; then
1558     ac_more_lines=false
1559     rm -f conftest.s$ac_file
1560   else
1561     if test -z "$ac_sed_cmds"; then
1562       ac_sed_cmds="sed -f conftest.s$ac_file"
1563     else
1564       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1565     fi
1566     ac_file=`expr $ac_file + 1`
1567     ac_beg=$ac_end
1568     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1569   fi
1570 done
1571 if test -z "$ac_sed_cmds"; then
1572   ac_sed_cmds=cat
1573 fi
1574 EOF
1575
1576 cat >> $CONFIG_STATUS <<EOF
1577
1578 CONFIG_FILES=\${CONFIG_FILES-"Makefile util/Makefile bfile/Makefile dfa/Makefile dict/Makefile isam/Makefile isamc/Makefile recctrl/Makefile rset/Makefile index/Makefile"}
1579 EOF
1580 cat >> $CONFIG_STATUS <<\EOF
1581 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1582   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1583   case "$ac_file" in
1584   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1585        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1586   *) ac_file_in="${ac_file}.in" ;;
1587   esac
1588
1589   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1590
1591   # Remove last slash and all that follows it.  Not all systems have dirname.
1592   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1593   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1594     # The file is in a subdirectory.
1595     test ! -d "$ac_dir" && mkdir "$ac_dir"
1596     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1597     # A "../" for each directory in $ac_dir_suffix.
1598     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1599   else
1600     ac_dir_suffix= ac_dots=
1601   fi
1602
1603   case "$ac_given_srcdir" in
1604   .)  srcdir=.
1605       if test -z "$ac_dots"; then top_srcdir=.
1606       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1607   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1608   *) # Relative path.
1609     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1610     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1611   esac
1612
1613   case "$ac_given_INSTALL" in
1614   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1615   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1616   esac
1617
1618   echo creating "$ac_file"
1619   rm -f "$ac_file"
1620   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1621   case "$ac_file" in
1622   *Makefile*) ac_comsub="1i\\
1623 # $configure_input" ;;
1624   *) ac_comsub= ;;
1625   esac
1626
1627   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1628   sed -e "$ac_comsub
1629 s%@configure_input@%$configure_input%g
1630 s%@srcdir@%$srcdir%g
1631 s%@top_srcdir@%$top_srcdir%g
1632 s%@INSTALL@%$INSTALL%g
1633 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1634 fi; done
1635 rm -f conftest.s*
1636
1637 EOF
1638 cat >> $CONFIG_STATUS <<EOF
1639
1640 EOF
1641 cat >> $CONFIG_STATUS <<\EOF
1642
1643 exit 0
1644 EOF
1645 chmod +x $CONFIG_STATUS
1646 rm -fr confdefs* $ac_clean_files
1647 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1648