Minor changes.
[tclrobot.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/tkConfig.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=hswitch.c
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
531
532
533 ac_aux_dir=
534 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
535   if test -f $ac_dir/install-sh; then
536     ac_aux_dir=$ac_dir
537     ac_install_sh="$ac_aux_dir/install-sh -c"
538     break
539   elif test -f $ac_dir/install.sh; then
540     ac_aux_dir=$ac_dir
541     ac_install_sh="$ac_aux_dir/install.sh -c"
542     break
543   fi
544 done
545 if test -z "$ac_aux_dir"; then
546   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
547 fi
548 ac_config_guess=$ac_aux_dir/config.guess
549 ac_config_sub=$ac_aux_dir/config.sub
550 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
551
552 # Find a good install program.  We prefer a C program (faster),
553 # so one script is as good as another.  But avoid the broken or
554 # incompatible versions:
555 # SysV /etc/install, /usr/sbin/install
556 # SunOS /usr/etc/install
557 # IRIX /sbin/install
558 # AIX /bin/install
559 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
560 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
561 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
562 # ./install, which can be erroneously created by make from ./install.sh.
563 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
564 echo "configure:565: checking for a BSD compatible install" >&5
565 if test -z "$INSTALL"; then
566 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
567   echo $ac_n "(cached) $ac_c" 1>&6
568 else
569     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
570   for ac_dir in $PATH; do
571     # Account for people who put trailing slashes in PATH elements.
572     case "$ac_dir/" in
573     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
574     *)
575       # OSF1 and SCO ODT 3.0 have their own names for install.
576       # Don't use installbsd from OSF since it installs stuff as root
577       # by default.
578       for ac_prog in ginstall scoinst install; do
579         if test -f $ac_dir/$ac_prog; then
580           if test $ac_prog = install &&
581             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
582             # AIX install.  It has an incompatible calling convention.
583             :
584           else
585             ac_cv_path_install="$ac_dir/$ac_prog -c"
586             break 2
587           fi
588         fi
589       done
590       ;;
591     esac
592   done
593   IFS="$ac_save_IFS"
594
595 fi
596   if test "${ac_cv_path_install+set}" = set; then
597     INSTALL="$ac_cv_path_install"
598   else
599     # As a last resort, use the slow shell script.  We don't cache a
600     # path for INSTALL within a source directory, because that will
601     # break other packages using the cache if that directory is
602     # removed, or if the path is relative.
603     INSTALL="$ac_install_sh"
604   fi
605 fi
606 echo "$ac_t""$INSTALL" 1>&6
607
608 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
609 # It thinks the first close brace ends the variable substitution.
610 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
611
612 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
613
614 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
615
616 tclconfig=NONE
617 tryprefix=NONE
618 # Check whether --with-tclconfig or --without-tclconfig was given.
619 if test "${with_tclconfig+set}" = set; then
620   withval="$with_tclconfig"
621   tclconfig=$withval
622 fi
623
624 if test "x$tclconfig" = xNONE; then
625         saveprefix=${prefix}
626         if test "x$prefix" = xNONE; then
627 echo $ac_n "checking for prefix by $ac_c" 1>&6
628 # Extract the first word of "tclsh", so it can be a program name with args.
629 set dummy tclsh; ac_word=$2
630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
631 echo "configure:632: checking for $ac_word" >&5
632 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
633   echo $ac_n "(cached) $ac_c" 1>&6
634 else
635   case "$TCLSH" in
636   /*)
637   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
638   ;;
639   ?:/*)                  
640   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
641   ;;
642   *)
643   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
644   ac_dummy="$PATH"
645   for ac_dir in $ac_dummy; do 
646     test -z "$ac_dir" && ac_dir=.
647     if test -f $ac_dir/$ac_word; then
648       ac_cv_path_TCLSH="$ac_dir/$ac_word"
649       break
650     fi
651   done
652   IFS="$ac_save_ifs"
653   ;;
654 esac
655 fi
656 TCLSH="$ac_cv_path_TCLSH"
657 if test -n "$TCLSH"; then
658   echo "$ac_t""$TCLSH" 1>&6
659 else
660   echo "$ac_t""no" 1>&6
661 fi
662
663   if test -n "$ac_cv_path_TCLSH"; then
664     prefix=`echo $ac_cv_path_TCLSH|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
665   fi
666 fi
667
668         if test "x$prefix" = xNONE; then
669                 if test "x$prefix" = xNONE; then
670 echo $ac_n "checking for prefix by $ac_c" 1>&6
671 # Extract the first word of "tclsh8.3", so it can be a program name with args.
672 set dummy tclsh8.3; ac_word=$2
673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
674 echo "configure:675: checking for $ac_word" >&5
675 if eval "test \"`echo '$''{'ac_cv_path_TCLSH8.3'+set}'`\" = set"; then
676   echo $ac_n "(cached) $ac_c" 1>&6
677 else
678   case "$TCLSH8.3" in
679   /*)
680   ac_cv_path_TCLSH8.3="$TCLSH8.3" # Let the user override the test with a path.
681   ;;
682   ?:/*)                  
683   ac_cv_path_TCLSH8.3="$TCLSH8.3" # Let the user override the test with a dos path.
684   ;;
685   *)
686   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
687   ac_dummy="$PATH"
688   for ac_dir in $ac_dummy; do 
689     test -z "$ac_dir" && ac_dir=.
690     if test -f $ac_dir/$ac_word; then
691       ac_cv_path_TCLSH8.3="$ac_dir/$ac_word"
692       break
693     fi
694   done
695   IFS="$ac_save_ifs"
696   ;;
697 esac
698 fi
699 TCLSH8.3="$ac_cv_path_TCLSH8.3"
700 if test -n "$TCLSH8.3"; then
701   echo "$ac_t""$TCLSH8.3" 1>&6
702 else
703   echo "$ac_t""no" 1>&6
704 fi
705
706   if test -n "$ac_cv_path_TCLSH8.3"; then
707     prefix=`echo $ac_cv_path_TCLSH8.3|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
708   fi
709 fi
710
711         fi
712         if test "x$prefix" = xNONE; then
713                 if test "x$prefix" = xNONE; then
714 echo $ac_n "checking for prefix by $ac_c" 1>&6
715 # Extract the first word of "tclsh8.2", so it can be a program name with args.
716 set dummy tclsh8.2; ac_word=$2
717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
718 echo "configure:719: checking for $ac_word" >&5
719 if eval "test \"`echo '$''{'ac_cv_path_TCLSH8.2'+set}'`\" = set"; then
720   echo $ac_n "(cached) $ac_c" 1>&6
721 else
722   case "$TCLSH8.2" in
723   /*)
724   ac_cv_path_TCLSH8.2="$TCLSH8.2" # Let the user override the test with a path.
725   ;;
726   ?:/*)                  
727   ac_cv_path_TCLSH8.2="$TCLSH8.2" # Let the user override the test with a dos path.
728   ;;
729   *)
730   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
731   ac_dummy="$PATH"
732   for ac_dir in $ac_dummy; do 
733     test -z "$ac_dir" && ac_dir=.
734     if test -f $ac_dir/$ac_word; then
735       ac_cv_path_TCLSH8.2="$ac_dir/$ac_word"
736       break
737     fi
738   done
739   IFS="$ac_save_ifs"
740   ;;
741 esac
742 fi
743 TCLSH8.2="$ac_cv_path_TCLSH8.2"
744 if test -n "$TCLSH8.2"; then
745   echo "$ac_t""$TCLSH8.2" 1>&6
746 else
747   echo "$ac_t""no" 1>&6
748 fi
749
750   if test -n "$ac_cv_path_TCLSH8.2"; then
751     prefix=`echo $ac_cv_path_TCLSH8.2|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
752   fi
753 fi
754
755         fi
756         if test "x$prefix" = xNONE; then
757                 if test "x$prefix" = xNONE; then
758 echo $ac_n "checking for prefix by $ac_c" 1>&6
759 # Extract the first word of "tclsh8.1", so it can be a program name with args.
760 set dummy tclsh8.1; ac_word=$2
761 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
762 echo "configure:763: checking for $ac_word" >&5
763 if eval "test \"`echo '$''{'ac_cv_path_TCLSH8.1'+set}'`\" = set"; then
764   echo $ac_n "(cached) $ac_c" 1>&6
765 else
766   case "$TCLSH8.1" in
767   /*)
768   ac_cv_path_TCLSH8.1="$TCLSH8.1" # Let the user override the test with a path.
769   ;;
770   ?:/*)                  
771   ac_cv_path_TCLSH8.1="$TCLSH8.1" # Let the user override the test with a dos path.
772   ;;
773   *)
774   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
775   ac_dummy="$PATH"
776   for ac_dir in $ac_dummy; do 
777     test -z "$ac_dir" && ac_dir=.
778     if test -f $ac_dir/$ac_word; then
779       ac_cv_path_TCLSH8.1="$ac_dir/$ac_word"
780       break
781     fi
782   done
783   IFS="$ac_save_ifs"
784   ;;
785 esac
786 fi
787 TCLSH8.1="$ac_cv_path_TCLSH8.1"
788 if test -n "$TCLSH8.1"; then
789   echo "$ac_t""$TCLSH8.1" 1>&6
790 else
791   echo "$ac_t""no" 1>&6
792 fi
793
794   if test -n "$ac_cv_path_TCLSH8.1"; then
795     prefix=`echo $ac_cv_path_TCLSH8.1|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
796   fi
797 fi
798
799         fi
800         if test "x$prefix" = xNONE; then
801                 if test "x$prefix" = xNONE; then
802 echo $ac_n "checking for prefix by $ac_c" 1>&6
803 # Extract the first word of "tclsh8.0", so it can be a program name with args.
804 set dummy tclsh8.0; ac_word=$2
805 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
806 echo "configure:807: checking for $ac_word" >&5
807 if eval "test \"`echo '$''{'ac_cv_path_TCLSH8.0'+set}'`\" = set"; then
808   echo $ac_n "(cached) $ac_c" 1>&6
809 else
810   case "$TCLSH8.0" in
811   /*)
812   ac_cv_path_TCLSH8.0="$TCLSH8.0" # Let the user override the test with a path.
813   ;;
814   ?:/*)                  
815   ac_cv_path_TCLSH8.0="$TCLSH8.0" # Let the user override the test with a dos path.
816   ;;
817   *)
818   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
819   ac_dummy="$PATH"
820   for ac_dir in $ac_dummy; do 
821     test -z "$ac_dir" && ac_dir=.
822     if test -f $ac_dir/$ac_word; then
823       ac_cv_path_TCLSH8.0="$ac_dir/$ac_word"
824       break
825     fi
826   done
827   IFS="$ac_save_ifs"
828   ;;
829 esac
830 fi
831 TCLSH8.0="$ac_cv_path_TCLSH8.0"
832 if test -n "$TCLSH8.0"; then
833   echo "$ac_t""$TCLSH8.0" 1>&6
834 else
835   echo "$ac_t""no" 1>&6
836 fi
837
838   if test -n "$ac_cv_path_TCLSH8.0"; then
839     prefix=`echo $ac_cv_path_TCLSH8.0|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
840   fi
841 fi
842
843         fi
844         if test "x$prefix" = xNONE; then
845                 if test "x$prefix" = xNONE; then
846 echo $ac_n "checking for prefix by $ac_c" 1>&6
847 # Extract the first word of "tclsh7.6", so it can be a program name with args.
848 set dummy tclsh7.6; ac_word=$2
849 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
850 echo "configure:851: checking for $ac_word" >&5
851 if eval "test \"`echo '$''{'ac_cv_path_TCLSH7.6'+set}'`\" = set"; then
852   echo $ac_n "(cached) $ac_c" 1>&6
853 else
854   case "$TCLSH7.6" in
855   /*)
856   ac_cv_path_TCLSH7.6="$TCLSH7.6" # Let the user override the test with a path.
857   ;;
858   ?:/*)                  
859   ac_cv_path_TCLSH7.6="$TCLSH7.6" # Let the user override the test with a dos path.
860   ;;
861   *)
862   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
863   ac_dummy="$PATH"
864   for ac_dir in $ac_dummy; do 
865     test -z "$ac_dir" && ac_dir=.
866     if test -f $ac_dir/$ac_word; then
867       ac_cv_path_TCLSH7.6="$ac_dir/$ac_word"
868       break
869     fi
870   done
871   IFS="$ac_save_ifs"
872   ;;
873 esac
874 fi
875 TCLSH7.6="$ac_cv_path_TCLSH7.6"
876 if test -n "$TCLSH7.6"; then
877   echo "$ac_t""$TCLSH7.6" 1>&6
878 else
879   echo "$ac_t""no" 1>&6
880 fi
881
882   if test -n "$ac_cv_path_TCLSH7.6"; then
883     prefix=`echo $ac_cv_path_TCLSH7.6|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
884   fi
885 fi
886
887         fi
888         if test "x$prefix" = xNONE; then
889                 if test "x$prefix" = xNONE; then
890 echo $ac_n "checking for prefix by $ac_c" 1>&6
891 # Extract the first word of "tclsh7.5", so it can be a program name with args.
892 set dummy tclsh7.5; ac_word=$2
893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
894 echo "configure:895: checking for $ac_word" >&5
895 if eval "test \"`echo '$''{'ac_cv_path_TCLSH7.5'+set}'`\" = set"; then
896   echo $ac_n "(cached) $ac_c" 1>&6
897 else
898   case "$TCLSH7.5" in
899   /*)
900   ac_cv_path_TCLSH7.5="$TCLSH7.5" # Let the user override the test with a path.
901   ;;
902   ?:/*)                  
903   ac_cv_path_TCLSH7.5="$TCLSH7.5" # Let the user override the test with a dos path.
904   ;;
905   *)
906   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
907   ac_dummy="$PATH"
908   for ac_dir in $ac_dummy; do 
909     test -z "$ac_dir" && ac_dir=.
910     if test -f $ac_dir/$ac_word; then
911       ac_cv_path_TCLSH7.5="$ac_dir/$ac_word"
912       break
913     fi
914   done
915   IFS="$ac_save_ifs"
916   ;;
917 esac
918 fi
919 TCLSH7.5="$ac_cv_path_TCLSH7.5"
920 if test -n "$TCLSH7.5"; then
921   echo "$ac_t""$TCLSH7.5" 1>&6
922 else
923   echo "$ac_t""no" 1>&6
924 fi
925
926   if test -n "$ac_cv_path_TCLSH7.5"; then
927     prefix=`echo $ac_cv_path_TCLSH7.5|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
928   fi
929 fi
930
931         fi
932         if test "x$prefix" = xNONE; then
933                 prefix=/usr/local
934         fi
935         tclconfig=${prefix}/lib
936         tryprefix=${prefix}
937         prefix=${saveprefix}
938 fi
939 if test -r ${tclconfig}/tclConfig.sh; then
940         echo $ac_n "checking for Tcl""... $ac_c" 1>&6
941 echo "configure:942: checking for Tcl" >&5
942         . ${tclconfig}/tclConfig.sh
943         TCLLIB="${TCL_LIB_SPEC} ${TCL_LIBS}"
944         TCLINC=-I${TCL_PREFIX}/include
945         RANLIB=$TCL_RANLIB
946         SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
947         SHLIB_LD=$TCL_SHLIB_LD
948         SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
949         SHLIB_VERSION=$TCL_SHLIB_VERSION
950         echo "$ac_t""$TCL_VERSION" 1>&6
951         CC=$TCL_CC
952 else
953         # Extract the first word of "gcc", so it can be a program name with args.
954 set dummy gcc; ac_word=$2
955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
956 echo "configure:957: checking for $ac_word" >&5
957 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
958   echo $ac_n "(cached) $ac_c" 1>&6
959 else
960   if test -n "$CC"; then
961   ac_cv_prog_CC="$CC" # Let the user override the test.
962 else
963   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
964   ac_dummy="$PATH"
965   for ac_dir in $ac_dummy; do
966     test -z "$ac_dir" && ac_dir=.
967     if test -f $ac_dir/$ac_word; then
968       ac_cv_prog_CC="gcc"
969       break
970     fi
971   done
972   IFS="$ac_save_ifs"
973 fi
974 fi
975 CC="$ac_cv_prog_CC"
976 if test -n "$CC"; then
977   echo "$ac_t""$CC" 1>&6
978 else
979   echo "$ac_t""no" 1>&6
980 fi
981
982 if test -z "$CC"; then
983   # Extract the first word of "cc", so it can be a program name with args.
984 set dummy cc; ac_word=$2
985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986 echo "configure:987: checking for $ac_word" >&5
987 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
988   echo $ac_n "(cached) $ac_c" 1>&6
989 else
990   if test -n "$CC"; then
991   ac_cv_prog_CC="$CC" # Let the user override the test.
992 else
993   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
994   ac_prog_rejected=no
995   ac_dummy="$PATH"
996   for ac_dir in $ac_dummy; do
997     test -z "$ac_dir" && ac_dir=.
998     if test -f $ac_dir/$ac_word; then
999       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1000         ac_prog_rejected=yes
1001         continue
1002       fi
1003       ac_cv_prog_CC="cc"
1004       break
1005     fi
1006   done
1007   IFS="$ac_save_ifs"
1008 if test $ac_prog_rejected = yes; then
1009   # We found a bogon in the path, so make sure we never use it.
1010   set dummy $ac_cv_prog_CC
1011   shift
1012   if test $# -gt 0; then
1013     # We chose a different compiler from the bogus one.
1014     # However, it has the same basename, so the bogon will be chosen
1015     # first if we set CC to just the basename; use the full file name.
1016     shift
1017     set dummy "$ac_dir/$ac_word" "$@"
1018     shift
1019     ac_cv_prog_CC="$@"
1020   fi
1021 fi
1022 fi
1023 fi
1024 CC="$ac_cv_prog_CC"
1025 if test -n "$CC"; then
1026   echo "$ac_t""$CC" 1>&6
1027 else
1028   echo "$ac_t""no" 1>&6
1029 fi
1030
1031   if test -z "$CC"; then
1032     case "`uname -s`" in
1033     *win32* | *WIN32*)
1034       # Extract the first word of "cl", so it can be a program name with args.
1035 set dummy cl; ac_word=$2
1036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1037 echo "configure:1038: checking for $ac_word" >&5
1038 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1039   echo $ac_n "(cached) $ac_c" 1>&6
1040 else
1041   if test -n "$CC"; then
1042   ac_cv_prog_CC="$CC" # Let the user override the test.
1043 else
1044   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1045   ac_dummy="$PATH"
1046   for ac_dir in $ac_dummy; do
1047     test -z "$ac_dir" && ac_dir=.
1048     if test -f $ac_dir/$ac_word; then
1049       ac_cv_prog_CC="cl"
1050       break
1051     fi
1052   done
1053   IFS="$ac_save_ifs"
1054 fi
1055 fi
1056 CC="$ac_cv_prog_CC"
1057 if test -n "$CC"; then
1058   echo "$ac_t""$CC" 1>&6
1059 else
1060   echo "$ac_t""no" 1>&6
1061 fi
1062  ;;
1063     esac
1064   fi
1065   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1066 fi
1067
1068 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1069 echo "configure:1070: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1070
1071 ac_ext=c
1072 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1073 ac_cpp='$CPP $CPPFLAGS'
1074 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1075 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1076 cross_compiling=$ac_cv_prog_cc_cross
1077
1078 cat > conftest.$ac_ext << EOF
1079
1080 #line 1081 "configure"
1081 #include "confdefs.h"
1082
1083 main(){return(0);}
1084 EOF
1085 if { (eval echo configure:1086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1086   ac_cv_prog_cc_works=yes
1087   # If we can't run a trivial program, we are probably using a cross compiler.
1088   if (./conftest; exit) 2>/dev/null; then
1089     ac_cv_prog_cc_cross=no
1090   else
1091     ac_cv_prog_cc_cross=yes
1092   fi
1093 else
1094   echo "configure: failed program was:" >&5
1095   cat conftest.$ac_ext >&5
1096   ac_cv_prog_cc_works=no
1097 fi
1098 rm -fr conftest*
1099 ac_ext=c
1100 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1101 ac_cpp='$CPP $CPPFLAGS'
1102 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1103 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1104 cross_compiling=$ac_cv_prog_cc_cross
1105
1106 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1107 if test $ac_cv_prog_cc_works = no; then
1108   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1109 fi
1110 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1111 echo "configure:1112: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1112 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1113 cross_compiling=$ac_cv_prog_cc_cross
1114
1115 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1116 echo "configure:1117: checking whether we are using GNU C" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1118   echo $ac_n "(cached) $ac_c" 1>&6
1119 else
1120   cat > conftest.c <<EOF
1121 #ifdef __GNUC__
1122   yes;
1123 #endif
1124 EOF
1125 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1126   ac_cv_prog_gcc=yes
1127 else
1128   ac_cv_prog_gcc=no
1129 fi
1130 fi
1131
1132 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1133
1134 if test $ac_cv_prog_gcc = yes; then
1135   GCC=yes
1136 else
1137   GCC=
1138 fi
1139
1140 ac_test_CFLAGS="${CFLAGS+set}"
1141 ac_save_CFLAGS="$CFLAGS"
1142 CFLAGS=
1143 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether ${CC-cc} accepts -g" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1146   echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148   echo 'void f(){}' > conftest.c
1149 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1150   ac_cv_prog_cc_g=yes
1151 else
1152   ac_cv_prog_cc_g=no
1153 fi
1154 rm -f conftest*
1155
1156 fi
1157
1158 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1159 if test "$ac_test_CFLAGS" = set; then
1160   CFLAGS="$ac_save_CFLAGS"
1161 elif test $ac_cv_prog_cc_g = yes; then
1162   if test "$GCC" = yes; then
1163     CFLAGS="-g -O2"
1164   else
1165     CFLAGS="-g"
1166   fi
1167 else
1168   if test "$GCC" = yes; then
1169     CFLAGS="-O2"
1170   else
1171     CFLAGS=
1172   fi
1173 fi
1174
1175         SHLIB_CFLAGS=""
1176         SHLIB_LD="shared-linker"
1177         SHLIB_SUFFIX=""
1178         SHLIB_VERSION=""
1179         # Extract the first word of "ranlib", so it can be a program name with args.
1180 set dummy ranlib; ac_word=$2
1181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1182 echo "configure:1183: checking for $ac_word" >&5
1183 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1184   echo $ac_n "(cached) $ac_c" 1>&6
1185 else
1186   if test -n "$RANLIB"; then
1187   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1188 else
1189   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1190   ac_dummy="$PATH"
1191   for ac_dir in $ac_dummy; do
1192     test -z "$ac_dir" && ac_dir=.
1193     if test -f $ac_dir/$ac_word; then
1194       ac_cv_prog_RANLIB="ranlib"
1195       break
1196     fi
1197   done
1198   IFS="$ac_save_ifs"
1199   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1200 fi
1201 fi
1202 RANLIB="$ac_cv_prog_RANLIB"
1203 if test -n "$RANLIB"; then
1204   echo "$ac_t""$RANLIB" 1>&6
1205 else
1206   echo "$ac_t""no" 1>&6
1207 fi
1208
1209         echo $ac_n "checking for Tcl""... $ac_c" 1>&6
1210 echo "configure:1211: checking for Tcl" >&5
1211         TCL_VERSION=nope
1212         for i in "" 7.4 7.5 7.6 8.0; do
1213                 if test -r ${tryprefix}/lib/libtcl${i}.a; then
1214                         TCL_VERSION=$i
1215                 fi
1216         done
1217         if test "$TCL_VERSION" = nope; then
1218                 echo "configure: warning: Didn't find Tcl" 1>&2
1219                 TCL_LIB_SPEC=-ltcl
1220                 TCLINC=" # -I.. Tcl/Tk include path"
1221         else
1222                 if test "$TCL_VERSION" = ""; then
1223                         echo "$ac_t""7.3" 1>&6
1224                 else
1225                         echo "$ac_t""$TCL_VERSION" 1>&6
1226                 fi
1227                 TCL_LIB_SPEC=${tryprefix}/lib/libtcl${TCL_VERSION}.a
1228                 TCLINC=-I${tryprefix}/include
1229         fi
1230         TCLLIB="${TCL_LIB_SPEC} ${LIBS} -lm"
1231 fi
1232 trap '' 1 2 15
1233 cat > confcache <<\EOF
1234 # This file is a shell script that caches the results of configure
1235 # tests run on this system so they can be shared between configure
1236 # scripts and configure runs.  It is not useful on other systems.
1237 # If it contains results you don't want to keep, you may remove or edit it.
1238 #
1239 # By default, configure uses ./config.cache as the cache file,
1240 # creating it if it does not exist already.  You can give configure
1241 # the --cache-file=FILE option to use a different cache file; that is
1242 # what configure does when it calls configure scripts in
1243 # subdirectories, so they share the cache.
1244 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1245 # config.status only pays attention to the cache file if you give it the
1246 # --recheck option to rerun configure.
1247 #
1248 EOF
1249 # The following way of writing the cache mishandles newlines in values,
1250 # but we know of no workaround that is simple, portable, and efficient.
1251 # So, don't put newlines in cache variables' values.
1252 # Ultrix sh set writes to stderr and can't be redirected directly,
1253 # and sets the high bit in the cache file unless we assign to the vars.
1254 (set) 2>&1 |
1255   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1256   *ac_space=\ *)
1257     # `set' does not quote correctly, so add quotes (double-quote substitution
1258     # turns \\\\ into \\, and sed turns \\ into \).
1259     sed -n \
1260       -e "s/'/'\\\\''/g" \
1261       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1262     ;;
1263   *)
1264     # `set' quotes correctly as required by POSIX, so do not add quotes.
1265     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1266     ;;
1267   esac >> confcache
1268 if cmp -s $cache_file confcache; then
1269   :
1270 else
1271   if test -w $cache_file; then
1272     echo "updating cache $cache_file"
1273     cat confcache > $cache_file
1274   else
1275     echo "not updating unwritable cache $cache_file"
1276   fi
1277 fi
1278 rm -f confcache
1279
1280 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1281
1282 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1283 # Let make expand exec_prefix.
1284 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1285
1286 # Any assignment to VPATH causes Sun make to only execute
1287 # the first set of double-colon rules, so remove it if not needed.
1288 # If there is a colon in the path, we need to keep it.
1289 if test "x$srcdir" = x.; then
1290   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1291 fi
1292
1293 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1294
1295 # Transform confdefs.h into DEFS.
1296 # Protect against shell expansion while executing Makefile rules.
1297 # Protect against Makefile macro expansion.
1298 cat > conftest.defs <<\EOF
1299 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1300 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1301 s%\[%\\&%g
1302 s%\]%\\&%g
1303 s%\$%$$%g
1304 EOF
1305 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1306 rm -f conftest.defs
1307
1308
1309 # Without the "./", some shells look in PATH for config.status.
1310 : ${CONFIG_STATUS=./config.status}
1311
1312 echo creating $CONFIG_STATUS
1313 rm -f $CONFIG_STATUS
1314 cat > $CONFIG_STATUS <<EOF
1315 #! /bin/sh
1316 # Generated automatically by configure.
1317 # Run this file to recreate the current configuration.
1318 # This directory was configured as follows,
1319 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1320 #
1321 # $0 $ac_configure_args
1322 #
1323 # Compiler output produced by configure, useful for debugging
1324 # configure, is in ./config.log if it exists.
1325
1326 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1327 for ac_option
1328 do
1329   case "\$ac_option" in
1330   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1331     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1332     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1333   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1334     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1335     exit 0 ;;
1336   -help | --help | --hel | --he | --h)
1337     echo "\$ac_cs_usage"; exit 0 ;;
1338   *) echo "\$ac_cs_usage"; exit 1 ;;
1339   esac
1340 done
1341
1342 ac_given_srcdir=$srcdir
1343 ac_given_INSTALL="$INSTALL"
1344
1345 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1346 EOF
1347 cat >> $CONFIG_STATUS <<EOF
1348
1349 # Protect against being on the right side of a sed subst in config.status.
1350 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1351  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1352 $ac_vpsub
1353 $extrasub
1354 s%@SHELL@%$SHELL%g
1355 s%@CFLAGS@%$CFLAGS%g
1356 s%@CPPFLAGS@%$CPPFLAGS%g
1357 s%@CXXFLAGS@%$CXXFLAGS%g
1358 s%@FFLAGS@%$FFLAGS%g
1359 s%@DEFS@%$DEFS%g
1360 s%@LDFLAGS@%$LDFLAGS%g
1361 s%@LIBS@%$LIBS%g
1362 s%@exec_prefix@%$exec_prefix%g
1363 s%@prefix@%$prefix%g
1364 s%@program_transform_name@%$program_transform_name%g
1365 s%@bindir@%$bindir%g
1366 s%@sbindir@%$sbindir%g
1367 s%@libexecdir@%$libexecdir%g
1368 s%@datadir@%$datadir%g
1369 s%@sysconfdir@%$sysconfdir%g
1370 s%@sharedstatedir@%$sharedstatedir%g
1371 s%@localstatedir@%$localstatedir%g
1372 s%@libdir@%$libdir%g
1373 s%@includedir@%$includedir%g
1374 s%@oldincludedir@%$oldincludedir%g
1375 s%@infodir@%$infodir%g
1376 s%@mandir@%$mandir%g
1377 s%@CC@%$CC%g
1378 s%@TCLLIB@%$TCLLIB%g
1379 s%@TCLINC@%$TCLINC%g
1380 s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
1381 s%@SHLIB_LD@%$SHLIB_LD%g
1382 s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
1383 s%@SHLIB_VERSION@%$SHLIB_VERSION%g
1384 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1385 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1386 s%@INSTALL_DATA@%$INSTALL_DATA%g
1387 s%@TCLSH@%$TCLSH%g
1388 s%@TCLSH8.3@%$TCLSH8.3%g
1389 s%@TCLSH8.2@%$TCLSH8.2%g
1390 s%@TCLSH8.1@%$TCLSH8.1%g
1391 s%@TCLSH8.0@%$TCLSH8.0%g
1392 s%@TCLSH7.6@%$TCLSH7.6%g
1393 s%@TCLSH7.5@%$TCLSH7.5%g
1394 s%@RANLIB@%$RANLIB%g
1395
1396 CEOF
1397 EOF
1398
1399 cat >> $CONFIG_STATUS <<\EOF
1400
1401 # Split the substitutions into bite-sized pieces for seds with
1402 # small command number limits, like on Digital OSF/1 and HP-UX.
1403 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1404 ac_file=1 # Number of current file.
1405 ac_beg=1 # First line for current file.
1406 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1407 ac_more_lines=:
1408 ac_sed_cmds=""
1409 while $ac_more_lines; do
1410   if test $ac_beg -gt 1; then
1411     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1412   else
1413     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1414   fi
1415   if test ! -s conftest.s$ac_file; then
1416     ac_more_lines=false
1417     rm -f conftest.s$ac_file
1418   else
1419     if test -z "$ac_sed_cmds"; then
1420       ac_sed_cmds="sed -f conftest.s$ac_file"
1421     else
1422       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1423     fi
1424     ac_file=`expr $ac_file + 1`
1425     ac_beg=$ac_end
1426     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1427   fi
1428 done
1429 if test -z "$ac_sed_cmds"; then
1430   ac_sed_cmds=cat
1431 fi
1432 EOF
1433
1434 cat >> $CONFIG_STATUS <<EOF
1435
1436 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1437 EOF
1438 cat >> $CONFIG_STATUS <<\EOF
1439 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1440   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1441   case "$ac_file" in
1442   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1443        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1444   *) ac_file_in="${ac_file}.in" ;;
1445   esac
1446
1447   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1448
1449   # Remove last slash and all that follows it.  Not all systems have dirname.
1450   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1451   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1452     # The file is in a subdirectory.
1453     test ! -d "$ac_dir" && mkdir "$ac_dir"
1454     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1455     # A "../" for each directory in $ac_dir_suffix.
1456     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1457   else
1458     ac_dir_suffix= ac_dots=
1459   fi
1460
1461   case "$ac_given_srcdir" in
1462   .)  srcdir=.
1463       if test -z "$ac_dots"; then top_srcdir=.
1464       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1465   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1466   *) # Relative path.
1467     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1468     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1469   esac
1470
1471   case "$ac_given_INSTALL" in
1472   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1473   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1474   esac
1475
1476   echo creating "$ac_file"
1477   rm -f "$ac_file"
1478   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1479   case "$ac_file" in
1480   *Makefile*) ac_comsub="1i\\
1481 # $configure_input" ;;
1482   *) ac_comsub= ;;
1483   esac
1484
1485   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1486   sed -e "$ac_comsub
1487 s%@configure_input@%$configure_input%g
1488 s%@srcdir@%$srcdir%g
1489 s%@top_srcdir@%$top_srcdir%g
1490 s%@INSTALL@%$INSTALL%g
1491 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1492 fi; done
1493 rm -f conftest.s*
1494
1495 EOF
1496 cat >> $CONFIG_STATUS <<EOF
1497
1498 EOF
1499 cat >> $CONFIG_STATUS <<\EOF
1500
1501 exit 0
1502 EOF
1503 chmod +x $CONFIG_STATUS
1504 rm -fr confdefs* $ac_clean_files
1505 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1506