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