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